vtkImageSobel2D.h 1.92 KB
Newer Older
1 2 3
/*=========================================================================

  Program:   Visualization Toolkit
4
  Module:    vtkImageSobel2D.h
5

6
  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 8
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Will Schroeder's avatar
Will Schroeder committed
9

10 11
     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
     PURPOSE.  See the above copyright notice for more information.
13 14

=========================================================================*/
15
// .NAME vtkImageSobel2D - Computes a vector field using sobel functions.
16
// .SECTION Description
17 18
// vtkImageSobel2D computes a vector field from a scalar field by using
// Sobel functions.  The number of vector components is 2 because
Ken Martin's avatar
Ken Martin committed
19
// the input is an image.  Output is always doubles.
20 21


22 23
#ifndef vtkImageSobel2D_h
#define vtkImageSobel2D_h
24 25


26
#include "vtkImagingGeneralModule.h" // For export macro
27
#include "vtkImageSpatialAlgorithm.h"
28

29
class VTKIMAGINGGENERAL_EXPORT vtkImageSobel2D : public vtkImageSpatialAlgorithm
30 31
{
public:
32
  static vtkImageSobel2D *New();
33
  vtkTypeMacro(vtkImageSobel2D,vtkImageSpatialAlgorithm);
34
  void PrintSelf(ostream& os, vtkIndent indent);
35

36
protected:
37
  vtkImageSobel2D();
38
  ~vtkImageSobel2D() {}
39

40 41 42 43 44
  void ThreadedRequestData(vtkInformation *request,
                           vtkInformationVector **inputVector,
                           vtkInformationVector *outputVector,
                           vtkImageData ***inData, vtkImageData **outData,
                           int outExt[6], int id);
45 46 47
  virtual int RequestInformation (vtkInformation *request,
                                  vtkInformationVector **inputVector,
                                  vtkInformationVector *outputVector);
48

49 50 51
private:
  vtkImageSobel2D(const vtkImageSobel2D&);  // Not implemented.
  void operator=(const vtkImageSobel2D&);  // Not implemented.
52 53 54 55 56 57
};

#endif