public short getPixelValue ( BufferedImage image , int x , int y ) { validateImageType ( image ) ; WritableRaster raster = image . getRaster ( ) ; short pixelValue = getPixelValue ( raster , x , y ) ; return pixelValue ; }
Get the pixel value as an unsigned short