Application of Run Length Encoding In Track Vision Inspection System KANG FEI

Similar documents
Improving the 3D Scan Precision of Laser Triangulation

Research on QR Code Image Pre-processing Algorithm under Complex Background

Measurements using three-dimensional product imaging

Perceptual Quality Improvement of Stereoscopic Images

Biomedical Image Analysis. Mathematical Morphology

morphology on binary images

Research of Traffic Flow Based on SVM Method. Deng-hong YIN, Jian WANG and Bo LI *

Keywords: Thresholding, Morphological operations, Image filtering, Adaptive histogram equalization, Ceramic tile.

Research on the Algorithms of Lane Recognition based on Machine Vision

A New Technique of Extraction of Edge Detection Using Digital Image Processing

Application of partial differential equations in image processing. Xiaoke Cui 1, a *

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments

From Pixels to Blobs

Journal of Chemical and Pharmaceutical Research, 2015, 7(3): Research Article

Morphological Image Processing

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

Chapter 9 Morphological Image Processing

ECE 172A: Introduction to Intelligent Systems: Machine Vision, Fall Midterm Examination

An adaptive container code character segmentation algorithm Yajie Zhu1, a, Chenglong Liang2, b

A Fast Method of Vehicle Logo Location Honglin Li

Face Recognition Technology Based On Image Processing Chen Xin, Yajuan Li, Zhimin Tian

Analysis of TFT-LCD Point Defect Detection System Based on Machine Vision

5th International Conference on Information Engineering for Mechanics and Materials (ICIMM 2015)

Adaptive Zoom Distance Measuring System of Camera Based on the Ranging of Binocular Vision

Optimized Design of 3D Laser Triangulation Systems

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

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Morphological Image Processing

Carmen Alonso Montes 23rd-27th November 2015

LED holographic imaging by spatial-domain diffraction computation of. textured models

Digital Image Processing

A Robust Automated Process for Vehicle Number Plate Recognition

result, it is very important to design a simulation system for dynamic laser scanning

Study on Gear Chamfering Method based on Vision Measurement

Machine vision. Summary # 5: Morphological operations

Fixed-point Simulink Designs for Automatic HDL Generation of Binary Dilation & Erosion

ENG 7854 / 9804 Industrial Machine Vision. Midterm Exam March 1, 2010.

CITS 4402 Computer Vision

Processing of binary images

New Approach in Non- Contact 3D Free Form Scanning

(Refer Slide Time 00:17) Welcome to the course on Digital Image Processing. (Refer Slide Time 00:22)

Advanced Vision System Integration. David Dechow Staff Engineer, Intelligent Robotics/Machine Vision FANUC America Corporation

Introduction. Computer Vision & Digital Image Processing. Preview. Basic Concepts from Set Theory

An Inspection Method of Rice Milling Degree Based on Machine Vision and Gray-Gradient Co-occurrence Matrix

The Comparative Study of Machine Learning Algorithms in Text Data Classification*

A New Algorithm for Shape Detection

Study on Image Position Algorithm of the PCB Detection

On-road obstacle detection system for driver assistance

A Fast Circular Edge Detector for the Iris Region Segmentation

International Conference on Electromechanical Control Technology and Transportation (ICECTT 2015)

Multi-pass approach to adaptive thresholding based image segmentation

CS 5540 Spring 2013 Assignment 3, v1.0 Due: Apr. 24th 11:59PM

Ulrik Söderström 17 Jan Image Processing. Introduction

Rapid Modeling of Digital City Based on Sketchup

Pupil Localization Algorithm based on Hough Transform and Harris Corner Detection

VC 10/11 T9 Region-Based Segmentation

Fabric Defect Detection Based on Computer Vision

Hand Gesture Recognition Based On The Parallel Edge Finger Feature And Angular Projection

Digital Image Processing Fundamentals

FACIAL FEATURES DETECTION AND FACE EMOTION RECOGNITION: CONTROLING A MULTIMEDIA PRESENTATION WITH FACIAL GESTURES

A 100Hz Real-time Sensing System of Textured Range Images

A Method of Face Detection Based On Improved YCBCR Skin Color Model Fan Jihui1, a, Wang Hongxing2, b

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

