Skip to content

Commit

Permalink
Bugfix: Allow SEEG labels even when < 50% voxels
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed Sep 13, 2021
1 parent 072de06 commit f09b09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/io/export_channel_atlas.m
Expand Up @@ -308,7 +308,7 @@
% Count each label in the sphere
voxVal = sMriAtlas.Cube(voxInd);
% Remove background values (zero)
voxVal(voxVal == 0) = 0;
voxVal(voxVal == 0) = [];
% Make sure the there are some non-zero voxels
if ~isempty(voxVal)
[uniqueVal,tmp,J] = unique(voxVal);
Expand Down

0 comments on commit f09b09e

Please sign in to comment.