TuttleOFX  1
boost::gil::pixel_scale_t< Pixel, CPixel > Struct Template Reference

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

Detailed Description

template<typename Pixel, typename CPixel = Pixel>
struct boost::gil::pixel_scale_t< Pixel, CPixel >

Scale pixel values. Usefull to normalize an image.

Definition at line 13 of file pixel_scale.hpp.


Member Typedef Documentation

template<typename Pixel , typename CPixel = Pixel>
typedef boost::gil::channel_type<Pixel>::type boost::gil::pixel_scale_t< Pixel, CPixel >::Channel

Definition at line 15 of file pixel_scale.hpp.

template<typename Pixel , typename CPixel = Pixel>
typedef terry::channel_base_type<Channel>::type boost::gil::pixel_scale_t< Pixel, CPixel >::ChannelBaseType

Definition at line 16 of file pixel_scale.hpp.


Constructor & Destructor Documentation

template<typename Pixel , typename CPixel = Pixel>
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().

Here is the call graph for this function:

template<typename Pixel , typename CPixel = Pixel>
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().

Here is the call graph for this function:


Member Function Documentation

template<typename Pixel , typename CPixel = Pixel>
Pixel boost::gil::pixel_scale_t< Pixel, CPixel >::operator() ( const Pixel &  src) const [inline]

Field Documentation

template<typename Pixel , typename CPixel = Pixel>
const CPixel boost::gil::pixel_scale_t< Pixel, CPixel >::_ratio

The documentation for this struct was generated from the following file: