class NativeImageLoader extends BaseImageLoader {

    protected Mat centerCropIfNeeded(Mat img) {
        int x = 0;
        int y = 0;
        int height = img.rows();
        int width = img.cols();
        int diff = Math.abs(width - height) / 2;

        if (width > height) {
            x = diff;
            width = width - diff;
        } else if (height > width) {
            y = diff;
            height = height - diff;
        }
        return img.apply(new Rect(x, y, width, height));
    }

    public  NativeImageLoader();
    public  NativeImageLoader(int height, int width);
    public  NativeImageLoader(int height, int width, int channels);
    public  NativeImageLoader(int height, int width, int channels, boolean centerCropIfNeeded);
    public  NativeImageLoader(int height, int width, int channels, ImageTransform imageTransform);
    public  NativeImageLoader(int height, int width, int channels, MultiPageMode mode);
    protected  NativeImageLoader(NativeImageLoader other);

}