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 
56  void SetSeedPoints(vtkPoints *points);
57  vtkGetObjectMacro(SeedPoints, vtkPoints);
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 
117  virtual void SetStencilData(vtkImageStencilData *stencil);
118  vtkImageStencilData *GetStencil();
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
Store vtkAlgorithm input/output information.
#define VTKIMAGINGMORPHOLOGICAL_EXPORT
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
efficient description of an image stencil
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual int FillInputPortInformation(int port, vtkInformation *info)
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
represent and manipulate 3D points
Definition: vtkPoints.h:38