KR19990023726A - Grayscale shared data generating device, Grayscale shared data restoring device, Grayscale data processing device, Grayscale shared data generating method, Grayscale shared data restoring method, Grayscale data processing method and computer readable recording medium - Google Patents

Grayscale shared data generating device, Grayscale shared data restoring device, Grayscale data processing device, Grayscale shared data generating method, Grayscale shared data restoring method, Grayscale data processing method and computer readable recording medium Download PDF

Info

Publication number
KR19990023726A
KR19990023726A KR1019980033724A KR19980033724A KR19990023726A KR 19990023726 A KR19990023726 A KR 19990023726A KR 1019980033724 A KR1019980033724 A KR 1019980033724A KR 19980033724 A KR19980033724 A KR 19980033724A KR 19990023726 A KR19990023726 A KR 19990023726A
Authority
KR
South Korea
Prior art keywords
data
gradation
grayscale
maximum
shared
Prior art date
Application number
KR1019980033724A
Other languages
Korean (ko)
Other versions
KR100490910B1 (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 모리시다 요이치
Publication of KR19990023726A publication Critical patent/KR19990023726A/en
Application granted granted Critical
Publication of KR100490910B1 publication Critical patent/KR100490910B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

본 계조 공유 데이터 생성장치는 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터, 계조를 나타내는 화소의 소정 개수에 대응하여 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성장치이며, 윤곽정보로부터 계조수 2의 계조 데이터 및 계조수 3의 계조 데이터를 생성하는 윤곽정보 확대축소부(102), 기본 계조값 산출부(103)와, 생성된 계조수 2의 계조 데이터 및 계조수 3의 계조 데이터로부터 계조수 4의 계조 공유 데이터를 생성하는 계조 공유 데이터 생성부(105)를 갖고 있다.The gradation sharing data generating apparatus shares plural kinds of gradation data for representing a symbol in accordance with a predetermined number of pixels indicating gradation from contour information representing the outline of a symbol including a character or a figure, and generates gradation sharing data. A gradation shared data generating device comprising: an outline information expansion and contraction unit (102), a basic gradation value calculation unit (103), and a generated gradation number for generating gradation data of gradation number 2 and gradation data of gradation number 3 from contour information; A gradation shared data generation unit 105 for generating gradation shared data of gradation number 4 from gradation data of 2 and gradation data of gradation number 3 is provided.

또한 본 계조 공유 데이터 복원장치는 상기 계조 공유 데이터로부터 계조 데이터를 복원하는 계조 공유 데이터 복원장치이며, 계조수 2 또는 계조수 3을 선택하는 계조수 선택부(108)와, 계조 공유 데이터로부터 선택에 따라 계조수 2의 계조 데이터를 복원하는 제 1 계조 데이터 복원부(109), 계조수 3의 계조 데이터를 복원하는 제 2 계조 데이터 복원부(110)를 갖고 있다.The gradation shared data restoring apparatus is a gradation shared data restoring apparatus for restoring gradation data from the gradation sharing data, and includes a gradation number selector 108 for selecting gradation number 2 or gradation number 3, and selecting from the gradation sharing data. Therefore, the first gray scale data restoration unit 109 restores the gray scale data of the gray scale number 2, and the second gray data restoration unit 110 restores the gray scale data of the gray scale number 3.

Description

계조 공유 데이터 생성장치, 계조 공유 데이터 복원장치, 계조 데이터 처리장치, 계조 공유 데이터 생성방법, 계조 공유 데이터 복원방법, 계조 데이터 처리방법 및 컴퓨터 판독 가능한 기록매체Grayscale shared data generating device, grayscale shared data restoring device, grayscale data processing device, grayscale shared data generating method, grayscale shared data restoring method, grayscale data processing method and computer readable recording medium

본 발명은 계조를 이용하여 문자 또는 도형을 표현하는 계조 데이터를 복수종류 공유하는 계조 공유 데이터를 생성하는 계조 공유 데이터 생성장치 및 계조수를 선택하고 생성된 계조 공유 데이터로부터 계조 데이터를 복원하는 계조 공유 데이터 복원장치에 관한 것이다.According to the present invention, a gradation sharing data generation device for generating gradation sharing data for sharing plural kinds of gradation data representing a character or a figure using gradation, and gradation sharing for selecting gradation numbers and restoring gradation data from the generated gradation sharing data. The present invention relates to a data recovery apparatus.

최근 퍼스널 컴퓨터의 CRT를 위시하여 TV, 휴대형 정보기기, 디지털 위성방송 수신단말 등, 표시를 행하는 장치에 있어서, 표시 품질의 중요성이 증가하고 있다.Background Art In recent years, display quality, such as TV, portable information equipment, and digital satellite broadcasting receiving terminal, including CRTs of personal computers, has increased in importance.

일반적으로 TV나 퍼스널 컴퓨터의 CRT 등의 표시장치는 프린터에 비해 해상도가 낮으므로 화상이나 문자의 윤곽부분이 들쑥날쑥하거나 세부의 표현을 할 수 없으면 인쇄물에 비해 표시 품질이 떨어진다. 표시장치에서는 이것을 보충하여 외관의 해상도를 향상시켜 인쇄물의 품질에 가깝게 하기 위해 전경색과 배경색 이외의 이들 색의 중간색이 이용되어 각 화소의 계조가 표현되고 있다.In general, display devices such as CRTs of TVs and personal computers have lower resolutions than printers, and therefore, when the outlines of images and characters are jagged or cannot be expressed in detail, display quality is lower than in printed materials. In the display device, in order to compensate for this, to improve the resolution of the appearance and to approximate the quality of the printed matter, intermediate colors of these colors other than the foreground color and the background color are used to express the gradation of each pixel.

계조 데이터에 있어서는, 1개의 화소에 대하여 이용할 수 있는 계조의 수가 많을수록 표시 품질은 향상되게 되지만, 실제로 사용할 수 있는 계조수는 표시장치의 표시능력에 의해 결정된다.In the gradation data, the display quality is improved as the number of gradations available for one pixel increases, but the number of gradations that can be actually used is determined by the display capability of the display device.

특히 문자를 나타내는 데이터가 통신회선이나 방송 등에 의해 송수신되는 시스템에 있어서, 계조 데이터를 생성하는 장치와 계조 데이터를 이용하고 표시를 행하는 장치가 다를 때 표시장치측에서, 동시에 표시가능한 색의 수에 제한이 있고, 표시내용에 따라 사용할 수 있는(문자에 대하여 할당할 수 있는) 계조수가 다른 장소 등에는, 데이터를 송신하는 장치측에서 미리 몇계조의 데이터를 준비하면 되는지를 일의적으로 결정할 수는 없다. 예를 들면, 이러한 데이터 송수신 시스템에 있어서, 멀티미디어 컨텐츠를 배포하여 다수의 종류의 단말장치로 그 재생을 할 때, 단말장치에 의해서 표시할 수 있는 데이터의 계조수나 종류가 다른 경우에는 송신장치측에서 미리 어떠한 중간색을 이용할 것인지를 결정할 수는 없다.Particularly in a system in which data representing text is transmitted and received by a communication line or a broadcast, when the device for generating gray data and the device using gray data are different from each other are limited to the number of colors that can be displayed simultaneously on the display device side. In a place where the number of tones that can be used (assigned for characters) differs depending on the display content, it is impossible to uniquely determine how many tones of data should be prepared in advance by the apparatus for transmitting the data. . For example, in such a data transmission / reception system, when the multimedia content is distributed and reproduced by a plurality of types of terminal apparatuses, when the number or type of data to be displayed by the terminal apparatuses is different, the transmitting apparatus side is used. You cannot decide in advance which halftone to use.

종래에는 이러한 장소에 있어서도, 퍼스널 컴퓨터 등과 같이 단말장치가 65536색과 같은 다계조의 표시능력을 가질 때에는 단말장치가 구비하고 있는 최대 계조수의 데이터에 근사하여 표시함으로써 일정한 표시품질이 얻어지고 있다. 또한 단말장치가 256색인 컬러 팔레트를 이용하는 표시능력을 가질 때에는 256개 중 사용하고 있지 않은 팔레트에 중간색을 할당하여 표시함으로써 최저한의 표시품질이 확보되고 있다.Conventionally, even in such a place, when the terminal apparatus has a multi-gradation display capability such as 65536 colors, such as a personal computer, a constant display quality is obtained by approximating and displaying the data of the maximum number of gray scales included in the terminal apparatus. In addition, when the terminal apparatus has a display capability of using a color palette of 256 colors, the minimum display quality is secured by assigning and displaying intermediate colors among the palettes not being used.

도 1은 제 1 종래예의 계조 공유 데이터 처리 시스템의 구성을 도시한 블록도이다. 이 제 1 종래예의 계조 공유 데이터 처리 시스템은 계조 공유 데이터 생성장치와(상술한 단말장치에 대응함) 계조 공유 데이터 복원장치를 포함하고 있다. 여기에서는 설명의 편의상, 계조 공유 데이터 복원장치로써 2계조 데이터와 3계조 데이터의 두 가지 계조 데이터 중 어느 것이 사용될 것인지가 계조 공유 데이터 복원장치측에서 미리 특정되지 않는 것을 상정하지만 3종류 이상의 계조 데이터에 대해서도 마찬가지이다.1 is a block diagram showing the configuration of a gradation shared data processing system of a first conventional example. The gradation shared data processing system of this first conventional example includes a gradation shared data generating apparatus (corresponding to the terminal apparatus described above) and a gradation shared data restoration apparatus. Here, for convenience of explanation, it is assumed that which of the two tone data, the two tone data and the three tone data, will be used as the tone share data restoration device, but is not specified in advance on the tone share data restoration device. The same applies to the same.

제 1 종래예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치는 윤곽정보 유지부(201), 윤곽정보 확대축소부(202), 2계조 데이터 생성부(203), 3계조 데이터 생성부(304), 계조 공유 데이터 생성부(205)를 구비하고 있다. 또한 계조 공유 데이터 복원장치는 계조 공유 데이터 인출부(206), 계조수 선택부(207), 2계조 데이터 복원부(208), 3계조 데이터 복원부(209)를 구비하고 있다.The gradation sharing data generating apparatus of the gradation sharing data processing system of the first conventional example includes an outline information holding unit 201, an outline information expanding and contracting unit 202, a two gradation data generating unit 203, and a three gradation data generating unit 304. And a gradation shared data generation unit 205. The gradation shared data restoring apparatus includes a gradation shared data extracting unit 206, a gradation number selection unit 207, a two gradation data restoring unit 208, and a three gradation data restoring unit 209.

2계조 데이터에서는 각 화소에 대하여 이용하는 계조를 전경색, 배경색의 2색으로 하고, 여기에서는 전경색에 대하여 1, 배경색에 대하여 0의 계조값을 할당한다. 2계조 데이터에 있어서는, 1화소의 계조값을 1비트로 표현할 수 있다.In the two-gradation data, the gray scale used for each pixel is set to two colors of the foreground color and the background color. Here, a gray scale value of 1 is assigned to the foreground color and 0 to the background color. In two tone data, a tone value of one pixel can be expressed by one bit.

3계조 데이터에서는 각 화소에 대하여 이용하는 계조를 전경색, 중간색, 배경색의 3색으로 하고, 여기에서는 전경색에 대하여 2, 중간색에 대하여 1, 배경색에 대하여 0의 계조값을 할당한다. 3계조 데이터에 대해서는 1화소의 계조값을 2비트로 표현할 수 있다.In the three-gradation data, the gradation used for each pixel is three colors of the foreground color, the middle color, and the background color. Here, two gradation values are assigned to the foreground color, one to the middle color, and zero to the background color. For the three-gradation data, the gray-scale value of one pixel can be represented by two bits.

또한 계조 공유 데이터는 2계조 데이터의 뒤에 3계조 데이터를 연결한 것으로 한다.The gray scale shared data is a combination of three gray scale data followed by two gray scale data.

이러한 계조 공유 데이터 생성장치로써, 문자나 도형등의 윤곽을 나타내는 아우트라인 데이터로부터 계조 공유 데이터가 생성되기까지의 처리 순서를 (처리 1)∼(처리 5)로서 우선 설명하기로 한다.As such a gradation shared data generating apparatus, the processing procedure from the outline data showing the outline of a character or a figure to the generation of the gradation shared data will be described first as (Process 1) to (Process 5).

(처리 1) 처음으로 윤곽정보 유지부(201)는 요구된 문자에 대한 윤곽정보를 아우트라인 데이터를 기억하고 있는 기억부로부터 인출하여 유지한다. 여기에서는 다음에 예시하는 바와 같은 윤곽정보가 인출되어 유지되는 것으로 한다.(Process 1) First, the outline information holding unit 201 draws out and holds outline information on the requested character from a storage unit storing outline data. Here, it is assumed that outline information as shown in the following is drawn out and held.

도 2의 (a), (b)는 문자나 도형 등을 나타내는 아우트라인 데이터에 포함되는 윤곽정보의 일례를 도시한 도면이다. 여기에서의 윤곽정보는 고딕체의 알파벳「A」를 1000×1000의 좌표상(이하 1000메쉬로 표현)에서 직선의 집합으로서 표현하는 것이다. (아우트라인 데이터는 알파벳 또는 한자 등과 같은 통합을 갖는 복수의 문자에 대하여 폰트명, 메쉬수 등의 데이터와 함께 각 문자의 윤곽정보를 갖고 있음).2 (a) and 2 (b) are diagrams showing an example of outline information included in outline data representing characters, figures, and the like. The outline information here represents the Gothic alphabet "A" as a set of straight lines on a coordinate of 1000x1000 (hereinafter referred to as 1000 mesh). (Outline data has outline information of each character along with data such as font name, mesh number, etc. for a plurality of characters having integration such as alphabet or Chinese character).

「A」의 윤곽정보는 2개의 윤곽을 나타내는 도 2의 (b)에 도시된 바와 같은 좌표점으로 구성되며, 각 좌표점을 순서대로 연결해가는 것으로 윤곽을 묘화(描畵)할 수 있다((125, 75), (450, 925), ..., (225, 75)를 차례로 연결해감으로써 윤곽 1을 묘화할 수 있고, (375, 450), (625, 450), (500, 8O0)을 차례로 연결해감으로써 윤곽 2를 묘화할 수 있음). 여기에서는 윤곽의 종점좌표와 시점좌표는 자동적으로 연결되는 것으로 하고 있고, 또한 직선과 함께 2차곡선이나 3차곡선 등을 병용할 수도 있다.The outline information of "A" is composed of coordinate points as shown in Fig. 2B showing two outlines, and the outline can be drawn by connecting each coordinate point in order (( Contour 1 can be drawn by connecting 125, 75), (450, 925), ..., (225, 75) in sequence, and (375, 450), (625, 450), (500, 8O0) Contour 2 can be drawn by linking them in order). Here, the end point coordinates and the start coordinates of the contour are automatically connected, and a quadratic curve or a cubic curve can be used together with a straight line.

(처리 2) 다음으로 윤곽정보 확대축소부(202)는 (처리 1)에 의해 윤곽정보 유지부(201)에 의해 유지되어 있는 윤곽정보를, 요구되는 화소수로 확대 축소한다. 여기에서는 윤곽정보는 폭 10픽셀, 높이 10픽셀로 축소되는 것으로 한다(픽셀은 화소와 같은 의미로 이용됨).(Process 2) Next, the outline information enlargement and reduction unit 202 enlarges and reduces the outline information held by the outline information holding unit 201 by the required number of pixels by (Process 1). Here, the contour information is reduced to 10 pixels in width and 10 pixels in height (pixels are used in the same sense as pixels).

통상 10×10 픽셀(폭 10픽셀, 높이 10픽셀)의 데이터가 요구되고 있을 때에는 1000메쉬의 윤곽정보는 10메쉬로 축소되면 좋지만, 계조 데이터를 생성하기 위해서는 각 화소에 대하여 계조값을 결정할 필요가 있다. 그 때문에 1개의 화소를 더욱 세밀한 서브 픽셀이라는 단위로 분할하고, 윤곽정보를 서브 픽셀에 대응시켜 축소하여 1개의 픽셀중에서 윤곽의 내부에 포함되는(윤곽상을 포함) 서브 픽셀의 수에 따라 계조값을 결정한다.In general, when 10 × 10 pixels (10 pixels in width and 10 pixels in height) are required, the outline information of 1000 mesh may be reduced to 10 mesh. However, to generate the gray scale data, it is necessary to determine the gray scale value for each pixel. have. Therefore, one pixel is divided into finer subpixels, the contour information is reduced in correspondence with the subpixels, and the gradation value is determined according to the number of subpixels included in the contour (including the contour image) among the one pixel. Determine.

예를 들면 1개의 픽셀을 폭 4, 높이 4로 세분화하면 1개의 픽셀은 4×4=16개의 서브 픽셀로 세분화된다. 이하에서는 1픽셀을 세분화하는 메쉬를「서브 메쉬」, 픽셀과 픽셀과의 경계를「픽셀 경계」, 서브 픽셀과 서브 픽셀의 경계를「서브 픽셀 경계」라고 표현한다.For example, if one pixel is subdivided into 4 widths and 4 heights, one pixel is subdivided into 4x4 = 16 subpixels. Hereinafter, a mesh that subdivides one pixel is referred to as a "sub mesh", a boundary between pixels and pixels is referred to as a "pixel boundary", and a boundary between sub pixels and sub pixels is referred to as a "sub pixel boundary".

도 3은 계조 데이터를 생성하기 위해 1픽셀당 16 서브 픽셀로 분할된 10×10 픽셀을 도시한 도면이며, 도 4의 (a), (b)는 도 2의 (a), (b)에 도시하는 윤곽정보를 축소한 후의 데이터를 도시한 도면이다.FIG. 3 is a diagram showing 10 × 10 pixels divided into 16 subpixels per pixel to generate grayscale data, and FIGS. 4A and 4B are shown in FIGS. It is a figure which shows the data after reducing the outline information shown.

도 3에서는 굵은선이 픽셀 경계, 가는선이 서브 픽셀 경계를 나타낸다. 1000메쉬로 나타내는 윤곽정보를 10×10 픽셀로 축소할 때는 윤곽정보는 40×40 서브 픽셀로 축소되고, 1개의 픽셀 중에서 윤곽의 내부에 포함되는 서브 픽셀의 수에 따라 계조값이 결정된다.In FIG. 3, a thick line represents a pixel boundary and a thin line represents a subpixel boundary. When the outline information represented by 1000 mesh is reduced to 10x10 pixels, the outline information is reduced to 40x40 subpixels, and a gray scale value is determined according to the number of subpixels included in the outline among one pixel.

윤곽정보 확대축소부(202)(도 1 참조)는 도 2의 (b)에 도시된 「A」의 윤곽정보를 나타내는 각 좌표값을 40/1000배로 한다. 도 4의 (a), (b)는 이렇게하여 축소된 윤곽정보의 결과를 나타낸다. 이렇게 하여 구해진 좌표값은 서브 픽셀 단위의 값을 취한다.The outline information expansion and contraction unit 202 (see FIG. 1) sets each coordinate value representing the outline information of "A" shown in FIG. 2B to 40/1000 times. 4 (a) and 4 (b) show the result of the reduced outline information in this way. The coordinate value obtained in this way takes a value in subpixel units.

(처리 3) 2계조 데이터 생성부(203)는 윤곽정보 확대축소부(202)가 생성한 도 4의 (b)에 도시된 데이터로부터 각 픽셀의 계조값을 산출함으로써 3계조 데이터를 생성한다.(Process 3) The two-tone data generation unit 203 generates three-tone data by calculating the tone value of each pixel from the data shown in Fig. 4B generated by the outline information expansion and reduction unit 202.

구체적으로는 각 픽셀에 대하여 윤곽정보 확대축소부(202)가 생성한 확대 축소후의 윤곽정보로 구성되는 윤곽의 내부에 포함되는 서브 픽셀의 개수를 구하고, 이 서브 픽셀의 개수가 1개의 픽셀을 구성하는 전체 서브 픽셀 중의 일정한 비율 이상이면 전경색, 즉 1이 되고, 일정한 비율 미만이면 배경색, 즉 O이 계조값으로 된다. 여기에서는 1개의 픽셀을 구성하는 16개의 서브 픽셀 중, S개 이상의 서브 픽셀이 윤곽내부에 포함되어 있으면 그 픽셀의 계조값을 1, 8개 미만의 서브 픽셀이 윤곽내부에 포함되어 있으면 그 픽셀의 계조값을 0으로 한다. 도 5는 이상과 같은 순서에 의해 2계조 데이터 생성부(203)에서 생성된 「A」에 대한 2계조 데이터이다.Specifically, for each pixel, the number of subpixels included in the outline composed of the contour information after the enlargement and reduction generated by the outline information enlargement / reduction unit 202 is obtained, and the number of the subpixels constitutes one pixel. If it is equal to or greater than a certain ratio among all the sub-pixels, the foreground color, i.e., 1, is set. Here, out of 16 sub-pixels constituting one pixel, if S or more sub-pixels are included in the outline, the grayscale value of the pixel is included. If less than 8 sub-pixels are included in the outline, the pixel The gradation value is set to zero. FIG. 5 shows two tone data for " A " generated by the two tone data generation unit 203 in the above-described order.

(처리 4) 3계조 데이터 생성부(204) (도 1 참조)는 윤곽정보 확대축소부(2402)가 생성한 도 4의 (b)에 도시된 데이터로부터 각 픽셀의 계조값을 산출함으로써 3계조 데이터를 생성한다.(Process 4) The three gradation data generation unit 204 (see Fig. 1) calculates the gradation value of each pixel from the data shown in Fig. 4B generated by the outline information expansion and contraction unit 2402, and then executes the three gradation values. Generate data.

구체적으로는 상술한 (처리 3)과 마찬가지로 1개의 픽셀 내에서 윤곽의 내부에 포함되는 서브 픽셀의 개수에 따라 그 픽셀의 계조값이 전경색, 즉 2, 중간색 ,즉 1, 배경색, 즉 0 중 어느 것에 할당된다. 여기에서는 1개의 픽셀을 구성하는 16개의 서브 픽셀 중 11개 이상의 서브 픽셀이 윤곽 내부에 포함되어 있으면 그 픽셀의 계조값을 2, 5개 이상 11개 미만의 서브 픽셀이 윤곽 내부에 포함되어 있으면 그 픽셀의 계조값을 1, 5개 미만의 서브 픽셀이 윤곽내부에 포함되어 있으면 그 픽셀의 계조값을 O으로 한다. 도 6은 이상과 같은 순서에 의해 3계조 데이터 생성부(204)에서 생성된 「A」에 대한 3계조 데이터이다.Specifically, as in (Process 3) described above, according to the number of sub-pixels included in the outline in one pixel, the gray level value of the pixel is either the foreground color, that is, 2, the middle color, that is, 1, the background color, that is, 0. Is assigned to. In this case, if 11 or more subpixels of the 16 subpixels constituting one pixel are included in the contour, the gray level value of the pixel is 2, 5 or more, and less than 11 subpixels are included in the contour. If less than one or five subpixels are included in the outline of the pixel, the gray level of the pixel is set to O. FIG. 6 shows three tone data for " A " generated by the three tone data generator 204 in the above-described order.

(처리 5) 다음으로 계조 공유 데이터 생성부(205)(도 1 참조)는 2계조 데이터 생성부(203)에 의해 생성된 2계조 데이터와, 3계조 데이터 생성부(204)에 의해 생성된 3계조 데이터로부터 계조 공유 데이터를 생성한다. 여기에서는 2계조 데이터 뒤에 3계조 데이터가 연결된다. 도 7은 이와 같이 하여 계조 공유 데이터 생성부(205)에 의해 생성되는 계조 공유 데이터를 도시한 도면이다.(Process 5) Next, the gradation shared data generation unit 205 (refer to FIG. 1) includes two gradation data generated by the two gradation data generation unit 203 and three generated by the three gradation data generation unit 204. Grayscale shared data is generated from grayscale data. Here, two tone data is concatenated with three tone data. FIG. 7 is a diagram showing gradation sharing data generated by the gradation sharing data generating unit 205 in this manner.

계조 공유 데이터 생성장치에서는 이상과 같은 (처리 1)∼(처리 5)에서의 처리에 의해 아우트라인 데이터로부터 계조 공유 데이터가 생성된다.In the gradation shared data generating device, gradation shared data is generated from the outline data by the processes in (process 1) to (process 5) as described above.

계속해서 이들과 같이 하여 계조 공유 데이터 생성장치에서 생성된 계조 공유 데이터를 계조 공유 데이터 복원장치로써 복원할 때의 처리의 순서를 (처리 6), (처리 7), (처리 8-1), (처리 8-2)로서 설명한다.Subsequently, the processing steps for restoring the grayscale shared data generated by the grayscale shared data generating apparatus with the grayscale shared data restoring apparatus in the same manner are described in (Process 6), (Process 7), (Process 8-1), ( Processing 8-2) will be described.

(처리 6) 계조 공유 데이터 인출부(206), (도 1 참조)는 계조 공유 데이터 생성장치에서 생성된 계조 공유 데이터를 인출한다.(Process 6) The grayscale shared data extracting unit 206 (see FIG. 1) extracts the grayscale shared data generated by the grayscale shared data generating apparatus.

(처리 7) 계조수 선택부(207)는 요구된 계조수가 2계조라면 2계조 데이터 복원부(208), 요구된 계조수가 3계조라면 3계조 데이터 복원부(209)를 기동한다. (요구된 계조수가 2계조인지 3계조인지에 따라 다음에 나타내는 (처리 8-1), (처리 8-2) 중 어느 것이 선택된다).(Process 7) The gradation number selection unit 207 starts the two-gradation data restoration unit 208 if the requested gradation number is two gradations, and the three gradation data restoration unit 209 if the requested gradation number is three gradations. (Either of (Process 8-1) and (Process 8-2) shown below are selected depending on whether the requested number of gradations is 2 or 3 gradations).

(처리 8-1) 요구된 계조수가 2계조라면 3계조 데이터 복원부(208)는 계조 공유 데이터 인출부(206)가 인출한 계조 공유 데이터로부터 2계조 데이터 부분(도 7에 도시된 계조 공유 데이터의 전반부)을 추출한다. 이 추출 결과, 도 5에 도시된 2계조 데이터(계조 공유 데이터 생성장치로써 생성되는 2계조 데이터와 마찬가지)를 얻을 수 있다.(Process 8-1) If the requested number of tones is 2 tones, the 3rd gradation data restoring unit 208 performs the 2 gradation data portion from the gradation sharing data extracted by the gradation sharing data extracting unit 206 (the gradation sharing data shown in Fig. 7). First half). As a result of this extraction, the two-gradation data shown in FIG. 5 (similar to the two-gradation data generated by the gradation shared data generating device) can be obtained.

(처리 8-2) 요구된 계조수가 3계조이면 3계조 데이터 복원부(209)는 계조 공유 데이터 인출부(206)가 인출한 계조 공유 데이터로부터 3계조 데이터 부분(도 7에 도시된 계조 공유 데이터의 후반부)을 추출한다. 이 추출 결과, 도 6에 도시된 3계조 데이터(계조 공유 데이터 생성장치로써 생성되는 3계조 데이터와 마찬가지)를 얻을 수 있다.(Process 8-2) If the requested gradation number is three gradations, the three gradation data restoration unit 209 uses the three gradation data portions (gradation sharing data shown in Fig. 7) from the gradation sharing data extracted by the gradation sharing data extracting unit 206. Extract the second half). As a result of this extraction, the three gradation data shown in FIG. 6 (similar to the three gradation data generated by the gradation shared data generating device) can be obtained.

필요할 때 지시가 있으면 이와 같이 얻어진 2계조 데이터 및 3계조 데이터 중 어느 것에 기초하여 표시부에 문자가 표시된다.When instructed when necessary, a character is displayed on the display unit based on either of the two-tone data and the three-tone data thus obtained.

이상 설명한 바와 같은 제 1 종래예의 계조 공유 데이터처리 시스템에서는 2계조 데이터 또는 3계조 데이터 양에 비해 생성된 계조 공유 데이터의 양이 증가된다. 이러한 데이터 양의 증가를 막기 위해 보다 차수가 높은 계조수의 데이터만을 생성하고, 복원장치측에서 차수가 낮은 계조수의 데이터가 요구되었을 때에는 발췌처리나 디더(dither)처리 등에 의해 계조수를 변환하는 수법이 일반적으로 사용되고 있다.In the gradation sharing data processing system of the first conventional example as described above, the amount of gradation sharing data generated is increased compared to the amount of 2-gradation data or 3-gradation data. In order to prevent such an increase in the amount of data, only the higher order data is generated, and when the data of the lower order is requested from the restoring device, the number of tones is converted by extracting or dithering. Techniques are generally used.

도 8은 이러한 방법을 이용하는 제 2 종래예의 계조 공유 데이터 처리 시스템의 구성을 도시한 블록도이다. 이 제 2 종래예의 계조 공유 데이터 처리 시스템은 제 1 종래예의 계조 공유 데이터 처리 시스템과 마찬가지로 계조 공유 데이터 생성장치와 계조 공유 데이터 복원장치를 포함하여 2계조 데이터, 3계조 데이터의 두 가지의 계조 데이터를 이용하는 것으로 하고, 2계조 데이터, 3계조 데이터에 대하여 제 1 종래예의 계조 공유 데이터 처리 시스템과 같은 계조에 대한 계조값을 할당하는 것으로 한다.Fig. 8 is a block diagram showing the configuration of the gradation shared data processing system of the second conventional example using this method. The grayscale shared data processing system of this second conventional example includes two grayscale data, two grayscale data and three grayscale data, including a grayscale shared data generating device and a grayscale shared data restoring device, similarly to the grayscale shared data processing system of the first conventional example. It is assumed that the gradation value for the gradation which is the same as the gradation shared data processing system of the first conventional example is assigned to the two gradation data and the three gradation data.

제 2 종래예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치는 윤곽정보 유지부(301), 윤곽정보 확대축소부(302), 고차계조 데이터 생성부(303)를 구비하고 있다. 또한 계조 공유 데이터 복원장치는 고차계조 데이터 인출부(304), 계조수 선택부(305), 저차계조 데이터 복원부(306), 고차계조 데이터 복원부(307)를 구비하고 있다.The gradation sharing data generating apparatus of the gradation sharing data processing system of the second conventional example includes an outline information holding unit 301, an outline information expanding and contracting unit 302, and a high-order gradation data generating unit 303. The gradation shared data restoring apparatus includes a higher gradation data extracting unit 304, a gradation number selection unit 305, a lower gradation data restoring unit 306, and a higher gradation data restoring unit 307.

이러한 계조 공유 데이터 생성장치로써, 아우트라인 데이터로부터 고차계조 데이터가 생성되기까지의 처리 순서를 (처리 1)∼(처리 3)으로 하여 우선 설명하기로 한다.As such a gradation shared data generating apparatus, the processing procedure from the outline data to the generation of higher gradation data will be described first as (process 1) to (process 3).

(처리 1) 처음으로 윤곽정보 유지부(301)(도 8 참조)는 요구된 아우트라인 데이터의 윤곽정보를 아우트라인 데이터를 기억하고 있는 기억부로부터 인출 유지한다(여기에서, 유지되는 윤곽정보는 도 2의 (b)에 도시된 것과 마찬가지이다.(Process 1) First, the outline information holding unit 301 (see Fig. 8) extracts and holds the outline information of the requested outline data from the storage unit storing the outline data (here, the held outline information is shown in Fig. 2). Same as shown in (b) of FIG.

(처리 2) 다음으로 윤곽정보 확대축소부(302)는 (처리 1)에 의해 윤곽정보 유지부(301)에 의해 유지되어 있는 윤곽정보를, 요구되는 픽셀수로 확대 축소한다. 여기에서도 제 1 종래예의 계조 공유 데이터처리 시스템과 마찬가지로, 아우트라인 데이터로부터 폭 10픽셀, 높이 10픽셀로 구성되는 계조 공유 데이터가 생성되는 것으로 한다. 윤곽정보 확대축소부(302)에 의해 생성되는 데이터는 도 4의 (b)에 도시된 것과 마찬가지이다.(Process 2) Next, the outline information enlargement and reduction unit 302 enlarges and reduces the outline information held by the outline information holding unit 301 by the process (1) to the required number of pixels. Here, similarly to the tone sharing data processing system of the first conventional example, tone sharing data composed of 10 pixels in width and 10 pixels in height is generated from the outline data. The data generated by the outline information expansion and contraction unit 302 is the same as that shown in FIG.

(처리 3) 계속해서 고차계조 데이터 생성부(303)는 윤곽정보 확대축소부(302)가 생성한 도 4의 (a)에 도시된 데이터로부터 제 1 종래예의 계조 공유 데이터처리 시스템과 마찬가지로 하여 각 픽셀의 계조값을 산출함으로써 3계조 데이터를 생성한다. 이 결과 생성되는 3계조 데이터는 도 6에 도시된 것과 마찬가지이다.(Process 3) Subsequently, the higher gradation data generating unit 303 uses each of the gradation data generation systems of the first conventional example from the data shown in FIG. Three tone data are generated by calculating the tone value of the pixel. The resulting three-gradation data is the same as that shown in FIG.

이상과 같이 (처리 1)∼(처리 3)에서의 처리에 의해 계조 공유 데이터 생성장치에서는 고차계조 데이터(2계조에 비해 3계조는 고차인 것을 나타냄)가 생성된다.As described above, by the processing in (Process 1) to (Process 3), the high level gray scale data (three gray scales indicate higher order than two gray scales) is generated in the gray scale shared data generating apparatus.

다음으로 이것과 같이 하여 계조 공유 데이터 생성장치에서 생성된 고차계조 데이터(계조 공유 데이터)를 계조 공유 데이터 복원장치로써 복원할 때의 처리 순서를 (처리 4), (처리 5), (처리 6-1), (처리 6-2)로서 설명한다.Next, the processing sequence for restoring the high-level grayscale data (gradation shared data) generated by the grayscale shared data generating device by using the grayscale shared data restoration device in this way is shown in (Process 4), (Process 5), (Process 6-). 1) and (Process 6-2).

(처리 4) 고차계조 데이터 추출부(304) (도 8 참조)는 계조 공유 데이터 생성장치에서 생성된 고차계조 데이터(3계조 데이터)를 인출한다.(Process 4) The higher gradation data extracting unit 304 (see Fig. 8) extracts the higher gradation data (three gradation data) generated by the gradation sharing data generating apparatus.

(처리 5) 계조수 선택부(305)는 요구된 계조수가 3계조이면 저차계조 데이터 복원부(306)를, 요구된 계조수가 3계조이면 고차계조 데이터 복원부(307)를 기동한다(요구된 계조수가 2계조인지 3계조인지에 따라 다음에 도시하는 (처리 6-1), (처리 6-2) 중 어느 것이 선택된다).(Process 5) The gradation number selection section 305 activates the lower gradation data restoration section 306 if the requested gradation count is three gradations, and activates the higher gradation data restoration section 307 if the requested gradation count is three gradations. Depending on whether the number of gradations is 2 or 3 gradations, any of (Process 6-1) and (Process 6-2) shown below is selected).

(처리 6-1) 요구된 계조수가 2계조이면 저차계조 데이터 복원부(306)는 고차계조 데이터 인출부(304)가 인출한 3계조 데이터로부터 2계조 데이터를 생성한다.(Process 6-1) If the requested number of gradations is two gradations, the low gradation data restoration section 306 generates two gradation data from the three gradation data extracted by the higher gradation data extraction section 304.

구체적으로는 각 픽셀에 대하여 산출된 고차의 계조값을 인출하고, 어떤 발췌처리를 행함으로써 저차의 계조값으로 변환한다.Specifically, the higher-order gray value calculated for each pixel is taken out and converted to a lower-order gray value by performing some extraction process.

여기에서는 인출한 3계조 데이터의 계조값이 0이면 2계조 데이터의 계조값을 0으로 하고, 인출한 3계조 데이터의 계조값이 1 또는 2이면 2계조 데이터의 계조값을 1로 하는 것으로 한다. 도 9의 (a)는 전체 픽셀에 대하여 상술한 바와 같은 처리를 실시함으로써 「A」에 대한 3계조 데이터로부터 복원되는 3계조 데이터를 도시한 도면이다.Here, when the gray level value of the extracted three-tone data is 0, the gray level value of the two-tone data is set to 0. If the gray level value of the extracted three-tone data is 1 or 2, the gray level value of the two-tone data is set to 1. FIG. 9A is a diagram showing three gradation data reconstructed from three gradation data for " A " by performing the above-described processing on all pixels.

또한 여기에서 인출한 3계조 데이터의 계조값이 0 또는 1이면 2계조 데이터의 계조값을 1로 하고, 인출한 3계조 데이터의 계조값이 2이면 2계조 데이터의 계조값을 1로 하는 것으로 한다. 도 9의 (b)는 전체 픽셀에 대하여 상술한 바와 같은 처리를 실시함으로써 「A」에 대한 3계조 데이터로부터 복원되는 3계조 데이터를 도시한 도면이다.If the gradation value of the 3 gradation data retrieved here is 0 or 1, the gradation value of the 2 gradation data is 1 and the gradation value of the 2 gradation data is 1 if the gradation value of the 3 gradation data is 2 . FIG. 9B is a diagram showing three gradation data reconstructed from three gradation data for " A " by performing the above-described processing on all pixels.

(처리 6-2) 요구된 계조수가 3계조이면 고차계조 데이터 복원부(307)는 고차계조 데이터 인출부(304)가 인출한 3계조 데이터를 그대로 출력한다. 이렇게 하여 생성되는 「A」에 대한 3계조 데이터는 도 6에 도시하는 것과 마찬가지이다.(Process 6-2) If the requested gradation number is three gradations, the higher gradation data retrieval unit 307 outputs the three gradation data extracted by the higher gradation data extracting unit 304 as it is. The three-tone data for "A" generated in this way is the same as that shown in FIG.

필요하게 될 때 지시가 있으면, 이들과 같이 하여 얻어진 2계조 데이터 및 3계조 데이터 중 어느 것에 기초하여 표시부에 문자가 표시된다.When necessary, if indicated, a character is displayed on the display unit based on either of the two-tone data and the three-tone data obtained in this manner.

그런데 이 제 2 종래예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 복원장치에 의하면, 복원되는 2계조 데이터(도 9의 (a), (b) 참조)는 도 5에 도시된 본래 복원될 2계조 데이터와 비교하면 현저히 품질이 열화한 것으로 되어 있다.By the way, according to the gradation shared data restoration apparatus of the gradation shared data processing system of the second conventional example, the two gradation data (refer to (a) and (b) of FIG. 9) to be restored is the two gradation data to be originally restored shown in FIG. Compared with that, the quality is considerably deteriorated.

이상과 같이 제 1 종래예의 계조 공유 데이터처리 시스템에서는 생성되는 계조 공유 데이터에 대하여 2계조 데이터만을 생성하는 경우 또는 3계조 데이터만을 생성하는 경우에 비해 데이터량이 현저히 증가한다는 문제점이 있다. 이에 따라 계조 공유 데이터를 보존하기 위한 기억부의 데이터량이 증가하여 장치 전체의 가격이 상승하게 되고, 또한 이러한 데이터를 통신회선이나 방송을 이용하여 송수신할 때에는 통신 데이터량이 증가하여 처리 성능의 저하를 초래하게 된다.As described above, the grayscale shared data processing system of the first conventional example has a problem in that the data amount is significantly increased as compared with the case of generating only two grayscale data or only three grayscale data with respect to the generated grayscale shared data. As a result, the amount of data in the storage unit for preserving the grayscale shared data increases, thereby increasing the price of the entire apparatus.In addition, when the data is transmitted / received using a communication line or broadcast, the amount of communication data increases, resulting in a decrease in processing performance. do.

한편 제 2 종래예의 계조 공유 데이터 처리 시스템에서는 생성되는 계조 공유 데이터에 대하여 데이터량은 고차계조 데이터와 마찬가지지만, 고차계조 데이터로부터 저차계조 데이터로의 계조수의 변환에 따라 저차계조 데이터의 품질 열화가 생긴다는 문제점이 있다. 계조 데이터로서 취급되는 것으로서는 화상 데이터, 폰트 데이터 등이 있지만, 특히 폰트 데이터와 같이 복잡한 형상을 갖는 계조 데이터를 생성하는 경우에는 상기 변환에 따르는 품질의 열화가 크게 영향을 주게 되어 이 저차계조 데이터에 의해 표현되는 문자의 판독이 불가능하게 되는 일이 있다.On the other hand, in the grayscale shared data processing system of the second conventional example, the amount of data for the grayscale shared data generated is the same as that of the high-level grayscale data, but the quality deterioration of the low-level grayscale data is reduced by the conversion of the number of grayscale data from the high-order grayscale data to the low-order grayscale data. There is a problem that occurs. Examples of the grayscale data include image data, font data, and the like. In particular, in the case of generating grayscale data having a complex shape such as font data, deterioration of the quality due to the above conversion greatly affects the low-level grayscale data. It may become impossible to read the character represented by this.

본 발명은 이러한 문제점을 고려하여 이루어진 것이며, 그 목적은 데이터량을 증가시키지 않고, 또한, 복원되는 데이터의 열화를 생기게 하지 않고 서로 다른 (최대) 계조수로 이루어지는 복수 종류의 계조 데이터를 공유하는 계조 공유 데이터를 생성하는 계조 공유 데이터 생성장치 및 이 계조 공유 데이터로부터 계조 데이터를 복원할 수 있는 계조 공유 데이터 복원장치를 제공하는 것이다. 본 발명의 다른 목적은 보다 품질이 우수한 계조를 이용하여 문자, 도형을 표현하기 위한 계조 데이터 처리장치를 제공하는 것이다.SUMMARY OF THE INVENTION The present invention has been made in view of such a problem, and an object thereof is to provide a gradation for sharing plural kinds of gradation data composed of different (maximum) gradations without increasing the amount of data and without causing deterioration of the restored data. There is provided a gradation shared data generating apparatus for generating shared data and a gradation shared data restoration apparatus capable of restoring gradation data from the gradation shared data. Another object of the present invention is to provide a gradation data processing apparatus for expressing characters and figures by using gradation with higher quality.

도 1은 제 1 종래예의 계조 공유 데이터 처리 시스템의 구성을 도시한 블록도1 is a block diagram showing the configuration of a gradation shared data processing system of a first conventional example;

도 2의 (a), (b)는 문자나 도형 등을 나타내는 아우트라인 데이터에 포함되는 윤곽정보의 일례를 도시한 도면2 (a) and 2 (b) are diagrams showing an example of outline information included in outline data representing characters, figures, and the like.

도 3은 계조 데이터를 생성하기 위해 1픽셀당 16 서브 픽셀로 분할된 10×10 픽셀을 도시한 도면FIG. 3 shows 10 × 10 pixels divided into 16 subpixels per pixel to generate grayscale data

도 4의 (a), (b)는 도 2의 (a), (b)에 도시된 윤곽정보를 축소한 후의 데이터를 도시한 도면4 (a) and 4 (b) show data after reduction of the contour information shown in FIGS. 2 (a) and 2 (b).

도 5는 2계조 데이터 생성부(203)에서 생성된 「A」에 대한 2계조 데이터FIG. 5 shows two tone data of " A " generated by the two tone data generator 203. FIG.

도 6은 3계조 데이터 생성부(204)에서 생성된 「A」에 대한 3계조 데이터FIG. 6 shows three tone data for " A " generated by the three tone data generator 204. FIG.

도 7은 계조 공유 데이터 생성부(205)에 의해 생성되는 계조 공유 데이터를 도시한 도면FIG. 7 is a diagram illustrating gradation sharing data generated by the gradation sharing data generating unit 205.

도 8은 제 2 종래예의 계조 공유 데이터 처리 시스템의 구성을 도시한 블록도8 is a block diagram showing a configuration of a gradation shared data processing system of a second conventional example;

도 9의 (a), (b)는「A」에 대한 3계조 데이터로부터 복원되는 2계조 데이터를 도시한 도면9 (a) and 9 (b) show two tone data restored from three tone data for " A "

도 10은 본 발명의 제 1 실시예의 계조 공유 데이터 처리 시스템의 기능을 설명하기 위한 블록도Fig. 10 is a block diagram for explaining the function of the gradation shared data processing system of the first embodiment of the present invention.

도 11은 본 계조 공유 데이터 처리 시스템에 포함되는 계조 공유 데이터 생성장치, 계조 공유 데이터 복원장치의 하드웨어 구성을 도시한 블록도11 is a block diagram showing a hardware configuration of a gradation shared data generating apparatus and a gradation shared data restoration apparatus included in the gradation shared data processing system;

도 12는 윤곽정보 확대축소부(102) 및 기본 계조값 산출부(103)에서의 처리 순서를 도시한 흐름도12 is a flowchart showing a processing procedure in the outline information expansion and contraction unit 102 and the basic gradation value calculation unit 103.

도 13은 윤곽정보 확대축소부(102)에서의 처리를 끝낸 시점에서의 전개 버퍼(104)의 상태를 도시한 도면FIG. 13 is a diagram showing a state of the expansion buffer 104 at the time when the processing in the outline information expansion and contraction unit 102 is finished.

도 14는 기본 계조값 산출부(103)에서의 처리를 끝낸 시점에서의 전개 버퍼(104)의 상태를 도시한 도면FIG. 14 is a diagram showing a state of the expansion buffer 104 at the time when the processing in the basic gray scale value calculating section 103 ends.

도 15는 계조 공유 데이터 생성부(105)에서의 처리 순서를 도시한 흐름도15 is a flowchart showing a processing sequence in the gradation shared data generating unit 105.

도 16은 계조 공유 데이터 생성부(105)에서 2계조 데이터의 계조값, 3계조 데이터의 계조값으로부터 계조 공유 데이터를 구하기 위해 사용되는 매트릭스표를 도시한 도면FIG. 16 is a diagram showing a matrix table used for obtaining gradation shared data from gradation values of two gradation data and gradation values of three gradation data in the gradation sharing data generating unit 105. FIG.

도 17은 매트릭스표가 이용됨으로써 구해진 알파벳「A 」의 각 픽셀에 대한 계조 공유 데이터의 계조값을 도시한 도면FIG. 17 is a diagram showing gradation values of gradation shared data for each pixel of the alphabet " A " obtained by using a matrix table; FIG.

도 18의 (a), (b)는 계조 공유 데이터의 계조값을 2계조 데이터, 3계조 데이터의 계조값으로 변환할 때의 변환표를 도시한 도면18 (a) and 18 (b) are diagrams showing conversion tables when converting grayscale values of grayscale shared data into grayscale values of two-tone data and three-tone data;

도 19는 계조 공유 데이터로부터 생성되는 2계조 데이터에 의한 알파벳「A」를 도시한 도면Fig. 19 shows the alphabet " A " by two tone data generated from tone shared data.

도 20은 계조 공유 데이터로부터 생성되는 3계조 데이터에 의한 알파벳「A」를 도시한 도면Fig. 20 is a diagram showing the alphabet " A " by three tone data generated from tone shared data.

도 21은 본 계조 공유 데이터 처리 시스템을 이용한 위성방송 시스템의 구성을 도시한 도면21 is a diagram showing the configuration of a satellite broadcasting system using the present gradation data processing system;

도 22는 STB503에 기억되는 계조 공유 데이터의 제 1 구성예를 도시한 도면FIG. 22 is a diagram showing a first configuration example of gradation shared data stored in STB503. FIG.

도 23은 STB503에 기억되는 계조 공유 데이터의 제 2 구성예를 도시한 도면FIG. 23 is a diagram showing a second structural example of gradation shared data stored in STB503. FIG.

도 24는 STB503에 기억되는 계조 공유 데이터의 제 3 구성예를 도시한 도면FIG. 24 is a diagram showing a third structural example of gradation shared data stored in STB503. FIG.

도 25는 본 발명의 제 2 실시예의 계조 공유 데이터 처리 시스템의 구성을 설명하기 위한 블록도Fig. 25 is a block diagram for explaining the configuration of a gradation shared data processing system according to a second embodiment of the present invention.

도 26의 (a), (b), (c)는 본 계조 공유 데이터 생성장치로써, 계조 공유 데이터를 생성하는 대상으로 하는 한자「三」의 윤곽정보, 스트로크 정보를 도시한 도면26 (a), 26 (b) and 26 (c) show the outline information and stroke information of the Chinese character " three "

도 27은 제 1 윤곽정보 확대축소부(2103)에서의 처리(후술하는 바와 같이 제 2 윤곽정보 확대축소부(2105)에서의 처리도 마찬가지)의 순서를 도시한 흐름도FIG. 27 is a flowchart showing the procedure of the processing in the first contour information expansion and contraction unit 2103 (the same as the processing in the second contour information expansion and reduction unit 2105 as described later).

도 28의 (a), (b), (c)는 2계조 데이터를 생성하는 데에 적합하도록 도 26의 (a), (b), (c)에 도시된 윤곽정보, 스트로크 정보를 확대 축소한 후의 데이터를 도시한 도면(A), (b) and (c) of FIG. 28 enlarge and reduce the outline information and stroke information shown in (a), (b) and (c) of FIG. 26 to be suitable for generating two tone data. Figure showing data after

도 29는 서브 메쉬 상에 전개한 도 28의 (b)의 윤곽정보를 도시한 도면FIG. 29 is a view showing the contour information of FIG. 28B deployed on a submesh; FIG.

도 30은 제 1 계조값 산출부(2104)로써, 도 29의 확대 축소된 「三」의 윤곽정보로부터 구해진 각 픽셀에 대한 2계조 데이터의 계조값을 도시한 도면FIG. 30 is a first gradation value calculator 2104 showing gradation values of two gradation data for each pixel obtained from the enlarged and reduced contour information of "three" in FIG.

도 31의 (a), (b), (c)는 3계조 데이터를 생성하는 데 적합하도록 도 26의 (a), (b), (c)에 도시된 윤곽정보, 스트로크 정보를 확대 축소한 후의 데이터를 도시한 도면(A), (b) and (c) of FIG. 31 are enlarged and reduced the outline information and stroke information shown in (a), (b) and (c) of FIG. 26 to be suitable for generating three tone data. Figure showing the data after

도 32는 서브 메쉬 상에 전개한 도 31의 (b)의 윤곽정보를 도시한 도면FIG. 32 is a view showing contour information of FIG. 31B deployed on a submesh; FIG.

도 33은 제 2 계조값 산출부(21O6)로써, 도 32의 확대 축소된 「三」의 윤곽정보로부터 구해진 각 픽셀에 대한 3계조 데이터의 계조값을 도시한 도면FIG. 33 is a second gradation value calculating unit 2206 which shows gradation values of three gradation data for each pixel obtained from the enlarged and reduced contour information of " three "

도 34는 계조 공유 데이터 생성부(2107)에서 생성된,「三」에 대한 계조 공유 데이터의 계조값을 도시한 도면Fig. 34 is a view showing the gradation value of the gradation sharing data for " three " generated by the gradation sharing data generation unit 2107. Figs.

도 35는 계조 공유 데이터로부터 본 계조 공유 데이터 처리 시스템의 계조 공유 데이터 복원장치로써 복원되는「3」에 대한 2계조 데이터를 도시한 도면Fig. 35 is a diagram showing two tone data for " 3 " restored by the tone sharing data restoration apparatus of the tone sharing data processing system viewed from the tone sharing data.

도 36은 본 변형예의 계조 공유 데이터 생성장치의 스트로크 조정부를 이용한 2계조 데이터의 각 수평 스트로크에 대한 처리 순서를 도시한 흐름도Fig. 36 is a flowchart showing the processing procedure for each horizontal stroke of the two-tone data using the stroke adjusting unit of the tone-sharing data generating device of this modification.

도 37의 (a), (b)는 Y좌표값(L2, L3)이 동일한 픽셀에 포함되는 것으로 되는 경우에 상정되는 4종류의 Y좌표값(L2, L3)의 위치와, Y좌표값(L2), Y좌표값(L3)의 위치에 따른, 대상 픽셀에 대한 2계조 데이터의 계조값, 3계조 데이터 계조값, 이들로부터 생성되는 계조 공유 데이터의 계조값을 도시한 도면37A and 37B show positions of four kinds of Y coordinate values L2 and L3 and Y coordinate values (assuming that Y coordinate values L2 and L3 are included in the same pixel). L2), a diagram showing the gradation value of the gradation data of the two gradation data, the gradation value of the three gradation data, and the gradation value of the gradation shared data generated therefrom according to the position of the Y coordinate value L3.

도 38의 (a), (b)는 Y좌표값(L2)을 포함하는 것으로 되는 픽셀이 Y좌표값(L3)을 포함하는 것으로 되는 픽셀의 하방에 접하는 경우의 Y좌표값(L2)에 대한 Y좌표값(L3)의 4종류의 위치와, Y좌표값(L2), Y좌표값(L3)의 위치에 따른, 대상 픽셀에 대한 2계조 데이터의 계조값, 3계조 데이터의 계조값, 이들로부터 생성되는 계조 공유 데이터의 계조값을 도시한 도면38A and 38B illustrate a Y coordinate value L2 when a pixel including the Y coordinate value L2 is in contact with a lower side of the pixel including the Y coordinate value L3. The gradation value of the two gradation data for the target pixel, the gradation value of the three gradation data, according to the four kinds of positions of the Y coordinate value L3, the positions of the Y coordinate value L2 and the Y coordinate value L3, A diagram showing gradation values of gradation shared data generated from

도 39의 (a), (b)는 Y좌표값(L2)을 포함하는 것으로 되는 픽셀이 Y좌표값(L3)을 포함하는 것으로 되는 픽셀의 상방에 접하는 경우의 Y좌표값(L2)에 대한 Y좌표값(L3+W3)의 4종류의 위치와, Y좌표값(L2), Y좌표값(L3)의 위치에 따른, 대상 픽셀에 대한 2계조 데이터의 계조값, 3계조 데이터의 계조값, 이들로부터 생성되는 계조 공유 데이터의 계조값을 도시한 도면39 (a) and 39 (b) show the Y coordinate value L2 when the pixel including the Y coordinate value L2 is in contact with the upper side of the pixel including the Y coordinate value L3. The gray scale value of the two-gradation data and the three-gradation data corresponding to the four kinds of positions of the Y coordinate value (L3 + W3), the positions of the Y coordinate value (L2) and the Y coordinate value (L3) Diagram showing gradation values of gradation shared data generated from them

도 40은 본 발명의 제 3 실시예의 계조 공유 데이터 처리 시스템의 구성을 설명하기 위한 블록도40 is a block diagram for explaining a configuration of a gradation shared data processing system according to a third embodiment of the present invention.

도 41은 컬러 룩 업 테이블의 일례를 도시한 도면41 is a diagram showing an example of a color lookup table;

상기의 목적을 달성하기 위해 본 발명에 관한 계조 공유 데이터 생성장치는문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성장치에 있어서, 상기 윤곽정보로부터 p종류의 최대 계조수 qα(α=1, 2, ..., p)인 계조 데이터를 생성하는 p(p는 2 이상의 정수)개의 계조 데이터 생성수단과, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2·‥ qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족시키는 정수이며, 상기 생성된 p종류의 계조 데이터로부터 최대 계조수 n인 계조 공유 데이터를 생성하는 계조 공유 데이터 생성수단을 포함하며, n은 qpn≤ 2m을 만족하는 정수인 것으로 할 수 있다.In order to achieve the above object, the apparatus for generating gradation sharing data according to the present invention comprises gradation data for representing the symbol corresponding to a predetermined number of pixels representing the gradation from contour information representing the outline of a symbol including a character or a figure. A gradation sharing data generating apparatus for sharing plural kinds and generating gradation sharing data, comprising: generating gradation data of p type maximum gradation number q α (α = 1, 2, ..., p) from the outline information p (p is an integer of 2 or more) gradation data generating means, wherein m is an integer of 2 or more, and q α is 2 ≤ q 1 q 2 ... q p , 2 m-1 q p 2 m q 1 + q 2 +. . . an integer that satisfies q p , and includes gradation shared data generating means for generating gradation shared data having a maximum number of gradations n from the p-type gradation data, wherein n is an integer that satisfies q p n ≦ 2 m It can be done.

본 계조 공유 데이터 생성장치에 의하면 윤곽정보로부터 상기의 조건을 만족하는 p종류의 최대 계조수 qα의 계조 데이터가 생성되고, 이들의 p종류의 계조 데이터로부터 상기 조건을 만족하는 최대 계조수 n의 계조 공유 데이터가 생성된다.According to the gradation shared data generating device, gradation data of p type maximum gradation number q α satisfying the above condition is generated from the contour information, and from plural gradation data of these p type gradation data of the maximum gradation number n Gray scale shared data is generated.

이로써 최대 계조수 n의 계조 공유 데이터는 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되고, 또 p종류의 최대 계조수 qα의 계조 데이터로부터 생성되므로 계조 데이터와 비교하여 데이터량을 증가시키지 않고, 또 복원되는 데이터의 열화를 생기게 하지 않고 서로 다른 최대 계조수로 구성되는 복수종의 계조 데이터를 공유하는 계조 공유 데이터를 생성할 수 있다.As a result, the grayscale shared data of the maximum number of grayscales n is represented by the same number of bits as the grayscale data of the largest grayscale number q p , and is generated from grayscale data of the p type of maximum grayscale number q α , thereby increasing the data amount compared with the grayscale data. It is possible to generate gradation sharing data sharing a plurality of gradation data constituted of different maximum gradation numbers without causing deterioration of the data to be restored and without causing deterioration.

상기 계조 공유 데이터 생성장치는 상기 윤곽정보로부터 상기 화소의 각각에 차지하는 상기 윤곽의 내측 부분의 면적의 비율을 나타내는 기본 계조 데이터를 생성하는 기본 계조 데이터 생성수단을 포함하고, 상기 p개의 계조 데이터 생성수단의 각각은 상기 기본 계조 데이터로부터 상기 최대 계조수 qα에 따른 계조 데이터를 생성하는 것으로 할 수 있다.The gradation data generating means includes basic gradation data generating means for generating basic gradation data representing a ratio of an area of an inner part of the contour to each of the pixels from the contour information; Each of may generate grayscale data corresponding to the maximum grayscale number q α from the basic grayscale data.

본 계조 공유 데이터 생성장치에 의하면 윤곽정보로부터 화소의 각각에 차지하는 윤곽의 내측 부분의 면적의 비율을 나타내는 기본 계조 데이터가 생성되고, 이 기본 계조 데이터로부터 최대 계조수 qα에 따른 계조 데이터가 생성되고, p종류의 계조 데이터로부터 최대 계조수n의 계조 공유 데이터가 생성된다.According to the grayscale shared data generating device, basic grayscale data indicating a ratio of the area of the inner portion of the outline occupied in each of the pixels from the outline information is generated, and grayscale data corresponding to the maximum gray number q α is generated from the basic grayscale data. , the grayscale shared data of the maximum number of grayscales n is generated from p kinds of grayscale data.

이로써 최대 계조수 n의 계조 공유 데이터는 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되고, 또 p종류의 최대 계조수 qα의 계조 데이터로부터 생성되므로 계조 데이터와 비교하여 데이터량을 증가시키지 않고, 또 복원되는 데이터의 열화를 생기게 하지 않고, 서로 다른 최대 계조수로 이루어지는 복수종의 계조 데이터를 공유하는 계조 공유 데이터를 생성할 수 있다.As a result, the grayscale shared data of the maximum number of grayscales n is represented by the same number of bits as the grayscale data of the largest grayscale number q p , and is generated from grayscale data of the p type of maximum grayscale number q α , thereby increasing the data amount compared with the grayscale data. It is possible to generate gradation sharing data sharing plural kinds of gradation data composed of different maximum gradation numbers without causing deterioration of the data to be restored and without deterioration.

또 상기 계조 공유 데이터 생성장치는 임계치를 설정하는 설정수단을 포함하며, 상기 p개의 계조 데이터 생성수단의 각각은 상기 기본 계조 데이터로부터 상기 설정되는 임계치를 이용하여 상기 최대 계조수 qα에 따른 계조 데이터를 생성하는 것으로 할 수 있다.The gradation sharing data generating apparatus includes setting means for setting a threshold value, and each of the p gradation data generating means uses gradation data according to the maximum gradation number q α using the threshold value set from the basic gradation data. Can be generated.

본 계조 공유 데이터 생성장치에 의하면 윤곽정보로부터 화소의 각각에 차지하는 윤곽의 내측 부분의 비율을 나타내는 기본 계조 데이터가 생성되고, 이 기본 계조 데이터로부터 설정되는 임계치를 이용하여 최대 계조수 qα에 따른 계조 데이터가 생성되고, p종류의 계조 데이터로부터 최대 계조수 n의 계조 공유 데이터가 생성된다.According to the gradation shared data generating apparatus, basic gradation data indicating a ratio of the inner portion of the contour occupying each pixel is generated from the contour information, and gradation according to the maximum gradation number q α is generated by using a threshold set from the basic gradation data. Data is generated, and grayscale shared data of the maximum number of grayscales n is generated from p-type grayscale data.

이로써 최대 계조수 n의 계조 공유 데이터는 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되고, 또 p종류의 최대 계조수 qα의 계조 데이터로부터 생성되므로 계조 데이터와 비교하여 데이터량을 증가시키지 않고, 또 복원되는 데이터의 열화를 생기게 하지 않으며, 서로 다른 최대 계조수로 이루어지는 복수종류의 계조 데이터를 공유하는 계조 공유 데이터를 생성할 수 있다. 또 이들 임계치를 사용자 혹은 프로그램의 요구에 따라 설정함으로써 표시 특성 등의 정보를 기초로 표시 능력을 최대한으로 끌어 낼 수 있는 계조 공유 데이터를 생성할 수 있다.As a result, the grayscale shared data of the maximum number of grayscales n is represented by the same number of bits as the grayscale data of the largest grayscale number q p , and is generated from grayscale data of the p type of maximum grayscale number q α , thereby increasing the data amount compared with the grayscale data. It is possible to generate gradation sharing data that share a plurality of gradation data types having different maximum gradation numbers without causing deterioration of the data to be restored and without restoration. In addition, by setting these thresholds according to a user's or program's request, it is possible to generate grayscale shared data that can maximize display capability based on information such as display characteristics.

또 상기 계조 공유 데이터 생성장치에 있어서, 상기 계조 공유 데이터 생성수단은 상기 최대 계조수 qα인 계조 데이터의 각각이 취득하는 계조에 대한 (q1×q2×···×qp) 가지의 조합에 대하여, 상기 최대 계조수 n인 계조 데이터가 취득하는 계조를 할당함으로써 상기 최대 계조수 n인 계조 데이터를 생성하는 것으로 할 수 있다.In the gradation sharing data generating apparatus, the gradation sharing data generating means has a branch (q 1 × q 2 ×... Q p ) for the gradation obtained by each of the gradation data having the maximum gradation number q α . For the combination, the gradation data with the maximum gradation number n can be generated by allocating the gradation obtained by the gradation data with the maximum gradation number n.

본 계조 공유 데이터 생성장치에 의하면 윤곽정보로부터 p종류의 최대 계조수 qα의 계조 데이터가 생성되고, 최대 계조수qα의 계조 데이터의 각각이 취득하는 계조에 대한 (q1×q2×···×qp)가지의 조합에 대하여 상기 최대 계조수n의 계조 데이터의 취득하는 계조를 할당함으로써 이들 p종류의 계조 데이터로부터 n종류의 계조 공유 데이터가 생성된다.According to the gradation shared data generating apparatus, gradation data of the p type maximum gradation number q α is generated from the contour information, and (q 1 × q 2 × ...) for gradation obtained by each of the gradation data of the maximum gradation number q α is obtained. By assigning the gradation of obtaining the gradation data of the maximum gradation number n to the combination of x q p ), n kinds of gradation shared data are generated from these p kinds of gradation data.

이로써 최대 계조수 n의 계조 공유 최대 계조수qp의 계조 데이터와 같은 비트수로 표현되고, 또 p종류의 최대 계조수 qα의 계조 데이터로부터 생성되므로, 계조 데이터와 비교하여 데이터량을 증가시키지 않고, 또 복원되는 데이터의 열화를 생기게 하지 않으며, 서로 다른 최대 계조수로 이루어지는 복수종의 계조 데이터를 공유하는 계조 공유 데이터를 생성할 수 있다.This is expressed by the same number of bits as the gradation data of the gradation share maximum gradation number q p of the maximum gradation number n, and is generated from the gradation data of the p kinds of gradation numbers q α , so that the data amount is not increased compared with the gradation data. It is possible to generate gradation sharing data sharing plural kinds of gradation data composed of different maximum gradation numbers without causing deterioration of the restored data.

또 본 발명에 관한 계조 공유 데이터 생성장치는 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보와, 상기 기호를 구성하는 스트로크의 위치를 나타내는 스트로크 정보로부터, 계조를 나타내는 화소의 소정 개수 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성장치에 있어서, 상기 윤곽정보와 상기 스트로크 정보로부터 힌트처리를 행하면서 p종류의 최대 계조수 qα(α = 1, 2, ..., p)인 계조 데이터를 생성하는 p(p는 2 이상의 정수)개의 계조 데이터 생성수단과, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2. . . qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이며, 상기 생성된 p종류의 계조 데이터로부터 최대 계조수 n인 계조 공유 데이터를 생성하는 계조 공유 데이터 생성수단을 포함하며, n은 qpn ≤ 2m을 만족하는 정수인 것으로 할 수 있다.Further, the apparatus for generating gradation sharing data according to the present invention corresponds to a predetermined number of pixels representing gradation from contour information indicating the outline of a symbol including a character or a figure and stroke information indicating the position of the stroke constituting the symbol. In a gradation sharing data generating apparatus for sharing plural kinds of gradation data for representing a symbol and generating gradation sharing data, a p-type maximum gradation number q α (α) while performing hint processing from the outline information and the stroke information. P (p is an integer of 2 or more) gradation data generating means for generating gradation data of = 1, 2, ..., p), wherein m is an integer of 2 or more, and q α is 2 ≤ q 1 q 2 . . . q p , 2 m-1 q p 2 m q 1 + q 2 +. . . an integer that satisfies + p , and includes gradation shared data generating means for generating gradation shared data having a maximum number of gradations n from the p-type gradation data, wherein n is an integer that satisfies q p n ≤ 2 m It can be done.

본 계조 공유 데이터 생성장치에 의하면, 윤곽정보와 스트로크 정보로부터 힌트처리가 행해지면서 p종류의 최대 계조수 qα의 계조 데이터가 생성되고, 이들의 p종류의 최대 계조수 qα의 계조 데이터로부터 최대 계조수 n의 계조 공유 데이터가 생성된다.According to the gray level shared data generating apparatus, the contour information and while a hint processing performed from the stroke information, grayscale data of the p-type of the maximum gradation number q α is produced, the maximum from the grayscale data of those of the p-type, the maximum number of gray scale q α Grayscale shared data of the grayscale number n is generated.

이에 따라 최대 계조수 n의 계조 공유 데이터는 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되고, 또 p종류의 최대 계조수 qα의 계조 데이터로부터 생성되므로 계조 데이터와 비교하여 데이터량을 증가시키는 일 없이, 또 복원되는 데이터의 열화를 생기게 하지 않고 서로 다른 최대 계조수로 이루어지는 복수종의 계조 데이터를 공유하는 계조 공유 데이터를 생성할 수 있다. 또 힌트처리가 행해지면서 계조 데이터가 생성되고, 계조 공유 데이터가 생성되기 때문에 이 계조 공유 데이터로부터는 품질이 좋은 계조 데이터를 복원할 수 있다.Accordingly, the grayscale shared data of the maximum grayscale number n is represented by the same number of bits as the grayscale data of the maximum grayscale number q p , and is generated from the grayscale data of the p type maximum grayscale number q α , so that the data amount is compared with the grayscale data. It is possible to generate gradation shared data sharing plural kinds of gradation data composed of different maximum gradations without causing deterioration and deterioration of the restored data. In addition, since the gray scale data is generated while the hint process is performed, and the gray scale shared data is generated, high quality gray scale data can be restored from the gray scale shared data.

상기 계조 공유 데이터 생성장치는 생성되는 p종류 중의 1종류의 계조 데이터에 대한 스트로크 정보를 기준으로 하여 다른 (p-1)종류의 계조 데이터를 생성하기 위한 스트로크 정보를 조정하는 조정수단을 포함하는 것으로 할 수 있다.The apparatus for generating gradation shared data includes adjusting means for adjusting stroke information for generating gradation data of another type (p-1) on the basis of stroke information on one type of gradation data among the p kinds of generated p types. can do.

본 계조 공유 데이터 생성장치에 의하면, 윤곽정보와 스트로크 정보로부터 힌트처리가 행해지면서, 또한 생성되는 p종류 중의 1종류의 계조 데이터에 대한 스트로크 정보가 기준으로 되어, 다른 (p-1)종의 계조 데이터를 생성하기 위한 스트로크 정보가 조정되면서, p종류의 최대 계조수 qα의 계조 데이터가 생성되고, 이들의 p종류의 최대 계조수 qα의 계조 데이터로부터 최대 계조수 n의 계조 공유 데이터가 생성된다.According to the gradation shared data generating device, a hint process is performed from the contour information and the stroke information, and the stroke information for one type of gradation data among the p kinds to be generated is used as a reference, and the gradation of other (p-1) types is used as a reference. while adjusting the stroke information for generating the data, the gray scale data of the p-type, the maximum number of gray scale q α is generated, gradation shared data is generated for the maximum gray level n from the grayscale data of those of the p-type, the maximum number of gray scale q α do.

이에 따라, 최대 계조수 n의 계조 공유 데이터는 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되고, 또한 p종류의 최대 계조수 qα의 계조 데이터로부터 생성되므로 계조 데이터와 비교하여 데이터량을 증가시키는 일 없이, 또한 복원되는 데이터의 열화를 생기게 하지 않고, 서로 다른 최대 계조수로 이루어지는 복수종의 계조 데이터를 공유하는 계조 공유 데이터를 생성할 수 있다. 또한 힌트처리가 행해지면서, 또 필요에 따라 힌트처리되는 스트로크 정보가 수정되면서 계조 데이터가 생성되고, 계조 공유 데이터가 생성되기 때문에 이 계조 공유 데이터로부터 보다 품질이 좋은 계조 데이터를 복원할 수 있다.Accordingly, the grayscale shared data of the maximum number of grayscales n is represented by the same number of bits as the grayscale data of the largest grayscale number q p , and is also generated from the grayscale data of the p type maximum grayscale number q α , so that the data amount is compared with the grayscale data. It is possible to generate gradation sharing data sharing plural kinds of gradation data made up of different maximum gradations without causing degradation of the data to be restored and without increasing the number of times. In addition, gray scale data is generated while the hint processing is performed, and the stroke information subjected to the hint processing is corrected as necessary, and gray scale shared data is generated, so that gray scale data of higher quality can be restored from the gray scale shared data.

본 발명에 관한 계조 공유 데이터 복호장치는 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하는 계조 공유 데이터 복원장치에 있어서, 상기 계조 공유 데이터는 p종류의 최대 계조수 qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터로부터, 최대 계조수 n을 갖도록 생성된 것이고, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이고, n은 qpn ≤ 2m을 만족하는 정수이며, 최대 계조수를 선택하는 최대 계조수 선택수단과, 상기 생성된 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 계조 공유 데이터 복원수단을 포함하는 것으로 할 수 있다.The gradation shared data decoding apparatus according to the present invention restores gradation data from gradation data sharing gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels indicating gradation. In the restoring apparatus, the tone sharing data is such that the maximum tone number n is obtained from the tone data of p type maximum tone number q α (p is an integer of 2 or more and α = 1, 2, ..., p). M is an integer of 2 or more, q α is 2 ≦ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . + is an integer that satisfies p , and n is an integer that satisfies q p n ≤ 2 m , and the maximum number of gray level selection means for selecting the maximum number of gray levels, and the gray level which is the selected maximum gray number from the generated gray level shared data. And grayscale data restoration means for restoring data.

본 계조 공유 데이터 복원장치에 의하면, 최대 계조수가 선택되고, 계조 공유 데이터로부터 선택된 최대 계조수인 계조 데이터가 복원된다.According to the grayscale shared data restoring apparatus, the maximum grayscale number is selected, and grayscale data which is the maximum grayscale number selected from the grayscale shared data is restored.

이에 따라, 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 n의 계조 공유 데이터로부터 데이터의 열화를 생기게 하지 않고, 계조 데이터가 복원된다.As a result, the grayscale data is restored without causing degradation of the data from the grayscale shared data of the maximum grayscale number n expressed by the same number of bits as the grayscale data of the maximum grayscale number q p .

상기 계조 공유 데이터 복원장치에 있어서, 상기 계조 공유 데이터 복원수단은 상기 선택된 최대 계조수의 계조 데이터가 취득하는 계조에 대하여, 상기 계조 공유 데이터가 취득하는 계조를 할당함으로써 상기 계조 데이터를 복원하는 것으로 할 수 있다.In the gradation shared data restoring apparatus, the gradation shared data restoring means restores the gradation data by allocating a gradation acquired by the gradation shared data to a gradation obtained by the gradation data of the selected maximum gradation number. Can be.

본 계조 공유 데이터 복원장치에 의하면, 최대 계조수가 선택되어, 선택된 최대 계조수의 계조 데이터가 취득하는 계조에 대하여, 계조 공유 데이터가 취득하는 계조를 할당함으로써 계조 공유 데이터로부터, 선택된 최대 계조수인 계조 데이터가 복원된다.According to the gradation shared data restoring apparatus, the gradation which is the maximum gradation number selected from the gradation shared data by assigning the gradation acquired by the gradation shared data to the gradation obtained by the gradation data of the maximal number selected gradation data is selected. The data is restored.

이로써 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 n의 계조 공유 데이터로부터, 데이터의 열화를 생기게 하지 않고 계조 데이터가 복원된다.In this way, the grayscale data is restored from the grayscale shared data of the maximum grayscale number n represented by the same number of bits as the grayscale data of the maximum grayscale number q p without causing any deterioration of the data.

또한 상기 계조 공유 데이터 복원장치는 상기 p종류의 계조 데이터의 각각이 취득하는 계조와 상기 계조 공유 데이터가 취득하는 계조를 대응시키는 p종류의 표를 기억하는 기억수단을 포함하며, 상기 계조 공유 데이터 복원수단은 상기 기억된 p종류의 표 중 상기 선택된 최대 계조수의 계조 데이터에 대응하는 표를 이용하여 상기 할당을 행하는 것으로 할 수 있다.The gradation shared data restoring apparatus further includes storage means for storing p kinds of tables which correspond to gradations acquired by each of the p kinds of gradation data and gradations acquired by the gradation shared data, and recovering the gradation shared data. The means may be configured to perform the assignment using a table corresponding to the gradation data of the selected maximum gradation number among the stored p kinds of tables.

본 계조 공유 데이터 복원장치에 의하면, 최대 계조수가 선택되어, p종류의 계조 데이터의 각각의 취득하는 계조와 계조 공유 데이터의 취득하는 계조를 대응짓는 p종류의 표 중의 선택된 최대 계조수의 계조 데이터에 대응하는 표를 이용하여, 선택 된 최대 계조수의 계조 데이터가 취득하는 계조에 대하여 계조 공유 데이터가 취득하는 계조를 할당함으로써, 계조 공유 데이터로부터 선택된 최대 계조수인 계조 데이터가 복원된다.According to the gradation shared data restoring apparatus, the maximum gradation number is selected, and the gradation data of the selected maximal gradation number in the p-type table that associates the gradation to be obtained for each of the p kinds of gradation data with the gradation to be acquired for the gradation shared data is selected. By using the corresponding table, gradation data which is the maximum gradation number selected from the gradation sharing data is restored by allocating the gradation obtained by the gradation sharing data to the gradation obtained by the gradation data of the selected maximum gradation number.

이에 따라 간소한 구성을 이용하여 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 n의 계조 공유 데이터로부터 데이터의 열화를 생기게 하지 않고 계조 데이터가 복원된다.In this way, the gray scale data is restored without causing deterioration of data from the gray scale shared data of the maximum gray number n expressed by the same number of bits as the gray data of the maximum gray number q p using a simple configuration.

또 상기 계조 공유 데이터 복원장치는, 상기 선택된 최대 계조수의 계조 데이터가 상기 계조 공유 데이터에 포함되어있는지의 여부를 판정하는 판정수단과, 상기 선택된 최대 계조수의 계조 데이터가 상기 계조 공유 데이터에 포함되어 있지 않다고 판정된 때에 상기 선택된 최대 계조수인 계조 데이터를 복원할 수 없는 것을 외부에 통지하는 외부 통지수단을 포함하는 것으로 할 수 있다.The gradation shared data restoration apparatus further includes determining means for determining whether gradation data of the selected maximum gradation number is included in the gradation sharing data, and gradation data of the selected maximum gradation number included in the gradation sharing data. And when it is determined that it is not, the external notification means for notifying the outside that the tone data, which is the selected maximum tone number, cannot be restored.

본 계조 공유 데이터 복원장치에 의하면 최대 계조수가 선택되고, 계조 공유 데이터로부터 선택된 최대 계조수인 계조 데이터가 복원되고, 선택된 최대 계조수의 계조 데이터가 계조 공유 데이터에 포함되어 있지 않을 때에는 이것이 외부에 통지된다.According to the grayscale shared data restoring apparatus, when the maximum number of grayscales is selected, grayscale data which is the maximum grayscale number selected from grayscale shared data is restored, and grayscale data of the selected maximum grayscale number is not included in the grayscale shared data, this is notified to the outside. do.

이에 따라, 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 n의 계조 공유 데이터로부터, 데이터의 열화를 생기게 하지 않고 계조 데이터가 복원된다. 또한 선택된 최대 계조수의 계조 데이터가 계조 공유 데이터에 포함되어 있지 않을 때에 이것이 외부에 통지되기 때문에 이에 따라 처리를 안정되게 행하게 할 수 있다.As a result, the grayscale data is restored from the grayscale shared data of the maximum grayscale number n expressed by the same number of bits as the grayscale data of the maximum grayscale number q p without causing any deterioration of the data. In addition, when grayscale data of the selected maximum grayscale number is not included in the grayscale shared data, it is notified to the outside, thereby making it possible to stably perform the processing.

또 상기 계조 공유 데이터 복원장치는 상기 선택된 최대 계조수의 계조 데이터가 상기 계조 공유 데이터에 포함되어 있는지의 여부를 판정하는 판정수단과, 상기 선택된 최대 계조수의 계조 데이터가 상기 계조 공유 데이터에 포함되어 있지 않다고 판정된 때에 상기 선택된 최대 계조수와의 차가 작은 최대 계조수를 선택하는 제 2 최대 계조수 선택수단을 포함하는 것으로 할 수 있다.The gradation sharing data restoring apparatus includes determining means for determining whether gradation data of the selected maximum gradation number is included in the gradation sharing data, and gradation data of the selected maximum gradation number is included in the gradation sharing data. And when it is determined that there is no, the second maximum tone number selection means for selecting the maximum number of gray levels having a small difference from the selected maximum number of gray levels.

본 계조 공유 데이터 복원장치에 의하면, 최대 계조수가 선택되고, 계조 공유 데이터로부터 선택된 최대 계조수의 계조 데이터가 복원되고, 선택된 최대 계조수의 계조 데이터가 계조 공유 데이터에 포함되어 있지 않을 때에는, 선택된 최대 계조수와의 차가 작은 최대 계조수가 다시 선택되어 계조 공유 데이터로부터 다시 선택된 최대 계조수의 계조 데이터가 복원된다.According to the gradation shared data restoring apparatus, the maximum gradation number is selected, the gradation data of the maximal gradation number selected from the gradation sharing data is restored, and when the gradation data of the selected maximum gradation number is not included in the gradation sharing data, The maximum number of grayscales with a small difference from the number of grayscales is again selected, and the grayscale data of the maximum selected grayscale number is restored from the grayscale shared data.

이에 따라, 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 n의 계조 공유 데이터로부터, 데이터의 열화를 생기게 하지 않고 계조 데이터가 복원된다. 또한 선택된 최대 계조수의 계조 데이터가 계조 공유 데이터에 포함되어 있지 않을 때에 선택된 최대 계조수와의 차가 작은 최대 계조수가 다시 선택되어 계조 데이터가 복원되기 때문에 실시간으로 이들의 계조 데이터가 이용되고 기호가 표시되는 경우 등에, 도중에서 끊기는 일 없이 원활하게 표시를 행할 수 있고, 안정된 처리를 행할 수 있다.As a result, the grayscale data is restored from the grayscale shared data of the maximum grayscale number n expressed by the same number of bits as the grayscale data of the maximum grayscale number q p without causing any deterioration of the data. Also, when grayscale data of the selected maximum grayscale number is not included in the grayscale sharing data, the maximum grayscale number having a small difference from the selected maximum grayscale number is selected again to restore the grayscale data so that the grayscale data is used in real time and the symbol is displayed. In such a case, the display can be performed smoothly without interruption, and stable processing can be performed.

또한 상기 계조 공유 데이터 복원장치는 상기 복원된 계조 데이터가 취득하는 계조에 대하여 미리 지정된 컬러 룩 업 테이블 중의 색을 할당하는 할당수단을 포함하는 것으로 할 수 있다.The gradation shared data restoring apparatus may further include assigning means for allocating a color in a predetermined color lookup table to the gradations acquired by the restored gradation data.

본 계조 공유 데이터 복원장치에 의하면, 최대 계조수가 선택되고, 계조 공유 데이터로부터 선택된 최대 계조수인 계조 데이터가 복원되어, 복원된 계조 데이터가 취득하는 계조에 대해서는 미리 지정된 컬러 룩 업 테이블 중의 색이 할당된다.According to the gradation shared data restoring apparatus, the maximum gradation number is selected, gradation data which is the maximum gradation number selected from the gradation sharing data is restored, and the gradation obtained by the restored gradation data is assigned a color in a predetermined color lookup table. do.

이에 따라, 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 n의 계조 공유 데이터로부터, 데이터의 열화를 생기게 하지 않고, 계조 데이터가 복원된다. 또한 복원된 계조 데이터가 취득하는 계조에 대하여, 미리 지정된 컬러 룩 업 테이블 중의 색이 할당되기 때문에 품질이 좋은 계조를 얻을 수 있다.As a result, the grayscale data is recovered from the grayscale shared data of the maximum grayscale number n expressed by the same number of bits as the grayscale data of the maximum grayscale number q p without causing degradation of the data. In addition, since the color in the predetermined color lookup table is assigned to the gray level obtained by the restored gray level data, a high quality gray level can be obtained.

또한 상기 계조 공유 데이터 복원장치는 미리 지정된 컬러 룩 업 테이블 중 전경색(前景色)을 특정하는 데이터와 배경색을 특정하는 데이터로부터 상기 복원된 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색의 각각을 특정하는 데이터를 산출하는 산출수단과, 상기 1계조 이상의 중간색의 각각에 대하여 상기 컬러 룩 업 테이블 중 상기 산출된 데이터로부터 소정의 범위에 포함되는 색을 할당하는 할당수단을 포함하는 것으로 할 수 있다.In addition, the gradation shared data restoration apparatus is configured to perform the restoration of the gradation data of three or more gradations (except foreground colors and background colors) from the data specifying the foreground color and the background color among the predetermined color lookup tables. Calculating means for calculating data specifying each of the intermediate colors of gradation or higher, and assigning means of allocating a color included in a predetermined range from the calculated data in the color lookup table for each of the intermediate colors of the gradation or higher; I can do it.

본 계조 공유 데이터 복원장치에 의하면, 최대 계조수가 선택되고, 계조 공유 데이터로부터 선택된 최대 계조수인 계조 데이터가 복원되고, 미리 지정된 컬러 룩 업 테이블 중의 전경색을 특정하는 데이터와 배경색을 특정하는 데이터로부터 복원된 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색의 각각을 특정하는 데이터가 산출되며, 1계조 이상의 중간색의 각각에 대하여 컬러 룩 업 테이블 중의 상기 산출된 데이터로부터 소정의 범위에 포함되는 색이 할당된다.According to the gradation shared data restoring apparatus, the maximum gradation number is selected, gradation data which is the maximum gradation number selected from the gradation sharing data is restored, and restored from the data specifying the foreground color and the background color in the predetermined color lookup table. Data specifying each of one or more intermediate colors for the three or more gradation data (except the foreground color and the background color) is calculated, and predetermined data is calculated from the calculated data in the color lookup table for each of the one or more gradations. Colors in the range are assigned.

이에 따라, 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 n의 계조 공유 데이터로부터 데이터의 열화를 생기게 하지 않고 계조 데이터가 복원된다. 또한 1계조 이상의 중간색의 각각에 대하여 컬러 룩 업 테이블 중의 산출된 데이터로부터 소정의 범위에 포함되는 색이 할당되기 때문에 보다 품질이 좋은 계조를 얻을 수 있다.As a result, the grayscale data is recovered from the grayscale shared data of the maximum grayscale number n expressed by the same number of bits as the grayscale data of the maximum grayscale number q p without causing degradation of the data. In addition, since the color included in the predetermined range is allocated to each of the one or more gradation colors from the calculated data in the color lookup table, a higher quality gradation can be obtained.

본 발명에 관한 계조 데이터 처리장치는 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 처리하는 계조 데이터 처리장치에 있어서,A gradation data processing apparatus according to the present invention is a gradation data processing apparatus for processing gradation data for representing a symbol including a character or a figure in correspondence with a predetermined number of pixels representing a gradation,

미리 지정된 컬러 룩 업 테이블 중의 전경색을 특정하는 데이터와 배경색을 특정하는 데이터로부터, 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색을 특정하는 데이터를 산출하는 산출수단과, 상기 1계조 이상의 중간색의 각각에 대하여 상기 컬러 룩 업 테이블 중 상기 산출된 데이터로부터 소정의 범위에 포함되는 색을 할당하는 할당수단을 포함하는 것으로 할 수 있다.Calculating means for calculating data specifying one or more gradations for the gradation data of three or more gradations (except the foreground color and the background color) from data specifying the foreground color and the background color in the predetermined color lookup table; And allocating means for allocating a color included in a predetermined range from the calculated data in the color lookup table for each of the one or more gradations.

본 계조 데이터 처리장치에 의하면 미리 지정된 컬러 룩 업 테이블 중의 전경색을 특정하는 데이터와 배경색을 특정하는 데이터로부터 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색의 각각을 특정하는 데이터가 산출되며, 1계조 이상의 중간색의 각각에 대하여 컬러 룩 업 테이블 중의 상기 산출된 데이터로부터 소정의 범위에 포함되는 색이 할당된다.According to the gradation data processing apparatus, each of one or more gradations for gradation data (except foreground color and background color) for three or more gradations from the data for specifying the foreground color and the background color in the predetermined color lookup table is specified. Data is calculated, and a color included in a predetermined range is assigned from each of the calculated data in the color lookup table for each of the one or more gradations.

이로써 품질이 좋은 계조를 이용하여 문자, 도형을 표현할 수 있다.As a result, characters and figures can be expressed using high quality gradations.

본 발명에 관한 계조 공유 데이터 생성장치는 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터, 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성장치에 있어서,The gradation sharing data generating apparatus according to the present invention shares a plurality of types of gradation data for representing the symbol in accordance with a predetermined number of pixels indicating the gradation from the contour information representing the outline of the symbol including a character or a figure. In the gradation shared data generating device for generating shared data,

상기 윤곽정보로부터 최대 계조수 2의 계조 데이터를 생성하는 제 1 계조 데이터 생성수단과, 상기 윤곽정보로부터 최대 계조수 3의 계조 데이터를 생성하는 제 2 계조 데이터 생성수단과, 상기 생성된 최대 계조수 2의 계조 데이터와 최대 계조수 3의 계조 데이터로부터 최대 계조수 4의 계조 공유 데이터를 생성하는 계조 공유 데이터 생성수단을 포함하는 것으로 할 수 있다.First gradation data generating means for generating gradation data of maximum gradation number 2 from the contour information, second gradation data generating means for generating gradation data of maximum gradation number 3 from the contour information, and the generated maximum gradation number And gradation shared data generating means for generating gradation shared data of maximal gradation number 4 from gradation data of 2 and gradation data of maximal number 3.

본 계조 공유 데이터 생성장치에 의하면 윤곽정보로부터 최대 계조수 2의 계조 데이터와 최대 계조수 3의 계조 데이터가 생성되고, 이들의 계조 데이터로부터 최대 계조수 4의 계조 공유 데이터가 생성된다.According to the grayscale shared data generating device, grayscale data of the maximum gray number 2 and grayscale data of the maximum gray number 3 are generated from the contour information, and grayscale shared data of the maximum gray number 4 is generated from these grayscale data.

이에 따라, 최대 계조수 4의 계조 공유 데이터는 최대 계조수 3의 계조 데이터와 같은 비트수로 표현되고, 또한 2종류의 계조 데이터로부터 생성되기 때문에 데이터 량을 증가시키지 않고, 또 복원되는 데이터의 열화를 생기게 하지 않고 계조 공유 데이터를 생성할 수 있다.As a result, the gradation shared data of the maximum gradation number 4 is represented by the same number of bits as the gradation data of the maximum gradation number 3, and is generated from two kinds of gradation data, so that the deterioration of the data to be restored without increasing the amount of data. It is possible to generate gradation sharing data without creating a.

본 발명에 관한 계조 공유 데이터 복원장치는 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수 종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하는 계조 공유 데이터 복원장치에 있어서,The gradation shared data restoration apparatus according to the present invention restores gradation data from gradation data sharing gradation data for representing a plurality of gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels representing the gradation. In the restoration device,

상기 계조 공유 데이터는 최대 계조수 2의 계조 데이터와, 최대 계조수 3의 계조 데이터로부터 최대 계조수 4를 갖도록 생성된 것이며, 최대 계조수 2 또는 최대 계조수 3을 선택하는 최대 계조수 선택수단과, 상기 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 계조 공유 데이터 복원수단을 포함하는 것으로 할 수 있다.The grayscale sharing data is generated to have a maximum number of grayscales 4 from grayscale data of the maximum grayscale number 2 and grayscale data of the maximum grayscale number 3, and the maximum grayscale number selection means for selecting the maximum grayscale number 2 or the maximum grayscale number 3; And gradation shared data restoring means for restoring gradation data which is the selected maximum gradation number from the gradation sharing data.

본 계조 공유 데이터 복원장치에 의하면 최대 계조수 2 또는 최대 계조수 3이 선택되고, 상기 계조 공유 데이터로부터 선택된 최대 계조수의 계조 데이터가 복원된다.According to the grayscale shared data restoring apparatus, the maximum grayscale number 2 or the maximum grayscale number 3 is selected, and the grayscale data of the maximum grayscale number selected from the grayscale shared data is restored.

이에 따라, 최대 계조수 3의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 4의 계조 공유 데이터로부터 데이터의 열화를 생기게 하지 않고, 계조 데이터가 복원되는 것으로 된다.Accordingly, the gradation data is restored without causing deterioration of the data from the gradation shared data of the maximum gradation number 4 represented by the same number of bits as the gradation data of the maximum gradation number 3.

본 발명에 관한 계조 공유 데이터 생성방법은 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성방법에 있어서, 상기 윤곽정보로부터 p종류의 최대 계조수 qα(α = 1, 2, . . ., p)인 계조 데이터를 생성하는 p(p는 2 이상의 정수)개의 계조 데이터 생성단계와, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2. . . qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이며, 상기 생성된 p종류의 계조 데이터로부터 최대 계조수 n인 계조 공유 데이터를 생성하는 계조 공유 데이터 생성단계를 포함하며, n은 qpn ≤ 2m을 만족하는 정수인 것으로 할 수 있다.The method for generating gradation sharing data according to the present invention shares a plurality of types of gradation data for representing the symbol corresponding to a predetermined number of pixels indicating the gradation from contour information representing the outline of a symbol including a character or a figure, and shares the gradation. A gradation shared data generation method for generating data, wherein p (p is an integer of 2 or more) for generating gradation data of p type maximum gradation number q α (α = 1, 2, ..., p) from the outline information. ) Gray level data generating step, wherein m is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 . . . q p , 2 m-1 q p 2 m q 1 + q 2 +. . . + q p is an integer that satisfies a gray level shared data generation step of generating a gray level shared data having a maximum number of gray levels n from the p type gray level data, and n is an integer that satisfies q p n ≤ 2 m It can be done.

본 계조 공유 데이터 생성방법에 의하면, 윤곽정보로부터 상기 조건을 만족하는 p종류의 최대 계조수 qα의 계조 데이터가 생성되고, 이들 p종류의 계조 데이터로부터 상기 조건을 만족하는 최대 계조수 n의 계조 공유 데이터가 생성된다.According to the method for generating gradation shared data, gradation data of p type maximum gradation number q α satisfying the above condition is generated from the contour information, and gradation of maximum gradation number n satisfying the above condition from these p type gradation data Shared data is generated.

이에 따라 최대 계조수 n의 계조 공유 데이터는 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되고, 또한 p종류의 최대 계조수 qα의 계조 데이터로부터 생성되므로 계조 데이터와 비교하여 데이터량을 증가시키지 않고, 또 복원되는 데이터의 열화를 생기게 하지 않고, 서로 다른 최대 계조수로 이루어지는 복수 종류의 계조 데이터를 공유하는 계조 공유 데이터를 생성할 수 있다.Accordingly, the grayscale shared data of the maximum grayscale number n is represented by the same number of bits as the grayscale data of the maximum grayscale number q p , and is generated from the grayscale data of the p type maximum grayscale number q α , so that the data amount is compared with the grayscale data. It is possible to generate gradation shared data that shares a plurality of gradation data types having different maximum gradation numbers without causing an increase and deterioration of the restored data.

또한 본 발명에 관한 계조 공유 데이터 생성방법은 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보와, 상기 기호를 구성하는 스트로크 위치를 나타내는 스트로크 정보로부터, 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성방법에 있어서, 상기 윤곽정보와 상기 스트로크 정보로부터 힌트처리를 행하면서 p종류의 최대 계조수 qα(α = 1, 2, . . ., p)인 계조 데이터를 생성하는 p(p는 2 이상의 정수)개의 계조 데이터 생성단계와, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2. . . qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이며, 상기 생성된 p종류의 계조 데이터로부터 최대 계조수 n인 계조 공유 데이터를 생성하는 계조 공유 데이터 생성단계를 포함하며, n은 qpn≤ 2m을 만족하는 정수인 것으로 할 수 있다.In addition, the method for generating gradation sharing data according to the present invention corresponds to the predetermined number of pixels indicating gradation from contour information indicating the outline of a symbol including a character or a figure and stroke information indicating the stroke position constituting the symbol. A gradation shared data generation method for sharing plural kinds of gradation data for representing a symbol and generating gradation sharing data, wherein the p-type maximum gradation number q α (α) while performing hint processing from the outline information and the stroke information. P (p is an integer of 2 or more) gradation data generating steps for generating gradation data of = 1, 2, ..., p), wherein m is an integer of 2 or more, and q α is 2 ≤ q 1 q 2 . . . q p , 2 m-1 q p 2 m q 1 + q 2 +. . . P + q is an integer satisfying comprising: a gray level shared data generation step of generating a gray level of n shared data maximum number of gradations from gradation data of the generated p type, n is an integer satisfying q p n≤ 2 m It can be done.

본 계조 공유 데이터 생성방법에 의하면 윤곽정보와 스트로크 정보로부터 힌트 처리를 행하면서 p종류의 최대 계조수 qα의 계조 데이터가 생성되고, 이들의 p종류의 최대 계조수 qα의 계조 데이터로부터 최대 계조수 n의 계조 공유 데이터가 생성된다.According to the method for generating gradation shared data, gradation data of p type maximum gradation number q α is generated while performing hint processing from contour information and stroke information, and maximal gradation from gradation data of these p type maximum gradation number q α A number n of gradation shared data are generated.

이에 따라 최대 계조수 n의 계조 공유 데이터는 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되고, 또한 p종류의 최대 계조수 qα의 계조 데이터로부터 생성되므로 계조 데이터와 비교하여 데이터량을 증가시키지 않고, 또한 복원되는 데이터의 열화를 생기게 하지 않으면서, 서로 다른 최대 계조수로 이루어지는 복수종의 계조 데이터를 공유하는 계조 공유 데이터를 생성할 수 있다. 또 힌트처리가 행해지면서 계조 데이터가 생성되어 계조 공유 데이터가 생성되기 때문에, 이 계조 공유 데이터로부터는 품질이 좋은 계조 데이터를 복원할 수 있다.Accordingly, the grayscale shared data of the maximum grayscale number n is represented by the same number of bits as the grayscale data of the maximum grayscale number q p , and is generated from the grayscale data of the p type maximum grayscale number q α , so that the data amount is compared with the grayscale data. It is possible to generate gradation shared data sharing plural kinds of gradation data composed of different maximum gradations without causing increase and deterioration of the data to be restored. In addition, since the gray scale data is generated as the hint process is performed to generate the gray scale shared data, it is possible to restore high quality gray scale data from the gray scale shared data.

본 발명에 관한 계조 공유 데이터 복원방법은 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하는 계조 공유 데이터 복원방법에 있어서, 상기 계조 공유 데이터는 p종류의 최대 계조수 qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터로부터, 최대 계조수 n을 갖도록 생성된 것이고, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이고, n은 qpn ≤ 2m을 만족하는 정수이며, 최대 계조수를 선택하는 최대 계조수 선택단계와, 상기 생성된 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 계조 공유 데이터 복원단계를 포함하는 것으로 할 수 있다.The gradation shared data restoration method according to the present invention is a gradation shared data for restoring gradation data from gradation shared data sharing plural kinds of gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels representing gradations. In the restoration method, the grayscale shared data is such that p-type maximum grayscale number q α (p is an integer of 2 or more, and has a maximum grayscale number n from grayscale data of α = 1, 2, ..., p). M is an integer of 2 or more, q α is 2 ≦ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . + is an integer satisfying q p , n is an integer that satisfies q p n ≤ 2 m , and a maximum number of tones selection step of selecting a maximum number of gray levels, and a gray level which is the selected maximum number of gray levels from the generated gray level shared data. And a gradation share data restoration step of restoring the data.

본 계조 공유 데이터 복원방법에 의하면 최대 계조수가 선택되고, 계조 공유 데이터로부터 선택된 최대 계조수의 계조 데이터가 복원된다.According to the grayscale shared data restoration method, the maximum grayscale number is selected, and grayscale data of the selected maximum grayscale number is restored from the grayscale shared data.

이에 따라 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되고, 또 p 종류의 최대 계조수 qα의 계조 데이터로부터 생성되는 최대 계조수 n의 계조 공유 데이터로부터 데이터의 열화를 생기게 하지 않고 계조 데이터가 복원된다.Accordingly, the gradation is expressed by the same number of bits as the gradation data of the maximum gradation number q p , and without causing data degradation from gradation shared data of the maximum gradation number n generated from the gradation data of the p type maximum gradation number q α . The data is restored.

본 발명에 관한 계조 데이터 처리방법은, 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 처리하는 계조 데이터 처리방법에 있어서,In the gradation data processing method according to the present invention, in the gradation data processing method for processing gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels representing the gradation,

미리 지정된 컬러 룩 업 테이블 중 전경색을 특정하는 데이터와 배경색을 특정하는 데이터로부터 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색의 각각을 특정하는 데이터를 산출하는 산출단계와, 상기 1계조 이상의 중간색의 각각에 대하여 상기 컬러 룩 업 테이블 중의 상기 산출된 데이터로부터 소정의 범위에 포함되는 색을 할당하는 할당단계를 포함하는 것으로 할 수 있다.A calculation step of calculating data for specifying each of one or more gradation colors for gradation data of three or more gradations (excluding the foreground and background colors) from the data specifying the foreground color and the background color among the predetermined color lookup tables; And assigning a color included in a predetermined range from the calculated data in the color lookup table to each of the one or more gradations.

본 계조 데이터 처리방법에 의하면, 미리 지정된 컬러 룩 업 테이블 중의 전경색을 특정하는 데이터와 배경색을 특정하는 데이터로부터 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색의 각각을 특정하는 데이터가 산출되며, 1계조 이상의 중간색의 각각에 대하여 컬러 룩 업 테이블 중의 상기 산출된 데이터로부터 소정의 범위에 포함되는 색이 할당된다.According to the gradation data processing method, each of one or more gradation colors for gradation data of three or more gradations (except foreground color and background color) is identified from the data specifying the foreground color and the background color in the predetermined color lookup table. The data to be calculated is calculated, and a color included in a predetermined range is allocated from each of the calculated data in the color lookup table to each of one or more gradations.

이로써 품질이 좋은 계조를 이용하여 문자, 도형을 표현할 수 있다.As a result, characters and figures can be expressed using high quality gradations.

또한 본 발명에 관한 계조 공유 데이터 생성방법은, 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수 종류 공유하는 계조 공유 데이터를 생성하는 계조 공유 데이터 생성방법에 있어서,In addition, the method for generating gradation sharing data according to the present invention includes gradation for sharing a plurality of types of gradation data for representing the symbol corresponding to a predetermined number of pixels indicating the gradation from the contour information representing the outline of the symbol including a character or a figure. In the gradation shared data generation method for generating shared data,

상기 윤곽정보로부터 최대 계조수 2의 계조 데이터를 생성하는 제 1 계조 데이터 생성단계와, 상기 윤곽정보로부터 최대 계조수 3의 계조 데이터를 생성하는 제 2 계조 데이터 생성단계와, 상기 생성된 최대 계조수 2의 계조 데이터와 최대 계조수 3의 계조 데이터로부터 최대 계조수 4의 계조 공유 데이터를 생성하는 계조 공유 데이터 생성단계를 포함하는 것으로 할 수 있다.A first gradation data generation step of generating gradation data of the maximum gradation number 2 from the contour information, a second gradation data generation step of generating gradation data of the maximum gradation number 3 from the contour information, and the generated maximum gradation number And gradation shared data generation step of generating gradation shared data of maximal gradation number 4 from gradation data of 2 and gradation data of maximum gradation number 3.

본 계조 공유 데이터 생성방법에 의하면, 윤곽정보로부터 최대 계조수 2의 계조 데이터와 최대 계조수 3의 계조 데이터가 생성되며, 이들의 계조 데이터로부터 최대 계조수 4의 계조 공유 데이터가 생성된다.According to the method for generating gradation shared data, gradation data of up to 2 gradations and gradation data of up to 3 gradations is generated from the contour information, and gradation sharing data of up to 4 gradations is generated from these gradation data.

이로써 최대 계조수 4의 계조 공유 데이터는 최대 계조수 3의 계조 데이터와 같은 비트수로 표현되며, 또 2종의 계조 데이터로부터 생성되기 때문에 데이터량을 증가시키지 않고, 또한 복원되는 데이터의 열화를 생기게 하지 않고, 계조 공유 데이터를 생성할 수 있다.As a result, the gradation shared data of the maximum gradation number 4 is represented by the same number of bits as the gradation data of the maximum gradation number 3, and since it is generated from two kinds of gradation data, it does not increase the data amount and also causes deterioration of the restored data. The gray scale shared data can be generated.

본 발명에 관한 계조 공유 데이터 복원방법은, 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수 종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하는 계조 공유 데이터 복원장치에 있어서,In the gradation sharing data restoration method according to the present invention, gradation sharing for restoring gradation data from gradation sharing data sharing plural kinds of gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels indicating gradation. In the data recovery apparatus,

상기 계조 공유 데이터는 최대 계조수 2의 계조 데이터와 최대 계조수 3의 계조 데이터로부터 최대 계조수 4를 갖도록 생성된 것이며, 최대 계조수 2 또는 최대 계조수 3을 선택하는 최대 계조수 선택단계와, 상기 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 계조 공유 데이터 복원단계를 포함하는 것으로 할 수 있다.The grayscale sharing data is generated to have a maximum number of grayscales 4 from grayscale data of the maximum grayscale number 2 and grayscale data of the maximum grayscale number 3, and selects the maximum grayscale number 2 or the maximum grayscale number 3; And gradation shared data restoring step of restoring gradation data which is the selected maximum gradation number from the gradation sharing data.

본 계조 공유 데이터 복원방법에 의하면, 최대 계조수 2 또는 최대 계조수 3이 선택되고, 상기 계조 공유 데이터로부터 선택된 최대 계조수의 계조 데이터가 복원된다.According to the grayscale shared data restoration method, the maximum grayscale number 2 or the maximum grayscale number 3 is selected, and grayscale data of the maximum grayscale number selected from the grayscale shared data is restored.

이에 따라, 최대 계조수 3의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 4의 계조 공유 데이터로부터 데이터의 열화를 생기게 하지 않고, 계조 데이터가 복원된다.As a result, the grayscale data is restored without causing degradation of the data from the grayscale shared data of the maximum grayscale number 4 represented by the same number of bits as the grayscale data of the maximum grayscale number 3.

본 발명에 관한 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체는 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터 계조를 나타내는 화소의 소정의 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하고, 계조 공유 데이터를 생성하며, 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서, 상기 윤곽정보로부터 p종류의 최대 계조수 qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터를 생성하고, 상기 생성된 p종류의 계조 데이터로부터, 최대 계조수 n인 계조 공유 데이터를 생성하는 프로그램을 기록하며, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이고, n은 qpn ≤ 2m을 만족하는 정수인 것으로 할 수 있다.A computer-readable recording medium for recording a program according to the present invention includes a plurality of types of gradation data for representing the symbol in response to a predetermined number of pixels indicating the gradation from contour information representing the outline of a symbol including a character or a figure. A computer-readable recording medium for sharing, generating gradation sharing data, and recording a program, the p-type maximum gradation number q α (p being an integer of 2 or more, α = 1, 2,. .., p) Grayscale data is generated, and a program for generating grayscale shared data having a maximum number of grayscale n from the generated p-type grayscale data is recorded, wherein m is an integer of 2 or more, q α is 2 ≤ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . It is an integer satisfying p + q, n may be an integer satisfying q p n ≤ 2 m.

본 프로그램에 의하면, 윤곽정보로부터 상기 조건을 만족하는 p종류의 최대 계조수 qα의 계조 데이터가 생성되고, 이들의 p종류의 계조 데이터로부터 상기 조건을 만족하는 최대 계조수 n인 계조 공유 데이터가 생성된다.According to the program, gradation data of the p type maximum gradation number q α satisfying the above condition is generated from the contour information, and gradation shared data having the maximum gradation number n satisfying the above condition from these p kind of gradation data is generated. Is generated.

이에 따라, 최대 계조수 n의 계조 공유 데이터는 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되고, 또 p종류의 최대 계조수 qα의 계조 데이터로부터 생성되므로 계조 데이터와 비교하여 데이터량을 증가시키지 않고, 또한 복원되는 데이터의 열화를 생기게 하지 않고, 서로 다른 최대 계조수로 이루어지는 복수 종류의 계조 데이터를 공유하는 계조 공유 데이터를 생성할 수 있다.Accordingly, the grayscale shared data of the maximum grayscale number n is represented by the same number of bits as the grayscale data of the maximum grayscale number q p , and is generated from the grayscale data of the p type maximum grayscale number q α , so that the data amount is compared with the grayscale data. It is possible to generate gradation sharing data sharing plural kinds of gradation data composed of different maximum gradations, without increasing the number of pixels and without causing deterioration of the restored data.

본 발명에 관한 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체는 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보와, 상기 기호를 구성하는 스트로크의 위치를 나타내는 스트로크 정보로부터 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하고, 계조 공유 데이터를 생성하며, 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서, 상기 윤곽정보와 상기 스트로크 정보로부터 힌트 처리를 행하면서 p종류의 최대 계조수 qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터를 생성하고, 상기 생성된 p종류의 계조 데이터로부터, 최대 계조수 n인 계조 공유 데이터를 생성하는 프로그램을 기록하며, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이고, n은 qpn ≤ 2m을 만족하는 정수인 것으로 할 수 있다.A computer-readable recording medium for recording a program according to the present invention includes outline information indicating the outline of a symbol including a character or a figure, and stroke information indicating the position of the stroke constituting the symbol. A computer-readable recording medium for sharing plural types of gradation data for representing the symbols, generating gradation sharing data, and recording a program, wherein the p-types are performed while performing hint processing from the outline information and the stroke information. Grayscale data with the maximum number of grayscales q α (p is an integer of 2 or more and α = 1, 2, ..., p) is generated, and the grayscale with the maximum grayscale number n is generated from the generated p type grayscale data. A program for generating shared data is recorded, wherein m is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 ... q p , 2 m-1 q p 2 m q 1 + q 2 +. . . It is an integer satisfying p + q, n may be an integer satisfying q p n ≤ 2 m.

본 프로그램에 의하면, 윤곽정보와 스트로크 정보로부터 힌트처리가 행해지면서 p종류의 최대 계조수 qα의 계조 데이터가 생성되고, 이들의 p종류의 최대 계조수 qα의 계조 데이터로부터 최대 계조수 n의 계조 공유 데이터가 생성된다.According to the program, while the hint process carried out from the outline information and stroke information, grayscale data of the p-type of the maximum gradation number q α is produced, the maximum number of gradations n from the grayscale data of those of the p-type, the maximum number of gray scale q α Gray scale shared data is generated.

이에 따라, 최대 계조수 n의 계조 공유 데이터는 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되고, 또한 p종류의 최대 계조수 qα의 계조 데이터로부터 생성되므로 계조 데이터와 비교하여 데이터량을 증가시키지 않고, 또한 복원되는 데이터의 열화를 생기게 하지 않고, 서로 다른 최대 계조수로 이루어지는 복수 종류의 계조 데이터를 공유하는 계조 공유 데이터를 생성할 수 있다. 또한 힌트처리가 행해지면서 계조 데이터가 생성되고, 계조 공유 데이터가 생성되기 때문에 이 계조 공유 데이터로부터는 품질이 좋은 계조 데이터를 복원할 수 있다.Accordingly, the grayscale shared data of the maximum number of grayscales n is represented by the same number of bits as the grayscale data of the largest grayscale number q p , and is also generated from the grayscale data of the p type maximum grayscale number q α , so that the data amount is compared with the grayscale data. It is possible to generate gradation sharing data sharing plural kinds of gradation data composed of different maximum gradations, without increasing the number of pixels and without causing deterioration of the restored data. In addition, since the gray scale data is generated while the hint process is performed, and the gray scale shared data is generated, high quality gray scale data can be restored from the gray scale shared data.

본 발명에 관한 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체는 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하며, 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서, 상기 계조 공유 데이터는 p종류의 최대 계조수 qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터로부터 최대 계조수 n을 갖도록 생성된 것이며, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이고, n은 qpn ≤ 2m을 만족하는 정수이며, 최대 계조수를 선택하고, 상기 생성된 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 프로그램을 기록하는 것으로 할 수 있다.A computer-readable recording medium for recording a program according to the present invention restores gray scale data from gray scale shared data for sharing a plurality of types of gray scale data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels indicating gray scale. In the computer-readable recording medium for recording a program, the gradation shared data is a gradation of p-type maximum gradation number q α (p is an integer of 2 or more and α = 1, 2, ..., p) It was generated to have the maximum number of gray scales n from the data, m is an integer of 2 or more, q α is 2 ≦ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . + is an integer satisfying q p , n is an integer satisfying q p n ≤ 2 m , selects a maximum number of gray levels, and restores the gray level data which is the selected maximum gray number number from the generated gray level shared data. You can record.

본 프로그램에 의하면 최대 계조수가 선택되고, 계조 공유 데이터로부터 선택된 최대 계조수인 계조 데이터가 복원된다.According to the program, the maximum number of gray levels is selected, and the gray level data which is the maximum number of gray levels selected from the gray level shared data is restored.

이에 따라, 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 n의 계조 공유 데이터로부터 데이터의 열화를 생기게 하지 않고, 계조 데이터가 복원된다.As a result, the grayscale data is restored without causing degradation of the data from the grayscale shared data of the maximum grayscale number n expressed by the same number of bits as the grayscale data of the maximum grayscale number q p .

본 발명에 관한 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체는, 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 처리하는, 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,A computer-readable recording medium for recording a program according to the present invention is a computer-readable recording medium for recording a program for processing grayscale data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels representing a grayscale. In the medium,

미리 지정된 컬러 룩 업 테이블 중의 전경색을 특정하는 데이터와 배경색을 특정하는 데이터로부터 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색의 각각을 특정하는 데이터를 산출하고, 상기 1계조 이상의 중간색의 각각에 대하여 상기 컬러 룩 업 테이블 중의 상기 산출된 데이터로부터 소정의 범위에 포함되는 색을 할당하는 프로그램을 기록하는 것으로 할 수 있다.From the data specifying the foreground color and the background color in the predetermined color look-up table, data specifying each of one or more gradation colors for gradation data of three or more gradations (except foreground colors and background colors) is calculated, and the 1 A program for allocating a color included in a predetermined range from the calculated data in the color lookup table for each of the intermediate colors of the gradation or more can be recorded.

본 프로그램에 의하면, 미리 지정된 컬러 룩 업 테이블 중의 전경색을 특정하는 데이터와 배경색을 특정하는 데이터로부터 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색의 각각을 특정하는 데이터가 산출되고, 1계조 이상의 중간색의 각각에 대하여 컬러 룩 업 테이블 중의 상기 산출된 데이터로부터 소정의 범위에 포함되는 색이 할당된다.According to the program, data for specifying each of one or more gradations for gradation data of three or more gradations (except for foreground and background colors) from data specifying a foreground color and a background color in a predetermined color look-up table is provided. The color included in the predetermined range is allocated from the calculated data in the color lookup table to each of the intermediate colors of one or more gradations.

이로써 품질이 좋은 계조를 이용하여 문자, 도형을 표현할 수 있다.As a result, characters and figures can be expressed using high quality gradations.

본 발명에 관한 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체는, 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하며, 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,A computer-readable recording medium for recording a program according to the present invention includes a plurality of types of gradation data for representing the symbol corresponding to a predetermined number of pixels indicating the gradation from the contour information representing the outline of the symbol including a character or a figure. A computer-readable recording medium for sharing, generating gradation sharing data, and recording a program,

상기 윤곽정보로부터 최대 계조수 2인 계조 데이터와 최대 계조수 3인 계조 데이터를 생성하고, 상기 생성된 2종의 계조 데이터로부터 최대 계조수 4인 계조 공유 데이터를 생성하는 프로그램을 기록하는 것으로 할 수 있다.A program for generating grayscale data with the maximum number of grayscales and grayscale data with the maximum number of grayscales from the outline information, and generating grayscale data with the maximum number of grayscales from four generated grayscale data; have.

본 프로그램에 의하면, 윤곽정보로부터 최대 계조수 2인 계조 데이터와 최대 계조수 3인 계조 데이터가 생성되고, 생성된 2종류의 계조 데이터로부터 최대 계조수 4인 계조 공유 데이터가 생성된다.According to the program, grayscale data with a maximum number of grayscales and grayscale data with a maximum number of grayscales is generated from the outline information, and grayscale shared data with a maximum number of grayscales is generated from the two kinds of generated grayscale data.

이에 따라, 최대 계조수 4의 계조 공유 데이터는 최대 계조수 3의 계조 데이터와 같은 비트수로 표현되고, 또한 2종류의 계조 데이터로부터 생성되기 때문에 데이터량을 증가시키지 않고, 또한 복원되는 데이터의 열화를 생기게 하지 않고 계조 공유 데이터를 생성할 수 있다.As a result, the gradation shared data of the maximum gradation number 4 is represented by the same number of bits as the gradation data of the maximum gradation number 3, and is generated from two kinds of gradation data, so that the deterioration of the data to be restored without increasing the amount of data. It is possible to generate gradation sharing data without creating a.

본 발명에 관한 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체는, 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하는 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체로서,A computer-readable recording medium for recording a program according to the present invention includes gradation data from gradation sharing data sharing plural kinds of gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels representing gradations. A computer-readable recording medium for recording a program to be restored,

상기 계조 공유 데이터는 최대 계조수 2인 계조 데이터와 최대 계조수 3인 계조 데이터로부터 최대 계조수 4를 갖도록 생성된 것이며, 최대 계조수를 선택하고, 상기 생성된 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 프로그램을 기록하는 것으로 할 수 있다.The grayscale shared data is generated to have a maximum number of grayscales 4 from grayscale data having a maximum number of grayscales 2 and grayscale data having a maximum number of grayscales, and selects a maximum grayscale number, and selects the selected maximum grayscale number from the generated grayscale shared data. The program for restoring the grayscale data can be recorded.

본 프로그램에 의하면, 최대 계조수가 선택되고, 생성된 계조 공유 데이터로부터 선택된 최대 계조수인 계조 데이터가 복원된다.According to the program, the maximum number of tones is selected, and the tone data which is the maximum number of tones selected from the generated tone sharing data is restored.

이에 따라, 최대 계조수 3의 계조 데이터와 같은 비트수로 표현되는 최대 계조수 4의 계조 공유 데이터로부터 데이터의 열화를 생기게 하지 않고, 계조 데이터가 복원된다.As a result, the grayscale data is restored without causing degradation of the data from the grayscale shared data of the maximum grayscale number 4 represented by the same number of bits as the grayscale data of the maximum grayscale number 3.

본 발명에 관한 계조 공유 데이터를 기록하는 컴퓨터 판독 가능한 기록매체는 계조를 나타내는 화소의 소정 개수에 대응하여, 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 기록하는 컴퓨터 판독 가능한 기록매체에 있어서, 상기 기호의 윤곽을 나타내는 윤곽정보로부터 각각 생성되며, p종류의 최대 계조수qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터로부터 최대 계조수 n을 갖도록 생성되는 계조 공유 데이터를 기록하며, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수인 것으로 할 수 있다.A computer-readable recording medium for recording gradation sharing data according to the present invention shares a plurality of types of gradation data for representing symbols including letters or figures, corresponding to a predetermined number of pixels representing gradations, a computer-readable recording medium for recording, are respectively produced from the contour information representing the contour of the symbol and the p type, the maximum number of gray scale q α (p to an integer of 2 or more, α = 1, 2, ..., The grayscale shared data generated to have the maximum number of grayscales n from the grayscale data of p) is recorded, wherein m is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 ... q p , 2 m-1 q p 2 m q 1 + q 2 +. . . It can be set as an integer satisfying + q p .

본 계조 공유 데이터는 최대 계조수 qα가 되도록 윤곽정보로부터 각각 생성되는 p종류의 계조 데이터로부터 최대 계조수 n이 되도록 생성되므로 최대 계조수 qp의 계조 데이터와 같은 비트수로 표현할 수 있고, 데이터의 열화를 생기게 하지 않고 p종류의 계조 데이터를 복원할 수 있다.The gray level shared data may be so generated such that the maximum number of gradations n expressed by the maximum number of bits, such as gray-scale data of q p gradation from the gradation data p type being created respectively from the contour information such that the maximum gradation number q α, data P kinds of grayscale data can be restored without causing deterioration.

또한 본 발명에 관한 계조 공유 데이터를 기록하는 컴퓨터 판독 가능한 기록매체는, 계조를 나타내는 화소의 소정 개수에 대응하여, 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수 종류 공유하며, 계조 공유 데이터를 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,In addition, a computer-readable recording medium for recording gradation sharing data according to the present invention, in response to a predetermined number of pixels representing gradation, shares a plurality of types of gradation data for representing a symbol including a character or a figure, and shares gradation. In a computer-readable recording medium for recording data,

상기 기호의 윤곽을 나타내는 윤곽정보로부터 각각 생성되며, 최대 계조수 2의 계조 데이터와 최대 계조수 3의 계조 데이터로부터 최대 계조수 4를 갖도록 생성되는 계조 공유 데이터를 기록하는 것으로 할 수 있다.It is possible to record gradation shared data which is generated from contour information representing the outline of the symbol and which is generated so as to have the maximum number of gradations 4 from the gradation data of the maximum gradation number 2 and the gradation data of the maximum gradation number 3.

본 계조 공유 데이터는 최대 계조수 2, 최대 계조수 3이 되도록 윤곽정보로부터 각각 생성되는 2종류의 계조 데이터로부터, 최대 계조수 4가 되도록 생성되므로 최대 계조수 3의 계조 데이터와 같은 비트수로 표현할 수 있고, 데이터의 열화를 생기게 하지 않고 2종류의 계조 데이터를 복원할 수 있다.This grayscale shared data is generated from the two kinds of grayscale data generated from the contour information so that the maximum grayscale number is 2 and the maximum grayscale number 3 is the maximum grayscale number 4, so that the same number of bits as the grayscale data of the maximum grayscale number 3 can be expressed. It is possible to restore two kinds of gradation data without causing deterioration of data.

상술한 목적 및 기타의 목적과 본 발명의 특징 및 이점은 첨부 도면과 관련한 다음의 상세한 설명을 통해 보다 분명해 질 것이다.The above and other objects and features and advantages of the present invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings.

( 실시예 )(Example)

이하 도면을 참조하여 본 발명의 실시예인 계조 공유 데이터 처리 시스템에 대하여 설명하기로 한다.Hereinafter, a grayscale shared data processing system according to an embodiment of the present invention will be described with reference to the accompanying drawings.

우선 본 발명의 제 1 실시예의 계조 공유 데이터 처리 시스템에 대하여 설명하기로 한다.First, the grayscale shared data processing system of the first embodiment of the present invention will be described.

도 10은 본 발명의 제 1 실시예의 계조 공유 데이터 처리 시스템의 기능을 설명하기 위한 블록도이며, 도 11은 본 계조 공유 데이터 처리 시스템에 포함되는 계조 공유 데이터 생성장치, 계조 공유 데이터 복원장치의 하드웨어 구성을 도시한 블록도이다.FIG. 10 is a block diagram illustrating a function of a grayscale shared data processing system according to a first embodiment of the present invention, and FIG. 11 is hardware of a grayscale shared data generating device and a grayscale shared data restoring apparatus included in the grayscale shared data processing system. It is a block diagram which shows a structure.

본 계조 공유 데이터 처리 시스템은 계조 공유 데이터 생성장치와 계조 공유 데이터 복원장치를 포함하고 있고, 도 11에 도시한 바와 같이 본 계조 공유 데이터 생성장치, 계조 공유 데이터 복원장치는 각각 기억부(1), ROM(2), RAM(3), CPU(4), 표시부(5), 입력부(6)를 포함하고 있다.The grayscale shared data processing system includes a grayscale shared data generating device and a grayscale shared data restoring device. As shown in FIG. 11, the grayscale shared data generating device and the grayscale shared data restoring device are respectively stored in the storage unit 1, ROM 2, RAM 3, CPU 4, display unit 5, and input unit 6 are included.

기억부(1)는 하드디스크, 플로피 디스크, DVD-RAM 등의 2차 기억장치이며, 프로그램 파일, 데이터 파일 등을 기억한다. ROM(2)은 이하에 설명하는 바와 같은 계조 공유 데이터를 생성하기 위한 프로그램(계조 공유 데이터 생성장치) 및 계조 공유 데이터를 복원하기 위한 프로그램(계조 공유 데이터 복원장치)을 기억한다. RAM(3)은 일시작업용 작업영역으로서 사용되는 메모리이다.The storage unit 1 is a secondary storage device such as a hard disk, a floppy disk, a DVD-RAM, and the like, and stores program files, data files, and the like. The ROM 2 stores a program for generating gradation shared data (gradation sharing data generating apparatus) and a program for restoring gradation sharing data (gradation sharing data restoration apparatus) as described below. The RAM 3 is a memory used as a work area for temporary work.

CPU(4)는 주로 ROM(2)에 기억되어 있는 프로그램을 실행함으로써 아우트라인 데이터로부터 입력부(6) 또는 프로그램에 의해 지시된 사이즈의 계조 공유 데이터를 생성하며(계조 공유 데이터 생성장치), 또한 계조 공유 데이터로부터 입력부(6) 또는 프로그램에 의해 지시된 계조수의 계조 데이터를 복원하고 표시부(5)에 표시한다(계조 공유 데이터 복원장치).The CPU 4 mainly generates gradation sharing data of the size indicated by the input unit 6 or the program from the outline data by executing a program stored in the ROM 2 (gradation sharing data generating device), and also gradation sharing. The tone data of the tone number indicated by the input unit 6 or the program is restored from the data and displayed on the display unit 5 (tone shared data restoration device).

표시부(5)는 액정패널, CRT 등의 계조표시가 가능한 디스플레이 장치를 갖고, 계조 데이터에 기초하여 문자 또는 도형을 표시한다. 입력부(6)는 계조 공유 데이터를 생성 또는 복원할 때 사용자로부터 문자 또는 도형의 사이즈, 계조수의 지정 등의 조작의 지시를 받는다.The display unit 5 has a display device capable of gray scale display such as a liquid crystal panel and a CRT, and displays characters or graphics based on the gray scale data. The input unit 6 receives an instruction of an operation such as specifying the size of a character or a figure, the number of gradations, etc. from a user when generating or restoring gradation shared data.

도 10에 도시한 바와 같이 이들 하드웨어에 의해 구성되는 계조 공유 데이터생성장치, 계조 공유 데이터 복원장치의 각각에는, CPU(4)가 ROM(2)의 프로그램을 실행함으로써 실현되는 기능이 포함되고 있다. 여기에서는 설명의 편의상 계조 공유 데이터 복원장치로써 2종류의 (최대) 계조수를 갖는 계조 데이터중 어느 것이 사용되는지를 미리 특정할 수 없고, 계조 공유 데이터 생성장치로써 2종류의 계조 데이터로부터 계조 공유 데이터를 생성하는 것을 상정하지만, 3종류 이상의 (최대) 계조수를 갖는 계조 데이터에 대해서도 마찬가지로 본 발명을 적용할 수 있다.As shown in Fig. 10, each of the gradation shared data generation device and the gradation shared data restoration device constituted by these hardware includes a function realized by the CPU 4 executing a program of the ROM 2. Here, for convenience of description, it is not possible to specify in advance which of the grayscale data having two kinds of (maximum) grayscale numbers is used as the grayscale shared data restoration apparatus, and the grayscale shared data from the two kinds of grayscale data as the grayscale shared data generating apparatus. Although it is assumed that is generated, the present invention can be similarly applied to grayscale data having three or more kinds of (maximum) grayscale numbers.

계조 공유 데이터 생성장치는 윤곽정보 유지부(101), 윤곽정보 확대축소부(102), 기본 계조값 산출부(103), 전개 버퍼(104), 계조 공유 데이터 생성부(105)를 포함하고 있고, 계조 공유 데이터 복원장치는 계조 공유 데이터 인출부(106), 전개 버퍼(107), 계조수 선택부(108), 제 1 계조 데이터 복원부(109), 제 2 계조 데이터 복원부(110)를 포함하고 있다.The apparatus for generating gradation shared data includes an outline information holding unit 101, an outline information expanding and contracting unit 102, a basic gradation value calculating unit 103, a development buffer 104, and a gradation sharing data generating unit 105. The grayscale shared data restoring apparatus includes a grayscale shared data extracting unit 106, a development buffer 107, a grayscale number selecting unit 108, a first grayscale data restoring unit 109, and a second grayscale data restoring unit 110. It is included.

또한 도 10의 계조 공유 데이터 생성장치의 윤곽정보 유지부(101), 전개 버퍼(104), 계조 공유 데이터 복원장치의 전개 버퍼(107)는 각각의 장치내의 RAM(3) 상에 영역이 설치되고, 그 이외는 각각의 장치내에서 CPU(4)가 R0M(2)에 기억되어 있는 프로그램을 실행함으로써 실현되는 기능이다.In addition, the contour information holding unit 101, the expansion buffer 104, and the expansion buffer 107 of the grayscale shared data restoring apparatus of FIG. 10 are provided with an area on the RAM 3 in each device. Otherwise, this is a function realized by the CPU 4 executing a program stored in the R0M 2 in each device.

이들 도 10에 도시된 계조 공유 데이터 생성장치, 계조 공유 데이터 복원장치의 각 부분의 동작을 설명한다.The operations of the respective portions of the gradation shared data generating device and the gradation shared data restoring device shown in FIG. 10 will be described.

계조 공유 데이터 생성장치에서는 윤곽정보 유지부(101)는 계조 공유 데이터 생성의 대상으로 되는 아웃라인 데이터로부터 각 문자(또는 도형)에 대응하여 소정의 좌표 상에서 윤곽의 특징을 나타내는 점의 집합으로서 나타내는 윤곽정보를 인출하여 유지한다.In the gradation shared data generating apparatus, the outline information holding unit 101 shows the outline represented as a set of points representing the characteristic of the outline on a predetermined coordinate corresponding to each character (or figure) from the outline data which is the object of gradation shared data generation. Withdraw information and keep it.

여기에서는 상술한 바와 같이 도 2의 (a)에 도시한 고딕체의 알파벳 「A」를 1000 메쉬의 좌표상에서 직선의 집합으로서 표현하는 윤곽정보를 설명을 위해 이용한다. 도 2의 (b)에 도시된 바와 같이 「A」의 윤곽정보는 연속하는 윤곽마다 윤곽(1), 윤곽(2)로 나눌 수 있는 좌표상의 각 점으로 이루어지며, 각 점을 순서대로 결합함으로써 2개의 윤곽이 그려진다. 또한 여기에서는 직선만으로 이루어지는 「A」에 대하여 설명하지만 2차 곡선이나 3차 곡선이 병용되는 문자에 대해서도 마찬가지로 본 발명을 적용할 수 있다.Here, as described above, contour information representing the alphabet "A" of the Gothic font shown in Fig. 2A as a set of straight lines on the coordinates of 1000 mesh is used for explanation. As shown in (b) of FIG. 2, the contour information of "A" is composed of points in coordinates that can be divided into contour 1 and contour 2 for each continuous contour. Two outlines are drawn. In addition, although "A" which consists only of a straight line is demonstrated here, this invention can be similarly applied also to the character which a quadratic curve and a cubic curve use together.

윤곽정보 확대축소부(102)(도 10 참조)는 윤곽정보 유지부(101)에 유지되어 있는 윤곽정보를 지시받는 요구 사이즈에 따라 확대 축소한다. 여기에서는 종래예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치와 마찬가지로 지시되는 요구 사이즈를 10×10 픽셀, 1 픽셀이 4×4 서브 픽셀로 구성되는 것으로 하고, 윤곽의 내부에 포함되는 (윤곽상을 포함하는 것으로 함) 서브 픽셀을 바탕으로 각 픽셀의 기초로 각 픽셀의 계조값이 결정되는 것으로 한다(서브 메쉬로서 4 이외의 수를 이용할 수도 있다).The outline information enlargement and reduction unit 102 (refer to FIG. 10) enlarges and reduces the outline information held in the outline information holding unit 101 in accordance with the requested size. Here, as in the grayscale shared data generating apparatus of the conventional grayscale shared data processing system, the required size indicated is 10x10 pixels and 1 pixel is composed of 4x4 subpixels, and is included in the outline (contour image). It is assumed that the gray level value of each pixel is determined based on each pixel based on the sub-pixels (a number other than 4 may be used as the sub mesh).

기본 계조값 산출부(103)는 윤곽정보 확대축소부(102)에 의해 (확대 또는) 축소된 윤곽정보를 바탕으로 각 픽셀에 대한 기본 계조값을 산출한다. 각 픽셀의 기본 계조값은 복수의 계조수의 계조 데이터를 생성할 때, 그 계조를 결정하기 위한 기초로 되는 값이다. 각 픽셀은 4×4=16 서브 픽셀로 구성되는 것이며, 문자의 윤곽의 내부에 포함되는 서브 픽셀의 수에 대응시켜 O∼16의 기본 계조값을 할당한다.The basic gray scale value calculator 103 calculates a basic gray scale value for each pixel based on the outline information (enlarged or reduced) by the outline information enlarged and reduced unit 102. The basic gradation value of each pixel is a value used as a basis for determining the gradation when generating gradation data of a plurality of gradations. Each pixel is composed of 4x4 = 16 subpixels, and a basic gray scale value of 0 to 16 is assigned corresponding to the number of subpixels included in the outline of the character.

전개 버퍼(104)는 계조 공유 데이터를 생성하는 과정에서 기본 계조값 산출부(103)에 의해 산출되는 각 픽셀의 기본 계조값 데이터를 유지하는 일시적인 버퍼이고, 지시된 요구 사이즈에 따른 픽셀수와 1 픽셀을 분할하는 서브 픽셀수에 의해 정해지는 서브 픽셀 단위로 기본 계조값 데이터를 유지한다. 여기에서는 지시된 요구 사이즈는 10×10 픽셀, 1 픽셀은 4×4 서브 픽셀로 구성되는 것으로 하고 있기 때문에, 1문자에 대하여 40×40 서브 픽셀분의 영역이 전개 버퍼(104) 상에서 점유되는 것으로 된다.The expansion buffer 104 is a temporary buffer which holds the basic gray level data of each pixel calculated by the basic gray level calculation unit 103 in the process of generating grayscale shared data, and the number of pixels according to the requested request size and one. Basic grayscale value data is held in subpixel units determined by the number of subpixels for dividing pixels. In this case, since the requested request size is 10x10 pixels and one pixel is composed of 4x4 subpixels, an area of 40x40 subpixels is occupied on the expansion buffer 104 for one character. do.

또한 계조 공유 데이터 생성부(105)는 기본 계조값 산출부(103)에 의해 전개 버퍼에(104)에 전개된 기본 계조값 데이터의 각 픽셀에 대하여 제 1 계조수를 갖는 계조값, 제 2 계조수를 갖는 계조값을 구하고, 이들 서로 다른 복수의 계조수로 이루어지는 복수종의 계조 데이터를 공유하는 계조 공유 데이터를 생성한다.In addition, the gradation shared data generating unit 105 has a gradation value having a first gradation number and a second gradation for each pixel of the basic gradation value data developed in the expansion buffer 104 by the basic gradation value calculation unit 103. A tone value having a number is obtained, and tone sharing data for sharing a plurality of types of tone data composed of a plurality of these different tone numbers is generated.

계조 공유 데이터 복원장치에서는 계조 공유 데이터 인출부(106)는 계조 공유 데이터 생성장치에서 생성된 계조 공유 데이터를 인출하고, 전개 버퍼(107)에 저장한다. 전개 버퍼(107)는 계조 공유 데이터 복원의 과정에서 계조 공유 데이터 인출부(106)에 의해 인출된 계조 공유 데이터를 저장하는 일시적인 버퍼이다.In the grayscale shared data restoring apparatus, the grayscale shared data extracting unit 106 extracts the grayscale shared data generated by the grayscale shared data generating apparatus and stores it in the expansion buffer 107. The expansion buffer 107 is a temporary buffer that stores the grayscale shared data extracted by the grayscale shared data extracting unit 106 in the process of restoring the grayscale shared data.

계조수 선택부(108)는 요구된 계조수에 의해 제 1 계조 데이터 복원부(109) 및 제 2 계조 데이터 복원부(110) 중 어느 하나를 선택적으로 기동한다.The gradation number selection section 108 selectively activates either one of the first gradation data restoration section 109 and the second gradation data restoration section 110 by the requested gradation number.

제 1 계조 데이터 복원부(109)는 계조수 선택부(108)로부터의 지시에 따라 전개 버퍼(107)에 저장되어 있는 계조 공유 데이터로부터 각 픽셀에 대하여 제 1 계조수를 갖는 계조수를 구하고, 제 1 계조 데이터를 생성한다. 또한 제 2 계조 데이터 복원부(110)는 계조수 선택부(108)로부터의 지시에 따라 전개 버퍼(107)에 저장되어 있는 계조 공유 데이터로부터 각 픽셀에 대하여 제 2 계조수를 갖는 계조값을 구하여 제 2 계조 데이터를 생성한다.The first gradation data restoring unit 109 obtains the gradation number having the first gradation number for each pixel from the gradation sharing data stored in the expansion buffer 107 according to the instruction from the gradation number selection unit 108, First grayscale data is generated. In addition, the second grayscale data restoring unit 110 obtains a grayscale value having a second grayscale number for each pixel from grayscale shared data stored in the expansion buffer 107 according to an instruction from the grayscale number selecting unit 108. Generate second tone data.

이들과 같은 계조 공유 데이터 생성장치, 계조 공유 데이터 복원장치에서의 처리의 순서를 설명한다.The procedure of processing in the gradation shared data generating apparatus and the gradation shared data restoration apparatus will be described.

여기에서는 제 1 계조 데이터로서 2계조 데이터를, 제 2 계조 데이터로서 3계조 데이터를 취급하는 것으로 한다. 제 1, 제 2 종래예의 계조 공유 데이터 처리 시스템과 마찬가지로 각 픽셀에 대한 2계조 데이터의 계조값에 대해서는 전경색에 대하여 1, 배경색에 대하여 0의 계조값을 할당하고, 3계조 데이터의 계조값에 대해서는 전경색에 대하여 2, 중간색에 대하여 1, 배경색에 대하여 0을 할당하는 것으로 한다.Here, it is assumed that two gradation data is treated as the first gradation data and three gradation data is used as the second gradation data. As in the grayscale shared data processing system of the first and second conventional examples, a grayscale value of 1 for the foreground color and 0 for a background color is assigned to the grayscale value of the two-tone data for each pixel, and for the grayscale value of the three-tone data. It is assumed that 2 is assigned to the foreground color, 1 to the intermediate color, and 0 to the background color.

계조 공유 데이터 생성장치로써 문자나 도형 등의 윤곽을 나타내는 아웃라인데이터로부터 계조 공유 데이터가 생성되기까지의 처리의 순서를 (처리 1)∼(처리 4)로 하여 우선 설명한다. 여기에서는 제 1, 제 2 종래예의 계조 공유 데이터 처리 시스템에서의 설명과 마찬가지로 알파벳 「A」에 대한 처리를 예로서 들지만, 한자, 히라가나, 가타가나, 기타의 언어를 나타내는 문자, 이들 이외의 도형에 대해서도 마찬가지로 본 발명을 적용할 수 있다.As a gradation shared data generating apparatus, the procedure from the outline data showing the outline of a character or a figure to the generation of the gradation shared data is described first as (process 1) to (process 4). Here, the processing for the alphabet "A" is taken as an example similarly to the description in the gradation sharing data processing system of the first and second conventional examples, but also for characters of Chinese characters, hiragana, katakana, other languages, and figures other than these. Similarly, the present invention can be applied.

(처리 1) 처음으로 윤곽정보 유지부(101)(도 10 참조)는 요구된 문자에 대한 윤곽정보를 아웃라인 데이터를 기억하고 있는 기억부(도 11의 기억부(1)에 대응함)로부터 인출하여 유지한다. 여기에서는 제 1, 제 2 종래예의 계조 공유 데이터 처리 시스템과 마찬가지로 도 2의 (b)에 도시된 윤곽정보가 아웃라인 데이터로부터 얻어져서 유지된다.(Process 1) For the first time, the outline information holding unit 101 (see FIG. 10) extracts outline information about a requested character from a storage unit (corresponding to the storage unit 1 in FIG. 11) that stores outline data. To keep it. Here, the outline information shown in Fig. 2B is obtained from the outline data and retained, similarly to the gradation shared data processing system of the first and second conventional examples.

(처리 2) 윤곽정보 확대축소부(102)는 윤곽정보 유지부(101)에 의해 인출된 1000 메쉬의 좌표상에서 표현되는 윤곽정보를, 요구 사이즈인 10×10 픽셀(1 픽셀이 4×4 서브 픽셀로 이루어지는 것으로서 40×40 서브 픽셀)에 적합하도록 (확대) 축소한다(윤곽정보 확대축소부(102)는 필요에 따라 윤곽정보를 확대할 수 있지만, 여기에서는 축소를 행한다)(Process 2) The outline information expansion and contraction unit 102 supplies outline information expressed on the coordinates of 1000 meshes drawn out by the outline information holding unit 101 to 10 × 10 pixels (one pixel is 4 × 4 sub) as the required size. It is made up of pixels and is reduced (enlarged) to be suitable for 40 x 40 subpixels. (The outline information enlargement and reduction unit 102 can enlarge the outline information as necessary. However, the outline information is reduced.)

보다 구체적으로는 윤곽정보에 포함되는 각 좌표값을 다음의 수학식 1을 이용하여 축소한다.More specifically, each coordinate value included in the contour information is reduced using Equation 1 below.

여기에서 SP는 축소후의 좌표값, OP은 축소전의 좌표값, Np은 요구 사이즈의 픽셀수, Nsp는 서브 메쉬수, EM은 원래의 윤곽정보에 대한 메쉬수이고, trunc(X)는 인수(X)의 값을 사사오입하는 함수로 한다. 본 계조 공유 데이터 생성장치에서는 Np는 10, Nsp는 4, EM은 1000이다.Where SP is the coordinate value after reduction, OP is the coordinate value before reduction, Np is the number of pixels of the required size, Nsp is the number of submeshes, EM is the number of meshes for the original contour information, and trunc (X) is the argument (X Let's round off the value of). In this grayscale shared data generating device, Np is 10, Nsp is 4, and EM is 1000.

예를 들면 윤곽정보에 포함되는 좌표값(125, 75)은 상기 수학식 1을 적용하면 좌표값(5, 3)으로 축소된다. 이와 같은 축소를 도 2의 (b)에 도시된 윤곽정보에 포함되는 좌표값에 대하여 반복함으로써 도 4의 (b)에 도시한 서브 픽셀에 대응하는 좌표값을 이용한 축소후의 윤곽정보가 구해진다.For example, the coordinate values 125 and 75 included in the contour information are reduced to the coordinate values 5 and 3 by applying Equation 1 above. Such reduction is repeated for the coordinate values included in the contour information shown in FIG. 2B to obtain contour information after reduction using the coordinate values corresponding to the subpixels shown in FIG. 4B.

(처리 3) 기본 계조값 산출부(103)(도 10 참조)는 윤곽정보 확대축소부(102)에서 구해진 축소후의 윤곽정보로부터 각 픽셀의 기본 계조값을 구하여, 전개 버퍼(104)에 전개한다. 이 각 픽셀의 기본 계조값은 상술한 바와 같이 픽셀을 구성하는 서브 픽셀중, 윤곽정보에 의해 나타나는 윤곽의 내부에 포함되는 것의 개수에 의해 결정되는 것으로 하지만, 이 이외의 계산을 이용하여 기본 계조값을 구할 수도 있다.(Process 3) The basic gradation value calculation unit 103 (see FIG. 10) obtains the basic gradation value of each pixel from the reduced contour information obtained by the contour information expansion and reduction unit 102, and expands it to the expansion buffer 104. . As described above, the basic gradation value of each pixel is determined by the number of sub-pixels constituting the pixel included in the outline represented by the contour information, but the basic gradation value is calculated using other calculations. You can also get

이상과 같은 윤곽정보 확대축소부(102)에서의 (처리 2), 기본 계조값 산출부(103)에서의 (처리 3)을 흐름도를 이용하여 더욱 상세히 설명한다.(Process 2) in the outline information expansion and contraction unit 102 and (Process 3) in the basic gradation value calculation unit 103 will be described in more detail using a flowchart.

도 12는 윤곽정보 확대축소부(102) 및 기본 계조값 산출부(103)에서의 처리의 순서를 나타내는 흐름도이다. 또한 도 13은 윤곽정보 확대축소부(102)에서의 처리를 끝낸 시점에서의 전개 버퍼(104)의 상태를 도시한 도면이고, 도 14는 기본 계조값 산출부(103)에서의 처리를 끝낸 시점에서의 전개 버퍼(104)의 상태를 도시한 도면이다.12 is a flowchart showing the procedure of processing in the outline information expansion and contraction unit 102 and the basic gradation value calculation unit 103. FIG. 13 is a view showing the state of the expansion buffer 104 at the time when the processing in the outline information expansion and contraction unit 102 is finished, and FIG. 14 is the time when the processing in the basic gradation value calculation unit 103 is finished. The state of the expansion buffer 104 in FIG.

윤곽정보 확대축소부(102)의 처리에서는 우선 미처리된 윤곽(도 2의 (b)에 도시한 「A」의 윤곽 1, 윤곽 2에 대응함)이 있는지의 여부가 판단된다(S11). 미처리된 윤곽이 있으면(S11에서, 예), 이 윤곽에 포함되는 미처리된 윤곽정보(도 2의 (b)에 도시된 윤곽 1, 윤곽 2에 포함되는 좌표 값에 대응함)가 있는지의 여부가 판단된다(S12).In the process of the outline information expansion and contraction unit 102, first, it is determined whether there is an unprocessed outline (corresponding to the outline 1 and the outline 2 of "A" shown in Fig. 2B) (S11). If there is an unprocessed outline (YES in S11), it is determined whether there is unprocessed outline information (corresponding to the coordinate values included in the outline 1 and outline 2 shown in Fig. 2B) in this outline. (S12).

미처리된 윤곽정보가 있으면(S12에서, 예), 이 미처리의 윤곽정보가 확대 축소되어 인출되며(S13), 이 좌표값이 전개 버퍼(104)에 플롯되어 S12로 처리가 이행된다(S14). 또한 미처리된 윤곽정보가 없으면(S12에서, 아니오), 전개 버퍼(104)에 플롯되어 있는 전체 좌표값이 직선으로 연결되며(S15), S11로 처리가 이행된다. 또한 이 윤곽을 형성하는 전체 좌표값이 직선으로 연결될 때에는 종점 좌표와 시점 좌표는 직선으로 연결된다.If there is unprocessed outline information (YES in S12), the outline information of the unprocessed outline is enlarged and reduced and taken out (S13), and this coordinate value is plotted in the expansion buffer 104, and the process proceeds to S12 (S14). If there is no unprocessed outline information (NO in S12), all coordinate values plotted in the expansion buffer 104 are connected in a straight line (S15), and the process proceeds to S11. In addition, when all coordinate values which form this outline are connected by a straight line, an end point coordinate and a viewpoint coordinate are connected by a straight line.

이들 처리를 반복한 후, 미처리된 윤곽이 없어지면(S11에서, 아니오), 기본 계조값 산출부(103)에서의 처리로 이행된다.After repeating these processes, if the unprocessed outline disappears (NO in S11), the process proceeds to the process in the basic gradation value calculating unit 103.

이 윤곽정보 확대축소부(102)에서의 처리를 마친 시점에서의 전개 버퍼(104)의 상태는 도 13에 도시한 바와 같은 것으로 된다. 도 13에는 서브 픽셀로 이루어지는 좌표상에 「A」의 윤곽만이 그려져 있는 상태가 도시되어 있다.The state of the expansion buffer 104 at the time when the processing in the outline information expansion and contraction unit 102 is finished is as shown in FIG. FIG. 13 shows a state in which only the outline of "A" is drawn on the coordinates of the subpixels.

윤곽정보 확대축소부(102)에서의 처리에 이어서 기본 계조값 산출부(102)의 처리에서는, 먼저 미처리의 픽셀이 있는지의 여부가 판단된다(S16). 미처리된 픽셀이 있으면(S16에서, 예), 이 미처리된 픽셀이 전개 버퍼(104)로부터 소정의 순서로 인출되어(S17), 윤곽내에 포함되는 서브 픽셀의 수로부터 픽셀에 대한 기본 계조값이 구해진다(S18).Subsequently, in the processing of the basic gradation value calculating unit 102, following the processing in the outline information expanding and contracting unit 102, it is determined whether or not there is an unprocessed pixel (S16). If there are unprocessed pixels (YES in S16), these unprocessed pixels are fetched from the expansion buffer 104 in a predetermined order (S17), and the basic gray level value for the pixels is determined from the number of subpixels included in the outline. It becomes (S18).

이들 처리를 반복한 후, 미처리의 픽셀이 없어지면(S16에서, 아니오), 처리는 종료된다.After repeating these processes, if an unprocessed pixel is lost (NO in S16), the process ends.

이 기본 계조값 산출부(103)에서의 처리를 마친 시점에서의 전개 버퍼(104)의 상태는 도 14에 도시한 바와 같은 것으로 된다. 도 14에서는 상술한 바와 같이 하여 각 픽셀에 대하여 기본 계조값이 산출은 마친 상태가 도시되어 있다(도 14내의 2계조의 계조값=1, 3계조의 계조값=1에 대하여 후술한다.The state of the expansion buffer 104 at the time when the processing in the basic gradation value calculation unit 103 is finished is as shown in FIG. In FIG. 14, the state in which the basic gradation value has been calculated for each pixel as described above is shown (the gradation value of two gradations = 1 and the gradation value of three gradations = 1 in FIG. 14 will be described later.

(처리 4) 계조 공유 데이터 생성부(105)(도 10 참조)는 (도 14에 도시된 상태의) 전개 버퍼(104)의 각 픽셀에 대한 기본 계조값으로부터 2계조 데이터, 3계조 데이터에서 공용되는 계조값(계조 공유 데이터에 대한 계조값)을 구한다. 이 처리를 흐름도를 이용하여 보다 상세하게 설명한다.(Process 4) The gradation shared data generating unit 105 (see Fig. 10) is shared with two gradation data and three gradation data from the basic gradation value for each pixel (in the state shown in Fig. 14). The resulting gray scale value (gradation value for the gray scale shared data) is obtained. This process will be described in more detail using a flowchart.

도 15는 계조 공유 데이터 생성부(105)에서의 처리의 순서를 도시한 흐름도이다. 또한 도 16은 계조 공유 데이터 생성부(105)에서 2계조 데이터의 계조값, 3계조 데이터의 계조값으로부터 계조 공유 데이터를 구하기 위해 사용되는 매트릭스표를 도시한 도면이며, 도 17은 매트릭스표가 이용됨으로써 구해진 알파벳 「A」의 각 픽셀에 대한 계조 공유 데이터의 계조값을 도시한 도면이다.15 is a flowchart showing a procedure of processing in the gradation shared data generating unit 105. FIG. 16 is a diagram showing a matrix table used for obtaining gradation shared data from gradation values of two gradation data and gradation values of three gradation data in the gradation sharing data generation unit 105, and FIG. 17 is used by the matrix table. It is a figure which shows the gradation value of gradation shared data with respect to each pixel of the alphabet "A" calculated | required by this.

계조 공유 데이터 생성부(105)에서는 우선 미처리된 픽셀이 있는지의 여부가 판단된다(S21). 미처리된 픽셀이 있으면(S21에서, 예), 이 픽셀에 대한 기본 계조값(Lorg)이 전개 버퍼(104)로부터 인출된다(S22). 이 인출된 기본 계조값(Lorg)에는 다음의 수학식 2, 수학식 3이 적용되어 2계조의 계조값이 구해진다(S23, S24, S25).The grayscale shared data generating unit 105 first determines whether there is an unprocessed pixel (S21). If there is an unprocessed pixel (YES in S21), a basic gray value Lorg for this pixel is retrieved from the expansion buffer 104 (S22). Equations 2 and 3 below are applied to the extracted basic gradation value Lorg to obtain two gradation values (S23, S24, and S25).

여기에서 L2는 2계조 데이터에서의 계조값이고, SP는 1 픽셀을 구성하는 서브 픽셀수이며, TH2는 기본 계조값을 2계조에서의 전경색(계조값 1)과 배경색(계조값 0)으로 구분하기 위한 임계치로 0에서 SP까지의 정수값을 취한다.Where L2 is the grayscale value in the two-tone data, SP is the number of subpixels constituting one pixel, and TH2 divides the basic grayscale value into the foreground color (gradation value 1) and the background color (gradation value 0) in the two grayscales. An integer value from 0 to SP is used as a threshold for doing this.

본 계조 공유 데이터 생성장치에서는 SP=16이며, TH2=8로 한다. 즉 문자의 윤곽의 내부에 있는 서브 픽셀의 수가 8 이상의 경우 즉 픽셀의 1/2 이상이 윤곽의 내부에 모이는 경우에는 계조값은 1로 되고, 그 이외의 경우(픽셀의 1/2 미만이 윤곽의 내부에 모이는 경우)에는 계조값은 0으로 된다. 이 임계치(TH2)에는 이 이외의 값을 이용할 수 있으며, 또 2계조 데이터에서의 계조값을 결정하기 위해 상기 수학식 2, 수학식 3 이외(예를 들면 기본 계조값과 2계조 데이터의 계조값의 대응을 나타내는 표 등)를 이용할 수도 있다.In this gradation shared data generating device, SP = 16 and TH2 = 8. That is, when the number of subpixels in the outline of the character is 8 or more, that is, when 1/2 or more of the pixels are gathered in the outline, the gradation value is 1, otherwise (less than half of the pixels are outlines). In the case of gathering inside the gradation value, the gray scale value is zero. A value other than this can be used for this threshold value TH2, and in order to determine the gradation value in the two gradation data, other than the above expressions (2) and (3) (for example, the basic gradation value and the gradation value of the two gradation data). Table showing the correspondence of?).

이어서 기본 계조값(Lorg)에는 다음의 수학식 4∼수학식 6이 적용되어 3계조의 계조값이 구해진다(S26, S27, S28, S29, S30).Subsequently, the following tone expressions (4) through (6) are applied to the basic tone value Lorg to obtain three tone values (S26, S27, S28, S29, and S30).

여기에서 L3은 3계조 데이터에서의 계조값이고, TH31, TH32(TH31TH32)는 기본 계조값을 3계조에서의 전경색(계조값 2)과 중간색(계조값 1)과 배경색(계조값 0)으로 분리하기 위한 임계치로 0부터 SP까지의 정수값을 취한다.Where L3 is the gradation value in the 3rd gradation data, and TH31, TH32 (TH31TH32) separates the basic gradation value into the foreground color (gradation value 2), intermediate color (gradation value 1) and background color (gradation value 0) in the 3rd gradation. An integer value from 0 to SP is used as a threshold for this.

본 계조 공유 데이터 생성장치에서는 TH31=5, TH32=11로 한다. 즉 문자의 윤관의 내부에 있는 서브 픽셀의 수가 16∼11의 경우에는 계조값은 2로 되고, 10∼5의 경우에는 계조값은 1로 되고, 4∼0의 경우에는 계조값은 0으로 된다. 상술한 바와 같이 임계치(TH31, TH32)에는 이 이외의 값을 이용할 수 있으며 3계조 데이터에서의 계조값을 결정하기 위해 상기 수학식 4∼수학식 6 이외(예를 들면 기본 계조값과 3계조 데이터의 계조값의 대응을 나타내는 표 등)를 이용할 수도 있다.In this gradation shared data generating apparatus, TH31 = 5 and TH32 = 11. That is, in the case of the number of subpixels in the liminal tube of the character 16 to 11, the gradation value becomes 2, in the case of 10 to 5 the gradation value becomes 1, and in the case of 4 to 0, the gradation value becomes 0. . As described above, other values may be used for the thresholds TH31 and TH32, and other than the above Equations 4 to 6 to determine the gradation value in the three gradation data (for example, the basic gradation value and the three gradation data). A table indicating correspondence of the gradation values can be used.

이들 처리의 후 2계조 데이터에 대한 계조값(0 또는 1), 3계조 데이터에 대한 계조값(0부터 2중 어느 하나)에 대하여 도 16에 도시된 매트릭스표에 의해 계조 공유 데이터에 대한 계조값이 구해진다(S31).The gradation value for gradation shared data by the matrix table shown in FIG. 16 for the gradation value (0 or 1) for the two gradation data after these processing and the gradation value (any one of 0 to 2) for the three gradation data. This is obtained (S31).

예를 들면 도 14에 도시된 기본 계조값(9)의 픽셀은 상술한 바와 같은 처리에 의해 2계조 데이터에서 계조값 1, 3계조 데이터에서 계조값 1로 각각 산출되며, 매트릭스표가 이용되어 계조 공유 데이터에 대한 계조값 2가 구해진다(이 계조 공유 데이터에 대한 계조값을 구하기 위한 매트릭스표는 도 16에 도시된 이외의 것을 이용할 수 있으며, 매트릭스표 이외에 임계치 등을 이용하여 계조 공유 데이터의 계조값을 구할 수 있다).For example, the pixel of the basic gradation value 9 shown in Fig. 14 is calculated as the gradation value 1 from the 2 gradation data and the gradation value 1 from the 3 gradation data by the above-described processing, and the matrix table is used to make the gradation The gradation value 2 for the shared data is obtained (a matrix table for obtaining the gradation value for this gradation shared data can be used other than that shown in FIG. 16, and the gradation of the gradation shared data using a threshold or the like other than the matrix table is used. Value can be obtained).

상기한 바와 같이 하여 각 픽셀에 대하여 계조 공유 데이터를 이용함으로써 도 17에 도시한 바와 같은 각 픽셀에 대한 계조 공유 데이터의 계조값이 구해진다.By using the gray scale shared data for each pixel as described above, the gray scale value of the gray scale shared data for each pixel as shown in FIG. 17 is obtained.

본 계조 공유 데이터 처리 시스템에서는 도 16에 도시한 바와 같이 계조 공유 데이터는 1 픽셀에 대하여 2 비트(0으로부터 3까지의 값을 취한다)로 표현되어 있고, 0, 1, 2의 계조값을 취하는 3계조 데이터와 같은 데이터 사이즈를 갖는 것으로 된다.In this grayscale shared data processing system, as shown in FIG. 16, grayscale shared data is represented by 2 bits (takes values from 0 to 3) for one pixel, and takes grayscale values of 0, 1, and 2. It has the same data size as the three-tone data.

이어서 이들과 같이 하여 계조 공유 데이터 생성장치에서 생성된 계조 공유 데이터를, 계조 공유 데이터 복원장치에서 복원할 때의 처리의 순서를 처리 5, 처리 6, 처리 7-1, 처리 7-2로서 설명한다.Subsequently, the procedure of the process at the time of restoring the grayscale shared data generated by the grayscale shared data generating device in the grayscale shared data restoring apparatus as described above will be described as processing 5, processing 6, processing 7-1 and processing 7-2. .

(처리 5) 계조 공유 데이터 인출부(106)(도 10 참조)는 계조 공유 데이터 생성장치에 의해 생성된 계조 공유 데이터를 인출하고, 전개 버퍼(107)에 전개한다.(Process 5) The gradation shared data extracting unit 106 (see Fig. 10) extracts the gradation shared data generated by the gradation sharing data generating apparatus and expands it to the expansion buffer 107.

(처리 6) 계조수 선택부(108)는 요구된 계조수가 2계조이면 제 1 계조 데이터 복원부(109)를 기동하고, 요구된 계조수가 3계조이면 제 2 계조 데이터 복원부(110)를 기동한다(요구된 계조수가 2계조인지 3계조인지에 따라 다음에 나타내는 (처리 7-1), (처리 7-2) 중 어느 하나가 선택된다).(Process 6) The gradation number selection section 108 starts the first gradation data restoration section 109 when the requested gradation count is two gradations, and activates the second gradation data restoration section 110 when the requested gradation count is three gradations. (One of the following (Process 7-1) and (Process 7-2) is selected depending on whether the requested number of gradations is 2 or 3 gradations).

도 18의 (a)는 제 1 계조 데이터 복원부(109)에서 계조 공유 데이터의 계조값을 2계조 데이터의 계조값으로 변환할 때의 변환표를 도시한 도면이며, 도 18의 (b)는 제 2 계조 데이터 복원부(110)에서 계조 공유 데이터의 계조값을 3계조 데이터의 계조값으로 변환할 때의 변환표를 도시한 도면이다(이들 변환표를 이용하는 이외에 임계치 등을 이용하여 계조값의 변환을 행할 수 있다). 또한,FIG. 18A is a diagram showing a conversion table when the gradation value of gradation shared data is converted into the gradation value of two gradation data by the first gradation data restoration unit 109, and FIG. A diagram showing a conversion table when the second grayscale data restoration unit 110 converts the grayscale values of the grayscale shared data into grayscale values of the three grayscale data. Conversion can be done). Also,

(처리 7-1) 요구된 계조수가 2계조수이면, 제 1 계조 데이터 복원부(109)는 전개 버퍼(107)에 전개된 각 픽셀에 대한 계조 공유 데이터의 계조값을 인출하고, 이 계조값에 대하여 도 18의 (a)에 도시한 변환표를 적용하여 2계조 데이터에서의 계조값을 구한다.(Process 7-1) If the requested tone number is two tone numbers, the first tone data restoration unit 109 extracts a tone value of the tone sharing data for each pixel developed in the expansion buffer 107, and this tone value On the basis of the conversion table shown in Fig. 18A, the tone values of the two tone data are obtained.

(처리 7-2) 요구된 계조수가 3계조이면 제 2 계조 데이터 복원부(110)는 전개 버퍼(107)에 전개된 각 픽셀에 대한 계조 공유 데이터의 계조값을 인출하고, 이 계조값에 대하여 도 18의 (b)에 도시한 변환표를 적용하여 3계조 데이터에서의 계조값을 구한다.(Process 7-2) If the requested number of gradations is three gradations, the second gradation data restoring unit 110 extracts the gradation value of the gradation shared data for each pixel developed in the expansion buffer 107, and with respect to the gradation value. The gradation value in the three gradation data is obtained by applying the conversion table shown in Fig. 18B.

도 19는 (처리 7-1)에 의해 계조 공유 데이터로부터 생성되는 2계조 데이터에 의한 알파벳 「A」를 도시한 도면이며, 도 20은 (처리 7-2)에 의해 계조 공유 데이터로부터 생성되는 3계조 데이터에 의한 알파벳 「A」를 도시한 도면이다.Fig. 19 is a diagram showing the alphabet " A " using two-tone data generated from grayscale shared data by (process 7-1), and Fig. 20 shows three generated from grayscale shared data by (process 7-2). It is a figure which shows the alphabet "A" by gradation data.

이상과 같이 본 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치에서는 아웃라인 데이터로부터 2계조 데이터(1 비트)의 계조값, 3계조 데이터(2 비트)의 계조값이 산출되며, 이들로부터 데이터량의 증가를 수반하지 않고 계조 공유 데이터(2 비트)가 생성된다. 계조 공유 데이터 복원장치에서는 계조 공유 데이터 생성장치에서 구해진 2계조 데이터, 3계조 데이터와 동일한 데이터가 품질의 열화를 발생하는 일 없이 계조 공유 데이터로부터 복원된다.As described above, in the gradation shared data generating apparatus of the gradation shared data processing system, the gradation value of the two gradation data (1 bit) and the gradation value of the three gradation data (2 bit) are calculated from the outline data, Grayscale shared data (2 bits) is generated without increasing. In the gradation shared data restoring apparatus, the same data as the two gradation data and the three gradation data obtained by the gradation sharing data generating apparatus are restored from the gradation sharing data without causing deterioration of quality.

이들과 같은 계조 공유 데이터 생성장치, 계조 공유 데이터 복원장치를 포함하는 계조 공유 데이터 처리 시스템을 다음에 도 21에 도시한 바와 같이 위성방송 시스템에서 이용할 수 있다.The gray scale shared data processing system including the gray scale shared data generating apparatus and the gray scale shared data restoring apparatus can be used in the satellite broadcasting system as shown in FIG.

도 21은 본 계조 공유 데이터 처리 시스템을 이용한 위성방송 시스템의 구성을 도시한 도면이다. 또한 도 22는 본 위성방송 시스템의 셋톱박스(STB)(503)에 기억되는 계조 공유 데이터의 제 1 구성예를 도시한 도면이며, 도 23은 STB(503)에 기억되는 계조 공유 데이터의 제 2 구성예를 도시한 도면이고, 도 24는 STB(503)에 기억되는 계조 공유 데이터의 제 3 구성예를 도시한 도면이다.21 is a diagram showing the configuration of a satellite broadcasting system using the present gray scale shared data processing system. FIG. 22 is a diagram showing a first configuration example of the gray scale shared data stored in the set top box (STB) 503 of the satellite broadcasting system, and FIG. 23 is a second diagram of the gray scale shared data stored in the STB 503. FIG. 24 is a diagram illustrating a configuration example, and FIG. 24 is a diagram illustrating a third configuration example of the gray scale shared data stored in the STB 503.

본 위성방송 시스템은 방송국(501), 인공위성(502), STB(503), 텔레비전(504)을 포함하고 있다.This satellite broadcasting system includes a broadcasting station 501, a satellite 502, an STB 503, and a television 504.

방송국(501)은 영상정보, 음성정보, 문자정보 등을 인공위성(502)을 통해 STB(503)에 송신한다. STB(503)는 이들 정보를 수신하여 영상정보, 음성정보, 문자정보를 디코드하고, 텔레비전(504)에서 영상, 음성을 재생하여 문자를 표시한다. 여기에서는 문자정보에 따라 계조 공유 데이터를 복원하는 STB(503)를 상술의 계조 공유 데이터 복호장치(도 10 참조)에 대응시켜, 이러한 계조 공유 데이터를 생성하고 STB(503)에 기억시키기 위해 이용하는 STB(503)의 제조시의 장치를 상술의 계조 공유 데이터 생성장치에 대응시킬 수 있다.The broadcasting station 501 transmits image information, audio information, text information, and the like to the STB 503 through the satellite 502. The STB 503 receives these information to decode the video information, the audio information, and the text information, and reproduces the video and the audio on the television 504 to display the text. Here, the STB 503 for restoring the grayscale shared data in accordance with the character information is associated with the grayscale shared data decoding apparatus (see FIG. 10) described above, and the STB used to generate and store the grayscale shared data in the STB 503. The apparatus at the time of manufacture of 503 can be matched with the above-mentioned gray scale shared data generating apparatus.

본 위성방송 시스템에서는 방송국(501)으로부터의 문자정부(문자 코드)의 수신에 기초하여 문자의 표시가 행해지기 때문에, STB(503)는 복수의 문자(또는 도형)에 대한 상술한 바와 같은 계조 공유 데이터를 복수이면서 부가적인 정보를 수반하여, 도 22, 도 23, 도 24에 도시한 바와 같은 구성으로 기억하고 있다(외자(外字) 등의 특정한 문자에 대해서는 표시가 행해질 때만 그 계조 공유 데이터가 방송국(501)으로부터 STB(503)으로 송신되는 것으로 할 수 있다. 또한 도 10에 도시된 계조 공유 데이터 인출부(106)는 문자 코드가 입력됨으로써 계조 공유 데이터가 입력될 때와 마찬가지로 후단의 전개 버퍼(107), 계조수 선택부(108)에 대한 처리를 행하는 것으로 한다).In the satellite broadcasting system, characters are displayed on the basis of the reception of the character part (character code) from the broadcasting station 501, so that the STB 503 shares the gray levels as described above for the plurality of characters (or figures). The data is stored in a configuration as shown in Figs. 22, 23, and 24 with a plurality of additional information (the gradation shared data is displayed only when a display is performed for a specific character such as foreign characters). It is possible to transmit to the STB 503 from the 501. The gradation shared data extracting unit 106 shown in Fig. 10 has a later expansion buffer ( 107), and processing for the tone number selection unit 108).

도 22에 도시한 바와 같이 STB(503)에는 1번째의 문자(예를 들면 「A」)에 대한 계조 공유 데이터, 2번째의 문자(예를 들면 「B」)에 대한 계조 공유 데이터, 3번째의 문자(예를 들면 「C」)에 대한 계조 공유 데이터, …가 순서대로 정리되어(예를 들면 알파벳 전체 문자를 조(組)로 하여) 기억되어 있다. STB(503)에서는 방송국(501)으로부터의 문자코드의 수신에 의한 문자의 특정에 따라 기억되어 있는 복수의 문자에 대응하는 계조 공유 데이터로부터 필요한 데이터가 선택되어 텔레비전(504)상으로의 표시를 위한 처리가 행해진다.As shown in Fig. 22, the STB 503 has tone sharing data for the first letter (e.g. "A"), tone sharing data for the second letter (e.g. "B"), and the third. Tone-sharing data for a letter (for example, "C"); Are stored in order (e.g., all letters of the alphabet are grouped). In the STB 503, necessary data are selected from the gradation shared data corresponding to the plurality of characters stored in accordance with the character specification by reception of the character code from the broadcasting station 501, for display on the television 504. The process is performed.

또한 도 23에 도시한 바와 같이 인덱스 데이터를 복수의 문자에 대한 계조 공유 데이터에 부가할 수 있다. 인덱스 데이터는 문자 코드와 문자 코드에 대응하는 계조 공유 데이터가 저장되어 있는 기억부의 위치를 도시한 포인터를 포함하고 있고, 이 인덱스 데이터에 의해 기억부로부터의 표시가 요구되어 있는 문자에 대응하는 계조 공유 데이터의 추출 등의 처리를 신속히 행할 수 있다.As shown in FIG. 23, index data can be added to gradation shared data for a plurality of characters. The index data includes a character code and a pointer showing the position of the storage unit in which the tone sharing data corresponding to the character code is stored, and the tone sharing corresponding to the character for which display from the storage unit is requested by the index data. Processing such as data extraction can be performed quickly.

또한 도 24에 도시한 바와 같이 계조 공유 데이터의 데이터 길이, 포함되는 계조의 수, 각 계조의 계조수 등을 포함하는 부가정보를 각 문자에 대한 계조 공유 데이터에 부가할 수가 있다. 이 부가정보에 의해 상기와 같은 처리를 포함하는 각종 처리를 신속히 행할 수 있어 계조 공유 데이터 복원장치를 간소화할 수 있다.As shown in Fig. 24, additional information including the data length of the grayscale shared data, the number of grayscales included, the number of grayscales, and the like can be added to the grayscale shared data for each character. By this additional information, various processes including the above process can be performed quickly, and the gradation shared data restoration apparatus can be simplified.

이들과 같은 계조 공유 데이터와 이에 대한 부가적인 정보를 포함하는 데이터를 플로피 디스크나 광디스크 등의 데이터 기록매체에 기록하여 이들 데이터 기록매체를 배포할 수 있다.These data recording media can be distributed by recording the data including gray level shared data and additional information thereon on a data recording media such as a floppy disk or an optical disk.

상술한 바와 같은 계조 공유 데이터를 사용하는 위성방송 시스템에서는, (방송국(501)에서는 알 수 없는) STB(503)의 표시능력(최대 몇 가지의 색을 표시할 수 있는지), 영상의 내용(현재 몇 가지 색이 이용되고 있는지)에 의해 STB(503)가 기억하고 있는 계조 공유 데이터(폰트 데이터)로부터 이 데이터에 의해 표현할 수 있는 계조수를 선택하면서 문자를 표시하기 위한 계조를 팔레트에 할당할 수 있다.In the satellite broadcasting system using the grayscale shared data as described above, the display capability (how many colors can be displayed) of the STB 503 (unknown by the broadcasting station 501) and the contents of the video (currently Depending on how many colors are used, the palette for displaying characters can be assigned to the palette while selecting the number of gray scales that can be represented by the data from the grayscale shared data (font data) stored by the STB 503. have.

또 상기의 실시예의 계조 공유 데이터 처리 시스템에서는 2계조 데이터(1 비트의 데이터)와 3계조 데이터(2 비트의 데이터)로부터 2비트의 계조 공유 데이터가 생성되는 것으로 하였지만, 예를 들면 7계조 데이터(3비트의 데이터)와 10계조 데이터(4비트의 데이터)로부터 4비트의 계조 공유 데이터를 생성하는 것, 또한 2계조 데이터(1 비트의 데이터)와 3계조 데이터(2 비트의 데이터)와 5계조 데이터(3비트의 데이터)로부터 3비트의 계조 공유 데이터를 생성할 수 있다. 즉 보다 일반화하면 p(p는 2 이상의 정수) 종류의, 최대 계조수 qα(α=1, 2, …, p로 하고, m을 2 이상의 정수로 하여, qα는 2≤q1<q2<…<qp, 2m-1<qp<2m<q1+q2+…+qp를 만족시키는 정수임)를 갖는 계조 데이터로부터 최대 계조수 n(n은 qpn≤2m을 만족시키는 정수)를 갖는 계조 공유 데이터를 생성할 수 있다.In the grayscale shared data processing system of the above embodiment, it is assumed that two-bit grayscale shared data is generated from two grayscale data (one bit of data) and three grayscale data (two bits of data). Generating 4-bit gradation shared data from 3-bit data) and 10-gradation data (4-bit data), 2-gradation data (1-bit data), 3-gradation data (2-bit data), and 5-gradation Three-bit grayscale shared data can be generated from the data (three-bit data). That is, more generalized, the maximum number of gray levels q α (α = 1, 2, ..., p is of the type p (p is an integer of 2 or more), m is an integer of 2 or more, and q α is 2 ≦ q 1 <q Maximum gray level n (n is q p n ≦ 2 ) from gray level data having 2 <… <q p , 2 m-1 <q p <2 m <q 1 + q 2 +… + q p grayscale shared data having an integer satisfying m ) can be generated.

또한 상기 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치에서는 계조 공유 데이터의 바탕으로 되는 계조 데이터(상술한 2계조 데이터, 3계조 데이터를 아우트라인 데이터로부터 생성하는 것으로 하였지만, 생성할 때에 요구되는 사이즈가 고정인 경우등, 조건에 따라 계조 공유 데이터를 아우트라인 데이터로부터가 아니라 미리 기억된 계조 데이터 자체로부터 생성하는 것으로 할 수 있다. 이 경우에는 윤곽정보 유지부(101)(도 10 참조), 윤곽정보 확대축소부(102), 기본 계조값 산출부(103)는 불필요해지고, 대신 생성하는 계조 공유 데이터의 기초로 되는 계조 데이터를 기억부로부터 인출하는 계조 데이터 인출부가 추가되게 된다.Further, in the gradation sharing data generating apparatus of the gradation sharing data processing system of the above embodiment, the gradation data (the 2 gradation data and the 3 gradation data described above) which are the basis of the gradation sharing data are generated from the outline data, but the size required when generating In this case, the grayscale sharing data can be generated not from the outline data but from the stored grayscale data itself according to the condition, etc. In this case, the outline information holding unit 101 (see Fig. 10) and the outline information are generated. The enlargement / decrease section 102 and the basic gradation value calculation section 103 are unnecessary, and instead, a gradation data extracting section for extracting gradation data which is the basis of the gradation sharing data to be generated from the storage section is added.

또한 계조 공유 데이터 생성장치에서는 계조 공유 데이터 생성부(105)에 있어서 기본 계조값 데이터로부터 2계조 데이터, 3계조 데이터를 생성할 때에 사용하는 임계치(상술한 TH2, TH31, TH32)를 고정적인 것으로 했지만, 이들 임계치값을 사용자 또는 프로그램의 요구에 따라 변경 가능한 것으로 할 수 있다. 이에 따라 계조 공유 데이터 복원장치측의 표시부(5)를 갖는 디스플레이 장치의 표시특성 등의 정보가 미리 정해져 있는 경우에 이 정보를 바탕으로 디스플레이 장치의 능력을 최대한 인출할 수 있는 계조 공유 데이터를 생성할 수 있게 된다.In addition, in the gradation shared data generating device, the threshold values (TH2, TH31, and TH32 described above) used for generating two gradation data and three gradation data from the basic gradation value data in the gradation sharing data generation unit 105 are fixed. These thresholds can be changed as required by the user or the program. Accordingly, when information such as display characteristics of the display device having the display unit 5 on the side of the gradation shared data restoration device is predetermined, it is possible to generate gradation shared data capable of maximizing the capability of the display device based on this information. It becomes possible.

또 계조 공유 데이터 생성장치의 계조 공유 데이터 생성부(105)에서는 기본 계조값 산출부(103)에서 구해지는 기본 계조값을 바탕으로 계조 공유 데이터를 구하는 것으로 하였지만, 윤곽정보 확대축소부(102)에서 구해지는 확대 축소후의 윤곽정보로부터 적분을 이용한 화적연산처리 등에 의해 직접, 계조 공유 데이터를 생성할 수도 있다. 이에 따라 기본 계조값 산출부(103)는 불필요하게 되고, 장치를 보다 간소화할 수 있다.In addition, although the grayscale shared data generation unit 105 of the grayscale shared data generation device obtains the grayscale shared data based on the basic grayscale values obtained by the basic grayscale value calculating unit 103, the outline information expanding / decreasing unit 102 It is also possible to directly generate grayscale shared data from the obtained contour information after enlargement and reduction by chemical calculation processing using integration. As a result, the basic gradation value calculator 103 becomes unnecessary, and the apparatus can be simplified.

또한 계조 공유 데이터 복원장치의 계조수 선택부(108)에 외부로부터 요구된 계조수가 계조 공유 데이터에 포함되어 있는지의 여부를 판정하는 지정 계조수 판정부 및 요구된 계조수가 계조 공유 데이터에 포함되어 있지 않은 경우에 요구된 계조수의 데이터를 생성할 수 없는 취지를 외부에 통지하는 에러 처리부를 추가할 수 있다. 이에 따라 계조 공유 데이터 복원장치에서의 처리의 안정성을 향상시킬 수 있다.In addition, the gradation data selection unit 108 of the gradation shared data restoring apparatus does not include the designated gradation number determination unit for determining whether the gradation number requested from the outside is included in the gradation sharing data, and the requested gradation number is not included in the gradation sharing data. If not, an error processing unit for notifying the outside that data of the required tone number cannot be generated can be added. As a result, the stability of the processing in the gradation shared data restoration apparatus can be improved.

또한 계조 공유 데이터 복원장치의 계조수 선택부(108)에 외부로부터 요구된 계조수가 계조 공유 데이터에 포함되어 있는지의 여부를 판정하는 지정 계조수 판정부 및 요구된 계조수가 계조 공유 데이터에 포함되어 있지 않은 경우에, 계조 공유 데이터로부터 생성할 수 있는 계조수중에서, 요구된 계조수에 가장 가까운 계조수를 구하여 계조수 선택부(108)에 통지하는 최적 계조수 산출부를 추가할 수 있다. 이에 따라 요구된 계조수가 계조 공유 데이터에 포함되어 있지 않은 경우에도 표시부(5)로의 표시를 행할 수 있어 계조 공유 데이터 복원장치에서의 처리의 안정성을 향상시킬 수 있다. 이 경우 계조 공유 데이터에 최적 계조수 산출부에서 최적의 계조수를 구하는 것을 쉽게 하는 정보(예를 들면 계조 공유 데이터에 포함되는 모든 계조수 등)을 부가함으로써 최적 계조수 산출부의 구성을 간소화할 수 있다.In addition, the gradation data selection unit 108 of the gradation shared data restoring apparatus does not include the designated gradation number determination unit for determining whether the gradation number requested from the outside is included in the gradation sharing data, and the requested gradation number is not included in the gradation sharing data. If not, among the gradation numbers that can be generated from the gradation sharing data, an optimal gradation number calculating section for obtaining the gradation number closest to the required gradation number and notifying the gradation number selection unit 108 can be added. As a result, even if the requested number of gradations is not included in the gradation sharing data, the display can be displayed on the display section 5, thereby improving the stability of the processing in the gradation sharing data restoration apparatus. In this case, it is possible to simplify the configuration of the optimum gradation number calculating section by adding information (e.g., all gradations included in the gradation sharing data) to the gradation sharing data to easily obtain the optimal gradation number from the gradation number calculating section. have.

다음으로 본 발명의 제 2 실시예인 계조 공유 데이터 처리 시스템에 대하여 설명한다.Next, a grayscale shared data processing system as a second embodiment of the present invention will be described.

도 25는 본 발명의 제 2 실시예의 계조 공유 데이터 처리 시스템의 구성을 설명하기 위한 블록도이다. 본 발명의 제 2 실시예의 계조 공유 데이터 처리 시스템은 제 1 실시예의 계조 공유 데이터 처리 시스템과 같이 계조 공유 데이터 생성장치, 계조 공유 데이터 복원장치를 포함하고 있다. 이 제 2 실시예의 계조 공유 데이터 처리 시스템에서는 계조 공유 데이터 생성장치만이 제 1 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치와 다르며, 이하에서는 이 계조 공유 데이터 생성장치에 대하여 설명한다(이하에 설명하는 이외의 계조 공유 데이터 생성장치의 구성, 동작 등의 상세한 사항은 제 1 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치에 준하는 것으로 한다).Fig. 25 is a block diagram for explaining the configuration of the gradation shared data processing system of the second embodiment of the present invention. The gradation sharing data processing system of the second embodiment of the present invention includes a gradation sharing data generating device and a gradation sharing data restoration device like the gradation sharing data processing system of the first embodiment. In the gradation sharing data processing system of this second embodiment, only the gradation sharing data generating device is different from the gradation sharing data generating device of the gradation sharing data processing system of the first embodiment, which will be described below. The details of the configuration, operation, and the like of the gradation shared data generating apparatus other than those described below shall be the same as the gradation sharing data generating apparatus of the gradation sharing data processing system of the first embodiment).

본 계조 공유 데이터 생성장치는 윤곽정보 유지부(2101), 스트로크 정보 유지부(2102), 제 1 윤곽정보 확대축소부(2103), 제 1 계조값 산출부(2104), 제 2 윤곽정보 확대축소부(2105), 제 2 계조값 산출부(2106), 계조 공유 데이터 생성부(2107)를 포함하고 있다.The gradation shared data generating apparatus includes an outline information holding unit 2101, a stroke information holding unit 2102, a first outline information scaling unit 2103, a first tone value calculating unit 2104, and a second outline information enlargement and reduction. A unit 2105, a second gray scale value calculator 2106, and a gray scale shared data generation unit 2107 are included.

윤곽정보 유지부(2101)는 제 1 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치의 윤곽정보 유지부(101)와 마찬가지로, 계조 공유 데이터의 생성 대상으로 되는 아우트라인 데이터로부터 각 문자(또는 도형)에 대응하여 소정의 좌표상에서 윤곽의 특징을 나타내는 점의 집합으로서 나타내는 윤곽정보를 인출하여 유지한다.The outline information holding unit 2101 is similar to the outline information holding unit 101 of the gradation sharing data generating apparatus of the gradation sharing data processing system of the first embodiment, and each character (or figure) from the outline data to be generated. The contour information indicated as a set of points representing the characteristic of the contour on the predetermined coordinates is extracted and held in correspondence with the &quot;

스트로크 정보 유지부(2102)는 윤곽정보 유지부(2101)에서 인출되어 유지되어 있는 계조 공유 데이터 생성의 대상으로 되는 윤곽정보에 기초하는 스트로크 정보를 유지한다. 스트로크 정보는 확대 축소후에 스트로크폭을 조정하기 위해 이용되는 정보이며, 일반적으로 힌트라고 하는 것이다.The stroke information holding unit 2102 holds stroke information based on the outline information which is the object of generation of the gradation shared data drawn out and held by the outline information holding unit 2101. The stroke information is information used to adjust the stroke width after expansion and reduction, and is generally referred to as a hint.

도 26의 (a), (b)는 본 계조 공유 데이터 생성장치에서, 계조 공유 데이터를 생성하는 대상으로 하는 한자 「三」의 윤곽정보를 도시한 도면이며, 도 26의 (c)는 「三」의 스트로크 정보를 도시한 도면이다. 여기에서는 「三」은 고딕체로 나타나고 있고, 이것을 도시하는 윤곽정보는 1000 메쉬의 좌표상에서의 직선의 집합으로 표현되어 있다. 또한 스트로크 정보는 「三」에 포함되는 3개의 수평 스트로크를 구성하는 하부 직선과 상부 직선의 Y 좌표값의 조합으로서 유지되어 있고, 수평 스트로크폭을 이들 차분으로서 구할 수 있다. 이 「三」을 구성하는 수평 스트로크 1, 수평 스트로크 2, 수평 스트로크 3의 폭은 어느 것이나 70이다.26 (a) and 26 (b) show the outline information of the kanji "Th" which is the object to generate the tone sharing data in this tone sharing data generating apparatus, and FIG. Is a diagram showing stroke information. Here, "Th" is shown in the Gothic style, and the outline information showing this is represented by a set of straight lines on the coordinate of 1000 mesh. The stroke information is held as a combination of the Y coordinate values of the lower straight line and the upper straight line constituting the three horizontal strokes included in "Th", and the horizontal stroke width can be obtained as these differences. The width of the horizontal stroke 1, the horizontal stroke 2, and the horizontal stroke 3 which comprise this "three" is 70 either.

이 수평 스트로크 정보는 상기 이외에 하부직선의 Y 좌표값과 스트로크폭의 조합으로서 유지되는 경우가 있으며, 또한 윤곽정보에 부가되는 좌표점의 속성으로서 유지되는 경우가 있다. 또한 이 수평 스트로크 정보는 스트로크 정보의 하나이고 수직 스트로크가 존재하는 경우에는 마찬가지로 하여 수직 스트로크 정보가 유지된다.The horizontal stroke information may be held as a combination of the Y coordinate value of the lower straight line and the stroke width in addition to the above, and may be maintained as an attribute of the coordinate point added to the contour information. This horizontal stroke information is one of the stroke information, and when there is a vertical stroke, the vertical stroke information is similarly retained.

