serialize_structured_light_model🔗
Short description🔗
serialize_structured_light_model — Serialize a structured light model.
Signature🔗
serialize_structured_light_model( structured_light_model StructuredLightModel, out serialized_item SerializedItemHandle )
Description🔗
serialize_structured_light_model serializes a structured light
model (see fwrite_serialized_item for an introduction of the basic
principle of serialization). The structured light model is defined by the
handle StructuredLightModel. The serialized structured light model
is returned by the handle SerializedItemHandle and can be
deserialized by deserialize_structured_light_model.
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
StructuredLightModel (input_control) structured_light_model → (handle)
Handle of the structured light model.
SerializedItemHandle (output_control) serialized_item → (handle)
Handle of the serialized item.
Example🔗
(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)
* Serialize the model
serialize_structured_light_model (StructuredLightModel, \
SerializedItemHandle)
Result🔗
The operator serialize_structured_light_model returns the value
2 (H_MSG_TRUE) if the given parameters are valid. Otherwise, an exception will be
raised.
Combinations with other operators🔗
Combinations
Possible successors
clear_structured_light_model, fwrite_serialized_item, send_serialized_item, deserialize_structured_light_model
See also
create_structured_light_model, read_structured_light_model, deserialize_structured_light_model
Module🔗
3D Metrology