pic中特定区域内的纹理识别 [英] Texture recognition within a specific area in the pic

查看:149
本文介绍了pic中特定区域内的纹理识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是纹理识别领域的新手,我想知道哪些方法可以解决opencv中的纹理问题。

I'm new in the texture recognition field, and I would like to know which are the possible ways to approach a texture problem in opencv.

我需要识别图片中某个区域内的纹理,并判断它是否在整个区域内是均匀的,均匀的。

I need to identify the texture within a region in the pic, and tell if it is uniform, homogeneous in the whole area, or not.

更深入,我需要能够判断一个可能堕落的人是否是一个人(有许多不同类型的纹理)或者像枕头或毯子一样的错误。

More in depth, I need to be able to tell if a possible fallen person is a person (with many different kind of textures) or something wrong like a pillow, or a blanket.

任何人都可以提出解决方案,请?
是否有一些已经制作的opencv代码需要适应?

Could anyone suggest a solution, please? Is there some already made opencv code to adapt?

提前致谢!

推荐答案

为什么不使用haralick功能?换句话说,它们被称为纹理特征。基本思想是从基础上的给定灰度图像计算共同矩阵,其中计算haralick特征。您可以选择不同的功能,如对比度,相关性,熵等,可以描述您的纹理。我想对于相同的纹理,给定的特征应该具有相同(相似)的值,因此这可能是区分纹理的方式。

Why don't use haralick features? I other words they are called texture features. The base idea is to compute coocurence matrix from given gray-scaled image on base which the haralick features are computed. You can pick between different features like contrast, correlation, entropy etc. which can describe your texture. I guess for the same texture given feature should have the same (similar) value, so that might be the way for distinguishing textures.

这里有些链接可能会有所帮助:

Here some links can be helpful:

  • Coocurence matrix tutorial
  • Haralik features summary
  • Coocurence matrix in scikit image

据我所知,opencv中没有实现haralick功能,但你可以使用python与 scikit-image (当然,如果你不介意使用与c ++不同的东西,你可以使用opencv和python)。

So far as I know, there is no implementation of haralick features in opencv, but you can use python with scikit-image (of course you can use opencv with python if you don't mind using something different than c++).

这篇关于pic中特定区域内的纹理识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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