[ITK-users] How to split a volume into Suvolumes??

Dženan Zukić dzenanz at gmail.com
Tue Dec 8 11:26:51 EST 2015


Hi Daoued,

if you want a sub-volume for each pixel, that would be a job for Neighborhood
Iterator
<http://www.itk.org/Doxygen/html/classitk_1_1NeighborhoodIterator.html>.

If you want to split your image into 9x9x9 blocks, you could pre-create all
of the images required, and then make one pass through the main image with
an iterator and for each pixel calculate (by / and % operators on its
index) in which of the sub-images it goes and into which location to copy
it. Once that is finished, you could write the images or do something else
with them.

HTH,
Dženan

On Tue, Dec 8, 2015 at 5:04 AM, Daoued23 <mlt.khawla at gmail.com> wrote:

> Hello everyone,
>
> I want to split a volume into subvolumes. The subvolume in my case
> represents the voxel's neighborhood (size 9x9x9). I used the filter
> itk::ExtractImageFilter but it takes so long.
>
> Someone proposed that I use the Marching Cubes to divide my volume. Does
> anyone know how it works in this cas?
>
> If you have any suggestions, that would be really helpfull.
>
> Thank you
>
>
> Daoued23
>
>
>
>
> --
> View this message in context:
> http://itk-users.7.n7.nabble.com/How-to-split-a-volume-into-Suvolumes-tp36536.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20151208/2cb14e80/attachment.html>


More information about the Insight-users mailing list