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 committed 2016-06-03 12:37:59 -04:00
1 parent 896cc715ea
commit 6f0f1dc0ea
2 files changed
+4 -4

No files matched your search

+2 -2
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;
}