Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
Feature: weighted hough#21407
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Feature: weighted hough#21407
Uh oh!
There was an error while loading.Please reload this page.
Conversation
MasahiroOgawa commentedJan 7, 2022
How can I add optional function to the original (modules/imgproc) function? |
asmorkalov commentedJan 10, 2022
@vpisarev Could you take a look? |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
MasahiroOgawa commentedJan 11, 2022 via email
Thank you for taking your time to check my pull request! I will revise andtell you soon.2022年1月10日(月) 16:39 Alexander Alekhin ***@***.***>: … ***@***.**** commented on this pull request. ------------------------------ In modules/imgproc/src/hough.cpp <#21407 (comment)>: > @@ -180,7 +180,11 @@ HoughLinesStandard( InputArray src, OutputArray lines, int type, { int r = cvRound( j * tabCos[n] + i * tabSin[n] ); r += (numrho - 1) / 2; - accum[(n+1) * (numrho+2) + r+1]++; + if (use_edgeval) { if in inner loops is slow. ------------------------------ In modules/imgproc/include/opencv2/imgproc.hpp <#21407 (comment)>: > @@ -2112,11 +2112,15 @@ parameters should be positive. Must fall between 0 and max_theta.@param max_theta For standard and multi-scale Hough transform, maximum angle to check for lines. Must fall between min_theta and CV_PI. ***@***.*** use_weight True if you want to use weighted Hough transform. ***@***.*** thre_edgeval For weighted Hough transform, only account for over this No such params. — Reply to this email directly, view it on GitHub <#21407 (review)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADESA3BXDUJIXVYEOAZ37ZTUVKEMRANCNFSM5LN3N6KQ> . Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>. You are receiving this because you authored the thread.Message ID: ***@***.***> |
MasahiroOgawa commentedJan 30, 2022
I wrote about this new function "weighted Hough transform" (https://qiita.com/Mas-sensyn/items/b9c2bfb87106acaa74d8). |
asmorkalov commentedMay 20, 2022
@MasahiroOgawa Friendly reminder. Could you add couple of tests for the new code. |
MasahiroOgawa commentedMay 20, 2022 via email
Oh, I see. Thank you for your feedback!2022年5月20日(金) 16:50 Alexander Smorkalov ***@***.***>: …@MasahiroOgawa <https://github.com/MasahiroOgawa> Friendly reminder. Could you add couple of tests for the new code. — Reply to this email directly, view it on GitHub <#21407 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADESA3FWWG3RMPUKRFBZD6DVK474HANCNFSM5LN3N6KQ> . You are receiving this because you were mentioned.Message ID: ***@***.***> |
asmorkalov commentedJun 3, 2022
@MasahiroOgawa Friendly reminder. |
MasahiroOgawa commentedJun 3, 2022 via email
I am working on it.I still working on creating unit test, but even the original unit testfails.It seems the test image data is not exist in proper place.I ran $ bin/opencv_test_imgproc .I will send this issue to github issues later.2022年6月3日(金) 17:56 Alexander Smorkalov ***@***.***>: …@MasahiroOgawa <https://github.com/MasahiroOgawa> Friendly reminder. — Reply to this email directly, view it on GitHub <#21407 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADESA3CRKOBM2ONYGUIL4HLVNHCETANCNFSM5LN3N6KQ> . You are receiving this because you were mentioned.Message ID: ***@***.***> |
asmorkalov commentedJun 3, 2022
OpenCV stores all test data in opencv_extra repo:https://github.com/opencv/opencv_extra/. You need to create PR to the repo with the same branch name as you original PR. They'll be tested together automatically. |
MasahiroOgawa commentedJun 3, 2022 via email
Thank you.Yes I noticed that and pulled opencv_extra, and built opencv with "OPENCV_TEST_DATA_PATH" specifying pulled opencv_extra/testdata path.But even though I did, I still failed to run opencv_test_imgproc with thesame error(imread_ fails to open /shared/fruits.png).The data exists in opencv_extra/testdata/cv/shared, so I need to pass "cv/"directory.I'm still struggling with that.I will continue to try. …On Fri, Jun 3, 2022 at 23:10 Alexander Smorkalov ***@***.***> wrote: OpenCV stores all test data in opencv_extra repo:https://github.com/opencv/opencv_extra/. You need to create PR to the repo with the same branch name as you original PR. They'll be tested together automatically. — Reply to this email directly, view it on GitHub <#21407 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADESA3ER4C32ZG2DHZFYGB3VNIG5PANCNFSM5LN3N6KQ> . You are receiving this because you were mentioned.Message ID: ***@***.***> |
MasahiroOgawa commentedJun 4, 2022 via email
Succeeded to run the test!When I run $ export OPENCV_TEST_DATA_PATH=/home/.../opencv_extra/testdata/before running "bin/opencv_test_imgproc", it successfully passed all thetest.I will add unit tests for weighted hough from now on.2022年6月4日(土) 7:25 小川雅弘 ***@***.***>: … Thank you. Yes I noticed that and pulled opencv_extra, and built opencv with " OPENCV_TEST_DATA_PATH" specifying pulled opencv_extra/testdata path. But even though I did, I still failed to run opencv_test_imgproc with the same error(imread_ fails to open /shared/fruits.png). The data exists in opencv_extra/testdata/cv/shared, so I need to pass "cv/" directory. I'm still struggling with that. I will continue to try. On Fri, Jun 3, 2022 at 23:10 Alexander Smorkalov ***@***.***> wrote:> OpenCV stores all test data in opencv_extra repo:>https://github.com/opencv/opencv_extra/. You need to create PR to the> repo with the same branch name as you original PR. They'll be tested> together automatically.>> —> Reply to this email directly, view it on GitHub> <#21407 (comment)>,> or unsubscribe> <https://github.com/notifications/unsubscribe-auth/ADESA3ER4C32ZG2DHZFYGB3VNIG5PANCNFSM5LN3N6KQ>> .> You are receiving this because you were mentioned.Message ID:> ***@***.***>> |
quan787 commentedJun 21, 2022
Thank you for considering this, as this looks very promising for my implication. Very eager to see it being merged. |
MasahiroOgawa commentedJun 22, 2022
Sorry for my late update of unit test. Please wait for several days. I will add unit tests soon, then I hope this will be merged. |
asmorkalov commentedSep 7, 2022
@MasahiroOgawa Friendly reminder. Please rebase and finish the PR. |
MasahiroOgawa commentedSep 8, 2022 via email
Sorry, but I'm still struggling to implement the unit test for this.So first I have to finish it.2022年9月7日(水) 22:17 Alexander Smorkalov ***@***.***>: …@MasahiroOgawa <https://github.com/MasahiroOgawa> Friendly reminder. Please rebase and finish the PR. — Reply to this email directly, view it on GitHub <#21407 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADESA3AAB53MCROUX6X2NUDV5CIWLANCNFSM5LN3N6KQ> . You are receiving this because you were mentioned.Message ID: ***@***.***> |
asmorkalov commentedOct 7, 2022
@MasahiroOgawa Friendly reminder. Please add some tests to the new algo. |
MasahiroOgawa commentedOct 9, 2022 via email
Will do, thanks!2022年10月7日(金) 21:30 Alexander Smorkalov ***@***.***>: …@MasahiroOgawa <https://github.com/MasahiroOgawa> Friendly reminder. Please add some tests to the new algo. — Reply to this email directly, view it on GitHub <#21407 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADESA3EZY4QKR5SBPIYQH23WCAJXLANCNFSM5LN3N6KQ> . You are receiving this because you were mentioned.Message ID: ***@***.***> |
asmorkalov commentedNov 28, 2022
@MasahiroOgawa There are some merge conflicts. Could you take a look. |
…based on alalek review comment.
…ut fail just using simple hough.
asmorkalov commentedDec 19, 2024
|
asmorkalov commentedDec 20, 2024
|
MasahiroOgawa commentedDec 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I'm sorry for this error, but I think the error is related to the format I posted before. Should I run clang formatter? |
…s: 'const int' and 'const long unsigned int'
MasahiroOgawa commentedDec 20, 2024
Uh oh!
There was an error while loading.Please reload this page.
asmorkalov commentedDec 26, 2024
@MasahiroOgawa Friendly reminder. |
Uh oh!
There was an error while loading.Please reload this page.
| Mat standard_hough, probabilistic_hough, weighted_hough; | ||
| int min_threshold =50; | ||
| int max_trackbar =150; | ||
| int weightedhough_max_trackbar =1e+5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
MS Visual Studio reports warning here. Please use 100000. See CI logs for details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Oh I'm very sorry. Now I'm fixing and checking the build procedure. I will push after I confirmed it build without error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think I fixed the 2 errors in the CI.
But github workflow seems only run on branch 4.x, so I couldn't confirmed the fixation.
Could you check it by running CI?
MasahiroOgawa commentedJan 6, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I noticed the below error in CI, and fixed by removing whitespace in test_houghlines.cpp. |
fc994a6 intoopencv:4.xUh oh!
There was an error while loading.Please reload this page.
…_houghFeature: weighted Hough Transformopencv#21407### Pull Request Readiness ChecklistSee details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request- [x] I agree to contribute to the project under Apache 2 License.- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV- [x] The PR is proposed to proper branch- [x] There is reference to original bug report and related work- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name.- [x] The feature is well documented and sample code can be built with the project CMake
…_houghFeature: weighted Hough Transformopencv#21407### Pull Request Readiness ChecklistSee details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request- [x] I agree to contribute to the project under Apache 2 License.- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV- [x] The PR is proposed to proper branch- [x] There is reference to original bug report and related work- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name.- [x] The feature is well documented and sample code can be built with the project CMake

Pull Request Readiness Checklist
See details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.