摘要:
coarseness.m%graypic为待处理的灰度图片,2^kmax为最大窗口 function Fcrs=coarseness(graypic,kmax) %获取图片大小 [h,w]=size(graypic); %平均灰度值矩阵A A=zeros(h,w,2^kmax); %计算有效可计算范围内每个点的2^k邻域内的平均灰度值 for i=2^(kmax-1)+1:h-2^(kmax-1) for j=2^(kmax-1)+1:w-2^(kmax-1) for k=1:kmax A(i,j,k)=mean2(graypic(i-2^(k-1):i+2^(k-1)-1,j-2^(k... 阅读全文
摘要:
% LOAD DATASET AND DO PATH FOLLOWING WITH CROSS-VALIDATIONfunction PA=MKLEARNING2(x,y,dd)% x=feature_all;% y=dmos_all;% dd=2;% simulation parametersntotal = 1000; % total number of points - useful for subsampling datasetproptrain = .8; % proportion of training datansplits = dd; % number of splitssee 阅读全文
摘要:
function path = follow_entire_path(Ks,y,loss,ds,path_params,Ks_test,ytest)% FOLLOW THE ENTIRE PATH OF REGULARIZATION%% INPUT% Ks : kernel matrices% y : response% loss : loss.type= 'regression' or 'logistic'% ds : weights of the block 1-norm% path_params : parameters of the path (defi 阅读全文