dox/Imaging/vtkImageIslandRemoval2D.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00031 #ifndef __vtkImageIslandRemoval2D_h
00032 #define __vtkImageIslandRemoval2D_h
00033
00034
00035 #include "vtkImageToImageFilter.h"
00036
00037
00038 typedef struct{
00039 void *inPtr;
00040 void *outPtr;
00041 int idx0;
00042 int idx1;
00043 } vtkImage2DIslandPixel;
00044
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&);
00093 void operator=(const vtkImageIslandRemoval2D&);
00094 };
00095
00096 #endif
00097
00098
00099