Skip to content

read_ncc_modelReadNccModelReadNccModelread_ncc_modelT_read_ncc_model🔗

Short description🔗

read_ncc_modelReadNccModelReadNccModelread_ncc_modelT_read_ncc_model — Read an NCC model from a file.

Signature🔗

read_ncc_model( filename.read FileName, out ncc_model ModelID )void ReadNccModel( const HTuple& FileName, HTuple* ModelID )static void HOperatorSet.ReadNccModel( HTuple fileName, out HTuple modelID )def read_ncc_model( file_name: str ) -> HHandle

Herror T_read_ncc_model( const Htuple FileName, Htuple* ModelID )

void HNCCModel::HNCCModel( const HString& FileName )

void HNCCModel::HNCCModel( const char* FileName )

void HNCCModel::HNCCModel( const wchar_t* FileName ) (Windows only)

public HNCCModel( string fileName )

void HNCCModel::ReadNccModel( const HString& FileName )

void HNCCModel::ReadNccModel( const char* FileName )

void HNCCModel::ReadNccModel( const wchar_t* FileName ) (Windows only)

void HNCCModel.ReadNccModel( string fileName )

Description🔗

The operator read_ncc_modelReadNccModel reads an NCC model, which has been written with write_ncc_modelWriteNccModel, from the file FileNamefileNamefile_name. The default HALCON file extension for the NCC model is 'ncm'.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without 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🔗

FileNamefileNamefile_name (input_control) filename.read → (string)HTuple (HString)HTuple (string)strHtuple (char*)

File name.

File extension: .ncm

ModelIDmodelIDmodel_id (output_control) ncc_model → (handle)HTuple (HHandle)HNCCModel, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the model.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible successors

find_ncc_modelFindNccModel, find_ncc_modelsFindNccModels

See also

create_ncc_modelCreateNccModel, clear_ncc_modelClearNccModel

Module🔗

Matching