00001 #ifndef __ImageSequenceOp__ 00002 #define __ImageSequenceOp__ 00003 00005 // Sequence of Image Filters 00006 // ========================= 00007 // 00008 // Group: Eggs and Pictures. 00009 // Author: Bernard De Cuyper 00010 // Date: 10/07/2002 00011 // 00012 // Purpose: Define the concept of sequence image operations. 00013 // Do image pipelining 00014 // 00015 // Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, 00016 // Eggs & Pictures. 00017 // MIT/Open BSD copyright model. 00018 // 00020 00021 #include <stdio.h> 00022 00023 #include "AnImageOp.hpp" 00024 00025 00026 00027 class ImageSequenceOp : public AnImageOp 00028 { 00029 protected: 00030 00031 int n, nmax; 00032 00033 AnImageOp** restoration; 00034 00035 public: 00036 00037 ImageSequenceOp(int maxItems=16); 00038 virtual ~ImageSequenceOp(){ delete[] restoration; } 00039 00040 virtual void add(AnImageOp* newRestoration); 00041 00042 virtual AnImage* filter(AnImage* src, AnImage* dest=0); 00043 virtual AnImage* selectedFilter(AnImage* mask, AnImage* src, AnImage* dest=0); 00044 00045 virtual void report(FILE* file){} 00046 }; 00047 00048 00049 #endif