Name
hom_mat2d_reflectT_hom_mat2d_reflectHomMat2dReflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflect — Fügt eine Spiegelung zu einer homogenen 2D-Transformationsmatrix hinzu.
void HomMat2dReflect(const HTuple& HomMat2D, const HTuple& Px, const HTuple& Py, const HTuple& Qx, const HTuple& Qy, HTuple* HomMat2DReflect)
HHomMat2D HHomMat2D::HomMat2dReflect(const HTuple& Px, const HTuple& Py, const HTuple& Qx, const HTuple& Qy) const
HHomMat2D HHomMat2D::HomMat2dReflect(double Px, double Py, double Qx, double Qy) const
static void HOperatorSet.HomMat2dReflect(HTuple homMat2D, HTuple px, HTuple py, HTuple qx, HTuple qy, out HTuple homMat2DReflect)
HHomMat2D HHomMat2D.HomMat2dReflect(HTuple px, HTuple py, HTuple qx, HTuple qy)
HHomMat2D HHomMat2D.HomMat2dReflect(double px, double py, double qx, double qy)
hom_mat2d_reflecthom_mat2d_reflectHomMat2dReflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflect fügt zur homogenen 2D-Transformationsmatrix
HomMat2DHomMat2DHomMat2DHomMat2DHomMat2DhomMat2D eine Spiegelung um die Achse, die durch die zwei Punkte
(PxPxPxPxPxpx,PyPyPyPyPypy) und (QxQxQxQxQxqx,QyQyQyQyQyqy) gegeben wird, hinzu
und liefert die resultierende Matrix in HomMat2DReflectHomMat2DReflectHomMat2DReflectHomMat2DReflectHomMat2DReflecthomMat2DReflect zurück.
Die Spiegelung wird durch eine 2×2 Spiegelungsmatrix
M beschrieben. Sie wird relativ zum
globalen (d.h. feststehenden) Koordinatensystem ausgeführt; dies
entspricht der folgenden Kette von Transformationsmatrizen:
Die Achse (PxPxPxPxPxpx,PyPyPyPyPypy)-(QxQxQxQxQxqx,QyQyQyQyQyqy) ist bei der
Spiegelung fixiert, d.h. die Achse bleibt unverändert, wenn man sie mit
HomMat2DReflectHomMat2DReflectHomMat2DReflectHomMat2DReflectHomMat2DReflecthomMat2DReflect transformiert. Dieses Verhalten wird erreicht, indem
zur Eingabe-Transformationsmatrix zuerst eine Translation hinzugefügt wird,
die die Achse in den Ursprung des globalen Koordinatensystems verschiebt.
Dann wird die Spiegelung hinzugefügt, und zuletzt eine Translation, die die
Achse wieder zurück in ihre Ausgangsposition verschiebt. Dies entspricht der
folgenden Kette von Transformationsmatrizen:
Um die Transformation im lokalen Koordinatensystem, das durch
HomMat2DHomMat2DHomMat2DHomMat2DHomMat2DhomMat2D beschrieben ist, durchzuführen, kann
hom_mat2d_reflect_localhom_mat2d_reflect_localHomMat2dReflectLocalhom_mat2d_reflect_localHomMat2dReflectLocalHomMat2dReflectLocal verwendet werden.
Es ist zu beachten, dass homogene Transformationsmatrizen sich auf
ein allgemeines rechtshändiges mathematisches Koordinatensystem
beziehen. Falls eine homogene Transformationsmatrix zur
Transformation von Bildern, Regionen, XLD-Konturen oder anderen
Daten, die aus Bildern extrahiert wurden, verwendet werden soll, ist
zu beachten, dass die Zeilenkoordinaten in den x-Koordinaten und die
Spaltenkoordinaten in den y-Koordinaten übergeben werden müssen.
Die Übergabereihenfolge von Zeilen- und Spaltenkoordinaten
entspricht also der üblichen Reihenfolge
(RowRowRowRowRowrow,ColumnColumnColumnColumnColumncolumn). Diese Konvention ist
unerlässlich, um bei der Transformation von Bilddaten ein
rechtshändiges Koordinatensystem zu erhalten, so dass
z.B. insbesondere Rotationen in der mathematisch korrekten
Drehrichtung ausgeführt werden.
Homogene Transformationsmatrizen werden zeilenweise in Form eines Tupels
abgespeichert; die letzte Zeile wird im Normalfall nicht gespeichert,
da sie für alle affinen Transformationsmatrizen identisch ist. Zum
Beispiel wird die Matrix
als das Tupel [ra, rb, tc, rd, re, tf] gespeichert. Es ist aber auch
möglich, volle 3×3 Matrizen, die eine projektive
2D-Transformation darstellen können, zu verarbeiten.
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Eingabe-Transformationsmatrix.
PxPxPxPxPxpx (input_control) point.x → HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)
Erster Punkt auf der Achse (x-Koordinate).
Defaultwert: 0
Wertevorschläge: 0, 16, 32, 64, 128, 256, 512, 1024
PyPyPyPyPypy (input_control) point.y → HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)
Erster Punkt auf der Achse (y-Koordinate).
Defaultwert: 0
Wertevorschläge: 0, 16, 32, 64, 128, 256, 512, 1024
QxQxQxQxQxqx (input_control) point.x → HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)
Zweiter Punkt auf der Achse (x-Koordinate).
Defaultwert: 16
Wertevorschläge: 0, 16, 32, 64, 128, 256, 512, 1024
QyQyQyQyQyqy (input_control) point.y → HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)
Zweiter Punkt auf der Achse (y-Koordinate).
Defaultwert: 32
Wertevorschläge: 0, 16, 32, 64, 128, 256, 512, 1024
Ausgabe-Transformationsmatrix.
hom_mat2d_reflecthom_mat2d_reflectHomMat2dReflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflect liefert den Wert 2 (H_MSG_TRUE), falls beide Punkte auf
der Achse verschieden sind. Gegebenenfalls wird eine Fehlerbehandlung
durchgeführt.
hom_mat2d_identityhom_mat2d_identityHomMat2dIdentityhom_mat2d_identityHomMat2dIdentityHomMat2dIdentity,
hom_mat2d_translatehom_mat2d_translateHomMat2dTranslatehom_mat2d_translateHomMat2dTranslateHomMat2dTranslate,
hom_mat2d_scalehom_mat2d_scaleHomMat2dScalehom_mat2d_scaleHomMat2dScaleHomMat2dScale,
hom_mat2d_rotatehom_mat2d_rotateHomMat2dRotatehom_mat2d_rotateHomMat2dRotateHomMat2dRotate,
hom_mat2d_slanthom_mat2d_slantHomMat2dSlanthom_mat2d_slantHomMat2dSlantHomMat2dSlant,
hom_mat2d_reflecthom_mat2d_reflectHomMat2dReflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflect
hom_mat2d_translatehom_mat2d_translateHomMat2dTranslatehom_mat2d_translateHomMat2dTranslateHomMat2dTranslate,
hom_mat2d_scalehom_mat2d_scaleHomMat2dScalehom_mat2d_scaleHomMat2dScaleHomMat2dScale,
hom_mat2d_rotatehom_mat2d_rotateHomMat2dRotatehom_mat2d_rotateHomMat2dRotateHomMat2dRotate,
hom_mat2d_slanthom_mat2d_slantHomMat2dSlanthom_mat2d_slantHomMat2dSlantHomMat2dSlant,
hom_mat2d_reflecthom_mat2d_reflectHomMat2dReflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflect
hom_mat2d_reflect_localhom_mat2d_reflect_localHomMat2dReflectLocalhom_mat2d_reflect_localHomMat2dReflectLocalHomMat2dReflectLocal
Foundation