技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
image-core【数据与研究】Work with SimpleITK Image objects, spatial metadata, pixel/component types, physical coordinates, and NumPy array conversion.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task involves constructing or inspecting sitk.Image objects, preserving origin/spacing/direction, converting between index and physical coordinates, reading or writing individual pixels, diagnosing pixel/component ids, or bridging images to NumPy arrays.
sitk.GetArrayFromImage, sitk.GetArrayViewFromImage, sitk.GetImageFromArray, reversed shape order, vector image component axes, dtype mapping, and metadata preservation after array processing.isVector choices, component mismatches, direction errors, or out-of-bounds indices.ReadImage, WriteImage, registered ImageIOs, DICOM tags, series discovery, file formats, or dataset examples, route to ../io-and-data/SKILL.md.import SimpleITK as sitk; the Python distribution name is simpleitk.Image as a pixel buffer plus physical geometry. Preserve GetOrigin(), GetSpacing(), and GetDirection() whenever replacing pixels or rebuilding from NumPy.(x, y, z, ...); NumPy scalar arrays expose spatial axes in reverse order such as (z, y, x) for 3D.sitk.GetArrayFromImage(image) returns a mutable deep copy; sitk.GetArrayViewFromImage(image) returns a read-only view tied to the image buffer.sitk.GetImageFromArray(array, isVector=None) creates a new image with default geometry, reverses spatial axes, and treats the final axis as components only when vector conversion applies.