00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImageVariance3D.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 =========================================================================*/ 00040 #ifndef __vtkImageVariance3D_h 00041 #define __vtkImageVariance3D_h 00042 00043 00044 #include "vtkImageSpatialFilter.h" 00045 00046 class vtkImageEllipsoidSource; 00047 00048 class VTK_IMAGING_EXPORT vtkImageVariance3D : public vtkImageSpatialFilter 00049 { 00050 public: 00051 static vtkImageVariance3D *New(); 00052 vtkTypeRevisionMacro(vtkImageVariance3D,vtkImageSpatialFilter); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00058 void SetKernelSize(int size0, int size1, int size2); 00059 00060 protected: 00061 vtkImageVariance3D(); 00062 ~vtkImageVariance3D(); 00063 00064 vtkImageEllipsoidSource *Ellipse; 00065 00066 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData); 00067 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();}; 00068 void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, 00069 int extent[6], int id); 00070 private: 00071 vtkImageVariance3D(const vtkImageVariance3D&); // Not implemented. 00072 void operator=(const vtkImageVariance3D&); // Not implemented. 00073 }; 00074 00075 #endif 00076 00077 00078