bb_perimeter¶
-
menpofit.error.
bb_perimeter
(shape)[source]¶ Computes the perimeter of the bounding box of the provided shape, i.e.
\[2(h + w)\]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_perimeter (float) – The perimeter of the bounding box.