I am converting images to EPS files with the following script.
%% Image 2 eps file.
% - img: the image.
% - eps: eps filename.
function Image2Eps(img, eps)
imshow(img,'border','tight','InitialMagnification',100);
print(gcf,'-depsc',eps);
end
The file generated almost bound the image tightly. But a small margin is always left on the top and on the right side. How to make the EPS file exactly the size of the bitmap image?