write_metrology_model — Write a metrology model to a file.
write_metrology_model writes a metrology model to the file FileName. The metrology model is defined by the handle MetrologyHandle. The metrology model can be read with read_metrology_model. The default HALCON file extension for a metrology model is 'mtr'.
For an explanation of the concept of 2D metrology see the introduction of chapter 2D Metrology.
Note that only the input values are saved, i.e., no measure regions and no results obtained by the operator apply_metrology_model are saved.
Handle of the metrology model.
File extension: .mtr
If the parameters are valid, the operator write_metrology_model returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.