quaternion quantum image representation new models
play

Quaternion Quantum Image Representation: New Models Artyom M. - PowerPoint PPT Presentation

Quaternion Quantum Image Representation: New Models Artyom M. Grigoryan a and Sos S. Agaian b a Department of Electrical and Computer Engineering The University of Texas at San Antonio, San Antonio, Texas, USA, and b Computer Science Department,


  1. Quaternion Quantum Image Representation: New Models Artyom M. Grigoryan a and Sos S. Agaian b a Department of Electrical and Computer Engineering The University of Texas at San Antonio, San Antonio, Texas, USA, and b Computer Science Department, College of Staten Island and the Graduate Center, Staten Island, NY, USA amgrigoryan@utsa.edu, sos.agaian@csi.cuny.edu 7/8/2020 1

  2. OUTLINE • Introduction • Quaternion Numbers • Models of quantum image representation • Examples • Summary • References 7/8/2020 2

  3. Abstract • In this paper, we unite two approaches for processing color images, by proposing a quaternion representation in quantum imaging, which includes the color images in the RGB model together with the grayscale component or brightness. • The concept of quaternion two-qubit is considered and applied for image representation in each quantum pixel. The colors at each pixel are processed as one unit in quaternion representation. Other new models for quaternion image representation are also described. • It is shown that a quaternion image or four component image of 𝑂 × 𝑁 pixels, can be represented by (𝑠 + 𝑡 + 2) qubits, when 𝑂 = 2 𝑠 and 𝑁 = 2 𝑡 , 𝑠, 𝑡 > 1 . The number of qubits for representing the image can be reduced to (𝑠 + 𝑡) , when using the quaternion 2-qubit concept. 7/8/2020 3

  4. Quantum Models of Color Images We consider the discrete RGB color image 𝑔 = {𝑔 𝑜,𝑛 } of size 𝑂 × 𝑂 , where 𝑂 = 2 𝑠 , 𝑠 > 1 , as the quaternion image 𝑟 = 𝑟 𝑜,𝑛 , 𝑟 𝑜,𝑛 = 𝑏 𝑜,𝑛 + 𝑗𝑠 𝑜,𝑛 + 𝑘𝑕 𝑜,𝑛 + 𝑙𝑐 𝑜,𝑛 . (1) Here, 𝑗, 𝑘 , and 𝑙 are imaginary units, 𝑗 2 = 𝑘 2 = 𝑙 2 = −1 and 𝑏 𝑜,𝑛 , 𝑠 𝑜,𝑛 , 𝑕 𝑜,𝑛 , and 𝑐 𝑜,𝑛 are the gray, red, green, and blue components of the image, respectively. The image is in the RGB color model and is considered together with its grayscale image, which is calculated by 𝑏 𝑜,𝑛 = 𝑠 𝑜,𝑛 + 𝑕 𝑜,𝑛 + 𝑐 𝑜,𝑛 /3. The brightness 0.30𝑠 𝑜,𝑛 + 0.59𝑕 𝑜,𝑛 + 0.11𝑐 𝑜,𝑛 can also be used 𝑏 𝑜,𝑛 . For simplicity of representation of images in quantum domain, we write the image as the 1-D vector constructed from image rows, 𝑙 = 𝑜𝑂 + 𝑛, 𝑙 = 0: 𝑂 2 − 1 . 𝑟 𝑜,𝑛 → 𝑟 𝑙 = 𝑏 𝑙 + 𝑗𝑠 𝑙 + 𝑘𝑕 𝑙 + 𝑙𝑐 𝑙 , (2) 7/8/2020 4

  5. 1 st Quantum Model of Color Images At each pixel 𝑙 , the four colors can be used for amplitudes of the 2-qubit states, namely, they will be used as 𝑏 → 𝑏ȁ 00 , ۧ 𝑠 → 𝑠ȁ 01 , ۧ 𝑕 → 𝑕ȁ 10 , ۧ 𝑐 → 𝑐ȁ 11 , ۧ (3) to obtain two qubits 𝑅 2 = 𝑏ȁ 00 + 𝑠ȁ ۧ 01 + 𝑕ȁ ۧ 10 + 𝑐ȁ ۧ ۧ 11 , which should be written with the normalized coefficient 𝑅 2 = 𝑏ȁ 00 + 𝑠ȁ ۧ 01 + 𝑕ȁ ۧ 10 + 𝑐ȁ ۧ ۧ 11 . (4) 𝑏 2 + 𝑠 2 + 𝑕 2 + 𝑐 2 With such 2-qubit per 1-pixel presentation, the quantum representation of the quaternion image can be written as 𝑂 2 −1 𝑏 𝑙 ȁ 00 + 𝑠 𝑙 ȁ ۧ 01 + 𝑕 𝑙 ȁ ۧ 10 + 𝑐 𝑙 ȁ ۧ ۧ 𝑟 = 1 11 ȁ ۧ ȁ ۧ ු 𝑂 ෍ 𝑙 . (5) 2 + 𝑠 𝑙 2 + 𝑕 𝑙 2 + 𝑐 𝑙 2 𝑏 𝑙 𝑙=0 and that requires (2𝑠 + 2) qubits. 7/8/2020 5

  6. In this model, four colors which are packed in two qubits. The measurement of these (2𝑠 + 2) qubits in the state ȁ ۧ 𝑙 results in the 2- qubit superposition 𝑅 2 (𝑙) which carries information of all colors at pixel 𝑙 . It should be noted that this model differs from the model representing the quaternion image as 𝑂 2 −1 𝑟 = 1 ȁ ۧ 𝑏 𝑙 ȁ 00 + 𝑠 𝑙 ȁ ۧ 01 + 𝑕 𝑙 ȁ ۧ 10 + 𝑐 𝑙 ȁ ۧ 11 ȁ ۧ ۧ ු 𝐵 ෍ 𝑙 , (6) 𝑙=0 where the normalized coefficient is calculated by 4 𝑠 −1 2 𝑠 −1 2 𝑠 −1 2 + 𝑠 𝑙 2 + 𝑕 𝑙 2 + 𝑐 𝑙 2 = ȁ𝑟 𝑜,𝑛 ȁ 2 𝐵 = 𝑏 𝑙 (7) ෍ ෍ ෍ 𝑙=0 𝑜=0 𝑛=0 which is a large number for images. 7/8/2020 6

  7. 2 nd Quantum Model (by color parts) In quantum representation, the quaternion image can be written as the grayscale image composing by four parts, by using (2𝑠 + 2) qubits, ȁ ۧ 𝑟 ු 𝑂 2 −1 𝑂 2 −1 𝑂 2 −1 𝑂 2 −1 = 1 𝑙 + 𝑂 2 + ෍ 𝑙 + 2𝑂 2 + ෍ 𝑙 + 3𝑂 2 𝑏 𝑙 ȁ ۧ 𝑠 𝑙 ȁ ۧ 𝑕 𝑙 ȁ ۧ 𝑐 𝑙 ȁ ۧ ෍ 𝑙 + ෍ 𝐵 𝑙=0 𝑙=0 𝑙=0 𝑙=0 The normalized coefficient 𝐵 is the norm of the quaternion image and is calculated as in Eq. 7 for Model 1. This model of quantum representation of color images can be used in parallel color 𝑙 + 𝑂 2 , ȁ processing. The measurement of the qubits ȁ ۧ 𝑟 in a state ȁ ۧ 𝑜 = ȁ ۧ 𝑙 , ȁ ۧ ු 𝑙 + 2𝑂 2 , or ȁ 𝑙 + 3𝑂 2 gives us only one color at the pixel 𝑙 . This fact can be ۧ ۧ considered a drawback of the model when compared with Model 1. 7/8/2020 7

  8. 3 rd Quantum Model (with gray scale image) The quaternion image can be map into the grayscale image of size 2𝑂 × 2𝑂 . For instance, the following 2 × 2 model can be used: 𝑏 𝑜,𝑛 𝑠 𝑜,𝑛 𝑟 𝑜,𝑛 → [𝑟] 𝑜,𝑛 = 𝑐 𝑜,𝑛 . 𝑕 𝑜,𝑛 In the 1-D representation of the image, this model also can be described as 𝑙 = 0: 𝑂 2 − 1 . 𝑏 𝑙 𝑠 𝑙 𝑕 𝑙 𝑐 𝑙 , 𝑟 𝑙 → (9) The quantum representation of the quaternion image can be written as 4 𝑠 −1 𝑟 = 1 ȁ ۧ ු 𝑏 𝑙 4 ۧ 𝑙 + 𝑠 𝑙 4 𝑙 + 1 + 𝑕 𝑙 ȁ4 ۧ 𝑙 + 2 + 𝑐 𝑙 ȁ4 ۧ 𝑙 + 3 . ۧ (10) 𝐵 ෍ 𝑙=0 Unlike Model 2, each four colors ( 𝑏 𝑙 , 𝑠 𝑙 , 𝑕 𝑙 , 𝑐 𝑙 ) of the pixel 𝑙 are recorded in the amplitudes of the base states next to each other. 7/8/2020 8

  9. Figure 1 shows the image of the Pablo Picasso's painting “Self -Portrait With A Palette” in part (a) and its quaternion-in-grayscale image twice the size in part (b). The image of Leonardo da Vinci’s painting “Portrait Of Cecilia Gallerani (Lady With An Ermine)” is shown in part (c) and its quaternion-in-grayscale image in part (d). The images were taken from Olga's Gallery, by address https://www.freeart.com/gallery/ (a) (b) (c) (d) Figure 1. (a) Color Image “picasso171.jpg” and (b) its quaternion -in-grayscale image, (c) color image “leonardo9.jpg” and (d) its quaternion -in-grayscale image. 7/8/2020 9

  10. 2 𝑠 −1 2 𝑠 −1 2 2 2 2 𝐵 = ෍ ෍ 𝑏 𝑜,𝑛 + 𝑠 + 𝑕 𝑜,𝑛 + 𝑐 𝑜,𝑛 . 𝑜,𝑛 𝑛=0 𝑜=0 If the range of all components of the quaternion image 𝑟 𝑜,𝑛 is the interval [0,1] , then 2 𝑠 −1 2 𝑠 −1 4 = 2 × 2 𝑠 = 2𝑂. 𝐵 ≤ ෍ ෍ 𝑜=0 𝑛=0 Such a representation requires also (2𝑠 + 2) qubits. The difference between this model and the model described by Eq. 8 is that four colors at each pixel are packed close to each other. In the model with Eq. 8, the placement of colors in neighbor pixels is very distant. For example, the red and green parts of the image are the amplitudes of the basic states, separated by at least 𝑂 2 states. 7/8/2020 10

  11. 4 th Quantum Model (with quaternion amplitudes) We consider the following quaternion-quantum representation of the image, when using the values of the quaternion image as the amplitudes of the basic states: 𝑂−1 𝑂−1 𝑟 = 1 ȁ ۧ 𝑟 𝑜,𝑛 ȁ ۧ ු 𝐵 ෍ ෍ 𝑜, 𝑛 . (11) 𝑜=0 𝑛=0 After mapping the image into the 1-D vector, such a representation can be written as 𝑂 2 −1 𝑟 = 1 ȁ ۧ 𝑟 𝑙 ȁ ۧ ු 𝐵 ෍ 𝑙 . (12) 𝑜=0 This representation requires 2𝑠 qubits, that is, fewer qubits than in all other models described above. For the image of size 𝑂 × 𝑁 = 2 𝑠 × 2 𝑡 , 𝑠, 𝑡 > 1, the similar quantum representation requites (𝑠 + 𝑡) qubits. 7/8/2020 11

  12. 5 th Quantum Model (with quaternion exponential function) We consider the quaternion logarithm, which is calculated as follows. A quaternion number can be written as 𝑟 = 𝑏 + 𝑟 ′ = 𝑏 + 𝑟 ′ ȁ𝑟 ′ ȁ 𝑟 ′ = 𝑏 + 𝜈𝜘, (13) where the pure unit quaternion 𝜈 = 𝑟 ′ / 𝑟 ′ and the real number 𝜘 = 𝑟 ′ will be considered as an angle. Note that 𝜈 2 = −1, because 𝑟 ′ 2 = − 𝑠 2 + 𝑕 2 + 𝑐 2 = − 𝑟 ′ 2 . If the colors of the image are in the range of [0,1] , then 𝑏 ≤ 1 and 𝑟 ′ ≤ 3 < 𝜌 . The quaternion exponent is 𝑓 𝑟 = 𝑓 𝑏+𝑟 ′ = 𝑓 𝑏+𝜈𝜘 = 𝑓 𝑏 𝑓 𝜈𝜘 = 𝑓 𝑏 cos 𝜘 + 𝜈 sin 𝜘 . For only RGB colors, when 𝑟 = 𝑟 ′ , the exponent is 𝑓 𝑟 ′ = 𝑓 𝜈𝜘 = cos 𝜘 + 𝜈 sin 𝜘 . 7/8/2020 12

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend