ClassesClassesClassesClasses | | | | Operators

set_camera_setup_paramset_camera_setup_paramSetCameraSetupParamset_camera_setup_paramSetCameraSetupParamSetCameraSetupParam (Operator)

Name

set_camera_setup_paramset_camera_setup_paramSetCameraSetupParamset_camera_setup_paramSetCameraSetupParamSetCameraSetupParam — Set generic camera setup model parameters.

Signature

set_camera_setup_param( : : CameraSetupModelID, CameraIdx, GenParamName, GenParamValue : )

Herror set_camera_setup_param(const Hlong CameraSetupModelID, const Hlong CameraIdx, const char* GenParamName, double GenParamValue)

Herror T_set_camera_setup_param(const Htuple CameraSetupModelID, const Htuple CameraIdx, const Htuple GenParamName, const Htuple GenParamValue)

Herror set_camera_setup_param(const HTuple& CameraSetupModelID, const HTuple& CameraIdx, const HTuple& GenParamName, const HTuple& GenParamValue)

void HCameraSetupModel::SetCameraSetupParam(const HTuple& CameraIdx, const HTuple& GenParamName, const HTuple& GenParamValue) const

void SetCameraSetupParam(const HTuple& CameraSetupModelID, const HTuple& CameraIdx, const HTuple& GenParamName, const HTuple& GenParamValue)

void HCameraSetupModel::SetCameraSetupParam(const HTuple& CameraIdx, const HString& GenParamName, const HTuple& GenParamValue) const

void HCameraSetupModel::SetCameraSetupParam(Hlong CameraIdx, const HString& GenParamName, double GenParamValue) const

void HCameraSetupModel::SetCameraSetupParam(Hlong CameraIdx, const char* GenParamName, double GenParamValue) const

void HOperatorSetX.SetCameraSetupParam(
[in] VARIANT CameraSetupModelID, [in] VARIANT CameraIdx, [in] VARIANT GenParamName, [in] VARIANT GenParamValue)

void HCameraSetupModelX.SetCameraSetupParam(
[in] VARIANT CameraIdx, [in] BSTR GenParamName, [in] VARIANT GenParamValue)

static void HOperatorSet.SetCameraSetupParam(HTuple cameraSetupModelID, HTuple cameraIdx, HTuple genParamName, HTuple genParamValue)

void HCameraSetupModel.SetCameraSetupParam(HTuple cameraIdx, string genParamName, HTuple genParamValue)

void HCameraSetupModel.SetCameraSetupParam(int cameraIdx, string genParamName, double genParamValue)

Description

The operator set_camera_setup_paramset_camera_setup_paramSetCameraSetupParamset_camera_setup_paramSetCameraSetupParamSetCameraSetupParam can be used to set diverse generic parameters or transformations for the camera setup model CameraSetupModelIDCameraSetupModelIDCameraSetupModelIDCameraSetupModelIDCameraSetupModelIDcameraSetupModelID. Two types of parameters can be set with this operator:

Coordinate system of the setup and transformation of camera poses:

By setting CameraIdxCameraIdxCameraIdxCameraIdxCameraIdxcameraIdx to 'general'"general""general""general""general""general" and GenParamNameGenParamNameGenParamNameGenParamNameGenParamNamegenParamName to one of the following values, you can perform the following general pose transformation for all cameras:

'reference_camera'"reference_camera""reference_camera""reference_camera""reference_camera""reference_camera":

When setting GenParamValueGenParamValueGenParamValueGenParamValueGenParamValuegenParamValue to a valid camera index, all camera poses are recomputed relative to the coordinate system of this camera.

'coord_transf_pose'"coord_transf_pose""coord_transf_pose""coord_transf_pose""coord_transf_pose""coord_transf_pose":

When passing a tuple in HALCON pose format in GenParamValueGenParamValueGenParamValueGenParamValueGenParamValuegenParamValue, the current coordinate system is moved into this pose. The pose in GenParamValueGenParamValueGenParamValueGenParamValueGenParamValuegenParamValue represents the location and orientation of the desired coordinate system relative to the current one. All camera poses are recomputed relative to the new coordinate system.

