A colleague interested in astrophotography asked me for an algorithm to compute the half-flux diameter of an image.
It turns out that the recipes commonly found on the internet are actually incorrect so I had to analyse the problem in an excruciatingly mathematical detail to devise a correct algorithm.
Originally written on February 3, 2013.
I'm sharing this work under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. See the LICENSE file for more information.