Currently I'm designing a test program for mobile phone camera module. I'm trying to control a precision motor that adjust the focus barrel of the camera to get optimum focus point. I've been looking for an algorithm for contrast transfer function but so far what I can find is only mathematical formulas.
Has anyone tried implementing CTF before?