Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fix generated partial volumes misaligned with input volume node
This commit fixes how the generated PV tiffs are loaded, to ensure that the partial volume nodes preserve the original RAS/LPS orientation of the input volume node. Previously, the generated tiff files were always loaded in LPS-like orientation (e.g., the IJK-to-RAS Direction Matrix would have -1 in the first two diagonal entries). This would work correctly on most data we have tested against, when the data is also originally in LPS orientation. However, for data this is inherently in RAS directions (e.g., the IJK-to-RAS Direction Matrix would have 1 in the first two diagonal entries), or for cropped volume nodes (cropping is observed to flip the volume from RAS to LPS directions or vice-versa), the loaded PVs would appear misaligned.
- Loading branch information