Patent ID: 7382920

Claim:
An analyzing apparatus comprising: a placing unit that places a mesh over an image of the element thereby dividing the image into a plurality of solids; a dividing unit that divides with straight lines each of the solids into an even number of parts, each part having substantially same area; a determining unit that for each of the solids determines intersection points that are points where the straight lines in the solid intersect with a boundary of the element in the image; a calculating unit that determines for each of the solids whether the intersection points determined by the determining unit are inside or outside of the element, and calculates a number of inside intersection points that are intersection points inside of the element; and a model creating unit that determines for each of the solids whether the number of the inside intersection points calculated by the calculating unit is equal to or more than a first threshold, allocates information indicative of presence of the element in a solid determined to have the number of the inside intersection points equal to or more than the first threshold, allocates information indicative of absence of the element in a solid determined to have the number of the inside intersection points less than the first threshold, and creates an analytical model for the element from the information allocated to the solids.