public int [ ] getUnsignedPixelValues ( short [ ] pixelValues ) { int [ ] unsignedValues = new int [ pixelValues . length ] ; for ( int i = 0 ; i < pixelValues . length ; i ++ ) { unsignedValues [ i ] = getUnsignedPixelValue ( pixelValues [ i ] ) ; } return unsignedValues ; }
Get the unsigned pixel values . The values saved as unsigned shorts in the short array is returned as an integer which stores the positive 16 bit value