paint_graypaint_grayPaintGrayPaintGray (Operator)

Name

paint_graypaint_grayPaintGrayPaintGray — Zeichnet die Grauwerte eines Bildes in ein anderes Bild ein.

Signatur

paint_gray(ImageSource, ImageDestination : MixedImage : : )

Herror paint_gray(const Hobject ImageSource, const Hobject ImageDestination, Hobject* MixedImage)

Herror T_paint_gray(const Hobject ImageSource, const Hobject ImageDestination, Hobject* MixedImage)

void PaintGray(const HObject& ImageSource, const HObject& ImageDestination, HObject* MixedImage)

HImage HImage::PaintGray(const HImage& ImageDestination) const

static void HOperatorSet.PaintGray(HObject imageSource, HObject imageDestination, out HObject mixedImage)

HImage HImage.PaintGray(HImage imageDestination)

Beschreibung

paint_graypaint_grayPaintGrayPaintGrayPaintGray zeichnet die Grauwerte des Bildes aus ImageSourceImageSourceImageSourceImageSourceimageSource in das Bild in ImageDestinationImageDestinationImageDestinationImageDestinationimageDestination ein und liefert das resultierende Bild in MixedImageMixedImageMixedImageMixedImagemixedImage zurück. Kopiert werden nur die Grauwerte aus dem Definitionsbereich von ImageSourceImageSourceImageSourceImageSourceimageSource (siehe reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain).

Als Alternative zu paint_graypaint_grayPaintGrayPaintGrayPaintGray zeichnet der Operator overpaint_grayoverpaint_grayOverpaintGrayOverpaintGrayOverpaintGray die Grauwerte direkt in ImageDestinationImageDestinationImageDestinationImageDestinationimageDestination ein.

Ausführungsinformationen

Parameter

ImageSourceImageSourceImageSourceImageSourceimageSource (input_object)  (multichannel-)image objectHImageHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / vector_field)

Eingabebild, das die zusätzlichen Grauwerte liefert.

ImageDestinationImageDestinationImageDestinationImageDestinationimageDestination (input_object)  (multichannel-)image objectHImageHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / vector_field)

Eingabebild, in das eingezeichnet werden soll.

MixedImageMixedImageMixedImageMixedImagemixedImage (output_object)  image objectHImageHImageHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / vector_field)

Ergebnisbild.

Beispiel (HDevelop)

* Copy a circular part of the image 'monkey' into the image 'fabrik':

read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
read_image(Image2,'fabrik')
* Copy a part of the image 'monkey' into 'fabrik'
paint_gray(Mask,Image2,MixedImage)

Beispiel (C)

/* Copy a circular part of the image 'monkey' into the image 'fabrik': */

read_image(&Image,"monkey");
gen_circle(&Circle,200.0,200.0,150.0);
reduce_domain(Image,Circle,&Mask);
read_image(&Image,"fabrik");
/* Copy a part of the image 'monkey' into 'fabrik' */
paint_gray(Mask,Image2,&MixedImage);

Beispiel (HDevelop)

* Copy a circular part of the image 'monkey' into the image 'fabrik':

read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
read_image(Image2,'fabrik')
* Copy a part of the image 'monkey' into 'fabrik'
paint_gray(Mask,Image2,MixedImage)

Beispiel (HDevelop)

* Copy a circular part of the image 'monkey' into the image 'fabrik':

read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
read_image(Image2,'fabrik')
* Copy a part of the image 'monkey' into 'fabrik'
paint_gray(Mask,Image2,MixedImage)

Beispiel (HDevelop)

* Copy a circular part of the image 'monkey' into the image 'fabrik':

read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
read_image(Image2,'fabrik')
* Copy a part of the image 'monkey' into 'fabrik'
paint_gray(Mask,Image2,MixedImage)

Ergebnis

Sind die Parameterwerte korrekt, liefert paint_graypaint_grayPaintGrayPaintGrayPaintGray den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

read_imageread_imageReadImageReadImageReadImage, gen_image_constgen_image_constGenImageConstGenImageConstGenImageConst, gen_image_protogen_image_protoGenImageProtoGenImageProtoGenImageProto

Alternativen

get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1GetImagePointer1, set_grayvalset_grayvalSetGrayvalSetGrayvalSetGrayval, copy_imagecopy_imageCopyImageCopyImageCopyImage, overpaint_grayoverpaint_grayOverpaintGrayOverpaintGrayOverpaintGray

Siehe auch

paint_regionpaint_regionPaintRegionPaintRegionPaintRegion, overpaint_regionoverpaint_regionOverpaintRegionOverpaintRegionOverpaintRegion

Modul

Foundation