help > Open/convert image/vector files to generate VOI
Showing 1-2 of 2 posts
Display:
Results per page:
Dec 5, 2021  12:12 PM | jonathanattwood
Open/convert image/vector files to generate VOI
Hi, 

Is it possible to convert an image file (jpeg/png) or vector file into a file that will open as a 2D region of interest in MRIcron? I need to generate 3D VOIs by interpolating between 2D lesion drawings like the one attached, and would rather recreate the lesion exactly rather than trace it if possible. 

Thanks for your help.
Attachment: Picture 1.png
Dec 6, 2021  04:12 PM | Chris Rorden
RE: Open/convert image/vector files to generate VOI
This is beyond the scope of my viewing software.
 1. Convert 2D PNG to NIfTI 2D
      https://stackoverflow.com/questions/52535729/convert-png-files-to-nii-nifti-files
 2. Convert 2D NIfTI to 3D NIfTI using Matlab, Python or fslmerge.
 3. Set the origin, orientation and scale. Perhaps SPM's Display function can help here. Be aware that CT scans of the brain were often acquired with gantry tilt, and the slices will be pitched relative to MNI space.