The recomputed camera poses can be inspected with the operator get_camera_setup_paramget_camera_setup_paramGetCameraSetupParamget_camera_setup_paramGetCameraSetupParamGetCameraSetupParam.

Camera parameters:

By setting CameraIdxCameraIdxCameraIdxCameraIdxCameraIdxcameraIdx to a valid setup camera index (a value between 0 and NumCameras-1) and GenParamNameGenParamNameGenParamNameGenParamNameGenParamNamegenParamName to one of the following values, camera specific parameters can be set with GenParamValueGenParamValueGenParamValueGenParamValueGenParamValuegenParamValue:

'params'"params""params""params""params""params":

A tuple with internal camera parameters.

'params_deviations'"params_deviations""params_deviations""params_deviations""params_deviations""params_deviations":

A tuple with the standard deviations of the internal camera parameters. The length of the tuple must be equal to the length of the internal parameters, which is camera-type dependent. See set_camera_setup_cam_paramset_camera_setup_cam_paramSetCameraSetupCamParamset_camera_setup_cam_paramSetCameraSetupCamParamSetCameraSetupCamParam for further details.

'params_covariances'"params_covariances""params_covariances""params_covariances""params_covariances""params_covariances":

A tuple with the covariance matrix of the internal camera parameters. The length of the tuple must be the square of the tuple length of the internal camera parameters, which depend on the camera type. See set_camera_setup_cam_paramset_camera_setup_cam_paramSetCameraSetupCamParamset_camera_setup_cam_paramSetCameraSetupCamParamSetCameraSetupCamParam for further details.

'pose'"pose""pose""pose""pose""pose":

A tuple representing the pose of the camera in HALCON pose format, relative to camera setup's coordinate system. See the above section for further details.

Note that the camera must already be defined in the model, before any of its parameters can be changed by set_camera_setup_paramset_camera_setup_paramSetCameraSetupParamset_camera_setup_paramSetCameraSetupParamSetCameraSetupParam. If CameraIdxCameraIdxCameraIdxCameraIdxCameraIdxcameraIdx is an index of a undefined camera, the operator returns an error.

All parameters can be read back by get_camera_setup_paramget_camera_setup_paramGetCameraSetupParamget_camera_setup_paramGetCameraSetupParamGetCameraSetupParam.

Parallelization

Parameters

CameraSetupModelIDCameraSetupModelIDCameraSetupModelIDCameraSetupModelIDCameraSetupModelIDcameraSetupModelID (input_control)  camera_setup_model HCameraSetupModel, HTupleHTupleHCameraSetupModel, HTupleHCameraSetupModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle to the camera setup model.

CameraIdxCameraIdxCameraIdxCameraIdxCameraIdxcameraIdx (input_control)  integer(-array) HTupleHTupleHTupleVARIANTHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*) (Hlong / BSTR) (Hlong / char*)

Unique index of the camera in the setup.

Default value: 0

Suggested values: 0, 1, 2, 'general'"general""general""general""general""general"

GenParamNameGenParamNameGenParamNameGenParamNameGenParamNamegenParamName (input_control)  attribute.name HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Names of the generic parameters to be set.

List of values: 'coord_transf_pose'"coord_transf_pose""coord_transf_pose""coord_transf_pose""coord_transf_pose""coord_transf_pose", 'params'"params""params""params""params""params", 'params_covariances'"params_covariances""params_covariances""params_covariances""params_covariances""params_covariances", 'params_deviations'"params_deviations""params_deviations""params_deviations""params_deviations""params_deviations", 'pose'"pose""pose""pose""pose""pose", 'reference_camera'"reference_camera""reference_camera""reference_camera""reference_camera""reference_camera"

GenParamValueGenParamValueGenParamValueGenParamValueGenParamValuegenParamValue (input_control)  attribute.value(-array) HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)

Values of the generic parameters to be set.

Possible Predecessors

create_camera_setup_modelcreate_camera_setup_modelCreateCameraSetupModelcreate_camera_setup_modelCreateCameraSetupModelCreateCameraSetupModel, read_camera_setup_modelread_camera_setup_modelReadCameraSetupModelread_camera_setup_modelReadCameraSetupModelReadCameraSetupModel

Module

Calibration


ClassesClassesClassesClasses | | | | Operators