nOrder

The desired color order. Possible values are:

Value

Meaning

ORDER_RGB

[0] Red-green-blue order.

ORDER_BGR

[1] Blue-green-red order.

ORDER_GRAY

[2] 12 or 16-bit grayscale image. 12 and 16-bit grayscale images are only supported in the Document/Medical Imaging toolkits.

ORDER_RGBORGRAY

[3] Load the image as red, green, blue OR as a 12 or 16-bit grayscale image. 12 and 16-bit grayscale images are supported in the Document/Medical Imaging toolkits.

ORDER_BGRORGRAY

[4] Load the image as blue, green, red OR as a 12 or 16-bit grayscale image. 12 and 16-bit grayscale images are supported in the Document/Medical Imaging toolkits.

0

The data is 8 bits per pixel or less.