JPS635485A - Image data compression circuit - Google Patents

Image data compression circuit

Info

Publication number
JPS635485A
JPS635485A JP15031986A JP15031986A JPS635485A JP S635485 A JPS635485 A JP S635485A JP 15031986 A JP15031986 A JP 15031986A JP 15031986 A JP15031986 A JP 15031986A JP S635485 A JPS635485 A JP S635485A
Authority
JP
Japan
Prior art keywords
color
data
information
image memory
compression
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP15031986A
Other languages
Japanese (ja)
Inventor
Wataru Kikuchi
亘 菊池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP15031986A priority Critical patent/JPS635485A/en
Publication of JPS635485A publication Critical patent/JPS635485A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To improve the compressibility by dividing color image information represented as multivalued information at every primary color into monochromatic image information and color information and compressing them with a picture element unit. CONSTITUTION:The display areas of respective display colors are segmented in parallel in a subscanning direction. Color display information are stored in memories 41-43 at every RGB, read in parallel by a raster scanning and converted to monochromatic display information represented by one bit at every picture element in a OR circuit 1'. The output of the circuit 1' is selected 6, compressed 3 at every scanning line unit by the use of code P (n) indicating the selected memory and the number of the picture elements D (m) and filed together with attribute information except the type of the primary color. In a color information forming part 2, compression information is restored and at the time of writing in the memories 41-43, information is formed in a form capable of using the color information as a memory selection signal as it is. Namely, the color information is formed and filed by the start and the end of the scanning line by a code EOL and the completion of the information by a code RTC. According to such constitution, a compression processing time is shortened and the quantity of the information after the compression can be reduced.

Description

【発明の詳細な説明】 〔概要〕 画素単位に原色別の多値データとして表されるカラーイ
メージデータを、モノクロームイメージデータと色彩デ
ータとに分けて圧縮するように構成することにより、圧
縮率の向上を図った。
[Detailed Description of the Invention] [Summary] By configuring color image data expressed as multi-value data for each primary color in pixel units to be compressed separately into monochrome image data and color data, the compression ratio can be improved. I tried to improve it.

〔産業上の利用分野〕[Industrial application field]

本発明はイメージデータ圧縮回路に関するものである。 The present invention relates to an image data compression circuit.

イメージデータは9画像や図形を画素の築まりとして1
画素単位のビットデータとして表したものである。
Image data consists of 9 images and figures as a structure of pixels.
This is expressed as bit data in pixel units.

したがってイメージデータはデータ量が非常に多く、そ
の反面、冗長度が比較的高いという特徴がある。このた
め、そのファイルあるいは転送に際しては1通常、デー
タ圧縮を施すことにより。
Therefore, image data has a very large amount of data, but on the other hand, it is characterized by a relatively high degree of redundancy. For this reason, data compression is usually applied when files or transfers are made.

ファイル容量の節減・転送速度の向上を図っている。The aim is to reduce file capacity and improve transfer speed.

とくにカラーイメージデータの場合には1画素毎に一般
に青・緑・赤の三原色別の多値データによって表される
ため、データ量はモノクロームの場合の約3倍になる。
In particular, in the case of color image data, each pixel is generally represented by multivalued data for each of the three primary colors of blue, green, and red, so the amount of data is about three times that of monochrome data.

この際、カラーイメージデータにおいては特に圧ER効
率を高めることが望まれている。
At this time, it is particularly desired to improve the pressure ER efficiency in color image data.

〔従来の技術〕[Conventional technology]

第4図は第一の従来例の説明図で、これはカラーデイス
プレィ装置内のイメージメモリ (フレームメモリとも
いう)に書き込まれているカラー表示データを、ファイ
ルする際などに利用するものである。
Figure 4 is an explanatory diagram of the first conventional example, which is used when filing color display data written in the image memory (also called frame memory) in a color display device. .

前記イメージメモリとして、赤(R)緑(G)青(B)
の3原色別に、第一のイメージメモリ41・第二のイメ
ージメモリ42・第三のイメージメモリ43の3個のイ
メージメモリを持っており、カラー表示データを画素単
位に原色別の3ビツトのデータとして書き込む。
As the image memory, red (R), green (G), blue (B)
It has three image memories, a first image memory 41, a second image memory 42, and a third image memory 43, for each of the three primary colors, and the color display data is converted into 3-bit data for each primary color in pixel units. Write as.

これを圧縮してファイルする際には、各イメージメモリ
41〜43の内容を、別々にラスク走査によって読み取
り、圧縮処理部3′によって、ファクシミリにおいて国
際的に標準化されている一次元符号化方式のM H(M
odified Huffman)方式・二次元符号化
方式のM R(Modified Read )方式等
を用い、ライン(走査線)単位にデータ圧縮を施し。
When compressing and filing this, the contents of each image memory 41 to 43 are read separately by rask scanning, and the compression processing unit 3' uses a one-dimensional encoding method that is internationally standardized for facsimile. M H (M
Data is compressed line by line (scanning line) using a modified Huffman (modified Huffman) method, a two-dimensional encoding method (MR (Modified Read)), etc.

原色の種別・ライン長・ライン数等の属性データを付け
てファイル5に格納する。
It is stored in file 5 with attribute data such as primary color type, line length, and number of lines.

第5図は第二の従来例の説明図であり、この場合には、
第一のイメージメモリ41に記憶している1ライン目の
データ・第二のイメージメモリ42に記憶しているlラ
イン目のデータ・第三のイメージメモリ43に記憶して
いる1ライン目のデータ・第一のイメージメモリ41に
記憶している2ライン目のデータ・・・の順に直列に読
み取り、第一のイメージメモリ41の1ライン目のデー
タと第二のイメージメモリ42の1ライン目のデータと
第三のイメージメモリ43の1ライン目のデータとを直
列に接続したものを1ラインとし、2ライン目以下も同
様にして、圧縮処理部3′によって第一の従来例と同様
な方法を用いて圧縮し、1ライン毎に属性データを付け
てファイル5に格納する。
FIG. 5 is an explanatory diagram of the second conventional example, and in this case,
1st line data stored in the first image memory 41, 1th line data stored in the second image memory 42, 1st line data stored in the third image memory 43・Read the second line data stored in the first image memory 41 serially in order, and read the first line data of the first image memory 41 and the first line data of the second image memory 42. The data and the data of the first line of the third image memory 43 are connected in series to form one line, and the second and subsequent lines are similarly processed by the compression processing unit 3' using the same method as in the first conventional example. The data is compressed using , and attribute data is attached to each line and stored in file 5.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記第一の従来例においては、原色別にデータ圧縮をお
こなう必要があるので、これを一つの圧縮処理部でおこ
なうとすると、モノクロームの場合のほぼ3倍の処理時
間を要するという問題点がある。
In the first conventional example, it is necessary to compress data for each primary color, so if this is done in one compression processing section, there is a problem that it will take approximately three times as much processing time as in the case of monochrome.

第二の従来例においては、■ライン毎の被圧縮データの
量がモノクロームの3倍であるため、データ圧縮に同じ
くほぼ3倍の処理時間を要するという問題点がある。
In the second conventional example, the amount of data to be compressed per line is three times that of monochrome, so there is a problem that data compression similarly requires approximately three times as much processing time.

また両従来例とも、圧縮後のデータ量がモノクロームの
場合の3倍近くになるため、大容量のファイル装置を必
要とするほか、データの復元にも長時間を要するという
問題点がある。
Further, in both conventional examples, the amount of data after compression is nearly three times that of the monochrome case, so there are problems in that a large-capacity file device is required and it takes a long time to restore the data.

すなわち2本発明の目的は、データ圧縮に要する処理時
間の短縮、および圧縮後のデータ量の減少を図ることに
ある。
That is, two objects of the present invention are to reduce the processing time required for data compression and to reduce the amount of data after compression.

〔問題点を解決するための手段〕[Means for solving problems]

本発明によるイメージデータ圧縮回路は、第1図の原理
図に示すように。
The image data compression circuit according to the present invention is as shown in the principle diagram of FIG.

画素単位に原色別の多値データとして表されるカラーイ
メージデータをモノクロームイメージデータに変換する
データ変換部1と。
and a data conversion unit 1 that converts color image data expressed as multi-value data for each primary color in units of pixels into monochrome image data.

前記カラーイメージデータから画素毎の色彩の属性を表
す色彩データを生成する色彩データ生成部2と。
and a color data generation unit 2 that generates color data representing color attributes of each pixel from the color image data.

前記変換されたモノクロームイメージデータおよび生成
された色彩データを走査線毎に圧縮する圧縮処理部3と
を構成要素とするものである。
The component includes a compression processing section 3 that compresses the converted monochrome image data and the generated color data for each scanning line.

〔作用〕[Effect]

カラーイメージデータから、データ変換部1および色彩
データ生成部2によって、それぞれ、モノクロームイメ
ージデータの形で表されるパターン情報、および色彩デ
ータを取り出し、これらを別々に圧縮するものである。
Pattern information and color data expressed in the form of monochrome image data are extracted from color image data by a data converter 1 and a color data generator 2, respectively, and these are compressed separately.

前者のデータ量は多色イメージデータのほぼ三分の−で
あり、−方、後者のデータ量は1表示色の種類が少ない
場合、あるいは表示色毎に表示領域が予め決まっている
ような場合には、データ量を大幅に減少できる場合が少
なくなく、これに応じて、処理時間および圧縮後のデー
タ量を減少することができる。
The amount of data in the former is approximately one-third of multicolor image data, and the amount of data in the latter is used when there are only a few types of display colors, or when the display area is predetermined for each display color. In many cases, the amount of data can be significantly reduced, and the processing time and amount of data after compression can be reduced accordingly.

〔実施例〕 第2図に実施例の構成図であり、従来例および原理図に
おいて説明した符号のほか、1′はデータ変換部として
用いる論理和回路、6は論理和回路1′の出力または色
彩データ生成部2の出力を選択する選択回路(MPX)
を表す。
[Embodiment] Fig. 2 is a configuration diagram of the embodiment, in which, in addition to the symbols explained in the conventional example and the principle diagram, 1' is an OR circuit used as a data conversion section, and 6 is an output or an output of the OR circuit 1'. Selection circuit (MPX) that selects the output of the color data generation section 2
represents.

以下、第3図(a)のようなパターンで表示されるカラ
ー表示データを圧縮する場合について各部の機能および
動作を説明する。
The functions and operations of each part will be described below in the case of compressing color display data displayed in a pattern as shown in FIG. 3(a).

この例は1表示色が赤・縁・青の3色であり。In this example, one display color is three colors: red, edge, and blue.

各表示色の表示面上における表示領域が副走査方向に平
行に区切られている場合である。
This is a case where the display area on the display surface for each display color is divided parallel to the sub-scanning direction.

このカラー表示データは、赤・緑・青の色別に。This color display data is divided into red, green, and blue colors.

それぞれ、第一のイメージメモリ41・第二のイメージ
メモリ42・第三のイメージメモリ43に対し。
For the first image memory 41, second image memory 42, and third image memory 43, respectively.

第3図(bl〜(d)のように記憶されている。The information is stored as shown in FIG. 3 (bl to (d)).

各イメージメモリ41〜43の記憶内容は9図示省略の
制御部の制御によって、それぞれラスク走査によって並
列に読み取られ、論理和回路1′において1画素毎に1
ビツトで表されるモノクローム表示データに変換される
The stored contents of each image memory 41 to 43 are read out in parallel by rask scanning under the control of a control section (not shown), and are read out in parallel for each pixel in an OR circuit 1'.
Converted to monochrome display data expressed in bits.

論理和回路1′の出力は2選択回路6を経て圧縮処理部
3に与えられ、−次元符号化方式のMH方式によって、
ライン(走査線)単位にデータ圧縮を施され、原色の種
別を除く他の属性データとともに、パターン圧縮データ
としてファイル5に格納される。
The output of the OR circuit 1' is given to the compression processing section 3 via the 2 selection circuit 6, and is processed by the MH method of the -dimensional encoding method.
The data is compressed line by line (scanning line) and stored in the file 5 as compressed pattern data along with other attribute data excluding the type of primary color.

色彩データ生成部2では、圧縮データを復元して再びも
との第一のイメージメモリ41・第二のイメージメモリ
42・第三のイメージメモリ43に書き込む際1色彩デ
ータをそのままイメージメモリ選択信号として利用でき
るようにするため1次のような形で色彩データを生成す
る。
In the color data generation section 2, when the compressed data is restored and written again to the original first image memory 41, second image memory 42, and third image memory 43, one color data is directly used as an image memory selection signal. In order to make it usable, color data is generated in the following form.

すなわち、第3図(a)に例示したようなカラーイメー
ジデータを書き込むには、たとえば7ライン目のデータ
について説明すると、先頭の1画素は“0”であるから
、第一のイメージメモリ41にも第二のイメージメモリ
42にも第三のイメージメモリ43にも書き込まない。
That is, in order to write the color image data as illustrated in FIG. is not written to either the second image memory 42 or the third image memory 43.

すなわち、この1画素に対してはイメージメモリを選択
する必要がない。したがって、どのイメージメモリも選
択しないという意味と、1画素という意味で、  (P
TO1+l]l))で表す。
That is, there is no need to select an image memory for this one pixel. Therefore, in the sense of not selecting any image memory and in the sense of 1 pixel, (P
It is expressed as TO1+l]l)).

