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

vtkImageSkeleton2D Class Reference

Skeleton of 2D images. More...

#include <vtkImageSkeleton2D.h>

Inheritance diagram for vtkImageSkeleton2D:

Inheritance graph
[legend]
Collaboration diagram for vtkImageSkeleton2D:

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 SetPrune (int)
virtual int GetPrune ()
virtual void PruneOn ()
virtual void PruneOff ()
void SetNumberOfIterations (int num)

Static Public Methods

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

Protected Methods

 vtkImageSkeleton2D ()
 ~vtkImageSkeleton2D ()
 vtkImageSkeleton2D (const vtkImageSkeleton2D &)
void operator= (const vtkImageSkeleton2D &)
void ComputeInputUpdateExtent (int inExt[6], int outExt[6])
void ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int outExt[6], int id)

Protected Attributes

int Prune

Detailed Description

Skeleton of 2D images.

Date:
2000/12/10 20:09:10
Revision:
1.19
Thanks:
Thanks to C. Charles Law who developed this class.
vtkImageSkeleton2D should leave only single pixel width lines of non-zero-valued pixels (values of 1 are not allowed). It works by erosion on a 3x3 neighborhood with special rules. The number of iterations determines how far the filter can erode. There are three pruning levels: prune == 0 will leave traces on all angles... prune == 1 will not leave traces on 135 degree angles, but will on 90. prune == 2 does not leave traces on any angles leaving only closed loops. Prune defaults to zero. The output scalar type is the same as the input.
Examples:
vtkImageSkeleton2D (examples)

Definition at line 66 of file vtkImageSkeleton2D.h.


Constructor & Destructor Documentation

vtkImageSkeleton2D::vtkImageSkeleton2D   [protected]
 

vtkImageSkeleton2D::~vtkImageSkeleton2D   [inline, protected]
 

Definition at line 83 of file vtkImageSkeleton2D.h.

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

Definition at line 84 of file vtkImageSkeleton2D.h.


Member Function Documentation

vtkImageSkeleton2D* vtkImageSkeleton2D::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkImageIterateFilter.

virtual const char* vtkImageSkeleton2D::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 vtkImageIterateFilter.

int vtkImageSkeleton2D::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 vtkImageIterateFilter.

virtual int vtkImageSkeleton2D::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 vtkImageIterateFilter.

vtkImageSkeleton2D* vtkImageSkeleton2D::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 vtkImageIterateFilter.

void vtkImageSkeleton2D::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 vtkImageIterateFilter.

virtual void vtkImageSkeleton2D::SetPrune int    [virtual]
 

When prune is on, only closed loops are left unchanged.

virtual int vtkImageSkeleton2D::GetPrune   [virtual]
 

virtual void vtkImageSkeleton2D::PruneOn   [virtual]
 

virtual void vtkImageSkeleton2D::PruneOff   [virtual]
 

void vtkImageSkeleton2D::SetNumberOfIterations int    num [virtual]
 

Sets the number of cycles in the erosion.

Reimplemented from vtkImageIterateFilter.

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

Definition at line 85 of file vtkImageSkeleton2D.h.

void vtkImageSkeleton2D::ComputeInputUpdateExtent int    inExt[6],
int    outExt[6]
[protected, virtual]
 

Reimplemented from vtkImageIterateFilter.

void vtkImageSkeleton2D::ThreadedExecute vtkImageData   inData,
vtkImageData   outData,
int    outExt[6],
int    id
[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 vtkImageToImageFilter.


Member Data Documentation

int vtkImageSkeleton2D::Prune [protected]
 

Definition at line 87 of file vtkImageSkeleton2D.h.


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