mapbox / mapbox/pixelmatch-cpp

Update pixelmatch-cpp to match the current JavaScript implementation

未关闭
#10 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

question
主要语言
C++
星标
48
派生
12
PR 合并指标
30 天内没有已合并 PR

描述

Hi,

I noticed that pixelmatch-cpp appears to be based on an older version of the JavaScript implementation and is no longer fully aligned with the current pixelmatch.

The current JavaScript version is 7.2.0, while the C++ implementation still appears to use the older YIQ-based color-difference metric. The current JavaScript implementation has since moved to OKLab + HyAB for color comparison.

This raises a couple of questions:

Is there a plan to update pixelmatch-cpp to match the current JavaScript implementation?
Is behavioral compatibility between the C++ and JavaScript implementations a goal?
If so, would it be possible to port the newer color-difference algorithm and other changes from the current JavaScript version?
In particular, it would be useful to have the C++ implementation produce the same diff results as the current JavaScript implementation when given the same images and configuration.

I'm interested in using Pixelmatch from a native C++ application without requiring Node.js, so having a current C++ implementation would be very useful.

Thanks!

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

将现有的 pixelmatch-cpp 实现与当前的 JavaScript pixelmatch 7.2.0 实现进行比较,首先关注颜色差异度量。确定移植 OKLab + HyAB 及其他更改的范围;对于相同的图像和配置,如果 diff 结果与 JavaScript 的结果一致,则视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, javascript
领域
computer-vision
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
活跃
描述清晰度
需要澄清
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。