Next Article in Journal
Cybercrime Resilience in the Era of Advanced Technologies: Evidence from the Financial Sector of a Developing Country
Next Article in Special Issue
Optimizing Loss Functions for You Only Look Once Models: Improving Object Detection in Agricultural Datasets
Previous Article in Journal
Machine Learning Approaches for Speech-Based Alzheimer’s Detection: A Comprehensive Survey
Previous Article in Special Issue
Number Recognition Through Color Distortion Using Convolutional Neural Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

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

by
Artyom M. Grigoryan
* and
Alexis A. Gomez
Electrical and Computer Engineering, The University of Texas at San Antonio, San Antonio, TX 78249, USA
*
Author to whom correspondence should be addressed.
This article is a revised and expanded version of authors’ conference paper which was presented at SPIE 13033 Conference, Defense + Commercial Sensing 2024, National Harbor, MD 20745, USA, 22 April 2024.
Computers 2025, 14(2), 37; https://doi.org/10.3390/computers14020037
Submission received: 28 December 2024 / Revised: 22 January 2025 / Accepted: 24 January 2025 / Published: 26 January 2025
(This article belongs to the Special Issue Advanced Image Processing and Computer Vision)

Abstract

:
In this paper, we describe the associative and commutative algebra or the (2,2)-model of quaternions with application in color image enhancement. The method of alpha-rooting, which is based on the 2D quaternion discrete Fourier transform (QDFT) is considered. In the (2,2)-model, the aperiodic convolution of quaternion signals can be calculated by the product of their QDFTs. 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. Note that 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 the 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 alpha-rooting based on the 2D QDFT are presented, and illustrative examples on color image enhancement are given. The image enhancement measures to estimate the quality of the color images are described. Examples of the alpha-rooting enhancement on different color images are given and analyzed with the known histogram equalization and Retinex algorithms. Our experimental results show that 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.

1. Introduction

In recent years, many articles have been published on color image processing, wherein image enhancement plays an important role. Many color images are low quality and require enhancement as the first stage of processing. [1,2,3,4,5]. Examples of such images can be found among underwater images, thermal images, and medical images. Decades ago, we divided methods of image enhancement into two classes, namely spatial and 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 contrast stretching techniques and logarithmic models [4] and 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. The 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 uses the color image enhancement alpha-rooting by the 2D QDFT. A 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;
  • The effectiveness of using the 2D QDFT-based alpha-rooting in the (2,2)-model;
  • Illustrative examples showing 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 of 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 of color images 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 an 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 quadruples 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 non-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 the 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 three-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 Equation (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
It is 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 the 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 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 details, see [14]).
Unlike 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 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 the so-called (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 Equation (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 Equation (5) can also be written in the matrix form. For this, we consider the quaternions as 4D 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 these two algebras visually, 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 can be represented 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 quaternion q = ( 1 , 2,8 , 5 ) in part (a) and the pyramid Q P ( q ¯ ) , for the conjugate quaternion 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 pyramid 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 the 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 exists. As mentioned in [24], the absence of some inverse numbers is not an obstacle when using quaternions to process 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 form, 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 quaternions 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 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 the 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 μ = exp μ 2 π N e μ 2 π N   .
Two different N -point QDFTs 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 between 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 calculated by multiplying the QDFTs. This statement is valid for both types of 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 the 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 .
Therefore, 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 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 is usually 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 can also 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 compared 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 are 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,27], the image is enhanced by changing its absolute value at each frequency point to 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 three-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 better enhance 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) [5,13]. This measure is used before and after image processing. The EMEC is the generalization of the enhancement measure that was used for grayscale images.
A.
Enhancement measures for grayscale images
To estimate the quality of grayscale images, we effectively developed and used the concept of the quantitative estimated measure of enhancement (EME). This measure was selected after analyzing the Weber and Fechner laws of the human visual system [28,29]. The measure is defined as the average of the range of image intensity in the logarithm scale when it is divided by blocks of the same size L 1 × L 2 , for example, 7 × 7 . Only the full blocks are considered. Therefore, the number of blocks inside a discrete image f = f n , m of N × M pixels is calculated as k 1 k 2 , where k 1 = N / L 1 ,   k 2 = M / L 2 , and . denotes the rounding floor function. The EME of the image is
E M E f = 1 k 1 k 2 k = 1 k 1 l = 1 k 2 20 ln max k , l ( f ) min k , l ( f ) = 1 k 1 k 2 k = 1 k 1 l = 1 k 2 20 l n   max k , l ( f ) l n   min k , l ( f ) .  
Here, inside the ( k , l ) th block, the maximum, m a x k , l ( f ) , and minimum, m i n k , l ( f ) , of the image f n , m are calculated. Thus, the EME of the image is estimated block-wise by using the logarithm range of the image. If all values of the image in a block are 0, this block can be removed from the measure calculation. To avoid such cases, E M E f + 1 can be calculated instead. The change f ( f + 1 ) does not change the quality of the image unless it is binary.
Together with EME, other contrast measures also can be used, including [14]:
  • The estimated measure of enhancement entropy measure (EMEE)
