00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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