Sharpness calculator