mincConvertWorldMatrix: Convert World to Voxel Coordinates

View source: R/minc_interface.R

mincConvertWorldMatrixR Documentation

Convert World to Voxel Coordinates

Description

Convert a 3xN matrix of world coordinates to voxel coordinates with respect to a given minc file.

Usage

mincConvertWorldMatrix(filename, world_matrix, nearest_voxel = TRUE)

Arguments

filename

The minc file indicating a coordinate grid

world_matrix

a 3xN matrix of world coordinates

nearest_voxel

logical whether to round the results to the nearest voxel

Value

a 3xN matrix of voxel coordinates


Mouse-Imaging-Centre/RMINC documentation built on Nov. 12, 2022, 1:50 p.m.