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) VTK_OVERRIDE;
41 
43 
47  vtkSetMacro(HandleBoundaries, int);
48  vtkGetMacro(HandleBoundaries, int);
49  vtkBooleanMacro(HandleBoundaries, int);
51 
53 
56  vtkSetClampMacro(Dimensionality,int,2,3);
57  vtkGetMacro(Dimensionality,int);
59 
60 protected:
62  ~vtkImageGradientMagnitude()VTK_OVERRIDE {}
63 
66 
69  vtkInformationVector*) VTK_OVERRIDE;
70  int RequestUpdateExtent(vtkInformation*,
72  vtkInformationVector*) VTK_OVERRIDE;
73 
74  void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
75  int extent[6], int id) VTK_OVERRIDE;
76 private:
77  vtkImageGradientMagnitude(const vtkImageGradientMagnitude&) VTK_DELETE_FUNCTION;
78  void operator=(const vtkImageGradientMagnitude&) VTK_DELETE_FUNCTION;
79 };
80 
81 #endif
82 
83 
84 
Computes magnitude of the gradient.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.