TuttleOFX
1
|
Scale pixel values. Usefull to normalize an image. More...
#include <pixel_scale.hpp>
Public Types | |
typedef boost::gil::channel_type < Pixel >::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) | |
Pixel | operator() (const Pixel &src) const |
Data Fields | |
const CPixel | _ratio |
CPixel | _shift |
Scale pixel values. Usefull to normalize an image.
Definition at line 13 of file pixel_scale.hpp.
typedef boost::gil::channel_type<Pixel>::type boost::gil::pixel_scale_t< Pixel, CPixel >::Channel |
Definition at line 15 of file pixel_scale.hpp.
typedef terry::channel_base_type<Channel>::type boost::gil::pixel_scale_t< Pixel, CPixel >::ChannelBaseType |
Definition at line 16 of file pixel_scale.hpp.
boost::gil::pixel_scale_t< Pixel, CPixel >::pixel_scale_t | ( | const CPixel & | ratio, |
const CPixel & | sCenter, | ||
const CPixel & | dCenter | ||
) | [inline] |
Definition at line 21 of file pixel_scale.hpp.
References boost::gil::pixel_scale_t< Pixel, CPixel >::_shift, and BOOST_STATIC_ASSERT().
boost::gil::pixel_scale_t< Pixel, CPixel >::pixel_scale_t | ( | const CPixel & | ratio, |
const CPixel & | shift | ||
) | [inline] |
Definition at line 39 of file pixel_scale.hpp.
References BOOST_STATIC_ASSERT().
Pixel boost::gil::pixel_scale_t< Pixel, CPixel >::operator() | ( | const Pixel & | src | ) | const [inline] |
Definition at line 46 of file pixel_scale.hpp.
References boost::gil::pixel_scale_t< Pixel, CPixel >::_ratio, and boost::gil::pixel_scale_t< Pixel, CPixel >::_shift.
const CPixel boost::gil::pixel_scale_t< Pixel, CPixel >::_ratio |
Definition at line 18 of file pixel_scale.hpp.
Referenced by boost::gil::pixel_scale_t< Pixel, CPixel >::operator()(), and terry::numeric::pixel_scale_t< Pixel, CPixel >::operator()().
CPixel boost::gil::pixel_scale_t< Pixel, CPixel >::_shift |
Definition at line 19 of file pixel_scale.hpp.
Referenced by boost::gil::pixel_scale_t< Pixel, CPixel >::operator()(), terry::numeric::pixel_scale_t< Pixel, CPixel >::operator()(), boost::gil::pixel_scale_t< Pixel, CPixel >::pixel_scale_t(), and terry::numeric::pixel_scale_t< Pixel, CPixel >::pixel_scale_t().