1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkImageDivergence.h,v $
6 Date: $Date: 2002/01/22 15:32:21 $
7 Version: $Revision: 1.29 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkImageDivergence - Divergence of a vector field.
19 // .SECTION Description
20 // vtkImageDivergence takes a 3D vector field
21 // and creates a scalar field which
22 // which represents the rate of change of the vector field.
23 // The definition of Divergence:
24 // Given V = P(x,y,z), Q(x,y,z), R(x,y,z),
25 // Divergence = dP/dx + dQ/dy + dR/dz.
27 #ifndef __vtkImageDivergence_h
28 #define __vtkImageDivergence_h
30 #include "vtkImageToImageFilter.h"
32 class VTK_IMAGING_EXPORT vtkImageDivergence : public vtkImageToImageFilter
35 static vtkImageDivergence *New();
36 vtkTypeRevisionMacro(vtkImageDivergence,vtkImageToImageFilter);
39 vtkImageDivergence() {};
40 ~vtkImageDivergence() {};
42 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
43 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
44 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();}
45 void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
49 vtkImageDivergence(const vtkImageDivergence&); // Not implemented.
50 void operator=(const vtkImageDivergence&); // Not implemented.