vector_field_to_hom_mat2dT_vector_field_to_hom_mat2dVectorFieldToHomMat2dVectorFieldToHomMat2dvector_field_to_hom_mat2d (Operator)

Name

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

Signature

vector_field_to_hom_mat2d(VectorField : : : HomMat2D)

Herror T_vector_field_to_hom_mat2d(const Hobject VectorField, Htuple* HomMat2D)

void VectorFieldToHomMat2d(const HObject& VectorField, HTuple* HomMat2D)

HHomMat2D HImage::VectorFieldToHomMat2d() const

void HHomMat2D::VectorFieldToHomMat2d(const HImage& VectorField)

static void HOperatorSet.VectorFieldToHomMat2d(HObject vectorField, out HTuple homMat2D)

HHomMat2D HImage.VectorFieldToHomMat2d()

void HHomMat2D.VectorFieldToHomMat2d(HImage vectorField)

def vector_field_to_hom_mat2d(vector_field: HObject) -> Sequence[float]

Description

vector_field_to_hom_mat2dvector_field_to_hom_mat2dVectorFieldToHomMat2dVectorFieldToHomMat2dVectorFieldToHomMat2dvector_field_to_hom_mat2d approximates an affine map from the displacement vector field VectorFieldVectorFieldVectorFieldVectorFieldvectorFieldvector_field. The affine map is returned in HomMat2DHomMat2DHomMat2DHomMat2DhomMat2Dhom_mat_2d.

If the displacement vector field has been computed from the original image and the second image , the internally stored transformation matrix (see affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImageaffine_trans_image) contains a map that describes how to transform the first image to the second image . Note that the VectorFieldVectorFieldVectorFieldVectorFieldvectorFieldvector_field must be in relative coordinates as returned by optical_flow_mgoptical_flow_mgOpticalFlowMgOpticalFlowMgOpticalFlowMgoptical_flow_mg.

Execution Information

Parameters

VectorFieldVectorFieldVectorFieldVectorFieldvectorFieldvector_field (input_object)  singlechannelimage objectHImageHObjectHImageHobject (vector_field)

Input image.

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

Output transformation matrix.

Possible Predecessors

optical_flow_mgoptical_flow_mgOpticalFlowMgOpticalFlowMgOpticalFlowMgoptical_flow_mg

Possible Successors

affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImageaffine_trans_image

Alternatives

vector_to_hom_mat2dvector_to_hom_mat2dVectorToHomMat2dVectorToHomMat2dVectorToHomMat2dvector_to_hom_mat2d

Module

Foundation