openalea.phenomenal.calibration.frame.mean_frame

openalea.phenomenal.calibration.frame.mean_frame(frames)[source]

Compute the mean frame of all given frames.

The returned frame is such as:
  • The origin of the frame is the barycenter of all frames

  • The third axis is the mean third axes of all frames

  • The first axis is the vector which is near the mean first axis of all frames in the plane normal to Oz

Parameters:
  • frames (list of Frame)

Returns Type:

Frame