OpenCV for Unity 3.0.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/5.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.Extensions.SourceToMat.CameraResolution Struct Reference

Describes a supported camera resolution mode. More...

Public Member Functions

 CameraResolution (int width, int height, float fps)
 Initializes a new CameraResolution instance.
 
bool Equals (CameraResolution other)
 Returns a value indicating whether this instance equals another CameraResolution.
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 Returns a string representation of this resolution mode.
 

Static Public Member Functions

static bool operator!= (CameraResolution left, CameraResolution right)
 Compares two CameraResolution values for inequality.
 
static bool operator== (CameraResolution left, CameraResolution right)
 Compares two CameraResolution values for equality.
 

Properties

float FPS [get]
 Gets the mode frame rate in Hz. Values less than or equal to zero mean unspecified or unknown.
 
int Height [get]
 Gets the frame height in pixels.
 
int Width [get]
 Gets the frame width in pixels.
 

Detailed Description

Describes a supported camera resolution mode.

Constructor & Destructor Documentation

◆ CameraResolution()

OpenCVForUnity.Extensions.SourceToMat.CameraResolution.CameraResolution ( int width,
int height,
float fps )

Initializes a new CameraResolution instance.

Parameters
widthFrame width in pixels.
heightFrame height in pixels.
fpsMode frame rate in Hz. Use zero or negative for unspecified.

Member Function Documentation

◆ Equals() [1/2]

bool OpenCVForUnity.Extensions.SourceToMat.CameraResolution.Equals ( CameraResolution other)

Returns a value indicating whether this instance equals another CameraResolution.

Parameters
otherThe other instance.
Returns
true when width, height, and FPS match; otherwise false.

◆ Equals() [2/2]

override bool OpenCVForUnity.Extensions.SourceToMat.CameraResolution.Equals ( object obj)

◆ GetHashCode()

override int OpenCVForUnity.Extensions.SourceToMat.CameraResolution.GetHashCode ( )

◆ operator!=()

static bool OpenCVForUnity.Extensions.SourceToMat.CameraResolution.operator!= ( CameraResolution left,
CameraResolution right )
static

Compares two CameraResolution values for inequality.

◆ operator==()

static bool OpenCVForUnity.Extensions.SourceToMat.CameraResolution.operator== ( CameraResolution left,
CameraResolution right )
static

Compares two CameraResolution values for equality.

◆ ToString()

override string OpenCVForUnity.Extensions.SourceToMat.CameraResolution.ToString ( )

Returns a string representation of this resolution mode.

Returns
A string describing width, height, and FPS.

Property Documentation

◆ FPS

float OpenCVForUnity.Extensions.SourceToMat.CameraResolution.FPS
get

Gets the mode frame rate in Hz. Values less than or equal to zero mean unspecified or unknown.

◆ Height

int OpenCVForUnity.Extensions.SourceToMat.CameraResolution.Height
get

Gets the frame height in pixels.

◆ Width

int OpenCVForUnity.Extensions.SourceToMat.CameraResolution.Width
get

Gets the frame width in pixels.


The documentation for this struct was generated from the following file: