This approach shares a lot in common with the idea of multivariate interpolation over scattered data. Multivariate interpolation attempts to estimate values at unknown points within an existing data set and is often used in fields such as geostatistics or for geophysical analysis like elevation modelling. We can think of our colour palette as the set of variables we want to interpolate from, and our input colour as the unknown we’re trying to estimate. We can borrow some ideas from multivariate interpolation to develop more effective dithering algorithms.
takes an array of length n and produces an array of length n
,推荐阅读heLLoword翻译官方下载获取更多信息
int maxDigits = getMaxDigits(arr, n); // 最大位数
更多详细新闻请浏览新京报网 www.bjnews.com.cn