[vtkusers] Linear Interpolation on 3D image data

Alejandro Rodríguez Aguilera alejandro88_ at hotmail.com
Fri Feb 20 11:11:46 EST 2015


Hello,

If I understood well, and you don't need XY interpolation,
 would it not be enough to get the images bounding the current sampling 
point (aka, the "previous" and "next" images, determined by their Z 
coordinate and the Z coordinate of the current sampling point in the 
structure 3D image), sample both images for the XY coordinates of the 
sampling point, and then doing the 1D linear interpolation, using the 
three Z coordinates?

This may take some time as you mention but, 
since it seems a preprocess step, only needed once before starting to 
visualize, I don't see the problem. 

If this is not the case and 
you need to perform this step several times, my guess is that you should
 consider using the GPU to construct the 3D image data (using CUDA, 
OpenCL or OpenGL compute shaders, for example) and feed it to VTK, since the amount of data
 you are handling is big enough and the algorithm is parallelizable 
enough.

Best regards,
Alex


From: SKang at childrensnational.org
To: vtkusers at vtk.org
Date: Fri, 20 Feb 2015 15:50:44 +0000
Subject: [vtkusers] Linear Interpolation on 3D image data









Hi everyone,
 
I am trying to do linear interpolation on 3D image data.

I have used mechanically scanned ultrasound images to construct 3D volume. Ultrasound probe is mounted on the linear stage. I am getting exact positions along the stage movement direction (Z axis).
  
The 2D images are aligned along X and Y axes. I have saved stack of 2D images as vtkimagedata without the stage location information (Z values).
 
The problem is that the 2D ultrasound images are not even distributed along Z axis. I want to do linear interpolation along the Z axis to construct structured 3D image data.

Actually, I need to do 1 dimensional linear interpolation along the Z axis. I don’t need to do any interpolation along X and Y axes.

 
I can do the 1D linear interpolation along the Z axis. The image resolution is about 800 x 780 x 250.

If I do the linear interpolation of 800x780 pixels along the Z axis, it takes some time. I am doing a real time visualization.

Is there any way to do linear interpolation fast using VTK?

 
Thank you for your help.

 


Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.




_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150220/ee291a57/attachment.html>


More information about the vtkusers mailing list