Macros
vil_rgb.hxx File Reference
#include "vil_rgb.h"

Go to the source code of this file.

Macros

#define SPECIALIZE_CLAMP_PIXEL(T)
 
#define VIL_RGB_INSTANTIATE(T)
 
#define VIL_RGB_INSTANTIATE_LS(T)
 

Macro Definition Documentation

◆ SPECIALIZE_CLAMP_PIXEL

#define SPECIALIZE_CLAMP_PIXEL (   T)
Value:
template <> \
vil_rgb<T> vil_clamp_pixel(vil_rgb<T> const& d, double min, double max) \
{ \
return vil_rgb<T>(vil_clamp_pixel(d.r, min , max), \
vil_clamp_pixel(d.g, min , max), \
vil_clamp_pixel(d.b, min , max)); \
}
This is the appropriate pixel type for 24-bit colour images.
Definition: vil_fwd.h:14

Definition at line 10 of file vil_rgb.hxx.

◆ VIL_RGB_INSTANTIATE

#define VIL_RGB_INSTANTIATE (   T)
Value:
template struct vil_rgb<T >; \
/*template vil_rgb<T > max(const vil_rgb<T >& a, const vil_rgb<T >& b); */\
/*template vil_rgb<T > min(const vil_rgb<T >& a, const vil_rgb<T >& b); */\
/*template vil_rgb<T > average(const vil_rgb<T >& a, const vil_rgb<T >& b) ; */ \
/*template vil_rgb<T > operator+(const vil_rgb<T >& a, const vil_rgb<T >& b) ; */ \
/*template vil_rgb<double > operator/(const vil_rgb<T >& a, double b) ; */ \
/*template vil_rgb<double > operator*(const vil_rgb<T >& a, double b) ; */ \
/*template vil_rgb<double > operator*(double b, const vil_rgb<T >& a) */
This is the appropriate pixel type for 24-bit colour images.
Definition: vil_fwd.h:14

Definition at line 21 of file vil_rgb.hxx.

◆ VIL_RGB_INSTANTIATE_LS

#define VIL_RGB_INSTANTIATE_LS (   T)
Value:
template <> \
std::ostream& operator<<(std::ostream& s, vil_rgb<T > const& rgb) \
{ \
return s<< '[' << (int)rgb.r << ' ' << (int)rgb.g << ' ' << (int)rgb.b << ']'; \
}
std::ostream & operator<<(std::ostream &os, const vil_structuring_element &element)
Write details to stream.
This is the appropriate pixel type for 24-bit colour images.
Definition: vil_fwd.h:14

Definition at line 33 of file vil_rgb.hxx.