Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageIslandRemoval2D Class Reference

#include <vtkImageIslandRemoval2D.h>

Inheritance diagram for vtkImageIslandRemoval2D:

Inheritance graph
[legend]
Collaboration diagram for vtkImageIslandRemoval2D:

Collaboration graph
[legend]
List of all members.

Detailed Description

Removes small clusters in masks.

vtkImageIslandRemoval2D computes the area of separate islands in a mask image. It removes any island that has less than AreaThreshold pixels. Output has the same ScalarType as input. It generates the whole 2D output image for any output request.

Created by:
  • Law, Charles
CVS contributions (if > 5%):
  • Law, Charles (56%)
  • Martin, Ken (37%)
CVS logs (CVSweb):
  • .h (/Imaging/vtkImageIslandRemoval2D.h)
  • .cxx (/Imaging/vtkImageIslandRemoval2D.cxx)
Tests:
vtkImageIslandRemoval2D (Tests)

Definition at line 53 of file vtkImageIslandRemoval2D.h.

[NOHEADER]

typedef vtkImageToImageFilter Superclass
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
vtkImageIslandRemoval2DNew ()
int IsTypeOf (const char *type)
vtkImageIslandRemoval2DSafeDownCast (vtkObject *o)

Public Member Functions

virtual void SetAreaThreshold (int)
virtual int GetAreaThreshold ()
virtual void SetSquareNeighborhood (int)
virtual int GetSquareNeighborhood ()
virtual void SquareNeighborhoodOn ()
virtual void SquareNeighborhoodOff ()
virtual void SetIslandValue (double)
virtual double GetIslandValue ()
virtual void SetReplaceValue (double)
virtual double GetReplaceValue ()

Protected Member Functions

 vtkImageIslandRemoval2D ()
 ~vtkImageIslandRemoval2D ()
void ExecuteData (vtkDataObject *output)

Protected Attributes

int AreaThreshold
int SquareNeighborhood
double IslandValue
double ReplaceValue


Member Typedef Documentation

typedef vtkImageToImageFilter vtkImageIslandRemoval2D::Superclass
 

Reimplemented from vtkImageToImageFilter.

Definition at line 59 of file vtkImageIslandRemoval2D.h.


Constructor & Destructor Documentation

vtkImageIslandRemoval2D::vtkImageIslandRemoval2D  )  [protected]
 

vtkImageIslandRemoval2D::~vtkImageIslandRemoval2D  )  [inline, protected]
 

Definition at line 90 of file vtkImageIslandRemoval2D.h.


Member Function Documentation

vtkImageIslandRemoval2D* vtkImageIslandRemoval2D::New  )  [static]
 

Constructor: Sets default filter to be identity.

Reimplemented from vtkAlgorithm.

virtual const char* vtkImageIslandRemoval2D::GetClassName  )  [virtual]
 

Reimplemented from vtkImageToImageFilter.

int vtkImageIslandRemoval2D::IsTypeOf const char *  type  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkImageToImageFilter.

virtual int vtkImageIslandRemoval2D::IsA const char *  type  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkImageToImageFilter.

vtkImageIslandRemoval2D* vtkImageIslandRemoval2D::SafeDownCast vtkObject o  )  [static]
 

Reimplemented from vtkImageToImageFilter.

void vtkImageIslandRemoval2D::PrintSelf ostream &  os,
vtkIndent  indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkImageToImageFilter.

virtual void vtkImageIslandRemoval2D::SetAreaThreshold int   )  [virtual]
 

Set/Get the cutoff area for removal

virtual int vtkImageIslandRemoval2D::GetAreaThreshold  )  [virtual]
 

Set/Get the cutoff area for removal

virtual void vtkImageIslandRemoval2D::SetSquareNeighborhood int   )  [virtual]
 

Set/Get whether to use 4 or 8 neighbors

virtual int vtkImageIslandRemoval2D::GetSquareNeighborhood  )  [virtual]
 

Set/Get whether to use 4 or 8 neighbors

virtual void vtkImageIslandRemoval2D::SquareNeighborhoodOn  )  [virtual]
 

Set/Get whether to use 4 or 8 neighbors

virtual void vtkImageIslandRemoval2D::SquareNeighborhoodOff  )  [virtual]
 

Set/Get whether to use 4 or 8 neighbors

virtual void vtkImageIslandRemoval2D::SetIslandValue double   )  [virtual]
 

Set/Get the value to remove.

virtual double vtkImageIslandRemoval2D::GetIslandValue  )  [virtual]
 

Set/Get the value to remove.

virtual void vtkImageIslandRemoval2D::SetReplaceValue double   )  [virtual]
 

Set/Get the value to put in the place of removed pixels.

virtual double vtkImageIslandRemoval2D::GetReplaceValue  )  [virtual]
 

Set/Get the value to put in the place of removed pixels.

void vtkImageIslandRemoval2D::ExecuteData vtkDataObject output  )  [protected, virtual]
 

This method is the one that should be used by subclasses, right now the default implementation is to call the backwards compatibility method

Reimplemented from vtkImageToImageFilter.


Member Data Documentation

int vtkImageIslandRemoval2D::AreaThreshold [protected]
 

Definition at line 92 of file vtkImageIslandRemoval2D.h.

int vtkImageIslandRemoval2D::SquareNeighborhood [protected]
 

Definition at line 93 of file vtkImageIslandRemoval2D.h.

double vtkImageIslandRemoval2D::IslandValue [protected]
 

Definition at line 94 of file vtkImageIslandRemoval2D.h.

double vtkImageIslandRemoval2D::ReplaceValue [protected]
 

Definition at line 95 of file vtkImageIslandRemoval2D.h.


The documentation for this class was generated from the following file: