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!