ClassesClasses | | Operators

read_ncc_modelT_read_ncc_modelReadNccModelReadNccModel (Operator)

Name

read_ncc_modelT_read_ncc_modelReadNccModelReadNccModel — Read an NCC model from a file.

Signature

read_ncc_model( : : FileName : ModelID)

Herror T_read_ncc_model(const Htuple FileName, Htuple* ModelID)

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

void HNCCModel::HNCCModel(const HString& FileName)

void HNCCModel::HNCCModel(const char* FileName)

void HNCCModel::ReadNccModel(const HString& FileName)

void HNCCModel::ReadNccModel(const char* FileName)

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

public HNCCModel(string fileName)

void HNCCModel.ReadNccModel(string fileName)

Description

The operator read_ncc_modelread_ncc_modelReadNccModelReadNccModelReadNccModel reads an NCC model, which has been written with write_ncc_modelwrite_ncc_modelWriteNccModelWriteNccModelWriteNccModel, from the file FileNameFileNameFileNameFileNamefileName. The default HALCON file extension for the NCC model is 'ncm'.

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

ModelIDModelIDModelIDModelIDmodelID (output_control)  ncc_model HNCCModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the model.

Result

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

Possible Successors

find_ncc_modelfind_ncc_modelFindNccModelFindNccModelFindNccModel, find_ncc_modelsfind_ncc_modelsFindNccModelsFindNccModelsFindNccModels

See also

create_ncc_modelcreate_ncc_modelCreateNccModelCreateNccModelCreateNccModel, clear_ncc_modelclear_ncc_modelClearNccModelClearNccModelClearNccModel

Module

Matching


ClassesClasses | | Operators