class ImageLoader extends BaseImageLoader {

    protected INDArray toINDArrayBGR(BufferedImage image) {
        int height = image.getHeight();
        int width = image.getWidth();
        int bands = image.getSampleModel().getNumBands();

        byte[] pixels = ((DataBufferByte) image.getRaster().getDataBuffer()).getData();
        int[] shape = new int[] {height, width, bands};

        INDArray ret2 = Nd4j.create(1, pixels.length);
        for (int i = 0; i < ret2.length(); i++) {
            ret2.putScalar(i, ((int) pixels[i]) & 0xFF);
        }
        return ret2.reshape(shape).permute(2, 0, 1);
    }

    public  ImageLoader();
    public  ImageLoader(int height, int width);
    public  ImageLoader(int height, int width, int channels);
    public  ImageLoader(int height, int width, int channels, boolean centerCropIfNeeded);

}