mln::violent_cast_image< T, I > Struct Template Reference
[Values morphers]

Violently cast image values to a given type. More...

#include <violent_cast_image.hh>

Inherits image_value_morpher< I, T, violent_cast_image< T, I > >.

List of all members.

Public Types

typedef T lvalue
 Return type of read-write access.
typedef T rvalue
 Return type of read-only access.
typedef violent_cast_image
< tag::value_< T >
, tag::image_< I > > 
skeleton
 Skeleton.
typedef T value
 Value associated type.

Public Member Functions

operator() (const typename I::psite &p)
 Mutable access is only OK for reading (not writing).
operator() (const typename I::psite &p) const
 Read-only access of pixel value at point site p.
 violent_cast_image (const Image< I > &ima)
 Constructor.


Detailed Description

template<typename T, typename I>
struct mln::violent_cast_image< T, I >

Violently cast image values to a given type.

Member Typedef Documentation

template<typename T, typename I>
typedef T mln::violent_cast_image< T, I >::lvalue

Return type of read-write access.

template<typename T, typename I>
typedef T mln::violent_cast_image< T, I >::rvalue

Return type of read-only access.

template<typename T, typename I>
typedef violent_cast_image< tag::value_<T>, tag::image_<I> > mln::violent_cast_image< T, I >::skeleton

Skeleton.

template<typename T, typename I>
typedef T mln::violent_cast_image< T, I >::value

Value associated type.


Constructor & Destructor Documentation

template<typename T , typename I >
mln::violent_cast_image< T, I >::violent_cast_image ( const Image< I > &  ima  )  [inline]

Constructor.


Member Function Documentation

template<typename T , typename I >
T mln::violent_cast_image< T, I >::operator() ( const typename I::psite &  p  )  [inline]

Mutable access is only OK for reading (not writing).

template<typename T , typename I >
T mln::violent_cast_image< T, I >::operator() ( const typename I::psite &  p  )  const [inline]

Read-only access of pixel value at point site p.


Generated on Tue Jul 14 16:32:38 2009 for Milena (Olena) by  doxygen 1.5.9