PowerPoint Presentation
Change the Jv(x) function in Bessel–Fourier moments to Radial Harmonic Fourier moment is the Tn(r) function as
Parallel Computing with GPU
There are six kernel functions used in our experiments:
RADIUS_KERNEL,
ARCTAN_KERNEL,
Tn_KERNEL,
EXP_KERNEL,
MATRIX_KERNEL,
RECONSTRUCT_KERNEL.
2
Parallel Computing with GPU
RADIUS_KERNEL and ARCTAN_KERNEL
Used to calculate radius values r and angular values θ from the image data as:
The r and θ values are stored as arrays in the global memory because these values are used in the Tn_KERNEL and Exp_KERNEL functions.
3
Parallel Computing with GPU
Tn_KERNEL and EXP_KERNEL
Compute the and the exponential function exp(jmθ), which are the elements of matrix A and B.
The output of these two kernels are the matrices A and B which are used in the MATRIX_KERNEL function.
In CUDA programs, a matrix would be transformed into a linearized multidimensional array[9].
4
Parallel Computing with GPU
MATRIX_KERNEL
To take advantages of both shared memory and global memory, we create a sub-matrix , which is equal to the product of two rectangular matrices in matrix A and matrix : the sub-matrix of A of dimension has the same row indices as , and the sub-matrix of of dimension has the same column indices as .
These two rectangular matrices are divided into block_size square matrices and the sum of the products of the square matrices are used to compute . The corresponding square matrices are loaded from global memory to shared memory with one thread loading one element of each matrix, and then each thread is used to compute one element of the product. Each thread will write each product into a register and then output to global memory.
5
Parallel Computing with GPU
MATRIX_KERNEL
The MATRIX_KERNEL function computes the matrix transpose and matrix-multiplication
The output of this function will be the values of Radial Harmonic Fourier moments in matrix order that are stored in global memory.
6
Parallel Computing with GPU
RECONSTRUCT_KERNEL
Finally, the RECONSTRUCT_KERNEL function processes the image reconstructions from the values of Radial Harmonic Fourier moments.
In addition, it calculates the PSNR values of the reconstructed images.
7
/docProps/thumbnail.jpeg