Easy data visualization
Transform nifti images to gifs. If you have segmentation masks, you can add them as a second positional argument.
git clone https://github.com/hhaentze/Nifti2Gif.git
cd nifti2gif
pip install -e .
nifti2gif <image.nii.gz> --mask <mask.nii.gz>
--mask <str> # mask with encode classes
--output, -o <str> # name of the output file, default: "output.gif"
--duration <int> # frame duration in ms, default: 80
--no_edges # do not highlight edges of classes
--figsize <int> # figure size (x,x), default: 4
--cmap <str> # color map, default: "bone"
--alpha <float> # transparecy of labels, default: 0.3
--orientation <str> # orientation of image, default: "LPI"
--n_rot90 <int> # rotate the image x times, default: 1