Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::violent_cast_image< T, I > Struct Template Reference

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

#include <violent_cast_image.hh>

Inherits mln::internal::image_value_morpher< I, T, violent_cast_image< T, I > >.

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) const
 Read-only access of pixel value at point site p.
 
operator() (const typename I::psite &p)
 Mutable access is only OK for reading (not writing).
 
 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.

Definition at line 113 of file violent_cast_image.hh.

Member Typedef Documentation

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

Return type of read-write access.

Definition at line 123 of file violent_cast_image.hh.

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

Return type of read-only access.

Definition at line 120 of file violent_cast_image.hh.

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

Skeleton.

Definition at line 126 of file violent_cast_image.hh.

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

Value associated type.

Definition at line 117 of file violent_cast_image.hh.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 173 of file violent_cast_image.hh.

Member Function Documentation

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

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

Definition at line 192 of file violent_cast_image.hh.

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

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

Definition at line 201 of file violent_cast_image.hh.