Next Article in Journal
Fast Interrogation of Fiber Bragg Gratings with Electro-Optical Dual Optical Frequency Combs
Previous Article in Journal
Identification of Object Dynamics Using Hand Worn Motion and Force Sensors
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Gap Measurement of Point Machine Using Adaptive Wavelet Threshold and Mathematical Morphology

1
State Key Laboratory of Rail Traffic Control and Safety, Beijing Jiaotong University, Beijing 100044, China
2
National Engineering Research Center of Rail Transportation Operation and Control System, Beijing Jiaotong University, Beijing 100044, China
3
Department of Computer Science, University of York, York YO10 5GH, UK
4
School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China
*
Author to whom correspondence should be addressed.
Sensors 2016, 16(12), 2006; https://doi.org/10.3390/s16122006
Submission received: 1 October 2016 / Revised: 15 November 2016 / Accepted: 23 November 2016 / Published: 26 November 2016
(This article belongs to the Section Physical Sensors)

Abstract

:
A point machine’s gap is an important indication of its healthy status. An edge detection algorithm is proposed to measure and calculate a point machine’s gap from the gap image captured by CCD plane arrays. This algorithm integrates adaptive wavelet-based image denoising, locally adaptive image binarization, and mathematical morphology technologies. The adaptive wavelet-based image denoising obtains not only an optimal denoising threshold, but also unblurred edges. Locally adaptive image binarization has the advantage of overcoming the local intensity variation in gap images. Mathematical morphology may suppress speckle spots caused by reflective metal surfaces in point machines. The subjective and objective evaluations of the proposed method are presented by using point machine gap images from a railway corporation in China. The performance between the proposed method and conventional edge detection methods has also been compared, and the result shows that the former outperforms the latter.

1. Introduction

The railway system in China has undergone a dramatic increase in recent years. According to a report of the National Railway Administration of the People’s Republic of China [1], the passenger and cargo transportation volume were 2.535 billion and 3.358 billion tons, respectively, in 2015. Heavy traffic means that the capacity utilization of the existing infrastructure is high. This will lead to more equipment failures and service disruptions. Among these equipment failures, railway point machines account for the vast majority of railway infrastructure failures that affect the availability of the system [2]. Almost 33% of the total maintenance cost of railways is dedicated to point machines and crossings [3]. How to monitor the health of railway turnouts and decrease their failure rates has become an important problem that urgently requires a solution.
The gap width between a switch point and a stock rail is a key safety parameter for monitoring a point machine’s healthy status. Too large of a gap may lead to catastrophic consequences, such as train derailment, human injury, and severe damages to the equipment and the environment [4]. Monitoring these parameters helps to build a point machine failure prediction system. Among these monitoring methods, an efficient one is the measurement of a point machine’s gap; i.e., the real gap between the lock bar notch and the edge of the lock hammer, as shown in Figure 1. This gap may be used as an indirect measurement of gap width between switch point and stock rail. The former can be easily converted to the latter, and the gap width between switch point and stock rail can therefore be calculated. Following this idea, some researchers have devoted a large amount of effort in this area. Franke [5] presented a device that uses inductive proximity sensors, and Hager [6] used a transformer with two coils to detect the point machine gap. Melich proposed a measurement with a magnetic field produced by two magnets and two Hall effect sensors [7]. This approach, however, has two problems. The first is that the analog signal from the sensor has to be calibrated in order to give a measure of the gap in millimeters; another problem is that the wires or the sensors themselves may be broken during maintenance tasks. Melich also used an image binarization and morphological filtering to measure the point machine gap. Lou proposed a point machine gap measurement method [8] which integrates median filtering methods and edge image binarization to extract gap edges and then calculate the point machine gap.
The above studies improve the precision of gap measurement. They utilize traditional image processing technologies, such as image denoising and image binarization. However, there are three problems requiring advancements in the processing of gap images. The first is that an unsuitable image denoising method may blur edges in gap images, which may set up barriers for the following edge detection and gap width calculation. The second one is that a local intensity variation often appears in gap images due to uneven illumination—this may lead to missing a gap edge by simply adopting global thresholds. Finally, in edge detection and gap measurement, an unsuitable structure element may be useless for reducing spectacle spot caused by metal surface reflection.
To tackle these problems, we propose an improved gap measurement algorithm which integrates an adaptive wavelet threshold, local threshold in image binarization, and line structure element in mathematical morphology. An adaptive wavelet threshold can obtain the optimal threshold in wavelet-based image denoising. This will greatly suppress Gaussian noise imposed on the images and keep the unblurred gap edges; a local threshold rather than a global one may help to search gap edges under uneven illumination; and line structure element in mathematical morphology may greatly reduce the spectacle spot due to metal surface reflection. A subject and object evaluation is presented to validate the effectiveness of the proposed method.
The rest of this paper is organized as follows. Section 2 provides an overview of a gap measurement system for point machines. Section 3 elaborates the proposed method, including adaptive threshold-based wavelet denoising, local threshold-based image binarization, and line structure element-based mathematical morphology. Section 4 presents a subject and object evaluation of the proposed method. Finally, the paper is concluded in Section 5.

2. System Overview

Figure 2 illustrates a schematic diagram of the gap measurement system. The most critical factor determining the camera image quality is the type of the image sensor. There are two basic types of image sensor: CCD (charge-coupled device) and CMOS (complementary metal oxide semiconductor). Traditionally, CCD sensors have been thought to produce better-looking images with less visual noise and distortion, but they draw more power and provide slower data-throughput speed. CMOS is increasingly used in today’s cameras, allowing users to shoot high-resolution video and apply complex imaging effects with ease [9]. In this gap measurement system, a CMOS plane camera with resolution 750 × 480 and focus length 3.6 mm is adopted. In Figure 2, a camera with CMOS plane is firstly used to capture two images of black and white stripes pasted on a lock bar. Among these two stripes, one is used as a reference gap tag. Therefore, the gap width is indirectly measured by the displacement between these two stripes. The gap measurement system transfers these images to the image processing unit, and then an adaptive threshold-based wavelet denoising is carried out to obtain the optimal threshold and suppress Gaussian white noise. Second, a local threshold-based image binarization is used to decrease the chance of edge missing due to uneven illumination. Afterward, a line structure element-based mathematical morphology is applied to reduce the speckle spot caused by material surface reflection. Finally, the gap measurement is gained by calculating the displacement between edges of corresponding two stripes.

3. Methodology

3.1. Adaptive Wavelet Threshold-Based Noise Removal

Usually, a CMOS detector is characterized by a linear model. Then, for the ( i j ) t h detector in the CMOS plane, the measured readout signal g i j can be expressed as [10]:
g i j = a i j · f i j + ϵ i j
where a i j ( t ) are the gain and ϵ i j the added noise of the ( i j ) t h detector, and f i j ( t ) is the real incident radiation collected by the respective detector. Because the gain is not obvious in the captured images, we omit it in this work. ϵ i j are independent and identically distributed (iid) as normal N ( 0 , σ 2 ) and independent of { f i j } .
The objective of denoising is to remove the noise, or “denoise” g i , j , and to obtain an estimate f ^ i j of f i j while minimizing the mean squared error (MSE),
M S E ( f ^ ) = 1 M N i , j ( f ^ i j f i j ) 2
where M and N are the image sizes.
It should be noted that the edges in the image are not blurred by the denoising operation, because these edges always carry important information for the following gap measurement. On one hand, the traditional filter templates (such as “average”) can remove the noise. However, on the other hand, it also blurs the edge, which will set up an obstacle for the following edge detection. Therefore, we here use wavelet-based image denoise technology. Image denoising based on the wavelet transform is mainly completed by wavelet thresholding in wavelet domain [11,12]. The processing of image denoising in wavelet domain can be considered as an optimal estimation to the input image with noise data using the threshold.
Let g = { g i j } i , j , f = { f i j } i , j , and ε = { ϵ i j } i , j . Here we borrow the idea from [13] to use Bayesian to find the best soft-threshold rules under the Gaussian assumption (i.e., X N ( 0 , σ X 2 ) ), which can efficiently utilize the image prior knowledge. Formally, the objective of image denoising is to find a threshold T which minimizes the Bayes risk,
r i s k ( T ) = E ( X ^ X ) 2 = E X E Y | X ( X ^ X ) 2
where X ^ = ρ T ( Y ) , Y = W g , X = W f , V = W ε , and W is the two-dimensional dyadic orthogonal wavelet transform operator. Y | X N ( x , σ 2 ) . ρ T ( ) is the threshold function. For soft-threshold function, ρ T ( x ) = s g n ( x ) · max ( | x | T , 0 ) takes the argument and shrinks it toward zero by the threshold T.
Equation (3) can be reformulated as follows:
r i s k ( T ) = E X E Y | X ( X ^ X ) 2
= ( ρ T ( y ) x ) 2 p ( y | x ) p ( x ) d y d x
= σ 2 + 2 π ( T 2 + σ 2 σ X 2 ) T σ y exp ( T 2 2 )
2 π T σ σ y exp ( T 2 2 σ y 2 )
where σ y 2 = σ 2 + σ X 2 . In contrast to [13], the σ X in the captured point machine gap images is almost same, because only the gap location moved slowly, and the background is almost unchanged. Therefore, by using the wavelet operation W and the Bayes-based calculation of optimal threshold, the adaptive wavelet threshold T * is
T * ( σ ) = arg min T r i s k ( T )
The value of T * ( σ ) is found numerically for different values of σ 2 under the σ X = 0.3816 , as shown in Figure 3. From it, we can set the optimal threshold for image denoising.
Figure 4 presents the noisy image with σ 2 = 0.02 and the denoising one by applying the generated optimal threshold 0.052. Considering that it is impossible to obtain true noise-free images, we have to carefully select some with low noise as noise-free images. The simulated noisy images are obtained by adding different levels of noise.

3.2. Local Threshold-Based Image Binarization

In order to perform edge detection, a grey image should be transformed into a binary one. During this process, an optimal threshold plays a key role. There are well-known global and local threshold algorithms [14,15]. Compared with the global thresholding algorithms, local ones are superior in terms of selecting threshold values according to local intensity variation. Specifically in point machine gap images, the local intensity variation often appears due to uneven illumination. In order to solve this problem, an adaptive local binarization method, as shown in Algorithm 1, is proposed by dividing the gap images into several parts and then applying Otsu’s method [14] to each part. Otsu’s method chooses the threshold to minimize the intraclass variance of the black and white pixels to form a binary image. Figure 5 illustrates that two parts are divided in a point machine gap image, in which each part uses Otsu’s method to generate the binary images. Figure 6 gives the comparison between the global threshold and the local one. From this figure, we can see that if a global threshold is used, a gap calibration line (i.e., the vertical white line in the upper image) is lost due to weak illumination. Otherwise, a local threshold can be used to overcome the uneven illumination and capture the gap calibration line, which is shown in Figure 6b.
Algorithm 1: Adaptive local image binarization method.
Sensors 16 02006 i001

3.3. Line Structure Element-Based Mathematical Morphology

Mathematical morphology is a set-theoretic method of image analysis providing a quantitative description of geometrical structures. The fundamental idea of mathematic morphological edge detection is that an edge which satisfies the shape of a structure element is extracted according to the morphological edge detection operator [16]. By utilizing suitable geometrical structures, the methods of edge detection based on the morphology transform are capable of obtaining clear edges and suppressing the noise—especially impulse noise, such as speckles in the case of a reflective metal surface.
Considering the special shape of point machine gaps, we here apply a line structure element, as shown in Figure 7. This creates a flat, linear structuring element, where “Length” specifies the length, and is approximately the distance between the centers of the structuring element members at opposite ends of the line. “Degree” specifies the angle (in degrees) of the line, as measured in a counterclockwise direction from the horizontal axis.
Figure 8 presents the edge detection by performing morphological opening on the binary image with the proposed line structuring element. The morphological opening operation is an erosion followed by a dilation, using the same line structuring element for both operations. Figure 8a illustrates the binary point machine images, and Figure 8b the edge detection by mathematical morphology. Using the aforementioned line structuring element shown in Figure 7, we can see that some speckles caused by the reflective metal surface are removed, and the point machine gap edges are extracted clearly.
The gap edges can be easily calculated by multiplying the number of pixels between gap edges by the resolution between two pixels.

4. Experimental Results

4.1. Subjective Evaluation

The proposed method is tested on a number of point machine gap images recorded in a railway corporation in China, including low level noise images and noisy images. The former can be regarded as noise-free images due to their high quality. The latter may result from electromagnetic interference or communication channels.
In noise-free images, Figure 9 gives the comparison of the proposed method with traditional edge detection methods, such as Sobel [17], Prewitt [18], Roberts [19], Laplace [20], Canny [21], and fuzzy logic [22] based techniques. For Sobel, Prewitt, Roberts, Laplace, and Canny based edge detections, the noise-free image is convolved with their kernels to approximate the derivatives in horizontal and vertical change. Heuristic thresholds are used, which are based on RMS (root mean square) estimates of the mean of the magnitude squared image. The fuzzy method uses membership functions to define the degree to which a pixel belongs to an edge or a uniform region. Similar to [22], we define a fuzzy inference system with a zero-mean Gaussian membership function for inputs and triangular membership functions for outputs. Then, some fuzzy inference rules were added to make a pixel white if it belongs to a uniform region, and otherwise, it was made black. The result of the edge detection is obtained by defuzzification.
We can see that the proposed method successfully detects all types of edges and suppresses the speckle spot caused by reflective metal surfaces. However, the traditional method may generate false edges or lose true ones, which will create obstacles for the following point machine gap measurement.
At the same time, the proposed method has the advantage of detecting point machine edges in noisy images without blurring edge pixels. This is verified by detecting edges in point machine images with Gaussian white noise with variance 0.02. Figure 10 illustrates the comparison between the proposed method and the aforementioned conventional edge detection algorithms, in which heuristic thresholds are used. These heuristic thresholds are based on RMS estimate of noise mean of the magnitude squared image, and are roughly proportional to the SNR (signal-to-noise ratio). From the experimental results, it is clear that the proposed method detects very few false edge pixels compared to other reported edge detection techniques.

4.2. Objective Evaluation

Measures for evaluating the performance of edge detectors have been formulated by Abdou and Pratt [23] and DeMicheli, Caprile, Ottonello, and Torre [24]. The criteria to consider in evaluating the performance of an edge detector include
  • Probability of false edges;
  • Probability of missing edges;
  • Error in estimation of the edge angle;
  • Mean square distance of the edge estimate from the true edge;
  • Tolerance to distorted edges and other features such as corners and junctions.
The first two criteria concern the performance of an algorithm as a detector of edges. The second two criteria concern the performance of an algorithm as an estimator of the edge location and orientation. The last criterion concerns the tolerance of the edge algorithm to edges that depart from the ideal model used to formulate the algorithm. We here use a set of direct measurements, such as the number of correctly detected edge pixels (called true positive), the number of pixels erroneously classified as edge pixels (called false positive), and the amount of edge pixels that were not classified as edge pixels (called missed).
The number of positive edge pixels, false edge pixels, and missed edge pixels detected by different reported edge detection techniques are shown in Figure 11, Figure 12 and Figure 13, respectively. From Figure 12, it is evident that the proposed algorithm when subject to a noisy image of 512 × 512 size and 25 dB noise level has detected 102 false edge pixels, while other edge detection techniques—For instance, Sobel [17], Prewitt [18], Laplace [20], Roberts [19], Canny [21], and fuzzy logic [22] based techniques—after fine tuning, the Canny method gives more false edge pixels. As shown in Figure 11 and Figure 13, the proposed algorithm gives more positive edge pixels and less missed edge pixels than other edge detection techniques.
In this work, the performance is next compared based on the parameters mean square error (MSE) and peak signal-to-noise ratio (PSNR). MSE indicates the average difference of the pixels throughout the image. A higher MSE indicates a greater difference between the original and processed image. Nevertheless, it is necessary to be very careful with the edges. The formula for the MSE calculation is given as:
M S E = 1 M * N i j ( X i j V i j ) 2
where M and N are the size of the image, X is the processed image, and V is the original image. Peak Signal-to-Noise Ratio (PSNR) is formulated as
P S N R = 10 * lg ( M * N * 255 2 i j ( X i j V i j ) 2 )
which is used for quantitative comparison of different methods.
As shown in Table 1, the proposed method has the smallest MSE and the largest PSNR, so it has the best performance.
Finally, the performance is compared based on the parameters S D k [25]. S D k has better theoretical properties and is sensitive to both False Positive (FP) and False Negative (FN). When k = 1 or k = 2 we obtain the average symmetric surface distance or root mean square symmetric surface distance, respectively, as introduced by Heimann et al. [26]. The formula for S D k calculation is given as:
S D k ( E g t , E c ) = ( Σ p E c d k ( p , E g t ) + Σ p E g t d k ( p , E c ) ) 1 k ( | E c E g t | ) 1 k
which is used for quantitative comparison of different methods. In Equation (11), E g t is perfect solution (ground truth) to the edge detection problem, E c a candidate edge image, p a pixel, d ( p , E g t ) the distance from p to the closest point in E g t , | · | cardinality of set.
From Table 2, we can see that the proposed method has the smallest S D 1 and S D 2 . Therefore it gains the best performance.

