I am making an edge detection on a video. The object has internal and external edges detected. I want to separate them in different group. If there is a dark pixel between white