VTK  9.0.20210118
vtkImageGradientMagnitude.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageGradientMagnitude.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 =========================================================================*/
28 #ifndef vtkImageGradientMagnitude_h
29 #define vtkImageGradientMagnitude_h
30 
31 #include "vtkImagingGeneralModule.h" // For export macro
33 
34 class VTKIMAGINGGENERAL_EXPORT vtkImageGradientMagnitude : public vtkThreadedImageAlgorithm
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
46  vtkSetMacro(HandleBoundaries, vtkTypeBool);
47  vtkGetMacro(HandleBoundaries, vtkTypeBool);
48  vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
50 
52 
55  vtkSetClampMacro(Dimensionality, int, 2, 3);
56  vtkGetMacro(Dimensionality, int);
58 
59 protected:
61  ~vtkImageGradientMagnitude() override = default;
62 
65 
68 
69  void ThreadedExecute(vtkImageData* inData, vtkImageData* outData, int outExt[6], int id) override;
70 
71 private:
73  void operator=(const vtkImageGradientMagnitude&) = delete;
74 };
75 
76 #endif
vtkImageGradientMagnitude::Dimensionality
int Dimensionality
Definition: vtkImageGradientMagnitude.h:64
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition: vtkThreadedImageAlgorithm.h:38
vtkThreadedImageAlgorithm.h
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:47
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImageGradientMagnitude::HandleBoundaries
vtkTypeBool HandleBoundaries
Definition: vtkImageGradientMagnitude.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkThreadedImageAlgorithm::ThreadedExecute
virtual void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int extent[6], int threadId)
vtkImageGradientMagnitude
Computes magnitude of the gradient.
Definition: vtkImageGradientMagnitude.h:34
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69