Jump to content

Request: Spatial Cross Correlation


Recommended Posts

Some of those function found in R Statistical software

[hide]

http://www.r-project.org/

[/hide]

[hide]

https://stat.ethz.ch/pipermail/r-help/2008-April/158519.html

[/hide]

and

[hide]

http://pbil.univ-lyon1.fr/ADE-4/ade4-html/multispati.randtest.html

[/hide]

hem, I dont know much bout this software  :lipsrsealed:

Link to comment
Share on other sites

  • 1 year later...

hi friends,

here is the the code for spatial cross-correlation (Matlab)

there are 2 surfaces we are going to compare or find correlations

maybe you should convert them to raster first

A = imread ('...'/firstraster.jpg');

B = imread ('.../secondraster.jpg');

Result = normxcorr2(B,A);

size if B should be equal or lesser than size of A

the result is an arrey of correlation as kernel ( B moves across the Image A )

max(max(Result)) % the max xross corr found by kernel

imshow (Result) % xross surface

:lol:

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist