Пример #1
0
  @Override
  public void process(Photo src, Photo dst) {
    float radius = Math.max(MIN_RADIUS, RADIUS_RATIO * Math.min(src.width(), src.height()));

    PointF[] a = new PointF[redeyePositions.size()];
    ImageUtils.nativeRedEye(
        src.bitmap(), dst.bitmap(), redeyePositions.toArray(a), radius, DEFAULT_RED_INTENSITY);
  }
Пример #2
0
 @Override
 public void process(Photo src, Photo dst) {
   ImageUtils.nativeFisheye(src.bitmap(), dst.bitmap(), 0.5f, 0.5f, scale);
 }
Пример #3
0
 @Override
 public void process(Photo src, Photo dst) {
   ImageUtils.nativeWarmify(src.bitmap(), dst.bitmap());
 }