hom_mat2d_reflect_localT_hom_mat2d_reflect_localHomMat2dReflectLocalHomMat2dReflectLocalhom_mat2d_reflect_local (Operator)

Name

hom_mat2d_reflect_localT_hom_mat2d_reflect_localHomMat2dReflectLocalHomMat2dReflectLocalhom_mat2d_reflect_local — Fügt eine Spiegelung zu einer homogenen 2D-Transformationsmatrix hinzu.

Signatur

hom_mat2d_reflect_local( : : HomMat2D, Px, Py : HomMat2DReflect)

Herror T_hom_mat2d_reflect_local(const Htuple HomMat2D, const Htuple Px, const Htuple Py, Htuple* HomMat2DReflect)

void HomMat2dReflectLocal(const HTuple& HomMat2D, const HTuple& Px, const HTuple& Py, HTuple* HomMat2DReflect)

HHomMat2D HHomMat2D::HomMat2dReflectLocal(const HTuple& Px, const HTuple& Py) const

HHomMat2D HHomMat2D::HomMat2dReflectLocal(double Px, double Py) const

static void HOperatorSet.HomMat2dReflectLocal(HTuple homMat2D, HTuple px, HTuple py, out HTuple homMat2DReflect)

HHomMat2D HHomMat2D.HomMat2dReflectLocal(HTuple px, HTuple py)

HHomMat2D HHomMat2D.HomMat2dReflectLocal(double px, double py)

def hom_mat2d_reflect_local(hom_mat_2d: Sequence[float], px: Union[float, int], py: Union[float, int]) -> Sequence[float]

Beschreibung

hom_mat2d_reflect_localhom_mat2d_reflect_localHomMat2dReflectLocalHomMat2dReflectLocalHomMat2dReflectLocalhom_mat2d_reflect_local fügt zur homogenen 2D-Transformationsmatrix HomMat2DHomMat2DHomMat2DHomMat2DhomMat2Dhom_mat_2d eine Spiegelung um die Achse, die durch die zwei Punkte (0,0) und (PxPxPxPxpxpx,PyPyPyPypypy) gegeben wird, hinzu und liefert die resultierende Matrix in HomMat2DReflectHomMat2DReflectHomMat2DReflectHomMat2DReflecthomMat2DReflecthom_mat_2dreflect zurück. Die Spiegelung wird durch eine 2×2 Spiegelungsmatrix M beschrieben. Im Gegensatz zu hom_mat2d_reflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflectHomMat2dReflecthom_mat2d_reflect wird sie relativ zum lokalen Koordinatensystem, das durch HomMat2DHomMat2DHomMat2DHomMat2DhomMat2Dhom_mat_2d beschrieben ist, ausgeführt; dies entspricht der folgenden Kette von Transformationsmatrizen:

Die Achse (0,0)-(PxPxPxPxpxpx,PyPyPyPypypy) ist bei der Spiegelung fixiert, d.h. die Achse bleibt unverändert, wenn man sie mit HomMat2DReflectHomMat2DReflectHomMat2DReflectHomMat2DReflecthomMat2DReflecthom_mat_2dreflect transformiert.

Achtung

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.

Ausführungsinformationen

Parameter

HomMat2DHomMat2DHomMat2DHomMat2DhomMat2Dhom_mat_2d (input_control)  hom_mat2d HHomMat2D, HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Eingabe-Transformationsmatrix.

PxPxPxPxpxpx (input_control)  point.x HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Punkt, der die Achse definiert (x-Koordinate).

Defaultwert: 16

Wertevorschläge: 0, 16, 32, 64, 128, 256, 512, 1024

PyPyPyPypypy (input_control)  point.y HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Punkt, der die Achse definiert (y-Koordinate).

Defaultwert: 32

Wertevorschläge: 0, 16, 32, 64, 128, 256, 512, 1024

HomMat2DReflectHomMat2DReflectHomMat2DReflectHomMat2DReflecthomMat2DReflecthom_mat_2dreflect (output_control)  hom_mat2d HHomMat2D, HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Ausgabe-Transformationsmatrix.

Ergebnis

hom_mat2d_reflect_localhom_mat2d_reflect_localHomMat2dReflectLocalHomMat2dReflectLocalHomMat2dReflectLocalhom_mat2d_reflect_local liefert den Wert TRUE, falls der Punkt (PxPxPxPxpxpx,PyPyPyPypypy) nicht (0,0) ist. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

hom_mat2d_identityhom_mat2d_identityHomMat2dIdentityHomMat2dIdentityHomMat2dIdentityhom_mat2d_identity, hom_mat2d_translate_localhom_mat2d_translate_localHomMat2dTranslateLocalHomMat2dTranslateLocalHomMat2dTranslateLocalhom_mat2d_translate_local, hom_mat2d_scale_localhom_mat2d_scale_localHomMat2dScaleLocalHomMat2dScaleLocalHomMat2dScaleLocalhom_mat2d_scale_local, hom_mat2d_rotate_localhom_mat2d_rotate_localHomMat2dRotateLocalHomMat2dRotateLocalHomMat2dRotateLocalhom_mat2d_rotate_local, hom_mat2d_slant_localhom_mat2d_slant_localHomMat2dSlantLocalHomMat2dSlantLocalHomMat2dSlantLocalhom_mat2d_slant_local, hom_mat2d_reflect_localhom_mat2d_reflect_localHomMat2dReflectLocalHomMat2dReflectLocalHomMat2dReflectLocalhom_mat2d_reflect_local

Nachfolger

hom_mat2d_translate_localhom_mat2d_translate_localHomMat2dTranslateLocalHomMat2dTranslateLocalHomMat2dTranslateLocalhom_mat2d_translate_local, hom_mat2d_scale_localhom_mat2d_scale_localHomMat2dScaleLocalHomMat2dScaleLocalHomMat2dScaleLocalhom_mat2d_scale_local, hom_mat2d_rotate_localhom_mat2d_rotate_localHomMat2dRotateLocalHomMat2dRotateLocalHomMat2dRotateLocalhom_mat2d_rotate_local, hom_mat2d_slant_localhom_mat2d_slant_localHomMat2dSlantLocalHomMat2dSlantLocalHomMat2dSlantLocalhom_mat2d_slant_local, hom_mat2d_reflect_localhom_mat2d_reflect_localHomMat2dReflectLocalHomMat2dReflectLocalHomMat2dReflectLocalhom_mat2d_reflect_local

Siehe auch

hom_mat2d_reflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflectHomMat2dReflecthom_mat2d_reflect

Modul

Foundation