I found Image.resize() starting on line 1922 of https://github.com/python-pillow/Pillow/blob/bcded33ceead2ae69dad602ce95d8f892ffb46df/src/PIL/Image.py
but .resize() doesn't contain the 'logic' that actually does the calculations for each pixel. I can't find anything resize() calls that actually does contain that logic for executing the math behind the resizing. Is it in some file I missed?
I need to reimplement PIL's exact lanczos algorithm in tensorflow for reasons. (The opencv2 and tf native lanczos algorithms are slightly different)
Any insight?
I found Image.resize() starting on line 1922 of https://github.com/python-pillow/Pillow/blob/bcded33ceead2ae69dad602ce95d8f892ffb46df/src/PIL/Image.py
but .resize() doesn't contain the 'logic' that actually does the calculations for each pixel. I can't find anything resize() calls that actually does contain that logic for executing the math behind the resizing. Is it in some file I missed?
I need to reimplement PIL's exact lanczos algorithm in tensorflow for reasons. (The opencv2 and tf native lanczos algorithms are slightly different)
Any insight?