read_variation_modelT_read_variation_modelReadVariationModelReadVariationModel (Operator)

Name

read_variation_modelT_read_variation_modelReadVariationModelReadVariationModel — Read a variation model from a file.

Signature

read_variation_model( : : FileName : ModelID)

Herror T_read_variation_model(const Htuple FileName, Htuple* ModelID)

void ReadVariationModel(const HTuple& FileName, HTuple* ModelID)

void HVariationModel::HVariationModel(const HString& FileName)

void HVariationModel::HVariationModel(const char* FileName)

void HVariationModel::HVariationModel(const wchar_t* FileName)   (Windows only)

void HVariationModel::ReadVariationModel(const HString& FileName)

void HVariationModel::ReadVariationModel(const char* FileName)

void HVariationModel::ReadVariationModel(const wchar_t* FileName)   (Windows only)

static void HOperatorSet.ReadVariationModel(HTuple fileName, out HTuple modelID)

public HVariationModel(string fileName)

void HVariationModel.ReadVariationModel(string fileName)

Description

The operator read_variation_modelread_variation_modelReadVariationModelReadVariationModelReadVariationModel reads a variation model, which has been written with write_variation_modelwrite_variation_modelWriteVariationModelWriteVariationModelWriteVariationModel, from the file FileNameFileNameFileNameFileNamefileName. The default HALCON file extension for a variation model is 'vam'.

Execution Information

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.

Parameters

FileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .vam

ModelIDModelIDModelIDModelIDmodelID (output_control)  variation_model HVariationModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

ID of the variation model.

Result

If the file name is valid, the operator read_variation_modelread_variation_modelReadVariationModelReadVariationModelReadVariationModel returns 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Successors

compare_variation_modelcompare_variation_modelCompareVariationModelCompareVariationModelCompareVariationModel, compare_ext_variation_modelcompare_ext_variation_modelCompareExtVariationModelCompareExtVariationModelCompareExtVariationModel

See also

write_variation_modelwrite_variation_modelWriteVariationModelWriteVariationModelWriteVariationModel

Module

Matching