question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retrieving Coregistration from CoregistrationUI

See original GitHub issue

Describe the new feature or enhancement

I need to programmatically retrieve the coregistration results from CoregistrationUI after the user has finished coregistration, without requiring them to explicitly save trans and fiducials to disk.

Currently, there’s no public API to do so: the Coregistration instance is stored in the private CoregistrationUI._coreg – which is overwritten with None when the CoregistrationUI window is closed.

Describe your proposed implementation

CoregistrationUI._coreg should become public as CoregistrationUI.coreg or CoregistrationUI.coregistration, and CoregistrationUI._clean() should not overwrite the Coregistration instance on window close.

Describe possible alternatives

mne.gui.coregistration() could return the Coregistration instance after CoregistrationUI has been closed, instead of returning CoregistrationUI. But I believe this would break some workflows. Or wouldn’t even be possible in non-blocking mode…

cc @GuillaumeFavelier @larsoner

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
GuillaumeFaveliercommented, Jan 20, 2022

You’re more than welcome to do so @hoechenberger

1reaction
hoechenbergercommented, Jan 20, 2022

I can give this a shot if you don’t mind

Read more comments on GitHub >

github_iconTop Results From Across the Web

mne.gui.coregistration — MNE 1.2.2 documentation
Coregister an MRI with a subject's head shape. The GUI can be launched through the command line interface: $ mne coreg.
Read more >
Coregistration - Brain Imaging Core
Parametric Images: Associating a parameter of interest with locations. (voxels) throughout the brain. Page 3. Why Coregister? The image cannot be displayed.
Read more >
Source code for eolearn.coregistration.coregistration
Source code for eolearn.coregistration.coregistration. """ This module implements the co-registration transformers. Credits: Copyright (c) 2017- ...
Read more >
Coregistration - L3HarrisGeospatial.com
Coregistration occurs within the SPEAR Change Detection and SPEAR Pan Sharpening tools. ... If you manually selected seed points, click Retrieve Points.
Read more >
eo-learn/coregistration.py at master - GitHub
eo-learn/coregistration/eolearn/coregistration/coregistration.py ... Cannot retrieve contributors at this time. 394 lines (325 sloc) 17.4 KB.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found