ibp算法中反投影系数怎么确定
展开全部
P=reshape(p,1,I);
P=P';
F=ones(676,1)*0.2;
for k=0:J
i_k=mod(k,I)+1;
for j=1:676
if W(i_k,:)*F~=0
F(j)=F(j)*(P(i_k)/(W(i_k,:)*F))^(W(i_k,j)*7);%松弛因子在6—8之间合适
end
end
end
%--滤波
for j=1:676
if F(j)<0
F(j)=0;
end
end
%--重建图像
F=reshape(F,26,26);
F=F';
x=-0.5:0.04:0.5;
y=-0.5:0.04:0.5;
[X,Y]=meshgrid(x,y);
figure;
mesh(X,Y,F)
P=P';
F=ones(676,1)*0.2;
for k=0:J
i_k=mod(k,I)+1;
for j=1:676
if W(i_k,:)*F~=0
F(j)=F(j)*(P(i_k)/(W(i_k,:)*F))^(W(i_k,j)*7);%松弛因子在6—8之间合适
end
end
end
%--滤波
for j=1:676
if F(j)<0
F(j)=0;
end
end
%--重建图像
F=reshape(F,26,26);
F=F';
x=-0.5:0.04:0.5;
y=-0.5:0.04:0.5;
[X,Y]=meshgrid(x,y);
figure;
mesh(X,Y,F)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询