A Methodology to Analyze Objects in Digital Image using Matlab

Similar documents
Efficient Methods used to Extract Color Image Features

Window Averaging Method to Create a Feature Victor for RGB Color Image

A Methodology to Create a Fingerprint for RGB Color Image

Effective and Secure Method of Color Image Steganography

Comparative Analysis of Methods Used to Remove Salt and Pepper Noise

A Novel Method for Color Image Recognition

Proposed ZAH_BAU filter for RGB color image enhancement

IDENTIFICATION OF FISSION GAS VOIDS. Ryan Collette

Identification of Age Factor of Fruit (Tomato) using Matlab- Image Processing

Image Extraction using Image Mining Technique

An Image Processing Approach for Screening of Malaria

Extraction and Recognition of Text From Digital English Comic Image Using Median Filter

Automatics Vehicle License Plate Recognition using MATLAB

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

AUTOMATIC IRAQI CARS NUMBER PLATES EXTRACTION

MATHEMATICAL MORPHOLOGY AN APPROACH TO IMAGE PROCESSING AND ANALYSIS

Performance Evaluation of Edge Detection Techniques for Square Pixel and Hexagon Pixel images

Main Subject Detection of Image by Cropping Specific Sharp Area

Image Restoration and De-Blurring Using Various Algorithms Navdeep Kaur

A New Framework for Color Image Segmentation Using Watershed Algorithm

Study of Various Image Enhancement Techniques-A Review

MATLAB Image Processing Toolbox

Automatic Morphological Segmentation and Region Growing Method of Diagnosing Medical Images

PHASE PRESERVING DENOISING AND BINARIZATION OF ANCIENT DOCUMENT IMAGE

Advanced Maximal Similarity Based Region Merging By User Interactions

Automatic Licenses Plate Recognition System

Integrated Image Processing Functions using MATLAB GUI

L2. Image processing in MATLAB

Detection of License Plates of Vehicles

Number Plate Recognition Using Segmentation

CURRENCY DETECTION AND DENOMINATION SYSTEM USING IMAGE PROCESSING Pranjal Ambre 1, Ahamadraja Mansuri 2, Harsh Patel 3, Assistant Prof.

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

Automatic Detection Of Optic Disc From Retinal Images. S.Sherly Renat et al.,

Linear Gaussian Method to Detect Blurry Digital Images using SIFT

Automated Number Plate Verification System based on Video Analytics

Comparison of Segmentation Framework on Digital Microscope Images for Acute Lymphoblastic Leukemia Diagnosis using RGB and HSV Color Spaces

MatLab for biologists

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

Motion Detector Using High Level Feature Extraction

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

KEYWORDS Cell Segmentation, Image Segmentation, Axons, Image Processing, Adaptive Thresholding, Watershed, Matlab, Morphological

Vehicle Number Plate Recognition with Bilinear Interpolation and Plotting Horizontal and Vertical Edge Processing Histogram with Sound Signals

Combined Approach for Face Detection, Eye Region Detection and Eye State Analysis- Extended Paper

Region Based Satellite Image Segmentation Using JSEG Algorithm

NON UNIFORM BACKGROUND REMOVAL FOR PARTICLE ANALYSIS BASED ON MORPHOLOGICAL STRUCTURING ELEMENT:

Fake Currency Detection Using Image Processing

Digital Image Processing 3/e

AUTOMATED MALARIA PARASITE DETECTION BASED ON IMAGE PROCESSING PROJECT REFERENCE NO.: 38S1511

Estimating malaria parasitaemia in images of thin smear of human blood

Implementation of License Plate Recognition System in ARM Cortex A8 Board

Digital Image Processing Programming Exercise 2012 Part 2

Enhanced Identification of Malarial Infected Objects using Otsu Algorithm from Thin Smear Digital Images

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

Student: Nizar Cherkaoui. Advisor: Dr. Chia-Ling Tsai (Computer Science Dept.) Advisor: Dr. Eric Muller (Biology Dept.)

An Analysis of Image Denoising and Restoration of Handwritten Degraded Document Images

Computer Graphics (CS/ECE 545) Lecture 7: Morphology (Part 2) & Regions in Binary Images (Part 1)

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

Stamp detection in scanned documents

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

THERMAL DETECTION OF WATER SATURATION SPOTS FOR LANDSLIDE PREDICTION

A Review on Brain Tumor Extraction and Direction from MRI Images using MATLAB

A PROPOSED ALGORITHM FOR DIGITAL WATERMARKING

Quality Measure of Multicamera Image for Geometric Distortion

Recognition Of Vehicle Number Plate Using MATLAB

Morphological Image Processing Approach of Vehicle Detection for Real-Time Traffic Analysis

Research of an Algorithm on Face Detection

AGRICULTURE, LIVESTOCK and FISHERIES

A SURVEY ON HAND GESTURE RECOGNITION

Brain Tumor Segmentation of MRI Images Using SVM Classifier Abstract: Keywords: INTRODUCTION RELATED WORK A UGC Recommended Journal

Adaptive Feature Analysis Based SAR Image Classification

Leukemia Detection With Image Processing Using Matlab And Display The Results In Graphical User Interface

ImageJ: Introduction to Image Analysis 3 May 2012 Jacqui Ross

SYLLABUS CHAPTER - 2 : INTENSITY TRANSFORMATIONS. Some Basic Intensity Transformation Functions, Histogram Processing.

Touchless Fingerprint Recognization System

(Volume3, Issue2) Mahesh R Pujar ABSTRACT

Banknotes detected using Image Processing Techniques

Detection and Verification of Missing Components in SMD using AOI Techniques

A Method of Using Digital Image Processing for Edge Detection of Red Blood Cells

An Implementation of LSB Steganography Using DWT Technique

Urban Feature Classification Technique from RGB Data using Sequential Methods

Processing and Enhancement of Palm Vein Image in Vein Pattern Recognition System

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

Computational approach for diagnosis of malaria through classification of malaria parasite from microscopic image of blood smear.

Note to Coin Exchanger

Nigerian Vehicle License Plate Recognition System using Artificial Neural Network

Traffic Sign Recognition Senior Project Final Report

International Journal of Advance Engineering and Research Development IMAGE BASED STEGANOGRAPHY REVIEW OF LSB AND HASH-LSB TECHNIQUES

Segmentation Plate and Number Vehicle using Integral Projection

Scrabble Board Automatic Detector for Third Party Applications

Efficient Car License Plate Detection and Recognition by Using Vertical Edge Based Method

MAV-ID card processing using camera images

Segmentation of Liver CT Images

][ R G [ Q] Y =[ a b c. d e f. g h I

Image Segmentation of Color Image using Threshold Based Edge Detection Algorithm in MatLab

Colored Rubber Stamp Removal from Document Images

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

Camera identification by grouping images from database, based on shared noise patterns

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

Lossy and Lossless Compression using Various Algorithms

Quality Control of PCB using Image Processing

Transcription:

Available Online at www.ijcsmc.com International Journal of Computer Science and Mobile Computing A Monthly Journal of Computer Science and Information Technology ISSN 2320 088X IMPACT FACTOR: 6.017 IJCSMC, Vol. 5, Issue. 11, November 2016, pg.21 28 A Methodology to Analyze Objects in Digital Image using Matlab Mazen A.Hamdan 1, Prof. Ziad A.Alqadi 2, Bassam M.Subaih 3 1, 2, 3 Albalqa Applied University Jordan, Faculty of Engineering Technology Department of Computer Engineering Abstract: A simple, useful, and effective methodology will be proposed, implemented and tested. This methodology deals with the objects within the image, and it will be used for object analyzing and object manipulation, which is an important process of digital images and it can suit deferent human applications. Key words: Digital image, Object, Connectivity, Object area, Object center. I- Introduction A large number of images in digital format are generated by deferent users and institutions every day. Consequently, how to make use of this huge amount of images effectively becomes a challenging problem [8]. In different fields of digital image processing applications, it still remains a challenging task to segment objects from its background and count them automatically [9]. The differences between the objects within a digital image lie on the texture, color, size, location and morphology of objects. Many digital image processing applications require object treatment such as : object counting, object indexing and labeling, object detection and extraction, object specification such as object size, object grouping object depletion and so on. So the need of a simple, easy, swift and effective process for object counting is Very important and necessary process of life and need to human applications. II- Theoretical background Digital image is a two or three dimensional matrix [1],[2], and can be classified to: binary, gray, or RGB color images. The matrix element is called a pixel and some pixels may have the same features, or some of the pixel form an object which is defined as a set of connected pixels [3]. 2016, IJCSMC All Rights Reserved 21

In binary valued digital imaging, a pixel can either have a value of 1 -when it's part of the pattern-, or 0 -when it's part of the background- i.e. there is no grayscale level. (We will assume that pixels with value 1 are black while zero valued pixels are white) [4]. In order to identify objects in a digital pattern, we need to locate groups of black pixels that are "connected" to each other. In other words, the objects in a given digital pattern are the connected components of that pattern. In general, a connected component is a set of black pixels, P, such that for every pair of pixels p i and p j in P, there exists a sequence of pixels p i,..., p j such that[5]: all pixels in the sequence are in the set P i.e. are black, and every 2 pixels that are adjacent in the sequence are "neighbors" When can we say that a given set of black pixels is 4-connected? First, we have to define the concept of a 4-neighbor (also known as a direct-neighbor): Definition of a 4-neighbor: A pixel, Q, is a 4-neighbor of a given pixel, P, if Q and P share an edge. The 4-neighbors of pixel P (namely pixels P2,P4,P6 and P8) are shown in Figure 1 below. Definition of an 8-connected component: Figure 1: 4-connected pixels A set of black pixels, P, is an 8-connected component (or simply a connected component) if for every pair of pixels p i and p j in P, there exists a sequence of pixels p i,..., p j such that[6],[7]: all pixels in the sequence are in the set P i.e. are black, and every 2 pixels that are adjacent in the sequence are 8-neighbors Object counting algorithms [5], [6],[7]usually take two consecutive images as input and return the locations where differences are identified. The aim of such an algorithm is to locate only the changes that are due to structural changes in the scene, i.e. a object counting. The change detection algorithms implemented in these video systems provide low-level information that can be used by higher level algorithms to determine the information desired (the trajectory of an object, the control of traffic flow, etc). 2016, IJCSMC All Rights Reserved 22

Object counting and extraction from the fixed background in the analyzed scene is mostly done by simple subtracting the current image and background image. III- Matlab functions The main matlab functions which can be used to manipulate the objects within the image are: rgb2gray: converts RGB color image to gray. im2bw: Converts image to binary image, based on threshold. imfill: Fill image regions and holes. bwareaopen: removes small objects from the image. bwlabel: Label connected components in 2-D binary image. regionprops: Measure properties of image regions such as area and coordinates. IV- Objects manipulation methodology The methodology of manipulating objects within a digital image can be implemented applying the following steps: 1. Get the original input image. 2. If the image is color image, convert it to gray image, then to binary image. 3. Remove noise from the image by removing small objects. 4. Apply the function bwlabel for Label connected components to retrieve the number of objects and a label matrix which points to the objects. 5. Measure properties of image regions to get objects information such as area and coordinates. 6. Extract objects or individual objects. The following matlab code can be used to implement this methodology and it can be executed in various forms. close all,clear all,clc %% Object mannipulation %% Get the image imagen=imread('c:\users\oday\desktop\countobjects\im4.png'); figure(1) imshow(imagen); title('input IMAGE WITH NOISE') 2016, IJCSMC All Rights Reserved 23

%% Convert to gray scale if size(imagen,3)==3 % RGB image imagen=rgb2gray(imagen); end %% Convert to binary image threshold = graythresh(imagen); imagen =~im2bw(imagen,threshold); %% Remove all object containing fewer than 30 pixels imagen = bwareaopen(imagen,30); %% Show image binary image figure(2) imshow(~imagen); title('input IMAGE WITHOUT NOISE') %% Label connected components [L Ne]=bwlabel(imagen); %% Measure properties of image regions propied=regionprops(l,'boundingbox'); prop=regionprops(l,'area','centroid'); hold on %% Plot Bounding Box for n=1:size(propied,1) rectangle('position',propied(n).boundingbox,'edgecolor','g','linewidth',2) end hold off pause (1) %% Objects extraction figure for n=1:ne 2016, IJCSMC All Rights Reserved 24

[r,c] = find(l==n); n1=imagen(min(r):max(r),min(c):max(c)); dd=prop(n).area; figure,imshow(~n1); title(['size in pixel: ',num2str(dd),' ', 'Object #:',num2str(n)]) pause(0.5) end Ne V- Implementation The methodology of object analyzing can be useful to analyze the objects within a color image, or a gray image, or a binary image, and it can be implemented in deferent ways in order to get the necessary information needed to a selective analysis. As an example we took a color image shown in figure 2 as an input image for the methodology, applying this methodology we can get the image shown in figure 3. INPUT IMAGE WITH NOISE Figure 2: Input color image (Example) INPUT IMAGE WITHOUT NOISE Figure 3: Image after removing noise. 2016, IJCSMC All Rights Reserved 25

As a results of implementation we can retrieve the necessary information such as :number of object( for this example the number=26), area in pixels for each object, center coordinates for each object, such information are listed in table 1. We can also extract any object from the image and the corresponding information as shown in figure 4. Table 1: Objects information Object number Area(pixel) X coordinate Y coordinate 1 820 8368.22 8086.232 2 882 8168.88 22268.21 3 2.. 2.63888.86.8.8 4 8.8 216.208 28.60228 5 8.. 8062.28..603.2 6 0.8 22628.8 8.36...8 7 888 8062.28 2806.82. 8 2.2 886.8.0 2226.828 9 812 20862.0. 8.363.1. 10 288 20868080 22062380 11 02. 2886.882 2886.181 12 288 20363800..68212 13 801 2216.23..16...8 14 8.2 22.61.83 28160..2 15 823 22868282 8.863.8. 16 882 22162882 22062.30 17 803 8.86.0.2 8.86.03. 18 802 8.06100. 2206.028 19 282 8.36.112 28.620.2 20 28. 8016..1..163.3. 21 2.3 82268.8. 2..6.82. 22 823 8.168223.160.8. 23 0.3 031688.. 22863.28 24 8.2 010618.2 2816.118 25 8.0 01.62230 2236.23. 26 8.2 0186.180.261228 2016, IJCSMC All Rights Reserved 26

Figure 4: Objects 24, 25, and 26(example). As it was mentioned before the methodology can be implemented in various ways, figure 5 shows the results of labeling equal objects using the image coins.png as an input image. Original image Dollars: $14 Number of coins:10 O2 O2 O2 O2 Figure 5: Labeling the objects. VI-Conclusions The proposed methodology is simple, easy, swift and effective process to be used in various image processing applications and it can treat the objects within the image deferent ways supplying the user with the following: - Object identification - Counting the number of objects. - Grouping the same objects. - Labeling the objects. - Retrieving needed information for each object 2016, IJCSMC All Rights Reserved 27

- Extracting objects - Deleting object. References [1] Ziad Alqadi,A Novel Methodology for Repairing a Torn Image, International Journal on Communications Antenna and Propagation - August 2011 (Vol. 1 N. 4). [2] Majed O. Al-Dwairi, Ziad A. Alqadi, Amjad A. AbuJazar and Rushdi Abu Zneit, Optimized True-Color Image Processing, World Applied Sciences Journal 8 (10): 1175-1182, 2010 ISSN 1818-4952. [3] G. Toussaint, Course Notes: Grids, connectivity and contour tracing (PostScript) [4] T. Pavlidis, Algorithms for Graphics and Image Processing, Computer Science Press, Rockville, Maryland, 1982. [5] Sumeet Chourasiya, G Usha Rani, Automatic Red Blood Cell Counting using Watershed Segmentation, Sumeet Chourasiya et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 5 (4), 2014, 4834-4838. [6] Jayme Garcia Arnal Barbedo, Method for Counting Microorganisms and Colonies in Microscopic Images, 12th Int. Conf. Computer Science and Its Applications, June 2012. pp. 84-87. [7] Sharif, J. MISWAN, et al. "Red blood cell segmentation using masking and watershed algorithm: A preliminary study." Biomedical Engineering (ICoBE), 2012 International Conference on. IEEE, 2012. [8] Lehmann T.M., Wein B., Dahmen J., Bredno J., Vogelsang F. & Kohnen M. : Content based image retrieval in medical applications : a novel multi step approach. International Society for Optical Engineering (SPIE), 3972, pp.312-320.(2000). [9] Choi H, Baraniuk R., Multiscale : Image segmentation using wavelet-domain hidden Markov models, IEEE Transaction on image processing, 10(9), pp.1309-1321 (2001). 2016, IJCSMC All Rights Reserved 28