create_structured_light_modelT_create_structured_light_modelCreateStructuredLightModelCreateStructuredLightModelcreate_structured_light_model (算子名称)
名称
create_structured_light_modelT_create_structured_light_modelCreateStructuredLightModelCreateStructuredLightModelcreate_structured_light_model — Create a 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.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
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.
参数表
ModelTypeModelTypeModelTypeModelTypemodelTypemodel_type (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
The type of the created structured light model.
Default:
'deflectometry'
"deflectometry"
"deflectometry"
"deflectometry"
"deflectometry"
"deflectometry"
StructuredLightModelStructuredLightModelStructuredLightModelStructuredLightModelstructuredLightModelstructured_light_model (output_control) 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. Otherwise, an
exception will be raised.
可能的后置算子
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
模块
3D Metrology