Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | 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 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00038 #ifndef __vtkImageIslandRemoval2D_h
00039 #define __vtkImageIslandRemoval2D_h
00040 
00041 
00042 #include "vtkImageToImageFilter.h"
00043 
00044 //BTX
00045 typedef struct{
00046   void *inPtr;
00047   void *outPtr;
00048   int idx0;
00049   int idx1;
00050   } vtkImage2DIslandPixel;
00051 //ETX
00052 
00053 class VTK_IMAGING_EXPORT vtkImageIslandRemoval2D : public vtkImageToImageFilter
00054 {
00055 public:
00057 
00058   static vtkImageIslandRemoval2D *New();
00059   vtkTypeRevisionMacro(vtkImageIslandRemoval2D,vtkImageToImageFilter);
00060   void PrintSelf(ostream& os, vtkIndent indent);
00062   
00064 
00065   vtkSetMacro(AreaThreshold, int);
00066   vtkGetMacro(AreaThreshold, int);
00068 
00070 
00071   vtkSetMacro(SquareNeighborhood, int);
00072   vtkGetMacro(SquareNeighborhood, int);
00073   vtkBooleanMacro(SquareNeighborhood, int);
00075 
00077 
00078   vtkSetMacro(IslandValue, double);
00079   vtkGetMacro(IslandValue, double);
00081 
00083 
00084   vtkSetMacro(ReplaceValue, double);
00085   vtkGetMacro(ReplaceValue, double);
00087   
00088 protected:
00089   vtkImageIslandRemoval2D();
00090   ~vtkImageIslandRemoval2D() {};
00091 
00092   int AreaThreshold;
00093   int SquareNeighborhood;
00094   double IslandValue;
00095   double ReplaceValue;
00096 
00097   void ExecuteData(vtkDataObject *output);
00098 private:
00099   vtkImageIslandRemoval2D(const vtkImageIslandRemoval2D&);  // Not implemented.
00100   void operator=(const vtkImageIslandRemoval2D&);  // Not implemented.
00101 };
00102 
00103 #endif
00104 
00105 
00106