ClassesClassesClassesClasses | | | | Operators

read_shape_modelread_shape_modelReadShapeModelread_shape_modelReadShapeModelReadShapeModel (Operator)

Name

read_shape_modelread_shape_modelReadShapeModelread_shape_modelReadShapeModelReadShapeModel — Read a shape model from a file.

Signature

read_shape_model( : : FileName : ModelID)

Herror read_shape_model(const char* FileName, Hlong* ModelID)

Herror T_read_shape_model(const Htuple FileName, Htuple* ModelID)

Herror read_shape_model(const HTuple& FileName, Hlong* ModelID)

void HShapeModel::ReadShapeModel(const HTuple& FileName)

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)

void HOperatorSetX.ReadShapeModel(
[in] VARIANT FileName, [out] VARIANT* ModelID)

void HShapeModelX.ReadShapeModel([in] BSTR 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_modelReadShapeModelread_shape_modelReadShapeModelReadShapeModel reads a shape model, which has been written with write_shape_modelwrite_shape_modelWriteShapeModelwrite_shape_modelWriteShapeModelWriteShapeModel, from the file FileNameFileNameFileNameFileNameFileNamefileName. The default HALCON file extension for the shape model is 'shm'.

Parallelization

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

FileNameFileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

File name.

File extension: .shm

ModelIDModelIDModelIDModelIDModelIDmodelID (output_control)  shape_model HShapeModel, HTupleHTupleHShapeModel, HTupleHShapeModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the model.

Result

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

Possible Successors

find_shape_modelfind_shape_modelFindShapeModelfind_shape_modelFindShapeModelFindShapeModel, find_scaled_shape_modelfind_scaled_shape_modelFindScaledShapeModelfind_scaled_shape_modelFindScaledShapeModelFindScaledShapeModel, find_aniso_shape_modelfind_aniso_shape_modelFindAnisoShapeModelfind_aniso_shape_modelFindAnisoShapeModelFindAnisoShapeModel, find_shape_modelsfind_shape_modelsFindShapeModelsfind_shape_modelsFindShapeModelsFindShapeModels, find_scaled_shape_modelsfind_scaled_shape_modelsFindScaledShapeModelsfind_scaled_shape_modelsFindScaledShapeModelsFindScaledShapeModels, find_aniso_shape_modelsfind_aniso_shape_modelsFindAnisoShapeModelsfind_aniso_shape_modelsFindAnisoShapeModelsFindAnisoShapeModels

See also

create_shape_modelcreate_shape_modelCreateShapeModelcreate_shape_modelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModel, create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModel, clear_shape_modelclear_shape_modelClearShapeModelclear_shape_modelClearShapeModelClearShapeModel

Module

Matching


ClassesClassesClassesClasses | | | | Operators