How do I resolve this problem ??

1 visualización (últimos 30 días)
Chidiebere Ike
Chidiebere Ike el 20 de Nov. de 2018
Comentada: Chidiebere Ike el 21 de Nov. de 2018
I am working on a code named Demo_SR via this link
I tried to rename the images on the Testing folder to suite image list. I obtain the below error each time I run the code.
I really wish to know why and how to resolve this.
Error using rgb2ycbcr>parse_inputs (line 127)
MAP must be a m x 3 array.
Error in rgb2ycbcr (line 49)
rgb = parse_inputs(varargin{:});
Error in Demo_SR (line 41)
im_l_ycbcr = rgb2ycbcr(im_l);

Respuesta aceptada

Image Analyst
Image Analyst el 20 de Nov. de 2018
You forgot to completely fill out the form when you posted, or chose not to. So we don't know what release you have. Evidently your release of MATLAB expects rgb2ycbcr() to have a colormap as it's input, and does not allow images, if that is what im_l is. New versions of MATLAB will take an rgb image so make sure that's what you're using and what you're passing in. At line 41, insert this and tell us what it says
whos im_l
It should show rows by columns by 3.
  3 comentarios
Chidiebere Ike
Chidiebere Ike el 21 de Nov. de 2018
Noted. Thanks so much. It works fine now.

Iniciar sesión para comentar.

Más respuestas (0)


Community Treasure Hunt

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

Start Hunting!

Translated by