const source = Stream.fromSync([inputBuffer]);
async *transform(source) {
,更多细节参见搜狗输入法下载
A12·荐读SourcePh" style="display:none"。业内人士推荐Line官方版本下载作为进阶阅读
Instead of taking the nearest candidates to , we can look for a set of candidates whose centroid is close to . The N-convex algorithm works by finding the closest colour to a given target colour for iterations, where the target is first initialised to be equal to the input pixel. Every iteration the closest colour added to the candidate list, and the quantisation error between it and the original input pixel is added to the target.