Show / Hide Table of Contents

    Class ArucoCameraUndistortion

    Manages the processes of undistortion and rectification of Images. It's a time-consuming operation but it's necessary for cameras with an important distorsion for a good alignement of the images with the 3D content. Base class to reference in editor fields.

    Inheritance
    Object
    Controller
    ArucoCameraController
    ArucoCameraUndistortion
    ArucoCameraUndistortionGeneric<T>
    Implements
    IArucoCameraUndistortion
    IArucoCameraController
    IController
    IHasArucoCameraParameters
    Inherited Members
    ArucoCameraController.ArucoCamera
    Controller.Configured
    Controller.Ready
    Controller.Started
    Controller.Stopped
    Controller.AutoStart
    Controller.IsConfigured
    Controller.IsReady
    Controller.IsStarted
    Controller.Awake()
    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 ArucoCameraUndistortion : ArucoCameraController, IArucoCameraUndistortion, IArucoCameraController, IController, IHasArucoCameraParameters

    Fields

    | Improve this Doc View Source

    CameraParametersFilePath

    Declaration
    protected string CameraParametersFilePath
    Field Value
    Type Description
    String
    | Improve this Doc View Source

    noDistCoeffs

    Declaration
    protected Cv.Mat noDistCoeffs
    Field Value
    Type Description
    Cv.Mat
    | Improve this Doc View Source

    noRectificationMatrix

    Declaration
    protected Cv.Mat noRectificationMatrix
    Field Value
    Type Description
    Cv.Mat
    | Improve this Doc View Source

    noROI

    Declaration
    protected Cv.Rect noROI
    Field Value
    Type Description
    Cv.Rect
    | Improve this Doc View Source

    remapThread

    Declaration
    protected ArucoCameraSeparateThread remapThread
    Field Value
    Type Description
    ArucoCameraSeparateThread
    | Improve this Doc View Source

    undistortionCameraMapsNumber

    Declaration
    public const int undistortionCameraMapsNumber = 2
    Field Value
    Type Description
    Int32

    Properties

    | Improve this Doc View Source

    CameraParameters

    Declaration
    public ArucoCameraParameters CameraParameters { get; set; }
    Property Value
    Type Description
    ArucoCameraParameters
    | Improve this Doc View Source

    RectificationMatrices

    Declaration
    public Cv.Mat[] RectificationMatrices { get; protected set; }
    Property Value
    Type Description
    Cv.Mat[]
    | Improve this Doc View Source

    RectifiedCameraMatrices

    Declaration
    public Cv.Mat[] RectifiedCameraMatrices { get; protected set; }
    Property Value
    Type Description
    Cv.Mat[]
    | Improve this Doc View Source

    UndistortedDistCoeffs

    Declaration
    public Cv.Mat[] UndistortedDistCoeffs { get; }
    Property Value
    Type Description
    Cv.Mat[]
    | Improve this Doc View Source

    UndistortionRectificationMaps

    Declaration
    public Cv.Mat[][] UndistortionRectificationMaps { get; protected set; }
    Property Value
    Type Description
    Cv.Mat[][]

    Methods

    | Improve this Doc View Source

    ArucoCamera_UndistortRectifyImages(Cv.Mat[], Byte[][])

    Updates the undistortion thread with the images and stops if there was an exception from this thread.

    Declaration
    protected virtual void ArucoCamera_UndistortRectifyImages(Cv.Mat[] images, byte[][] imageDatas)
    Parameters
    Type Name Description
    Cv.Mat[] images
    Byte[][] imageDatas
    | Improve this Doc View Source

    Configuring()

    Initializes the properties from CameraParameters.

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

    InitializeRectification()

    Initializes the RectificationMatrices of each camera image.

    Declaration
    protected abstract void InitializeRectification()
    | Improve this Doc View Source

    InitializeUndistortionMaps()

    Initializes the UndistortionRectificationMaps of each camera image.

    Declaration
    protected abstract void InitializeUndistortionMaps()
    | Improve this Doc View Source

    Start()

    Initializes the properties.

    Declaration
    protected override void Start()
    Overrides
    Controller.Start()
    | Improve this Doc View Source

    Starting()

    Calls InitializeRectification() and InitializeUndistortionMaps() and susbcribes to UndistortRectifyImages.

    Declaration
    protected override void Starting()
    Overrides
    Controller.Starting()
    | Improve this Doc View Source

    Stopping()

    Unsusbcribes from UndistortRectifyImages.

    Declaration
    protected override void Stopping()
    Overrides
    Controller.Stopping()
    | Improve this Doc View Source

    UndistortRectifyImages(Cv.Mat[])

    Undistorts and rectifies the images using UndistortionRectificationMaps on a separate thread.

    Declaration
    protected virtual void UndistortRectifyImages(Cv.Mat[] images)
    Parameters
    Type Name Description
    Cv.Mat[] images

    Implements

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