This is the appropriate pixel type for RGBA colour images. More...
#include <vil_rgba.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
T | R () const |
T | G () const |
T | B () const |
T | A () const |
vil_rgba () | |
vil_rgba (T v) | |
Create grey (v,v,v,1) vil_rgba cell from value v. | |
vil_rgba (T red, T green, T blue, T alpha=1) | |
Construct from four values. | |
bool | operator== (vil_rgba< T > const &o) const |
equality. | |
vil_rgba (const vil_rgba< double > &that) | |
vil_rgba (const vil_rgba< unsigned char > &that) | |
vil_rgba< T > & | operator= (const vil_rgba< double > &that) |
vil_rgba< T > & | operator= (const vil_rgba< float > &that) |
vil_rgba< T > & | operator= (const vil_rgba< unsigned char > &that) |
T | grey () const |
Convert vil_rgba to gray using standard (.299, .587, .114) RGB weighting. | |
Public Attributes | |
T | r |
T | g |
T | b |
T | a |
This is the appropriate pixel type for RGBA colour images.
The purpose of rgba<T> is to provide an object which consists of four Ts arranged in order and which can be referred to as 'R', 'G', 'B' and 'A'. Thus, if win32 does something funny when blitting an rgba bitmap to screen, that's up to the renderer to sort out.
Currently also includes the following `utilities':
Definition at line 27 of file vil_rgba.h.
typedef T vil_rgba< T >::value_type |
Definition at line 30 of file vil_rgba.h.
Definition at line 39 of file vil_rgba.h.
Create grey (v,v,v,1) vil_rgba cell from value v.
This provides a conversion from T to vil_rgba<T>, needed by e.g. two constructors in IUE_filter.h.
Definition at line 43 of file vil_rgba.h.
Construct from four values.
Definition at line 47 of file vil_rgba.h.
Definition at line 76 of file vil_rgba.h.
Definition at line 83 of file vil_rgba.h.
T vil_rgba< T >::A | ( | ) | const [inline] |
Definition at line 37 of file vil_rgba.h.
T vil_rgba< T >::B | ( | ) | const [inline] |
Definition at line 36 of file vil_rgba.h.
T vil_rgba< T >::G | ( | ) | const [inline] |
Definition at line 35 of file vil_rgba.h.
T vil_rgba< T >::grey | ( | ) | const [inline] |
Convert vil_rgba to gray using standard (.299, .587, .114) RGB weighting.
Definition at line 120 of file vil_rgba.h.
Definition at line 91 of file vil_rgba.h.
Definition at line 100 of file vil_rgba.h.
vil_rgba<T>& vil_rgba< T >::operator= | ( | const vil_rgba< unsigned char > & | that | ) | [inline] |
Definition at line 109 of file vil_rgba.h.
equality.
Definition at line 51 of file vil_rgba.h.
T vil_rgba< T >::R | ( | ) | const [inline] |
Definition at line 34 of file vil_rgba.h.
Definition at line 33 of file vil_rgba.h.
Definition at line 33 of file vil_rgba.h.
Definition at line 33 of file vil_rgba.h.
Definition at line 33 of file vil_rgba.h.