|
iLab Neuromorphic Robotics Toolkit
0.1
|
#include <PixelTypes.H>
A pixel class to hold a single scalar value.
Definition at line 253 of file PixelTypes.H.
Inherits nrt::PixelBase< T, numChans, PixType >.
Public Member Functions | |
| PixGray () | |
| Default Constructor. | |
| template<class T2 > | |
| PixGray (PixGray< T2 > const &other) | |
| Copy Constructor. | |
| template<typename T1 > | |
| PixGray (T1 val) | |
| initialize with a POD type or pixel, we'll let this one be no explicit | |
| T | val () const |
| Read the value channel. | |
| void | set (T value) |
| Set the hue channel. | |
| template<class T2 > | |
| void | set (T2 value) |
| Set the hue channel and clamp/round if necessary. | |
| PixRGB< T > | toRGB () const |
| Convert this color space to RGB. | |
| template<typename T1 > | |
| PixGray (T1 value) | |
| template<class T2 > | |
| PixGray (PixGray< T2 > const &other) | |
| template<class T > | |
| void | set (T value) |
| template<class T2 > | |
| void | set (T2 value) |
Static Public Member Functions | |
| static PixGray< T > | fromRGB (PixRGB< T > const &other) |
| Convert to this color space from RGB. | |
Related Functions | |
(Note that these are not member functions.) | |
| template<class T > | |
| std::ostream & | operator<< (std::ostream &out, PixGray< T > pix) |
| Stream out as PixGray(v) | |
| nrt::PixGray< T >::PixGray | ( | ) |
Default Constructor.
All components will be uninitialized
| std::ostream & operator<< | ( | std::ostream & | out, |
| PixGray< T > | pix | ||
| ) | [related] |
Stream out as PixGray(v)
Definition at line 287 of file PixelTypes.H.