Skip to content

Conversation

@griwodz
Copy link
Member

@griwodz griwodz commented Oct 24, 2025

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

  • Remove practically unreachable alternative code for downscaling between octaves

This piece of now unreachable code was a replicating buggy OpenCV behaviour that existed in 2016.
Its case was no reachable callable with any valid command line or library parameter.
@griwodz griwodz merged commit 77d1d28 into develop Oct 27, 2025
5 checks passed
@griwodz griwodz deleted the dev/remove-extrema-refinement-mode-opencv branch October 27, 2025 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants