Should anisotropic, regularly sampled voxels be supported?
On Tue, Nov 3, 2015 at 12:55 PM, Josh Warner <silvertr...@gmail.com> wrote:
Should we use/apply this to a particular volumetric dataset while prototyping different methods, to ensure accurate comparisons?
Should anisotropic, regularly sampled voxels be supported?
--
You received this message because you are subscribed to the Google Groups "scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It looks like the lobster and bonsai can be downloaded directly as raw volumes (8 bit only, but will serve these purposes perfectly well) here:
http://www.volvis.org/
This simple wrapper for np.fromfile
will load them
import numpy as np
def loadraw(rawfile, shape=None, dtype=np.uint8):
"""
Load RAW volume to a NumPy array.
Parameters
----------
rawfile : string
Path to *.raw volume.
shape : tuple
Shape of the volume. If not provided, output will be a rank-1 stream
which can be reshaped as desired.
dtype : NumPy dtype
Dtype of the raw image volume.
"""
vol = np.fromfile(rawfile, dtype=dtype)
if shape is not None:
vol = vol.reshape(shape)
return vol
For the lobster, use shape=(56, 324, 301)
and recall the voxel spacing has a ratio of 1.4:1:1
For the bonsai, use shape=(256, 256, 256)
and the volume is isotropic (1:1:1 spacing)