Source: Computational Materials Science, Volume 267
Appendix III: Threshold Matrices and Noise Functions
。下载安装 谷歌浏览器 开启极速安全的 上网之旅。是该领域的重要参考
// i表示当前要插入的元素索引(从第2个元素开始)
2024年12月24日 星期二 新京报
When using the probability matrix to pick from the candidate set, it is important that the candidate array be sorted in advance. Not doing so will fail to preserve the patterns distinctive of ordered dithering. A good approach is to sort the candidate colours by luminance, or the measure of a colour’s lightness4. When this is done, we effectively minimise the contrast between successive candidates in the array, making it easier to observe the pattern embedded the matrix.