Skip to content

Fix reslicing for non-square in-plane volumes - #15

Open
Yunfeng404 wants to merge 1 commit into
OpenNFT:mainfrom
Yunfeng404:codex/fix-non-square-reslice
Open

Fix reslicing for non-square in-plane volumes#15
Yunfeng404 wants to merge 1 commit into
OpenNFT:mainfrom
Yunfeng404:codex/fix-non-square-reslice

Conversation

@Yunfeng404

@Yunfeng404 Yunfeng404 commented Sep 6, 2026

Copy link
Copy Markdown

Summary

  • build the second reslicing coordinate grid with the X dimension instead of repeating the Y dimension twice
  • add a regression test using a 3 x 5 x 2 volume

Why

The existing second grid has shape (dimY, dimY), while the first grid has shape (dimX, dimY). This raises a broadcasting error for valid non-square fMRI volumes, for example Haxby data with a 40 x 64 in-plane matrix.

Validation

  • full test suite: 3 passed
  • pyOpenNFT GUI online replay: 72/72 held-out Haxby volumes processed
  • no missing or duplicate volumes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant