Skip to content

get_variation_modelGetVariationModelGetVariationModelget_variation_modelT_get_variation_model🔗

Short description🔗

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

Signature🔗

get_variation_model( out image Image, out image VarImage, variation_model ModelID )void GetVariationModel( HObject* Image, HObject* VarImage, const HTuple& ModelID )static void HOperatorSet.GetVariationModel( out HObject image, out HObject varImage, HTuple modelID )def get_variation_model( model_id: HHandle ) -> Tuple[HObject, HObject]

Herror T_get_variation_model( Hobject* Image, Hobject* VarImage, const Htuple ModelID )

HImage HVariationModel::GetVariationModel( HImage* VarImage ) const

HImage HVariationModel.GetVariationModel( out HImage varImage )

Description🔗

get_variation_modelGetVariationModel returns the image of the ideal object and the corresponding variation image of the variation model ModelIDmodelIDmodel_id in Imageimageimage and VarImagevarImagevar_image, respectively. The returned images can be used to check whether an image of a bad object has been trained with train_variation_modelTrainVariationModel. This can be seen from the variation image. If an image of a bad object has been trained, the variation image typically has large variations in areas that should exhibit no variations.

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🔗

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

Image of the trained object.

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

Variation image of the trained object.

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

ID of the variation model.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

train_variation_modelTrainVariationModel

See also

prepare_variation_modelPrepareVariationModel, compare_variation_modelCompareVariationModel, compare_ext_variation_modelCompareExtVariationModel

Module🔗

Matching