serialize_cam_parT_serialize_cam_parSerializeCamParSerializeCamParserialize_cam_par (Operator)

Name

serialize_cam_parT_serialize_cam_parSerializeCamParSerializeCamParserialize_cam_par — Serialize the internal camera parameters.

Signature

serialize_cam_par( : : CameraParam : SerializedItemHandle)

Herror T_serialize_cam_par(const Htuple CameraParam, Htuple* SerializedItemHandle)

void SerializeCamPar(const HTuple& CameraParam, HTuple* SerializedItemHandle)

HSerializedItem HCamPar::SerializeCamPar() const

static void HOperatorSet.SerializeCamPar(HTuple cameraParam, out HTuple serializedItemHandle)

HSerializedItem HCamPar.SerializeCamPar()

def serialize_cam_par(camera_param: Sequence[Union[int, float, str]]) -> HHandle

Description

serialize_cam_parserialize_cam_parSerializeCamParSerializeCamParSerializeCamParserialize_cam_par serializes the internal camera parameters (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_cam_parwrite_cam_parWriteCamParWriteCamParWriteCamParwrite_cam_par is converted to a serialized item. The camera parameters are defined by the tuple CameraParamCameraParamCameraParamCameraParamcameraParamcamera_param. The serialized camera parameters are returned by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle and can be deserialized by deserialize_cam_pardeserialize_cam_parDeserializeCamParDeserializeCamParDeserializeCamPardeserialize_cam_par.

Execution Information

Parameters

CameraParamCameraParamCameraParamCameraParamcameraParamcamera_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.

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_cam_parserialize_cam_parSerializeCamParSerializeCamParSerializeCamParserialize_cam_par returns the value 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

Possible Successors

fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItemsend_serialized_item, deserialize_cam_pardeserialize_cam_parDeserializeCamParDeserializeCamParDeserializeCamPardeserialize_cam_par

Module

Foundation