<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Daoued,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">if you want a sub-volume for each pixel, that would be a job for <a href="http://www.itk.org/Doxygen/html/classitk_1_1NeighborhoodIterator.html">Neighborhood Iterator</a>.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">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.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">HTH,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 8, 2015 at 5:04 AM, Daoued23 <span dir="ltr"><<a href="mailto:mlt.khawla@gmail.com" target="_blank">mlt.khawla@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I want to split a volume into subvolumes. The subvolume in my case<br>
represents the voxel's neighborhood (size 9x9x9). I used the filter<br>
itk::ExtractImageFilter but it takes so long.<br>
<br>
Someone proposed that I use the Marching Cubes to divide my volume. Does<br>
anyone know how it works in this cas?<br>
<br>
If you have any suggestions, that would be really helpfull.<br>
<br>
Thank you<br>
<br>
<br>
Daoued23<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/How-to-split-a-volume-into-Suvolumes-tp36536.html" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.com/How-to-split-a-volume-into-Suvolumes-tp36536.html</a><br>
Sent from the ITK - Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>