saving an image with plot

4 ビュー (過去 30 日間)
Karthik Karri
Karthik Karri 2014 年 4 月 11 日
回答済み: Image Analyst 2014 年 4 月 11 日
After reading an image, i implemented segmentation algorithm were i plotted a curving on the image tracing the the object of interest. Now i want to save the image with the plot super-imposed on it. Is it possible?? when i am using saving the figure, its taking a screen shot of the figure window and original dimension of the image is lost and there is a white background around the image. Also cant use imwrite as i am basically plotting the curve on the image and not editing the image matrix. Any help would be highly appreciated.

採用された回答

Image Analyst
Image Analyst 2014 年 4 月 11 日

その他の回答 (1 件)

Alberto
Alberto 2014 年 4 月 11 日
You can export as an image the content of the plot window using 'print' command.
As an example, I used this line
print('-djpeg','-r400', strcat( 'temp\\', fileName))
to save in jpg the current plot; 400 is about resolution , and a desired folder address.
Exp'lore the help to see what better fits for you.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by