The GMF tool in MIL X includes dedicated modes for finding circles, ellipses, rectangles, and line segments. These modes use the same advanced edge-based technique to locate one or more occurrences of any size—including ones within another for circles, ellipses, and rectangles. Circle finding is defined by the anticipated radius, the possible scale range, and the number of expected occurrences. Ellipse and rectangle finding are defined by the anticipated width and height, the possible scale and aspect ratio ranges, and the number of expected occurrences. Line segment finding is defined by the anticipated length and the number of expected occurrences. Continuous and broken edges lying within an adjustable variation tolerance produce the requested shape.
The shape-finding tool returns the total number of found occurrences; for each occurrence, the tool provides the center position and score relative to the reference. It also gives the radius and scale for circles; the angle, aspect ratio, width, and scale for ellipses and rectangles; and the start and end positions as well as the length for line segments. These specialized modes are generally faster and more robust at finding the specific shapes than generic pattern recognition.