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

template<class DstArrayT, class Src1ArrayT, class Src2ArrayT>
bool Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::GlobalPixelInit ( PointValueT vp,
DstArithT arith,
Src1ArithT  img,
Src2ArithT  mask 
) [inline]

Definition at line 99 of file QbWatershedMarkers.h.

References Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::structPointValue::arith, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::doLabel, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::globalOrderCounter, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::structPointValue::img, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::labelcode, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::structPointValue::localOrderCounter, and Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::structPointValue::mask.

00100     { 
00101         vp.arith=arith;
00102         vp.img=img;
00103         vp.mask=mask;
00104         bool q;
00105         if (vp.mask!=0) { // = marker node
00106             q=true; // do queue
00107             if (doLabel) {
00108                 labelcode++; // new labelcode
00109                 vp.arith=labelcode; // output = labelcode
00110             } else {
00111                 vp.arith=vp.mask; 
00112             }
00113         } else { // line 2
00114             vp.arith=0;
00115             q=false;
00116         }
00117         if (q) { 
00118             vp.localOrderCounter=globalOrderCounter++; // for equal values be
00119                                                        // a FIFO=QUEUE
00120         }
00121         arith=vp.arith;
00122         return q;
00123     }


Generated on Fri Mar 19 11:04:54 2010 for ImpalaSrc by  doxygen 1.5.1