set_generic_shape_model_object — 将图标对象设置为形状模型。
set_generic_shape_model_object(Object : : ModelID, GenParamName : )
算子 set_generic_shape_model_object sets parameters
of the shape model ModelID based on the given Object。
The parameter GenParamName determines for which type of setting
the object is used. The following values are supported:
'high_noise_sample':Estimate and adapt the shape model
parameters to cope better with high noise images.
The parameter estimation is done based on the sample search image
Object. As a consequence the domain of Object should
contain the model and surrounding background showing noise that is typical
for search images.
The operator modifies the following parameters:
'pyramid_level_lowest'
'clutter_region':Set the clutter region for the shape model. If 'clutter_region' is set, the value of 'use_clutter' is automatically set to 'true'.
Note that the 'clutter_region' must not intersect with the final
model contours that are generated by train_generic_shape_model。
If the clutter region would need negative coordinates (e.g., clutter
regions for XLD models which have the center in the image origin), the
transformation has to be provided. To do so, use
set_generic_shape_model_param with 'clutter_hom_mat_2d'.
此算子修改后续输入参数的状态:
在执行此算子时,若该参数值需在多个线程间使用,则必须对其访问进行同步。
Object (输入对象) (multichannel-)object(-array) → object
Iconic object to be set.
ModelID (输入控制,状态被修改) shape_model → (handle)
形状模型的句柄。
GenParamName (输入控制) string-array → (string)
Parameter name.
默认值: 'high_noise_sample'
值列表: 'clutter_region', 'high_noise_sample'
如果参数有效,算子
set_generic_shape_model_object 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
train_generic_shape_model,
find_generic_shape_model
匹配