ImageBoundaryError¶
- class menpo.image.base.ImageBoundaryError(requested_min, requested_max, snapped_min, snapped_max)[source]¶
Bases: ValueError
Exception that is thrown when an attempt is made to crop an image beyond the edge of it’s boundary.
- requested_min : (d,) ndarray
- The per-dimension minimum index requested for the crop
- requested_max : (d,) ndarray
- The per-dimension maximum index requested for the crop
- snapped_min : (d,) ndarray
- The per-dimension minimum index that could be used if the crop was constrained to the image boundaries.
- requested_max : (d,) ndarray
- The per-dimension maximum index that could be used if the crop was constrained to the image boundaries.