get_deformable_model_contours — Return the contour representation of a deformable model.
The operator get_deformable_model_contours returns a representation of the deformable model ModelID as XLD contours in ModelContours. The parameter Level 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 ModelContours is normalized such that the reference point of the model (see set_deformable_model_origin) 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_xld, the contour is returned in the world coordinate system. Here, the contours must be transformed by the returned pose for visualizing a match.
Contour representation of the deformable model.
Handle of the model.
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
If the handle of the model is valid, the operator get_deformable_model_contours returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.
create_planar_uncalib_deformable_model, create_planar_uncalib_deformable_model_xld, read_deformable_model, create_planar_calib_deformable_model, create_planar_calib_deformable_model_xld, create_local_deformable_model, create_local_deformable_model_xld