An Image Processing Method to Convert RGB Image into Binary

Similar documents
A NOVEL APPROACH FOR CHARACTER RECOGNITION OF VEHICLE NUMBER PLATES USING CLASSIFICATION

A Review of Optical Character Recognition System for Recognition of Printed Text

Image Segmentation of Historical Handwriting from Palm Leaf Manuscripts

Face Detection System on Ada boost Algorithm Using Haar Classifiers

An Improved Bernsen Algorithm Approaches For License Plate Recognition

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

A Vehicle Speed Measurement System for Nighttime with Camera

Segmentation Plate and Number Vehicle using Integral Projection

AUTOMATIC LICENSE PLATE RECOGNITION USING PYTHON

Urban Feature Classification Technique from RGB Data using Sequential Methods

RESEARCH PAPER FOR ARBITRARY ORIENTED TEAM TEXT DETECTION IN VIDEO IMAGES USING CONNECTED COMPONENT ANALYSIS

Original and Counterfeit Money Detection Based on Edge Detection

An Efficient Method for Landscape Image Classification and Matching Based on MPEG-7 Descriptors

Solution for Image & Video Processing

An Evaluation of Automatic License Plate Recognition Vikas Kotagyale, Prof.S.D.Joshi

Number Plate Recognition System using OCR for Automatic Toll Collection

Study and Analysis of various preprocessing approaches to enhance Offline Handwritten Gujarati Numerals for feature extraction

Computing for Engineers in Python

Vehicle License Plate Recognition System Using LoG Operator for Edge Detection and Radon Transform for Slant Correction

A new seal verification for Chinese color seal

ROBOT VISION. Dr.M.Madhavi, MED, MVSREC

Keyword: Morphological operation, template matching, license plate localization, character recognition.

A Study of Image Processing on Identifying Cucumber Disease

Proposed Method for Off-line Signature Recognition and Verification using Neural Network

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

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

AUTOMATIC SEARCH AND DELIMITATION OF FRONTISPIECES IN ANCIENT SCORES

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

Automatic License Plate Detection in Foggy Condition using Enhanced OTSU Technique

Detection of License Plate using Sliding Window, Histogram of Oriented Gradient, and Support Vector Machines Method

Local Image Segmentation Process for Salt-and- Pepper Noise Reduction by using Median Filters

Volume 7, Issue 5, May 2017

Computer Vision. Howie Choset Introduction to Robotics

from: Point Operations (Single Operands)

A Chinese License Plate Recognition System

Detection and Verification of Missing Components in SMD using AOI Techniques

Quality Control of PCB using Image Processing

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

Lane Detection in Automotive

Measuring Leaf Area using Otsu Segmentation Method (LAMOS)

COMPARATIVE PERFORMANCE ANALYSIS OF HAND GESTURE RECOGNITION TECHNIQUES

The Research of the Lane Detection Algorithm Base on Vision Sensor

Method for Real Time Text Extraction of Digital Manga Comic

Weaving Density Evaluation with the Aid of Image Analysis

Image Compression Based on Multilevel Adaptive Thresholding using Meta-Data Heuristics

An Effective Method for Removing Scratches and Restoring Low -Quality QR Code Images

Implementation of License Plate Recognition System in ARM Cortex A8 Board

An Improved Binarization Method for Degraded Document Seema Pardhi 1, Dr. G. U. Kharat 2

International Journal of Advance Engineering and Research Development

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

Colored Rubber Stamp Removal from Document Images

COLOR IMAGE SEGMENTATION USING K-MEANS CLASSIFICATION ON RGB HISTOGRAM SADIA BASAR, AWAIS ADNAN, NAILA HABIB KHAN, SHAHAB HAIDER

Restoration of Degraded Historical Document Image 1

Thresholding Technique for Document Images using a Digital Camera

Design and Analysis of New Digital Modulation classification method

Paper Sobel Operated Edge Detection Scheme using Image Processing for Detection of Metal Cracks

COMBINING FINGERPRINTS FOR SECURITY PURPOSE: ENROLLMENT PROCESS MISS.RATHOD LEENA ANIL

Smart License Plate Recognition Using Optical Character Recognition Based on the Multicopter

An Enhanced Symmetrical Fault Detection during Power Swing/Angular Instability using Park s Transformation

Wheeler-Classified Vehicle Detection System using CCTV Cameras

Recursive Text Segmentation for Color Images for Indonesian Automated Document Reader

Automatic Morphological Segmentation and Region Growing Method of Diagnosing Medical Images

Preprocessing on Digital Image using Histogram Equalization: An Experiment Study on MRI Brain Image

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

IMAGE TYPE WATER METER CHARACTER RECOGNITION BASED ON EMBEDDED DSP

Finger print Recognization. By M R Rahul Raj K Muralidhar A Papi Reddy

VEHICLE LICENSE PLATE DETECTION ALGORITHM BASED ON STATISTICAL CHARACTERISTICS IN HSI COLOR MODEL

Nigerian Vehicle License Plate Recognition System using Artificial Neural Network

Intelligent Indian Currency Detection with Note to Coin Exchanger

A Real-Time Driving Fatigue Monitoring DSP Device Based On Computing Complexity of Binarized Image

Segmentation of Liver CT Images

Reversible data hiding based on histogram modification using S-type and Hilbert curve scanning

Automated License Plate Recognition for Toll Booth Application

Enhanced MLP Input-Output Mapping for Degraded Pattern Recognition

Libyan Licenses Plate Recognition Using Template Matching Method

Image Extraction using Image Mining Technique

Counting Sugar Crystals using Image Processing Techniques

Iraqi Car License Plate Recognition Using OCR

Automated Driving Car Using Image Processing

Iris Recognition-based Security System with Canny Filter

Utilization of Digital Image Processing In Process of Quality Control of The Primary Packaging of Drug Using Color Normalization Method

Automatic Electricity Meter Reading Based on Image Processing

Real Time ALPR for Vehicle Identification Using Neural Network

International Journal of Advanced Research in Computer Science and Software Engineering

A Modified Image Template for FELICS Algorithm for Lossless Image Compression

Binarization of Color Document Images via Luminance and Saturation Color Features

IJSRD - International Journal for Scientific Research & Development Vol. 4, Issue 05, 2016 ISSN (online):

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

A Study for Applications of Histogram in Image Enhancement

Method to acquire regions of fruit, branch and leaf from image of red apple in orchard

IMPROVEMENT USING WEIGHTED METHOD FOR HISTOGRAM EQUALIZATION IN PRESERVING THE COLOR QUALITIES OF RGB IMAGE

Automated Number Plate Recognition System Using Machine learning algorithms (Kstar)

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

Stamp detection in scanned documents

Conglomeration for color image segmentation of Otsu method, median filter and Adaptive median filter

MAV-ID card processing using camera images

Linear Gaussian Method to Detect Blurry Digital Images using SIFT

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

Differentiation of Malignant and Benign Masses on Mammograms Using Radial Local Ternary Pattern

Image Forgery Detection Using Svm Classifier

Transcription:

Indonesian Journal of Electrical Engineering and Computer Science Vol. 3, No. 2, August 2016, pp. 377 ~ 382 DOI: 10.11591/ijeecs.v3.i2.pp377-382 377 An Image Processing Method to Convert RGB Image into Binary Ratri Dwi Atmaja*, Muhammad Ary Murti, Junartho Halomoan, Fiky Yosef Suratman School of Electrical Engineering, Telkom University Jalan Telekomunikasi no.1, Terusan Buah Batu, Bandung 40257, Indonesia *Corresponding author, e-mail: ratridwiatmaja@telkomuniversity.ac.id Abstract It is important in image processing to extract objects from their background into binary image. Binary image is used as input to feature extraction process and have an important role in generating unique feature to distinguish several classes in pattern recognition. This paper proposes an image processing algorithm to obtain a binary image from RGB. The results showed that the binary image of the proposed algorithm contained the desired object. Keywords: image processing method, convert RGB to binary Copyright 2016 Institute of Advanced Engineering and Science. All rights reserved. 1. Introduction In the image processing, image binarization is used as a general tool for image segmentation of discriminating objects from background in various applications such as automatic target tracking, object recognition, image compression, image analysis, and object separation [4]. Some recent researchs i.e. [7] need a perfect binary image to separate objects before doing classification and [3] also need a perfect binary image to extract wood fiber from background. Because of it s important role, many researchs of image binarization have been developed from Otsu algorithm [1] and appear some image segmentation techniques as presented in [2]. This paper is a continuation of [3] and [6] to distinguish several classes of wood in object recognition but it s still having difficulty to get a perfect binary image. This maybe one reason why [3] still has not reached maximum performance. So this paper proposes an image processing method to convert RGB image into binary. 2. Research Method Figure 1 is the flowchart of proposed algorithm. After loading the image, it needs to convert the image to grayscale. Then determine the histogram of grayscale image. Histogram is 1-dimensional matrix that is used to represent the pixel intensity in frequency distributions. Statisticparameter is a value that is used to determine the number of image as segmentation result. We uses the mean and standard deviation as a reference for determining statisticparameter. Mean and standard deviation is given by [5]: ( ) Where represents the sample mean, represents standard deviation, represents individual value, and N represents the total number of values in the sample. Matrix on Figure 1 is a 1- dimensional binary matrix with the size 1 x 256. Figure 2 is the way how to find matrix and figure 3 is example to understand the way for finding matrix easily. Received March 2, 2016; Revised June 25, 2016; Accepted July 10, 2016

378 ISSN: 2502-4752 Figure 1. The Flowchart of Proposed Algorithm Figure 2. Flowchart to Find Matrix (a) (b) (c) Figure 3. Example of 2 Bit Image with the size 4 x 4 (b) The Histogram and (c) The Matrix using Mean as Statisticparameter (mean = 4) IJEECS Vol. 3, No. 2, August 2016 : 377 382

IJEECS ISSN: 2502-4752 379 The next process is finding firstlimit and endlimit. Firstlimit is 1-dimensional matrix that contains the first index of the selected range at histogram. While endlimit is 1-dimensional matrix that contains the end index of the selected range at histogram. This selected range is obtained from matrix that contains pixel 1 and represents the pixel intensity whose occurrence is greater than the specified statisticparameter. From Figure 3, it is obtained firstlimit = [0 3] and endlimit = [1 3]. It means that there are 2 selected ranges at histogram, i.e. from 0 to 1 and from 3 to 3. Figure 4 is the way how to find firstlimit and endlimit. Figure 4. Flowchart to Find Firstlimit and Endlimit Figure 5. Flowchart to Find and Show All Images In Figure 4, do the initialization as below: firstlimit=[]; endlimit=[]; An Image Processing Method to Convert RGB Image into Binary (Ratri Dwi Atmaja)

380 ISSN: 2502-4752 The initialization is intended to make the template of firstlimit and endlimit. Updatematrix is 1-dimensional matrix formed by adding 0 at first index of matrix. From Figure 3(c) it is obtained updatematrix = [0 1 1 0 1]. Minus can be found with this equation: Minus = Updatematrix(i) - Updatematrix(i-1) Then update firstlimit dan endlimit with this equation: firstlimit = [firstlimit (i-2)] endlimit = [endlimit (i-3)] The next process is showing all segmentation images that can be found in Figure 5. Image on Figure 5 is binary image results from segmentation and can be more than one. Row x column is the size of firstlimit, while m x n is the size of grayscale image on Figure 1. Conditions are defined by the following rule: grayscale ( i, j ) firstlimit (index) AND grayscale ( i, j ) endlimit (index) Where grayscale is grayscale image on Figure 1. 3. Results and Analysis To see performance of the proposed algorithm, the experiments are done with some statisticparameter values. Table 1 is the statisticparameter and the number of generated binary image, while Table 2 is the original image and generated binary image. Table 1. Statisticparameter and the Number of Generated Binary Image No Image Statisticparameter The number of Is the desired object still exists on one value generated binary image of the binary image? 4 Yes + 0.5 9 Yes + 9 Yes 1 Image A + 1.5 8 No + 2 6 No + 2.5 4 No + 3 2 No 11 Yes + 0.5 3 Yes + 3 Yes 2 Image B + 1.5 1 Yes + 2 1 Yes + 2.5 1 Yes + 3 1 No 4 No + 0.5 5 Yes + 3 Yes 3 Image C + 1.5 3 Yes + 2 3 No + 2.5 3 No + 3 2 No 9 Yes + 0.5 8 Yes + 7 No 4 Image D + 1.5 3 No + 2 2 No + 2.5 1 No + 3 1 No IJEECS Vol. 3, No. 2, August 2016 : 377 382

IJEECS ISSN: 2502-4752 381 Image Table 2. The original image and generated binary image One of the generated binary Original Image image that contains the desired Another generated binary image object A B C D 4. Conclusion The algorithm still generates more than one binary image is the weakness of this research. However, each sample has one of the results that contains the desired object. It is important in next research to automatically select only one binary image that contains the desired object. So this algorithm can be developed and can be used to convert RGB image to binary as needed. References [1] Nobuyuki Otsu. A Threshold Selection Method from Gray-Level Histograms. IEEE Transactions on Systems, Man, and Cybernetics. 1979; 9(1): 62-66. [2] Hetal J Vala, Astha Baxi. A Review on Otsu Image Segmentation Algorithm. International Journal of Advanced Research in Computer Engineering & Technology. 2013; 2(2): 387-389. [3] Ratri Dwi Atmaja, et al. The Detection of Straight and Slant Wood Fiber Through slop angle fiber feature. TELKOMNIKA Indonesian Journal of Electrical Engineering. 2015; 14(2): 318-322. [4] Kwang Baek Kim. Image Binarization using Intensity Range of Grayscale Images. International Journal of Multimedia and Ubiquitous Engineering. 2015; 10(7): 139-144. An Image Processing Method to Convert RGB Image into Binary (Ratri Dwi Atmaja)

382 ISSN: 2502-4752 [5] Allan G Bluman. Seventh Edition of Elementary Statistics: A Step by Step Approach. McGraw-Hill. 2009. [6] Ratri Dwi Atmaja. Wood image real-time segmentation algorithm based on video processing. International Journal of Imaging and Robotics. 2015; 15(1): 12-18. [7] Ratri Dwi Atmaja, et al. One Layer Object Separation Algorithm in Binary Image. Indonesian Journal of Electrical Engineering and Computer Science. 2016; 1(1): 215-220. IJEECS Vol. 3, No. 2, August 2016 : 377 382