Saving image with the plots

1 次查看(过去 30 天)
judy  frost
judy frost 2013-1-3
Below code segment shows the result correctly on output_axis. I mean, the image C and the plots on the image.
[B,L,N] = bwboundaries(E);
axes(handles.output_axis);
imshow(C);
for k=1:length(B),
boundary = B{k};
if(k<=N)
plot(boundary(:,2),...
boundary(:,1),'r','LineWidth',1.5);
end
end
I need to save the image but I could not achieve this. I use below code to save:
imwrite(getimage(handles.output_axis),file);
It saves only the C image without plots. Please help how can I save the image together with the plots ?

回答(2 个)

Sean de Wolski
Sean de Wolski 2013-1-3
How about:
doc print
doc saveas
or:
  5 个评论
Sean de Wolski
Sean de Wolski 2013-1-3
Huh? What do you mean? What isn't what you want? Do you only want to print the axes?
judy  frost
judy frost 2013-1-3
In gui I have 2 axis, input and output. In the handles.output_axis there is the result I want to print. So I must get the image from this handle(output axis) and save it.

请先登录,再进行评论。


Image Analyst
Image Analyst 2013-1-3

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by