Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

How to load 3D image?

Hi,
I use c++/cx and DirectX to do the development. I would like to know how to load a 3D medical image data with format such as DICOM or Raw format?
BTW, what's the maximal size allowed to be loaded?
For rendering, what's the size limit?

Thanks.

Answers

  • Options
    AmerAmerAmerAmer ✭✭✭
    edited January 2017

    When you say image, are saying a 2D picture or a 3d mesh? Images are 2D and are represented by an array 32 bits (rgba) for each pixel. Mesh is represented by a bunch of data such as vectors for positions, indexes, normals, colors, uv's, textures and sometimes animation transformations.

    If you are dealing with raw data and you know that its is aligned for a specific input layout, you might be able to create ID3D11Buffers. Otherwise you'll have to parse the ate and create new ones they are gpu ready.

    A much easier method is to get the mesh in obj or fbx formats and read it into your buffers. These file formats are standardized and are meant for to transfer between programs. DirectXTK has some good fbx import code as well as other utilities that can help you render and animate meshes. Check out https://github.com/Microsoft/DirectXTK . This might be a good starting point if you've never done this.

    The lens has about 900 mb of ram, So pushing a buffer that big will cause a lot problems. You'll have to deal with buffer streaming in that case. That in itself is a completely different story.

    http://www.redsprocketstudio.com/
    Developer | Check out my new project blog

  • Options

    Thanks a lot.
    What I have is a 3D image constructed by multiple 2D images with pixel format short. I want to load it into 3D texture to use hardware interpolation.
    You mean HoloLens has 900 mb of ram. This is system ram or GPU ram or both?
    Does HoloLens has separate GPU ram?

    Thank you very much.

Sign In or Register to comment.