ClassesClasses | | Operators

write_shape_modelT_write_shape_modelWriteShapeModelWriteShapeModel (Operator)

Name

write_shape_modelT_write_shape_modelWriteShapeModelWriteShapeModel — Write a shape model to a file.

Signature

write_shape_model( : : ModelID, FileName : )

Herror T_write_shape_model(const Htuple ModelID, const Htuple FileName)

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

void HShapeModel::WriteShapeModel(const HString& FileName) const

void HShapeModel::WriteShapeModel(const char* FileName) const

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

void HShapeModel.WriteShapeModel(string fileName)

Description

The operator write_shape_modelwrite_shape_modelWriteShapeModelWriteShapeModelWriteShapeModel writes a shape model to the file FileNameFileNameFileNameFileNamefileName. The model can be read again with read_shape_modelread_shape_modelReadShapeModelReadShapeModelReadShapeModel. The default HALCON file extension for the shape model is 'shm'.

Execution Information

Parameters

ModelIDModelIDModelIDModelIDmodelID (input_control)  shape_model HShapeModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the model.

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

File name.

File extension: .shm

Result

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

Possible Predecessors

create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModel, create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModel

Module

Matching


ClassesClasses | | Operators