how to save a zone of figure as picture
조회 수: 1 (최근 30일)
이전 댓글 표시
if i use gcf , it get the whole figure saved . i just want to save a special zone of this figure. a rectangle zone , is there any way to make it ?
댓글 수: 0
답변 (2개)
Azzi Abdelmalek
2015년 5월 8일
Use imrect to select a rectangle in your image, and get its position, then create a new image and save it
댓글 수: 0
Thomas Koelen
2015년 5월 8일
im=imread('pout.tif');
imshow(im);
h=imrect(gca);
pos=wait(h);
im2=imcrop(im,pos);
imwrite(im2,'figurepart.bmp')
Automatically saves the crop you made. ofcourse you'll have im to the desired image.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!