[SciPy-user] Rotate volume data and regrid?

Gary Strangman strang@nmr.mgh.harvard....
Thu Dec 11 06:30:04 CST 2008


>> 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

Not only had I forgotten about ndimage, but had no recollection of all the 
nifty things in there. Thanks for saving me a week of wheel-reinvention!

G


More information about the SciPy-user mailing list