Skip to content

Fidelity tests show zero matching pixels for identical images with threshold 0 #537

Closed

Description

@elalish

Description

Sample output for identical image comparison from npm run check-fidelity:

Comparing to (master)

📏 Using threshold 0.0
📊 Matching pixels: 0.00%
📊 Mean color distance: 0.00%
📊 Mean color distance (mismatching pixels only): 0.00%

📏 Using threshold 1.0
📊 Matching pixels: 100.00%
📊 Mean color distance: 0.00%
📊 Mean color distance (mismatching pixels only): 0.00%

📏 Using threshold 10.0
📊 Matching pixels: 100.00%
📊 Mean color distance: 0.00%
📊 Mean color distance (mismatching pixels only): 0.00%

The problem is that identical pixels are defined as < threshold apart, and they can't be less than zero. We could just remove the threshold 0 version, since that is actually what threshold 1 means, but I think it would probably be clearer to make identical mean <= threshold.

Activity

  1. added
    type: bug
    on May 8, 2019
  2. cdata commented on May 8, 2019

    @cdata
    Contributor

    Thanks for pointing this out!

  3. self-assigned this
    on May 9, 2019
  4. added a commit that references this issue on May 21, 2019
    5e8a8eb
  5. added this to the v0.4.0 milestone on Jun 6, 2019
  6. added a commit that references this issue on Jun 10, 2019
    8df4c14
  7. added a commit that references this issue on Jun 10, 2019
    e646f53
  8. added 2 commits that reference this issue on Feb 4, 2020
    63c37e3
    262ea96
  9. added a commit that references this issue on Jun 27, 2025
    f5b3b55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arc: compatibilitytype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions