Skip to content

Commit

Permalink
iEEG atlas labels: Error when single voxel sphere outside of MRI
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed Sep 27, 2022
1 parent f7a682c commit fa0f2ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/license.html
Expand Up @@ -5,7 +5,7 @@
<body alink="#fff000" link="#fff000" vlink="#fff000">
<h4><span style="font-family: Arial Black; color: #ffffff;"><strong>THERE IS NO UNDO BUTTON!<BR>SET UP A <FONT color=red>BACKUP</FONT> OF YOUR DATABASE</strong></span></h4>
<HR>
<!-- LICENCE_START -->Version: 3.220926 (26-Sep-2022)<br>
<!-- LICENCE_START -->Version: 3.220927 (27-Sep-2022)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2022
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.220926 (26-Sep-2022)
% v. 3.220927 (27-Sep-2022)
6 changes: 6 additions & 0 deletions toolbox/io/export_channel_atlas.m
Expand Up @@ -339,6 +339,12 @@
probLabel = 0;
end
else
% Exclude contacts outside of the MRI
if any(C <= 0) || any(C > size(sMriAtlas.Cube))
disp(['BST> Error: Volume atlas ' Columns{iColVol(i), 1} ': Contact "' ChanNames{iChan} '" is outside of the volume.']);
continue;
end
% Get label at the selected coordinates
intLabel = sMriAtlas.Cube(C(1), C(2), C(3));
probLabel = 1;
end
Expand Down

0 comments on commit fa0f2ab

Please sign in to comment.