mlavik1 / UnityVolumeRendering

Volume rendering, implemented in Unity3D. Want to support the project? Donate a small sum to Save The Children(https://www.savethechildren.net/) or another charity, and send me a message, and I will be greatly motivated!
https://fosstodon.org/@unityvolrend
MIT License
458 stars 129 forks source link

How to import Nifti as ASYNC #251

Closed CelaldoganGunes closed 6 months ago

CelaldoganGunes commented 6 months ago

Hi. We are using Hololens 2 and MRTK. We can use normal import functions to load NIFTI files to Unity. It works fine on our computers but when we try to import them inside Hololens, the application crashes. How can we load NIFTI with async? There is only DICOM example in docs.

mlavik1 commented 6 months ago

Hi! You should be able to achieve this using ImporterFactory.CreateImageFileImporter

However, On Hololens it will likely not be able to use SimpleITK and instead fallback to the Nifti.net implementation, which is not as stable.. I don't have a Hololens device, so I'm not able to look into this myself, but if you (or anyone reading this) find a good solution then feel free to share here! :)

I'm not familiar with Hololens, but AFAIK it runs Windows so it should be able to use the same SimpleITK DLLs there as on Windows? If so, that should maybe just be a matter of modifying SimpleITKManager.EnableSITK