Constructor
new ROISensor()
Construct a ROISensor object, representing a RealSense camera subdevice
The newly created ROISensor object shares native resources with the sensor
argument. So the new object shouldn't be freed automatically to make
sure resources released only once during cleanup.
Methods
(static) from(sensor) → {ROISensor|undefined}
Create a ROISensor out of another sensor
Parameters:
| Name | Type | Description |
|---|---|---|
sensor |
Sensor | a sensor object |
Returns:
return a ROISensor if the sensor can be
treated as a ROISensor, otherwise return undefined.
- Type
- ROISensor | undefined
getRegionOfInterest() → {RegionOfInterestObject|undefined}
Get the active region of interest to be used by auto-exposure algorithm.
- Source:
- See:
Returns:
Returns undefined if failed
- Type
- RegionOfInterestObject | undefined
setRegionOfInterest(region, minX, minY, maxX, maxY)
Set the active region of interest to be used by auto-exposure algorithm
There are 2 acceptable forms of syntax:
Syntax 1. setRegionOfInterest(region)
Syntax 2. setRegionOfInterest(minX, minY, maxX, maxY)
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
region |
RegionOfInterestObject | the region of interest to be used.
Properties
|
|||||||||||||||
minX |
Float32 | see RegionOfInterestObject for details. | |||||||||||||||
minY |
Float32 | see RegionOfInterestObject for details. | |||||||||||||||
maxX |
Float32 | see RegionOfInterestObject for details. | |||||||||||||||
maxY |
Float32 | see RegionOfInterestObject for details. |