Mercurial > hg > orthanc-ohif
diff Sources/OrthancExplorer.js @ 36:5f8d66f7fa06
Enabled support for segmentation and microscopy modes
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 15 Mar 2024 17:52:06 +0100 |
parents | 36049c04ee27 |
children |
line wrap: on
line diff
--- a/Sources/OrthancExplorer.js Fri Mar 15 15:40:27 2024 +0100 +++ b/Sources/OrthancExplorer.js Fri Mar 15 17:52:06 2024 +0100 @@ -90,6 +90,22 @@ } }); + AddOhifViewer(viewers, 'Segmentation', function() { + if (${USE_DICOM_WEB}) { + window.open('../ohif/segmentation?StudyInstanceUIDs=' + studyInstanceUid); + } else { + window.open('../ohif/segmentation?url=../studies/' + studyId + '/ohif-dicom-json'); + } + }); + + AddOhifViewer(viewers, 'Microscopy', function() { + if (${USE_DICOM_WEB}) { + window.open('../ohif/microscopy?StudyInstanceUIDs=' + studyInstanceUid); + } else { + window.open('../ohif/microscopy?url=../studies/' + studyId + '/ohif-dicom-json'); + } + }); + // Launch the dialog $('#dialog').simpledialog2({ mode: 'blank',