get_image_typeget_image_typeGetImageTypeGetImageType (Operator)
Name
get_image_typeget_image_typeGetImageTypeGetImageType
— Liefert den Bildtyp.
Signatur
Herror get_image_type(const Hobject Image, char* Type)
Herror T_get_image_type(const Hobject Image, Htuple* Type)
Beschreibung
get_image_typeget_image_typeGetImageTypeGetImageTypeGetImageType
liefert den Bildtyp
(TypeTypeTypeTypetype
= 'byte', 'int2', 'uint2' etc.) zurück.
Achtung
Bei mehrkanaligen Eingabebildern wird der Bildtyp des ersten Kanals
zurückgegeben.
Ausführungsinformationen
- Unterstützt Objekte auf Compute Devices.
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
ImageImageImageImageimage
(input_object) (multichannel-)image(-array) →
objectHImageHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
Eingabebild.
TypeTypeTypeTypetype
(output_control) string(-array) →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Typ des Bildes.
Werteliste: 'byte'"byte""byte""byte""byte", 'complex'"complex""complex""complex""complex", 'cyclic'"cyclic""cyclic""cyclic""cyclic", 'direction'"direction""direction""direction""direction", 'int1'"int1""int1""int1""int1", 'int2'"int2""int2""int2""int2", 'int4'"int4""int4""int4""int4", 'int8'"int8""int8""int8""int8", 'real'"real""real""real""real", 'uint2'"uint2""uint2""uint2""uint2", 'vector_field_absolute'"vector_field_absolute""vector_field_absolute""vector_field_absolute""vector_field_absolute", 'vector_field_relative'"vector_field_relative""vector_field_relative""vector_field_relative""vector_field_relative"
Ergebnis
get_image_typeget_image_typeGetImageTypeGetImageTypeGetImageType
liefert den Wert 2 (H_MSG_TRUE) zurück.
Das Verhalten bei leerer Eingabe (keine Eingabebilder vorhanden) lässt
sich mittels set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)
festlegen.
Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.
Vorgänger
read_imageread_imageReadImageReadImageReadImage
Alternativen
get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1GetImagePointer1
Siehe auch
get_image_sizeget_image_sizeGetImageSizeGetImageSizeGetImageSize
Modul
Foundation