Skip to content

Conversation

jcupitt
Copy link
Member

@jcupitt jcupitt commented Jul 16, 2025

only there for three years sigh

see #4609

only there for three years sigh

see #4609
*/
const int next = bands * rank->width;
Copy link
Member Author

@jcupitt jcupitt Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the fix, it was bands * (rank->width - 1)

@jcupitt
Copy link
Member Author

jcupitt commented Jul 16, 2025

I reformatted to our more modern style, which make the fix hard to spot, but see the comment above.

The error only really shows when running large rank filters on binary images, so maybe the three year discovery time is not so bad.

I checked vips_hist_local() (also has a rolling histogram) and it's fine.

jcupitt added 2 commits July 16, 2025 05:10
I'd left the demand hint for rank as smalltile from some debugging. I've
set the whole of morphology to sequential mode, which should be safe,
cf. the convolution base class.
@kleisauke
Copy link
Member

Was 8.17 intentionally used as the base branch? It looks like we should drop commit cc61cb2 and merge this directly into master via the CLI instead.

@jcupitt jcupitt merged commit 62a8564 into master Jul 16, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants