Borrar filtros
Borrar filtros

Subscript indices must either be real positive integers or logicals?

2 visualizaciones (últimos 30 días)
fzhmktr
fzhmktr el 23 de En. de 2018
Editada: Jan el 23 de En. de 2018
Why did i get this error?
ref = imread('TID2008\reference_images\I01.BMP');
A = imread('TID2008\distorted_images\I01_01_1.bmp');
peaksnr = psnr(A, ref);
Subscript indices must either be real positive integers or logicals

Respuestas (1)

Jan
Jan el 23 de En. de 2018
Editada: Jan el 23 de En. de 2018
A bold guess: You have redefined one of the used symbols "imread" or "psnr" by an array. Check this:
which imread -all
which psnr -all
If one of does not reply the wanted function on top, use clear to remove the shadowing array and use a different name for it.
Note that it would be useful, if you post a copy of the complete error message. This would narrow down the possible number of problems.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by