HALCON Reference Manual 10.0.2
Table of Contents / Matching / Shape-Based ClassesClassesClasses | | | Operators

read_shape_modelread_shape_modelread_shape_modelReadShapeModelReadShapeModel (Operator)

Name

read_shape_modelread_shape_modelread_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 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_modelread_shape_modelReadShapeModelReadShapeModel reads a shape model, which has been written with write_shape_modelwrite_shape_modelwrite_shape_modelWriteShapeModelWriteShapeModel, from the file FileNameFileNameFileNameFileNamefileName. The default HALCON file extension for the shape model is 'shm'.

Parallelization

Parameters

FileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

File name.

File extension: .shm

ModelIDModelIDModelIDModelIDmodelID (output_control)  shape_model HShapeModel, HTupleHShapeModel, HTupleHShapeModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Handle of the model.

Result

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

Possible Successors

find_shape_modelfind_shape_modelfind_shape_modelFindShapeModelFindShapeModel, find_scaled_shape_modelfind_scaled_shape_modelfind_scaled_shape_modelFindScaledShapeModelFindScaledShapeModel, find_aniso_shape_modelfind_aniso_shape_modelfind_aniso_shape_modelFindAnisoShapeModelFindAnisoShapeModel, find_shape_modelsfind_shape_modelsfind_shape_modelsFindShapeModelsFindShapeModels, find_scaled_shape_modelsfind_scaled_shape_modelsfind_scaled_shape_modelsFindScaledShapeModelsFindScaledShapeModels, find_aniso_shape_modelsfind_aniso_shape_modelsfind_aniso_shape_modelsFindAnisoShapeModelsFindAnisoShapeModels

See also

create_shape_modelcreate_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModel, create_aniso_shape_modelcreate_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModel, clear_shape_modelclear_shape_modelclear_shape_modelClearShapeModelClearShapeModel

Module

Matching


Table of Contents / Matching / Shape-Based ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH