@Override public Result process(CvPipeline pipeline) throws Exception { Mat mat = pipeline.getWorkingImage(); Imgproc.Laplacian(mat, mat, mat.depth()); return null; } }
protected void processOperation() { if(sobelString.equals(operation)){ Imgproc.Sobel(originalImage, image, -1, xOrder,yOrder,aperture,1.0, 0.0); // Core.convertScaleAbs(image, image); } else if(laplaceString.equals(operation)){ Imgproc.Laplacian(originalImage, image, -1, aperture, 1.0, 0.0); // Core.convertScaleAbs(image, image); // Imgproc.threshold(image, image, 1, 255, Imgproc.THRESH_BINARY_INV); } else if(cannyString.equals(operation)){ Imgproc.Canny(originalImage, image, lowThreshold, highThreshold, aperture, false); } else if(noneString.equals(operation)){ image = originalImage.clone(); } updateView(image); }