Name
paint_graypaint_grayPaintGrayPaintGray — Paint the gray values of an image into another image.
paint_graypaint_grayPaintGrayPaintGrayPaintGray paints the gray values of the image given in
ImageSourceImageSourceImageSourceImageSourceimageSource into the image in ImageDestinationImageDestinationImageDestinationImageDestinationimageDestination and returns
the resulting image in MixedImageMixedImageMixedImageMixedImagemixedImage. Only the gray values of the
domain of ImageSourceImageSourceImageSourceImageSourceimageSource are copied (see reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain).
As an alternative to paint_graypaint_grayPaintGrayPaintGrayPaintGray, you can use the operator
overpaint_grayoverpaint_grayOverpaintGrayOverpaintGrayOverpaintGray, which directly paints the gray values into
ImageDestinationImageDestinationImageDestinationImageDestinationimageDestination.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Input image containing the desired gray values.
Input image to be painted over.
* 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)
/* 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);
* 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)
* 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)
* 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)
paint_graypaint_grayPaintGrayPaintGrayPaintGray returns 2 (H_MSG_TRUE) if all parameters are
correct. If necessary, an exception is raised.
read_imageread_imageReadImageReadImageReadImage,
gen_image_constgen_image_constGenImageConstGenImageConstGenImageConst,
gen_image_protogen_image_protoGenImageProtoGenImageProtoGenImageProto
get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1GetImagePointer1,
set_grayvalset_grayvalSetGrayvalSetGrayvalSetGrayval,
copy_imagecopy_imageCopyImageCopyImageCopyImage,
overpaint_grayoverpaint_grayOverpaintGrayOverpaintGrayOverpaintGray
paint_regionpaint_regionPaintRegionPaintRegionPaintRegion,
overpaint_regionoverpaint_regionOverpaintRegionOverpaintRegionOverpaintRegion
Foundation