changing the way wadors imageId is created
This commit is contained in:
parent
943e728f20
commit
4867f72df4
@ -7,8 +7,10 @@ import { OHIF } from 'meteor/ohif:core';
|
|||||||
* @returns {string} The imageId to be used by Cornerstone
|
* @returns {string} The imageId to be used by Cornerstone
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export function getWADORSImageId(instanceMetada) {
|
export function getWADORSImageId(instance) {
|
||||||
const instance = instanceMetada.getData();
|
const uri = Meteor.absoluteUrl(instance.wadorsuri);
|
||||||
|
const imageId = `wadors:${uri}`;
|
||||||
|
|
||||||
let columnPixelSpacing = 1.0;
|
let columnPixelSpacing = 1.0;
|
||||||
let rowPixelSpacing = 1.0;
|
let rowPixelSpacing = 1.0;
|
||||||
|
|
||||||
@ -57,7 +59,7 @@ export function getWADORSImageId(instanceMetada) {
|
|||||||
instance: instance
|
instance: instance
|
||||||
};
|
};
|
||||||
|
|
||||||
const imageId = cornerstoneWADOImageLoader.imageManager.add(image);
|
cornerstoneWADOImageLoader.wadors.metaDataManager.add(imageId, image);
|
||||||
|
|
||||||
OHIF.log.info('WADO-RS ImageID: ' + imageId);
|
OHIF.log.info('WADO-RS ImageID: ' + imageId);
|
||||||
return imageId;
|
return imageId;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user