Image Processing Tensor Transform And Discrete Tomography With Matlab Artyom M Grigoryan pdf download
Image Processing Tensor Transform And Discrete Tomography With Matlab Artyom M Grigoryan pdf download
https://ebookbell.com/product/image-processing-tensor-transform-
and-discrete-tomography-with-matlab-artyom-m-grigoryan-4421784
https://ebookbell.com/product/from-algebraic-structures-to-tensors-
digital-signal-and-image-processing-matrices-and-tensors-in-signal-
processing-set-1st-edition-grard-favier-editor-11363588
https://ebookbell.com/product/tensors-in-image-processing-and-
computer-vision-santiago-ajafernandez-rodrigo-de-luis-garca-dacheng-
tao-xuelong-li-36969238
https://ebookbell.com/product/image-processing-and-intelligent-
computing-systems-1st-prateek-singhal-47425180
https://ebookbell.com/product/image-processing-masterclass-with-
python-first-sandipan-dey-47616880
Image Processing With Imagej Second Edition 2nd Edition Jurjen Broeke
https://ebookbell.com/product/image-processing-with-imagej-second-
edition-2nd-edition-jurjen-broeke-50195496
https://ebookbell.com/product/image-processing-in-biological-science-
proceedings-of-a-conference-held-november-1966-reprint-2020-wilfrid-j-
dixon-editor-mary-a-b-brazier-editor-bruce-d-waxman-editor-diane-m-
ramsey-editor-51817642
https://ebookbell.com/product/image-processing-and-communications-
challenges-2-ryszard-s-choras-52873854
https://ebookbell.com/product/image-processing-and-machine-learning-
volume-2-advanced-topics-in-image-analysis-and-machine-learning-1st-
edition-erik-cuevas-54730812
https://ebookbell.com/product/image-processing-and-machine-learning-
volume-1-foundations-of-image-processing-1st-edition-cuevas-54734782
Electrical Engineering
Image Processing
Tensor Transform and Discrete
Tomography with MATLAB®
Image
Focusing on mathematical methods in computer tomography, Image
Processing: Tensor Transform and Discrete Tomography with
MATLAB® introduces novel approaches to help in solving the problem
of image reconstruction on the Cartesian lattice. Specifically, it
Processing
discusses methods of image processing along parallel rays to more Tensor Transform and Discrete
quickly and accurately reconstruct images from a finite number of
projections, thereby avoiding overradiation of the body during a
computed tomography (CT) scan. Tomography with MATLAB®
The book presents several new ideas, concepts, and methods, many
of which have not been published elsewhere. New concepts include
methods of transferring the geometry of rays from the plane to the
Cartesian lattice, the point map of projections, the particle and its X-ray set
field function, and the statistical model of averaging. The authors
supply numerous examples, MATLAB®-based programs, end-of-chapter
problems, and experimental results of implementation.
image f(n,m)
The main approach for image reconstruction proposed by the authors
differs from existing methods of back-projection, iterative reconstruction,
and Fourier and Radon filtering. In this book, the authors explain how
to process each projection by a system of linear equations, or linear
convolutions, to calculate the corresponding part of the 2-D tensor
or paired transform of the discrete image. They then describe how projection
to calculate the inverse transform to obtain the reconstruction. The ø=26.565º
proposed models for image reconstruction from projections are simple
and result in more accurate reconstructions.
K14749
ISBN: 978-1-4665-0994-8
90000
9 781466 509948
Artyom M. Grigoryan n Merughan M. Grigoryan
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
This book contains information obtained from authentic and highly regarded sources. Reasonable efforts
have been made to publish reliable data and information, but the author and publisher cannot assume
responsibility for the validity of all materials or the consequences of their use. The authors and publishers
have attempted to trace the copyright holders of all material reproduced in this publication and apologize to
copyright holders if permission to publish in this form has not been obtained. If any copyright material has
not been acknowledged please write and let us know so we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmit-
ted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented,
including photocopying, microfilming, and recording, or in any information storage or retrieval system,
without written permission from the publishers.
For permission to photocopy or use material electronically from this work, please access www.copyright.
com (http://www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood
Drive, Danvers, MA 01923, 978-750-8400. CCC is a not-for-profit organization that provides licenses and
registration for a variety of users. For organizations that have been granted a photocopy license by the CCC,
a separate system of payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used
only for identification and explanation without intent to infringe.
Visit the Taylor & Francis Web site at
http://www.taylorandfrancis.com
♣
This page intentionally left blank
Contents
Author Bios xi
Preface xiii
2 Direction Images 41
vii
viii IMAGE PROCESSING
Bibliography 423
Appendix A 427
Appendix B 433
Index 441
Author Bios
xi
This page intentionally left blank
Preface
xiii
xiv IMAGE PROCESSING
Symbol Description
1
2 CHAPTER 1: 2-D DFT
FIGURE 1.1
Block-diagram of calculation of the 2-D discrete transform (DT) (separable).
where t denotes the matrix operation of transposition, and square brackets [·]
are used to denote the matrices of the transformations T and image f.
As an example, we consider the 2-D DFT of the image fn,m , which is
defined by
X N−1
N−1 X
Fp,s = (FN,N ◦ f)p,s = fn,m W np+ms , p, s = 0 : (N − 1), (1.1)
n=0 m=0
Image Processing 3
where Fn (s) is the value of the 1-D DFT of row number n at point s. To
calculate the 2-D DFT, 2N 1-D DFTs are used in the row-column algorithm.
This algorithm is simple, but requires many operations of multiplication and
addition. All twiddle coefficients, W t , t = 0 : (N − 1), lie on N equidistant
points of the unit circle, and many of them are irrational numbers.
We now consider the transformation whose kernel lies only on two points
±1 on the unit circle. The 2-D separable discrete Hadamard transform of order
N × N, where N = 2r , r > 1, is defined as
X N−1
N−1 X
Ap,s = (AN,N ◦ f)p,s = fn,m a(p; n)a(s; m)
n=0 m=0
N−1
" # (1.3)
X N−1 X
= fn,m a(s; m) a(p; n).
n=0 m=0
where (n0 , n1 , ..., nr) and (p0 , p1 , ..., pr) are the binary representation of num-
bers n and p, respectively.
As an example, Figure 1.2 shows an image (2048 × 2048) in part a, along
with the 2-D discrete Fourier and Hadamard transforms of the image in b and
c, respectively. The realization of the Hadamard transformation requires only
operations of addition (and subtraction). From the computational point of
view, the 1-D Hadamard transform is faster than the complex Fourier trans-
form. These two different transforms can share the same fast algorithm. For
instance, the fast Fourier transform by the paired transforms can also be used
for the fast Hadamard transform, when considering all twiddle coefficients W t
equal 1 [45].
We now present the tensor approach and its improvement, for dividing
the calculation of the 2-D DFT into the minimal number of short 1-D trans-
forms. The approach is universal because it can be implemented to calculate
other discrete unitary transforms, such as the Hadamard, cosine, and Hartley
transforms [39, 45, 48], and transforms of high dimensions.
4 CHAPTER 1: 2-D DFT
FIGURE 1.2
(a) Original image of size 2048 × 2048, (b) 2-D DFT (in absolute mode and
shifted to the center), and (c) 2-D DHdT of the image.
FIGURE 1.3
Block diagram of image processing by 1-D signals. (DSP = digital signal
processing)
176 200
174 160
140
173
120
172
100
171
80
170
60
169 40
168 20
167 0
0 50 100 150 200 250 0 50 100 150 200 250
1 176
original signal
175
0.95
174
0.9
173
0.85 172
0.8 171
new signal
170
0.75
169
0.7
168
0.65 167
0 50 100 150 200 250 0 50 100 150 200 250
250
200
150
100
50
0
0 50 100 150 200 250
where ap1 ,p2 ,n1 ,n2 = ϕp1 ,p2 (n1 , n2 ) are coefficients of the matrix of the trans-
formation A. Elements (p1 , p2 ) ∈ X are referred to as frequency-points. We
assume that the image f and the transform A ◦ f are defined on the same
two-dimensional rectangular integer lattice of size N1 × N2 ,
and the transformation is unitary. The matrices of the transformation and its
conjugate are symmetric,
1 j2π 1 j2π
FN = √ || e− N np ||n,p=0:(N−1), ∗
[FN ] = √ || e N np ||n,p=0:(N−1),
N N
∗
and [FN ][FN ] = I. The conjugate matrix is thus the matrix of the inverse 1-D
DFT.
The orthogonality of the basis functions of the 2-D DFT follows directly
from the orthogonality of the basis functions of the 1-D DFT, because of
separability ϕp,s (n, m) = ϕp (n)ϕs (m). Indeed, the following calculations hold:
X N−1
N−1 X X N−1
N−1 X
ϕp1 ,s1 (n, m)ϕ̄p2 ,s2 (n, m) = ϕp1 (n)ϕs1 (m)ϕ̄p2 (n)ϕ̄s2 (m)
n=0 m=0 n=0 m=0
N−1
X N−1
X
= ϕp1 (n)ϕ̄p2 (n) ϕs1 (m)ϕ̄s2 (m) = δ(p1 , p2 )δ(s1 , s2 ).
n=0 m=0
with generators (p1 , p2 ) from a certain subset J ⊂ X = XN1 ,N2 . The cyclic
group T with a generator (p1 , p2) is defined as a set of frequency-points which
are integer multiples to the generator,
T = Tp1 ,p2 = {(kp1 , kp2 ); k = 0 : (card T − 1)} (1.14)
We use the short notation kpi = (kpi ) mod Ni for i = 1 : 2.
Example 1.2 ((Lattice 3 × 3)) The covering of the lattice 3 × 3 can be de-
fined by σ = (T1,0 , T1,1 , T1,2 , T0,1) as shown
• • • • ◦ ◦ • ◦ ◦ • ◦ ◦ • • •
• • • = • ◦ ◦ , ◦ • ◦ , ◦ ◦ • , ◦ ◦ ◦ .
• • • • ◦ ◦ ◦ ◦ • ◦ • ◦ ◦ ◦ ◦
X3,3 T1,0 T1,1 T1,2 T0,1
10 CHAPTER 1: 2-D DFT
When the generator is (1, 1), all elements of the group T1,1 are located along
the diagonal of the lattice. All elements of the group T1,0 are located on the
first row of the lattice, and the elements of group T0,1 are located on the first
column of the lattice.
All other groups Tp,s coincide with the groups of the covering σ. For in-
stance, T0,2 = T0,3 = T0,1 , T2,2 = T3,3 = T1,1 , and T2,1 = T1,2 .
J = J5,5 = {(0, 1), (1, 1), (2, 1), (3, 1), (4, 1), (1, 0)}. (1.16)
Figure 1.5 shows the location of all frequency-points of these six groups. These
groups intersect only at point (0, 0). If the covering composed of these groups
reveals the 5 × 5-point 2-D transformation, then this transformation can be
split by six five-point 1-D transformations. This transformation is the Fourier
transformation. To calculate, for instance, the 5 × 5-point 2-D DFT, only
six 1-D five-point transforms are required, instead of ten transforms in the
“row-column” method.
In the general N × N case, the elements of the group Tp1 ,p2 lie on parallel
lines at angle θ = tan−1 (p2 /p1 ) to the horizontal axis. The number l of such
lines is determined as follows. If p1 = 0 or p2 = 0, then l = 1. For other
cases, let k1 and k2 be the smallest integers satisfying the relations k1 p1 =
k2 p2 = N − 1. Then, l = k1 /k2 with k1 ≥ k2 , and l = k2 /k1 with k1 < k2 .
Image Processing 11
4 4 4
3 3 3
2 2 2
1 1 1
0 0 0
0 1 2 3 4 0 1 2 3 4 0 1 2 3 4
4 4 4
3 3 3
2 2 2
1 1 1
0 0 0
0 1 2 3 4 0 1 2 3 4 0 1 2 3 4
FIGURE 1.5
Arrangement of frequency-points of groups Tp1 ,p2 covering the lattice 5 × 5.
For instance, when N = 5 and (p1 , p2 ) = (2, 1), we obtain 2p1 = 4p2 = 4 and
l = 4/2 = 2. The frequency-points of the group T2,1 lie on two parallel lines at
angle θ = tan−1 (1/2) = 26.5651◦ to the horizontal axis (see Figure 1.5). The
points of this group can also be considered as lying on three parallel lines at
angle θ1 = θ − 90◦ = −63.4349◦ to the horizontal axis.
It is important to note, that if we splice the opposite sides of the lattice
bounds, then the lattice will be represented as a net traced on the surface
of a three-dimensional torus and the mentioned l lines will compose a closed
spiral on the torus, which will pass through those points on the net, which
correspond to the points (0, 0) and (p1 , p2 ). All elements of the cyclic group
will be the points of intersection of the spiral with the net. As an example,
(0,0)
T1,2
T1,1
Figure 1.6 shows the points of the lattice X20,20 on the torus and two spirals
with frequency-points of the groups T1,1 and T1,2 which intersect at the knot
(0, 0).
The irreducible covering σ of the domain X composed from groups (1.14)
is unique. To illustrate this property, we consider the square lattice X5,5 . The
irreducible covering σ of X5,5 is the family of six groups given in (1.15),
σ = (T0,1 , T1,1 , T2,1 , T3,1, T4,1 , T1,0 ).
The cyclic group Tp1 ,p2 with any other generatrix (p1 , p2 ) 6= (0, 0), different
from generators (0, 1), (1, 1), (2, 1), (3, 1), (4, 1) and (1, 0), coincides with one
of the groups of the covering σ. For instance,
T1,2 = {(0, 0), (1, 2), (2, 4), (3, 1), (4, 3)} = T3,1 ,
T3,2 = {(0, 0), (3, 2), (1, 4), (4, 1), (2, 3)} = T4,1 ,
T2,2 = {(0, 0), (2, 2), (4, 4), (1, 1), (3, 3)} = T1,1 .
Fp1 ,p2 = (F ◦ f)p1 ,p2 = fn1 ,n2 WNn11p1 WNn22 p2 , (p1 , p2) ∈ X, (1.17)
n1 =0 n2 =0
In other words, N components Fkp1,kp2 of the 2-D DFT of the image f can
be represented by the 1-D sequence of length N,
fTp1 ,p2 = {fp1 ,p2 ,0 , fp1 ,p2 ,1 , . . . , fp1 ,p2 ,N−1 } . (1.22)
The sequence fTp1 ,p2 determines the spectral information of the image at
frequency-points of the set Tp1 ,p2 . Such a sequence is called the splitting-signal,
or the image-signal. The components of the splitting-signal are numbered by
the set of three, or triplets (p1 , p2 , t), where two components represent the
frequency (p1 , p2 ) and t is referred to as the time. Thus the splitting-signal
is the (2-D frequency)-(1-D time) representation of the 2-D image f, which
defines the full 2-D DFT of f at the frequency-points of the set Tp1 ,p2 .
The set of splitting-signals
We here separately consider the set of generators for the most interesting
cases, when N1 = N2 = N, and N is a general prime, the product of two
prime numbers, and then we describe the case when N is a power of prime.
1.4.2 N is prime
Let N > 1 be the prime. The irreducible covering σJ of the set XN,N has the
cardinality N + 1, i.e.,
card σJ = N + 1. (1.26)
Thus, the least number of cyclic groups Tp,s that together cover the period
X equals (N + 1). Indeed, the irreducible covering σJ is determined by the
following set of generators:
J = JN,N = {(0, 1), (1, 1), (2, 1), ..., (N − 1, 1), (1, 0)}. (1.27)
J = {(1, 0), (1, 1), (1, 2), ..., (1, N − 1), (0, 1)}.
5 5 5 5
0 0 0 0
0 1 2 0 1 2 0 1 2 0 1 2
20 20 20 20
15
|Ak| 15
|Bk| 15
|Ck| 15
|Dk|
10 10 10 10
5 5 5 5
0 0 0 0
0 1 2 0 1 2 0 1 2 0 1 2
2 2 2 2
1 1 1 1
0 0 0 0
−1 −1 −1 −1
−1 0 1 2 3 −1 0 1 2 3 −1 0 1 2 3 −1 0 1 2 3
FIGURE 1.7
Four splitting-signals (the first row), the 3-point DFTs (in absolute scale)
of the splitting-signals (the second rows), and the location of the frequency-
points of the cyclic groups T ∈ σ (the third row).
1 0 0 1 0 0 1 0 0
0 1 0 0 1 0 0 1 0
0 0 1 0 0 1 0 0 1
1 0 0 0 0 1 0 1 0
0 1 0 1 0 0 0 0 1
0 0 1 0 1 0 1 0 0
[χσ ] =
1
. (1.33)
0 0 0 1 0 0 0 1
0 1 0 0 0 1 1 0 0
0 0 1 1 0 0 0 1 0
1 1 1 0 0 0 0 0 0
0 0 0 1 1 1 0 0 0
0 0 0 0 0 0 1 1 1
In matrix form, the described tensor algorithm of the 3 × 3-point DFT can
be written as
F0,0 11 1
F0,1 1 W W 2
F0,2 1 W 2 W
2
F1,1 1W W
2
F2,2 = 1W W [χσ ]f .
2
F2,1 1W W
2
F1,2 1W W
2
F1,0 1W W
F2,0 1W 2 W
The tensor algorithm of the 3 × 3-point DFT uses the following number of
arithmetical operations: 4 real multiplications and 38 real additions, because
the sequence f is real. Indeed, since W 2 = −1 − W, we have the following:
x
F1 1 W W2 x + W y − (z + W z)
= y =
F2 1W 2 W x − (y + W y) + W z
z (1.34)
x − z + W (y − z)
= .
x − y − W (y − z)
In the general case, for a prime number N > 3, in the traditional row-column
algorithm, 2N one-dimensional N -point DFTs are used. Therefore, the tensor
algorithm decreases the number of multiplications by 2N/(N + 1) times, i.e.,
almost by 2 times, for large N. The tensor transform χσ requires N 3 − N
additions.
0 1 2 3 4
2 3 4 0 1
||t = (n1 · 2 + n2 · 1) mod 5||n2,n1 =0:4 = 4 0 1 2 3 .
1 2 3 4 0
3 4 0 1 2
and fT2,1 = {9, 12, 7, 6, 8}. The sum of the this signal equals the sum of the
image f, i.e.,
4
X 4
X 4
X
f2,1,t = 9 + 12 + 7 + 6 + 8 = 42 = fn1 ,n2 .
t=0 n1 =0 n2=0
This transform coincides with the 2-D DFT of the image f at frequency-points
of the group
T2,1 = {(0, 0), (2, 1), (4, 2), (1, 3), (3, 4)},
as shown in the following table:
2 3
42 0 0 0 0
60
6 0 0 −3.1631 + 1.4001j 0 7
7
6 0 4.6631 − 4.3920j 0 0 0 7.
6 7
40 0 0 0 4.6631 + 4.3920j 5
0 0 −3.1631 − 1.4001j 0 0
We can fill the remaining values of the 2-D DFT, by calculating the 1-D
DFTs of other splitting-signals. For instance, for the signal corresponding to
the generator (p1 , p2 ) = (3, 1), we have the following table of time-points:
0 1 2 3 4
3 4 0 1 2
||t = (n1 · 3 + n1 · 1) mod 5||n2,n1 =0:4 = 1 2 3 4 0 .
4 0 1 2 3
2 3 4 0 1
and fT3,1 = {6, 5, 9, 14, 8}. The five-point DFT of this splitting-signal equals
This transform defines the 2-D DFT of the image at frequency-points of the
group T3,1 = {(0, 0), (3, 1), (1, 2), (4, 3), (2, 4)}. In this stage, the 2-D DFT is
filled as shown in the following table:
2 3
42 0 0 0 0
60
6 0 2.5902 − 2.9919j −3.1631 + 1.4001j 0 7
7
6 0 4.6631 − 4.3920j 0 0 −8.5902 − 5.7921j 7
6 7.
4 0 −8.5902 + 5.7921j 0 0 4.6631 + 4.3920j 5
0 0 −3.1631 − 1.4001j 2.5902 + 2.9919j 0
In a similar way, the 1-D DFTs of the splitting-signals fT0,1 , fT1,1 , fT4,1 ,
and fT1,0 fill the rest of the table of the 2-D DFT of the image f. The tensor
20 CHAPTER 1: 2-D DFT
% ===============================================================
% Call: TT2D_Nisprime.m / A.M. Grigoryan, 11/17/2001
% Demo code for calculating the NxN-point DFT by 2-D DTT.
% (N+1) N-point DFT are used, when N is a prime number.
% For each generator (p,s), two functions are called:
% ft_pst(image,p,s) - calculates the splitting-signal
% cyclic_group(p,s,N) - calculates the cyclic group T(p,s)
% The "tree" image can be taken from the library of
% The Signal and Image Processing Institute, University of
% Southern California, by address http://sipi.usc.edu/database/
fid=fopen(’tree.img’,’rb’);
f=fread(fid,[256,256]); fclose(fid); clear fid; f=f’;
% extend this image to the size 257x257 as
f(:,257)=f(:,256); f(257,:)=f(256,:);
% Set of generators J(257,257)
N=257; N1=N+1;
Jps=ones(2,N1); Jps(1,1:N)=0:N-1; Jps(1:2,N1)=[1,0];
% 2-D DFT by the tensor transform
FT=zeros(N);
for k=1:N1
s=Jps(1,k); p=Jps(2,k);
Image_signal=zeros(1,N); Image_signal=ft_pst(f,p,s);
TDFFT_signal=fft(Image_signal); T_ps=cyclic_group(p,s,N)+1;
for k=1:N
p1=T_ps(k,1); s1=T_ps(k,2); FT(s1,p1)=TDFFT_signal(k);
end
end
% Verify if the 2-D DFT has been calculated correctly
Inv_image=real(ifft2(FT));
Inv_image=Inv_image.*(Inv_image>=0); Inv_image=round(Inv_image);
% Display the original image and inverse 2-D DFT
figure; colormap(gray)
subplot(1,3,1); imagesc(f);
axis(’image’); axis(’off’); title(’Original image’);
Image Processing 21
subplot(1,3,2); image(abs(FT)/N);
axis(’image’); axis(’off’); title(’2-D DFT by TT’);
subplot(1,3,3); imagesc(Inv_image);
axis(’image’); axis(’off’); title(’Inverse 2-D DFT’);
% ============================================================
function T_ps=cyclic_group(p1,p2,N)
T_ps=zeros(N,2); p=0; s=0;
for k=1:N
if p>=N p=p-N; end
if s>=N s=s-N; end
T_ps(k,:)=[p,s]; p=p+p1; s=s+p2;
end
This program also prints the original image, the 2-D DFT and its inverse,
to verify the calculations.
All ones in the masks of the functions lie on parallel lines passing the knots
of the corresponding sets Vp,s,t .
0 1 2 3
1 2 3 0
||t = (n · 1 + m · 1) mod 4||n,m=0:3 = .
2 3 0 1
3 0 1 2
Coefficients of this matrix show the points of sets V1,1,t , t = 0 : 3. The image-
signal fT1,1 is defined as
f1,1,0 = f0,0 + f3,1 + f2,2 + f1,3 = 1 + 2 + 2 + 1 = 6
f1,1,1 = f1,0 + f0,1 + f3,2 + f2,3 = 2 + 2 + 1 + 3 = 8
fT1,1 = (1.40)
f1,1,2 = f2,0 + f1,1 + f0,2 + f3,3 = 1 + 1 + 1 + 2 = 5
f1,1,3 = f3,0 + f2,1 + f1,2 + f0,3 = 1 + 3 + 1 + 3 = 8.
27 ◦ ◦ ◦
◦ 1 ◦ ◦
fT1,1 = {6, 8, 5, 8} → Fk = {27, 1, −5, 1} → .
◦ ◦ −5 ◦
◦ ◦ ◦ 1
For the generator (p, s) = (1, 2), the corresponding matrix of equations
np + ms = t mod N, t = 0 : 3, is calculated as follows:
0 2 0 2
1 3 1 3
||t = (n · 1 + m · 2) mod 4||n,m=0:3 = .
2 0 2 0
3 1 3 1
Image Processing 23
0 1 0 0 2 4 1 2
and similarly we obtain the next three components
f1,1,1 = χ1,1,1 ◦ f = 2 + 2 + 2 + 1 = 7
f1,1,2 = χ1,1,2 ◦ f = 1 + 0 + 1 + 2 = 4 (1.48)
f1,1,3 = χ1,1,3 ◦ f = 3 + 1 + 3 + 2 = 9.
Thus, the splitting-signal fT1,1 = {8, 7, 4, 9}. The four-point DFT of this signal
equals (A0 , A1 , A2 , A3 ) = (28, 4 + 2j, −4, 4 − 2j), which defines the 2-D DFT
of f at the frequency-points (0, 0), (1, 1), (2, 2), and (3, 3). At this step, we can
write the other three values of the 2-D DFT as follows:
F0 F1 F2 F3 28 1 − j −6 1 + j
0 A1 0 0 0 4 + 2j 0 0
0 0 A2 0 = 0
.
0 −4 0
0 0 0 A3 0 0 0 4 − 2j
Image Processing 25
The first component, A0 , equals F0 = 28, and could be omitted from the
calculations to avoid the redundancy. The redundancy of calculation takes
place for other splitting-signals not only at frequency-point (0, 0), but at
frequency-points with even coordinates, i.e., in the quarter of all frequency-
points, and that can be seen in Figure 1.8.
FIGURE 1.8
The disposition of frequency-points of six groups T of the covering σ of X4,4 .
0 0 0 A3 0 0 0 4 − 2j
It is clear, that the incomplete four-point DFT is required, to avoid calcula-
tions for components B0 and B2 , which have already been calculated.
We continue the calculation of the 2-D DFT. The four-point DFT of
the splitting-signal fT3,1 = {5, 7, 7, 9} equals (C0 , C1 , C2 , C3) = (28, −2 +
2j, −4, −2 − 2j). It defines the 2-D DFT of f at the frequency-points
(0, 0), (3, 1), (2, 2), and (1, 3). At this step, we can record two new values of
the 2-D DFT as follows:
F0 F1 F2 F3 28 1 − j −6 1+j
0 A1 0 C3 0 4 + 2j 0 −2 − 2j
0 B1 A2 B3 = 0 −3 + j −4 −3 − j .
0 C1 0 A3 0 −2 + 2j 0 4 − 2j
For this signal, the incomplete four-point DFT is required to avoid calculations
for components C0 and C2 , which have already been calculated in the second
step of our calculations (when (p, s) was (1, 1)).
The remaining five values of the 2-D DFT will be calculated by
the splitting-signals corresponding to the generators (1, 0) and (1, 2). The
splitting-signal fT1,0 = {7, 4, 8, 8}. The four-point DFT of this signal equals
(D0 , D1 , D2 , D3 ) = (28, −1 + 5j, 2, −1 − 5j) and defines the 2-D DFT of f at
26 CHAPTER 1: 2-D DFT
the frequency-points (0, 0), (1, 0), (2, 0), and (3, 0). At this step, we can record
three new values of the 2-D DFT as follows:
F0 F1 F2 F3 28 1 − j −6 1+j
D1 A1 0 C3 −1 + 5j 4 + 2j 0 −2 − 2j
D2 B1 A2 B3 =
.
2 −3 + j −4 −3 − j
D3 C1 0 A3 −1 − 5j −2 + 2j 0 4 − 2j
The redundancy of calculation on this step is only at (0, 0). At the last step,
the four-point DFT of the splitting-signal fT1,2 = {7, 9, 8, 4} is calculated. It
equals (E0 , E1, E2 , E3 ) = (28, −1 − 5j, 2, −1 + 5j) and defines the 2-D DFT of
f at the frequency-points (0, 0), (1, 2), (2, 0), and (3, 2). We fill the 2-D DFT
with the values of E1 and E2 ,
2 3 2 3 2 3
F0 F1 F2 F3 28 1−j −6 1+j F0,0 F0,1 F0,2 F0,3
7 = 6 −1 + 5j 4 + 2j −1 − 5j −2 − 2j 7 = 6 F1,0
6 D1 A1 E1 C3 7 6 7 6 F1,1 F1,2 F1,3 7
6 7.
4 D2 B1 A2 B3 5 4 2 −3 + j −4 −3 − j 5 4 F2,0 F2,1 F2,2 F2,3 5
D3 C1 E3 A3 −1 − 5j −2 + 2j −1 + 5j 4 − 2j F3,0 F3,1 F3,2 F3,3
Example 1.10 (Image 256 × 256) Figure 1.10 illustrates the image 256 ×
256 in part a, along with the 1-D DFT over the image-signal fT1,3 of length
256 in c, and the magnitude spectrum of the image in d. Three bright parallel
lines on the spectrum show the samples at points of the group T1,3 at which
the 2-DFT of the image is the 1-DFT of the image-signal.
The 2-D DFT at samples at this group has been amplified, in order to see
the location of the group and directions of the projection, along which the
components of the tensor are calculated as sums of line-integrals. The image
after amplifying the 2-DFT at samples of the group T1,3 is shown in part b.
The effect of amplifying those spectral components illustrates the meaning of
Equation (1.21). The projections are calculated at angle ψ = 18.4349◦ and the
1-D DFT fills the 2-D DFT along three lines at angle θ = 90 − ψ = 71.5651◦.
Image Processing 27
176
174
fT (t)
16,1
172
170
t
168
0 50 100 150 200 250
(a) (b)
43885
150
F0=43885
200
100
150
100
50
50
0 200
200 100 p1
0 p2 100
0 50 100 150 200 250 0 0
(c) (d)
FIGURE 1.9
(a) The image 256 × 256, (b) image-signal corresponding to the generator
(p1 , p2 ) = (16, 1), (c) absolute spectrum of the image-signal (with the trun-
cated zero component), and (d) the arrangement of values of the 1-D DFT in
the 2-D DFT of the image (in the 3-D view).
Example 1.11 (Image 512 × 512) Figure 1.11 illustrates the image of size
512 × 512 in part a, along with the splitting-signal fT3,1 of length 512 in b, the
1-D DFT over this splitting-signal in c, and points of the subset T3,1 at which
the 2-D DFT of the image is filled by the 1-D DFT in d. The image is the
max-image of stacked fluorescent in situ hybridization (FISH) images arising
from normal glands. In general, the image f is real and components fp,s,t can
be considered to be coefficients of decomposition of the 2-D DFT in the group
Tp,s by the cos(ωx)- and sin(ωx)-waves with the frequency ω = 2πt/N. In
the 3-D representation fn,m → fp,s,t , two dimensions correspond to frequency
(p, s) and one dimension refers the time coordinate t of the signal fTp,s .
90°
ψ θ
(a) (b)
50
1−D DFT of fT
40 1,3
amplitude
30
20
10
0
0 50 100 150 200 250
ω
(c) (d)
FIGURE 1.10
(a) Image 256 × 256. (b) Image after amplifying the 2-DFT at samples of
the group T1,3 . (c) Absolute value of the 1-D DFT of the image-signal fT1,3
(zero component is shifted to the center and truncated). (d) 2-D DFT of the
image with amplified samples at the group T1,3 . Angles ψ = 18.4349◦ and
θ = 71.5651◦.
46
44
42
40
38
0 100 200 300 400 500
(a) (b)
150
DFT(0)=2233
100
T3,1
50
0
0 100 200 300 400 500
(c) (d)
FIGURE 1.11
(a) FISH image, (b) the splitting-signal fT3,1 , (c) 1-D DFT of the splitting-
signal (in absolute scale and shifted), and (d) arrangement of values of the
1-D DFT in the 2-D DFT of the image at frequency-points of the set T3,1 .
of the square lattice XN,N can be implemented in the following way [48]. We
first define the set BN = {n ∈ XN ; g.c.d.(n, N ) > 1} and function β(p), which
equals the number of elements s ∈ BN being coprime with p and such that
ps < N. Then the set of generators can be defined as follows:
N−1
[ [ [ [ [
J= (p, 1) 1, s) (p, s) . (1.52)
p=0 s∈BN p,s∈BN , g.c.d.(p,s)=1, p,s≤N
The number of generators in this set, or the number of 1-D DFTs required to
calculate the 2-D N × N -point DFT equals
X
card σJ = 2N − φ(N ) + β(p) (1.53)
p∈BN
where we denote the Euler’s function by φ(N ), that is, the number of positive
integers P
that are smaller than N and coprime with N. It is easy to verify, that
φ(N ) ≥ {β(p); p ∈ BN }, so that card σ ≤ 2N.
FIGURE 1.12
Arrangement of frequency-points of groups Tp1 ,p2 covering the lattice X3,6 .
The locations of frequency-points of the five cyclic groups Tp,s of the covering
are shown in Figure 1.13.
The groups are intersected only at 12 frequency-points with even coordi-
nates. Therefore, the transformation F6,8 can be split by one 24-point DFT,
two incomplete 24- and 12-point DFTs, and two incomplete six-point DFTs.
These incomplete DFTs are not calculated for the components with even
points, and, therefore, they can be reduced to calculation of the DFTs of
twice smaller orders. Thus the 6 × 8-point DFT can be split by the 24-, 12-,
32 CHAPTER 1: 2-D DFT
6 6 6 6 6
4 4 4 4 4
2 2 2 2 2
0 0 0 0 0
0 5 0 5 0 5 0 5 0 5
FIGURE 1.13
Arrangement of frequency-points of groups Tp,s covering the lattice X6,8 .
and 6-point DFTs, and two 3-point DFTs, and the redundancy of calculations
in the tensor algorithm will be removed.
where p = 0 : (N − 1).
In matrix form, the DFT in the space R2N is described by the following
matrix 2N × 2N :
I I I I I I
I T 1 T 2 T 3 · · · T N−1
2
X= I T T 4 T 6 · · · T N−2 . (1.56)
I · · · · · · · · · · · · · · ·
I T N−1 T N−2 T N−3 T1
The (n, p)-th blocks 2 × 2 of this matrix is T np, where n, p = 0 : (N − 1). The
matrix I = I2 is the identity matrix 2 × 2. The rotation matrices T k compose
a one-parametric group with period N. In other words
T k1 +k2 = T k1 T k2 , (T 0 = T N = I),
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.1. Project Gutenberg volunteers and employees expend
considerable effort to identify, do copyright research on,
transcribe and proofread works not protected by U.S. copyright
law in creating the Project Gutenberg™ collection. Despite these
efforts, Project Gutenberg™ electronic works, and the medium
on which they may be stored, may contain “Defects,” such as,
but not limited to, incomplete, inaccurate or corrupt data,
transcription errors, a copyright or other intellectual property
infringement, a defective or damaged disk or other medium, a
computer virus, or computer codes that damage or cannot be
read by your equipment.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
ebookbell.com