Conversions between representations
n unsigned bytes shorts float
nmin value 0 -128 -2048 -1
nmaxval 255 127 2047 1
nmedianval m 127.5 -0.5 -0.5 0
nrange r 255 255 4095 2
nAs shown in table a pixel prin representation r is converted to a pixel ps in representation s by the operation:
nps = ms+(rs(pr-mr))¸rr
n