serialize_descriptor_modelT_serialize_descriptor_modelSerializeDescriptorModelSerializeDescriptorModelserialize_descriptor_model (Operator)
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_modelSerializeDescriptorModelSerializeDescriptorModelserialize_descriptor_model
serializes the data of a descriptor
model (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_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_modelWriteDescriptorModelWriteDescriptorModelwrite_descriptor_model
is converted to a serialized
item. The descriptor model is defined by the handle
ModelIDModelIDModelIDmodelIDmodel_id
. The serialized descriptor model is returned by the
handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
and can be deserialized by
deserialize_descriptor_modeldeserialize_descriptor_modelDeserializeDescriptorModelDeserializeDescriptorModeldeserialize_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
ModelIDModelIDModelIDmodelIDmodel_id
(input_control) descriptor_model →
HDescriptorModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of a model to be saved.
SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_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_modelSerializeDescriptorModelSerializeDescriptorModelserialize_descriptor_model
returns the value 2 (
H_MSG_TRUE)
.
If necessary, an exception is raised.
Possible Predecessors
points_lepetitpoints_lepetitPointsLepetitPointsLepetitpoints_lepetit
,
create_uncalib_descriptor_modelcreate_uncalib_descriptor_modelCreateUncalibDescriptorModelCreateUncalibDescriptorModelcreate_uncalib_descriptor_model
,
create_calib_descriptor_modelcreate_calib_descriptor_modelCreateCalibDescriptorModelCreateCalibDescriptorModelcreate_calib_descriptor_model
Possible Successors
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
,
send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemsend_serialized_item
,
deserialize_descriptor_modeldeserialize_descriptor_modelDeserializeDescriptorModelDeserializeDescriptorModeldeserialize_descriptor_model
See also
create_uncalib_descriptor_modelcreate_uncalib_descriptor_modelCreateUncalibDescriptorModelCreateUncalibDescriptorModelcreate_uncalib_descriptor_model
,
create_calib_descriptor_modelcreate_calib_descriptor_modelCreateCalibDescriptorModelCreateCalibDescriptorModelcreate_calib_descriptor_model
Module
Matching