제 1 윤곽정보 확대축소부(2103)는 다음에 도시하는 제 1 계조값 산출부(2104)와 함께 계조 공유 데이터에 표현시키는 제 1 계조수(여기에서는 2계조로 한다)에 대응하는 것으로, 스트로크 정보 유지부(2102)에 유지되어 있는 스트로크 정보를 바탕으로 하여 윤곽정보 유지부(2101)에 유지되어 있는 윤곽정보를 지시된 요구 사이즈에 따라 확대 축소한다.The first outline information expansion and contraction unit 2103 corresponds to the first gradation number (here, two gradations) expressed in the gradation shared data together with the first gradation value calculation unit 2104 shown next, On the basis of the stroke information held in the information holding unit 2102, the outline information held in the contour information holding unit 2101 is enlarged and reduced in accordance with the requested request size.

제 1 계조값 산출부(2104)는 제 1 윤곽정보 확대축소부(2103)에 의해 확대 축소된 윤곽정보를 바탕으로 각 픽셀에 대한 제 1 계조수에 대한 계조값을 산출한다.The first tone value calculator 2104 calculates a tone value for the first tone number of each pixel based on the outline information enlarged and reduced by the first outline information enlargement / reduction unit 2103.

제 2 윤곽정보 확대축소부(2105)는 다음에 도시하는 제 2 계조값 산출부(2106)와 함께 계조 공유 데이터에 표현시키는 제 2 계조수(여기에서는 3계조로 한다)에 대응하는 것이며, 스트로크 정보 유지부(2102)에 유지되어 있는 스트로크 정보를 바탕으로 하여 윤곽정보 유지부(2101)에 유지되어 있는 윤곽정보를 지시된 요구 사이즈에 따라 확대 축소한다.The second outline information expansion and contraction unit 2105 corresponds to the second tone number (here, three tone levels) expressed in the tone sharing data together with the second tone value calculation unit 2106 shown next, On the basis of the stroke information held in the information holding unit 2102, the outline information held in the contour information holding unit 2101 is enlarged and reduced in accordance with the requested request size.

제 2 계조값 산출부(2106)는 제 2 윤곽정보 확대축소부(2105)에 의해 확대 축소된 윤곽정보를 바탕으로 각 픽셀에 대한 제 2 계조수에 대한 계조값을 산출한다.The second tone value calculator 2106 calculates a tone value for the second tone number for each pixel based on the outline information enlarged and reduced by the second outline information enlargement and reduction unit 2105.

계조 공유 데이터 생성부(2107)는 제 1 계조값 산출부(2104)에 의해 산출된 각 픽셀에 대한 제 1 계조수의 계조 데이터에 대한 계조값과, 제 2 계조값 산출부(2106)에 의해 산출된 각 픽셀에 대한 제 2 계조수의 계조 데이터에 대한 계조값을 이용하여 계조 공유 데이터의 계조값을 구하여 계조 공유 데이터를 생성한다.The grayscale shared data generation unit 2107 is configured by the grayscale value for grayscale data of the first grayscale number for each pixel calculated by the first grayscale value calculator 2104 and the second grayscale value calculator 2106. The grayscale shared data is generated by obtaining the grayscale value of the grayscale shared data using the grayscale value of the grayscale data of the second grayscale number for each pixel.

이들과 같은 계조 공유 데이터 생성장치에서의 처리의 순서를 (처리1)∼(처리 7)로서 설명한다. 제 1 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치와 같이 제 1 계조 데이터로서 2계조 데이터를, 제 2 계조 데이터로서 3계조 데이터를 취급하는 것으로 한다. 또한 각 픽셀에 대한 2계조 데이터의 계조값에 대해서는 전경색에 대하여 1, 배경색에 대하여 0의 계조값을 할당하고, 3계조 데이터의 계조값에 대해서는 전경색에 대하여 2, 중간색에 대하여 1, 배경색에 대하여 0을 할당하는 것으로 한다(이하에서는 한자 「三」에 대한 처리를 예로서 들 수 있지만, 히라가나, 가타카나, 알파벳, 기타 언어를 나타내는 문자, 이들 이외의 도형에 대해서도 마찬가지로 본 발명을 적용할 수 있다).The order of processing in such a gradation shared data generating apparatus will be described as (process 1) to (process 7). As in the gradation shared data generating apparatus of the first gradation shared data processing system, it is assumed that two gradation data is treated as the first gradation data and three gradation data as the second gradation data. In addition, a gray value of 1 for the foreground color and 0 for a background color is assigned to the gray value of the two-tone data for each pixel, and two for the foreground color, 1 for the middle color, and one for the background color for the gray-level value of the three-tone data. It is assumed that 0 is assigned (hereinafter, the processing for the kanji "三" is exemplified, but the present invention can be similarly applied to hiragana, katakana, alphabets, characters representing other languages, and figures other than these). .

(처리 1) 처음에 윤곽정보 유지부(2101)(도 25 참조)는 요구된 문자에 대한 윤곽정보를 아우트라인 데이터를 기억하고 있는 기억부로부터 인출하여 유지한다. 여기에서는 도 20의 (b)에 도시한 윤곽정보가 아우트라인 데이터로부터 얻어져서 유지된다.(Process 1) Initially, the outline information holding unit 2101 (see Fig. 25) draws out and holds outline information on the requested character from the storage unit storing the outline data. Here, the outline information shown in Fig. 20B is obtained from the outline data and held.

(처리 2) 스트로크 정보 유지부(2102)는 요구된 문자에 대한 스트로크 정보를 기억부로부터 인출하여 유지한다(스트로크 정보는 미리 기억부에 기억되어 있는 것으로 하고 있다). 여기에서는 도 26의 (c)에 도시한 스트로크 정보가 얻어지고 유지된다.(Process 2) The stroke information holding unit 2102 draws out and holds the stroke information for the requested character from the storage unit (the stroke information is stored in the storage unit in advance). Here, the stroke information shown in FIG. 26C is obtained and maintained.

(처리 3) 제 1 윤곽정보 확대축소부(2103)는 윤곽정보 유지부(2101)가 유지하는 윤곽정보를 스트로크 정보 유지부(2102)가 유지하는 스트로크 정보를 이용하여, 요구 사이즈인 10×10 픽셀, 2계조에 적합하도록 (확대)축소한다(제 1 윤곽정보 확대축소부(2103)는 필요에 따라 윤곽정보를 확대할 수 있지만, 여기에서는 축소를 행한다).(Process 3) The first contour information expansion and contraction section 2103 uses the stroke information held by the stroke information retention section 2102 to maintain the contour information held by the contour information retention section 2101, which is a 10 × 10 request size. (Enlargement) Reduces to fit the pixel and two gradations (the first outline information enlargement / reduction section 2103 can enlarge the outline information if necessary, but reduces it here).

이 제 1 윤곽정보 확대축소부(2103)에서의 (처리 3)을 흐름도를 이용하여 보다 상세하게 설명한다.(Process 3) in this first contour information expansion and contraction unit 2103 will be described in more detail using a flowchart.

도 27은 제 1 윤곽정보 확대축소부(2103)에서의 처리(후술하는 바와 같이 제 2 윤곽정보 확대축소부(2105)에서의 처리도 같음)의 순서를 도시한 흐름도이다. 여기에서의 처리는 크게는 수평 스트로크 확대 축소처리와 윤곽정보 확대 축소처리로 나눌 수 있다.FIG. 27 is a flowchart showing the procedure of the processing in the first contour information expansion and contraction section 2103 (the same is the same as the processing in the second contour information expansion and contraction section 2105 as described later). The processing here can be broadly divided into horizontal stroke enlargement and reduction processing and outline information expansion and reduction processing.

수평 스트로크 확대 축소처리에서는 우선 미처리된 수평 스트로크 정보(도 26의 (c)에 도시한 「三」의 수평 스트로크 1∼수평 스트로크 3에 대응)가 있는지의 여부가 판단된다(S41). 미처리된 수평 스트로크 정보가 있으면(S41에서, 예), 이 미처리된 수평 스트로크 정보가 인출된다(S42).In the horizontal stroke enlargement and reduction processing, first, it is determined whether there is unprocessed horizontal stroke information (corresponding to horizontal stroke 1 to horizontal stroke 3 of "three" shown in Fig. 26C) (S41). If there is unprocessed horizontal stroke information (YES in S41), this unprocessed horizontal stroke information is taken out (S42).

여기에서는 하부 직선의 Y 좌표값을 L, 상부 직선의 Y 좌표를 U로 하여 수평 스트로크의 1개에 대하여 (L, U)를 대응시켜 수평 스트로크 정보를 구성한다. 도 26의 (a)에 도시한 「三」에 대해서는 도 26의 (c)에 도시한 바와 같은 3개의 수평 스트로크 1∼수평 스트로크 3에 대한 스트로크 정보(155, 225), (475, 545), (780, 850)가 차례로 인출되게 된다.Here, horizontal stroke information is constructed by correlating (L, U) with respect to one of the horizontal strokes, using the Y coordinate value of the lower straight line as L and the Y coordinate of the upper straight line. Regarding "Th" shown in FIG. 26A, the stroke information 155, 225, 475, 545 for three horizontal strokes 1 to 3 horizontal strokes as shown in FIG. 780, 850 are drawn out in turn.

계속해서 인출된 수평 스트로크 정보에 대하여 수평 스트로크폭(Worg)이 다음에 나타내는 수학식 7에 의해 구해진다(S43). 「三」에 대해서는 3개의 수평 스트로크의 스트로크폭은 어느 것이나 70으로 된다.Subsequently, the horizontal stroke width Worg is obtained from the following equation 7 with respect to the extracted horizontal stroke information (S43). Regarding "Th", the stroke widths of the three horizontal strokes are either 70.

이렇게 구해진 수평 스트로크폭은 요구되는 사이즈에 따라 확대 축소된다(S44). 또 이 확대 축소는 2계조 데이터의 생성에 적합하도록 행하여진다. 2계조 데이터에서는 각 픽셀의 계조값은 1, 0 중 어느 하나이므로, 확대 축소후의 스트로크폭을 픽셀단위의 값으로 함으로써 사사오입 오차에 의한 스트로크 불균일을 방지하면서 계조값을 결정할 수 있다. 이러한 처리는 힌트 처리라 하고, 특히 문자를 도시한 아우트라인 데이터로부터 2계조 데이터를 생성하는 경우에 일반적으로 이용되고 있다. 여기에서는 다음에 나타내는 수학식 8에 의해 확대 축소후의 스트로크폭(W2)이 구해진다.The horizontal stroke width thus obtained is enlarged and reduced in accordance with the required size (S44). This enlargement and reduction is performed so as to be suitable for generation of two tone data. In the two-gradation data, the gradation value of each pixel is either 1 or 0, so that the gradation value can be determined while preventing the stroke unevenness due to rounding error by setting the stroke width after enlargement and reduction in pixel units. Such a process is called a hint process, and is generally used in the case of generating two tone data from outline data showing characters. Here, the stroke width W2 after the enlargement and reduction is obtained by the following equation (8).

여기에서 Np는 요구 사이즈의 픽셀수, Nsp는 서브 메쉬수, EM은 원래의 윤곽정보에 대한 메쉬수이고, trunc(X)는 인수(X)의 값을 사사오입하는 함수이다. 본 계조 공유 데이터 생성장치에서는 Np는 10, Nsp는 4, EM은 1000이다. 상기 수학식 8에 의하면 「三」에 대한 3개의 수평 스트로크의 확대 축소후의 스트로크폭은 전부 4 서브 픽셀, 즉 1 픽셀로 된다.Where Np is the number of pixels of the required size, Nsp is the number of submeshes, EM is the number of meshes of the original contour information, and trunc (X) is a function for rounding off the value of the argument (X). In this grayscale shared data generating device, Np is 10, Nsp is 4, and EM is 1000. According to the above expression (8), the stroke widths after the enlargement and reduction of the three horizontal strokes for "three" are all four subpixels, that is, one pixel.

다음에 수평 스트로크 하부 직선의 Y 좌표값이 확대 축소된다(S45). 여기에서도 스트로크폭을 확대 축소했을 때와 마찬가지로, 2계조 데이터의 생성에 적합하도록 확대 축소가 행해진다. 확대 축소후의 좌표값이 픽셀 경계로 되도록 확대 축소를 행하면, 3계조 데이터에 대한 계조값을 구할 때에 발생하는 사사오입 오차의 영향을 최소한으로 방지할 수 있다. 여기에서는 다음에 나타내는 수학식 9에 의해 확대 축소후의 수평 스트로크의 하부 직선의 Y 좌표값(L2)이 구해진다.Next, the Y coordinate value of the horizontal stroke lower straight line is enlarged and reduced (S45). Here, similarly to the case where the stroke width is enlarged and reduced, the enlargement and reduction is performed so as to be suitable for the generation of the two tone data. By performing the enlargement and reduction so that the coordinate value after the enlargement and reduction becomes the pixel boundary, it is possible to minimize the influence of rounding error that occurs when obtaining the tone value for the three tone data. Here, the Y coordinate value L2 of the lower straight line of the horizontal stroke after expansion and contraction is obtained by the following equation (9).

이후 상술한 바와 같이 구해진 확대 축소후의 스트라이크폭(W2)과 수평 스트로크의 하부 직선의 Y 좌표값(L2)이 이용되고, 수평 스트로크의 상부 직선의 Y 좌표값(U2)이 수학식 10에 의해 구해진다(S46).Thereafter, the strike width W2 after the enlargement and reduction obtained as described above and the Y coordinate value L2 of the lower straight line of the horizontal stroke are used, and the Y coordinate value U2 of the upper straight line of the horizontal stroke is calculated by the equation (10). It becomes (S46).

여기에서는 수평 스트로크의 하부 직선의 Y 좌표값을 확대 축소한 후에 이것을 이용하여 상부 직선의 Y 좌표값을 구하는 것으로 하였지만, 수평 스트로크의 상부 직선의 Y 좌표값을 확대 축소한 후에 이것을 이용하여 하부 직선의 Y 좌표값을 구할 수 있다. 이 경우에는 확대 축소후의 수평 스트로크의 상부 직선의 Y 좌표값은 다음의 수학식 11에 의해 구해지며, 하부 직선의 Y 좌표값은 다음의 수학식 12에 의해 구해진다.Here, the Y coordinate value of the lower straight line of the horizontal stroke is enlarged and reduced and then used to obtain the Y coordinate value of the upper straight line. However, the Y coordinate value of the upper straight line of the horizontal stroke is enlarged and reduced. We can get Y coordinate value. In this case, the Y coordinate value of the upper straight line of the horizontal stroke after the enlargement and reduction is obtained by the following equation (11), and the Y coordinate value of the lower straight line is obtained by the following equation (12).

이상과 같은 수평 스트로크 확대 축소처리에 의해 3계조 데이터의 생성에 적합한 확대 축소후의 수평 스트로크 정보를 얻을 수 있다. 「三」의 3개의 수평 스트로크에 대한 (확대)축소후의 스트로크 정보는 (8, 12), (20, 24), (32, 36)으로 된다.By the above-described horizontal stroke enlargement and reduction processing, horizontal stroke information after enlargement and reduction suitable for generating three tone data can be obtained. The stroke information after (expansion) reduction for the three horizontal strokes of "three" is (8, 12), (20, 24), (32, 36).

이들과 같이 모든 수평 스트로크 정보에 대한 처리가 종료하면(S41에서, 아니오), 윤곽정보 확대 축소처리로써 확대 축소후의 수평 스트로크 정보가 이용되어 윤곽정보의 확대 축소가 행해진다.When the processing for all the horizontal stroke information is finished as described above (NO in S41), the horizontal stroke information after the enlargement and reduction is used as the outline information enlargement and reduction process, and the outline information is enlarged and reduced.

윤곽정보 확대 축소처리에서는 먼저 미처리된 윤곽정보(도 26의 (b)에 도시한 「三」의 윤곽 1∼윤곽 3에 대응함)가 있는지의 여부가 판단된다(S47). 미처리된 윤곽정보가 있으면(S47에서, 예), 이 미처리된 윤곽정보가 인출된다(S48). 「3」에 대해서는 도 26의 (c)에 도시한 바와 같은 윤곽 1∼윤곽 3이 처리의 대상으로서 차례로 인출되게 된다.In the contour information enlargement and reduction processing, it is first determined whether there is unprocessed contour information (corresponding to contours 1 to 3 of "Three" shown in Fig. 26B) (S47). If there is unprocessed outline information (YES in S47), this unprocessed outline information is taken out (S48). Regarding "3", outlines 1 to 3 as shown in FIG. 26C are sequentially drawn out as the object of processing.

계속해서 인출된 윤곽정보로부터 Y 좌표값(Yorg)이 인출되고(S49), 이하와 같이 하여 이 Y 좌표값(Yorg)이 확대 축소되어 확대 축소후의 Y 좌표값(Y2)이 구해진다(S50). 이하와 같이 하여 확대 축소후의 Y2가 모든 윤곽정보에 대하여 구해지면(S47에서, 아니오), 본 처리는 종료된다.Subsequently, the Y coordinate value Yorg is drawn out from the extracted contour information (S49). The Y coordinate value Yorg is enlarged and reduced as follows, and the Y coordinate value Y2 after the enlargement and reduction is obtained (S50). . When Y2 after the enlargement and reduction is obtained for all the contour information as described below (No in S47), this processing is terminated.

Y 좌표값(Yorg)이 원래의 100 메쉬의 수평 스트로크의 상부 직선의 Y 좌표값(U) 또는 하부 직선의 Y 좌표값(L)과 같아지면, 확대 축소후의 Y 좌표값(Y2)은 상기의 수평 스트로크 확대 축소처리로 구해진 확대 축소후의 수평 스트로크의 상부 직선의 Y 좌표값(U2) 또는 하부직선의 Y 좌표값(L2)으로 된다.When the Y coordinate value Yorg is equal to the Y coordinate value U of the upper straight line of the horizontal stroke of the original 100 mesh or the Y coordinate value L of the lower straight line, the Y coordinate value Y2 after the enlargement and reduction is It becomes the Y coordinate value U2 of the upper straight line of the horizontal stroke after expansion reduction by the horizontal stroke enlargement reduction process, or the Y coordinate value L2 of the lower straight line.

또한 Y 좌표값(Yorg)이 원래의 1000 메쉬의 수평 스트로크의 상부 직선의 Y 좌표값(U) 및 하부 직선의 Y 좌표값(L)중 어느 하나와도 같지 않으면, 확대 축소후의 Y 좌표값(Y2)은 각 수평 스트로크의 상부 직선의 Y 좌표값과 하부 직선의 Y 좌표값의 사이를 선형보간한 값으로서 구해진다.If the Y coordinate value Yorg is not equal to either the Y coordinate value U of the upper straight line of the horizontal stroke of the original 1000 mesh or the Y coordinate value L of the lower straight line, Y2) is obtained as a value obtained by linearly interpolating between the Y coordinate value of the upper straight line of each horizontal stroke and the Y coordinate value of the lower straight line.

본 계조 공유 데이터 생성장치에서는 다음에 나타내는 수학식 13∼수학식 27에 의해 Y 좌표값(Yorg)으로부터 확대 축소후의 Y 좌표값(Y2)이 구해진다.In the gradation shared data generating device, the Y coordinate value Y2 after the enlargement and reduction is obtained from the Y coordinate value Yorg by the following equations (13) to (27).

이상에 의해 1000 메쉬의 좌표상의 윤곽정보가 2계조 데이터를 생성하는 데 적합한 40×40 서브 픽셀상의 데이터로 (확대)축소된다.By the above, the outline information on the coordinates of 1000 mesh is (expanded) reduced to data on 40x40 subpixels suitable for generating two-gradation data.

여기에서는 수평 스트로크의 상부 직선 및 하부 직선상의 좌표값만이 존재하지만, 스트로크 이외의 직선이나 곡선을 나타내는 좌표값을 포함하는 아우트라인 데이터에 대해서도 상기의 수학식 13∼수학식 27을 이용하여 Y 좌표값(Yorg)을 Y 좌표값(Y2)에 (확대)축소함으로써 적절히 보정된 데이터를 얻을 수 있다(어느 2개의 데이터의 Y 방향으로의 위치가 확대 축소전과 확대 축소후에서 역전하는 일이 없도록 확대 축소를 행할 수 있다).Although only coordinate values on the upper straight line and the lower straight line of the horizontal stroke exist here, the Y coordinate value is also used for the outline data including the coordinate values representing the straight line or the curve other than the stroke by using Equations 13 to 27 above. By correcting (Yorg) to the Y coordinate value (Y2), appropriately corrected data can be obtained (scaling down so that the position of any two data in the Y direction does not reverse before and after zooming in and out. Can be done).

또 여기에서는 수직 스트로크가 존재하지 않기 때문에 X 좌표값을 모두 다음의 수학식 28에 의해 확대 축소함으로써 적절한 데이터를 얻을 수 있다.In addition, since there is no vertical stroke here, appropriate data can be obtained by expanding and contracting all the X coordinate values by the following equation (28).

수직 스트로크를 포함하는 윤곽정보를 확대 축소하는 경우에는 상술한 바와 마찬가지로 하여, 우선 수직 스트로크의 위치를 정하는 X 좌표값을 계조 데이터의 계조수에 적합하도록 확대 축소하고, 이어서 수직 스트로크의 위치를 정하는 X 좌표값의 사이를 선형보간하도록 하여 다른 값을 확대 축소함으로써 적절한 데이터를 얻을 수 있다(어느 2개의 데이터의 X 방향으로의 위치가 확대 축소전과 확대 축소후에서 역전하는 등의 일이 없도록, 확대 축소를 할 수 있다).In the case of expanding and reducing the contour information including the vertical stroke, in the same manner as described above, first, the X coordinate value for determining the position of the vertical stroke is enlarged and reduced to suit the number of gray levels of the gray scale data, and then X for determining the position of the vertical stroke. Proper data can be obtained by linearly interpolating between coordinate values to enlarge and reduce other values (enlarging or reducing so that the position of any two data in the X direction does not reverse before or after expansion or reduction). Can be done).

도 28의 (a), (b), (c)는 상술한 바와 마찬가지로 하여 2계조 데이터를 생성하는 데 적합하도록 도 26의 (a), (b), (c)에 도시한 윤곽정보, 스트로크 정보를 확대 축소한 후의 데이터를 도시한 도면이고, 도 29는 서브 메쉬상에 전개한 도 28의 (b)의 윤곽정보를 도시한 도면이다.28A, 28B, and 28C show contour information and strokes shown in FIGS. 26A, 26B, and 3C to be suitable for generating two tone data in the same manner as described above. FIG. 29 is a diagram showing data after enlarged and reduced information, and FIG. 29 is a diagram showing outline information of FIG. 28B deployed on a submesh.

도 28의 (a)에 있어서, 실선은 상술한 바와 같은 힌트처리를 행함으로써 얻어지는 윤곽을 나타내고 있고, 일점쇄선은 상술한 바와 같은 힌트처리를 행하지 않고 단순한 확대 축소를 행했을 때의 윤곽을 나타내고 있다.In FIG. 28A, the solid line shows the outline obtained by performing the hint process as mentioned above, and the dashed-dotted line shows the outline when simple enlargement reduction is performed without performing the hint process mentioned above. .

도 29에 의하면 「三」의 윤곽을 특징짓는 좌표값이 모두 픽셀 경계상에 있기 때문에, 이들 축소후의 좌표값이 2계조 데이터를 생성하는데 적합한 것을 알 수 있다.According to Fig. 29, since all coordinate values that characterize the outline of "three" are on the pixel boundary, it can be seen that these coordinate values after reduction are suitable for generating two tone data.

(처리 4) 제 1 계조값 산출부(2104)는 제 1 윤곽정보 확대축소부(2103)로써 구해진 확대 축소후의 윤곽정보로부터 각 픽셀에 대한 2계조 데이터의 계조값을 산출한다. 계조값의 산출에 대해서는 제 1 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치의 처리(계조 공유 데이터 생성부(105)에서의 도 15의 S21∼S25에 도시한 바와 같은 처리)와 같기 때문에 여기에서는 설명을 반복하지 않는다.(Process 4) The first tone value calculator 2104 calculates the tone value of the two tone data for each pixel from the outline information after the enlargement and reduction obtained by the first outline information enlargement and reduction unit 2103. Since the calculation of the gradation value is the same as the processing of the gradation sharing data generating apparatus of the gradation sharing data processing system of the first embodiment (process as shown in S21 to S25 of FIG. 15 in the gradation sharing data generating section 105). The description is not repeated here.

도 30은 제 1 계조값 산출부(2104)에서, 도 29의 확대 축소된 「三」의 윤곽정보로부터 구해진 각 픽셀에 대한 2계조 데이터의 계조값을 도시한 도면이다. 도 30에 도시한 바와 「三」의 윤곽에 따라 계조값 1이 생성되어 있다.FIG. 30 is a diagram showing the gray scale values of the two gray scale data for each pixel obtained from the enlarged and reduced outline information of "three" in the first gray scale value calculating section 2104. FIG. The gradation value 1 is generated according to the outline of "3" as shown in FIG.

(처리 5) 제 2 윤곽정보 확대축소부(2105)는 윤곽정보 유지부(2101)가 유지하는 윤곽정보를 스트로크 정보 유지부(2102)가 유지하는 스트로크 정보를 이용하여 요구 사이즈인 10×10 픽셀, 3계조에 적합하도록 (확대)축소한다(제 2 윤곽정보 확대축소부(2105)는 제 1 윤곽정보 확대축소부(2103)와 마찬가지로 필요에 따라 윤곽정보를 확대할 수 있지만, 여기에서는 축소를 행한다).(Process 5) The second contour information expansion and contraction section 2105 uses the stroke information held by the stroke information retention section 2102 to maintain the contour information held by the contour information retention section 2101. (Enlarge) the image to fit the three gradations (the second outline information enlargement / reduction section 2105 can enlarge the outline information as needed, similarly to the first outline information enlargement / reduction section 2103, Do).

Y 좌표의 확대 축소의 순서는 (처리 3)에서 도 27에 도시한 흐름도를 이용하여 설명한 제 1 윤곽정보 확대축소부(2103)에서의 2계조 데이터를 생성하기 위한 확대 축소의 순서와 마찬가지지만 이 제 2 윤곽정보 확대축소부(2105)에서는 3계조 데이터를 생성하는 데 적합하도록 확대 축소를 행하기 때문에, 확대 축소를 위한 계산식이 다르다. 제 1 윤곽정보 확대축소부(2103)에서 이용하는 상기 수학식 8∼수학식 27의 각 식은 제 2 윤곽정보 확대축소부(2105)에서 이용하는 다음의 수학식 29∼수학식 48에 각각 대응한다.The procedure of enlarging / decreasing the Y coordinate is the same as the procedure of enlarging and contracting for generating two-gradation data in the first outline information enlarging / reducing unit 2103 described using the flowchart shown in Fig. 27 in (Process 3). Since the second outline information enlargement / reduction section 2105 performs enlargement and contraction so as to be suitable for generating three tone data, the calculation formula for enlargement and reduction is different. Each of the equations (8) through (27) used in the first contour information expansion and contraction unit 2103 corresponds to the following equations (29) through (48) respectively used in the second contour information expansion and contraction unit 2105.

여기에서 W3는 3계조 데이터에 적합하도록 확대 축소를 한 후의 스트로크폭, L3은 3계조 데이터에 적합하도록 확대 축소를 행한 후의 수평 스트로크의 하부직선의 좌표값, U3은 3계조 데이터에 적합하도록 확대 축소를 한 후의 수평 스트로크의 상부직선의 좌표값이다.Where W3 is the stroke width after scaling to fit the three-tone data, L3 is the coordinate value of the lower straight line of the horizontal stroke after scaling to fit the three-tone data, and U3 is scaled to fit the three-tone data This is the coordinate value of the upper straight line of the horizontal stroke after.

도 31의 (a), (b), (c)는 상술한 바와 같이 하여 3계조 데이터를 생성하는 데 적합하도록 도 26의 (a), (b), (c)에 도시하는 윤곽정보, 스트로크 정보를 확대 축소한 후의 데이터를 도시한 도면이고, 도 32는 서브 메쉬 상에 전개한 도 31의 (b)의 윤곽정보를 도시한 도면이다.31A, 31B, and 31C show contour information and strokes shown in FIGS. 26A, 26B, and 3C so as to be suitable for generating three tone data as described above. FIG. 32 is a diagram showing data after enlarged and reduced information, and FIG. 32 is a diagram showing outline information of FIG. 31B developed on a submesh.

도 32에 의하면 「三」의 윤곽을 특징짓는 좌표값이 전부(픽셀 경계상에는 없고) 서브 픽셀 경계 상에 있기 때문에 이들 축소후의 좌표값이 3계조 데이터를 생성하는 데 적합한 것을 알 수 있다. (만약「三」의 윤곽을 특징짓는 좌표값이 전부 픽셀 경계 상에 있다고 하면 중간색을 이용할 필요가 없어진다)According to FIG. 32, since all the coordinate values characterizing the outline of "3" are on the subpixel boundary (but not on the pixel boundary), it can be seen that these coordinate values after the reduction are suitable for generating three tone data. (If the coordinates that characterize the outline of "Three" are all on the pixel boundary, you do not need to use intermediate colors.)

(처리 6) 제 2 계조값 산출부(2106)는 제 2 윤곽정보 확대축소부(2105)로써 구해진 확대 축소후의 윤곽정보로부터 각 픽셀에 대한 3계조 데이터의 계조값을 산출한다. 계조값의 산출에 대해서는 제 1 계조값 산출부(2104)와 마찬가지로 제 1 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치의 처리에 준하는 것으로 한다.(Process 6) The second tone value calculator 2106 calculates the tone value of the three tone data for each pixel from the enlarged and reduced outline information obtained by the second outline information enlargement / reduction unit 2105. The calculation of the gray scale value is similar to the processing of the gray scale shared data generating apparatus of the gray scale shared data processing system of the first embodiment, similarly to the first gray scale value calculating unit 2104.

도 33은 제 2 계조값 산출부(21O6)로써 도 32의 확대 축소된 「三」의 윤곽정보로부터 구해진 각 픽셀에 대한 3계조 데이터의 계조값을 도시한 도면이다. 도 33에 도시된 바와 같이 「三」의 윤곽에 따라 계조값 1이 생성되어 있다(도 30에 도시된 2계조 데이터의 계조값과 비교하면, 최하의 수평 스트로크의 위치가 1픽셀분 하측으로 어긋나 있는 것을 알 수 있다).FIG. 33 is a diagram showing the gradation value of three gradation data for each pixel obtained from the enlarged and reduced contour information of "three" in FIG. As shown in Fig. 33, the gradation value 1 is generated in accordance with the outline of "three" (compared to the gradation value of the two-gradation data shown in Fig. 30, and the position of the lowest horizontal stroke is shifted by one pixel downward). I can see that).

(처리 7) 계조 공유 데이터 생성부(2107)는 제 1 계조값 산출부(2104)로써 산출된 각 픽셀에 대한 2계조 데이터의 계조값과, 제 3 계조값 산출부(2106)로써 산출된 각 픽셀에 대한 3계조 데이터의 계조값을 이용하여 도 16에 도시된 (제 1 실시예의 계조 공유 데이터처리 시스템과 마찬가지의) 매트릭스 테이블로부터 계조 공유 데이터의 계조값을 구한다.(Process 7) The gradation shared data generation unit 2107 calculates the gradation value of the two gradation data for each pixel calculated by the first gradation value calculation unit 2104 and the angle calculated by the third gradation value calculation unit 2106. The gradation value of the gradation shared data is obtained from the matrix table (similar to the gradation sharing data processing system of the first embodiment) shown in Fig. 16 using the gradation value of the gradation data for the pixel.

도 34는 계조 공유 데이터 생성부(2107)에서 생성된, 「三」에 대한 계조 공유데이터의 계조값을 도시한 도면이다.Fig. 34 is a diagram showing the gradation value of the gradation shared data for &quot; three &quot; generated by the gradation shared data generation unit 2107.

각 픽셀에 대한 2계조 데이터의 계조값(도 30 참조)과 3계조 데이터의 계조값(도 33 참조)을 비교하면, 「三」의 최하의 수평 스트로크의 위치만이 1픽셀분 수직방향으로 달라져 있다. 이에 따라, 다른 2개의 수평 스트로크에 대응하여 계조 공유 데이터의 계조값 2가 생성되는 데 대하여, 최하의 수평 스트로크에 대응하여 계조 공유 데이터의 계조값 1이 생성되어 있다.When the gray scale value (see FIG. 30) of the two-tone data for each pixel is compared with the gray value of the three-tone data (see FIG. 33), only the position of the lowest horizontal stroke of "three" is changed in the vertical direction for one pixel. have. As a result, the gray scale value 2 of the gray scale shared data is generated corresponding to the other two horizontal strokes, while the gray scale value 1 of the gray scale shared data is generated corresponding to the lowest horizontal stroke.

이상과 같이 본 계조 공유 데이터 생성장치에서는 힌트처리가 행해지면서 데이터량의 증가를 수반하지 않고 계조 공유 데이터가 생성된다. 이와 같이 생성되는 계조 공유 데이터로부터 복원되는 계조 데이터는 품질이 좋은 것이며, 본 계조 공유 데이터 생성장치는 문자 데이터 등, 그 형상의 표현에 특히 높은 충실성이 요구되는 데이터의 생성에 적합하다고 할 수 있다.As described above, in the grayscale shared data generating apparatus, the grayscale shared data is generated without the increase of the data amount as a hint process is performed. The grayscale data restored from the grayscale shared data generated in this manner is of good quality, and the grayscale shared data generating apparatus can be said to be suitable for generation of data requiring particularly high fidelity for the expression of its shape, such as character data. .

계속해서 제 2 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 생성장치의 변형예에 대하여 설명하기로 한다. 상술한 바와 같이 제 2 실시예의 계조 공유 데이터처리 시스템의 계조 공유 데이터 생성장치에서는, 원래의 윤곽정보가 도시하는 형상을 가능한 한 충실히 재현하기 위해 제 1 실시예의 계조 공유 데이터처리 시스템의 계조 공유 데이터 생성장치에서와 같은 단순한 확대 축소는 행해지지 않고, 계조 데이터마다 계조 데이터에 알맞는 힌트처리가 실시되어 확대 축소가 행해진다.Subsequently, a modification of the gradation sharing data generating apparatus of the gradation sharing data processing system of the second embodiment will be described. As described above, in the gradation sharing data generating system of the gradation sharing data processing system of the second embodiment, the gradation sharing data generation of the gradation sharing data processing system of the first embodiment in order to faithfully reproduce the shape shown by the original outline information as possible. A simple enlargement and reduction as in the apparatus is not performed, but a hint process suitable for the tone data is performed for each tone data, and the enlargement and reduction is performed.

힌트처리를 수반함으로써 생성되는 계조 데이터의 품질은 향상되지만 다른 계조수의 계조 데이터 사이에서는 스트로크의 위치에 픽셀단위의 어긋남이 발생하는 일이 있다. 실제로 「三」에 대해서는 상술한 바와 같이 2계조 데이터의 계조값(도 30 참조)과 3계조 데이터의 계조값(도 33 참조)을 비교하여 최하의 수평 스트로크 위치가 1픽셀분 수직방향으로 달라져 있다.Although the quality of the grayscale data generated by the hint process is improved, there is a possibility that pixel shift occurs at the position of the stroke between the grayscale data of different gray scale numbers. As mentioned above, the "three" is compared with the gray scale value (see FIG. 30) of the two-tone data and the gray scale value (see FIG. 33) of the three-tone data as described above. .

이러한 계조 공유 데이터로부터 계조 공유 데이터 복원장치를 이용하여 도 18의 (a)에 도시된 바와 같은 규칙에 따라 2계조 데이터를 생성하면 최하의 수평 스트로크는 소멸되며 「三」이라고는 판독되지 않는다. 도 35는 상술한 바와 같은 계조 공유 데이터로부터 본 계조 공유 데이터 처리 시스템의 계조 공유 데이터 복원장치로써 복원되는 「三」에 대한 3계조 데이터를 도시한 도면이다.When two-tone data is generated from such grayscale shared data using the grayscale shared data restoration apparatus according to the rule shown in Fig. 18A, the lowest horizontal stroke is extinguished and is not read as &quot; three &quot;. Fig. 35 is a diagram showing three tone data for &quot; three &quot; restored from the tone sharing data as described above by the tone sharing data restoration apparatus of the tone sharing data processing system.

이러한 문제점을 피하기 위해 본 변형예의 계조 공유 데이터 생성장치에서는 스트로크의 위치를 조정하는 스트로크 조정부를 추가하고, 제 1 윤곽정보 확대축소부(2103)(도 25 참조)와 제 2 윤곽정보 확대축소부(2105)에 대하여, 스트로크의 위치 어긋남이 발생하지 않도록 스트로크 정보의 제공을 행한다.In order to avoid such a problem, in the gradation sharing data generating apparatus of the present modification, a stroke adjusting unit for adjusting the position of the stroke is added, and the first contour information zooming unit 2103 (see FIG. 25) and the second contour information zooming unit ( 2105), the stroke information is provided so that the positional shift of the stroke does not occur.

