Image core

From VectorSpaceLab/AREX-Skill · View interactive version

Image core is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Create, read, write, inspect, clone, index, compare, and validate ANTsPy ANTsImage objects while preserving physical-space metadata.

How to use this skill

Skill file

ANTsPy Image Core

Use this sub-skill when a task is about the ants.ANTsImage lifecycle: constructing images from NumPy arrays, reading or writing image files, inspecting pixel type and physical metadata, cloning or casting images, indexing image data, comparing image values, checking physical-space consistency, or using packaged ANTsPy fixture data.

Start Here

  1. Import the public package as import ants; the package distribution is antspyx.
  2. For verified signatures, parameter notes, metadata semantics, and dtype rules, read API reference.
  3. For practical recipes, use workflows for creation, IO, NumPy round trips, metadata repair, indexing, and vector/RGB images.
  4. For common failures, use troubleshooting before changing image data or metadata.
  5. For a tiny deterministic runtime check, run scripts/antspy_image_smoke.py in an environment with antspyx installed.

Core Rules

Route Elsewhere

Boundary Notes

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.