ABI_resample: Resample volume to ABI space

View source: R/template_download.R

ABI_resampleR Documentation

Resample volume to ABI space

Description

Resample a volume to a target with optional transform using linear interpolation.

Usage

ABI_resample(
  source_volume,
  target_volume = NULL,
  target_space_name = NULL,
  xfm_transform = NULL,
  source_volume_resampled_file = NULL
)

Arguments

source_volume

MINC file or vector you want to transform

target_volume

MINC file or vector you want to resample to. If NULL, it is assumed you want to transform to ABI CCFv3 50 micron.

target_space_name

Instead of specifying target_volume, you can provide one of several strings representing target volumes. Options include "adult gene expression" (i.e. 200um isotropic voxels), and "CCFv3 50um" (i.e. 50um isotropic voxels). If NULL, it is assumed you want to transform to ABI CCFv3 50 micron.

xfm_transform

xfm file denoting the transform. Default NULL means no transformation

source_volume_resampled_file

filepath to save resampled source_volume. If NULL (default), file is not saved.

Value

source_volume resampled to target space


DJFernandes/ABIgeneRMINC documentation built on March 21, 2022, 12:05 p.m.