VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
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 Types

typedef vtkImageIterateFilter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkImageSkeleton2DNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void SetNumberOfIterations (int num)
virtual void SetPrune (int)
virtual int GetPrune ()
virtual void PruneOn ()
virtual void PruneOff ()

Static Public Member Functions

static vtkImageSkeleton2DNew ()
static int IsTypeOf (const char *type)
static vtkImageSkeleton2DSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkImageSkeleton2D ()
 ~vtkImageSkeleton2D ()
virtual int IterativeRequestUpdateExtent (vtkInformation *in, vtkInformation *out)
void ThreadedRequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inDataV, vtkImageData **outDataV, int outExt[6], int id)

Protected Attributes

int Prune

Detailed Description

Skeleton of 2D images.

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.

Tests:
vtkImageSkeleton2D (Tests)

Definition at line 38 of file vtkImageSkeleton2D.h.


Member Typedef Documentation

Reimplemented from vtkImageIterateFilter.

Definition at line 42 of file vtkImageSkeleton2D.h.


Constructor & Destructor Documentation

vtkImageSkeleton2D::~vtkImageSkeleton2D ( ) [inline, protected]

Definition at line 57 of file vtkImageSkeleton2D.h.


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkAlgorithm.

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

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

Reimplemented from vtkImageIterateFilter.

virtual vtkObjectBase* vtkImageSkeleton2D::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkImageIterateFilter.

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]

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

virtual void vtkImageSkeleton2D::PruneOn ( ) [virtual]

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

virtual void vtkImageSkeleton2D::PruneOff ( ) [virtual]

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

Sets the number of cycles in the erosion.

Reimplemented from vtkImageIterateFilter.

virtual int vtkImageSkeleton2D::IterativeRequestUpdateExtent ( vtkInformation in,
vtkInformation out 
) [protected, virtual]

Reimplemented from vtkImageIterateFilter.

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


Member Data Documentation

Definition at line 59 of file vtkImageSkeleton2D.h.


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