Skip to content

vector_field_to_hom_mat2dVectorFieldToHomMat2dVectorFieldToHomMat2dvector_field_to_hom_mat2dT_vector_field_to_hom_mat2d🔗

Short description🔗

vector_field_to_hom_mat2dVectorFieldToHomMat2dVectorFieldToHomMat2dvector_field_to_hom_mat2dT_vector_field_to_hom_mat2d — Approximate an affine map from a displacement vector field.

Signature🔗

vector_field_to_hom_mat2d( image VectorField, out hom_mat2d HomMat2D )void VectorFieldToHomMat2d( const HObject& VectorField, HTuple* HomMat2D )static void HOperatorSet.VectorFieldToHomMat2d( HObject vectorField, out HTuple homMat2D )def vector_field_to_hom_mat2d( vector_field: HObject ) -> Sequence[float]

Herror T_vector_field_to_hom_mat2d( const Hobject VectorField, Htuple* HomMat2D )

HHomMat2D HImage::VectorFieldToHomMat2d( ) const

void HHomMat2D::VectorFieldToHomMat2d( const HImage& VectorField )

HHomMat2D HImage.VectorFieldToHomMat2d( )

void HHomMat2D.VectorFieldToHomMat2d( HImage vectorField )

Description🔗

vector_field_to_hom_mat2dVectorFieldToHomMat2d approximates an affine map from the displacement vector field VectorFieldvectorFieldvector_field. The affine map is returned in HomMat2DhomMat2Dhom_mat_2d.

If the displacement vector field has been computed from the original image \(I_{\mbox{orig}}\) and the second image \(I_{\mbox{res}}\), the internally stored transformation matrix (see affine_trans_imageAffineTransImage) contains a map that describes how to transform the first image \(I_{\mbox{orig}}\) to the second image \(I_{\mbox{res}}\). Note that the VectorFieldvectorFieldvector_field must be in relative coordinates as returned by optical_flow_mgOpticalFlowMg.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

VectorFieldvectorFieldvector_field (input_object) singlechannelimage → object (vector_field)HObject (vector_field)HImage (vector_field)HObject (vector_field)Hobject (vector_field)

Input image.

HomMat2DhomMat2Dhom_mat_2d (output_control) hom_mat2d → (real)HTuple (double)HHomMat2D, HTuple (double)Sequence[float]Htuple (double)

Output transformation matrix.

Combinations with other operators🔗

Combinations

Possible predecessors

optical_flow_mgOpticalFlowMg

Possible successors

affine_trans_imageAffineTransImage

Alternatives

vector_to_hom_mat2dVectorToHomMat2d

Module🔗

Foundation