How to substract an image?

조회 수: 1 (최근 30일)
Chen Zhu
Chen Zhu 2017년 3월 27일
편집: Guillaume 2017년 3월 27일
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!

채택된 답변

Guillaume
Guillaume 2017년 3월 27일
편집: Guillaume 2017년 3월 27일
This is simple matrix indexing:
croppedimage = rgbimage(1:round(size(rgbimage, 1)*0.2), :, :)
Alternatively, use imcrop

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by