Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxRgbHSI.h

00001 /*
00002  *  Copyright (c) 2000, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Dennis Koelma (koelma@wins.uva.nl)
00007  *
00008  */
00009 
00010 #ifndef HxRgbHSI_h
00011 #define HxRgbHSI_h
00012 
00013 #include "HxTagList.h"
00014 #include "HxClassName.h"
00015 #include "HxColConvert.h"
00016 
00017 
00021 template<class ValT, class ValDoubleT>
00022 class HxRgbHSI
00023 {
00024 public:
00025                         HxRgbHSI(HxTagList&)
00026                             {}
00027 
00028     int                 doIt(const ValT& pixV)
00029                             {
00030                                 return HxColRGB2int(
00031                                             HxColHSI2RGB((HxVec3Double) pixV));
00032                             }
00033 
00034     int                 doItDouble(const ValDoubleT& pixV)
00035                             {
00036                                 return HxColRGB2int(
00037                                             HxColHSI2RGB((HxVec3Double) pixV));
00038                             }
00039 
00040     static HxString     className()
00041                             { return HxString("HSI"); }
00042 };
00043 
00044 
00045 #endif

Generated on Tue Jan 8 13:59:16 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001