TuttleOFX  1
terry::numeric::pixel_scale_t< Pixel, CPixel > Struct Template Reference

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

Detailed Description

template<typename Pixel, typename CPixel = Pixel>
struct terry::numeric::pixel_scale_t< Pixel, CPixel >

Rescale pixel values. Usefull to normalize an image.

Definition at line 20 of file scale.hpp.


Member Typedef Documentation

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

Definition at line 22 of file scale.hpp.

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

Definition at line 23 of file scale.hpp.


Constructor & Destructor Documentation

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

Here is the call graph for this function:

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

Here is the call graph for this function:


Member Function Documentation

template<typename Pixel , typename CPixel = Pixel>
GIL_FORCEINLINE Pixel terry::numeric::pixel_scale_t< Pixel, CPixel >::operator() ( const Pixel &  src) const [inline]

Field Documentation

template<typename Pixel , typename CPixel = Pixel>
const CPixel terry::numeric::pixel_scale_t< Pixel, CPixel >::_ratio

Definition at line 25 of file scale.hpp.

template<typename Pixel , typename CPixel = Pixel>
CPixel terry::numeric::pixel_scale_t< Pixel, CPixel >::_shift

Definition at line 26 of file scale.hpp.


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