Color Image Segmentation in RGB Color Space Based on Color Saliency

Similar documents
An Online Image Segmentation Method for Foreign Fiber Detection in Lint

Evaluating Context-Aware Saliency Detection Method

An Improved Bernsen Algorithm Approaches For License Plate Recognition

Integrated Digital System for Yarn Surface Quality Evaluation using Computer Vision and Artificial Intelligence

IMAGE TYPE WATER METER CHARACTER RECOGNITION BASED ON EMBEDDED DSP

2 Human Visual Characteristics

AN INVESTIGATION INTO SALIENCY-BASED MARS ROI DETECTION

Application of Machine Vision Technology in the Diagnosis of Maize Disease

Effect of light intensity on Epinephelus malabaricus s image processing Su Xu 1,a, Kezhi Xing 1,2,*, Yunchen Tian 3,* and Guoqiang Ma 3

The Key Information Technology of Soybean Disease Diagnosis

Research on Methods of Infrared and Color Image Fusion Based on Wavelet Transform

A Review Paper on Image Processing based Algorithms for De-noising and Enhancement of Underwater Images

A Chinese License Plate Recognition System

A Study of Image Processing on Identifying Cucumber Disease

A Fast Algorithm of Extracting Rail Profile Base on the Structured Light

Demosaicing Algorithm for Color Filter Arrays Based on SVMs

Face Detection System on Ada boost Algorithm Using Haar Classifiers

Research on Pupil Segmentation and Localization in Micro Operation Hu BinLiang1, a, Chen GuoLiang2, b, Ma Hui2, c

Forget Luminance Conversion and Do Something Better

Detection of Defects in Glass Using Edge Detection with Adaptive Histogram Equalization

Recursive Plateau Histogram Equalization for the Contrast Enhancement of the Infrared Images

Design and Implementation of Rapid Grading Platform for Shape and Diameter of Oranges Based on Visual C#.NET *

The Research of the Strawberry Disease Identification Based on Image Processing and Pattern Recognition

Face Recognition System Based on Infrared Image

Detection and Verification of Missing Components in SMD using AOI Techniques

Contrast Enhancement with Reshaping Local Histogram using Weighting Method

Automatic Licenses Plate Recognition System

Multi-Image Deblurring For Real-Time Face Recognition System

The Study and Implementation of Agricultural Information Service System Based on Addressable Broadcast

Color Image Segmentation Using K-Means Clustering and Otsu s Adaptive Thresholding

Global Color Saliency Preserving Decolorization

NORMALIZED SI CORRECTION FOR HUE-PRESERVING COLOR IMAGE ENHANCEMENT

An Efficient Method for Vehicle License Plate Detection in Complex Scenes

A Method of Multi-License Plate Location in Road Bayonet Image

IMAGE SEGMENTATION ALGORITHM BASED ON COLOR FEATURES: CASE STUDY WITH GIANT PANDA

A new seal verification for Chinese color seal

Improved Minimum Distance Discrimination Method Used in Image Analysis of Fabric Wear Resistance

Development and Performance Test for a New Type of Portable Soil EC Detector

Research of an Algorithm on Face Detection

ABSTRACT I. INTRODUCTION

Dynamic Visual Performance of LED with Different Color Temperature

The Elevator Fault Diagnosis Method Based on Sequential Probability Ratio Test (SPRT)

A Novel Algorithm for Hand Vein Recognition Based on Wavelet Decomposition and Mean Absolute Deviation

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

Open Access An Improved Character Recognition Algorithm for License Plate Based on BP Neural Network

Implementation of Face Detection System Based on ZYNQ FPGA Jing Feng1, a, Busheng Zheng1, b* and Hao Xiao1, c

A Real Time based Image Segmentation Technique to Identify Rotten Pointed Gourds Pratikshya Mohanty, Avinash Kranti Pradhan, Shreetam Behera

License Plate Localisation based on Morphological Operations

Noise Removal of Spaceborne SAR Image Based on the FIR Digital Filter

