rgb3_to_grayrgb3_to_grayRgb3ToGrayRgb3ToGray (Operator)

Name

rgb3_to_grayrgb3_to_grayRgb3ToGrayRgb3ToGray — Berechnung eines Graubildes aus drei Bildern (RGB).

Signatur

rgb3_to_gray(ImageRed, ImageGreen, ImageBlue : ImageGray : : )

Herror rgb3_to_gray(const Hobject ImageRed, const Hobject ImageGreen, const Hobject ImageBlue, Hobject* ImageGray)

Herror T_rgb3_to_gray(const Hobject ImageRed, const Hobject ImageGreen, const Hobject ImageBlue, Hobject* ImageGray)

void Rgb3ToGray(const HObject& ImageRed, const HObject& ImageGreen, const HObject& ImageBlue, HObject* ImageGray)

HImage HImage::Rgb3ToGray(const HImage& ImageGreen, const HImage& ImageBlue) const

static void HOperatorSet.Rgb3ToGray(HObject imageRed, HObject imageGreen, HObject imageBlue, out HObject imageGray)

HImage HImage.Rgb3ToGray(HImage imageGreen, HImage imageBlue)

Beschreibung

rgb3_to_grayrgb3_to_grayRgb3ToGrayRgb3ToGrayRgb3ToGray transformiert ein RGB-Bild in ein Graubild. Die drei Kanäle werden als drei getrennte Bilder übergegeben. Die Transformation erfolgt nach folgender Formel: gray = 0.299 * red + 0.587 * green + 0.114 * blue .

Ausführungsinformationen

Parameter

ImageRedImageRedImageRedImageRedimageRed (input_object)  singlechannelimage(-array) objectHImageHImageHobject (byte / int2 / uint2 / real)

Eingabebild (Rot-Kanal).

ImageGreenImageGreenImageGreenImageGreenimageGreen (input_object)  singlechannelimage(-array) objectHImageHImageHobject (byte / int2 / uint2 / real)

Eingabebild (Grün-Kanal).

ImageBlueImageBlueImageBlueImageBlueimageBlue (input_object)  singlechannelimage(-array) objectHImageHImageHobject (byte / int2 / uint2 / real)

Eingabebild (Blau-Kanal).

ImageGrayImageGrayImageGrayImageGrayimageGray (output_object)  singlechannelimage(-array) objectHImageHImageHobject * (byte / int2 / uint2 / real)

Graubild.

Beispiel (HDevelop)

* Transformation from rgb to gray
read_image(Image,'patras')
dev_display(Image)
decompose3(Image, ImageR, ImageG, ImageB)
rgb3_to_gray(ImageR,ImageG,ImageB,GrayImage)
dev_display(GrayImage)

Beispiel (C)

/* Transformation from rgb to gray  */
read_image(Image,"patras");
disp_color(Image,WindowHandle);
decompose3(Image,&Rimage,&Gimage,&Bimage);
rgb3_to_gray(Rimage,Gimage,Bimage,&GrayImage);
disp_image(GrayImage,WindowHandle);

Beispiel (HDevelop)

* Transformation from rgb to gray
read_image(Image,'patras')
dev_display(Image)
decompose3(Image, ImageR, ImageG, ImageB)
rgb3_to_gray(ImageR,ImageG,ImageB,GrayImage)
dev_display(GrayImage)

Beispiel (HDevelop)

* Transformation from rgb to gray
read_image(Image,'patras')
dev_display(Image)
decompose3(Image, ImageR, ImageG, ImageB)
rgb3_to_gray(ImageR,ImageG,ImageB,GrayImage)
dev_display(GrayImage)

Beispiel (HDevelop)

* Transformation from rgb to gray
read_image(Image,'patras')
dev_display(Image)
decompose3(Image, ImageR, ImageG, ImageB)
rgb3_to_gray(ImageR,ImageG,ImageB,GrayImage)
dev_display(GrayImage)

Vorgänger

decompose3decompose3Decompose3Decompose3Decompose3

Alternativen

rgb1_to_grayrgb1_to_grayRgb1ToGrayRgb1ToGrayRgb1ToGray, trans_from_rgbtrans_from_rgbTransFromRgbTransFromRgbTransFromRgb

Modul

Foundation