本文介绍了抗锯齿线与MATLAB中的标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在MATLAB中有一张图片
Hi I have a image in MATLAB
并且我希望线条平滑-从0.4到0.8的线条看...太可怕了.当在绘图中使用"LineSmoothing","on"运算符时,我会得到这个
and I want the line to be smooth - look at the line from 0.4 to 0.8... it's horrible.When using 'LineSmoothing','on' operator in plot I get this
我在线路上做得很好,但也可以平滑标记,而且太可怕了!
I does a good job on lines but it smooths markers also and they are horrible!!
如何使MATLAB仅平滑线条而不平滑标记?
How can I get MATLAB to smooth only lines and not the markers??
这是代码:
clear all;
close all;
bpp = [0.8 0.4 0.2 0.1 0.05];
bpp_j = [0.8 0.4 0.2 0.1];
AAE_JPEG = [1.65 2.91 6.20 10.96];
AAE_JPEG_2000 = [1.39 2.29 3.78 6.75 12.52];
AAE_EEDC = [2.08 2.67 3.80 5.94 9.31];
hold on;
plot(bpp_j, AAE_JPEG, 'k','LineWidth',1.5,'MarkerSize',9,'MarkerEdgeColor','k','LineSmoothing','on');
plot(bpp, AAE_JPEG_2000, 'k', 'LineWidth',1.5,'MarkerSize',6,'MarkerEdgeColor','k','LineSmoothing','on');
plot(bpp, AAE_EEDC, 'k', 'LineWidth',1.5,'MarkerSize',6,'MarkerEdgeColor','k','LineSmoothing','on');
plot(bpp_j, AAE_JPEG, 'x','LineWidth',1.5,'MarkerSize',8,'MarkerEdgeColor','k');
plot(bpp, AAE_JPEG_2000, 'o', 'LineWidth',1.5,'MarkerSize',6,'MarkerEdgeColor','k');
plot(bpp, AAE_EEDC, 'v', 'LineWidth',1.5,'MarkerSize',6,'MarkerEdgeColor','k');
LL = plot(rand(1,2),rand(1,2),'k-x','visible','off','LineWidth',1.5,'MarkerSize',8);
LK = plot(rand(1,2),rand(1,2),'k-o','visible','off','LineWidth',1.5,'MarkerSize',6);
LI = plot(rand(1,2),rand(1,2),'k-v','visible','off','LineWidth',1.5,'MarkerSize',6);
legend([LL,LK, LI],'JPEG','JPEG 2000','EEDC')
axis([0 0.9 0 14])
xlabel('bpp');
ylabel('AAE');
grid on;
而我仍然在这里...我怎么只能在x轴上显示0.05 0.1 0.2 0.4和0.8?
and while I'm still here... how can I only display 0.05 0.1 0.2 0.4 and 0.8 on x-axis?
推荐答案
我只是尝试使用 export_fig 甚至没有linesmoothing
行...
I'd just try using export_fig without even linesmoothing
the lines...
这篇关于抗锯齿线与MATLAB中的标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!