docs: @Override
      protected ImageWritable doTransform(ImageWritable image, Random random) {
          if (image == null) {
              return null;
          }
          Mat mat = converter.convert(image.getFrame());
          Mat result = new Mat();
          srch = mat.rows();
          srcw = mat.cols();
          resize(mat, result, new Size(newWidth, newHeight));
          return new ImageWritable(converter.convert(result));
      }