create_structured_light_modelT_create_structured_light_modelCreateStructuredLightModelCreateStructuredLightModelcreate_structured_light_model (算子)
名称
create_structured_light_modelT_create_structured_light_modelCreateStructuredLightModelCreateStructuredLightModelcreate_structured_light_model — 创建结构光模型。
签名
def create_structured_light_model(model_type: str) -> HHandle
描述
create_structured_light_modelcreate_structured_light_modelCreateStructuredLightModelCreateStructuredLightModelCreateStructuredLightModelcreate_structured_light_model creates a new structured light
model of type ModelTypeModelTypeModelTypeModelTypemodelTypemodel_type. Currently, only the type
'deflectometry'"deflectometry""deflectometry""deflectometry""deflectometry""deflectometry" is supported.
The parameters of the structured light model can be queried with
get_structured_light_model_paramget_structured_light_model_paramGetStructuredLightModelParamGetStructuredLightModelParamGetStructuredLightModelParamget_structured_light_model_param and manipulated by calls to
set_structured_light_model_paramset_structured_light_model_paramSetStructuredLightModelParamSetStructuredLightModelParamSetStructuredLightModelParamset_structured_light_model_param。
For an explanation of the concept of structured light and its supported
applications, see the introduction of chapter
Inspection / Structured Light。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
此算子返回一个句柄。请注意,即使该句柄被用作特定算子的输入参数,这些算子仍可能改变此句柄类型的实例状态。
参数
ModelTypeModelTypeModelTypeModelTypemodelTypemodel_type (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
The type of the created structured light model.
默认值:
'deflectometry'
"deflectometry"
"deflectometry"
"deflectometry"
"deflectometry"
"deflectometry"
StructuredLightModelStructuredLightModelStructuredLightModelStructuredLightModelstructuredLightModelstructured_light_model (输出控制) structured_light_model → HStructuredLightModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle for using and accessing the structured
light model.
示例(HDevelop)
* Create the model
create_structured_light_model ('deflectometry', StructuredLightModel)
* Generate the patterns to project
gen_structured_light_pattern (PatternImages, StructuredLightModel)
* Decode the camera images
decode_structured_light_pattern (CameraImages, StructuredLightModel)
结果
算子 create_structured_light_modelcreate_structured_light_modelCreateStructuredLightModelCreateStructuredLightModelCreateStructuredLightModelcreate_structured_light_model 返回值 2 (
H_MSG_TRUE)
if the structured light model can be allocated correctly. 否则,将抛出异常。
可能的后继
set_structured_light_model_paramset_structured_light_model_paramSetStructuredLightModelParamSetStructuredLightModelParamSetStructuredLightModelParamset_structured_light_model_param,
get_structured_light_model_paramget_structured_light_model_paramGetStructuredLightModelParamGetStructuredLightModelParamGetStructuredLightModelParamget_structured_light_model_param
模块
三维计量