作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (21): 178-180. doi: 10.3969/j.issn.1000-3428.2010.21.064

• 人工智能及识别技术 • 上一篇    下一篇

一种提取目标图像最小外接矩形的快速算法

卢 蓉a,范 勇a,陈念年a,王俊波b   

  1. (西南科技大学a. 计算机科学与技术学院;b. 国防科技学院,四川 绵阳 621010)
  • 出版日期:2010-11-05 发布日期:2010-11-03
  • 作者简介:卢 蓉(1982-),女,硕士研究生,主研方向:机器视觉,图像处理;范 勇,副教授、博士;陈念年,讲师、硕士;王俊波,教授、博士、博士生导师
  • 基金资助:
    国家自然科学基金资助项目(10676029, 10776028)

Fast Algorithm for Extracting Minimum Enclosing Rectangle of Target Image

LU Ronga, FAN Yonga, CHEN Nian-niana, WANG Jun-bob   

  1. (a. College of Computer Science and Technology; b. College of Defense Technology, Southwest University of Science and Technology, Mianyang 621010, China)
  • Online:2010-11-05 Published:2010-11-03

摘要: 在图像分类与识别算法研究中,目标几何特征的提取通常需要计算目标图像的最小外接矩形以获取长、宽等属性。针对该特点,提出一种利用顶点链码与离散格林理论相结合的方式提取目标图像的最小外接矩形的算法。该算法只需根据顶点链中垂直或水平方向上的点坐标即可求出目标的面积、形心和主轴。基于顶点链码和离散格林的主轴法和旋转法可快速求出目标的最小外接矩形。实验结果表明,旋转法的运算速度是现有算法的2倍左右,主轴法的速度又比旋转法快速2倍左右。

关键词: 顶点链码, 离散格林理论, 最小外接矩形

Abstract: Geometric feature extraction from image is a crucial step in image classification and recognition algorithms. It requires to calculate the Minimum Enclosing Rectangle(MER) of the image to get some attributes, such as length and width. This paper proposes an algorithm based on the combination of the vertex chain code and the discrete Green theorem to extract MER from image. According to this algorithm, it can calculate the area, centroid, and principal axis of the image easily, only with its point coordinates from the veritical or hrizontal direction of the vertex chain code. Experimental results show that the rotation method’s speed is two times of the current algorithms, while the principal axis method is three times of the rotation method.

Key words: vertex chain code, discrete Green theorem, Minimum Enclosing Rectangle(MER)

中图分类号: