Skip to content

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

Description

@thuythao1912

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!

Activity

  1. NicolasRannou commented on Jan 13, 2020

    @NicolasRannou
    Contributor

    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.

  2. NicolasRannou commented on Jan 13, 2020

    @NicolasRannou
    Contributor

    (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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Backlog Status

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions