gen_image_protogen_image_protoGenImageProtoGenImageProto (Operator)

Name

gen_image_protogen_image_protoGenImageProtoGenImageProto — Erzeugen eines Bildes mit einem konstanten Grauwert.

Signatur

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)

void GenImageProto(const HObject& Image, HObject* ImageCleared, const HTuple& Grayval)

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

HImage HImage::GenImageProto(double Grayval) const

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

HImage HImage.GenImageProto(HTuple grayval)

HImage HImage.GenImageProto(double grayval)

Beschreibung

gen_image_protogen_image_protoGenImageProtoGenImageProtoGenImageProto erzeugt ein Ausgabebild ImageClearedImageClearedImageClearedImageClearedimageCleared mit dem konstanten Grauwert GrayvalGrayvalGrayvalGrayvalgrayval. Ist das Eingabebild vom Typ 'direction', werden Grauwerte im Ausgabebild, die nicht innerhalb des für 'direction'-Bilder erlaubten Wertebereichs liegen, auf den Wert 255 gesetzt, um sie als ungültig zu kennzeichnen. ImageClearedImageClearedImageClearedImageClearedimageCleared hat dieselbe Größe und denselben Pixeltyp wie das Eingabebild ImageImageImageImageimage.

Ausführungsinformationen

Parameter

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

Eingabebild.

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

Mit konstantem Wert belegtes Bild.

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

Mit diesem Grauwert wird das Ausgabebild erzeugt.

Defaultwert: 0

Wertevorschläge: 0, 1, 2, 5, 10, 16, 32, 64, 128, 253, 254, 255

Ergebnis

Sind die Parameterwerte korrekt, dann liefert gen_image_protogen_image_protoGenImageProtoGenImageProtoGenImageProto den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung ausgelöst.

Alternativen

set_grayvalset_grayvalSetGrayvalSetGrayvalSetGrayval, paint_graypaint_grayPaintGrayPaintGrayPaintGray, gen_image_constgen_image_constGenImageConstGenImageConstGenImageConst, copy_imagecopy_imageCopyImageCopyImageCopyImage

Siehe auch

get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1GetImagePointer1

Modul

Foundation