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

template<class DstArrayT, class Src1ArrayT, class Src2ArrayT>
void Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::Calculate ( VecNeighborsT vecneighbors  )  [inline]

Definition at line 132 of file QbWatershedMarkers.h.

References Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::actionsout, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::structPointValue::arith, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::center, 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 >::index, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::structPointValue::localOrderCounter, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::structPointValue::mask, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::neighboursout, Impala::Core::Array::Trait::QbWatershedMarkers< DstArrayT, Src1ArrayT, Src2ArrayT >::structPointValue::point, Impala::Core::Array::Pattern::QUEUE, Impala::Core::Array::Pattern::FcvArray< T >::size(), and Impala::Core::Array::Pattern::WRITE.

00133     {
00134         index=0; // for result()
00135         neighboursout.clear();
00136         actionsout.clear();
00137         for (int i=0; i<vecneighbors.size(); i++) {
00138             NeighborsT neighbor=vecneighbors[i];
00139             PointValueT val;
00140             val.point=neighbor.point;
00141             val.arith=neighbor.arith;
00142             val.img=neighbor.img;
00143             val.mask=neighbor.mask;
00144             if (val.arith==0) { // non-labeled neighbor
00145                 // new one, do remove and write in 'arith' and queue line 10 line 11
00146                 val.arith=center.arith; // line 9
00147                 val.localOrderCounter=globalOrderCounter++; // for equal values
00148                                                             // be a FIFO=QUEUE
00149                 neighboursout.push_back(val);
00150                 actionsout.push_back(Pattern::WRITE);
00151                 neighboursout.push_back(val);
00152                 actionsout.push_back(Pattern::QUEUE);
00153             }
00154         }
00155     }

Here is the call graph for this function:


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