read_shape_modelReadShapeModelReadShapeModelread_shape_modelT_read_shape_model
説明
read_shape_modelReadShapeModelReadShapeModelread_shape_modelT_read_shape_model — ファイルから形状モデルを読み込む。
書式
read_shape_model( filename.read FileName, out shape_model ModelID )void ReadShapeModel( const HTuple& FileName, HTuple* ModelID )static void HOperatorSet.ReadShapeModel( HTuple fileName, out HTuple modelID )def read_shape_model( file_name: str ) -> HHandle
Herror T_read_shape_model( const Htuple FileName, Htuple* ModelID )
void HShapeModel::HShapeModel( const HString& FileName )
void HShapeModel::HShapeModel( const char* FileName )
void HShapeModel::HShapeModel( const wchar_t* FileName ) (Windows only)
public HShapeModel( string fileName )
void HShapeModel::ReadShapeModel( const HString& FileName )
void HShapeModel::ReadShapeModel( const char* FileName )
void HShapeModel::ReadShapeModel( const wchar_t* FileName ) (Windows only)
void HShapeModel.ReadShapeModel( string fileName )
説明
オペレーター read_shape_modelReadShapeModel は、
write_shape_modelWriteShapeModel で保存された形状モデルをファイル
FileNamefileNamefile_name から読み込みます。形状モデルの HALCON ファイルの
デフォルトの拡張子は、'shm' です。
実行情報
実行情報
このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。
パラメーター
FileNamefileNamefile_name (input_control) filename.read → (string)HTuple (HString)HTuple (string)strHtuple (char*)
ファイル名
ファイル拡張子: .shm
ModelIDmodelIDmodel_id (output_control) shape_model → (handle)HTuple (HHandle)HShapeModel, HTuple (IntPtr)HHandleHtuple (handle)
モデルのハンドル
結果
ファイル名が有効であれば、オペレーター read_shape_modelReadShapeModel
は、値 2 (H_MSG_TRUE) を返します。必要に応じて、例外処理が発生します。
他のオペレーターとの組み合わせ
組み合わせ
後処理の候補
find_generic_shape_modelFindGenericShapeModel
モジュール
Matching