[sift] Remove unreachable code #180
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This removes one of two alternatives for downscaling from the 3rd last layer of an octave to the first layer of the next octave. There were two alternatives:
(1) pick only the even pixels from the even rows (this version is retained)
(2) perform a linear interpolation between a square of 4 pixels (this version is removed)
The second approach was now unreachable code that replicated buggy OpenCV behaviour that existed in 2016.
The real bug was not in the downscaling according to (2), it was that everything else in the code was indexed as if (1) had been used.
In PopSift, this case has not been reachable with any valid command line or library parameter for a long time because it led to errors in feature position computations.
Features list