Detecting fine and medium discontinuities