相当于bwmorph的Python [英] Python Equivalent for bwmorph

查看:195
本文介绍了相当于bwmorph的Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我仍在使用Python编写指纹图像预处理器.我在MATLAB中看到一个特殊的功能可以消除H中断和杂散:

I am still coding a fingerprint image preprocessor on Python. I see in MATLAB there is a special function to remove H breaks and spurs:

bwmorph(a , 'hbreak')
bwmorph(a , 'spur')

我已经搜索了scikit,OpenCV等,但是找不到这两个bwmorph的等效项.有人可以指出我正确的方向吗,还是我必须实施我自己的方向?

I have searched scikit, OpenCV and others but couldn't find an equivalent for these two use of bwmorph. Can anybody point me to right direction or do i have to implement my own?

推荐答案

据我所知,由于OpenCV或skimage中不存在它们,因此您必须自己实现它们. 但是,应该直接检查MATLAB的代码及其工作方式,并使用Python/NumPy编写自己的版本.

You will have to implement those on your own since they aren't present in OpenCV or skimage as far as I know. However, it should be straightforward to check MATLAB's code on how it works and write your own version in Python/NumPy.

此处是专门为MATLAB用户详细描述NumPy函数的指南,并提示了MATLAB和NumPy中的等效函数: http://wiki.scipy.org/NumPy_for_Matlab_Users

Here is a guide describing in detail NumPy functions exclusively for MATLAB users, with hints on equivalent functions in MATLAB and NumPy: http://wiki.scipy.org/NumPy_for_Matlab_Users

这篇关于相当于bwmorph的Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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