hello every body...
I want to compare one picture with several pictures saved in a folder, and find the most similar one using Matlab.
any help ?
4 Replies  17818 Views  Last Post: 29 November 2011  12:38 AM
Replies To: How to compare pictures in MATLAB ?
#2
Re: How to compare pictures in MATLAB ?
Posted 18 January 2009  10:05 PM
MATLAB allows you to import an image file into an 3d array of integer vales, of the form (XxYx[R,G,B]), using the function "imread()". Please note this is in contrast to the usual "everything on Gds green earth should be handled internally as an array of doubles"
Once you have the images loaded, you have a number of options for determining what is the "most similar". You could do ANOVA (analysis of variance), and keep the file with the highest confidence. You could convolve the images by interleaving and multiplying the Fourier Transforms together, whichever image results in the largest envelope is the "most similar". You could interleave again and do one of several polynomial curve fits between their differences, "flattest" wins. or you could hybridize these techniques.
I have never worked on this, and could not tell you what silver bullet might give best results, so you will probably have to experiment.
Hope this helps,
Jerome
Once you have the images loaded, you have a number of options for determining what is the "most similar". You could do ANOVA (analysis of variance), and keep the file with the highest confidence. You could convolve the images by interleaving and multiplying the Fourier Transforms together, whichever image results in the largest envelope is the "most similar". You could interleave again and do one of several polynomial curve fits between their differences, "flattest" wins. or you could hybridize these techniques.
I have never worked on this, and could not tell you what silver bullet might give best results, so you will probably have to experiment.
Hope this helps,
Jerome
#3
Re: How to compare pictures in MATLAB ?
Posted 28 March 2009  05:40 AM
has5me, on 18 Jan, 2009  02:51 AM, said:
I want to compare one picture with several pictures saved in a folder, and find the most similar one using Matlab.
You will need to select a precise definition of "similar" to do this. Simply subtracting one image from the other would only be possible if the images were exactly the same size, and would only be useful under a very restricted set of circumstances. Do you have any further details as to your requirements?
Will Dwinnell
Data Mining in MATLAB
#4
Re: How to compare pictures in MATLAB ?
Posted 03 October 2011  10:50 PM
I want to compare input image with a selected image to check whether it is similar plz provide me the code in matlab or any other language.
#5
Re: How to compare pictures in MATLAB ?
Posted 29 November 2011  12:38 AM
Page 1 of 1
