How to save an image displayed ?
1 回表示 (過去 30 日間)
古いコメントを表示
Dear friends, i would like to save an image displayed by imshow(I) command in tif format. for example, ifter displaying the image, i select an interactive ROI using "imfreehand(gca", them i wud like to save the image with that RIO borders. when whenever i try this, it is saving its borders also with the image. I dont want that border frame to be saved. may you plz help ? the image shud be saved in .tif format only...
0 件のコメント
採用された回答
Image Analyst
2011 年 10 月 20 日
The saved image must be rectangular, no matter what your freehand ROI looks like, but the outer layer of pixels shouldn't be white unless you're cropping the image and then setting them white. You are using imwrite() to save the cropped portion aren't you?
2 件のコメント
Image Analyst
2011 年 10 月 21 日
OK let me ask again as simply and explicitly as I can:
"Are you using the function imwrite() to save your image to disk?"
Please answer.
その他の回答 (2 件)
Grzegorz Knor
2011 年 10 月 20 日
I'm not sure if I understood you well:
figure, imshow('pout.tif');
h = imfreehand(gca);
.
.
.
axis off
print('-dtiff','-r200',filename)
Jonas Reber
2011 年 10 月 20 日
have a look at the solution I provided in your second question. it should answer both: http://www.mathworks.com/matlabcentral/answers/18795-how-to-recostruct-roi-on-an-image-and-diaplay-it
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!