<div class="gmail_quote">On Wed, Aug 5, 2009 at 2:34 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bitk@gmail.com">daviddoria+itk@gmail.com</a>></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<InputImageType, double> FunctionType;<br>could be changed to something like:<br> typedef RegionBoundaryDifferenceFunction<InputImageType, double> 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's absolutely right. You'll need to write your own ImageFunction class..<br></div></div><br>