Info

This question is closed. Reopen it to edit or answer.

Displaying the image

3 views (last 30 days)
kash
kash on 22 May 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
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 Comments
kash
kash on 22 May 2012
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 on 22 May 2012
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.

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!