Show / Hide Table of Contents

    Class CameraIntrinsics

    Contains information on camera intrinsic parameters. Note: This class wraps logic in Windows.Media.Devices.Core.CameraIntrinsics for use in Unity.

    Inheritance
    Object
    CameraIntrinsics
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.PhotoCapture
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class CameraIntrinsics

    Constructors

    CameraIntrinsics()

    Declaration
    public CameraIntrinsics()

    CameraIntrinsics(Vector2, UInt32, UInt32, Vector2, Vector3, Vector2, Matrix4x4)

    CameraIntrinsics constructor

    Declaration
    public CameraIntrinsics(Vector2 focalLength, uint imageWidth, uint imageHeight, Vector2 principalPoint, Vector3 radialDistortion, Vector2 tangentialDistortion, Matrix4x4 undistortedProjectionTransform)
    Parameters
    Type Name Description
    Vector2 focalLength

    focal length for the camera

    UInt32 imageWidth

    image width in pixels

    UInt32 imageHeight

    image height in pixels

    Vector2 principalPoint

    principal point for the camera

    Vector3 radialDistortion

    radial distortion for the camera

    Vector2 tangentialDistortion

    tangential distortion for the camera

    Matrix4x4 undistortedProjectionTransform

    Undistorted projection transform for the camera

    Fields

    FocalLength

    Gets the focal length of the camera.

    Declaration
    public Vector2 FocalLength
    Field Value
    Type Description
    Vector2

    ImageHeight

    Gets the image height of the camera, in pixels.

    Declaration
    public uint ImageHeight
    Field Value
    Type Description
    UInt32

    ImageWidth

    Gets the image width of the camera, in pixels.

    Declaration
    public uint ImageWidth
    Field Value
    Type Description
    UInt32

    PrincipalPoint

    Gets the principal point of the camera.

    Declaration
    public Vector2 PrincipalPoint
    Field Value
    Type Description
    Vector2

    RadialDistortion

    Gets the radial distortion coefficient of the camera.

    Declaration
    public Vector3 RadialDistortion
    Field Value
    Type Description
    Vector3

    TangentialDistortion

    Gets the tangential distortion coefficient of the camera.

    Declaration
    public Vector2 TangentialDistortion
    Field Value
    Type Description
    Vector2

    UndistortedProjectionTransform

    Gets a matrix that transforms a 3D point to video frame pixel coordinates without compensating for the distortion model of the camera.The 2D point resulting from this transformation will not accurately map to the pixel coordinate in a video frame unless the app applies its own distortion compensation.This is useful for apps that choose to implement GPU-based distortion compensation instead of using UndistortPoint, which uses the CPU to compute the distortion compensation.

    Declaration
    public Matrix4x4 UndistortedProjectionTransform
    Field Value
    Type Description
    Matrix4x4

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    Back to top Generated by DocFX