Copy an image and allocate new memory for it.
dup_image copies the first channel of the input image into a new (single-channel) image with the same domain as the imput image. In contrast to HORUS operators such as copy_obj, the image is copied into a newly allocated memory segment. This can be used to modify the gray values of the new image, for example (see get_image_pointer__).
Image (input_object) |
image -> object |
Image to be copied. |
DupImage (output_object) |
image -> object |
Copied image. |
set_greyval__, get_image_pointer__
set_greyval__, paint_grey__, new_image__, clear_image