[VoxBo] precision for stats cub?
Daniel Y Kimberg
kimberg at mail.med.upenn.edu
Thu Oct 25 18:21:34 EDT 2007
Daniel Drucker wrote:
> How much precision is needed for a stats cub? Is float sufficient or
> does it have to be double?
>
> (context: I'm writing some code to allow for writing of cubs from
> matlab, using spm_vol as a go-between, and it wants to know.)
It depends what you want to do with the cubs, but I don't think any
parts of VoxBo discriminate between floats and doubles, as long as the
precision meets your needs. Bytes are fine too.
> Also, how much does voxbo care about the voxels being [0.97 0.97 1] in
> size? I.e., if I don't specify that information, what does voxbo do?
> What if I specify it as [1 1 1] - how badly will that screw things up?
Again, it depends what you want to do with the images -- some
operations care about voxel sizes and others don't. If you're
reslicing images, having the wrong voxel sizes can lead to some pretty
anomalous results. Or sometimes if you make the same mistake in just
the right two places, everything will turn out right. If you're just
viewing the images in vbview, it mostly means you won't be able to
turn on isotropic scaling, because it will think the images are
already isotropically scaled. Smoothing in voxels will be fine,
smoothing in mm will be off. Etc.
dan
More information about the voxbo-general
mailing list