How to substract an image?

2 visualizaciones (últimos 30 días)
Chen Zhu
Chen Zhu el 27 de Mzo. de 2017
Editada: Guillaume el 27 de Mzo. de 2017
rgbImage = imread(fullFileName);
I want to only get the top 20% of the image. How can I do it?
For example, for this image
I only want to get
Thanks!

Respuesta aceptada

Guillaume
Guillaume el 27 de Mzo. de 2017
Editada: Guillaume el 27 de Mzo. de 2017
This is simple matrix indexing:
croppedimage = rgbimage(1:round(size(rgbimage, 1)*0.2), :, :)
Alternatively, use imcrop

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