Detecting Morphological Filtering of Binary Images