Learn R Programming

rTwig (version 1.1.0)

smooth_qsm: Smooth QSM

Description

Visual smoothing of a QSM by ensuring the midpoints of all cylinders are connected

Usage

smooth_qsm(cylinder)

Value

Returns a data frame

Arguments

cylinder

QSM cylinder data frame

Examples

Run this code

file <- system.file("extdata/QSM.mat", package = "rTwig")
qsm <- import_qsm(file)
cylinder <- qsm$cylinder
cylinder <- update_cylinders(cylinder)

## Before Smoothing
plot_qsm(cylinder)

## After Smoothing
cylinder <- smooth_qsm(cylinder)
plot_qsm(cylinder)

Run the code above in your browser using DataLab