Struct CameraRect
Defines the Raspberry Pi camera's sensor ROI (Region of Interest).
Inherited Members
Namespace: Unosquare.RaspberryIO.Camera
Syntax
public struct CameraRect
Fields
Default
The default ROI which is the entire area.
Declaration
public static readonly CameraRect Default
Field Value
Type | Description |
---|---|
CameraRect |
Properties
H
Gets or sets the height in relative coordinates. (0.0 to 1.0).
Declaration
public decimal H { get; set; }
Property Value
Type | Description |
---|---|
Decimal | The h. |
IsDefault
Gets a value indicating whether this instance is equal to the default (The entire area).
Declaration
public bool IsDefault { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
W
Gets or sets the width in relative coordinates. (0.0 to 1.0).
Declaration
public decimal W { get; set; }
Property Value
Type | Description |
---|---|
Decimal | The w. |
X
Gets or sets the x in relative coordinates. (0.0 to 1.0).
Declaration
public decimal X { get; set; }
Property Value
Type | Description |
---|---|
Decimal | The x. |
Y
Gets or sets the y location in relative coordinates. (0.0 to 1.0).
Declaration
public decimal Y { get; set; }
Property Value
Type | Description |
---|---|
Decimal | The y. |
Methods
Clamp()
Clamps the members of this ROI to their minimum and maximum values.
Declaration
public void Clamp()
ToString()
Returns a String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents this instance. |