Skip to content
Back to skills

Registration Alignment

ASecurity

"Reslice Dipy images, configure affine and SyN registration, apply

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythongobashdebuggingapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill registration-alignment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Registration Alignment?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Registration Alignment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-registration-alignment/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-registration-alignment)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: registration-alignment
description: "Reslice Dipy images, configure affine and SyN registration, apply
  transforms, correct DWI motion, and align streamlines or bundles."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Dipy Registration And Alignment

Use this sub-skill when a task involves Dipy spatial resampling, affine image registration, SyN/diffeomorphic registration, applying saved transforms, between-volume DWI motion correction, streamline linear registration, or BundleWarp bundle deformation. Keep this file as the router; detailed API choices, CLI recipes, and failure recovery live in the bundled references.

## Route Here For

- Reslicing or resampling 3D/4D image arrays to new voxel sizes with `dipy.align.reslice.reslice` or `dipy_reslice`.
- Choosing and configuring center-of-mass, translation, rigid, scaling, or affine image registration.
- Running SyN registration with CC, SSD, or EM metrics and saving/applying displacement fields.
- Applying affine `.txt` or diffeomorphic displacement-field transforms to images.
- Correcting between-volume DWI motion from a 4D image plus b-values/b-vectors.
- Running streamline linear registration (SLR) or BundleWarp when bundle geometry, not voxel data, is the registration target.

## Route Elsewhere

- NIfTI loading/saving, b-values/b-vectors, headers, tractogram reference handling, and format conversion: `../io-data/`.
- Tractography, streamline clustering, bundle recognition, segmentation outputs, and tractometry after alignment: `../tracking-segmentation/`.
- Generic Dipy CLI discovery, parser behavior, and cross-family command inventories: `../cli-workflows/`.
- Model fitting, peaks, ODFs, tensor maps, or DWI reconstruction before/after alignment: `../reconstruction-models/`.

## Bundled Runtime References

- `references/api-reference.md` summarizes the registration APIs, transform objects, metrics, and owned CLI entry points.
- `references/workflows.md` gives safe recipes for reslice, affine/SyN registration, transform application, motion correction, SLR, and BundleWarp.
- `references/troubleshooting.md` maps symptoms to causes, concrete recovery actions, and validation checks.
- `scripts/dipy_reslice_smoke.py` runs a deterministic tiny 3D reslice check and prints JSON.

## Safe Defaults

- Start with a small crop or synthetic array before full-resolution whole-volume registration.
- Preserve and validate affines: moving data is transformed into static/reference space, and saved aligned images should use the static affine.
- Prefer affine or rigid registration for global pose/scale mismatch; add SyN only when nonlinear anatomical deformation is scientifically justified.
- Avoid assuming `matplotlib`, FURY, or display backends are installed; visual overlays from `dipy.viz.regtools` are optional QA, not required for runtime validation.
- For labels or masks, use nearest-neighbor interpolation; for scalar anatomical images, linear interpolation is usually safer.

## Minimal Validation

Run the bundled smoke script before deeper debugging:

```bash
python scripts/dipy_reslice_smoke.py
```

Expected output is JSON with `ok: true`, a changed shape, a changed affine diagonal consistent with the target voxel size, and preserved value range for the tiny synthetic volume.

Files in this skill

  • SKILL.md3.3 KB
  • references/api-reference.md9.5 KB
  • references/troubleshooting.md8.7 KB
  • references/workflows.md9.3 KB
  • scripts/dipy_reslice_smoke.py3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.