HALCON Reference Manual 10.0.2
Table of Contents / Image / Creation ClassesClassesClasses | | | Operators

gen_image_protogen_image_protogen_image_protoGenImageProtoGenImageProto (Operator)

Name

gen_image_protogen_image_protogen_image_protoGenImageProtoGenImageProto — Create an image with a specified constant gray value.

Signature

gen_image_proto(Image : ImageCleared : Grayval : )

Herror gen_image_proto(const Hobject Image, Hobject* ImageCleared, double Grayval)

Herror T_gen_image_proto(const Hobject Image, Hobject* ImageCleared, const Htuple Grayval)

Herror gen_image_proto(Hobject Image, Hobject* ImageCleared, const HTuple& Grayval)

HImage HImage::GenImageProto(const HTuple& Grayval) const

void HOperatorSetX.GenImageProto(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*ImageCleared, [in] VARIANT Grayval)

IHImageX* HImageX.GenImageProto([in] VARIANT Grayval)

static void HOperatorSet.GenImageProto(HObject image, out HObject imageCleared, HTuple grayval)

HImage HImage.GenImageProto(HTuple grayval)

HImage HImage.GenImageProto(double grayval)

Description

gen_image_protogen_image_protogen_image_protoGenImageProtoGenImageProto creates an output image ImageClearedImageClearedImageClearedImageClearedimageCleared with the constant gray value GrayvalGrayvalGrayvalGrayvalgrayval. ImageClearedImageClearedImageClearedImageClearedimageCleared has the same dimensions and pixel type as the input image ImageImageImageImageimage.

Parallelization

Parameters

ImageImageImageImageimage (input_object)  image objectHImageHImageHImageXHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Input image.

ImageClearedImageClearedImageClearedImageClearedimageCleared (output_object)  image objectHImageHImageHImageXHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Image with constant gray value.

GrayvalGrayvalGrayvalGrayvalgrayval (input_control)  number HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)

Gray value to be used for the output image.

Default value: 0

Suggested values: 0, 1, 2, 5, 10, 16, 32, 64, 128, 253, 254, 255

Result

gen_image_protogen_image_protogen_image_protoGenImageProtoGenImageProto returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised.

Alternatives

set_grayvalset_grayvalset_grayvalSetGrayvalSetGrayval, paint_graypaint_graypaint_grayPaintGrayPaintGray, gen_image_constgen_image_constgen_image_constGenImageConstGenImageConst, copy_imagecopy_imagecopy_imageCopyImageCopyImage

See also

get_image_pointer1get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1

Module

Foundation


Table of Contents / Image / Creation ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH