An edge detection system is provided that generates a scanning electron microscope (SEM) linescan image of a pattern structure including a feature with edges that require detection. The edge detection system includes an inverse linescan model tool that receives measured linescan information for the feature from the SEM. In response, the inverse linescan model tool provides feature geometry information that includes the position of the detected edges of the feature.