www.gusucode.com > images 案例代码 matlab源码程序 > images/ComputeTheCorrelationCoefficientExample.m
%% Compute the correlation coefficient % Compute the correlation coefficient between an image and the same image % processed with a median filter. % %% % Copyright 2015 The MathWorks, Inc. I = imread('pout.tif'); J = medfilt2(I); R = corr2(I,J)