Screening Algorithm Based on The Color Halftone Fluorescent Printing and Its Application in Packaging Design

An Audio Fingerprint Algorithm Based on Statistical Characteristics of db4 Wavelet

A Review over Different Blur Detection Techniques in Image Processing

An Engraving Character Recognition System Based on Machine Vision

COLOUR SEGMENTATION IN YARN-DYED WOVEN FABRIC IMAGES BY USING K- MEANS CLUSTERING Bekir Yildirim 1, Brigita Kolčavová Sirková 2

Contrast Enhancement using Improved Adaptive Gamma Correction With Weighting Distribution Technique

Inspection of Lettuce Water Stress Based on Multisensor Information Fusion Technology

Fiber-optic Michelson Interferometer Sensor Fabricated by Femtosecond Lasers

International Journal of Advanced Research in Computer Science and Software Engineering

Malaysian Car Number Plate Detection System Based on Template Matching and Colour Information

Method Of Defogging Image Based On the Sky Area Separation Yanhai Wu1,a, Kang1 Chen, Jing1 Zhang, Lihua Pang1

A Decision Tree Approach Using Thresholding and Reflectance Ratio for Identification of Yellow Rust

Implementation of Barcode Localization Technique using Morphological Operations

EFFICIENT CONTRAST ENHANCEMENT USING GAMMA CORRECTION WITH MULTILEVEL THRESHOLDING AND PROBABILITY BASED ENTROPY

A QR Code Image Recognition Method for an Embedded Access Control System Zhe DONG 1, Feng PAN 1,*, Chao PAN 2, and Bo-yang XING 1

AN EXPANDED-HAAR WAVELET TRANSFORM AND MORPHOLOGICAL DEAL BASED APPROACH FOR VEHICLE LICENSE PLATE LOCALIZATION IN INDIAN CONDITIONS

Road marking abrasion defects detection based on video image processing

Fault Diagnosis of Electronic Circuits Based on Matlab

Research on 3-D measurement system based on handheld microscope

FPGA based Real-time Automatic Number Plate Recognition System for Modern License Plates in Sri Lanka

中国科技论文在线. An Efficient Method of License Plate Location in Natural-scene Image. Haiqi Huang 1, Ming Gu 2,Hongyang Chao 2

Simulationusing Matlab Rules in Neuro-fuzzy Controller Based Washing Machine

A rapid automatic analyzer and its methodology for effective bentonite content based on image recognition technology

Automated Driving Car Using Image Processing

Study on Measuring Microfiber Diameter in Melt-blown WebBased on Image Analysis

Reducing Uncertainty in Wind Turbine Blade Health Inspection with Image Processing Techniques. Huiyi Zhang March 2, 2015

Study on OFDM Symbol Timing Synchronization Algorithm

Looking for the Ideal Conditions for Corn Kernel Image Acquisition

Chapter 6 EXPERIMENTAL VERIFICATION

International Journal of Innovative Research in Engineering Science and Technology APRIL 2018 ISSN X

Advances in the Application of Image Processing Fruit Grading

A Proficient Roi Segmentation with Denoising and Resolution Enhancement

Color Image Enhancement by Histogram Equalization in Heterogeneous Color Space

Locating the Query Block in a Source Document Image

Blind Single-Image Super Resolution Reconstruction with Defocus Blur

A self-adaptive Contrast Enhancement Method Based on Gradient and Intensity Histogram for Remote Sensing Images

The Novel Integrating Sphere Type Near-Infrared Moisture Determination Instrument Based on LabVIEW

Adaptive Gamma Correction With Weighted Distribution And Recursively Separated And Weighted Histogram Equalization: A Comparative Study

Advanced Maximal Similarity Based Region Merging By User Interactions

Research on the Face Image Detection in Coal Mine Environment

The Study on the Image Thresholding Segmentation Algorithm. Yue Liu, Jia-mei Xue *, Hua Li

International Journal of Modern Trends in Engineering and Research e-issn No.: , Date: April, 2016

Single Image Haze Removal with Improved Atmospheric Light Estimation

An Improved DV-Hop Localization Algorithm Based on Hop Distance and Hops Correction

Measuring Leaf Area using Otsu Segmentation Method (LAMOS)

Image Enhancement using Histogram Equalization and Spatial Filtering

A Multi-resolution Image Fusion Algorithm Based on Multi-factor Weights

Recognition the Parameters of Slub-yarn Based on Image Analysis

Image Processing by Bilateral Filtering Method

Road Network Extraction and Recognition Using Color

An Approach for Reconstructed Color Image Segmentation using Edge Detection and Threshold Methods

Transcription:

Color Image Segmentation in RGB Color Space Based on Color Saliency Chen Zhang 1, Wenzhu Yang 1,*, Zhaohai Liu 1, Daoliang Li 2, Yingyi Chen 2, and Zhenbo Li 2 1 College of Mathematics and Computer Science, Hebei University, Baoding 071002, P.R. China 2 College of Information and Electrical Engineering, China Agriculture University, Beijing 100083, P.R. China wenzhuyang@163.com Abstract. It is difficult to separate the foreign fiber objects in a captured color image from the background accurately. To solve this problem, this paper presents a new approach for color image segmentation in RGB color space based on color saliency. Firstly, the captured RGB color image was separated to R, G and B color channels, and the color information for each channel was calculated. Secondly, the R saliency for each pixel in the R channel, the G saliency for each pixel in the G channel, and the B saliency for each pixel in the B channel was calculated respectively. Then comprehensive saliency map was obtained by the weighted R, G and B saliency. The weights for the R, G and B saliency were determined by the corresponding color information of each color channel. At last, the foreign fiber targets were separated out from the comprehensive saliency map using a threshold method. The results indicate that the proposed method can segment out the foreign fiber objects from the color image accurately. Keywords: Color image segmentation, RGB color space, Color saliency, Foreign fiber targets, Comprehensive saliency map, Threshold method. 1 Introduction Foreign fibers in cotton, such as hairs, plastic, polypropylene twines, affect the quality of the final cotton textile products seriously[1-4]. So they should be removed before spinning. Automated Visual Inspection is the state-of-the-art technology for picking out the foreign fibers from cotton lint. Image segmentation is one of the most important stage for foreign fiber detection. But it is very difficult to separate the foreign fiber objects in a captured color image from the background accurately. Nowadays, many methods for gray image segmentation are studied and widely used in many applications. Even the color image, will be transformed into gray image firstly[5-6], and then segmented using these methods developed for gray image segmentation. * Corresponding author. D. Li and Y. Chen (Eds.): CCTA 2013, Part I, IFIP AICT 419, pp. 348 357, 2014. IFIP International Federation for Information Processing 2014

Color Image Segmentation in RGB Color Space Based on Color Saliency 349 However, these methods fail to make full use of the color information to perform accurate segmentation[7-8]. So color image segmentation is one of the hot spot in image processing. Image segmentation is one of the key techniques in image processing and machine vision system, and it is the first step in image analysis and pattern recognition. The aim of image segmentation is to partition an image into meaningful connected components. Nowadays, various image segmentation methods are available and some of them are used for foreign fiber recognition. It is very difficult to separate the foreign fiber targets from the background using traditional image segmentation methods duo to the inhomogeneous background brightness and variety of foreign fibers in different colors and shapes. So it is high time for us to solve this problem to improve the image segmentation accuracy. Visual attention based image processing method is one of the state-of-the-art methods and has been successfully used for object detection. Scientists took considerable time and efforts to study the human visual attention system[9] in order to segment the targets automatically. Saliency map was firstly introduced by Koch and Ullman. For human vision, color information is important in a image, and the sensitive degree is different from one image to another. Itti proposed a color image segmentation method based on visual attention and saliency map[10], but the segmentation efficiency is not high. Hou introduced a new construction method of saliency map based on spectral residual[11]. Due to its simplicity and high efficiency, it has been widely used in many applications[12-14]. This paper presents a color image segmentation method based on RGB comprehensive saliency. Color information in a color image is vital to the human vision, so we consider red, green and blue value as the color information. We can obtain R, G, B information saliency map separately from the correspond channel. According to the different color information, we give different weights to different saliency map, and then, the comprehensive saliency map is created. We used a threshold method to realize the separation of target and background. The aim of this paper is to develop a method which can be employed in the AVI system to detect the foreign fibers precisely and quickly. The paper is organized as follows. We present the materials and methods in Section 2. We describe the experiments carried out to validate the performance of the proposed method for the task of foreign fiber detection in Section 3. Finally, we conclude this work in Section 4. 2 Materials and Methods We chose feather, hair, plastic and polypropylene twine as typical foreign fibers in this research. An AVI system in our lab, as shown in Fig. 1, is used to capture the live color images of the foreign fibers.

