-
Notifications
You must be signed in to change notification settings - Fork 163
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
Add higher order kernel support for Sobel operator #562
base: develop
Are you sure you want to change the base?
Conversation
Local repository in sync with upstream
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.
First, all CI builds need to pass for this PR.
I also left a few initial suggestions.
@mloskot , I have my mid-semester examinations in next week and I don't think I will be able to invest time . I will probably be back again on 27-28 th February once they are over. For this reason , I am converting this pull request to draft. Apologies for not doing this earlier. |
@meshtag No need to apologise. We're all volunteers here. Good luck with your exams. |
Codecov Report
@@ Coverage Diff @@
## develop #562 +/- ##
===========================================
+ Coverage 77.81% 79.08% +1.27%
===========================================
Files 110 118 +8
Lines 4367 5101 +734
===========================================
+ Hits 3398 4034 +636
- Misses 969 1067 +98 |
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.
LGTM
will have a look tonight :) |
Thanks @mloskot for the approval. |
@meshtag I believe it should also be possible to use some container like If there are changes like padding required for it to work, perhaps we should fix the image view convolution instead? What do you think (@mloskot @lpranam )? |
@simmplecoder , Regarding the second comment, |
@simmplecoder The optimisation ideas are interesting, but unless they are trivial, I don't mind if those are developed after the merge, in separate PRs. |
@simmplecoder , I have implemented changes suggested by you for improving performance. Please do give it a look when you get time. |
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.
The new code seems to introduce number of warnings that need to be avoided.
@mloskot , I encountered above error in this build and I am rather suspicious, is this related to changes made by me? |
This failure does not seem to be related to any of your changes in this PR. |
I am working to add support for specifying desired Sobel derivative as well as desired dimensions of the derivative kernel. This will help users to gain more control on the process. Since it will be more feature complete with extra test cases and will have some changes in logic/process, documentation as well as API, I would prefer creating a new PR for it(Please keep this one closed). |
Sorry, my commit auto-closed this PR by accident. Yes, the feature completeness sounds good,must have tests and ideally with docs. |
Description
This pull request intends to automate the process of kernel generation for higher order Sobel derivatives. Generated kernels were cross checked with opencv, test cases have been provided for comparing the obtained kernels with opencv kernels upto 6th order sobel derivative (13x13 dimensional). I used the following piece of code for obtaining opencv kernels.
I have kept the upper limit for dimensions of generated kernel as 31x31 (15th order sobel derivative), I think this limit can be further extended depending upon the execution time taken by other processes of the algorithm apart from kernel generation.
References
https://stackoverflow.com/a/10032882/14958679
Tasklist