VTK
vtkImageThresholdConnectivity.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageThresholdConnectivity.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
35 #ifndef vtkImageThresholdConnectivity_h
36 #define vtkImageThresholdConnectivity_h
37 
38 #include "vtkImagingMorphologicalModule.h" // For export macro
39 #include "vtkImageAlgorithm.h"
40 
41 class vtkPoints;
42 class vtkImageData;
44 
46  public vtkImageAlgorithm
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
59 
61  void ThresholdByUpper(double thresh);
62 
64  void ThresholdByLower(double thresh);
65 
68  void ThresholdBetween(double lower, double upper);
69 
71 
72  vtkSetMacro(ReplaceIn, int);
73  vtkGetMacro(ReplaceIn, int);
74  vtkBooleanMacro(ReplaceIn, int);
76 
78 
80  void SetInValue(double val);
81  vtkGetMacro(InValue, double);
83 
85 
86  vtkSetMacro(ReplaceOut, int);
87  vtkGetMacro(ReplaceOut, int);
88  vtkBooleanMacro(ReplaceOut, int);
90 
92 
94  void SetOutValue(double val);
95  vtkGetMacro(OutValue, double);
97 
99 
100  vtkGetMacro(UpperThreshold, double);
101  vtkGetMacro(LowerThreshold, double);
103 
105 
106  vtkSetVector2Macro(SliceRangeX, int);
107  vtkGetVector2Macro(SliceRangeX, int);
108  vtkSetVector2Macro(SliceRangeY, int);
109  vtkGetVector2Macro(SliceRangeY, int);
110  vtkSetVector2Macro(SliceRangeZ, int);
111  vtkGetVector2Macro(SliceRangeZ, int);
113 
115 
120 
122 
124  vtkSetMacro(ActiveComponent,int);
125  vtkGetMacro(ActiveComponent,int);
127 
129 
133  vtkSetVector3Macro(NeighborhoodRadius, double);
134  vtkGetVector3Macro(NeighborhoodRadius, double);
136 
138 
140  vtkSetClampMacro(NeighborhoodFraction, double, 0.0, 1.0);
141  vtkGetMacro(NeighborhoodFraction, double);
143 
145  unsigned long GetMTime();
146 
148 
150  vtkGetMacro(NumberOfInVoxels, int);
152 
153 protected:
156 
159  double InValue;
160  double OutValue;
163 
164  double NeighborhoodRadius[3];
166 
168 
169  int SliceRangeX[2];
170  int SliceRangeY[2];
171  int SliceRangeZ[2];
172 
174 
176 
178 
179  void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
180 
186 
187 private:
189  void operator=(const vtkImageThresholdConnectivity&); // Not implemented.
190 };
191 
192 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkImageThresholdConnectivity::LowerThreshold
double LowerThreshold
Definition: vtkImageThresholdConnectivity.h:158
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkImageThresholdConnectivity::ImageMask
vtkImageData * ImageMask
Definition: vtkImageThresholdConnectivity.h:177
vtkSetVector2Macro
#define vtkSetVector2Macro(name, type)
Definition: vtkSetGet.h:254
vtkImageThresholdConnectivity::ActiveComponent
int ActiveComponent
Definition: vtkImageThresholdConnectivity.h:175
vtkImageThresholdConnectivity::UpperThreshold
double UpperThreshold
Definition: vtkImageThresholdConnectivity.h:157
vtkGetVector2Macro
#define vtkGetVector2Macro(name, type)
Definition: vtkSetGet.h:270
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkImageThresholdConnectivity::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageThresholdConnectivity::GetStencil
vtkImageStencilData * GetStencil()
vtkImageThresholdConnectivity::OutValue
double OutValue
Definition: vtkImageThresholdConnectivity.h:160
vtkImageAlgorithm.h
vtkImageThresholdConnectivity::ThresholdByLower
void ThresholdByLower(double thresh)
vtkImageThresholdConnectivity::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkgl::points
GLsizei const GLfloat * points
Definition: vtkgl.h:14786
vtkImageThresholdConnectivity::vtkImageThresholdConnectivity
vtkImageThresholdConnectivity()
vtkImageThresholdConnectivity::NumberOfInVoxels
int NumberOfInVoxels
Definition: vtkImageThresholdConnectivity.h:173
vtkgl::val
GLuint GLfloat * val
Definition: vtkgl.h:13789
vtkImageThresholdConnectivity::GetMTime
unsigned long GetMTime()
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkImageThresholdConnectivity::ComputeInputUpdateExtent
void ComputeInputUpdateExtent(int inExt[6], int outExt[6])
vtkImageThresholdConnectivity::~vtkImageThresholdConnectivity
~vtkImageThresholdConnectivity()
vtkImageThresholdConnectivity::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageThresholdConnectivity::ReplaceOut
int ReplaceOut
Definition: vtkImageThresholdConnectivity.h:162
vtkgl::stencil
GLint GLfloat GLint stencil
Definition: vtkgl.h:12368
vtkImageThresholdConnectivity::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageThresholdConnectivity::ThresholdBetween
void ThresholdBetween(double lower, double upper)
vtkImageThresholdConnectivity::SetOutValue
void SetOutValue(double val)
vtkImagingMorphologicalModule.h
vtkImageThresholdConnectivity::New
static vtkImageThresholdConnectivity * New()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkImageThresholdConnectivity::InValue
double InValue
Definition: vtkImageThresholdConnectivity.h:159
vtkImageThresholdConnectivity::ReplaceIn
int ReplaceIn
Definition: vtkImageThresholdConnectivity.h:161
vtkImageThresholdConnectivity::SetSeedPoints
void SetSeedPoints(vtkPoints *points)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkImageThresholdConnectivity::SetInValue
void SetInValue(double val)
vtkImageThresholdConnectivity
Flood fill an image region.
Definition: vtkImageThresholdConnectivity.h:47
vtkImageStencilData
efficient description of an image stencil
Definition: vtkImageStencilData.h:37
vtkImageThresholdConnectivity::SetStencilData
virtual void SetStencilData(vtkImageStencilData *stencil)
vtkImageThresholdConnectivity::NeighborhoodFraction
double NeighborhoodFraction
Definition: vtkImageThresholdConnectivity.h:165
vtkImageThresholdConnectivity::ThresholdByUpper
void ThresholdByUpper(double thresh)
VTKIMAGINGMORPHOLOGICAL_EXPORT
#define VTKIMAGINGMORPHOLOGICAL_EXPORT
Definition: vtkImagingMorphologicalModule.h:15
vtkImageThresholdConnectivity::SeedPoints
vtkPoints * SeedPoints
Definition: vtkImageThresholdConnectivity.h:167