Decorrelation stretch in Python
Decorrelation stretching enhances the color separation of an image.
It produces exaggerated colors which can improve visual interpretation
This fork of ds.py has been updated to run under Python3.
A simple commmand line utility named process_image.py has been added to demonstrate the use of ds.py.
-
Python Pillow, the Python Imaging Library. It can be installed with:
pip3 install Pillow
-
Numpy can also be installed with pip:
pip3 install numpy
from the decorrstretch directory run
python3 process_image.py
- Enter the name or path of the image file to be processed.
- Enter a name or path + name of the output file to be saved.
- Optionally enter a (tol) value for a linear stretch, e.g. 0.01,
The input and output file types can be different and most common file formats such as jpeg, png, etc. should work.