Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxRgbOOO.h

00001 /*
00002  *  Copyright (c) 2001, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Jan-Mark Geusebroek (mark@wins.uva.nl)
00007  *  Dennis Koelma (koelma@wins.uva.nl)
00008  *
00009  */
00010 
00011 #ifndef HxRgbOOO_h
00012 #define HxRgbOOO_h
00013 
00014 #include "HxTagList.h"
00015 #include "HxClassName.h"
00016 #include "HxColConvert.h"
00017 
00018 
00022 template<class ValT, class ValDoubleT>
00023 class HxRgbOOO
00024 {
00025 public:
00027     typedef ValDoubleT ArithTypeDouble;
00028 
00030                         HxRgbOOO(HxTagList&)
00031                             {}
00032 
00034     int                 doIt(const ValT& pixV)
00035                             {
00036                                 return HxColRGB2int(
00037                                             HxColOOO2RGB((HxVec3Double) pixV));
00038                             }
00039 
00041     int                 doItDouble(const ValDoubleT& pixV)
00042                             {
00043                                 return HxColRGB2int(
00044                                             HxColOOO2RGB((HxVec3Double) pixV));
00045                             }
00046 
00048     static HxString     className()
00049                             { return HxString("OOO"); }
00050 };
00051 
00052 
00053 #endif

Generated on Tue Feb 3 14:18:41 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001