Added support for multi-frame images (e.g. ultrasound). Updated cornerstoneTools with mouseClick bug fix

This commit is contained in:
Erik Ziegler committed 2015-11-26 10:36:34 +01:00
1 parent 5010307b6e
commit 462820f0aa
4 files changed
+42 -6

No files matched your search

+9 -2
View File
@@ -4,13 +4,20 @@
* @param instance
* @returns {string} The imageId to be used by Cornerstone
*/
getImageId = function(instance) {
getImageId = function(instance, frame) {
if (!instance) {
return;
}
if (instance.wadouri) {
return 'dicomweb:' + instance.wadouri; // WADO-URI
var imageId = 'dicomweb:' + instance.wadouri; // WADO-URI;
if (frame !== undefined) {
imageId += '&frame=' + frame;
}
return imageId;
} else {
// TODO= Check multiframe image support with WADO-RS
return getWADORSImageId(instance); // WADO-RS Retrieve Frame
}
};