KR900002810B1 - Method for comperssing character or pictorial image data - Google Patents

Method for comperssing character or pictorial image data Download PDF

Info

Publication number
KR900002810B1
KR900002810B1 KR1019830000858A KR830000858A KR900002810B1 KR 900002810 B1 KR900002810 B1 KR 900002810B1 KR 1019830000858 A KR1019830000858 A KR 1019830000858A KR 830000858 A KR830000858 A KR 830000858A KR 900002810 B1 KR900002810 B1 KR 900002810B1
Authority
KR
South Korea
Prior art keywords
point
block
sample point
sample
outline
Prior art date
Application number
KR1019830000858A
Other languages
Korean (ko)
Other versions
KR840004278A (en
Inventor
시게루 후세
마사타께 타가시마
신이찌로오 후꾸다
히로유끼 시바다
Original Assignee
가부시기가이샤 샤겡
이시이 히로꼬
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 가부시기가이샤 샤겡, 이시이 히로꼬 filed Critical 가부시기가이샤 샤겡
Priority to KR1019830000858A priority Critical patent/KR900002810B1/en
Publication of KR840004278A publication Critical patent/KR840004278A/en
Application granted granted Critical
Publication of KR900002810B1 publication Critical patent/KR900002810B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/20Contour coding, e.g. using detection of edges

Abstract

The method forms blocks and stores information for specifying the outline of a character as an approximation with sets of functional curves or straight lines to effect data compression. A character outline is developed on X- and Y-coordinates and is divided by split points into a set of blocks each defined by a single-valued function involving X as a variable. The character outline is approximated by a curve passing through sampling points established on each of the blocks. For each sampling point, the density of the sampling points in its vicinity is formed.

Description

문자데이터 압축용 블록설정 방법Block setting method for character data compression

제 1 도는 문자 윤곽을 복수 블록의 집합으로서 파악한 상태의 모식적 설명도.1 is a schematic explanatory diagram of a state in which a character outline is grasped as a set of plural blocks.

제 2 도는 본 발명의 방법에 따라 임의의 1개의 블록 B상에 표본점을 설정하는 과정의 모식적 설명도.2 is a schematic illustration of the process of setting a sample point on any one block B according to the method of the present invention.

제 3 도는 본 발명의 표본점 설정 방법을 실시하기에 적합한 장치의 일실시예를 도시하는 구성도.3 is a block diagram showing an embodiment of an apparatus suitable for implementing the method for setting a sample point of the present invention.

제 4 도는 제 3 도 구성의 동작과정을 도시하는 순서도.4 is a flowchart showing the operation of the configuration of FIG.

제 5 도는 제 3 도의 구성 내지 제 4 도 과정에 의한 표본점 설정 방법을 실시했을 경우의 일예를 모식적으로 도시한 도면.FIG. 5 is a diagram schematically showing an example in the case where a sample point setting method according to the configuration of FIG. 3 to FIG. 4 is performed.

제 6 도는 본 발명에 의해 개선된 블록 설정방법의 일실시예를 모식적으로 도시한 도면.6 is a diagram schematically showing an embodiment of a block setting method improved by the present invention.

제 7 도는 본 발명의 표본점 설정방법 및 블록 설정방법을 병용해서 실제의 글자 윤곽을 처리했을 경우의 일예를 도시하는 참고도면.FIG. 7 is a reference diagram showing an example in the case where an actual character outline is processed by using the sample point setting method and the block setting method in accordance with the present invention. FIG.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

B : 블록 C : 근사곡선B: block C: approximation curve

D,D',Q : 분할점 P : 표본점D, D ', Q: Split Point P: Sample Point

31 : 윤곽정보기억부 32 : 표본점좌표기억부31: contour information storage unit 32: sample point coordinate storage unit

33 : 거리산출부 34 : 근사곡선 산출부33: distance calculation unit 34: approximate curve calculation unit

35 : 면적산출부 36 : 평가량산출부35: area calculation part 36: evaluation amount calculation part

37 : 최대평가량검출부 38 : 비교부37: maximum evaluation amount detection unit 38: comparison unit

39 : 허용치설정부 40 : 신설표본점 산출부39: tolerance setting part 40: new sample shop calculation part

41 : 편위 산출부 42 : 최대 편위위치 검출부41: deviation calculation unit 42: maximum deviation position detection unit

「○」: 초기 분할점 「생」: 제2의 분할점"○": initial division point "raw": second division point

「△」:표본점"△": Sample store

본 발명은 글자, 화상등(이하, 문자라 한다)의 윤곽을 함수곡선 또는 직선의 집합으로 근사해서 데이타 압축을 실시할 때의 표본점 및 블록의 설정방법에 관한 것이다.The present invention relates to a method for setting sample points and blocks when data compression is performed by approximating outlines of letters, images, etc. (hereinafter referred to as characters) to a set of function curves or straight lines.

우선, 표본점의 설정에 대하여 설명한다.First, setting of a sample point is demonstrated.

문자의 윤곽을 표본점으로 분할하고, 각 분할된 윤곽세그멘트를 함수 곡선 또는 직선으로 근사하도록 한 문자데이타압축방법에 있어서는 문자 윤곽의 형상 특징을 손상하지 않는 범위내에서 가급적 소수의 표본점을 고속으로 설정하는 것이 중요하다.In the character data compression method in which the outline of the text is divided into sample points, and each divided outline segment is approximated by a function curve or a straight line, as few sample points as fast as possible are maintained within the range that does not impair the shape characteristics of the text outline. It is important to set.

종래, 이와같은 표본점을 설정하는 가장 간단한 방법으로서는 X, Y 좌표상에 전개한 문자윤곽에 대하여, 변수를 단위량씩 증가시켜 표본점을 구하는 방법이 사용되어 왔다.Conventionally, as the simplest method for setting such a sample point, a method for obtaining a sample point by increasing the variable by unit amount has been used for the character outline developed on the X and Y coordinates.

그러나 이러한 방법은, 표본점의 설정을 변수축에만 의존하게되므로 근사되는 곡선(또는 직선)과 실제의 문자 윤곽과의 사이에 소정의 우도(尤度 : likelihood)가 확실치 되지 않기 때문에, 최적의 표본점을 설정하는 것이 곤란했다.However, this method is an optimal sample because the likelihood between the approximated curve (or straight line) and the actual character outline is not certain because the setting of the sample point depends only on the variable axis. It was difficult to set the point.

또, 근사하는 곡선(또는 직선)과 실제의 문자 윤곽과의 사이의 우도를 후보표면점에 관해 구한 후, 이 우도에 따라 시행오차적으로 후보표본점을 이동시켜, 소정의 우도가 얻어진 시점에서 후보표본점을 설정표본점으로 하는 방법도 있으나, 이러한 방법은 1개의 표본점을 설정하기 위하여 시행착오과정을 필요로 하기 때문에 처리가 쓸데 없이 길어지는 단점이 있었다.After the likelihood between the approximating curve (or straight line) and the actual character outline is obtained for the candidate surface point, the candidate sample point is moved by trial and error according to the likelihood, and at a point when a predetermined likelihood is obtained. There is also a method of using the candidate sample point as the set sample point, but this method requires a trial and error process in order to set one sample point.

본 발명에 따른 표본점 설정방법은, 이러한 문제점을 해결하려는 것으로 1회의 우도 비교로 1개의 표본점을 차례로 그때마다 설정해가도록 한 합리적인 방법을 제공하는 것이다.The sample point setting method according to the present invention is to solve this problem, and to provide a reasonable method to set one sample point at a time by one likelihood comparison.

우선 처음에 표본점 설정의 전제가 되는 문자 윤곽의 사전 처리에 대하여 설명한다.First, the preprocessing of the character outline which becomes the premise of sample point setting is demonstrated.

제 1 도는 문자 윤곽을 복수블록(B1, B2, B3...)으로 분할하고, 각 블록 B의 집합으로서 문자 윤곽을 파악한 상태의 모식적 설명도로, 도면중 「○」표 및 「생」표는 각 블록의 끝점이다.FIG. 1 is a schematic explanatory diagram of a state in which a character outline is divided into a plurality of blocks (B 1 , B 2 , B 3 ...) And the character outline is grasped as a set of each block B. FIG. The raw table is the end point of each block.

즉, 표본점 설정의 사전처리로서, X, Y 좌표에 전개한 문자윤곽상에 적당한 분할점을 설정하고, x를 변수로 하는 1가 함수의 구간에 윤곽을 분할하므로써 사전에 블록을 구해 놓는다.In other words, as a preprocessing of sample point setting, a suitable dividing point is set on the character outline developed at the X and Y coordinates, and the block is obtained in advance by dividing the outline in the section of the monovalent function using x as a variable.

이 블록분할은 일련의 윤곽의 X좌표가 단조로히 증가, 또는 감소하는 임의의 구간을 블록으로서 설정하므로써 일반적으로 처리할 수 있다.This block division can be generally handled by setting an arbitrary section in which the X coordinate of a series of outlines monotonously increases or decreases as a block.

또, 보다 적절한 블록 설정법으로는 제 1 도의 도시와 같이 일련의 윤곽상의 x좌표치가 극치(極値)가 되는 위치를 구한 후, 이 극치에 해당하는 위치를 초기의 분할점 D(도면중「○」표)로 하고, 또 뒤에 언급하는 블록설정방법과 관련해서 상세히 설명되듯이 이 분할점 D에 의하여 분할된 각 윤곽 블록상에 소정의 관계에 따라서 제 2 의 분할점 D'(도면중 「생」표)를 설정하므로써, 각 분할점(D 또는 D')으로 분할된 구간을 각각 블록 B로서 설정한다.In a more appropriate block setting method, as shown in FIG. 1, after obtaining the position where the x coordinate values on the series of contours become the extreme values, the position corresponding to the extreme values is determined by the initial dividing point D ( Table) and the second dividing point D 'according to a predetermined relationship on each contour block divided by this dividing point D, as described in detail with reference to the block setting method described later. By setting the " table), the section divided by each division point (D or D ') is set as the block B, respectively.

