Skip to content

Refresh the image after reapplying GUI filters - #1501

Open
sylvesterkaczmarek wants to merge 1 commit into
MouseLand:mainfrom
sylvesterkaczmarek:fix/1452-refresh-filter-display
Open

sylvesterkaczmarek wants to merge 1 commit into
MouseLand:mainfrom
sylvesterkaczmarek:fix/1452-refresh-filter-display

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Fixes #1452.

Refresh the plot after computing the filtered image. When the restored view and saturation slider values were unchanged, another Filter click recomputed the data without redrawing the displayed pixels. Filtering still starts from the raw stack, and annotations remain intact.

Validation

  • Two real Qt GUI regressions fail on the original implementation and pass with the fix, covering automatic/manual saturation, repeated clicks, changing settings, clearing/refiltering, and unchanged raw data and masks.
  • Full pytest --runslow --ignore=tests/contrib run: 59 passed, 1 skipped, no failures. The existing contrib exclusion matches the project's tox command.
  • Automated review found no production-code defect and exercised 11 additional GUI cases. Its test-isolation finding was corrected by restoring NumPy RNG state and pyqtgraph's image-axis setting.
  • After that fixture-only correction, 19 related tests passed with one CUDA-dependent skip, both GUI regressions passed with callback-exception guards, and all 11 supplemental probes passed. The production code is unchanged from the full slow-suite run; the final fixture correction was checked separately rather than rerunning that entire suite.
  • git diff --check passes. Validation was on macOS with offscreen Qt; native Linux/Windows GUI testing and upstream CI remain outstanding.

Contribution policy

This implementation was prepared with coding-agent assistance. Cellpose's current contribution guide excludes agent-implemented changes, so this proposal requires an explicit maintainer exception before submission. Human review of this new patch remains pending.

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.

[BUG] Filter button not correctly filtering image

1 participant