smooth_qsm {rTwig} | R Documentation |
Visual smoothing of a QSM by ensuring the midpoints of all cylinders are connected
smooth_qsm(cylinder)
cylinder |
QSM cylinder data frame |
Returns a data frame
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)