resized image in edge detection
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package de.unidue.nes.gpu.tasks.taskdefinitions;
|
||||
|
||||
import org.opencv.core.Mat;
|
||||
import org.opencv.core.Size;
|
||||
import org.opencv.imgcodecs.Imgcodecs;
|
||||
import org.opencv.imgproc.Imgproc;
|
||||
|
||||
@@ -25,6 +26,7 @@ public class EdgeDetectionTask implements Task {
|
||||
@Override
|
||||
public void runTask() {
|
||||
Mat image = Imgcodecs.imread("src/main/resources/theSimpsons.jpg");
|
||||
Imgproc.resize(image, image, new Size(), 10, 10);
|
||||
Imgproc.medianBlur(image, image, 5);
|
||||
Mat gray = new Mat();
|
||||
Imgproc.cvtColor(image, gray, Imgproc.COLOR_BGR2GRAY);
|
||||
|
||||
Reference in New Issue
Block a user