[Insight-users] Region growing criteria based only on region boundary?

Karthik Krishnan karthik.krishnan at kitware.com
Thu Aug 6 02:14:45 EDT 2009


On Wed, Aug 5, 2009 at 2:34 PM, David Doria
<daviddoria+itk at gmail.com<daviddoria%2Bitk at gmail.com>
> wrote:

>
> Looking at ConnectedThresholdImageFilter.txx, it seems like maybe I have to
> define my own *Function class, so
>
>   typedef BinaryThresholdImageFunction<InputImageType, double>
> FunctionType;
> could be changed to something like:
>   typedef RegionBoundaryDifferenceFunction<InputImageType, double>
> FunctionType;
>
> 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?


That's absolutely right. You'll need to write your own ImageFunction class..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090806/16ddf439/attachment.htm>


More information about the Insight-users mailing list