DICOM tag with missing VR loads inconsistently (Philips ScaleSlope)
4 次查看(过去 30 天)
显示 更早的评论
I have two Philips mDixon datasets. In both, the VR for ScaleSlope is apparently missing:
(2005,100D) 00 A0 AA 44 # 1, 4
This should be read as a single value. In fact, dcminfo reads it correctly in one case: ScaleSlope = 1365, and incorrectly in the other: ScaleSlope = 0
160
170
68
Both times, I am using the same dictionary with the tag filled in (2005,100d) FL ScaleSlope 1.
1) What might cause one case to read correctly and the other not?
2) Is it possible to convert the string of 4 int8 numbers to a single 'single data type' number?
Many thanks,
Bogdan
0 个评论
采纳的回答
Walter Roberson
2021-7-15
A = uint8(sscanf('00 A0 AA 44', '%2x'))
typecast(A, 'single')
(Thank you for mentioning your release -- that saved me from showing you code that would not work in your release)
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!