automatic commit
[folded-ctf.git] / rgb_image_subpixel.h
index 778f084..57d41e2 100644 (file)
 // Contact <francois.fleuret@idiap.ch> for comments & bug reports        //
 ///////////////////////////////////////////////////////////////////////////
 
-// A simple color image class
+/*
+
+  Same as RGBImage, but with sub-pixel resolution to produce nifty
+  smoothing in the drawings.
+
+ */
 
 #ifndef RGB_IMAGE_SUBPIXEL_H
 #define RGB_IMAGE_SUBPIXEL_H
 #include "rgb_image.h"
 
 class RGBImageSubpixel : public RGBImage {
-  static const int _scale = 8;
+  static const int scale = 8;
 public:
 
   RGBImageSubpixel(int width, int height);
   RGBImageSubpixel(RGBImage *image);
   virtual ~RGBImageSubpixel();
 
-  inline int width() const { return _width / _scale; }
-  inline int height() const { return _height / _scale; }
-
-  virtual void read_ppm(const char *filename);
-  virtual void write_ppm(const char *filename);
+  inline int width() const { return _width / scale; }
+  inline int height() const { return _height / scale; }
 
   virtual void read_png(const char *filename);
   virtual void write_png(const char *filename);