[Insight-users] neighborhood iterators on vector images

David Doria daviddoria at gmail.com
Thu Apr 21 09:02:33 EDT 2011


On Thu, Apr 21, 2011 at 8:15 AM, Rashindra Manniesing
<rashindra at gmail.com>wrote:

>
> Need some help here!
>
> How to properly use the neighborhood iterators on vector images using
> ZeroFluxNeumannCondition (using ITK 3.20.0) ?
>
> Currently I am doing this, but it gives memory error on running (probably
> because the vector length is unknown in the typedef), see code below. In the
> last line, the program fails. The ConstNeighborhoodIterators have default
> ZeroFluxNeumann.
>
> Many thanks, Rashindra
>
>
> typedef VectorImage<> VT;
> typedef ConstNeighborhoodIterator<VT> NT
>
> NT::RadiusType radius;
> radius.Fill();
>
> NT iter (rad, img, img->GetLargestPossibleRegion());
> iter.GoToBegin();
> iter.GetNeighborhood();
>

It seems to work fine for me:
http://www.vtk.org/Wiki/ITK/Examples/VectorImages/NeighborhoodIterator

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110421/989ac30f/attachment.htm>


More information about the Insight-users mailing list