计算机与现代化 ›› 2010, Vol. 1 ›› Issue (8): 147-149.doi: 10.3969/j.issn.1006-2475.2010.08.041

• 图像处理 • 上一篇    下一篇

基于RGB颜色空间的彩色图像分割方法

杨 璟,朱 雷   

  1. 克拉玛依职业技术学院,新疆 克拉玛依 833600
  • 收稿日期:2010-05-24 修回日期:1900-01-01 出版日期:2010-08-27 发布日期:2010-08-27

Color Image Segmentation Method Based on RGB Color Space

YANG Jing, ZHU Lei   

  1. Karamay Institute of Technology, Karamay 833600, China
  • Received:2010-05-24 Revised:1900-01-01 Online:2010-08-27 Published:2010-08-27

摘要: 传统的图像阈值分割算法是将彩色图像转换为灰度图像再进行分割。通过分析RGB颜色空间的特点,本文提出基于RGB颜色空间的阈值分割算法,采用新的判定准则,在颜色空间中以立方体取代原来的四面体,直接对彩色图像进行分割。分析和实验证明,改进的判断准则能够克服由于灰度转换造成颜色信息丢失而引起的误判,在保证原有阈值分割算法快速、简单的前提下,能够对彩色图像进行更为准确的分割。算法适用于目标颜色为黑色的情况,并可以推广到目标颜色为其它颜色的情况。

关键词: 图像分割, 彩色图像, RGB颜色空间

Abstract: The classical image threshold segmentation algorithm converts the color image to grayscale image before segmentation. On the base of analysis upon the characters of RGB color space, the article proposes an image segmentation algorithm based on RGB color space which uses the new criteria to replace the tetrahedral with the cube in color space and segment the color image. The analysis and experimental results indicate that the improved criteria can overcame the wrong which caused by gray degrees conversion and color information lose. As classical algorithm, it is fast and easy to segment the color image. It is suitable to segment the image, which has black target, and can be used to other colors.

Key words: image segmentation, color image, RGB color space