Re: Image header - 256 bytes out
Posted by Thomson Neil (EAST KENT HOSPITALS UNIVERSITY NHS FOUNDATION
TRUST) on Aug 11, 2010; 8:26am
URL: http://imagej.273.s1.nabble.com/Image-header-256-bytes-out-tp3687288p3687289.html
Thanks to all who replied,
(b1 << 8) + (b0 & 0xff) fixed the problem.
This now raises another question; I based my original code on the DICOM.java plugin. The implication is that the getShort() method is incorrect in that class, but I haven't noticed any problems using it.
Neil