Skip to content

get_thresh_images_variation_modelget_thresh_images_variation_modelGetThreshImagesVariationModelGetThreshImagesVariationModelget_thresh_images_variation_modelT_get_thresh_images_variation_model🔗

Short description🔗

get_thresh_images_variation_modelget_thresh_images_variation_modelGetThreshImagesVariationModelGetThreshImagesVariationModelget_thresh_images_variation_modelT_get_thresh_images_variation_model — Return the threshold images used for image comparison by a variation model.

Signature🔗

get_thresh_images_variation_model( out image MinImage, out image MaxImage, variation_model ModelID )get_thresh_images_variation_model( : MinImage, MaxImage : ModelID : )void GetThreshImagesVariationModel( HObject* MinImage, HObject* MaxImage, const HTuple& ModelID )static void HOperatorSet.GetThreshImagesVariationModel( out HObject minImage, out HObject maxImage, HTuple modelID )def get_thresh_images_variation_model( model_id: HHandle ) -> Tuple[HObject, HObject]

Herror T_get_thresh_images_variation_model( Hobject* MinImage, Hobject* MaxImage, const Htuple ModelID )

HImage HVariationModel::GetThreshImagesVariationModel( HImage* MaxImage ) const

HImage HVariationModel.GetThreshImagesVariationModel( out HImage maxImage )

Description🔗

get_thresh_images_variation_modelGetThreshImagesVariationModel returns the threshold images of the variation model ModelIDmodelIDmodel_id in MaxImagemaxImagemax_image and MinImageminImagemin_image. The threshold images must be computed with prepare_variation_modelPrepareVariationModel or prepare_direct_variation_modelPrepareDirectVariationModel before they can be read out. The formula used for calculating the threshold images is described with prepare_variation_modelPrepareVariationModel or prepare_direct_variation_modelPrepareDirectVariationModel. The threshold images are used in compare_variation_modelCompareVariationModel and compare_ext_variation_modelCompareExtVariationModel to detect too large deviations of an image with respect to the model. As described with compare_variation_modelCompareVariationModel and compare_ext_variation_modelCompareExtVariationModel, gray values outside the interval given by MinImageminImagemin_image and MaxImagemaxImagemax_image are regarded as errors.

Execution information🔗

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🔗

MinImageminImagemin_image (output_object) image → object (byte / int2 / uint2)object (byte / int2 / uint2)HObject (byte / int2 / uint2)HImage (byte / int2 / uint2)HObject (byte / int2 / uint2)Hobject * (byte / int2 / uint2)

Threshold image for the lower threshold.

MaxImagemaxImagemax_image (output_object) image → object (real)object (real)HObject (real)HImage (real)HObject (real)Hobject * (real)

Threshold image for the upper threshold.

ModelIDmodelIDmodel_id (input_control) variation_model → (handle)(handle)HTuple (HHandle)HVariationModel, HTuple (IntPtr)HHandleHtuple (handle)

ID of the variation model.

Result🔗

get_thresh_images_variation_modelGetThreshImagesVariationModel returns 2 (H_MSG_TRUE) if all parameters are correct.

Combinations with other operators🔗

Combinations

Possible predecessors

prepare_variation_modelPrepareVariationModel, prepare_direct_variation_modelPrepareDirectVariationModel

See also

compare_variation_modelCompareVariationModel, compare_ext_variation_modelCompareExtVariationModel

Module🔗

Matching