if (FALSE) {
all_templatebrains()
guess_templatebrain(im3d(dims=c(30,40,50)))
# or
guess_templatebrain(c(30,40,50))
guess_templatebrain('path/to/my/image.nrrd')
if(require('nat.flybrains')){
guess_templatebrain(im3d(dims=c(1024,512,218)), rval = 'name')
# get the matching template brain
tb=guess_templatebrain(im3d(dims=c(1024,512,218)))
# get its voxel dimensions
voxdims(tb)
tb=guess_templatebrain(c(1024,512))
tb
}
}
Run the code above in your browser using DataLab