coord2ind(cbind(1,2,3), imdims = c(1024,512,218),
voxdims = c(0.622088, 0.622088, 0.622088), origin = c(0,0,0))
if (FALSE) {
## repeat but using a templatebrain object to specify the coordinate system
library(nat.flybrains)
coord2ind(cbind(1,2,3), JFRC2)
}
Run the code above in your browser using DataLab