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 =========================================================================*/
30 #ifndef vtkImageNonMaximumSuppression_h
31 #define vtkImageNonMaximumSuppression_h
32 
33 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_MAGNITUDE_INPUT 0
34 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_VECTOR_INPUT 1
35 
36 #include "vtkImagingMorphologicalModule.h" // For export macro
38 #include "vtkImageData.h" // makes things a bit easier
39 
40 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageNonMaximumSuppression : public vtkThreadedImageAlgorithm
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
51  void SetMagnitudeInputData(vtkImageData *input) {this->SetInputData(0,input);};
52  void SetVectorInputData(vtkImageData *input) {this->SetInputData(1,input);};
54 
56 
60  vtkSetMacro(HandleBoundaries, vtkTypeBool);
61  vtkGetMacro(HandleBoundaries, vtkTypeBool);
62  vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
64 
66 
69  vtkSetClampMacro(Dimensionality,int,2,3);
70  vtkGetMacro(Dimensionality,int);
72 
73 protected:
76 
79 
82  vtkInformationVector *) override;
83 
86  vtkInformationVector*) override;
87 
88  void ThreadedRequestData(vtkInformation *request,
89  vtkInformationVector **inputVector,
90  vtkInformationVector *outputVector,
91  vtkImageData ***inData,
92  vtkImageData **outData,
93  int extent[6], int threadId) override;
94 
95 private:
97  void operator=(const vtkImageNonMaximumSuppression&) = delete;
98 };
99 
100 #endif
101 
102 
103 
vtkThreadedImageAlgorithm::ThreadedRequestData
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,...
vtkImageData.h
vtkImageNonMaximumSuppression
Performs non-maximum suppression.
Definition: vtkImageNonMaximumSuppression.h:40
vtkImageNonMaximumSuppression::Dimensionality
int Dimensionality
Definition: vtkImageNonMaximumSuppression.h:78
vtkImageNonMaximumSuppression::SetVectorInputData
void SetVectorInputData(vtkImageData *input)
Definition: vtkImageNonMaximumSuppression.h:52
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageNonMaximumSuppression::~vtkImageNonMaximumSuppression
~vtkImageNonMaximumSuppression() override
Definition: vtkImageNonMaximumSuppression.h:75
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition: vtkThreadedImageAlgorithm.h:43
vtkImageNonMaximumSuppression::SetMagnitudeInputData
void SetMagnitudeInputData(vtkImageData *input)
Set the magnitude and vector inputs.
Definition: vtkImageNonMaximumSuppression.h:51
vtkThreadedImageAlgorithm.h
vtkImageAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkImageAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkThreadedImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkX3D::extent
Definition: vtkX3D.h:345
vtkImageNonMaximumSuppression::HandleBoundaries
vtkTypeBool HandleBoundaries
Definition: vtkImageNonMaximumSuppression.h:77
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69