技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
scikit-image【数据与研究】Route scikit-image tasks across image I/O, enhancement, analysis, segmentation, geometric transforms, and registration.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill for user-facing image-processing work with the scikit-image distribution and its stable skimage namespace. It routes tasks by workflow rather than by source module. The experimental skimage2 namespace is not a separate route; read references/experimental-api.md before using it.
For a normal runtime installation:
python -m pip install scikit-image
python -c "import skimage; print(skimage.__version__)"
When working from a source checkout, follow that checkout's build instructions instead of assuming an editable pure-Python install; scikit-image contains compiled extensions. Read references/troubleshooting.md for import/build failures, optional dependencies, dtype/range mistakes, channel-axis errors, and data-download issues. Read references/repo-provenance.md before deciding whether this skill is stale for a newer checkout or release.
For a safe import and temporary image round-trip check, run from this skill directory:
python sub-skills/data-io/scripts/check_install.py
| User task | Read |
|---|---|
| Load or save images; use bundled sample data; manage collections or multi-frame images; convert dtypes/ranges; reason about NumPy image shape and channel conventions | sub-skills/data-io/SKILL.md |
| Convert color spaces; adjust exposure or contrast; filter, threshold, denoise, restore, deblur, inpaint, unwrap phase, or remove backgrounds | sub-skills/enhancement/SKILL.md |
| Detect and match features; measure labeled regions; trace contours or surfaces; extract line profiles; compare images, masks, or segmentations with metrics | sub-skills/analysis/SKILL.md |
| Draw masks or shapes; apply morphology; create or clean labels; run watershed, random walker, superpixels, graph segmentation, or active contours | sub-skills/segmentation-and-shapes/SKILL.md |
| Resize, rotate, rescale, warp, or build pyramids; estimate geometric transforms; use Radon/Hough helpers; register images or estimate optical flow | sub-skills/transform-registration/SKILL.md |
data-io; route onward once the image is a well-formed NumPy array.regionprops or segmentation metrics is analysis.shape, dtype, value range, and channel layout before processing it.channel_axis whenever an API offers it; use None for grayscale or scalar images.astype when the intent is image-range conversion. Use skimage.util.img_as_* and preserve the intended numeric semantics.preserve_range=True when an operation must retain native intensity units and the API supports it.order=0) for masks or labels unless interpolation of class IDs is explicitly intended.spacing where measurements or 3-D geometry must use real-world units.skimage namespace for production work. skimage2 is experimental, can change without notice, and may differ in signatures or behavior.A typical multi-stage workflow is:
data-io: load an image and normalize its array representation.enhancement: convert color, denoise, adjust exposure, or choose a threshold.segmentation-and-shapes: create masks and labels or partition the image.analysis: compute region properties, features, contours, or quality metrics.transform-registration: align images or apply a coordinate transform when geometry is involved.Only read the stages needed by the task. Each leaf contains focused workflows and troubleshooting guidance.
references/troubleshooting.md — package-wide install, import, compiled-extension, dtype/range, channel-axis, optional-dependency, and data issues.references/experimental-api.md — the skimage2 status, safe routing, and migration cautions.references/repo-provenance.md — source snapshot and refresh baseline.sub-skills/data-io/scripts/check_install.py — safe import and local temporary-file smoke helper.This skill covers public runtime image-processing workflows. It does not cover repository release engineering, CI configuration, benchmarks, Cython/Meson maintainer internals, gallery generation, or domain-specific computer-vision models outside scikit-image. Optional external packages and interactive viewers are supported only as dependencies of a routed workflow, not as independent skill areas.