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

vlVolProcessorRegionGrow Class Reference

This is a class for performing region growing on vlVolumes. More...

#include <regiongrow.h>

Inheritance diagram for vlVolProcessorRegionGrow:

vlVolProcessor vlPlugin List of all members.

Public Member Functions

 vlVolProcessorRegionGrow ()
 Default constructor.

virtual ~vlVolProcessorRegionGrow ()
 Default destructor.

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

bool run ()
 Run the vol processor.

template<> bool runT (uint8 &dummy)
template<> bool runT (vlColorRGBub &dummy)
template<> bool runT (vlColorRGBAub &dummy)

Protected Member Functions

template<class DataType> bool runT (DataType &dummy)
template<class DataType> bool regionGrow (DataType &dummy)
template<class DataType> bool regionGrowReal (vlVolIter< DataType > *iter, vlVolIter< uint8 > *maskIter, const DataType &threshLow, const DataType &threshHigh, std::vector< vlPoint3ui > &boundaryVoxels, const uint8 mask, uint64 &voxelCount, const uint64 &maxVoxelCount, const vlStep &step, const uint16 neighborhood)

Protected Attributes

vlVolumem_maskVol
 Mask volume.


Detailed Description

More document will come soon.

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

Definition at line 41 of file regiongrow.h.


Constructor & Destructor Documentation

vlVolProcessorRegionGrow::vlVolProcessorRegionGrow  ) 
 

Definition at line 44 of file regiongrow.cpp.

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

vlVolProcessorRegionGrow::~vlVolProcessorRegionGrow  )  [virtual]
 

Definition at line 54 of file regiongrow.cpp.


Member Function Documentation

void vlVolProcessorRegionGrow::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 59 of file regiongrow.cpp.

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

template<class DataType>
bool vlVolProcessorRegionGrow::regionGrow DataType &  dummy  )  [protected]
 

Definition at line 148 of file regiongrow.cpp.

References vlVarListAdmin::add(), vlVarListAdmin::clear(), vlVolProcessor::configRef(), vlVarList::get(), m_maskVol, vlVolIterConst< DataType, Layout >::moveTo(), regionGrowReal(), vlVolProcessor::resultsRef(), uint16, uint32, uint64, uint8, VL_OR, vlBitOperation, and vlVolProcessor::vol().

template<class DataType>
bool vlVolProcessorRegionGrow::regionGrowReal vlVolIter< DataType > *  iter,
vlVolIter< uint8 > *  maskIter,
const DataType &  threshLow,
const DataType &  threshHigh,
std::vector< vlPoint3ui > &  boundaryVoxels,
const uint8  mask,
uint64 voxelCount,
const uint64 maxVoxelCount,
const vlStep step,
const uint16  neighborhood
[protected]
 

Definition at line 222 of file regiongrow.cpp.

References vlVolIterConst< DataType, Layout >::get(), vlVoxelNeighbors::getN18Triples(), vlVoxelNeighbors::getN26Triples(), vlVoxelNeighbors::getN6Triples(), vlVolIterConst< DataType, Layout >::getRelative(), int32, vlVolIterConst< DataType, Layout >::moveTo(), vlVolIterConst< DataType, Layout >::pos(), vlVolIter< DataType, Layout >::set(), vlVolIter< DataType, Layout >::setRelative(), threshold, and uint8.

Referenced by regionGrow().

bool vlVolProcessorRegionGrow::run  )  [virtual]
 

Returns:
true if successful, false otherwise.

Implements vlVolProcessor.

Definition at line 102 of file regiongrow.cpp.

References callFunctionOnDataTypeNoArgs, vlVolProcessor::configRef(), vlVolume::dataType(), vlVolume::dim(), vlVarList::get(), vlVarList::isDefined(), vlVolume::isValid(), vlVarList::isValid(), m_maskVol, runT(), UnsignedInt8, and vlVolProcessor::vol().

template<>
bool vlVolProcessorRegionGrow::runT vlColorRGBAub dummy  ) 
 

template<>
bool vlVolProcessorRegionGrow::runT vlColorRGBub dummy  ) 
 

template<>
bool vlVolProcessorRegionGrow::runT uint8 dummy  ) 
 

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

Definition at line 140 of file regiongrow.cpp.

Referenced by run().


Member Data Documentation

vlVolume* vlVolProcessorRegionGrow::m_maskVol [protected]
 

Definition at line 71 of file regiongrow.h.

Referenced by regionGrow(), and 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