Definition in file vil_math.h.
#include <vcl_cassert.h>
#include <vcl_vector.h>
#include <vcl_cmath.h>
#include <vcl_algorithm.h>
#include <vil/vil_image_view.h>
#include <vil/vil_view_as.h>
#include <vil/vil_plane.h>
#include <vil/vil_transform.h>
Go to the source code of this file.
Classes | |
| class | vil_math_sqrt_functor |
| Functor class to compute square roots (returns zero if x<0). More... | |
| class | vil_math_scale_functor |
| Functor class to scale by s. More... | |
| class | vil_math_scale_and_translate_functor |
| Functor class to scale by s and translate (offset) by t. More... | |
| class | vil_math_log_functor |
| Functor class to compute logarithms (returns zero if x<=0). More... | |
Functions | |
| template<class T> | |
| void | vil_math_value_range (const vil_image_view< T > &view, T &min_value, T &max_value) |
| Compute minimum and maximum values over view. | |
| VCL_DEFINE_SPECIALIZATION void | vil_math_value_range (const vil_image_view< vil_rgb< vxl_byte > > &rgb_view, vil_rgb< vxl_byte > &min_value, vil_rgb< vxl_byte > &max_value) |
| Compute minimum and maximum values over view. | |
| VCL_DEFINE_SPECIALIZATION void | vil_math_value_range (const vil_image_view< vil_rgb< float > > &rgb_view, vil_rgb< float > &min_value, vil_rgb< float > &max_value) |
| Compute minimum and maximum values over view. | |
| void | vil_math_median_unimplemented () |
| VCL_DEFINE_SPECIALIZATION void | vil_math_median (vxl_byte &median, const vil_image_view< vxl_byte > &im, unsigned p) |
| template<class imT> | |
| void | vil_math_normalise (vil_image_view< imT > &image) |
| Scale and offset values so their mean is zero and their variance is one. | |
| template<class srcT, class destT> | |
| void | vil_math_rms (const vil_image_view< srcT > &src, vil_image_view< destT > &dest) |
| Computes RMS of each pixel over the planes of src image. | |
| template<class srcT, class destT> | |
| void | vil_math_rss (const vil_image_view< srcT > &src, vil_image_view< destT > &dest) |
| Computes Root Sum of Squares of each pixel over the planes of src image. | |
| template<class srcT, class destT> | |
| void | vil_math_sum_sqr (const vil_image_view< srcT > &src, vil_image_view< destT > &dest) |
| Computes sum of squares of each pixel over the planes of src image. | |
| VCL_DEFINE_SPECIALIZATION void vil_math_median | ( | vxl_byte & | median, | |
| const vil_image_view< vxl_byte > & | im, | |||
| unsigned | p | |||
| ) |
| void vil_math_median_unimplemented | ( | ) |
| void vil_math_normalise | ( | vil_image_view< imT > & | image | ) | [inline] |
Scale and offset values so their mean is zero and their variance is one.
Only works on signed types!
Definition at line 449 of file vil_math.h.
| void vil_math_rms | ( | const vil_image_view< srcT > & | src, | |
| vil_image_view< destT > & | dest | |||
| ) | [inline] |
Computes RMS of each pixel over the planes of src image.
Dest is a single plane image,
Summation is performed using type destT
Definition at line 464 of file vil_math.h.
| void vil_math_rss | ( | const vil_image_view< srcT > & | src, | |
| vil_image_view< destT > & | dest | |||
| ) | [inline] |
Computes Root Sum of Squares of each pixel over the planes of src image.
Dest is a single plane image,
Differs from RMS by the scaling factor sqrt(nplanes) Summation is performed using type destT
Definition at line 514 of file vil_math.h.
| void vil_math_sum_sqr | ( | const vil_image_view< srcT > & | src, | |
| vil_image_view< destT > & | dest | |||
| ) | [inline] |
Computes sum of squares of each pixel over the planes of src image.
Dest is a single plane image,
Summation is performed using type destT
Definition at line 564 of file vil_math.h.
| VCL_DEFINE_SPECIALIZATION void vil_math_value_range | ( | const vil_image_view< vil_rgb< float > > & | rgb_view, | |
| vil_rgb< float > & | min_value, | |||
| vil_rgb< float > & | max_value | |||
| ) | [inline] |
| VCL_DEFINE_SPECIALIZATION void vil_math_value_range | ( | const vil_image_view< vil_rgb< vxl_byte > > & | rgb_view, | |
| vil_rgb< vxl_byte > & | min_value, | |||
| vil_rgb< vxl_byte > & | max_value | |||
| ) | [inline] |
| void vil_math_value_range | ( | const vil_image_view< T > & | view, | |
| T & | min_value, | |||
| T & | max_value | |||
| ) | [inline] |
1.5.1