Operating system: window
Hello everyone,
I am a medical researcher, and my current project is about the visualisation of spectroscopy image data in 3Dslicer.
I need to represent for every voxel, the spectrum.
i want to represent the spectrum for each voxel in a graph. when I click on a voxel its spectrum must represent in a graph. It is possible to do it with slicer? what is the code to follow?
A quick search for existing Slicer extensions for spectroscopy didn’t yield anything, so you may need to develop something yourself. If you are willing to invest some time, this may not be too difficult, and this forum is a very supportive and helpful community.
Once you have the spectrum you want to show, you can generate plots using this infrastructure: Plots — 3D Slicer documentation
There’s been some work on this in the past with older Slicer versions but you could probably get some good ideas.
If the spectrum is a 1D signal for each voxel then you can use plotting in either Multivolume Explorer or in Sequences module:
You can create a 4D nrrd file (that Sequences or MultiVolumeExplorer can read) using MultiVolumeImporter module, or concatenate multiple scalar volumes (each containing one value of the spectrum) into single volume sequence using Sequences module, or you can create it from a 4D numpy array using Python scripting as shown here.