serialize_cam_parT_serialize_cam_parSerializeCamParSerializeCamParserialize_cam_par (Operator)
Name
serialize_cam_parT_serialize_cam_parSerializeCamParSerializeCamParserialize_cam_par
— Serialize the internal camera parameters.
Signature
def serialize_cam_par(camera_param: Sequence[Union[int, float, str]]) -> HHandle
Description
serialize_cam_parserialize_cam_parSerializeCamParSerializeCamParserialize_cam_par
serializes the internal camera parameters
(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_cam_parwrite_cam_parWriteCamParWriteCamParwrite_cam_par
is converted to a serialized item.
The camera parameters are defined by the tuple CameraParamCameraParamCameraParamcameraParamcamera_param
.
The serialized camera parameters are returned by the handle
SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
and can be deserialized by
deserialize_cam_pardeserialize_cam_parDeserializeCamParDeserializeCamPardeserialize_cam_par
.
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
CameraParamCameraParamCameraParamcameraParamcamera_param
(input_control) campar →
HCamPar, HTupleSequence[Union[int, float, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Internal camera parameters.
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_cam_parserialize_cam_parSerializeCamParSerializeCamParserialize_cam_par
returns the value 2 (
H_MSG_TRUE)
. If
necessary, an exception is raised.
Possible Successors
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
,
send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemsend_serialized_item
,
deserialize_cam_pardeserialize_cam_parDeserializeCamParDeserializeCamPardeserialize_cam_par
Module
Foundation