Skip to content

Add missing SwapDimIfRotated in CtSwBinRoiFlip::getSize()

Samuel Debionne requested to merge fix-ct-image-sw-get-size into master

Fix a corner case where, given a rotation set to 90/270, setting a full image RoI (equivalent to empty RoI) and subsequently querying the RoI would return a different value.

With image.size = [200, 100], pseudo Bliss code:

image.rotation = 90
image.roi = [0, 0, 100, 200] # Full image RoI
assert image.roi == [0, 0, 100, 200] # FAILED [0, 0, 100, 200] != [0, 0, 200, 100]

Merge request reports

Loading