iRoCS Toolbox
1.1.0
|
Converts different color spaces into each other. More...
#include <ColorConvert.hh>
Static Public Member Functions | |
static void | hsv2rgb (const float &h, const float &s, const float &v, unsigned char &r, unsigned char &g, unsigned char &b) |
Convert HSV to RGB. More... | |
static void | hsv2rgb (const blitz::TinyVector< float, 3 > &colHSV, BlitzRGBColor &colRGB) |
Convert HSV to RGB. More... | |
static void | hsv2rgb (blitz::Array< float, 3 > &srcArray, blitz::Array< unsigned char, 3 > &destArray) |
Convert a HSV (layered) image to a RGB image. More... | |
static void | hsv2rgb (blitz::Array< blitz::TinyVector< float, 3 >, 2 > &srcArray, blitz::Array< blitz::TinyVector< unsigned char, 3 >, 2 > &destArray) |
Convert a HSV (vectorial) image to a RGB image. More... | |
static void | hsv2rgb (const blitz::Array< float, 3 > &srcArray, ImageAccessWrapper &destArray) |
Convert a HSV image to a RGB image (wrapper version that does all the work) *. More... | |
static void | rgb2gray (const unsigned char &r, const unsigned char &g, const unsigned char &b, unsigned char &gray) |
Convert RGB to Gray. More... | |
static void | rgb2gray (const blitz::TinyVector< unsigned char, 3 > &colRGB, unsigned char &gray) |
Convert RGB to Gray. More... | |
static void | rgb2gray (blitz::Array< unsigned char, 3 > &srcArray, blitz::Array< unsigned char, 2 > &destArray) |
Convert a RGB (layered) image to a gray image. More... | |
static void | rgb2gray (blitz::Array< blitz::TinyVector< unsigned char, 3 >, 2 > &srcArray, blitz::Array< unsigned char, 2 > &destArray) |
Convert a RGB (vectorial) image to a gray image. More... | |
static void | rgb2gray (const ImageAccessWrapper &srcArray, blitz::Array< unsigned char, 2 > &destArray) |
Convert a RGB image to a gray image (wrapper version that does all the work) More... | |
static void | rgb2gray (const ImageAccessWrapper &srcArray, blitz::Array< float, 2 > &destArray) |
Convert a RGB image to a float gray image (wrapper version that does all the work) More... | |
static void | rgb2gray (blitz::Array< blitz::TinyVector< unsigned char, 3 >, 2 > &srcArray, blitz::Array< float, 2 > &destArray) |
Convert a RGB (vectorial) image to a float gray image. More... | |
static void | rgb2gray (blitz::Array< unsigned char, 3 > &srcArray, blitz::Array< float, 2 > &destArray) |
Convert a RGB (vectorial) image to a float gray image. More... | |
static void | rgb2hsv (const unsigned char &r, const unsigned char &g, const unsigned char &b, float &h, float &s, float &v) |
Convert RGB to HSV. More... | |
static void | rgb2hsv (const blitz::TinyVector< unsigned char, 3 > &colRGB, blitz::TinyVector< float, 3 > &colHSV) |
Convert RGB to HSV. More... | |
static void | rgb2hsv (blitz::Array< unsigned char, 3 > &srcArray, blitz::Array< float, 3 > &destArray) |
Convert a RGB (layered) image to a HSV image. More... | |
static void | rgb2hsv (blitz::Array< blitz::TinyVector< unsigned char, 3 >, 2 > &srcArray, blitz::Array< blitz::TinyVector< float, 3 >, 2 > &destArray) |
Convert a RGB (vectorial) image to a HSV image. More... | |
static void | rgb2hsv (const ImageAccessWrapper &srcArray, blitz::Array< float, 3 > &destArray) |
Convert a RGB image to a HSV image (wrapper version that does all the work) *. More... | |
Converts different color spaces into each other.
Definition at line 48 of file ColorConvert.hh.
|
static |
Convert RGB to Gray.
r | the red color component, range between 0-255 |
g | the green color component, range between 0-255 |
b | the blue color component, range between 0-255 |
gray | the resulting gray color, range between 0-255 |
|
static |
Convert RGB to Gray.
colRGB | the rgb color in a tinyVector |
gray | the gray color in a tinyVector, the 3 values are the same |
|
static |
Convert RGB to HSV.
r | the red color component, range between 0-255 |
g | the green color component, range between 0-255 |
b | the blue color component, range between 0-255 |
h | the hue component, range between 0-1 |
s | the saturation component, range between 0-1 |
v | the value component, range between 0-1 |
|
static |
Convert RGB to HSV.
colRGB | the rgb color in a TinyVector |
colHSV | the hsv color in a TinyVector |
|
static |
Convert HSV to RGB.
h | the hue component, range between 0-1 |
s | the saturation component, range between 0-1 |
v | the value component, range between 0-1 |
r | the red color component, range between 0-255 |
g | the green color component, range between 0-255 |
b | the blue color component, range between 0-255 |
|
static |
Convert HSV to RGB.
colHSV | the hsv color in a TinyVector |
colRGB | the rgb color in a TinyVector |
|
static |
Convert a RGB (layered) image to a gray image.
srcArray | source RGB image |
destArray | target gray image |
|
static |
Convert a RGB (vectorial) image to a gray image.
srcArray | source RGB image |
destArray | target gray image |
|
static |
Convert a RGB image to a gray image (wrapper version that does all the work)
srcArray | source RGB image |
destArray | target gray image |
|
static |
Convert a RGB image to a float gray image (wrapper version that does all the work)
srcArray | source RGB image |
destArray | target gray image, values in range 0-1 (float) |
|
static |
Convert a RGB (vectorial) image to a float gray image.
srcArray | source RGB image |
destArray | target gray image, values in range 0-1 (float) |
|
static |
Convert a RGB (vectorial) image to a float gray image.
srcArray | source RGB image |
destArray | target gray image, values in range 0-1 (float) |
|
static |
Convert a RGB (layered) image to a HSV image.
srcArray | source RGB image |
destArray | target gray image |
|
static |
Convert a RGB (vectorial) image to a HSV image.
srcArray | source RGB image |
destArray | target gray image |
|
static |
Convert a RGB image to a HSV image (wrapper version that does all the work) *.
srcArray | source RGB image |
destArray | target gray image |
|
static |
Convert a HSV (layered) image to a RGB image.
srcArray | source RGB image |
destArray | target gray image |
|
static |
Convert a HSV (vectorial) image to a RGB image.
srcArray | source RGB image |
destArray | target gray image |
|
static |
Convert a HSV image to a RGB image (wrapper version that does all the work) *.
srcArray | source RGB image |
destArray | target gray image |