mapbox / mapbox/pixelmatch-cpp
Update pixelmatch-cpp to match the current JavaScript implementation
- Dominant language
- C++
- Stars
- 48
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
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!
Contributor guide
Research direction
Compare the existing pixelmatch-cpp implementation with the current JavaScript pixelmatch 7.2.0 implementation, focusing first on the color-difference metric. Determine the scope of porting OKLab + HyAB and other changes; done would mean matching JavaScript diff results for the same images and configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, javascript
- Domain
- computer-vision
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100