Next Article in Journal
Research on the Accessibility of Different Colour Schemes for Web Resources for People with Colour Blindness
Previous Article in Journal
Evaluation of Transfer Learning Efficacy for Surgical Suture Quality Classification on Limited Datasets
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Placido Sub-Pixel Edge Detection Algorithm Based on Enhanced Mexican Hat Wavelet Transform and Improved Zernike Moments

School of Information and Communication Engineering, North University of China, Taiyuan 030051, China
*
Author to whom correspondence should be addressed.
J. Imaging 2025, 11(8), 267; https://doi.org/10.3390/jimaging11080267
Submission received: 2 July 2025 / Revised: 6 August 2025 / Accepted: 7 August 2025 / Published: 11 August 2025
(This article belongs to the Section Medical Imaging)

Abstract

In order to meet the high-precision location requirements of the corneal Placido ring edge in corneal topographic reconstruction, this paper proposes a sub-pixel edge detection algorithm based on multi-scale and multi-position enhanced Mexican Hat Wavelet Transform and improved Zernike moment. Firstly, the image undergoes preliminary processing using a multi-scale and multi-position enhanced Mexican Hat Wavelet Transform function. Subsequently, the preliminary edge information extracted is relocated based on the Zernike moments of a 9 × 9 template. Finally, two improved adaptive edge threshold algorithms are employed to determine the actual sub-pixel edge points of the image, thereby realizing sub-pixel edge detection for corneal Placido ring images. Through comparison and analysis of edge extraction results from real human eye images obtained using the algorithm proposed in this paper and those from other existing algorithms, it is observed that the average sub-pixel edge error of other algorithms is 0.286 pixels, whereas the proposed algorithm achieves an average error of only 0.094 pixels. Furthermore, the proposed algorithm demonstrates strong robustness against noise.

1. Introduction

The Placido disc-based corneal topography instrument is a widely utilized optical diagnostic and therapeutic device. It aids ophthalmologists in diagnosing conditions such as keratoconus and other ocular diseases by quantitatively analyzing the morphological changes in the corneal surface [1]. However, the precision of the edge detection in corneal Placido ring images directly influences the accuracy of corneal topography parameters [2]. Conventional pixel-level edge extraction algorithms, including the Sobel operator [3], Roberts operator [4], Laplacian operator [5], and Canny operator [6], exhibit limited performance in detecting edges within corneal Placido ring images. The wavelet transform is extensively utilized in various domains, including signal processing [7] and image processing. The Mexican Hat Wavelet Transform is capable of effectively extracting edge information due to its strong scale adaptability and robust noise resistance [8]. With the advancement of medical standards and the ongoing progress of science and technology, the image edge detection at the ordinary pixel level has become insufficient to meet the requirements of medical imaging and machine vision. In contrast, sub-pixel edge detection technology typically yields superior results. Sub-pixel edge detection algorithms can be categorized into three main types: the fitting method [9], the interpolation method [10], and the moment method [11,12,13,14,15,16,17]. Among the various moment-based methods, Zernike moments are extensively utilized owing to their rotation invariance and robustness against noise. Ghosal et al. [13] first proposed the orthogonal Zernike moment edge operator based on a 5 × 5 template. Zhao et al. [14] proposed a 9 × 9 template Zernike moment operator to further improve the edge refinement ability. Bao [15] proposed a Zernike moment sub-pixel edge detection algorithm combined with the Canny operator to improve the accuracy of edge detection. Kong et al. [16] adopted the Canny operator combined with the Zernike moment sub-pixel edge detection algorithm of the improved edge model. This method has a small error in detecting binary images, but there is a double-edged phenomenon in the detection of corneal Placido ring images. Xie et al. [17] proposed a segmented detection method using the Roberts operator for coarse positioning and Zernike moment for precise positioning, which effectively improved the detection efficiency and accuracy of the algorithm.
The corneal Placido ring image is presented in Figure 1. It is evident from the box selection section that the interference caused by eyelashes and light spots in the corneal Placido ring image can significantly impair the edge detection of the image, thereby affecting the accuracy of subsequent corneal topography reconstruction.
Therefore, to enhance the accuracy of Placido ring edge extraction, this paper proposes a sub-pixel edge detection algorithm for corneal Placido rings. The algorithm is based on multi-scale and multi-position enhanced Mexican Hat Wavelet Transform, combined with an improved Zernike moment. The enhanced Mexican Hat Wavelet Transform is employed to process the image, thereby eliminating the effects of eyelashes and light spots and obtaining the preliminary edge image. Subsequently, two adaptive threshold segmentation algorithms are applied to filter the sub-pixel edge points of Zernike moments, ultimately yielding the final image edge.
The main contributions of this paper are as follows: (i) a radially modulated Mexican Hat Wavelet, (ii) a multi-scale, multi-position convolution strategy, and (iii) two adaptive thresholding algorithms.

2. Enhanced Mexican Hat Wavelet Transform Edge Detection Algorithm

2.1. Enhanced Mexican Hat Wavelet Transform

The Mexican Hat Wavelet can precisely identify gray-level variations near the edges of an image due to its second derivative property. Owing to the fixed response characteristic of the traditional Mexican Hat Wavelet, it is challenging to accurately match the target boundaries when addressing targets of varying scales [18]. In light of this, this paper incorporates radial Gaussian modulation into the Mexican Hat Wavelet function to dynamically adjust the functional response. This enhances sensitivity when approaching the target boundary while simultaneously amplifying the response farther from the circular center, thereby achieving adaptability to multi-scale and multi-position responses.
The Mexican Hat Wavelet basis function is defined as (1).
h ( x , y ) = 1 σ 2 ( 2 x 2 + y 2 σ 2 ) exp ( x 2 + y 2 2 σ 2 )
The radial Gaussian enhancement term is incorporated into the above equation.
g ( x , y ) = exp ( x 2 + y 2 R ) 2 δ 2
where σ is the scaling factor, δ is the radial selection bandwidth, and R is the target radius. The improved enhanced Mexican Hat Wavelet function is constructed as (3).
h σ ( x , y ) = 1 σ 2 ( 2 x 2 + y 2 σ 2 ) exp ( x 2 + y 2 2 σ 2 ) · exp ( x 2 + y 2 R ) 2 δ 2
Its frequency-domain representation is presented as (4).
H σ ( u , v ) = 4 π 2 σ 2 ( u 2 + v 2 ) exp 2 π σ 2 ( u 2 + v 2 ) · exp ( 2 π 2 δ 2 ( u 2 + v 2 ) ) · J 0 ( 2 π R u 2 + v 2 )
where J 0 ( 2 π R u 2 + v 2 ) is the Bessel function modulation. Figure 2 shows the 2D and 3D images of the original and enhanced Mexican Hat Wavelet in the frequency domain. Figure 2 demonstrates that the Mexican Hat Wavelet function, with the incorporation of a radial Gaussian enhancement term, amplifies the response of regions distant from the center of the circle. This enhancement increases the wavelet’s sensitivity to complex edge structures in images, particularly improving its ability to detect weak or blurred edges.

2.2. Multi-Scale Multi-Position Image Algorithm

Since the conventional Mexican Hat Wavelet convolution responds only to a single position, it is highly susceptible to noise and local deformation. In order to eliminate the interference caused by eyelashes and light spots in the corneal Placido ring image and extract preliminary edge information from the image, this paper proposes a multi-scale and multi-position Mexican Hat Wavelet convolution algorithm. Specifically, for any given image I ( x , y ) , position steps b x and b y are defined in the horizontal and vertical directions, respectively. At each scale σ , the image cumulative response S σ ( x , y ) at the current scale is obtained after convolution at different positions by translating the wavelet as follows:
S σ ( x , y ) = b x b y | I h σ ( x + b x , y + b y ) |
The multi-scale cumulative response S σ ( x , y ) of the image is computed by weighting and fusing responses across scales. Thin edges are preserved under smaller extension factor scales, while coarse edges are retained under larger extension factor scales. This process emphasizes contributions from significant scales while suppressing weaker responses. The total response intensity E ( x , y ) of the image is calculated as follows:
E ( x , y ) = σ M · S σ ( x , y )   = σ s t d ( b x , b y | I h σ ( x + b x , y + b y ) | ) σ s t d ( b x , b y | I h σ ( x + b x , y + b y ) | ) · b x , b y | I h σ ( x + b x , y + b y ) |
The convolution operation is carried out between the total response intensity E ( x , y ) of the image and the Gaussian difference enhancement term D o G . By leveraging the difference between Gaussian filters with varying standard deviations, the response intensities of the ring image and the background image are effectively differentiated. This process enhances the contrast between the bright and dark rings in the corneal Placido ring image, thereby effectively highlighting the edge information of the rings. Ultimately, the preliminary edge information E f ( x , y ) of the image is obtained as (7).
E f ( x , y ) = E ( x , y ) D o G = E ( x , y ) 1 2 π σ 1 2 e x 2 + y 2 2 σ 1 2 1 2 π σ 2 2 e x 2 + y 2 2 σ 2 2
By comprehensively integrating multi-scale and multi-positional information, the novel algorithm effectively mitigates local deformation interference and noise within images, removes the influence of eyelashes and light spots, distinguishes the ring structure from the background image, and significantly enhances the extraction performance of both strong and weak edges.

3. Improved Zernike Moment Sub-Pixel Edge Detection Algorithm

3.1. Zernike Moment Edge Detection Principle

The core in Zernike moments is the orthogonal Zernike polynomials. These polynomials are defined within the unit circle. The nth-order Zernike polynomials are shown in (8).
V n m ( ρ , θ ) = R n m e i m θ
where e i m θ is the angular component, and i is the imaginary unit. n and m belong to integers and satisfy the following conditions: n 0 , m n , and n m is even.
In practice, since the image is discrete, the pixel coordinates need to be normalized to the unit circle; then, the two-dimensional Zernike moments of the image I ( x , y ) are defined as (9).
Z n , m = n + 1 π x y I ( x , y ) V n , m ( r ( x , y ) , θ ( x , y ) ) · W
where n + 1 π is the normalization function, V n , m ( r , θ ) is the integral kernel function, and W is the pixel area weight.
Zernike moments compute four parameters of pixel points by utilizing orthogonal moments of each order of an image and subsequently determine edge points [19]. Figure 3 illustrates the ideal edge step model of the Zernike moment. In this model, the unit circle represents the region encompassing both the target and background. The portion of line L contained within the unit circle denotes the ideal edge. The gray values on either side of L within the circle are represented by h and h + k , where k signifies the gray-level difference. Additionally, l represents the theoretical distance from a point on the circle to the edge, while θ indicates the angle between l and the x-axis.
Because Zernike moments are rotation-invariant, they can be effectively utilized to compute the parameters for edge detection and accurately locate edges even after an image has been rotated. According to Figure 3, the relevant edge parameters can be deduced as (10).
l = Z 20 Z 11 k = 3 Z 11 2 ( 1 l 2 ) 3 2 h = 1 π ( Z 00 k π 2 + k sin 1 l + k l 1 l 2 ) θ = tan 1 ( Im Z 11 Re Z 11 )
If ( x , y ) is the determined edge point, considering the template effect, the edge sub-pixel coordinates ( x s , y s ) corresponding to this point are defined as (11).
x s y s = x y + N d 2 cos θ sin θ
where N is the template size.

3.2. Double Adaptive Threshold Zernike Moment Sub-Pixel Edge Detection Algorithm

According to the template size effect on Zernike moments, an increase in template size leads to higher accuracy in image edge detection. However, this results in a decrease in detection speed. By balancing accuracy and speed, this paper employs a 9 × 9 template Zernike moment combined with the “coarse-to-fine” positioning detection approach.
In the conventional Zernike moment algorithm, the edge point judgment conditions are defined as k k t and l l t , where k t represents the gray-level threshold for judgment, and l t denotes the distance threshold for judgment. k t exhibits a wide range of variations, is highly susceptible to noise, and poses challenges in handling gradual edges. l t represents the constant value 2 / N in the edge point judgment condition, and its positioning for complex or irregular shape edges is precise. The conventional approach of manually selecting the threshold requires manual adjustment of the threshold, making it challenging to accurately obtain edge positions across different images. Xie et al. [17] and Huang et al. [20] introduced the Otsu thresholding method for determining the image segmentation threshold k t . Specifically, this approach segments an image into foreground and background by leveraging the gray-level values of the image. The method aims to maximize the between-class variance of the gray-level distribution between the target and background, thereby identifying the optimal segmentation threshold. This method relies on the uniformity and prior knowledge of the image, but it is not effective for images with complex backgrounds or high levels of noise. However, corneal Placido ring images often suffer from significant eyelash interference. Consequently, this paper proposes two adaptive threshold algorithms for k t and l t , respectively, to enhance the accuracy of image edge detection.

3.2.1. An Adaptive Thresholding Algorithm Based on Local Gradient and Variance

The adaptive threshold algorithm, which incorporates local gradient and variance, can effectively capture the local characteristics of an image while reducing sensitivity to noise by leveraging the intrinsic geometric properties of the image. In regions with low contrast or high noise, the algorithm automatically adjusts the threshold to suppress false edges, thereby enhancing the robustness of edge detection. After calculating the gray value k , distance l , and angle θ based on (10), the gradient amplitude G k , local mean μ k , variance υ k , and standard deviation σ k of the image following Zernike moment convolution are subsequently determined as (12).
G k = ( Z 11 R ( x , y ) ) 2 + ( Z 11 R ( x , y ) ) 2 μ k = 1 5 × 5 m = x 2 x + 2 n = y 2 y + 2 Z 20 ( m , n ) υ k = 1 5 × 5 1 m = x 2 x + 2 n = y 2 y + 2 ( Z 20 ( m , n ) μ k ) 2 σ k = υ k
The local statistics of the convolution image are weighted, and dynamic fusion is applied to the gradient, standard deviation, and log variance. Additionally, the threshold is adaptively adjusted to determine the optimal segmentation threshold k t , as shown in (13).
k t = G 2 + σ 2 + ln ( 1 + υ ) 5

3.2.2. An Adaptive Thresholding Algorithm Based on the Hessian Matrix

The adaptive threshold algorithm based on the principal curvature of the Hessian matrix can decrease the tolerance for curved edge or corner regions, thereby avoiding edge overfitting. This algorithm is capable of accurately distinguishing between genuine edges and structural noise while effectively minimizing the impact of interference on edge detection. The second derivative information of the convolved image is computed using the Hessian matrix to derive the matrix H . Subsequently, eigenvalue decomposition is performed on matrix H to obtain the two principal curvatures, denoted as λ 1 and λ 2 . The eigenvalue with the largest absolute value signifies the maximum bending strength l k within the local region. The potential for abnormal edge displacement resulting from geometric distortion or noise can be effectively mitigated by l k . When the edge corresponds to a flat region, l k approaches approximately 0, allowing the baseline distance threshold to remain unchanged. In cases where the edge represents a high-curvature region, the threshold l t decreases accordingly to filter out spurious edges within the curved area. The optimal distance threshold l t is obtained as shown in (14).
H = 2 I x 2 2 I x y 2 I x y 2 I y 2 λ 1 , λ 2 = e i g ( H ) l k = max ( | λ 1 | , | λ 2 | ) l t = 2 N + 0.2 l k
If an edge point satisfies both the intensity condition k k t and the geometric condition l l t , it can be classified as an image sub-pixel edge point. Accurate sub-pixel edge detection of a corneal Placido ring image can be achieved through two adaptive threshold segmentation methods.

4. Experimental Procedures and Result Analysis

4.1. Image Acquisition and Algorithm Enhancement Process

4.1.1. Image Acquisition Process

In this study, Placido disk images of real human eyes were captured using the SW6000D corneal topography system (Tianjin Suowei Electronic Technology Co., Ltd., Tianjin, China), with an image resolution of 1280 × 960 pixels. A total of 10 Placido disk images from healthy subjects were collected. The study was approved by the Biological and Medical Ethics Committee of North University of China, and informed consent was obtained from all subjects.

4.1.2. Algorithm Enhancement Process

This paper adopts the “coarse-to-fine” positioning detection method. Since eyelashes, light spots, and the small ring spacing greatly interfere with the corneal Placido ring image, conventional edge detection operators cannot balance noise immunity and accuracy. Therefore, the enhanced Mexican Hat Wavelet is used to initially locate the image edge. After acquiring the coarse edge of the image, the image is convolved using a 9 × 9 Zernike moment template. Accurate sub-pixel edge detection is then achieved through two adaptive threshold segmentation algorithms. This approach ensures that the algorithm maintains high running speed without compromising the detection accuracy of the improved method. The detailed steps are as follows:
(1)
First, the image is convolved with the multi-scale and multi-position Mexican Hat Wavelet function introduced in this paper. The cumulative response is weighted and fused to achieve preliminary localization of the “coarse” edge of the image.
(2)
A 9 × 9 Zernike moment template is applied to convolve the “coarse” edge, extracting four parameters for each pixel.
(3)
The optimal segmentation thresholds k t and l t are determined using the two adaptive threshold segmentation algorithms proposed herein. The values of k and l for the obtained pixels are jointly evaluated to further ascertain whether the pixel qualifies as an edge point and to calculate its sub-pixel coordinates.
(4)
Step 2 is repeated until all edge points have been assessed.
The flowchart of the algorithm is shown in Figure 4.

4.2. Experimental Result Analysis

To validate the superiority and effectiveness of the proposed algorithm, five experimental setups were specifically designed to evaluate its performance in handling eyelash interference, sub-pixel anti-noise capability, multi-scale and multi-position parameter selection, real human eye image processing, and the overall performance enhancement achieved by the improved algorithm. The experimental platform consisted of a Windows 10 operating system, the CPU model was Intel(R) Core(TM) i5-9400, and the proposed sub-pixel edge detection algorithm was implemented using MATLAB R2018b.

4.2.1. The Eyelash Interference Effect

The aim of the initial set of experiments is to evaluate the performance of the enhanced Mexican Hat Wavelet Transform algorithm proposed in this paper for preliminary edge detection in corneal Placido ring images. The image utilized for this experiment is a 200 × 200 pixels corneal Placido ring image with eyelash occlusion. Figure 5 presents the preliminary edge detection results obtained by each of the comparison algorithms and the proposed algorithm. Experimental comparisons indicate that the Laplacian and Canny operators are significantly affected by eyelash edge interference, while the Sobel and Roberts operators produce fragmented edges in the detection of Placido rings. In contrast, the improved enhanced Mexican Hat Wavelet Transform algorithm demonstrates superior performance compared to the other four methods, exhibiting a strong capability in suppressing eyelash interference.

4.2.2. Accuracy and Noise Immunity of Sub-Pixel Algorithms

The second set of experiments aimed to evaluate the accuracy and noise robustness of the improved Zernike moment sub-pixel algorithm. A synthetically generated binary image was employed to assess the performance of the enhanced sub-pixel algorithm. The binary image had a resolution of 400 × 400 pixels, with a white circular region centered at coordinates (200, 200) and a radius of 150 pixels, as illustrated in Figure 6a. To evaluate the algorithm’s noise immunity, Gaussian noise with a standard deviation of 0.2 was introduced into the original binary image, resulting in the noisy version shown in Figure 6b.
Twenty points were randomly selected on the circle in Figure 6a. The sub-pixel coordinates of these points were obtained using the improved Zernike-moment-based sub-pixel edge detection algorithm proposed in this paper, and the corresponding coordinate and distance errors were calculated. The coordinate and distance errors derived from the traditional 7 × 7 template Zernike moments, the sub-pixel algorithm proposed in reference [16], the sub-pixel algorithm presented in reference [17], and the interpolation method were compared. A t-test was performed on the coordinate errors of all algorithms to calculate the corresponding p-value. Due to space constraints, only the coordinates of five selected points are displayed in Table 1 and Table 2.
As shown in Table 1 and Table 2, the average distance errors associated with the traditional 7 × 7 Zernike algorithm and the interpolation method are relatively high. In comparison with the algorithms presented in references [16,17], the algorithms proposed in this paper demonstrate significantly improved accuracy, with an average error within 0.1 pixels. Furthermore, the standard deviation of the proposed algorithm is 0.0687, which is lower than that of the other algorithms. The t-test p-value is 0.9998, exceeding that of competing algorithms. These results indicate that the sub-pixel edge detection achieved by the proposed algorithm is more stable and exhibits the smallest significant difference from the true coordinates. Consequently, the algorithm enables sub-pixel edge extraction of the Placido disc with an error margin of less than 0.1 pixels.
To evaluate the noise immunity of the proposed algorithm, 20 points with identical coordinates are selected from Figure 6b. Each sub-pixel coordinate, along with its corresponding coordinate error and distance error, is calculated using the same method. The variation in distance error for each algorithm, comparing the original binary image to the binary image with added Gaussian noise, is presented in Figure 7.
According to the distance error of the noisy image in Figure 7, the distance error of the other three methods becomes significantly larger in the binary image with Gaussian noise, while the proposed algorithm is least affected by noise interference, and the average distance error increases by 0.0736 pixels.

4.2.3. Multi-Scale and Multi-Position Parameter Selection

The objective of the third set of experiments is to determine the optimal parameters for multi-scale and multi-position configurations. To determine the optimal scaling factor, three distinct sets of scaling factors were employed to conduct a multi-scale enhanced Mexican Hat Wavelet Transform on Figure 1. The results indicate that smaller scaling factors tend to produce more detailed eyelash-like artifacts in the response image. When the scaling factor exceeds 3, 4, and 6, respectively, the enhancement effect plateaus, with no significant improvement observed. The comparative results are presented in Figure 8.
After determining the appropriate scaling factor, the corresponding optimal position step value was further identified. Three distinct position step values were designed to conduct a multi-scale and multi-position enhanced Mexican Hat Wavelet Transform on Figure 1. The results indicate that both bright spots and eyelashes were effectively suppressed. When the position step value was set to 4, residual spots appeared in the response image, which could interfere with the detection process. When the position step value was increased to 8, the width of the black ring in the response image became narrower, potentially reducing the accuracy of sub-pixel edge detection. The comparative results are presented in Figure 9.

4.2.4. Corneal Placido Image Processing Capability

The objective of the fourth set of experiments is to evaluate the edge extraction performance of the improved Zernike moment sub-pixel algorithm on corneal Placido ring images. With the scaling factor σ set to 3, 4, and 6, and the position step value set to 6, the multi-scale and multi-position enhanced Mexican Hat Wavelet Transform algorithm is applied to process Figure 1. As a result, the response corneal Placido ring image is obtained, as illustrated in Figure 10, with an image resolution of 1280 × 960 pixels.
The four aforementioned algorithms, along with the improved algorithm proposed in this paper, are applied to perform sub-pixel edge detection on the response image. The resulting sub-pixel edge points are visualized in Figure 1, while the local magnified views illustrating the performance of each algorithm are presented in Figure 11.
Figure 11 demonstrates that the algorithm presented in reference [16] exhibits a significant double-edged phenomenon when detecting Placido ring images, with scattered sub-pixel edge points that do not provide a reliable basis for identifying the actual edge of the Placido ring. Compared to the edge shape obtained using the conventional 7 × 7 template Zernike moment algorithm, the edge shape derived from the sub-pixel edge points is closer to the true edge of the Placido ring; however, the double-edged phenomenon still persists. Although the interpolation method mitigates the double-edged effect, it introduces discontinuities among the sub-pixel edge points, resulting in poor edge connectivity. Although the edge connectivity was enhanced in the algorithm presented in reference [17], the double-edged phenomenon remains present in the resulting edge image. In comparison with the aforementioned four algorithms, the improved algorithm proposed in this paper effectively reduces the double-edged phenomenon, yields more accurate sub-pixel edge point coordinates, and achieves better edge point connectivity. Figure 12 illustrates the enhanced sub-pixel edge detection performance of the proposed algorithm on corneal Placido ring images.

4.2.5. The Performance of the Improved Algorithm

The objective of the fifth set of experiments is to test the performance of the improved algorithm. To evaluate the practical feasibility of the proposed algorithm, the average running time of each algorithm in processing Figure 1 was measured and compared. As presented in Table 3, the running time of the proposed algorithm is significantly shorter than that of the conventional 7 × 7 template Zernike moment algorithm and the method described in reference [16], although it is slightly longer than those of the algorithms in reference [17] and the interpolation method.
To clarify the contribution of each new component in the proposed algorithm, the impact of the multi-scale and multi-position enhanced Mexican Hat Wavelet Transform algorithm and the improved Zernike-moment-based sub-pixel edge detection algorithm on the sub-pixel coordinates in Figure 6a. was sequentially evaluated, using the Mexican Hat Wavelet Transform combined with the 9 × 9 Zernike moment sub-pixel edge detection algorithm as a baseline. The results indicate that the multi-scale and multi-position enhanced Mexican Hat Wavelet Transform algorithm substantially enhances the accuracy of sub-pixel coordinate estimation, while the improved Zernike moment sub-pixel edge detection algorithm effectively suppresses the occurrence of double edges. The individual contributions of each new component are summarized in Table 4.

5. Conclusions

This paper proposes a sub-pixel edge detection algorithm based on the multi-scale enhanced Mexican Hat Wavelet Transform and improved Zernike moments, which is applied to edge detection in corneal Placido ring images. The image is convolved using multi-scale and multi-position enhanced Mexican Hat Wavelet Transforms, and the cumulative responses are then weighted and fused to extract preliminary edge information. In this paper, two adaptive thresholding algorithms combined with a 9 × 9 template of Zernike moments are introduced to perform sub-pixel edge detection on the initially detected edges, thereby achieving accurate sub-pixel edge localization. The experimental results demonstrate that, compared to the algorithms presented in references [16,17], the proposed algorithm achieves a 67% reduction in average distance error and exhibits enhanced robustness to noise. The edge detection in the corneal Placido disk image analysis is accurate and reliable. Although the algorithm proposed in this paper demonstrates high accuracy, the limited size of the clinical dataset, and the parameters related to multi-scale and multi-position analysis still depend on manual selection. Future work will focus on developing more advanced algorithms to provide increasingly accurate feature points for subsequent 3D corneal topography reconstruction.

Author Contributions

Conceptualization, Y.W.; methodology, Y.W.; software, J.L. (Jinyu Liang); validation, Y.X.; formal analysis, Q.Z.; investigation, Y.W.; resources, Q.Z.; data curation, J.L. (Jiale Li); writing—original draft preparation, Y.W.; writing—review and editing, Y.W.; visualization, X.L.; supervision, G.C.; project administration, Q.Z.; funding acquisition, Y.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by Postgraduate Education Innovation Program of Shanxi Province [grant numbers: 2024SJ268].

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author(s).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Campos-García, M.; Huerta-Carranza, O.; Moreno-Oliva, V.I.; Aguirre-Aguirre, D.; Pantoja-Arredondo, L.Á. Corneal topography using a smartphone-based corneal topographer considering a biconical model for the corneal surface. Opt. Contin. 2024, 3, 751–767. [Google Scholar] [CrossRef]
  2. Gomez-Tejada, D.; Hernández, D.M. A proposal to eliminate the skew ray error in corneal topography using Placido disks images. In Proceedings of the Applied Optical Metrology III, San Diego, CA, USA, 11–15 August 2019; SPIE: Bellingham, WA, USA, 2019; Volume 11102, pp. 26–31. [Google Scholar]
  3. Vaishnavi, L.L.; Bhavana, M.; Manideep, D.C.M.; Venugopal, V. A Fast and Accurate Object Counting using Sobel Edge Detection System for Real–Time Star Gazing. In Proceedings of the 2024 Asia Pacific Conference on Innovation in Technology (APCIT), Mysore, India, 26–27 July 2024; IEEE: New York, NY, USA, 2024; pp. 1–5. [Google Scholar]
  4. Mogos, G. Quantum Image Processing Using Edge Detection Based on Roberts Cross Operators. In Proceedings of the International Conference on Smart Computing and Communication, Zhengzhou, China, 18–20 October 2024; Springer: Singapore, 2024; pp. 149–157. [Google Scholar]
  5. Ma, P.; Yuan, H.; Chen, Y.; Chen, H.; Weng, G.; Liu, Y. A Laplace operator-based active contour model with improved image edge detection performance. Digit. Signal Process. 2024, 151, 104550. [Google Scholar] [CrossRef]
  6. Zhang, Z.; Zhu, Y. Adaptive Canny edge detection based on fast median filtering. In Proceedings of the Fifth International Conference on Computer Vision and Data Mining (ICCVDM 2024), Changchun, China, 19–21 July 2024; SPIE: Bellingham, WA, USA, 2024; Volume 13272, pp. 112–117. [Google Scholar]
  7. Umar, M.; Ahmad, Z.; Ullah, S.; Saleem, F.; Siddique, M.F.; Kim, J.-M. Advanced Fault Diagnosis in Milling Machines Using Acoustic Emission and Transfer Learning. IEEE Access 2025, 13, 100776–100790. [Google Scholar] [CrossRef]
  8. Zhu, S.; Zeng, C.; Xu, W.; Zhu, Q. Research on multidirectional wavelet transform in optical measurement. In Proceedings of the Third International Conference on Optics and Image Processing (ICOIP 2023), Hangzhou, China, 14–16 April 2023; SPIE: Bellingham, WA, USA, 2023; Volume 12747, pp. 148–155. [Google Scholar]
  9. Du, Z.; Zhang, W.; Qin, J.; Lu, H.; Chen, Z.; Zheng, X. A Novel Subpixel Curved Edge Localization Method. In Proceedings of the Intelligent Computation in Big Data Era: International Conference of Young Computer Scientists. In Proceedings of the Engineers and Educators, ICYCSEE 2015, Harbin, China, 10–12 January 2015; Springer: Berlin/Heidelberg, Germany, 2015; Volume 2025, pp. 117–127. [Google Scholar]
  10. Qi, Y.; Wu, G.; Li, Y.; Dong, Y. Research on double cubic interpolation combined with Gaussian fitting sub-pixel edge detection method. In Proceedings of the 10th International Symposium on Test Automation & Instrumentation (ISTAI 2024), Shenzhen, China, 14–16 August 2024; IET: London, UK, 2024; Volume 2024, pp. 295–303. [Google Scholar]
  11. Du, G.; Tong, Q.; Hou, L.; Yang, D.; Liang, X. Sub-pixel edge detection method based on canny-franklin moments. Comput. Integr. Manuf. Syst. 2025, 31, 903. [Google Scholar]
  12. Hagara, M.; Šatka, A.; Kubinec, P.; Stojanović, R. Vibration monitoring using sub-pixel edge localization. In Proceedings of the 2024 13th Mediterranean Conference on Embedded Computing (MECO), Budva, Montenegro, 11–14 June 2024; IEEE: New York, NY, USA, 2024; Volume 2024, pp. 1–4. [Google Scholar]
  13. Ghosal, S.; Mehrotra, R. Detection of composite edges. IEEE Trans. Image Process. 1994, 3, 14–25. [Google Scholar] [CrossRef] [PubMed]
  14. Zhao, B.Y.; Qi, Y.J. Improved algorithm for sub-pixel edge detection based on Zernike moments. Adv. Mater. Res. 2012, 341, 763–767. [Google Scholar] [CrossRef]
  15. Bao, E. Improved Canny-Zernike moment-based subpixel edge detection algorithm. In Proceedings of the 6th International Conference on Mechatronics and Intelligent Robotics (ICMIR2022), Wuhan, China, 18–20 November 2022; SPIE: Bellingham, WA, USA, 2022; Volume 12301, pp. 601–611. [Google Scholar]
  16. Kong, X.; Yi, J.; Wang, X.; Luo, K.; Hu, J. Full-field mode shape identification based on subpixel edge detection and tracking. Appl. Sci. 2023, 13, 747. [Google Scholar] [CrossRef]
  17. Xie, X.; Ge, S.; Xie, M.; Hu, F.; Jiang, N. An improved industrial sub-pixel edge detection algorithm based on coarse and precise location. J. Ambient Intell. Humaniz. Comput. 2020, 11, 2061–2070. [Google Scholar] [CrossRef]
  18. Singh, A.; Raghuthaman, N.; Rawat, A.; Singh, J. Representation theorems for the Mexican hat wavelet transform. Math. Methods Appl. Sci. 2020, 43, 3914–3924. [Google Scholar] [CrossRef]
  19. Xiang, F.; Wang, Z.; Yuan, X. Subpixel edge detection: An Improved Zernike orthogonal moments method. In Proceedings of the 2013 5th International Conference on Intelligent Human-Machine Systems and Cybernetics, Hangzhou, China, 26–27 August 2013; IEEE: New York, NY, USA, 2013; Volume 1, pp. 19–22. [Google Scholar]
  20. Huang, C.; Jin, W.; Xu, Q.; Liu, Z.; Xu, Z. Sub-pixel edge detection algorithm based on canny–zernike moment method. J. Circuits Syst. Comput. 2020, 29, 2050238. [Google Scholar] [CrossRef]
Figure 1. Corneal Placido ring image.
Figure 1. Corneal Placido ring image.
Jimaging 11 00267 g001
Figure 2. Mexican Hat Wavelet contrast images: (a) original MHW 3D image; (b) enhanced MHW 3D image; (c) original MHW 2D image; (d) enhanced MHW 2D image.
Figure 2. Mexican Hat Wavelet contrast images: (a) original MHW 3D image; (b) enhanced MHW 3D image; (c) original MHW 2D image; (d) enhanced MHW 2D image.
Jimaging 11 00267 g002
Figure 3. Ideal edge step model of Zernike moment: (a) original edge image; (b) the rotated edge image.
Figure 3. Ideal edge step model of Zernike moment: (a) original edge image; (b) the rotated edge image.
Jimaging 11 00267 g003
Figure 4. Flowchart of the algorithm.
Figure 4. Flowchart of the algorithm.
Jimaging 11 00267 g004
Figure 5. Comparative analysis of preliminary edge detection results across algorithms: (a) corneal Placido ring image; (b) Laplacian algorithm; (c) Canny algorithm; (d) Sobel algorithm; (e) Roberts algorithm; (f) algorithm in this paper.
Figure 5. Comparative analysis of preliminary edge detection results across algorithms: (a) corneal Placido ring image; (b) Laplacian algorithm; (c) Canny algorithm; (d) Sobel algorithm; (e) Roberts algorithm; (f) algorithm in this paper.
Jimaging 11 00267 g005
Figure 6. Binary image: (a) original binary image; (b) binary image with Gaussian noise.
Figure 6. Binary image: (a) original binary image; (b) binary image with Gaussian noise.
Jimaging 11 00267 g006
Figure 7. Analysis of distance error variation for each algorithm: (a) binary image distance error; (b) noisy image distance error [16,17].
Figure 7. Analysis of distance error variation for each algorithm: (a) binary image distance error; (b) noisy image distance error [16,17].
Jimaging 11 00267 g007
Figure 8. Comparative analysis of various scaling factors: (a) σ set to 1.5, 2, and 3; (b) σ set to 3, 4, and 6; (c) σ set to 4, 6, and 12.
Figure 8. Comparative analysis of various scaling factors: (a) σ set to 1.5, 2, and 3; (b) σ set to 3, 4, and 6; (c) σ set to 4, 6, and 12.
Jimaging 11 00267 g008
Figure 9. Comparative analysis of various scaling factors: (a) position step value set 4; (b) position step value set 6; (c) position step value set 8.
Figure 9. Comparative analysis of various scaling factors: (a) position step value set 4; (b) position step value set 6; (c) position step value set 8.
Jimaging 11 00267 g009
Figure 10. Corneal Placido ring response image.
Figure 10. Corneal Placido ring response image.
Jimaging 11 00267 g010
Figure 11. Sub-pixel edge magnification analysis of each algorithm: (a) algorithm in reference [16]; (b) 7 × 7 Zernike algorithm; (c) interpolation method; (d) algorithm in reference [17]; (e) algorithm in this paper.
Figure 11. Sub-pixel edge magnification analysis of each algorithm: (a) algorithm in reference [16]; (b) 7 × 7 Zernike algorithm; (c) interpolation method; (d) algorithm in reference [17]; (e) algorithm in this paper.
Jimaging 11 00267 g011aJimaging 11 00267 g011b
Figure 12. The proposed algorithm Placido ring edge detection results.
Figure 12. The proposed algorithm Placido ring edge detection results.
Jimaging 11 00267 g012
Table 1. Table of sub-pixel coordinates for each algorithm.
Table 1. Table of sub-pixel coordinates for each algorithm.
Detection MethodActual CoordinatesSub-Pixel CoordinatesCoordinate Error
7 × 7 Zernike algorithm(251, 341)(251.438, 341.576)(0.438, 0.576)
(106, 83)(106.370, 83.519)(0.370, 0.519)
(78, 287)(78.562, 287.520)(0.562, 0.520)
(304, 92)(304.462, 92.308)(0.462, 0.308)
(349, 182)(349.565, 181.495)(0.565, 0.505)
Interpolation method(251,341)(251.327, 341.462)(0.327, 0.462)
(106,83)(106.271, 83.193)(0.270, 0.193)
(78,287)(77.691, 287.499)(0.309, 0.499)
(304,92)(304.179, 91.832)(0.179, 0.168)
(349,182)(348.393, 181.633)(0.607, 0.367)
Algorithm in reference [16](251, 341)(251.266, 341.284)(0.266, 0.284)
(106, 83)(106.101, 82.808)(0.101, 0.192)
(78, 287)(77.872, 287.258)(0.128, 0.258)
(304, 92)(304.194, 91.888)(0.194, 0.112)
(349, 182)(349.307, 182.061)(0.307, 0.061)
Algorithm in reference [17](251, 341)(251.156, 341.164)(0.156, 0.164)
(106, 83)(105.762, 83.166)(0.238, 0.166)
(78, 287)(78.208, 287.173)(0.208, 0.173)
(304, 92)(304.113, 91.733)(0.113, 0.267)
(349, 182)(348.814, 182.251)(0.186, 0.251)
Algorithm in this paper(251, 341)(251.023, 341.063)(0.023, 0.063)
(106, 83)(106.046, 83.057)(0.046, 0.057)
(78, 287)(77.878, 287.086)(0.122, 0.086)
(304, 92)(304.051, 91.947)(0.051, 0.053)
(349, 182)(348.919, 182.071)(0.082, 0.071)
Table 2. Table of distance error for each algorithm.
Table 2. Table of distance error for each algorithm.
7 × 7 Zernike AlgorithmInterpolation MethodAlgorithm in Reference [16]Algorithm in Reference [17]Algorithm in This Paper
Maximum Distance Error0.7650.7090.3890.3120.149
Minimum Distance Error0.5550.2450.2170.2260.067
Mean Distance Error0.6880.4870.2860.2780.094
Standard Deviation0.30710.36280.17930.19000.0687
p-value0.99400.99820.99840.99910.9998
Table 3. Execution times of each algorithm.
Table 3. Execution times of each algorithm.
7 × 7 Zernike AlgorithmInterpolation MethodAlgorithm in Reference [16]Algorithm in Reference [17]Algorithm in This Paper
Average Execution Times (ms)653319461322384
Table 4. The impact of each new component in the proposed algorithm.
Table 4. The impact of each new component in the proposed algorithm.
AlgorithmMean Distance ErrorStandard Deviationp-Value
MHWT + Zernike0.6320.27390.9981
Multi-scale and Position Enhanced MHWT + Zernike0.1270.21830.9988
MHWT + Improved Zernike0.2810.09170.9992
Proposed Algorithm0.0940.06870.9998
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, Y.; Liang, J.; Xiao, Y.; Liu, X.; Li, J.; Cui, G.; Zhang, Q. Placido Sub-Pixel Edge Detection Algorithm Based on Enhanced Mexican Hat Wavelet Transform and Improved Zernike Moments. J. Imaging 2025, 11, 267. https://doi.org/10.3390/jimaging11080267

AMA Style

Wang Y, Liang J, Xiao Y, Liu X, Li J, Cui G, Zhang Q. Placido Sub-Pixel Edge Detection Algorithm Based on Enhanced Mexican Hat Wavelet Transform and Improved Zernike Moments. Journal of Imaging. 2025; 11(8):267. https://doi.org/10.3390/jimaging11080267

Chicago/Turabian Style

Wang, Yujie, Jinyu Liang, Yating Xiao, Xinfeng Liu, Jiale Li, Guangyu Cui, and Quan Zhang. 2025. "Placido Sub-Pixel Edge Detection Algorithm Based on Enhanced Mexican Hat Wavelet Transform and Improved Zernike Moments" Journal of Imaging 11, no. 8: 267. https://doi.org/10.3390/jimaging11080267

APA Style

Wang, Y., Liang, J., Xiao, Y., Liu, X., Li, J., Cui, G., & Zhang, Q. (2025). Placido Sub-Pixel Edge Detection Algorithm Based on Enhanced Mexican Hat Wavelet Transform and Improved Zernike Moments. Journal of Imaging, 11(8), 267. https://doi.org/10.3390/jimaging11080267

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