Click or drag to resize

VideoSensorType Property

Type of colour information returned by the camera sensor.

Namespace:  ASCOM.DriverAccess
Assembly:  ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
Syntax
public SensorType SensorType { get; }

Return Value

Type: SensorType
The SensorType enum value of the camera sensor

Implements

IVideoSensorType
Exceptions
ExceptionCondition
NotConnectedExceptionIf the device is not connected
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. The device did not successfully complete the request.
Remarks

SensorType returns a value indicating whether the sensor is monochrome, or what Bayer matrix it encodes. The following values are defined:

ValueEnumerationMeaning
0 Monochrome Camera produces monochrome array with no Bayer encoding
1 Colour Camera produces colour image directly, requiring not Bayer decoding. The monochrome pixels for the R, G and B channels are returned in this order in the ImageArray.
2 RGGB Camera produces RGGB encoded Bayer array images
3 CMYG Camera produces CMYG encoded Bayer array images
4 CMYG2 Camera produces CMYG2 encoded Bayer array images
5 LRGB Camera produces Kodak TRUESENSE Bayer LRGB array images

Please note that additional values may be defined in future updates of the standard, as new Bayer matrices may be created by sensor manufacturers in the future. If this occurs, then a new enumeration value shall be defined. The pre-existing enumeration values shall not change.

In the following definitions, R = red, G = green, B = blue, C = cyan, M = magenta, Y = yellow. The Bayer matrix is defined with X increasing from left to right, and Y increasing from top to bottom. The pattern repeats every N x M pixels for the entire pixel array, where N is the height of the Bayer matrix, and M is the width.

RGGB indicates the following matrix:

X = 0X = 1
Y = 0 R G
Y = 1 G B

CMYG indicates the following matrix:

X = 0X = 1
Y = 0 Y C
Y = 1 G M

CMYG2 indicates the following matrix:

X = 0X = 1
Y = 0 C Y
Y = 1 M G
Y = 2 C Y
Y = 3 G M

LRGB indicates the following matrix (Kodak TRUESENSE):

X = 0X = 1X = 2X = 3
Y = 0 L R L G
Y = 1 R L G L
Y = 2 L G L B
Y = 3 G L B L

It is recommended that this function be called only after a connection is established with the camera hardware, to ensure that the driver is aware of the capabilities of the specific camera model.

See Also