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!