# Unitary rotation and gyration of pixellated images on rectangular screens

## Abstract

In the two space dimensions of screens in optical systems, rotations, gyrations, and fractional Fourier transformations form the Fourier subgroup of the symplectic group of linear canonical transformations: . Here we study the action of this Fourier group on pixellated images within generic rectangular screens; its elements here compose properly and act unitarily, i.e., without loss of information.

## 1 Introduction

Paraxial geometric, wave, and finite optical models with two-dimensional plane screens, are covariant with the Fourier group . This group consists of joint SO() phase space rotations between the coordinates and between their canonically conjugate momenta ; also it contains joint SO() gyrations in the and planes; and finally, of fractional Fourier transformations that rotate independently the and planes, and all their compositions. In the geometric model, the group is represented by matrices that are both orthogonal and symplectic [1]; in the wave model of images on the screen, , , these are subject to integral linear canonical transforms [2, 3] that represent this same group. In the finite model of optics, where images are matrices of values , the coordinates are integers that count the pixels in a rectangular screen, so the Fourier group will be represented by square matrices that are unitary. Of course, being elements of a group, these transformations can be concatenated and inverted using their simplest representation.

Previously we have considered the action of the Fourier group on finite systems, where the screens were squares [4, 5, 6]. The extension to rectangular screens where , is not trivial because rotations and gyrations to “angular momentum” Laguerre-type modes require an extended form of symmetry importation [7, 8].

In Sects. 2 and 3 we recall the foundations of the finite model of pixellated optics and the definition of the Fourier group in the paraxial geometric model. The fractional Fourier transforms have their corresponding matrix Fourier-Kravchuk transform [9] within the finite model, i.e., they are domestic to it. Rotations and gyrations however, require importation from the geometric model; this is done in Sect. 4, where we provide computed examples of these transformations and show the finite rectangular analogues of the Laguerre-Gauss modes of wave optics [10]. In Sect. 5 we offer some concluding remarks on applications to image processing.

## 2 Continuous and finite oscillator systems

The linear finite oscillator system arises as the algebra and group deformation of the well-known quantum harmonic oscillator, upon which the continuous position and momentum coordinates become discrete and finite.

Let and be the Poisson-bracket or the Schrödinger operators of position, momentum and mode number (do not confuse with the Hamiltonian, which is , indicating by the over-bar that they refer to the continuous model. On the other hand, consider the three components of quantum angular momentum, designated by the letters , and , and compare their well-known commutation relations that characterize the oscillator and spin algebras,

(1) |

The first two commutators in each line are the algebraic form of the geometric and dynamical Hamilton equations for the harmonic oscillator in phase space, under evolution by and respectively. The last two commutators however differ, and distinguish between the continuous and the finite models: in their unitary irreducible representations, the spectrum of and is continuous and fills the real line while that of is the equally-spaced set ( fixed) with integer; the spectrum of the three su() generators on the other hand, in the representation (positive integer or half-integer determined by the eigenvalue of the Casimir invariant ), is the unit-spaced set . This leads us to understand as the mode number operator of a discrete oscillator system that has modes .

The oscillator Lie algebra of generators is the contraction of the algebra with generators , when we let as the number and density of discrete points grows without bound [11]. This u() can be called the mother algebra of the finite oscillator model. The wavefunctions in each model are the overlaps between the eigenfunctions of their mode generator and their position generator; they are the Hermite-Gauss (HG) functions in the continuous model, and Kravchuk functions on the discrete position points of the finite model, given by quantum angular momentum theory as Wigner little-d functions [12, 13], for the angle between and ,

(2) |

where , , , is a symmetric Kravchuk polynomial [14], and is the Gauss hypergeometric function. These functions form multiplets under su() that have been detailed in several papers [9, 15], where they are shown to possess the desirable properties of the continuous modes. For the lowest ’s, the points fall closely on the continuous , while for higher ’s, they alternate in sign between every pair of neighbour points,

(3) |

## 3 The Fourier algebra and group

Consider now two space dimensions , the two momentum operators, the corresponding two independent mode operators, and the single 1 (with ). The Lie algebra thus generalizes (1) to

(4) |

plus and .

Out of all quadratic products of and , one obtains the 10 generators of the symplectic real Lie algebra sp(,R) of paraxial optics, whose maximal compact subalgebra is the Fourier algebra [1]. This algebra contains four up-to second degree differential operators that we identify as the generators of Fourier transformations (FT’s) and other phase space rotations,

(5) | |||||

(6) | |||||

(7) | |||||

(8) |

where is the physical angular momentum operator. Their commutation relations are

(9) |

where the indices are a cyclic permutation of . Abstractly, (6)–(8) generate rotations of a 2-sphere.

For the finite oscillator model in two dimensions we consider the direct sum of two su() algebras, whose generators form a vector basis for , which is (accidentally) homomorphic to the four-dimensional rotation algebra so() [12]. We choose the representation of this algebra to be , determined by the values of the two independent Casimir operators in . The spectra of positions in the - and -directions will thus be , as will the corresponding spectra of momenta, and modes are numbered by . We interpret the positions as the coordinates of pixels or points in an rectangular array. The two-dimensional finite harmonic oscillator functions are real and the Cartesian products of Kravchuk functions (2) in the two coordinates are [4],

(10) |

There are thus two-dimensional Kravchuk functions that can be arranged along axes of total mode and into the rhomboid pattern shown in Fig. 1. As eigenvectors of commuting operators in the Lie algebra, the Cartesian modes (10) are orthonormal and complete under the natural inner product,

(11) | |||||

(12) |

We shall assume throughout that ; when there will be evident simplifications.

Among the Cartesian modes in (10) and Fig. 1 we note that in the lower triangle, where , the right and left extremes of each constant row exhibit and nodes (changes of sign between pixel neighbours) respectively, both of which can be accommodated within the pixels of the columns and rows. As we enter the middle rhomboid, where , the right extreme can accomodate its vertical nodes within the horizontal length of the screen, but its left extreme cannot do so among its rows, so only nodes become horizontal while the rest must remain vertical. Finally in the upper triangle, where , there will be both vertical as well as horizontal nodes in all modes. From (3) it follows that

(13) |

so that the upper triangle reproduces (top bottom, left right) the modes of the lower triangle, but superposed with a checkerboard of changes of sign.

The images on the pixellated screen are value arrays that can be expanded in terms of the set of Cartesian modes (10) as

(14) |

as follows directly from linearity, and the orthonormality and completeness of the Kravchuk basis.

## 4 Importation of symmetry

In the continuous case, the two-dimensional harmonic oscillator mode functions can be arranged in a pattern similar to Fig. 1 but without an upper bound, forming an ‘inverted tower’ with the same lower apex, out of which the total mode number can grow indefinitely. Since commutes with all generators in (5)–(8) of the algebra, functions with the same total mode number will transform among themselves under the whole Fourier group. Functions with same total mode number form su() multiplets where the range of is spaced by two units. This is equivalent to have multiplets of spin , with playing the role of angular momentum projection on a ‘3’-axis.

In the finite model however, the generators of the algebra can raise and lower the modes only along the or directions of Fig. 1, but not horizontally, i.e., from one value of to its neighbours. Symmetry importation consists in defining linear transformations among the states of the finite system using the linear combination coefficients provided by continuous models [7, 8].

### 4.1 Rotations

The ‘physical’ angular momentum operator in (8) generates rotations in the continuous model; this we now import to the finite model by simply eliminating the over-bar in the notation. So, because , is a rotation around the ‘3’-axis of the sphere by the double angle . Since the eigenvalues of , , are invariant under , the eigenstates of , characterized by the difference eigenvalues , will mix with linear combination coefficients given by Wigner little- functions [5, 12, 15]. (Note that the usual 1-2-3 numbering of axes is rotated to 2-3-1.)

To act on the Cartesian finite oscillator states in (10), we note the shape of the rhomboid in Fig. 1, and define their rotation (initially as a conjecture) by

(15) |

where the values of spin and their projections must now be examined with some care. The rhomboid contains three distinct intervals of that should agree with the correct angular momentum of all imported su() multiplets in the horizontal rows of Fig. 1.

As we have assumed , we recognize that in each of the three intervals will be:

(16) |

The first two cases actually overlap for and the second two cases for , which we adjudicate to the triangles (when only the two triangles are present [4] and overlap for ). The rotation of various multiplets of two-dimensional Kravchuk modes are shown in Figs. 2.

The rotation of the pixellated images on the screen follows from (14) and the rotation (15) of the Cartesian basis,

(17) |

In Fig. 3 we show the rotation of a white on black (1’s on 0’s) image of the letter “F”. We note the inevitable ‘Gibbs’ oscillations around the sharp edges of the figure; yet we should stress that the rotated images were obtained by successive rotations of . The reconstruction of the original image after six rotations by would be impossible with any interpolation algorithm applied successively.

### 4.2 Symmetric and antisymmetric Fourier transforms

In the continuous model, the mode number operators and generate fractional Fourier transforms [9] through that multiply the continuous oscillator basis functions by phases . In the finite oscillator model, the symmetric fractional Fourier-Kravchuk transform is generated by as in (5). It acts on the Cartesian modes only multiplying them by phases,

(18) |

and commutes with all transformations in the Fourier group.

On the other hand, a rotation by around the 1-axis is generated by in (6) to produce the antisymmetric fractional Fourier-Kravchuk transforms, in the group :

(19) |

As with rotations, they can be applied to arbitrary images using the decomposition in (14) on the pixellated screen. Both and are ’domestic’ within but they mesh apropriately with the imported rotations.

### 4.3 Gyrations

In the continuous model, gyrations by around the 2-axis are generated by in (7). For they transform Hermite-Gauss to Laguerre-Gauss modes and can be realized with simple paraxial optical setups [16, 17, 18]. They are rotations that result from a rotation by around the 3-axis (antisymmetric fractional Fourier transform by angle ), a rotation around the new 1-axis, and back through around the new -axis,

(20) |

We can thus import gyrations into the finite model through replacing in (19) and (20) [6]. On the Cartesian Kravchuk modes , gyration will thus act as

(21) |

where , and are related to through (16). This set of functions forms also, as in the Cartesian case, a complete and orthogonal basis for all images on the pixellated screen. We show the gyration of modes in Fig. 4 for various values of . Note that this transformation yields complex arrays of functions, so for we show their absolute values and phases.

For , (21) defines finite functions characterized by the total mode number and an integer ‘(rectangular) angular momentum’ number , constrained by (16), and given by

(22) |

In the square screen case, when , the functions were called Laguerre-Kravchuk modes [6], whose continuous counterparts are the well-known Laguerre-Gauss modes. Within rectangular pixellated screens, the functions (22) are also orthogonal and complete,

(23) | |||||

(24) |

since they are obtained from the Cartesian states through unitary transformations. Although the notion of their angular momentum is no longer properly valid, they still bear a recognizable resemblance, as Fig. 5 shows, where the multiplets are placed on rows for all total modes in the three intervals (16).

## 5 Concluding remarks

In continuous systems, the elements of the Fourier group can be parametrized by the angle of the central symmetric Fourier transform and three Euler angles as

(25) |

On the finite pixellated screen, is correspondingly realized by subgroups of domestic Fourier-Kravchuk transformations, and imported rotations and gyrations, as

(26) |

The action of the Fourier group is unitary on all complex-valued images on pixellated screens, and hence there is no information loss under these transformations. We must repeat that the algorithm is not fast, but arguably the slowest, and will necessarily involve Gibbs-like oscillations in pixellated images with sharp ‘discontinuities’. As the previous experience with square screens suggests [5], smoothing the original values or chopping the resulting ones can restore the visual fidelity of the image, even though unitarity will be lost. It may be that in experiments where two-dimensional beams are sampled at rectangular CCD arrays, bases of discrete functions are better suited for the task than their approximation by pointwise-sampled Hemite-Gauss oscillator wavefunctions [19].

The introduction of rectangular analogues of the Laguerre-Gauss states with ‘angular momentum’ is the direct (but not trivial) generalization of those built for square screens in Ref. [4] and, as there, will predictably allow a unitary map to screens whose pixels are arranged along polar coordinates, as done in Ref. [20]. Finally, it should be noted that all the ‘discrete’ functions, starting with the Wigner little-, are actually analytic functions of continuous position in the range , with branch-point zeros at and cuts beyond. This property extends of course to the two-dimensional case for , . The discrete model can thus also accommodate a continuous model of modes in bounded screens, although the unitarity of the transformations holds only for the discrete integer points within.

## Acknowledgments

We thank the support of the Universidad Nacional Autónoma de México through the PAPIIT-DGAPA project IN101115 Óptica Matemática, and acknowledge the help of Guillermo Krötzsch with the figures.

### References

- R. Simon and K.B. Wolf, “Fractional Fourier transforms in two dimensions,” J. Opt. Soc. Am. A 17, 2368–2381 (2000).
- S.A. Collins, “Lens-system diffraction integral written in terms of matrix optics,” J. Opt. Soc. Am. 60, 1168â-1177 (1970).
- M. Moshinsky and C. Quesne, “Linear canonical transformations and their unitary representations,” J. Math. Phys. 12, 1772â-1780 (1971).
- N.M. Atakishiyev, G.S. Pogosyan, L.E. Vicent, and K.B. Wolf, “Finite two-dimensional oscillator: I. The Cartesian model,” J. Phys. A: Math. Gen. 34, 9381–9398 (2001).
- L.E. Vicent, “Unitary rotation of square-pixellated images,” Appl. Math. Comput. 221, 111–117 (2009).
- K.B. Wolf and T. Alieva, “Rotation and gyration of finite two-dimensional modes,” J. Opt. Soc. Am. A 25, 365–370 (2008).
- L. Barker, Ç. Çandan, T. Hakioğlu, and H.M. Ozaktas, “The discrete harmonic oscillator, Harper’s equation, and the discrete fractional Fourier transform,” J. Phys. A: Math. Gen. 33, 2209–2222 (2000).
- L. Barker, “Continuum quantum systems as limits of discrete quantum systems: II. State functions,” J. Phys. A: Math. Gen. 34, 4673–4682 (2001).
- N.M. Atakishiyev and K.B. Wolf, “Fractional Fourier-Kravchuk transform,” J. Opt. Soc. Am. A 14, 1467–1477 (1997).
- L. Allen, M.J. Padgett and M. Babiker, “The orbital angular momentum of light” Progress in Optics, ed. E. Wolf, Vol. XXXIX (Elsevier, 1999), pp. 294–374.
- N.M. Atakishiyev, G.S. Pogosyan, and K.B. Wolf, “Contraction of the finite one-dimensional oscillator,” Int. J. Mod. Phys. A 18, 317–327 (2003).
- L.C. Biedenharn and J.D. Louck, “Angular Momentum in Quantum Mechanics,” Encyclopedia of Mathematics and its Applications G.-C. Rota, ed. (Addison-Wesley, 1981); Sect. 3.6.
- N.M. Atakishiyev and S.K. Suslov, “Difference analogs of the harmonic oscillator,”Theor. Math. Phys. 85, 1055–1062 (1991).
- M. Krawtchouk, “Sur une généralization des polinômes d’Hermite,” C. R. Acad. Sci. Paris 189, 620–622 (1929).
- N.M. Atakishiyev, G.S. Pogosyan, and K.B. Wolf, “Finite models of the oscillator,” Phys. Part. Nucl. 36, Suppl. 3, 521–555 (2005).
- M.J. Bastiaans and T. Alieva, “First-order optical systems with unimodular eigenvalues,” J. Opt. Soc. Am. A 23, 1875–1883 (2006).
- T. Alieva and M.J. Bastiaans, “Orthonormal mode sets for the two-dimensional fractional Fourier transform,” Opt. Lett. 32, 1226–1228 (2007).
- J.A. Rodrigo, T. Alieva and M.L. Calvo, “Gyrator transform: properties and applications,” Opt. Express 15, 2190–2203 (2007).
- L.E. Vicent and K.B. Wolf, “Analysis of digital images into energy-angular momemtum modes,” J. Opt. Soc. Am. A 28, 808–814 (2011).
- N.M. Atakishiyev, G.S. Pogosyan, L.E. Vicent and K.BẆolf, “Finite two-dimensional oscillator. II: The radial model,” J. Phys. A: Math. Gen. 34, 9399–9415 (2001).