code: public INDArray asMatrix(BufferedImage image, boolean flipChannels) throws IOException {
          if (converter == null) {
              converter = new OpenCVFrameConverter.ToMat();
          }
          return asMatrix(converter.convert(converter2.getFrame(image, 1.0, flipChannels)));
      }
docs: Loads a {@link INDArray} from a {@link BufferedImage}.
  
  @param image as a BufferedImage
  @param flipChannels to have a format like TYPE_INT_RGB (ARGB) output as BGRA, etc
  @return the loaded matrix
  @throws IOException