(19)
(11) EP 0 375 805 A1

(12) EUROPEAN PATENT APPLICATION

(43) Date of publication:
04.07.1990 Bulletin 1990/27

(21) Application number: 88121903.4

(22) Date of filing: 30.12.1988
(51) International Patent Classification (IPC)5G06T 9/20
(84) Designated Contracting States:
BE DE FR GB IT NL SE

(71) Applicants:
  • YOZAN INC.
    Tokyo 155 (JP)
  • SHARP KABUSHIKI KAISHA
    Osaka 545 (JP)

(72) Inventor:
  • Kumagai, Ryohei
    Bunkyo-ku Tokyo 112 (JP)

(74) Representative: Grünecker, Kinkeldey, Stockmair & Schwanhäusser Anwaltssozietät 
Maximilianstrasse 58
80538 München
80538 München (DE)


(56) References cited: : 
   
       


    (54) Vectorizing method


    (57) According to the vectorizing method of the present invention, Freeman's chain code or any other codes equivalent thereto is generated because the code reflects the polygonal curve and other characteristics of peripheral.
    Then from the train of the codes, pixels on the border or near from the border are selected as vector points for defining a configuration.




    Description

    BACKGROUND OF THE INVENTION



    [0001] There are two types of data for storing or registering a configuration, that is, raster type and vector type. The vector type data, particularly the peripheral vector data is useful because it is smaller in volume than the raster data, as well as easily rotatable and changeable in size.

    [0002] Vector data is defined by a train of a part of boundary pixels of a configuration, so the quality of the reappeared configuration depends on selection of boundary pixels.

    [0003] In the case of character vectorizing, such as Chinese character's vectorizing, the reappearance quality is very important because the products value mainly depends on the reappearance quality.

    [0004] As far as the inventor knows, conventional vectorizing method comprises angular calculations between pairs of boundary pixels of a configuration. Since the angular calculation is floating point calculation, it takes long time to select boundary pixels.

    [0005] Furthermore, it is uneasy to find and define a corner point on a right angle concavity.

    SUMMARY OF THE INVENTION



    [0006] According to the vectorizing method of the present invention, Freeman's chain code or any other codes equivalent thereto is generated because the code reflects the polygonal curve and other characteristics of peripheral.

    [0007] Then from the train of the codes, pixels on the border or near from the border are selected as vector points for defining a configuration.

    [0008] As shown in Fig. 1, Freeman's chain code consists of the number from "0" to "7"; "0" means rightward, "1" upper rightward, "2" upward, "3" upper leftward, "4" leftward, "5" down leftward, "6" downward and "7" down rightward. Each chain code indicates the direction from one boundary pixel toward the next boundary pixel when boundary pixels are traced in one rotational direction, successively.

    [0009] By selecting vector points according to the train of the chain code or any other equivalent code, it is possible to generate a high quality vector data in much shorter time than the conventional method. Therefore, it is the object of the present invention to provide a vectorizing method for generating a vector data in short time, from which data a high quality configuration can be reappeared.

    BRIEF DESCRIPTION OF THE PREFERRED EMBODIMENT



    [0010] 

    Fig. 1 shows Freeman's chain code;

    Fig. 2 shows a chain code diagram of a configuration, wherein chain codes are given to the boundary pixels according to the anticlockwise order;

    Fig. 3 shows a chain code diagram, wherein one pixel is given two different chain codes from each other;

    Fig. 4 shows a convex portion of a configuration;

    Fig. 5 shows a chain code diagram of a right angle concavity;

    Fig. 6 shows a chain code diagram of a right angle convexity;

    Fig 7 (a) and (b) show a chain code diagram of two steps of the first embodiment of the present invention with respect to a right angle concavity;

    Figs 8 (a) and (b) show a chain code diagram generated by the first embodiment with respect to another right angle concavity;

    Figs 9 (a) and (b) show a chain code diagram generated by the first embodiment with respect to further another right angle concavity;

    Figs 10 (a) and (b) show a chain code diagram generated by the first embodiment with respect to further another right angle concavity;

    Fig. 11 shows an inclined right angle concavity;

    Figs 12 (a) and (b) show a chain code diagram generated by the first embodiment with respect to inner boundary pixels;

    Figs 13 (a) and (b) show a chain code diagram of two steps of the second embodiment of the present invention with respect to a right angle concavity;

    Figs 14 (a) and (b) show a chain code diagram generated by the second embodiment with respect to another right angle concavity;

    Figs 15 (a) and (b) show a chain code diagram generated by the second embodiment with respect to further another right angle concavity;

    Figs 16 (a) and (b) show a chain code diagram generated by the second embodiment with respect to further another right angle concavity;

    Figs 17 (a) and (b) show a chain code diagram generated by the second embodiment with respect to inner boundary pixels;

    Fig. 18 shows a stepwise boundary with small steps;

    Fig. 19 shows the start point of chain code on the outer boundary;

    Fig. 20 shows the start point of chain code on the inner boundary;

    Fig. 21 shows a boundary having a chain code train with chain codes frequently changed;

    Fig. 22 shows a boundary pixel followed by a pixel with a chain code less by 1 than the former;

    Fig. 23 shows a liner boundary following to a one pixel step;

    Fig. 24 shows a boundary consisting of continuous two liner boundary;

    Fig. 25 shows a one pixel concavity;

    Fig. 26 shows a short linear boundary following to a rather long liner boundary;

    Fig. 27 shows a rather long linear boundary following to a rather long liner boundary; and

    Fig 28 to 35 show stepwise boundaries.


    DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT



    [0011] Hereafter, a preferred embodiment of the present invention is described in detail.

    [0012] In Fig. 2, there is shown a configuration F. In order to give chain code to this configuration, the start point is to be found, first. On scanning to image along the ordinal scan line, the upper left pixel a is first found in the configuration F.

    [0013] Chain code is generated anticlockwisely from the start point along the boundary. Each chain code indicates the direction to the following pixel from the current pixel. The current pixel means the pixel to which chain code is to be given at that time.

    [0014] Fig. 2 is a chain code diagram indicating chain code on each boundary pixel when the boundary is traced in anticlockwise direction. In Fig. 2, the last pixel b adjacent to the start pixel a is given the chain code indicating the direction toward the pixel a.

    [0015] On the other hand, as to the outer boundary, it is sometimes unnecessary to give the chain code to the last pixel.

    [0016] In Fig. 3, there is shown a line l with a width of one pixel. In order to give chain code to pixels a, b, and c on the line l, the line is traced toward the free end first, then is traced backwardly from the free end. Therefore, one pixel is given two different chain codes. This is an example that one chain code does not necessarily correspond to one chain code.

    [0017] Chain code train in Fig. 2 is "66000766002222244444", which indicates a vertical downward line by "66", a horizontal rightward line by "00", a vertical upward line by "22" and horizontal leftward line by "44".

    [0018] When the configuration of Fig. 2 is vectorized, the start pixel a, the pixel c₁, on the right angle convex corner beneath the pixel a, the pixel c₂ on the right angle concave corner rightward from the pixel c₁, the pixel c₃ on the right angle convex corner beneath the pixel c₂, the pixel c₄ on the right angle convex corner rightward from the pixel c₃ and the pixel c₅ on the right angle convex corner above the pixel c₄ should be extracted as vector points from the boundary pixels above. While the pixel on the right angle convex corner follows at least two pixels with the same chain code less by "2" than the chain code of the former. In this calculation, "0" is deemed to be the result of the addition of "6" and "2". It will be understood from the above that the chain code reflects the characteristics of boundary of a configuration. A right angle convex corner consisting of two inclined lines in Fig. 4 has a corner point b which follows at least two pixels with the same chain code less by "2" than the chain code of the former, similarly to the above.

    [0019] However the corner point c₂ on the right angle concave corner should be extracted as a vector point, the corner has no chain code because it is not a boundary pixel. This is one difficulty in vectorizing. The solution of this difficulty according to the present invention is described later.

    [0020] Chain code is ordinarily generated with tracing the boundary in the anticlockwise direction with respect to outer boundary. It may be possible to trace the boundary in clockwise direction. With respect to the inner boundary, the tracing direction should be opposite to that of outer boundary, in order to define whether the boundary outer or inner.

    [0021] Hereafter, a description is made concerning the chain code anticlockwise for outer boundary and clockwise for inner boundary.

    [0022] When a pixel has a chain code of k, the chain code k′ of the following pixel is as follows;

    a) k is even number
    k′≠(k-2) and (k-3)

    b) K is odd number
    k′≠(k-3)

    where, k′ is calculated under the modules of "7", therefore "0"-"2"="6".

    [0023] In Fig. 1, k′ never becomes "1" and "2" when k=4. And k′ never becomes "2" when K=5. Therefore, the chain code of one pixel limits the chain code of the following pixel.

    [0024] As mentioned above, the pixel of the chain code is a pixel on the right angle convex corner when k′=(k+2).

    [0025] It is of course selectable if all the points on the right angle convex corner are extracted as vector points or not. For example, only a corner point is extracted when the corner consists of two lines, both of which are longer than a predetermined length, such as more than 3 pixels. In this case, the corner "abc" and "def" are not defined as a right angel corner, so the pixels a, c, d and f are not extracted as vector points, while only the pixels b and e are extracted. Then the configuration is reappeared as a configuration with rather dull or smooth boundary, as shown by the line l in Fig. 6.

    [0026] When all pixels are to be extracted, the pixels a to f become to be vector points, in Fig. 5.

    [0027] In the processing above, the corner point on the right angle concave corner is not yet processed.

    [0028] Hereafter, a process for processing the right angle concave corner is to be described.

    [0029] The right angle concave corner always consists of one vertical line and one horizontal line, as shown in Figs 7 (a), 8(a), 9(a) and 10(a).

    [0030] Fig. 7 (a) shows a corner opens downwardly as well as leftwardly. The chain code train advances "...007" on the horizontal line toward the corner point a, then changes "66..." on the vertical line. In the chain code train, the last two chain codes on the horizontal line together with the first chain code on the vertical line define the right angle corner. In Fig. 7 (a), the chain codes defining right angle corner are "076". It means that there exists a left-­and downwardly opening right angle corner when the chain codes "076" are included in the chain code train.

    [0031] Fig. 7 (b) shows a chain code diagram in which the chain code train in Fig. 7 (a) is changed according to the present invention. In Fig. 7(b) , the last chain code on the horizontal line is changed from "7" to "0" and a new chain code "6" is appended after the changed chain code. Therefore, the chain code train "076" is modified to be "0066". By this modification, the last chain code c on the horizontal line indicates the corner point a, and the chain code on the corner point indicates the first pixel d on the vertical line.

    [0032] Fig. 8 (a) shows a right-and downwardly opening right angle corner. The chain code train on the vertical line advances "...221" toward the corner point a. After the corner point a, the chain code train advances "00...". In this case, the right angle corner is defined by the last two chain codes b and c on the vertical line as well as the first chain code d on the horizontal line. This chain code train is "210". It means that there exists a down-and rightwardly opening right angle corner when the chain code train includes the chain codes "210".

    [0033] Fig. 8 (b) shows a chain code diagram in which the chain code train in Fig. 8 (a) is changed according to the present invention. In Fig. 8 (b), the last chain code c on the horizontal line is changed from "1" to "2" and a new chain code "0" is appended after the changed chain code. Therefore, the chain code train "210" is modified to be "2200". By this modification, the last chain code c on the horizontal line indicates the corner point a, and the chain code on the corner point a indicates the first pixel d on the horizontal line.

    [0034] Fig. 9 (a) shows a up-and leftwardly opening right angle corner. The chain code train on the vertical line advances "...665" toward the corner point a. After the corner point a, the chain code train advances "44..." on the horizontal line. This right angle corner is defined by the last two chain codes b and c on the horizontal line as well as the first chain code d on the vertical line. This chain code train is "654". It means that there exists a left-and upwardly opening right angle corner when the chain code train includes the chain codes "654".

    [0035] Fig. 9 (b) shows a chain code diagram in which the chain code train in Fig. 9 (a) is changed according to the present invention. In Fig. 9 (b), the last chain code c on the vertical line is changed from "5" to "6" and a new chain code "4" is appended after the changed chain code. Therefore, the chain code train "654" is modified to be "6644". By this modification, the last chain code c on the horizontal line indicates the corner point a, and the chain code on the corner point a indicates the first pixel d on the vertical line.

    [0036] Fig. 10 (a) shows a right-and upwardly opening right angle corner. The chain code train on the vertical line advances "...443" toward the corner point a. After the corner point a, the chain code train advances "22..." on the horizontal line. This right angle corner is defined by the last two chain codes b and c on the horizontal line as well as the first chain code d on the vertical line. This chain code train is "432". It means that there exists a right-and upwardly opening right angle corner when the chain code train includes the chain codes "432".

    [0037] By the modification similar to the modification in Figs 7 (b), 8(b) and 9(b), a new chain code is given to the corner point, and the chain code just before the corner point is changes so as to indicate the corner point.

    [0038] Fig. 10 (b) shows the modification. The last two chain code c on the horizontal line is changes from "3" to "4" and a new chain code "2" is given to the corner point. The chain code train "432" is modified to be "4422". By this modification, the last chain code c on the horizontal line indicates the corner point a and the chain code on the corner point indicates the first pixel d on the vertical line.

    [0039] The processing above is processing for outer boundary. The processing for inner boundary is described hereinafter.

    [0040] Fig. 12 (a) shows a chain code diagram of an inner boundary. The chain code train is "0007666544432221". When the last chain code of the train is deemed to be continued to the first thereof, the right angle corners are defined by the chain codes "076", "654", "432" or "210", similarly to the outer right angles corner.

    [0041] The chain code trains are processed or modified similarly to the outer boundary, that is, "076" is changed to "0066", "654" is changed to "6644", "432" is changed to "4422" and "210" is changed to "2200", as shown in Fig. 8. In other words, the corner points a1, a2, a3 and a4 are given new chain codes, and the chain codes to which the corner points follow are changed from "7" to "0", "5" to "6", "3" to "4" or "1" to "2".

    [0042] By the processing above, the outer as well as inner boundary is reappeared with respect to the right angle corner.

    [0043] In the processing above, the right angle corner is detected by successive three chain codes. However, in some cases, such as stepwise boundary consisting of fine steps in Fig. 18, it may be better to reappear the boundary as a straight line. Therefore, it is possible to make a judgement of right angle corner when there exists a straight line longer than a predetermined length continuous to each end of the 3 chain codes mentioned above. For example, a chain code train "00766" is deemed to define a right angle corner so as to be changed to "000666".

    [0044] Hereafter, the second embodiment of clockwise chain code train is described.

    [0045] Fig. 14 (a) shows a chain code diagram in which clockwise chain code train is given to the configuration same as that in Fig. 8. In Fig. 14 (a), the right angle corner is defined by the chain codes "456". Fig. 14 (b) shows a modification of chain code train, from "456" to "4466". By the modification, the right angle corner can be clearly reappeared.

    [0046] Fig. 15 (a) shows a chain code diagram in which clockwise chain code train is given to the configuration same as that in Fig. 9. In Fig. 15 (a), the right angle corner is defined by the chain codes "012". Fig. 15 (b) shows a modification of chain code train, from "012" to "0022". By the modification, the right angle corner can be clearly reappeared.

    [0047] Fig. 16 (a) shows a chain code diagram in which clockwise chain code train is given to the configuration same as that in Fig. 10. In Fig. 16 (a), the right angle corner is defined by the chain codes "234". Fig. 16 (b) shows a modification of chain code train, for "234" to "2244". By the modification, the right angle corner can be clearly reappeared.

    [0048] Fig. 17 shows a processing for a inner boundary or a hole. The inner boundary is given the chain code train in opposite direction to that of outer boundary. As shown in Fig. 17(a), the chain code train is "5666700012223444". The last chain code of the train is deemed to be continuous to the first thereof, similarly to the first embodiment. The chain code trains defining the right angle corner are same as that of outer boundary. The chain code trains are "234", "456", "012" and "670", which are to be modified to "2244", "4466", "0022" and "6600", respectively. By this modification, the right angle corners are clearly reappeared.

    [0049] Similarly to the first embodiment, it is possible to make judgement of right angle corner when there exist straight lines longer than a predetermined length continuous to each end of a chain code train.

    [0050] As an example of chain code generating process is now described. In order to generate chain code, the start point has to be found first. The start point can be defined by the neighbor pixels in the relationship with the scan line direction.

    [0051] When the scan line is ordinal, that is, each scan line is generated after upper scan line and advances rightwardly, the boundary pixel which does not have upper and left neighbors can be defined as the start point of the chain code on the outer boundary, as shown in Fig. 19. The boundary pixel a with lower left neighbor but without lower neighbor can be defined as the start point of the chain code on the inner boundary, as shown in Fig. 20.

    [0052] As mentioned above, since a chain code limits the following chain code, only the area should be searched clockwisely or anticlockwisely where the following chain code can be exist. When the chain code train is anticlockwise on the outer boundary, the searching direction should be also anticlockwise, and vice versa.

    [0053] The chain code train on the inner boundary can be also generated according to the algorithms for outer boundary.

    [0054] When a chain code is a even number k of a pixel on the inner boundary, the following chain code can be determined by searching boundary pixel anticlockwisely from the direction of the chain code (k-1). The direction in which the boundary pixel is found first is the direction corresponding to the chain code of the pixel.

    [0055] When k is odd number, the search begins from the direction of the chain code (k-2).

    [0056] This algorithm is efficient because the total chain code train is generated by tracing the boundary pixels once. The algorithm is effective for filling hole because the outer boundary and inner boundary are distinguished from each other.

    [0057] Hereafter, an algorithm is described for extracting vector points from a chain code train, not limited for reappearing right angle corner.

    [0058] In Fig. 21, there exist different chain codes one after another and the configuration has complicated boundary with convexities and concavities. In order to express such a configuration precisely, the total boundary pixels are extracted as vector points.

    [0059] While in the case of Fig. 22, it may be better to omit the small concavity even when there exist different chain codes one after another. In Fig. 22, the chain code "5" is followed by a chain code less by "1", that is, "4", on the pixels a and b around the concavity. The chain code train "k, (k-1)" defines a straight line longer than one pixel after a one pixel step. By omitting the pixel of the chain code "k-1" from the vector points and by extracting the next pixel to the pixel of "k-1", the reappeared configuration has higher quality than that of the precisely reappeared configuration. The data efficiency is also improved. This rule include a rule for vectorizing right angle concavity and is summarized as follows;

    [0060] In the chain code train "k, k′ ", the pixel of chain code "k′ " can be extracted as a vector point. When the relationship between k and k′ is followings:
    k≠k′ and k′≠(k-1)

    [0061] When k′=(k-1) and one or more pixel of the chain code "k-1" follows the first pixel of "k-1", as shown in Fig. 23, it is better to omit all the pixel of "k-1" from vector points. Then the first pixel b of a chain code other than "k-1" after the chain code train of "k-1, k-1, ..." should be extracted as a vector point.

    [0062] In other words, the pixel of the chain code "k′ " in the following chain code train should be extracted as a vector point.
    k, (k-1), (k-1), ..., (k-1), k′
    where, k′≠k-1.

    [0063] It is possible that the start point a is omitted according to the chain code train to which the start point follows. However, the connecting point b should be extracted as a vector point.

    [0064] In other words, when a constant chain code train is followed by a chain code train with constant chain codes, the pixel of the first chain code of the second line should be extracted as a vector point, as shown by the underline in the following chain code train.
    k, k, ...k, k′, k′, ..., k′
    where, k′≠k

    [0065] A chain code train of constant chain codes defines a straight line in geometrical meaning. When a two straight lines with different inclination from each other are connected at the end points with each other, as shown in Fig. 24, both straight lines should be reappeared. In Fig. 24, a line of chain code train "5, 5, ..." is followed by a line of chain code train "6, 6, ...". The start point of the line of chain code "5" is a and the end point thereof is b.

    [0066] Fig. 25 shows a one pixel concavity after a straight line of chain code "5". The bottom point of the concavity can be extracted, by extracting a pixel with a chain code different from and after the constant chain codes defining a straight line.

    [0067] Fig. 26 shows a two pixels straight line after a straight line with a chain codes less by "1" than that of the first straight line. The chain code train may be explained as follows;
    k, k, ..., k, k-1, k′
    where, k′≠k-1
    In this case, the pixel a of the chain code "k-1" should be omitted from vector points. Nevertheless, the next pixel b of the chain code k′ should be extracted as a vector point, as is mentioned concerning Figs 22 and 23.

    [0068] Fig. 27 shows a chain code diagram of a boundary consisting of two straight lines. The first line has chain codes of "5" and the second line has chain codes "4". The start point b of the second line should be extracted as a vector point. In other words, the pixel corresponding to the underlined chain code should be extracted in the following chain code train. k, k ,..., k, k-1k-1,..., k-1

    [0069] The rules above may be summarized as follows;

    i) When k1, k2 and k3 are different chain codes from one another in the chain code train "k1, k2, k3",
    if k2≠k1-1, k2 should be extracted as a vector point, and else if k2=k-1, k3 should be extracted as a vector point.

    ii) When k1≠k2, k2≠k3 and k3≠k1 in the chain code train "k1, k1, ..., k1, k2, k3",
    if k2≠k1-1, k2 should be extracted as a vector point, and else if k2=k1-1, k3 should be extracted as a vector point.

    iii) When k1≠k2, k2≠k3 and k3≠k1 in the chain code train "k1, k2, k2, ..., k2, k3",
    if k2≠k1-1, k2 should be extracted as a vector point, and else if k2=k1-1, k3 should be extracted as a vector point.

    iv) when k1≠k2, k2≠k3 and k3≠k1 in the chain code train "k1, k1, ..., k1, k2, k2, ..., k2, k3", k2 should be extracted as a vector point.



    [0070] The next rule is further applicable for vectorizing in order to minimize the vector data.

    v) As shown in Fig. 28, there exist the chain code trains "445" repeatedly. These chain code trains define steps of constant period. The configuration may be approximated as one straight line. For this approximation, the following rule is to be applied. When chain code trains, consisting of combination of chain codes "k" and "k-1" or a chain code train consisting of combination of chain codes "k" and "k+1", exist repeatedly, the first point of the first combination and the last point of the last combination are to be extracted as vector points, as shown in Fig. 28 by reference a and b.



    [0071] The configuration in Fig. 30 has the inclination opposite to the configuration of Fig. 28. The chain code trains "443" are repeatedly generated. The configuration in Fig. 31 has the inclination opposite to the configuration of Fig. 29. The chain code trains "001" are repeatedly generated. In these configurations, the start point of the first step and the end point of the last step may be extracted as vector points so that the configuration is approximated as a straight line.

    [0072] The above stepwise configurations have rather gradual inclination.

    [0073] The configurations in Figs 32 to 35 have rather steep inclination.

    [0074] The configuration in Fig. 32 has repeated chain code trains of "665".

    [0075] The configuration in Fig. 33 has repeated chain code trains of "667".

    [0076] The configuration in Fig. 34 has repeated chain code trains of "223".

    [0077] The configuration in Fig. 35 has repeated chain code trains of "221".

    [0078] In each configuration of steep steps, the lower edge point of each step should be extracted when the boundary faces downwardly, and vice versa, as shown in Figs 32 to 35.

    [0079] The approximation rule for stepwise configuration is summarized as follows;

    vi) In the chain code train consisting of repeated chain code trains of "k, k, ..., k, k-1", the first pixel of "k" in the first chain code train and the first pixel of "k" in the last chain code train are to be extracted as vector points.

    vii) In the chain code train consisting of repeated chain code trains of "k, k, ..., k, k+1", the pixel of "k+1" in the first and last chain code trains are to be extracted as vector points.



    [0080] The generalized rules are also applicable to vectorizing of a hole. When the chain code train is generated clockwisely, oppositely to the above, the chain code changes in the chain code train should be reversely understood, that is, the increment and decrement are reversed.

    [0081] When a code equivalent to chain code is applied for vectorizing, the rules can easily be modified.

    [0082] As shown in the embodiments above, by extracting vector points according to the chain code or any other equivalent code, vector data can be easily be generated without complex angular calculation. A high quality configuration can be reappeared from the vector data.

    [0083] Although only a few exemplary embodiments of this invention have been described in detail above, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without materially departing from the novel teachings and advantages of this invention.

    [0084] Accordingly, all such modification are intended to be included within the scope of this inventions as defined in the following claims.


    Claims

    1 Vectorizing method comprising steps of;

    a) generating a train of chain codes or any other equivalent codes for boundary pixels of a configuration; and

    b) extracting vector points from said boundary pixels and/or adjacent pixels thereto according to the combination of said codes in said train.


     
    2 Vectorizing method according to Claim 1 wherein said code is Freeman's chain code.
     
    3 Vectorizing method in anticlockwise direction according to Claim 2, wherein a pixel corresponding to chain code k2 in a chain code train of "k1, k2, k3" included in said chain code train is extracted as a vector point, when k2≠k1-1.
     
    4 Vectorizing method in anticlockwise direction according to Claim 2, wherein a pixel corresponding to chain code k3 in a chain code train of "k1, k2, k3" included in said chain code train is extracted as a vector point, when k2=k1-1.
     
    5 Vectorizing method in anticlockwise direction according to Claim 2, wherein a pixel corresponding to chain code k2 in a chain code train of "k1, k1, ..., k1, k2, k3" included in said chain code train is extracted as a vector point, when k1≠k2, k2≠k3, k3≠k1, k2≠k1-1.
     
    6 Vectorizing method in anticlockwise direction according to Claim 2, wherein a pixel corresponding to chain code k3 in a chain code train of "k1, k1, ..., k1, k2, k3" included in said chain code train is extracted as a vector point, when k1≠k2, k2≠k3, k3≠k1, k2=k1-1.
     
    7 Vectorizing method in anticlockwise direction according to Claim 2, wherein a pixel corresponding to the first chain code k2 in a chain code train of "k1, k2, k2, ..., k2, k3" included in said chain code train is extracted as a vector point, when k1≠k2, k2≠k3, k3≠k1, and k2≠k1-1.
     
    8 Vectorizing method in anticlockwise direction according to Claim 2, wherein a pixel corresponding to chain code k3 in a chain code train of "k1, k2, k2, ..., k2, k3" included in said chain code train is extracted as a vector point, when k1≠k2, k2≠k3, k3≠k1, and k2=k1-1.
     
    9 Vectorizing method in anticlockwise direction according to Claim 2, wherein a pixel corresponding to the first chain code of k2 in a chain code train "k1, k1, ..., k1, k2, k2, ..., k2, k3" included in said chain code train is extracted as a vector point, when k1≠k2, k2≠k3, k3≠k1.
     
    10 Vectorizing method in anticlockwise direction according to Claim 2, wherein a pixel corresponding to the first chain code k in the first and last chain code combination are extracted as vector points, when a chain code combination of "k, k, ..., k, k-1" is repeatedly generated in said chain code train.
     
    11 Vectorizing method in anticlockwise direction according to Claim 2, wherein a pixel corresponding to chain code k+1 in the first and last chain code combination are extracted as vector points, when a chain code combination of "k, k, ..., k, k+1" is repeatedly generated in said chain code train.
     
    12 Vectorizing method in clockwise direction according to Claim 2, wherein a pixel corresponding to chain code k2 in a chain code train of "k1, k2, k3" included in said chain code train is extracted as a vector point, when k2≠k1+1.
     
    13 Vectorizing method in clockwise direction according to Claim 2, wherein a pixel corresponding to chain code k3 in a chain code train of "k1, k2, k3" included in said chain code train is extracted as a vector point, when k2≠k1+1.
     
    14 Vectorizing method in clockwise direction according to Claim 2, wherein a pixel corresponding to chain code k2 in a chain code train of "k1, k1, ..., k1, k2, k3" included in said chain code train is extracted as a vector point, when k1≠k2, k2≠k3, k3≠k1 and k2≠k1+1.
     
    15. Vectorizing method in clockwise direction according to Claim 2, wherein a pixel corresponding to chain code k3 in a chain code train of "k1, k1, ..., k1, k2, k3" included in said chain code train is extracted as a vector point, when k1≠k2, k2≠k3, k3≠k1 and k2≠k1+1.
     
    16 Vectorizing method in clockwise direction according to Claim 2, wherein a pixel corresponding to the first chain code k2 in a chain code train of "k1, k2, k2, ..., k2, k3" included in said chain code train is extracted as a vector point, when k1≠k2, k2≠k3, k3≠k1, k2=k1+1.
     
    17 Vectorizing method in clockwise direction according to Claim 2, wherein a pixel corresponding to chain code k3 in a chain code train of "k1, k2, k2, ..., k2, k3" included in said chain code train is extracted as a vector point, when k1≠k2, k2≠k3, k3≠k1, k2=k1+1.
     
    18 Vectorizing method in clockwise direction according to Claim 2, wherein a pixel corresponding to the first chain code k in the first and last chain code combination are extracted as vector points, when a chain code combination of "k, k, ..., k, k+1" is repeatedly generated in said chain code train.
     
    19 Vectorizing method according to Claim 2, wherein a pixel corresponding to chain code k+1 in the first and last chain code combination are extracted as vector points, when a chain code combination of "k, k, ..., k, k-1" is repeatedly generated in said chain code train.
     
    20 Vectorizing method in anticlockwise direction according to Claim 2, wherein a combination of chain codes "076" included in said chain code train is changed to "0066".
     
    21 Vectorizing method in anticlockwise direction according to Claim 2, wherein a combination of chain codes "210" included in said chain code train is changed to "2200".
     
    22 Vectorizing method in anticlockwise direction according to Claim 2, wherein a combination of chain codes "654" included in said chain code train is changed to "6644".
     
    23 Vectorizing method in anticlockwise direction according to Claim 2, wherein a combination of chain codes "432" included in said chain code train is changed to "4422".
     
    24 Vectorizing method in clockwise direction according to Claim 2, wherein a combination of chain codes "670" included in said chain code train is changed to "6600".
     
    25 Vectorizing method in clockwise direction according to Claim 2, wherein a combination of chain codes "012" included in said chain code train is changed to "0022".
     
    26 Vectorizing method in clockwise direction according to Claim 2, wherein a combination of chain codes "456" included in said chain code train is changed to "4466".
     
    27 Vectorizing method in clockwise direction according to Claim 2, wherein a combination of chain codes "234" included in said chain code train is changed to "2244".
     
    28 Vectorizing method according to Claim 1, wherein inner boundary is given a chain code train in opposite direction to that of outer boundary.
     
    29 Vectorizing method according to Claim 1, wherein the start point of said chain code train is found by evaluating neighbor pixels around a pixel to be judged if it is start point or not.
     
    30 Vectorizing method according to Claim 29, wherein a boundary pixel without upper and left neighbors is defined as said start point of said chain code train on the outer boundary, when a scan line advances rightwardly and is generated after upper scan lines.
     
    31 Vectorizing method according to Claim 29, wherein a boundary pixel with left neighbor and without lower neighbor is defined as said start point of said chain code train on the inner boundary, when a scan line advances rightwardly and is generated after upper scan lines.
     
    32 Vectorizing method according to Claim 1, wherein a boundary pixel next to a pixel to be given a chain code is searched in the direction same as that of the chain code train.
     
    33 Vectorizing method according to Claim 32, wherein said searching begins from the direction of chain code (k-1) when a chain code of a pixel to which said pixel to be given a chain code follows is even number.
     
    34 Vectorizing method according to Claim 32, wherein said searching begins from the direction of chain code (k-2) when a chain code of a pixel to which said pixel to be given a chain code follows is odd number.
     




    Drawing























































    Search report