VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkLinkEdgels.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLinkEdgels.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 =========================================================================*/
50 #ifndef __vtkLinkEdgels_h
51 #define __vtkLinkEdgels_h
52 
53 #include "vtkFiltersGeneralModule.h" // For export macro
54 #include "vtkPolyDataAlgorithm.h"
55 
56 class vtkCellArray;
57 class vtkDataArray;
58 class vtkDoubleArray;
59 class vtkPoints;
60 
61 class VTKFILTERSGENERAL_EXPORT vtkLinkEdgels : public vtkPolyDataAlgorithm
62 {
63 public:
64  vtkTypeMacro(vtkLinkEdgels,vtkPolyDataAlgorithm);
65  void PrintSelf(ostream& os, vtkIndent indent);
66 
70  static vtkLinkEdgels *New();
71 
73 
74  vtkSetMacro(LinkThreshold,double);
75  vtkGetMacro(LinkThreshold,double);
77 
79 
80  vtkSetMacro(PhiThreshold,double);
81  vtkGetMacro(PhiThreshold,double);
83 
85 
86  vtkSetMacro(GradientThreshold,double);
87  vtkGetMacro(GradientThreshold,double);
89 
90 protected:
91  vtkLinkEdgels();
93 
94  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
95  virtual int FillInputPortInformation(int port, vtkInformation *info);
96 
97  void LinkEdgels(int xdim, int ydim,double *image, vtkDataArray *inVectors,
98  vtkCellArray *newLines, vtkPoints *newPts,
99  vtkDoubleArray *outScalars, vtkDoubleArray *outVectors,
100  int z);
102  double PhiThreshold;
104 private:
105  vtkLinkEdgels(const vtkLinkEdgels&); // Not implemented.
106  void operator=(const vtkLinkEdgels&); // Not implemented.
107 };
108 
109 #endif
double LinkThreshold
double GradientThreshold
double PhiThreshold
links edgels together to form digital curves.
Definition: vtkLinkEdgels.h:61