How to plot ROI boundaries/contour from a mask?

Hi, I am looking for the most efficient and possibly customizable way of plotting/overlaying the boundaries of a given mask, like in the figure below

any software/platform is welcome.

thanks!

You can use nilearn:
https://nilearn.github.io/plotting/index.html#adding-overlays-edges-contours-contour-fillings-and-markers

1 Like