fanc4to3 | R Documentation |
Convert XYZ locations between FANC4 (autoseg) and FANC3 (CATMAID)
fanc4to3(
xyz,
rawcoords = FALSE,
swap = FALSE,
chunksize = 40000,
method = c("mapmany", "map1"),
...
)
xyz |
An Nx3 matrix of coordinates |
rawcoords |
whether the input values are raw voxel indices or in nm |
swap |
When |
chunksize |
The number of points to send to the server when mapping many points at once. |
method |
Whether to map many points at once (default) or just one |
... |
additional arguments for |
a Nx3 matrix of coordinates.
fanc3=xyzmatrix(cbind(194569.2, 470101.3, 117630))
fanc4=cbind(45224, 109317, 2614)*c(4.3,4.3,45)
fanc4to3(fanc4)-fanc3
# can also pass in raw coordinates e.g. from neuroglancer
fanc4to3(c(45224, 109317, 2614), rawcoords = TRUE)
# rather small error for the approx inverse in this case
fanc4to3(fanc3, swap=TRUE)-fanc4
# ... so reverse mapping works in this case, but not always
fanc_xyz2id(fanc4to3(fanc3, swap = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.