<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Jan-Mathijs,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you for your reply. <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In the end I decided to use the formulas in <b>table 1</b> of the paper <i><span style="left: 56.2205px; top: 279.886px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; transform: scaleX(0.91731);" dir="ltr">Comparison of noise-normalized minimum
 norm estimates for MEG analysis using</span><span style="left: 56.2205px; top: 308.61px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; transform: scaleX(0.913711);" dir="ltr"> multiple resolution metrics (DOI:10.1016/j.neuroimage.2010.09.053)
</span></i><span style="left: 56.2205px; top: 308.61px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; transform: scaleX(0.913711);" dir="ltr">which allow me to calculate the dipole localization error and the spatial dispersion. If I'm not satisfied
 with these values, I will definitely look into your idea.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="left: 56.2205px; top: 308.61px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; transform: scaleX(0.913711);" dir="ltr">Best wishes,</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="left: 56.2205px; top: 308.61px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; transform: scaleX(0.913711);" dir="ltr">Laura</span><i><span style="left: 56.2205px; top: 308.61px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; transform: scaleX(0.913711);" dir="ltr"></span></i><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fieldtrip <fieldtrip-bounces@science.ru.nl> on behalf of Schoffelen, J.M. (Jan Mathijs) via fieldtrip <fieldtrip@science.ru.nl><br>
