public short [ ] getPixelValues ( BufferedImage image ) { validateImageType ( image ) ; WritableRaster raster = image . getRaster ( ) ; short [ ] pixelValues = getPixelValues ( raster ) ; return pixelValues ; }
Get the pixel values of the buffered image as unsigned shorts