Abstract
Recently, image edge detection using quantum image processing has focused due to having less circuit complexity and storage capacity. Edge extraction using the Sobel operator has the restriction in vertical and horizontal directions, which provides less edge information. In this paper, we introduce a quantum improved Sobel edge detection algorithm with non-maximum suppression and double threshold techniques for novel enhanced quantum representation method. We have analyzed the quantum circuit of realizing the edge detection algorithm, the number of edge pixels, simulation results, and circuit complexity. Thereafter, we have compared with the classical and some existing quantum edge detection algorithms. Our proposed algorithm can achieve a significant improvement in the case of edge information and circuit complexity.











Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.References
Yan, F., Iliyasu, A.M., Le, P.Q.: Quantum image processing: a review of advances in its security technologies. Int. J. Quantum Inf. 15(03), 1730001 (2017)
Feynman, R.P.: Simulating physics with computers. Int. J. Theor. Phys. 21(6/7), 467–488 (1982)
Iliyasu, A.M.: Towards the realization of secure and efficient image and video processing applications on quantum computers. Entropy 15, 2874–2974 (2013)
Iliyasu, A.M.: Algorithmic frameworks to support the realization of secure and efficient image-video processing applications on quantum computers. Ph. D. (Dr Eng.) Thesis, Tokyo Institute of Technology, Tokyo, Japan. 25 Sept. 2012 (2012)
Iliyasu, A.M., Le, P.Q., Yan, F., Bo, S., Garcia, J.A.S., Dong, F., Hirota, K.: A two-tier scheme for grayscale quantum image watermarking and recovery. Int. J. Innov. Comput. Appl. 5, 85–101 (2013)
Tseng, C.C., Hwang, T.M.: Quantum digital image processing algorithms. In: Proceedings of the 16th IPPR Conference on Computer Vision, Graphics and Image Processing, pp. 827–834 (2003)
Venegas-Andraca, S.E., Bose, S.: Storing, processing and retrieving an image using quantum mechanics. In: Proceeding of the SPIE Conference Quantum Information and Computation, vol. 5105, pp. 137–147 (2003)
Le, P.Q., Dong, F., Hirota, K.: A flexible representation of quantum images for polynomial preparation, image compression, and processing operations. Quantum Inf. Process. 10(1), 63–84 (2011)
Zhang, Y., Lu, K., Gao, Y., et al.: NEQR: a novel enhanced quantum representation of digital images. Quantum Inf. Process. 12(8), 2833–2860 (2013)
Zhang, Y., Lu, K., Gao, Y., Xu, K.: A novel quantum representation for log-polar images. Quantum Inf. Process. 12(9), 3103–3126 (2013)
Li, H., Zhu, Q., Zhou, R., Song, L., Yang, X.: Multi-dimensional color image storage and retrieval for a normal arbitrary quantum superposition state. Quantum Inf. Process. 13, 991–1011 (2014)
Jiang, N., Wang, J., Mu, Y.: Quantum image scaling up based on nearest-neighbor interpolation with integer scaling ratio. Quantum Inf. Process. 14(11), 4001–4026 (2015)
Jiang, N., Wu, W.Y., Wang, L., Zhao, N.: Quantum image pseudo color coding based on the density-stratified method. Quantum Inf. Process. 14(5), 1735–1755 (2015)
Jiang, N., Wu, W.Y., Wang, L.: The quantum realization of Arnold and Fibonacci image scrambling. Quantum Inf. Process. 13, 1223–1236 (2014)
Jiang, N., Wang, L., Wu, W.Y.: Quantum Hilbert image scrambling. Int. J. Theor. Phys. 53, 2463–2484 (2014)
Zhou, R.G., Sun, Y.J., Fan, P.: Quantum image Gray-code and bit-plane scrambling. Quantum Inf. Process. 14, 1717–1734 (2015)
Arbelaez, P., Maire, M., Fowlkes, C., Malik, J.: Contour detection and hierarchical image segmentation. IEEE TPAMI 33(5), 898–916 (2011)
Le, P.Q., Iliyasu, A.M., Dong, F., Hirota, K.: Fast geometric transformations on quantum images. IAENG Int. J. Appl. Math. 40(3), 113–123 (2010)
Le, P.Q., Iliyasu, A.M., Dong, F., et al.: Strategies for designing geometric transformations on quantum images. Theor. Comput. Sci. 412, 1406–1418 (2011)
Zhou, R.-G., Hu, W., Fan, P., Ian, H.: Quantum realization of the bilinear interpolation method for NEQR. Sci. Rep. 7(1), 2511 (2017)
Zhou, R.G., Wu, Q., Zhang, M.Q., et al.: Quantum image encryption and decryption algorithms based on quantum image geometric transformations. Int. J. Theor. Phys. 52(6), 1802–1817 (2013)
Jiang, N., Zhao, N., Wang, L.: LSB based quantum image steganography algorithm. Int. J. Theor. Phys. 55(1), 107–123 (2016)
Iliyasu, A.M., Le, P.Q., Dong, F., et al.: Watermarking and authentication of quantum image based on restricted geometric transformations. Inf. Sci. 186(1), 126–149 (2012)
Yan, F., Iliyasu, A.M., Sun, B., et al.: A duple watermarking strategy for multi-channel quantum images. Quantum Inf. Process. 14(5), 1675–1692 (2015)
Yan, F., Iliyasu, A.M., Guo, Y.M., Yang, H.M.: Flexible representation and manipulation of audio signals on quantum computers. Theor. Comput. Sci. 752, 71–85 (2018)
Abdullah, M., Iliyasu, P.C., Le, Q., Dong, F.Y., et al.: A framework for representing and producing movies on quantum computers. Int. J. Quantum Inf. 9(6), 1459–1497 (2011)
Simona, C., Vasile, I.M.: Image segmentation on a quantum computer. Quantum Inf. Process. 14(5), 1693–1715 (2015)
Jiang, N., Dang, Y., Wang, J.: Quantum image matching. Quantum Inf. Process. 15(9), 3543–3572 (2016)
Zhang, Y., Lu, K., Gao, Y.: Q Sobel: a novel quantum image edge extraction algorithm. Sci. China Inf. Sci. 58(1), 1–13 (2014). https://doi.org/10.1007/s11432-014-5158-9
Zhou, R.G., Liu, D.Q.: Quantum image edge extraction based on improved Sobel operator. Int. J. Theor. Phys. 58(9), 2969–2985 (2019)
Fan, P., Zhou, R.G., Hu, W., Jing, N.: Quantum image edge extraction based on classical Sobel operator for NEQR. Quantum Inf. Process. 18(1), 24 (2019)
Fan, P., Zhou, R.G., Hu, W.W., Jing, N.: Quantum image edge extraction based on Laplacian operator and zero-cross method. Quantum Inf. Process. 18(1), 27 (2019)
Chetia, R., Boruah, S.M.B., Roy, S., Sahu, P.P.: Quantum image edge detection based on four directional sobel operator. In: International Conference on Pattern Recognition and Machine Intelligence (PReMI 2019). Lecture Notes in Computer Science, vol 11941. Springer, Cham, pp 532–540(2019)
Zhou, R.G., Yu, H., Cheng, Y., Li, F.X.: Quantum image edge extraction based on improved Prewitt operator. Quantum Inf. Process. 18(9), 261 (2019)
Li, P., Shi, T., Lu, A., et al.: Quantum implementation of classical Marr–Hildreth edge detection. Quantum Inf. Process. 19, 64 (2020). https://doi.org/10.1007/s11128-019-2559-0
Rosenfeld, A.: Digital Picture Processing. Academic Press, New York (1976)
Robinson, G.S.: Edge detection by compass gradient masks. Comput. Graph. Image Process. 6, 492–501 (1977)
Khosropour, A., Aghababa, H., Forouzandeh, B.: Quantum division circuit based on restoring division algorithm. In: 2011 Eighth International Conference on Information Technology: New Generations. IEEE, pp. 1037–1040 (2011)
Wang, J., Jiang, N., Wang, L.: Quantum image translation. Quantum Inf. Process. 14, 1589–1604 (2015)
Cuccaro, S.A., Draper, T.G., Kutin, S.A., Moultol, D.P.: A new quantum ripple-carry addition circuit. arXiv:quant-ph/0410184 (2004)
Thapliyal, H., Ranganathan, N.: Design of efficient reversible binary subtractors based on a new reversible gate. In: 2009 IEEE Computer Society Annual Symposium on VLSI, IEEE, pp. 229–234 (2009)
Thapliyal, H., Ranganathan, N.: A new design of the reversible subtractor circuit. In: 2011 11th IEEE International Conference on Nanotechnology, IEEE, pp. 1430–1435 (2011)
Wang, D., Liu, Z.H., Zhu, W.N., Li, S.Z.: Design of quantum comparator based on extended general Toffoli gates with multiple targets. Comput. Sci. 39(9), 302–306 (2012)
Tsai, H.M., Chang, L.W.: Secure reversible visible image watermarking with authentication. J. Signal Process. Image Commun. 25, 10–17 (2010)
Yaghmaee, F., Jamzad, M.: Estimating watermarking capacity in Gray scale images based on image complexity. EURASIP J. Adv. Signal Process. (2010). https://doi.org/10.1155/2010/851920
Zhang, F., Zhang, X., Zhang, H.: Digital image watermarking capacity and detection error rate. Pattern Recogn. Lett. 28, 1–10 (2008)
Gunjal, B.L., Manthalkar, R.R.: An overview of transform domain robust digital image watermarking algorithm. J. Emerg. Trends Comput. Inf. Sci. 2(1), 37–42 (2010)
Liu, Q., Sung, A.H.: Image complexity and feature mining for stag analysis of least significant bit steganography. Inf. Sci. 178, 21–36 (2008)
http://www.imageprocessingplace.com/root_files_V3/image_databases.htm
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
Appendix 1: Classical Sobel edge extraction algorithm
Sobel operator is an individually separate and distinct differential operator. Sobel operator has two sets of 3 × 3 masks and mainly used for edge detection of an image (Fig. 12).
If GH and GV represent the image gradient values of the original image into the horizontal and vertical directions, then the calculation of GH & GV is defined as
The total gradient for each pixel is as follows
The pixel will be the part of edge if G ≥ TH (Threshold).
Appendix 2: Quantum image cyclic shift transformations
The cyclic shift (X shift and Y shift) transformation is used to shift the position of whole image so that every pixel of the image will get the information of its neighborhood simultaneously [18, 19, 39]. As an example, if we shift one unit upward, the pixel of the image will be transformed S(x, y) into S(x, y+ 1). The cyclic shift transformation (CT) of quantum image \( |I\rangle \) can be expressed as
where X′ = (\( X \mp 1 \)) mod2n,, Y′ = \( \left( {Y \mp 1} \right) mod2^{n} \), CT(X+) & CT(Y+) = \( \left[ {\begin{array}{*{20}c} 0 & 1 \\ {I_{2}^{n} - 1} & 0 \\ \end{array} } \right] \) and CT(X−) & CT(Y−) = \( \left[ {\begin{array}{*{20}c} 0 & {I_{2}^{n} - 1} \\ 1 & 0 \\ \end{array} } \right] \)
Appendix 3: Quantum arithmetic operations
3.1 3.1 Quantum absolute value (QAV) module
Quantum absolute value module is used to estimate the absolute value of two integer number in quantum circuit. Basically, it consists of reversible parallel subtractor (RPS) module and complement operation (CO) module [32, 41, 42]. Quantum absolute value module for qubits |Y〉 = \( |Y_{n - 1} Y_{n - 2} \ldots Y_{1} Y_{0} \rangle \) and |X〉 = \( |X_{n - 1} X_{n - 2} \ldots X_{1} X_{0} \rangle \) is shown in Fig. 14. For more information referred to [4, 5].
3.2 3.2 Parallel-controlled NOT (CNOT) operation
CNOT operations are used to copy a quantum states. Parallel CNOT can be used to copy n-qubit quantum states into \( |0\rangle \)⊗n ancillary qubits. The quantum circuit for parallel q-CNOT is shown in Fig. 15.
3.3 3.3 Quantum operation for multiplied by 2n
Quantum operation for the qubit of an integer binary bits (i.e., |A〉 = |an−1 an−2… a1a0〉) multiplied by 2n can be realized as follows.
2n|A〉 = |an−1 an−2…a1a0 \( \underbrace {0 \ldots 0\rangle }_{n} \), where \( |0\rangle \)⊗n ancillary qubits are added after the lowest qubit.
3.4 3.4. Quantum ripple-carry adder (QRCA)
QRCA module [40] can be used to estimate the sum of two n-bit numbers A and B, where A = an−1an−2…a0, B = bn−1bn−2…b0. It consists of two basic modules of MAJ (Majority) gate and UMA (Un Majority and Add) gate [40], which start from low-order bits of the input added with carry to next order bits. In QRCA module, some ancillary and garbage qubits are omitted for simplification. The simplified QRCA module is shown in Fig. 16.
3.5 3.5 Quantum comparator (QC)
Quantum comparator [43] is used to compare the relations between two numbers. The output of QC module for two qubit sequence \( |A\rangle = |a_{n - 1} a_{n - 2} \ldots a_{1} a_{0} \rangle \) and \( |B\rangle = |b_{n - 1} b_{n - 2} \ldots b_{1} b_{0} \rangle \) can be represented as follows
-
If C1C0 = 10, then |A〉 > |B〉
-
If C1C0 = 01, then |A〉 < |B〉
-
If C1C0 = 00, then |A〉 = |B〉
See Fig. 17.
Appendix 4: Peak-signal-to-noise ratio (PSNR) and mean square error (MSE)
To compare the fidelity of a retrieval image with its original version, the peak-signal-to-noise ratio (PSNR) [44,45,46,47,48] is often used. The PSNR representing an evaluation metric for estimating fidelity of quantum is written as
where \( Q{\text{MAX}}_{I} \) the maximum pixel value of quantum is mechanically represented image and MSE [44,45,46,47,48] is the mean square error of quantum mechanically represented image. For two m \( \times \) n images, MSE can be defined as follows
We have considered m = n for simulation. Where Q(X, Y) = Quantum mechanically represented original image with X–Y position coordinates.
Figure 18a shows more PSNR obtained from all four images by using our algorithm than that obtained by the other two existing techniques. More improvement of PSNR value is noticed in walk bridge images than that in other images by using our algorithm, due to having more edge boundary and local changes of intensity in walk bridge image. So our algorithm is comparatively more effective in edge extraction of an image having more boundary and local changes than the other two algorithms. Figure 18b compares the MSE of extracted images between our algorithm and existing algorithms. The MSE of all extracted images obtained from our algorithm is less than that obtained using existing techniques due to less false edge information (Table 3).
Rights and permissions
About this article
Cite this article
Chetia, R., Boruah, S.M.B. & Sahu, P.P. Quantum image edge detection using improved Sobel mask based on NEQR. Quantum Inf Process 20, 21 (2021). https://doi.org/10.1007/s11128-020-02944-7
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s11128-020-02944-7