Skip to content

G-API: clean up accuracy tests - #14945

Merged
alalek merged 16 commits into
opencv:masterfrom
andrey-golubev:delete_bool
Jul 16, 2019
Merged

alalek merged 16 commits into
opencv:masterfrom
andrey-golubev:delete_bool

Conversation

@andrey-golubev

@andrey-golubev andrey-golubev commented Jul 1, 2019 •

Copy link
Copy Markdown
Member

This pullrequest

  • Deletes createOutputMatrices flag
  • Deletes custom printers for test fixtures. Introduces unified approach through operator<< overloading:
    • CV type is now properly printed: CV_8U printed as "CV_8U" instead of "0"
    • Enum values are also printed correctly: NormTypes::NORM_INF printed as "NORM_INF"
    • Comparison functions are pretty-printed: AbsTolerance(1) printed as "AbsTolerance(1)" instead of "compare_f"

Update the way compile args function is created

Fix instantiation suffix print function
@andrey-golubev

Copy link
Copy Markdown
Member Author

@dmatveev @rgarnov please review

@dmatveev dmatveev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we have a follow-up task on testing the output data allocation in our JIRA?

@andrey-golubev

Copy link
Copy Markdown
Member Author

@dmatveev please see updated version

Regarding:

Do we have a follow-up task on testing the output data allocation in our JIRA?

-- I plan to add it to JIRA and do separately

@andrey-golubev

Copy link
Copy Markdown
Member Author

@dmatveev added test on output data allocation - #14985

@andrey-golubev
andrey-golubev requested a review from dmatveev July 8, 2019 08:25

@rgarnov rgarnov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good

@andrey-golubev

Copy link
Copy Markdown
Member Author

@dmatveev please look into this

@andrey-golubev

Copy link
Copy Markdown
Member Author

@dmatveev proper output allocation tests are introduced here - #15012

@dmatveev dmatveev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, but some system-sensitive stuff like desc() can be improved.
Thanks!

@andrey-golubev

Copy link
Copy Markdown
Member Author

@dmatveev updated, please look

@dmatveev dmatveev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OK for me

@dmatveev

Copy link
Copy Markdown
Contributor

Thanks!

@andrey-golubev

Copy link
Copy Markdown
Member Author

@alalek I believe this PR is done, please merge

@dmatveev dmatveev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Kool, thanks! 👍

@alalek
alalek merged commit c9bd43c into opencv:master Jul 16, 2019
@andrey-golubev

Copy link
Copy Markdown
Member Author

Thanks!

@andrey-golubev
andrey-golubev deleted the delete_bool branch July 17, 2019 07:44
dvd42 pushed a commit to dvd42/opencv that referenced this pull request Aug 6, 2019
G-API: clean up accuracy tests (opencv#14945)

* Delete createOutputMatrices flag

Update the way compile args function is created

Fix instantiation suffix print function

* Update comment (NB)

* Make printable comparison functions

* Use defines instead of objects for compile args

* Remove custom printers, use operator<< overload

* Remove SAME_TYPE and use -1 instead

* Delete createOutputMatrices flag in new tests

* Fix GetParam() printed values

* Update Resize tests: use CompareF object

* Address code review feedback

* Add default cases for operator<< overloads

* change throw to GAPI_Assert
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
G-API: clean up accuracy tests (opencv#14945)

* Delete createOutputMatrices flag

Update the way compile args function is created

Fix instantiation suffix print function

* Update comment (NB)

* Make printable comparison functions

* Use defines instead of objects for compile args

* Remove custom printers, use operator<< overload

* Remove SAME_TYPE and use -1 instead

* Delete createOutputMatrices flag in new tests

* Fix GetParam() printed values

* Update Resize tests: use CompareF object

* Address code review feedback

* Add default cases for operator<< overloads

* change throw to GAPI_Assert
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
G-API: clean up accuracy tests (opencv#14945)

* Delete createOutputMatrices flag

Update the way compile args function is created

Fix instantiation suffix print function

* Update comment (NB)

* Make printable comparison functions

* Use defines instead of objects for compile args

* Remove custom printers, use operator<< overload

* Remove SAME_TYPE and use -1 instead

* Delete createOutputMatrices flag in new tests

* Fix GetParam() printed values

* Update Resize tests: use CompareF object

* Address code review feedback

* Add default cases for operator<< overloads

* change throw to GAPI_Assert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants