Public Types | Public Member Functions | Public Attributes
vil_rgb< T > Struct Template Reference

This is the appropriate pixel type for 24-bit colour images. More...

#include <vil_rgb.h>

List of all members.

Public Types

typedef T value_type

Public Member Functions

 vil_rgb ()
 vil_rgb (T v)
 Create grey (v,v,v) vil_rgb cell from value v.
 vil_rgb (T red, T green, T blue)
 Construct a vil_rgb value.
R () const
G () const
B () const
grey () const
 Convert vil_rgb to gray using standard (.299, .587, .114) weighting.
bool operator== (vil_rgb< T > const &o) const
 equality.
vil_rgb< T > operator+ (vil_rgb< T > const &A) const
vil_rgb< T > operator- (vil_rgb< T > const &A) const
vil_rgb< T > operator/ (vil_rgb< T > const &A) const
vil_rgb< T > & operator+= (vil_rgb< T > const &A)
vil_rgb< T > & operator-= (vil_rgb< T > const &A)
vil_rgb< T > operator* (T A) const
vil_rgb< T > operator/ (T A) const
vil_rgb< T > & operator*= (T A)
vil_rgb< T > & operator/= (T A)

Public Attributes

r
g
b

Detailed Description

template<class T>
struct vil_rgb< T >

This is the appropriate pixel type for 24-bit colour images.

Currently also includes the following `utilities':

Definition at line 47 of file vil_rgb.h.


Member Typedef Documentation

template<class T>
typedef T vil_rgb< T >::value_type

Definition at line 49 of file vil_rgb.h.


Constructor & Destructor Documentation

template<class T>
vil_rgb< T >::vil_rgb ( ) [inline]

Definition at line 51 of file vil_rgb.h.

template<class T>
vil_rgb< T >::vil_rgb ( v) [inline]

Create grey (v,v,v) vil_rgb cell from value v.

This provides a conversion from T to vil_rgb<T>

Definition at line 56 of file vil_rgb.h.

template<class T>
vil_rgb< T >::vil_rgb ( red,
green,
blue 
) [inline]

Construct a vil_rgb value.

Definition at line 60 of file vil_rgb.h.


Member Function Documentation

template<class T>
T vil_rgb< T >::B ( ) const [inline]

Definition at line 67 of file vil_rgb.h.

template<class T>
T vil_rgb< T >::G ( ) const [inline]

Definition at line 66 of file vil_rgb.h.

template<class T>
T vil_rgb< T >::grey ( ) const [inline]

Convert vil_rgb to gray using standard (.299, .587, .114) weighting.

Definition at line 70 of file vil_rgb.h.

template<class T>
vil_rgb<T> vil_rgb< T >::operator* ( A) const [inline]

Definition at line 85 of file vil_rgb.h.

template<class T>
vil_rgb<T>& vil_rgb< T >::operator*= ( A) [inline]

Definition at line 87 of file vil_rgb.h.

template<class T>
vil_rgb<T> vil_rgb< T >::operator+ ( vil_rgb< T > const &  A) const [inline]

Definition at line 80 of file vil_rgb.h.

template<class T>
vil_rgb<T>& vil_rgb< T >::operator+= ( vil_rgb< T > const &  A) [inline]

Definition at line 83 of file vil_rgb.h.

template<class T>
vil_rgb<T> vil_rgb< T >::operator- ( vil_rgb< T > const &  A) const [inline]

Definition at line 81 of file vil_rgb.h.

template<class T>
vil_rgb<T>& vil_rgb< T >::operator-= ( vil_rgb< T > const &  A) [inline]

Definition at line 84 of file vil_rgb.h.

template<class T>
vil_rgb<T> vil_rgb< T >::operator/ ( vil_rgb< T > const &  A) const [inline]

Definition at line 82 of file vil_rgb.h.

template<class T>
vil_rgb<T> vil_rgb< T >::operator/ ( A) const [inline]

Definition at line 86 of file vil_rgb.h.

template<class T>
vil_rgb<T>& vil_rgb< T >::operator/= ( A) [inline]

Definition at line 88 of file vil_rgb.h.

template<class T>
bool vil_rgb< T >::operator== ( vil_rgb< T > const &  o) const [inline]

equality.

Definition at line 77 of file vil_rgb.h.

template<class T>
T vil_rgb< T >::R ( ) const [inline]

Definition at line 65 of file vil_rgb.h.


Member Data Documentation

template<class T>
T vil_rgb< T >::b

Definition at line 64 of file vil_rgb.h.

template<class T>
T vil_rgb< T >::g

Definition at line 64 of file vil_rgb.h.

template<class T>
T vil_rgb< T >::r

Definition at line 64 of file vil_rgb.h.


The documentation for this struct was generated from the following file: