Skip to content

Commit

Permalink
additional updates
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashkumar committed Nov 6, 2023
1 parent 431a059 commit 8161503
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions read.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,7 @@ func (r *reader) readNativeFrames(parsedData *Dataset, fc chan<- *frame.Frame, v
// TODO(https://github.com/suyashkumar/dicom/issues/294): Add support for
// signed Native PixelData.
pixelDataIsSigned := false
pxRep, err := parsedData.FindElementByTag(tag.PixelRepresentation)
if err == nil {
if pxRep, err := parsedData.FindElementByTag(tag.PixelRepresentation); err == nil {
pxRepValue := MustGetInts(pxRep.Value)
if len(pxRepValue) > 0 && pxRepValue[0] != 0 {
pixelDataIsSigned = true
Expand Down

0 comments on commit 8161503

Please sign in to comment.