Use 'imagePlane' metadata type for 'imagePlaneModule' which is used by cornerstone tools
This commit is contained in:
parent
7837aaf2d9
commit
7757da149d
@ -335,6 +335,11 @@ export class MetadataProvider {
|
||||
* @returns {Object} Relevant metadata of the specified type
|
||||
*/
|
||||
provider(type, imageId) {
|
||||
// TODO: Cornerstone Tools use 'imagePlaneModule', but OHIF use 'imagePlane'. It must be consistent.
|
||||
if (type === 'imagePlaneModule') {
|
||||
type = 'imagePlane';
|
||||
}
|
||||
|
||||
const imageMetadata = this.metadataLookup.get(imageId);
|
||||
if (!imageMetadata) {
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user