[ITK] [ITK-users] Interpolation, Requested Region, and periodic signals

Timothee Evain tevain at telecom-paristech.fr
Thu Apr 14 08:35:52 EDT 2016


Hi Cyril,

I have no insights about your memory management/requirements, but what about cloning the first "3D slice" (i.e. the first volume) and append it to your temporal sequence ?
The 4D image would be [X,Y,Z,T+1] and computing between the end and the start of your cycle would be the same as any other step. 

HTH;

Tim

----- Mail original -----
De: "Cyril Mory" <cyril.mory at uclouvain.be>
À: "Insight Users" <insight-users at itk.org>
Envoyé: Jeudi 14 Avril 2016 14:09:10
Objet: [ITK] [ITK-users] Interpolation, Requested Region,	and periodic signals

Hi ITK users,

I am computing 4D images of the breathing thorax. The first 3 dimensions 
are the spatial ones, the last one is the respiratory phase (breathing 
is considered periodic). At some point in the algorithm, I have to 
interpolate a 4D sequence of volumes along the phase dimension to create 
a 3D volume. I use a custom interpolation filter, not the ITK one, with 
the GenerateData implemented in CUDA (I work on RTK, a library based on 
ITK that has support for CUDA).

I would like to request only the required data for this interpolation, 
in order to avoid keeping the whole 4D sequence in GPU memory. Most of 
the time, the two 3D volumes between which I need to interpolate are 
consecutive in the 4D sequence, so it is easy to write a 
GenerateInputRequestedRegion() that requests a 4D region of size 2 on 
the fourth dimension.
But when interpolating between the last and the first 3D volumes of the 
sequence (remember : breathing is periodic), the only ITK::ImageRegion 
that contains them both is the whole 4D sequence. I would like to avoid 
loading the whole 4D sequence.

Any suggestions on how I could do that ?

Best regards,
Cyril
_____________________________________
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
_______________________________________________
Community mailing list
Community at itk.org
http://public.kitware.com/mailman/listinfo/community
_____________________________________
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


More information about the Community mailing list