2画素目の1画素は“l”であり第一のイメージメモリ
41に書き込む。また3画素目から8画素目までは、 
′0”であるから、どのイメージメモリを選択しても差
支えない。すなわち2画素目と同じ第一のイメージメモ
リ41に書き込むことにしても差支えない。
The second pixel, the first pixel, is “l” and is written into the first image memory 41. Also, from the 3rd pixel to the 8th pixel,
Since it is '0', there is no problem in selecting any image memory. In other words, there is no problem in writing to the same first image memory 41 as the second pixel.

したがって、2画素目から8画素目までの7画素に対し
ては、第一のイメージメモリ41を選択するという意味
と、7画素という意味で、  (P l+ +D (7
1)で表す。
Therefore, for the 7 pixels from the 2nd pixel to the 8th pixel, (P l+ +D (7
It is expressed as 1).

同様に9画素目と10画素目の2画素に対しては。Similarly for the 9th and 10th pixels.

(P (4) + D (2) )で表す。It is expressed as (P (4) + D (2)).

なお、P(0)は何れのイメージメモリも選択しない、
P(1)は第一のイメージメモリ41を選択する。
Note that P(0) does not select any image memory,
P(1) selects the first image memory 41.

P(2)は第二のイメージメモリ42を選択する。P(
31は第一のイメージメモリ41と第二のイメージメモ
リ42とを選択する。P(4)は第三のイメージメモリ
43を選択する。P(51は第一のイメージメモリ41
と第三のイメージメモリ43とを選択することを意味す
る。
P(2) selects the second image memory 42. P(
31 selects a first image memory 41 and a second image memory 42. P(4) selects the third image memory 43. P (51 is the first image memory 41
and the third image memory 43.

すなわち、7ライン目のデータに対しては。That is, for the data on the 7th line.

(P (ol + D l) + P (11+ D 
(71+ P ’(4) + D (2) )で表す。
(P (ol + D l) + P (11 + D
It is expressed as (71+P'(4)+D(2)).

同様にして、全ラインに対し第3図(e)に示すような
色彩データ(ただし1ライン目の先頭のEOLは色彩デ
ータの開始符号を、他のEOLはライン終端符号を表す
、またRTCは色彩データの終了符号および最終ライン
終端符号を表す)を生成することができる。
Similarly, color data as shown in FIG. 3(e) is applied to all lines (however, the EOL at the beginning of the first line represents the start code of the color data, the other EOLs represent the end code of the line, and the RTC (representing the end code of color data and the last line end code) can be generated.

なお、これを表示面に対応させた平面図形によって、第
3図(f)のように表すことができる。
Note that this can be represented by a planar figure corresponding to the display surface as shown in FIG. 3(f).

色彩データ生成部2によって生成された色彩データは1
選択回路6を経て圧縮処理部3に与えられ、ここで1選
択するイメージメモリを表す符号P(nl (n =0
.1,2.、、)および画素数1]ml(m=l。
The color data generated by the color data generation section 2 is 1
A code P(nl (n = 0
.. 1, 2. ) and the number of pixels 1]ml (m=l.

2.、、)を、それぞれ白画素のランレングスおよび黒
画素のランレングスに置き換えることにより。
2. , , ) by the run length of white pixels and the run length of black pixels, respectively.

−次元符号化方式のMH方式を用い、ライン単位にデー
タ圧縮を施し9色彩情報圧縮データとしてファイル5に
格納する。
Using the MH method, which is a -dimensional encoding method, data is compressed line by line and stored in file 5 as 9-color information compressed data.

なお上記実施例では1色彩データを生成する際に、たと
えば7ライン目の3画素目から8画素目までは“O”で
あり(第3図(al参照)、どのイメージメモリに書き
込むことにしても差支えないことから、2画素目と同じ
第一のイメージメモリ41に書き込むようにしており、
圧縮効率を高める上で非常に有効である。
In the above embodiment, when generating one color data, for example, the 3rd to 8th pixels of the 7th line are "O" (see Fig. 3 (al)), and it is difficult to decide which image memory to write to. Since there is no problem with this, it is written in the first image memory 41, which is the same as the second pixel.
This is very effective in increasing compression efficiency.

〔発明の効果〕〔Effect of the invention〕

以上説明したように1本発明によるイメージデータ圧縮
回路では、カラーイメージデータをモノクロームイメー
ジデータと色彩データとに分けて圧縮するように構成す
ることにより、被圧縮データの量を減少することができ
、した力をデータ圧7縮に要する処理時間を短縮し、ま
た圧縮後のデータ量を減少することができる。
As explained above, the image data compression circuit according to the present invention is configured to compress color image data separately into monochrome image data and color data, thereby reducing the amount of data to be compressed. The processing time required for data compression 7 can be shortened, and the amount of data after compression can be reduced.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の原理図。 第2図は実施例の構成図。 第3図(al〜fflは実施例の説明図。 第4図は第一の従来例の説明図。 第5図は第二の従来例の説明図である。 図中。 41は第一のイメージメモリ。 42は第二のイメージメモリ。 43は第三のイメージメモリ。 第1図 第2図 (+11       主走査方向 →第3図 h    \    \ 第4図 h    h    \ 第5図 FIG. 1 is a diagram showing the principle of the present invention. FIG. 2 is a configuration diagram of the embodiment. FIG. 3 (al to ffl are explanatory diagrams of the embodiment. FIG. 4 is an explanatory diagram of the first conventional example. FIG. 5 is an explanatory diagram of a second conventional example. In the figure. 41 is the first image memory. 42 is a second image memory. 43 is the third image memory. Figure 1 Figure 2 (+11 Main scanning direction → Fig. 3 h   \  \ Figure 4 h   h  \ Figure 5

Claims (1)

【特許請求の範囲】 画素単位に原色別の多値データとして表されるカラーイ
メージデータをモノクロームイメージデータに変換する
データ変換部(1)と、 前記カラーイメージデータから画素毎の色彩の属性を表
す色彩データを生成する色彩データ生成部(2)と、 前記変換されたモノクロームイメージデータおよび生成
された色彩データを走査線毎に圧縮する圧縮処理部(3
)とを備えることを特徴とするイメージデータ圧縮回路
[Scope of Claims] A data conversion unit (1) that converts color image data expressed as multi-value data for each primary color in units of pixels into monochrome image data; A color data generation section (2) that generates color data; and a compression processing section (3) that compresses the converted monochrome image data and the generated color data for each scanning line.
).
JP15031986A 1986-06-26 1986-06-26 Image data compression circuit Pending JPS635485A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15031986A JPS635485A (en) 1986-06-26 1986-06-26 Image data compression circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15031986A JPS635485A (en) 1986-06-26 1986-06-26 Image data compression circuit

Publications (1)

Publication Number Publication Date
JPS635485A true JPS635485A (en) 1988-01-11

Family

ID=15494422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15031986A Pending JPS635485A (en) 1986-06-26 1986-06-26 Image data compression circuit

Country Status (1)

Country Link
JP (1) JPS635485A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02146189U (en) * 1989-05-17 1990-12-12

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02146189U (en) * 1989-05-17 1990-12-12
JPH057276Y2 (en) * 1989-05-17 1993-02-24

Similar Documents

Publication Publication Date Title
US5329616A (en) Compressed image stores for high resolution computer graphics
EP2481206B1 (en) Image processing apparatus and processing method therefor
US20020061140A1 (en) Image processing apparatus and method, program and storage medium
JPH08235346A (en) Picture processor
JP4902474B2 (en) Image processing apparatus and image processing method
JPH06320802A (en) Image processor
JPH07322074A (en) Equipment and method for data processing to process 2 level image file that a dither ring happened
JPH0334777A (en) Picture signal encoder, picture signal decoder and picture signal display device
JPH0818790A (en) Compression system for half tone image
JP2004201302A (en) Image resolution conversion method
JPS635485A (en) Image data compression circuit
US8494261B2 (en) Image processing apparatus, image processing method, and computer-readable medium
JP3346051B2 (en) Image processing device
JP2003087558A (en) Apparatus and method for processing image
US6559972B1 (en) Method and apparatus for processing image data
JPH07274006A (en) Picture processor, scanner, printer, digital copying machine and display device
JP2000322566A (en) Image display device and its controlling method
JP2821452B2 (en) Color image processing method
JPH08331367A (en) Storage system for image information and image display system
JPH0230561A (en) Image processing device
JPH05250109A (en) Color image output device
JPS63100490A (en) Display controller
JPH03220871A (en) Picture coder
JPH059828B2 (en)
JPH07298259A (en) Image data processing unit