casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Functions
HSV_Conversion_Functions::casa Namespace Reference

Functions

void hsvToRgb (Float h, Float s, Float v, Float &red, Float &green, Float &blue)
 map a single hsv value to an rgb value assumes h, s, and v to be in range [0, 1].
void hsvToRgb (const Array< Float > &h, const Array< Float > &s, const Array< Float > &v, Array< Float > &r, Array< Float > &g, Array< Float > &b)
 map an array of hsv values to an array of rgb value
void rgbToHsv (Float r, Float g, Float b, Float &h, Float &s, Float &v)
 map a single rgb value to its hsv value Assumes r, g, and b to be in range [0, 1].
void rgbToHsv (const Array< Float > &r, const Array< Float > &g, const Array< Float > &b, Array< Float > &h, Array< Float > &s, Array< Float > &v)
 map an array of rgb values to an array of hsv values

Function Documentation

void HSV_Conversion_Functions::casa::hsvToRgb ( Float  h,
Float  s,
Float  v,
Float &  red,
Float &  green,
Float &  blue 
)

map a single hsv value to an rgb value assumes h, s, and v to be in range [0, 1].

Returns r, g, b in range [0, 1].

void HSV_Conversion_Functions::casa::hsvToRgb ( const Array< Float > &  h,
const Array< Float > &  s,
const Array< Float > &  v,
Array< Float > &  r,
Array< Float > &  g,
Array< Float > &  b 
)

map an array of hsv values to an array of rgb value

void HSV_Conversion_Functions::casa::rgbToHsv ( Float  r,
Float  g,
Float  b,
Float &  h,
Float &  s,
Float &  v 
)

map a single rgb value to its hsv value Assumes r, g, and b to be in range [0, 1].

Returns h, s, v in range [0, 1].

void HSV_Conversion_Functions::casa::rgbToHsv ( const Array< Float > &  r,
const Array< Float > &  g,
const Array< Float > &  b,
Array< Float > &  h,
Array< Float > &  s,
Array< Float > &  v 
)

map an array of rgb values to an array of hsv values