Defines
core/vil/vil_rgb.txx File Reference
#include "vil_rgb.h"

Go to the source code of this file.

Defines

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

Define Documentation

#define SPECIALIZE_CLAMP_PIXEL (   T)
Value:
VCL_DEFINE_SPECIALIZATION \
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)); \
}

Definition at line 10 of file vil_rgb.txx.

#define VIL_RGB_INSTANTIATE (   T)
Value:
template struct vil_rgb<T >; \
/* VCL_INSTANTIATE_INLINE(vil_rgb<T > max(const vil_rgb<T >& a, const vil_rgb<T >& b)); */\
/* VCL_INSTANTIATE_INLINE(vil_rgb<T > min(const vil_rgb<T >& a, const vil_rgb<T >& b)); */\
VCL_INSTANTIATE_INLINE(vil_rgb<T > average(const vil_rgb<T >& a, const vil_rgb<T >& b)); \
VCL_INSTANTIATE_INLINE(vil_rgb<T > operator+(const vil_rgb<T >& a, const vil_rgb<T >& b)); \
VCL_INSTANTIATE_INLINE(vil_rgb<double > operator/(const vil_rgb<T >& a, double b)); \
VCL_INSTANTIATE_INLINE(vil_rgb<double > operator*(const vil_rgb<T >& a, double b)); \
VCL_INSTANTIATE_INLINE(vil_rgb<double > operator*(double b, const vil_rgb<T >& a))

Definition at line 21 of file vil_rgb.txx.

#define VIL_RGB_INSTANTIATE_LS (   T)
Value:
VCL_DEFINE_SPECIALIZATION \
vcl_ostream& operator<<(vcl_ostream& s, vil_rgb<T > const& rgb) \
{ \
return s<< '[' << (int)rgb.r << ' ' << (int)rgb.g << ' ' << (int)rgb.b << ']'; \
}

Definition at line 33 of file vil_rgb.txx.

#define vil_rgb_txx_

Definition at line 3 of file vil_rgb.txx.