tools for calculating the ratio of dark field and absorption