VTK  9.3.1
vtkImageNonMaximumSuppression.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkImageNonMaximumSuppression_h
19 #define vtkImageNonMaximumSuppression_h
20 
21 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_MAGNITUDE_INPUT 0
22 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_VECTOR_INPUT 1
23 
24 #include "vtkImageData.h" // makes things a bit easier
25 #include "vtkImagingMorphologicalModule.h" // For export macro
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageNonMaximumSuppression
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
41  void SetMagnitudeInputData(vtkImageData* input) { this->SetInputData(0, input); }
42  void SetVectorInputData(vtkImageData* input) { this->SetInputData(1, input); }
44 
46 
50  vtkSetMacro(HandleBoundaries, vtkTypeBool);
51  vtkGetMacro(HandleBoundaries, vtkTypeBool);
52  vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
54 
56 
59  vtkSetClampMacro(Dimensionality, int, 2, 3);
60  vtkGetMacro(Dimensionality, int);
62 
63 protected:
65  ~vtkImageNonMaximumSuppression() override = default;
66 
69 
71 
73 
74  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
75  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
76  int outExt[6], int threadId) override;
77 
78 private:
80  void operator=(const vtkImageNonMaximumSuppression&) = delete;
81 };
82 
83 VTK_ABI_NAMESPACE_END
84 #endif
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:64
Generic filter that has one input.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
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, multiple threads will be spawned, and each thread will call this method.
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.