|
template<class DstArrayT, class Src1ArrayT, class Src2ArrayT>
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) {
00106 q=true;
00107 if (doLabel) {
00108 labelcode++;
00109 vp.arith=labelcode;
00110 } else {
00111 vp.arith=vp.mask;
00112 }
00113 } else {
00114 vp.arith=0;
00115 q=false;
00116 }
00117 if (q) {
00118 vp.localOrderCounter=globalOrderCounter++;
00119
00120 }
00121 arith=vp.arith;
00122 return q;
00123 }
|