Glare reduction is a step in Recovering glare images by Image processing method in Convolutional Neural Network (CNN).
You can use this at step: pre-processing data in CNN.
Glare reduction includes 3-mixed-filter by 4 steps:
- Reduce-glare filter
- Enhance contract: f = 1.6
- Reduce-glare filter
- Enhance contract: f = 1.4
More details at Documentation.pdf
- Put your glare image into
examples
folder. - In your terminal:
python generate.py && python show_case.py
- Check out your
Generated_Image
folder.
Include a 4-mixed-filter by 4 steps:
- First polynomial function
- Gamma correction: g = 0.75
- Second polynomial function
- Gamma correction: g = 0.8
For every pixel value within [0; 255], First polynomial function
map it to another value so that:
- The intensity with value less than 100 will increase.
- The intensity with value greater than 100 will decrease.
Orange line
x is original intensity
y = f(x) is intensity after applying the first polynomial function
First polynomial function
's expression:
For every pixel value within [0; 255], Second polynomial function
map it to another value so that:
- The intensity with value less than 160 will increase.
- The intensity with value greater than 160 will decrease.
Orange line
x is original intensity
y = f(x) is intensity after applying the second polynomial function
Second polynomial function
's expression: