code: public INDArray toRaveledTensor(BufferedImage image) {
          try {
              image = scalingIfNeed(image, false);
              return toINDArrayBGR(image).ravel();
          } catch (Exception e) {
              throw new RuntimeException("Unable to load image", e);
          }
      }
docs: Convert an image in to a raveled tensor of
  the bgr values of the image
  
  @param image the image to parse
  @return the raveled tensor of bgr values