OutOfMaskSampleError

class menpo.image.OutOfMaskSampleError(sampled_mask, sampled_values)[source]

Bases: ValueError

Exception that is thrown when an attempt is made to sample an MaskedImage in an area that is masked out (where the mask is False).

Parameters
  • sampled_mask (bool ndarray) – The sampled mask, True where the image’s mask was True and False otherwise. Useful for masking out the sampling array.

  • sampled_values (ndarray) – The sampled values, no attempt at masking is made.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.