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

vtkImageIslandRemoval2D Class Reference

Removes small clusters in masks. More...

#include <vtkImageIslandRemoval2D.h>

Inheritance diagram for vtkImageIslandRemoval2D:

Inheritance graph
[legend]
Collaboration diagram for vtkImageIslandRemoval2D:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetAreaThreshold (int)
virtual int GetAreaThreshold ()
virtual void SetSquareNeighborhood (int)
virtual int GetSquareNeighborhood ()
virtual void SquareNeighborhoodOn ()
virtual void SquareNeighborhoodOff ()
virtual void SetIslandValue (float)
virtual float GetIslandValue ()
virtual void SetReplaceValue (float)
virtual float GetReplaceValue ()

Static Public Methods

vtkImageIslandRemoval2D * New ()
int IsTypeOf (const char *type)
vtkImageIslandRemoval2D * SafeDownCast (vtkObject *o)

Protected Methods

 vtkImageIslandRemoval2D ()
 ~vtkImageIslandRemoval2D ()
 vtkImageIslandRemoval2D (const vtkImageIslandRemoval2D &)
void operator= (const vtkImageIslandRemoval2D &)
void Execute (vtkImageData *inData, vtkImageData *outData)
void Execute ()
void Execute (vtkImageData *output)
void EnlargeOutputUpdateExtents (vtkDataObject *data)

Protected Attributes

int AreaThreshold
int SquareNeighborhood
float IslandValue
float ReplaceValue

Detailed Description

Removes small clusters in masks.

Date:
2000/12/10 20:09:07
Revision:
1.29
Thanks:
Thanks to C. Charles Law who developed this class.
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.
Examples:
vtkImageIslandRemoval2D (examples)

Definition at line 71 of file vtkImageIslandRemoval2D.h.


Constructor & Destructor Documentation

vtkImageIslandRemoval2D::vtkImageIslandRemoval2D   [protected]
 

vtkImageIslandRemoval2D::~vtkImageIslandRemoval2D   [inline, protected]
 

Definition at line 98 of file vtkImageIslandRemoval2D.h.

vtkImageIslandRemoval2D::vtkImageIslandRemoval2D const vtkImageIslandRemoval2D &    [inline, protected]
 

Definition at line 99 of file vtkImageIslandRemoval2D.h.


Member Function Documentation

vtkImageIslandRemoval2D* vtkImageIslandRemoval2D::New   [static]
 

Constructor: Sets default filter to be identity.

Reimplemented from vtkImageToImageFilter.

virtual const char* vtkImageIslandRemoval2D::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

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 vtkTypeMacro 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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageToImageFilter.

vtkImageIslandRemoval2D* vtkImageIslandRemoval2D::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

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]
 

virtual void vtkImageIslandRemoval2D::SetSquareNeighborhood int    [virtual]
 

Set/Get whether to use 4 or 8 neighbors

virtual int vtkImageIslandRemoval2D::GetSquareNeighborhood   [virtual]
 

virtual void vtkImageIslandRemoval2D::SquareNeighborhoodOn   [virtual]
 

virtual void vtkImageIslandRemoval2D::SquareNeighborhoodOff   [virtual]
 

virtual void vtkImageIslandRemoval2D::SetIslandValue float    [virtual]
 

Set/Get the value to remove.

virtual float vtkImageIslandRemoval2D::GetIslandValue   [virtual]
 

virtual void vtkImageIslandRemoval2D::SetReplaceValue float    [virtual]
 

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

virtual float vtkImageIslandRemoval2D::GetReplaceValue   [virtual]
 

void vtkImageIslandRemoval2D::operator= const vtkImageIslandRemoval2D &    [inline, protected]
 

Definition at line 100 of file vtkImageIslandRemoval2D.h.

void vtkImageIslandRemoval2D::Execute vtkImageData   inData,
vtkImageData   outData
[protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

void vtkImageIslandRemoval2D::Execute   [inline, protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

Definition at line 108 of file vtkImageIslandRemoval2D.h.

void vtkImageIslandRemoval2D::Execute vtkImageData   output [inline, protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

Definition at line 109 of file vtkImageIslandRemoval2D.h.

void vtkImageIslandRemoval2D::EnlargeOutputUpdateExtents vtkDataObject   data [protected]
 

Generate more than requested. Called by the superclass before an execute, and before output memory is allocated.


Member Data Documentation

int vtkImageIslandRemoval2D::AreaThreshold [protected]
 

Definition at line 102 of file vtkImageIslandRemoval2D.h.

int vtkImageIslandRemoval2D::SquareNeighborhood [protected]
 

Definition at line 103 of file vtkImageIslandRemoval2D.h.

float vtkImageIslandRemoval2D::IslandValue [protected]
 

Definition at line 104 of file vtkImageIslandRemoval2D.h.

float vtkImageIslandRemoval2D::ReplaceValue [protected]
 

Definition at line 105 of file vtkImageIslandRemoval2D.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:48:40 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001