Filter löschen
Filter löschen

How to perform pixel-by-pixel matching to check whether a query image exist in the template database or not.

1 Ansicht (letzte 30 Tage)
I am working on dorsal hand vein recognition system. I have already binarised and pre-processed the image followed by feature extraction (white pixels coordinates) of the thinned vein patterns as shown below in the figure (Image 1). These steps were repeated for 10 images and having their coordinates stored in .txt file.
Now, let's say I have a query image (Image 2) as below where all the mentioned above steps have been applied and coordinates were retrieved.
From here, how do I proceed with the Euclidean distance or pixel-by-pixel matching or any other technique to verify whether the query image exists in the database or not and also, generate a matching score?
Thank You.

Antworten (2)

Anand
Anand am 28 Apr. 2013
Well, if you expect the images to be exactly the same, you can do this:
im1 = imread('http://imageshack.us/a/img19/2367/zsthin0073hv1.png');
im2 = imread('http://imageshack.us/a/img543/9764/zsthin0059hv1.png');
isequal(im1,im2)
If you don't think there's going to be am exact match, you could use the 2-D correlation coefficient using the corr2 function.
  2 Kommentare
Shirah
Shirah am 29 Apr. 2013
Can you please provide me with a sample of code in which the corr2 function can be used for matching and generating a matching score. Thank You.
Image Analyst
Image Analyst am 29 Apr. 2013
Anand, do you really think this will work for the images they gave? Because I don't. A slight rotation will totally destroy any correlation. Since it's a skeleton, even using a jig to position the hand will not give subpixel accuracy and so the correlations will be almost zero.

Melden Sie sich an, um zu kommentieren.


Image Analyst
Image Analyst am 28 Apr. 2013
You might try to minimize the Hausdorf distance. See the bottom part of this page: http://cgm.cs.mcgill.ca/~godfried/teaching/cg-projects/98/normand/main.html or this: http://www.cs.cornell.edu/vision/hausdorff/hausmatch.html

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by