ImageFile.Stoner__Image__imagefuncs__remove_outliers¶
- ImageFile.Stoner__Image__imagefuncs__remove_outliers(percentiles=(0.01, 0.99), replace=None)¶
Find values of the data that are beyond a percentile of the overall distribution and replace them.
- Keyword Parameters:
- percentile (2 tuple):
Fraction percentiles to consider to be outliers (default is (0.01,0.99) for 1% limits)
- replace (2 tuple or None):
Values to set outliers to. If None, then the pixel values at the percentile limits are used.
- Returns:
(ndarray) – The modified array.
Use this method if you have an image with a small number of pixels with extreme values that are out of range.