paint_grey__ ( ImageSource, ImageDestination : MixedImage : : )

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).


Parameters

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.


Example
/* 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::).

Result

paint_grey__ returns TRUE if all parameters are correct. If necessary, an exception is raised.


Possible Predecessors

read_image, new_image__, clear_image


Alternatives

get_image_pointer__, set_greyval__, dup_image


See also

paint_region__



Copyright © 1996-1997 MVTec Software GmbH