1 package org.opencv.test.photo;
2 
3 import org.opencv.core.Core;
4 import org.opencv.core.CvType;
5 import org.opencv.core.Point;
6 import org.opencv.photo.Photo;
7 import org.opencv.test.OpenCVTestCase;
8 import org.opencv.imgproc.Imgproc;
9 
10 public class PhotoTest extends OpenCVTestCase {
11 
testInpaint()12     public void testInpaint() {
13         Point p = new Point(matSize / 2, matSize / 2);
14         Imgproc.circle(gray255, p, 2, colorBlack, Core.FILLED);
15         Imgproc.circle(gray0,   p, 2, colorWhite, Core.FILLED);
16 
17         Photo.inpaint(gray255, gray0, dst, 3, Photo.INPAINT_TELEA);
18 
19         assertMatEqual(getMat(CvType.CV_8U, 255), dst);
20     }
21 
22 }
23