Trajectory calculation for stereotaxic frames

Good morning, Maybe you can help me. I am looking for an extension or a method that allows to calculate coordinates and angle of a trajectory between an input point and a target point.
To be able to be used in stereotactic frames.

Angle computation from point coordinates is fairly straightforward. How far did you get and what step you are stuck at?

What is your workflow? How do you register your stereotactic frame coordinate system to your image coordinate system?

Dear Andras, the stereotactic frame, is brand crw. Regarding where I got stuck, it is at the beginning. I would like to know if there is an easy procedure to do this in slicer. Thanks

Whatever you want to do should be easily doable, as Slicer has a wide range of calibration, registration, planning, and visualization tools for stereotactic surgery. If you can describe what your intended workflow then we can tell how to implement it in Slicer. For example, what imaging do you do, how do you identify target position, do you use a localizer frame to determine the head ring position or identify landmarks on the ring, do you have a computational model of the stereotactic system (position of rotation and translation axes, relative to landmarks or localizer frame, or this model is yet to be built), …?

Hello Andras, thank you very much for answering.
The images we use are MRI and CT
We use a frame of reference during imaging procedures.
Then with the frame references we calculate the center, and then we calculate the coordinates of the target with respect to the center.
I do not currently have a computational model of the stereotaxic system.

Hello. I ´ve been working for a while in a project like you describe.
it´s applied to a Micromar Stereotactic device,which has its fiducials in 90o angles.
It has 2 versions: one with just the fiducial calculus for registration and a second one with some graphic functions, objects, that show where de the arc an biopsy needle are in the brain.
it was published in a medical journal.: Revista NeuroTarget | Vanguardia en Neurociencia

in page 37.-
Please tell me if its the kind of software you are looking for.- Thanks

This looks nice, thanks for sharing. Is it open-source? If yes, the you could consider submitting to the extensions index so that users can find it more easily.

hello. Yes, it´s open source.
it is a scripted widget.- I don t know if it has to be written in C or something like that.
I ask you for some advice on how to publish it.

Scripted is fine for an extension. The steps linked below describe how to make a formal extension. There are several steps involved and there’s a general expectation you’ll be available to answer questions and do some maintenance from time to time (e.g. if Slicer core changes). If you don’t want to sign up for that you can just make your code available online, perhaps in github, and post a link here so it can be an example for future developers.

https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html

Hi, we´had developed a module that calculates the target and path of stereotatic frames.
you can get it here:

in fact, there are 2 modules, one with graphics and the other without.
in our hospital we use it with a Micromar frame, that has the fiducials with 90° degrees., but you can adapt it .

Very nice! Would you could consider submitting this to the extensions index so that users can more easily find and install it?

Hello, I am particularly interested in your extension, but I can’t install it. Can you give me some guidance?thanks。

Let me see. I need 2-3 days. Thanks

ok,I am looking forward to your guidance,

thank you fou your reply.! :grinning:

hi, sorry for delay.-

to get the modules working you must:

1- download zip from GitHub - JBeninca/SlicerStereotaxia: Slicer stereotatic frame 3D coordinates calculus.-

2 - unzip and move to: /where_you_want_directory

3 - open 3DSlicer

4 - Edit-> Applications settings → Modules → additional module path → Add

5 - select: /where_you_want_directory

6 - restart 3DSlicer

7 - you will find the 2 new modules in “Stereotaxia”

there is a paciente.nrrd file for example.

have luck.-

thanks . Jorge.-

I´m actually using 3DSlicer version 4.11.20210226

Actually it also works well in Slicer 4.13.

However,I don’t know how to use it,could you help provide more tutorial or a video?

Dear All
Greetings. I am a new member of the 3d slicer community and i wish to ask can i use 3d slicer solely for stereotactic procedures starting from image fusion between more than 2 images and target localization up to fiducial marking for entry and target.
I am using both crw and brw frames

Thanks alot. Yours

@Xestance @Gaston @slicer365 @Glenn

I have been developing an extension for stereotactic planning that supports Leksell, BRW, and CRW frames. This extension allows pre-op planning (with coordinates in ACPC and frame space), visualization of intraop MER, post-op electrode localization, and VTA modelling.

The documentation site (WIP): trajectoryguide.greydongilmore.com/

Let me know if you’d be interested in trying it out.

Greydon

1 Like