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

ILocalThresholdOp.hpp

00001 #ifndef __ILocalThresholdOp__
00002 #define __ILocalThresholdOp__
00003 
00004 
00005 
00026 #include <stdio.h>
00027 
00028 #include "IMorphologicalOp.hpp"
00029 
00030 #include "IErosionOp.hpp"
00031 #include "IDilatationOp.hpp"
00032 
00033 class ILocalThresholdOp : public IMorphologicalOp
00034 {
00035 protected:
00036 
00037 int                     up;
00038 int                     low;
00039 
00040 IErosionOp              erosion;                        // min
00041 IDilatationOp   dilatation;                     // max
00042 
00043 public:
00044         
00045 ILocalThresholdOp(int lowLabel=0, int upLabel=255){low= lowLabel; up= upLabel;}
00046 ILocalThresholdOp(StructuredElement*    aStructuredElement, int lowLabel=0, int upLabel=255);
00047 virtual ~ILocalThresholdOp(){}
00048 
00049 virtual void setIterations(int iter){dilatation.setIterations(iter); erosion.setIterations(iter);}
00050 
00051 virtual void setStructuredElement(StructuredElement*    aStructuredElement);
00052 
00053 virtual AnImage* filter(AnImage* src, AnImage* dest=0);
00054 
00055 virtual void report(FILE* file){}
00056 };
00057 
00058 
00059 #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