MATLAB Answers

Parfor loop for saving data

조회 수: 1(최근 30일)
Alejandro Fernández
Alejandro Fernández 2020년 4월 18일
댓글: Sindar 2020년 4월 22일
Hi, I needed to know if the next loop can be implemented using a parfor, because if I do that I get an error.
What I need is to store in the first column the time, in the second the psnr and in the third in snr for each of the 4 images.
Z = zeros(50,3,4);
parfor idx = 1 : 4
I = cargarDatos(idx);
for noise = 1 : 100
if isequal(mod(noise,2),1)
J = medfilt2(I,[noise noise])
Z(r,1,idx) = toc;
[Z(r,2,idx),Z(r,3,idx)] = psnr(J,I4);
r = r + 1;
The "cargarDatos" function allows to upload the images in question
  댓글 수: 3
Sindar 2020년 4월 22일
what error?

댓글을 달려면 로그인하십시오.


Community Treasure Hunt

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

Start Hunting!

Translated by