19 November 2007
Magnetic resonance imaging[?] produces extremely detailed and valuable data. Visualizing that data can be a challenge. Often one gets the data in the form of an animated view of slices from one side of the subject to another. Here's a Python script which takes these slices, reconstitutes the object in memory then reslices it on other axises.
This particular scan contains over 9 million voxels. Fortunately the voxels appear to be cubes, so no scaling is required. Humans are annoyingly symmetrical, so I'm uncertain if the original animation is left-right or right-left -- thus the computed slices might be mirrored.