img=('frame1.jpg');
nayaRes=img;
R=img(:,:,1);
G=img(:,:,2);
Error Masg:Index exceeds matrix dimensions.

2 comentarios

madhan ravi
madhan ravi el 10 de Nov. de 2018
Editada: madhan ravi el 10 de Nov. de 2018
Paste full code with jpg file
Shahid Mandokhail
Shahid Mandokhail el 13 de Nov. de 2018
Its my mistake ....
if I have to seperate Red, Green and Blue chenals of image .....then i have to write like
img=imread('frame.jpg');

Iniciar sesión para comentar.

 Respuesta aceptada

Bruno Luong
Bruno Luong el 10 de Nov. de 2018
After read the file type
>> size(img)
If the third dimension is not 3, it's not RGB image

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 10 de Nov. de 2018

Comentada:

el 13 de Nov. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by