ContrastEnhancement defines the 'stretching' of contrast for a channel of a false-color image or for a whole grey/color image. More...
#include <ContrastEnhancement.h>
Public Types | |
enum | ContrastEnhancementType { ENHANCEMENT_NORMALIZE, ENHANCEMENT_HISTOGRAM, ENHANCEMENT_NONE } |
The type of contrast enhancement. More... | |
Public Member Functions | |
ContrastEnhancement * | clone () const |
It creates a new copy of this object. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
ContrastEnhancement () | |
It initializes a new ContrastEnhancement. More... | |
~ContrastEnhancement () | |
Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
void | setContrastEnhancementType (ContrastEnhancementType t) |
ContrastEnhancementType | getContrastEnhancementType () const |
void | setGammaValue (const double &v) |
double | getGammaValue () const |
Private Attributes | |
ContrastEnhancementType | m_contrast |
Contrast enhancement type. (Optional) More... | |
double | m_gammaValue |
It tells how much to brighten (values greater than 1.0) or dim (values less than 1.0) an image. (Optional) More... | |
ContrastEnhancement defines the 'stretching' of contrast for a channel of a false-color image or for a whole grey/color image.
Contrast enhancement is used to make ground features in images more visible. In the case of a color image, the relative grayscale brightness of a pixel color is used. Normalize means to stretch the contrast so that the dimmest color is stretched to black and the brightest color is stretched to white, with all colors in between stretched out linearly. Histogram means to stretch the contrast based on a histogram of how many colors are at each brightness level on input, with the goal of producing equal number of pixels in the image at each brightness level on output. This has the effect of revealing many subtle ground features. A GammaValue tells how much to brighten (values greater than 1.0) or dim (values less than 1.0) an image. The default GammaValue is 1.0 (no change). If none of Normalize, Histogram, or GammaValue are selected in a ContrastEnhancement, then no enhancement is performed.
Definition at line 64 of file ContrastEnhancement.h.
The type of contrast enhancement.
Enumerator | |
---|---|
ENHANCEMENT_NORMALIZE |
It means to stretch the contrast so that the dimmest color is stretched to black and the brightest color is stretched to white, with all colors in between stretched out linearly. |
ENHANCEMENT_HISTOGRAM |
It means to stretch the contrast based on a histogram of how many colors are at each brightness level on input, with the goal of producing equal number of pixels in the image at each brightness level on output. This has the effect of revealing many subtle ground features. |
ENHANCEMENT_NONE |
No contrast enhancement must be applied. |
Definition at line 73 of file ContrastEnhancement.h.
te::se::ContrastEnhancement::ContrastEnhancement | ( | ) |
It initializes a new ContrastEnhancement.
te::se::ContrastEnhancement::~ContrastEnhancement | ( | ) |
Destructor.
ContrastEnhancement* te::se::ContrastEnhancement::clone | ( | ) | const |
It creates a new copy of this object.
|
inline |
Definition at line 110 of file ContrastEnhancement.h.
|
inline |
Definition at line 114 of file ContrastEnhancement.h.
void te::se::ContrastEnhancement::setContrastEnhancementType | ( | ContrastEnhancementType | t | ) |
void te::se::ContrastEnhancement::setGammaValue | ( | const double & | v | ) |
|
private |
Contrast enhancement type. (Optional)
Definition at line 123 of file ContrastEnhancement.h.
|
private |
It tells how much to brighten (values greater than 1.0) or dim (values less than 1.0) an image. (Optional)
Definition at line 124 of file ContrastEnhancement.h.