Hi I'm trying to make a python script to get MTF curve for the input image
Here is my algorithm to get MTF.
1. get Image
2. select ROI(High contrast region)
3. extract a center line out of image array.
4. differentiate the pixel value
5. apply fast Fourier transform and sort it.
6. apply polynomial fitting to get smooth curve
7. normalize 0~1
8. get the absolute value of number 7
Is this right way to get MTF?
I'm little confused.
this is the reference code I'm using
https://github.com/habi/GlobalDiagnostiX/blob/master/MTF.py