Skip to content

29 cartesian undersampling distortion#32

Merged
MatthiasLen merged 5 commits into
mainfrom
29-cartesian-undersampling-distortion
May 6, 2026
Merged

29 cartesian undersampling distortion#32
MatthiasLen merged 5 commits into
mainfrom
29-cartesian-undersampling-distortion

Conversation

@MatthiasLen
Copy link
Copy Markdown
Owner

Closes #29 . See issue for detailed description.

@MatthiasLen MatthiasLen linked an issue Apr 30, 2026 that may be closed by this pull request
@MatthiasLen MatthiasLen self-assigned this Apr 30, 2026
@MatthiasLen MatthiasLen added enhancement New feature or request distortions Related to implementation of distortion. labels Apr 30, 2026
Comment thread mri_recon/distortions/undersampling.py
Copy link
Copy Markdown
Collaborator

@melanie-dohmen-bayer melanie-dohmen-bayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, if center_fraction is allowed to be 0.0, for respresenting FOV reduction and aliasing

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Cartesian k-space undersampling distortion to better simulate physically realistic MRI acquisition undersampling (binary line mask with optional ACS), and wires it into the project’s public API, tests, docs, and an example script.

Changes:

  • Implement CartesianUndersampling distortion with keep/center fraction controls and multiple sampling patterns (uniform random, variable density random, equispaced) plus mask caching.
  • Export the new distortion from mri_recon.distortions and document it in the README distortions table.
  • Extend distortion tests and update the FastMRI inference example to include new undersampling presets.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
mri_recon/distortions/undersampling.py Adds the new CartesianUndersampling distortion implementation, including mask generation and caching.
mri_recon/distortions/__init__.py Exposes CartesianUndersampling from the distortions package.
tests/test_distortions.py Adds validation, determinism, ACS preservation, masking behavior, caching, and adjointness tests for the new distortion.
README.md Documents the new distortion in the distortions table.
examples/fastmri_inference_plot.py Adds selectable undersampling distortion presets and adjusts the example’s algorithm list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mri_recon/distortions/undersampling.py
Comment thread mri_recon/distortions/undersampling.py
Comment thread examples/fastmri_inference_plot.py
@MatthiasLen MatthiasLen merged commit b85c0f5 into main May 6, 2026
6 checks passed
@MatthiasLen MatthiasLen deleted the 29-cartesian-undersampling-distortion branch May 6, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

distortions Related to implementation of distortion. enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cartesian Undersampling Distortion

3 participants