How to avoid jagged image in matlab. I have 600 x 600 image opened in matlab and do some processing on the image. However when I save it, it look so blur and jagged. What should I do?
EDITED: this question is related to my previous question here http://stackoverflow.com/questions/3178336/matlab-how-to-plot-x-y-on-image-and-save
fid=fopen(datafile.txt);
A=textscan(fid,'%f%f%f'); %read data from the file
code =A{1};
xfix =A{2};
yfix =A{3};
for k=1:length(code)
imagefile=code(k);
rgb = imread([num2str(imagefile) '.jpg']);
imshow(rgb);
hold on;
x = xfix2(k);
y = yfix2(k);
plot(x,y,'-+ b'); % plot x,y on the
saveas(([num2str(imagefile) '.jpg'])) % save the image with the same name as it open
end
hold off