Saving image with the plots
조회 수: 1 (최근 30일)
이전 댓글 표시
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 ?
댓글 수: 0
답변 (2개)
Sean de Wolski
2013년 1월 3일
댓글 수: 5
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?
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!