 |
VTK
9.1.0
|
Go to the documentation of this file.
83 #ifndef vtkImageToPolyDataFilter_h
84 #define vtkImageToPolyDataFilter_h
86 #include "vtkFiltersHybridModule.h"
89 #define VTK_STYLE_PIXELIZE 0
90 #define VTK_STYLE_POLYGONALIZE 1
91 #define VTK_STYLE_RUN_LENGTH 2
93 #define VTK_COLOR_MODE_LUT 0
94 #define VTK_COLOR_MODE_LINEAR_256 1
126 vtkGetMacro(OutputStyle,
int);
137 vtkGetMacro(ColorMode,
int);
166 vtkSetClampMacro(NumberOfSmoothingIterations,
int, 0,
VTK_INT_MAX);
167 vtkGetMacro(NumberOfSmoothingIterations,
int);
188 vtkGetMacro(DecimationError,
double);
198 vtkGetMacro(Error,
int);
210 vtkGetMacro(SubImageSize,
int);
247 void BuildTable(
unsigned char* inPixels);
261 unsigned char* ptr,
int& i,
int& j,
int dims[3],
unsigned char* neighbors[4],
int mode);
263 void GetIJ(
int id,
int& i,
int& j,
int dims[2]);
264 unsigned char* GetColor(
unsigned char* rgb);
265 int IsSameColor(
unsigned char* p1,
unsigned char* p2);
void SetOutputStyleToRunLength()
Specify how to create the output.
#define VTK_STYLE_POLYGONALIZE
vtkImageToPolyDataFilter()
#define VTK_STYLE_PIXELIZE
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkScalarsToColors * LookupTable
generate linear primitives (vtkPolyData) from an image
record modification and/or execution time
dynamic, self-adjusting array of unsigned char
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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()
Specify how to quantize color.
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)
~vtkImageToPolyDataFilter() override
static vtkImageToPolyDataFilter * New()
Instantiate object with initial number of colors 256.
a simple class to control print indentation
dynamic, self-adjusting array of int
void SetColorModeToLUT()
Specify how to quantize color.
#define VTK_STYLE_RUN_LENGTH
Superclass for mapping scalar values to colors.
void SetOutputStyleToPixelize()
Specify how to create the output.
dynamic, self-adjusting array of vtkIdType
virtual void SetLookupTable(vtkScalarsToColors *)
Set/Get the vtkLookupTable to use.
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetOutputStyleToPolygonalize()
Specify how to create the output.
std::pair< boost::graph_traits< vtkGraph * >::edge_iterator, boost::graph_traits< vtkGraph * >::edge_iterator > edges(vtkGraph *g)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int NumberOfSmoothingIterations
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.