Next Article in Journal
Optimal Control of Microcephaly Under Vertical Transmission of Zika
Next Article in Special Issue
Modified Sweeping Surfaces in Euclidean 3-Space
Previous Article in Journal
Third-Order Differential Subordination Features of Meromorphic Functions: Erdelyi–Kober Model Integral Operator Application
Previous Article in Special Issue
Join Spaces and Lattices
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Elliptic Quaternion Matrices: A MATLAB Toolbox and Applications for Image Processing

Faculty of Sciences, Department of Mathematics, Sakarya University, Sakarya TR-54050, Türkiye
*
Author to whom correspondence should be addressed.
Axioms 2024, 13(11), 771; https://doi.org/10.3390/axioms13110771
Submission received: 23 August 2024 / Revised: 22 October 2024 / Accepted: 27 October 2024 / Published: 6 November 2024
(This article belongs to the Special Issue Advances in Classical and Applied Mathematics)

Abstract

:
In this study, we developed a MATLAB 2024a toolbox that performs advanced algebraic calculations in the algebra of elliptic numbers and elliptic quaternions. Additionally, we introduce color image processing methods, such as principal component analysis, image compression, image restoration, and watermarking, based on singular-value decomposition theory for elliptic quaternion matrices; we added these to the newly developed toolbox. The experimental results demonstrate that elliptic quaternionic methods yield better image analysis and processing performance compared to other hypercomplex number-based methods.

1. Introduction

In 1843, Hamilton introduced the concept of real quaternions, expressed as
q R = q R , r + q R , i i + q R , j j + q R , k k ,
where q R , r , q R , i , q R , j , and q R , k are real-valued components, and the imaginary units i, j, and k satisfy the relations
i 2 = j 2 = k 2 = 1 , i j = j i = k , j k = k j = i , k i = i k = j .
The absence of the commutative property in quaternion multiplication classifies real quaternions as a division ring or, more specifically, a skew field [1]. This mathematical structure finds its application across a broad spectrum of disciplines, including but not limited to quantum mechanics [2], computer graphics [3], signal and image processing [4], and the study of neural networks [5]. In 2005, Sangwine and Bihan introduced a MATLAB toolbox designed to facilitate the computational demands associated with real quaternions and their matrices. This toolbox, notable for its inclusion of image processing functionalities, has been subject to continuous refinement, with its most recent update occurring in February 2024 [6]. MATLAB introduced quaternion support in the R2018b release as part of the Aerospace Toolbox and, after that, incorporated it into several pivotal MATLAB toolboxes such as the Sensor Fusion and Tracking Toolbox, the Robotics System Toolbox, and the Navigation Toolbox. This expansion highlights the importance and applicability of real quaternions in various technological and scientific areas. However, the noncommutative nature of real quaternion multiplication not only introduces certain constraints in various applications but also causes difficulties in calculations. For instance, the inherent complexity in performing the singular-value decomposition of a real quaternion matrix is notably high, registering a computational complexity of O ( 8 n 3 ) for an n × n real quaternion matrix, considering that its complex representation is of size 2 n × 2 n . Additionally, the convolution theorem does not hold for real quaternion-valued signals; that is, the Fourier transform of the convolution products of two such signals does not equate to the dot products of their respective Fourier transforms. This deviation from the convolution theorem implies that the fast Fourier transform algorithm remains undeveloped for real quaternion-valued linear time-invariant systems, presenting challenges in their analysis [7].
As the need for more efficient and versatile algebraic structures grew, researchers sought alternatives to real quaternions that retained the benefits of hypercomplex numbers while mitigating some of the associated limitations. This search led to the development of generalized Segre quaternions, a class of four-dimensional commutative hypercomplex numbers. These quaternions have been gaining attention due to their ability to extend methodologies from the real and complex number domains to more versatile four-dimensional counterparts [8,9]. The definition of generalized Segre quaternions is as follows:
q GS = q GS , r + q GS , i i + q GS , j j + q GS , k k ,
where q GS , r ,   q GS , i ,   q GS , j ,   q GS , k R and i , j , k R . The multiplication rules for the units i , j , k are given by
i 2 = k 2 = p , j 2 = 1 , i j = j i = k , j k = k j = i , k i = i k = p j ,
where p R . Based on the value of p, generalized Segre quaternions are classified into three categories: hyperbolic quaternions ( p > 0 ), parabolic quaternions ( p = 0 ), and elliptic quaternions ( p < 0 ) [9]. Each of these systems has specific scientific and technological applications. For example, hyperbolic quaternions are used to solve problems in non-Euclidean geometry [10,11], while parabolic quaternions are applied in robotic control and spatial mechanics [10,12]. Due to the elliptic behavior of many physical systems, elliptic quaternions have significant practical applications in applied science. Additionally, elliptic quaternions offer a notable improvement over real quaternions, especially with their commutative multiplication and enhanced generalization capability [9,10,13,14]. These properties result in reduced computational complexity and improved performance across a range of computational tasks. Specifically, the process of singular-value decomposition within the context of elliptic quaternion matrices is characterized by an algorithmic complexity of O ( 2 n 3 ) , as detailed in [15]. Furthermore, the applicability of the convolution theorem within this mathematical framework enables the formulation of a fast Fourier transform algorithm specifically designed for elliptic quaternion spaces. Consequently, recent developments in elliptic quaternion-valued methodologies have demonstrated their superiority over conventional real quaternion approaches in critical fields such as image processing, signal processing, and deep learning, as evidenced by [7,14,15,16,17].
In this paper, we present a MATLAB toolbox that we developed for performing advanced calculations in elliptic numbers and elliptic quaternions. The aim of this toolbox is to address and provide solutions to the computational challenges associated with these algebraic structures, thereby facilitating further scientific and technological research in this field. This development is fundamentally rooted in the theoretical framework and algorithms delineated in references [9,15,18]. Furthermore, by leveraging mathematical theory and algorithms elucidated in [15], we have enriched this toolbox with advanced color image processing methodologies, including but not limited to principal component analysis, image compression, image restoration, and watermarking techniques. We have observed that the proposed methods for image compression, image restoration, and watermarking exhibit better performance than existing techniques based on separable, real quaternions and reduced biquaternions (for comparison results, see Tables 4–8). Moreover, our performance analyses reveal that the p-value of elliptic quaternions directly affects the solution of the problem, with better results obtained by adjusting this p-value (for optimal p-value results, see Figures 11, 13 and 19).
Within the context of this paper, the following notations are employed. Let R , C , C p , and H p denote the sets of real numbers, complex numbers, elliptic numbers, and elliptic quaternions, respectively. R m × n , C m × n , C p m × n , and H p m × n denote the set of all m × n matrices on R , C , C p , and H p , respectively. Throughout the study, we use the following notations: q represents a complex number when = c , an elliptic number when = e , and an elliptic quaternion when = E . Similarly, Q denotes a complex matrix when = c , an elliptic matrix when = e , and an elliptic quaternion matrix when = E . This study was conducted using MATLAB 2024a (64-bit) on a system equipped with an Intel® Raptor Lake Core™ i7-13700H 14C/20T, NVIDIA® GeForce® RTX4060 and 32 GB of DDR5 RAM.

2. Mathematical Preliminaries

This section establishes the fundamental algebraic properties and the notations for elliptic numbers and elliptic quaternions.

2.1. Elliptic Numbers

An elliptic number q e is denoted by q e = q e , r + q e , i i , where i 2 = p < 0 and q e , r , q e , i , p R . The conjugate and norm of q e C p are defined as q e ¯ = q e , r q e , i i and q e p = q e , r 2 p q e , i 2 , respectively [19]. The multiplication of the elliptic numbers q 1 , e = q 1 , e , r + q 1 , e , i i and q 2 , e = q 2 , e , r + q 2 , e , i i is defined as
q 1 , ( e ) q 2 , ( e ) = q 1 , ( e ) , r q 2 , ( e ) , r + p q 1 , ( e ) , i q 2 , ( e ) , i + i q 1 , ( e ) , r q 2 , ( e ) , i + q 2 , ( e ) , r q 1 , ( e ) , i .
An elliptic matrix Q ( e ) is denoted as Q ( e ) = Q ( e ) , r + Q ( e ) , i i , where i 2 = p < 0 , p R , and Q ( e ) , r , Q ( e ) , i R m × n . The conjugate, transpose, conjugate transpose, and Frobenius norm of Q ( e ) C p m × n are defined by Q e ¯ = Q e , r Q e , i i , Q e T = Q e , r T + Q e , i T i , Q e * = Q e , r T Q e , i T i , and Q ( e ) p   =   Q ( e ) , r 2     p Q ( e ) , i 2 , respectively [15,19]. The multiplication of two elliptic matrices Q 1 , e = Q 1 , e , r + Q 1 , e , i i and Q 2 , e = Q 2 , e , r + Q 2 , e , i i is defined as
Q 1 , ( e ) Q 2 , ( e ) = Q 1 , ( e ) , r Q 2 , ( e ) , r + p Q 1 , ( e ) , i Q 2 , ( e ) , i + i Q 1 , ( e ) , r Q 2 , ( e ) , i + Q 2 , ( e ) , r Q 1 , ( e ) , i .
There exists an isomorphism between elliptic matrices and complex matrices, as depicted in the following:
H p : C p m × n C m × n Q e = Q e , r + Q e , i i H p Q e = Q c = Q e , r + I p Q e , i ,
where I represents the complex unit ( I 2 = 1 ) [15].
Lemma 1
([15]). Let the eigenvalues of a complex matrix H p Q e be denoted by λ H p Q e , and let the corresponding eigenvectors be represented by x H p Q e . Then, the eigenvalues of the elliptic matrix Q ( e ) C p n × n are given by
λ ( e ) = Re ( λ H p ( Q ( e ) ) ) + i p Im ( λ H p ( Q ( e ) ) )
and the corresponding eigenvectors are given by
x ( e ) = Re ( x H p ( Q ( e ) ) ) + i p Im ( x H p ( Q ( e ) ) ) .
Lemma 2
([15]). Let Q ( e ) C p m × n . The pseudoinverse of Q ( e ) is given by
Q ( e ) = Re H p Q ( e ) + i p Im H p Q ( e ) ,
where H p Q ( e ) is the pseudoinverse of the complex matrix H p Q ( e ) .
Lemma 3
([15]). Let Q ( e ) C p m × n . Suppose that the singular-value decomposition of the complex matrix H p Q ( e ) is given by H p Q ( e ) = U c Σ V c * . Then, the singular-value decomposition of the elliptic matrix Q ( e ) is Q ( e ) = U e Σ V e * , where
U e = Re U c + i p Im U c a n d V e = Re U c + i p Im U c .
Lemma 4
([15]). Let Q 1 , ( e ) C p m × n and Q 2 , ( e ) C p m × q . Suppose that H p Q 1 , ( e ) = U c Σ V c * . In this case, the least squares solution with the minimum norm X ( e ) of the elliptic matrix equation Q 1 , ( e ) X ( e ) = Q 2 , ( e ) is given by
X ( e ) = Re V e + i p Im V e Σ Re U e + i p Im U e * Q 2 , e .

2.2. Elliptic Quaternions

An elliptic quaternion q ( E ) is denoted as q ( E ) = q ( E ) , r + q ( E ) , i i + q ( E ) , j j + q ( E ) , k k , where i 2 = k 2 = p < 0 , j 2 = 1 , i j = j i = k , j k = k j = i , k i = i k = p j , and q ( E ) , r ,   q ( E ) , i ,   q ( E ) , j ,   q ( E ) , k ,   p R . An elliptic quaternion q E is denoted in the following forms:
q E = q E , r + i q E , i + q E , j + i q E , k j = q e , 1 e 1 + q e , 2 e 2 ,
where
q e , 1 = q E , r + q E , j + q E , i + q E , k i
and
q e , 2 = q E , r q E , j + q E , i q E , k i
are elliptic numbers and e 1 = 1 + j 2 and e 2 = 1 j 2 . Clearly, e 1 e 2 = 0 , e 1 + e 2 = 1 , e 1 e 2 = j and e 1 2 = e 1 , e 2 2 = e 2 . As a result, e 1 and e 2 are disjoint idempotent units.
The multiplication of the two elliptic quaternions q 1 , E = q 1 , e , 1 e 1 + q 1 , e , 2 e 2 and q 2 , E = q 2 , e , 1 e 1 + q 2 , e , 2 e 2 is defined by
q 1 , E q 2 , E = q 1 , e , 1 q 2 , e , 1 e 1 + q 1 , e , 2 q 2 , e , 2 e 2 .
The conjugate and norm of the elliptic quaternion q E = q e , 1 e 1 + q e , 2 e 2 are defined by q E ¯ = q e , 1 ¯ e 1 + q e , 2 ¯ e 2 and q E p = 1 2 q e , 1 p 2 + q e , 2 p 2 , respectively [10].
An elliptic quaternion matrix Q E is represented
Q E = Q E , r + Q E , i i + Q E , j j + Q E , k k = Q E , r + Q E , i i + Q E , j + Q E , k i j = Q e , 1 e 1 + Q e , 2 e 2 ,
where
Q e , 1 = Q E , r + Q E , j + Q E , i + Q E , k i
and
Q e , 2 = Q E , r Q E , j + Q E , i Q E , k i
are elliptic matrices, and Q E , r , Q E , i , Q E , j , Q E , k R m × n . The multiplication of the two elliptic quaternion matrices Q 1 , E = Q 1 , e , 1 e 1 + Q 1 , e , 2 e 2 and Q 2 , E = Q 2 , e , 1 e 1 + Q 2 , e , 2 e 2 is defined by
Q 1 , E Q 2 , E = Q 1 , e , 1 Q 2 , e , 1 e 1 + Q 1 , e , 2 Q 2 , e , 2 e 2 .
The conjugate, transpose, conjugate transpose, and Frobenius norm of elliptic quaternion matrix Q E = Q e , 1 e 1 + Q e , 2 e 2 H p m × n are defined by Q E ¯ = Q e , 1 ¯ e 1 + Q e , 2 ¯ e 2 , Q E T = Q e , 1 T e 1 + Q e , 2 T e 2 , Q E * = Q e , 1 T ¯ e 1 + Q e , 2 T ¯ e 2 and Q E p = 1 2 Q e , 1 p 2 + Q e , 2 p 2 , respectively [18,20].
Theorem 1
([15]). Let Q E = Q e , 1 e 1 + Q e , 2 e 2 H p n × n . Suppose that λ e , 1 and λ e , 2 are eigenvalues of elliptic matrices Q e , 1 and Q e , 2 corresponding to the eigenvectors x e , 1 and x e , 2 , respectively. Then, λ E = λ e , 1 e 1 + λ e , 2 e 2 is an eigenvalue of Q E corresponding to the eigenvector x E = x e , 1 e 1 + x e , 2 e 2 .
Theorem 2
([15]). Let Q E = Q e , 1 e 1 + Q e , 2 e 2 H p m × n . Suppose that singular-value decompositions of Q e , 1 and Q e , 2 are Q e , 1 = U e , 1 Σ 1 V e , 1 * and Q e , 2 = U e , 2 Σ 2 V e , 2 * , respectively. Then, the singular-value decomposition of the elliptic quaternion matrix Q E is given by Q E = U E Σ E V E * , where Σ E = Σ 1 e 1 + Σ 2 e 2 is hyperbolic matrix since Σ 1 and Σ 2 are real matrices ( Σ E is real matrix if and only if Σ 1 = Σ 2 ). Moreover U E = U e , 1 e 1 + U e , 2 e 2 and V E = V e , 1 e 1 + V e , 2 e 2 are unitary matrices.
Corollary 1
([15]). Let Q E = Q e , 1 e 1 + Q e , 2 e 2 H p m × n and Q E = U E Σ E V E * . Then, the pseudoinverse of Q E is Q E = V E Σ E U E * , where Σ ( E ) = Σ 1 e 1 + Σ 2 e 2 and Σ 1 , Σ 2 R m × n .
Theorem 3
([15]). The least squares solution with the minimum norm of the elliptic quaternion matrix equation Q 1 , E X E = Q 2 , E is X E = Q 1 , E Q 2 , E = V E Σ E U E * Q 2 , E , where Q 1 , E H p m × n and Q 2 , E H p m × q .

3. MATLAB Toolbox for Elliptic Numbers and Elliptic Quaternions

Elliptic numbers and elliptic quaternions are number systems that confer significant advantages in solving certain mathematical and physical problems. In this section, we introduce a MATLAB toolbox (version 0.1) developed to facilitate computations involving these systems. As illustrated in Figure 1, elliptic quaternions generalize elliptic numbers, reduced biquaternions (commutative quaternions), complex numbers, and real numbers, thereby providing a more expansive computational framework. This generalization enhances the versatility and applicability of the developed toolbox.
Table 1 and Table 2 show the signatures and their descriptions of the functions of the elliptic numbers and elliptic quaternions, respectively, in the toolbox.
To enable the toolbox to process any elliptic number, the user must specify its real part, imaginary part, and the associated p-value. For example, to initialize the elliptic number q ( e ) = 1 + 2 i and the elliptic matrix Q ( e ) C 5 3 × 3 (initialized with random numbers) for p = 5 , the functions in the Listing 1 should be invoke.
Listing 1. MATLAB console output of the function elliptic_number().
Axioms 13 00771 i001
Initializing the elliptic quaternions q ( E ) = 1 + 2 i + 3 j + 4 k and p ( E ) = 1 + 3 i + 2 j + 5 k for p = 3 and their multiplication is carried out as in the Listing 2:
Listing 2. MATLAB console output of the functions elliptic_quaternion() and elliptic_q_product().
Axioms 13 00771 i002
The singular-value decomposition of the elliptic quaternion matrix Q ( E ) H 3 3 × 3 , initialized with random numbers for p = 3 , is conducted as in the Listing 3:
Listing 3. MATLAB console output of the functions elliptic_quaternion() and elliptic_q_svd().
Axioms 13 00771 i003a
Axioms 13 00771 i003b
The minimum error and least squares solution of the matrix equation Q ( E ) X ( E ) = P ( E ) , where P ( E ) H 3 3 × 5 is initialized with random numbers for p = 3 , are carried out as in the Listing 4:
Listing 4. MATLAB console output of the functions elliptic_quaternion() and elliptic_q_lss().
Axioms 13 00771 i004
In the example above, the obtained minimum error value is 5.3613 ×  10 15 for p = 3 . However, changing the value of p can further reduce the minimum error. Figure 2 shows the minimum errors corresponding to p-values of the range 5 p 0.1 with a step size 0.2 . The graph demonstrates that the minimum error 1.2057 ×  10 15 obtained for p = 0.8 is smaller than the minimum error obtained for p = 3 .
In conclusion, the value of p in the elliptic quaternion space emerges as a critical hyperparameter that directly affects the solution to a problem addressed in this space. This finding highlights the significant role of selecting the appropriate p-value in solving any problem and emphasizes that it is a key factor in reducing the error rate. Therefore, optimizing the p-value is important in enhancing solution quality and achieving lower error rates.

4. Color Image Processing Using Singular-Value Decomposition of Elliptic Quaternion Matrices

Elliptic quaternions are distinguished by their composition, comprising one real part alongside three imaginary counterparts. Within the realm of color imagery, particularly in the RGB color space framework, each pixel is constituted by three primary color components, namely red, green, and blue. By drawing an analogy from this, it can be postulated that each pixel within a color image can be analogously represented as a purely imaginary elliptic quaternion, wherein the real component is nullified. In such a representational schema, the red, green, and blue color components are analogically mapped to the i, j, and k components of the purely imaginary elliptic quaternions, respectively. By following this premise, it is possible to articulate that a color image, defined by a dimensional matrix of m × n pixels, can be succinctly expressed through an elliptic quaternion matrix:
f E = R E , i i + G E , j j + B E , k k ,
where the matrices R E , i , G E , j , and B E , k R m × n represent the red, green, and blue component matrices of a color image, respectively. This representation is visually illustrated in Figure 3 [18].
The signatures and descriptions of the image processing functions in the Toolbox are presented in Table 3. The experimental results in this work demonstrate that elliptic quaternion methods outperform other hypercomplex number-based approaches in image analysis and processing (Tables 4–8). The test images used in the experiments of the developed techniques are given in Figure 4. On the other hand, the p-value in the algebra of elliptic quaternions directly affects the performance of the problem modeled in this space (see Figures 11, 13 and 19). As a result, choosing the most appropriate elliptic quaternion space for the problem under consideration (choosing the p-value that gives the most optimal solution to the problem) and the elliptical behavior of many physical systems make this number system more advantageous in image processing. Therefore, incorporating the elliptic quaternion number system into image processing may solve various problems related to time, memory, and performance.
For p   =   0.5 , the elliptic quaternion matrix representation of the test image airplane.png with a resolution of 512   ×   512 pixels is obtained as in the Listing 5:
Listing 5. MATLAB console output of the function image2elliptic().
Axioms 13 00771 i005
On the other hand, a color image can also be represented using elliptic quaternionic singular-value decomposition (ESVD) as
f ( E ) = U ( E ) Σ ( E ) V ( E ) * ,
where the matrices U ( E ) and V ( E ) are unitary matrices and Σ ( E ) is a hyperbolic matrix. Various image processing techniques can be applied to a color image after applying ESVD without decomposing it into three-channel images. In the subsequent section, principal component analysis, image compression, image restoration, and watermarking techniques were applied to a color image using ESVD.

4.1. Eigenimages of Color Images

The ESVD of any color image can be expressed as
f ( E ) = U ( E ) Σ ( E ) V ( E ) * = i = 1 R σ i ( E ) u i ( E ) v i ( E ) * ,
where u i ( E ) H p m × 1 and v i ( E ) H p n × 1 are elliptic quaternionic vectors, and R represents the rank of the elliptic quaternion matrix f ( E ) . Each term u i ( E ) v i ( E ) * is called an elliptic quaternion-valued eigenimage of the image. Consequently, the color image f ( E ) can be thought of as a linear combination of R eigenimages. The first eigenimage, shown in Figure 5, of the test image baby.png is obtained with the function in Listing 6:
Listing 6. MATLAB console output of the functions image2elliptic() and elliptic_q_eigenimage().
Axioms 13 00771 i006
Moreover, normalized absolute versions of the third, tenth, and twenty-fifth eigenimages of the test image baby.png are also given in Figure 6.
As seen in Figure 6, the initial eigenimages correspond to the low-frequency components of the original image, capturing the broad, smooth variations and overall structure. In contrast, the subsequent eigenimages represent the high-frequency components, which detail the finer, more intricate features and textures. This distinction between low- and high-frequency components allows for a more subtle analysis and manipulation of the image data.

4.2. Color Image Compression with ESVD

When color images are represented as illustrated in Equation (1), the variation in their singular values can be examined using the function provided in Listing 7. The graph depicted in Figure 7, generated by the function elliptic_q_singularvalues(), demonstrates the variation of the singular values for the test image airplane.png:
Listing 7. MATLAB console output of the functions image2elliptic() and elliptic_q_singularvalues().
Axioms 13 00771 i007
The graphs of singular values of other test images for p = 0.5 are shown in Figure 8:
As seen in Figure 7 and Figure 8, the singular values of test images decrease very rapidly. Therefore, even for small values of K satisfying K < R , a good approximation of a color image can be achieved. To approximate the matrix f ( E ) in Equation (1) for K < R , the equation
f ( E ) = i = 1 K σ i ( E ) u i ( E ) v i ( E ) *
can be used. In this case, the storage space required to store a color image reduces from 3 m n to K ( m + n + 2 ) . The steps for image compression with ESVD are provided in Figure 9:
The function in Listing 8 reconstructs the test image airplane.png for p = 0.5 and K = 50 . Figure 10 shows the original image airplane.png and the compressed version side-by-side.
Listing 8. MATLAB console output of the function elliptic_q_image_reconstruction().
Axioms 13 00771 i008
The functions in Listing 9 draw surfaces, which are represented in Figure 11, showing the PSNR (peak signal-to-noise ratio) and MSE (mean squared error) values corresponding to each K and p-value of the test image airplane.png for K = 10 : 20 : 150 and p = 5 : 0.1 : 0.1 . The red dots indicate optimal p-values.
Listing 9. MATLAB console output of the functions elliptic_q_optimal_p_for_psnr() and optimal_p_for_mse().
Axioms 13 00771 i009
The run time comparison of the proposed ESVD compression method along with the Separable method (compression method obtained by applying singular-value decomposition separately to R, G, and B components) and hypercomplex-based compression methods, such as QSVD (performs singular-value decomposition on real quaternion matrices [21]) and RBSVD (performs singular-value decomposition on reduced biquaternion matrices [22]), on the test images are provided in Figure 12.
The PSNR and MSE values of all other test images according to the given K and p-values are given in Figure 13.
The PSNR and MSE values of the proposed ESVD compression method, along with the Separable method and hypercomplex-based compression methods, such as QSVD and RBSVD, on the test images are provided in Table 4 and Table 5.

4.3. Color Image Restoration with ESVD

Image restoration is a significant concept in the field of image processing. It entails the estimation of a desired, enhanced image from its degraded version. By utilizing prior knowledge of the degradation phenomena, image restoration techniques aim to remove or reduce degradations introduced during image acquisition—such as noise, pixel value errors, out-of-focus blurring, or camera motion blurring. Generally, the degradation process of an image is nonlinear and spatially variant. However, in applied sciences, this process is often considered linear and spatially invariant, allowing it to be examined using the linear shift invariant (LSI) image restoration model [23].
For an LSI system, f is the original image, g is the observed image, H is the point spread function (PSF) of the imaging system, and n is the additional noise; the following matrix-vector formula expresses the process of image degradation: g = H f + n . Image restoration methods attempt to construct an approximation to f from the observation g = H f . The method of least squares estimator minimizes the sum of squared differences between the real observation g and the predicted observation H f . The function to be minimized can be equivalently written as g H f 2 in matrix-vector notation [23].
Since the color image can be represented by the elliptic quaternion matrix, the image restoration problem is transformed into the elliptic least squares problem of the elliptic quaternion matrix equation g E = H E f E . As a result, this subsection will present an image restoration model, referred to as ESVD-LSI, based on the singular-value decomposition theory of elliptic quaternion matrices.
In our simulation, Gaussian blur PSFs are employed. Gaussian blur is one of the most prevalent types of blurring that degrades images. It depends on two parameters: the kernel size (hsize) and the standard deviation sigma ( σ ) of the Gaussian function in MATLAB. The kernel size determines the dimensions of the pixel area considered during the application of the filter, while the sigma value dictates the amount of blurring; higher sigma values produce a more pronounced blurring effect. These parameters are utilized to simulate the effect of an out-of-focus image or to smooth fine details. The simulation steps are as follows:
  • Step 1: An experimental test image is acquired for the ESVD-LSI image restoration method.
  • Step 2: PSF is selected manually.
  • Step 3: The range of p and step size are selected.
  • Step 4: A degraded image is obtained.
In the backend coding, we denote the image matrix of the input image as f. In this case, the elliptic quaternion matrix representation matrix of f is f E = R E , i i + G E , j j + B E , k k . The image matrix R E , i was degraded with the 2-D Gaussian blur (hsize = 15, σ = 1) PSF H to obtain the degraded image matrix R E , i . Let H ( E ) = R E , i R E , i . In this case, with the help of H ( E ) , we obtain the elliptic quaternion representation of the degraded image in the form of g E = H ( E ) f E .
  • Step 5: According to Theorem 3, the least squares solution with the minimum norm of the elliptic quaternion matrix equation H ( E ) f E = g E is
f E = H E g E = V E Σ E U E * Q 2 , E ,
where H E = U E Σ E V E * .
  • Step 6: By using the step size and the range of p, the optimal p-value is obtained.
  • Step 7: Finally, the enhanced image is obtained by reverse sampling from the elliptic quaternion matrices, which will be obtained by choosing the optimal p-value that makes the least squares error the smallest for g ( E ) H ( E ) f ( E ) 2 .
For the results of the simulation system, the test images are degraded according to the instructions in Step 4 for 2-D Gaussian blur (hsize = 15 and σ = 1). The degraded images are shown in Figure 14.
After steps 5, 6, and 7, the restored test images according to optimal p-values are given in Figure 15.
The least squares errors of the QSVD-LSI and RBSVD-LSI restoration methods using the ESVD-LSI restoration method on the test images are provided in Table 6.

4.4. Color Image Watermarking with ESVD

Watermarking is a crucial technique in the field of digital image processing, used extensively for copyright protection, authentication, and data integrity verification. By embedding a watermark into a digital image, one can ensure the traceability and rightful ownership of the content. This technique finds applications in various domains, including media, healthcare, and secure communications. According to the algorithm in [24], we can give a similar algorithm for color image watermarking by using elliptic quaternion matrix algebra. The flowcharts in Figure 16 and Figure 17 illustrate the elliptical quaternion matrix-based color image watermark embedding and extraction procedures, respectively.
The watermark image sau.png in Figure 18b is embedded in the host image airplane.png via the function elliptic_q_embedding_watermarking() as represented in Listing 10
Listing 10. MATLAB console output of the functions image2elliptic() and elliptic_q_embedding_watermarking().
Axioms 13 00771 i010
With the parameters p = 0.5 and α = 0.05 . The watermarked image is as in Figure 18c. The PSNR and MSE values between the host and the watermarked images are 59.4340 and 1.1392 × 10 6 , respectively.
Figure 19 shows the MSE and PSNR values between the host image and a watermarked image corresponding to p-values given in the range of 1 p 0.001 with a step size of 0.001 ( α = 0.05 ). According to the graphs, the least MSE is 7.03352 × 10 7 , and the maximum PSNR is 61.5283 for the optimal p = 0.059 .
A comparison of the watermarking methods based on Separable, QSVD, RBSVD, and ESVD in terms of PSNR and MSE on test images are given in Table 7 and Table 8. The proposed method demonstrates better performance than the other approaches.
To evaluate the robustness of the proposed watermarking scheme, several attacks, including adding 2% Gaussian noise, cropping one-fourth of the upper-left area of the watermarked image, sharpening, and their sequential application, were performed. The robustness of the watermarking scheme was evaluated using the MSE between the extracted and original watermarks. Table 9 shows the results of the watermarked images for the test images after different attacks. From Table 9, it can be seen that the MSE error values are very small. This result demonstrates the robustness of the proposed scheme against attacks. The watermarks shown in Figure 20 were obtained from the test image airplane.png as a result of the attacks we considered.

5. Conclusions

In color image processing, conventional sparse matrix models employed for representing color images often neglect the interdependencies among the three distinct color channels RGB. Consequently, in numerous image processing tasks, these channels are either processed separately, or the image is converted to grayscale. Such an approach can significantly limit the effectiveness of various image processing techniques, particularly those that rely on the complex interactions of color data. In this study, we applied various color image processing techniques—including principal component analysis, image compression, image restoration, and watermarking—directly to color images represented in the elliptic quaternion algebra without decomposing them into separate RGB channels. These methods were integrated into the MATLAB toolbox developed for this purpose. Extensive experiments were conducted on image compression, reconstruction, image restoration, and watermarking. A comparative performance analysis between the proposed method and other hypercomplex-based compression techniques demonstrated that our method outperformed existing approaches. The experiments also revealed that the choice of the p-value in the algebra of elliptic quaternions directly affects the performance of the solution of the problem under consideration. Selecting an optimal p-value for problem-solving, combined with the elliptic characteristics exhibited by many physical systems, renders this number system advantageous in image processing and other applied fields. Therefore, integrating the elliptic quaternions system into the image processing process can effectively address various challenges related to computational time, memory usage, and overall performance in fields such as machine learning, convolutional neural networks, etc.
On the other hand, the optimal p-values for the problems considered were selected via a brute-force approach by searching in a specific range with a certain step size. It was observed that, in certain cases, the optimal p-values clustered at specific points. Investigating the underlying reasons for this clustering, elucidating the relationship between the optimal p-values and the problems discussed, and developing analytical methods for determining the optimal p-values are proposed as subjects for future research in this article.

Author Contributions

Conceptualization, H.H.K.; Formal analysis, E.K. and M.A.; H.H.K., E.K., and B.Ç. wrote the main manuscript text. All authors reviewed the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This paper was supported by the Scientific and Technological Research Institution of Türkiye (TUBITAK-1002-a-121F289).

Data Availability Statement

The original data presented in the study are openly available at https://github.com/hidayethuda/elliptic_quaternions_and_elliptic_numbers_toolbox, accessed on 22 August 2024.

Acknowledgments

This paper was supported by the Scientific and Technological Research Institution of Türkiye. We thank TÜBİTAK for their support. In addition, the authors would like to thank the anonymous referees for their helpful suggestions and comments, which significantly improved the presentation of the paper.

Conflicts of Interest

The authors declare no competing interests.

References

  1. Hamilton, W.R. On a new species of imaginary quantities, connected with the theory of quaternions. Proc. R. Ir. Acad. 1840, 2, 424–434. [Google Scholar]
  2. Adler, S. Quaternionic Quantum Mechanics and Quantum Fields; Oxford University Press: New York, NY, USA, 1995. [Google Scholar]
  3. Mukundan, R. Quaternions. Advanced Methods in Computer Graphics: With Examples in OpenGL; Springer-Verlag London Limited: London, UK, 2012. [Google Scholar]
  4. Ell, T.A.; Bihan, N.L.; Sangwine, S.J. Quaternion Fourier Transforms for Signal and Image Processing; Wiley: Hoboken, NJ, USA, 2014. [Google Scholar]
  5. Parcollet, T.; Morchid, M.; Linares, G. A survey of quaternion neural networks. Artif. Intell. Rev. 2020, 53, 2957–2982. [Google Scholar] [CrossRef]
  6. Sangwine, S.J.; Bihan, N.L. Quaternion Toolbox for Matlab. Available online: http://qtfm.sourceforge.net/ (accessed on 22 August 2024).
  7. Pei, S.C.; Chang, J.H.; Ding, J.J. Commutative Reduced Biquaternions and Their Fourier Transform for Signal and Image Processing Applications. IEEE Trans. Signal Process 2004, 52, 2012–2031. [Google Scholar] [CrossRef]
  8. Navarro-Moreno, J.; Fernández-Alcalá, R.M.; Ruiz-Molina, J.C. Proper ARMA Modeling and Forecasting in the Generalized Segre’s Quaternions Domain. Mathematics 2022, 10, 1083. [Google Scholar] [CrossRef]
  9. Catoni, F.; Cannata, R.; Zampetti, P. An introduction to commutative quaternions. Adv. Appl. Clifford Algebr. 2006, 16, 1–28. [Google Scholar] [CrossRef]
  10. Catoni, F.; Boccaletti, D.; Cannata, R.; Catoni, V.; Nichelatti, E.; Zampetti, P. The Mathematics of Minkowski Space–Time: With an Introduction to Commutative Hypercomplex Numbers; Birkhäuser: Basel, Switzerland, 2008. [Google Scholar]
  11. Yaglom, I.M. A Simple Non-Euclidean Geometry and Its Physical Basis; Springer: New York, NY, USA, 1979. [Google Scholar]
  12. Condurache, D.; Burlacu, A. Dual tensors based solutions for rigid body motion parameterization. Mech. Mach. Theory 2014, 74, 390–412. [Google Scholar] [CrossRef]
  13. Catoni, F.; Cannata, R.; Zampetti, P. An introduction to constant curvature spaces in the commutative (Segre) quaternion geometry. Adv. Appl. Clifford Algebr. 2006, 16, 85–101. [Google Scholar] [CrossRef]
  14. Gai, S. Theory of reduced biquaternion sparse representation and its applications. Expert Syst. Appl. 2023, 213, 119245. [Google Scholar] [CrossRef]
  15. Kosal, H.H.; Kisi, E.; Akyigit, M.; Celik, B. Elliptic Quaternion Matrices: Theory and Algorithms. Axioms 2024, 13, 656. [Google Scholar] [CrossRef]
  16. Gai, S.; Huang, X. Reduced biquaternion convolutional neural network for color image processing. IEEE Trans. Circuits Syst. Video Technol. 2022, 32, 1061–1075. [Google Scholar] [CrossRef]
  17. Kobayashi, M. Twin-multistate commutative quaternion Hopfield neural networks. Neurocomputing 2018, 320, 150–156. [Google Scholar] [CrossRef]
  18. Atali, G.; Kosal, H.H.; Pekyaman, M. A new image restoration model associated with special elliptic quaternionic least-squares solutions based on LabVIEW. J. Comput. Appl. Math. 2023, 425, 115071. [Google Scholar] [CrossRef]
  19. Harkin, A.A.; Harkin, J.B. Geometry of generalized complex numbers. Math. Mag. 2004, 77, 118–129. [Google Scholar] [CrossRef]
  20. Tosun, M.; Kösal, H.H. An Algorithm for Solving the Sylvester s-Conjugate Elliptic Quaternion Matrix Equations. In Algorithms as a Basis of Modern Applied Mathematics. Studies in Fuzziness and Soft Computing; Hošková-Mayerová, Š., Flaut, C., Maturo, F., Eds.; Springer: Cham, Switzerland, 2021; Volume 404. [Google Scholar]
  21. Chang, J.H.; Ding, J.J. Quaternion matrix singular value decomposition and its applications for color image processing. In Proceedings of the 2003 International Conference on Image Processing (Cat. No. 03CH37429), Barcelona, Spain, 14–17 September 2003; Volume 1, p. I-805. [Google Scholar]
  22. Pei, S.C.; Chang, J.H.; Ding, J.J.; Chen, M.Y. Eigenvalues and singular value decompositions of reduced biquaternion matrices. IEEE Trans. Circuits Syst. I Regul. Pap. 2008, 55, 2673–2685. [Google Scholar]
  23. Gunturk, B.K. Fundamental of image restoration. In Image Restoration Fundamentals and Advances; Gunturk, B.K., Li, X., Eds.; CRC Press: New York, NY, USA, 2013; pp. 25–61. [Google Scholar]
  24. Abd El-Samie, F.E. An efficient singular value decomposition algorithm for digital audio watermarking. Int. J. Speech Technol. 2009, 12, 27–45. [Google Scholar] [CrossRef]
