{"version":"1.0","type":"rich","title":"Gist 5c36e7318dd5c85aa743","description":"This visualization displays a 16-slice mosaic of brain MRI scans across three orthogonal planes (x, y, z), with yellow contour lines outlining anatomical labels from a segmentation. The code loads NIfTI brain images and masks via nibabel, masks background data with NumPy masked arrays, and uses nipy’s `plot_anat` and `contour_map` to render slices with matplotlib subplots. It computes bounding boxes from the affine transformation to select meaningful cut coordinates, then arranges the slices in 4×4 grids per plane. The function supports optional contouring and saving each mosaic as a PNG image.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-5c36e7318dd5c85aa743?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}