Atalasoft dotImage Send comments on this topic.
HistogramStretchCommand Class
See Also  Members  
Atalasoft.dotImage Assembly > Atalasoft.Imaging.ImageProcessing.Effects Namespace : HistogramStretchCommand Class




Performs a histogram stretch on an image.

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class HistogramStretchCommand 
   Inherits ImageRegionCommand
Visual Basic (Usage)Copy Code
Dim instance As HistogramStretchCommand
C# 
[SerializableAttribute()]
public class HistogramStretchCommand : ImageRegionCommand 
Managed Extensions for C++ 
[SerializableAttribute()]
public __gc class HistogramStretchCommand : public ImageRegionCommand 
C++/CLI 
[SerializableAttribute()]
public ref class HistogramStretchCommand : public ImageRegionCommand 

Remarks

Re-distribute the pixel values across the given range by first setting values above and below the thresholds to zero and 255 respectively and then scaling the remaining values to span the entire zero to 255 range.

This can be used to increase the contrast and extend the dynamic range of an image.

When applied to multi-channel (RGB, RGBA) images, each channel is modified independently of the others; because of this, colors may shift.  See BrightnessHistogramStretchCommand for a similar command that doesn't cause this color shift.

Inheritance Hierarchy

System.Object
   Atalasoft.Imaging.ImageProcessing.ImageCommand
      Atalasoft.Imaging.ImageProcessing.ImageRegionCommand
         Atalasoft.Imaging.ImageProcessing.Effects.HistogramStretchCommand

Requirements

Namespace: Atalasoft.Imaging.ImageProcessing.Effects

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Atalasoft.dotImage (in Atalasoft.dotImage.dll)

See Also