EDGE DETECTION OF BINARY IMAGES USING THE METHOD OF MASKS.

Similar documents
RKUniversity, India. Key Words Digital image processing, Image enhancement, FPGA, Hardware design languages, Verilog.

Filtering of impulse noise in digital signals using logical transform

INTERNATIONAL RESEARCH JOURNAL OF MULTIDISCIPLINARY STUDIES

Scientific Visualization Example exam questions with commented answers

Palm Vein Extraction and Matching For Personal Identification

Implementation Of Fuzzy Controller For Image Edge Detection

LEUKEMIA PREDICTION USING RANDOM FOREST ALGORITHM

Fuzzy Inference System based Edge Detection in Images

Skeletonization Algorithm for Numeral Patterns

A FUZZY LOGIC BASED METHOD FOR EDGE DETECTION

Handwritten Devanagari Character Recognition Model Using Neural Network

Detection of objects in moving images and implementation of the purification algorithm on Analog CNN and DSP processors

Preprocessing of Stream Data using Attribute Selection based on Survival of the Fittest

Generation of Artistic Calligraphic Fonts Considering Character Structure

A NOVEL EDGE DETECTION METHOD USING K-MEANS CLUSTERING

Permutation and Complementary Algorithm to Generate Random Sequences for Binary Logic

Renu Dhir C.S.E department NIT Jalandhar India

OCR For Handwritten Marathi Script

Network Routing Protocol using Genetic Algorithms

IJSER. Real Time Object Visual Inspection Based On Template Matching Using FPGA

CHAPTER 6 MODIFIED FUZZY TECHNIQUES BASED IMAGE SEGMENTATION

A Fast Algorithm of Neighborhood Coding and Operations in Neighborhood Coding Image. Synopsis. 1. Introduction

Layout Segmentation of Scanned Newspaper Documents

Mobile Robot Path Planning Software and Hardware Implementations

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

A FINGER PRINT RECOGNISER USING FUZZY EVOLUTIONARY PROGRAMMING

ECE 274 Digital Logic. Digital Design. Datapath Components Subtractors, Two s Complement, Overflow, ALUs, Register Files Digital Design

FPGA IMPLEMENTATION FOR REAL TIME SOBEL EDGE DETECTOR BLOCK USING 3-LINE BUFFERS

Image Segmentation Based on Watershed and Edge Detection Techniques

IMA Preprint Series # 2016

SURVEY ON IMAGE PROCESSING IN THE FIELD OF DE-NOISING TECHNIQUES AND EDGE DETECTION TECHNIQUES ON RADIOGRAPHIC IMAGES

International Journal of Innovative Research in Computer and Communication Engineering

09/11/2017. Morphological image processing. Morphological image processing. Morphological image processing. Morphological image processing (binary)

Texture Image Segmentation using FCM

Fingerprint Image Enhancement Algorithm and Performance Evaluation

Three Dimensional Motion Vectorless Compression

An Integrated Skew Detection And Correction Using Fast Fourier Transform And DCT

A New Approach To Fingerprint Recognition

The p-sized partitioning algorithm for fast computation of factorials of numbers

Data Hiding in Binary Text Documents 1. Q. Mei, E. K. Wong, and N. Memon

International ejournals


1. INTRODUCTION 2012 DSRC

Time Stamp Detection and Recognition in Video Frames

A derivative based algorithm for image thresholding

Automatic Detection of Texture Defects using Texture-Periodicity and Gabor Wavelets

A Laplacian Based Novel Approach to Efficient Text Localization in Grayscale Images

Accelerating Pattern Matching or HowMuchCanYouSlide?

Human Identification at a Distance Using Body Shape Information

Dietrich Paulus Joachim Hornegger. Pattern Recognition of Images and Speech in C++

[10] Industrial DataMatrix barcodes recognition with a random tilt and rotating the camera

Traffic Signs Recognition Experiments with Transform based Traffic Sign Recognition System

Scene Text Detection Using Machine Learning Classifiers

Image Compression for Mobile Devices using Prediction and Direct Coding Approach

Fine Classification of Unconstrained Handwritten Persian/Arabic Numerals by Removing Confusion amongst Similar Classes

Image Enhancement Methods Approach using Verilog Hardware Description Language

System Verification of Hardware Optimization Based on Edge Detection

Lane Detection using Fuzzy C-Means Clustering

Digital Image Processing (CS/ECE 545) Lecture 5: Edge Detection (Part 2) & Corner Detection

1. Prove that if you have tri-state buffers and inverters, you can build any combinational logic circuit. [4]

Handwritten Hindi Character Recognition System Using Edge detection & Neural Network

Adaptive Fingerprint Image Enhancement Techniques and Performance Evaluations

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline

Robust biometric image watermarking for fingerprint and face template protection

Effects Of Shadow On Canny Edge Detection through a camera

Real Time Object Visual Inspection Based On Template Matching Using FPGA

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Detection of a Single Hand Shape in the Foreground of Still Images

Cursive Handwriting Recognition System Using Feature Extraction and Artificial Neural Network

Exploring Gaussian and Triangular Primary Membership Functions in Non-Stationary Fuzzy Sets

Fast Fuzzy Clustering of Infrared Images. 2. brfcm

IP LOOK-UP WITH TIME OR MEMORY GUARANTEE AND LOW UPDATE TIME 1

Signature Recognition by Pixel Variance Analysis Using Multiple Morphological Dilations

Fast Distance Transform Computation using Dual Scan Line Propagation

Introduction. Aleksandar Rakić Contents

Gender Classification Technique Based on Facial Features using Neural Network

Implementation and Advanced Results on the Non-Interrupted Skeletonization Algorithm

Intensification Of Dark Mode Images Using FFT And Bilog Transformation

Static Interconnection Networks Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

A simulation study of the influence of vector and scalar filters on the matching precision of stereo images

NCC 2009, January 16-18, IIT Guwahati 267

DESIGNING A REAL TIME SYSTEM FOR CAR NUMBER DETECTION USING DISCRETE HOPFIELD NETWORK

Object detection using non-redundant local Binary Patterns

Image Enhancement: To improve the quality of images

Color Characterization and Calibration of an External Display

Hardware Description of Multi-Directional Fast Sobel Edge Detection Processor by VHDL for Implementing on FPGA

Lecture 12 Level Sets & Parametric Transforms. sec & ch. 11 of Machine Vision by Wesley E. Snyder & Hairong Qi

COMPARATIVE STUDY OF IMAGE EDGE DETECTION ALGORITHMS

Finger Print Enhancement Using Minutiae Based Algorithm

LOGIC DESIGN. Dr. Mahmoud Abo_elfetouh

Volume 2, Issue 9, September 2014 ISSN

Digital Image Processing COSC 6380/4393

Journal of Industrial Engineering Research

3.6 Monitoring and control systems

FPGA Implementation of a Nonlinear Two Dimensional Fuzzy Filter

Why Fuzzy? Definitions Bit of History Component of a fuzzy system Fuzzy Applications Fuzzy Sets Fuzzy Boundaries Fuzzy Representation

Design and Implementation of a cryptographic system for images using Random number generator

Summary. Boolean Addition

Face Detection using Hierarchical SVM

Calculating the Distance Map for Binary Sampled Data

Transcription:

AIN SHAMS UNIVERSITY FACULTY OF ENGINEERING Vol. 35, No. 3, Sept 30,2000 SCIENTIFIC BULLETIN Received on : 3/8/200 Accepted on: 25/9/2000 pp : 349-355 EDGE DETECTION OF BINARY IMAGES USING THE METHOD OF MASKS. Eng. Ayman M Bahaa Eldeen Sadeq, Prof. Dr. Abdel-Moneim A. Wahdan, Prof. Dr. Hani M. K. Mahdi Faculty of Engineering, Ain Shams University Abstract In this work the of masks, creating and using of inverted image masks, together with binary operation of image data are used in edge detection of binary images, monochrome images, which yields about 300 times faster than ordinary s. The is divided into three stages: Mask construction, Fundamental edge detection, and Construction Comparison with an ordinary and a fuzzy based is carried out. ملخص في هذا البحث يتم عرض كيفية استخدام طريقة القوالب الثنائية في تعيين حدود األشكال في الصور الثنائية واألسود- والتي تؤدي إلى تحسين األداء بنسبة تصل إلى األبيض 300 ضعف الطرق العادية. تنقسم الطريقة إلى ثالث م ارحل, تكوين القالب, تعيين الحدود األساسية, ثم تجميع حد الشكل النهائي. كما يحتوي البحث عمى مقارنة الطريقة المقترحة مع الطريقة العادية. 1 Introduction detection is a major step in pattern recognition and image processing. It is an essential step in many preprocessing techniques of Arabic text, as edge detection is needed in thinning and segmentation stages. An edge point in an image is identified as a point of the image that has at least a neighbor point that doesn t belong to the image. For a binary image the definition is that an edge point is a black point that has at least one white 4-neighbor or it is a black point that has at most one black 8-neighbor. [1] To illustrate these definition consider fig.1 of a point and its neighbors A 4-neighbor is one of 2,4,6 and 8 neighbors and an 8-neighbor is any of the 8 neighbors. The above definition is illustrated in fig. 2. A black point is represented by 0 and a white one is represented by 1. x denotes don t care points. We can see that other cases of neighbors are included in these cases. So we can see that we have 4 types of edge points as indicated in Fig. 2. We can define a Boolean function (p) to be as follows (p)= (p) and (2 or 4 or 6 or 8) Two major algorithms can be carried out to get edge points. 349

One of them is to scan through the of the image and test each pixel by the (p) function. Any pixel that gives logic 1 is an edge point. This algorithm is described in [1] as a part of the thinning algorithm of that research. Another technique to get edge points is to use a fuzzy based technique to get the edge points. In this work the problem of detection edges in images is characterized as a fuzzy reasoning problem. The edge detection problem is divided into three stages: filtering, detection, and tracing. s are filtered by applying fuzzy reasoning based on local characteristics to control the degree of Gaussian smoothing. Filtered images are then subjected to a simple edge detection algorithm that evaluates the edge fuzzy membership value for each pixel, based on local image characteristics. Finally, having high edge membership are traced and assembled into structures, again using fuzzy reasoning to guide the tracing process. [2]. Terms involved in the fuzzy algorithm can be found in [3], [4], and [5]. 2 The Method of Masks This comes directly the fact that binary operations (AND, OR, and NOT) are the fastest operations on digital computers. This fact comes that these operations are performed using single level digital circuit with only one time propagation delay. Other instructions, even simple like addition, involve more complicated circuits and hence more propagation delays and time. Another fact of the binary operation is that they don t involve major increase of time as the data size increases, at most the increase is linear and actually far less than linear, other operations involves this increase. [6] Another fact is that transforming data within the memory of a digital computer is also a very fast operation, since it only involves bus operations [6]. The is divided into three stages: Mask construction, Fundamental edges generation, and finally constructing the edge. In each step only a single instruction that performs a bit-block transfer of the color data corresponding to a rectangle of a memory location to another possibly performing a binary operation on the data of the source and destination locations of memory. [7] In a monochrome image, the color data of an image is simply a bit-stream consisting of a bit corresponding to each pixel of the image. This bit is either 0 for black and 1 for white ones. The operation performed on these data are copying, anding, and inverting (not) of the image. These operations are frequently done on the display board memory making them even faster 3 Mask Construction The mask we use here is simply a negative image of the original image, just like a negative slide of a photograph, and is constructed by using the inversion of the image (1s to 0s and vise versa) in the memory of the computer. Fig. 3 shows the image of the Arabic letter Ain and its mask. 4 Fundamental s Generation This is the main step in the, in this step the original image is moved one pixel at a time in the fundamental 4 directions (left, right, up, and down) and anded with to get a fundamental edge each time. For example to get the left edge of the image, the image is shifted to the right one pixel and anded with. This process gets all white of to be on black of the original image, except those on the left edge stay white, as shown in Fig. 4. Other fundamental edges can be found the same way. 350

