read_measure — Read a measure object from a file.
read_measure( : : FileName : MeasureHandle)
read_measure reads a measure object, which has
been written with write_measure from
the file FileName. The default HALCON file
extension for a measure object is 'msr'. The values
contained in the read measure object are stored in a measure object
with the handle MeasureHandle.
For an explanation of the concept of 1D 测量 see the introduction of chapter 1D 测量.
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.
FileName (input_control) filename.read → (string)
File name.
File extension:
.msr
MeasureHandle (output_control) measure → (handle)
Measure object handle.
如果参数均有效,算子
read_measure 返回值 2 (
H_MSG_TRUE)
. If
necessary, an exception is raised.
1D Metrology