X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=rgb_image_subpixel.h;h=57d41e219a3900ac996ae32535ec83b4bbe42d1e;hb=e1d8ccc0f252d9be9590fe5a6106a4336762b6aa;hp=393068bd5d763ad565531600f9ed5f9a5e5d9672;hpb=d922ad61d35e9a6996730bec24b16f8bf7bc426c;p=folded-ctf.git
diff --git a/rgb_image_subpixel.h b/rgb_image_subpixel.h
index 393068b..57d41e2 100644
--- a/rgb_image_subpixel.h
+++ b/rgb_image_subpixel.h
@@ -12,11 +12,18 @@
// You should have received a copy of the GNU General Public License //
// along with this program. If not, see . //
// //
-// Written by Francois Fleuret, (C) IDIAP //
+// Written by Francois Fleuret //
+// (C) Idiap Research Institute //
+// //
// Contact 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
@@ -25,18 +32,15 @@
#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);