Absorption-free discrimination between semitransparent objects