Segmentation labels

From VectorSpaceLab/AREX-Skill · View interactive version

Segmentation labels is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Use ANTsPy segmentation and label workflows for Atropos, k-means, Otsu, priors, joint label fusion, label statistics, overlap, geometry, matrices, centroids, points, and multi-label morphology.

How to use this skill

Skill file

ANTsPy Segmentation and Labels

Use this sub-skill when a task asks for ANTsPy segmentation, label images, connected components, label statistics, overlap/geometry measures, label matrices, centroid or point-image workflows, multi-label morphology, or segmentation-to-mask/registration handoffs.

Start Here

  1. Import the public package as import ants; the package distribution is antspyx.
  2. Check verified signatures and return contracts in API reference.
  3. Pick a recipe from workflows: k-means, Atropos, Otsu, prior-based segmentation, joint label fusion, label stats/overlap/matrix, point images, or mask alignment validation.
  4. Use troubleshooting before changing class counts, masks, priors, label dtypes, or physical metadata.
  5. Run scripts/antspy_segmentation_smoke.py for a tiny deterministic in-memory check in an environment with antspyx installed.

Core Contracts

Route Elsewhere

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.