Skip to content

B-spline control-point grid geometry is swapped between axes on anisotropic images #236

Description

@sdiebolt

sitk_bspline_to_dataarray and its inverse _dataarray_to_sitk_bspline in src/confusius/registration/bspline.py assumed SimpleITK reverses axis order relative to the DataArray ((x, y, z) vs. (z, y, x)) and applied a permutation to compensate. In fact ConfUSIus' actual convention (established by dataarray_to_sitk_image, and used consistently everywhere else, e.g. resample_volume) never reverses axes: SimpleITK axis i maps directly to DataArray dim i.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions