VTK
|
Median filter that preserves lines and corners. More...
#include <vtkImageHybridMedian2D.h>
Public Types | |
typedef vtkImageSpatialAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkImageHybridMedian2D * | NewInstance () const |
Static Public Member Functions | |
static vtkImageHybridMedian2D * | New () |
static int | IsTypeOf (const char *type) |
static vtkImageHybridMedian2D * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkImageHybridMedian2D () | |
~vtkImageHybridMedian2D () | |
void | ThreadedRequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int id) |
Median filter that preserves lines and corners.
vtkImageHybridMedian2D is a median filter that preserves thin lines and corners. It operates on a 5x5 pixel neighborhood. It computes two values initially: the median of the + neighbors and the median of the x neighbors. It then computes the median of these two values plus the center pixel. This result of this second median is the output pixel value.
Definition at line 36 of file vtkImageHybridMedian2D.h.
Reimplemented from vtkImageSpatialAlgorithm.
Definition at line 40 of file vtkImageHybridMedian2D.h.
vtkImageHybridMedian2D::vtkImageHybridMedian2D | ( | ) | [protected] |
vtkImageHybridMedian2D::~vtkImageHybridMedian2D | ( | ) | [inline, protected] |
Definition at line 44 of file vtkImageHybridMedian2D.h.
static vtkImageHybridMedian2D* vtkImageHybridMedian2D::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkImageSpatialAlgorithm.
static int vtkImageHybridMedian2D::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageSpatialAlgorithm.
virtual int vtkImageHybridMedian2D::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageSpatialAlgorithm.
static vtkImageHybridMedian2D* vtkImageHybridMedian2D::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkImageSpatialAlgorithm.
virtual vtkObjectBase* vtkImageHybridMedian2D::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkImageSpatialAlgorithm.
Reimplemented from vtkImageSpatialAlgorithm.
void vtkImageHybridMedian2D::ThreadedRequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector, | ||
vtkImageData *** | inData, | ||
vtkImageData ** | outData, | ||
int | extent[6], | ||
int | threadId | ||
) | [protected, virtual] |
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method. It is public so that the thread functions can call this method.
Reimplemented from vtkThreadedImageAlgorithm.