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 
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Generic filter that has one input..
void SetInput(vtkDataObject *)
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_IMAGING_EXPORT
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Performs non-maximum suppression.
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
void SetMagnitudeInput(vtkImageData *input)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()