Skip to content

features2d: rounding error in OCL_AKAZE on Armv7 #17286

@tomoaki0705

Description

@tomoaki0705
System information (version)
  • OpenCV => recent 3.4 ( 6856cc7 ) / master (06bff34 )
  • Operating System / Platform => Debian stretch (9.9), Armv7, TinkerBoard, Ubuntu 16.04, Armv7, ODROID-XU4
  • Compiler => GCC 5.4.0, 6.3.0
  • OpenCL => 1.2
Detailed description

In both platform, two tests fail with slight eps over


[----------] 6 tests from OCL_AKAZE/Feature2DFixture
[ RUN      ] OCL_AKAZE/Feature2DFixture.KeypointsSame/0, where GetParam() = (8-byte object <44-EB 0E-00 38-EB 0E-00>, "detectors_descriptors_evaluation/images_datasets/leuven/img1.png")
[       OK ] OCL_AKAZE/Feature2DFixture.KeypointsSame/0 (5401 ms)
[ RUN      ] OCL_AKAZE/Feature2DFixture.KeypointsSame/1, where GetParam() = (8-byte object <44-EB 0E-00 38-EB 0E-00>, "../stitching/a3.png")
[       OK ] OCL_AKAZE/Feature2DFixture.KeypointsSame/1 (2725 ms)
[ RUN      ] OCL_AKAZE/Feature2DFixture.KeypointsSame/2, where GetParam() = (8-byte object <44-EB 0E-00 38-EB 0E-00>, "../stitching/s2.jpg")
/home/odroid/opencv-fork/modules/features2d/test/ocl/test_feature2d.cpp:54: Failure
The difference between keypoints[i].angle and ukeypoints[i].angle is 0.045185089111328125, which exceeds 0.001, where
keypoints[i].angle evaluates to 49.680412292480469,
ukeypoints[i].angle evaluates to 49.725597381591797, and
0.001 evaluates to 0.001.
[  FAILED  ] OCL_AKAZE/Feature2DFixture.KeypointsSame/2, where GetParam() = (8-byte object <44-EB 0E-00 38-EB 0E-00>, "../stitching/s2.jpg") (6259 ms)
[ RUN      ] OCL_AKAZE/Feature2DFixture.DescriptorsSame/0, where GetParam() = (8-byte object <34-B0 0F-00 28-B0 0F-00>, "detectors_descriptors_evaluation/images_datasets/leuven/img1.png")
[       OK ] OCL_AKAZE/Feature2DFixture.DescriptorsSame/0 (3633 ms)
[ RUN      ] OCL_AKAZE/Feature2DFixture.DescriptorsSame/1, where GetParam() = (8-byte object <34-B0 0F-00 28-B0 0F-00>, "../stitching/a3.png")
[       OK ] OCL_AKAZE/Feature2DFixture.DescriptorsSame/1 (2691 ms)
[ RUN      ] OCL_AKAZE/Feature2DFixture.DescriptorsSame/2, where GetParam() = (8-byte object <34-B0 0F-00 28-B0 0F-00>, "../stitching/s2.jpg")
[       OK ] OCL_AKAZE/Feature2DFixture.DescriptorsSame/2 (6054 ms)
[----------] 6 tests from OCL_AKAZE/Feature2DFixture (26766 ms total)

[----------] 6 tests from OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture
[ RUN      ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.KeypointsSame/0, where GetParam() = (8-byte object <3C-E8 0E-00 30-E8 0E-00>, "detectors_descriptors_evaluation/images_datasets/leuven/img1.png")
[       OK ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.KeypointsSame/0 (3521 ms)
[ RUN      ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.KeypointsSame/1, where GetParam() = (8-byte object <3C-E8 0E-00 30-E8 0E-00>, "../stitching/a3.png")
[       OK ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.KeypointsSame/1 (2754 ms)
[ RUN      ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.KeypointsSame/2, where GetParam() = (8-byte object <3C-E8 0E-00 30-E8 0E-00>, "../stitching/s2.jpg")
/home/odroid/opencv-fork/modules/features2d/test/ocl/test_feature2d.cpp:54: Failure
The difference between keypoints[i].angle and ukeypoints[i].angle is 0.045185089111328125, which exceeds 0.001, where
keypoints[i].angle evaluates to 49.680412292480469,
ukeypoints[i].angle evaluates to 49.725597381591797, and
0.001 evaluates to 0.001.
[  FAILED  ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.KeypointsSame/2, where GetParam() = (8-byte object <3C-E8 0E-00 30-E8 0E-00>, "../stitching/s2.jpg") (6262 ms)
[ RUN      ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.DescriptorsSame/0, where GetParam() = (8-byte object <C4-B5 0F-00 B8-B5 0F-00>, "detectors_descriptors_evaluation/images_datasets/leuven/img1.png")
[       OK ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.DescriptorsSame/0 (3523 ms)
[ RUN      ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.DescriptorsSame/1, where GetParam() = (8-byte object <C4-B5 0F-00 B8-B5 0F-00>, "../stitching/a3.png")
[       OK ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.DescriptorsSame/1 (2763 ms)
[ RUN      ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.DescriptorsSame/2, where GetParam() = (8-byte object <C4-B5 0F-00 B8-B5 0F-00>, "../stitching/s2.jpg")
[       OK ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.DescriptorsSame/2 (6371 ms)
[----------] 6 tests from OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture (25196 ms total)
 :
[  PASSED  ] 138 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] OCL_AKAZE/Feature2DFixture.KeypointsSame/2, where GetParam() = (8-byte object <44-EB 0E-00 38-EB 0E-00>, "../stitching/s2.jpg")
[  FAILED  ] OCL_AKAZE_DESCRIPTOR_KAZE/Feature2DFixture.KeypointsSame/2, where GetParam() = (8-byte object <3C-E8 0E-00 30-E8 0E-00>, "../stitching/s2.jpg")

 2 FAILED TESTS

I'll send a PR later

Steps to reproduce
Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    answers.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions