VTK  9.3.20240424
vtkImageGradientMagnitude.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
51#ifndef vtkImageGradientMagnitude_h
52#define vtkImageGradientMagnitude_h
53
54#include "vtkImagingGeneralModule.h" // For export macro
56
57VTK_ABI_NAMESPACE_BEGIN
58class VTKIMAGINGGENERAL_EXPORT vtkImageGradientMagnitude : public vtkThreadedImageAlgorithm
59{
60public:
63 void PrintSelf(ostream& os, vtkIndent indent) override;
64
66
70 vtkSetMacro(HandleBoundaries, vtkTypeBool);
71 vtkGetMacro(HandleBoundaries, vtkTypeBool);
72 vtkBooleanMacro(HandleBoundaries, vtkTypeBool);
74
76
79 vtkSetClampMacro(Dimensionality, int, 2, 3);
80 vtkGetMacro(Dimensionality, int);
82
83protected:
85 ~vtkImageGradientMagnitude() override = default;
86
89
92
93 void ThreadedExecute(vtkImageData* inData, vtkImageData* outData, int outExt[6], int id) override;
94
95private:
97 void operator=(const vtkImageGradientMagnitude&) = delete;
98};
99
100VTK_ABI_NAMESPACE_END
101#endif
topologically and geometrically regular array of data
Computes magnitude of the gradient.
~vtkImageGradientMagnitude() override=default
static vtkImageGradientMagnitude * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int outExt[6], int id) override
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
int vtkTypeBool
Definition vtkABI.h:64