5 Constructing the The edge of the image can be constructed by simply oring the four edges and inverting the result. Fig. 5 shows the edge of the letter Ain after construction. 6 Significance of the algorithm The algorithm has three major advantages over the two algorithms mentioned earlier 1. It is very simple to implement an engineering point of view compared to the fuzzy algorithm. 2. It is very fast compared to both algorithms. 3. The time by the algorithm is, at most, linearly proportional to the image size, and actually far less than that. As we can see the traditional algorithm is very time consuming and takes a huge time in large sizes of images. The fuzzy one is a very expensive algorithm since it employs calculation and inference verification of membership values. In the field of binary character images, our algorithm gets a very accurate result and doesn t need any enhancement since we discard all the color information on the image and consider only the geometrical data of the image. 7 Experimental Results We implemented the traditional algorithm and tested it against our algorithm and got the following results As we can see that the time to generate the edge in two identical sized images is identical in our, while it depends on the edge size in the image in the traditional algorithm. This comes the edge construction stage that involves more to set black as the edge size increases. We also tested our algorithm in non-binary images, these images requires to be converted first to a binary image, by threshold or a proper, [8] and then apply the algorithm as fig. 10 and 11 show As we can see, our is not very suitable for normal images since it doesn t get a very good quality in the edge, since the thresholding process distort the image to a very big degree. 8 Remarks The above results was optioned using Microsoft visual C++ ver. 6.0 as the programming platform. The program was tested on a Pentium 133MHz personal computer with 32 MB of memory and a PCI VGA adapter with 2 MB of display memory 9 Conclusions 1. The of mask gets the edge of binary images very fast up to 300 time the traditional ways 2. This is best suited for character images since they are already binary images. 3. Hardware designed specially for the binary operations of images can extreme this algorithm to almost the edge of speed. 351

10 References. [1] Hani M. K. Mahdi, Thinning and Transforming The Segmented Arabic characters into Meshes of unified small size, 14 th Int. Conference for Statistics, Computer Science, Social and demographic Research, Cairo, Egypt, 25-30 March 1989 [2] Tod Law, Hidenori Itoh, and Hirohisa Seki, Filtering, edge Detection, and tracing Using Fuzzy Reasoning, IEEE transaction on pattern analysis and machine intelligence Vol. 18 No. 5 may 1996 [3] Earl Cox, Fuzzy fundamentals, IEEE SPECTRUM October 1992. [4] James C. Bezdek, Fuzzy Models- What are They, and Why?, IEEE transactions on Fuzzy systems. Vol. 1 no. 1 February 1993 [5] Jerry M. Mendel, Fuzzy Logic Systems for Engineering, a Tutorial, Proceedings of the IEEE Vol. 83, No. 3 Marsh 1995 [6] M. Morris Mano, Digital Logic and Computer Design, 1989 Prentice hall of India. [7] MSDN Library Visual Studio 6.0 release 1998 Microsoft Corp. [8] John C. Russ, The Processing Handbook, Second edition, 1995 CRC Press Inc. 352

11 Figures. 3 2 1 4 P 8 5 6 7 Fig. 1 A point and its neighbors x X x x x x x 0 1 1 0 x x X x x x x (a) (b) x 1 x x X x x 0 x x 0 x x X x x 1 X (c) (d) Fig.2 (a) Right, (b) Left, (c) Up and (d) Down edge points. (a) (b) Mask Fig. 3 the image and its mask Fig. 4 The left edge of letter Ain Fig. 5 The final edge of letter Ain Original 353

traditional 50 x 50 191 10 Fig. 6 letter Ain and its edges Original traditional 100 x 100 681 10 Fig. 7 letter Ain and its edges Original traditional 300 x 300 6068 20 Fig. 8 letter Ain and its edges 354

Original traditional 300 x 300 5919 20 Fig 9 letter Waw and its edges (a) Original (b) Binary Fig. 10 The photograph of Lina and its monochrome version Size (256*256) 20 Fig. 11 s of the image using algorithm. 355