Figure 1. The set of elliptic quaternions and the number sets it contains.
Figure 1. The set of elliptic quaternions and the number sets it contains.
Axioms 13 00771 g001
Figure 2. Minimum errors of least squares solution of the matrix equation Q ( E ) X ( E ) = P ( E ) according to p-values.
Figure 2. Minimum errors of least squares solution of the matrix equation Q ( E ) X ( E ) = P ( E ) according to p-values.
Axioms 13 00771 g002
Figure 3. Elliptic quaternion matrix representation of the color image airplane.png.
Figure 3. Elliptic quaternion matrix representation of the color image airplane.png.
Axioms 13 00771 g003
Figure 4. All experimental test images: (a) airplane.png ( 512   ×   512 ), (b) baboon.png ( 512   ×   512 ), (c) baby.png ( 512   ×   512 ), (d) Barbara.png ( 576   ×   720 ), (e) monarch.png ( 512   ×   768 ), and (f) peppers.png ( 512   ×   512 ).
Figure 4. All experimental test images: (a) airplane.png ( 512   ×   512 ), (b) baboon.png ( 512   ×   512 ), (c) baby.png ( 512   ×   512 ), (d) Barbara.png ( 576   ×   720 ), (e) monarch.png ( 512   ×   768 ), and (f) peppers.png ( 512   ×   512 ).
Axioms 13 00771 g004
Figure 5. The first eigenimage of the test image baby.png.
Figure 5. The first eigenimage of the test image baby.png.
Axioms 13 00771 g005
Figure 6. Third, tenth, and twenty-fifth eigenimages of the test image baby.png. (a) u 3 E v 3 E * . (b) u 10 E v 10 E * . (c) u 25 E v 25 E * .
Figure 6. Third, tenth, and twenty-fifth eigenimages of the test image baby.png. (a) u 3 E v 3 E * . (b) u 10 E v 10 E * . (c) u 25 E v 25 E * .
Axioms 13 00771 g006
Figure 7. Graphs of singular values of the test images airplane.png.
Figure 7. Graphs of singular values of the test images airplane.png.
Axioms 13 00771 g007
Figure 8. Graphs of singular values of test images: (a) baboon.png, (b) baby.png, (c) Barbara.png, (d) monarch.png, and (e) pepper.png.
Figure 8. Graphs of singular values of test images: (a) baboon.png, (b) baby.png, (c) Barbara.png, (d) monarch.png, and (e) pepper.png.
Axioms 13 00771 g008
Figure 9. Flowchart of image compression using ESVD.
Figure 9. Flowchart of image compression using ESVD.
Axioms 13 00771 g009
Figure 10. PSNR and MSE results of the reconstruction of the test image airplane.png for p   =   0.5 and K   =   50 : PSNR = 30.4527; MSE = 9.0100 ×  10 4 .
Figure 10. PSNR and MSE results of the reconstruction of the test image airplane.png for p   =   0.5 and K   =   50 : PSNR = 30.4527; MSE = 9.0100 ×  10 4 .
Axioms 13 00771 g010
Figure 11. Optimal p-values for PSNR and MSE for the test image aiplane.png.
Figure 11. Optimal p-values for PSNR and MSE for the test image aiplane.png.
Axioms 13 00771 g011
Figure 12. Run time comparison of the methods: Separable, QSVD, RBSVD, and ESVD (proposed method) on the test image airplane.png.
Figure 12. Run time comparison of the methods: Separable, QSVD, RBSVD, and ESVD (proposed method) on the test image airplane.png.
Axioms 13 00771 g012
Figure 13. Optimal p-values for the PSNR and MSE values of the test images: (a) baboon.png, (b) baby.png, (c) Barbara.png, (d) monarch.png, and (e) pepper.png.
Figure 13. Optimal p-values for the PSNR and MSE values of the test images: (a) baboon.png, (b) baby.png, (c) Barbara.png, (d) monarch.png, and (e) pepper.png.
Axioms 13 00771 g013
Figure 14. Degraded Images: (a) airplane.png, (b) baboon.png, (c) baby.png, (d) Barbara.png, (e) monarch.png, and (f) peppers.png.
Figure 14. Degraded Images: (a) airplane.png, (b) baboon.png, (c) baby.png, (d) Barbara.png, (e) monarch.png, and (f) peppers.png.
Axioms 13 00771 g014
Figure 15. Restored images: (a) airplane.png, (b) baboon.png, (c) baby.png, (d) Barbara.png, (e) monarch.png, and (f) peppers.png.
Figure 15. Restored images: (a) airplane.png, (b) baboon.png, (c) baby.png, (d) Barbara.png, (e) monarch.png, and (f) peppers.png.
Axioms 13 00771 g015
Figure 16. The flowchart of watermark embedding.
Figure 16. The flowchart of watermark embedding.
Axioms 13 00771 g016
Figure 17. The flowchart of watermark extracting.
Figure 17. The flowchart of watermark extracting.
Axioms 13 00771 g017
Figure 18. (a) Host image; (b) watermark image; (c) watermarked image.
Figure 18. (a) Host image; (b) watermark image; (c) watermarked image.
Axioms 13 00771 g018
Figure 19. Change in the MSE (a) and PSNR (b) values between the host image and a watermarked image according to p-values.
Figure 19. Change in the MSE (a) and PSNR (b) values between the host image and a watermarked image according to p-values.
Axioms 13 00771 g019
Figure 20. The extracted watermarks from the test image airplane.png: (a) Noise, (b) Cropping, (c) Noise + Cropping, (d) Sharpening, (e) Noise + Sharpening, and (f) Noise + Cropping + Sharpening.
Figure 20. The extracted watermarks from the test image airplane.png: (a) Noise, (b) Cropping, (c) Noise + Cropping, (d) Sharpening, (e) Noise + Sharpening, and (f) Noise + Cropping + Sharpening.
Axioms 13 00771 g020
Table 1. Key functions of the elliptic numbers.
Table 1. Key functions of the elliptic numbers.
Function NameDescription
ellipticcomplex2complexnumber( q ( e ) )Returns the complex number (or matrix) to which the elliptic number (or matrix) is isomorphic.
complexnumber2ellipticcomplex( p -value, complex)Returns the elliptic number (or matrix) to which the complex number (or matrix) is isomorphic.
elliptic_n_addition( q ( e ) , p ( e ) )Returns the sum of two elliptic numbers (or matrices).
elliptic_n_subtraction( q ( e ) , p ( e ) )Returns the difference of two elliptic numbers (or matrices).
elliptic_n_product( q ( e ) , p ( e ) )Returns the product of two elliptic numbers (or matrices).
elliptic_n_transpose( Q ( e ) )Returns the transpose of the elliptic matrix Q ( e ) .
elliptic_n_conjugate( Q ( e ) )Returns the conjugate of the elliptic matrix Q ( e ) .
elliptic_n_hermitianconjugate( Q ( e ) )Returns the Hermitian conjugate of the elliptic matrix Q ( e ) .
elliptic_n_eig( Q ( e ) )[ D ( e ) , V ( e ) ] = elliptic_n_eig( Q ( e ) ) returns diagonal matrix D ( e ) of eigenvalues and matrix V ( e ) whose columns are the corresponding eigenvectors, so that Q ( e ) V ( e ) = V ( e ) D ( e ) .
elliptic_n_svd( Q ( e ) )[ U e , S e , V e ] = elliptic_n_svd( Q ( e ) ) performs a singular-value decomposition of elliptic matrix Q ( e ) , such that Q ( e ) = U ( e ) S ( e ) V ( e ) * .
elliptic_n_pinv( Q ( e ) )Returns the pseudoinverse of the elliptic matrix Q ( e ) .
elliptic_n_rank( Q ( e ) )Returns the rank of the elliptic matrix Q ( e ) .
elliptic_n_lss( Q ( e ) , P ( e ) )Returns the least squares solution of the elliptic matrix equation Q ( e ) X ( e ) = P ( e ) and the least squares error.
Table 2. Key functions of the elliptic quaternions.
Table 2. Key functions of the elliptic quaternions.
Function NameDescription
e1e2form( q ( E ) )Returns the elliptic quaternion (or elliptic quaternion matrix) given in ijk-form in e 1 - e 2 form.
ijkform(e1_part,e2_part)Returns the elliptic quaternion (or elliptic quaternion matrix) given in e 1 - e 2 form in ijk form.
elliptic_q_conjugate_1( q ( E ) )Returns the 1st conjugate of the elliptic quaternion (or elliptic quaternion matrix).
elliptic_q_conjugate_2( q ( E ) )Returns the 2nd conjugate of the elliptic quaternion (or elliptic quaternion matrix).
elliptic_q_conjugate_3( q ( E ) )Returns the 3rd conjugate of the elliptic quaternion (or elliptic quaternion matrix).
elliptic_q_addition( q ( E ) , p ( E ) )Returns the sum of two elliptic quaternions (or elliptic quaternion matrices).
elliptic_q_subtraction( q ( E ) , p ( E ) )Returns the difference of two elliptic quaternions (or elliptic quaternion matrices).
elliptic_q_product( q ( E ) , p ( E ) )Returns the product of two elliptic quaternions (or elliptic quaternion matrices).
elliptic_q_scalar(lamda, q ( E ) )Returns the lambda scalar multiple of the elliptic quaternion (or elliptic quaternion matrix).
elliptic_q_norm( q ( E ) )Returns the norm of the elliptic quaternion (or elliptic quaternion matrix).
elliptic_q_transpose( Q ( E ) )Returns the transpose of the elliptic quaternion matrix.
elliptic_q_hermitianconjugate( Q ( E ) )Returns the conjugate transpose of the elliptic quaternion matrix.
elliptic_q_eig( Q ( E ) )[ D ( E ) , V ( E ) ] = elliptic_q_eig( Q ( E ) ) returns diagonal matrix D ( E ) of eigenvalues and matrix V ( E ) whose columns are the corresponding eigenvectors, so that Q ( E ) V ( E ) = V ( E ) D ( E ) .
elliptic_q_svd( Q ( E ) )[ U ( E ) , S ( E ) , V ( E ) ] = elliptic_q_svd( Q ( E ) ) performs a singular-value decomposition of elliptic quaternion matrix Q ( E ) , such that Q ( E ) = U ( E ) S ( E ) V ( E ) * .
elliptic_q_pseudoinverse( Q ( E ) )Returns the pseudoinverse of the elliptic quaternion matrix.
elliptic_q_lss( Q ( E ) , P ( E ) )Returns the least squares solution of the elliptic quaternion matrix equation Q ( E ) X ( E ) = P ( E ) and the least squares error.
elliptic_q_qrank( Q ( E ) )Returns the rank of the elliptic matrix.
Table 3. Key image processing functions in the toolbox.
Table 3. Key image processing functions in the toolbox.
Function NameDescription
image2elliptic_q(I, p -value)Returns the elliptic quaternion matrix representation of the image.
I (Type: uint8, array): The input image in RGB color space
p-value (Type: negative double)
elliptic_q2image( f ( E ) )Returns the RGB space representation of an image represented by an elliptical quaternion matrix.
f ( E ) (Type: Object): The elliptic quaternion matrix representation of the image.
elliptic_q_eigenimage( f ( E ) ,h)Returns the desired eigenimages of the image in the elliptic quaternion matrix space.
h (Type: integer): Specifies the index of the eigenimage to be computed.
elliptic_q_singularvalues( f ( E ) )It shows the change of singular values of the image in the elliptical quaternion matrix space.
elliptic_q_image_reconstruction( f ( E ) ,k)It compresses the image according to the desired k value in the elliptical quaternion matrix space.
k (Type: integer): The number of singular values to retain for the reconstruction.
elliptic_q_optimal_p_for_psnr( f ( E ) )Returns the optimal p (for psnr) value for image compression performed in elliptic quaternion matrix space.
elliptic_q_optimal_p_for_mse( f ( E ) )Returns the optimal p (for mse) value for image compression performed in elliptic quaternion matrix space.
elliptic_q_embedding_watermarking( f ( E ) , g ( E ) ,alpha)The embedding_elliptic_watermarking function embeds a watermark into an object using elliptic quaternion matrix algebra.
f ( E ) (Type: Object): The primary object to be watermarked.
g ( E ) (Type: Object): The watermark object to be embedded.
alpha (Type: Double): The embedding strength parameter.
elliptic_q_extraction_watermarking( f ( E ) , g ( E ) ,U_w,V_w,alpha)The extraction_elliptic_watermarking function extracts a watermark from a watermarked object using the elliptic quaternion matrix algebra.
f ( E ) (Type: Object): The watermarked object from which the watermark is to be extracted.
g ( E ) (Type: Object): The original, unwatermarked object.
U_w (Type: Object): The U component of the watermark’s singular-value decomposition.
V_w (Type: Object): The V component of the watermark’s singular-value decomposition.
elliptic_q_watermarking_optimal_p_for_psnr( f ( E ) , g ( E ) ,alpha)Finds the optimal p (for psnr) for watermarking using the elliptic quaternion matrix algebra
f ( E ) (Type: Object): The primary object to be watermarked.
g ( E ) (Type: Object): The watermark object to be embedded.
elliptic_q_watermarking_optimal_p_for_mse( f ( E ) , g ( E ) ,alpha)Finds the optimal p (for mse) for watermarking using the elliptic quaternion matrix algebra.
f ( E ) (Type: Object): The primary object to be watermarked.
g ( E ) (Type: Object): The watermark object to be embedded.
Table 4. Compression results (PSNR) of Separable, QSVD, RBSVD, and ESVD (proposed method) methods on the test images.
Table 4. Compression results (PSNR) of Separable, QSVD, RBSVD, and ESVD (proposed method) methods on the test images.
MethodsKairplane.pngbaboon.pngbaby.pngBarbara.pngmonarch.pngpeppers.png
Seperable1022.4762619.2236523.9780720.1788919.4739221.49341
QSVD1022.459319.234523.961320.197719.492521.4130
RBSVD1022.500919.312924.004320.246919.56121.4875
ESVD (Proposed Method)1022.5705 ( p = 4.6 )19.3139 ( p = 1.2 )24.0406 ( p = 3.2 )20.2534 ( p = 1.4 )19.5665 ( p = 1.4 )21.5484 ( p = 1.8 )
Seperable5030.5326422.3607232.1864225.4795427.1735629.93859
QSVD5030.501222.365032.203625.524927.181829.9245
RBSVD5030.545622.50432.274825.634827.281430.0184
ESVD (Proposed Method)5030.6426 ( p = 4.5 )22.5321 ( p = 1.7 )32.3295 ( p = 3 )25.6730 ( p = 2.4 )27.2899 ( p = 1.5 )30.0510 ( p = 1.5 )
Seperable9035.2927824.8710936.6784828.7395431.5959733.3296
QSVD9035.271224.885036.716428.775231.612733.3777
RBSVD9035.338625.046436.803428.911931.721933.4616
ESVD (Proposed Method)9035.4537 ( p = 3.8 )25.0826 ( p = 1.7 )36.8688 ( p = 2.9 )28.9695 ( p = 2.8 )31.7322 ( p = 1.6 )33.4848 ( p = 1.5 )
Seperable13038.9728927.2522940.3034431.851935.2691835.70147
QSVD13038.962127.287740.357431.891035.317035.8012
RBSVD13039.057627.481740.452432.046735.410935.891
ESVD (Proposed Method)13039.1724 ( p = 2.9 )27.5193 ( p = 1.6 )40.5347 ( p = 4.7 )32.1148 ( p = 2.5 )35.4245 ( p = 1.6 )35.9194 ( p = 1.4 )
Table 5. Compression results (MSE) of Separable, QSVD, RBSVD, and ESVD (proposed method) methods on the test images.
Table 5. Compression results (MSE) of Separable, QSVD, RBSVD, and ESVD (proposed method) methods on the test images.
MethodsKairplane.pngbaboon.pngbaby.pngBarbara.pngmonarch.pngpeppers.png
Seperable100.005650.011960.0040.00960.011290.00709
QSVD100.00570.01190.00400.00960.01120.0072
RBSVD100.00560.0117140.0040.009440.01110.0071
ESVD (Proposed Method)100.00553 ( p = 4.6 )0.011711 ( p = 1.2 )0.00394 ( p = 3.2 )0.00943 ( p = 1.4 )0.01104 ( p = 1.4 )0.00700 ( p = 1.8 )
Seperable500.000880.005810.00060.002830.001920.00101
QSVD500.000890.00580.0006020.00280.00190.0010
RBSVD500.000880.00560.000590.002730.00190.00099
ESVD (Proposed Method)500.00086 ( p = 4.5 )0.0055 ( p = 1.7 )0.00058 ( p = 3 )0.00270 ( p = 2.4 )0.00186 ( p = 1.5 )0.00098 ( p = 1.5 )
Seperable900.00030.003260.000210.001340.000690.00046
QSVD900.0002970.00320.0002120.00130.000680.000459
RBSVD900.000290.003120.0002080.00130.0006720.00045
ESVD (Proposed Method)900.00028 ( p = 3.8 )0.00310 ( p = 1.7 )0.000205 ( p = 2.9 )0.00126 ( p = 2.8 )0.000671 ( p = 1.6 )0.00044 ( p = 1.5 )
Seperable1300.000130.001880.000090.000650.00030.0003
QSVD1300.0001270.00190.0000920.000640.0002930.00026
RBSVD1300.0001240.00180.000090.000620.0002870.000257
ESVD (Proposed Method)1300.00012 ( p = 2.9 )0.0017 ( p = 1.6 )0.00008 ( p = 4.7 )0.00061 ( p = 2.5 )0.000286 ( p = 1.6 )0.000256 ( p = 1.4 )
Table 6. Comparison of the least squares errors of QSVD-LSI, RBSVD-LSI, and ESVD-LSI (proposed method) on test images.
Table 6. Comparison of the least squares errors of QSVD-LSI, RBSVD-LSI, and ESVD-LSI (proposed method) on test images.
Methodsairplane.pngbaboon.pngbaby.pngBarbara.pngmonarch.pngpeppers.png
QSVD-LSI 4.1089   ×   10 8 5.6875   ×   10 8 8.9857   ×   10 6 5.5693   ×   10 10 1.7255   ×   10 10 1.1666   ×   10 8
RBSVD-LSI 4.1351   ×   10 8 4.4554   ×   10 8 8.6843   ×   10 6 6.6432   ×   10 10 1.4722   ×   10 10 8.7254   ×   10 9
ESVD-LSI (Proposed Method) 2.9479   ×   10 8 2.9227   ×   10 8 5.6462   ×   10 6 4.0293   ×   10 16 8.3596   ×   10 11 6.2201   ×   10 9
Table 7. PSNR comparison for the watermarking methods based on Separable, QSVD, RBSVD, and ESVD on the test images.
Table 7. PSNR comparison for the watermarking methods based on Separable, QSVD, RBSVD, and ESVD on the test images.
Methods α airplane.pngbaboon.pngbaby.pngBarbara.pngmonarch.pngpeppers.png
Seperable0.0556.955662.357256.509459.557258.640757.7683
QSVD0.0558.375965.228057.486960.865659.397359.7142
RBSVD0.0558.398964.882157.388160.683659.275659.7100
ESVD
(Proposed Method)
0.0561.5283
optimal p = 0.059
66.2703
optimal p = 0.199
58.9558
optimal p = 0.075
61.5525
optimal p = 0.093
60.9556
optimal p = 0.099
61.8606
optimal
p = 0.116
Table 8. MSE comparison for the watermarking methods based on Separable, QSVD, RBSVD, and ESVD on the test images.
Table 8. MSE comparison for the watermarking methods based on Separable, QSVD, RBSVD, and ESVD on the test images.
Methods α airplane.pngbaboon.pngbaby.pngBarbara.pngmonarch.pngpeppers.png
Separable0.05 2.0158   ×   10 6 5.8114   ×   10 7 2.2339   ×   10 6 1.1073   ×   10 6 1.3675   ×   10 6 1.6717   ×   10 6
QSVD0.05 1.4534   ×   10 6 3.0005   ×   10 7 1.7836   ×   10 6 8.1929   ×   10 7 1.1488   ×   10 6 1.0680   ×   10 6
RBSVD0.05 1.4458   ×   10 6 3.2493   ×   10 7 1.8247   ×   10 6 8.5435   ×   10 7 1.1815   ×   10 6 1.0691   ×   10 6
ESVD
(Proposed Method)
0.05 7.0335   ×   10 7
optimal p = 0.059
2.3603   ×   10 7
optimal p = 0.199
1.2718   ×   10 6
optimal p = 0.075
6.9945   ×   10 7
optimal p = 0.093
8.0249   ×   10 7
optimal p = 0.099
6.5154   ×   10 7
optimal p = 0.116
Table 9. Results of the MSE of the extracted watermark after different attacks.
Table 9. Results of the MSE of the extracted watermark after different attacks.
Test Images α Noise 2% GaussianCropping 25%Noise + CroppingSharpeningNoise + SharpeningNoise + Cropping + Sharpening
airplane.png0.50.01420.00100.00860.00070.03960.0250
baby.png0.50.00270.00170.00220.00180.01230.0071
baboon.png0.50.01670.00050.00990.00060.04480.0281
Barbara.png0.50.01040.00150.00720.00150.03130.0202
monarch.png0.50.01310.00100.00770.00090.03540.0214
peppers.png0.50.00880.00170.00660.00050.02560.0174
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

Kösal, H.H.; Kişi, E.; Akyiğit, M.; Çelik, B. Elliptic Quaternion Matrices: A MATLAB Toolbox and Applications for Image Processing. Axioms 2024, 13, 771. https://doi.org/10.3390/axioms13110771

AMA Style

Kösal HH, Kişi E, Akyiğit M, Çelik B. Elliptic Quaternion Matrices: A MATLAB Toolbox and Applications for Image Processing. Axioms. 2024; 13(11):771. https://doi.org/10.3390/axioms13110771

Chicago/Turabian Style

Kösal, Hidayet Hüda, Emre Kişi, Mahmut Akyiğit, and Beyza Çelik. 2024. "Elliptic Quaternion Matrices: A MATLAB Toolbox and Applications for Image Processing" Axioms 13, no. 11: 771. https://doi.org/10.3390/axioms13110771

APA Style

Kösal, H. H., Kişi, E., Akyiğit, M., & Çelik, B. (2024). Elliptic Quaternion Matrices: A MATLAB Toolbox and Applications for Image Processing. Axioms, 13(11), 771. https://doi.org/10.3390/axioms13110771

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