public INDArray toBgr(InputStream inputStream){
  try {
    BufferedImage image=ImageIO.read(inputStream);
    return toBgr(image);
  }
 catch (  IOException e) {
    throw new RuntimeException("Unable to load image",e);
  }
}

public INDArray toBgr ( InputStream inputStream ) { try { BufferedImage image = ImageIO . read ( inputStream ) ; return toBgr ( image ) ; } catch ( IOException e ) { throw new RuntimeException ( "Unable to load image" , e ) ; } }
convert an input stream to an bgr spectrum image
