Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to display each dicom file / each slice? #403

Open
thuythao1912 opened this issue Jan 13, 2020 · 2 comments
Open

How to display each dicom file / each slice? #403

thuythao1912 opened this issue Jan 13, 2020 · 2 comments

Comments

@thuythao1912
Copy link

I'm trying to display each dicom file like the left panel in the picture below:
image
(source : https://www.dicomlibrary.com)

But I just can display the black squares like this, for example, I choose 4 dicom files, so 4 blacks squares were created.
image

So how can I display the image inside the square? Maybe it relates to the the camera and the scene, but I don't know how to make it. Can anybody help me? Thank you a lot!

@NicolasRannou
Copy link
Member

You should be able to access the frame data via https://github.com/FNNDSC/ami/blob/master/src/models/models.frame.js#L203, then you can add it in an HTML img.

@NicolasRannou
Copy link
Member

(btw the best option may be to generate those previews as jpgs on the backend if that is an option for you!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants