GithubHelp home page GithubHelp logo

Comments (8)

aestrivex avatar aestrivex commented on June 28, 2024

The way I usually deal with this situation in practice is by opening the CT window, clicking on the "correct" electrode centers rather than the one in the middle as shown there, and adding "new electrode here". Then I deselect the other one and add the new ones in its place.

If I'm really concerned the positions aren't right I click on the electrodes in the CT in sequence and do "track cursor". It's not easy to make track cursor go faster than it does currently because of some issues with memory management in mayavi.

All of the tools for dealing with this are pretty much things that exist already in the CT window. The enhancements you suggested to do it better are reasonable, however they are UI improvements over something that already exists and I will probably be a bit slow about addressing them.

from ielu.

choldgraf avatar choldgraf commented on June 28, 2024

Ah, I didn't realize that you could do this with the CT view. Probably something that documentation can fix. If it was clear in the instructions, then I think that it wouldn't be necessary to do a UI overhaul.

FWIW, this would be much easier to use if it would display a point where each electrode was, so that you could tell what was there and what wasn't.

from ielu.

aestrivex avatar aestrivex commented on June 28, 2024

image

Hitting track cursor shows this slightly larger white dot where the cursor was indicated.

It wouldn't be that difficult to add multiple tracked points. It also wouldn't be that difficult to add a bunch of pins (but the tracked points would be easier to navigate since the pins are represented in 2D, currently you have to scroll to somewhere near the correct slice for the pin to show up).

from ielu.

choldgraf avatar choldgraf commented on June 28, 2024

Sounds like track cursor would be useful in this situation. Right now, I can only click "track cursor" once, and it shows the white sphere where the cursor was when I clicked the button. However, if I re-click anywhere on the CT then the position doesn't update. Is this a bug or just where this function is at right now?

from ielu.

aestrivex avatar aestrivex commented on June 28, 2024

You have to click "track cursor" again at the new location for it to update.
There's only one cursor currently.

from ielu.

choldgraf avatar choldgraf commented on June 28, 2024

Ah ok - in that case, is it possible for the update to occur without re-drawing the whole MRI? Right now every time I click "track cursor" it zooms out and repositions the MR at the center of the screen. So if I click a new spot on the CT, I also have to then zoom back in, and rotate the brain to the view I had before.

from ielu.

aestrivex avatar aestrivex commented on June 28, 2024

It's not as straightforward as it might seem. There's a memory issue with adding and removing dots because of some bugs in mayavi that are very hard to trace (but its easy to clear the memory by rebuilding the scene).

It would probably be possible now that I think of it to just update the cursor's position as long as there is only one cursor and it is going to stay in the image for a while. If there are many dots, its harder to keep track of them all internally. To avoid memory leakage, the scene should be rebuilt whenever any dots are removed.

from ielu.

choldgraf avatar choldgraf commented on June 28, 2024

Ah that makes sense - maybe it wouldn't be such a big deal once the bug is fixed so that it will highlight in white a highlighted electrode. 3D plotting is always a PITA :)

from ielu.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.