00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00054 #ifndef __vtkImageShrink3D_h
00055 #define __vtkImageShrink3D_h
00056
00057
00058 #include "vtkImageToImageFilter.h"
00059
00060 class VTK_EXPORT vtkImageShrink3D : public vtkImageToImageFilter
00061 {
00062 public:
00063 static vtkImageShrink3D *New();
00064 vtkTypeMacro(vtkImageShrink3D,vtkImageToImageFilter);
00065 void PrintSelf(ostream& os, vtkIndent indent);
00066
00068 vtkSetVector3Macro(ShrinkFactors,int);
00069 vtkGetVector3Macro(ShrinkFactors,int);
00070
00072 vtkSetVector3Macro(Shift,int);
00073 vtkGetVector3Macro(Shift,int);
00074
00080 void SetAveraging(int);
00081 int GetAveraging() {return this->GetMean();};
00082 vtkBooleanMacro(Averaging,int);
00083
00084 void SetMean(int);
00085 vtkGetMacro(Mean,int);
00086 vtkBooleanMacro(Mean,int);
00087
00088 void SetMinimum(int);
00089 vtkGetMacro(Minimum,int);
00090 vtkBooleanMacro(Minimum,int);
00091
00092 void SetMaximum(int);
00093 vtkGetMacro(Maximum,int);
00094 vtkBooleanMacro(Maximum,int);
00095
00096 void SetMedian(int);
00097 vtkGetMacro(Median,int);
00098 vtkBooleanMacro(Median,int);
00099
00100
00101 protected:
00102 vtkImageShrink3D();
00103 ~vtkImageShrink3D() {};
00104 vtkImageShrink3D(const vtkImageShrink3D&) {};
00105 void operator=(const vtkImageShrink3D&) {};
00106
00107 int ShrinkFactors[3];
00108 int Shift[3];
00109 int Mean;
00110 int Minimum;
00111 int Maximum;
00112 int Median;
00113
00114 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00115 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00116 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00117 void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
00118 int ext[6], int id);
00119 };
00120
00121 #endif
00122
00123
00124