bb_avg_edge_length¶
-
menpofit.error.
bb_avg_edge_length
(shape)[source]¶ Computes the average edge length of the bounding box of the provided shape, i.e.
\[\frac{h + w}{2} = \frac{2h + 2w}{4}\]where \(h\) and \(w\) are the height and width of the bounding box.
- Parameters
shape (menpo.shape.PointCloud or subclass) – The input shape.
- Returns
bb_avg_edge_length (float) – The average edge length of the bounding box.