LAUREL BRIDGE

RgbToMonoToGray Method

DICOM Connectivity Framework V3.4
Convert an RGB value into an integer grayscale value taking into account the pixel range, representation and photometric interpretation. No gamma correction is performed to compensate for non-linearity of the input device.

Namespace:  LaurelBridge.DCF.Examples.BitmapToDicom
Assembly:  BitmapToDicom (in BitmapToDicom.exe) Version: DCF34 r11195 DCF_3_4_18
Syntax

C#
public int ToGray(
	byte r,
	byte g,
	byte b
)

Parameters

r
Type: SystemByte
red byte value
g
Type: SystemByte
green byte value
b
Type: SystemByte
blue byte value

Return Value

Type: Int32
the scaled value such that (0 <= value < scale)
See Also

Reference