core/vil1/vil1_colour_space.cxx File Reference


Detailed Description

Author:
fsm

Definition in file vil1_colour_space.cxx.

#include "vil1_colour_space.h"
#include <vcl_cstdlib.h>
#include <vcl_algorithm.h>
#include <vcl_cmath.h>

Go to the source code of this file.


Defines

#define inst(T)

Functions

template<class T>
void vil1_colour_space_RGB_to_YIQ (T const in[3], T out[3])
 Linear transformation from RGB to YIQ colour spaces.
template<class T>
void vil1_colour_space_RGB_to_HSV (T r, T g, T b, T *h, T *s, T *v)
 Transform from RGB to HSV colour spaces.
template<class T>
void vil1_colour_space_HSV_to_RGB (T h, T s, T v, T *r, T *g, T *b)
 Transform from HSV to RGB colour space.
 inst (double)

Define Documentation

#define inst (  ) 

Value:

template void vil1_colour_space_RGB_to_YIQ(T const [3], T [3]); \
template void vil1_colour_space_RGB_to_HSV(T, T, T, T *, T *, T *); \
template void vil1_colour_space_HSV_to_RGB(T, T, T, T *, T *, T *)

Definition at line 135 of file vil1_colour_space.cxx.


Function Documentation

inst ( double   ) 

template<class T>
void vil1_colour_space_HSV_to_RGB ( h,
s,
v,
T *  r,
T *  g,
T *  b 
)

Transform from HSV to RGB colour space.

The input HSV values will lie in the ranges: H : [0, 360) (an angle, in bloody degrees) S : [0, 1] V : [0, 255]

The output RGB values will lie in [0, 255]

[HSV is also known as HSB]

Definition at line 68 of file vil1_colour_space.cxx.

template<class T>
void vil1_colour_space_RGB_to_HSV ( r,
g,
b,
T *  h,
T *  s,
T *  v 
)

Transform from RGB to HSV colour spaces.

The input RGB values must lie in [0, L], for some positive L. Usually L=1 or 255.

The output HSV values will lie in the ranges: H : [0, 360) (an angle, in bloody degrees) S : [0, 1] V : [0, L]

[HSV is also known as HSB]

Definition at line 33 of file vil1_colour_space.cxx.

template<class T>
void vil1_colour_space_RGB_to_YIQ ( T const  in[3],
out[3] 
)

Linear transformation from RGB to YIQ colour spaces.

Definition at line 15 of file vil1_colour_space.cxx.


Generated on Wed Oct 8 05:08:34 2008 for core/vil1 by  doxygen 1.5.1