FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Create ASSERT_IMAGE_NEAR which compares two images for equality by umar456 · Pull Request #3170 · arrayfire/arrayfire · GitHub

Repository navigation

Create ASSERT_IMAGE_NEAR which compares two images for equality - #3170

Merged
9prady9 merged 1 commit into
arrayfire:masterfrom
umar456:assert_img
Aug 17, 2021
Merged

9prady9 merged 1 commit into
arrayfire:masterfrom
umar456:assert_img

Conversation

umar456 commented Aug 17, 2021

Copy link
Copy Markdown
Member

Add an image comparison assertion to the tests that compares two images
and if there is an error, uploads the result and the gold image to CDash
for comparison. Useful for when image tests fail

Description

ASSERT_IMAGE_NEAR will compare two images for similarity and upload
the image to ci.arrayfire.org if the test fails. This allows us to quickly view
the errors by going to the site and viewing the differences to determine the
error.

This assertion works on both af::array and af_array objects. It currently
supports f32, f64, u8, and b8 images but can support additional types
fairly easily.

Changes to Users

N/A

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • [ ] Functions added to unified API
  • Functions documented

Add an image comparison assertion to the tests that compares two images
and if there is an error, uploads the result and the gold image to CDash
for comparison. Useful for when image tests fail
umar456 added the test label Aug 17, 2021
umar456 requested a review from 9prady9 August 17, 2021 01:07

9prady9 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

looks good

9prady9 merged commit 1b95366 into arrayfire:master Aug 17, 2021
9prady9 deleted the assert_img branch August 17, 2021 03:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL