openalea.phenomenal.calibration.calibration.OldCalibrationCamera

class openalea.phenomenal.calibration.calibration.OldCalibrationCamera[source]

Bases: object

A class for using camera calibrated with older version of phenomenal (< 1.7.1)

__init__()[source]

Methods

__init__()

camera_frame(pos_x, pos_y, pos_z, rot_x, ...)

get_camera_frame()

get_pixel_coordinates()

get_projection(alpha)

get_projection2(alpha)

load(filename)

pixel_coordinates(point_3d, width_image, ...)

Compute image coordinates of a 3d point

pixel_coordinates_2(point_3d, cx, cy, fx, fy)

Compute image coordinates of a 3d point

target_frame(pos_x, pos_y, pos_z, rot_x, ...)

static pixel_coordinates(point_3d, width_image, height_image, focal_length_x, focal_length_y)[source]

Compute image coordinates of a 3d point

Parameters:

point (-) – a point in space expressed in camera frame coordinates

Returns:

coordinate of point in image in pix

Return type:

  • (int, int)

static pixel_coordinates_2(point_3d, cx, cy, fx, fy)[source]

Compute image coordinates of a 3d point

Parameters:

point (-) – a point in space expressed in camera frame coordinates

Returns:

coordinate of point in image in pix

Return type:

  • (int, int)