66 #ifndef __vtkImageToPolyDataFilter_h
67 #define __vtkImageToPolyDataFilter_h
71 #define VTK_STYLE_PIXELIZE 0
72 #define VTK_STYLE_POLYGONALIZE 1
73 #define VTK_STYLE_RUN_LENGTH 2
75 #define VTK_COLOR_MODE_LUT 0
76 #define VTK_COLOR_MODE_LINEAR_256 1
105 vtkGetMacro(OutputStyle,
int);
117 vtkGetMacro(ColorMode,
int);
134 vtkSetMacro(Smoothing,
int);
135 vtkGetMacro(Smoothing,
int);
136 vtkBooleanMacro(Smoothing,
int);
143 vtkGetMacro(NumberOfSmoothingIterations,
int);
149 vtkSetMacro(Decimation,
int);
150 vtkGetMacro(Decimation,
int);
151 vtkBooleanMacro(Decimation,
int);
160 vtkGetMacro(DecimationError,
double);
168 vtkGetMacro(Error,
int);
178 vtkGetMacro(SubImageSize,
int);
199 double origin[3],
double spacing[3],
202 double origin[3],
double spacing[3],
205 double origin[3],
double spacing[3],
219 void BuildTable(
unsigned char *inPixels);
221 int type,
int dims[3],
int ext[4]);
235 int GetNeighbors(
unsigned char *ptr,
int &i,
int &j,
int dims[3],
236 unsigned char *neighbors[4],
int mode);
238 void GetIJ(
int id,
int &i,
int &j,
int dims[3]);
239 unsigned char *GetColor(
unsigned char *rgb);
240 int IsSameColor(
unsigned char *p1,
unsigned char *p2);