Open szymonk92 opened 5 years ago
It's planned for the near future to add CLAHE or a similar technique. Haven't done that in the past as the methods tend to be implemented so that they only improve the contrast of images, while in an image augmentation library you might rather want to have a method that worsens the contrast so that the model learns to compensate for bad contrast.
@aleju Thanks for your effort. From my perspective, it would be great to have such methods. Since most of the time images come from different sources with different light and so on, methods such as Contrast-Enhanced Image could be used as a pre-processing step (in some cases might worst the image) or as a data augmentation (might worst or improve it). I prefer to fees the network with as little pre-processing as possible (when pro-processing is not obvious) and then use heavy data augmentation.
The normalization methods are now in master. As they are based on the corresponding OpenCV methods, they only increase the contrast though and don't decrease it.
Would be great to see histogram normalization and CLAHE. Simple methods but very useful with very bright/dark images. Probably applied only to B&W images.