Hi.I have an image(A) and encrypted image(B) .I want to find correlation coefficient for(Horizontal,Vertical,Diagonal) A(~1)and for B(~0)is there any function in matlab for this ?I know corr2 is for calculating the correlation coefficient for two images.but for one image?

c

For a correlation, you always need two variables, so how would you correlate 1 picture?

As @ddanbe has stated, for Correlation to work, you must correlate between two objects/variables. Please could you explain what it is that you're trying to do?

For example, if image (A) is the unencrypted image and image (B) is encrypted and you needed to therefore match image (A) to image (B) then this can be done using Correlation, but, I don't think you're understanding the processes involved.

Please explain fully.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.