java - Android OpenCV 中的高斯低通滤波器。

标签 java android image-processing opencv image-recognition

为了制作出质量更好的图像,我对滤镜做了很多研究。过滤器分为低、中、高。经过对这几类滤波器的分析后,我得出的结论是高斯低通滤波器最适合我。我研究了如何在 Android 中编写它。

终于发现OpenCV有这个功能了。经过几天的头痛,我仍然找不到任何解决方案,因为我是 OpenCV 的新手。有人可以帮助我吗?

最佳答案

看一下本教程:

http://docs.opencv.org/doc/tutorials/imgproc/gausian_median_blur_bilateral_filter/gausian_median_blur_bilateral_filter.html#smoothing

更具体地说:

http://docs.opencv.org/modules/imgproc/doc/filtering.html?highlight=gaussianblur#gaussianblur

对于 Android 来说是这样的:

不要忘记导入 Imgproc。

import org.opencv.imgproc.Imgproc;
// (...)    
Imgproc.GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY=0, int borderType=Imgproc.BORDER_DEFAULT );

关于java - Android OpenCV 中的高斯低通滤波器。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12658965/

相关文章:

python - 如何在 python 中将图像转换为 16 位 zip (deflate) 压缩的 TIF?

matlab - 具有固定 x/y 比例的裁剪图像

java - 使用绑定(bind)到远程 MQ 的 JMS 连接

javascript - jquery加载函数不调用Spring Boot Controller 来替换thymeleaf模板片段

java - 注册多个 Jackson 转换器

android - onClick 在 fragment 内部不起作用

android - 从时间戳算起整整几个小时?

java - 单击按钮时,edittext 中的背景颜色和字体系列应更改

android - Android Activity 之外的 Flurry Analytics

python - Caffe 中的图像分类总是返回相同的类