Correction of object metrics

Print Previous page Top page Next page

Procedure is intended to correct the metrics of linear and areal objects. Parameters of processing are contained in the file c:\Users\Public\Documents\Panorama\NAME.process:

 

<correction name="Correction of metrics of objects"> nameru="Коррекция метрики объектов"<set></set></correction>

 

NAME - the name of the script parameters file corresponds to the name of the classifier file.

 

For execution of the task, it is enough to specify the task with the <correction> tag (specifying of processing parameters is not required). The procedure performs search and correction of double points, degenerate contours, crossings and self-crossings of contours, adjacency of points and segments of contours, errors of location of subjects (located outside the main contour). Tables 1 and 2 show the errors determined during the control of self-crossings and the location of subjects. In all figures containing closed contours, points «A» and «a» denote the start and end points of the contour (point of closure). Uppercase letters indicate the points of the main contour, by lowercase - points of the additional contour (subject).

 

Table 1 - Types of errors determined during self-crossings check

 

Type

Description

1

The contour contains double points: the coordinates of points B and C coincide.

The search for double points is performed according to the condition: the distance between the points is less than the threshold for removing identical metric points (usually 0.001 mm).

Correction method: remove the extra point (C).

2

The contour has an overshoot at point B: the value of the angle ABC between two adjacent segments AB and BC is less than the permissible value (d <3 °).

Correction method: remove the extra point (B).

3

Degenerate contour: a non-closed (linear) object has less than 2 points or the contour points have the identical coordinates (double points).

Method of correction: if the contour is the main one - delete the object, otherwise - delete the contour (subobject).

4

Degenerate contour: a closed (linear or areal) object has less than 4 points or the points of the contour have the same coordinates (double points). The segments AB and BA coincide (arrows indicate the direction of the vectors).

Method of correction: if the contour is the main one - delete the object, otherwise - delete the contour (subobject).

5

The contour has self-crossing: segments AB and BC coincide.

Method of correction: remove extra points (B and C).

6

The contour has self-crossing: segments BC, СD and DE coincide.

Method of correction: remove extra points (D and E).

7

The object has a double contour: the pairs of line segments AB and DE, BC and EF, CD and FA coincide. The area of such an object is doubled.

Method of correction: remove extra points (D, E, F).

8

The contour has a self-crossing of the «loop» type: the segments AB and CD intersect.

Method of correction: if the loop has the small area (usually - less than 1 sq.mm) - remove unnecessary points (B and C); otherwise - create a separate object by loop points (B, C and a point of intersection of segments AB and СD), then remove the extra points.

9

The contour has a self-crossing of the «loop» type: contour sections FAB and CDE intersect at point A (D), coordinates of points A and D coincide.

Method of correction: if the loop has a small area (usually - less than 1 sq.mm) - remove unnecessary points (B, C, D); otherwise, create a separate object along the loop points (B, C, D), then delete unnecessary points.

10

The contour has a self-crossing of the «adjacency» type: contour sections FAB and CDE adjoin at point A (D).

Method of correction: if the change of the object's area is acceptable, increase the distance between points A and D (move point A up 0.5 mm); otherwise, apply the loop correction method.

11

The contour has a self-crossing of the «adjacency» type: contour sections HABC and DEFG have a common segment AB (EF).

Method of correction: if the change of the object's area is acceptable, increase the distance between segments AB and EF (move points A and B up 0.5 mm); otherwise, apply the loop correction method.

12

The contour has a self-crossing of the «adjacency» type: the sections of the contour GAB and CDE adjoin at point A (D).

Method of correction: if the change in the object's area is acceptable, increase the distance between points A and D (move point A up 0.5 mm).

13

The contour has a self-crossing of the «adjacency» type: contour sections GABC and DEFG have a common segment AB (EF).

Method of correction: digitize the object along the contour (AGBCD), then delete the original object.

14

The contour has a self-crossing of the «adjacency» type: contour sections GABC and DEFG have a common segment AB (EF).

Method of correction: digitize the object along the outer contour (AGBCD), then delete the original object.

15

The line object has a self-intersection of the «adjacency» type: the last point of the contour F is adjacent to the midpoint of the contour C.

Method of correction: cut the object at point C.

 

Table 2 - Types of errors, determined when checking the location of subobjects

 

Type

Description

1

The subobject contour intersects with the main contour: the subobject point (a) lies on line segment AB. The belonging of a point to a segment is determined by the condition: the distance between the point and the segment is less than the threshold for removing the identical metric points (usually 0.001 mm).

Method of correction: if the change of the object's area is acceptable, increase the distance between the point and the segment (move the subobject point by 0.5 mm to the left).

2

The subobject contour intersects with the main contour: the segments of the subobject (ac, ba) intersect the segment AB.

Method of correction: move the subobject point inside the main contour; if necessary, digitize an additional object to the right of the line segment AB.

3

The subobject contour is outside the main contour.

Method of correction: digitize additional object along the contour of the subobject (abc), then delete the subobject.

4

The subobject contour is located outside the main contour and adjoins the main contour at point A (a).

Method of correction: digitize additional object along the contour of the subobject (abc), then delete the subobject.

5

The subobject contour is located outside the main contour and adjoins the main contour: the contours have a common segment AB (ac).

Method of correction: digitize the object along the contour of the subobject (abc), then delete the subobject.

6

The subobject contour is located inside the main contour and adjoins the main contour at point A (a).

Method of correction: if the change of the object's area is acceptable, increase the distance between points (move point A by 0.5 mm to the right).

7

The subobject contour is located inside the main contour and adjoins the main contour: the contours have a common segment AB (ac).

Method of correction: digitize the object along the AbBCD contour, then delete the original object.

8

The contour of the subobject coincides with the main contour. The areas of the subobjects are subtracted from the area of the main contour, so the area of such an object is 0.

Method of correction: delete a subobject (abc) or delete an object.

9

The contour of the subobject is outside the main contour. The areas of the subobjects are subtracted from the area of the main contour, so the area of such an object is negative.

Method of correction: digitize the object along the contour of the subobject (abcd) and the subobject along the contour ABC, then delete the original object.