refinery
RAW file processor
|
00001 #ifndef _REFINERY_INTERPOLATE_H 00002 #define _REFINERY_INTERPOLATE_H 00003 00004 namespace refinery { 00005 00006 template<typename T> class Image; 00007 template<typename T> class RGBPixel; 00008 typedef Image<RGBPixel<unsigned short> > RGBImage; 00009 template<typename T> class GrayPixel; 00010 typedef Image<GrayPixel<unsigned short> > GrayImage; 00011 00035 class Interpolator { 00036 public: 00040 enum Type { 00048 INTERPOLATE_AHD, 00049 00059 INTERPOLATE_BILINEAR 00060 }; 00061 00062 private: 00063 Type mType; 00064 00065 public: 00071 Interpolator(const Type& type); 00072 00085 RGBImage* interpolate(const GrayImage& image); 00086 }; 00087 00088 } /* namespace */ 00089 00090 #endif /* _REFINERY_INTERPOLATE_H */