VTK  9.3.20240424
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
47#ifndef vtkImageNonMaximumSuppression_h
48#define vtkImageNonMaximumSuppression_h
49
50#define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_MAGNITUDE_INPUT 0
51#define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_VECTOR_INPUT 1
52
53#include "vtkImageData.h" // makes things a bit easier
54#include "vtkImagingMorphologicalModule.h" // For export macro
56
57VTK_ABI_NAMESPACE_BEGIN
58class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageNonMaximumSuppression
60{
61public:
64 void PrintSelf(ostream& os, vtkIndent indent) override;
65
67
70 void SetMagnitudeInputData(vtkImageData* input) { this->SetInputData(0, input); }
71 void SetVectorInputData(vtkImageData* input) { this->SetInputData(1, input); }
73
75
79 vtkSetMacro(HandleBoundaries, vtkTypeBool);
80 vtkGetMacro(HandleBoundaries, vtkTypeBool);
81 vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
83
85
88 vtkSetClampMacro(Dimensionality, int, 2, 3);
89 vtkGetMacro(Dimensionality, int);
91
92protected:
94 ~vtkImageNonMaximumSuppression() override = default;
95
98
100
102
104 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
105 int outExt[6], int threadId) override;
106
107private:
109 void operator=(const vtkImageNonMaximumSuppression&) = delete;
110};
111
112VTK_ABI_NAMESPACE_END
113#endif
void SetInputData(vtkDataObject *)
Assign a data object as input.
topologically and geometrically regular array of data
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...
static vtkImageNonMaximumSuppression * New()
void SetVectorInputData(vtkImageData *input)
Set the magnitude and vector inputs.
~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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition vtkABI.h:64