Wonderful piece of work and a very useful one at that! I would be pleased to know if I can use it for my specific case.
A rod-like observation chamber that we have inserted in the skull shows up as a circle in some of the initial slices of MRI. What I want to do is to project the exact outline of the circle onto a few other deeper slices, so that it can be found, where exactly the projection of the chamber lies in the successive slices. Thereby, the region that would be encircled if the rod-like chamber were to be inserted further inside can also be found. Simply put, it is like overlaying a circle of specified diameter and position onto each successive slice.
I tried doing it with the view_nii function with the circle saved in .jpeg/.fig formats, giving the figure handle and the nii, using the description in the help section of the view function. But I had trouble with the figure properties, especially the function ‘set’. I get errors in almost every figure property, starting from ‘menu bar’ at line number 291 in the program. I am a beginner in matlab. I was actually surprised I could use other functions, which is why I say that your file is so user-friendly. I would be happy to know how I can go about doing it…
To sum up, all I want to know is, if there is a way of plotting a circle,( given its radius and position in those co-ordinates), onto successive slices.