ClassesClasses | | Operators

read_shape_modelT_read_shape_modelReadShapeModelReadShapeModel (Operator)

Name

read_shape_modelT_read_shape_modelReadShapeModelReadShapeModel — Read a shape model from a file.

Signature

read_shape_model( : : FileName : ModelID)

Herror T_read_shape_model(const Htuple FileName, Htuple* ModelID)

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

void HShapeModel::HShapeModel(const HString& FileName)

void HShapeModel::HShapeModel(const char* FileName)

void HShapeModel::ReadShapeModel(const HString& FileName)

void HShapeModel::ReadShapeModel(const char* FileName)

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

public HShapeModel(string fileName)

void HShapeModel.ReadShapeModel(string fileName)

Description

The operator read_shape_modelread_shape_modelReadShapeModelReadShapeModelReadShapeModel reads a shape model, which has been written with write_shape_modelwrite_shape_modelWriteShapeModelWriteShapeModelWriteShapeModel, from the file FileNameFileNameFileNameFileNamefileName. The default HALCON file extension for the shape model is 'shm'.

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: .shm

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

Handle of the model.

Result

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

Possible Successors

find_shape_modelfind_shape_modelFindShapeModelFindShapeModelFindShapeModel, find_scaled_shape_modelfind_scaled_shape_modelFindScaledShapeModelFindScaledShapeModelFindScaledShapeModel, find_aniso_shape_modelfind_aniso_shape_modelFindAnisoShapeModelFindAnisoShapeModelFindAnisoShapeModel, find_shape_modelsfind_shape_modelsFindShapeModelsFindShapeModelsFindShapeModels, find_scaled_shape_modelsfind_scaled_shape_modelsFindScaledShapeModelsFindScaledShapeModelsFindScaledShapeModels, find_aniso_shape_modelsfind_aniso_shape_modelsFindAnisoShapeModelsFindAnisoShapeModelsFindAnisoShapeModels

See also

create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModel, create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModel, clear_shape_modelclear_shape_modelClearShapeModelClearShapeModelClearShapeModel

Module

Matching


ClassesClasses | | Operators