diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-03-18 12:22:50 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-03-18 12:22:50 +0100 |
commit | 5432343cc8bd34a77a1584be33abbd53cdd6e373 (patch) | |
tree | 01ef156b23b228220768ed021c1db127d22b7e51 /src/GipfelWidget.H | |
parent | 18ace785b31de59e5d60eb4507e4e991027ec795 (diff) |
implement bicubic interpolation
Diffstat (limited to 'src/GipfelWidget.H')
-rw-r--r-- | src/GipfelWidget.H | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/GipfelWidget.H b/src/GipfelWidget.H index 8cb6d3f..ed251ef 100644 --- a/src/GipfelWidget.H +++ b/src/GipfelWidget.H @@ -44,13 +44,17 @@ class GipfelWidget : public Fl_Widget { static int get_pixel_bilinear(Fl_Image *img, double x, double y, int *r, int *g, int *b); + static int get_pixel_bicubic(Fl_Image *img, double x, double y, + int *r, int *g, int *b); + static int get_pixel(Fl_Image *img, int x, int y, int *r, int *g, int *b); public: typedef enum { NEAREST = 0, - BILINEAR = 1 + BILINEAR = 1, + BICUBIC = 2 } sample_mode_t; GipfelWidget(int X,int Y,int W, int H); |