[Insight-users] neighborhood iterators on vector images

Rashindra Manniesing rashindra at gmail.com
Thu Apr 21 08:15:13 EDT 2011

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

Many thanks, Rashindra

typedef VectorImage<> VT;
typedef ConstNeighborhoodIterator<VT> NT

NT::RadiusType radius;

NT iter (rad, img, img->GetLargestPossibleRegion());

On Tue, Apr 19, 2011 at 13:30, Rashindra Manniesing <rashindra at gmail.com>wrote:

> I was wondering whether there exists a convenient class to convert a scalar
> image into a vector image (e.g. from 4D to 3D vector) directly by specifying
> the dimension, without explicitly extracting the each subimage and composing
> them into a vector image?
> Kind regards, Rashindra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110421/0a2b1450/attachment.htm>

More information about the Insight-users mailing list