Calculate the sharpness of profiles