serialize_descriptor_modelT_serialize_descriptor_modelSerializeDescriptorModelSerializeDescriptorModelserialize_descriptor_model (Operator)
Name
serialize_descriptor_modelT_serialize_descriptor_modelSerializeDescriptorModelSerializeDescriptorModelserialize_descriptor_model
— Serialize a descriptor model.
Signature
def serialize_descriptor_model(model_id: HHandle) -> HHandle
Description
serialize_descriptor_modelserialize_descriptor_modelSerializeDescriptorModelSerializeDescriptorModelSerializeDescriptorModelserialize_descriptor_model
serializes the data of a descriptor
model (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
for an introduction of the
basic principle of serialization). The same data that is written
in a file by write_descriptor_modelwrite_descriptor_modelWriteDescriptorModelWriteDescriptorModelWriteDescriptorModelwrite_descriptor_model
is converted to a serialized
item. The descriptor model is defined by the handle
ModelIDModelIDModelIDModelIDmodelIDmodel_id
. The serialized descriptor model is returned by the
handle SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
and can be deserialized by
deserialize_descriptor_modeldeserialize_descriptor_modelDeserializeDescriptorModelDeserializeDescriptorModelDeserializeDescriptorModeldeserialize_descriptor_model
.
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
ModelIDModelIDModelIDModelIDmodelIDmodel_id
(input_control) descriptor_model →
HDescriptorModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of a model to be saved.
SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
(output_control) serialized_item →
HSerializedItem, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the serialized item.
Result
If the parameters are valid, the operator
serialize_descriptor_modelserialize_descriptor_modelSerializeDescriptorModelSerializeDescriptorModelSerializeDescriptorModelserialize_descriptor_model
returns the value 2 (H_MSG_TRUE).
If necessary, an exception is raised.
Possible Predecessors
points_lepetitpoints_lepetitPointsLepetitPointsLepetitPointsLepetitpoints_lepetit
,
create_uncalib_descriptor_modelcreate_uncalib_descriptor_modelCreateUncalibDescriptorModelCreateUncalibDescriptorModelCreateUncalibDescriptorModelcreate_uncalib_descriptor_model
,
create_calib_descriptor_modelcreate_calib_descriptor_modelCreateCalibDescriptorModelCreateCalibDescriptorModelCreateCalibDescriptorModelcreate_calib_descriptor_model
Possible Successors
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
,
send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItemsend_serialized_item
,
deserialize_descriptor_modeldeserialize_descriptor_modelDeserializeDescriptorModelDeserializeDescriptorModelDeserializeDescriptorModeldeserialize_descriptor_model
See also
create_uncalib_descriptor_modelcreate_uncalib_descriptor_modelCreateUncalibDescriptorModelCreateUncalibDescriptorModelCreateUncalibDescriptorModelcreate_uncalib_descriptor_model
,
create_calib_descriptor_modelcreate_calib_descriptor_modelCreateCalibDescriptorModelCreateCalibDescriptorModelCreateCalibDescriptorModelcreate_calib_descriptor_model
Module
Matching