Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class DstArrayT, class SrcArrayT>
void Impala::Core::Array::WatershedMarkers2 ( DstArrayT *&  dst,
SrcArrayT *  src,
SrcArrayT *  mask,
int  conn,
bool  doLabelMask,
int  costMethod 
) [inline]

Watershed from markers, second implementation.

im is the input image mask is the marker image conn is the connectivity (4 or 8) doLabelMask indicates whether the marker images needs to be labeled beforehand costMethod indicates the cost function to be used in comparing to pixels: costMethod = 0: => w=neighbor.img costMethod = 1: => w=(center.img-neighbor.img)

R. Lotufo and A. Falcao. "The ordered queue and the optimality of the watershed approaches." In Mathematical Morphology and its Application to Image and Signal Processing, pages 341-350, Dordrecht, The Netherlands, 2000.

Definition at line 33 of file WatershedMarkers2.h.

References Impala::Core::Array::Pattern::PatQueueBased().

Referenced by Impala::Application::Im::DoWatershedMarkers2Vec3UInt8().

00035 {
00036     Trait::QbWatershedMarkers2<DstArrayT, SrcArrayT, SrcArrayT>
00037         qb(src->CW(), src->CH(), doLabelMask, costMethod);
00038     Pattern::PatQueueBased(dst, src, mask, qb, conn);
00039 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:58:50 2010 for ImpalaSrc by  doxygen 1.5.1