Patent ID: 8538165

Claim:
An image measuring apparatus comprising: a data memory configured to store Gerber data containing closed area information of a measured object; a display configured to display a pattern image based on the closed area information of the Gerber data; an inputter that receives an input of a location of an edge to be detected, a detection direction and a detection length; a detection specification information displayer configured to display, on the display, detection specification information specifying the location of the edge to be detected, the detection direction and the detection length, by superimposing the detection specification information on the pattern image displayed on the display; an image capturer configured to capture an image of an area corresponding to the detection specification information of the measured object, when the detection specification information is displayed on the display by the detection specification information displayer, by superimposing the detection specification information on the pattern image; an edge detector configured to perform an edge detection of the location of the edge to be detected, with respect to data of the image captured by the image capturer, according to the detection direction and the detection length specified by the detection specification information, and according to a light-dark change parameter; and a condition determiner configured to determine, by using the Gerber data, a light-dark change condition indicating whether the image changes from a light section to a dark section or from a dark section to a light section along the detection direction based upon the detection direction of the detection specification information, before the edge detector performs the edge detection, wherein the edge detector performs the edge detection using the light-dark change condition determined by the condition determiner, as the light-dark change parameter.