NIFTI Randomized Parcellation


As part of my research master, I work on Parcellation of MRI images.

if we have a nifti image of dim (182,218,182) and we want to do 100 random parcellation (each parcellation will cluster brain into k regions) using ReNA from nilearn, how are we going to do that?
knowing that in the end, we want to have a matrix which contains 100 parcels * k regions,
that is to say for each parcellation, we are going to have k regions and in each region we are going to have the average of the signals.

thank you very much.