Bug Fix: Only first frame of multiframe images is being rendered.
This commit is contained in:
1 parent
e2322ec05a
commit
75e027fee5
6 files changed
+29
-31
No files matched your search
@@ -21,9 +21,10 @@ function createAndAddStack(stackMap, study, displaySet) {
|
||||
const imageIds = [];
|
||||
let imageId;
|
||||
|
||||
displaySet.images.forEach((image, imageIndex) => {
|
||||
displaySet.images.forEach((instance, imageIndex) => {
|
||||
const image = instance.getData();
|
||||
const metaData = {
|
||||
instance: image,
|
||||
instance: image, // in this context, instance will be the data of the InstanceMetadata object...
|
||||
series: displaySet, // TODO: Check this
|
||||
study: study,
|
||||
numImages: numImages,
|
||||
@@ -56,7 +57,7 @@ function createAndAddStack(stackMap, study, displaySet) {
|
||||
|
||||
stackMap[displaySet.displaySetInstanceUid] = stack;
|
||||
|
||||
return imageIds;
|
||||
return stack;
|
||||
}
|
||||
|
||||
configuration = {
|
||||
|
||||
@@ -21,6 +21,15 @@ export class Metadata {
|
||||
return this._data;
|
||||
}
|
||||
|
||||
getDataProperty(propertyName) {
|
||||
let propertyValue;
|
||||
const _data = this._data;
|
||||
if (_data instanceof Object || typeof _data === 'object' && _data !== null) {
|
||||
propertyValue = _data[propertyName];
|
||||
}
|
||||
return propertyValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Static Methods
|
||||
*/
|
||||
|
||||
@@ -7,12 +7,7 @@ import { getWADORSImageId } from './getWADORSImageId';
|
||||
* @param instance
|
||||
* @returns {string} The imageId to be used by Cornerstone
|
||||
*/
|
||||
export function getImageId(instanceMetadata, frame) {
|
||||
if (!instanceMetadata) {
|
||||
return;
|
||||
}
|
||||
|
||||
const instance = instanceMetadata.getData();
|
||||
export function getImageId(instance, frame) {
|
||||
|
||||
if (!instance) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user