Skip to content

Commit

Permalink
fixing bug in mid_sagittal align
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed Nov 25, 2019
1 parent 5925a95 commit 7593b40
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions R/mid_sagittal_align.R
Expand Up @@ -70,10 +70,14 @@ mid_sagittal_align = function(
verbose = verbose,
retimg = FALSE,
outfile = tfile)
centered = reverse_rpi_orient_file(
file = tfile,
orientation = rp$orientation,
convention = rp$convention)
if (force_rpi) {
centered = reverse_rpi_orient_file(
file = tfile,
orientation = rp$orientation,
convention = rp$convention)
} else {
centered = tfile
}
if (retimg) {
centered = readnii(centered)
}
Expand Down

0 comments on commit 7593b40

Please sign in to comment.