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

get_image_typeget_image_typeget_image_typeGetImageTypeGetImageType (Operator)

Name

get_image_typeget_image_typeget_image_typeGetImageTypeGetImageType — Return the type of an image.

Signature

get_image_type(Image : : : Type)

Herror get_image_type(const Hobject Image, char* Type)

Herror T_get_image_type(const Hobject Image, Htuple* Type)

Herror get_image_type(Hobject Image, char* Type)

Herror get_image_type(Hobject Image, HTuple* Type)

HTuple HImage::GetImageType() const

HTuple HImageArray::GetImageType() const

void HOperatorSetX.GetImageType(
[in] IHUntypedObjectX* Image, [out] VARIANT* Type)

VARIANT HImageX.GetImageType()

static void HOperatorSet.GetImageType(HObject image, out HTuple type)

HTuple HImage.GetImageType()

Description

The operator get_image_typeget_image_typeget_image_typeGetImageTypeGetImageType returns the image type (TypeTypeTypeTypetype = 'byte', 'int2', 'uint2', etc.).

Attention

For multi-channel input images the type of the first channel is returned.

Parallelization

Parameters

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

Input image.

TypeTypeTypeTypetype (output_control)  string(-array) HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Type of image.

List of values: 'int1'"int1""int1""int1""int1", 'int2'"int2""int2""int2""int2", 'uint2'"uint2""uint2""uint2""uint2", 'int4'"int4""int4""int4""int4", 'int8'"int8""int8""int8""int8", 'byte'"byte""byte""byte""byte", 'real'"real""real""real""real", 'direction'"direction""direction""direction""direction", 'cyclic'"cyclic""cyclic""cyclic""cyclic", 'complex'"complex""complex""complex""complex", 'vector_field'"vector_field""vector_field""vector_field""vector_field"

Result

The operator get_image_typeget_image_typeget_image_typeGetImageTypeGetImageType returns the value 2 (H_MSG_TRUE). The behavior in case of empty input (no input images available) is set via the operator set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>). If necessary an exception is raised.

Possible Predecessors

read_imageread_imageread_imageReadImageReadImage

Alternatives

get_image_pointer1get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1

See also

get_image_sizeget_image_sizeget_image_sizeGetImageSizeGetImageSize

Module

Foundation


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