How to calculate the scale factor of layer to fit crop rect when applying CIStraightenFilter?

Viewed 26

I am making a photo editor app like apple photos, but I can't make a exactly straighten image filter

enter image description here

I didn't figure what is the correct scale of a layer to fit a crop rect when applying CIStraightenFilter to fit image with crop rectangle.

0 Answers
Related