def read_nih_image_header(fh, byteorder, dtype, count):
 a = fh.read_record(NIH_IMAGE_HEADER, byteorder=byteorder)
 a = a.newbyteorder(byteorder)
 a.xunit = a.xunit[:a._xunit_len]
 a.um = a.um[:a._um_len]
 return a

def read_nih_image_header ( fh , byteorder , dtype , count ) : a = fh . read_record ( NIH_IMAGE_HEADER , byteorder = byteorder ) a = a . newbyteorder ( byteorder ) a . xunit = a . xunit [ : a . _xunit_len ] a . um = a . um [ : a . _um_len ] return a
read nih_image_header tag from file and return as numpy .