Skip to content
Back to skills

Mri Operators

ASecurity

"Use fastMRI complex tensor math, centered FFT/IFFT, RSS coil

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
code-qualitydebuggingapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill mri-operators --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mri Operators?

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

Security grade badge for Mri Operators
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-mri-operators/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-mri-operators)

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: mri-operators
description: "Use fastMRI complex tensor math, centered FFT/IFFT, RSS coil
  combine, SSIM loss, crops, normalization, and metric shape checks safely."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# fastMRI MRI Operators

Use this sub-skill when a task needs fastMRI tensor operators rather than data loading, model architecture design, or file-level leaderboard evaluation.

## Operator Checklist

- Use fastMRI's real/imaginary tensor convention: complex PyTorch tensors are real tensors whose final dimension has size `2`.
- Use `fastmri.fft2c(data, norm="ortho")` and `fastmri.ifft2c(data, norm="ortho")` for centered 2D transforms; spatial dimensions are `-3` and `-2`, and complex real/imag is `-1`.
- Use `fastmri.complex_abs`, `fastmri.complex_abs_sq`, `fastmri.complex_mul`, `fastmri.complex_conj`, and `fastmri.tensor_to_complex_np` for complex tensor math.
- Use `fastmri.rss(data, dim=...)` for real-valued coil images and `fastmri.rss_complex(data, dim=...)` for complex coil data; always set the coil dimension explicitly when it is not dimension `0`.
- Use `fastmri.data.transforms.center_crop`, `complex_center_crop`, `center_crop_to_smallest`, and `normalize_instance` for crop and normalization steps before losses or metrics.
- Use `fastmri.SSIMLoss` for tensor losses and `fastmri.evaluate` metrics for array-level reporting only after checking shape, crop, and finite-value assumptions.

## References

- [API reference](references/api-reference.md) explains exact operator signatures, tensor shape conventions, crop behavior, losses, metrics, and validation snippets.
- [Troubleshooting](references/troubleshooting.md) maps common FFT, complex dimension, RSS, crop, SSIM, metric, dtype/device, and dependency failures to fixes.
- [Smoke script](scripts/smoke_mri_ops.py) runs a tiny CPU-only check for complex absolute value, centered FFT/IFFT shape, RSS, and center crop; use it when validating an environment or debugging operator imports.

## Boundaries

- For reading k-space from fastMRI HDF5 files and applying masks in dataset transforms, use [data-loading](../data-loading/SKILL.md).
- For neural network architectures, training modules, VarNet, U-Net, and Lightning modules, use [model-architectures](../model-architectures/SKILL.md).
- For file-based reconstruction evaluation, saving submissions, and challenge output directories, use [evaluation-submission](../evaluation-submission/SKILL.md).

Files in this skill

  • SKILL.md2.4 KB
  • references/api-reference.md6.5 KB
  • references/troubleshooting.md6 KB
  • scripts/smoke_mri_ops.py3.2 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.