docs: public INDArray asMatrix(Object image) throws IOException {
          INDArray array = null;
          if (array == null) {
              try {
                  array = new AndroidNativeImageLoader(this).asMatrix(image);
              } catch (NoClassDefFoundError e) {
                  // ignore
              }
          }
          if (array == null) {
              try {
                  array = new Java2DNativeImageLoader(this).asMatrix(image);
              } catch (NoClassDefFoundError e) {
                  // ignore
              }
          }
          return array;
      }