Skip to content

Commit

Permalink
print correct tran res after post processing
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclifford1 committed Jul 18, 2024
1 parent 0cbf4a1 commit c21c98e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion IQM_Vis/utils/gui_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ def get_image_pair_name(data_store):

def get_resolutions(data_store):
ref = data_store.get_reference_image().shape
trans = data_store.get_image_to_transform().shape
if hasattr(data_store, 'image_post_processing'):
trans_im = data_store.get_image_to_transform()
if data_store.image_post_processing is not None:
trans_im = data_store.image_post_processing(trans_im)
trans = trans_im.shape
return {'reference': f'{ref[0]}x{ref[1]}',
'transform': f'{trans[0]}x{trans[1]}'}

Expand Down

0 comments on commit c21c98e

Please sign in to comment.