dox/Imaging/vtkImageToImageStencil.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00032 #ifndef __vtkImageToImageStencil_h
00033 #define __vtkImageToImageStencil_h
00034
00035
00036 #include "vtkImageStencilSource.h"
00037
00038 class vtkImageData;
00039
00040 class VTK_IMAGING_EXPORT vtkImageToImageStencil : public vtkImageStencilSource
00041 {
00042 public:
00043 static vtkImageToImageStencil *New();
00044 vtkTypeRevisionMacro(vtkImageToImageStencil, vtkImageStencilSource);
00045 void PrintSelf(ostream& os, vtkIndent indent);
00046
00048
00049 void SetInput(vtkImageData *input);
00050 vtkImageData *GetInput();
00052
00054 void ThresholdByUpper(float thresh);
00055
00057 void ThresholdByLower(float thresh);
00058
00060 void ThresholdBetween(float lower, float upper);
00061
00063
00064 vtkSetMacro(UpperThreshold, float);
00065 vtkGetMacro(UpperThreshold, float);
00066 vtkSetMacro(LowerThreshold, float);
00067 vtkGetMacro(LowerThreshold, float);
00069
00070 protected:
00071 vtkImageToImageStencil();
00072 ~vtkImageToImageStencil();
00073
00074 void ThreadedExecute(vtkImageStencilData *output,
00075 int extent[6], int threadId);
00076
00077 float UpperThreshold;
00078 float LowerThreshold;
00079 float Threshold;
00080 private:
00081 vtkImageToImageStencil(const vtkImageToImageStencil&);
00082 void operator=(const vtkImageToImageStencil&);
00083 };
00084
00085 #endif