Show / Hide Table of Contents

    Class OmnidirCameraUndistortionGeneric<T>

    Manages the undistortion and rectification process for fisheye and omnidir ArucoCamera.

    See the OpenCV's ccalib module documentation for more information: http://docs.opencv.org/3.4/dd/d12/tutorial_omnidir_calib_main.html

    Inheritance
    Object
    Controller
    ArucoCameraController
    ArucoCameraUndistortion
    ArucoCameraUndistortionGeneric<T>
    OmnidirCameraUndistortionGeneric<T>
    OmnidirCameraUndistortion
    StereoOmnidirCameraUndistortion
    Implements
    IArucoCameraUndistortion
    IArucoCameraController
    IController
    IHasArucoCameraParameters
    Inherited Members
    ArucoCameraUndistortionGeneric<T>.Awake()
    ArucoCameraUndistortion.undistortionCameraMapsNumber
    ArucoCameraUndistortion.CameraParameters
    ArucoCameraUndistortion.RectifiedCameraMatrices
    ArucoCameraUndistortion.RectificationMatrices
    ArucoCameraUndistortion.UndistortedDistCoeffs
    ArucoCameraUndistortion.UndistortionRectificationMaps
    ArucoCameraUndistortion.noRectificationMatrix
    ArucoCameraUndistortion.noDistCoeffs
    ArucoCameraUndistortion.noROI
    ArucoCameraUndistortion.CameraParametersFilePath
    ArucoCameraUndistortion.remapThread
    ArucoCameraUndistortion.Start()
    ArucoCameraUndistortion.Starting()
    ArucoCameraUndistortion.Stopping()
    ArucoCameraUndistortion.ArucoCamera_UndistortRectifyImages(Cv.Mat[], Byte[][])
    ArucoCameraUndistortion.UndistortRectifyImages(Cv.Mat[])
    ArucoCameraController.ArucoCamera
    Controller.Configured
    Controller.Ready
    Controller.Started
    Controller.Stopped
    Controller.AutoStart
    Controller.IsConfigured
    Controller.IsReady
    Controller.IsStarted
    Controller.OnDestroy()
    Controller.AddDependency(IController)
    Controller.RemoveDependency(IController)
    Controller.GetDependencies()
    Controller.Configure()
    Controller.StartController()
    Controller.StopController()
    Controller.OnConfigured()
    Controller.OnStarted()
    Controller.OnStopped()
    Namespace: ArucoUnity.Cameras.Undistortions
    Assembly: Assembly-CSharp.dll
    Syntax
    public abstract class OmnidirCameraUndistortionGeneric<T> : ArucoCameraUndistortionGeneric<T>, IArucoCameraUndistortion, IArucoCameraController, IController, IHasArucoCameraParameters where T : ArucoCamera
    Type Parameters
    Name Description
    T

    Fields

    | Improve this Doc View Source

    maxPerspectiveFov

    Declaration
    protected const float maxPerspectiveFov = 179F
    Field Value
    Type Description
    Single
    | Improve this Doc View Source

    minPerspectiveFov

    Declaration
    protected const float minPerspectiveFov = 1F
    Field Value
    Type Description
    Single
    | Improve this Doc View Source

    rectifyFlags

    Declaration
    protected Dictionary<OmnidirCameraUndistortionGeneric<T>.RectificationTypes, Cv.Omnidir.Rectifify> rectifyFlags
    Field Value
    Type Description
    Dictionary<OmnidirCameraUndistortionGeneric.RectificationTypes<>, Cv.Omnidir.Rectifify>

    Properties

    | Improve this Doc View Source

    PerspectiveFieldOfViews

    Gets or sets the desired field of view for the Unity cameras shooting the undistorted and rectified images.

    Declaration
    public float[] PerspectiveFieldOfViews { get; set; }
    Property Value
    Type Description
    Single[]
    | Improve this Doc View Source

    RectificationType

    Gets or sets the algorithm to use for the rectification of the images. See this tutorial for illustrated examples: https://docs.opencv.org/3.4/dd/d12/tutorial_omnidir_calib_main.html

    Declaration
    public OmnidirCameraUndistortionGeneric<T>.RectificationTypes RectificationType { get; set; }
    Property Value
    Type Description
    OmnidirCameraUndistortionGeneric.RectificationTypes<>

    Methods

    | Improve this Doc View Source

    Configuring()

    Throw exception if PerspectiveFieldOfViews length is different than CameraNumber.

    Declaration
    protected override void Configuring()
    Overrides
    ArucoCameraUndistortion.Configuring()
    | Improve this Doc View Source

    InitializeRectification()

    Initializes the using the PerspectiveFieldOfViews values for perspective rectification or uses the recommended values: https://docs.opencv.org/3.3.1/dd/d12/tutorial_omnidir_calib_main.html. Initializes the to identity matrix.

    Declaration
    protected override void InitializeRectification()
    Overrides
    ArucoCameraUndistortion.InitializeRectification()
    | Improve this Doc View Source

    InitializeUndistortionMaps()

    Declaration
    protected override void InitializeUndistortionMaps()
    Overrides
    ArucoCameraUndistortion.InitializeUndistortionMaps()
    | Improve this Doc View Source

    OnValidate()

    Resizes the length of the ArucoUnity.Cameras.Undistortions.OmnidirCameraUndistortionGeneric`1.perspectiveFieldOfViews editor field to CameraNumber if different.

    Declaration
    protected virtual void OnValidate()

    Implements

    IArucoCameraUndistortion
    IArucoCameraController
    IController
    IHasArucoCameraParameters
    • Improve this Doc
    • View Source
    Back to top Aruco Unity - Erwan Normand