openalea.phenomenal.calibration.object.Calibration#

class openalea.phenomenal.calibration.object.Calibration(angle_factor=1, targets=None, cameras=None, target_points=None, reference_camera='side', clockwise_rotation=True, calibration_statistics=None, frames=None)[source]#

Bases: object

A class for calibrated rotation system

__init__(angle_factor=1, targets=None, cameras=None, target_points=None, reference_camera='side', clockwise_rotation=True, calibration_statistics=None, frames=None)[source]#

Methods

__init__([angle_factor, targets, cameras, ...])

dump(filename)

frame_lines(view, angle[, frame, l, w, at])

from_dict(save_class)

get_frame([frame])

get_image_shape(id_camera)

get_projection(id_camera, rotation[, ...])

get_target_points(id_target[, box, border])

get_target_projected(id_camera, id_target, ...)

get_turntable_frame(rotation)

load(filename)

target_box(id_target[, border])

target_mask(id_camera, id_target, rotation)

Get image coordinate of a mask arround the target

turntable_frame(rotation[, angle_factor, ...])

Frame attached to turntable.

world_frame(camera)

World frame defined by an alternative camera positioned in the current reference camera world frame

target_mask(id_camera, id_target, rotation, border=2)[source]#

Get image coordinate of a mask arround the target

Parameters:

border – the size of the border (in square_size units)

static turntable_frame(rotation, angle_factor=1, clockwise=True)[source]#

Frame attached to turntable. This correspond to a rotation of the world native frame.

Parameters:
  • rotation – the rotation consign of the turning table

  • angle_factor – a float multiplier of rotation consign to obtain actual rotation angle

  • clockwise – is turntable rotating clockwise ?

Returns:

a frame object

world_frame(camera)[source]#

World frame defined by an alternative camera positioned in the current reference camera world frame