class ImageLoader extends BaseImageLoader {

    protected int[][] toIntArrayArray(BufferedImage image) {
        int w = image.getWidth(), h = image.getHeight();
        int[][] ret = new int[h][w];
        if (image.getRaster().getNumDataElements() == 1) {
            Raster raster = image.getRaster();
            for (int i = 0; i < h; i++) {
                for (int j = 0; j < w; j++) {
                    ret[i][j] = raster.getSample(j, i, 0);
                }
            }
        } else {
            for (int i = 0; i < h; i++) {
                for (int j = 0; j < w; j++) {
                    ret[i][j] = image.getRGB(j, i);
                }
            }
        }
        return ret;
    }

    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);

}