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>&nbsp; itkShapedFloodFilledFunctionConditionalConstIterator<br>&nbsp; itkShapedFloodFilledImageFunctionConditionalConstIterator<br>&nbsp; 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&nbsp; (2D), 6 (3D).<br><br>To keep things simple, I&#39;ve augmented the API of the <br>ConnectedThreshold region growing filter to support both<br>
&quot;FaceConnectivity&quot; and &quot;FullConnectivity&quot;. <br><br>The default is to use what is now called &quot;FaceConnectivity&quot; (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 &quot;FullConnectivity&quot;, 3^n-1 in nD.<br><br>I&#39;m looking for :<br><br>(a) Better nomenclature for the FaceConnectivity enum, not sure if that&#39;s <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the right term, in ND<br><br>(b) API suggestions: <br>
<br>&nbsp;&nbsp;&nbsp; The new iterator is general enough to be able to use templates<br>&nbsp;&nbsp;&nbsp; so as to obtain connectivity in between 6 and 28 connectedness.<br>&nbsp;&nbsp;&nbsp; So one might envision the API growing in the form of more enums<br>&nbsp;&nbsp;&nbsp; or replace that with passing in a neighborhood, which at the momemt<br>
&nbsp;&nbsp;&nbsp; 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&amp;D Engineer,<br>
Kitware Inc.<br>Ph: 518 371 3971 x119<br>Fax: 518 371 3971<br>