350 C. Zhang et al. Fig. 1. Outline of the AVI system The AVI system mainly consists of three sub-systems: a cotton lint pre-opening system, a visual inspection system and a cotton lint collection system. The compact cotton lint with foreign fibers was firstly pre-opened in the pre-opening system to make it loose. Then the loosed cotton lint was transferred to the visual inspection system. In the vision system, color images of foreign fibers were captured by line-scan camera, and analyzed in the computer. After the inspection finished, the cotton lint was collected and stored in the collection system. 2.1 Image Acquisition Live color images of foreign fibers were captured by a line-scan camera in the vision system. The camera we used is a Piranha line scan color camera with 4096 resolution. It was set to internal exposure mode working at 10 KHz frequency. Live scanned lines were collected by an image acquisition board (X64-CL Express, CORECO, Canada) and stored in an image buffer. The frame size was set to 128 lines, so the image resolution in this application was 128 4096 pixels. Some sample images with different type of foreign fibers were shown as Fig. 2.

Color Image Segmentation in RGB Color Space Based on Color Saliency 351 (a) Red paper (b) Black feather (c) Red polypropylene twine Fig. 2. Foreign fiber images In the first image, a piece of red paper was in it. In the second image, we can seize black feather as the foreign fiber. In the third image, a piece of red polypropylene twine was find. 2.2 The Frame of the Method Foreign fiber images we obtained were color images, and different images have different color information. We can divide a RGB color image into R channel, G channel and B channel. Because of R information, G information and B information varying from one image to another, the visual feeling about different channel is different. If the amount of R information is greater than the other two channels information, the human is more sensitive to the R information. If the amount of G information is the largest, the human is more sensitive to the G information. It is the same for B information. According to the amount of R information, G information and B information, we can determine the weight of R saliency, G saliency and B saliency. Thus, we can form a comprehensive saliency map, and we use a threshold method in order to do the segmentation between the target and the background. The frame of the proposed method was shown in Fig. 3. R saliency Weighted R saliency RGB color image G saliency Weighted R saliency Comprehensive saliency map Object fusion B saliency Weighted R saliency Fig. 3. The frame of the proposed method 2.3 Channel Information Calculation The input color image I is a RGB color image whose resolution is M*N*3 pixels. M and N are the number of rows and columns. Let R(i, j), G(i, j) and B(i, j) represent each channel information respectively, where i represents the abscissa of a pix, j represents

352 C. Zhang et al. the ordinate of a pix. Let S r, S g, S b be the sum of the R, G, B information respectively, and let M r, M g, M b be the mean of the R, G, B information respectively. S r M N = R(, i j) (1) i= 1 j= 1 S g M N = G(, i j) (2) i= 1 j= 1 S b M N = B(, i j) (3) i= 1 j= 1 M = S ( M * N) r r M = S ( M * N) g g M = S ( M* N) b b (4) (5) (6) 2.4 Color Saliency Calculation The saliency of one channel information can be obtained by computing the absolute difference of the color feature with the mean color feature value. Let L r, L g, L b present the corresponding color information saliency, and the formulae are as below. L (, i j) = abs( R(, i j) M ) (7) r L (, i j) = abs( G(, i j) M ) (8) g L (, i j) = abs( B(, i j) M ) (9) b b r g 2.5 Weights Determination The weight for each color saliency depends on the amount of R information, G information, and B information. A larger amount of R information indicates that the R characteristics is more important for human visual perception, and a larger amount of G

Color Image Segmentation in RGB Color Space Based on Color Saliency 353 information presents that the G characteristics is more important for human visual perception. It is the same for B information. Let W 1, W 2, W 3 represent the weight of each channel saliency. We can calculate them by the following formulae. W1 = M /( M + M + M ) (10) r r g b W2 = M /( M + M + M ) (11) g r g b W3 = M /( M + M + M ) (12) b r g b 2.6 The Comprehensive Saliency Map Calculation After working out the weights, we can obtain the comprehensive saliency map by using the formula below. S(, i j) = W * L (, i j) + W * L (, i j) + W * L (, i j) (13) 1 r 2 g 3 b 2.7 Foreign Fiber Objects Detection and Fusion We can use a threshold method to distinguish the foreign fiber objects from the background. Let T be the threshold. When S(i, j) is greater than T, we regard pix(i, j) as a pixel in the foreign fiber object, while S(i, j) is smaller than T, we think pix(i, j) as a pixel in the background. 0, Si (, j) < T Oi (, j) = 1, Si (, j) T (14) 2.8 Algorithm Implementation Step1: calculate the color feature R, G and B respectively. Step2: calculate the channel information M r, M g and M b respectively. Step3: calculate the weight for each channel saliency based on M r, M g and M b. Step4: calculate the channel saliency map L r, L g and L b respectively. Step5: Obtain the comprehensive saliency map S according to the weights and the channel saliency maps. Step6: Segment the targets by using a threshold method to get the final object O.

354 C. Zhang et al. Fig. 4. The process of weights calculation R L r W 1 W 1 *L r RGB color image G L g W 2 W 2 *L g S O B L b W 3 W 3 *L b Fig. 5. The process of the Image segmentation method 3 Results and Discussion The images we used in the experiment are live images captured by the AVI system. The algorithm was implemented in Matlab 7.0, and the operation system is Window XP. A large amount of color images of foreign fibers were used to test the proposed method. The processing results of polypropylene twine were shown below. In this experiment, the human visual attention is associated with the whole image s color information. The red color is dominant in the whole image, so we think red is the most important color for human visual feeling in this image of polypropylene twine. Thus, we raise the weight of red color saliency map in our experiment. The processing results of black hair obtained by the proposed method were shown in Fig. 6. In this test, the human visual attention is associated with the whole image s color. M r and M g larger than M b, so red and green are regarded as the both important color for human visual feeling. Thus, we raise the weight of red and green color saliency map.

Color Image Segmentation in RGB Color Space Based on Color Saliency 355 The original RGB color image The R channel The G channel The B channel The comprehensive saliency map S The final object O Fig. 6. The results of the segmentation of polypropylene twine The original RGB color image The R channel The G channel The B channel The comprehensive saliency map S The final object O Fig. 7. The results of the segmentation of black feather Compared with the spectral residual method, our method can get better flexibility. We use the color information in a color image to determine the saliency map dynamically. We use a threshold method to separate out the target. In our experiment, T was set to 0.115. The spectral residual method can not segment all the selected images in our experiment, while our method can get accurate segmentation, as shown in Table 1. In our experiments, we use empirical value as the threshold, which can make the method simple and fast. The Otsu s algorithm has the problem in segmentation in our image, because of the low contrast ratio between the foreign fiber objects and the background. So we use the empirical value as the threshold in order to promote the segmentation accuracy.

