Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkImageIslandRemoval2D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageIslandRemoval2D.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00031 #ifndef __vtkImageIslandRemoval2D_h
00032 #define __vtkImageIslandRemoval2D_h
00033 
00034 
00035 #include "vtkImageToImageFilter.h"
00036 
00037 //BTX
00038 typedef struct{
00039   void *inPtr;
00040   void *outPtr;
00041   int idx0;
00042   int idx1;
00043   } vtkImage2DIslandPixel;
00044 //ETX
00045 
00046 class VTK_IMAGING_EXPORT vtkImageIslandRemoval2D : public vtkImageToImageFilter
00047 {
00048 public:
00050 
00051   static vtkImageIslandRemoval2D *New();
00052   vtkTypeRevisionMacro(vtkImageIslandRemoval2D,vtkImageToImageFilter);
00053   void PrintSelf(ostream& os, vtkIndent indent);
00055   
00057 
00058   vtkSetMacro(AreaThreshold, int);
00059   vtkGetMacro(AreaThreshold, int);
00061 
00063 
00064   vtkSetMacro(SquareNeighborhood, int);
00065   vtkGetMacro(SquareNeighborhood, int);
00066   vtkBooleanMacro(SquareNeighborhood, int);
00068 
00070 
00071   vtkSetMacro(IslandValue, float);
00072   vtkGetMacro(IslandValue, float);
00074 
00076 
00077   vtkSetMacro(ReplaceValue, float);
00078   vtkGetMacro(ReplaceValue, float);
00080   
00081 protected:
00082   vtkImageIslandRemoval2D();
00083   ~vtkImageIslandRemoval2D() {};
00084 
00085   int AreaThreshold;
00086   int SquareNeighborhood;
00087   float IslandValue;
00088   float ReplaceValue;
00089 
00090   void ExecuteData(vtkDataObject *output);
00091 private:
00092   vtkImageIslandRemoval2D(const vtkImageIslandRemoval2D&);  // Not implemented.
00093   void operator=(const vtkImageIslandRemoval2D&);  // Not implemented.
00094 };
00095 
00096 #endif
00097 
00098 
00099