CS443: Digital Imaging and Multimedia Binary Image Analysis. Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University

Morphological Image Processing

Range Sensors (time of flight) (1)

FAST REGISTRATION OF TERRESTRIAL LIDAR POINT CLOUD AND SEQUENCE IMAGES

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

Algorithm Optimization for the Edge Extraction of Thangka Images

Detection of Edges Using Mathematical Morphological Operators

Robot vision review. Martin Jagersand

Face Hallucination Based on Eigentransformation Learning

A Nondestructive Bump Inspection in Flip Chip Component using Fuzzy Filtering and Image Processing

Optical Verification of Mouse Event Accuracy

Digital Image Processing COSC 6380/4393

A Novel Double Triangulation 3D Camera Design

Sensor technology for mobile robots

10/5/09 1. d = 2. Range Sensors (time of flight) (2) Ultrasonic Sensor (time of flight, sound) (1) Ultrasonic Sensor (time of flight, sound) (2) 4.1.

Counting Particles or Cells Using IMAQ Vision

Fast Vehicle Detection and Counting Using Background Subtraction Technique and Prewitt Edge Detection

An Endoscope With 2 DOFs Steering of Coaxial Nd:YAG Laser Beam for Fetal Surgery [Yamanaka et al. 2010, IEEE trans on Mechatronics]

An algorithm of lips secondary positioning and feature extraction based on YCbCr color space SHEN Xian-geng 1, WU Wei 2

SUPPLEMENTARY FILE S1: 3D AIRWAY TUBE RECONSTRUCTION AND CELL-BASED MECHANICAL MODEL. RELATED TO FIGURE 1, FIGURE 7, AND STAR METHODS.

Wave Particle Duality with Single Photon Interference

Digital image processing

Finger Print Enhancement Using Minutiae Based Algorithm

Investigation of Algorithms for Calculating Target Region Area

[ ] Review. Edges and Binary Images. Edge detection. Derivative of Gaussian filter. Image gradient. Tuesday, Sept 16

Half-edge Collapse Simplification Algorithm Based on Angle Feature

Massively Parallel Computing on Silicon: SIMD Implementations. V.M.. Brea Univ. of Santiago de Compostela Spain

Subpixel Corner Detection for Tracking Applications using CMOS Camera Technology

Inline Computational Imaging: Single Sensor Technology for Simultaneous 2D/3D High Definition Inline Inspection

Wavelength Estimation Method Based on Radon Transform and Image Texture

Implementation Of Harris Corner Matching Based On FPGA

Automatic License Plate Detection and Character Extraction with Adaptive Threshold and Projections

An optical multiplier setup with dual digital micromirror

AN APPROACH OF SEMIAUTOMATED ROAD EXTRACTION FROM AERIAL IMAGE BASED ON TEMPLATE MATCHING AND NEURAL NETWORK

Personal Authentication Using Palm Print Features

Filters. Advanced and Special Topics: Filters. Filters

Research and Design of Laser Accurate Displacement Measurement System Xiaogang Wang 1, a, Yuewei Bai 1,b and Kai Liu 1,c

Transcription:

