技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-io【数据与研究】Load and save images with skimage.data and skimage.io, reason about NumPy image conventions and dtype conversion, and handle safe local round-trips and collections.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about bundled sample images, local image files, image collections, or the conversion boundary between file data and NumPy arrays.
Route away from this sub-skill when the task is mainly about:
../enhancement/SKILL.md../analysis/SKILL.md../segmentation-and-shapes/SKILL.md../transform-registration/SKILL.mdreferences/troubleshooting.md and prefer imageio or another direct video library instead.references/workflows.md for bundled sample data, safe local I/O, dtype conversion, and NumPy image conventions.references/troubleshooting.md when imports fail, astype changes the image unexpectedly, skimage.io plugin warnings appear, or collection and download behavior is confusing.scripts/check_install.py for a safe import and temp-file round-trip smoke test.skimage.data.camera(), coins(), astronaut(), text(), logo(), horse(), or binary_blobs() for bundled inputs.skimage.io.imread(path); write temporary round trips with skimage.io.imsave(path, image).skimage.util.img_as_float, img_as_ubyte, img_as_uint, img_as_int, or img_as_bool; never use astype to rescale an image.channel_axis is how most multichannel APIs stay clear.imread_collection when you want the convenience wrapper around ImageCollection; use ImageCollection directly for file sequences or custom loaders, and use MultiImage for multi-frame TIFFs when a single file should expose a frame list.view_as_windows, invert, montage, and lookfor as lightweight utilities in this route, but keep them secondary to data loading and saving.imageio or another direct I/O package when the task needs modern plugin control, video handling, or format-specific features. skimage.io plugin arguments are deprecated.skimage.data.download_all().references/workflows.md — sample-data, image I/O, dtype, collections, and NumPy conventions.references/troubleshooting.md — install, deprecation, download, collection, and dtype pitfalls.scripts/check_install.py — safe import and local image round-trip smoke check.Run from the sub-skill root:
python scripts/check_install.py