mapbox / mapbox/pixelmatch-cpp

Update pixelmatch-cpp to match the current JavaScript implementation

オープン
#10 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

既存の pixelmatch-cpp 実装と、現在の JavaScript pixelmatch 7.2.0 実装を比較し、まず色差メトリクスに焦点を当てます。OKLab + HyAB およびその他の変更を移植する範囲を明確にします。同じ画像と設定で JavaScript の diff 結果と一致すれば完了とします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp, javascript
領域
computer-vision
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
活発
明瞭さ
説明が足りない
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。