Hello:<br><br>Having needed it, I just added functionality for fully connected <br>region growing into ITK, based largely on contributions from <br>Tim Heibel and Martin Groher at Tech Univ Munchen. (thanks).<br><br>New iterators have been added to the Review/ directory. <br>
<br>These are : <br> itkShapedFloodFilledFunctionConditionalConstIterator<br> itkShapedFloodFilledImageFunctionConditionalConstIterator<br> itkShapedFloodFilledImageFunctionConditionalIterator<br><br>These iterators are a superset of the flood fill iterators that <br>
currently exist in the toolkit, in the sense that they allow an <br>arbitrary connectivity, and not just 4 (2D), 6 (3D).<br><br>To keep things simple, I've augmented the API of the <br>ConnectedThreshold region growing filter to support both<br>
"FaceConnectivity" and "FullConnectivity". <br><br>The default is to use what is now called "FaceConnectivity" (2*n <br>connectedness in ND). This is how the filter used to function.<br><br>The added functionality now is that you may also set the Connectivity <br>
of the filter to use "FullConnectivity", 3^n-1 in nD.<br><br>I'm looking for :<br><br>(a) Better nomenclature for the FaceConnectivity enum, not sure if that's <br> the right term, in ND<br><br>(b) API suggestions: <br>
<br> The new iterator is general enough to be able to use templates<br> so as to obtain connectivity in between 6 and 28 connectedness.<br> So one might envision the API growing in the form of more enums<br> or replace that with passing in a neighborhood, which at the momemt<br>
IMHO is just a complication for the naive user.<br clear="all"><br><br>--------<br><br>The following classes tests were added :<br><br>Code/Review/itkShapedFloodFilledFunctionConditionalConstIterator.h initial revision: 1.1<br>
Code/Review/itkShapedFloodFilledFunctionConditionalConstIterator.txx initial revision: 1.1<br>Code/Review/itkShapedFloodFilledImageFunctionConditionalConstIterator.h initial revision: 1.1<br>Code/Review/itkShapedFloodFilledImageFunctionConditionalConstIterator.txx initial revision: 1.1<br>
Code/Review/itkShapedFloodFilledImageFunctionConditionalIterator.h initial revision: 1.1<br>Testing/Code/BasicFilters/CMakeLists.txt new revision: 1.382; previous revision: 1.381 Testing/Code/BasicFilters/itkConnectedThresholdImageFilterTest.cxx new revision: 1.14; previous revision: 1.13 Testing/Code/Review/CMakeLists.txt new revision: 1.161; previous revision: 1.160<br>
Testing/Code/Review/itkReviewTests.cxx new revision: 1.96; previous revision: 1.95<br>Testing/Data/Baseline/BasicFilters/ConnectedThresholdImageFilterTest2.png initial revision: 1.1<br>Testing/Data/Input/8ConnectedImage.bmp initial revision: 1.1<br>
Code/BasicFilters/itkConnectedThresholdImageFilter.h new revision: 1.19; previous revision: 1.18<br>
Code/BasicFilters/itkConnectedThresholdImageFilter.txx new revision: 1.28; previous revision: 1.27<br>
<br><br>Based on contrib found at : <a href="http://www.insight-journal.org/browse/publication/204">http://www.insight-journal.org/browse/publication/204</a><br><br><br>Thanks<br>-- <br>Karthik Krishnan<br>R&D Engineer,<br>
Kitware Inc.<br>Ph: 518 371 3971 x119<br>Fax: 518 371 3971<br>