Preprint
Article

This version is not peer-reviewed.

Commutative Quaternion Algebra with Quaternion Fourier Transform-Based Alpha-Rooting Color Image Enhancement

Submitted:

04 January 2025

Posted:

06 January 2025

You are already at the latest version

Abstract
The alpha-rooting method in the quaternion space is one of the most effective methods of color image enhancement. Quaternions allow all colors in each pixel to be processed as a whole, rather than individually as is done in traditional processing methods. In this paper, we describe the color image enhancement alpha-rooting which is based on the 2D quaternion discrete Fourier transform (QDFT) in the associative and commutative algebra, or the (2,2)-model. It is the model, where the aperiodic convolution of quaternion signals can be calculated by the product of their Fourier transforms. The concept of linear convolution is simple, that is, it is unique, and the reduction of this operation to the multiplication in the frequency domain makes this model very attractive for processing color images. In the traditional quaternion algebra, which is not commutative, the convolution can be chosen in many different ways, and the number of possible QDFTs is infinite. And most importantly, the main property of the traditional Fourier transform that states that the aperiodic convolution is the product of transform in the frequency domain is not valid. We describe the main property of the (2,2)-model of quaternions, the quaternion exponential functions and convolution. Three methods of the alpha-rooting based on the 2D QDFT are presented and illustrative examples on color image enhancement are given.
Keywords: 
;  ;  ;  ;  

1. Introduction

In recent years, many articles have been published in color image processing, wherein image enhancement plays important role. Many color images have low quality and require enhancement as the first stage of processing images. [1,2,3,4,5]. Examples of such images can be found among underwater images, thermal images, and medical images. If decades ago, we divided methods of image enhancement into 2 classes, namely methods in the spatial and the traditional, or complex, frequency-domains, now a new class has been added to them. Here we mention methods of image enhancement in the quaternion algebras. Color and grayscale images can be processed in the quaternion space with good results not only in image enhancement, but in filtration, face recognition, neural networks and other applications. The first class of methods includes the very effective and simple histogram equalization with its different modifications [6,7,8,9,10]. The Retinex algorithm can also be classified into this class [11,12]. In the second class, we should note the Fourier transform-based alpha-rooting [13], which is the most effective method for enhancing grayscale and color images. Advantage of enhancing color images in the quaternion space is in the fact that the primary colors plus the gray are processed as one unit, not separately. Therefore, quaternion image processing does not introduce false color artifacts [14].
In this paper, we focus on the commutative quaternion algebra, or the (2,2)-model. In this model the concepts of the 1D and 2D QDFT are considered and their properties are described. This model of quaternion is used the color image enhancement alpha-rooting by the 2D QDFT. The comparison with the traditional quaternion algebra is also given.
The main contributions of this work are the following:
  • The separable alpha-rooting method of color image enhancement;
  • New two parameter alpha-rooting methods of color image enhancement;
  • Effectiveness of using the 2D QDFT-based alpha-rooting in the (2,2)-model;
  • Illustrative examples shown the effectiveness of using the (2,2)-model in color image enhancement.
The rest of the paper is organized in the following way. Section 2 describes two models of quaternions, namely, the (2,2)- and (1,3)-models. The first model is commutative and the second one is not. Section 3 describes the exponential functions the (2,2)-model. The concepts of the QDFTs are considered in Section 4, for both models. The methods of alpha-rooting in these models are described in Section 5. The comparison of the 2D QDFT-based alpha-rooting methods in the (2,2)- and (1,3)-models are given. Results and illustrative examples on color image are presented in Section 6.

2. Quaternion Numbers: Two Arithmetics

In this section, we describe quaternion numbers in two algebras, non-commutative and commutative. The concept of the quaternion, or quadruple of numbers a , b , c , d , as a vector in the 4-dimensional (4D) space was introduced by Gauss in 1819 [15]. As complex numbers, quaternions have one real part and one imaginary part. Only the imaginary part presents a triplet of numbers, or a 3D vector. Therefore, quaternions can be considered as extension of complex numbers [16,17,18]. It is not possible for us to draw quaternions in 4D space, but we will show how such numbers can be embedded in geometric figures in 3D space. There are different types of arithmetic of quadruple of numbers, or quaternions, because they define the main operation - multiplication - differently. We consider two arithmetics, or models, in which the operation of multiplication is commutative and non-commutative. The second arithmetic attracted much attention from researchers in the field of signal and image processing. However, the fact that the multiplication of quaternions is a not-commutative operation leads to large uncertainties in such important operations as the convolution, correlation and Fourier transform, especially in processing color images. Therefore, we think it is necessary to pay more attention to the commutative operation of multiplication of quaternions and the corresponding arithmetic, or the commutative algebra of quaternions.

2.1. The (1,3) – Model of Quaternions

Consider three units i , j , and k with the following multiplication laws:
i j = j i = k , j k = k j = i , k i = i k = j , i 2 = j 2 = k 2 = i j k = 1 .
A quaternion is defined as the number q = a + b i + c j + d k with real numbers a , b , c , and d . The number q ' = b i + c j + d k is the imaginary part q ' of the quaternion and can be considered as the vector ( a , b , c ) in the 3D space. Therefore, we can write q = a + q ' = a + b i + c j + d k . This model of representation of quaternions as q = ( a , q ' ) is called the (1,3)-model [14]. A quaternion has one real part, a , and the 3-component imaginary part, q ' . If the imaginary part a = 0 , then the quaternion is called a pure quaternion number. If c = d = 0 , the quaternion q = a + b i is a complex number. Similar to the complex numbers, the conjugate of the quaternion q is defined as q ¯ = ( a , q ' ) , or q ¯ = a q ' = a b i c j d k .
The multiplication of two quaternions q 1 = a 1 + q 1 ' = a 1 + i b 1 + j c 1 + k d 1 and q 2 = a 2 + q 2 ' = a 2 + i b 2 + j c 2 + k d 2 is defined according to the laws in Eq. 1. Thus, the quaternion q = q 1 q 2 = a + q ' is calculated by
a = a 1 a 2 b 1 b 2 + c 1 c 2 + d 1 d 2 , and q ' = [ a 1 q 2 ' + a 2 q 1 ' ] + i j k b 1 c 1 d 1 b 2 c 2 d 2 .
Important to note, that the number q q ¯ is real and non-negative, q q ¯ = a 2 + ( b 2 + c 2 + d 2 ) ; it is denoted by q 1 2 . The number q 1 is called the length of the quaternion.
The sum of quaternions is calculated component-wise, q 1 + q 2 = ( a 1 + a 2 ) + ( q 1 ' + q 2 ' ). In multiplication of imaginary units, i j j i , j k k j , and i k k i . The multiplication in the (1,3)-model is not commutative. That is, for different q 1 and q 2 , the product q 1 q 2 q 2 q 1 or q 1 q 2 = q 2 q 1 .
Considering the quaternions q 1 and q 2 as the 4D vectors, q 1 = ( a 1 , b 1 , c 1 , d 1 ) ' and q 2 = ( a 2 , b 2 , c 2 , d 2 ) ' , the above operation of multiplication can be written in the matrix form as follows:
q = A 1 a 2 b 2 c 2 d 2 = a 1 b 1 c 1 d 1 b 1 a 1 d 1 c 1 c 1 d 1 a 1 b 1 d 1 c 1   b 1   a 1 a 2 b 2 c 2 d 2 .
The determinant of the matrix equals to q 1 4 = a 1 2 + b 1 2 + c 1 2 + d 1 2 2 . For the case when q 1 = 1 , the matrix A 1 is unitary and its determinant det A 1 = 1 . The coefficients of this matrix are components of the quaternion q 1 . The first column of the matrix is the quaternion q 1 . A similar matrix of multiplication can be defined by the components of the quaternion q 2 (for detail see [14]).
Unlike the traditional arithmetic, where the exponential function is defined uniquely, in the (1,3)-model the number of such functions is infinite. Given a pure unit quaternion μ = i m 1 + j m 2 + k m 3 , μ = 1 ,   μ 2 = 1 , the quaternion exponential function at the angle x is defined as e μ x = cos x + μ sin x . In the next sections, we will discuss the concept of the quaternion discrete Fourier transforms, which are different analogues of the traditional DFT. This transform is defined by the system of basis functions which are calculated by the single complex exponential function e i x . In the (1,3)-model, we are faced with the problem of which exponential function to use as the base function for the QDFT. In other words, if in the traditional representation each signal or image has the unique representation in the frequency domain, in the (1,3)-model, there are an infinite number of such representations. How to choose, namely which a quaternion number μ is best for the QDFT, is unknown today. And it is this model that has been widely used in the last two decades in many applications in signal and image processing [14,19,20,21].

2.2. The (2,2)-Model of Quaternions

In this section, we consider the arithmetic of quaternions with the associative and commutative operation of multiplication introduced by Grigoryan in 2022 [22]. This is so-called the (2,2)-model of representation of quaternions.
In the (2,2)-model, the complex arithmetic is used in the following way. Given two complex numbers a 1 and a 2 , the quaternion q is considered to be a pair of them and is written as
q = [ a 1 , a 2 ] , a 1 = ( a 1,1 , a 1,2 ) , a 2 = ( a 2,1 , a 2,2 ) .
Here, the numbers a 1,1 , a 1,2 , a 2,1 , and a 2,2 are real. We use the round brackets for 2D vectors a 1 and a 2 which represent the complex numbers ( a 1,1 + i a 1,2 ) and ( a 2,1 + i a 2,2 ) , respectively. In this model, the quaternion is a pair of two complex numbers, or the pair of two 2-D vectors.
The quaternions include the complex and real numbers. Indeed, a quaternion q = [ a 1 , 0 ] is a complex number. If a complex number a 1 = ( a 1,1 , 0 ) , that is, a 1 is real, then q = a 1 , 0 = ( a 1,1 , 0 , ( 0,0 ) ] is a real number. We call the quaternion numbers q = [ 0 , a 2 ]  the second complex numbers. Only complex numbers are used with the traditional unit i . The conjugate of the quaternion q is the quaternion q ¯ = a ¯ 1 , a ¯ 2 = [ a 1,1 , a 1,2 , a 2,1 , a 2,2 ] . One can see that the conjugates of the unit quaternions are e ¯ 2 = e 2 , e ¯ 3 = e 3 , and e ¯ 4 = e 4 . The second conjugate q ̿ = q . The operation of sum of two quaternions q 1 = [ a 1 , a 2 ] and q 2 = [ b 1 , b 2 ] is defined component-wise. That is, the sum q = q 1 + q 2 = a 1 + b 1 , a 2 + b 2 . The multiplication of quaternions q 1 and q 2 is defined by
q = q 1 q 2 = [ a 1 , a 2 ] [ b 1 , b 2 ] [ a 1 b 1 a 2 b 2 , a 1 b 2 + a 2 b 1 ] .
Here, the complex numbers are written as a 1 = a 1,1 , a 1,2 , a 2 = a 2,1 , a 2,2 ,   b 1 = ( b 1,1 , b 1,2 ) , and b 2 = b 2,1 , b 2,2 . It should be noted that the similar operation over 4D elements was described by Clyde Davenport [23]; the multiplication was defined by using the complex conjugates as
q = q 1 q 2 [ a 1 b 1 a 2 b ¯ 2 , a 1 b 2 + a 2 b ¯ 1 ] .
It directly follows from Eq. 5, that if the quaternions are complex numbers, q 1 = a 1 , 0 = a 1 and q 2 = b 1 , 0 = b 1 , then the multiplication q = q 1 q 2 is the multiplication of complex numbers, that is,
q = q 1 q 2 = [ a 1 , 0 ] [ b 1 , 0 ] = [ a 1 b 1 , 0 ] = a 1 b 1 .
The operation of multiplication in Eq. 5 can also be written in the matrix form. For this, we consider the quaternions as 4-D vectors q 1 = a 1,1 , a 1,2 ,   a 2,1 , a 2,2 ' and q 2 = b 1,1 , b 1,2 ,   b 2,1 , b 2,2 ' . In the matrix form, the product q = q 1 q 2 can be written as
q = q 1,1 q 1,2 q 2,1 q 2,2 = M 1 b 1,1 b 1,2 b 2,1 b 2,2 = a 1,1 a 1,2 a 2,1 a 2,2 a 1,2 a 1,1 a 2,2 a 2,1 a 2,1 a 2,2 a 1,1 a 1,2 a 2,2 a 2,1 a 1,2 a 1,1 b 1,1 b 1,2 b 2,1 b 2,2 .
As in the matrix A 1 in the (1,3)-model, the first column of the matrix M 1 is the quaternion q 1 . This matrix has a block structure, that is,
M 1 = A B B A , A = a 1,1 a 1,2 a 1,2 a 1,1 , B = a 2,1 a 2,2 a 2,2 a 2,1 .
Here, the matrices A and B are matrices of multiplication of complex numbers a 1 and a 2 , respectively. The matrix A 1 also has the same block structure, but it is orthogonal, and the matrix M 1 is not orthogonal.
To compare visually these two algebras, namely the operations of multiplication, we consider the following representation of quadruples of numbers in the 3D space. We call this representation the 4-in-3 representation. Any 4D vector is possible to represent in the form of four triplets, as follows:
q = a , b , c , d a , b , c , b , c , d , c , d , a , d , a , b .
The geometry of these four coordinates can be described by the quadrangular pyramid. It is clear that not every pyramid can have such a quaternion representation. Therefore, we will call such pyramids the quaternion-pyramids (QP). As example, Figure 1 shows the quaternion pyramid, Q P ( q ) , for the quatrenion q = ( 1 , 2,8 , 5 ) in part (a) and the pyramid Q P ( q ¯ ) , for the conjugate quatrenion q ¯ = 1,2 , 8 , 5 , in part (b), and the conjugate quaternion q ¯ = ( 1,2 , 8 , 5 ) in the (2,2)-model in part (c). The first point (the vertex) of each pyramid is marked as an asterisk ,’*’. The vertex of the pyramid should be considered, that is, the Q P ( q ) is the pyramyd with the top point v = ( a , b , c ) . Therefore, we consider that Q P q = Q P ( q ; v ) . Otherwise, we need to introduce concepts of equivalent pyramids. For instance, the figures of pyramids for four quaternion units, 1 = 1,0 , 0,0 , i = 0,1 , 0,0 , j = ( 0,0 , 1,0 ) , and k = 0,0 , 0,1 , are the same. Such a vertex can also be considered the point ( b , c , d ) , which corresponds to the imaginary part of the quaternion, q ' = b i + c j + d k . Quaternion-pyramids can be added, subtracted, multiplied, and divided, and the inverse pyramids exist. In other words, the set of all quaternion-pyramids is the space with the complete arithmetic, as the quaternions.
Figure 2 shows the following four pyramids. Two quaternions are considered, q 1 = ( 1,2 , 8,4 ) / 85 and q 2 = ( 2,1 , 1,2 ) / 10 . The figure shows two pyramids Q P q 1 and Q P q 2 together with two pyramids for the quaternion multiplications q = q 1 q 2 . The first pyramid Q P ( q ) is calculated in the non-commutative (1,3)-model, g = q 2 ( A q 1 ) ' = 4 , 23 , 23,4 / 850   , and another Q P ( p ) in the commutative (2,2)-model, p = q 2 ( M q 1 ) ' = 20,9 , 15 , 12 / 850 .
The following properties hold for the multiplication.
  • The multiplication is commutative, q 1 q 2 = q 2 q 1 .
  • The multiplication unit is the quaternion e 1 = 1,0 , 0,0 = 1,0 = 1 . For this real unit e 1 q = q e 1 = q for any quaternion q .
  • The multiplication rules of four quaternion units e 1 , e 2 = 0,1 , 0,0 , e 3 = 0,0 , 1,0 , and e 4 = 0,0 , 0,1 are given in Table 1. It should be noted that for two quaternion units e 2 and e 3 , the square is e 1 = 1 . For other two units e 1 and e 4 , the square is e 1 = 1 .
  • The multiplication is associative, that is, ( q 1 q 2 ) q 3 = q 1 ( q 2 q 3 ) , for any quaternions q 1 , q 2 , and q 3 .
  • The multiplication is distributive, that is, q 1 q 2 + q 3 = q 1 q 2 + q 1 q 3 .
  • The zero quaternion q = 0 has “divisors.” For instance, the multiplication of two quaternions q 1 = 1 + e 4 and q 2 = 1 e 4 is equal to q 1 q 2 = 1 e 4 2 = 0 .
  • The inverse to the non-zero quaternion q 1 = a 1 , a 2 is calculated by
    q 1 1 = a 1 a 1 2 + a 2 2 , a 2 a 1 2 + a 2 2 = 1 a 1 2 + a 2 2 a 1 , a 2 , i f a 1 2 + a 2 2 0 .
  • The inverse operation exists for all q , except the quaternions of the form q = a 1 1 ± e 4 . For quaternion exponential numbers the inverse exist. As mentioned in [24], the absence of some inverse numbers is not an obstacle to use of quaternions in processing signals and color images.
  • The division q = q 2 / q 1 of quaternions q 2 = [ b 1 , b 2 ] and q 1 = [ a 1 , a 2 ] is calculated by q q 2 q 1 1 .
  • The multiplication of a quaternion q on its conjugate q ¯ is equal to the following quaternion:
    q q ¯ = [ a 1 , a 2 ] a ¯ 1 , a ¯ 2 = a 1 2 a 2 2 , 2 a 1 · a 2  
  • In the general case, q q ¯ is not a real number and cannot be used to define the modulus of the quaternion in the traditional sense. For example, e 4 e 4 ¯ = e 4 e 4 = e 4 e 4 = 1 .
  • The length, or modulus, of the quaternion is defined as q = E q , where the energy of the quaternion number q is calculated by
    E q = E a 1 + E a 2 = a 1 2 + a 2 2 = | a 1,1 | 2 + | a 1,2 | 2 + | a 2,1 | 2 + | a 2,1 | 2 .
Table 2 shows the main properties of quaternion numbers in the (1,3)- and (2,2)-models.

3. The Quaternion Exponents in the (2,2)-Model

In this section, we describe the exponential functions in the (2,2)-model. For two pairs of quaternions μ = ± e 3 and ± e 2 , the square μ 2 = 1 . There are only two pairs of quaternions with the square equal to 1 . For each of these quaternions, the exponential function is defined by the following series [22]:
e μ φ = 1 + μ φ + μ φ 2 2 ! + μ φ 3 3 ! + μ φ 4 4 ! + μ φ 5 5 ! + + μ φ n n ! + = 1 φ 2 2 ! + φ 4 4 ! φ 6 6 ! + + μ φ φ 3 3 ! + φ 5 5 ! φ 7 7 ! + = cos φ + μ sin φ .
Thus, there are four different exponential functions, or we can say two pair of quaternion exponential functions. The fundamental multiplicative property holds for these exponents, that is,
exp μ φ + ϑ = exp μ φ exp μ ϑ
Now, we consider these two pairs of quaternion exponents.
1. The first pair of exponents is defined for the conjugate quaternions μ = ± e 2 = 0 , ± 1 , 0,0 . The quaternion exponents are the following conjugate functions:
e μ φ = cos φ ± e 2 sin φ = cos φ , ± sin φ , 0 = cos φ , ± sin φ .
In the matrix from, the multiplication of a quaternion q = [ a 1 , a 2 ] by the exponent q 1 = e μ φ is described as follows:
q q 1 = q e μ φ = cos φ , ± sin φ q = c s 0 0 s c 0 0 0 0 c s 0 0 s c q = R φ 0 0 R φ q .
Here, we denote c = cos φ and s = ± sin φ . With the operation of the Kronecker product of matrices, the above matrix of multiplication can be written as A q 1 = I 2 R φ . The matrix R φ is the matrix of elementary rotation by the angle ± φ . Thus, the operation q e μ φ is reduced to separate rotations of two components of the quaternion, a 1 and a 2 , by the same angle.
2. The second pair of exponents is defined by the quaternion μ = ± e 3 = 0,0 , ± 1,0 . The corresponding pair of quaternion exponential functions is
e μ φ = exp ( μ φ ) = cos φ ± e 3 sin φ = cos φ , 0 , ± sin φ , 0 .
These two exponential functions are not conjugate, but inverse to each other. The inverse of the exponent is ( e μ φ ) 1 = [ cos φ , 0 , ( sin φ , 0 ) ] = e μ φ . In the matrix form, the multiplication of the exponent q 1 = e μ φ by a quaternion q can be written as follows:
q q 1 = q 1 q = e μ φ q = c 0 s 0 0 c 0 s s 0 c 0 0 s 0 c q .
The matrix of the multiplication is the tensor product of the rotation matrix and the identity matrix, A q 1 = R φ I 2 .
It should be noted that if we consider the symmetric matrix P ( 1,2 ) of the permutation (1,2), then the above two pairs of quaternion exponents can be derived from each as
cos φ , 0 , ± sin φ , 0 = [ cos φ , ± sin φ , 0,0 ] 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 .

4. Quaternion Discrete Fourier Transforms

In this section, we consider the concept of the quaternion discrete Fourier transform (QDFT) in the (1,3)- and (2,2)-models. In the first model, the N -point QDFT of the quaternion signal q = { q n ; n = 0 : ( N 1 ) } is defined by
Q p = n = 0 N 1 q n W μ n p = n = 0 N 1 q n cos 2 π N n p μ sin 2 π N n p , p = 0 : N 1 .
Here, μ is a pure quaternion unit number, such that μ 2 = 1 ,   μ = 1 . As mentioned above, the number of such quaternion is infinite. For instance, this number can be taken as μ = i , j , k , and ( i ±   j ±   k ) / 3 . The multiplication is not commutative, therefore this QDFT is the left-sided transform. The right-sided QDFT is defined as the sum of W μ n p q n . The inverse N -point QDFT is calculated by
q n = 1 N p = 0 N 1 Q p W μ n p = 1 N p = 0 N 1 Q p cos 2 π N n p + μ sin 2 π N n p , n = 0 : N 1 .
The fast algorithms to calculate the QDFT exist for both types of the transform in the 1D and 2D cases. For 2D signals, the QDFT can be defined as the right, left, or both sided transform [14,24]. These transforms do not have one of the basic properties of the traditional Fourier transform, namely, the cyclic convolution of signals is not reduced to operation of multiplication in the frequency domain. In the 1D case, the cyclic convolution of two periodic quaternion signals q n = f n , g n and h n = h 1 , n , h 2 , n is defined as
y n = q n h n = k = 0 N 1 q n k h k , n = 0 : N 1 .
Here, we need to consider that q n h n h n q n , because the products q n k h k h k q n k . Thus, in the (1,3)-model, two different linear convolutions can be used.
Now, we consider these concepts in the (2,2)-model with two pairs of quaternion exponential functions, namely e μ φ , when μ = ± e 2 and ±   e 3 . Each pair of these functions is used for the direct and inverse QDFTs. Thus, in the (2,2)-model there are only two pairs of the direct and inverse QDFTs. The (2,2)-model is commutative, therefore, the transform of the N -point quaternion signal [ f n , g n ] is defined as
Q p = n = 0 N 1 q n W μ n p = n = 0 N 1 W μ n p q n , W μ = e x p μ 2 π N e μ 2 π N .
Two different N -point QDFT are described in the following way.
  • When the quaternion μ is e 2 = ( 0,1 , ( 0,0 ) ] and the angle is φ = 2 π / N , the basis exponential functions are
    ψ p n = W e 2 n p = exp e 2 φ n p cos n p φ , sin n p φ , 0,0 e i n p φ , 0 ,
    p , n = o = 0 : ( N 1 ) . The N -point direct QDFT is defined as
    Q p = n = 0 N 1 q n ψ p ( n ) = n = 0 N 1 [ f n , g n ] [ e i φ n p , 0 ] = n = 0 N 1 [ f n e i φ n p , g n e i φ n p ] .
    or
    Q p = n = 0 N 1 f n e i φ n p , n = 0 N 1 g n e i φ n p = F p , G p .
Here, F p and G p are the traditional N -point DFTs of the complex signal f n and g n , respectively,
F p = n = 0 N 1 f n e i φ n p , G p = n = 0 N 1 g n e i φ n p , p = 0 : N 1 .
This N -point QDFT is called the N -point e 2 -QDFT and it requires two N -point DFTs [22]. The inverse N -point e 2 -QDFT is calculated by
q n = [ f n , g n ] = 1 N p = 0 N 1 Q p W μ n p = 1 N p = 0 N 1 [ F p , G p ] e i n p φ , 0 , n = 0 : N 1 .
2.
In the μ = e 3   case, the basis exponential functions for the QDFT are
ψ p n = W e 3 n p = exp e 3 φ n p = cos n p φ , 0 , sin n p φ , 0 , p , n = 0 : N 1 .
The N -point QDFT which is called the N -point e 3 -QDFT is defined as [22]
Q p = n = 0 N 1 [ f n , g n ] W e 3 n p = n = 0 N 1 [ f n cos ( φ n p ) + g n sin ( φ n p ) , f n sin ( φ n p ) + g n cos ( φ n p ) ] .
In the matrix form, this transform can be written with the rotation matrices as
Q p = n = 0 N 1 f n , g n R φ n p = n = 0 N 1 f n , g n cos ( φ n p ) sin ( φ n p ) sin ( φ n p ) cos ( φ n p ) , p = 0 : N 1 .
The inverse N -point e 3 -QDFT Q p = A p , B p   is calculated by
q n = f n , g n = 1 N p = 0 N 1 Q p W μ n p = 1 N p = 0 N 1 A p , B p R φ n p , n = 0 : N 1 .
Thus, in the (2,2)-model, we can work with only two N -point QDFT, namely, e 2 -QDFT and e 3 -QDFT.
As an example, Figure 3 shows the color image ‘leonardo9.jpg’ of 744 × 526 pixels in part (a) and the quaternion signal composed from column number 101 in part (b). The signals b n ,   c n , and d n are the red, green, and blue channels of the image column, respectively. The signal a n is the average of these signals.
The e 2 -QDFT and e 3 -QDFT of this quaternion signal are plotted in absolute scale, | Q p | ,   p = 0 : 733 , in Figure 4 in parts (a) and (b), respectively. The difference of these two plots is shown in part (c).
As shown in [22], in the (2,2)-model the aperiodic convolution of quaternion signals can be calculating by multiplying the QDFTs. This statement is valid for both types of the QDFT. The convolution of a periodic quaternion signal q n = f n , g n with another one h n = h 1 , n , h 2 , n is unique,
y n = q n h n = k = 0 N 1 q n k h k = k = 0 N 1 q k h n k , n = 0 : N 1 .
Here, the subscripts n k are considered by modulo N . This convolution is calculated by four complex convolutions as follows:
y n = [ y 1 , n , y 2 , n ] , y 1 , n = f n h 1 , n g n h 2 , n y 2 , n = f n h 2 , n + g n h 1 , n .
For k = 2 and 3, the N -point e k -QDFT of the convolution y n is calculated by Y p = Q p H p , p = 0 : N 1 . Here, Q p and H p are components of the corresponding N -point e k -QDFT of signals q n and h n , respectively. What type of QDFT is used for computing the aperiodic convolution is irrelevant. We think that calculation of the quaternion convolution by the e 2 -QDFT is simple. According to the multiplication, the e 2 -QDFT of the aperiodic convolution is calculated by
Y p = Q p H p = F p , G p H 1 , p , H 2 , p = F p H 1 , p G p H 2 , p , F p H 2 , p + G p H 1 , p .
So, the task of calculating the quaternion aperiodic convolution in the frequency domain is solved in the (2,2)-model. In the traditional (1,3)-model of quaternions, this problem does not have such a simple solution, it is unsolvable. Table 3 summarizes the above considerations.

5. Processing Images in the (2,2)-Model

In this section, we describe the concept of the 2D QDFT of images, which will be used in color image enhancement, namely, in the method which is called the alpha-rooting. A color image in the RGB model will be presented by the quaternion image q n , m = [ f n , m , g n , m ] and then transformed to the frequency-domain. Let ( r n , m , g n , m , b n , m ) be components of the primary colors, red (R), green (G), and blue (B), in the image of N × M pixels. To compose the quaternion image q n , m , we add the real component a n , m . Thus, q n , m = ( a n , m , r n , m , g n , m , b n , m ) . The real part of this image usually is considered zero, a n , m = 0 , or the gray-scale component a n , m = ( r n , m + g n , m + b n , m   ) / 3   at each pixel ( n , m ) . The brightness of the image also can be considered, a n , m = 0.3 r n , m + 0.59 g r n , m + 0.11 b n , m . In the (2,2)-model, the quaternion image q n , m = [ f n , m , g n , m ] is the pair of 2D data f n , m = ( a n , m , r n , m ) and g n , m = ( g n , m , b n , m ) . In many applications, processing color images in quaternion space is efficient, since at each pixel the color triplet (plus the gray) is treated as one number, quaternion. Note that in the traditional approach each color component of the image is processed separately. And this causes many unwanted effects on colors in the processed images [5,14].
The two-dimension N × M -point QDFT in the frequency-point ( p , s ) is calculated by
Q p , s = n = 0 N 1 m = 0 M 1 q n , m W μ n p W μ m s = n = 0 N 1 m = 0 M 1 q n , m W μ n p + m s ,
where p , s = 0,1 , ,   N 1 , M 1 . In the (1,3)-model, two sums in this equation are different transforms; the first one is called the separable right-sided 2D QDFT [21,24].
We consider the 2D QDFT which is calculated by the 1D e 2 -QDFTs. This 2D transform is called the 2D N × M -point e 2 -QDFT; the case when μ = e 2 [22,25]. As in the 1D case, the 2D e 2 -QDFT has a simple form, when comparing with the 2D e 3 -QDFT. The 2D e 2 -QDFT of the quaternion image q n , m = [ f n , m , g n , m ] is calculated by
Q p , s = n = 0 N 1 m = 0 M 1 [ f n , m , g n , m ] W N n p W M m s = F p , s , G p , s .
Here, F p , s and G p , s the N × M -point 2-D DFTs of the complex components f n , m and g n , m , respectively,
F p , s = n = 0 N 1 m = 0 M 1 f n , m e i 2 π N n p e i 2 π M m s , G p , s = n = 0 N 1 m = 0 M 1 g n , m e i 2 π N n p e i 2 π M m s .
Thus, the calculation of the N × M -point e 2 -QDFT is reduced to two 2D DFTs. The inverse N × M -point e 2 -QDFT is calculated by
q n , m = F 1 Q n , m = 1 N M p = 0 N 1 s = 0 M 1 F p , s , G p , s W N n p W M m s , n , m = 0 : N 1 , M 1 .

5.1. Method of Alpha-Rooting by the 2D QDFT

The absolute value, or the module, of the quaternion Q p , s = F p , s , G p , s is defined as Q p , s = F p , s 2 + G p , s 2 . In the alpha-rooting [26], the image is enhancing by changing its absolute value at each frequency-point as Q p , s Q p , s α , where the parameter α is from the interval (0,1). Given value α , the 2D e 2 -QDFT of the quaternion image   q n , m is processed as follows:
q n , m Q p , s V p , s = Q p , s | Q p , s | α 1 ( q α ) n , m = F 1 V p , s n , m A [ q α ] n , m .
Here, A > 1 is a necessary constant, since the alpha-rooting method reduces the transforms in absolute scale.
The main steps of the algorithm:
  • Compose the quaternion image q n , m from the given RGB color image, q n , m = ( a n , m , r n , m , g n , m , b n , m ) .
  • Calculate the 2D e 2 -QDFT of the quaternion image, Q p , s = F q p , s = F p , s , G p , s .
  • Calculate the module of the transform, Q p , s .
  • Process the transform modules by the alpha-rooting, V p , s = Q p , s | Q p , s | α 1 .
Thus, the 2D e 2 -QDFT of the quaternion image changes by the non-negative coefficients c ( p , s ) = | Q p , s | α 1 ,
Q p , s = F p , s , G p , s V p , s = c p , s F p , s , G p , s = c p , s F p , s , c p , s G p , s .
5.
Calculate the inverse 2D e 2 -QDFT, ( q α ) n , m = F 1 V n , m .
6.
Multiply the image by the constant A > 1 , to raise the range of the image.
The output of the alpha-rooting is the quaternion image ( v α ) n , m = A ( q α ) n , m . Rounding to integers is required.
7.
Compose the new color image, ( v c ) n , m , as the 3-component imaginary part of the quaternion image ( v α ) n , m ,
8.
Extract the new grayscale image from the quaternion image ( v α ) n , m , as its real part. Note that this grayscale image is not the gray or brightness of the new color image ( v c ) n , m .
The new image v n , m is parameterized by α . Therefore, the question arises as to how to choose the value of this parameter to enhance better the color image. As our preliminary examples have shown, the choice of the best values of α for enhancing color and quaternion images can be based on the known measure of color image enhancement, EMEC function [5,13]. This measure is used before and after image processing. By the definition, EMEC of a color image f n , m = r n , m , g n , m , b n , m after division by blocks of size L 1 × L 2 each, for instance 7 × 7 , is calculated by
E M E C f = 1 k 1 k 2 k = 1 k 1 l = 1 k 2 20 l o g 10 m a x k , l r n , m , g n , m , b n , m m i n k , l r n , m , g n , m , b n , m .
Here, k 1 k 2   is the number of blocks, and m a x k , l ( ) and m i n k , l ( ) are the maximum and minimum values in the ( k , l ) -th image block, respectively. To avoid the cases when m i n k , l ( ) is zero, 1 can be added to the color image f n , m .
The EMEQ measure for a quaternion image q n , m = a n , m , r n , m , g n , m , b n , m is calculated similarly [26],
E M E Q q = 1 k 1 k 2 k = 1 k 1 l = 1 k 2 20 l o g 10 m a x k , l a n , m , r n , m , g n , m , b n , m m i n k , l a n , m , r n , m , g n , m , b n , m .
This measure includes the real part of the quaternion image. The measure EMEQ is calculated for the input quaternion image q n , m and the processed image v n , m . In the most cases, the best parameter for color enhancement is considered the value of α with maximum of E M E C ( q ) and E M E Q ( v ) (or minimum). Our experimental results show that the measures EMEC and EMEQ are effective in selecting the best parameters to receive color images with high quality [26]. Other measures for selecting the best values of α and estimating color image quality after image processing can also be used. We mention the color image contrast and quality measures [14].

5.2. The Separable Alpha-Rooting

The alpha-rooting method by the QDFT can be modified in the following two ways.
  • The separable 1-parameter alpha-rooting of the quaternion image q n , m = [ f n , m , g n , m ] is the method of processing the 2D e 2 -QDFT of the image as
    Q p , s = F p , s , G p , s F p , s | F p , s | α 1 , G p , s | G p , s | α 1 , α ( 0,1 ) .
  • The 2-parameter alpha-rooting of the quaternion image uses two parameters α 1 and α 2 from the interval 0,1 , to process the 2D e 2 -QDFT of the quaternion image as follows:
    Q p , s = F p , s , G p , s F p , s | F p , s | α 1 1 , G p , s | G p , s | α 2 1 .
In the α 1 = α 2 = α case, the 2-parameter alpha-rooting coincides with the 1-parameter alpha-rooting.

5.3. Alpha-Rooting of Color Images and (1,3)-Model

In the (1,3)-model, we consider one of the 2D QDFTs, namely, the separable right-sided 2D QDFT [26]. This transform of the quaternion image q n , m = a n , m , r n , m , g n , m , b n , m is calculated by
Q p , s = n = 0 N 1 m = 0 M 1 q n , m W μ 1 m s W μ 2 n p , p , s = 0 : N 1 , M 1 .
Here, μ 1 and μ 2 are pure quaternion units. The transform uses N 1D QDFTs by rows and then M 1D QDFT by columns. Given quaternion signal q n = a n , r n , g n ,   b n and a pure quaternion μ = 0 , m 1 , m 2 , m 3 , the 1D QDFT, Q p , with the basis exponential functions W μ n p = cos ( 2 π n p / N ) μ sin ( 2 π n p / N )   requires four traditional DFTs, since it is calculated by [14]
Q p = R e A p R p G p B p + M μ × I m A p R p G p B p = R e A p R p G p B p + 0 m 1 m 2 m 3 m 1 0 m 3 m 2 m 2 m 3 0 m 1 m 3 m 2 m 1 0 I m A p R p G p B p .
A p , R p , G p , and B p are the DFTs of the components a n , r n , g n , and b n , respectively. R e ( z ) and I m ( z ) denote the operations of real and imaginary parts of the complex number z , respectively. The multiplication of the 4D vector by the matrix M μ requires maximum 12 real multiplications. In the case, when μ 1 = 0,0 , 1,0 = j and μ 2 = 0,0 , 0,1 = k , the exponential basis functions are W k m s = cos 2 π m s / M k sin 2 π m s / M and W j n p = cos 2 π n p / N j sin 2 π n p / N .   The matrices of multiplication have simple forms,
M j = 0 0 1 0 0 0 0 1 1 0 0 0 0 1 0 0   a n d   M k = 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 .
and the corresponding 1D QDFTs are calculated by
Q p = R e A p + I m ( G p ) R e R p + I m ( B p ) R e G p I m ( A p ) R e B p I m ( R p )   a n d   Q p = R e A p + I m ( B p ) R e R p I m ( G p ) R e G p + I m ( R p ) R e B p I m ( A p ) .
These the N -point QDFTs require four 1D DFTs plus 4 N additions. In this case, the right-sided 2D QDFT of the quaternion image q n , m is calculated by
Q p , s = n = 0 N 1 m = 0 M 1 q n , m W k m s W j n p , p = 0 : N 1 , s = 0 : M 1 .
Total 4 ( N + M ) 1D QDFTs plus 4 N M + 4 M N = 8 N M additions are used, to calculate the 2D QDFT. The inverse 2D right-sided QDFT is calculated by
q n , m = 1 N M p = 0 N 1 s = 0 M 1 Q p , s W k m s W j n p ,
The complexity of the QDFTs in the (1,3) and (2,2)-models for images of N × N pixels is described by Table 4.
The main steps of the algorithm for α -rooting in the (1,3)-model:
  • Compose the quaternion image q n , m =   ( a n , m , r n , m , g n , m , b n , m ) from the color RGB image ( r n , m , g n , m , b n , m ) .
  • Calculate the right-sided 2D QDFT, Q p , s , of the quaternion image.
  • Given α ( 0,1 ) , calculate the coefficients c p , s = | Q p , s | α 1 .
  • Modify the 2D QDFT as Q p , s V p , s = c ( p , s ) Q p , s .
  • Calculate the inverse 2D QDFT v n , m = v n , m ( α ) .
  • Select the best value α for color image enhancement, by using the measures EMEQ or EMEC.

6. Experimental Results with Color Images

In this section, a few illustrative examples with the 2D QDFT-based alpha-rooting are presented. Many color images of Art in this paper are taken from Olga’s Gallery- Free Art Print Museum by address https://www.freeart.com/gallery/ with a permission to use them in our research. Figure 5 shows the RGB color image ‘rembrandt195.jpg’ in part (a) and the enhanced image in part (b). The enhanced image was calculated by the alpha-rooting with e 2 -QDFT, when the parameter α = 0.9143 . This value of the parameter is considered optimal, or best, according to the EMEC measure calculated by Eq. 34 with block size 7 × 7. This measure as the function EMEC( α ) has the maximum 36.54 at this point. The measure of the original image is EMEC ( 1 ) = 34.74 .
Two EMEC functions are shown in Figure 5 in par (c), they are close to each other and both achieve the maximum at the same point. The first graph (which is a little higher than the other one) was calculated by the 2D e 2 -QDFT-based alpha-rooting described in Section 5.1, when the transform is modified as Q p , s = F p , s , G p , s     | Q p , s | α 1 F p , s , G p , s , α 0.7,1 . The second graph is for the EMEC measure calculated form the 1-parameter alpha-rooting described in Section 5.2, when the e 2 -QDFT of the images is processed as follows: Q p , s = F p , s , G p , s     F p , s | F p , s | α 1 , G p , s | G p , s | α 1 , α 0.7,1 .  Figure 6 shows the enhanced image by 1-parameter 0.9143-rooting in part (a). For comparison, the 0.9143-rooting of the image by the 2D QDFT in the (1,3)-model is shown in part (b).
Below are a few results of processing other color images by the alpha-rooting and separate algorithms of the alpha-rooting in the commutative (2,2)-model. The results of image enhancement by the alpha-rooting in the non-commutative (1,3)-model are also shown. Figure 7 shows the results of the 0.92-rootings, when processing the image of San Antonio. The values of the color image enhancement EMEC are shown.
Figure 8 shows the results of the same methods of the 0.92-rootings, when processing another image of San Antonio. One can note that the images processed in the (2,2)-model have higher values of EMEC.
Figure 9 shows the results of processing image ‘image13-2.jpg.’ The method of alpha-rooting works well in both models for many images. It means that the (2,2)-model works no worse, but even better than another model, that is, the (1,3)-model.
The results of processing the well-known “flowers” image is shown in Figure 10 in parts (a)-(d).
Now we apply the method of alpha-rooting in the (2,2)-model, when two parameters α 1 and α 2 are used and the 2D QDFT of the color image is processed as
Q p , s = F p , s , G p , s F p , s | F p , s | α 1 1 , G p , s | G p , s | α 2 1 , α 1 , α 2 0,1 . ( 16 )
Figure 11 shows results of the color image enhancement processing by the 2-parameter alpha-rooting with different sets of parameters α 1 and α 2 . In part (b), the image of San Antonio was processed by the parameters α 1 = α 2 = 0.92 . The enhancement by parameters α 1 = 0.92 and α 2 = 0.93 is shown in part (c).
It should be noted that when processing color images in the quaternion models, the color image is only the imaginary part of the quaternion image. The enhancement of quaternion image includes two images, the color one and the gray one. They are processed together. The first component of the quaternion image, which is referred as the grayscale image is not the grayscale image of the processed color image. The enhancement of quaternion image results in the enhancement of both images. As examples, we consider a few color images processed in the (2,2)-model by the 2-D e 2 -QDFT-based alpha-rooting.
Figure 12 shows the color image ‘raphael155.jpg’ in part (a), which was embedded in quaternion image as its imaginary part. The imaginary component (the new color image) of the enhanced quaternion image by the 0.92-rooting is shown in part (b). The grayscale image of the original color image is shown in part (c). The real part of the processed quaternion image is shown in part (d). This image is not the average of colors in the image in part (b). Thus, both grayscale and color images were enhanced, when processing the quaternion image.
Figure 13 and Figure 14 show the results of enhancement of the quaternion images when the color images ‘raphael155.jpg’ and ‘flowers’ were use, respectively.

7. Conclusion

New methods of alpha-rooting by the quaternion discrete Fourier transform (QDFT) were presented in the (2,2)-model. The main properties of this model were described. This model of quaternions is commutative and associative and allows to calculate the aperiodic convolution of quaternion images in the frequency domain. The results of the image enhancement of color images by in this model were compared with the alpha-rooting in the traditional (1,3)-model. The preliminary experimental examples show effectiveness of the proposed methods for color image enhancement by the 2D QDFT. We believe that the commutative (2,2)-model together with the non-commutative (1,3)-model can be effectively used in color image enhancement, as well as other areas of color imaging.

Author Contributions

Conceptualization, A.M.G.; methodology, A.M.G.; software, A.M.G. and A.A.G. ; validation, A.M.G.; formal analysis, A.M.G. and A.A.G.; investigation, A.M.G.; resources, A.M.G.; data curation, A.M.G.; writing—original draft preparation, A.M.G.; writing—review and editing, A.M.G. and A.A.G.; visualization, A.M.G. and A.A.G.; supervision, A.M.G.; project administration, A.M.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The authors did not agree to share their data publicity, so supporting data is not available.

Acknowledgments

This article is a revised and expanded version of Ref. 31, which was presented at SPIE 13033 Conference, Defense + Commercial Sensing 2024, April 22, 2024, Maryland, USA.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Harris, J.L. Constant variance enhancement: a digital processing technique. Appl. Opt. 1977, 16, 1268. [Google Scholar] [CrossRef] [PubMed]
  2. Wang, D.C.; Vagnucci, A.H.; Li, C.C. Digital image enhancement: A survey. Comput. Vis. Graph. Image Process. 1983, 24, 363–381. [Google Scholar] [CrossRef]
  3. Trussell, H.J.; Saber, E.; Vrhel, M. Color image processing [basics and special issue overview]. IEEE Signal Process. Mag. 2005, 22, 14–22. [Google Scholar] [CrossRef]
  4. Gonzalez, R.C.; Woods, R.E. Digital Image Processing, 4th ed.; Pearson: New York, NY, USA, 2018. [Google Scholar]
  5. Grigoryan, A.M.; Agaian, S.S. Image processing contrast enhancement. In Wiley Encyclopedia of Electrical and Electronics Engineering; Webster, J.G., Ed.; Wiley: Hoboken, NJ, USA, 2017; pp. 1–22. [Google Scholar]
  6. Nithyananda, C.R.; Ramachandra, A.C.; Preethi. Survey on histogram equalization method-based image enhancement techniques. In Proceedings of the 2016 International Conference on Data Mining and Advanced Computing (SAPIENCE), Ernakulam, India, 2016; IEEE: New York, NY, USA, 2016; pp. 150–158. [Google Scholar]
  7. Han, J.-H.; Yang, S.; Lee, B.-U. A novel 3-D color histogram equalization method with uniform 1-D gray scale histogram. IEEE Trans. Image Process. 2011, 20, 506–512. [Google Scholar] [CrossRef] [PubMed]
  8. Trahanias, P.E.; Venetsanopoulos, A.N. Color image enhancement through 3-D histogram equalization. In Proceedings of the 11th IAPR International Conference on Pattern Recognition, The Hague, Netherlands, 30 August–3 September 1992; IEEE Comput. Soc. Press: Washington, DC, USA, 1992; Vol. IV, pp. 545–548. [Google Scholar]
  9. Pitas, I.; Kiniklis, P. Multichannel techniques in color image enhancement and modeling. IEEE Trans. Image Process. 1996, 5, 168–171. [Google Scholar] [CrossRef] [PubMed]
  10. Mlsna, P.A.; Zhang, Q.; Rodriguez, J.J. 3-D histogram modification of color images. In Proceedings of the 3rd IEEE International Conference on Image Processing, Lausanne, Switzerland, 16–19 September 1996; IEEE: New York, NY, USA, 1996; vol. 3, pp. 1015–1018. [Google Scholar]
  11. Land, E.H.; McCann, J.J. Lightness and retinex theory. J. Opt. Soc. Am. 1971, 61, 1–11. [Google Scholar] [CrossRef] [PubMed]
  12. Land, E. An alternative technique for the computation of the designator in the retinex theory of color vision. Proc. Nat. Acad. Sci. 1986, 83, 3078–3080. [Google Scholar] [CrossRef]
  13. Agaian, S.S.; Panetta, K.; Grigoryan, A.M. Transform-based image enhancement algorithms with performance measure. IEEE Trans. Image Process. 2001, 10, 367–382. [Google Scholar] [CrossRef] [PubMed]
  14. Grigoryan, A.M.; Agaian, S.S. Quaternion and Octonion Color Image Processing with MATLAB; SPIE Press: Bellingham, WA, USA, 2018. [Google Scholar]
  15. Gauss, C.F. Mutationen des raumes [transformations of space] (c. 1819). In Carl Friedrich Gauss Werke, 8th ed.; Brendel, M., Ed.; Teubner: Stuttgart, Germany, 1900; pp. 357–361. [Google Scholar]
  16. Hamilton, W.R. On a new species of imaginary quantities connected with a theory of quaternions. Proc. R. Ir. Acad. 1844, 2, 424–434. Available online: https://www.emis.de/classics/Hamilton/Quatern1.pdf (accessed on 27 December 2024).
  17. Hamilton, W.R. Elements of Quaternions; Longmans, Green & Co.: London, UK, 1866. [Google Scholar]
  18. Kantor, I.L.; Solodovnikov, A.S. Hypercomplex Numbers; Nauka: Moscow, Russia, 1973. [Google Scholar]
  19. Bülow, T. Hypercomplex Spectral Signal Representations for the Processing and Analysis of Images; Christian-Albrechts-Univ.: Kiel, Germany, 1999; Volume 9903, p. 171. [Google Scholar]
  20. Yin, Q.; et al. Quaternion convolutional neural network for color image classification and forensics. IEEE Access 2019, 7, 20293–20301. [Google Scholar] [CrossRef]
  21. Sangwine, S.J. Fourier transforms of colour images using quaternion, or hypercomplex, numbers. Electron. Lett. 1996, 32, 1979–1980. [Google Scholar] [CrossRef]
  22. Grigoryan, A.M.; Agaian, S.S. Commutative quaternion algebra and DSP fundamental properties: Quaternion convolution and Fourier transform. Signal Processing 2022, 196, 108533. [Google Scholar] [CrossRef]
  23. Davenport, C. Commutative hypercomplex mathematics. Unpublished work, 2008.
  24. Ell, T.A.; Sangwine, S.J. Hypercomplex Fourier transforms of color images. IEEE Trans. Image Process. 2007, 16, 22–35. [Google Scholar] [CrossRef] [PubMed]
  25. Grigoryan, A.M.; Gomez, A.A. Quaternion Fourier transform-based alpha-rooting color image enhancement in 2 algebras: Commutative and non-commutative. In Proceedings of SPIE 13033 Conference, Defense + Commercial Sensing 2024, Maryland, USA, 2024; SPIE: Bellingham, WA, USA, 2024; p. 12. [CrossRef]
  26. Grigoryan, A.M.; Jenkinson, J.; Agaian, S.S. Quaternion Fourier transform-based alpha-rooting method for color image measurement and enhancement. Signal Process. 2015, 109, 269–289. [Google Scholar] [CrossRef]
Figure 1. Quaternion-pyramids for (a) the quaternion q and its conjugates q ¯  in (b) the (1,3)-model and (c) the (2,2)-model.
Figure 1. Quaternion-pyramids for (a) the quaternion q and its conjugates q ¯  in (b) the (1,3)-model and (c) the (2,2)-model.
Preprints 145214 g001
Figure 2. Four quaternion-pyramids.
Figure 2. Four quaternion-pyramids.
Preprints 145214 g002
Figure 3. (a) The color image and (b) the quaternion signal of length 744 composed from one image column.
Figure 3. (a) The color image and (b) the quaternion signal of length 744 composed from one image column.
Preprints 145214 g003
Figure 4. The magnitude of (a) the e2-QDFT, (b) the e3-QDFT, and (c) the difference of these transforms.
Figure 4. The magnitude of (a) the e2-QDFT, (b) the e3-QDFT, and (c) the difference of these transforms.
Preprints 145214 g004
Figure 5. (a) The original image, (b) 2D e2-QDFT based 0.9143-rooting (with the scaling factor of A = 4), and (c) the two curves of the EMEC.
Figure 5. (a) The original image, (b) 2D e2-QDFT based 0.9143-rooting (with the scaling factor of A = 4), and (c) the two curves of the EMEC.
Preprints 145214 g005
Figure 6. The enhanced images of the 0.9143-rooting: (a) in the (2,2)-model and (b) in the (1,3)-model.
Figure 6. The enhanced images of the 0.9143-rooting: (a) in the (2,2)-model and (b) in the (1,3)-model.
Preprints 145214 g006
Figure 7. (a) The original color image. The enhanced images in the (2,2)-model by (b) the main 0.92-rooting and (c) separable 1-parameter 0.92-rooting. (d) The 0.92-rooting in the (1,3)-model.
Figure 7. (a) The original color image. The enhanced images in the (2,2)-model by (b) the main 0.92-rooting and (c) separable 1-parameter 0.92-rooting. (d) The 0.92-rooting in the (1,3)-model.
Preprints 145214 g007
Figure 8. (a) The original color image. The enhanced images in the (2,2)-model by (b) the main 0.92-rooting and (c) separable 1-parameter 0.92-rooting. (d) The 0.92-rooting in the (1,3)-model.
Figure 8. (a) The original color image. The enhanced images in the (2,2)-model by (b) the main 0.92-rooting and (c) separable 1-parameter 0.92-rooting. (d) The 0.92-rooting in the (1,3)-model.
Preprints 145214 g008
Figure 9. (a) The original color image. The enhanced images in the (2,2)-model by (b) the main 0.92-rooting and (c) separable 1-parameter 0.92-rooting. (d) The 0.92-rooting in the (1,3)-model.
Figure 9. (a) The original color image. The enhanced images in the (2,2)-model by (b) the main 0.92-rooting and (c) separable 1-parameter 0.92-rooting. (d) The 0.92-rooting in the (1,3)-model.
Preprints 145214 g009
Figure 10. (a) The original color image. The enhanced images in the (2,2)-model by (b) the main 0.92-rooting and (c) separable 1-parameter 0.92-rooting. (d) The 0.92-rooting in the (1,3)-model.
Figure 10. (a) The original color image. The enhanced images in the (2,2)-model by (b) the main 0.92-rooting and (c) separable 1-parameter 0.92-rooting. (d) The 0.92-rooting in the (1,3)-model.
Preprints 145214 g010
Figure 11. (a) The original color image, and (b) the [0.92,0.92]-rooting, and (c) the [0.92,0.93]-rooting in the (2,2)-model.
Figure 11. (a) The original color image, and (b) the [0.92,0.92]-rooting, and (c) the [0.92,0.93]-rooting in the (2,2)-model.
Preprints 145214 g011
Figure 12. (a) The original color image and (c) its grayscale image. The processed (b) imaginary and (d) real components of the enhanced quaternion image by the e2-QDFT 0.92-rooting.
Figure 12. (a) The original color image and (c) its grayscale image. The processed (b) imaginary and (d) real components of the enhanced quaternion image by the e2-QDFT 0.92-rooting.
Preprints 145214 g012
Figure 13. (a) The original color image ‘leonardo9.jpg’ and (c) its grayscale image. The processed (b) imaginary and (d) real components of the enhanced quaternion image by the e2-QDFT 0.92-rooting (×4).
Figure 13. (a) The original color image ‘leonardo9.jpg’ and (c) its grayscale image. The processed (b) imaginary and (d) real components of the enhanced quaternion image by the e2-QDFT 0.92-rooting (×4).
Preprints 145214 g013
Figure 14. (a) The original color flowers image and (c) its grayscale image. The processed (b) imaginary and (d) real components of the enhanced quaternion image by the e2-QDFT 0.80-rooting (×20).
Figure 14. (a) The original color flowers image and (c) its grayscale image. The processed (b) imaginary and (d) real components of the enhanced quaternion image by the e2-QDFT 0.80-rooting (×20).
Preprints 145214 g014
Table 1. Multiplication table, T ( e 1 , e 2 , e 3 , e 4 ) .
Table 1. Multiplication table, T ( e 1 , e 2 , e 3 , e 4 ) .
e 1 e 2 e 3 e 4
e 1 e 1 e 2 e 3 e 4
e 2 e 2 e 1 e 4 e 3
e 3 e 3 e 4 e 1 e 2
e 4 e 4 e 3 e 2 e 1
Table 2. Main operations and properties of quaternions in two quaternion models.
Table 2. Main operations and properties of quaternions in two quaternion models.
Preprints 145214 i001
Table 3. Properties of aperiodic convolution and QDFT.
Table 3. Properties of aperiodic convolution and QDFT.
The (2,2)-model The (1,3)-model
Aperiodic convolution q = q 1 q 2 = q 2 q 1 q = q 1 q 2 q 2 q 1
Exponential functions Only two pairs Infinite number
The pair of the QDFT Only two Infinite number
Convolution property Q p q 1 q 2 = Q p q 1 Q p ( q 1 ) Q p q 1 q 2 Q p q 1 Q p ( q 1 )
Table 4.  .
Table 4.  .
Model Transforms Number of 1D DFTs Number of additional multiplications Number of additional additions
The (1,3)-model:
General case of μ 1D QDFT 4 (real) 12 N 12 N
2D QDFT 4 2 N = 8 N 12 N 2 N = 24 N 2 12 N 2 N = 24 N 2
Case μ = j , k 1D QDFT 4 (real) - 4 N
2D QDFT 4 2 N = 8 N - 4 N 2 N = 8 N 2
The (2,2)-model:
1D e 2 -QDFT 1D QDFT 2 (complex) - -
2D e 2 -QDFT 2D QDFT 2 2 N = 4 N - -
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated