apply any (fixed) function to all pixels More...
#include <vil/vil_image_resource.h>
Go to the source code of this file.
Functions | |
vil_image_resource_sptr | vepl_monadic_abs (vil_image_resource_sptr) |
replace pixels by their absolute value. | |
vil_image_resource_sptr | vepl_monadic_sqrt (vil_image_resource_sptr) |
replace pixels by their square root. | |
vil_image_resource_sptr | vepl_monadic_sqr (vil_image_resource_sptr) |
replace pixels by their square. | |
vil_image_resource_sptr | vepl_monadic_shear (vil_image_resource_sptr, 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.
Modifications Peter Vanroose - 20 aug 2003 - changed parameter and return types from vil_image_view_base_sptr to vil_image_resource_sptr
Definition in file vepl_monadic.h.
vil_image_resource_sptr vepl_monadic_abs | ( | vil_image_resource_sptr | ) |
replace pixels by their absolute value.
Definition at line 31 of file vepl_monadic.cxx.
vil_image_resource_sptr vepl_monadic_shear | ( | vil_image_resource_sptr | , |
double | shift, | ||
double | scale | ||
) |
replace pixels by a linear distortion.
Definition at line 226 of file vepl_monadic.cxx.
vil_image_resource_sptr vepl_monadic_sqr | ( | vil_image_resource_sptr | ) |
replace pixels by their square.
Definition at line 160 of file vepl_monadic.cxx.
vil_image_resource_sptr vepl_monadic_sqrt | ( | vil_image_resource_sptr | ) |
replace pixels by their square root.
Definition at line 127 of file vepl_monadic.cxx.