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.DCFExamples.BitmapToNde
Assembly:  BitmapToNde (in BitmapToNde.exe) Version: DCF34 r13043 DCF_3_4_56_20220408 NetFramework
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