Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

ImageHSV Class Reference

ImageHSV is simply an extension of ImageRGB. More...

#include <ImageHSV.h>

Inheritance diagram for ImageHSV::

ImageRGB ImageBase List of all members.

Public Methods

 ImageHSV (unsigned int width, unsigned int height)
 Create an image with the given dimensions.

 ImageHSV (char *name, FileFormat format)
 Create an image from a graphics file.

 ImageHSV (ImageRGB &img)
 Create an image from RGB image.

 ImageHSV (ImageRGB &, unsigned int min_x, unsigned int min_y, unsigned int max_x, unsigned int max_y)
 Create an image from a portion of another (RGB) image. More...

 ImageHSV (ImageHSV &, unsigned int min_x, unsigned int min_y, unsigned int max_x, unsigned int max_y)
 Create an image from a portion of another (HSV) image. More...

void rgb2hsv ()
 Convert Image RGB->HSV.

void hsv2rgb ()
 Convert Image HSV->RGB.


Static Public Methods

void convPixel_RGBtoHSV (PixelRGB &, PixelHSV &)
 Pixel conversion routines.

void convPixel_HSVtoRGB (PixelHSV &, PixelRGB &)
 Convert HSV pixel to RGB pixel.


Detailed Description

ImageHSV is simply an extension of ImageRGB.

HSV Data is stored in THE SAME MEMORY as RGB (so RGB and HSV data is not present simultaneously). Additional methods convert one format to the other. Note: Hue is an angle (0-360) and Sat and Val are on a scale 0-255 (not 0-100 as used in GIMP etc.)

Definition at line 30 of file ImageHSV.h.


Constructor & Destructor Documentation

ImageHSV::ImageHSV ( ImageRGB & img,
unsigned int min_x,
unsigned int min_y,
unsigned int max_x,
unsigned int max_y )
 

Create an image from a portion of another (RGB) image.

Parameters:
img   The RGBImage to copy
min_x   Minimum extent of block to copy (X)
min_y   Minimum extent of block to copy (Y)
max_x   Maximum extent of block to copy (X)
max_y   Maximum extent of block to copy (Y)

Definition at line 33 of file ImageHSV.cpp.

ImageHSV::ImageHSV ( ImageHSV & img,
unsigned int min_x,
unsigned int min_y,
unsigned int max_x,
unsigned int max_y )
 

Create an image from a portion of another (HSV) image.

Parameters:
img   The RGBImage to copy
min_x   Minimum extent of block to copy (X)
min_y   Minimum extent of block to copy (Y)
max_x   Maximum extent of block to copy (X)
max_y   Maximum extent of block to copy (Y)

Definition at line 52 of file ImageHSV.cpp.


The documentation for this class was generated from the following files:
Generated at Fri Aug 13 17:29:22 2004 for libRTImage by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001