Function getBoundingBoxFromBBox