Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

IDilatationOp.hpp

00001 #ifndef __IDilatationOp__
00002 #define __IDilatationOp__
00003 
00004 
00005 
00024 #include <stdio.h>
00025 
00026 #include "IMorphologicalOp.hpp"
00027 
00028 #include "StructuredElement.hpp"
00029 
00030 
00031 class IDilatationOp : public IMorphologicalOp
00032 {
00033 protected:
00034 
00035 int                                     iterations;
00036 
00037 StructuredElement*      structuredElement;                      // byte image
00038 
00039 protected:
00040 
00041 virtual AnImage* singleFilter(AnImage* src, AnImage* dest=0);
00042 
00043 public:
00044         
00045 IDilatationOp(int iter=1){structuredElement=0; iterations=iter;}
00046 IDilatationOp(StructuredElement*        aStructuredElement, int iter=1)
00047                 {structuredElement= aStructuredElement; iterations=iter;}
00048 
00049 virtual void setIterations(int iter){iterations=iter;}
00050 
00051 virtual ~IDilatationOp(){nMask=0; xm=0; ym=0;}
00052 
00053 virtual void setStructuredElement(StructuredElement*    aStructuredElement)
00054                 {structuredElement= aStructuredElement;}
00055 
00056 virtual AnImage* filter(AnImage* src, AnImage* dest=0);
00057 
00058 virtual void report(FILE* file){}
00059 };
00060 
00061 
00062 #endif
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com