DSPRelated.com
Forums

how to extract similarity region between 2 images

Started by Fadi Chakik September 10, 2006
Hello,

I'm working in Computer Vision domain and I'm facing a problem from Image
Processing. I will highly appreciate if someone can help.

I have 2 images (image1 and image2 see attached) having same width and
height.

I need to extract the region of dissimilarity between these 2 images (please
refer to the attached images for clarification). The region of "Basmati
book" overlapping "Bastongini Book".

I suppose that image1 is always aligned to image2.

I tried to calculate image_difference which is the absolute value of
difference between image1 and image2 but doesn't work maybe for illumination
effect.

I tried to use the Zero mean Normalized Cross Correlation algorithm but
didn't get a very good result.

Please help. I would appreciate if someone can share source code (preferably
in C - or C++) .

Thank you very much,

-Fadi Chakik

c...@cut.edu.lb
This link might help you.

http://home.comcast.net/~kootsoop/prewhiteningexample.htm

>
>Hello,
>
>I'm working in Computer Vision domain and I'm facing a problem from Image
>Processing. I will highly appreciate if someone can help.
>
>I have 2 images (image1 and image2 see attached) having same width and
>height.
>
>I need to extract the region of dissimilarity between these 2 images (please
>refer to the attached images for clarification). The region of "Basmati
>book" overlapping "Bastongini Book".
>
>I suppose that image1 is always aligned to image2.
>
>I tried to calculate image_difference which is the absolute value of
>difference between image1 and image2 but doesn't work maybe for illumination
>effect.
>
>I tried to use the Zero mean Normalized Cross Correlation algorithm but
>didn't get a very good result.
>
>Please help. I would appreciate if someone can share source code (preferably
>in C - or C++) .
>
>Thank you very much,
>
>-Fadi Chakik
>
>c...@cut.edu.lb
>
Hi Fadi,
Image difference or Image subtraction should help. It
depends on what formats your images are in is it in
yuv or rgb formats. You have to find the difference
for each component in each pixel and replce it in
another image file to see only the point of difference
and the alignment should also be correct otherwise you
might face an issue.
Imdiff in MATLAB as shown in the link below will
really help to develope your C code and you can use it
as a reference also.
regards
Bob

--- k...@gmail.com wrote:

>
> This link might help you.
http://home.comcast.net/~kootsoop/prewhiteningexample.htm
>
> >
> >Hello,
> >
> >I'm working in Computer Vision domain and I'm
> facing a problem from Image
> >Processing. I will highly appreciate if someone can
> help.
> >
> >I have 2 images (image1 and image2 see attached)
> having same width and
> >height.
> >
> >I need to extract the region of dissimilarity
> between these 2 images (please
> >refer to the attached images for clarification).
> The region of "Basmati
> >book" overlapping "Bastongini Book".
> >
> >I suppose that image1 is always aligned to image2.
> >
> >I tried to calculate image_difference which is the
> absolute value of
> >difference between image1 and image2 but doesn't
> work maybe for illumination
> >effect.
> >
> >I tried to use the Zero mean Normalized Cross
> Correlation algorithm but
> >didn't get a very good result.
> >
> >Please help. I would appreciate if someone can
> share source code (preferably
> >in C - or C++) .
> >
> >Thank you very much,
> >
> >-Fadi Chakik
> >
> >c...@cut.edu.lb
>