MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 高手请指点,怎么在图像上完成取等间距的多点 (https://www.labfans.com/bbs/showthread.php?t=11175)

wznuaa 2010-04-04 21:13

高手请指点,怎么在图像上完成取等间距的多点
 
我用插值将离散的点连接形成一条光滑的曲线,代码如下:
x=0:1.2:10;
y=sin(x);
xi=0:0.1:10;
yi_spline=interp1(x,y,xi,'spline');
plot(x,y,'ro',xi,yi_spline,'b-');
title('三次样条插值');

在例子里我用的图像函数已知,若图像函数未知,只有图像,请问,怎样直接利用图像在图像上按横坐标等间距的取64个点的数值?万分感谢!


所有时间均为北京时间。现在的时间是 09:49

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.