Helper functions to misc3d and rgl packages for brain imaging