Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manual RHINO coregistration doesn't save changes #69

Open
matsvanes opened this issue Jul 9, 2021 · 1 comment
Open

manual RHINO coregistration doesn't save changes #69

matsvanes opened this issue Jul 9, 2021 · 1 comment

Comments

@matsvanes
Copy link

After doing coregistration with RHINO, the user can manually improve the coregistration using rhino_manual(D). The user can then interact with the figure, though after closing the figure, the changes are not saved.

I encountered the same problem with osl_edit_fid for interactively removing bad headshape points.

OSL version 'osl2019Nov04', Matlab 2020b
Can be reproduced running the following code:

datadir = fullfile(osldir,'example_data','coreg_example');
spm_files_continuous=[datadir '/Aface_meg1.mat'];
S = [];
S.D = spm_files_continuous;
S.mri = fullfile(osldir,'example_data','faces_singlesubject','structurals','struct.nii');
S.useheadshape = 1;
S.use_rhino = 1;
S.forward_meg = 'Single Shell';
S.fid.label.nasion = 'Nasion';
S.fid.label.lpa = 'LPA';
S.fid.label.rpa = 'RPA';
D=osl_headmodel(S);
rhino_manual(D)
D=osl_edit_fid(D)
@matsvanes
Copy link
Author

It seems the data is saved to disk - but it is not returned by the function. Thus, currently, you'd have to reload the data. This is the case for both rhino_manual and osl_edit_fid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant