Adaptive optics requires more than just algorithms -- the algorithms' output are fed into a rapidly moving reflective surface to de-blur the incoming light [1] -- so this is a bad analogy. You might be thinking of some of the deconvolution algorithms [2] that the Hubble Space Telescope used before its "eyeglasses" were installed in 1993 to improve its flawed images.
[1] "Adaptive optics works by measuring the distortions in a wavefront and compensating for them with a device that corrects those errors such as a deformable mirror or a liquid crystal array." https://en.wikipedia.org/wiki/Adaptive_optics
[2] "The error was well characterized and stable, enabling astronomers to optimize the results obtained using sophisticated image processing techniques such as deconvolution." https://en.wikipedia.org/wiki/Hubble_Space_Telescope#Flawed_...