Skip to content

Commit

Permalink
Merge pull request fieldtrip#2445 from contsili/ft_volumerealign
Browse files Browse the repository at this point in the history
Fix GUI fiducial selection on head surface
  • Loading branch information
robertoostenveld authored Sep 16, 2024
2 parents 8584bc5 + dde1c7c commit 81b8eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ft_volumerealign.m
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,7 @@ function cb_keyboard_surface(h, eventdata)
lab = opt.fidlabel{i};
vox = opt.fiducial.(lab);
if all(isfinite(vox))
ind = sub2ind(mri.dim(1:3), round(vox(1)), round(vox(2)), round(vox(3)));
ind = sub2ind(opt.mri.dim(1:3), round(vox(1)), round(vox(2)), round(vox(3)));
else
ind = nan; % functional behavior of sub2ind has changed, giving an error with nan-input
end
Expand Down

0 comments on commit 81b8eb6

Please sign in to comment.