get_channel_infoget_channel_infoGetChannelInfoGetChannelInfo (Operator)

Name

get_channel_infoget_channel_infoGetChannelInfoGetChannelInfo — Informationen über die Komponenten eines Bildobjektes.

Signatur

get_channel_info(Object : : Request, Channel : Information)

Herror get_channel_info(const Hobject Object, const char* Request, const Hlong Channel, char* Information)

Herror T_get_channel_info(const Hobject Object, const Htuple Request, const Htuple Channel, Htuple* Information)

void GetChannelInfo(const HObject& Object, const HTuple& Request, const HTuple& Channel, HTuple* Information)

HTuple HObject::GetChannelInfo(const HString& Request, const HTuple& Channel) const

HString HObject::GetChannelInfo(const HString& Request, Hlong Channel) const

HString HObject::GetChannelInfo(const char* Request, Hlong Channel) const

HString HObject::GetChannelInfo(const wchar_t* Request, Hlong Channel) const   (Nur Windows)

static void HOperatorSet.GetChannelInfo(HObject objectVal, HTuple request, HTuple channel, out HTuple information)

HTuple HObject.GetChannelInfo(string request, HTuple channel)

string HObject.GetChannelInfo(string request, int channel)

Beschreibung

get_channel_infoget_channel_infoGetChannelInfoGetChannelInfoGetChannelInfo liefert Informationen über die Komponenten eines Bildobjektes. Folgende Abfragen (RequestRequestRequestRequestrequest) sind derzeit möglich:

'creator'

Ausgabe der Namen der Prozeduren, die die Komponenten (nicht das Objekt) ursprünglich angelegt haben.

'type'

Ausgabe des Typs der Bildkomponente ('byte', 'int1', 'int2', 'uint2' 'int4', 'real', 'direction', 'cyclic', 'complex', 'vector_field'). Die Komponente 0 ist vom Typ 'region' oder 'xld'.

Im Tupel ChannelChannelChannelChannelchannel werden die Nummern der Komponenten angegeben, über die Informationen gewünscht werden. InformationInformationInformationInformationinformation enthält nach Ausführung von get_channel_infoget_channel_infoGetChannelInfoGetChannelInfoGetChannelInfo ein Tupel von Strings (je ein String pro Eintrag in ChannelChannelChannelChannelchannel) mit den gewünschten Informationen.

Die in HALCON verfügbaren ikonischen Objekte werden bei der Einleitung zu Kapitel Objekt vorgestellt.

Ausführungsinformationen

Parameter

ObjectObjectObjectObjectobjectVal (input_object)  object objectHObjectHObjectHobject

Zu untersuchendes Bildobjekt.

RequestRequestRequestRequestrequest (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Gewünschte Information über Objektkomponenten.

Defaultwert: 'creator' "creator" "creator" "creator" "creator"

Werteliste: 'creator'"creator""creator""creator""creator", 'type'"type""type""type""type"

ChannelChannelChannelChannelchannel (input_control)  channel(-array) HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zu untersuchende Komponenten (0 für Region/XLD).

Defaultwert: 0

Wertevorschläge: 0, 1, 2, 3, 4, 5, 6, 7, 8

InformationInformationInformationInformationinformation (output_control)  string(-array) HTupleHTupleHtuple (string) (string) (HString) (char*)

Angeforderte Information.

Ergebnis

Sind die Parameter korrekt, liefert get_channel_infoget_channel_infoGetChannelInfoGetChannelInfoGetChannelInfo den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

read_imageread_imageReadImageReadImageReadImage

Siehe auch

count_relationcount_relationCountRelationCountRelationCountRelation

Modul

Foundation