Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageMedian3D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageMedian3D.h,v $
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 =========================================================================*/
00041 #ifndef __vtkImageMedian3D_h
00042 #define __vtkImageMedian3D_h
00043 
00044 
00045 #include "vtkImageSpatialFilter.h"
00046 
00047 class VTK_IMAGING_EXPORT vtkImageMedian3D : public vtkImageSpatialFilter
00048 {
00049 public:
00050   static vtkImageMedian3D *New();
00051   vtkTypeRevisionMacro(vtkImageMedian3D,vtkImageSpatialFilter);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00056   void SetKernelSize(int size0, int size1, int size2);
00057 
00059 
00060   vtkGetMacro(NumberOfElements,int);
00062 
00064 
00067   vtkGetStringMacro(InputScalarsSelection);
00068   void SelectInputScalars(const char *fieldName) 
00069     {this->SetInputScalarsSelection(fieldName);}  
00071 
00072 protected:
00073   vtkImageMedian3D();
00074   ~vtkImageMedian3D();
00075 
00076   int NumberOfElements;
00077 
00078   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, 
00079                        int extent[6], int id);
00080 
00081   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00082   // Called by the superclass
00083   void ExecuteInformation() { this->Superclass::ExecuteInformation(); }
00084 
00085   void ExecuteData(vtkDataObject *out);
00086 
00087 private:
00088   vtkImageMedian3D(const vtkImageMedian3D&);  // Not implemented.
00089   void operator=(const vtkImageMedian3D&);  // Not implemented.
00090 };
00091 
00092 #endif
00093 
00094 
00095