Package org.itk.simple
Class AdaptiveHistogramEqualizationImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.AdaptiveHistogramEqualizationImageFilter
Power Law Adaptive Histogram Equalization.
Histogram equalization modifies the contrast in an image. The AdaptiveHistogramEqualizationImageFilter is a superset of many contrast enhancing filters. By modifying its
parameters (alpha, beta, and window), the AdaptiveHistogramEqualizationImageFilter can produce an adaptively equalized histogram or a version of unsharp
mask (local mean subtraction). Instead of applying a strict histogram
equalization in a window about a pixel, this filter prescribes a
mapping function (power law) controlled by the parameters alpha and
beta.
The parameter alpha controls how much the filter acts like the
classical histogram equalization method (alpha=0) to how much the
filter acts like an unsharp mask (alpha=1).
The parameter beta controls how much the filter acts like an unsharp
mask (beta=0) to much the filter acts like pass through (beta=1, with
alpha=1).
The parameter window controls the size of the region over which local
statistics are calculated. The size of the window is controlled by
SetRadius the default Radius is 5 in all directions.
By altering alpha, beta and window, a host of equalization and unsharp
masking filters is available.
The boundary condition ignores the part of the neighborhood outside
the image, and over-weights the valid part of the neighborhood.
For detail description, reference "Adaptive Image Contrast
Enhancement using Generalizations of Histogram Equalization." J.Alex
Stark. IEEE Transactions on Image Processing, May 2000.
See:
itk::simple::AdaptiveHistogramEqualization for the procedural interface
itk::AdaptiveHistogramEqualizationImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkAdaptiveHistogramEqualizationImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::AdaptiveHistogramEqualizationImageFilter::AdaptiveHistogramEqualizationImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
AdaptiveHistogramEqualizationImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::AdaptiveHistogramEqualizationImageFilter::~AdaptiveHistogramEqualizationImageFilter() DestructorImage itk::simple::AdaptiveHistogramEqualizationImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
float
getAlpha()
float itk::simple::AdaptiveHistogramEqualizationImageFilter::GetAlpha() const Set/Get the value of alpha.float
getBeta()
float itk::simple::AdaptiveHistogramEqualizationImageFilter::GetBeta() const Set/Get the value of beta.protected static long
getName()
std::string itk::simple::AdaptiveHistogramEqualizationImageFilter::GetName() const Name of this classstd::vector<unsigned int> itk::simple::AdaptiveHistogramEqualizationImageFilter::GetRadius() constvoid
setAlpha
(float Alpha) Self& itk::simple::AdaptiveHistogramEqualizationImageFilter::SetAlpha(float Alpha) Set/Get the value of alpha.void
setBeta
(float Beta) Self& itk::simple::AdaptiveHistogramEqualizationImageFilter::SetBeta(float Beta) Set/Get the value of beta.void
setRadius
(long value) Self& itk::simple::AdaptiveHistogramEqualizationImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to valuevoid
setRadius
(VectorUInt32 Radius) Self& itk::simple::AdaptiveHistogramEqualizationImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to valueprotected static long
toString()
std::string itk::simple::AdaptiveHistogramEqualizationImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods inherited from class org.itk.simple.ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
-
Constructor Details
-
AdaptiveHistogramEqualizationImageFilter
protected AdaptiveHistogramEqualizationImageFilter(long cPtr, boolean cMemoryOwn) -
AdaptiveHistogramEqualizationImageFilter
public AdaptiveHistogramEqualizationImageFilter()itk::simple::AdaptiveHistogramEqualizationImageFilter::AdaptiveHistogramEqualizationImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::AdaptiveHistogramEqualizationImageFilter::~AdaptiveHistogramEqualizationImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setRadius
Self& itk::simple::AdaptiveHistogramEqualizationImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value -
setRadius
public void setRadius(long value) Self& itk::simple::AdaptiveHistogramEqualizationImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value -
getRadius
std::vector<unsigned int> itk::simple::AdaptiveHistogramEqualizationImageFilter::GetRadius() const -
setAlpha
public void setAlpha(float Alpha) Self& itk::simple::AdaptiveHistogramEqualizationImageFilter::SetAlpha(float Alpha) Set/Get the value of alpha. Alpha = 0 produces the adaptive histogram equalization (provided beta=0). Alpha = 1 produces an unsharp mask. Default is 0.3. -
getAlpha
public float getAlpha()float itk::simple::AdaptiveHistogramEqualizationImageFilter::GetAlpha() const Set/Get the value of alpha. Alpha = 0 produces the adaptive histogram equalization (provided beta=0). Alpha = 1 produces an unsharp mask. Default is 0.3. -
setBeta
public void setBeta(float Beta) Self& itk::simple::AdaptiveHistogramEqualizationImageFilter::SetBeta(float Beta) Set/Get the value of beta. If beta = 1 (and alpha = 1), then the output image matches the input image. As beta approaches 0, the filter behaves as an unsharp mask. Default is 0.3. -
getBeta
public float getBeta()float itk::simple::AdaptiveHistogramEqualizationImageFilter::GetBeta() const Set/Get the value of beta. If beta = 1 (and alpha = 1), then the output image matches the input image. As beta approaches 0, the filter behaves as an unsharp mask. Default is 0.3. -
getName
std::string itk::simple::AdaptiveHistogramEqualizationImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::AdaptiveHistogramEqualizationImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::AdaptiveHistogramEqualizationImageFilter::Execute(const Image &image1) Execute the filter on the input image
-