ImageBoundaryError¶
-
class
menpo.image.
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.
- Parameters
requested_min (
(d,)
ndarray) – The per-dimension minimum index requested for the croprequested_max (
(d,)
ndarray) – The per-dimension maximum index requested for the cropsnapped_min (
(d,)
ndarray) – The per-dimension minimum index that could be used if the crop was constrained to the image boundaries.requested_max – The per-dimension maximum index that could be used if the crop was constrained to the image boundaries.
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.