ClassesClassesClassesClasses | | | | Operators

paint_graypaint_grayPaintGraypaint_grayPaintGrayPaintGray (Operator)

Name

paint_graypaint_grayPaintGraypaint_grayPaintGrayPaintGray — Paint the gray values of an image into another image.

Signature

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)

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

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

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

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

void HOperatorSetX.PaintGray(
[in] IHUntypedObjectX* ImageSource, [in] IHUntypedObjectX* ImageDestination, [out] IHUntypedObjectX*MixedImage)

IHImageX* HImageX.PaintGray([in] IHImageX* ImageDestination)

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

HImage HImage.PaintGray(HImage imageDestination)

Description

paint_graypaint_grayPaintGraypaint_grayPaintGrayPaintGray paints the gray values of the image given in ImageSourceImageSourceImageSourceImageSourceImageSourceimageSource into the image in ImageDestinationImageDestinationImageDestinationImageDestinationImageDestinationimageDestination and returns the resulting image in MixedImageMixedImageMixedImageMixedImageMixedImagemixedImage. Only the gray values of the domain of ImageSourceImageSourceImageSourceImageSourceImageSourceimageSource are copied (see reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain).

As an alternative to paint_graypaint_grayPaintGraypaint_grayPaintGrayPaintGray, you can use the operator overpaint_grayoverpaint_grayOverpaintGrayoverpaint_grayOverpaintGrayOverpaintGray, which directly paints the gray values into ImageDestinationImageDestinationImageDestinationImageDestinationImageDestinationimageDestination.

Parallelization

Parameters

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

Input image containing the desired gray values.

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

Input image to be painted over.

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

Result image.

Example (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)

Example (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);

Example (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)

Example (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)

Example (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)

Example (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)

Result

paint_graypaint_grayPaintGraypaint_grayPaintGrayPaintGray returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised.

Possible Predecessors

read_imageread_imageReadImageread_imageReadImageReadImage, gen_image_constgen_image_constGenImageConstgen_image_constGenImageConstGenImageConst, gen_image_protogen_image_protoGenImageProtogen_image_protoGenImageProtoGenImageProto

Alternatives

get_image_pointer1get_image_pointer1GetImagePointer1get_image_pointer1GetImagePointer1GetImagePointer1, set_grayvalset_grayvalSetGrayvalset_grayvalSetGrayvalSetGrayval, copy_imagecopy_imageCopyImagecopy_imageCopyImageCopyImage, overpaint_grayoverpaint_grayOverpaintGrayoverpaint_grayOverpaintGrayOverpaintGray

See also

paint_regionpaint_regionPaintRegionpaint_regionPaintRegionPaintRegion, overpaint_regionoverpaint_regionOverpaintRegionoverpaint_regionOverpaintRegionOverpaintRegion

Module

Foundation


ClassesClassesClassesClasses | | | | Operators