CARVIEW |
Navigation Menu
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: weighted hough #21407
Conversation
How can I add optional function to the original (modules/imgproc) function? |
@vpisarev Could you take a look? |
Thank you for taking your time to check my pull request! I will revise and
tell 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:
***@***.***>
|
I wrote about this new function "weighted Hough transform" (https://qiita.com/Mas-sensyn/items/b9c2bfb87106acaa74d8). |
@MasahiroOgawa Friendly reminder. Could you add couple of tests for the new code. |
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:
***@***.***>
|
@MasahiroOgawa Friendly reminder. |
I am working on it.
I still working on creating unit test, but even the original unit test
fails.
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:
***@***.***>
|
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. |
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:
***@***.***>
|
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 the
test.
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:
> ***@***.***>
>
|
Thank you for considering this, as this looks very promising for my implication. Very eager to see it being merged. |
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. |
@MasahiroOgawa Friendly reminder. Please rebase and finish the PR. |
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:
***@***.***>
|
@MasahiroOgawa Friendly reminder. Please add some tests to the new algo. |
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:
***@***.***>
|
@MasahiroOgawa There are some merge conflicts. Could you take a look. |
…based on alalek review comment.
…ut fail just using simple hough.
|
|
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 Friendly reminder. |
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?
I noticed the below error in CI, and fixed by removing whitespace in test_houghlines.cpp.
|
…_hough Feature: weighted Hough Transform opencv#21407 ### Pull Request Readiness Checklist See details at https://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
…_hough Feature: weighted Hough Transform opencv#21407 ### Pull Request Readiness Checklist See details at https://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 at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.