Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software
- Software Development SDKs and Libraries
- Intel® Integrated Performance Primitives
- ippiCrossCorrSame_Norm

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

georgiswan

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-07-2011
12:02 PM

50 Views

ippiCrossCorrSame_Norm

Hello,

It is probably obvious but there is something I dont understandabout ippiCrossCorrSame_Norm .

When I take an arbitrary grayscale image and I extract a template from that same image (i.e. just crop a small section of the image), I expect and I dohave a max correlation where the templatewas extractedfrom the original image but the value of the correlation at the other locations is puzzling me.

For example, when using the 8u_32f_C1 flavor of the routine, I dont seem to ever get a single negative correlation value. Also, the correlation of a textured template seems to match very wellinuniform intensity regions (the correlation is not max but close).Finally, when I invert my template (i.e template = 255 - template), I expect to get a strong but negative correlation value. I dont. The correlation value remains positive.

I read that this correlation is done in the Fourrier domain but even when I try the equivalent computation in matlab using FFT, I dont get the same (strange) results at all.

Q1: Is there something special about the normalization applied to the output of that function, even when using the floating point output ?

Q2: why dont I ever get any negative correlation values?

Thank you!

Gilbert

1 Solution

Chao_Y_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-09-2011
02:24 AM

50 Views

Gilbert,

Have you got chance to check the document on image proximity measures computation: http://software.intel.com/sites/products/documentation/hpc/ipp/ippi/ippi_ch11/ch11_image_proximity_m...

The normalized correlation coefficient is computed as:

r(r,c) = G(r,c)/sqrt(G(r,c)*G(tplRows/2,tplCols/2).

and it does not expect to get the negative values.

Thanks,

Chao

Link Copied

3 Replies

Chao_Y_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-09-2011
02:24 AM

51 Views

Gilbert,

Have you got chance to check the document on image proximity measures computation: http://software.intel.com/sites/products/documentation/hpc/ipp/ippi/ippi_ch11/ch11_image_proximity_m...

The normalized correlation coefficient is computed as:

r(r,c) = G(r,c)/sqrt(G(r,c)*G(tplRows/2,tplCols/2).

and it does not expect to get the negative values.

Thanks,

Chao

georgiswan

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-09-2011
11:17 AM

50 Views

This is a bit embarrassing: I had looked at that page but I looked too quickly apparently. I "assumed" that the ippiCrossCorrSame_Norm functions would remove the average local window value butthey do not. Instead, I should use the ippiCrossCorrSame_NormLevel functions which do remove the average value as I need.

Sorry for the confusion.

Gilbert

Chao_Y_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-09-2011
09:09 PM

50 Views

Gilbert,

Glad to know it is resolved for you..

Thanks,

Chao

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.