提取有关给定的轮廓形状信息

提取有关给定的轮廓形状信息

本文介绍了计算机视觉:提取有关给定的轮廓形状信息(如尖,圆...)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鉴于线条和顶点的形式形状的二维轮廓,我怎么可以提取的信息?像:尖,圆,直线。形状相似与给定的形状。

Given the 2D contour of a shape in the form of lines and vertices, how can I Extract Information from that?like: Pointy, round, straight line.Shape similarities with a given shape.

code是没有必要的,我更感兴趣的是概念和所涉及到的技术名称引导我搜索....

Code is not necessary, I am more interested inconcepts and the names of techniques involved toguide my search....

在此先感谢。

推荐答案

的一种方法是,计算由2D轮廓所描述的形状的第一和第二阶中心矩。使用这些值的物体的伸长可以计算

Image moments

One approach is to calculate the first and second order central moments of the shape described by the 2D contour. Using these values the elongation of the object can be calculated.

中央图像矩可组合的七个瞬间胡,这是不变的缩放,旋转和平移改变(即他们是很好的基本形状识别)。 (更多关于图像矩这里)。

The central image moments can be combined to the seven moments of Hu, which are invariant to change in scale, rotation and translation (ie. they are very good for basic shape recognition). (More on image moments here).

这是另一种方法是计算周长(P)的长度和内接区域(a)的大小。使用这两个值,下面的比可以计算:

An other approach is to calculate the length of the perimeter (p) and the size of the inscribed area (a). Using these two values, the following ratio can be computed:

率= P ^ 2 /(4 * PI *一)

ratio = p^2 / (4 * pi * a)

越接近这个比例是一个,象是所描述的形状的更圆。

The closer this ratio is to one, the more circle like is the described shape.

这篇关于计算机视觉:提取有关给定的轮廓形状信息(如尖,圆...)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-27 20:26