Skip to content

deserialize_structured_light_modelDeserializeStructuredLightModelDeserializeStructuredLightModeldeserialize_structured_light_modelT_deserialize_structured_light_model🔗

Short description🔗

deserialize_structured_light_modelDeserializeStructuredLightModelDeserializeStructuredLightModeldeserialize_structured_light_modelT_deserialize_structured_light_model — Deserialize a structured light model.

Signature🔗

deserialize_structured_light_model( serialized_item SerializedItemHandle, out structured_light_model StructuredLightModel )void DeserializeStructuredLightModel( const HTuple& SerializedItemHandle, HTuple* StructuredLightModel )static void HOperatorSet.DeserializeStructuredLightModel( HTuple serializedItemHandle, out HTuple structuredLightModel )def deserialize_structured_light_model( serialized_item_handle: HHandle ) -> HHandle

Herror T_deserialize_structured_light_model( const Htuple SerializedItemHandle, Htuple* StructuredLightModel )

void HStructuredLightModel::DeserializeStructuredLightModel( const HSerializedItem& SerializedItemHandle )

void HStructuredLightModel.DeserializeStructuredLightModel( HSerializedItem serializedItemHandle )

Description🔗

deserialize_structured_light_modelDeserializeStructuredLightModel deserializes a structured light model that was serialized by serialize_structured_light_modelSerializeStructuredLightModel (see fwrite_serialized_itemFwriteSerializedItem for an introduction of the basic principle of serialization). The serialized structured light model is defined by the handle SerializedItemHandleserializedItemHandleserialized_item_handle. The deserialized values are stored in an automatically created structured light model with the handle StructuredLightModelstructuredLightModelstructured_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.

This operator modifies the state of the following input parameter:

During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.

Parameters🔗

SerializedItemHandleserializedItemHandleserialized_item_handle (input_control) serialized_item → (handle)HTuple (HHandle)HSerializedItem, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the serialized item.

StructuredLightModelstructuredLightModelstructured_light_model (output_control, state is modified) structured_light_model → (handle)HTuple (HHandle)HStructuredLightModel, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the structured light model.

Example🔗

(HDevelop)

* Deserialize the model
deserialize_structured_light_model (SerializedItemHandle, \
                                    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')

Result🔗

The operator deserialize_structured_light_modelDeserializeStructuredLightModel 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 predecessors

fread_serialized_itemFreadSerializedItem, receive_serialized_itemReceiveSerializedItem, serialize_structured_light_modelSerializeStructuredLightModel

See also

create_structured_light_modelCreateStructuredLightModel, write_structured_light_modelWriteStructuredLightModel, serialize_structured_light_modelSerializeStructuredLightModel

Module🔗

3D Metrology