fanc_voxdims: Handle raw and nm calibrated FANC coordinates

fanc_voxdimsR Documentation

Handle raw and nm calibrated FANC coordinates

Description

fanc_voxdims returns the image voxel dimensions which are normally used to scale between raw and nm coordinates.

Usage

fanc_voxdims(url = choose_fanc(set = FALSE)[["fafbseg.sampleurl"]])

fanc_nm2raw(x, vd = fanc_voxdims())

fanc_raw2nm(x, vd = fanc_voxdims())

Arguments

url

Optional neuroglancer URL containing voxel size. Defaults to getOption("fafbseg.sampleurl") as set by choose_fanc.

x

3D coordinates in any form compatible with xyzmatrix

vd

The voxel dimensions in nm. Expert use only. Normally found automatically.

Details

relies on nat >= 1.10.4

Value

For fanc_voxdims A 3-vector

for fanc_raw2nm and fanc_nm2raw an Nx3 matrix of coordinates

Examples

fanc_voxdims()
fanc_raw2nm(c(159144, 22192, 3560))
fanc_raw2nm('159144 22192 3560')
## Not run: 
fanc_nm2raw(clipr::read_clip())

## End(Not run)

flyconnectome/fancr documentation built on Feb. 8, 2024, 6:55 a.m.