vtkImageIslandRemoval2D.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00038 #ifndef __vtkImageIslandRemoval2D_h
00039 #define __vtkImageIslandRemoval2D_h
00040
00041
00042 #include "vtkImageToImageFilter.h"
00043
00044
00045 typedef struct{
00046 void *inPtr;
00047 void *outPtr;
00048 int idx0;
00049 int idx1;
00050 } vtkImage2DIslandPixel;
00051
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&);
00100 void operator=(const vtkImageIslandRemoval2D&);
00101 };
00102
00103 #endif
00104
00105
00106