mapping.h file
Image grey-value mapping functions. See Grey-value mapping.
Contents
- Reference
Functions
-
void dip::
Clip(dip::Image const& in, dip::Image& out, dip::dfloat low = 0.0, dip::dfloat high = 255.0, dip::String const& mode = S::BOTH) - Clips the sample values in
in
to a specified range. -
void dip::
ClipLow(dip::Image const& in, dip::Image& out, dip::dfloat low = 0.0) - Clips the sample values in
in
, putting all values belowlow
tolow
. -
void dip::
ClipHigh(dip::Image const& in, dip::Image& out, dip::dfloat high = 255.0) - Clips the sample values in
in
, putting all values abovehigh
tohigh
. -
void dip::
ErfClip(dip::Image const& in, dip::Image& out, dip::dfloat low = 128.0, dip::dfloat high = 64.0, dip::String const& mode = S::RANGE) - Clips the sample values in
in
to a specified range, using the error function. -
void dip::
Zero(dip::Image const& in, dip::Image& out, dip::dfloat threshold = 128.0) - Zeros the sample values in
in
that are belowthreshold
. -
void dip::
Shrinkage(dip::Image const& in, dip::Image& out, dip::dfloat threshold = 128.0) - Shrinkage function, also known as soft threshold.
-
void dip::
ContrastStretch(dip::Image const& in, dip::Image& out, dip::dfloat lowerBound = 0.0, dip::dfloat upperBound = 100.0, dip::dfloat outMin = 0.0, dip::dfloat outMax = 255.0, dip::String const& method = S::LINEAR, dip::dfloat parameter1 = 1.0, dip::dfloat parameter2 = 0.0) - Applies a mapping function according to the input image’s range and the given output range.
-
void dip::
HistogramEqualization(dip::Image const& in, dip::Image& out, dip::uint nBins = 256) - Modifies the image such that its histogram is as flat as possible.
-
void dip::
HistogramMatching(dip::Image const& in, dip::Image& out, dip::Histogram const& example) - Modifies the image such that its histogram is as similar as possible to
example
.