New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating STAR detector and FREAK descriptor to work with large and/or 16-bit images #1654
Conversation
Because apparently I love running performance tests for debug builds.
…lining. Java inlines static finals if they're defined with a constant expression. In case of version constants we don't want that to happen, since they obviously change from version to version. If the user substitutes a different OpenCV jar without recompiling, we want user code to still have relevant values for the version constants. This arranges that by turning constant values into function calls, which no longer count as a constant expression.
…nit 4.x. We don't use it, anyway.
Conflicts: modules/features2d/include/opencv2/features2d/features2d.hpp modules/features2d/src/stardetector.cpp modules/java/generator/gen_java.py samples/gpu/CMakeLists.txt
There are a lot of commits here that don't belong. |
How do I get the branch synced with the current master? I'm a git noob, I'm not sure what attempt number we're on now, and this was the best I could come up with. Original bugfix:
|
The windows build fails due to level 4 warnings in |
…emplated the SSE2 code for the same reason.
… still showing warnings. I'm putting a bit of debug code in...
Hm. How can I get this only on Windows?? I have all of the compile warnings & errors fixed. |
@seth-planet Looks like you submitted the same branch for this PR as for the old one (#1639). You need to rebase this branch locally on top of master, and then |
now it fails FREAK test (http://build.opencv.org/builders/precommit_windows/builds/6528) |
Can I run the FREAK test on Mac (or Linux)? For my own test cases, I'm getting identical results between master and my branch. I'd rather not have to install Windows just to replicate this bug. |
…lining. Java inlines static finals if they're defined with a constant expression. In case of version constants we don't want that to happen, since they obviously change from version to version. If the user substitutes a different OpenCV jar without recompiling, we want user code to still have relevant values for the version constants. This arranges that by turning constant values into function calls, which no longer count as a constant expression.
@SpecLad So, I tried to follow your rebasing instructions. Hopefully it helped things. |
You have even more commits now, not less. Try interactive rebase or perhaps the
Not sure what you mean here. Every test can be run on any platform. |
When i try to run the tests on my Mac, they all fail due to missing an image. I can't find any documentation on this. But the test reportedly only fails on windows anyway. Sent from my iPhone
|
Sounds like you're missing test data. You need to set the |
Ok, I worked my way through all the code, and figured out what the 'bug' is:
I'm automatically changing color images to grayscale. If I comment that out, the test passes. However, I would think that conversion to grayscale would be preferred. (That's how it's done in the STAR detector.) What is the preferred behavior? |
@vpisarev I believe that's a question for you. |
I'll wait for @vpisarev and create a clean pull request. |
hello? |
@vpisarev, could you please look at it? |
ping |
@seth-planet Actually, you might want to get rid of excess commits before the review - otherwise the diff is cluttered and it's not clear at all which changes are yours. Plus, a green build instills more confidence in your code. 😉 |
Clean pull request: |
A project that I've been working with involves large, 16-bit, images. The current implementations of the STAR feature detector and the FREAK feature descriptor don't support either large or 16-bit images. I've written a set of changes to support both. Much of the work goes into adding more bits to the integral image when appropriate. I'll discuss what needed doing: