VTK
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 
32 #include "vtkImagingGeneralModule.h" // For export macro
34 
35 class VTKIMAGINGGENERAL_EXPORT vtkImageGradientMagnitude : public vtkThreadedImageAlgorithm
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
47  vtkSetMacro(HandleBoundaries, vtkTypeBool);
48  vtkGetMacro(HandleBoundaries, vtkTypeBool);
49  vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
51 
53 
56  vtkSetClampMacro(Dimensionality,int,2,3);
57  vtkGetMacro(Dimensionality,int);
59 
60 protected:
63 
66 
69  vtkInformationVector*) override;
72  vtkInformationVector*) override;
73 
74  void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
75  int extent[6], int id) override;
76 private:
78  void operator=(const vtkImageGradientMagnitude&) = delete;
79 };
80 
81 #endif
82 
83 
84 
vtkImageGradientMagnitude::Dimensionality
int Dimensionality
Definition: vtkImageGradientMagnitude.h:65
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition: vtkThreadedImageAlgorithm.h:37
vtkThreadedImageAlgorithm.h
vtkImageGradientMagnitude::~vtkImageGradientMagnitude
~vtkImageGradientMagnitude() override
Definition: vtkImageGradientMagnitude.h:62
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:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImageGradientMagnitude::HandleBoundaries
vtkTypeBool HandleBoundaries
Definition: vtkImageGradientMagnitude.h:64
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
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:35
vtkX3D::extent
Definition: vtkX3D.h:345
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69