Copy the gray values of an image into another image.
paint_grey__ copies the gray values of the images given in ImageSource into the image in ImageDestination. Only the gray values of the domain of ImageSource are copied (see reduce_domain).
ImageSource (input_object) |
image -> object |
Input image containing the desired gray values. |
ImageDestination (input_object) |
image -> object |
Input image to be painted over. |
MixedImage (output_object) |
image -> object |
Result image. |
/* Copy of a segment (circle) of the image 'affe' into a new image (New): */ read_image(:Image:'affe':) > circle(:Circle:200,200,150:) > reduce_domain(Image,Circle:Mask::) > /* New image with black (0) background */ clear_image(Image:New1:0.0:) > /* Copy of a segment of the image 'affe' into New1 */ paint_grey__(Mask,New1:New::).
paint_grey__ returns TRUE if all parameters are correct. If necessary, an exception is raised.
read_image, new_image__, clear_image
get_image_pointer__, set_greyval__, dup_image