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

vlRegionGrowOffsetFinder Class Reference

This processor will find voxels which a region grow would traverse. More...

#include <rgoffsets.h>

Inheritance diagram for vlRegionGrowOffsetFinder:

vlVolProcessor vlPlugin List of all members.

Public Member Functions

 vlRegionGrowOffsetFinder ()
 Default constructor.

virtual ~vlRegionGrowOffsetFinder ()
 Default destructor.

void init ()
 This function is called after execution of setVolume().

bool run ()
 Run the vol processor.


Protected Member Functions

bool regionGrowOffsets ()

Detailed Description

It returns a list of offsets relative to the start voxel. Each offset represents a voxel the region grow would have traversed. These offsets can be used to perform multiple region grows really fast.

Author:
Sarang Lakare <sarang@users.sf.net>

Definition at line 20 of file rgoffsets.h.


Constructor & Destructor Documentation

vlRegionGrowOffsetFinder::vlRegionGrowOffsetFinder  ) 
 

Definition at line 21 of file rgoffsets.cpp.

References vlVarListAdmin::add(), vlPluginInfo::addAuthor(), vlVolProcessor::configRef(), vlPlugin::infoRef(), vlPluginInfo::setCopyrightText(), vlPluginInfo::setName(), vlPluginInfo::setService(), vlPluginInfo::setVersion(), uint16, and uint64.

vlRegionGrowOffsetFinder::~vlRegionGrowOffsetFinder  )  [virtual]
 

Definition at line 42 of file rgoffsets.cpp.


Member Function Documentation

void vlRegionGrowOffsetFinder::init  )  [virtual]
 

If the volume argument is not valid, then init() is not called. Implement this function if you need to do any initialization before the user calls run. For e.g., this is the right place to add config parameters which are volume type dependent.

Reimplemented from vlVolProcessor.

Definition at line 48 of file rgoffsets.cpp.

bool vlRegionGrowOffsetFinder::regionGrowOffsets  )  [protected]
 

Definition at line 60 of file rgoffsets.cpp.

References vlVarListAdmin::add(), vlNeighborhood::add(), vlVarListAdmin::clear(), vlVolProcessor::configRef(), vlVolume::dim(), vlVarList::get(), vlVoxelNeighbors::getN18Triples(), vlVoxelNeighbors::getN26Triples(), vlVoxelNeighbors::getN6Triples(), vlVolIterConst< DataType, Layout >::getRelative(), vlVolIterConst< DataType, Layout >::moveTo(), vlVolIterConst< DataType, Layout >::pos(), vlVolProcessor::resultsRef(), vlVolIter< DataType, Layout >::set(), vlVolIter< DataType, Layout >::setRelative(), uint16, uint32, uint64, uint8, vlVolProcessor::vol(), vlTriple< uint16 >::x(), vlTriple< uint16 >::y(), and vlTriple< uint16 >::z().

Referenced by run().

bool vlRegionGrowOffsetFinder::run  )  [virtual]
 

Returns:
true if successful, false otherwise.

Implements vlVolProcessor.

Definition at line 54 of file rgoffsets.cpp.

References regionGrowOffsets().


The documentation for this class was generated from the following files:
Generated on Fri Mar 18 11:33:19 2005 for OpenVL by doxygen 1.3.3