<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Hello!</span>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">I am trying to reslice my MRI image for the purposes of EEG Source Reconstruction using the following code:</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">
<pre class="highlight" style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 13.2px; margin-top: 0px; margin-bottom: 0px; overflow: auto; color: rgb(33, 37, 41); background-color: rgb(240, 240, 240); font-variant-ligatures: normal; orphans: 2; widows: 2; text-decoration-thickness: initial;"><code class="" style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: inherit; color: inherit; word-break: normal;"><span class="n" style="box-sizing: border-box;">cfg</span>          <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span> <span class="p" style="box-sizing: border-box;">[];</span>
<span class="n" style="box-sizing: border-box;">mri_resliced</span> <span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span> <span class="n" style="box-sizing: border-box;">ft_volumereslice</span><span class="p" style="box-sizing: border-box;">(</span><span class="n" style="box-sizing: border-box;">cfg</span><span class="p" style="box-sizing: border-box;">,</span> <span class="n" style="box-sizing: border-box;">mri_realigned</span><span class="p" style="box-sizing: border-box;">);</span></code></pre>
<div class=""><br class="">
</div>
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">However, when I go to view the output of this command I see that the reslice method has completely removed axial slices and has inverted coronal and sagittal slices. This is, of course, ruining
 subsequent head model generations so any guidance that could be provided on why this might be happening and how to fix it would be greatly appreciated. Attached is a screenshot of what my replaced image looks like.</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><img apple-inline="yes" id="BE3A7B2E-80D1-4D54-B1C3-E0564466CBD1" class="" src="cid:DF98F78D-F6AE-4658-AC9E-D5A8944051B6"></div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
<br class="">
</div>
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Thank you for your time!</span><br class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">
<br class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">
<div dir="auto" class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div dir="auto" class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<b class="">JT Galla</b>
<div class="">Duke University c/o ’23</div>
<div class="">Neuroscience Major, Chemistry & Computational Biology Minor</div>
</div>
</div>
</div>
</body>
</html>