read_structured_light_modelT_read_structured_light_modelReadStructuredLightModelReadStructuredLightModelread_structured_light_model (算子)

名称

read_structured_light_modelT_read_structured_light_modelReadStructuredLightModelReadStructuredLightModelread_structured_light_model — 从文件中读取结构光模型。

签名

read_structured_light_model( : : FileName : StructuredLightModel)

Herror T_read_structured_light_model(const Htuple FileName, Htuple* StructuredLightModel)

void ReadStructuredLightModel(const HTuple& FileName, HTuple* StructuredLightModel)

void HStructuredLightModel::ReadStructuredLightModel(const HString& FileName)

void HStructuredLightModel::ReadStructuredLightModel(const char* FileName)

void HStructuredLightModel::ReadStructuredLightModel(const wchar_t* FileName)   ( Windows only)

static void HOperatorSet.ReadStructuredLightModel(HTuple fileName, out HTuple structuredLightModel)

void HStructuredLightModel.ReadStructuredLightModel(string fileName)

def read_structured_light_model(file_name: str) -> HHandle

描述

read_structured_light_modelread_structured_light_modelReadStructuredLightModelReadStructuredLightModelReadStructuredLightModelread_structured_light_model reads the structured light model StructuredLightModelStructuredLightModelStructuredLightModelStructuredLightModelstructuredLightModelstructured_light_model that has been stored with write_structured_light_modelwrite_structured_light_modelWriteStructuredLightModelWriteStructuredLightModelWriteStructuredLightModelwrite_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

执行信息

此算子返回一个句柄。请注意,即使该句柄被用作特定算子的输入参数,这些算子仍可能改变此句柄类型的实例状态。

参数

FileNameFileNameFileNameFileNamefileNamefile_name (输入控制)  filename.read HTuplestrHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .hslm

StructuredLightModelStructuredLightModelStructuredLightModelStructuredLightModelstructuredLightModelstructured_light_model (输出控制)  structured_light_model HStructuredLightModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the structured light model.

示例(HDevelop)

* 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_modelread_structured_light_modelReadStructuredLightModelReadStructuredLightModelReadStructuredLightModelread_structured_light_model 返回值 2 ( H_MSG_TRUE) if the given parameters are valid. 否则,将抛出异常。

可能的前趋

write_structured_light_modelwrite_structured_light_modelWriteStructuredLightModelWriteStructuredLightModelWriteStructuredLightModelwrite_structured_light_model

另见

create_structured_light_modelcreate_structured_light_modelCreateStructuredLightModelCreateStructuredLightModelCreateStructuredLightModelcreate_structured_light_model, clear_structured_light_modelclear_structured_light_modelClearStructuredLightModelClearStructuredLightModelClearStructuredLightModelclear_structured_light_model

模块

三维计量