We want to separate zebra from the background. But if we apply the edge operator the some of the internal edges will be stronger than external ones.

We need an approach different from just equating the edge with high gradient.

 
<--- output of sobel operator







postprocessed edges ---->