Error in flipping
Mostrar comentarios más antiguos
Hi, all
I have a problem in flipping an image. I use flipud function from Matlab, but it keeps error
img = imread('peppers.png'); F = flipud(img); imshow(img); title('Image'); figure, imshow(F); title('Flip Vertical');
The error message was
??? Error using ==> flipud at 19 X must be a 2-D matrix.
Error in ==> Untitled8 at 4 F = flipud(img);
Can anyone tell me how to solve this? Thanks
Respuesta aceptada
Más respuestas (1)
Andrei Bobrov
el 11 de En. de 2012
F = img(end:-1:1,:,:);
1 comentario
Cecilia Adriana
el 11 de En. de 2012
Categorías
Más información sobre Resizing and Reshaping Matrices 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!