E M E E f = 1 k 1 k 2 k = 1 k 1 l = 1 k 2 max k , l ( f ) min k , l ( f ) ln max k , l ( f ) min k , l ( f ) .  
2.
The Michelson enhancement measure (MEM)
M E M f = 1 k 1 k 2 k = 1 k 1 l = 1 k 2 M V R k , l f ln M V R k , l f ,
where the Michelson visibility ratio is calculated by
M V R k , l f = max k , l ( f ) min k , l ( f ) min k , l ( f ) + min k , l ( f ) .
3.
The signal-noise ratio (or the ratio of the mean of the image and standard deviation)
S N R f = E f E f 2 E 2 [ f ] = 1 E f 2 / E 2 f 1 ,
where
E f = 1 N M n = 0 N 1 m = 0 M 1 f n , m     a n d   E f 2 = 1 N M n = 0 N 1 m = 0 M 1 f n , m 2 .  
Our experimental results show that the EME and EMEE measures can be effectively used in enhancing images. After processing the image, f n , m   g n , m , the EME of the enhanced image is calculated and compared with the EME of the original image. The range of the alpha-rooting image is usually smaller than [0,255]. Therefore, the obtained image should be multiplied by a coefficient. The new image and its quality depend on the value of parameter α , i.e., g = g α and the measure is a function of a , that is, E M E g a = E M E α . The parameters of interest for alpha-rooting are in the range R α 0,1 ;   E M E α > E M E g α > E M E f . The degree of enhancement is determined by the EME measure. The best or optimal values of the enhancement are considered to be the values α 0 , for which E M E g α 0 = max a R E M E g α or min a R E M E g α .
To illustrate the introduced above measures of image enhancement, we consider the image of 512 × 512 pixels shown in Figure 5 in part (a). The histogram of the image is given in part (b). The enhancement by the Fourier transform-based alpha-rooting was used when changing the parameter α in the interval [0,1] with a step of 0.01. The graph of the measure of this image, E M E = E M E ( α ) , as the function of α is shown in part (c). Blocks of size 7 × 7 were used to calculate the EME. For the original image, the measure of enhancement equals 7.63. The maximum of the function E M E ( α ) is at point α = 0.83 and equals E M E 0.83 = 20.69 . The image enhanced by the 0.83 -rooting is shown in part (d). It was multiplied by the coefficient 19 to scale the image. In parts (e) and (f), the graph of the measure E M E E ( α ) and the enhanced image by the 0.83 -rooting (and multiplied by 17) are shown, respectively. This measure has the maximum 1071.26 at point α = 0.84 . The measure of the original image equals E M E E 1 = 0.68 . The best parameters α = 0.83 and 0.84 for these two measures are very close to each other, as well as the results of the enhancement, which are shown in parts (d) and (f). The E M E ( α ) function is much smoother than the  E M E E ( α ) measure, and its graph has a distinct peak. For other images, the optimal values of the parameter α may be very different, but the smoothness of the function E M E ( α ) is preserved and easier to work with.
In Figure 6a, the image of 440 × 750 pixels is shown, as well as the result of the histogram equalization (HE) of the image in part (b). The graph of the enhancement measure E M E ( α ) , when processing by the alpha-rooting, is given in part (c). The measure function E M E ( α ) was calculated by dividing the image by blocks of sizes 5 × 5 and 7 × 7. The parameter α for the α-rooting method of enhancement varies in the interval [0.4,1] with a step of 0.005. Two graphs of the enhancement measure EME have pikes at the point 0.84 and 0.855, for the 5 × 5 and 7 × 7 block sizes, respectively. These values are almost the same, and we consider α 0 = 0.855 for the best visual estimation of the enhancement. The EME of the original image equals 8.30 and 25.76 for the 0.855-rooting enhancement, which is shown in part (d). There, the enhancement can be estimated as E M E ( g 0.855 ) E M E f = 25.76 8.30 = 17.46 . One can note the high quality of the 0.855-rooting image in comparison with the HE image in part (b).
To estimate the quality of color images, we consider the color image enhancement measure (EMEC). For 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 , the measure 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.
B.
Alpha-rooting components-wise
Color images in the RGB color model can be separately processed by red, green, and blue colors. This is the traditional method of processing color images. In the alpha-rooting enhancement, each color component can be processed by alpha-rooting with different or the same values of parameters α 1 ,   α 2 ,  and α 3 . We call this method ( α 1 ,   α 2 ,   α 3 ) -rooting of the color image For images in the HSI color model, with hue (H), saturation (S), and intensity (I) components, only the last component, intensity, will be only processed by alpha-rooting. The first two components, hue and saturation will stay the same.
To choose values of these parameters, we can use, for instance, the EME measure. As an example, Figure 7 shows the 1516 × 2012-pixel underwater RGB image in part (a) with EMEC of 38.77, which was calculated by blocks of size 5 ×   7 . In part (b), the graphs of functions E M E ( α ) of the red, green, and blue channels are shown. The parameter of α runs the interval [0.2,1]. The maximum values of these functions are at points α = 0.94 ,   0.83 , and 0.84 . The color image composed of 0.94 -rooting of red, 0.83-rooting of green, and 0.84-rooting of blue components is shown in part (c). The enhancement measure of this image equals EMEC = 44.08.
Since the color components are processed separately, it is not possible to state that the above (094,0.84,0.83)-rooting results in the highest enhanced image. It is possible to select other triplets of the vector parameter α = ( α 1 ,   α 2 ,   α 3 ) and obtain images that we can consider the best. As examples, Figure 8 shows two enhanced images together with the graphs of the EMEs of three color channels, R, B, and B. The values of alpha parameters for these channels are marked on the graphs. The case with equal EME for all color channels is shown in part (a). The EMEC of the color image is of 59.62, which is the highest number for all considered cases. Also, a good, enhanced color image is shown in part (b) for the vector parameter (0.9,0.8,0.7).
C.
Comparison with HE and Retinex
The methods of histogram equalization (HE) [30,31,32] and Retinex [33,34,35,36,37] are widely used in color image enhancement. We consider these methods together with the method of alpha-rooting. The underwater RGB color image of 192 × 262 pixels is shown in Figure 9 in part (a). This image has a measured EMEC of 11.26, which was calculated by blocks 5 × 5. The graphs of EME of three colors are given in part (b), with maximum values at points 0.85, 0.82, and 0.82, for the red, green, and blue channels, respectively. The corresponding (0.85,0.82,0.82)-rooting of this image with an EMEC of 35.46 is shown in part (c). In part (d), the (0.82,0.82,0.82)-rooting is shown with an EMEC of 36.37.
Figure 10 shows the result of the histogram equalization with a measured EMEC of 44.29 in part (a). The result of image enhancement by the multi-retinex is shown in part (b). The image was normalized, and sizes of the Gaussian filters were taken 7, 15, and 21 as suggested [33]. The retinex enhancement has an EMEC of 16.96. One can see that the enhancement of the color image was not achieved in these two methods. For comparison, we also add the result of the color image enhancement by the 0.82-rooting. The result is shown in part (c). One can see good enhancement of the image; the color measure of enhancement equals 33.50. Measures of EMEC and EME were calculated by blocks of 5 × 5 pixels.
The quaternion image enhancement (EMEQ) measure for a quaternion image q n , m = a n , m , r n , m , g n , m , b n , m is calculated similarly [27],
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 most cases, the best parameter for color enhancement is considered the value of α with a 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 [27]. 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].
As an example, Figure 11 shows the quaternion image of 877 × 1024 pixels in part (a). The grayscale image is the real part, and the color image is the imaginary part of the quaternion image. The graph of the EMEC measure as the function of α is shown in part (b). The maximum of this function is at point 0.879. In part (c), the graphs of the measured EME of the color channels are given. The point α = 0.82 was selected, at which these graphs roughly intersect. The quaternion images after 0.879 and 0.82-rooting enhancements are shown in parts (d) and (e), respectively.

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 the (1,3)-Model

In the (1,3)-model, we consider one of the 2D QDFTs, namely, the separable right-sided 2D QDFT [27]. 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 a maximum of 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 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 .  
A total of 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 in 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 of the 2D QDFT-based alpha-rooting are presented. Many color images of art in this paper are from Olga’s Gallery—Free Art Print Museum by address https://www.freeart.com/gallery/ (accessed on 22 January 2025) with permission to use them in our research. Figure 12 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 Equation (39) with block size 7 × 7. This measure as the function EMEC( α ) has a maximum of 36.54 at this point. The measure of the original image is EMEC ( 1 ) = 34.74 .
Two EMEC functions are shown in Figure 12 in part (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 from 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 13 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 14 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 15 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 16 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 does not perform any worse but in fact better than another model, that is, the (1,3)-model.
The results of processing the well-known “flowers” image are shown in Figure 17 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 .
Figure 18 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 to 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 19 shows the color image ‘raphael155.jpg’ in part (a), which was embedded in the 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 20 and Figure 21 show the results of enhancement of the quaternion images when the color images ‘leonardo9.jpg’ and ‘flowers’ were used, respectively.

7. Conclusions

New quaternion algebra, the (2,2)-model, was presented, and new methods of alpha-rooting by the quaternion discrete Fourier transform (QDFT) were described and analyzed in this model. The main properties of this model were considered. 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 in this model were compared with the alpha-rooting in the traditional (1,3)-model. The comparison with the known methods of histogram equalization and Retinex is also provided with examples. The preliminary experimental examples show the 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. The proposed methods of alpha-rooting are fast, because of fast 1D and 2D QDFTs, and do not require much memory, as well as machine learning algorithms, which require much time and memory and do not work well on many images presented in this work.

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.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author(s).

Acknowledgments

This article is a revised and expanded version of Ref. [25], which was presented at SPIE 13033 Conference, Defense + Commercial Sensing 2024, National Harbor, MD 20745, USA, 22 April 2024.

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, 16–18 March 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, The Netherlands, 30 August–3 September 1992; IEEE Comput. Soc. Press: Washington, DC, USA, 1992; Volume 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; Volume 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]
  12. Land, E. An alternative technique for the computation of the designator in the retinex theory of color vision. Proc. Natl. Acad. Sci. USA 1986, 83, 3078–3080. [Google Scholar] [CrossRef] [PubMed]
  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.; Wang, J.; Luo, X.; Zhai, J.; Jha, S.K.; Shi, Y.-Q. 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 Process. 2022, 196, 108533. [Google Scholar] [CrossRef]
  23. Davenport, C. Commutative Hypercomplex Mathematics. Unpublished Work, 2008. Available online: https://swissenschaft.ch/tesla/content/T_Library/L_Theory/EM%20Field%20Research/Hypercomplex%20Commutative%20Mathematics.pdf (accessed on 22 January 2025).
  24. Ell, T.A.; Sangwine, S.J. Hypercomplex Fourier transforms of color images. IEEE Trans. Image Process. 2007, 16, 22–35. [Google Scholar] [CrossRef]
  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 the SPIE 13033 Conference, Defense + Commercial Sensing 2024, National Harbor, MD, USA, 21–25 April 2024; SPIE: Bellingham, WA, USA, 2024; p. 12. [Google Scholar] [CrossRef]
  26. McClellan, J.H. Artifacts in alpha-rooting of images. In Proceedings of the IEEE International Conference on Acoustics, Speech, and Signal Processing, Denver, CO, USA, 9–11 April 1980; pp. 449–452. [Google Scholar]
  27. 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]
  28. Fechner, G.T. Elements of Psychophysics; Rinehart & Winston: New York, NY, USA, 1960; Volume 1. [Google Scholar]
  29. Gordon, I.E. Theory of Visual Perception; John Wiley & Sons: New York, NY, USA, 1989. [Google Scholar]
  30. Zuiderveld, K. Contrast limited adaptive histogram equalization. In Graphics Gems IV; Academic Press: San Diego, CA, USA, 1994; pp. 474–485. [Google Scholar]
  31. Kim, Y.T. Contrast enhancement using brightness preserving bi-histogram equalization. IEEE Trans. Consum. Electron. 1997, 43, 1–8. [Google Scholar]
  32. Zhu, H.; Chan, F.H.; Lam, F.K. Image contrast enhancement by constrained local histogram equalization. Comput. Vis. Image Underst. 1999, 73, 281–290. [Google Scholar] [CrossRef]
  33. Jabson, D.J.; Rahmann, Z.; Woodell, G.A. A multiscale retinex for bridging the gap between color images and the human observations of scenes. IEEE Trans. Image Process. 1997, 6, 897–1056. [Google Scholar] [CrossRef] [PubMed]
  34. Chen, S.; Beghdadi, A. Nature rendering of color image based on Retinex. In Proceedings of the IEEE International Conference on Image Processing, Cairo, Egypt, 7–10 November 2009; pp. 1813–1816. [Google Scholar]
  35. Huang, K.-Q.; Wang, Q.; Wu, Z.-Y. Natural color image enhancement and evaluation algorithm based on human visual system. Comput. Vis. Image Underst. 2006, 103, 52–63. [Google Scholar] [CrossRef]
  36. Struc, V.; Pavei, N. Photometric normalization techniques for illumination invariance. In Advances in Face Image Analysis: Techniques and Technologies; Zhang, Y.J., Ed.; IGI Global: Hershey, PA, USA, 2011; pp. 279–300. [Google Scholar]
  37. Struc, V.; Pavei, N. Gabor-based kernel-partial-least-squares discrimination features for face recognition. Informatica 2009, 20, 115–138. [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.
Computers 14 00037 g001
Figure 2. Four quaternion-pyramids.
Figure 2. Four quaternion-pyramids.
Computers 14 00037 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.
Computers 14 00037 g003
Figure 4. The magnitude of (a) the e 2 -QDFT, (b) the e 3 -QDFT, and (c) the difference of these transforms.
Figure 4. The magnitude of (a) the e 2 -QDFT, (b) the e 3 -QDFT, and (c) the difference of these transforms.
Computers 14 00037 g004
Figure 5. (a) The image ‘7.1.10.tiff’ (from http://sipi.usc.edu/database, accessed on 22 January 2025), (b) the histogram of the image, (c) the EME function, (d) the enhanced image by the 0.83-rooting. (e) The graph of the EMEE function and (f) the image enhanced by the 0.84-rooting method.
Figure 5. (a) The image ‘7.1.10.tiff’ (from http://sipi.usc.edu/database, accessed on 22 January 2025), (b) the histogram of the image, (c) the EME function, (d) the enhanced image by the 0.83-rooting. (e) The graph of the EMEE function and (f) the image enhanced by the 0.84-rooting method.
Computers 14 00037 g005
Figure 6. (a) The original grayscale image and (b) enhanced image by (b) histogram equalization. (c) Two EME measures of alpha-rooting method, and (d) the 0.855-rooting of the image.
Figure 6. (a) The original grayscale image and (b) enhanced image by (b) histogram equalization. (c) Two EME measures of alpha-rooting method, and (d) the 0.855-rooting of the image.
Computers 14 00037 g006
Figure 7. (a) The original image, (b) EMEs of red, green, and blue components, and (c) enhanced image.
Figure 7. (a) The original image, (b) EMEs of red, green, and blue components, and (c) enhanced image.
Computers 14 00037 g007
Figure 8. (a) and (b) Two enhanced images.
Figure 8. (a) and (b) Two enhanced images.
Computers 14 00037 g008
Figure 9. (a) The original image, (b) EMEs of red, green, and blue components, and enhanced images by (c) (0.85,0.82,0.82)-rooting and (d) (0.82,0.82,0.82)-rooting.
Figure 9. (a) The original image, (b) EMEs of red, green, and blue components, and enhanced images by (c) (0.85,0.82,0.82)-rooting and (d) (0.82,0.82,0.82)-rooting.
Computers 14 00037 g009
Figure 10. Color image enhancement by (a) histogram equalization (MATLAB’s version), (b) multi-retinex algorithm (the original version [33]), and (c) method of 0.82-rooting.
Figure 10. Color image enhancement by (a) histogram equalization (MATLAB’s version), (b) multi-retinex algorithm (the original version [33]), and (c) method of 0.82-rooting.
Computers 14 00037 g010
Figure 11. (a) The quaternion fundus image, (b) the graph of the EMEC function calculated for α -rooting by the 2-D QDFT, (c) the graphs of EME functions calculated for red, green, and blue channels of the α -rooting. The enhanced quaternion after (d) 0.879-rooting and (e) 0.82-rooting.
Figure 11. (a) The quaternion fundus image, (b) the graph of the EMEC function calculated for α -rooting by the 2-D QDFT, (c) the graphs of EME functions calculated for red, green, and blue channels of the α -rooting. The enhanced quaternion after (d) 0.879-rooting and (e) 0.82-rooting.
Computers 14 00037 g011
Figure 12. (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 12. (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.
Computers 14 00037 g012
Figure 13. The enhanced images of the 0.9143-rooting: (a) in the (2,2)-model and (b) in the (1,3)-model.
Figure 13. The enhanced images of the 0.9143-rooting: (a) in the (2,2)-model and (b) in the (1,3)-model.
Computers 14 00037 g013
Figure 14. (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 14. (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.
Computers 14 00037 g014
Figure 15. (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 15. (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.
Computers 14 00037 g015
Figure 16. (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 16. (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.
Computers 14 00037 g016
Figure 17. (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 17. (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.
Computers 14 00037 g017
Figure 18. (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 18. (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.
Computers 14 00037 g018
Figure 19. (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 e 2 -QDFT 0.92-rooting.
Figure 19. (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 e 2 -QDFT 0.92-rooting.
Computers 14 00037 g019
Figure 20. (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 e 2 -QDFT 0.92-rooting ( × 4).
Figure 20. (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 e 2 -QDFT 0.92-rooting ( × 4).
Computers 14 00037 g020
Figure 21. (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 e 2 -QDFT 0.80-rooting ( × 20 ).
Figure 21. (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 e 2 -QDFT 0.80-rooting ( × 20 ).
Computers 14 00037 g021
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.
The (2,2)-ModelThe Traditional (1,3)-Model
Representation q 1 = a 1 , a 2 = [ a 1,1 , a 1,2 , a 2,1 , a 2,2 ] q 1 = a 1 + q 1 = a 1 + ( b 1 i + c 1 j + d 1 k )
Multiplication   q 1 q 2 q 1 q 2 = [ a 1 b 1 a 2 b 2 , a 1 b 2 + a 2 b 1 ]   [ a 1 q 2 + a 2 q 1 ] + a 1 a 2 q 1 · q 2 + q 1 × q 2
Multiplication rulese1 = 1e2e3e41ijk
e2−1e4e3i−1kj
e3e4−1e2jk−1i
e4e3e21kji−1
Multiplication matrix ( a 1 = a 11 ,   b 1 = a 12 ,   c 1 = a 21 ,   d 1 = a 22 )
M 1 = 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 1 = 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  
OrthogonalityNotYes
Commutativity Yes :   q 1 q 2 = q 2 q 1 Not :   q 1 q 2 q 2 q 1   or   q 1 q 2 = q 2 q 1
Zero “divisors” Yes :   1 + e 4 1 e 4 = 0 None :   q 1 q 2 = 0     q 1 = 0 ,   or   q 2 =0.
Conjugate q ¯ 1 = [ a 1,1 , a 1,2 , a 2,1 , a 2,2 ] q ¯ 1 = a 1 b 1 i c 1 j d 1 k ,
Quaternion inverse q 1 1 = 1 a 1 2 + a 2 2 [ a 1 , a 2 ] ,   a 1 2 + a 2 2 0 q 1 1 = a 1 b 1 i + c 1 j d 1 k | q 1 | 2 ,   q 1 0
Division
q = q 1 q 2
q = q 2 a 1 , a 2 1 a 1 2 + a 2 2 ,   a 1 2 + a 2 2 0 . q = q ¯ 2 q 1 | q 2 | 2   ( f r o m   l e f t )
q = q 1 q ¯ 2 | q 2 | 2   f r o m   r i g h t
Table 3. Properties of aperiodic convolution and QDFT.
Table 3. Properties of aperiodic convolution and QDFT.
The (2,2)-ModelThe (1,3)-Model
Aperiodic convolution q = q 1 q 2 = q 2 q 1 q = q 1 q 2 q 2 q 1
Exponential functionsOnly two pairsInfinite number
The pair of the QDFTOnly twoInfinite 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. Complexity of the calculations for the two algebras.
Table 4. Complexity of the calculations for the two algebras.
ModelTransformsNumber of 1D DFTsNumber of Additional MultiplicationsNumber of Additional Additions
The (1,3)-model:
General case of μ 1D QDFT4 (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 QDFT4 (real)- 4 N
2D QDFT 4 2 N = 8 N - 4 N 2 N = 8 N 2
The (2,2)-model:
1D e 2 -QDFT1D QDFT2 (complex)--
2D e 2 -QDFT2D 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.

Share and Cite

MDPI and ACS Style

Grigoryan, A.M.; Gomez, A.A. Commutative Quaternion Algebra with Quaternion Fourier Transform-Based Alpha-Rooting Color Image Enhancement. Computers 2025, 14, 37. https://doi.org/10.3390/computers14020037

AMA Style

Grigoryan AM, Gomez AA. Commutative Quaternion Algebra with Quaternion Fourier Transform-Based Alpha-Rooting Color Image Enhancement. Computers. 2025; 14(2):37. https://doi.org/10.3390/computers14020037

Chicago/Turabian Style

Grigoryan, Artyom M., and Alexis A. Gomez. 2025. "Commutative Quaternion Algebra with Quaternion Fourier Transform-Based Alpha-Rooting Color Image Enhancement" Computers 14, no. 2: 37. https://doi.org/10.3390/computers14020037

APA Style

Grigoryan, A. M., & Gomez, A. A. (2025). Commutative Quaternion Algebra with Quaternion Fourier Transform-Based Alpha-Rooting Color Image Enhancement. Computers, 14(2), 37. https://doi.org/10.3390/computers14020037

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