caps icon indicating copy to clipboard operation
caps copied to clipboard

Can you explain the operation in the function rotateImage?

Open DRjy opened this issue 2 years ago • 0 comments

https://github.com/qianqianwang68/caps/blob/3ed2670caeef2410ecafec27713195a27ce304c4/dataloader/data_utils.py#L17 https://github.com/qianqianwang68/caps/blob/3ed2670caeef2410ecafec27713195a27ce304c4/dataloader/data_utils.py#L18 https://github.com/qianqianwang68/caps/blob/3ed2670caeef2410ecafec27713195a27ce304c4/dataloader/data_utils.py#L19

Hi, thanks your great work. I have a trobule in understanding the operation of rotation. I dont derive the new_height and new_width, and do not understand why the maximum of max(scale_h, scale_w) as the final scale? Can you give me a detailed explanation?

Thank you @qianqianwang68 in advance!

DRjy avatar Nov 03 '22 15:11 DRjy