이와같이 설정된 각 블록 B의 물리적인 의미는 음극선 표시관(CRT)등의 래지터 주사형 문자표시 장치상에 문자상을 재생할 때, 각 블록 B가 Y방향으로 주사하는 휘점(輝點)을 턴온, 또는 턴오프시키는 점의 집합에 대응하는 의미를 가진다.The physical meaning of each block B set in this way means that when a character image is reproduced on a lattice scan type character display device such as a cathode ray tube (CRT), each of the blocks B turns on a bright point scanned in the Y direction, Or a set of points to be turned off.

본 발명에 의한 표본점 설정방법은 상기 사전처리에 의해 설정하며 각 블록 B의 임의의 1개에 대하여, 그 블록에 해당하는 윤곽을 다수의 윤곽 세그멘트로 분할하기 위한 표본점 설정방법에 관한 것이다.The method for setting a sample point according to the present invention relates to a method for setting a sample point for dividing the outline corresponding to the block into a plurality of contour segments for any one of the blocks B, which is set by the above preprocessing.

제 2 도 a 내지 c는 본 발명에 의한 방법에 따라, 임의의 1개의 블록 B상에 표본점을 설정하는 과정의 모식적 설명도이고, 제 3 도는 본 발명의 표본점 설정방법을 실시하기에 적합한 장치의 일실시예를 도시하는 구성도이다.2 is a schematic explanatory diagram of a process of setting a sample point on any one block B according to the method according to the present invention, and FIG. 3 is a diagram illustrating a sample point setting method of the present invention. A schematic diagram illustrating one embodiment of a suitable apparatus.

제 3 도에 있어서, (31)은 제 2 도에 실선곡선으로 도시한 임의의 1개의 블록 B에 해당하는 윤곽의 좌표 정보를 기억하고, 필요에 따라 이들을 출력하는 윤곽정보 기억부이고, (32)는 본 발명의 방법에 의하여 설정된 표본점의 좌표 정보를 차례로 기억하고, 필요에 따라 이것을 출력하는 표본점 좌표 기억부이며, (33)은 이미 윤곽상에 설정된 즉, 상기 표본점 좌표 기억부(32)에 기억된 기설정된 표본점에 관하여 각각 인접하는 표본점간의 거리 L을 산출하는 거리산출부이며, (34)는 후기하는 근사곡선산출부이며, (35)는 인접하는 표본점에 의해 잘라내진 윤곽세그멘트와 이미 윤곽상에 설정되어 있는 각 표본점을 잇는 근사곡선에 의하여 에워싸인 면적 S를 산출하는 면적 산출부이고, (36)은 상기 거리산출부(33)에서 산출한 거리 L과 면적산출부(35)에서 산출한 면적 S에 따라 S/L의 평가량 ξ을 각 세그멘트마다에 산출하는 평가량 산출부이며, (37)은 최대평가량 검출부이다. 또 (38)은 평가량 산출부(36)에서 산출한 평가량의 최대치 ξmax와 허용치 설정부(39)에서 공급되는 미리 정한 허용치 ξ'와의 대소를 비교하는 비교부이고, (40)은 비교부(38)에서의 비교 결과가 ξmax〉ξ'일때, 소정의 관계에 따라 새로운 표본점을 산출하는 신설 표본점 산출부로, 예를들면 편위 산출부(41), 최대 편위 위치검출부(42)로 구성된다.In FIG. 3, reference numeral 31 denotes an outline information storage unit that stores coordinate information of outlines corresponding to any one block B shown in solid lines in FIG. 2 and outputs them as necessary. ) Is a sample point coordinate storage unit which sequentially stores the coordinate information of the sample point set by the method of the present invention and outputs it if necessary, and (33) is already set on the contour, that is, the sample point coordinate storage unit ( 32 is a distance calculation unit for calculating the distance L between adjacent sample points with respect to the preset sample points stored in 32), (34) is an approximate curve calculation unit to be described later, and (35) is cut out by adjacent sample points. An area calculating unit for calculating an area S surrounded by a true contour segment and an approximation curve connecting each sample point already set on the contour, and (36) is a distance L and an area calculated by the distance calculating unit 33; Calculated by the calculation unit 35 According to the enemy and S pyeonggaryang calculating section for calculating a pyeonggaryang ξ of S / L for each segment, 37, it is the maximum pyeonggaryang detector. (38) is a comparison unit for comparing the magnitude of the maximum value ξmax of the evaluation amount calculated by the evaluation amount calculation unit 36 and the predetermined allowable value ξ 'supplied from the allowable value setting unit 39, and (40) the comparison unit 38 In the case where the comparison result in the above is ξmax> ξ ', a new sample point calculation unit that calculates a new sample point according to a predetermined relationship, for example, comprises a deviation calculation unit 41 and a maximum deviation position detection unit 42.

제 3 도 구성의 동작을 제 2 도에 관련하여 설명한다. 우선 제 2 도 a의 블록 b의 양끝점 P1및 P2(이들 양끝점은, 상기한 사전처리에 의하여 구해진 제 1 도의 분할점 D 또는 D'에 해당)의 좌표정보를 기설정된 표본점의 좌표 정보로하여, 표본점 좌표기억부(32)에 기억시키고, 동작의 초기조건을 설정한다.The operation of the configuration of FIG. 3 will be described with reference to FIG. First, the coordinate information of both end points P 1 and P 2 (the two end points correspond to the dividing point D or D 'of FIG. 1 obtained by the above-described preprocessing) of the block b of FIG. As the coordinate information, the sample point coordinate storage unit 32 is stored, and the initial condition of the operation is set.

상기 초기 조건의 설정이 완료되면, 표본점 좌표기억부(32)로부터 독출한 기설정된 표본점 P1, P2의 좌표정보에 따라 양 표본점 간의 거리 L(제 2 도 a)를 거리산출부(33)에서 산출하고 이것을 평가량 산출부(36)에 출력한다. 한편 이것에 병행해서 근사곡선 산출부(34)는 동일하게 표본점좌표 기억부(32)에서 독출한 기설정된 표본점 P1, P2의 좌표 정보에 따라, 양표본점을 잇는 근사곡선을 산출하여, 이것을 면적산출부(35)에 출력한다.When the setting of the initial condition is completed, the distance calculating unit calculates the distance L between the two sample points according to the coordinate information of the preset sample points P 1 and P 2 read out from the sample point coordinate memory 32. It calculates by (33) and outputs it to the evaluation quantity calculation part 36. FIG. In parallel with this, the approximation curve calculation unit 34 similarly calculates an approximation curve connecting the two sample points according to the coordinate information of the preset sample points P 1 and P 2 read out from the sample point coordinate storage unit 32. This is output to the area calculating part 35.

단, 초기 조건에서 동작을 개시한 경우는 기설정된 표본점이 2개이기 때문에 상기 근사곡선은 제 2 도 a에 도시한 바와같이 직선 C1이 된다.However, when the operation is started under the initial condition, since the preset sample points are two, the approximation curve becomes a straight line C 1 as shown in FIG.

다음에 상기 근사곡선 산출부(34)에서 구한 직선 C1과 윤곽정보 기억부(31)에 기억되어 있는 윤곽좌표 정보에 따라 제 2 도 a에 도시하는 면적 S'+S"=S를 면적 산출부(35)에서 산출하여, 이것을 평가량 산출부(36)로 출력한다.Next, the area S '+ S " = S shown in Fig. 2A is calculated based on the straight line C 1 obtained by the approximation curve calculating unit 34 and the outline coordinate information stored in the outline information storage unit 31. It calculates in the part 35 and outputs it to the evaluation amount calculation part 36. FIG.

평가량 산출부(36)는 상기 거리 산출부(33)에서 산출한 거리 L과 면적 산출부(35)에서 산출한 면적 S에 따라 S/L에 평가량 ξ을 산출한다.The evaluation amount calculator 36 calculates the evaluation amount ξ in S / L according to the distance L calculated by the distance calculator 33 and the area S calculated by the area calculator 35.

이 경우에 산출되는 평가량은 1개이므로 이 값이 최대 평가량 검출부(37)를 거쳐서 평가량의 최대치 ξmax로서 비교부(38)에 공급된다.In this case, since there is one evaluation amount calculated, this value is supplied to the comparison unit 38 as the maximum value ξmax of the evaluation amount via the maximum evaluation amount detection unit 37.

비교부(38)에는 미리 정해진 허용치 ξ'가 다른쪽의 입력으로서 허용치 설정부(39)에서 부여되어 있으므로 ξmax〈ξ'일때, 신설 표본점 신출부(40)를 작동시킨다.Since the allowable value ξ 'is determined by the allowable value setting section 39 as the other input, the comparison section 38 operates the newly created sample point drawing section 40 when ξmax <ξ'.

신설표본점 산출부(40)를 구성하는 편위 산출부(41)는 상기 근사곡선 산출부(34)에서 구한 곡선(이 경우는 직선 C1)과 윤곽정보 기억부(31)에 기억되는 윤곽좌표 정보에 따라서 제 2 도 a에 도시하는 편위 △를 점 P1점 P2의 전구간에 걸쳐서 산출하고, 그 값이 최대가 되는 블록 B상의 점 P3의 위치 정보를 최대 편위위치 점 검출부(42)에서 구한다. 그리고 이점 P3가 신설 표본점으로서 표본점좌표 기억부(32)에 기억 설정된다.The deviation calculation unit 41 constituting the newly-established head office calculation unit 40 is a contour coordinate stored in the curve (in this case, the straight line C 1 ) and the contour information storage unit 31 obtained by the approximation curve calculation unit 34. According to the information, the deviation? Shown in FIG. 2 a is calculated over the entire period of the point P 1 point P 2 , and the positional information of the point P 3 on the block B at which the value is maximum is the maximum deviation position point detecting unit 42. Obtain from Advantages and P 3 is stored in the set sample point coordinate storage section 32 as the new sample point.

이와같이, 신설표본점 P3가 블록 B의 윤곽상에 설정되면, 제 3 도의 구성은 재차 상기와 같은 동작을 실행한다. 이하 이 동작과정을 제 2 도 B에 따라 설명한다. 또 이때 신설 표본점 P3는 기설정된 표본적으로 갱신된다.In this way, when the newly established sample point P 3 is set on the outline of the block B, the configuration of FIG. 3 again executes the above operation. This operation is described below with reference to FIG. 2B. At this time, the new sample point P 3 is updated with a predetermined sample.

즉 이 경우에, 우선 거리 산출부(38)가 제 2 도 B에 도시하는 거리 L1, L2를 산출한다. 또, 이것에 병행하여 블록 B상의 기설정된 표본점 P1, P2, P3를 통과하는 근사곡선 C2(제 2 도중 점선으로 표시)이 근사곡선 산출부(34)에서 구해진다.That is, in this case, first, the distance calculation unit 38 calculates the distances L 1 and L 2 shown in FIG. 2 . In addition, the approximation curve C 2 (indicated by the dotted line during the second period) passing through the predetermined sample points P 1 , P 2 , and P 3 on the block B in parallel is obtained by the approximation curve calculation unit 34.

면적 산출부(35)는 표본점에 의하여 잘라내진 각 윤곽세그멘트와, 상기 근사곡선 C2에 의하여 둘러싸인 면적 S1및 S2(제 2 도중, 사선으로 도시)를 각각 개별적으로 산출한다.The area calculating part 35 calculates each contour segment cut out by the sample point, and the areas S 1 and S 2 (shown in diagonal lines) surrounded by the approximation curve C 2 , respectively.

다음에 각각에 대응하는 거리 L1, L2및 면적 S1, S2에 따라, S/L=ξ의 평가량 ξ1및 ξ2가 평가량 산출부(36)에서 구해진다.Next, the evaluation amounts ξ 1 and ξ 2 of S / L = ξ are determined by the evaluation amount calculation unit 36 according to the distances L 1 , L 2 and the areas S 1 , S 2 corresponding to the respective values.

제 2 도 b의 경우는 ξ1〈ξ2가 되므로 ξ2의 값이 평가량의 최대치 ξmax로서 최대평가량 검출부(37)에서 비교부(38)로 공급된다.In the case of FIG. 2B, since ξ 12 , the value of ξ 2 is supplied from the maximum evaluation amount detection unit 37 to the comparing unit 38 as the maximum value ξ max of the evaluation amount.

그리고, ξmax(=ξ2)〉ξ'일때, 이 비교부(38)로 부터의 지령에 의하여 신설 표본점 산출부(40)가 재차 작동되고, 앞에서 제 2 도 a의 경우에 대하여 설명한 바와같이

Figure kpo00001
max로 되는 점 P4가 신설 표본점으로 표본점좌표기억부(32)에 설정된다.Then, when ξmax (= ξ 2 )> ξ ', the new sample point calculation unit 40 is operated again by the instruction from the comparing unit 38, and as described above with respect to the case of FIG.
Figure kpo00001
The point P 4 that is a max is set to the sample point coordinate storing section 32 in the new sample point.

이와같이 신설 표본점 P4가 구해진 후의 처리 상태는 제 2 도 c의 도시와 동일하므로 제 3 도 구성의 동작자체는 이하에 설명을 생략한다.Thus new sample point P 4 is obtained after treatment conditions Since the second same as those shown in Figure 3 c also operation of the configuration itself will not be described below.

그리고, 차례로 신설표본점 P1구해가는 과정에서 상기 비교부(38)가 ξmax

Figure kpo00002
ξ'를 검지했을때, 임의의 1개의 블록 B에 관한 제 3 도 구성의 동작은 종료한다.In addition, in the process of obtaining a new sample point P 1 , the comparison unit 38 measures ξmax.
Figure kpo00002
When ξ 'is detected, the operation of the third FIG. configuration with respect to any one block B ends.

물론 이때, 표본점 좌표 기억부(32)에 기억되는 표본점 P1∼P1가 블록 B의 윤곽에 관한 소망의 표본점으로서 설정된 것이 된다.At this time, of course, is that the sample points P 1 ~P 1 stored in the sample point coordinate storage section 32 is set as a desired sample point on the outline of the block B.

또, 상기 거리 산출부(33)에 있어서의 거리 L값은 L=(

Figure kpo00003
X)2+(
Figure kpo00004
y)2의 연산에 의하여 극히 간단히 구할 수 있다. 또 상기 면적 산출부(35)는 2개의 곡선의 y방향 차분을 x방향으로 적분하므로써 비교적 간단히 소망의 면적 S를 산출할 수 있다. 따라서 상기와 같이 S/L로서 부여되는 평가량 ξ의 값의 산출도 비교적 간단해진다. 그리고, 이 평가량 ξ는 면적 S를 길이 L로 나눔으로써 길이의 차원을 가지는 양으로 되기 때문에 면적 S를 형성하는 2개의 곡선(윤곽과 근사곡선)이 특이한 요철을 갖지 않는한 이들 양 곡선간의 이합(離合)관계를 표시하는 지표가 된다.Moreover, the distance L value in the said distance calculating part 33 is L = (
Figure kpo00003
X) 2 + (
Figure kpo00004
y) Can be obtained very simply by operation of 2 . The area calculating section 35 can calculate the desired area S relatively simply by integrating the y-direction differences of the two curves in the x direction. Therefore, the calculation of the value of the evaluation amount ξ given as S / L as described above is also relatively simple. Since this evaluation amount ξ is obtained by dividing the area S by the length L to obtain a dimension having a length dimension, the difference between the two curves (contour and approximation curve) forming the area S does not have an unusual unevenness ( It is an indicator of the relationship.

제 4 도는 상기 제 3 도 구성의 동작과정을 나타내는 순서도이다.4 is a flowchart illustrating an operation process of the configuration of FIG. 3.

다음에 문자 윤곽이 상기 특이한 요철을 가지는 경우와 관련해서, 제 3 도 구성 내지 제 4 도 과정에 의한 표본점 설정방법을 더욱 실효성이 높은 것으로 하기 위한 블록 설정 방법에 대하여 설명한다.Next, a block setting method for making the sample point setting method according to the configuration of FIG. 3 to FIG. 4 more highly effective in relation to the case where the character outline has the above-mentioned unevenness will be described.

즉, 제 3 도 구성 내지 제 4 도 과정에 의한 표본점 설정 방법을 실시했을 때, 제 5 도에 그 일예를 모식적으로 도시하는 바와같이 문자 윤곽의 곡률반경이 작은 부분에 표본점 P가 밀접하는 특징이 보이고, 이것에 의하여 표본점수에 의존하는 데이타 압축율의 향상을 저해하는 경우가 발생한다.That is, when the sample point setting method according to FIGS. 3 to 4 is implemented, the sample point P is close to the portion where the curvature radius of the character outline is small as shown in FIG. 5. In this case, the improvement of the data compression ratio depending on the sample score occurs.

따라서, 이하에 설명하는 개선된 블록설정 방법은 상기 표본점의 밀집 특성에 착안하여 이것을 이용하고, 표본점의 설정 밀도가 소정의 임계치를 초과하는 부분에 제 2 의 분할점(제 1 도의 분할점 D'에 해당)을 새로 설정하고, 블록을 2분하도록 한 것으로, 이들 분할된 각 블록에 대하여, 재차 제 3 도 구성에 의한 표본점 설정을 실시하므로써 문자윤곽 전체에 있어서의 표본점 설정수를 감소하도록 한 것이다.Therefore, the improved block setting method described below takes advantage of the dense property of the sample point and uses it, and the second splitting point (the dividing point in FIG. 1) at the portion where the set density of the sample point exceeds a predetermined threshold value. D ') is set newly, and the block is divided into two, and for each of the divided blocks, the sample point setting in the entire character outline is set again by setting the sample point according to the configuration of FIG. 3 again. It was to decrease.

이하, 이 개선된 블록 설정방법의 일실시예를 제 6 도에 따라 설명한다.An embodiment of this improved block setting method will now be described with reference to FIG.

제 6 도에 있어서, P1및 Pn은 임의 1개의 블록의 끝점이고, P1-1∼P1+3는 블록 B에 대하여 상기 표본점 설정 방법을 적용하므로써 설정된 표본점이다.In Fig. 6, P 1 and P n are end points of any one block, and P 1-1 to P 1 + 3 are sample points set by applying the sample point setting method to block B.

개선된 블록설정방법의 실시에 있어서는 예를들면, 우선 표본점의 밀도로서

Figure kpo00005
의 값을 i=2∼(n~3)의 모든 경우에 대하여 산출하고, 각각 임계치 ρ'와 비교한다.In implementing the improved block setting method, for example, first,
Figure kpo00005
The value of is computed for all cases of i = 2-(n-3), and is compared with threshold value rho ', respectively.

그리고 ρ1〈ρ'가 되는 경우를 표본점 밀집구간으로 추출한다.Then, the case where ρ 1 <ρ 'is extracted as the sample point density interval.

다음에, 이 표본점 밀집구간, 즉 블록 B상의 구간[P1-1, : P1+3]에 있어서 직선

Figure kpo00006
에 대하여 가장 떨어진점 Q를 구한다.Next, a straight line in this sample point dense section, that is, the section [P 1-1,: P 1 + 3 ] on block B
Figure kpo00006
Find the lowest point Q with respect to.

그리고, 직선

Figure kpo00007
와 직선
Figure kpo00008
로 구성되는 각 (P1-1, Q, P1+3)=θq를 구한 후 이것을 임계치 θ'와 비교하고, θq〈θ'가 되는 경우의 점 Q를 새로운 분할점 D'로 하고, 1개의 블록을 2분 한다.And straight
Figure kpo00007
And straight
Figure kpo00008
Calculate the angle (P 1-1 , Q, P 1 + 3 ) = θ q and compare it with the threshold θ ', and let point Q be the new splitting point D' when θ q <θ '. 1 block for 2 minutes.

개선된 블록설정 방법은 이상 설명한 바와 같다. 그리고 이 2분할된 각 블록에 재차 제 3 도 구성의 표본점 설정방법을 적용하므로써 특히 문자윤곽의 직선상 교차점이나 이른바 「삐침획」의 선단부 등의 특이점 부근에 있어서 표본점수가 감소하고, 이것에 의하여 데이타 압축효과에 기여하는 것이다.The improved block setting method is as described above. By applying the method of setting the sample point of FIG. 3 again to each of the two divided blocks, the sample score is decreased, especially near the singular point such as the straight intersection point of the character outline or the so-called tip of the `` spiking ''. This contributes to the data compression effect.

이상 상세히 설명해온 표본점설정방법 및 블록 설정방법에 따라 실제의 문자 윤곽을 처리한 경우의 일례를 제 7 도에 참고로 도시한다.An example of the case where the actual character outline is processed according to the sample point setting method and the block setting method described in detail above is shown with reference to FIG.

이 제 7 도에 있어서 「○」표는 제 1 도에 관련해서 설명한 초기 분할점이고, 「생」표는 개방된 블록설정방법에 의하여 구해진 제 2 의 분할점이며, 「△」표는 상기 제2의 분할점을 설정한 후에 구해진 표본점이다. 참조로 도면에 도시한 이들 각점의 수는 40,9 및 99로 되어 있다.In FIG. 7, the "○" table is an initial division point described with reference to FIG. 1, the "raw" table is a second division point obtained by an open block setting method, and the "△" table is the second division point. Sample point obtained after setting the split point of. The number of these points shown in the drawings for reference is 40, 9 and 99.

본 발명은 상기에서 상세히 설명한 바와같이, X, Y 좌표상에 모식적으로 전개한 문자 윤곽을 x를 변수로 하는 1가 함수로 형성한 블록의 집합으로서 파악하고 다시 각 블록상에 설정한 복수 표본점을 통과하는 곡선에 의하여 상기 문자 윤곽을 근사하도록 한 문제 데이타 압축방법에 있어서, 문자윤곽의 곡률반경이 작은 부분에 표본점이 밀접하는 특징에 착안해서 이것을 이용한 것으로, 더욱 구체적으로 말하면 임의의 1개의 블록상에 설정한 복수표본점의 밀도를 각 표본점 마다 산출하는 단계와, 다음에 이 밀도가 소정의 임계치를 초과하는 표본점 밀접부를 검지했을때 이 밀집부에 새로운 분할점을 설정하는 단계와 ,이 분할점에 의하여 상기 임의의 1개의 블록을 2개의 블록으로 분할설정하도록 한 것을 특징으로 하는 것이다. 그리고, 이와같이 구성하므로써 본 발명은 문자 윤곽 전체에 있어서이 표본점 설정수를 감소케하고, 상기 문자데이타 압축 방법을 더욱 실효성이 높은 것으로 블록 설정 방법을 제공하는 것이다.In the present invention, as described in detail above, a plurality of samples obtained by grasping a character outline that is typically developed on X and Y coordinates as a set of blocks formed by a monovalent function using x as a variable, and again set on each block. In the problem data compression method in which the character outline is approximated by a curve passing through a point, it is used to take advantage of the feature that the sample point is close to the portion where the radius of curvature of the character outline is small. Calculating the density of the multiple sample points set on the block for each sample point, and then setting a new dividing point in the dense part when the sample point closeness where the density exceeds a predetermined threshold is detected; The division point is used to divide and set the arbitrary one block into two blocks. In this way, the present invention reduces the number of sample point settings in the entire character outline, and provides the block setting method as the character data compression method is more effective.

Claims (2)

X, Y 좌표상에 모식적으로 전개한 글자윤곽을 x를 변수로 하는 1가 함수로 형성한 블록의 집합으로서 파악하고, 다시 각 블록상에 설정한 복수표본점을 통과하는 곡선에 의해 상기 문자 윤곽을 근사하도록 한 문자데이타 압축방법에 있어서, 임의 1개의 블록상에 설정한 표본점의 밀도를 각 표본점마다 산출하는 단계와 ; 이 밀도가 소정의 임계치를 초과하는 표본점 밀집부를 검지했을때, 이 밀집부에 새로운 분할점을 설정하는 단계와, 이 분할점에 의하여 상기 임의 1개의 블록을 2개의 블록으로 분할하는 단계를 거쳐 문자데이타 압축용 블록을 설정하도록 한 것을 특징으로 하는 문제데이타 압축용 블록 설벙 방법.Grasping the outline of the letter outlined on the X, Y coordinates as a set of blocks formed by a monovalent function using x as a variable, and again by the curve passing through the multiple sample points set on each block A character data compression method for approximating an outline, comprising the steps of: calculating the density of sample points set on any one block for each sample point; When a sample point cluster having a density exceeding a predetermined threshold is detected, a new splitting point is set in the cluster, and the arbitrary one block is divided into two blocks by the splitting point. A method for solving problem data compression, characterized by setting a block for character data compression. 제 1 항에 있어서, 상기 임의 1개의 블록상에 설정한 표본점을 P1{단, i=1∼n 또 P1및 Pn은 블록의 시점 및 종점}로 했을 때, Pi, Pi+1+ Pi+1, Pi+2= ρi{단, i=2∼(n∼3)}의 값이 소정의 영계치 ρ'보다 작을 때 직선
Figure kpo00009
에 대해 가장 떨어진 점 Q를 구하고, 다시, 직선
Figure kpo00010
와 직선
Figure kpo00011
으로 구성되는 각 (Pi-1, Q, Pi+3)=θq가 소정의 값 θ'보다 작을 때, 상기 점 Q를 새로 설정하는 소망의 분할점으로 하도록 한 것을 특징으로 하는 문자데이타 압축용 블록 설정방법.
The method of claim 1, wherein when P 1 (where i = 1 to n and P 1 and P n are the starting point and the ending point of the block), P i and P i are set. +1 + P i + 1 , P i + 2 = ρ i {where i = 2 to (n to 3)} is less than the predetermined threshold ρ '
Figure kpo00009
Find the furthest point Q for, and again, straight
Figure kpo00010
And straight
Figure kpo00011
Character data characterized in that when the angle (P i-1 , Q, P i + 3 ) = θ q constituted by is smaller than a predetermined value θ ', the point Q is set as a desired dividing point. Compression block setting method.
KR1019830000858A 1983-03-03 1983-03-03 Method for comperssing character or pictorial image data KR900002810B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019830000858A KR900002810B1 (en) 1983-03-03 1983-03-03 Method for comperssing character or pictorial image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019830000858A KR900002810B1 (en) 1983-03-03 1983-03-03 Method for comperssing character or pictorial image data

Publications (2)

Publication Number Publication Date
KR840004278A KR840004278A (en) 1984-10-10
KR900002810B1 true KR900002810B1 (en) 1990-04-30

Family

ID=19228389

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019830000858A KR900002810B1 (en) 1983-03-03 1983-03-03 Method for comperssing character or pictorial image data

Country Status (1)

Country Link
KR (1) KR900002810B1 (en)

Also Published As

Publication number Publication date
KR840004278A (en) 1984-10-10

Similar Documents

Publication Publication Date Title
US4542412A (en) Method for compressing character or pictorial image data
EP0593028A1 (en) Color image processing method and apparatus for same
CN111402209B (en) U-Net-based high-speed railway steel rail damage detection method
KR19990067567A (en) Vector Correlation System for Automatic Positioning of Patterns in Images
DE102004004528A1 (en) Stereo image processing method for measuring parallax between stereo images to determine 3D position coordinates of image objects, wherein both parallax and a parallax reliability factor are determined
CN111815503A (en) Stud characteristic parameter measuring method based on line laser scanning
CN107590512A (en) The adaptive approach and system of parameter in a kind of template matches
CN113741426A (en) Robot machining path planning method based on local point cloud curve fitting
US5734751A (en) Ellipse-like curve recognition by calculation of distances of points on the curve from FOCI
CN107388991A (en) A kind of more fillet axial workpiece radius of corner measuring methods in end face
US8326045B2 (en) Method and apparatus for image processing
US6728407B1 (en) Method for automatically determining trackers along contour and storage medium storing program for implementing the same
KR900002810B1 (en) Method for comperssing character or pictorial image data
US5638462A (en) Method and apparatus for recognizing graphic forms on the basis of elevation angle data associated with sequence of points constituting the graphic form
JPH07210655A (en) Image processor for ophthalmology
JPH0613213B2 (en) Block setting method for character image data compression
JP2008116206A (en) Apparatus, method, and program for pattern size measurement
JPH09134435A (en) Automatic detection method for evaluable region in image of machine component
CN116167983A (en) Rail web alignment method, system and terminal based on minimum DTW distance
KR900002809B1 (en) Method for compressing character or pictorial image data
CN110135425A (en) Sample mask method and computer storage medium
JP2000003436A (en) Device and method for recognizing isar picture
CN115830043B (en) Boundary detection method, device, equipment and storage medium for wireless charging magnet
CN116958152B (en) Part size measurement method, device, equipment and medium
JP2953786B2 (en) Steel plate warpage measurement method

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 19930308

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee