mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
627 B
23 lines
627 B
12 years ago
|
package org.opencv.test.photo;
|
||
|
|
||
|
import org.opencv.core.Core;
|
||
|
import org.opencv.core.CvType;
|
||
|
import org.opencv.core.Point;
|
||
|
import org.opencv.photo.Photo;
|
||
|
import org.opencv.test.OpenCVTestCase;
|
||
10 years ago
|
import org.opencv.imgproc.Imgproc;
|
||
12 years ago
|
|
||
|
public class PhotoTest extends OpenCVTestCase {
|
||
|
|
||
|
public void testInpaint() {
|
||
|
Point p = new Point(matSize / 2, matSize / 2);
|
||
10 years ago
|
Imgproc.circle(gray255, p, 2, colorBlack, Core.FILLED);
|
||
|
Imgproc.circle(gray0, p, 2, colorWhite, Core.FILLED);
|
||
12 years ago
|
|
||
|
Photo.inpaint(gray255, gray0, dst, 3, Photo.INPAINT_TELEA);
|
||
|
|
||
|
assertMatEqual(getMat(CvType.CV_8U, 255), dst);
|
||
|
}
|
||
|
|
||
|
}
|