Closed mathvdd closed 1 year ago
Thanks for noticing! I just merged pull request #133 and release all as version 3.2.6. Can you pull/pip update and rerun your tests?
Just for the record: the expected behavior is a cutout around the center of the source but accounting for entire pixels shift (otherwise we need to interpolate on a new pixel grid). Anyway the coordinates of the source should now be correctly placed in the cutout
It works fine now, thanks!
image.cutout round new coordinate of sources to an upper left pixel if the cutout coords argument is given as a float. It seem to work ok if coords are given as int. Exemples bellow
EDIT: putting an uneven number for the cutout shape will give shifted coordinates in the cutout frame for int and float: