Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

10.23.  Stretch Contrast

Revision History
Revision $Revision$ 2006-09-11 scb

The Stretch Contrast command automatically stretches the histogram values in the active layer. For each channel of the active layer, it finds the minimum and maximum values and uses them to stretch the Red, Green and Blue histograms to the full contrast range. The bright colors become brighter and the dark colors become darker, which increases the contrast. This command produces a somewhat similar effect to the Normalize command, except that it works on each color channel of the layer individually. This usually leads to color shifts in the image, so it may not produce the desired result. “Stretch Contrast” works on layers of RGB, Grayscale and Indexed images. Use “Stretch Contrast” only if you want to remove an undesirable color tint from an image which should contain pure white and pure black.

This command is also similar to the White Balance command, but it does not reject any of the very dark or very bright pixels, so the white might be impure.

10.23.1.  Activating the Command

  • This command can be accessed from an image menubar as Layer->Colors->Auto->Stretch Contrast.

10.23.2.  Stretch Contrast” Example

Figure 10.94.  Original image

Original image

The layer and its Red, Green and Blue histograms before “Stretch Contrast”.

Figure 10.95.  Image after the command

Image after the command

The layer and its Red and Green and Blue histograms after “Stretch Contrast”. The pixel columns do not reach the right end of the histogram (255) because of a few very bright pixels, unlike “White Balance”.

Histogram stretching creates gaps between the pixel columns, giving it a striped look.


 
 
  Published under the terms of the GNU General Public License Design by Interspire