74#ifndef vtkImageToPolyDataFilter_h
75#define vtkImageToPolyDataFilter_h
77#include "vtkFiltersHybridModule.h"
80#define VTK_STYLE_PIXELIZE 0
81#define VTK_STYLE_POLYGONALIZE 1
82#define VTK_STYLE_RUN_LENGTH 2
84#define VTK_COLOR_MODE_LUT 0
85#define VTK_COLOR_MODE_LINEAR_256 1
87VTK_ABI_NAMESPACE_BEGIN
118 vtkGetMacro(OutputStyle,
int);
129 vtkGetMacro(ColorMode,
int);
158 vtkSetClampMacro(NumberOfSmoothingIterations,
int, 0,
VTK_INT_MAX);
159 vtkGetMacro(NumberOfSmoothingIterations,
int);
180 vtkGetMacro(DecimationError,
double);
202 vtkGetMacro(SubImageSize,
int);
239 void BuildTable(
unsigned char* inPixels);
241 vtkDataArray* inScalars,
int numComp,
int type,
int dims[3],
int ext[4]);
253 unsigned char* ptr,
int& i,
int& j,
int dims[2],
unsigned char* neighbors[4],
int mode);
255 void GetIJ(
int id,
int& i,
int& j,
int dims[2]);
256 unsigned char* GetColor(
unsigned char* rgb);
257 int IsSameColor(
unsigned char* p1,
unsigned char* p2);
abstract superclass for arrays of numeric data
keep track of edges (edge is pair of integer id's)
dynamic, self-adjusting array of vtkIdType
generate linear primitives (vtkPolyData) from an image
virtual void RunLengthImage(vtkUnsignedCharArray *pixels, int dims[3], double origin[3], double spacing[3], vtkPolyData *output)
void SetColorModeToLinear256()
Specify how to quantize color.
static vtkImageToPolyDataFilter * New()
Instantiate object with initial number of colors 256.
vtkScalarsToColors * LookupTable
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetOutputStyleToPixelize()
Specify how to create the output.
void SetOutputStyleToPolygonalize()
Specify how to create the output.
void SetColorModeToLUT()
Specify how to quantize color.
virtual void SetLookupTable(vtkScalarsToColors *)
Set/Get the vtkLookupTable to use.
virtual void PixelizeImage(vtkUnsignedCharArray *pixels, int dims[3], double origin[3], double spacing[3], vtkPolyData *output)
~vtkImageToPolyDataFilter() override
int NumberOfSmoothingIterations
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkImageToPolyDataFilter()
virtual void PolygonalizeImage(vtkUnsignedCharArray *pixels, int dims[3], double origin[3], double spacing[3], vtkPolyData *output)
void SetOutputStyleToRunLength()
Specify how to create the output.
a simple class to control print indentation
dynamic, self-adjusting array of int
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Superclass for mapping scalar values to colors.
record modification and/or execution time
dynamic, self-adjusting array of unsigned char
std::pair< boost::graph_traits< vtkGraph * >::edge_iterator, boost::graph_traits< vtkGraph * >::edge_iterator > edges(vtkGraph *g)
#define VTK_COLOR_MODE_LINEAR_256
#define VTK_COLOR_MODE_LUT
#define VTK_STYLE_POLYGONALIZE
#define VTK_STYLE_PIXELIZE
#define VTK_STYLE_RUN_LENGTH