find_generic_shape_modelT_find_generic_shape_modelFindGenericShapeModelFindGenericShapeModelfind_generic_shape_model — Find the best matches of one or multiple shape models in an image.
In rare cases which typically occur for artificial images, instances of
ModelIDModelIDModelIDmodelIDmodel_id cannot be found in an image, if they touch the border of the
domain on any level of the image pyramid.
As a rule of thumb, ModelIDModelIDModelIDmodelIDmodel_id might not be found if its distance to
an image border is smaller than
pixels (where is the number of pyramid levels).
This behavior can be changed with 'border_shape_models'"border_shape_models""border_shape_models""border_shape_models""border_shape_models", see
set_generic_shape_model_paramset_generic_shape_model_paramSetGenericShapeModelParamSetGenericShapeModelParamset_generic_shape_model_param.
When searching multiple models 'border_shape_models'"border_shape_models""border_shape_models""border_shape_models""border_shape_models" is treated
as 'true'"true""true""true""true" for all models even if 'border_shape_models'"border_shape_models""border_shape_models""border_shape_models""border_shape_models"
only evaluates to 'true'"true""true""true""true" for one of the models in a search.
(
1)
(
2)
(
3)
(1) Search image with reduced domain (yellow) and the shape model (cyan).
(2) Instances that will be returned (green) or not returned (red)
in case 'border_shape_models'"border_shape_models""border_shape_models""border_shape_models""border_shape_models" is set to 'false'"false""false""false""false".
(3) Instances that will be returned (green) or not returned (red)
in case 'border_shape_models'"border_shape_models""border_shape_models""border_shape_models""border_shape_models" is set to 'true'"true""true""true""true".
Alternatively, the search space can be restricted for each model
individually by passing an object containing multiple image objects, one for
each model in ModelIDModelIDModelIDmodelIDmodel_id.
The search space is determined by the domain of the corresponding image.
Except the domain, the images have to be identical, i.e.,
the pointers of the image objects need to refer to the same
image (thus they need to be identical).
The pointers can be checked using get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1get_image_pointer1.
When applying multiple models, different identifiers
('model_identifier'"model_identifier""model_identifier""model_identifier""model_identifier") have to be set for each model,
so that each instance can be assigned to the shape model it has
been found with. Otherwise an exception is raised.
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on internal data level.
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
This operator supports canceling timeouts and interrupts.
This operator modifies the state of the following input parameter:
If the parameters are valid, the operator
find_generic_shape_modelfind_generic_shape_modelFindGenericShapeModelFindGenericShapeModelfind_generic_shape_model returns the value 2 (
H_MSG_TRUE)
.
If necessary an exception is raised.