Skip to content

Commit

Permalink
Make if test more specific, relates to #1225
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Sep 23, 2022
1 parent fff0a2d commit 9d4485f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dicom/dicomParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,9 @@ dwv.dicom.DicomParser.prototype.interpretElement = function (
(vr === 'OB' || vr === 'OW' || vr === 'ox')) {
// check bits allocated and VR
// https://dicom.nema.org/medical/dicom/2022a/output/chtml/part05/sect_A.2.html
if (bitsAllocated > 8 && vr !== 'OW') {
if (bitsAllocated > 8 && vr === 'OB') {
dwv.logger.warn(
'Reading DICOM pixel data with bitsAllocated>8 and vr is not OW.'
'Reading DICOM pixel data with bitsAllocated>8 and OB VR.'
);
}
// read
Expand Down

0 comments on commit 9d4485f

Please sign in to comment.