Top Banner
A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational Sciences and Optimization, 2009 邱邱邱 邱邱邱 (Huei Chi Chiu) (Huei Chi Chiu) 2009-12-17 2009-12-17
20

A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

Dec 18, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

A Parallel Matching Algorithm Based on Image

Gray Scale

A Parallel Matching Algorithm Based on Image

Gray ScaleLiang Zong, Yanhui WuLiang Zong, Yanhui Wu

cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational Sciences and Optimization, 2009

邱惠琪邱惠琪 (Huei Chi Chiu)(Huei Chi Chiu)

2009-12-172009-12-17

Page 2: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

OUTLINE

I. Introduction

II. Gray scale correlation matching

III. Parallel model and implementation

IV. Experiment results

V. Conclusions

Page 3: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

I. Introduction

• It widely used in a variety of areas such as the computer, the medical images and the aircraft guidance.

Fingerprint enrollment

Strange image

Minutia matching

Results

Page 4: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

I. Introduction Why do we need parallel processing ?

It's real-time processing system. It requires substantial computation. can shorten the overhead of gray scale matching significantly high speedup and efficiency can be acquired.

Under the parallel environment we must consider the parallel feasibility of the problem.

Page 5: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

II. Gray scale correlation matching• The know image is the template, given by .),( nmT

• The strange image given by .

),( nmS

N

m

N

nij nmTnmSjiD

1 1

200 )],(),([),(

Expansion as follows:

N

m

N

nij nmTnmSnmTnmSjiD

1 1

200 )],(),(2),(),([),(

Page 6: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

II. Gray scale correlation matching

N

m

N

nij

N

m

N

n

N

m

N

n

nmSnmT

nmSnmTjiD

1 1

2

1 1

2

1 100

),(),(

)],(),([),(

• Takes the maximum the D(i0 , j0) will takes the minimal, therefore the most accurate location is (i , j)

Page 7: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

MPI – Can be transferred form the traditional supercomputer to the cluster system.

3. Parallel model and implementation

Page 8: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

III. Parallel model and implementation

Analyze the model of serial processing, find the largest part of calculation and analyze whether it can be parallel processing.

The image pixel is a two-dimensional array and the matching deals with the pixels point by point, it could be considered as parallel processing.

Page 9: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

III. Parallel model and implementation

We can divide the strange image into p data blocks, each block has a continuous r row vectors,

r =[M/p].

rStep1 :

Page 10: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

• The master node sends P data blocks with “MPI_Send ( )” to the p slave nodes that marked the 0, 1, …(p-1).

Step2 :

Master node : sending p data blocks, accepting the results of the slave nodes calculate and calculating the results of the first block. Slave node : accept ( r + N-1) row vectors.

III. Parallel model and implementation

Page 11: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

III. Parallel model and implementation

The slave nodes marked 1, 2, 3 ... (p-1) accept data blocks which the master node sends with “MPI_Recv ( )”. The nodes marked 1, 2, 3 ... (p-2) accept ( r + N-1) row vectors and the final node (p-1) accepts [M-(p-1) * r ] row vectors.

• Each node calculates the R(i, j) and sends the results to the master node with “MPI_Send ( )”.

Step3 :

Page 12: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

IV. Experiment results

• The cluster is composed by 4 computers. The configurations as follows:The master node CPU:

Celeron 2.00GHz, Memory: 384M.

The slave nodes CPU: P4 1.5GHz, Memory: 256M.

Page 13: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

IV. Experiment results

Strange image

Template 32x32 Template 64x64

Page 14: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

node

Image size 1 2 3 4

256x256 1.53 0.83 0.59 0.42

512x512 6.81 4.71 2.53 1.91

1024x1024 32.51 18.03 12.01 9.34

Overhead of template 32x32 (S)

IV. Experiment results

Page 15: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

node

Image size 1 2 3 4

256x256 4.31 2.74 1.62 1.23

512x512 23.86 13.42 8.64 7.18

1024x1024 116.29 72.59 48.63 34.73

Overhead of template 64x64 (S)

IV. Experiment results

Page 16: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

Speedup of template 32x32

IV. Experiment results

Page 17: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

Parallel efficiency of template 64x64

IV. Experiment results

Page 18: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

V. Conclusions

In this paper, we propose an improved parallel algorithm for image gray scale matching. The algorithm is suitable for calculation intensive problems that usually spend much time on computation. Experiment results show that image gray scale matching is accurate. The algorithm can be used as a reference to image parallel processing. Our further works will focus on improving and optimizing the algorithm for better performance.

Page 19: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

Q & A ?

Page 20: A Parallel Matching Algorithm Based on Image Gray Scale Liang Zong, Yanhui Wu cso, vol. 1, pp.109-111, 2009 International Joint Conference on Computational.

THANKS !!