[ITK] [ITK-users] Small gaussian sphere iterator over 3D image
Bill Lorensen
bill.lorensen at gmail.com
Mon Mar 30 13:59:58 EDT 2015
These examples may help:
http://itk.org/Wiki/ITK/Examples/Iterators/ShapedNeighborhoodIterator
http://itk.org/Wiki/ITK/Examples/Iterators/ShapedNeighborhoodIteratorManual
On Mon, Mar 30, 2015 at 6:58 AM, Matt McCormick
<matt.mccormick at kitware.com> wrote:
> Hi Leslie,
>
> The ShapedNeighborhoodIterator allows activations of a box of voxels
> within a given radii.
>
> For your operation, you may want to investigate the
> NeighborhoodOperator and related classes [1].
>
> More information on how to use neighborhood classes can be found in
> the ITK Software Guide (see itk.org for links to both the electronic
> and hard copy versions).
>
> Hope this helps,
> Matt
>
>
> [1] http://www.itk.org/Doxygen/html/classitk_1_1NeighborhoodOperator.html
>
> On Mon, Mar 30, 2015 at 9:15 AM, Leslie Solorzano
> <lesolorzanov at gmail.com> wrote:
>> I am aware of the existance of ShapedNeighborhoodIterator. But I don't
>> understand how to use it.
>> I have a 3D image and I would like to iterate trought it and calculate a
>> value according to a guassian sphere centered at each voxel.
>>
>> I don't understand if the shaped iterator makes a box with given radii (or
>> offsets), or it makes an ellipse with given offsets.
>>
>> My sphere is very small, a 4 voxel raidus (7 maximum), and I'd like the
>> values farthest from the center weight less in my sum, thus the gaussian.
>>
>> So it is pretty simple, make a shapedneighborhooditerator to be a sphere,
>> iterate and keep each value as the weighted sum of the values in its
>> neighbors in a 3D image, can some point me in the right direction?
>>
>> Thankyou
>>
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/mailman/listinfo/community
>>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
--
Unpaid intern in BillsBasement at noware dot com
More information about the Community
mailing list