356 C. Zhang et al. Table 1. The comparison of the segmentation method Original RGB image (A1) black feather (B1) plastic film (C1) polypropylene twine Spectral residual (A2) the result of black feather (B2) the result of plastic film (C2) the result of polypropylene twine our method (A3) the result of black feather (B3) the result of plastic film (C3) the result of polypropylene twine 4 Conclusion A new approach for color image segmentation in RGB color space based on color saliency was proposed. The amount of R, G and B color information was firstly calculated, and the weight of each channel saliency map was determined according to the corresponding color information. And then, the comprehensive saliency map was obtained. Finally, the foreign fiber targets were segmented out from the comprehensive saliency map. The results indicate that the proposed approach is consistent with the

Color Image Segmentation in RGB Color Space Based on Color Saliency 357 human visual perception characteristics and can get accurate foreign fiber objects from the captured color images. The threshold for comprehensive saliency map segmentation is empirical value. How to segment the foreign fiber images automatically will be researched in our future work. Acknowledgements. The authors thank The Ministry of Science and Technology of the People s Republic of China (2013DFA11320, 2013BAK07B04), National Natural Science Foundation of China (31228016), Hebei University (2010-207), Key Laboratory of Modern Precision Agriculture System Integration Research Centre of the Education Ministry in China Agriculture university (X11-01), Hebei Education Department (Q2012063), and Hebei Science and Technology Department (12210133), for their financial support, and China Agriculture University for providing the testing environment. References 1. Yang, W.Z., Li, D.L., Wei, X.H., Kang, Y.G., Li, F.T.: An automated visual inspection system for foreign fiber detection in lint. In: IEEE GCIS, pp. 364 368 (2009) 2. Yang, W., Lu, S., Wang, S., Li, D.: Fast recognition of foreign fibers in cotton lint using machine vision. Mathematical and Computer Modelling 54, 877 882 (2011) 3. Yang, W.-Z., Li, D.-L., Zhu, L.: A New Approach for Image Processing in Foreign Fiber Detection. Computers and Electronics in Agriculture 68(1), 68 77 (2009) 4. Yang, W., Li, D., Wang, S., Lu, S., Yang, J.: Saliency map basee color image segmentation for foreign fiber detection. Mathematics and Computer Modelling 58, 846 852 (2013) 5. Ye, Q.-X., Wen, G., Wang, W.-Q., et al.: A Color Image Segmentation Algorithm by Using Color and Spatial Information. Journal of Software 15(4), 522 530 (2004) 6. Bao, Q.-L.: Color Image Segmentation Based on HSV Color Space. Software Guide 9(7), 171 (2010) 7. Zhao, J.-X., Wang, J.: Color I mage Edge Detection Based on Subdivision of RGB Space. Optoelectronic Technology 29(3), 171 173 (2009) 8. Han, X.-W., Yang, Z., Li, Y.-P., et al.: A Method for Color Image Segmentation Based on Color Similarity Coefficient. Journal of Shenyang University 26(6), 14 17 (2004) 9. Zhang, H.-W., Zheng, Y.-F., Zhang, Q.-R.: Color Image Segmentation Based on Visual Attention Mechanism. Computer Engineer and Application 47(10), 154 157 (2011) 10. Itti, L., Koch, C., Niebur, E.: A model of saliency-based visual attention for rapid scene analysis. IEEE Transactions on Pattern Analysis and Machine Intelligence 20(11), 1254 1259 (1998) 11. Hou, X.-D., Zhang, L.-Q.: Saliency Detection: A Spectral Residual Approach. In: Proceedings of The IEEE Conference on Computer Vision and Pattern Recognition, pp. 1 8 (2007) 12. Stas, G., Lihi, Z.-M., Ayellet, T.: Context-Aware Saliency Detection. IEEE Transactions Pattern Analysis and Machine Intelligence 34(10), 1915 1926 (2012) 13. Shi, H., Yang, Y.: A Computational Model of Visual Attention Based on Saliency Maps. Applied Mathematics and Computation 188, 1671 1677 (2007) 14. Hang, S., Yu, Y.: A computational model of visual attention based on saliency maps. Applied Mathematics and Computation 18(2), 1671 1677 (2007)