Pattern Comparison

Hi
I have two patterns:
https://picasaweb.google.com/105273225475657516590/ChladniResearch?authuser=0&authkey=Gv1sRgCKf1y864xZKPtgE&feat=directlink
How can I compare the patterns' similarity- mathematically Something like... Pattern 2 is 60% 'like' Pattern 1 [Base] ~~
Can anybody suggest me a matlab script todo so
Thanks in advance P.S. I am also new to matlab

Answers (1)

Image Analyst
Image Analyst on 16 Jul 2011

0 votes

You might want to look at spatial statistics ( http://en.wikipedia.org/wiki/Spatial_analysis) or optical flow ( http://www.csd.uwo.ca/faculty/barron/)if you're trying to quantify those orange dots and how they change position and clustering or randomness. Chapter 15 of Brian Ripley's ( http://www.stats.ox.ac.uk/~ripley/ ) on "Modern Applied Statistics with S" has a chapter on spatial stats. One common way is to count the number of neighbors within a circle of a given radius.

3 Comments

Mohit
Mohit on 17 Jul 2011
Thank you Image Analyst, optical flow looks like a suitable method to use.
But do you know anything that can give me percentage [or on a scale 0-1] on the amount of similarity between two images?
I have looked at Digital Image Correlation & Image Registration but I can't find any matlab files which give a percentage value... Please help, THANKS
No, I haven't used optical flow yet for any of my projects. Correlation won't give you good results if you have discrete objects that are changing location. You can go here http://iris.usc.edu/Vision-Notes/bibliography/contents.html for further research on other methods.
Mohit
Mohit on 17 Jul 2011
Hi, I looked at a few optical flow matlab programs.
Download Source Code:
http://people.csail.mit.edu/celiu/OpticalFlow/
Can somebody please tell me why I am getting this error when I run the 'demoflow.m' file in matlab:(I have also saved all the files in my matlab work folder)
-------
Warning: Name is nonexistent or not a directory:
mex.
> In path at 110
In addpath at 87
In demoflow at 1
??? Attempt to execute SCRIPT Coarse2FineTwoFrames
as a function:
/Users/*********/Documents/MATLAB/Coarse2FineTwoFrames.m
Error in ==> demoflow at 27
[vx,vy,warpI2] =
Coarse2FineTwoFrames(im1,im2,para);
------------
Thanks

Sign in to comment.

Asked:

on 16 Jul 2011

Community Treasure Hunt

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

Start Hunting!