paint_graypaint_grayPaintGrayPaintGraypaint_gray (Operator)

Name

paint_graypaint_grayPaintGrayPaintGraypaint_gray — 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)

def paint_gray(image_source: HObject, image_destination: HObject) -> HObject

Beschreibung

paint_graypaint_grayPaintGrayPaintGrayPaintGraypaint_gray zeichnet die Grauwerte des Bildes aus ImageSourceImageSourceImageSourceImageSourceimageSourceimage_source in das Bild in ImageDestinationImageDestinationImageDestinationImageDestinationimageDestinationimage_destination ein und liefert das resultierende Bild in MixedImageMixedImageMixedImageMixedImagemixedImagemixed_image zurück. Kopiert werden nur die Grauwerte aus dem Definitionsbereich von ImageSourceImageSourceImageSourceImageSourceimageSourceimage_source (siehe reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain).

Als Alternative zu paint_graypaint_grayPaintGrayPaintGrayPaintGraypaint_gray zeichnet der Operator overpaint_grayoverpaint_grayOverpaintGrayOverpaintGrayOverpaintGrayoverpaint_gray die Grauwerte direkt in ImageDestinationImageDestinationImageDestinationImageDestinationimageDestinationimage_destination ein.

Ausführungsinformationen

Parameter

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

Eingabebild, das die zusätzlichen Grauwerte liefert.

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

Eingabebild, in das eingezeichnet werden soll.

MixedImageMixedImageMixedImageMixedImagemixedImagemixed_image (output_object)  image objectHImageHObjectHImageHobject * (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_grayPaintGrayPaintGrayPaintGraypaint_gray den Wert TRUE. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

read_imageread_imageReadImageReadImageReadImageread_image, gen_image_constgen_image_constGenImageConstGenImageConstGenImageConstgen_image_const, gen_image_protogen_image_protoGenImageProtoGenImageProtoGenImageProtogen_image_proto

Alternativen

get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1GetImagePointer1get_image_pointer1, set_grayvalset_grayvalSetGrayvalSetGrayvalSetGrayvalset_grayval, copy_imagecopy_imageCopyImageCopyImageCopyImagecopy_image, overpaint_grayoverpaint_grayOverpaintGrayOverpaintGrayOverpaintGrayoverpaint_gray

Siehe auch

paint_regionpaint_regionPaintRegionPaintRegionPaintRegionpaint_region, overpaint_regionoverpaint_regionOverpaintRegionOverpaintRegionOverpaintRegionoverpaint_region

Modul

Foundation