scikit-image

0.26.0 · active · verified Sun Mar 29

scikit-image is an open-source Python library for image processing and computer vision, built on NumPy, SciPy, and other core scientific Python projects. It provides a comprehensive collection of algorithms for tasks such as segmentation, filtering, transformation, feature detection, and analysis. The project is actively maintained, with frequent releases, and version 0.26.0 was released on 2025-12-20.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates loading an example grayscale image using `skimage.data.coins()` and applying a common image filtering technique, Otsu thresholding, from `skimage.filters` to convert it into a binary image. The shapes of the original and processed images are printed to confirm the operations.

import skimage as ski

# Load an example image (e.g., coins dataset)
image = ski.data.coins()

# Apply a basic image processing operation, e.g., Otsu thresholding
threshold_value = ski.filters.threshold_otsu(image)
binary_image = image > threshold_value

print(f"Original image shape: {image.shape}")
print(f"Calculated threshold value: {threshold_value}")
print(f"Processed (binary) image shape: {binary_image.shape}")

view raw JSON →