[SciPy-user] Rotate volume data and regrid?

Gael Varoquaux gael.varoquaux@normalesup....
Wed Dec 10 23:59:48 CST 2008


On Wed, Dec 10, 2008 at 07:51:27PM -0500, Gary Strangman wrote:

> Hi scipy-experts,

> I have a 3D array (180x200x200 elements) that represents a 3D volume in 
> space. I want to rotate the data in this array by an arbitrary amount 
> around an arbitrary point inside the volume, then re-grid the result back 
> into the original voxels. Does anyone know of a scipythonic or numpythonic
> function, package, or even an algorithm to achieve this?

You will probably find what you need in one of the functions listed on
http://docs.scipy.org/scipy/docs/scipy.ndimage.interpolation/#scipy-ndimage-interpolation

Gaël


More information about the SciPy-user mailing list