Check study instances whether they have image data based on sopClassUid or rows (JPEG and PNG images do not have sopClassUid)

This commit is contained in:
Evren Ozkan 2016-06-03 12:37:59 -04:00
parent 896cc715ea
commit 6f0f1dc0ea
2 changed files with 4 additions and 4 deletions

View File

@ -22,9 +22,9 @@ createStacks = function(study) {
}
// Don't display thumbnails for non-image modalities
// All imaging modalities must have a valid value for sopClassUid
// All imaging modalities must have a valid value for sopClassUid or rows
var anInstance = series.instances[0];
if (!anInstance || !isImage(anInstance.sopClassUid)) {
if (!anInstance || (!isImage(anInstance.sopClassUid) && !anInstance.rows)) {
return;
}

View File

@ -533,9 +533,9 @@ function defaultHangingProtocol(inputData) {
study.seriesList.forEach(function(series) {
// Ensure that the series has image data
// (All images have sopClassUid)
// (All images have sopClassUid or rows)
var anInstance = series.instances[0];
if (!anInstance || !isImage(anInstance.sopClassUid)) {
if (!anInstance || (!isImage(anInstance.sopClassUid) && !anInstance.rows)) {
return;
}