<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138</link>
    <title>MATLAB Central Newsreader - Image comparison</title>
    <description>Feed for thread: Image comparison</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 26 Jan 2009 16:36:49 -0500</pubDate>
      <title>Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#624029</link>
      <author>Niall 84</author>
      <description>Hi all,&lt;br&gt;
&lt;br&gt;
I am trying to set up a database of images that can be used to compare&lt;br&gt;
to a current image (So if the current image is equal, or almost equal&lt;br&gt;
to the one being compared it'll give a match)&lt;br&gt;
&lt;br&gt;
However to start this project off I want to just compare 2 images&lt;br&gt;
using Matlab to see how the process works.&lt;br&gt;
&lt;br&gt;
Does anyone know how I might compare say imaeg1.jpg and image2.jpg to&lt;br&gt;
see how closely related to each other they are? So basically if I was&lt;br&gt;
to compare image1.jpg and image1.jpg the relationship should be 100%,&lt;br&gt;
but comparing 2 different images might give me quite a close&lt;br&gt;
relationship.&lt;br&gt;
&lt;br&gt;
I hope that makes some sense!!!&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Niall.</description>
    </item>
    <item>
      <pubDate>Mon, 26 Jan 2009 17:23:55 -0500</pubDate>
      <title>Re: Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#624039</link>
      <author>Walter Roberson</author>
      <description>Niall 84 wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; I am trying to set up a database of images that can be used to compare&lt;br&gt;
&amp;gt; to a current image (So if the current image is equal, or almost equal&lt;br&gt;
&amp;gt; to the one being compared it'll give a match)&lt;br&gt;
&lt;br&gt;
First you have to start by defining what it means for one image to&lt;br&gt;
be &quot;almost equal&quot; to another. Is B equal to C if C is B rotated 90 degrees?&lt;br&gt;
If C is B flipped on its horizontal axis? If C is B rotated 17 degrees&lt;br&gt;
around a point that is -not- its center? If B and C are two different&lt;br&gt;
pictures of the same scene but due to natural muscle motion, they are&lt;br&gt;
not of -exactly- the same scene coverage? If C is the same scene as B&lt;br&gt;
but C is overexposed by 1 f-stop? If C is the same scene as B except&lt;br&gt;
the green light in the picture turned red? If C is the same scene as B&lt;br&gt;
but taken a little later in the day when the lighting was a bit different?&lt;br&gt;
If C is the same scene as B but taken at a different resolution? Taken&lt;br&gt;
with a different camera? If C is an image of the same person as in B&lt;br&gt;
except in C, they put on sunglasses? Put on a false moustache?&lt;br&gt;
Does this program need to be able to solve those &quot;which of these&lt;br&gt;
drawings is different from the others&quot; childrens' puzzles?&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
.signature note: I am now avoiding replying to unclear or ambiguous postings.&lt;br&gt;
Please review questions before posting them. Be specific. Use examples of what you mean,&lt;br&gt;
of what you don't mean. Specify boundary conditions, and data classes and value&lt;br&gt;
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?</description>
    </item>
    <item>
      <pubDate>Tue, 27 Jan 2009 11:47:43 -0500</pubDate>
      <title>Re: Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#624251</link>
      <author>Niall 84</author>
      <description>Ok,&lt;br&gt;
&lt;br&gt;
Apologies for the lack of clarity.&lt;br&gt;
&lt;br&gt;
Basically I am trying to develop a new algorithm that can be used for&lt;br&gt;
the RoboCup soccer competition. The basics of it is that there will be&lt;br&gt;
a database of possible images that the robot could see, and I want to&lt;br&gt;
match what the robot actually sees with its match in the database.&lt;br&gt;
(The database images will have information attached to it that will&lt;br&gt;
tell the Robot where it is located on the pitch)&lt;br&gt;
&lt;br&gt;
However, to take absolutely every possibility would mean millions of&lt;br&gt;
images, but I'm sure it is possible for images that are very similar,&lt;br&gt;
but may have been taken at a slightly different angle, or taken from&lt;br&gt;
very close to, but not exactly the same location, to be matched. But I&lt;br&gt;
don't know how I might go about doing this.&lt;br&gt;
&lt;br&gt;
Hope that makes more sense.</description>
    </item>
    <item>
      <pubDate>Tue, 27 Jan 2009 14:56:11 -0500</pubDate>
      <title>Re: Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#624287</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Niall 84&quot; &amp;lt;niall_heavey@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:d8b82541-f147-4e5e-8529-11658b87e993@q30g2000prq.googlegroups.com...&lt;br&gt;
&amp;gt; Ok,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Apologies for the lack of clarity.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Basically I am trying to develop a new algorithm that can be used for&lt;br&gt;
&amp;gt; the RoboCup soccer competition. The basics of it is that there will be&lt;br&gt;
&amp;gt; a database of possible images that the robot could see, and I want to&lt;br&gt;
&amp;gt; match what the robot actually sees with its match in the database.&lt;br&gt;
&amp;gt; (The database images will have information attached to it that will&lt;br&gt;
&amp;gt; tell the Robot where it is located on the pitch)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; However, to take absolutely every possibility would mean millions of&lt;br&gt;
&amp;gt; images, but I'm sure it is possible for images that are very similar,&lt;br&gt;
&amp;gt; but may have been taken at a slightly different angle, or taken from&lt;br&gt;
&amp;gt; very close to, but not exactly the same location, to be matched. But I&lt;br&gt;
&amp;gt; don't know how I might go about doing this.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hope that makes more sense.&lt;br&gt;
&lt;br&gt;
It sounds like a combination of image registration and optimization -- find &lt;br&gt;
the stored image that minimizes the &quot;amount of transformation&quot; necessary to &lt;br&gt;
make it agree with what the robot sees.&lt;br&gt;
&lt;br&gt;
Two of the problems I can see:&lt;br&gt;
&lt;br&gt;
1) defining how to quantify the &quot;amount of transformation&quot; (if the image &lt;br&gt;
needs to be rotated 5 degrees counterclockwise to match a stored view, is &lt;br&gt;
that a greater amount of transformation or a lesser amount of transformation &lt;br&gt;
than a translation of 5 pixels?  Which one is &quot;closer&quot;?)&lt;br&gt;
&lt;br&gt;
2) dealing with &quot;stuff&quot; (other robots and the ball, most likely) that are in &lt;br&gt;
the picture that the robot sees right now, but are not in the stored &lt;br&gt;
database.  The &quot;stuff&quot; could block the robot's line of sight, concealing the &lt;br&gt;
features that the robot would need to match what it sees with a stored &lt;br&gt;
image.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;I'm sure there are others.&lt;br&gt;
&lt;br&gt;
I'm not sure CSSM is the right newsgroup to be able to help you with either &lt;br&gt;
of those problems I described above.  You may have better luck asking in an &lt;br&gt;
image processing newsgroup, like sci.image.processing, to determine if &lt;br&gt;
there's a standard algorithm or approach you should use to handle either of &lt;br&gt;
these problems.  Then, if you need help implementing that algorithm in &lt;br&gt;
MATLAB, ask those questions here in CSSM.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Tue, 27 Jan 2009 15:14:02 -0500</pubDate>
      <title>Re: Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#624296</link>
      <author>Pete </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
Your original post reminded me of something I read in 'A primer on wavelets and their scientific applications' by James S Walker (2nd edition, pp 141-144).  He talks about checking whether an image is similar to other images in a database.  Basically, you need some sort of error measure.  So if im1 is your database image and im2 is the one you want to check, you could use:&lt;br&gt;
&lt;br&gt;
D = sqrt(sum((im2(:) - im1(:)).^2)) / sqrt(sum(im1(:).^2));&lt;br&gt;
&lt;br&gt;
If D is small, then im1 and im2 are similar.  You might need to think about what to do with the different channels if you've got colour images.  Perhaps you can use the green of the pitch to help get a horizon line, and the angle of that could be useful.&lt;br&gt;
&lt;br&gt;
The wavelet transform comes in because it will effectively break up an original image into smaller subimages, each encoding a different level of detail.  The smaller images can be compared much more quickly, and are less affected by noise, so you calculate D for the small image approximations produced by the wavelet transform first.  You then only need to do more detailed similarity tests if the fast test produces a good match.&lt;br&gt;
&lt;br&gt;
If you haven't used wavelets before, check out the Haar transform - it's the easiest one, and can be implemented in a few lines of MATLAB code.  Gaussian pyramids are somewhat related, so you could look at the impyramid function in the Image Processing Toolbox.  normxcorr2 might also be of interest.&lt;br&gt;
&lt;br&gt;
That said, I suspect this approach will be too basic to get you very far unless the image comparison part plays a fairly minor role, you can be pretty confident about things like lighting conditions and you have a way to deal with other robots getting into your robot's field of view.  If you need something really advanced, it might be worth trawling through the face recognition literature.&lt;br&gt;
&lt;br&gt;
Pete</description>
    </item>
    <item>
      <pubDate>Tue, 27 Jan 2009 16:34:17 -0500</pubDate>
      <title>Re: Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#624326</link>
      <author>ImageAnalyst</author>
      <description>Niall:&lt;br&gt;
There's tons and tons of research on this subject.  It's usually&lt;br&gt;
called &quot;image registration.&quot;  MATLAB even has a help entry for this,&lt;br&gt;
if you have the image processing toolbox.  This usually refers to the&lt;br&gt;
images being the same size and largely overlapped (like your&lt;br&gt;
situation) and rotated, warped, etc.  There's a related field called&lt;br&gt;
&quot;pattern matching&quot; where the &quot;pattern&quot; image is usually just a small&lt;br&gt;
sub-part of the larger image (and of course it could be translated,&lt;br&gt;
rotated, warped, or even partially occluded in the main image).  This&lt;br&gt;
is big in the defense field for obvious reasons.  So, given that&lt;br&gt;
there's a bazillion methods for doing it, and more coming out every&lt;br&gt;
month, I suggest that you first do a literature search to find&lt;br&gt;
something similar to your situation and that might meet your needs.&lt;br&gt;
Or, for starters, you could check out the stuff MATLAB supplies in the&lt;br&gt;
image processing toolkit.&lt;br&gt;
Regards,&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Tue, 27 Jan 2009 16:52:23 -0500</pubDate>
      <title>Re: Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#624337</link>
      <author>Niall 84</author>
      <description>Thank you both for your help.&lt;br&gt;
&lt;br&gt;
In relation to the issues that you brought up Steve, I am planning on&lt;br&gt;
running morphology and the Hough Transform on the image 1st, which&lt;br&gt;
should give me a new image with just the white lines, and should&lt;br&gt;
ignore the robot and ball............hopefully anyway!!!&lt;br&gt;
&lt;br&gt;
And the formula that you gave me Pete is very useful. Hopefully I can&lt;br&gt;
use that to my advantage!!!&lt;br&gt;
&lt;br&gt;
Thanks very much.&lt;br&gt;
&lt;br&gt;
Niall.</description>
    </item>
    <item>
      <pubDate>Sun, 31 May 2009 23:06:01 -0400</pubDate>
      <title>Re: Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#653696</link>
      <author>Matlab User </author>
      <description>&lt;br&gt;
&lt;br&gt;
ICSP2008 Proceedings &lt;br&gt;
&lt;br&gt;
Image Change Detection using Copulas, ZENG Xuexing and Tariq S DURRANI &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
might be worth looking...</description>
    </item>
    <item>
      <pubDate>Mon, 31 Jan 2011 02:43:04 -0500</pubDate>
      <title>Re: Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#816379</link>
      <author>Sathish Kumar</author>
      <description>Niall 84 &amp;lt;niall_heavey@yahoo.com&amp;gt; wrote in message &amp;lt;6f1ec872-1f6b-487e-9a66-38d8d0679041@p23g2000prp.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi all,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am trying to set up a database of images that can be used to compare&lt;br&gt;
&amp;gt; to a current image (So if the current image is equal, or almost equal&lt;br&gt;
&amp;gt; to the one being compared it'll give a match)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; However to start this project off I want to just compare 2 images&lt;br&gt;
&amp;gt; using Matlab to see how the process works.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Does anyone know how I might compare say imaeg1.jpg and image2.jpg to&lt;br&gt;
&amp;gt; see how closely related to each other they are? So basically if I was&lt;br&gt;
&amp;gt; to compare image1.jpg and image1.jpg the relationship should be 100%,&lt;br&gt;
&amp;gt; but comparing 2 different images might give me quite a close&lt;br&gt;
&amp;gt; relationship.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I hope that makes some sense!!!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Niall.&lt;br&gt;
if u find difference between the two image we can get an image if that image is null image then the two image match perfectly or else u can find the change </description>
    </item>
    <item>
      <pubDate>Tue, 29 Nov 2011 03:15:10 -0500</pubDate>
      <title>Re: Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#859857</link>
      <author>bhuvana m</author>
      <description>hi sir.... I am also doing project related to yours...I want to compare my image with the images in the database...can you help me in writing matlab codings...&lt;br&gt;
thank you&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Walter Roberson &amp;lt;roberson@hushmail.com&amp;gt; wrote in message &amp;lt;lkmfl.2$8O.0@newsfe06.iad&amp;gt;...&lt;br&gt;
&amp;gt; Niall 84 wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I am trying to set up a database of images that can be used to compare&lt;br&gt;
&amp;gt; &amp;gt; to a current image (So if the current image is equal, or almost equal&lt;br&gt;
&amp;gt; &amp;gt; to the one being compared it'll give a match)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; First you have to start by defining what it means for one image to&lt;br&gt;
&amp;gt; be &quot;almost equal&quot; to another. Is B equal to C if C is B rotated 90 degrees?&lt;br&gt;
&amp;gt; If C is B flipped on its horizontal axis? If C is B rotated 17 degrees&lt;br&gt;
&amp;gt; around a point that is -not- its center? If B and C are two different&lt;br&gt;
&amp;gt; pictures of the same scene but due to natural muscle motion, they are&lt;br&gt;
&amp;gt; not of -exactly- the same scene coverage? If C is the same scene as B&lt;br&gt;
&amp;gt; but C is overexposed by 1 f-stop? If C is the same scene as B except&lt;br&gt;
&amp;gt; the green light in the picture turned red? If C is the same scene as B&lt;br&gt;
&amp;gt; but taken a little later in the day when the lighting was a bit different?&lt;br&gt;
&amp;gt; If C is the same scene as B but taken at a different resolution? Taken&lt;br&gt;
&amp;gt; with a different camera? If C is an image of the same person as in B&lt;br&gt;
&amp;gt; except in C, they put on sunglasses? Put on a false moustache?&lt;br&gt;
&amp;gt; Does this program need to be able to solve those &quot;which of these&lt;br&gt;
&amp;gt; drawings is different from the others&quot; childrens' puzzles?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; .signature note: I am now avoiding replying to unclear or ambiguous postings.&lt;br&gt;
&amp;gt; Please review questions before posting them. Be specific. Use examples of what you mean,&lt;br&gt;
&amp;gt; of what you don't mean. Specify boundary conditions, and data classes and value&lt;br&gt;
&amp;gt; relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?</description>
    </item>
    <item>
      <pubDate>Tue, 10 Jan 2012 09:04:09 -0500</pubDate>
      <title>Re: Image comparison</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243138#863329</link>
      <author>aravind` </author>
      <description>Walter Roberson &amp;lt;roberson@hushmail.com&amp;gt; wrote in message &amp;lt;lkmfl.2$8O.0@newsfe06.iad&amp;gt;...&lt;br&gt;
&amp;gt; Niall 84 wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I am trying to set up a database of images that can be used to compare&lt;br&gt;
&amp;gt; &amp;gt; to a current image (So if the current image is equal, or almost equal&lt;br&gt;
&amp;gt; &amp;gt; to the one being compared it'll give a match)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; First you have to start by defining what it means for one image to&lt;br&gt;
&amp;gt; be &quot;almost equal&quot; to another. Is B equal to C if C is B rotated 90 degrees?&lt;br&gt;
&amp;gt; If C is B flipped on its horizontal axis? If C is B rotated 17 degrees&lt;br&gt;
&amp;gt; around a point that is -not- its center? If B and C are two different&lt;br&gt;
&amp;gt; pictures of the same scene but due to natural muscle motion, they are&lt;br&gt;
&amp;gt; not of -exactly- the same scene coverage? If C is the same scene as B&lt;br&gt;
&amp;gt; but C is overexposed by 1 f-stop? If C is the same scene as B except&lt;br&gt;
&amp;gt; the green light in the picture turned red? If C is the same scene as B&lt;br&gt;
&amp;gt; but taken a little later in the day when the lighting was a bit different?&lt;br&gt;
&amp;gt; If C is the same scene as B but taken at a different resolution? Taken&lt;br&gt;
&amp;gt; with a different camera? If C is an image of the same person as in B&lt;br&gt;
&amp;gt; except in C, they put on sunglasses? Put on a false moustache?&lt;br&gt;
&amp;gt; Does this program need to be able to solve those &quot;which of these&lt;br&gt;
&amp;gt; drawings is different from the others&quot; childrens' puzzles?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; .signature note: I am now avoiding replying to unclear or ambiguous postings.&lt;br&gt;
&amp;gt; Please review questions before posting them. Be specific. Use examples of what you mean,&lt;br&gt;
&amp;gt; of what you don't mean. Specify boundary conditions, and data classes and value&lt;br&gt;
&amp;gt; relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?&lt;br&gt;
&lt;br&gt;
Hello sir, Im doing a similar project. I need to compare two image and find if they are similar. And im not taking any conditions..ie the images must be exactly similar to each other. Can you tell me how i can do this with the help of matlab. Thank you .</description>
    </item>
  </channel>
</rss>

