Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
266 views
in Technique[技术] by (71.8m points)

dicom - Length of PixelStream in EvilDicom library

I can't reconcile the length of the PixelStream containing the image, with the parameters for this particular image.

0028,0002 (SamplesPerPixel): 1
0028,0004 (PhotometricInterpretation): MONOCHROME2
0028,0010 (Rows): 432
0028,0011 (Columns): 432
0028,0100 (BitsAllocated): 16
0028,0101 (BitsStored): 12
0028,0102 (HighBit): 11

So it seems to me that this stream should be 432*432*2=365472 bytes long, however, EvilDicom reports a length of 155868, based on the debug in Visual Studio 2013. I cannot, however find any evidence of any compression though and the values of the array seem like standard integers in the range 0-255. LossyImageCompression is set to 0. The image originated from an MR machine and is part of a stack.

Could some help me explain some of this please?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Transfer Syntax (0002:0010), a DICOM header element, will indicate the encoding/compression used within a file. Another indication of compressed stream is the location of pixel stream within the dataset. If stored inside the second ITEM element (FFFE:E000) under Pixel Data Element (7FE0:0010), you are dealing with compressed stream.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...