write_shape_modelwrite_shape_modelWriteShapeModelWriteShapeModelwrite_shape_modelT_write_shape_model
Short description
write_shape_modelwrite_shape_modelWriteShapeModelWriteShapeModelwrite_shape_modelT_write_shape_model — Write a shape model to a file.
Signature
write_shape_model( shape_model ModelID, filename.write FileName )write_shape_model( : : ModelID, FileName : )void WriteShapeModel( const HTuple& ModelID, const HTuple& FileName )static void HOperatorSet.WriteShapeModel( HTuple modelID, HTuple fileName )def write_shape_model( model_id: HHandle, file_name: str ) -> None
Herror T_write_shape_model( const Htuple ModelID, const Htuple FileName )
void HShapeModel::WriteShapeModel( const HString& FileName ) const
void HShapeModel::WriteShapeModel( const char* FileName ) const
void HShapeModel::WriteShapeModel( const wchar_t* FileName ) const (Windows only)
void HShapeModel.WriteShapeModel( string fileName )
Description
The operator write_shape_modelWriteShapeModel writes a shape model to the
file FileNamefileNamefile_name. The model can be read again with
read_shape_modelReadShapeModel. The default HALCON file extension for
the shape model is 'shm'.
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters
ModelIDmodelIDmodel_id (input_control) shape_model → (handle)(handle)HTuple (HHandle)HShapeModel, HTuple (IntPtr)HHandleHtuple (handle)
Handle of the model.
FileNamefileNamefile_name (input_control) filename.write → (string)(string)HTuple (HString)HTuple (string)strHtuple (char*)
File name.
File extension: .shm
Result
If the file name is valid (write permission), the operator
write_shape_modelWriteShapeModel returns the value 2 (H_MSG_TRUE). If necessary an
exception is raised.
Combinations with other operators
Combinations
Possible predecessors
set_generic_shape_model_paramSetGenericShapeModelParam, set_generic_shape_model_objectSetGenericShapeModelObject
Module
Matching