get_shape_model_contours — Return the contour representation of a shape model.
get_shape_model_contours returns a
representation of the shape model
ModelID as XLD contours
ModelContours. The parameter
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_shape_model_origin) lies at the pixel position (0,0).
Hence, the contours simply need to be translated to the found
position in the image (and possibly rotated and scaled around this
Contour representation of the shape 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
Level >= 1
If the handle of the model is valid, the operator
get_shape_model_contours returns the value TRUE. If
necessary an exception is raised.