Operator Reference

write_variation_modelT_write_variation_modelWriteVariationModelWriteVariationModelwrite_variation_model (Operator)

write_variation_modelT_write_variation_modelWriteVariationModelWriteVariationModelwrite_variation_model — Write a variation model to a file.

Signature

write_variation_model( : : ModelID, FileName : )

Herror T_write_variation_model(const Htuple ModelID, const Htuple FileName)

void WriteVariationModel(const HTuple& ModelID, const HTuple& FileName)

void HVariationModel::WriteVariationModel(const HString& FileName) const

void HVariationModel::WriteVariationModel(const char* FileName) const

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

static void HOperatorSet.WriteVariationModel(HTuple modelID, HTuple fileName)

void HVariationModel.WriteVariationModel(string fileName)

def write_variation_model(model_id: HHandle, file_name: str) -> None

Description

write_variation_modelwrite_variation_modelWriteVariationModelWriteVariationModelwrite_variation_model writes a variation model to the file FileNameFileNameFileNamefileNamefile_name. The model can be read with read_variation_modelread_variation_modelReadVariationModelReadVariationModelread_variation_model. The default HALCON file extension for a variation model is 'vam'.

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

ModelIDModelIDModelIDmodelIDmodel_id (input_control)  variation_model HVariationModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

ID of the variation model.

FileNameFileNameFileNamefileNamefile_name (input_control)  filename.write HTuplestrHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .vam

Result

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

Possible Predecessors

train_variation_modeltrain_variation_modelTrainVariationModelTrainVariationModeltrain_variation_model

See also

read_variation_modelread_variation_modelReadVariationModelReadVariationModelread_variation_model

Module

Matching