5. Conclusions

This work proposes an image-based point machine gap measurement method. The proposed method can obtain an optimal denoising by using an adaptive wavelet-based threshold while keeping gap image edges unblurred, which plays an important role in precise gap measure. It also reduces edge missing by using local rather than global threshold in image binarization. A line structure element in mathematic morphology helps to reduce the speckle spot caused by metal surface reflection. Point machine gap images from a railway corporation have been used to validate the effectiveness of the proposed method via both subjective and objective evaluations. A comparison experiment shows that the proposed method outperforms the traditional ones. In image binarization, a more intelligent method is needed in order to obtain the optimal block division and local threshold; this is left for future work.

Acknowledgments

The work was supported by the Joint Funds of the National Natural Science Foundation of China (Grant No. U1434209), National Natural Science Foundation of China under Grant (No. 61473029), the State Key Laboratory of Rail Traffic Control and Safety of Beijing Jiaotong University within the frame of the project (RCS2014ZT05 and RCS2016ZT010) and Gansu Key Laboratory of Traffic Information Engineering and Control of Lanzhou Jiaotong University within the frame of the project (20161101).

Author Contributions

Tianhua Xu and Guang Wang conceived and designed the algorithm of point machine gap measurement; Haifeng Wang performed the experiments; Tangming Yuan and Zhiwang Zhong analyzed the data; Tianhua Xu contributed to the construction of the analysis tools and write the paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. National Railway Administration of the People’s Repubilc of China. Railway Statistical Bulletin in 2015. 2016. Available online: http://www.nra.gov.cn/fwyd/zlzx/hytj/ (accessed on 15 May 2016). [Google Scholar]
  2. Morant, A.; Larsson-Kraik, P.O.; Kumar, U. Data-driven model for maintenance decision support—A case study of railway signalling systems. Proc. Inst. Mech. Eng. Part F J. Rail Rapid Transit 2016, 230, 220–234. [Google Scholar] [CrossRef]
  3. Budai-Balke, G. Operations Research Models for Scheduling Railway Infrastructure Maintenance. Ph.D. Thesis, Erasmus University Rotterdam, Rotterdam, The Netherlands, 2009. [Google Scholar]
  4. Xu, T.; Wang, H.; Yuan, T.; Zhou, M.C. BDD-based synthesis of fail-safe supervisory controllers for safety-critical discrete event systems. IEEE Trans. Intell. Transp. Syst. 2016, 17, 2385–2394. [Google Scholar] [CrossRef]
  5. Franke, R.C. Railway switch machine point detection system. Patent US 6,382,567 B2, 5 August 1999. [Google Scholar]
  6. Hager, M.A.; Towey, M.F. Contactless point detection system for railroad switch. Patent US 6,427,949 B1, 23 January 2001. [Google Scholar]
  7. Melich, R.M. Position estimation and gap measurement of a point machine using an electronic device with embedded artificial vision framework. Masters’ Thesis, Universitat Politècnica de Catalunya, Barcelona, Spain, 2015. [Google Scholar]
  8. Lou, S. Study on Switch Machines Gap Detection System Based on Video Image Recognition Technology. Masters’ Thesis, Lanzhou Jiaotong University, Lanzhou, China, 2013. [Google Scholar]
  9. CMOS Is Winning the Camera Sensor Battle. Available online: http://www.techhive.com/article/246931/cmos_is_winning_the_camera_sensor_battle_ and_heres_why.html?page=1/2 (accessed on 20 August 2016).
  10. Shahram, M.; Sobhan, R.; Mehdi Nasiri, S. Fixed pattern noise reduction method in CCD sensors for LEO satellite applications. In Proceedings of the 2011 11th International Conference on Telecommunications (ConTEL), Graz, Austria, 15–17 June 2011; pp. 441–446.
  11. Mustafa, N.; Li, J.P.; Kh, S.A.; Giess, M. Medical image de-noising schemes using wavelet threshold techniques with various noises. In Proceedings of the International Computer Conference on Wavelet Active Media Technology and Information Processing, Chengdu, China, 18–20 December 2015; pp. 283–289.
  12. Chen, Y.; Han, C. Adaptive wavelet threshold for image denoising. Electron. Lett. 2005, 41, 586–587. [Google Scholar] [CrossRef]
  13. Chang, S.G.; Yu, B.; Vetterli, M. Adaptive wavelet thresholding for image denoising and compression. IEEE Trans. Image Process. 2000, 9, 1532–1546. [Google Scholar] [CrossRef] [PubMed]
  14. Otsu, N. A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cybern. 1979, 9, 62–66. [Google Scholar] [CrossRef]
  15. Liu, Y.; Srihari, S.N. Document image binarization based on texture features. IEEE Trans. Pattern Anal. Mach. Intell. 1979, 19, 540–544. [Google Scholar]
  16. Serra, J. Image Analysis and Mathematical Morphology; Academic Press: New York, NY, USA, 1982. [Google Scholar]
  17. Zhang, J.Y.; Chen, Y.; Huang, X.X. Edge detection of images based on improved sobel operator and genetic algorithms. IEEE Int. Conf. Image Anal. Signal Process. 2009, 5, 447–450. [Google Scholar]
  18. Yang, L.; Zhao, D.; Wu, X.; Li, H. An improved Prewitt algorithm for edge detection based on noised image. IEEE Int. Congr. Image Signal Process. 2011, 3, 1197–1200. [Google Scholar]
  19. Rosenfeld, A. The Max Roberts Operator is a Hueckel-Type Edge Detector. IEEE Trans. Pattern Anal. Mach. Intell. 1981, 3, 101–103. [Google Scholar] [CrossRef] [PubMed]
  20. Vliet, L.J.V.; Young, I.T.; Beckers, G.L. A nonlinear laplace operator as edge detector in noisy images. Comput. Vision Graph. Image Process. 1989, 45, 167–195. [Google Scholar] [CrossRef]
  21. Canny, J.A. Computational Approach to Edge Detection. IEEE Trans. Pattern Anal. Mach. Intell. 1986, 8, 679–698. [Google Scholar] [CrossRef] [PubMed]
  22. Haq, I.; Anwar, S.; Shah, K.; Khan, M.T.; Shah, S.A. Fuzzy Logic Based Edge Detection in Smooth and Noisy Clinical Images. PLoS ONE 2015, 10, e0138712. [Google Scholar] [CrossRef] [PubMed]
  23. Abdou, I.E.; Pratt, W.K. Quantitative design and evaluation of enhancement/thresholding edge detectors. Proc. IEEE 1979, 67, 753–763. [Google Scholar] [CrossRef]
  24. Micheli, E.D.; Caprile, B.; Ottonello, P.; Torre, V. Localization and Noise in Edge Detection. IEEE Trans. Pattern Anal. Mach. Intell. 1989, 11, 1106–1117. [Google Scholar] [CrossRef]
  25. Lopez-Molina, C.; Baets, B.D.; Bustince, H. Quantitative error measures for edge detection. Pattern Recognit. 2013, 46, 1125–1139. [Google Scholar] [CrossRef]
  26. Heimann, T.; Van, G.B.; Styner, M.A.; Arzhaeva, Y.; Aurich, V.; Bauer, C.; Beck, A.; Becker, C.; Beichel, R.; Bekes, G.; et al. Comparison and evaluation of methods for liver segmentation from CT datasets. IEEE Trans. Med. Imaging 2009, 28, 1251–1265. [Google Scholar] [CrossRef] [PubMed]
