<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="">
Hi Enrico,
<div class=""><br class="">
</div>
<div class="">Apologies for the late reply, I noticed that so far this message has not been followed up on. I hope that by now you have managed to solve your problems, but here are some pointers on the off chance that they are still helpful:</div>
<div class=""><br class="">
</div>
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">
<ol start="1" data-editing-info="{"orderedStyleType":2,"unorderedStyleType":1}" data-listchain="__List_Chain_1252" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin-top: 0px; margin-bottom: 0px;" class="">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; list-style-type: "1- ";" class="">
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class=""><b class="">alignment of the individual MRI to a common coordinate system</b> using fieldtrip function:
using ft_volumerealing and manually marking relevant landmarks seem to effectively generate a transformation matrix and produce a partially aligned output; however, when I check the quality of the alignment, I can still see the head twisted (transversal view),
reflecting (I assume) the position of the head in the scan. This twisting seems to be normalized only by ft_volumereslice, which however inclines forward the MRI in the sagittal view. </span></div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; list-style-type: "1- ";" class="">
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">Why does this happen? Isn't the realignment step supposed adjust rotation and any other geometrical
positioning related issues? Can we avoid the forward inclination produced by ft_volumereslice while still obtaining isometric voxels? </span></div>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; list-style-type: "1- ";" class="">
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">here's the code I used (note that it doesn't matter which landmarks and coord sys I choose, the
problem persists) </span></div>
</div>
</li><ol start="1" style="margin-top: 0px; margin-bottom: 0px; list-style-type: lower-alpha;" class="">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; display: block;" class="">
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg = [];</span></div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">
<div class=""><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.method = 'interactive';</span></div>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.coordsys = 'ctf';</span></div>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">mri_aligned_fiducials = ft_volumerealign(cfg, mri);</span></div>
</div>
</li></ol>
</ol>
</div>
</blockquote>
<div><br class="">
</div>
<div>I am not sure whether I completely follow, but 1) ft_volumerealign indeed adjusts only the transform field, and 2) ft_volumereslice indeed ‘recreates’ the volume, by sampling the anatomy at different voxel locations. The tilt that you describe is the consequence
of the fact that ft_volumereslice aligns the ‘voxel’-axes of the volume with the ‘headcoordinate’-axes. Given that the ‘ctf’ convention head coordinate system has its origin somewhere in the vicinity of the brain’s pons, and has the x-axis going through the
nasion, this indeed leads to a forward tilt. As such this shouldn’t be a problem for the downstream analysis, because the voxel-to-head coordinate transformation is kept consistent with this. Between the lines, it looks as if you might have a non-isotropic
anatomical volume, where indeed it is desired to use ft_volumereslice to make the volume a bit better behaved in terms of voxel sizes. If you are still bothered by the tilt, and if the original mri volume (prior to the call to ft_volumerealign) has a well
behaved coordinate system attached to it, you may consider reversing the order of the alignment and the reslicing (i.e. reslice first, and do the rest later). This may anyhow be the better order, because this ensures that the voxel coordinates of clicked fiducials
are consistent with the volume that is used for further analysis. In other words, if you align first and then reslice, and use the resliced volume for some other stuff, the voxel coordinates of the fiducials are inconsistent.</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<ol start="2" data-editing-info="{"orderedStyleType":2,"unorderedStyleType":1}" data-listchain="__List_Chain_1252" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin-top: 0px; margin-bottom: 0px;" class="">
<ol start="1" style="margin-top: 0px; margin-bottom: 0px; list-style-type: lower-alpha;" class="">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; display: block;" class="">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class=""><br class="">
</span></div>
</div>
</li></ol>
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; list-style-type: "2- ";" class="">
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class=""><b class="">Alignement affination with head shape of the subject:</b> as suggested by some tutorials
(i.e.,<span class="Apple-converted-space"> </span><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fieldtriptoolbox.org%2Fworkshop%2Foslo2019%2Fforward_modeling%2F&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C05c58818ba684441f30708dc4f03367e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638472122432559296%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=qU4Q5oUm9jPfwtPkpEI54BKfjthttGU%2Fa1WMsWn0nxs%3D&reserved=0" originalsrc="https://www.fieldtriptoolbox.org/workshop/oslo2019/forward_modeling/" shash="IzTqOK/Ag7E8yhjZDulx7GzboI5CHWgnaq122AdR8Jti9c+NRv2s+qOnSXIZ0v6OP3dWpEyEshigiXT2zmyjlOIj1NsNT6T1XhxggbHb2OqJ5hCGgdHn9vrVdYc+YTTbzY9JEJGXXH5vfHGY5p2YixRRQMw//fO1+JaX9eXwOJI=" originalsrc="https://www.fieldtriptoolbox.org/workshop/oslo2019/forward_modeling/" shash="kRri/AxzqBmxMQVuqCM2ZWqkxyOXs1JZuWlUv+PKp+fLdbtlWsTUJXIci8T0ILn9HaHsNbe6lQ21u9o4Z3dxEzRSwZRqS7gsucxQxsuSIEmZ6+hzNx6SdZ0fMcek3awvKmHvTuhk8QfPgCQ17F2xUbMA4EPj7BNNrJYP4oNWlcQ=" id="LPlnk887797" class="OWAAutoLink">https://www.fieldtriptoolbox.org/workshop/oslo2019/forward_modeling/</a>)
I am trying to refine the alignment of the individual MRI (in order to improve the later co-registration with the electrodes) using the head shape points of the subject collected through the Polhemus. However, when I try this alignment, the head shape defined
by the collected head points results way bigger and disproportioned as compared to the head shape generated by fieldtrip from the subject's MRI (I guess it'd correspond to the mesh of the scalp). Likewise, the position of the fiducials (e.g., nasion, l/r tragus)
results challengingly inconsistent. This problem shows up also when later on I try to co-register the electrodes with the triangulated mesh of the scalp based on fiducials or manually, which as you can imagine does not provide a reliable accuracy. It seems
the only way to overcome this aspect is changing the scaling of the MRI in the manual adjustment, which however leads to a loss in proportion consistency between x, y and z. Any idea of why this happens and how to find an effective solution? Here's the codes
I tried to use</span></div>
</li></ol>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
</div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
% Alignment of MRI to headshape</div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 1.2; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg = [];</span></div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 1.2; margin-right: 80px; margin-left: 80px;" class="">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.method = 'headshape';</span></div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 1.2; margin-right: 80px; margin-left: 80px;" class="">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.headshape.headshape = head;</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 1.2; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.coordsys = 'ctf';</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 1.2; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.headshape.icp = 'no'; % (automatic iteration leads to catastrophic results)</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 1.2; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">mri_aligned_headshape = ft_volumerealign(cfg, mri_aligned_fiducials);</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 1.2; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class=""><br class="">
</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 1.2; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">% Alignment of elec with headmodel based on fiducials (nasion, lpa and rpa - which are actually left and right traguses in both
structures) </span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255);" class="">cfg = [];</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.method = 'fiducial';</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.target = elec_mri; % ( this are manually pointed fiducials from the 'mri_realinged_headshape'</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.elec = elec;</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.fiducial = {'NAS', 'LPA', 'RPA'};</span></div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin-right: 80px; margin-left: 80px;" class="">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">cfg.feedback = 'yes';</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin-right: 80px; margin-left: 80px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">elec_realigned = ft_electroderealign(cfg);</span></div>
<div class="elementToProof" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin-right: 40px; margin-left: 40px;">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class=""><br class="">
</span></div>
</div>
</blockquote>
<div><br class="">
</div>
<div>I am not sure, but could your observations have to do with the fact that you have a non-isotropic MRI image, and/or that the fiducial voxel locations don’t make sense. I would expect that in the call to ft_electroderealign all geometric objects (cfg.target
cfg.elec) are expressed in the same metric units, and in approximately the same coordinate system.</div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div id="Signature" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<ol start="3" data-editing-info="{"orderedStyleType":2,"unorderedStyleType":1}" data-listchain="__List_Chain_1252" style="margin-top: 0px; margin-bottom: 0px;" class="">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; list-style-type: "3- ";" class="">
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;" class=""><b class="">Relevant artifacts on the headmodel scalp mesh:</b> many of the individual MRIs I am using are collected with the subject wearing
digital goggles (part of active tasks fMRI sessions). Therefore, when I compute segmentation and mesh for the headmodel, the goggle shape results embedded in the scalp mesh.<span class="Apple-converted-space"> </span><u class="">May you know if this can cause
issue with the later on computation of the forward model and of the inverse solution, although there are not electrodes placed on the goggle area?</u> Actually I would need to exclude from the analysis the inferior and lateral electrodes, but it seems to me
a more straighforward solution than using ft_defacevolume or ft_defacemesh, which based on my experience are flawly, not user-friendly, subjected to many errors and notsistematic (likewise for correcting parameters as cfg.scalpthreshold or cfg.scalpsmooth
in ft_volumesegment). </span></div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; list-style-type: "3- ";" class="">
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;" class="">If the answer to my question is yes, how would you suggest to troubleshoot the issue? Would it be better for me to use other MRI processing tools
to exclude goggles with a more efficient mask setting (e.g., manual drawing)? </span></div>
</div>
</li></ol>
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;" class=""><br class="">
</span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255);" class=""><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">I've been struggling for a while already, so that I
would really appreciate any type of suggestion, a direct solution or sources I can consult, whichever they may be!</span></div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Hmmm, for an accurate forward model (i.e. representing the anamoty during the EEG - task) the goggles should be eliminated from the image. I am not aware of a very straightforward way of doing this. If the goggles are clearly delineated in the MR-image
(as opposed to causing a bit artifactual blur at the front of the head), one could try and use image processing heuristics to try and get rid of it (e.g. by calling ft_volumesegment using different settings for threshold/smoothing, and then take logical combinations
of the output volumes). Otherwise, you may want to consider an approach which is described here: <a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpubmed.ncbi.nlm.nih.gov%2F35378289%2F&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C05c58818ba684441f30708dc4f03367e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638472122432559296%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3Qkh0waYs1Y7ihXHN7U1YcCCOLcrblhH06DqoMTnrMM%3D&reserved=0" originalsrc="https://pubmed.ncbi.nlm.nih.gov/35378289/" shash="QX169n5BmdT4CllS7yDvGmkTACSwQlmeJ3gxl8RFcVa96+h1OY+R3E0t1/1QC842eP89gRfktwn2E1AcR0mupU2yOSZ4zCIrlfYsOST9ivFDEcnDToLnDkx4u16UrUoAAqqS4fNx3OC8lBW20UNG7MghvOoWN35euMbLIuLpmtg=" class="">https://pubmed.ncbi.nlm.nih.gov/35378289/</a> i.e.
use a template anatomical image, warped to the individual participants head.</div>
<div><br class="">
</div>
<div>Best wishes,</div>
<div>Jan-Mathijs</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div id="Signature" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<div style="margin: 0cm; background-color: rgb(255, 255, 255);" class=""><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class=""><br class="">
</span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255);" class=""><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">Your time and attention are very much appreciated.</span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255);" class=""><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">Best of luck with your work,</span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255);" class=""><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;" class="">Regards</span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-size: 10.5pt;" class=""><b class=""><br class="">
</b></span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-size: 10.5pt;" class=""><b class="">Enrico Sozza</b></span><span style="font-size: 10pt;" class="">,</span><span style="" class=""> </span><span style="font-size: 10pt;" class=""><i class="">PhD Student</i></span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt;" class="">Brainlab – Cognitive Neuroscience Research Group</span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt;" class="">Department of Clinical Psychology and Psychobiology</span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt;" class="">Institute of Neurosciences</span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt;" class="">University of Barcelona</span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt;" class="">P. Vall d'Hebron 171, 08035 Barcelona, Catalonia-Spain</span><span style="font-family: "Calibri Light", sans-serif; font-size: 9pt; color: rgb(102, 102, 102);" class=""><br class="">
</span><span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt;" class="">Tel: +34 933 125 058 – Fax: +24 934 021 584</span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt;" class=""><a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ub.edu%2Fbrainlab&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C05c58818ba684441f30708dc4f03367e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638472122432715550%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3ZgZ6P53G9xh4zMoJhbQ4f45TpPZ1zRMGW4ddxGuChY%3D&reserved=0" originalsrc="http://www.ub.edu/brainlab" shash="QU4sOXIcqhcPPPtvmS9TmzKx8HYj5sVj2gBENC8K5kx1lwHPULFx95x5xiSrNu8RLAvwpOTONxqmyS5MZvvkgw0jgMuP4ZA0PC1bi7i/g6mJv6WIDiP1vT8jA+WORcpuw4pfmK7dROrX7wbwo4TIrkfUi8BZnA7hWhSW2fSthS0=" originalsrc="http://www.ub.edu/brainlab" shash="ttAI8cpcpJJC+EvGrEpRm475u7rRWVGWRKMfuTW4A2P3u1eFhKrvCjC0nwE6kvwOvezJcL8NsdBHoWjdxSQ8YQlhU863JMOLBuJ/uV5cGEt98A82+V3mhxyd+Vpc1NvFh6shzFU1I8dfqnGCoF+5qiVMRd2toV1kc1slO9PfYTQ=" target="_blank" id="OWAa5b2a4d3-0dcd-a12c-bc46-f14450b7d4d0" class="OWAAutoLink" style="margin: 0px;">http://www.ub.edu/brainlab</a></span></div>
<div style="margin: 0cm; background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 11pt;" class="">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt;" class=""><a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.neurociencies.ub.edu%2F&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C05c58818ba684441f30708dc4f03367e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638472122432715550%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=4Xw9D5AgeACfibUdFrYfwuVqASXVEh7D07d33hpKhOk%3D&reserved=0" originalsrc="http://www.neurociencies.ub.edu/" shash="mulYYGSKuWnBgWk3FRrXmLbfQSJMQJjui6AH9l1RBkjCb0lumCl6LVdpYsCMy0UJcawcfy0pniRe66D24RD8Nn9/1FX2xuOI75XqcFkG1Dft6ERqNeYfuYePERXvjq7ZtoXJxtTHqLBjmxteR9Z2jeNqFcP7iCKZVtzqNVy2qnM=" originalsrc="http://www.neurociencies.ub.edu/" shash="OL8k9UMCQ+SoAqO/JyxXVgXyK5x+JnNcTefd6zXkuVooAa0e/HGDS78SWi69iDiIshAuIljR56bTZUcy6gN4KOQaM8nw092oHS7i6dFjWcPx0CiAOf4GUpF6XixB7PxQgEwf1xEwX8zZC4v9LW/PU5iIXvcaJv3IDQkhNA/xFYQ=" id="OWA56ed576e-62c0-6d44-33b3-30853df8ae12" class="OWAAutoLink" style="margin: 0px;">http://www.neurociencies.ub.edu</a></span></div>
</div>
<br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<font color="#999999" size="1" face="Arial" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Aquest
missatge, i els fitxers adjunts que hi pugui haver, pot contenir informació confidencial o protegida legalment i s’adreça exclusivament a la persona o entitat destinatària. Si no consteu com a destinatari final o no teniu l’encàrrec de rebre’l, no esteu autoritzat
a llegir-lo, retenir-lo, modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si l’heu rebut per error, informeu-ne el remitent i elimineu del sistema tant el missatge com els fitxers adjunts que hi pugui haver.<br class="">
<br class="">
Este mensaje, y los ficheros adjuntos que pueda incluir, puede contener información confidencial o legalmente protegida y está exclusivamente dirigido a la persona o entidad destinataria. Si usted no consta como destinatario final ni es la persona encargada
de recibirlo, no está autorizado a leerlo, retenerlo, modificarlo, distribuirlo o copiarlo, ni a revelar su contenido. Si lo ha recibido por error, informe de ello al remitente y elimine del sistema tanto el mensaje como los ficheros adjuntos que pueda contener.<br class="">
<br class="">
This email message and any attachments it carries may contain confidential or legally protected material and are intended solely for the individual or organization to whom they are addressed. If you are not the intended recipient of this message or the person
responsible for processing it, then you are not authorized to read, save, modify, send, copy or disclose any part of it. If you have received the message by mistake, please inform the sender of this and eliminate the message and any attachments it carries
from your account.</font><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""></span>
<p style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
</p>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip
mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C05c58818ba684441f30708dc4f03367e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638472122432715550%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=H%2FIZrlG0JK3y8uBT2di2%2FIpNpDwc7OSpGCaeJiDSgW8%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="tWonTT7dp3zxdwZx5wwfAXdOaYprjOcu+IGosn9KrizWY+oL8bMs1TPe9G3agvnAegNzu7GZ+x3NksmL72kD7BW1Mnw3w14IEIC/dwQWL3ul+azLW5es2lQsIRKO7yBW/jsdvhfKSp/ziLZsPiYo2pDjKvh3k08aCxE8faeWGC0=" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C05c58818ba684441f30708dc4f03367e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638472122432715550%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=0Jnr1wAkJCkArffje%2BSyefqbc2bkjrZYd7byhTS%2BbWU%3D&reserved=0" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="oz73XpMuQq3fvmQUvbOIfcBBompckLQhKGpWyvGXbee+IhZMO5dlxIlV+GAPPDSgNXSXyKwlCYMM8WpalHD6C3HpK/q9EEnwCQgHQvl3GLA5wRmDXBHj58b7zRJbApw7ntkm/CYzf3Z+j/8cFhrq4CS0evgstM4AhPcdxhhzNZ8=" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://doi.org/10.1371/journal.pcbi.1002202</a></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>