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

ImageHSV.h

Go to the documentation of this file.
00001 /*************************************************************************
00008  *
00009  * Source code for Real Time Image Library (libRTImage)
00010  *
00011  * Leeds Vision Group give permission for this code to be copied, modified
00012  * and distributed within the University of Leeds subject to the following
00013  * conditions:-
00014  *
00015  * - The code is not to be used for commercial gain.
00016  * - The code and use thereof will be attributed to the authors where
00017  *   appropriate (including demonstrations which rely on it's use).
00018  * - All modified, distributions of the source files will retain this header.
00019  *
00020  ****************************************************************************/
00021 
00022 #ifndef IMAGE_HSV_H
00023 #define IMAGE_HSV_H
00024 
00025 #include "PixelRGB.h"
00026 #include "ImageRGB.h"
00027 
00028 typedef PixelRGB PixelHSV;
00029 
00030 class ImageHSV : public ImageRGB
00038 {
00039 public:
00041         ImageHSV(unsigned int width, unsigned int height) : 
00042                                                       ImageRGB(width,height) {}
00043 
00045         ImageHSV(char *name, FileFormat format) : ImageRGB(name,format)  
00046                                                                 { rgb2hsv() ; }
00047 
00049         ImageHSV(ImageRGB& img) ; 
00050 
00052         ImageHSV(ImageRGB&, 
00053                  unsigned int min_x,
00054                  unsigned int min_y,
00055                  unsigned int max_x,
00056                  unsigned int max_y) ;
00057 
00059         ImageHSV(ImageHSV&, 
00060                  unsigned int min_x,
00061                  unsigned int min_y,
00062                  unsigned int max_x,
00063                  unsigned int max_y) ;
00064 
00065 
00067         void rgb2hsv() ;
00068 
00070         void hsv2rgb() ;
00071 
00073         static void convPixel_RGBtoHSV (PixelRGB&, PixelHSV&);
00074         static void convPixel_HSVtoRGB (PixelHSV&, PixelRGB&);
00075 } ;
00076 
00077 #endif

Generated at Fri Aug 13 17:29:21 2004 for libRTImage by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001