International Forum on Management, Education and Information Technology Application (IFMEITA 2016) Application of Run Length Encoding In Track Vision Inspection System KANG FEI Guidao jiaotong Polytechnic Institute, China kangfei56@foxmail.com Keywords: run length encoding, morphological dilation, image processing, vision inspection Abstract. Optimized the binary image morphological dilation algorithm by run length encoding with the features in background redundant and intersection and union simple operation, the Run Length Encoding-Morphological Dilation optimized algorithm had been proposed. The track contour binary image was processed by morphological dilation with the optimized algorithm. Compared analysis based on the image processing result and the speed before and after. The edge burr and disconnection phenomenon can be removed by the optimized algorithm. The processing result of the track contour single frame image increased 5 times. The detection accuracy of the track visual inspection system can be improved to 20 points per meter. Introduction With the rapid development of Chinese railway construction, high-speed heavy has been the tendency. Vision solutions often used to check the track diseases in the conservation. The edge burr and disconnection phenomenon often caused in the image pre-processing and threshold segmentation by the Track visual inspection system. The mainly method to eliminate was the dilation process of morphological operation, but it took a large number of convolution operation. In this paper, morphological dilation process was optimized by run length encoding which not considered the background area and border region only described the core area and the internal characteristics. In addition, the simple operation of the intersection and union was another important advantage to the optimized morphological dilation effectively [1]. At present, the optimized algorithm of run-length encoding in morphological dilation has been proved efficiently in running memory and computing time[2]. Trein J et al proposed a FPGA-based run-length encoding arithmetic logic circuit which realized the high-speed hardware execution and parallel input of image data. The optimized algorithm of run-length encoding could effectively improve the speed of image preprocessing, and easy to implement on the hardware for high speed processing. In this paper, run-length encoding was used to optimize the morphological dilation algorithm, and applied in the image preprocessing of the Track Vision Inspection System. The basic principle and operation characteristics were analyzed and discussed the computing process of the optimized algorithm. Finally the improvement process of the image preprocessing would be verified by theoretical analysis and experimental verification. Principle of the Track Vision Inspection System Traditional contact track inspection equipment was replaced by non-contact vision solution as high failure, poor rate of the detection accuracy and bad interference. Machine vision theory was used to extract the track cross-sectional geometry by Track Vision Inspection System with multi-sensor data fusion to correct the data. Fig.1 is a schematic diagram of Track Vision Inspection System, which mainly composed with high-speed CCD camera and line laser. The original image data was identified by high-speed CCD camera from reflection imaging generated by laser, then computed the pixel outline of the track cross section through a series of algorithms. 2016. The authors - Published by Atlantis Press 700

