Class CvMatExtensions
Extensions methods for Cv.
Namespace: ArucoUnity.Utilities
Assembly: Assembly-CSharp.dll
Syntax
public static class CvMatExtensions
Methods
| Improve this Doc View SourceGetCameraFocalLengths(Cv.Mat)
Gets the camera focal lengths in a camera matrix, expressed in pixels units. Equals to
F = (AtDouble(0, 0), AtDouble(1, 1))
Declaration
public static Vector2 GetCameraFocalLengths(this Cv.Mat mat)
Parameters
Type | Name | Description |
---|---|---|
Cv.Mat | mat |
Returns
Type | Description |
---|---|
Vector2 |
GetCameraPrincipalPoint(Cv.Mat)
Gets the camera principal point in a camera matrix, expressed in pixels units. Equals to
C = (AtDouble(0, 2), AtDouble(1, 2))
Declaration
public static Vector2 GetCameraPrincipalPoint(this Cv.Mat mat)
Parameters
Type | Name | Description |
---|---|---|
Cv.Mat | mat |
Returns
Type | Description |
---|---|
Vector2 |
ImageType(TextureFormat)
Returns the OpenCV type equivalent to a texture format.
Declaration
public static Cv.Type ImageType(TextureFormat textureFormat)
Parameters
Type | Name | Description |
---|---|---|
TextureFormat | textureFormat | The Unity texture format. |
Returns
Type | Description |
---|---|
Cv.Type | The equivalent OpenCV type. |