copy_image ( Image : DupImage : : )

Copy an image and allocate new memory for it.

copy_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 HALCON 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_pointer1).


Parameters

Image (input_object)
image -> object : byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / dvf
Image to be copied.

DupImage (output_object)
image -> object : byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / dvf
Copied image.


Parallelization Information

copy_image is reentrant and processed without parallelization.


Possible Predecessors

read_image, gen_image_const


Possible Successors

set_grayval, get_image_pointer1


Alternatives

set_grayval, paint_gray, gen_image_const, gen_image_proto


See also

get_image_pointer1


Module

Basic operators



Copyright © 1996-2005 MVTec Software GmbH