Generalizing some contour feature detectors.