Info

此问题已关闭。 请重新打开它进行编辑或回答。

Displaying the image

1 次查看(过去 30 天)
kash
kash 2012-5-22
关闭: MATLAB Answer Bot 2021-8-20
I have a code
A-is a matrix
n = numel(A);
A1_20 = repmat(A,[1,1,20]);
t = ones(size(A));
for j1 = 1:size(A1_20,3)
p = t;
p(randi(n,3000,1)) = 0;
A1_20(:,:,j1) = A1_20(:,:,j1).*p;
w{j}{s1}{s2} =A1_20(:,:,j1);
y1 = idualtree2D(w, J, Fsf, sf);
Er= mean2((single(x) - single(y1)).^2);
final_col2{xx}=min(Er)
figure,imshow(uint8(y1))
Er1= mean2((single(x) - single(y1)).^2)/20
end
I have a matrix ,where i have multipied that matriix waith those 20 genertaed matrix,now i have 20 matrix and have found error,now i want to display the image which has minimum error,please help
  2 个评论
kash
kash 2012-5-22
A is an image its matrix size is 256x256
A1_20(:,:,j1).*p will give 20 matrices(images)
for all these 20 images i have found error
so for 20 images i will get 20 error values,in that i want to find the minimum error and display that image
Jan
Jan 2012-5-22
See the duplicate question in: http://www.mathworks.com/matlabcentral/answers/39060-error-in-storing-values
I've deleted my comments and my answer due to a growing level of negative emotions.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by