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
00058 #ifndef __vtkImageNonMaximumSuppression_h
00059 #define __vtkImageNonMaximumSuppression_h
00060
00061 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_MAGNITUDE_INPUT 0
00062 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_VECTOR_INPUT 1
00063
00064 #include "vtkImageTwoInputFilter.h"
00065
00066 class VTK_EXPORT vtkImageNonMaximumSuppression : public vtkImageTwoInputFilter
00067 {
00068 public:
00069 static vtkImageNonMaximumSuppression *New();
00070 vtkTypeMacro(vtkImageNonMaximumSuppression,vtkImageTwoInputFilter);
00071 void PrintSelf(ostream& os, vtkIndent indent);
00072
00074 void SetMagnitudeInput(vtkImageData *input) {this->SetInput1(input);};
00075 void SetVectorInput(vtkImageData *input) {this->SetInput2(input);};
00076
00079 vtkSetMacro(HandleBoundaries, int);
00080 vtkGetMacro(HandleBoundaries, int);
00081 vtkBooleanMacro(HandleBoundaries, int);
00082
00085 vtkSetClampMacro(Dimensionality,int,2,3);
00086 vtkGetMacro(Dimensionality,int);
00087
00088 protected:
00089 vtkImageNonMaximumSuppression();
00090 ~vtkImageNonMaximumSuppression() {};
00091 vtkImageNonMaximumSuppression(const vtkImageNonMaximumSuppression&) {};
00092 void operator=(const vtkImageNonMaximumSuppression&) {};
00093
00094 int HandleBoundaries;
00095 int Dimensionality;
00096
00097 void ExecuteInformation(vtkImageData **inDatas, vtkImageData *outData);
00098 virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6],
00099 int whichInput);
00100 void ExecuteInformation(){this->vtkImageTwoInputFilter::ExecuteInformation();};
00101 void ThreadedExecute(vtkImageData **inDatas, vtkImageData *outData,
00102 int extent[6], int id);
00103
00104 };
00105
00106 #endif
00107
00108
00109