Use DICOM StudyInstanceUID to access a study in the Osimis viewer?

890 views
Skip to first unread message

bcli...@systemsbiology.org

unread,
Apr 6, 2018, 2:19:32 PM4/6/18
to Orthanc Users
Hello,

I'm considering integrating Osimis into our ISB Cancer Genomics Cloud webapp. The goal is to enable viewing radiology images that are associated with some cohort of patients that a researcher has generated by some exploration and analysis of the TCGA, TARGET, CCLE and other data sets. We have extracted DICOM metadata from TCGA radiology images into Google BigQuery, and from that can identify the DICOM StudyInstanceUID of studies associated with a given cohort. The expectation is that, for a given cohort, our webapp will present a table of associated studies, and from which a researcher can select a study to view. In particular, we do not need to expose Orthanc Explorer, just an instance of Osimis when a user clicks on a study in the table.

For this purpose, I would like to access a study in the Osimis viewer using the study's DICOM StudyInstanceUID, e.g. something like:
http://xx.xx.xx.xx/osimis-viewer/app/index.html?study=1.3.6.1.4.1.14519.5.2.1.6354.4016.268104186317356302042773925138
Can you suggest how I might do that? Is there a table in the database that maps StudyInstanceUID to UUID?

Regards,
Bill

Bryan Dearlove

unread,
Apr 6, 2018, 8:12:21 PM4/6/18
to Orthanc Users
You can use a REST API to query for the Orthanc ID, then open the study with that:
curl --request POST --url http://localhost:8042/tools/lookup --data 1.3.6.1.4.1.14519.5.2.1.6354.4016.268104186317356302042773925138

Then with the Orthanc ID you can open the study:

Sébastien Jodogne

unread,
Apr 7, 2018, 9:53:57 AM4/7/18
to Orthanc Users
Dear Bill,

I hereby confirm Bryan's answer.

Please keep the Orthanc project updated: Your integration project for ISB-CGC indeed looks extremely interesting to us, as we fully support any open science initiative on the top of our work.

Kind Regards,
Sébastien-

bcli...@systemsbiology.org

unread,
Apr 12, 2018, 11:47:46 AM4/12/18
to Orthanc Users
Thanks Bryan. Exactly what I was looking for. 

And Sebastien, we will definitely keep you updated, and acknowledge Orthanc.

Now, while I have your attention: When I drag a series into the Osimis display window, the scale at the bottom shows the progress of instance loading. What is the distinction between red and green? It appears that when a segment turns red, the corresponding instance is loaded. What does it mean when that segment later turns green?

Regards,
Bill

Bryan Dearlove

unread,
Apr 12, 2018, 11:00:59 PM4/12/18
to Orthanc Users
Someone can correct me if I am wrong. When you drag a series to the window it will go read as the series images are loaded, once they are all loaded and in full quality the bar will go green letting you know all images are there. 

bcli...@systemsbiology.org

unread,
Apr 13, 2018, 12:03:20 AM4/13/18
to Orthanc Users
What I see is that, yes, the segments go red as the corresponding instances are loaded. Then the segments go green individually in some arbitrary order. 

I think you are suggesting that going green means full resolution. In fact, I demonstrated Osimis to my group today and we tried to see whether "going green" might meant an improvement in image quality from the initial "red quality", but we could not see any change in image quality.

Not a big deal, except that when I add Osimis functionality to our documentation I would like to be able to explain the red-green thing!

Bill


On Friday, April 6, 2018 at 11:19:32 AM UTC-7, bcli...@systemsbiology.org wrote:
Message has been deleted

Sébastien Jodogne

unread,
Apr 13, 2018, 2:25:51 AM4/13/18
to Orthanc Users
Hi Bill,

In the Osimis Web viewer, images are tagged as "red" if they are downloaded in the JPEG format (destructive compression), whereas "green" is used to indicate the use of the PNG format (lossless compression). Furthermore, JPEG images are encoded in 8 bits per color channel, whereas the source DICOM images are generally encoded in 12-to-16 bits, which can only be represented by PNG.

As a consequence, even if the degradation in quality is mostly unnoticeable in "red" images, it is nonetheless affected by compression artifacts and by a smaller dynamic range. These approximations disappear once the image becomes "green", that are pixel-to-pixel equivalent to the source DICOM image. The use of "red" JPEG images allows to highly reduce the network bandwidth, in order to quickly provide a good-quality approximation of the full-resolution "green" image, hereby greatly enhancing user experience.

From a medical perspective, (tele)radiologists should thus only do a diagnostic/therapeutic use of the images once they are tagged as "green".

I hope this clarifies things.

Regards,
Sébastien-

bcli...@systemsbiology.org

unread,
Apr 17, 2018, 12:06:20 AM4/17/18
to Orthanc Users
Hello Sébastian,

Thanks for the explanation. This means that Orthanc is saving each instance (at least the image part) as both a JPEG and a PNG? I think the original DICOM file has only a lossless image. Is that correct? 

Regards,
Bill

On Friday, April 6, 2018 at 11:19:32 AM UTC-7, bcli...@systemsbiology.org wrote:

bcli...@systemsbiology.org

unread,
Apr 20, 2018, 1:49:08 PM4/20/18
to Orthanc Users
Thanks for that explanation Sebastian.

A couple of other questions regarding Osimis:
-Can you explain what the "Presets" are doing? I realize that there is some kind of filtering of intensity values going on, but have figured out quite what's happening. 
-The pixel probe tool seems to report intensity values of monochrome instances in "SP" and "MO" units. What are those? 
-Finally, I note that the viewer is completely anonymous...there is no indication of Orthanc or Osimis. Is this by design? Nevertheless, we want to give credit to you folks. When we open an instance of Osimis. How would you like us to do that? 

Regards,
Bill

On Friday, April 6, 2018 at 11:19:32 AM UTC-7, bcli...@systemsbiology.org wrote:

bcli...@systemsbiology.org

unread,
Apr 20, 2018, 9:53:41 PM4/20/18
to Orthanc Users
Folks,

In working with Osiris, I noticed that when an elliptical ROI is drawn on an RGB color instance, no mean or standard deviation values are displayed. However, when a rectangular ROI us drawn on the same RGB instance, a single mean value and a single SD value are displayed. On a monochrome instance, each ROI shows single values for mean and SD. 

Bill



On Friday, April 6, 2018 at 11:19:32 AM UTC-7, bcli...@systemsbiology.org wrote:

bcli...@systemsbiology.org

unread,
May 1, 2018, 12:34:40 PM5/1/18
to Orthanc Users
Sébastien, et al,

Would you kindly respond to some questions which I asked earlier?
-Can you explain what the "Presets" are doing? I realize that there is some kind of filtering of intensity values going on, but have not figured out quite what's happening. 
-The pixel probe tool seems to report intensity values of monochrome instances in "SP" and "MO" units. What are those? 
-Finally, I note that the viewer is completely anonymous...there is no indication of Orthanc or Osimis. Is this by design? Nevertheless, we want to give credit to you folks when we open an instance of Osimis. How would you like us to do that? 

Regards,
Bill

On Friday, April 6, 2018 at 11:19:32 AM UTC-7, bcli...@systemsbiology.org wrote:

Alain Mazy

unread,
May 2, 2018, 8:06:01 AM5/2/18
to bcli...@systemsbiology.org, Orthanc Users
Hi Brian,

On Tue, May 1, 2018 at 6:34 PM, <bcli...@systemsbiology.org> wrote:
Sébastien, et al,

Would you kindly respond to some questions which I asked earlier?
-Can you explain what the "Presets" are doing? I realize that there is some kind of filtering of intensity values going on, but have not figured out quite what's happening. 

Windowing center and width are a way to modify the image contrast/brightness.  Presets can be provided in the image itself or in the configuration file.
 
-The pixel probe tool seems to report intensity values of monochrome instances in "SP" and "MO" units. What are those? 

 
-Finally, I note that the viewer is completely anonymous...there is no indication of Orthanc or Osimis. Is this by design? Nevertheless, we want to give credit to you folks when we open an instance of Osimis. How would you like us to do that? 

There's no easy way to do that and we're fine with not displaying the Orthanc/Osimis logos.

Best regards,

Alain.
 

Regards,
Bill

On Friday, April 6, 2018 at 11:19:32 AM UTC-7, bcli...@systemsbiology.org wrote:
Hello,

I'm considering integrating Osimis into our ISB Cancer Genomics Cloud webapp. The goal is to enable viewing radiology images that are associated with some cohort of patients that a researcher has generated by some exploration and analysis of the TCGA, TARGET, CCLE and other data sets. We have extracted DICOM metadata from TCGA radiology images into Google BigQuery, and from that can identify the DICOM StudyInstanceUID of studies associated with a given cohort. The expectation is that, for a given cohort, our webapp will present a table of associated studies, and from which a researcher can select a study to view. In particular, we do not need to expose Orthanc Explorer, just an instance of Osimis when a user clicks on a study in the table.

For this purpose, I would like to access a study in the Osimis viewer using the study's DICOM StudyInstanceUID, e.g. something like:
http://xx.xx.xx.xx/osimis-viewer/app/index.html?study=1.3.6.1.4.1.14519.5.2.1.6354.4016.268104186317356302042773925138
Can you suggest how I might do that? Is there a table in the database that maps StudyInstanceUID to UUID?

Regards,
Bill




--

Alain Mazy / CTO 
a...@osimis.io / +32 494 31 67 27

Osimis

OSIMIS S.A. 
Rue bois Saint-Jean 15/1BE-4102 Seraing 
www.osimis.io

Twitter LinkedIn


Sébastien Jodogne

unread,
May 3, 2018, 3:12:33 PM5/3/18
to Orthanc Users
Hello,

Regarding this part of the question:


This means that Orthanc is saving each instance (at least the image part) as both a JPEG and a PNG? I think the original DICOM file has only a lossless image. Is that correct? 

No, Orthanc only saves the source DICOM file, together with a summary of its tags formatted as a JSON file. In other words, Orthanc saves no JPEG or PNG version of the image. You can find more technical information in the Orthanc Book:

Note however that the Orthanc Web viewer does manage a cache on the filesystem that contains JPEG/PNG versions of the DICOM images, to speed up teleradiology applications.

Also, note that the Osimis Web viewer stores reduced quality images as attachments, to improve user experience:

HTH,
Sébastien-

Massimo Pesci

unread,
Nov 11, 2018, 10:46:08 AM11/11/18
to Orthanc Users
Sorry, what si the meaning of orange bar during loading ?

Max

Alain Mazy

unread,
Nov 13, 2018, 4:59:14 AM11/13/18
to pes...@gmail.com, orthan...@googlegroups.com
This shows the quality of the image currently displayed:
- red: very low quality
- orange: medium quality (reduced resolution and lossy compression)
- green: highest quality (lossless)

On Sun, Nov 11, 2018 at 4:46 PM Massimo Pesci <pes...@gmail.com> wrote:
Sorry, what si the meaning of orange bar during loading ?

Max


--

Alain Mazy / CTO 
a...@osimis.io / +32 494 31 67 27

Osimis

OSIMIS S.A. 
Quai Banning 6BE-4000 Liège 
www.osimis.io

Reply all
Reply to author
Forward
0 new messages