get_disp_object_model_3d_infoT_get_disp_object_model_3d_infoGetDispObjectModel3dInfoGetDispObjectModel3dInfoget_disp_object_model_3d_info (Operator)
Name
get_disp_object_model_3d_infoT_get_disp_object_model_3d_infoGetDispObjectModel3dInfoGetDispObjectModel3dInfoget_disp_object_model_3d_info — Zurückgeben der Tiefe oder des Indexes eines dargestellten 3D Objektmodells.
Signatur
void GetDispObjectModel3dInfo(const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column, const HTuple& Information, HTuple* Value)
static HTuple HObjectModel3D::GetDispObjectModel3dInfo(const HWindow& WindowHandle, const HTuple& Row, const HTuple& Column, const HTuple& Information)
static Hlong HObjectModel3D::GetDispObjectModel3dInfo(const HWindow& WindowHandle, double Row, double Column, const HString& Information)
static Hlong HObjectModel3D::GetDispObjectModel3dInfo(const HWindow& WindowHandle, double Row, double Column, const char* Information)
static Hlong HObjectModel3D::GetDispObjectModel3dInfo(const HWindow& WindowHandle, double Row, double Column, const wchar_t* Information)
(Nur Windows)
static void HOperatorSet.GetDispObjectModel3dInfo(HTuple windowHandle, HTuple row, HTuple column, HTuple information, out HTuple value)
static HTuple HObjectModel3D.GetDispObjectModel3dInfo(HWindow windowHandle, HTuple row, HTuple column, HTuple information)
static int HObjectModel3D.GetDispObjectModel3dInfo(HWindow windowHandle, double row, double column, string information)
def get_disp_object_model_3d_info(window_handle: HHandle, row: MaybeSequence[Union[float, int]], column: MaybeSequence[Union[float, int]], information: MaybeSequence[str]) -> Sequence[Union[int, float]]
def get_disp_object_model_3d_info_s(window_handle: HHandle, row: MaybeSequence[Union[float, int]], column: MaybeSequence[Union[float, int]], information: MaybeSequence[str]) -> Union[int, float]
Beschreibung
get_disp_object_model_3d_infoget_disp_object_model_3d_infoGetDispObjectModel3dInfoGetDispObjectModel3dInfoGetDispObjectModel3dInfoget_disp_object_model_3d_info gibt Informationen über die
3D Objektmodelle, die im Fenster WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle an den
Positionen (RowRowRowRowrowrow, ColumnColumnColumnColumncolumncolumn) mit disp_object_model_3ddisp_object_model_3dDispObjectModel3dDispObjectModel3dDispObjectModel3ddisp_object_model_3d
angezeigt wurden in ValueValueValueValuevaluevalue zurück.
Mit dem Parameter InformationInformationInformationInformationinformationinformation wird ausgewählt, welche
Werte zurückgegeben werden:
- 'object_index'"object_index""object_index""object_index""object_index""object_index"
-
Die Indices der 3D Objektmodelle, die an den Positionen (RowRowRowRowrowrow,
ColumnColumnColumnColumncolumncolumn) dargestellt wurden. Befindet sich kein 3D Objektmodell an
einer dieser Stellen, wird -1 zurückgegeben.
Um diese Information ermitteln zu können, muss bei
disp_object_model_3ddisp_object_model_3dDispObjectModel3dDispObjectModel3dDispObjectModel3ddisp_object_model_3d der generische Parameter
'object_index_persistence'"object_index_persistence""object_index_persistence""object_index_persistence""object_index_persistence""object_index_persistence" auf 'true'"true""true""true""true""true" gesetzt worden
sein.
- 'depth'"depth""depth""depth""depth""depth"
Die Tiefe (d.h. die Z Koordinate im Kamerakoordinatensystem) an den
Positionen (RowRowRowRowrowrow, ColumnColumnColumnColumncolumncolumn). Befindet sich
kein 3D Objektmodell an einer dieser Stellen, wird -1.0
zurückgegeben.
Um diese Information ermitteln zu können, muss bei
disp_object_model_3ddisp_object_model_3dDispObjectModel3dDispObjectModel3dDispObjectModel3ddisp_object_model_3d der generische Parameter
'depth_persistence'"depth_persistence""depth_persistence""depth_persistence""depth_persistence""depth_persistence" auf 'true'"true""true""true""true""true" gesetzt worden sein.
Die Fensterkoordinaten RowRowRowRowrowrow und ColumnColumnColumnColumncolumncolumn beziehen sich auf
den gesetzten Bildausschnitt.
Dabei werden sie als subpixelgenaue eckenzentrierte Koordinaten aufgefasst,
siehe Transformationen / 2D-Transformationen.
D.h., ist der Bildausschnitt durch
(Zeile1,Spalte1,Zeile2,Spalte2) gegeben
(im HALCON Standard-Koordinatensystem), entspricht die linke obere Ecke den
Koordinaten (Zeile1 - 0.5, Spalte1 - 0.5), die rechte untere
Ecke den Koordinaten (Zeile2 - 0.5, Spalte2 - 0.5).
Die Operatoren get_mposition_sub_pixget_mposition_sub_pixGetMpositionSubPixGetMpositionSubPixGetMpositionSubPixget_mposition_sub_pix oder
get_mbutton_sub_pixget_mbutton_sub_pixGetMbuttonSubPixGetMbuttonSubPixGetMbuttonSubPixget_mbutton_sub_pix können verwendet werden, um diese Koordinaten
direkt zu erhalten.
Für Fensterkoordinaten, die Werten ausserhalb des gesetzten Bildausschnittes
entsprechen, ist das Verhalten des Operators undefiniert.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Automatisch parallelisiert auf interner Datenebene.
Parameter
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Fensteridentifikator.
RowRowRowRowrowrow (input_control) integer(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Zeilenkoordinaten.
ColumnColumnColumnColumncolumncolumn (input_control) integer(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Spaltenkoordinaten.
InformationInformationInformationInformationinformationinformation (input_control) string(-array) → HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Abzufragende Information.
Defaultwert:
'depth'
"depth"
"depth"
"depth"
"depth"
"depth"
Werteliste: 'depth'"depth""depth""depth""depth""depth", 'object_index'"object_index""object_index""object_index""object_index""object_index"
ValueValueValueValuevaluevalue (output_control) integer(-array) → HTupleSequence[Union[int, float]]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)
Werte an (Row,Column).
Ergebnis
get_disp_object_model_3d_infoget_disp_object_model_3d_infoGetDispObjectModel3dInfoGetDispObjectModel3dInfoGetDispObjectModel3dInfoget_disp_object_model_3d_info liefert den Wert 2 (H_MSG_TRUE), falls die
Parameter korrekt sind.
Vorgänger
disp_object_model_3ddisp_object_model_3dDispObjectModel3dDispObjectModel3dDispObjectModel3ddisp_object_model_3d,
get_mbuttonget_mbuttonGetMbuttonGetMbuttonGetMbuttonget_mbutton,
get_mbutton_sub_pixget_mbutton_sub_pixGetMbuttonSubPixGetMbuttonSubPixGetMbuttonSubPixget_mbutton_sub_pix,
get_mpositionget_mpositionGetMpositionGetMpositionGetMpositionget_mposition,
get_mposition_sub_pixget_mposition_sub_pixGetMpositionSubPixGetMpositionSubPixGetMpositionSubPixget_mposition_sub_pix
Siehe auch
disp_object_model_3ddisp_object_model_3dDispObjectModel3dDispObjectModel3dDispObjectModel3ddisp_object_model_3d
Modul
3D Metrology