<b>Sent:</b> Thursday, March 10, 2022 8:29 AM<br>
<b>To:</b> FieldTrip discussion list <fieldtrip@science.ru.nl><br>
<b>Cc:</b> Schoffelen, J.M. (Jan Mathijs) <janmathijs.schoffelen@donders.ru.nl><br>
<b>Subject:</b> Re: [FieldTrip] signal patch size measurement</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Dear Laura,
<div class=""><br class="">
</div>
<div class="">I am not sure whether it makes much sense scientifically to measure the extent of an arbitrarily thresholded blob of reconstructed MNE-reconstructed signal, but if you insists I would use the triangular surface area for this (i.e. compute the
 area for each of the triangles in the mesh, and then assign to each vertex 1/3 of the summed triangle areas of the triangles that the given vertex belongs to). There is no dedicated FieldTrip functionality to compute this, but since it would be some relatively
 straightforward 3D vector voodoo using the sourcemodel.tri and sourcemodel.pos arguments I think that Mr. Google might already help you on your way (<a href="https://fra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mathworks.com%2Fmatlabcentral%2Fanswers%2F271797-surface-area-of-a-3d-surface&data=04%7C01%7Claura.gee%40icm-institute.org%7Cadacd7b9f1ea46c51ec008da0267b92f%7C9df7cf1718fa41508b00dc5e754777d8%7C0%7C0%7C637824941765834799%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Kdg0fgDSqCXuVeLCHF4b%2F6QnFWK4%2Bxrbb6CAphnzOtQ%3D&reserved=0" originalsrc="https://www.mathworks.com/matlabcentral/answers/271797-surface-area-of-a-3d-surface" shash="IipBldYEeg5iafHdLPbu3LETNExz2gpT7oCRgYGVA8BrXG3Q6o7s0mEO/FYZPEeD0pmT97Y7ekTk07DeDx+w7+PFApSJBtJVDdZFJh/c9HBW4G8teHjnelqB9ORzfS8IRBDiLxSRr2apSfiz7Q6Q6EVD4qT0r4NJsOSq5XNDIvQ=" class="">https://www.mathworks.com/matlabcentral/answers/271797-surface-area-of-a-3d-surface</a>)</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 7 Mar 2022, at 13:14, GEE Laura via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
Hello everyone,</div>
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
I am currently working on source reconstruction using minimum norm estimation (just like in the following tutorial <a href="https://fra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fwww.fieldtriptoolbox.org%2Ftutorial%2Fminimumnormestimate%2F__%3B!!HJOPV4FYYWzcc1jazlU!7aDum4j9lnD6EqpLub4_WWLz5Z28MYiMGa0dfS09Z4IK1aK5MKVwU5nQlyLV5imZ33y6_Q9ssBc0USvOTJRWXdMcJwif9qy1rY3MVg%24&data=04%7C01%7Claura.gee%40icm-institute.org%7Cadacd7b9f1ea46c51ec008da0267b92f%7C9df7cf1718fa41508b00dc5e754777d8%7C0%7C0%7C637824941765834799%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=1A8%2FKaBr8ag36Hyu8z0q3LEPVfKSAPJkBq3q9hHRL6Y%3D&reserved=0" originalsrc="https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/tutorial/minimumnormestimate/__;!!HJOPV4FYYWzcc1jazlU!7aDum4j9lnD6EqpLub4_WWLz5Z28MYiMGa0dfS09Z4IK1aK5MKVwU5nQlyLV5imZ33y6_Q9ssBc0USvOTJRWXdMcJwif9qy1rY3MVg$" shash="empE97GdrqGErQi4wQNsJ9QZlpJJSO7A+InSuJ7hDn5YLsABL6bmQi7jHWNEpoLV+oH0flqQui0sOzYRNxfBSHPDw1kYG/HWa6bVFuZo6ylX1oncOUQKmPm5cQbJ9ziOJ6e8haLy8Li2GExZSx06ekO+fNWbPdebhrdZSncpoKI=" id="LPNoLPOWALinkPreview" class="">https://www.fieldtriptoolbox.org/tutorial/minimumnormestimate/</a> ).
 I have managed to get to the visualization part and I am able to plot my source and the signal around it (see attached file).<span class="x_Apple-converted-space"> </span><br class="">
</div>
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
I would like to measure the size of the patch. I thought about starting off by implementing a threshold (all cells with values above 50% of the source value would be put to 1 and the rest to 0) and then finding the furthest point away from the source (so by
 measuring the length between the source and each cell that is within the threshold and choosing the maximum length).</div>
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
My questions are the following :<span class="x_Apple-converted-space"> </span><br class="">
</div>
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<ul class="">
<li class=""><span class="">Is there any function in the fieldtrip toolbox that already does this or something similar that will allow me to measure the size of the patch?</span></li><li class=""><span class="">If not, has anybody ever implemented something close to this and would be willing to share their thoughts/ideas?<br class="">
</span></li></ul>
</div>
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
Thank you in advance!</div>
<div class="" 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; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
Laura<br class="">
</div>
<div class="x__EReadonly_1 x__EType_OWALinkPreview x__Entity x__EId_OWALinkPreview" style="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; text-decoration:none">
</div>
<br class="" style="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; text-decoration:none">
<span id="x_cid:543206EE-19EA-4BAF-9312-B833E0390D86"><brain.png></span><span class="" style="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; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br class="" style="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; text-decoration:none">
<span class="" style="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; text-decoration:none; float:none; display:inline!important">fieldtrip
 mailing list</span><br class="" style="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; text-decoration:none">
<a href="https://fra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7Claura.gee%40icm-institute.org%7Cadacd7b9f1ea46c51ec008da0267b92f%7C9df7cf1718fa41508b00dc5e754777d8%7C0%7C0%7C637824941765834799%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=kn7kjPXHxJqYRlF8Ofm%2BaaPmlZGIBG%2FmMTai3ix4n08%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="xEbH/HY2V+TGM43DQSRf2E157G+JdOXkQ3MvBYHmrn/iIcVQlwCrbpncyBxeZ0ix4h+jakx55HHUYI4mHpWUqSWUCxgM3ssYbu7UzbH9VQU5SQN9MSLHY15TGZ6EXYveA7Q4Ts9IEDpww+hoD+iTX3pzRBrKz0jix65k/DeYyr8=" class="" 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">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="" style="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; text-decoration:none">
<a href="https://fra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202__%3B!!HJOPV4FYYWzcc1jazlU!7aDum4j9lnD6EqpLub4_WWLz5Z28MYiMGa0dfS09Z4IK1aK5MKVwU5nQlyLV5imZ33y6_Q9ssBc0USvOTJRWXdMcJwif9qyIpD-hhg%24&data=04%7C01%7Claura.gee%40icm-institute.org%7Cadacd7b9f1ea46c51ec008da0267b92f%7C9df7cf1718fa41508b00dc5e754777d8%7C0%7C0%7C637824941765834799%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=bXu4CSjJvRIn%2BHWnx72%2FtB4%2FGprZkpZu%2B%2BcHOcH4Tb8%3D&reserved=0" originalsrc="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!7aDum4j9lnD6EqpLub4_WWLz5Z28MYiMGa0dfS09Z4IK1aK5MKVwU5nQlyLV5imZ33y6_Q9ssBc0USvOTJRWXdMcJwif9qyIpD-hhg$" shash="MVXDok3LX8sejk4KlaX+5XgwjJXNpjvA3/570ySwwCvyiDH/Y16pEZoZvbvTH1XrOhCatB4Je7sSaCl4ltkYSMuB/VWu/iQasEqun9ZdL8T9envDwku8ik6iO4K09U8f7x1GHSXOsNYDtzuELKk33WMEhKNEQNzuFbK/f6WwNno=" class="" 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">https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!7aDum4j9lnD6EqpLub4_WWLz5Z28MYiMGa0dfS09Z4IK1aK5MKVwU5nQlyLV5imZ33y6_Q9ssBc0USvOTJRWXdMcJwif9qyIpD-hhg$</a><span class="" style="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; text-decoration:none; float:none; display:inline!important"></span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>