扩张和侵蚀的Andr​​oid [英] Dilation and erosion in Android

查看:210
本文介绍了扩张和侵蚀的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据我的研究,膨胀和腐蚀可用于二值化后的图像缩小为一个图像的差距。

According to my research,dilation and erosion can be used to bridge the gap for a image after binarize the image.

我不知道,如果 cvSmooth 需要使用与否。

I not sure if cvSmooth needs to be used or not.

推荐答案

这是你怎么做在Android上,你真的需要学习如何自己找到这一点,Android有几乎相同的功能有记录的C ++ / Python的,因此,所有你需要做的就是找​​到自己所属的类,在这种情况下, Imgproc

This is how you do in in Android, you really need to learn how to find this by yourself, Android has mostly the same functions has the documented C++/Python, so all you need to do is find which class they belong to, in this case, Imgproc:

Imgproc.erode(mInput, mInput, Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(2,2)));        

Imgproc.dilate(mInput, mInput, Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(2, 2)));

这篇关于扩张和侵蚀的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