Figure 1. An example of a point structure.
Figure 1. An example of a point structure.
Sensors 16 02006 g001
Figure 2. Schematic diagram of the gap measurement.
Figure 2. Schematic diagram of the gap measurement.
Sensors 16 02006 g002
Figure 3. Thresholding for different Gaussian noise variance.
Figure 3. Thresholding for different Gaussian noise variance.
Sensors 16 02006 g003
Figure 4. Noisy and denoising image.
Figure 4. Noisy and denoising image.
Sensors 16 02006 g004
Figure 5. Two blocks in the divided input image.
Figure 5. Two blocks in the divided input image.
Sensors 16 02006 g005
Figure 6. Comparison between global and local thresholds.
Figure 6. Comparison between global and local thresholds.
Sensors 16 02006 g006
Figure 7. Structure element.
Figure 7. Structure element.
Sensors 16 02006 g007
Figure 8. Mathematical morphology-based edge detection.
Figure 8. Mathematical morphology-based edge detection.
Sensors 16 02006 g008
Figure 9. Comparison between conventional and the proposed methods for edge detection in noise-free gap images.
Figure 9. Comparison between conventional and the proposed methods for edge detection in noise-free gap images.
Sensors 16 02006 g009
Figure 10. Comparison between conventional and the proposed methods for edge detection in noisy gap images.
Figure 10. Comparison between conventional and the proposed methods for edge detection in noisy gap images.
Sensors 16 02006 g010
Figure 11. Comparison of true positive edge detected pixels between the proposed algorithm and other conventional ones.
Figure 11. Comparison of true positive edge detected pixels between the proposed algorithm and other conventional ones.
Sensors 16 02006 g011
Figure 12. Comparison of false positive edge detected pixels between the proposed algorithm and other conventional ones.
Figure 12. Comparison of false positive edge detected pixels between the proposed algorithm and other conventional ones.
Sensors 16 02006 g012
Figure 13. Comparison of missed edge pixels between the proposed algorithm and other conventional ones.
Figure 13. Comparison of missed edge pixels between the proposed algorithm and other conventional ones.
Sensors 16 02006 g013
Table 1. Comparison of mean square error (MSE) and peak signal-to-noise ratio (PSNR) between the proposed algorithm and other conventional ones.
Table 1. Comparison of mean square error (MSE) and peak signal-to-noise ratio (PSNR) between the proposed algorithm and other conventional ones.
SobelPrewittRobertLaplaceCannyProposed Algorithm
MSE0.18120.18140.13470.22040.24290.1193
PSNR55.549255.544456.837154.698754.276557.3644
Table 2. Comparison of S D 1 and S D 2 between the proposed algorithm and other conventional ones.
Table 2. Comparison of S D 1 and S D 2 between the proposed algorithm and other conventional ones.
SobelPrewittRobertLaplaceCannyProposed Algorithm
k = 1 1.35091.34501.22461.87741.98260.1563
k = 2 37.528537.291934.555158.814564.68853.6443

Share and Cite

MDPI and ACS Style

Xu, T.; Wang, G.; Wang, H.; Yuan, T.; Zhong, Z. Gap Measurement of Point Machine Using Adaptive Wavelet Threshold and Mathematical Morphology. Sensors 2016, 16, 2006. https://doi.org/10.3390/s16122006

AMA Style

Xu T, Wang G, Wang H, Yuan T, Zhong Z. Gap Measurement of Point Machine Using Adaptive Wavelet Threshold and Mathematical Morphology. Sensors. 2016; 16(12):2006. https://doi.org/10.3390/s16122006

Chicago/Turabian Style

Xu, Tianhua, Guang Wang, Haifeng Wang, Tangming Yuan, and Zhiwang Zhong. 2016. "Gap Measurement of Point Machine Using Adaptive Wavelet Threshold and Mathematical Morphology" Sensors 16, no. 12: 2006. https://doi.org/10.3390/s16122006

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop