A Moiré Removal Method Based on Peak Filtering and Image Enhancement
Abstract
:1. Introduction
- We propose a peak-filtering algorithm to remove multiple uniform peaks in the frequency domain, which more accurately determines and updates the area where the moiré peaks are located based on the peak region update strategy.
- The central region recovery algorithm is observed to better preserve the text of the image, which utilises median filtering to handle the central frequency region.
- An image enhancement algorithm based on the Otsu method is proposed to binarise, corrode, and expand the processed image after peak filtering, which removes the noisy background and fixes the missing text parts.
2. Related Works
2.1. Prior Knowledge-Based Methods
2.2. Learning-Based Methods
3. Proposed Method
3.1. Peak Filtering
3.2. Image Enhancement
3.3. Implementation Details
- Fourier transform and shift. The image is Fourier transformed utilising (1) and then shifted so that the low-frequency region is concentrated in the centre of the frequency domain.
- Gaussian filtering. The Gaussian filter is applied to the shifted frequency domain utilising (2). Here, the filter kernel is set to and is set to 1.5.
- Identification of the peak points. First, the largest peak is located in the entire frequency domain. Second, the second largest peak point is located. Third, the distance d between the largest peak point and the second largest peak point is calculated. Then, the minimum interval between two adjacent peaks is set utilising (11). Finally, the position of the remaining peak points in the row where the largest peak point is located can be found.
- Peak region filtering. First, each peak region is set to , i.e., , which includes the peak point as the centre and as the neighbourhood. Later, the peak region is updated utilising (4).
- Median filtering. Specifically, the median filter kernel is set to .
- Recovery of the central region. First, the central region is set to , which is made up of the largest peak as the centre and as the neighbourhood. Then, the central region after median filtering is replaced with that of the Gaussian filter.
- Shift and inverse Fourier transforms. The shift operation is first performed so that the low-frequency regions are distributed around, and the peak-filtered spatial-domain image is later obtained utilising (7).
- Binarisation. The image is binarised utilising the Otsu method.
- Image erosion. Specifically, a line structure with a length of 3 and an angle of 90 is utilised for erosion. Then, the eroded image is obtained utilising (9).
- Image expansion. Specifically, a line structure with a length of 3 and an angle of 90 is utilised for expansion. Then, the expanded image is obtained utilising (10).
4. Experimental Results
4.1. Ablation Study
4.2. Comparison with State-of-the-Art Methods
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Liu, L.; Yuan, S.; Liu, J.; Bao, L.; Slabaugh, G.G.; Tian, Q. Self-adaptively learning to demoiré from focused and defocused image pairs. arXiv 2020, arXiv:2011.02055. [Google Scholar]
- Siddiqui, H.; Boutin, M.; Bouman, C.A. Hardware-friendly descreening. IEEE Trans. Image Process. 2010, 19, 746–757. [Google Scholar] [CrossRef] [PubMed]
- Liu, S.; Li, C.; Nan, N.; Zong, Z.; Song, R. MMDM: Multi-frame and multi-scale for image demoiréing. arXiv 2020, arXiv:1909.11947. [Google Scholar]
- Yoon, Y.; Jeon, H.; Yoo, D.; Lee, J.; Kweon, I.S. Learning a deep convolutional network for light-field image super-resolution. In Proceedings of the 2015 IEEE International Conference on Computer Vision Workshop (ICCVW), Santiago, Chile, 7–13 December 2015; pp. 57–65. [Google Scholar]
- Dong, C.; Loy, C.C.; Tang, X. Accelerating the super-resolution convolutional neural network. arXiv 2016, arXiv:1608.00367. [Google Scholar]
- Chatterjee, P.; Mukherjee, S.; Chaudhuri, S.; Seetharaman, G. Application of papoulis–gerchberg method in image super-resolution and inpainting. Comput. J. 2009, 52, 80–89. [Google Scholar] [CrossRef]
- He, K.; Gkioxari, G.; Dollár, P.; Girshick, R.B. Mask R-CNN. arXiv 2017, arXiv:1703.06870. [Google Scholar]
- Francis Alexander Raghu, A.; Ananth, J.P. Robust object detection and localization using semantic segmentation network. Comput. J. 2021, 64, 1531–1548. [Google Scholar] [CrossRef]
- Lin, X.; Wang, Z.-J.; Ma, L.; Li, R.; Fang, M.-E. Salient object detection based on multiscale segmentation and fuzzy broad learning. Comput. J. 2022, 65, 1006–1019. [Google Scholar] [CrossRef]
- Garcia, D.C.; de Queiroz, R.L. Face-spoofing 2D-detection based on moiré-pattern analysis. IEEE Trans. Inf. Forensics Secur. 2015, 10, 778–786. [Google Scholar] [CrossRef]
- Sajid, M.; Ali, N.; Ratyal, N.I.; Usman, M.; Butt, F.M.; Riaz, I.; Musaddiq, U.; Aziz Baig, M.J.; Baig, S.; Ahmad Salaria, U. Deep learning in age-invariant face recognition: A comparative study. Comput. J. 2022, 65, 940–972. [Google Scholar] [CrossRef]
- Shoba, B.T.; Shatheesh Sam, I. Aging facial recognition for feature extraction using adaptive fully recurrent deep neural learning. Comput. J. 2022, 65, 1923–1936. [Google Scholar] [CrossRef]
- Elad, M.; Aharon, M. Image denoising via sparse and redundant representations over learned dictionaries. IEEE Trans. Image Process. 2006, 15, 3736–3745. [Google Scholar] [CrossRef] [PubMed]
- Chen, X.; Kang, S.B.; Yang, J.; Yu, J. Fast patch-based denoising using approximated patch geodesic paths. IEEE Trans. Circuits Syst. Video Technol. 2015, 25, 897–909. [Google Scholar] [CrossRef]
- Xu, L.; Yan, Q.; Xia, Y.; Jia, J. Structure extraction from texture via relative total variation. ACM Trans. Graph. 2012, 31, 1–10. [Google Scholar] [CrossRef]
- Shou, Y.; Lin, C. mage descreening by GA-CNN-based texture classification. IEEE Trans. Circuits Syst. I Regul. Pap. 2004, 51-I, 2287–2299. [Google Scholar] [CrossRef]
- Nah, S.; Kim, T.H.; Lee, K.M. Deep multi-scale convolutional neural network for dynamic scene deblurring. arXiv 2016, arXiv:1612.02177. [Google Scholar]
- Chen, L.; Zhang, J.; Lin, S.; Fang, F.; Ren, J.S. Blind deblurring for saturated images. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 20–25 June 2021; pp. 6308–6316. [Google Scholar]
- An, V.G.; Park, H.; Lee, C. Dual-domain deep convolutional neural networks for image demoireing. In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Seattle, WA, USA, 14–19 June 2020; pp. 1934–1942. [Google Scholar]
- An, V.G.; Park, H.; Lee, C. Moiré artifacts removal in screen-shot images via multiple domain learning. In Proceedings of the 2020 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC), Auckland, New Zealand, 7–10 December 2020; pp. 1268–1273. [Google Scholar]
- Gao, T.; Guo, Y.; Zheng, X.; Wang, Q.; Luo, X. Moiré pattern removal with multi-scale feature enhancing network. In Proceedings of the 2019 IEEE International Conference on Multimedia & Expo Workshops (ICMEW), Shanghai, China, 8–12 July 2019; pp. 240–245. [Google Scholar]
- Cheng, X.; Fu, Z.; Yang, J. Multi-scale dynamic feature encoding network for image demoiréing. arXiv 2019, arXiv:1909.11947. [Google Scholar]
- Cheng, X.; Fu, Z.; Yang, J. Improved multi-scale dynamic feature encoding network for image demoiréing. Pattern Recognit. 2021, 116, 107970. [Google Scholar] [CrossRef]
- Yu, X.; Dai, P.; Li, W.; Ma, L.; Shen, J.; Li, J.; Qi, X. Towards efficient and scale-robust ultra-high-definition image demoiréing. arXiv 2022, arXiv:2207.09935. [Google Scholar]
- Sun, Y.; Yu, Y.; Wang, W. Moiré photo restoration using multiresolution convolutional neural networks. IEEE Trans. Image Process. 2018, 27, 4160–4172. [Google Scholar] [CrossRef]
- Yang, S.; Lei, Y.; Xiong, S.; Wang, W. High resolution demoire network. In Proceedings of the 2020 IEEE International Conference on Image Processing (ICIP), Abu Dhabi, United Arab Emirates, 25–28 October 2020; pp. 888–892. [Google Scholar]
- Zheng, B.; Yuan, S.; Slabaugh, G.G.; Leonardis, A. Image demoireing with learnable bandpass filters. arXiv 2020, arXiv:2004.00406. [Google Scholar]
- Kimmel, R. Demosaicing: Image reconstruction from color CCD samples. IEEE Trans. Image Process. 1999, 8, 1221–1228. [Google Scholar] [CrossRef] [PubMed]
- Liu, F.; Yang, J.; Yue, H. Moiré pattern removal from texture images via low-rank and sparse matrix decomposition. In Proceedings of the 2015 Visual Communications and Image Processing (VCIP), Singapore, 13–16 December 2015; pp. 1–4. [Google Scholar]
- Yang, J.; Zhang, X.; Cai, C.; Li, K. Demoiréing for screen-shot images with multi-channel layer decomposition. In Proceedings of the 2017 IEEE Visual Communications and Image Processing (VCIP), St. Petersburg, FL, USA, 10–13 December 2017; pp. 1–4. [Google Scholar]
- He, B.; Wang, C.; Shi, B.; Duan, L.-Y. Mop moire patterns using mopnet. In Proceedings of the 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea, 27 October–2 November 2019; pp. 2424–2432. [Google Scholar]
- Wang, J.; Sun, K.; Cheng, T.; Jiang, B.; Deng, C.; Zhao, Y.; Liu, D.; Mu, Y.; Tan, M.; Wang, X.; et al. Deep high-resolution representation learning for visual recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2021, 43, 3349–3364. [Google Scholar] [CrossRef] [PubMed]
- Park, H.; Vien, A.G.; Koh, Y.J.; Lee, C. Unpaired image demoiréing based on cyclic moiré learning. In Proceedings of the APSIPA Annual Summit and Conference 2021, Tokyo, Japan, 14–17 December 2021; pp. 146–150. [Google Scholar]
- Yue, H.; Cheng, Y.; Liu, F.; Yang, J. Unsupervised moiré pattern removal for recaptured screen images. Neurocomputing 2021, 456, 352–363. [Google Scholar] [CrossRef]
- Park, H.; Vien, A.G.; Kim, H.; Koh, Y.J.; Lee, C. Unpaired screen-shot image demoiréing with cyclic moiré learning. IEEE Access 2022, 10, 16254–16268. [Google Scholar] [CrossRef]
- Hasan, Y.M.Y.; Karam, L.J. Morphological text extraction from images. IEEE Trans. Image Process. 2000, 9, 1978–1983. [Google Scholar] [CrossRef]
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Qi, W.; Yu, X.; Li, X.; Kang, S. A Moiré Removal Method Based on Peak Filtering and Image Enhancement. Mathematics 2024, 12, 846. https://doi.org/10.3390/math12060846
Qi W, Yu X, Li X, Kang S. A Moiré Removal Method Based on Peak Filtering and Image Enhancement. Mathematics. 2024; 12(6):846. https://doi.org/10.3390/math12060846
Chicago/Turabian StyleQi, Wenfa, Xinquan Yu, Xiaolong Li, and Shuangyong Kang. 2024. "A Moiré Removal Method Based on Peak Filtering and Image Enhancement" Mathematics 12, no. 6: 846. https://doi.org/10.3390/math12060846
APA StyleQi, W., Yu, X., Li, X., & Kang, S. (2024). A Moiré Removal Method Based on Peak Filtering and Image Enhancement. Mathematics, 12(6), 846. https://doi.org/10.3390/math12060846