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_IMAGING_EXPORT vtkImageNonMaximumSuppression : public vtkImageTwoInputFilter
00067 {
00068 public:
00069 static vtkImageNonMaximumSuppression *New();
00070 vtkTypeMacro(vtkImageNonMaximumSuppression,vtkImageTwoInputFilter);
00071 void PrintSelf(ostream& os, vtkIndent indent);
00072
00074
00075 void SetMagnitudeInput(vtkImageData *input) {this->SetInput1(input);};
00076 void SetVectorInput(vtkImageData *input) {this->SetInput2(input);};
00078
00080
00082 vtkSetMacro(HandleBoundaries, int);
00083 vtkGetMacro(HandleBoundaries, int);
00084 vtkBooleanMacro(HandleBoundaries, int);
00086
00088
00090 vtkSetClampMacro(Dimensionality,int,2,3);
00091 vtkGetMacro(Dimensionality,int);
00093
00094 protected:
00095 vtkImageNonMaximumSuppression();
00096 ~vtkImageNonMaximumSuppression() {};
00097
00098 int HandleBoundaries;
00099 int Dimensionality;
00100
00101 void ExecuteInformation(vtkImageData **inDatas, vtkImageData *outData);
00102 virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6],
00103 int whichInput);
00104 void ExecuteInformation(){this->vtkImageTwoInputFilter::ExecuteInformation();};
00105 void ThreadedExecute(vtkImageData **inDatas, vtkImageData *outData,
00106 int extent[6], int id);
00107
00108 private:
00109 vtkImageNonMaximumSuppression(const vtkImageNonMaximumSuppression&);
00110 void operator=(const vtkImageNonMaximumSuppression&);
00111 };
00112
00113 #endif
00114
00115
00116