TuttleOFX
1
|
Rescale pixel values. Usefull to normalize an image. More...
#include <scale.hpp>
Public Types | |
typedef boost::gil::channel_type < CPixel >::type | Channel |
typedef terry::channel_base_type < Channel >::type | ChannelBaseType |
Public Member Functions | |
pixel_scale_t (const CPixel &ratio, const CPixel &sCenter, const CPixel &dCenter) | |
pixel_scale_t (const CPixel &ratio, const CPixel &shift) | |
GIL_FORCEINLINE Pixel | operator() (const Pixel &src) const |
Data Fields | |
const CPixel | _ratio |
CPixel | _shift |
Rescale pixel values. Usefull to normalize an image.
typedef boost::gil::channel_type<CPixel>::type terry::numeric::pixel_scale_t< Pixel, CPixel >::Channel |
typedef terry::channel_base_type<Channel>::type terry::numeric::pixel_scale_t< Pixel, CPixel >::ChannelBaseType |
terry::numeric::pixel_scale_t< Pixel, CPixel >::pixel_scale_t | ( | const CPixel & | ratio, |
const CPixel & | sCenter, | ||
const CPixel & | dCenter | ||
) | [inline] |
Definition at line 28 of file scale.hpp.
References boost::gil::pixel_scale_t< Pixel, CPixel >::_shift, and BOOST_STATIC_ASSERT().
terry::numeric::pixel_scale_t< Pixel, CPixel >::pixel_scale_t | ( | const CPixel & | ratio, |
const CPixel & | shift | ||
) | [inline] |
Definition at line 46 of file scale.hpp.
References BOOST_STATIC_ASSERT().
GIL_FORCEINLINE Pixel terry::numeric::pixel_scale_t< Pixel, CPixel >::operator() | ( | const Pixel & | src | ) | const [inline] |
Definition at line 54 of file scale.hpp.
References boost::gil::pixel_scale_t< Pixel, CPixel >::_ratio, and boost::gil::pixel_scale_t< Pixel, CPixel >::_shift.
const CPixel terry::numeric::pixel_scale_t< Pixel, CPixel >::_ratio |
CPixel terry::numeric::pixel_scale_t< Pixel, CPixel >::_shift |