VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
33 #ifndef __vtkImageGradientMagnitude_h
34 #define __vtkImageGradientMagnitude_h
35 
36 
37 #include "vtkImagingGeneralModule.h" // For export macro
38 #include "vtkThreadedImageAlgorithm.h"
39 
40 class VTKIMAGINGGENERAL_EXPORT vtkImageGradientMagnitude : public vtkThreadedImageAlgorithm
41 {
42 public:
43  static vtkImageGradientMagnitude *New();
44  vtkTypeMacro(vtkImageGradientMagnitude,vtkThreadedImageAlgorithm);
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
50  vtkSetMacro(HandleBoundaries, int);
51  vtkGetMacro(HandleBoundaries, int);
52  vtkBooleanMacro(HandleBoundaries, int);
54 
56 
57  vtkSetClampMacro(Dimensionality,int,2,3);
58  vtkGetMacro(Dimensionality,int);
60 
61 protected:
64 
65  int HandleBoundaries;
67 
68  virtual int RequestInformation (vtkInformation*,
69  vtkInformationVector**,
70  vtkInformationVector*);
71  virtual int RequestUpdateExtent(vtkInformation*,
72  vtkInformationVector**,
73  vtkInformationVector*);
74 
75  void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
76  int extent[6], int id);
77 private:
78  vtkImageGradientMagnitude(const vtkImageGradientMagnitude&); // Not implemented.
79  void operator=(const vtkImageGradientMagnitude&); // Not implemented.
80 };
81 
82 #endif
83 
84 
85 
Computes magnitude of the gradient.