Go to the documentation of this file.
67 #ifndef vtkImageToPolyDataFilter_h
68 #define vtkImageToPolyDataFilter_h
70 #include "vtkFiltersHybridModule.h"
73 #define VTK_STYLE_PIXELIZE 0
74 #define VTK_STYLE_POLYGONALIZE 1
75 #define VTK_STYLE_RUN_LENGTH 2
77 #define VTK_COLOR_MODE_LUT 0
78 #define VTK_COLOR_MODE_LINEAR_256 1
110 vtkGetMacro(OutputStyle,
int);
124 vtkGetMacro(ColorMode,
int);
146 vtkGetMacro(Smoothing,
int);
156 vtkGetMacro(NumberOfSmoothingIterations,
int);
165 vtkGetMacro(Decimation,
int);
177 vtkGetMacro(DecimationError,
double);
187 vtkGetMacro(Error,
int);
199 vtkGetMacro(SubImageSize,
int);
220 double origin[3],
double spacing[3],
223 double origin[3],
double spacing[3],
226 double origin[3],
double spacing[3],
238 void BuildTable(
unsigned char *inPixels);
240 int type,
int dims[3],
int ext[4]);
254 int GetNeighbors(
unsigned char *ptr,
int &i,
int &j,
int dims[3],
255 unsigned char *neighbors[4],
int mode);
257 void GetIJ(
int id,
int &i,
int &j,
int dims[2]);
258 unsigned char *GetColor(
unsigned char *rgb);
259 int IsSameColor(
unsigned char *p1,
unsigned char *p2);
void SetOutputStyleToRunLength()
std::pair< boost::graph_traits< vtkGraph * >::edge_iterator, boost::graph_traits< vtkGraph * >::edge_iterator > edges(vtkGraph *g)
#define VTK_STYLE_POLYGONALIZE
vtkImageToPolyDataFilter()
#define VTK_STYLE_PIXELIZE
vtkScalarsToColors * LookupTable
generate linear primitives (vtkPolyData) from an image
record modification and/or execution time
dynamic, self-adjusting array of unsigned char
~vtkImageToPolyDataFilter()
virtual void RunLengthImage(vtkUnsignedCharArray *pixels, int dims[3], double origin[3], double spacing[3], vtkPolyData *output)
abstract superclass for arrays of numeric data
void SetColorModeToLinear256()
keep track of edges (edge is pair of integer id's)
#define VTK_COLOR_MODE_LUT
#define VTK_COLOR_MODE_LINEAR_256
virtual void PixelizeImage(vtkUnsignedCharArray *pixels, int dims[3], double origin[3], double spacing[3], vtkPolyData *output)
static vtkImageToPolyDataFilter * New()
Instantiate object with initial number of colors 256.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
a simple class to control print indentation
dynamic, self-adjusting array of int
#define VTK_STYLE_RUN_LENGTH
Superclass for mapping scalar values to colors.
void SetOutputStyleToPixelize()
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
dynamic, self-adjusting array of vtkIdType
virtual void SetLookupTable(vtkScalarsToColors *)
Set/Get the vtkLookupTable to use.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetOutputStyleToPolygonalize()
int NumberOfSmoothingIterations
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual void PolygonalizeImage(vtkUnsignedCharArray *pixels, int dims[3], double origin[3], double spacing[3], vtkPolyData *output)
Superclass for algorithms that produce only polydata as output.