poppy.
measure_sharpness
Compute image sharpness, the sum of pixel squares.
See Makidon et al. JWST-STScI-001157 for a discussion of this image metric and its relationship to noise equivalent pixels.