이하 본 변형예의 계조 공유 데이터 생성장치의 스트로크 조정부에 대하여 설명하기로 한다. 도 36은 본 변형예의 계조 공유 데이터 생성장치의 스트로크 조정부를 이용한 2계조 데이터의 각 수평 스트로크에 대한 처리 순서를 도시하는 흐름도이다.Hereinafter, the stroke adjustment unit of the gradation shared data generating device of this modification will be described. 36 is a flowchart showing a processing procedure for each horizontal stroke of the two-tone data using the stroke adjustment unit of the tone-sharing data generating device of this modification.

여기에서는 스트로크의 위치 어긋남이 생길 경우에 2계조에 적합하도록 확대 축소한 수평 스트로크 정보를, 3계조에 적합하도록 확대 축소한 수평 스트로크 정보에 맞추어 수정하는 것으로 하지만, 3계조에 적합하도록 확대 축소한 수평 스트로크 정보를, 2계조에 적합하도록 확대 축소한 수평 스트로크 정보에 맞추어 수정할 수 있다.In this case, when the stroke is misaligned, the horizontal stroke information that is enlarged and reduced to fit two gray scales is corrected to the horizontal stroke information that is scaled up and down to fit three gray scales. The stroke information can be corrected in accordance with the horizontal stroke information enlarged and reduced so as to suit two gradations.

스트로크를 조정하는 처리에서는, 우선 상술한 (처리 3)(도 27 참조)과 마찬가지로 하여, 2계조에 적합하도록 확대 축소된 수평 스트로크폭(W2) 및 하부직선의 Y좌표값(L2)이 구해지고(S51), 상술한 (처리 5)(도 27 참조)와 마찬가지로 하여, 3계조에 적합하도록 확대 축소된 수평 스트로크폭(W3) 및 하부직선의 Y좌표값(L3)이 구해진다(S52).In the process of adjusting the stroke, the horizontal stroke width W2 and Y coordinate value L2 of the lower straight line, which are enlarged and reduced so as to be suitable for two gray scales, are first obtained in the same manner as the above-described (process 3) (see FIG. 27). (S51), similarly to the above-described (Process 5) (refer to FIG. 27), the horizontal stroke width W3 enlarged and reduced to fit the three gradations and the Y coordinate value L3 of the lower straight line are obtained (S52).

이와 같이 하여 구해진 2계조에 적합하도록 확대 축소된 하부직선의 Y좌표값(L2)은 이하와 같이 하여 동일한 스트로크에 대한 3계조에 적합하도록 확대 축소된 하부직선의 Y좌표값(L3)과의 위치관계에 따라 수정되고, 2계조에 적합하도록 확대 축소된 스트로크의 위치가 조정된다. 다음에 도시한 도 37의 (a), 도 38의 (a), 도 39의 (a)에서는 굵은선은 픽셀 경계, 가는선은 서브 픽셀 경계를 도시한다. 여기에서는 수평 스트로크폭(W2, W3)은 1픽셀분으로 하지만, 이 이상인 경우에 대해서도 마찬가지로 설명할 수 있다.The Y coordinate value L2 of the lower straight line enlarged and reduced to fit the two gradations obtained in this way is the position with the Y coordinate value L3 of the lower straight line enlarged and reduced to fit the three gradations for the same stroke as follows. The position is corrected in accordance with the relationship, and the position of the enlarged and reduced stroke is adjusted to suit two gradations. Next, in FIG. 37A, FIG. 38A, and FIG. 39A, thick lines show pixel boundaries, and thin lines show subpixel boundaries. Here, the horizontal stroke widths W2 and W3 are equal to one pixel, but the above-described case can be similarly described.

또한 Y좌표값(L2)은 2계조에 적합한 확대 축소가 실시되기 때문에 픽셀경계에 위치하고, Y좌표값(L3)은 3계조에 적합한 확대 축소가 실시되기 때문에 서브 픽셀 경계에 위치한다. Y좌표값(L2, L3)은 이들이 픽셀 경계상, 서브 픽셀 경계 상에 있을 때 이들을 하방의 경계로 하는 픽셀, 서브 픽셀에 포함되는 것으로 한다.In addition, the Y coordinate value L2 is located at the pixel boundary because the enlargement reduction is performed for two gradations, and the Y coordinate value L3 is positioned at the subpixel boundary because the enlargement reduction is performed for the three gradations. The Y coordinate values L2 and L3 are assumed to be included in the pixels and subpixels that make them a lower boundary when they are on the pixel boundary and the subpixel boundary.

도 37의 (a)는 Y좌표값(L2, L3)이 동일한 픽셀에 포함되는 경우에 상정되는 4가지의 Y좌표값(L2, L3)의 위치를 도시한 도면이고, 도 37의 (b)는 이 경우의 Y 좌표값(L2), Y좌표값(L3)의 위치에 따른 대상 픽셀에 대한 2계조 데이터의 계조값, 3계조 데이터의 계조값, 이들로부터 생성되는 계조 공유 데이터의 계조값을 도시한 도면이다. (계조 공유 데이터의 계조값은 상술한 바와 마찬가지로 도 16에 도시된 매트릭스표에 따라 2계조 데이터의 계조값, 3계조 데이터의 계조값으로부터 구해지고, 계조 공유 데이터 복원장치로써, 이 계조 공유 데이터로부터 도 18의 (a), (b)에 도시된 변환표에 따라 2계조 데이터의 계조값, 3계조 데이터의 계조값이 복원된다).FIG. 37A shows positions of four Y coordinate values L2 and L3 assumed when the Y coordinate values L2 and L3 are included in the same pixel, and FIG. 37B. In this case, the grayscale value of the two-tone data for the target pixel according to the position of the Y-coordinate value L2, the Y-coordinate value L3, the grayscale value of the three-tone data, and the grayscale value of the grayscale shared data generated therefrom The figure is shown. (The gradation value of the gradation shared data is obtained from the gradation value of the 2 gradation data and the gradation value of the 3 gradation data according to the matrix table shown in Fig. 16, as described above. In accordance with the conversion tables shown in Figs. 18A and 18B, the gradation values of the two gradation data and the gradation values of the three gradation data are restored).

도 37의 (b)를 참조하면 Y좌표값(L2)과 Y좌표값(L3)이 같은 픽셀에 포함되는 경우에는 2계조 데이터의 계조값이 1이 됨에도 불구하고 계조 공유 데이터의 계조값이 0이 될 때, 즉 Y좌표값(L2)과 Y좌표값(L3)의 차가 3 서브 픽셀이 될 때에만 생성된 계조 공유 데이터로부터 2계조 데이터를 복원했을 때에 수평 스트로크가 복원되지 않는 것을 알 수 있다.Referring to FIG. 37B, when the Y coordinate value L2 and the Y coordinate value L3 are included in the same pixel, the grayscale value of the grayscale shared data is 0 even though the grayscale value of the two grayscale data is 1. In this case, it is understood that the horizontal stroke is not restored when the two-tone data is restored from the grayscale shared data generated only when the difference between the Y coordinate value L2 and the Y coordinate value L3 becomes three subpixels. .

이들에 따라 스트로크 조정부에서는 다음과 같은 처리가 행해진다(도 36의 S52에 계속해서). 확대 축소된 수평 스트로크의 각각에 대하여 Y좌표값(L2)과 Y좌표값(L3)이 같은 픽셀에 포함되는지의 여부가 판단된다(S53). 이들이 같은 픽셀에 포함되면(S53에서 예), L2와 L3의 차가 3이상이면(S54), L2과 L3의 차가 3 이상이면(S54에서 예), L2에 4가 더해져서(S55), L2가 하부직선의 Y좌표값을 나타내는 수평 스트로크는 4 서브 픽셀분, 즉 1픽셀분 상방으로 이동되고, 이 후 S59로 처리는 진행시켜진다. 또한 L2와 L3의 차가 3이상이 되면(S54에서, 아니오) 처리는 그대로 S59로 진행된다.In accordance with these, the following processing is performed in the stroke adjusting unit (following S52 in FIG. 36). It is determined whether or not the Y coordinate value L2 and the Y coordinate value L3 are included in the same pixel for each of the enlarged and reduced horizontal strokes (S53). If they are included in the same pixel (YES at S53), if the difference between L2 and L3 is 3 or more (S54), if the difference between L2 and L3 is 3 or more (YES at S54), 4 is added to L2 (S55), so that L2 is The horizontal stroke representing the Y-coordinate value of the lower straight line is moved upward for four subpixels, that is, one pixel, and then the processing advances to S59. If the difference between L2 and L3 is 3 or more (NO in S54), the processing proceeds directly to S59.

도 38의 (a)는 Y좌표값(L2)을 포함하게 되는 픽셀이 Y좌표값(L3)을 포함하게 되는 픽셀의 하방에 접하는 경우의 Y좌표값(L2)에 대한 Y좌표값(L3)의 4가지의 위치를 도시한 도면이며, 도 38의 (b)는 이 경우의 Y좌표값(L2), Y좌표값(L3)의 위치에 따른 대상 픽셀에 대한 2계조 데이터의 계조값, 3계조 데이터의 계조값, 이들로부터 생성되는 계조 공유 데이터의 계조값을 도시한 도면이다.38A illustrates a Y coordinate value L3 with respect to a Y coordinate value L2 when a pixel including the Y coordinate value L2 is in contact with a lower side of the pixel including the Y coordinate value L3. Fig. 38 (b) shows the gradation value of the two-tone data for the target pixel according to the position of the Y coordinate value L2 and Y coordinate value L3 in this case, 3 It is a figure which shows the gradation value of gradation data and the gradation value of the gradation shared data produced | generated from them.

도 38의 (b)를 참조하면 Y좌표값(L2)을 포함하게 되는 픽셀이 Y좌표값(L3)을 포함하게 되는 픽셀의 하방에 접하는 경우에는 항상 2계조 데이터의 계조값이 1이 됨에도 불구하고, 계조 공유 데이터의 계조값이 O으로 되어, 생성된 계조 공유 데이터로부터 2계조 데이터를 복원했을 때에 수평 스트로크가 복원되지 않는 것을 알 수 있다.Referring to FIG. 38B, when the pixel including the Y coordinate value L2 is in contact with the lower side of the pixel including the Y coordinate value L3, the gray scale value of the two gray scale data is always 1, Then, it is understood that the horizontal stroke is not restored when the gray scale value of the gray scale shared data becomes O and the two gray scale data are restored from the generated gray scale shared data.

이들에 따라 스트로크 조정부에서는 다음과 같은 처리가 행해진다. Y좌표값 (L2)과 Y좌표값(L3)이 같은 픽셀에 포함되지 않으면(도 36의 S53에서 아니오), L3이 L2의 하방의 픽셀에 포함되는지의 여부가 판단된다(S56). L3이 L2의 하방에 포함되지 않으면, 즉 상술한 경우(S56에서 아니오), L2에 4가 더해지고(S55), L2가 하부직선의 Y좌표값을 도시하는 수평 스트로크는 4 서브 픽셀분, 즉 1픽셀분 상방으로 이동되고, S59로 처리는 진행된다.In accordance with these, the following processing is performed in the stroke adjustment unit. If the Y coordinate value L2 and the Y coordinate value L3 are not included in the same pixel (NO in S53 of FIG. 36), it is determined whether or not L3 is included in the pixel below L2 (S56). If L3 is not included below L2, i.e. in the case described above (NO in S56), 4 is added to L2 (S55), and the horizontal stroke in which L2 shows the Y coordinate value of the lower straight line is 4 subpixels, that is, The image is moved upward by one pixel, and the process proceeds to S59.

도 39의 (a)는 Y좌표값(L2)을 포함하게 되는 픽셀이 Y좌표값(L3)을 포함하게 되는 픽셀의 상방에 접하는 경우의 Y좌표값(L2)에 대한 Y좌표값(L3+W3)의 4종류의 위치를 도시한 도면이며, 도 39의 (b)는 이 경우의 Y좌표값(L2), Y좌표값(L3)의 위치에 따른 대상 픽셀에 대한 2계조 데이터의 계조값, 3계조 데이터의 계조값, 이들로부터 생성되는 계조 공유 데이터의 계조값을 도시한 도면이다. 이 Y좌표값(L2)을 포함하게 되는 픽셀이 Y좌표값(L3)을 포함하게 되는 픽셀의 상방에 접하는 경우에는 3계조에 적합하도록 확대 축소된 수평 스트로크의 상부직선의 Y좌표값(L3+W3)이 L2가 포함되는 대상 픽셀의 계조값에 영향을 준다.FIG. 39A shows the Y coordinate value L3 + with respect to the Y coordinate value L2 when the pixel including the Y coordinate value L2 is in contact with the upper side of the pixel including the Y coordinate value L3. W3) shows four types of positions, and FIG. 39B shows the gradation values of the two-tone data for the target pixel according to the positions of the Y coordinate value L2 and the Y coordinate value L3 in this case. And gradation values of the gradation data of the gradation shared data generated therefrom. If the pixel including the Y coordinate value L2 is in contact with the upper side of the pixel including the Y coordinate value L3, the Y coordinate value L3 + of the upper straight line of the horizontal stroke enlarged and reduced to fit the three gray scales W3) affects the gradation value of the target pixel including L2.

도 39의 (b)를 참조하면 Y좌표값(L2)을 포함하게 되는 픽셀이 Y좌표값(L3)을 포함하게 되는 픽셀의 상방에 접하는 경우에는 2계조 데이터의 계조값이 1이 됨에도 불구하고, 계조 공유 데이터의 계조값이 0이 되는 것은 3계조에 적합하도록 확대 축소된 수평 스트로크의 상부직선의 Y좌표값(L3+W3)과, 동일한 수평 스트로크에 대하여 2계조에 적합하도록 확대 축소된 하부직선의 Y좌표값(L2)의 차가 1 서브 픽셀이하일 때인 것을 알 수 있다. 이 때 생성된 계조 공유 데이터로부터 2계조 데이터를 복원했을 때에는 수평 스트로크는 복원되지 않는다.Referring to FIG. 39B, in the case where the pixel including the Y coordinate value L2 is in contact with the upper side of the pixel including the Y coordinate value L3, the gray scale value of the two gray scale data becomes 1, For example, the gray scale value of the shared grayscale data becomes 0 is the Y coordinate value (L3 + W3) of the upper straight line of the horizontal stroke enlarged and reduced to fit the three gray scales, and the lower scale scaled to fit the two gray scales for the same horizontal stroke. It can be seen that the difference between the Y coordinate value L2 of the straight line is one subpixel or less. When restoring the two-tone data from the grayscale shared data generated at this time, the horizontal stroke is not restored.

이들에 따라 스트로크 조정부에서는 다음과 같은 처리가 행해진다. L3이 L2의 하방에 포함되면, 즉 상술한 경우(도 36의 S56에서, 예), L3+W3과 L2의 차가 1이하인지의 여부가 판단되고(S57), L3+W3과 L2의 차가 1이하이면(S57에서, 예), L2로부터 4가 빠지고(S58), L2가 하부직선의 Y좌표값을 도시하는 수평 스트로크는 4 서브 픽셀분, 즉 1픽셀분 하방으로 이동되며, 이 후 S59로 처리는 진행된다. 또한 L3 + W3과 L2의 차가 1이하가 되면(S57에서, 아니오) 처리는 그대로 S59로 진행된다.In accordance with these, the following processing is performed in the stroke adjustment unit. If L3 is included below L2, i.e., in the case described above (YES in S56 in Fig. 36), it is determined whether the difference between L3 + W3 and L2 is 1 or less (S57), and the difference between L3 + W3 and L2 is 1; If less than (YES in S57), 4 is subtracted from L2 (S58), and the horizontal stroke in which L2 shows the Y coordinate value of the lower straight line is shifted downward by 4 subpixels, that is, 1 pixel, and then to S59. Processing proceeds. If the difference between L3 + W3 and L2 becomes 1 or less (NO in S57), the processing proceeds directly to S59.

이상과 같이 하여 Y좌표값(L2)이 Y좌표값(L3)에 대하여 위치 어긋남을 일으키고 있는 경우에는 Y좌표값(L2)이 수정되고(S54, S55, S57, S58로부터 처리가 진행되어) 2계조에 적합하도록 확대 축소된 수평 스트로크의 상부직선의 Y좌표값이 구해지고(S59), 3계조에 적합하도록 확대 축소된 수평 스트로크의 하부직선의 Y좌표값이 구해진다(S60).As described above, when the Y coordinate value L2 causes a position shift with respect to the Y coordinate value L3, the Y coordinate value L2 is corrected (processing proceeds from S54, S55, S57, and S58). The Y coordinate value of the upper straight line of the horizontal stroke enlarged and reduced to fit the gray scale is obtained (S59), and the Y coordinate value of the lower straight line of the horizontal stroke enlarged and reduced to fit the three gray scales is obtained (S60).

실제로 「三」을 구성하는 수평 스트로크 1(155, 225)(도 26의 (c) 참조)은 수평 스트로크 1(8, 12) (도 28 참조)에 (확대)축소되고, 2계조 데이터와 3계조 데이터에서는 스트로크에 위치 어긋남이 발생되고 있었지만, 상술한 바와 같은 스트로크 조정부에서의 처리에 의해 수평 스트로크 1(4, 8)에 (확대)축소되어 위치 어긋남은 수정된다. 이와 같은 확대 축소후의 스트로크 정보를 이용하여 윤곽정보를 확대 축소함으로써 품질을 손상하는 일 없이 2계조 데이터를 복원할 수 있는 계조 공유 데이터를 생성할 수 있다.In fact, the horizontal strokes 1 (155, 225) (see Fig. 26 (c)) constituting "three" are (zoom in) to the horizontal strokes 1 (8, 12) (see Fig. 28), and two tone data and 3 In the grayscale data, the position shift occurred in the stroke. However, the position shift is corrected (expanded) to the horizontal stroke 1 (4, 8) by the processing in the stroke adjusting unit as described above. By using the stroke information after the enlargement and reduction, the outline information can be enlarged and reduced to generate grayscale shared data capable of restoring the two-tone data without compromising quality.

이상과 같이 본 계조 공유 데이터 생성장치에서는 힌트처리가 행해지면서 또 필요에 따라 힌트처리되는 스트로크가 수정되면서, 데이터량의 증가를 수반하지 않는 계조 공유 데이터가 생성된다.As described above, in the gradation sharing data generating apparatus, hinting processing is performed, and the stroke to be hinted as necessary is corrected, thereby generating gradation sharing data that does not increase the amount of data.

다음으로, 본 발명의 제 3 실시예인 계조 공유 데이터 처리 시스템에 대하여 설명하기로 한다.Next, a grayscale shared data processing system as a third embodiment of the present invention will be described.

도 40은 본 발명의 제 3 실시예의 계조 공유 데이터처리 시스템의 구성을 설명하기 위한 블록도이다. 본 발명의 제 3 실시예의 계조 공유 데이터 처리 시스템은 제 1 실시예의 계조 공유 데이터 처리 시스템과 마찬가지로 계조 공유 데이터 생성장치, 계조 공유 데이터 복원장치를 포함하고 있다. 이 제 3 실시예의 계조 공유 데이터 처리 시스템에서는 계조 공유 데이터 복원장치만이 제 1 실시예의 계조 공유 데이터처리 시스템의 계조 공유 데이터 복원장치와 다르며, 이하에서는 이 계조 공유 데이터 생성장치에 대하여 설명하기로 한다(이하에서 설명하는 이외의 계조 공유 데이터 복원장치의 구성, 동작 등의 상세한 것은, 제 1 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 복원장치에 준하는 것으로 한다).40 is a block diagram for explaining the configuration of a gradation shared data processing system according to a third embodiment of the present invention. The gradation sharing data processing system of the third embodiment of the present invention, like the gradation sharing data processing system of the first embodiment, includes a gradation sharing data generating device and a gradation sharing data restoration device. In the grayscale shared data processing system of this third embodiment, only the grayscale shared data restoring apparatus is different from the grayscale shared data restoring apparatus of the grayscale shared data processing system of the first embodiment, which will be described below. (The details of the configuration, operation, and the like of the gradation shared data restoration apparatus other than those described below shall be the same as the gradation shared data restoration apparatus of the gradation shared data processing system of the first embodiment).

본 계조 공유 데이터 복원장치는 CLUT 검색부(3901), 묘화계조수 선택부(3902), 제 1 계조 데이터 묘화부(3903), 제 2 계조 데이터 묘화부(3904), 계조 공유 데이터 인출부(106), 전개 버퍼(107), 제 1 계조 데이터 복원부(109), 제 2 계조 데이터 복원부(110)를 포함하고 있다.The gradation shared data restoring apparatus includes a CLUT search section 3901, a drawing gradation number selection section 3902, a first gradation data drawing section 3904, a second gradation data drawing section 3904, and a gradation shared data extracting section 106 ), The expansion buffer 107, the first gradation data restoration unit 109, and the second gradation data restoration unit 110.

이들 중 계조 공유 데이터 추출부(106), 전개 버퍼(107), 제 1 계조 데이터 복원부(109), 제 2 계조 데이터 복원부(110)는 제 1 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 복원장치가 대응하는 각부와 마찬가지인 것으로 하여 그 설명을 반복하지 않는다.Among them, the grayscale shared data extracting unit 106, the expansion buffer 107, the first grayscale data restoring unit 109, and the second grayscale data restoring unit 110 are the grayscale shared data of the grayscale shared data processing system of the first embodiment. The restoring apparatus is the same as that of the corresponding part, and the description thereof is not repeated.

CLUT 검색부(3901)는 지정된 색이 외부로부터 입력된 (소정의 영상 데이터 입력장치로부터 영상 데이터를 참조하여 얻어진) 컬러 룩 업 테이블(팔레트 번호와 실제의 색의 대응을 나타내는 표) 내에 존재하는지의 여부를 검색하고 그 검색결과를 묘화계조수 선택부(3902)로 되돌린다.The CLUT retrieval unit 3901 determines whether the specified color exists in the color lookup table (obtained by referring to the image data from a predetermined image data input device) inputted from the outside (a table indicating the correspondence between palette numbers and actual colors). The search results are returned, and the search results are returned to the drawing tone selection unit 3902.

묘화계조수 선택부(3902)는 계조 공유 데이터에 저장되어 있는 계조 데이터의 각 계조수의 각각에 대하여 외부로부터 지시된 (소정의 영상 데이터 입력장치의 영상 데이터로부터 지시된) 전경색과 배경색과 (계조수-2)색의 중간색의 모두가 존재하는지의 여부를 CLUT 검색부(3901)를 이용하여 검색한다. 묘화계조수 선택부(3902)는 이 검색 결과, 모든 중간색이 존재한다고 판명된 계조수에 대응하여, 제 1 계조 데이터 복원부(109), 제 2 계조 데이터 복원부(110)를 선택적으로 기동한다. 또한 묘화계조수 선택부(3902)는 이 계조수에 대응하는 계조 데이터에 대응하여 제 1 계조 데이터 묘화부(3903), 제 2 계조 데이터 묘화부(3904)에 대하여 전경색과 배경색과 (계조수-2)색의 중간색을 나타내는 데이터를 출력한다.The drawing gradation number selection unit 3902 is the foreground and background colors (indicated from the image data of the predetermined image data input device) and the gradation (gradation) indicated from the outside for each of the gradation numbers of the gradation data stored in the gradation shared data. The CLUT search section 3401 is used to search whether or not all of the number-2) intermediate colors exist. The drawing gradation number selecting unit 3902 selectively starts the first gradation data restoring unit 109 and the second gradation data restoring unit 110 in correspondence with the gradation counts found to have all the intermediate colors as a result of this search. . In addition, the drawing gradation number selection unit 3902 is configured to correspond to the gradation data corresponding to the gradation number for the first gradation data drawing unit 3904 and the second gradation data drawing unit 3904 and the foreground color and the background color. 2) Output data representing the neutral color of the color.

제 1 계조 데이터 묘화부(3903)는 제 1 계조 데이터 복원부(109)로써 얻어지는 제 1 계조수를 갖는 제 1 계조 데이터의 계조값에 대하여 묘화계조수 선택부(3902)로부터 입력된 전경색과 배경색과 (계조수-2)색의 중간색을 할당한다.The first gradation data drawing unit 3403 is the foreground color and the background color inputted from the drawing gradation number selection unit 3902 with respect to the gradation value of the first gradation data having the first gradation number obtained by the first gradation data restoration unit 109. Assign intermediate colors of and (tone-2) colors.

제 2 계조 데이터 묘화부(3904)는 제 2 계조 데이터 복원부(110)로써 얻어지는 제 2 계조수를 갖는 제 2 계조 데이터의 계조값에 대하여, 묘화계조수 선택부(3902)로부터 입력된 전경색과 배경색과 (계조수-2)색의 중간색을 할당한다.The second gradation data drawing unit 3904 is configured with the foreground color input from the drawing gradation number selection unit 3902 with respect to the gradation value of the second gradation data having the second gradation number obtained by the second gradation data restoration unit 110. Assign the middle color of the background color and (gradation-2) color.

이들과 같은 계조 공유 데이터 복원장치에서의 처리 순서를 이하에 설명한다. 단, 계조 공유 데이터의 복원에 있어서는, 제 1 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 복원장치와 같은 것으로서 설명을 생략하고, 주로 컬러 룩 업 테이블을 검색한 상태에서의 계조수의 선택에 대하여 설명한다. 여기에서도 제 1 계조 데이터를 2계조 데이터, 제 2 계조 데이터를 3계조 데이터로 한다.The processing procedure in such a gradation shared data restoration apparatus is described below. However, in restoring the grayscale shared data, the description is omitted as the same as the grayscale shared data restoration apparatus of the grayscale shared data processing system of the first embodiment, and mainly the selection of the grayscale number in the state where the color lookup table is searched is performed. Explain. Here, the first tone data is referred to as two tone data, and the second tone data is referred to as three tone data.

도 41은 컬러 룩 업 테이블의 일례를 도시한 도면이다. 이 컬러 룩 업 테이블에는 화상표시에 이용하는 16색에 대한 팔레트 번호와(Y, U, V, α)의 4값으로 나타내는 색과의 대응이 표시된다.41 is a diagram illustrating an example of a color lookup table. In this color lookup table, the correspondence between the palette number for 16 colors used for image display and the color represented by four values of (Y, U, V, α) is displayed.

여기에서 Y, U, V는, YUV 표시색에 의한 색지정의 각 요소를 0∼255의 범위에 정규화한 값이다. 일반적으로 컬러 룩 업 테이블을 이용하는 묘화장치에서는 표시를 하기 위한 하드웨어에 대하여 이 표의 내용을 지시하고, 이후의 색지정을 팔레트 번호에 의해 행한다. 여기에서도 전경색과 배경색과 (계조수-2)색의 중간색이 팔레트 번호로 지정된다.Here, Y, U, and V are the values which normalized each element of the color specification by YUV display color to the range of 0-255. In general, in a drawing apparatus using a color lookup table, the contents of this table are instructed with respect to hardware for displaying, and subsequent color specification is performed by palette number. Here too, the foreground color, the background color, and the halftone of (Gradation-2) are designated as the palette number.

도 41에 도시된 컬러 룩 업 테이블 중 팔레트 번호 0이 붙여진 (0, 128, 128, 0)은 투명, 팔레트 번호 1이 붙여진 (0, 128, 128, 255)는 흑, 팔레트 번호 2가 붙여진 (128, 128, 128, 255)는 농도 0.5의 불투명의 회색, 팔레트 번호 3이 붙여진 (255, 128, 128, 255)는 불투명한 백을 나타낸다.In the color lookup table shown in FIG. 41, (0, 128, 128, 0) with a palette number of 0 is transparent, (0, 128, 128, 255) with a palette number of 1 is black, and palette number 2 is attached ( 128, 128, 128, 255) represent an opaque gray with a concentration of 0.5, and a palette number 3 (255, 128, 128, 255) represents an opaque bag.

본 계조 공유 데이터 복원장치로써, 이와 같이 지정된 컬러 룩 업 테이블을 이용하여 전경색에 대한 계조 데이터에 대하여 팔레트 번호 1 (즉 흑색), 배경색 에 대한 계조 데이터에 대하여 팔레트 번호 3(즉 백색)으로써 묘화하는 것이 지시되었다고 한다.In this gradation shared data restoring apparatus, a palette number 1 (i.e. black) is used for the gradation data for the foreground color and a palette number 3 (i.e., white) for the gradation data for the background color using the color look-up table thus designated. Is said to be directed.

이 CLUT 검색부(3901)는 다음 2개의 기능을 갖고 있다.This CLUT searching unit 3901 has the following two functions.

(기능 1) 입력으로서 주어진 팔레트 번호에 대한 YUVα의 값을 되돌린다.(Function 1) Returns the value of YUVα for the given palette number as an input.

(기능 2) 입력으로서 주어진 YUVα값이 컬러 룩 업 테이블에 존재하는지의 여부를 조사하여 존재하고 있으면 그 팔레트 번호를 되돌린다.(Function 2) Checks whether or not the YUVα value given as an input exists in the color lookup table and returns the palette number if present.

컬러 룩 업 테이블은 배열 변수에 의해서 표현할 수 있고, (기능 1)은 단순히 배열의 지정된 요소를 되돌림으로써, (기능 2)는 배열변수에 대한 선형탐색을 행함으로써 그 기능을 실장할 수 있다.The color lookup table can be represented by an array variable, and (function 1) can implement its function by simply returning a specified element of the array, and (function 2) by performing a linear search on the array variable.

이와 같은 기능을 갖는 CLUT 검색부(3901)를 이용하여, 묘화계조 선택부(3902)는 다음에 (처리 1)∼(처리 3)으로서 나타내는 순서에 의해 처리를 행한다.Using the CLUT retrieval unit 3901 having such a function, the drawing gradation selection unit 3902 then processes in the order shown as (Process 1) to (Process 3).

(처리 1) 우선 전경색, 배경색의 YUVα값을 CLUT 검색부(3901)를 이용하여 팔레트 번호로부터 결정한다. 이하 전경색을 (Yf, Uf, Vf, αf), 배경색을 (Yg, Ug, Vg, αg)로 한다.(Process 1) First, the YUVα values of the foreground color and the background color are determined from the palette number using the CLUT search unit 3401. Hereinafter, the foreground color is (Yf, Uf, Vf, αf) and the background color is (Yg, Ug, Vg, αg).

(처리 2) 계속해서, 계조 데이터의 계조수, 즉 여기에서는 2계조 및 3계조에 대하여 (처리 2-1), (처리 2-2)를 반복한다.(Process 2) Subsequently, (Process 2-1) and (Process 2-2) are repeated for the number of gray levels of the grayscale data, that is, two and three gray scales.

(처리 2-1) (계조수-2)색의 중간 계조값을 구한다. 계조수를 G로 하면 n색째의 중간색에 대한 Y, U, V, α는 다음의 수학식 49∼수학식 52에 나타낸 바와 같이 하여 구해진다.(Process 2-1) The halftone value of the (tone-2) color is calculated | required. When the number of gradations is G, Y, U, V, and α for the n-th intermediate color are obtained as shown in the following equations (49) to (52).

(처리 2-2) (처리2-1)에서 구해진 중간색의 전부에 대하여 CLUT 검색부(3901)를 이용하여 컬러 룩 업 테이블에 존재하는지의 여부를 검색한다.(Process 2-2) The CLUT search unit 3901 is used to search for all of the intermediate colors obtained in (Process 2-1) or not in the color lookup table.

(처리 3) 모든 중간색이 컬러 룩 업 테이블에 존재한다고 판명된 계조 데이터에 대하여 대응하는 계조 데이터 복원부(제 1 계조 데이터 복원부(109), 제 2 계조 데이터 복원부(110) 중 어느 것)를 기동하고, 또 검색 결과 얻어진 각 중간색에 대한 팔레트 번호를 전경색, 배경색에 대한 팔레트 번호의 지정과 함께, 계조 데이터 묘화부(제 1 계조 데이터 묘화부(3903), 제 2 계조 데이터 묘화부(3904) 중 어느 것)에 출력한다.(Process 3) Gray data restoring unit (any of the first gray data restoring unit 109 and the second gray data restoring unit 110) corresponding to grayscale data for which all the halftones are found in the color lookup table. And the palette number for each intermediate color obtained as a result of the search, and the palette number for the foreground color and the background color, together with the tone data drawing unit (the first tone data drawing unit 3403 and the second tone data drawing unit 3904). Output to)).

상기 중간색의 검색에 의해 모든 중간색이 컬러 룩 업 테이블에 존재하는 계조수가 복수 존재하는 경우에는 계조수가 최대인 것을 선택함으로써 가장 품질이 좋은 화상을 얻을 수 있다.When a plurality of tones exist in the color look-up table by all the intermediate colors by the search for the intermediate colors, the image having the highest quality can be obtained by selecting the one having the maximum number of tones.

실제로 전경색이 팔레트 번호 1에, 배경색이 팔레트 번호 3에 지정된 경우에 상술한 순서를 적용하면 다음과 같이 처리된다.In fact, if the foreground color is assigned to palette number 1 and the background color is assigned to palette number 3, the above-described order is processed as follows.

우선 (처리 1)에 의해 전경색은(0, 128, 128, 255), 배경색은(0, 128, 128, 255)로 결정된다.First, by (process 1), the foreground color is determined as (0, 128, 128, 255), and the background color is (0, 128, 128, 255).

(처리 2)에서는 2계조에 대해서는 중간색의 수는 0이기 때문에 컬러 룩 업 테이블은 검색되지 않고, 2계조에서의 묘화가 가능한 것이 판명된다. 또한 (처리2)에서는 3계조에 대하여 (처리 2-1)에서 중간색이 1색 있고, 그것이 (128, 255, 255, 255)인 것이 구해진다. 또한, (처리 2)에서는 3계조에 대하여 (처리 2-2)에서 CLUT 검색부(3901)가 이용되고, 이 중간색이 팔레트 번호 3으로 설정되어 있는 것이 검색된다.In (Process 2), since the number of intermediate colors is 0 for two grayscales, the color lookup table is not searched, and it is found that drawing in two grayscales is possible. Further, in (Process 2), one color is found in (Process 2-1) for three gradations, and it is determined that it is (128, 255, 255, 255). Further, in (Process 2), the CLUT search unit 3901 is used in (Process 2-2) for three gradations, and it is searched that this intermediate color is set to palette number 3.

계속해서 (처리 3)에서는 2계조, 3계조 중 어디 것에 의해서도 묘화를 행할 수 있는 것이 판명되어 있기 때문에 제 2 계조 데이터 묘화부(3904)에 대하여 전경색에 대한 팔레트 번호 1, 배경색에 대한 팔레트 번호 3이 출력되고, 중간색에 대한 팔레트 번호 2가 출력된다.Subsequently, in (Process 3), it is found that drawing can be performed by either of two or three gradations, so that the palette number 1 for the foreground color and palette number 3 for the background color for the second tone data drawing unit 3904. Is output, and palette number 2 for the intermediate color is output.

제 2 계조 복원부(110)에서는 제 1 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 복원장치와 마찬가지로 하여 각 픽셀에 대한 3계조 데이터에 대한 계조값이 얻어지고, 제 2 계조 데이터 묘화부(3904)에서는 3계조 데이터가 나타내는 각 픽셀에 대한 계조값 0, 1, 2의 각각에 대응하여 배경색(여기에서는 팔레트 번호 3), 중간색(여기에서는 팔레트 번호 2), 전경색(여기에서는 팔레트 번호 1)을 이용하여 묘화를 행하도록 표시부에 대하여 지시된다.The second gray level restoration section 110 obtains a gray level value for the three gray level data for each pixel in the same manner as the gray level shared data restoration apparatus of the gray level shared data processing system of the first embodiment, and the second gray level data drawing section 3904. ), The background color (here palette number 3), the middle color (here palette number 2), and the foreground color (here palette number 1) correspond to each of the gradation values 0, 1, and 2 for each pixel represented by the 3 gradation data. The display unit is instructed to perform drawing.

이와 같은 순서에 의해 (외부에서 주어진) 전경색과 배경색과 컬러 룩 업 테이블에 대하여 복수종의 계조 데이터 중 적절한 계조 데이터를 선택하여 묘화를 행할 수 있다.In this order, an appropriate tone data can be selected from among a plurality of types of tone data for the foreground color, the background color and the color lookup table (given from the outside), and drawing can be performed.

이상과 같이 본 계조 공유 데이터 복원장치에서는 외부에서 지정된 컬러 룩 업 테이블이 이용되면서 데이터량의 증가를 수반하지 않는 계조 공유 데이터로부터 적절한 계조수가 선택되어, 품질이 좋은 계조 데이터가 복원된다.As described above, in the gradation shared data restoration apparatus, an appropriate gradation number is selected from gradation shared data that does not increase the amount of data while the color lookup table specified externally is used, and gradation data having high quality is restored.

계속해서 제 3 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 복원장치의 변형예에 대하여 설명하기로 한다. 상술한 바와 같이 제 3 실시예의 계조 공유 데이터 처리 시스템의 계조 공유 데이터 복원장치에서는 CLUT 검색부(3901)(도 40 참조)로써 중간색을 검색할 때 엄밀하게 값이 일치하는지의 여부에 의해 색을 비교하는 것으로 하였지만, 본 변형예의 계조 공유 데이터 복원장치에서는 목적으로 하는 중간색에 대하여 근사하는 색을 검색하는 것으로 함으로써, 컬러 룩 업 테이블 중에 목적으로 하는 중간색에 엄밀하게 일치하는 색이 없는 경우에도 높은 계조수로 묘화를 행할 수 있다.Subsequently, a modification of the gradation shared data restoration apparatus of the gradation shared data processing system of the third embodiment will be described. As described above, in the gradation sharing data restoration apparatus of the gradation sharing data processing system of the third embodiment, when searching for intermediate colors by the CLUT searching unit 3901 (see Fig. 40), the colors are compared by strictly matching values or not. In the gradation-sharing data restoration apparatus of the present modification, by searching for a color that approximates the target intermediate color, even if no color exactly matches the target intermediate color in the color lookup table, the gradation number is high. I can perform drawing.

이하 본 변형예의 계조 공유 데이터 복원장치의(Y, U, V, α)의 근사색을 선택할 수 있는 CLUT 검색부(390l)에서의 동작을 설명하기로 한다.The operation of the CLUT retrieving unit 390l that can select an approximate color of (Y, U, V, α) of the gradation shared data restoration apparatus of this modification will be described below.

이 CLUT 검색부(3901)에서는 3계조 데이터를 대상으로 하여 주어진 배경색(Yb, Ub, Vb, αb)과 전경색(Yf, Uf, Vf, αf)에 대하여, 휘도(Y)에 ±10%의 오차, U/V가 구성하는 크로마 환(環)에 ±3도의 오차를 용인하는 것으로 한다. 이 때 중간색(Ym, Um, Vm, αm)은 컬러 룩 업 테이블의 각 색 중에서 다음과 같은 (조건 1)∼(조건 4)에 적합한 것이 선택된다.The CLUT retrieval unit 3901 has an error of ± 10% in luminance Y with respect to the background color (Yb, Ub, Vb, αb) and foreground color (Yf, Uf, Vf, αf) given for the three-gradation data. The error of ± 3 degrees shall be tolerated for the chroma ring formed by U / V. At this time, the intermediate colors (Ym, Um, Vm, αm) are selected from the respective colors of the color lookup table suitable for the following (Condition 1) to (Condition 4).

(조건 1) αb = 0인 경우(배경색이 투명) :(Condition 1) When αb = 0 (background color is transparent):

(조건 2) αf = 0인 경우 :(Condition 2) When αf = 0:

(조건 3) αf = αb = 255의 경우(배경색과 전경색 모두 투명하거나 반투명하지 않음) :(Condition 3) For αf = αb = 255 (both background and foreground color are neither transparent nor translucent):

(조건 4) 1)에서부터 3) 이외의 경우 :(Condition 4) other than 1) to 3):

컬러 룩 업 테이블의 색 중 (조건 1)에 의하면 전경색과 같은 계열 색에서 반투명도가 반정도인 색이 적합하고, (조건 2)에 의하면 배경색과 같은 계열 색에서 반투명도가 반 정도인 색이 적합하고, (조건 3)에 의하면 YUV에 대해서는 배경색과 전경색의 중간색과 같은 계열의 색이면서 투명, 반투명하지 않은 색이 적합하고, (조건 4)에 의하면 YUVα에 대하여 중간색 부근의 색이 적합하다.According to (Condition 1) of the colors in the color lookup table, a color with half translucency is suitable for the same color as the foreground color, and according to (Condition 2), a color with half translucency is used for the same color as the background color. According to (Condition 3), a color of the same series as the background color and the foreground color is suitable for YUV, and a transparent and non-transparent color is suitable, and according to (Condition 4), a color near the intermediate color is suitable for YUVα.

이상과 같이 본 변형예의 계조 공유 데이터 복원장치에서는 외부에서 지정된 컬러 룩 업 테이블이 이용되면서 필요에 따라 전경색과 배경색으로부터 이용되는 중간색이 근사되어, 데이터량의 증가를 수반하지 않는 계조 공유 데이터로부터 적절한 계조수가 선택되어 품질이 좋은 계조 데이터가 복원된다.As described above, in the gradation shared data restoring apparatus of the present modification, an intermediate color used from the foreground color and the background color is approximated as required while the color lookup table specified externally is used, and appropriate gradation from the gradation shared data that does not increase the amount of data. The number is selected to restore high quality gradation data.

또 본 변형예의 계조 공유 데이터 복원장치에서는 중간색을 근사하기 위해 (조건 1)∼(조건 4)를 들었지만, 다른 조건을 이용할 수도 있다.In addition, in the gradation shared data restoration apparatus of the present modification, (condition 1) to (condition 4) are given to approximate the intermediate color, other conditions may be used.

또한 본 변형예의 계조 공유 데이터 복원장치에서는 컬러 룩 업 테이블에 있어서 YUVα값에 의해 색이 지정되는 것으로 하였지만, RGB와 같은 다른 색공간에서 표현된 컬러 룩 업 테이블을 이용할 수도 있다.In addition, in the grayscale shared data restoration apparatus of this modification, the color is designated by the YUVα value in the color lookup table, but a color lookup table expressed in another color space such as RGB may be used.

또 본 변형예의 계조 공유 데이터 복원장치에서는 계조 데이터는 계조 공유 데이터로부터 복원되는 것으로 하였지만, 주어진 컬러 룩 업 테이블에 대한 계조수의 선택은 계조 데이터를 공유화하지 않은 보통의 복수의 계조 데이터를 이용하는 시스템에도 적용할 수 있다.In the gradation shared data restoring apparatus of this modification, the gradation data is restored from the gradation sharing data, but the selection of the gradation number for a given color lookup table is also possible in a system using a plurality of ordinary gradation data that do not share the gradation data. Applicable

상술한 본 발명의 바람직한 실시예들은 예시의 목적을 위해 개시된 것이며, 당업자라면 첨부된 특허청구의 범위에 개시된 본 발명의 사상과 범위를 통해 각종 수정, 변경, 대체 및 부가가 가능할 것이다.Preferred embodiments of the present invention described above are disclosed for purposes of illustration, and those skilled in the art will be able to make various modifications, changes, substitutions and additions through the spirit and scope of the present invention as set forth in the appended claims.

Claims (30)

문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성장치에 있어서,From the contour information representing the outline of a symbol including a character or a figure, a plurality of types of gray scale data for representing the symbol are shared corresponding to a predetermined number of pixels representing the gray scale, and the gray scale shared data generating device generating gray scale shared data. In 상기 윤곽정보로부터 p종류의 최대 계조수 qα(α=1, 2, ..., p)인 계조 데이터를 생성하는 p(p는 2 이상의 정수)개의 계조 데이터 생성수단과, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2·‥ qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족시키는 정수이며,P (p is an integer of 2 or more) gradation data generating means for generating gradation data of the p type maximum gradation number q α (α = 1, 2, ..., p) from the contour information, wherein m Is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . Is an integer satisfying p + q, 상기 생성된 p종류의 계조 데이터로부터 최대 계조수 n인 계조 공유 데이터를 생성하는 계조 공유 데이터 생성수단을 포함하며, n은 qpn≤ 2m을 만족하는 정수인 것을 특징으로 하는 계조 공유 데이터 생성장치.It comprises a tone share data generating means for generating n in number of gradations up to gray level shared data from the gradation data of the generated p type, n is the tone sharing data generating device, characterized in that an integer satisfying q p n≤ 2 m . 제 1항에 있어서,The method of claim 1, 상기 윤곽정보로부터 상기 화소의 각각에 차지하는 상기 윤곽의 내측 부분의 면적의 비율을 나타내는 기본 계조 데이터를 생성하는 기본 계조 데이터 생성수단을 포함하며,Basic gradation data generating means for generating basic gradation data representing a ratio of an area of an inner portion of the contour to each of the pixels from the contour information; 상기 p개의 계조 데이터 생성수단의 각각은 상기 기본 계조 데이터로부터 상기 최대 계조수 qα에 따른 계조 데이터를 생성하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And each of the p tone data generating means generates the tone data according to the maximum number of tone q alpha from the basic tone data. 제 2항에 있어서,The method of claim 2, 임계값을 설정하는 설정수단을 포함하며,Setting means for setting a threshold, 상기 p개의 계조 데이터 생성수단의 각각은 상기 기본 계조 데이터로부터 상기 설정되는 임계값을 이용하여 상기 최대 계조수 qα에 따른 계조 데이터를 생성하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And each of the p gray scale data generating means generates gray scale data according to the maximum gray number q α using the set threshold value from the basic gray scale data. 제 1항에 있어서,The method of claim 1, 상기 계조 공유 데이터 생성수단은 상기 최대 계조수 qα인 계조 데이터의 각각이 취득하는 계조에 대한 (q1×q2×···×qp) 가지의 조합에 대하여, 상기 최대 계조수 n인 계조 데이터가 취득하는 계조를 할당함으로써 상기 최대 계조수 n인 계조 데이터를 생성하는 것을 특징으로 하는 계조 공유 데이터 생성장치.The tone sharing data generating means is the maximum tone number n for a combination of (q 1 x q 2 x ... x q p ) branches for each tone obtained by each of the tone data having the maximum tone number q α . And a gradation data having the maximum number of gradations n is generated by allocating gradations acquired by the gradation data. 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보와, 상기 기호를 구성하는 스트로크의 위치를 나타내는 스트로크 정보로부터, 계조를 나타내는 화소의 소정 개수 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성장치에 있어서,A plurality of types of gradation data for representing the symbol correspond to a predetermined number of pixels indicating gradation from outline information indicating the outline of a symbol including a character or a figure and stroke information indicating the position of the stroke constituting the symbol. In the gradation shared data generating device for generating gradation shared data, 상기 윤곽정보와 상기 스트로크 정보로부터 힌트처리를 행하면서 p종류의 최대 계조수 qα(α = 1, 2, ..., p)인 계조 데이터를 생성하는 p(p는 2 이상의 정수)개의 계조 데이터 생성수단과, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2. . . qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이며,P (p is an integer of 2 or more) gradations for generating gradation data of the p type maximum gradation number q α (α = 1, 2, ..., p) while performing hint processing from the outline information and the stroke information. Data generating means, wherein m is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 . . . q p , 2 m-1 q p 2 m q 1 + q 2 +. . . Is an integer satisfying p + q, 상기 생성된 p종류의 계조 데이터로부터 최대 계조수 n인 계조 공유 데이터를 생성하는 계조 공유 데이터 생성수단을 포함하며, n은 qpn ≤ 2m을 만족하는 정수인 것을 특징으로 하는 계조 공유 데이터 생성장치.Grayscale shared data generating means for generating grayscale shared data having a maximum number of grayscale n from the p-type grayscale data, wherein n is an integer satisfying q p n ≤ 2 m . . 제 5항에 있어서,The method of claim 5, 생성되는 p종류 중 1종류의 계조 데이터에 대한 스트로크 정보를 기준으로 하여 다른 (p-1)종류의 계조 데이터를 생성하기 위한 스트로크 정보를 조정하는 조정수단을 포함하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And gradation means for adjusting stroke information for generating gradation data of another (p-1) type on the basis of the stroke information for one gradation data of the p kinds to be generated. Device. 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하는 계조 공유 데이터 복원장치에 있어서,A gradation shared data restoration apparatus for restoring gradation data from gradation sharing data sharing plural kinds of gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels indicating gradation, 상기 계조 공유 데이터는 p종류의 최대 계조수 qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터로부터, 최대 계조수 n을 갖도록 생성된 것이고, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이고, n은 qpn ≤ 2m을 만족하는 정수이며,The grayscale shared data is generated to have a maximum grayscale number n from grayscale data of p type maximum grayscale number q α (p is an integer of 2 or more and α = 1, 2, ..., p), and m Is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . + is an integer that satisfies p , n is an integer that satisfies q p n ≤ 2 m , 최대 계조수를 선택하는 최대 계조수 선택수단과,A maximum number of numbers selecting means for selecting the maximum number of grays, 상기 생성된 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 계조 공유 데이터 복원수단을 포함하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And gradation shared data restoring means for restoring gradation data which is the selected maximum gradation number from the generated gradation sharing data. 제 7항에 있어서,The method of claim 7, wherein 상기 계조 공유 데이터 복원수단은 상기 선택된 최대 계조수의 계조 데이터가 취득하는 계조에 대하여, 상기 계조 공유 데이터가 취득하는 계조를 할당함으로써 상기 계조 데이터를 복원하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And the gradation shared data restoring means restores the gradation data by allocating a gradation acquired by the gradation sharing data to a gradation obtained by the gradation data of the selected maximum gradation number. 제 8항에 있어서,The method of claim 8, 상기 p종류의 계조 데이터의 각각이 취득하는 계조와 상기 계조 공유 데이터가 취득하는 계조를 대응시키는 p종류의 표를 기억하는 기억수단을 포함하며,Storage means for storing a p-type table that associates the gradation acquired by each of the p-type gradation data with the gradation acquired by the gradation shared data, 상기 계조 공유 데이터 복원수단은 상기 기억된 p종류의 표 중 상기 선택된 최대 계조수의 계조 데이터에 대응하는 표를 이용하여 상기 할당을 행하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And the gradation shared data restoring means performs the assignment using a table corresponding to the gradation data of the selected maximum gradation number among the stored p kinds of tables. 제 7항에 있어서,The method of claim 7, wherein 상기 선택된 최대 계조수의 계조 데이터가 상기 계조 공유 데이터에 포함되어있는지의 여부를 판정하는 판정수단과,Judging means for judging whether or not tone data of the selected maximum tone number is included in the tone sharing data; 상기 선택된 최대 계조수의 계조 데이터가 상기 계조 공유 데이터에 포함되어 있지 않다고 판정된 때에 상기 선택된 최대 계조수인 계조 데이터를 복원할 수 없는 것을 외부에 통지하는 외부 통지수단을 포함하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And external notification means for notifying outside that gradation data which is the selected maximum gradation number cannot be restored when it is determined that the gradation data of the selected maximum gradation number is not included in the gradation sharing data. Shared data generator. 제 7항에 있어서,The method of claim 7, wherein 상기 선택된 최대 계조수의 계조 데이터가 상기 계조 공유 데이터에 포함되어 있는지의 여부를 판정하는 판정수단과,Judging means for judging whether or not tone data of the selected maximum tone number is included in the tone sharing data; 상기 선택된 최대 계조수의 계조 데이터가 상기 계조 공유 데이터에 포함되어 있지 않다고 판정된 때에 상기 선택된 최대 계조수와의 차가 작은 최대 계조수를 선택하는 제 2 최대 계조수 선택수단을 포함하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And second maximum gradation number selection means for selecting a maximum gradation number having a small difference from the selected maximum gradation number when it is determined that gradation data of the selected maximum gradation number is not included in the gradation sharing data. Gradation shared data generating device. 제 7항에 있어서,The method of claim 7, wherein 상기 복원된 계조 데이터가 취득하는 계조에 대하여 미리 지정된 컬러 룩 업 테이블 중의 색을 할당하는 할당수단을 포함하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And assigning means for allocating a color in a predetermined color lookup table with respect to the gradation obtained by the restored gradation data. 제 7항에 있어서,The method of claim 7, wherein 미리 지정된 컬러 룩 업 테이블 중 전경색(前景色)을 특정하는 데이터와 배경색을 특정하는 데이터로부터 상기 복원된 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색의 각각을 특정하는 데이터를 산출하는 산출수단과,From the data specifying the foreground color and the background color among the predetermined color look-up tables, each of the intermediate colors of one or more grayscales (except the foreground and background colors) for the restored three or more grayscale data is excluded. Calculating means for calculating data, 상기 1계조 이상의 중간색의 각각에 대하여 상기 컬러 룩 업 테이블 중 상기산출된 데이터로부터 소정의 범위에 포함되는 색을 할당하는 할당수단을 포함하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And allocating means for allocating a color included in a predetermined range from the calculated data in the color lookup table for each of the one or more gradations. 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 처리하는 계조 데이터 처리장치에 있어서,A gradation data processing apparatus for processing gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels representing a gradation, 미리 지정된 컬러 룩 업 테이블 중의 전경색을 특정하는 데이터와 배경색을 특정하는 데이터로부터, 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색을 특정하는 데이터를 산출하는 산출수단과,Calculating means for calculating data specifying one or more gradations for the gradation data of three or more gradations (except the foreground color and the background color) from data specifying the foreground color and the background color in the predetermined color lookup table; 상기 1계조 이상의 중간색의 각각에 대하여 상기 컬러 룩 업 테이블 중 상기산출된 데이터로부터 소정의 범위에 포함되는 색을 할당하는 할당수단을 포함하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And allocating means for allocating a color included in a predetermined range from the calculated data in the color lookup table for each of the one or more gradations. 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터, 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성장치에 있어서,A gradation sharing data generation device for generating gradation sharing data by sharing plural kinds of gradation data for representing the symbol in accordance with a predetermined number of pixels indicating gradation from contour information indicating the outline of a symbol including a character or a figure. To 상기 윤곽정보로부터 최대 계조수 2의 계조 데이터를 생성하는 제 1 계조 데이터 생성수단과,First gradation data generating means for generating gradation data of the maximum gradation number 2 from the contour information; 상기 윤곽정보로부터 최대 계조수 3의 계조 데이터를 생성하는 제 2 계조 데이터 생성수단과,Second gradation data generating means for generating gradation data of the maximum gradation number 3 from the contour information; 상기 생성된 최대 계조수 2의 계조 데이터와 최대 계조수 3의 계조 데이터로부터 최대 계조수 4의 계조 공유 데이터를 생성하는 계조 공유 데이터 생성수단을 포함하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And gradation shared data generation means for generating gradation shared data of maximal gradation number 4 from the gradation data of maximal gradation number 2 and gradation data of maximal number 3. 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하는 계조 공유 데이터 복원장치에 있어서,A gradation shared data restoration apparatus for restoring gradation data from gradation sharing data sharing plural kinds of gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels indicating gradation, 상기 계조 공유 데이터는 최대 계조수 2의 계조 데이터와, 최대 계조수 3의 계조 데이터로부터 최대 계조수 4를 갖도록 생성된 것이며,The gray scale shared data is generated to have a maximum gray number 4 from gray data of the maximum gray number 2 and gray data of the maximum gray number 3, 최대 계조수 2 또는 최대 계조수 3을 선택하는 최대 계조수 선택수단과,A maximum number selection means for selecting the maximum number of gray numbers 2 or the maximum number of gray numbers, and 상기 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 계조 공유 데이터 복원수단을 포함하는 것을 특징으로 하는 계조 공유 데이터 복원장치.And gradation shared data restoring means for restoring gradation data which is the selected maximum gradation number from the gradation sharing data. 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성방법에 있어서,In the gradation sharing data generation method, a plurality of types of gradation data for representing the symbol are shared from the contour information representing the outline of a symbol including a character or a figure, and the gradation sharing data is generated. In 상기 윤곽정보로부터 p종류의 최대 계조수 qα(α = 1, 2, . . ., p)인 계조 데이터를 생성하는 p(p는 2 이상의 정수)개의 계조 데이터 생성단계와, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2. . . qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이며,P (p is an integer of 2 or more) gradation data generation steps for generating gradation data of p type gradation number q α (α = 1, 2, ..., p) from the contour information, wherein m Is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 . . . q p , 2 m-1 q p 2 m q 1 + q 2 +. . . Is an integer satisfying p + q, 상기 생성된 p종류의 계조 데이터로부터 최대 계조수 n인 계조 공유 데이터를 생성하는 계조 공유 데이터 생성단계를 포함하며, n은 qpn ≤ 2m을 만족하는 정수인 것을 특징으로 하는 계조 공유 데이터 생성방법.A grayscale shared data generating step of generating grayscale shared data having a maximum number of grayscale n from the p-type grayscale data, wherein n is an integer satisfying q p n ≤ 2 m . . 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보와, 상기 기호를 구성하는 스트로크 위치를 나타내는 스트로크 정보로부터, 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성방법에 있어서,A plurality of types of gradation data for expressing the symbol in correspondence with a predetermined number of pixels indicating gradation are shared from the contour information indicating the outline of a symbol including a character or a figure, and the stroke information indicating the stroke position constituting the symbol. In the gradation shared data generation method for generating gradation shared data, 상기 윤곽정보와 상기 스트로크 정보로부터 힌트처리를 행하면서 p종류의 최대 계조수 qα(α = 1, 2, . . ., p)인 계조 데이터를 생성하는 p(p는 2 이상의 정수)개의 계조 데이터 생성단계와, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2. . . qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이며,P (p is an integer of 2 or more) gradations that generate gradation data of p type maximum gradation number q α (α = 1, 2, ..., p) while performing hint processing from the outline information and the stroke information Data generation step, wherein m is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 . . . q p , 2 m-1 q p 2 m q 1 + q 2 +. . . Is an integer satisfying p + q, 상기 생성된 p종류의 계조 데이터로부터 최대 계조수 n인 계조 공유 데이터를 생성하는 계조 공유 데이터 생성단계를 포함하며, n은 qpn≤ 2m을 만족하는 정수인 것을 특징으로 하는 계조 공유 데이터 생성방법.A grayscale shared data generating step of generating grayscale shared data having a maximum number of grayscale n from the p-type grayscale data, wherein n is an integer satisfying q p n ≦ 2m . . 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하는 계조 공유 데이터 복원방법에 있어서,A gradation shared data restoration method for restoring gradation data from gradation sharing data for sharing plural kinds of gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels indicating gradation, 상기 계조 공유 데이터는 p종류의 최대 계조수 qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터로부터, 최대 계조수 n을 갖도록 생성된 것이고, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이고, n은 qpn ≤ 2m을 만족하는 정수이며,The grayscale shared data is generated to have a maximum grayscale number n from grayscale data of p type maximum grayscale number q α (p is an integer of 2 or more and α = 1, 2, ..., p), and m Is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . + is an integer that satisfies p , n is an integer that satisfies q p n ≤ 2 m , 최대 계조수를 선택하는 최대 계조수 선택단계와,A maximum number of steps for selecting the maximum number of tones, 상기 생성된 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 계조 공유 데이터 복원단계를 포함하는 것을 특징으로 하는 계조 공유 데이터 생성장치.And a grayscale shared data restoring step of restoring grayscale data which is the selected maximum grayscale number from the generated grayscale shared data. 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 처리하는 계조 데이터 처리방법에 있어서,A gradation data processing method for processing gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels representing a gradation, 미리 지정된 컬러 룩 업 테이블 중 전경색을 특정하는 데이터와 배경색을 특정하는 데이터로부터 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색의 각각을 특정하는 데이터를 산출하는 산출단계와,A calculation step of calculating data for specifying each of one or more gradation colors for gradation data of three or more gradations (excluding the foreground and background colors) from the data specifying the foreground color and the background color among the predetermined color lookup tables; , 상기 1계조 이상의 중간색의 각각에 대하여 상기 컬러 룩 업 테이블 중의 상기 산출된 데이터로부터 소정의 범위에 포함되는 색을 할당하는 할당단계를 포함하는 것을 특징으로 하는 계조 데이터 처리방법.And an allocating step of allocating a color included in a predetermined range from the calculated data in the color lookup table for each of the one or more gradations. 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 생성하는 계조 공유 데이터 생성방법에 있어서,In the gradation sharing data generation method, a plurality of types of gradation data for representing the symbol are shared from the contour information representing the outline of a symbol including a character or a figure, and the gradation sharing data is generated. In 상기 윤곽정보로부터 최대 계조수 2의 계조 데이터를 생성하는 제 1 계조 데이터 생성단계와,A first gradation data generation step of generating gradation data of the maximum gradation number 2 from the contour information; 상기 윤곽정보로부터 최대 계조수 3의 계조 데이터를 생성하는 제 2 계조 데이터 생성단계와,A second grayscale data generating step of generating grayscale data having a maximum number of grayscales 3 from the contour information; 상기 생성된 최대 계조수 2의 계조 데이터와 최대 계조수 3의 계조 데이터로부터 최대 계조수 4의 계조 공유 데이터를 생성하는 계조 공유 데이터 생성단계를 포함하는 것을 특징으로 하는 계조 공유 데이터 생성방법.And a grayscale shared data generation step of generating grayscale shared data of up to grayscale number 4 from grayscale data of the maximum grayscale number 2 and grayscale data of up to grayscale number 3. 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하는 계조 공유 데이터 복원방법에 있어서,A gradation shared data restoration method for restoring gradation data from gradation sharing data for sharing plural kinds of gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels indicating gradation, 상기 계조 공유 데이터는 최대 계조수 2의 계조 데이터와, 최대 계조수 3의 계조 데이터로부터 최대 계조수 4를 갖도록 생성된 것이며,The gray scale shared data is generated to have a maximum gray number 4 from gray data of the maximum gray number 2 and gray data of the maximum gray number 3, 최대 계조수 2 또는 최대 계조수 3을 선택하는 최대 계조수 선택단계와,Selecting the maximum number of gray levels for selecting the maximum number of gray levels 2 or the maximum number of gray levels, and 상기 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 계조 공유 데이터 복원단계를 포함하는 것을 특징으로 하는 계조 공유 데이터 복원방법.And a gradation shared data restoring step of restoring gradation data which is the selected maximum gradation number from the gradation sharing data. 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터 계조를 나타내는 화소의 소정의 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하고, 계조 공유 데이터를 생성하며, 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,A plurality of types of gradation data for representing the symbol are shared from the contour information representing the outline of a symbol including a character or a figure, a gradation sharing data is generated, and a program is recorded. In a computer-readable recording medium, 상기 윤곽정보로부터 p종류의 최대 계조수 qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터를 생성하고, 상기 생성된 p종류의 계조 데이터로부터, 최대 계조수 n인 계조 공유 데이터를 생성하는 프로그램을 기록하며,From the contour information, grayscale data of p type maximum grayscale number q α (p is an integer of 2 or more and α = 1, 2, ..., p) is generated, and from the generated ptype grayscale data, Records a program that generates gradation shared data with the maximum number of gradations n, 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이고, n은 qpn ≤ 2m을 만족하는 정수인 것을 특징으로 하는 기록매체.Here, m is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . + is an integer satisfying q p , and n is an integer satisfying q p n ≤ 2 m . 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보와, 상기 기호를 구성하는 스트로크의 위치를 나타내는 스트로크 정보로부터 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하고, 계조 공유 데이터를 생성하며, 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,A plurality of types of gradation data for representing the symbol are shared in accordance with a predetermined number of pixels indicating the gradation from outline information indicating the outline of a symbol including a character or a figure and stroke information indicating a position of the stroke constituting the symbol. A computer-readable recording medium for generating gradation sharing data and recording a program, 상기 윤곽정보와 상기 스트로크 정보로부터 힌트 처리를 행하면서 p종류의 최대 계조수 qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터를 생성하고, 상기 생성된 p종류의 계조 데이터로부터, 최대 계조수 n인 계조 공유 데이터를 생성하는 프로그램을 기록하며,While performing hint processing from the outline information and the stroke information, gray scale data of p type maximum gray scale number q α (p is an integer of 2 or more and α = 1, 2, ..., p) is generated, and From the p-type gradation data generated, a program for generating gradation shared data having a maximum gradation number n is recorded. 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이고, n은 qpn ≤ 2m을 만족하는 정수인 것을 특징으로 하는 기록매체.Here, m is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . + is an integer satisfying q p , and n is an integer satisfying q p n ≤ 2 m . 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하며, 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,A computer-readable recording medium for restoring grayscale data from grayscale shared data sharing a plurality of types of grayscale data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels representing grayscale, and recording a program. 상기 계조 공유 데이터는 p종류의 최대 계조수 qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터로부터 최대 계조수 n을 갖도록 생성된 것이며, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수이고, n은 qpn ≤ 2m을 만족하는 정수이며,The grayscale shared data is generated to have a maximum grayscale number n from grayscale data of p type maximum grayscale number q α (p is an integer of 2 or more and α = 1, 2, ..., p), and m is An integer of 2 or more, q α is 2 ≦ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . + is an integer that satisfies p , n is an integer that satisfies q p n ≤ 2 m , 최대 계조수를 선택하고, 상기 생성된 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 프로그램을 기록하는 것을 특징으로 하는 기록매체.And selecting a maximum number of gray levels, and recording a program for restoring the gray level data which is the selected maximum number of gray levels from the generated gray level shared data. 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 처리하며, 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,A computer-readable recording medium for processing gradation data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels representing a gradation, and recording a program. 미리 지정된 컬러 룩 업 테이블 중의 전경색을 특정하는 데이터와 배경색을 특정하는 데이터로부터 3계조 이상의 계조 데이터에 대한(전경색과 배경색을 제외함) 1계조 이상의 중간색의 각각을 특정하는 데이터를 산출하고, 상기 1계조 이상의 중간색의 각각에 대하여 상기 컬러 룩 업 테이블 중의 상기 산출된 데이터로부터 소정의 범위에 포함되는 색을 할당하는 프로그램을 기록하는 것을 특징으로 하는 기록매체.From the data specifying the foreground color and the background color in the predetermined color look-up table, data specifying each of one or more gradation colors for gradation data of three or more gradations (except foreground colors and background colors) is calculated, and the 1 And a program for allocating a color included in a predetermined range from the calculated data in the color lookup table for each of the intermediate colors of gradation or higher. 문자 또는 도형을 포함하는 기호의 윤곽을 나타내는 윤곽정보로부터 계조를 나타내는 화소의 소정 개수에 대응하여 상기 기호를 나타내기 위한 계조 데이터를 복수종류 공유하고, 계조 공유 데이터를 생성하며, 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,A computer for sharing a plurality of types of gradation data for representing the symbol, generating gradation sharing data, and recording a program corresponding to a predetermined number of pixels indicating gradation from the contour information representing the outline of a symbol including a character or a figure. A readable recording medium, 상기 윤곽정보로부터 최대 계조수 2인 계조 데이터와 최대 계조수 3인 계조 데이터를 생성하고, 상기 생성된 2종의 계조 데이터로부터 최대 계조수 4인 계조 공유 데이터를 생성하는 프로그램을 기록한 것을 특징으로 하는 기록매체.And a program for generating grayscale data having a maximum number of grayscales and grayscale data having a maximum number of grayscales from the contour information, and generating grayscale shared data having a maximum grayscale number of four from the generated two kinds of grayscale data. Record carrier. 계조를 나타내는 화소의 소정 개수에 대응하여 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하는 계조 공유 데이터로부터 계조 데이터를 복원하는 프로그램을 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,A computer-readable recording medium for recording a program for restoring grayscale data from grayscale shared data sharing a plurality of types of grayscale data for representing a symbol including a character or a figure corresponding to a predetermined number of pixels representing grayscale, 상기 계조 공유 데이터는 최대 계조수 2인 계조 데이터와 최대 계조수 3인 계조 데이터로부터 최대 계조수 4를 갖도록 생성된 것이며,The grayscale shared data is generated to have a maximum number of grayscales 4 from grayscale data having a maximum grayscale number of two and grayscale data having a maximum grayscale number of three. 최대 계조수를 선택하고, 상기 생성된 계조 공유 데이터로부터 상기 선택된 최대 계조수인 계조 데이터를 복원하는 프로그램을 기록하는 것을 특징으로 하는 기록매체.And selecting a maximum number of gray levels, and recording a program for restoring the gray level data which is the selected maximum number of gray levels from the generated gray level shared data. 계조를 나타내는 화소의 소정 개수에 대응하여, 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,A computer-readable recording medium for sharing plural types of gradation data for representing a symbol including a character or a figure and recording gradation sharing data corresponding to a predetermined number of pixels representing gradations, 상기 기호의 윤곽을 나타내는 윤곽정보로부터 각각 생성되며, p종류의 최대 계조수qα(p를 2 이상의 정수로 하고, α = 1, 2, ..., p)인 계조 데이터로부터 최대 계조수 n을 갖도록 생성되는 계조 공유 데이터를 기록하며,The maximum number of gradations n is generated from the gradation data, which are respectively generated from the contour information representing the outline of the symbol, and are p-type maximum gradations q q α (p is an integer of 2 or more and α = 1, 2, ..., p) Recording the grayscale shared data generated to have 여기에서, m은 2 이상의 정수로 하고, qα는 2 ≤ q1q2‥· qp, 2m-1qp2mq1+ q2+ . . . + qp를 만족하는 정수인 것을 특징으로 하는 기록매체.Here, m is an integer of 2 or more, and q α is 2 ≦ q 1 q 2 .. q p , 2 m-1 q p 2 m q 1 + q 2 +. . . A recording medium, characterized in that + q p is an integer. 계조를 나타내는 화소의 소정 개수에 대응하여, 문자 또는 도형을 포함하는 기호를 나타내기 위한 계조 데이터를 복수종류 공유하며, 계조 공유 데이터를 기록하는 컴퓨터 판독 가능한 기록매체에 있어서,A computer-readable recording medium for sharing plural types of gradation data for representing a symbol including a character or a figure and recording gradation sharing data corresponding to a predetermined number of pixels representing gradations, 상기 기호의 윤곽을 나타내는 윤곽정보로부터 각각 생성되며, 최대 계조수 2의 계조 데이터와 최대 계조수 3의 계조 데이터로부터 최대 계조수 4를 갖도록 생성되는 계조 공유 데이터를 기록하는 것을 특징으로 하는 기록매체.Recording data, each of which is generated from contour information representing the outline of the symbol and which has a maximum number of tones 4 from the data of the maximum number of tones 2 and the maximum of the number of tones 3;
KR10-1998-0033724A 1997-08-20 1998-08-20 Shared multilevel data encoding apparatus, shared multilevel data decoding apparatus, multilevel data processing apparatus, shared multilevel data encoding method, shared multilevel data decoding method, a multilevel data processing method, and a computer-readable recording medium storing any of such methods KR100490910B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP22329997 1997-08-20
JP97-223299 1997-08-20

Publications (2)

Publication Number Publication Date
KR19990023726A true KR19990023726A (en) 1999-03-25
KR100490910B1 KR100490910B1 (en) 2005-08-12

Family

ID=16795976

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-1998-0033724A KR100490910B1 (en) 1997-08-20 1998-08-20 Shared multilevel data encoding apparatus, shared multilevel data decoding apparatus, multilevel data processing apparatus, shared multilevel data encoding method, shared multilevel data decoding method, a multilevel data processing method, and a computer-readable recording medium storing any of such methods

Country Status (4)

Country Link
KR (1) KR100490910B1 (en)
CN (1) CN1172267C (en)
HK (1) HK1017465A1 (en)
TW (1) TW421748B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102044235B (en) * 2009-10-09 2012-11-28 奇景光电股份有限公司 Anti-aliased method of fonts

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0814786B2 (en) * 1988-12-28 1996-02-14 株式会社日立製作所 Character processing method
US5438656A (en) * 1993-06-01 1995-08-01 Ductus, Inc. Raster shape synthesis by direct multi-level filling
JP3119805B2 (en) * 1994-12-20 2000-12-25 松下電器産業株式会社 Multi-tone data generator
JPH09200523A (en) * 1996-01-19 1997-07-31 Ricoh Co Ltd Image processor

Also Published As

Publication number Publication date
KR100490910B1 (en) 2005-08-12
CN1211017A (en) 1999-03-17
TW421748B (en) 2001-02-11
CN1172267C (en) 2004-10-20
HK1017465A1 (en) 1999-11-19

Similar Documents

Publication Publication Date Title
KR910000545B1 (en) Color image display system
JP3982099B2 (en) Display device driving circuit, display device, display method, machine-readable recording medium, and display system
US7440037B2 (en) Anti-aliasing characters for improved display on an interlaced television monitor
KR900004019B1 (en) Color image display system
US5703621A (en) Universal display that presents all image types with high image fidelity
US5473737A (en) Method and apparatus for displaying a composite image made up of a foreground image and a background image
US20040056866A1 (en) Display equipment, display method, and storage medium storing a display control program using sub-pixels
KR100258919B1 (en) Dithering circuit and method
US20020070948A1 (en) Image processing method, image processing apparatus, electronic device, image processing program, and recording medium on which the same program recorded
JP3082491B2 (en) Character font data output device
US8044960B2 (en) Character display apparatus
JP2806086B2 (en) Image data processing device
US6606094B1 (en) Method and apparatus for text image stretching
JP3274227B2 (en) Image processing method and apparatus
KR100490910B1 (en) Shared multilevel data encoding apparatus, shared multilevel data decoding apparatus, multilevel data processing apparatus, shared multilevel data encoding method, shared multilevel data decoding method, a multilevel data processing method, and a computer-readable recording medium storing any of such methods
US5553219A (en) Font outline and bit map generator synthesizing filling data with selected outline data or duplicate outline data
JPH11134488A (en) Gradation shared data generator and gradation shared data restoration device
KR100426116B1 (en) Image half-tone processor and method therof
JP3114561B2 (en) Image processing device
JP2589953B2 (en) Character and image data generation apparatus and method
KR100691501B1 (en) Conversion method of outline font to bitmap image using snap hinting and stem hinting technic and computer readable media storing the software in which the conversion method is implemented
CN1711574B (en) Image displaying method and apparatus
JP4505082B2 (en) Multi-gradation data generation apparatus, program storage medium, data storage medium
JP3009747B2 (en) Character output method and device
US7348983B1 (en) Method and apparatus for text image stretching

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20090508

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee