Claims
- 1. An apparatus for processing character or pictorial image data comprising:
- (a) a vector computing means for obtaining length of a vector V.sub.i having a start point P.sub.i and an end point P.sub.i+1 on any outline points among a plurality of outline points Q.sub.j constituting a character image outline and deviation between said vector and said outline points, and further obtaining said vector V.sub.i which is so established as to become maximum in length l.sub.i while said deviation is maintained to be less than a given allowable value,
- (b) a first comparing means for comparing said length l.sub.i of said vector V.sub.i with a preset length L,
- (c) a second comparing means for comparing an intersection angle .theta..sub.i between said vector V.sub.i and a vector V.sub.i-1 adjacent to said vector V.sub.i with a preset angle .theta.,
- (d) a discriminating means for identifying an outline segment [P.sub.i, P.sub.i+1 ] approximated by said vector V.sub.i with a straight portion when the result of said comparison by said first comparing means is l.sub.i >L, further identifying said outline segment [P.sub.i, P.sub.i+1 ] with a curved portion when the result of said comparison is l.sub.i .ltoreq.L, then repeating said comparison with respect to the next vector when the result of said comparison by said second comparing means is .theta..sub.i .gtoreq..theta., and further for identifying the preceding outline segments [P.sub.i, P.sub.i+k ] with a single continuous curved portion upon change of the result to l.sub.i+k >L or .theta..sub.i+k <.theta. with respect to a vector V.sub.i+k,
- (e) a third comparing means for establishing a sampling segment in the outline segments [P.sub.i, P.sub.i+k ] of said curved portion, selecting the outline start point Q.sub.j as a first sampling point, then establishing a sampling candidate segment [Q.sub.j, Q.sub.j+r ] while selecting an arbitrary outline point Q.sub.j+r on said outline as a sampling point candidate, subsequently computing a cubic polynomial f(x) to approximate said sampling candidate segment [Q.sub.j, Q.sub.j+r ] with a curved line on the basis of the coordinates (x.sub.j, y.sub.j) and (x.sub.j+r, y.sub.j+r) of said sampling point Q.sub.j and said sampling point candidate Q.sub.j+r and also the inclinations t.sub.j and t.sub.j+r thereof, and comparing the deviation .epsilon. between the cubic polynomial f(x) and each of said outline points on said sampling candidate segment, with an allowable error .DELTA.,
- (f) a sampling segment establishing means for shifting a present sampling point candidate on the basis of said comparison results, then similarly comparing the deviation .epsilon. with the allowable error .DELTA. with respect to the newly selected sampling candidate segment, establishing the sampling point candidate as the next sampling point in case that said comparison results meets .epsilon..ltoreq..DELTA. with respect to all outline points and that said sampling candidate segment becomes maximum, and thereafter establishing sampling segments sequentially over the entire outline segments [P.sub.i, P.sub.i+k ] which are identified with said signle continuous curved portion by making said newly established sampling point as a start point of the next sampling candidate segment, and
- (g) a memory means for storing the start point coodinates of the straight portion, and the start point coordinates of each sampling segment established on the curved portion, and the coefficient and the degree of said cubic polynomial which approximates each sampling segment.
- 2. An apparatus as claimed in claim 1 wherein the inclinations of said outline points are obtained on the basis of a mean value of inclination of each line segment connecting the outline points on the outline segments [P.sub.i P.sub.i+k ] of said curved portion to the given outline points which are located before and behind said outline points, obtaining a plurality of cubic polynomials f(x) which approximate each section of said outline segments on the basis of said obtained inclinations of the outline points and coordinates of said outline points, obtained in advance the inclination t of all the outline points on said outline segments on the basis of a linear derived functions f'(x) of said cubic polynomials f(x), and obtaining cubic polynomials f(x) which approximate said sampling candidate segments [Q.sub.j, Q.sub.j+r ] by using said obtained inclinations of said outline points.
- 3. An apparatus as claimed in claim 1, wherein the computation of said deviation .epsilon. is executed as ##EQU4## (in which m is the inclination of a straight line passing through the start and end points of a sampling candidate segment; and .epsilon..sub.x and .epsilon..sub.y are deviations between the outline point and the approximate curve in the x- and y-directions, respectively).
- 4. An apparatus as claimed in claim 1, wherein the outline point Q.sub.j+r+1 adjacent to the present sampling point candidate segments [Q.sub.j, Q.sub.j+r ] is rendered a new sampling point candidate, the deviation .epsilon. is similarly compared with the allowable error .DELTA. with reference to a renewed sampling candidate segment [Q.sub.j, Q.sub.j+r+1 ], said sampling point candidate is shifted in turn until any of the comparison results becomes .epsilon.>.DELTA. and the comparison is repeated, and the sampling point candidate Q.sub.j+r-p is established as the next sampling point when all the outline points in the sampling candidate segments [Q.sub.j, Q.sub.j+r-p ] have been .epsilon..ltoreq..DELTA..
Priority Claims (5)
| Number |
Date |
Country |
Kind |
| 58-183071 |
Oct 1983 |
JPX |
|
| 58-183072 |
Oct 1983 |
JPX |
|
| 58-183073 |
Oct 1983 |
JPX |
|
| 58-183074 |
Oct 1983 |
JPX |
|
| 58-183075 |
Oct 1983 |
JPX |
|
CROSS REFERENCE TO OTHER APPLICATION
This application is a continuation-in-part of application Ser. No. 569,959, filed Jan. 11, 1984, now abandoned.
US Referenced Citations (7)
Continuation in Parts (1)
|
Number |
Date |
Country |
| Parent |
569959 |
Jan 1984 |
|