/** * Perform an in place gaussian blur on the given Mat with a kernel of size kernel x kernel. * * @param mat * @param kernel * @return */ public static Mat gaussianBlur(Mat mat, int kernel) { Imgproc.GaussianBlur(mat, mat, new Size(kernel, kernel), 0); return mat; }
@Override public Result process(CvPipeline pipeline) throws Exception { Mat mat = pipeline.getWorkingImage(); Imgproc.GaussianBlur(mat, mat, new Size(kernelSize, kernelSize), 0); return null; } }
public FluentCv blurGaussian(int kernelSize, String... tag) { Imgproc.GaussianBlur(mat, mat, new Size(kernelSize, kernelSize), 0); return store(mat, tag); }
Imgproc.GaussianBlur(edgesImage_, edgesImage_, new Size(21, 21), blur);
private void processOperation() { if(noneString.equals(filterMode)){ output = image.clone(); } else { output = new Mat(image.rows(), image.cols(), image.type()); Size size = new Size(3.0, 3.0); if(blurString.equals(filterMode)){ Imgproc.blur(image, output, size); } else if(gaussianString.equals(filterMode)){ Imgproc.GaussianBlur(image, output, size, 0); } else if(medianString.equals(filterMode)){ Imgproc.medianBlur(image, output, 3); } else if(bilateralString.equals(filterMode)){ Imgproc.bilateralFilter(image, output, 9, 100, 100); } } }
Imgproc.GaussianBlur(imageScaledToPreview_, previewImage_, new Size(), blur); } else { imageScaledToPreview_.assignTo(previewImage_);
Imgproc.GaussianBlur(thresholdMat, thresholdMat, new Size(13, 13), 2, 2);
Imgproc.GaussianBlur(thresholdMat, thresholdMat, new Size(13, 13), 2, 2);