#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 | |
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.
|
<Type of the class iterator. Reimplemented from oln::morpher::abstract::generic_morpher< SrcType, Exact >. Definition at line 188 of file color_morpher.hh. |
|
<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. |
|
<Type of the class point. Reimplemented from oln::morpher::abstract::generic_morpher< SrcType, Exact >. Definition at line 190 of file color_morpher.hh. |
|
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 {} |
|
Empty constructor. Needed by mlc_hierarchy::any_with_diamond. Definition at line 207 of file color_morpher.hh.
00208 {} |
|
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. References oln::morpher::color_morpher< SrcType, Exact >::at().
00239 { 00240 oln_iter_type(SrcType) it(rhs); 00241 00242 for_all(it) 00243 this->at(it) = rhs[it]; 00244 return this->exact(); 00245 } |
|
Return the n_th component of the rgb value stored at p.
Reimplemented from oln::abstract::image_with_impl< Impl, Exact >. Definition at line 228 of file color_morpher.hh.
|
|
Return a reference to the n_th component of the rgb value stored at p.
Reimplemented from oln::abstract::image_with_impl< Impl, Exact >. Definition at line 217 of file color_morpher.hh. Referenced by oln::morpher::color_morpher< SrcType, Exact >::assign().
|