像素位置的外推

发布于 01-02 12:01 字数 286 浏览 3 评论 0原文

我有一个图像,其中绘制了一些曲线,我想根据已经绘制的像素推断接下来几个像素的位置。图 1 显示了一个示例。对于这种情况,很容易使用最小二乘拟合(图 2)来拟合曲线(一些抛物线),然后基于此拟合光栅化曲线以查找下一个像素(我还需要矢量曲线进行一些进一步的计算)。

问题是,经常会出现如图 3 所示的情况,我无法使用抛物线等曲线,因为我无法定义这样的函数。您知道如何推断在这两种情况下都适用的曲线/像素吗?

通过绘制像素拟合曲线

I have an image with some curve draw in it and I want to extrapolate positions of next few pixels based on already drawn ones. An example is shown in figure 1. For this situation it is easy to fit curve (some parabola) using the least square fit (figure 2) and then based on this fit rasterize the curve to find next pixels (I also need the vector curve for some further calculations).

The problem is that there is often situations like one shown in figure 3, where I can't use curves like parabola, because I can't define such function. Have you any idea how to extrapolate curve/pixels which will work in both cases?

fitting curves through drawn pixels

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文