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

β–Ά
quaternion quantum image representation new models
SMART_READER_LITE
LIVE PREVIEW

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,


slide-1
SLIDE 1

Quaternion Quantum Image Representation: New Models

Artyom M. Grigoryana and Sos S. Agaianb

aDepartment of Electrical and Computer Engineering

The University of Texas at San Antonio, San Antonio, Texas, USA, and

bComputer 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

slide-2
SLIDE 2

OUTLINE

  • Introduction
  • Quaternion Numbers
  • Models of quantum image representation
  • Examples
  • Summary
  • References

7/8/2020 2

slide-3
SLIDE 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

slide-4
SLIDE 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

slide-5
SLIDE 5

1st 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 𝑏2 + 𝑠2 + 𝑕2 + 𝑐2 . (4) With such 2-qubit per 1-pixel presentation, the quantum representation of the quaternion image can be written as ȁ Ϋ§ ΰ·” π‘Ÿ = 1 𝑂 ෍

𝑙=0 𝑂2βˆ’1

𝑏𝑙ȁ Ϋ§ 00 + 𝑠𝑙ȁ Ϋ§ 01 + 𝑕𝑙ȁ Ϋ§ 10 + 𝑐𝑙ȁ Ϋ§ 11 𝑏𝑙

2 + 𝑠𝑙 2 + 𝑕𝑙 2 + 𝑐𝑙 2

ȁ Ϋ§ 𝑙 . (5) and that requires (2𝑠 + 2) qubits.

7/8/2020 5

slide-6
SLIDE 6

7/8/2020 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 ȁ Ϋ§ ΰ·” π‘Ÿ = 1 𝐡 ෍

𝑙=0 𝑂2βˆ’1

𝑏𝑙ȁ Ϋ§ 00 + 𝑠𝑙ȁ Ϋ§ 01 + 𝑕𝑙ȁ Ϋ§ 10 + 𝑐𝑙ȁ Ϋ§ 11 ȁ Ϋ§ 𝑙 , (6) where the normalized coefficient is calculated by 𝐡 = ෍

𝑙=0 4π‘ βˆ’1

𝑏𝑙

2 + 𝑠𝑙 2 + 𝑕𝑙 2 + 𝑐𝑙 2 =

෍

π‘œ=0 2π‘ βˆ’1

෍

𝑛=0 2π‘ βˆ’1

Θπ‘Ÿπ‘œ,𝑛ȁ2 (7) which is a large number for images.

slide-7
SLIDE 7

2nd 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, ȁ Ϋ§ ΰ·” π‘Ÿ = 1 𝐡 ෍

𝑙=0 𝑂2βˆ’1

𝑏𝑙ȁ Ϋ§ 𝑙 + ෍

𝑙=0 𝑂2βˆ’1

𝑠𝑙ȁ Ϋ§ 𝑙 + 𝑂2 + ෍

𝑙=0 𝑂2βˆ’1

𝑕𝑙ȁ Ϋ§ 𝑙 + 2𝑂2 + ෍

𝑙=0 𝑂2βˆ’1

𝑐𝑙ȁ Ϋ§ 𝑙 + 3𝑂2 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

  • processing. The measurement of the qubits ȁ Ϋ§

ΰ·” π‘Ÿ in a state ȁ Ϋ§ π‘œ = ȁ Ϋ§ 𝑙 , ȁ Ϋ§ 𝑙 + 𝑂2 , ȁ Ϋ§ 𝑙 + 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

slide-8
SLIDE 8

3rd 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 ȁ Ϋ§ ΰ·” π‘Ÿ = 1 𝐡 ෍

𝑙=0 4π‘ βˆ’1

𝑏𝑙 4 Ϋ§ 𝑙 + 𝑠𝑙 4 Ϋ§ 𝑙 + 1 + 𝑕𝑙ȁ4 Ϋ§ 𝑙 + 2 + 𝑐𝑙ȁ4 Ϋ§ 𝑙 + 3 . (10) 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

slide-9
SLIDE 9

7/8/2020 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.

slide-10
SLIDE 10

7/8/2020 10

𝐡 = ෍

𝑛=0 2π‘ βˆ’1

෍

π‘œ=0 2π‘ βˆ’1

π‘π‘œ,𝑛

2

+ 𝑠

π‘œ,𝑛 2

+ π‘•π‘œ,𝑛

2

+ π‘π‘œ,𝑛

2

. If the range of all components of the quaternion image π‘Ÿπ‘œ,𝑛 is the interval [0,1], then 𝐡 ≀ ෍

π‘œ=0 2π‘ βˆ’1

෍

𝑛=0 2π‘ βˆ’1

4 = 2 Γ— 2𝑠 = 2𝑂. 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.

slide-11
SLIDE 11

4th 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 𝐡 ෍

π‘œ=0 π‘‚βˆ’1

෍

𝑛=0 π‘‚βˆ’1

π‘Ÿπ‘œ,𝑛ȁ Ϋ§ π‘œ, 𝑛 . (11) After mapping the image into the 1-D vector, such a representation can be written as ȁ Ϋ§ ΰ·” π‘Ÿ = 1 𝐡 ෍

π‘œ=0 𝑂2βˆ’1

π‘Ÿπ‘™Θ Ϋ§ 𝑙 . (12) 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

slide-12
SLIDE 12

5th 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

slide-13
SLIDE 13

7/8/2020 13

At each pixel 𝑙~(π‘œ, 𝑛), the image can be represented by the qubit ȁ Ϋ§ ΰ·” π‘Ÿπ‘™ = 𝑓𝑏𝑙 cos πœ˜π‘™ ȁ Ϋ§ 0 + 𝜈 sin πœ˜π‘™ ȁ Ϋ§ 1 = cos πœ˜π‘™ ȁ Ϋ§ 0 + 𝜈 sin πœ˜π‘™ ȁ Ϋ§ 1 . (14) This operation over the qubit is described by the diagonal matrix 𝑆 = π‘†πœ˜π‘™= cos πœ˜π‘™ 𝜈sin πœ˜π‘™ , det 𝑆 = 1 2 𝜈 βˆ™ sin(2πœ˜π‘™) . (15) The quantum representation of the image can be defined as ȁ Ϋ§ ΰ·” π‘Ÿ = 1 𝐡 ෍

π‘œ=0 𝑂2βˆ’1

𝑓𝑏𝑙 cos πœ˜π‘™ ȁ Ϋ§ 0 + πœˆπ‘™ sin πœ˜π‘™ ȁ Ϋ§ 1 ȁ Ϋ§ 𝑙 . (16) We also can consider the qubit in the form 𝑓𝑗𝑏𝑙 cos πœ˜π‘™ + 𝜈 sin πœ˜π‘™ ȁ Ϋ§ 𝑙 . In this case, the quantum representation of the image is written as ȁ Ϋ§ ΰ·” π‘Ÿ = 1 𝐡 ෍

π‘œ=0 𝑂2βˆ’1

𝑓𝒋𝑏𝑙 cos πœ˜π‘™ ȁ Ϋ§ 0 + πœˆπ‘™ sin πœ˜π‘™ ȁ Ϋ§ 1 ȁ Ϋ§ 𝑙 , 𝐡 = 𝑂. (17)

slide-14
SLIDE 14

6th Quantum Model (with quaternion exponential function)

The quaternion exponent can be used also for the quantum representation of the image in the following way. We consider the quaternion π‘Ÿ in polar form π‘Ÿ = Θπ‘ŸΘπ‘“πœˆπœ˜. The quaternion can be written as π‘Ÿ = 𝑏 + π‘Ÿβ€² = π‘Ÿ 𝑏 Θπ‘ŸΘ + π‘Ÿβ€² Θπ‘Ÿβ€²Θ βˆ™ Θπ‘Ÿβ€²Θ Θπ‘ŸΘ = π‘Ÿ (𝑏 + 𝜈𝜘). (18) If 𝜈 = π‘Ÿβ€²/Θπ‘Ÿβ€²Θ, then 𝜈2 = βˆ’1, and cos 𝜘 = 𝑏/Θπ‘ŸΘ. Then, sin 𝜘 = π‘Ÿβ€² /Θπ‘ŸΘ and π‘Ÿ = π‘Ÿ cos 𝜘 + 𝜈 βˆ™ sin 𝜘 , 𝜘 ∈ 0, 𝜌 . (19) Thus, any pixel value of the image π‘Ÿπ‘™ can be written as π‘Ÿπ‘™ = π‘Ÿπ‘™ cos πœ˜π‘™ + πœˆπ‘™ βˆ™ sin πœ˜π‘™ , πœ˜π‘™ ∈ [0, 𝜌],

  • r as the qubit

ȁ Ϋ§ ΰ·– π‘Ÿπ‘™ = π‘Ÿπ‘™ cos πœ˜π‘™Θ Ϋ§ 0 + πœˆπ‘™ βˆ™ sin πœ˜π‘™ ȁ Ϋ§ 1 = cos πœ˜π‘™Θ Ϋ§ 0 + πœˆπ‘™ βˆ™ sin πœ˜π‘™ ȁ Ϋ§ 1 . (20)

7/8/2020 14

slide-15
SLIDE 15

7/8/2020 15

The quantum representation of the image can be given as ȁ Ϋ§ ΰ·” π‘Ÿ = 1 𝐡 ෍

π‘œ=0 𝑂2βˆ’1

π‘Ÿπ‘™ cos πœ˜π‘™ ȁ Ϋ§ 0 + πœˆπ‘™ βˆ™ sin πœ˜π‘™ ȁ Ϋ§ 1 ȁ Ϋ§ 𝑙 . (21) with (2𝑠 + 1) qubits. The normalized coefficient is calculated by 𝐡 = ෍

𝑙=0 22π‘ βˆ’1

Θπ‘Ÿπ‘™Θ2 ≀ 2 22𝑠 = 2𝑠+1, if all color components of the image are in the range of the unit interval [0,1].

slide-16
SLIDE 16

7/8/2020 16

SUMMARY

  • Two concepts of the quaternion and quantum representations of color images

can be united to obtain the quaternion-in-quantum representation of color

  • images. Different quantum models for quaternion image representation are
  • described. The images are considered in the RGB color models, but other

color models, such as CMY(K) and XYZ can also be used.

  • A quaternion image of 𝑂 Γ— 𝑁 pixels, can be represented by (𝑠 + 𝑑 + 2) or

(𝑠 + 𝑑 + 1) qubits, when 𝑂 = 2𝑠 and 𝑁 = 2𝑑, 𝑠, 𝑑 > 1. The model of quantum quaternion image representation with (𝑠 + 𝑑) is also described.

REFERENCES [1] A.M. Grigoryan, S.S. Agaian, Quaternion and Octonion Color Image Processing with MATLAB, SPIE PRESS, vol. PM279 (2018), (https://doi.org/10.1117/3.2278810).

[2] A.M. Grigoryan, S.S. Agaian, β€œNew look on quantum representation of images: Fourier transform representation,”

Quantum Information Processing, p. 26, (2020) 19:148, (https://doi.org/10.1007/s11128-020-02643-3) [3] A.M. Grigoryan, S.S. Agaian, Quaternion and Octonion Color Image Processing with MATLAB, SPIE PRESS, vol. PM279 (2018), (https://doi.org/10.1117/3.2278810)