vector_to_hom_mat3dT_vector_to_hom_mat3dVectorToHomMat3dVectorToHomMat3dvector_to_hom_mat3d (Operator)

Name

vector_to_hom_mat3dT_vector_to_hom_mat3dVectorToHomMat3dVectorToHomMat3dvector_to_hom_mat3d — Erzeugt eine Näherung für eine 3D-Transformation aus Punktkorrespondenzen.

Signatur

vector_to_hom_mat3d( : : TransformationType, Px, Py, Pz, Qx, Qy, Qz : HomMat3D)

Herror T_vector_to_hom_mat3d(const Htuple TransformationType, const Htuple Px, const Htuple Py, const Htuple Pz, const Htuple Qx, const Htuple Qy, const Htuple Qz, Htuple* HomMat3D)

void VectorToHomMat3d(const HTuple& TransformationType, const HTuple& Px, const HTuple& Py, const HTuple& Pz, const HTuple& Qx, const HTuple& Qy, const HTuple& Qz, HTuple* HomMat3D)

void HHomMat3D::VectorToHomMat3d(const HString& TransformationType, const HTuple& Px, const HTuple& Py, const HTuple& Pz, const HTuple& Qx, const HTuple& Qy, const HTuple& Qz)

void HHomMat3D::VectorToHomMat3d(const char* TransformationType, const HTuple& Px, const HTuple& Py, const HTuple& Pz, const HTuple& Qx, const HTuple& Qy, const HTuple& Qz)

void HHomMat3D::VectorToHomMat3d(const wchar_t* TransformationType, const HTuple& Px, const HTuple& Py, const HTuple& Pz, const HTuple& Qx, const HTuple& Qy, const HTuple& Qz)   (Nur Windows)

static void HOperatorSet.VectorToHomMat3d(HTuple transformationType, HTuple px, HTuple py, HTuple pz, HTuple qx, HTuple qy, HTuple qz, out HTuple homMat3D)

void HHomMat3D.VectorToHomMat3d(string transformationType, HTuple px, HTuple py, HTuple pz, HTuple qx, HTuple qy, HTuple qz)

def vector_to_hom_mat3d(transformation_type: str, px: Sequence[float], py: Sequence[float], pz: Sequence[float], qx: Sequence[float], qy: Sequence[float], qz: Sequence[float]) -> Sequence[float]

Beschreibung

vector_to_hom_mat3dvector_to_hom_mat3dVectorToHomMat3dVectorToHomMat3dVectorToHomMat3dvector_to_hom_mat3d erzeugt aus Punktkorrespondenzen eine Näherung für eine affine oder projektive 3D-Transformation und liefert sie in der homogenen Transformationsmatrix HomMat3DHomMat3DHomMat3DHomMat3DhomMat3Dhom_mat_3d zurück.

Der Typ der zu berechnenden 3D-Transformation wird mit TransformationTypeTransformationTypeTransformationTypeTransformationTypetransformationTypetransformation_type festgelegt. Für TransformationTypeTransformationTypeTransformationTypeTransformationTypetransformationTypetransformation_type = 'rigid'"rigid""rigid""rigid""rigid""rigid" wird eine starre 3D-Transformation (eine Rotation und eine Translation), für TransformationTypeTransformationTypeTransformationTypeTransformationTypetransformationTypetransformation_type = 'similarity'"similarity""similarity""similarity""similarity""similarity" eine Ähnlichkeitsabbildung (eine gleichförmige Skalierung, eine Rotation und eine Translation), für TransformationTypeTransformationTypeTransformationTypeTransformationTypetransformationTypetransformation_type = 'affine'"affine""affine""affine""affine""affine" eine allgemeine affine 3D-Transformation und für TransformationTypeTransformationTypeTransformationTypeTransformationTypetransformationTypetransformation_type = 'projective'"projective""projective""projective""projective""projective" eine projektive 3D-Transformation berechnet.

Die minimal benötigte Anzahl an Punktkorrespondenzen ist 3 für TransformationTypeTransformationTypeTransformationTypeTransformationTypetransformationTypetransformation_type = 'rigid'"rigid""rigid""rigid""rigid""rigid", 3 für TransformationTypeTransformationTypeTransformationTypeTransformationTypetransformationTypetransformation_type = 'similarity'"similarity""similarity""similarity""similarity""similarity", 4 für TransformationTypeTransformationTypeTransformationTypeTransformationTypetransformationTypetransformation_type = 'affine'"affine""affine""affine""affine""affine" und 5 für TransformationTypeTransformationTypeTransformationTypeTransformationTypetransformationTypetransformation_type = 'projective'"projective""projective""projective""projective""projective".

Die Punktkorrespondenzen werden in den Tupeln (PxPxPxPxpxpx,PyPyPyPypypy,PzPzPzPzpzpz) und (QxQxQxQxqxqx,QyQyQyQyqyqy,QzQzQzQzqzqz) übergeben, wobei korrespondierende Punkte an denselben Indexpositionen stehen müssen. Die Transformation ist überbestimmt, falls mehr als die minimale Anzahl an Punktkorrespondenzen übergeben wird. In diesem Fall ist die zurückgelieferte Transformation diejenige, die die Abstände zwischen den transformierten Eingabepunkten (PxPxPxPxpxpx,PyPyPyPypypy,PzPzPzPzpzpz) und den Zielpunkten (QxQxQxQxqxqx,QyQyQyQyqyqy,QzQzQzQzqzqz) minimiert, wie in der folgenden Gleichung beschrieben (Punkte als homogene Vektoren dargestellt):

HomMat3DHomMat3DHomMat3DHomMat3DhomMat3Dhom_mat_3d kann direkt mit den Operatoren, die Daten mit affinen 3D-Transformationen transformieren, z.B. affine_trans_point_3daffine_trans_point_3dAffineTransPoint3dAffineTransPoint3dAffineTransPoint3daffine_trans_point_3d, verwendet werden.

Ausführungsinformationen

Parameter

TransformationTypeTransformationTypeTransformationTypeTransformationTypetransformationTypetransformation_type (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Typ der zu berechnenden Transformation.

Defaultwert: 'rigid' "rigid" "rigid" "rigid" "rigid" "rigid"

Werteliste: 'affine'"affine""affine""affine""affine""affine", 'projective'"projective""projective""projective""projective""projective", 'rigid'"rigid""rigid""rigid""rigid""rigid", 'similarity'"similarity""similarity""similarity""similarity""similarity"

PxPxPxPxpxpx (input_control)  point3d.x-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

X-Koordinaten der originalen Punkte.

PyPyPyPypypy (input_control)  point3d.y-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Y-Koordinaten der originalen Punkte.

PzPzPzPzpzpz (input_control)  point3d.z-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Z-Koordinaten der originalen Punkte.

QxQxQxQxqxqx (input_control)  point3d.x-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

X-Koordinaten der transformierten Punkte.

QyQyQyQyqyqy (input_control)  point3d.x-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Y-Koordinaten der transformierten Punkte.

QzQzQzQzqzqz (input_control)  point3d.z-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Z-Koordinaten der transformierten Punkte.

HomMat3DHomMat3DHomMat3DHomMat3DhomMat3Dhom_mat_3d (output_control)  hom_mat3d HHomMat3D, HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Ausgabe-Transformationsmatrix.

Nachfolger

hom_mat3d_to_posehom_mat3d_to_poseHomMat3dToPoseHomMat3dToPoseHomMat3dToPosehom_mat3d_to_pose, affine_trans_point_3daffine_trans_point_3dAffineTransPoint3dAffineTransPoint3dAffineTransPoint3daffine_trans_point_3d

Siehe auch

point_pluecker_line_to_hom_mat3dpoint_pluecker_line_to_hom_mat3dPointPlueckerLineToHomMat3dPointPlueckerLineToHomMat3dPointPlueckerLineToHomMat3dpoint_pluecker_line_to_hom_mat3d

Modul

Foundation