get_thresh_images_variation_modelT_get_thresh_images_variation_modelGetThreshImagesVariationModelGetThreshImagesVariationModelget_thresh_images_variation_model (Operator)
Name
get_thresh_images_variation_modelT_get_thresh_images_variation_modelGetThreshImagesVariationModelGetThreshImagesVariationModelget_thresh_images_variation_model
— Return the threshold images used for image comparison by a variation
model.
Signature
def get_thresh_images_variation_model(model_id: HHandle) -> Tuple[HObject, HObject]
Description
get_thresh_images_variation_modelget_thresh_images_variation_modelGetThreshImagesVariationModelGetThreshImagesVariationModelGetThreshImagesVariationModelget_thresh_images_variation_model
returns the threshold
images of the variation model ModelIDModelIDModelIDModelIDmodelIDmodel_id
in MaxImageMaxImageMaxImageMaxImagemaxImagemax_image
and MinImageMinImageMinImageMinImageminImagemin_image
. The threshold images must be computed with
prepare_variation_modelprepare_variation_modelPrepareVariationModelPrepareVariationModelPrepareVariationModelprepare_variation_model
or
prepare_direct_variation_modelprepare_direct_variation_modelPrepareDirectVariationModelPrepareDirectVariationModelPrepareDirectVariationModelprepare_direct_variation_model
before they can be read out.
The formula used for calculating the threshold images is described
with prepare_variation_modelprepare_variation_modelPrepareVariationModelPrepareVariationModelPrepareVariationModelprepare_variation_model
or
prepare_direct_variation_modelprepare_direct_variation_modelPrepareDirectVariationModelPrepareDirectVariationModelPrepareDirectVariationModelprepare_direct_variation_model
. The threshold images are
used in compare_variation_modelcompare_variation_modelCompareVariationModelCompareVariationModelCompareVariationModelcompare_variation_model
and
compare_ext_variation_modelcompare_ext_variation_modelCompareExtVariationModelCompareExtVariationModelCompareExtVariationModelcompare_ext_variation_model
to detect too large deviations
of an image with respect to the model. As described with
compare_variation_modelcompare_variation_modelCompareVariationModelCompareVariationModelCompareVariationModelcompare_variation_model
and
compare_ext_variation_modelcompare_ext_variation_modelCompareExtVariationModelCompareExtVariationModelCompareExtVariationModelcompare_ext_variation_model
, gray values outside the
interval given by MinImageMinImageMinImageMinImageminImagemin_image
and MaxImageMaxImageMaxImageMaxImagemaxImagemax_image
are
regarded as errors.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
MinImageMinImageMinImageMinImageminImagemin_image
(output_object) image →
objectHImageHObjectHImageHobject * (byte / int2 / uint2)
Threshold image for the lower threshold.
MaxImageMaxImageMaxImageMaxImagemaxImagemax_image
(output_object) image →
objectHImageHObjectHImageHobject * (real)
Threshold image for the upper threshold.
ModelIDModelIDModelIDModelIDmodelIDmodel_id
(input_control) variation_model →
HVariationModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
ID of the variation model.
Result
get_thresh_images_variation_modelget_thresh_images_variation_modelGetThreshImagesVariationModelGetThreshImagesVariationModelGetThreshImagesVariationModelget_thresh_images_variation_model
returns TRUE if all
parameters are correct.
Possible Predecessors
prepare_variation_modelprepare_variation_modelPrepareVariationModelPrepareVariationModelPrepareVariationModelprepare_variation_model
,
prepare_direct_variation_modelprepare_direct_variation_modelPrepareDirectVariationModelPrepareDirectVariationModelPrepareDirectVariationModelprepare_direct_variation_model
See also
compare_variation_modelcompare_variation_modelCompareVariationModelCompareVariationModelCompareVariationModelcompare_variation_model
,
compare_ext_variation_modelcompare_ext_variation_modelCompareExtVariationModelCompareExtVariationModelCompareExtVariationModelcompare_ext_variation_model
Module
Matching