VTK
dox/Imaging/vtkImageMedian3D.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageMedian3D.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00028 #ifndef __vtkImageMedian3D_h
00029 #define __vtkImageMedian3D_h
00030 
00031 
00032 #include "vtkImageSpatialAlgorithm.h"
00033 
00034 class VTK_IMAGING_EXPORT vtkImageMedian3D : public vtkImageSpatialAlgorithm
00035 {
00036 public:
00037   static vtkImageMedian3D *New();
00038   vtkTypeMacro(vtkImageMedian3D,vtkImageSpatialAlgorithm);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040 
00043   void SetKernelSize(int size0, int size1, int size2);
00044 
00046 
00047   vtkGetMacro(NumberOfElements,int);
00049 
00050 protected:
00051   vtkImageMedian3D();
00052   ~vtkImageMedian3D();
00053 
00054   int NumberOfElements;
00055 
00056   void ThreadedRequestData(vtkInformation *request,
00057                            vtkInformationVector **inputVector,
00058                            vtkInformationVector *outputVector,
00059                            vtkImageData ***inData, vtkImageData **outData, 
00060                            int extent[6], int id);
00061 
00062 private:
00063   vtkImageMedian3D(const vtkImageMedian3D&);  // Not implemented.
00064   void operator=(const vtkImageMedian3D&);  // Not implemented.
00065 };
00066 
00067 #endif