1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkImageSobel3D.h,v $
6 Date: $Date: 2002/01/22 15:33:31 $
7 Version: $Revision: 1.28 $
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 vtkImageSobel3D - Computes a vector field using sobel functions.
19 // .SECTION Description
20 // vtkImageSobel3D computes a vector field from a scalar field by using
21 // Sobel functions. The number of vector components is 3 because
22 // the input is a volume. Output is always floats. A little creative
23 // liberty was used to extend the 2D sobel kernels into 3D.
28 #ifndef __vtkImageSobel3D_h
29 #define __vtkImageSobel3D_h
32 #include "vtkImageSpatialFilter.h"
34 class VTK_IMAGING_EXPORT vtkImageSobel3D : public vtkImageSpatialFilter
37 static vtkImageSobel3D *New();
38 vtkTypeRevisionMacro(vtkImageSobel3D,vtkImageSpatialFilter);
39 void PrintSelf(ostream& os, vtkIndent indent);
43 ~vtkImageSobel3D() {};
45 void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
46 int outExt[6], int id);
47 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
48 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
50 vtkImageSobel3D(const vtkImageSobel3D&); // Not implemented.
51 void operator=(const vtkImageSobel3D&); // Not implemented.