core/vil1/vil1_rgb.h File Reference


Detailed Description

Pixel type for 24 bit images.

Currently also includes the following `utilities':

Author:
Peter Vanroose, K.U.Leuven, ESAT/VISICS
Date:
15 nov. 1997
    Modifications
     250198 AWF Templated.
     250198 AWF Modified to make POD struct until gcc inlines when debugging.
     160298 PCP Removed underscore from public members.
     220598 PVr moved instantiations files to Templates subdirectory.
     050598 PVr added several operators ( + += - -= (T) ).
     290798 AWF Member templates for fancy compilers
     140898 David Capel added clamping functions to ensure 0-255 range on bytes and vil1_rgb<byte>
     090600 David Capel made clamping functions inline and removed all that partial specialization nonsense from the .txx file.
     Feb.2002 - Peter Vanroose - brief doxygen comment placed on single line
  

Definition in file vil1_rgb.h.

#include <vcl_iostream.h>
#include <vil1/vil1_clamp.h>

Go to the source code of this file.


Classes

struct  vil1_rgb< T >
 This is the appropriate pixel type for 24-bit colour images. More...

Defines

#define InLine
#define vil1_rgb_call(m)
#define macro(S)
#define macro(S)   InLine vil1_rgb<T>& operator=(vil1_rgb<S > const& that);
#define macro(S)
#define VIL1_RGB_INSTANTIATE(T)   extern "you must include vil1/vil1_rgb.txx first."
#define VIL1_RGB_INSTANTIATE_LS(T)   extern "you must include vil1/vil1_rgb.txx first."

Functions

 vil1_rgb_call (macro) typedef vil1_rgb< double > vil1_rgb_double
template<class T>
vcl_ostream & operator<< (vcl_ostream &s, vil1_rgb< T > const &rgb)
template<class T>
vil1_rgb< T > average (vil1_rgb< T > const &a, vil1_rgb< T > const &b)
template<class T>
vil1_rgb< T > operator+ (vil1_rgb< T > const &a, vil1_rgb< T > const &b)
template<class T>
vil1_rgb< double > operator * (double b, vil1_rgb< T > const &a)
template<class T>
vil1_rgb< double > operator * (vil1_rgb< T > const &a, double b)
template<class T>
vil1_rgb< double > operator/ (vil1_rgb< T > const &a, double b)

Define Documentation

#define InLine

Definition at line 38 of file vil1_rgb.h.

#define macro (  ) 

Value:

vil1_rgb<S > vil1_rgb_gcc_272_pump_prime(S const *); \
template <class T> inline \
vil1_rgb<T>& vil1_rgb<T>::operator=(vil1_rgb<S > const& that) { \
  r=T(that.r); \
  g=T(that.g); \
  b=T(that.b); \
  return *this; \
}

Definition at line 134 of file vil1_rgb.h.

#define macro (  )     InLine vil1_rgb<T>& operator=(vil1_rgb<S > const& that);

Definition at line 134 of file vil1_rgb.h.

#define macro (  ) 

Value:

inline vil1_rgb(vil1_rgb<S > const& that) : \
  r(T(that.r)), \
  g(T(that.g)), \
  b(T(that.b)) {}

Definition at line 134 of file vil1_rgb.h.

#define vil1_rgb_call (  ) 

Value:

m(unsigned char) \
m(int) \
m(long) \
m(double)

Definition at line 94 of file vil1_rgb.h.

#define VIL1_RGB_INSTANTIATE (  )     extern "you must include vil1/vil1_rgb.txx first."

Definition at line 263 of file vil1_rgb.h.

#define VIL1_RGB_INSTANTIATE_LS (  )     extern "you must include vil1/vil1_rgb.txx first."

Definition at line 265 of file vil1_rgb.h.


Function Documentation

template<class T>
vil1_rgb<T> average ( vil1_rgb< T > const &  a,
vil1_rgb< T > const &  b 
) [inline]

Definition at line 201 of file vil1_rgb.h.

template<class T>
vil1_rgb<double> operator * ( vil1_rgb< T > const &  a,
double  b 
) [inline]

Definition at line 222 of file vil1_rgb.h.

template<class T>
vil1_rgb<double> operator * ( double  b,
vil1_rgb< T > const &  a 
) [inline]

Definition at line 215 of file vil1_rgb.h.

template<class T>
vil1_rgb<T> operator+ ( vil1_rgb< T > const &  a,
vil1_rgb< T > const &  b 
) [inline]

Definition at line 208 of file vil1_rgb.h.

template<class T>
vil1_rgb<double> operator/ ( vil1_rgb< T > const &  a,
double  b 
) [inline]

Definition at line 229 of file vil1_rgb.h.

template<class T>
vcl_ostream& operator<< ( vcl_ostream &  s,
vil1_rgb< T > const &  rgb 
) [inline]

Definition at line 161 of file vil1_rgb.h.

vil1_rgb_call ( macro   ) 


Generated on Sat Nov 22 05:08:30 2008 for core/vil1 by  doxygen 1.5.1