how do i crop an image using its matrix data?
古いコメントを表示
I have a jpeg image with the required image only in the center. i need to crop the white portion of the image i.e to obtain only the center image. how do i do this?
thanks.
採用された回答
その他の回答 (1 件)
Dishant Arora
2013 年 7 月 11 日
I = imread('ImageName');
I = imcrop(I)
2 件のコメント
vignesh
2013 年 7 月 11 日
Dishant Arora
2013 年 7 月 11 日
J = (YourImage==255);
YourImage(:,all(J,1))='';
Yourimage(all(J,2),:)='';
Hope this is what you want.
カテゴリ
ヘルプ センター および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!