bb_diagonal¶
-
menpofit.error.
bb_diagonal
(shape)¶ Computes the diagonal of the bounding box of the provided shape, i.e.
\[\sqrt{h^2 + w^2}\]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_diagonal (float) – The diagonal of the bounding box.