Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Apply a decorrelation stretch to an image
ResourceFunction["DecorrelationStretch"][image] applies a decorrelation stretch to a 2D image. | |
ResourceFunction["DecorrelationStretch"][image,colorspace] converts the image to colorspace before applying a decorrelation stretch. |
Apply a decorrelation stretch to an image:
In[1]:= |
Out[1]= |
Apply a decorrelation stretch to a rock-art image:
In[2]:= |
Out[2]= |
Converting the colorspace of the image before applying the decorrelation stretch can improve the results:
In[3]:= |
Out[3]= |
Doing a hue shift after applying a decorrelation stretch can further improve contrast:
In[4]:= |
Out[4]= |
Grayscale images are not supported:
In[5]:= |
Out[5]= |
Images that have the same value in each channel are also not supported:
In[6]:= |
Out[6]= |
Apply DecorrelationStretch to the current image:
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License