buddy-compiler / buddy-benchmark

Benchmark Framework for Buddy Projects
Apache License 2.0
46 stars 39 forks source link

Add support for testing DIP dialect's 2D correlation op with OpenCV #23

Open meshtag opened 2 years ago

meshtag commented 2 years ago

This PR intends to add support for testing dip.corr_2d's output with OpenCV. All available kernels were used for correlating an image using DIP and OpenCV followed by comparison of their respective outputs.

meshtag commented 2 years ago

I was thinking of moving test.h file in tests/ directory instead of tests/UnitTests/ directory so that I can add some functions in it for image processing tests which we are further planning to keep inside tests/IntegrationTests/ directory. What is your opinion on this? (/cc @zhanghb97 @axmat)

zhanghb97 commented 2 years ago

moving test.h file in tests/ directory

What about moving to include/Utils ?

zhanghb97 commented 2 years ago

I run the ninja test && ninja image-processing-integration-tests and got:

17/17 Test #17: FilterTest.OpenCVComparison .............***Failed    0.01 sec

94% tests passed, 1 tests failed out of 17

Total Test time (real) =   0.09 sec

The following tests FAILED:
         17 - FilterTest.OpenCVComparison (Failed)
Errors while running CTest
FAILED: CMakeFiles/test.util 
cd /root/buddy-benchmark/build-check && /usr/bin/ctest --force-new-ctest-process
ninja: build stopped: subcommand failed.