The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How can I find the covariance between two images?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 1
Registered: 11/25/12
How can I find the covariance between two images?
Posted: Nov 25, 2012 10:27 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have used the following code for this. Please let me know if I am doing it right.

im1 = rgb2gray(im1);
im2 = rgb2gray(im2);

im1 = double(im1);
im2 = double(im2);

cov(im1(:) im2(:))

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.