vil_math_scale_and_translate_functor Class Reference

#include <vil_math.h>

List of all members.


Detailed Description

Functor class to scale by s and translate (offset) by t.

Note:
Watch out for overflow, especially for smaller types.
See also:
vil_math_scale_and_offset_values()

Definition at line 383 of file vil_math.h.


Public Member Functions

 vil_math_scale_and_translate_functor (const double s, const double t)
 Constructor.
vxl_byte operator() (vxl_byte x) const
unsigned operator() (unsigned x) const
short operator() (short x) const
int operator() (int x) const
float operator() (float x) const
double operator() (double x) const
vcl_complex< double > operator() (vcl_complex< double > x) const

Private Attributes

double s_
double t_

Constructor & Destructor Documentation

vil_math_scale_and_translate_functor::vil_math_scale_and_translate_functor ( const double  s,
const double  t 
) [inline]

Constructor.

Parameters:
s Scaling.
t Translation (offset).

Definition at line 389 of file vil_math.h.


Member Function Documentation

vxl_byte vil_math_scale_and_translate_functor::operator() ( vxl_byte  x  )  const [inline]

Definition at line 392 of file vil_math.h.

unsigned vil_math_scale_and_translate_functor::operator() ( unsigned  x  )  const [inline]

Definition at line 393 of file vil_math.h.

short vil_math_scale_and_translate_functor::operator() ( short  x  )  const [inline]

Definition at line 394 of file vil_math.h.

int vil_math_scale_and_translate_functor::operator() ( int  x  )  const [inline]

Definition at line 395 of file vil_math.h.

float vil_math_scale_and_translate_functor::operator() ( float  x  )  const [inline]

Definition at line 396 of file vil_math.h.

double vil_math_scale_and_translate_functor::operator() ( double  x  )  const [inline]

Definition at line 397 of file vil_math.h.

vcl_complex<double> vil_math_scale_and_translate_functor::operator() ( vcl_complex< double >  x  )  const [inline]

Definition at line 398 of file vil_math.h.


Member Data Documentation

double vil_math_scale_and_translate_functor::s_ [private]

Definition at line 401 of file vil_math.h.

double vil_math_scale_and_translate_functor::t_ [private]

Definition at line 402 of file vil_math.h.


The documentation for this class was generated from the following file:
Generated on Tue Dec 2 05:08:03 2008 for core/vil by  doxygen 1.5.1