Fig. 1 Schematic diagram of Track Vision Inspection System As the image data is a huge amount of information, speeding of the image processing algorithm was the key of the detection performance of the whole system. Image preprocessing was used for inhibiting invalidity information, enhancing effective features, which occupied most of the frame processing time and operational memory [3]. So the key to improve the image processing speed was the of image preprocessing. Run Length Encoding-Morphological Dilation optimized algorithm Run-length encoding is used to describe the core area of the image, pixels with the same gray scale value sequence made up a run-length in a progressive scan image matrix. The run-length only stores the gray constant value k and the length L, which avoiding repeated storage of the same gray value. If a gray scale of α row in a n n area image data matrix were (k 0,k 1 k n ), k i ~k i+5 among them were a pixel aggregate, the gray constant value was k, then run-length encode was (k,6). By definition the ROI (Region of Interest) could be seen as a collection of run-length encode. Therefore, it could avoid a lot of duplication of redundant computing in logic operation for intersection and union. Due to the interference of light, it often appeared edge burr and disconnection phenomenon after threshold segmentation processing during the process of track vision inspection, which had seriously affected the accuracy of the system detected. So the morphological dilation was used to regrow the burr and disconnection edge. Definition of the morphological dilation as Eq.1 shows: ( { I } U (1) M N = vm N = M v n n N Among them, M represents ROI, N represents the structural elements. The morphological dilation can be considered using a transpose structural element in Minkowski Addition. The Minkowski addition can be defined as Eq.2 shows [4] : {, } ( { vm I( N) } M N = m+ nm M n N = v (2) By definition it meet the commutative law as M N = N M and the distributive law as ( MUN) T = M TUN T, which is an important foundation for the establishment of the Run Length Encoding-Morphological Dilation optimized algorithm. If m i, n j are respectively a single run-length encoding of ROI and structural elements, a and b represented the number of run length for each of the two regions. The specific process of the Run Length Encoding-Morphological Dilation optimized algorithm as follows: 701

U a i =1 First of all, represented ROI and structural elements respectively by run-length encoding with m and i U b j j =1 n. Point by point sought a non-empty intersection with ROI and structural element, which was converted into using run-length encoding to solve as Eq.3 shows: a b = i j i= 1 j= 1 U U (3) M N m n Calculated the result of morphological dilation for single run length m i, n j as m i n j, then seeking union set of a b times single run length results, The optimized Minkowski addition could be represented by run-length encoding as Eq.4 shows: a b UU i j (4) i= 1 j= 1 M N = m n Time complexity T( n ) =O( f(n)) was used to operational efficiency comparison before and after algorithm. Growth rate of the algorithm execution time was proportional to the complexity of the function ƒ ( n ).If the size of the rectangular image and ROI were U U and u u pixels, then the run length were U and u. The structural element was a circular area with the diameter of v. The time complexity before was O(u 2 v 2 ), which was O(uv) optimized. The efficiency of the algorithm increased by secondary power. The amount of calculation significantly decreased. In summary, the Run Length Encoding-Morphological Dilation optimized algorithm could be used in the Track Vision Inspection System which was highly demanding in real-time image processing. In addition, the interference could not be completely eliminated by morphological dilation in practical application process. Filtering and gradation transformation were necessary to reduce the light spot noise [5]. Experimental Verification and data analysis Fig.2 was an 800 640 8-bit track contour image extracted by the Track Vision Inspection System. Experimental conditions as follows: fluorescent lamp diffuse reflectance lighting, the CCD pixel size was 5.6μm 5.6μm, the frame rate was 60fps, SNR>52dB. The white bright band generated by linear laser light sources which vertical irradiated track. The laser light source was red which had a 10 fan angle and a wavelength of 650nm. Fig. 2 Track Image Fig.3 Disconnection and edge burr The experiment result of image threshold segmentation were shown in Fig.3, there were disconnection and edge burr when the binary image was enlarged. These phenomenon would lead to inaccurate pixel coordinates in further refine process. In order to address this problem, morphological dilation was used for binary image after threshold segmentation. Run Length Encoding-Morphological Dilation optimized algorithm was used and the results as Fig. 4. 702

Fig. 4 Optimization algorithm results Disconnection and edge burr were eliminated by, then obtained a smooth contour of the track, formed a complete communication area. From analysis of algorithm, it did not change the results of the morphological dilation, which only optimized the calculation process. Compared before and after of image processing time of 10 images for further verification. The statistics results were shown in Table 1. Table 1 The image processing time statistic of 10 images before and after [ms] NO. 1 2 3 4 5 before the 124 119 123 124 122 after the 26 24 22 25 25 NO. 6 7 8 9 10 before the 119 122 121 118 125 after the 23 27 21 23 27 Table 1 shows that the Run Length Encoding-Morphological Dilation optimized algorithm has a greater advantage in single frame image processing speed. For the further exploration of the result in different pixel size of the image, 100 frames of image were selected which were the same scene as Fig.2 but with different pixel and processed, The relation of the average frame processing time before and after and image pixel size were shown in Fig.5. Single frame image processing time 1.6x10 4 1.4x10 4 1.2x10 4 1.0x10 4 8.0x10 3 6.0x10 3 4.0x10 3 2.0x10 3 0.0 800*640 morphological dilation R-MD algoritm 1024*768 1280*960 1600*1200 Image pixel Fig.5 The average frame processing time before and after with different pixel image The Fig.5 shows that the average frame processing time of binary image dilation processing is increased with image pixels, but the algorithm can solve this problem well. Therefore it can completely meet the real time inspection requirements of the Track Vision Inspection System. 2272*1704 2272*1704 703

Summary In this paper, Run Length Encoding-Morphological Dilation optimized algorithm was studied to solve the edge burrs and disconnection phenomenon in process of track contour image threshold segmentation. The preprocessing speed difference had been analyzed before and after the optimized image preprocessing. The experimental result showed that the processing speed of the increased by 5 times than the direct dilation process. The detection accuracy of the track visual inspection system can be improved to 20 points per meter. References [1] Sonka M, Hlavac V, Boyle R. Image processing, analysis and machine vision[m]. Thomson-Engineering, 2007. [2] Wook-Joong Kim, Seong-Dae Kim, Kyuheon Kim. Fast algorithms for binary dilation and erosion using run-length encoding[j]. ETRI journal. 2005, 27(6): 814-817. [3] Min Y Z, Dang J W, Zhang Z H. Online Surface Settlement Monitoring System of Ballastless Track with Difference Image Style[C]//Applied Mechanics and Materials. 2013, 367: 259-263. [4] Carsten Steger, Markus Ulrich, Christian Wiedemann. Machine vision algorithms and applications[m]. wiley-vch, 2008. [5] Resendiz E.,Hart J. M.,Ahuja N..Automated visual inspection of railroad tracks[j].intelligent Transportation Systems,2013,14(2):751-760. 704