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 =========================================================================*/
27 #ifndef vtkImageNonMaximumSuppression_h
28 #define vtkImageNonMaximumSuppression_h
29 
30 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_MAGNITUDE_INPUT 0
31 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_VECTOR_INPUT 1
32 
33 #include "vtkImagingMorphologicalModule.h" // For export macro
35 #include "vtkImageData.h" // makes things a bit easier
36 
37 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageNonMaximumSuppression : public vtkThreadedImageAlgorithm
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  void SetMagnitudeInputData(vtkImageData *input) {this->SetInputData(0,input);};
49  void SetVectorInputData(vtkImageData *input) {this->SetInputData(1,input);};
51 
53 
57  vtkSetMacro(HandleBoundaries, vtkTypeBool);
58  vtkGetMacro(HandleBoundaries, vtkTypeBool);
59  vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
61 
63 
66  vtkSetClampMacro(Dimensionality,int,2,3);
67  vtkGetMacro(Dimensionality,int);
69 
70 protected:
73 
76 
79  vtkInformationVector *) override;
80 
83  vtkInformationVector*) override;
84 
85  void ThreadedRequestData(vtkInformation *request,
86  vtkInformationVector **inputVector,
87  vtkInformationVector *outputVector,
88  vtkImageData ***inData,
89  vtkImageData **outData,
90  int extent[6], int threadId) override;
91 
92 private:
94  void operator=(const vtkImageNonMaximumSuppression&) = delete;
95 };
96 
97 #endif
98 
99 
100 
void SetVectorInputData(vtkImageData *input)
Set the magnitude and vector inputs.
void SetMagnitudeInputData(vtkImageData *input)
Set the magnitude and vector inputs.
Store vtkAlgorithm input/output information.
void SetInputData(vtkDataObject *)
Assign a data object as input.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
int vtkTypeBool
Definition: vtkABI.h:69
Generic filter that has one input.
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Performs non-maximum suppression.
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up,...
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.