Skip to content

Comments

Display actual threshold value in Global Otsu plot#7780

Merged
stefanv merged 1 commit intoscikit-image:mainfrom
emmanuel-ferdman:main
Apr 25, 2025
Merged

Display actual threshold value in Global Otsu plot#7780
stefanv merged 1 commit intoscikit-image:mainfrom
emmanuel-ferdman:main

Conversation

@emmanuel-ferdman
Copy link
Contributor

Description

This PR fixes an issue in the thresholding guide example where the Global Otsu plot title displayed a literal placeholder ({threshold_global_otsu}) instead of the actual computed threshold value. The placeholder was inside a regular string rather than an f-string, preventing the value from rendering correctly. Currently the output image is:

image

relevant page can be found here.

Checklist

Release note

Display actual threshold value in Global Otsu plot

@stefanv stefanv merged commit 17af81b into scikit-image:main Apr 25, 2025
3 checks passed
@stefanv
Copy link
Member

stefanv commented Apr 25, 2025

Thank you!

@stefanv stefanv added this to the 0.26 milestone Apr 25, 2025
@stefanv stefanv added the 📄 type: Documentation Updates, fixes and additions to documentation label Apr 25, 2025
matthew-brett added a commit to matthew-brett/scikit-image that referenced this pull request Jul 7, 2025
* origin/main:
  Deprecate estimate method in favor of class constructor (scikit-image#7771)
  Temporary fix for Visual Studio & Clang incompatibility in Windows image (scikit-image#7835)
  Address deprecations in Pillow 11.3 (scikit-image#7828)
  Remove unused & obsolete `legacy_datasets`, `legacy_registry` vars (scikit-image#7677)
  Draft migration guide for skimage2 (scikit-image#7785)
  Do not report failure in wheels sub-recipe (scikit-image#7806)
  Use consistent wording in property description. (scikit-image#7804)
  Add intensity_median to regionprops (scikit-image#7745)
  CI: Update pypa/gh-action-pypi-publish to v1.12.4 for attestations on PyPI (scikit-image#7793)
  Document output dtype for transform.resize. (scikit-image#7792)
  Use `cibuildwheel` to build WASM/Pyodide wheels for `scikit-image`, push nightlies to Anaconda.org (scikit-image#7440)
  DOC: Include missing gain parameter in adjust_gamma equation (scikit-image#7763)
  Temporarily pin to `pyodide-build==0.30.0`, and ensure that the correct xbuildenvs are used (scikit-image#7788)
  Deprecate old names & attributes in RegionProperties (scikit-image#7778)
  Pin JasonEtco/create-an-issue action to SHA for v2.9.2 (scikit-image#7787)
  Make doctest-plus work with spin (scikit-image#7786)
  Report failures on main via issue (scikit-image#7752)
  Use `workers` instead of alternate parameter names (scikit-image#7302)
  Fix f-string in otsu plot (scikit-image#7780)
  Further document use of regionprops function and fix terms. (scikit-image#7518)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📄 type: Documentation Updates, fixes and additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants