core/vil1/vil1_colour_space.h File Reference


Detailed Description

Functions to convert between different colour spaces.

Functions to convert between different colour spaces. See Foley and van Dam, "Computer Graphics, Principles and Practice".

Author:
fsm

Definition in file vil1_colour_space.h.

Go to the source code of this file.


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.

Function Documentation

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 Thu Aug 28 05:08:41 2008 for core/vil1 by  doxygen 1.5.1