A gradient image describes the differences of neighboring pixels in the image. Extracting edges only depending on a gradient image will results in noised and broken edges. Here, we propose a two-stage edge extraction approach with contextual-filter edge d