apply any (fixed) function to all pixels More...
#include <vil1/vil1_image.h>
Go to the source code of this file.
Functions | |
vil1_image | vepl1_monadic_abs (vil1_image const &) |
replace pixels by their absolute value. | |
vil1_image | vepl1_monadic_sqrt (vil1_image const &) |
replace pixels by their square root. | |
vil1_image | vepl1_monadic_sqr (vil1_image const &) |
replace pixels by their square. | |
vil1_image | vepl1_monadic_shear (vil1_image const &, double shift, double scale) |
replace pixels by a linear distortion. |
apply any (fixed) function to all pixels
The only parameter to be passed to the constructor must be a (monadic) function that takes a pixel value from the input image and produces a pixel value of the output image, i.e., its signature must be DataOut f(DataIn const&). A typical example is, e.g., log(), but any point operator (like e.g. thresholding) could be implemented through this more general monadic IP operator, notably shift or scale of intensity values.
Note that the input and output images are allowed to be identical.
Definition in file vepl1_monadic.h.
vil1_image vepl1_monadic_abs | ( | vil1_image const & | ) |
replace pixels by their absolute value.
Definition at line 25 of file vepl1_monadic.cxx.
vil1_image vepl1_monadic_shear | ( | vil1_image const & | , |
double | shift, | ||
double | scale | ||
) |
replace pixels by a linear distortion.
Definition at line 155 of file vepl1_monadic.cxx.
vil1_image vepl1_monadic_sqr | ( | vil1_image const & | ) |
replace pixels by their square.
Definition at line 102 of file vepl1_monadic.cxx.
vil1_image vepl1_monadic_sqrt | ( | vil1_image const & | ) |
replace pixels by their square root.
Definition at line 71 of file vepl1_monadic.cxx.