Herror ::copy_image (
    Hobject Image,
    Hobject *DupImage
)
HImage HImage::CopyImage (
    void
) const

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 -> Hobject: HImage
Image to be copied.

DupImage (output_object)
image -> Hobject * : HImage
Copied image.


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-2002 MVTec Software GmbH