oln::morpher::subq_morpher< SrcType, N, Exact > Struct Template Reference

Sub quantify an image. More...

#include <subq_morpher.hh>

Inheritance diagram for oln::morpher::subq_morpher< SrcType, N, Exact >:

Inheritance graph
[legend]
Collaboration diagram for oln::morpher::subq_morpher< SrcType, N, Exact >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef oln::image_id< subq_morpher<
SrcType, N, Exact > >::exact_type 
exact_type
 The exact type of this. This class can be derived.

typedef abstract::generic_morpher<
SrcType, exact_type
super_type
 The upper class.

typedef image_id< exact_type
>::value_type 
value_type
 The value point of the resulting image.

typedef image_id< exact_type
>::point_type 
point_type
 The morpher point type.

typedef image_id< exact_type
>::impl_type 
impl_type
 The morpher underlying implementation.

enum  { nbcomps = color_mute<typename mlc::exact< SrcType >::ret::value_type, nbcomps = color_mute<typename mlc::exact< SrcType >::ret::value_type }

Public Member Functions

 subq_morpher (const SrcType &ima)
 Construct the morpher with an image.

 subq_morpher (const subq_morpher< SrcType, N > &r)
 Construct the morpher with another morpher.

 subq_morpher ()
const value_type at (const point_type &p) const
 Return the value stored at p in the resulting image.

const impl_typeimpl () const
 Return the implementation.


Static Public Member Functions

std::string name ()

Detailed Description

template<class SrcType, unsigned N, class Exact>
struct oln::morpher::subq_morpher< SrcType, N, Exact >

Sub quantify an image.

By using this class, an image can be viewed as an image with a lower color depth. subq_morpher<image2d<rgb_8>, 5> is the same as image2d<rgb_5>.

Parameters:
SrcType The input type decorated.
N The new numbers of bits by component.
Exact The exact type of the morpher.

Definition at line 133 of file subq_morpher.hh.


Constructor & Destructor Documentation

template<class SrcType, unsigned N, class Exact>
oln::morpher::subq_morpher< SrcType, N, Exact >::subq_morpher  )  [inline]
 

Empty constructor.

Needed by mlc_hierarchy::any_with_diamond.

Definition at line 166 of file subq_morpher.hh.

00166 {}


The documentation for this struct was generated from the following file:
Generated on Thu Apr 15 20:16:41 2004 for Olena by doxygen 1.3.6-20040222