A syntactic and contextual edge detector and application of a rewriting rules set to improve detection | IEEE Conference Publication | IEEE Xplore