saving matlab image with contours plot on it -
i want save image contours drawn on in original dimension.
say have 250x250 image, , draw contours (also 250x250) on it, can't seem save @ original dimension of image.
right here's have
iptsetpref('imshowborder','tight'); himg = imshow(myimage); hold on; contour(contour1, [0 0], 'b','linewidth',4); contour(contour2, [0 0], 'y','linewidth',2); hold off;
if save image
saveas(himg, filename);
i super large 1200x900 image white borders on left , right, how change settings output file has same dimension input image without ugly white borders around it?'
i can't use papersize because image handle cannot access figure functions, , gca options don't affect window size remove side borders
Comments
Post a Comment