Hey, in a ResliceCursorWidget
, I’m trying to display the brain volume, in addition to a fMRI mask on the top of it, so on each widget interaction we could see the changes in the brain slices and in fMRI slices,
I used almost the same code as the official example, and I added another instance of ImageSlice
/ ResliceActor
/ ResliceMapper
and I made the fMRI actor transparent so we can see behind it, and I changed the color of the mask, as @finetjul told me (many thanks).
and I added the actors to the scene (the fMRI mask in last so we could see it on the top of the brain), and I added in each widget interaction updateSlices
for the two actors (fmri mask and the brain).
But the fMRI mask is not displayed, only the brain in the scene, I know the fMRI mask actor is in the wrong position somewhere in the scene, because when I I do widget.setImage()
on the image of the fMRI mask instead of the brain, I see the fMRI mask but the brain just below/above them like you see here:
Here is a sandbox of my code, it is working, to see the difference you can do widget.setImage(image); // the volume of the brain
or you can do widget.setImage(image1); // the volume of the fMRI mask