bmp image related problem
Mostrar comentarios más antiguos
b_1=imread('3 (1).bmp');
b_2=imresize(b_1,[42 24]);
NewTemplates_2=mat2cell(letter_1,42);
celldisp(NewTemplates_2);
while executing the following statement an array with elements other than 0 and 1 is displaying.
If i change
b_2=imresize(b_1,[42 24]);
to
b_2=imresize(b_1,[42 24]);
the code results in the error :
Number of input vector arguments, 2,
does not match the input matrix's number of dimensions, 3.
Please help me.
3 comentarios
Image Analyst
el 23 de Mzo. de 2018
Please attach '3 (1).bmp'. And explain better the change you made to the imresize() line.
ATHUL NARAYANAN
el 24 de Mzo. de 2018
ATHUL NARAYANAN
el 24 de Mzo. de 2018
Respuestas (1)
KALYAN ACHARJYA
el 20 de Abr. de 2018
0 votos
I don't see any change in your lines-

Second Your original Images(3 Dimensional) is already in [42 24], why you go for it again, I execute it, the

re is no error
Categorías
Más información sobre Images en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!