<div class="gmail_quote">On Wed, Aug 5, 2009 at 2:34 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bitk@gmail.com">daviddoria+itk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Looking at ConnectedThresholdImageFilter.txx, it seems like maybe I have to define my own *Function class, so<br>
<br>  typedef BinaryThresholdImageFunction&lt;InputImageType, double&gt; FunctionType;<br>could be changed to something like:<br>  typedef RegionBoundaryDifferenceFunction&lt;InputImageType, double&gt; FunctionType;<br><br>
The details of RegionBoundaryDifferenceFunction would just be finding the boundary points in the existing region that are neighbors of the query pixel and seeing if they all meet a criteria. Is this close to where I should be headed? </blockquote>
<div><br>That&#39;s absolutely right. You&#39;ll need to write your own ImageFunction class..<br></div></div><br>