Image Processing and 3D using Unity and C#
Budget: ₹1,500 – ₹12,500 INR
Image processing and 3D graphics
Project is to be done in Unity using the C# programming language. No other platform is accepted.
You are provided with a T1-weighted MRI image of the human brain (brain.nii).
• Link to image: https://drive.google.com/file/d/1cLonE3o90Ni6dA3f7VL-IncvQGSxdLqM/view?usp=sharing
Objective: your goal is as follows:
1) Install Unity and create a C# script that can load the .nii (nifti) image into a C# array
a. https://unity.com/ - Unity homepage. Unity is free to download and use. Put brain.nii in ‘resources’.
b. https://nifti.nimh.nih.gov/nifti-1 – describes the nifti data format
2) In C#, create a program that segments the gray matter from the brain (based on the values in the array). A
simple threshold should suffice.
a. https://en.wikipedia.org/wiki/Thresholding_(image_processing)
3) Once you have segmented the gray matter, use marching cubes (or a similar algorithm) to generate a surface
mesh, and display the mesh in Unity.
a. https://en.wikipedia.org/wiki/Marching_cubes
b. https://docs.unity3d.com/ScriptReference/Mesh.html
Expected output:
Because you are displaying a mesh, you should be
able to modify the opacity of the brain →
• Opacity can be controlled using the
‘alpha’ channel of the mesh vertices.
Project is to be done in Unity using the C# programming language. No other platform is accepted.
You are provided with a T1-weighted MRI image of the human brain (brain.nii).
• Link to image: https://drive.google.com/file/d/1cLonE3o90Ni6dA3f7VL-IncvQGSxdLqM/view?usp=sharing
Objective: your goal is as follows:
1) Install Unity and create a C# script that can load the .nii (nifti) image into a C# array
a. https://unity.com/ - Unity homepage. Unity is free to download and use. Put brain.nii in ‘resources’.
b. https://nifti.nimh.nih.gov/nifti-1 – describes the nifti data format
2) In C#, create a program that segments the gray matter from the brain (based on the values in the array). A
simple threshold should suffice.
a. https://en.wikipedia.org/wiki/Thresholding_(image_processing)
3) Once you have segmented the gray matter, use marching cubes (or a similar algorithm) to generate a surface
mesh, and display the mesh in Unity.
a. https://en.wikipedia.org/wiki/Marching_cubes
b. https://docs.unity3d.com/ScriptReference/Mesh.html
Expected output:
Because you are displaying a mesh, you should be
able to modify the opacity of the brain →
• Opacity can be controlled using the
‘alpha’ channel of the mesh vertices.