#include <color_morpher.hh>
Inheritance diagram for oln::morpher::color_morpher< SrcType, Exact >:
Public Types | |
typedef image_id< color_morpher< SrcType, Exact > >::exact_type | exact_type |
The type of the object instantiated. color_morpher can be derived. | |
typedef color_morpher< SrcType, Exact > | self_type |
The self type. | |
typedef image_id< exact_type >::iter_type | iter_type |
The morpher iterator type. | |
typedef image_id< exact_type >::point_type | point_type |
typedef image_id< exact_type >::value_type | value_type |
typedef super_color_morpher< SrcType, exact_type > | super_type |
Public Member Functions | |
color_morpher (const SrcType &ima, unsigned n) | |
Construct the color_morpher with an image ima and a component n. | |
color_morpher (const color_morpher< SrcType, Exact > &r) | |
Construct the color_morpher with another color_morpher. | |
color_morpher () | |
value_type & | at (const point_type &p) |
const value_type | at (const point_type &p) const |
self_type & | assign (self_type &rhs) |
Static Public Member Functions | |
static std::string | name () |
Using this class, an rgb image can be viewed according to one of its component.
SrcType | Input Type decorated. | |
Exact | Exact type. |
Definition at line 177 of file color_morpher.hh.
typedef image_id<exact_type>::point_type oln::morpher::color_morpher< SrcType, Exact >::point_type |
<Type of the class iterator.
Reimplemented from oln::morpher::abstract::generic_morpher< SrcType, Exact >.
Definition at line 188 of file color_morpher.hh.
typedef image_id<exact_type>::value_type oln::morpher::color_morpher< SrcType, Exact >::value_type |
<Type of the class point.
Reimplemented from oln::morpher::abstract::generic_morpher< SrcType, Exact >.
Definition at line 190 of file color_morpher.hh.
typedef super_color_morpher<SrcType, exact_type> oln::morpher::color_morpher< SrcType, Exact >::super_type |
<The value type of the decorated image.
Reimplemented from oln::morpher::super_color_morpher< SrcType, Exact >.
Definition at line 192 of file color_morpher.hh.
oln::morpher::color_morpher< SrcType, Exact >::color_morpher | ( | const SrcType & | ima, | |
unsigned | n | |||
) | [inline] |
Construct the color_morpher with an image ima and a component n.
<The upper class.
Definition at line 196 of file color_morpher.hh.
00196 : super_type(ima, n) 00197 {}
oln::morpher::color_morpher< SrcType, Exact >::color_morpher | ( | ) | [inline] |
Empty constructor.
Needed by mlc_hierarchy::any_with_diamond.
Definition at line 207 of file color_morpher.hh.
value_type& oln::morpher::color_morpher< SrcType, Exact >::at | ( | const point_type & | p | ) | [inline] |
Return a reference to the n_th component of the rgb value stored at p.
Definition at line 217 of file color_morpher.hh.
00218 { 00219 return const_cast<SrcType &>(this->ima_)[p][this->n_]; 00220 }
const value_type oln::morpher::color_morpher< SrcType, Exact >::at | ( | const point_type & | p | ) | const [inline] |
Return the n_th component of the rgb value stored at p.
Definition at line 228 of file color_morpher.hh.
self_type& oln::morpher::color_morpher< SrcType, Exact >::assign | ( | self_type & | rhs | ) | [inline] |
Perform a shallow copy from the decorated image of rhs to the current decorated image. The points will be shared by the two images.
Definition at line 238 of file color_morpher.hh.
00239 { 00240 oln_iter_type(SrcType) it(rhs); 00241 00242 for_all(it) 00243 this->at(it) = rhs[it]; 00244 return this->exact(); 00245 }