Description Usage Arguments Value Note Author(s) See Also Examples

These functions are used to transform points from dimensionless pixel or
voxel coordinates to “real-world” coordinates, typically in millimetres,
and back. Actual pixel units can be obtained using the
`pixunits`

function. The `origin`

function gives the voxel
coordinates of the real-world origin.

1 2 3 4 5 |

`points` |
A vector giving the coordinates of a point, or a matrix with one point per row. |

`image` |
The image in whose space the points are given. |

`simple` |
A logical value: if |

`...` |
Additional arguments to |

A vector or matrix of transformed points.

Voxel coordinates are assumed by these functions to use R's indexing convention, beginning from 1.

Jon Clayden <code@clayden.org>

1 2 3 4 | ```
im <- readNifti(system.file("extdata", "example.nii.gz", package="RNifti"))
# Find the origin
origin(im)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.