ClassesClassesClassesClasses | | | | Operators

get_deformable_model_contoursget_deformable_model_contoursGetDeformableModelContoursget_deformable_model_contoursGetDeformableModelContoursGetDeformableModelContours (Operator)

Name

get_deformable_model_contoursget_deformable_model_contoursGetDeformableModelContoursget_deformable_model_contoursGetDeformableModelContoursGetDeformableModelContours — Return the contour representation of a deformable model.

Signature

get_deformable_model_contours( : ModelContours : ModelID, Level : )

Herror get_deformable_model_contours(Hobject* ModelContours, const Hlong ModelID, const Hlong Level)

Herror T_get_deformable_model_contours(Hobject* ModelContours, const Htuple ModelID, const Htuple Level)

Herror get_deformable_model_contours(Hobject* ModelContours, const HTuple& ModelID, const HTuple& Level)

HXLDContArray HDeformableModel::GetDeformableModelContours(const HTuple& Level) const

void GetDeformableModelContours(HObject* ModelContours, const HTuple& ModelID, const HTuple& Level)

HXLDCont HDeformableModel::GetDeformableModelContours(Hlong Level) const

void HOperatorSetX.GetDeformableModelContours(
[out] IHUntypedObjectX*ModelContours, [in] VARIANT ModelID, [in] VARIANT Level)

IHXLDContX* HDeformableModelX.GetDeformableModelContours([in] Hlong Level)

static void HOperatorSet.GetDeformableModelContours(out HObject modelContours, HTuple modelID, HTuple level)

HXLDCont HDeformableModel.GetDeformableModelContours(int level)

Description

The operator get_deformable_model_contoursget_deformable_model_contoursGetDeformableModelContoursget_deformable_model_contoursGetDeformableModelContoursGetDeformableModelContours returns a representation of the deformable model ModelIDModelIDModelIDModelIDModelIDmodelID as XLD contours in ModelContoursModelContoursModelContoursModelContoursModelContoursmodelContours. The parameter LevelLevelLevelLevelLevellevel determines for which pyramid level of the model the contour representation should be returned. The contours can be used, for example, to visualize the found instances of the model in an image. It should be noted that the position of ModelContoursModelContoursModelContoursModelContoursModelContoursmodelContours is normalized such that the reference point of the model (see set_deformable_model_originset_deformable_model_originSetDeformableModelOriginset_deformable_model_originSetDeformableModelOriginSetDeformableModelOrigin) lies at the pixel position (0,0). Hence, the contours simply need to be tranformed by the found homography in the image. In case that the model was generated by create_planar_calib_deformable_model_xldcreate_planar_calib_deformable_model_xldCreatePlanarCalibDeformableModelXldcreate_planar_calib_deformable_model_xldCreatePlanarCalibDeformableModelXldCreatePlanarCalibDeformableModelXld, the contour is returned in the world coordinate system. Here, the contours must be transformed by the returned pose for visualizing a match.

Parallelization

Parameters

ModelContoursModelContoursModelContoursModelContoursModelContoursmodelContours (output_object)  xld_cont-array objectHXLDContHXLDContHXLDContArrayHXLDContXHobject *

Contour representation of the deformable model.

ModelIDModelIDModelIDModelIDModelIDmodelID (input_control)  deformable_model HDeformableModel, HTupleHTupleHDeformableModel, HTupleHDeformableModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the model.

LevelLevelLevelLevelLevellevel (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Pyramid level for which the contour representation should be returned.

Default value: 1

Suggested values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Restriction: Level >= 1

Result

If the handle of the model is valid, the operator get_deformable_model_contoursget_deformable_model_contoursGetDeformableModelContoursget_deformable_model_contoursGetDeformableModelContoursGetDeformableModelContours returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

create_planar_uncalib_deformable_modelcreate_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModelcreate_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModelCreatePlanarUncalibDeformableModel, create_planar_uncalib_deformable_model_xldcreate_planar_uncalib_deformable_model_xldCreatePlanarUncalibDeformableModelXldcreate_planar_uncalib_deformable_model_xldCreatePlanarUncalibDeformableModelXldCreatePlanarUncalibDeformableModelXld, read_deformable_modelread_deformable_modelReadDeformableModelread_deformable_modelReadDeformableModelReadDeformableModel, create_planar_calib_deformable_modelcreate_planar_calib_deformable_modelCreatePlanarCalibDeformableModelcreate_planar_calib_deformable_modelCreatePlanarCalibDeformableModelCreatePlanarCalibDeformableModel, create_planar_calib_deformable_model_xldcreate_planar_calib_deformable_model_xldCreatePlanarCalibDeformableModelXldcreate_planar_calib_deformable_model_xldCreatePlanarCalibDeformableModelXldCreatePlanarCalibDeformableModelXld, create_local_deformable_modelcreate_local_deformable_modelCreateLocalDeformableModelcreate_local_deformable_modelCreateLocalDeformableModelCreateLocalDeformableModel, create_local_deformable_model_xldcreate_local_deformable_model_xldCreateLocalDeformableModelXldcreate_local_deformable_model_xldCreateLocalDeformableModelXldCreateLocalDeformableModelXld

See also

find_planar_uncalib_deformable_modelfind_planar_uncalib_deformable_modelFindPlanarUncalibDeformableModelfind_planar_uncalib_deformable_modelFindPlanarUncalibDeformableModelFindPlanarUncalibDeformableModel, find_planar_calib_deformable_modelfind_planar_calib_deformable_modelFindPlanarCalibDeformableModelfind_planar_calib_deformable_modelFindPlanarCalibDeformableModelFindPlanarCalibDeformableModel

Module

Matching


ClassesClassesClassesClasses | | | | Operators