How to substract an image?

1 vue (au cours des 30 derniers jours)
Chen Zhu
Chen Zhu le 27 Mar 2017
Modifié(e) : Guillaume le 27 Mar 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!

Réponse acceptée

Guillaume
Guillaume le 27 Mar 2017
Modifié(e) : Guillaume le 27 Mar 2017
This is simple matrix indexing:
croppedimage = rgbimage(1:round(size(rgbimage, 1)*0.2), :, :)
Alternatively, use imcrop

Plus de réponses (0)

Catégories

En savoir plus sur Image Filtering and Enhancement dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by