OutOfMaskSampleError¶
-
class
menpo.image.OutOfMaskSampleError(sampled_mask, sampled_values)[source]¶ Bases:
ValueErrorException 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,
Truewhere the image’s mask wasTrueandFalseotherwise. 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.