Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Imaging/vtkImageShrink3D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageShrink3D.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00044 #ifndef __vtkImageShrink3D_h
00045 #define __vtkImageShrink3D_h
00046 
00047 
00048 #include "vtkImageToImageFilter.h"
00049 
00050 class VTK_IMAGING_EXPORT vtkImageShrink3D : public vtkImageToImageFilter
00051 {
00052 public:
00053   static vtkImageShrink3D *New();
00054   vtkTypeRevisionMacro(vtkImageShrink3D,vtkImageToImageFilter);
00055   void PrintSelf(ostream& os, vtkIndent indent);
00056   
00058 
00059   vtkSetVector3Macro(ShrinkFactors,int);
00060   vtkGetVector3Macro(ShrinkFactors,int);
00062 
00064 
00065   vtkSetVector3Macro(Shift,int);
00066   vtkGetVector3Macro(Shift,int);
00068 
00070 
00075   void SetAveraging(int);
00076   int GetAveraging() {return this->GetMean();};
00077   vtkBooleanMacro(Averaging,int);
00079   
00080   void SetMean(int);
00081   vtkGetMacro(Mean,int);
00082   vtkBooleanMacro(Mean,int);
00083   
00084   void SetMinimum(int);
00085   vtkGetMacro(Minimum,int);
00086   vtkBooleanMacro(Minimum,int);
00087   
00088   void SetMaximum(int);
00089   vtkGetMacro(Maximum,int);
00090   vtkBooleanMacro(Maximum,int);
00091   
00092   void SetMedian(int);
00093   vtkGetMacro(Median,int);
00094   vtkBooleanMacro(Median,int);
00095   
00096   
00097 protected:
00098   vtkImageShrink3D();
00099   ~vtkImageShrink3D() {};
00100 
00101   int ShrinkFactors[3];
00102   int Shift[3];
00103   int Mean;
00104   int Minimum;
00105   int Maximum;
00106   int Median;
00107 
00108   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00109   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00110   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00111   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, 
00112                        int ext[6], int id);  
00113 private:
00114   vtkImageShrink3D(const vtkImageShrink3D&);  // Not implemented.
00115   void operator=(const vtkImageShrink3D&);  // Not implemented.
00116 };
00117 
00118 #endif
00119 
00120 
00121