Plotting MRI figures from SPM

Hi neuroimagers!

I am trying to create nice figures for a paper i am writing about associations between fitness and gray matter volume using a whole brain analytical approach. I used SPM for this vbm analyses.

My question is: does anyone know how can i extract each cluster individually from the results.nii file in a independent .nii file using mricrogl, or fsleyes or itk-snap?

Thank you so much!!

If you have access to SPM with octave or SPM I had put aside some functions to help do things like this.

Some of the code was taken from there: SPM/How-to - Wikibooks, open books for an open world?