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

vlVolProcessorErode Class Reference

This is a class for performing erosions on vlVolumes. More...

#include <erode.h>

Inheritance diagram for vlVolProcessorErode:

vlVolProcessor vlPlugin List of all members.

Public Member Functions

 vlVolProcessorErode ()
 Default constructor.

virtual ~vlVolProcessorErode ()
 Default destructor.

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

bool run ()
 Run the vol processor.

template<> bool runT (uint8 &dummy)

Protected Member Functions

template<class DataType> bool runT (DataType &dummy)
template<class DataType> bool erode (DataType &dummy)
template<class DataType> bool erodeReal (vlVolume *tagVol, const DataType &tag, const std::vector< vlPoint3ui > &boundaryVoxels, const uint32 iterations, const uint16 neighborhood, const DataType newTag, std::vector< vlPoint3ui > &newBoundaryVoxels)

Detailed Description

More document will come soon.

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

Definition at line 41 of file erode.h.


Constructor & Destructor Documentation

vlVolProcessorErode::vlVolProcessorErode  ) 
 

Definition at line 43 of file erode.cpp.

References vlPlugin::infoRef(), vlPluginInfo::setName(), vlPluginInfo::setService(), and vlPluginInfo::setVersion().

vlVolProcessorErode::~vlVolProcessorErode  )  [virtual]
 

Definition at line 53 of file erode.cpp.


Member Function Documentation

template<class DataType>
bool vlVolProcessorErode::erode DataType &  dummy  )  [protected]
 

Definition at line 111 of file erode.cpp.

References vlVarListAdmin::add(), vlVarListAdmin::clear(), vlVolProcessor::configRef(), erodeReal(), vlVarList::get(), vlVolProcessor::resultsRef(), uint16, uint32, uint64, and vlVolProcessor::vol().

template<class DataType>
bool vlVolProcessorErode::erodeReal vlVolume tagVol,
const DataType &  tag,
const std::vector< vlPoint3ui > &  boundaryVoxels,
const uint32  iterations,
const uint16  neighborhood,
const DataType  newTag,
std::vector< vlPoint3ui > &  newBoundaryVoxels
[protected]
 

Todo:
Remove delta.. needs vlPoint3ui + vlOffset defined

Definition at line 158 of file erode.cpp.

References vlVolume::dim(), vlVoxelNeighbors::getN18Triples(), vlVoxelNeighbors::getN26Triples(), vlVoxelNeighbors::getN6Triples(), vlVolIterConst< DataType, Layout >::getRelative(), vlVolIterConst< DataType, Layout >::moveTo(), vlVolIter< DataType, Layout >::setRelative(), and uint32.

Referenced by erode().

void vlVolProcessorErode::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 58 of file erode.cpp.

References vlVarListAdmin::add(), vlVarListAdmin::clear(), vlVolProcessor::configRef(), uint16, uint32, uint64, VL_NOCHANGE, vlBitOperation, and vlVolProcessor::vol().

bool vlVolProcessorErode::run  )  [virtual]
 

Returns:
true if successful, false otherwise.

Implements vlVolProcessor.

Definition at line 90 of file erode.cpp.

References callFunctionOnDataTypeNoArgs, vlVolume::dim(), vlVolume::isValid(), runT(), and vlVolProcessor::vol().

template<>
bool vlVolProcessorErode::runT uint8 dummy  ) 
 

template<class DataType>
bool vlVolProcessorErode::runT DataType &  dummy  )  [protected]
 

Definition at line 84 of file erode.cpp.

Referenced by run().


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