Shen algorithm performs one-dimensional filtering on binary images