Prev: Too much uicontextmenu entries
Next: Matlab OO, copying data in a handle based class to a value based one
From: tibor on 4 Feb 2010 16:51 Hi, i am dealing with this problem: a have an image and into that image i need to plot lines, i am doing that like this: figure, imshow(image), hold on for kp = 1:length(lines) xy = [lines(kp).point1; lines(kp).point2]; plot(xy(:,1),xy(:,2),'LineWidth',3,'Color','green'); end for kp = 1:length(lines2) xy = [lines2(kp).point1; lines2(kp).point2]; plot(xy(:,1),xy(:,2),'LineWidth',3,'Color','red'); end .... for next using i need image with that lines, but when i plot it a have figure not image, i was trying to save figure like image but that lead to nowhere .... best way would be editing image to get lines into it not ploting lines but i dont know how to do that thanks for ideas tibor
From: ImageAnalyst on 4 Feb 2010 20:21
tibor Try one of Oliver Woodford's functions export_fig, SC, or print2im http://www.mathworks.com/matlabcentral/fileexchange/?term=author%3Awoodford See if one of those will do what you want. Good luck, ImageAnalyst |