TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Interpolation Tricks

75 点作者 eventualEntropy大约 12 年前

5 条评论

mistercow大约 12 年前
Another really nice one is Lanczos interpolation, although that only works well if you have at least four points (or 2 + the filter size). I wrote a demo for Smooth.js a while back that shows how that filter works in 2D: <a href="http://osuushi.github.com/plotdemo016.html" rel="nofollow">http://osuushi.github.com/plotdemo016.html</a>
chipsy大约 12 年前
The most useful thing I ever learned about interpolation was how it relates to resampling to different rates and the specific techniques used to perform resampling when dealing with the Nyquist limits.<p>If you're removing samples, the biggest concern is whether the original signal has been bandlimited to the target rate, which can be achieved in the interpolator or by preparing the signal elsewhere.<p>If you're adding samples, then the interpolation function is burdened with reconstruction and the avoidance of artifacts in the process. This tends to inevitably lead towards the use of windowed sinc.<p>For this reason, scaling down images and raising the pitch of sound samples work out to be easier tasks than scaling up or lowering the pitch.<p>Of course, for the application shown in the article, the use of interpolation is in a different realm entirely.
评论 #5268668 未加载
hammock大约 12 年前
Imagine you are watching the ball, but instead of traveling along a line, it is tracing a circle- however you are viewing it from the one-dimensional angle. Is that smoothstep, or would that be a different equation? They look similar to my naked eye.
评论 #5268436 未加载
评论 #5268581 未加载
评论 #5268276 未加载
评论 #5268277 未加载
Scaevolus大约 12 年前
Different interpolation functions on progress bars can make users perceive tasks as finishing faster.<p><a href="http://www.chrisharrison.net/index.php/Research/ProgressBars" rel="nofollow">http://www.chrisharrison.net/index.php/Research/ProgressBars</a>
daeken大约 12 年前
Some related useful non-interpolation functions: <a href="http://www.iquilezles.org/www/articles/functions/functions.htm" rel="nofollow">http://www.iquilezles.org/www/articles/functions/functions.h...</a>