show_3D#
- show_3D(im)[source]#
Rotates a 3D image and creates an angled view for rough 2D visualization.
Because it rotates the image it can be slow for large images, so is mostly meant for rough checking of small prototype images.
- Parameters
im (ndarray) – The 3D array to be viewed from an angle
- Returns
image – A 2D view of the given 3D image
- Return type
ndarray
Notes
Although this is meant to be quick it can still take on the order of minutes to render very large images. It uses
scipy.ndimage.rotate
with no interpolation to view the 3D image from an angle, then casts the result into a 2D projection.Examples
Click here to view online example.