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

# Imaging/vtkImageNonMaximumSuppression.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkImageNonMaximumSuppression.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 __vtkImageNonMaximumSuppression_h
    00045 #define __vtkImageNonMaximumSuppression_h
    00046
    00047 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_MAGNITUDE_INPUT 0
    00048 #define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_VECTOR_INPUT 1
    00049
    00050 #include "vtkImageTwoInputFilter.h"
    00051
    00052 class VTK_IMAGING_EXPORT vtkImageNonMaximumSuppression : public vtkImageTwoInputFilter
    00053 {
    00054 public:
    00055   static vtkImageNonMaximumSuppression *New();
    00056   vtkTypeRevisionMacro(vtkImageNonMaximumSuppression,vtkImageTwoInputFilter);
    00057   void PrintSelf(ostream& os, vtkIndent indent);
    00058
    00060
    00061   void SetMagnitudeInput(vtkImageData *input) {this->SetInput1(input);};
    00062   void SetVectorInput(vtkImageData *input) {this->SetInput2(input);};
    00064
    00066
    00068   vtkSetMacro(HandleBoundaries, int);
    00069   vtkGetMacro(HandleBoundaries, int);
    00070   vtkBooleanMacro(HandleBoundaries, int);
    00072
    00074
    00076   vtkSetClampMacro(Dimensionality,int,2,3);
    00077   vtkGetMacro(Dimensionality,int);
    00079
    00080 protected:
    00081   vtkImageNonMaximumSuppression();
    00082   ~vtkImageNonMaximumSuppression() {};
    00083
    00084   int HandleBoundaries;
    00085   int Dimensionality;
    00086
    00087   void ExecuteInformation(vtkImageData **inDatas, vtkImageData *outData);
    00088   virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6],
    00089                                         int whichInput);
    00090   void ExecuteInformation(){this->vtkImageTwoInputFilter::ExecuteInformation();};
    00091   void ThreadedExecute(vtkImageData **inDatas, vtkImageData *outData,
    00092                        int extent[6], int id);
    00093
    00094 private:
    00095   vtkImageNonMaximumSuppression(const vtkImageNonMaximumSuppression&);  // Not implemented.
    00096   void operator=(const vtkImageNonMaximumSuppression&);  // Not implemented.
    00097 };
    00098
    00099 #endif
    00100
    00101
    00102