VTK
vtkImageNonMaximumSuppression.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageNonMaximumSuppression.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 =========================================================================*/
29 #ifndef __vtkImageNonMaximumSuppression_h
30 #define __vtkImageNonMaximumSuppression_h
31 
32 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_MAGNITUDE_INPUT 0
33 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_VECTOR_INPUT 1
34 
36 #include "vtkImageData.h" // makes things a bit easier
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  void SetMagnitudeInput(vtkImageData *input) {this->SetInput(0,input);};
48  void SetVectorInput(vtkImageData *input) {this->SetInput(1,input);};
50 
52 
54  vtkSetMacro(HandleBoundaries, int);
55  vtkGetMacro(HandleBoundaries, int);
56  vtkBooleanMacro(HandleBoundaries, int);
58 
60 
62  vtkSetClampMacro(Dimensionality,int,2,3);
63  vtkGetMacro(Dimensionality,int);
65 
66 protected:
69 
70  int HandleBoundaries;
72 
73  virtual int RequestInformation (vtkInformation *,
76 
80 
81  virtual void ThreadedRequestData(vtkInformation *request,
82  vtkInformationVector **inputVector,
83  vtkInformationVector *outputVector,
84  vtkImageData ***inData,
85  vtkImageData **outData,
86  int extent[6], int threadId);
87 
88 private:
90  void operator=(const vtkImageNonMaximumSuppression&); // Not implemented.
91 };
92 
93 #endif
94 
95 
96