Performs a vox2vos transform from FreeSurfer to R indices.
integer vector of length 3, Freesurfer indices for column, row, and slice (CRS).
logical, whether to add 1 to the output vector as the 4th value
the R indices into the volume data for the given FreeSurfer CRS indices
1 2 3 4 5 6 7 8
# Get voxel intensity data on the command line, based # on the FreeSUrfer (zero-based) CRS voxel indices: # `mri_info --voxel 127 100 100 ~/data/tim_only/tim/mri/brain.mgz` # (the result is: 106.0) # # That should be identical to: # our_crs = vol.vox.from.crs(c(127,100,100), add_affine = FALSE); # brain$data[our_crs, our_crs, our_crs]; # gives 106
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.