-
Notifications
You must be signed in to change notification settings - Fork 114
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
minor suggestions for code improvement #122
Comments
popsift/src/popsift/s_extrema.cu Line 203 in 74f7053
popsift/src/popsift/s_extrema.cu Line 255 in f63d305
popsift/src/popsift/s_extrema.cu Line 485 in f63d305
I also don't think this 2.0f factor should be here. I understand that it is here just to negate some multiplication 0.5f which is made in Config::getPeakThreshold .popsift/src/popsift/sift_conf.cu Line 278 in f63d305
Looking at commit history this was made to adapt algorithm to OpenCV behaviour so it is reasonable to put this multiplication in ModeFunctions<Config::OpenCV>::first_contrast_ok and remove it elsewhere.
|
Is there a reason that values values in textures are multiplied by popsift/src/popsift/s_pyramid_build_ra.cu Line 54 in f63d305
popsift/src/popsift/s_pyramid_build_ra.cu Line 90 in f63d305
popsift/src/popsift/sift_conf.cu Line 278 in f63d305
popsift/src/popsift/s_pyramid_fixed.cu Line 174 in f63d305
popsift/src/popsift/sift_conf.h Line 343 in 3cd0836
|
I think there might be an error in some cases. In case where algorithm reaches MAX_ITERATIONS then variable popsift/src/popsift/s_extrema.cu Line 279 in f63d305
popsift/src/popsift/s_extrema.cu Line 461 in f63d305
To fix this issue something like this should be added to
|
@mitjap Sorry that I'm silent - end of semester, examining, grading, admission of new students etc. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Shouldn't this check bi inside of
ModeFunctions<Config::OpenCV>::refine
function?popsift/src/popsift/s_extrema.cu
Line 447 in fafcad9
There is already a comment in place suggesting this:
popsift/src/popsift/s_extrema.cu
Line 160 in fafcad9
Hope I'm not nitpicking here :) Just trying to make code be more readable. I'm also aware this should probably just be PR but I don't really have time to test and verify this claim.
The text was updated successfully, but these errors were encountered: