read_structured_light_model — 从文件中读取结构光模型。
read_structured_light_model( : : FileName : StructuredLightModel)
read_structured_light_model reads the structured light model
StructuredLightModel that has been stored with
write_structured_light_model。The default HALCON file extension
for the structured light model is 'hslm'.
It can be helpful to write a model after setting all the optimal parameters for a particular setup. The model can be read later to easily regenerate pattern images. The objects already generated in the model before writing it can be also revisited later after reading the model.
For an explanation of the concept of structured light and its supported applications, see the introduction of chapter Inspection / Structured Light。
此算子返回一个句柄。请注意,即使该句柄被用作特定算子的输入参数,这些算子仍可能改变此句柄类型的实例状态。
FileName (输入控制) filename.read → (string)
File name.
File extension:
.hslm
StructuredLightModel (输出控制) structured_light_model → (handle)
Handle of the structured light model.
* Read the model
read_structured_light_model ('ExampleModel.hslm', StructuredLightModel)
* Get a previously decoded result
get_structured_light_object (CorrespondenceImages, StructuredLightModel, \
'correspondence_image')
* Decode new camera images
decode_structured_light_pattern (CameraImages, StructuredLightModel)
* Get the decoded result
get_structured_light_object (CorrespondenceImagesNew, StructuredLightModel, \
'correspondence_image')
算子 read_structured_light_model 返回值 2 (
H_MSG_TRUE)
if the given parameters are valid. 否则,将抛出异常。
create_structured_light_model,
clear_structured_light_model
三维计量