VTK  9.2.20221001
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 =========================================================================*/
59 #ifndef vtkImageNonMaximumSuppression_h
60 #define vtkImageNonMaximumSuppression_h
61 
62 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_MAGNITUDE_INPUT 0
63 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_VECTOR_INPUT 1
64 
65 #include "vtkImageData.h" // makes things a bit easier
66 #include "vtkImagingMorphologicalModule.h" // For export macro
68 
69 VTK_ABI_NAMESPACE_BEGIN
70 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageNonMaximumSuppression
72 {
73 public:
76  void PrintSelf(ostream& os, vtkIndent indent) override;
77 
79 
82  void SetMagnitudeInputData(vtkImageData* input) { this->SetInputData(0, input); }
83  void SetVectorInputData(vtkImageData* input) { this->SetInputData(1, input); }
85 
87 
91  vtkSetMacro(HandleBoundaries, vtkTypeBool);
92  vtkGetMacro(HandleBoundaries, vtkTypeBool);
93  vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
95 
97 
100  vtkSetClampMacro(Dimensionality, int, 2, 3);
101  vtkGetMacro(Dimensionality, int);
103 
104 protected:
106  ~vtkImageNonMaximumSuppression() override = default;
107 
110 
112 
114 
116  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
117  int outExt[6], int threadId) override;
118 
119 private:
121  void operator=(const vtkImageNonMaximumSuppression&) = delete;
122 };
123 
124 VTK_ABI_NAMESPACE_END
125 #endif
void SetInputData(vtkDataObject *)
Assign a data object as input.
topologically and geometrically regular array of data
Definition: vtkImageData.h:164
Performs non-maximum suppression.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetVectorInputData(vtkImageData *input)
Set the magnitude and vector inputs.
static vtkImageNonMaximumSuppression * New()
~vtkImageNonMaximumSuppression() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int threadId) override
If the subclass does not define an Execute method, then the task will be broken up,...
void SetMagnitudeInputData(vtkImageData *input)
Set the magnitude and vector inputs.
a simple class to control print indentation
Definition: vtkIndent.h:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition: vtkABI.h:71