您好,我对此代码行有疑问我是一名matlab新手,我只想尝试获取非方阵矩阵的所有条目。
X=double(imread(I));
Y=zeros(size(X,1),size(X,2));
Ie=zeros(1,256);
h = calchisto(I);
[~ , b]= max(h);
[~ , c]= max(max(X));
[~ , d]= min(min(X));
size(X,1)
size(X,2)
for i = 1 : size(X,1)
for j = 1 : size(X,2)
Y(i,j)=(b-1)*((X(i,j)-d)./(c-d));
Ie(1,abs(floor(Y(i,j)+1)))=Ie(1,abs(floor(Y(i,j)+1)))+1;
end
end