[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    Re: [ITK-users] How to split a volume into Suvolumes??
From:       DÅ <dzenanz () gmail ! com>
Date:       2015-12-08 16:26:51
Message-ID: CAPf2UMSSfS6HUhR+3ZGR2yrydGS3uTkfOFV3EKpXxLxX=qZ-fQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Daoued,

if you want a sub-volume for each pixel, that would be a job for Neighborho=
od
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=C5=BEenan

On Tue, Dec 8, 2015 at 5:04 AM, Daoued23 <mlt.khawla@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-tp3=
6536.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
>

[Attachment #5 (text/html)]

<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">&lt;<a href="mailto:mlt.khawla@gmail.com" \
target="_blank">mlt.khawla@gmail.com</a>&gt;</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&#39;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>



_____________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic