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.
sitk_bspline_to_dataarrayand its inverse_dataarray_to_sitk_bsplineinsrc/confusius/registration/bspline.pyassumed 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 bydataarray_to_sitk_image, and used consistently everywhere else, e.g.resample_volume) never reverses axes: SimpleITK axisimaps directly to DataArray dimi.