JPH04183193A - Image processing device - Google Patents

Image processing device

Info

Publication number
JPH04183193A
JPH04183193A JP2311615A JP31161590A JPH04183193A JP H04183193 A JPH04183193 A JP H04183193A JP 2311615 A JP2311615 A JP 2311615A JP 31161590 A JP31161590 A JP 31161590A JP H04183193 A JPH04183193 A JP H04183193A
Authority
JP
Japan
Prior art keywords
data
signal
error
color
image
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
JP2311615A
Other languages
Japanese (ja)
Inventor
Susumu Sugiura
進 杉浦
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2311615A priority Critical patent/JPH04183193A/en
Publication of JPH04183193A publication Critical patent/JPH04183193A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Color Television Systems (AREA)

Abstract

PURPOSE:To reduce data quantity maintaining the quality of original image by converting a brightness signal and color signal into predetermined representative values corresponding to a value of each color signal and by extending the difference between the representative value and the value obtained before conversion for successive unconverted picture elements. CONSTITUTION:Let the upper 4 bit data of a signal Y0 be Y1 and apply data compression to the data, and taking 4 representative points for I0 and Q0 to quantizing those points, and let these representative points be I1 and Q1, where I1 and Q1 be 2 bits each. Arrange Y1, I1, and Q1 into one-byte data and pack them for each picture element. Further, by an error detecting circuit 308, a quantized error of each picture element is calculated, by the extension matrix the error is two-dimensionally extended, and the error extended by a memory section 309 is accumulated. That is, data that is reduced by bit to Y1, I1, and Q1 is extended two-dimensionally for the error between the original image quality and the converted image quality, the extended amount is fed back, so when a two-dimensional area becomes large, the difference between the original image quality and the converted image quality is eliminated.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は画像処理装置に関し、例えばカラーイメージデ
ータのデータ量の削減を行う画像処理装置に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing device, and for example, to an image processing device that reduces the amount of color image data.

[従来の技術] 従来のカラー画像データ圧縮に関しては、画像中の冗長
度を削減するために直交変換、符号化。
[Prior Art] Conventional color image data compression uses orthogonal transformation and encoding to reduce redundancy in images.

画像の相関性等により圧縮を行っていた。Compression was performed based on image correlation, etc.

[発明が解決しようとしている課題] しかしながら、従来の圧縮法は2次元画像データの直交
変換や、3色々成分の相関性、符号化法をもとに圧縮さ
れているため、画像編集を実施するときに、1度圧縮デ
ータを復元し、復元画像を作ってからアフィン変換等の
画像編集処理を施し、処理後の画像データを再、び圧縮
していた。
[Problem to be solved by the invention] However, since conventional compression methods are based on orthogonal transformation of two-dimensional image data, correlations between three various components, and encoding methods, it is difficult to perform image editing. Sometimes, compressed data is restored once, a restored image is created, image editing processing such as affine transformation is performed, and the processed image data is compressed again.

これでは変換のための時間と回路の複雑化によるコスト
がかかり、実用上の難しさが存在していた。
This requires time for conversion and costs due to the complexity of the circuit, which poses practical difficulties.

従って、圧縮データは伝送時のみで扱われ、編集を前提
とした画像には、上記圧縮法が適用されなかった。即ち
、画像編集に適した形の画像データ圧縮を行えないとい
う欠点があった。
Therefore, compressed data is handled only during transmission, and the above compression method is not applied to images that are intended for editing. That is, there is a drawback that image data compression suitable for image editing cannot be performed.

本発明は、上述した従来例の欠点に鑑みてなされたもの
であり、その目的とするところは、原画の画質を保ちつ
つ、データ量を削減する画像処理装置を提供する点にあ
る。
The present invention has been made in view of the above-mentioned drawbacks of the conventional example, and its purpose is to provide an image processing device that reduces the amount of data while maintaining the image quality of the original image.

[課耕を解決するための手段] 上述した課題を解決し、目的を達成するため、本発明に
係る画像処理装置は、画素単位の原色信号を輝度信号と
色信号とに変換して処理する画像処理装置において、前
記輝度信号及び前記色信号を各信号の値に対応した所定
の代表値に変換する変換手段と、前記変換手段で変換し
た各代表値と変換前の値との誤差を検出する検出手段と
、前記変換手段による変換を実行する前の後続画素に対
して前記検出手段で検出した誤差を拡散する拡散手段と
を備えることを特徴とする。
[Means for Solving the Problems] In order to solve the above-mentioned problems and achieve the purpose, the image processing device according to the present invention converts the primary color signal of each pixel into a luminance signal and a color signal for processing. In the image processing device, a conversion means for converting the luminance signal and the color signal into predetermined representative values corresponding to the values of each signal, and detecting an error between each representative value converted by the conversion means and a value before conversion. and a diffusion means for diffusing the error detected by the detection means to subsequent pixels before the conversion by the conversion means is performed.

[作用] かかる構成によれば、変換手段は輝度信号及び前記色信
号を各信号の値に対応した所定の代表値に変換し、検出
手段は変換手段で変換した各代表値と変換前の値との誤
差を検出し、拡散手段は変換手段による変換を実行する
前の後続画素に対して検出手段で検出した誤差を拡散す
る。
[Operation] According to this configuration, the converting means converts the luminance signal and the color signal into predetermined representative values corresponding to the values of each signal, and the detecting means converts each representative value converted by the converting means and the value before conversion. The diffusion means diffuses the error detected by the detection means to the subsequent pixel before the conversion is performed by the conversion means.

[実施例] 以下に添付図面を参照して、本発明の好適な実施例を詳
細に説明する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

〈第1の実施例〉 第1図は本発明に係る画像処理装置の第1の実施例を示
すブロック図であり、第2A図、第2B図は人間の視覚
特性を説明する図である。
<First Embodiment> FIG. 1 is a block diagram showing a first embodiment of an image processing apparatus according to the present invention, and FIGS. 2A and 2B are diagrams explaining human visual characteristics.

第1図において、101はカラー画像データを読み込む
カラースキャナであって、3色々分解。
In FIG. 1, 101 is a color scanner that reads color image data and separates it into three different types.

光電変換素子によるカラー画像データなR,G。Color image data R, G by photoelectric conversion element.

Bの電気信号に変換し、更に光電変換アナログ信号をデ
ジタル的にサンプリングし、カラー画像信号をデジタル
化する。圧力される画像信号はR(赤)、G(緑)、B
(青)の3色成分で出力され、例えばNTSCの分光特
性で色分解された3信号が出力される。102はRGB
/YIQ変換部であって、カラースキャナ101より出
力された3色R,G、B信号のY。、■。 Qo倍信号
の変換、即ち、NTSC信号生成時にすでに公知のYo
 (輝度信号)Io、Q、(色信号)への変換を行う。
Then, the photoelectric conversion analog signal is digitally sampled to digitize the color image signal. The image signals to be pressed are R (red), G (green), and B.
The signal is output as three color components (blue), and three signals separated into colors using, for example, NTSC spectral characteristics are output. 102 is RGB
/YIQ converter, which is the Y of the three-color R, G, and B signals output from the color scanner 101. ,■. Conversion of the Qo multiplied signal, that is, the already known Yo
Conversion to (luminance signal) Io, Q, (color signal) is performed.

103は濃度保存・YIQ削減部であって、Yo、1.
、Q。信号を局所的には色情報。
103 is a concentration preservation/YIQ reduction unit which stores Yo, 1.
,Q. The signal locally is color information.

明度成分と同じになるよう制御すると共に削減し、Y、
、I、、Q、信号を出力する。104は1バイトバツク
部であって、濃度保存・YIQ削減部103より出力さ
れるY、、1.、Q、信号を1バイトバツクにする。1
05はディスクであって、1バイトバツク部104で作
成された1バイトバツクを記憶する。107は1バイト
バツク分解部であって、1バイトにバックされた濃度信
号をY’、I’、Q’像信号分解する。108はYIQ
/RGB変換部であって、Y’ 、I’ 、Q’像信号
R’ 、G’ 、B”信号に変換する。109はカラー
プリンタであって、YIQ/RGB変換部108よりR
’ 、G’ 、B’像信号入力し、カラー画像を形成す
る。110は白黒プリンタであって、YIQ/RGB変
換部108よりY成分、即ち、変換前のY°像信号人力
し、白黒画像を形成する。  106はCPUであって
、カラースキャナ101よりカラープリンタ109また
は白黒プリンタ110までの一般的な動作を制御する。
Control and reduce the brightness component so that it is the same as the brightness component, Y,
,I,,Q,outputs the signal. 104 is a 1-byte backing unit which stores Y, , 1 . , Q, back up the signal by 1 byte. 1
05 is a disk that stores the 1-byte backup created by the 1-byte backup unit 104. A 1-byte back decomposition unit 107 decomposes the density signal backed into 1 byte into Y', I', and Q' image signals. 108 is YIQ
/RGB conversion unit converts the Y', I', Q' image signals into R', G', B'' signals. 109 is a color printer, and the YIQ/RGB conversion unit 108 converts the R', I', Q' image signals into R', G', B'' signals.
', G', B' image signals are input to form a color image. Reference numeral 110 denotes a monochrome printer, which inputs the Y component, that is, the Y° image signal before conversion, from the YIQ/RGB conversion unit 108 to form a monochrome image. A CPU 106 controls general operations from the color scanner 101 to the color printer 109 or monochrome printer 110.

人間の視覚特性は、第2A図、第2B図に示される様に
、人間の目が識別できる階調数(縦軸)、原画のもつ画
像空間周波数(横軸)で表せる。
As shown in FIGS. 2A and 2B, human visual characteristics can be expressed by the number of gradations that the human eye can discern (vertical axis) and the image spatial frequency of the original image (horizontal axis).

この縦横軸をもとに人間の目の視覚特性を表として描い
たものが実線のカーブである。
The solid line curve is a table depicting the visual characteristics of the human eye based on the vertical and horizontal axes.

両図より結論できるのは、画像のもつ空間周波数が低い
ほど1ビクセル当りの階調数を必要としく第2A図)、
高分解能画像になると階調数は少な(て良い(第2B図
)。例えば10ラインペア/mm程度になると階調数は
2階調ぐらいになる。
What can be concluded from both figures is that the lower the spatial frequency of an image, the more gradations per pixel are required (Figure 2A).
For high-resolution images, the number of gradations is small (Fig. 2B). For example, when the resolution is about 10 line pairs/mm, the number of gradations is about 2 gradations.

即ち、20pelのプリンタでは2値紀録で、2値化手
法を人間の視覚に合うようにすると、20pelの空間
画像では十分良好な画質を形成出来ることがわかる。
That is, it can be seen that a 20 pel printer can produce a sufficiently good image quality with a 20 pel spatial image if the binarization method is adapted to human vision.

第2A図は、2値記録で分解能(解像度)を12 da
t / mmから60 dot / mmにつき可変し
たときの、人間の目に対する画質推定曲線を示す。2値
記録のプリンタでは、48〜60 dot / mm程
度の分解能がないと人間の目の特性以下となり、良好な
画質再現が得られないと推定される。一方、技術的理由
から60 dat / mmのプリンタを製造するのは
困難であるため、−画素当りの階調性を高め高分解能化
を抑制する考え方もある。
Figure 2A shows a binary recording with a resolution of 12 da.
The image quality estimation curve for the human eye is shown when varying from t/mm to 60 dots/mm. In a binary recording printer, if the resolution is not about 48 to 60 dots/mm, the resolution will be below the characteristics of the human eye, and it is estimated that good image quality reproduction cannot be obtained. On the other hand, since it is difficult to manufacture a 60 dat/mm printer for technical reasons, there is an idea of increasing the gradation per pixel and suppressing the increase in resolution.

第2B図は、分解能(解像度)を20 dot / m
mとし、階調性を変化させた例である。これから推定で
きることは20 dot / mmの分解能では2bi
t〜3bitの階調性、即ち、9階調から4階調の階調
性があれば人間の目の特性を満足できると共に、出力さ
れる画質も人間の目に対し充分満足のいく画質が得られ
ると推定される。
Figure 2B shows a resolution of 20 dots/m.
This is an example in which gradation is changed using m. What can be estimated from this is that at a resolution of 20 dots/mm, 2bi
The gradation of t to 3 bits, that is, the gradation of 9 to 4 gradations, satisfies the characteristics of the human eye, and the output image quality is sufficiently satisfactory for the human eye. estimated to be obtained.

現在、実用化されているカラープリンタは400dpi
 (約16pel、即ち8c/mm)で多値記録出来る
製品があるため、これを例に以下の説明をする。
Color printers currently in practical use are 400 dpi.
(About 16 pels, ie, 8 c/mm) There is a product that can perform multi-value recording, and the following explanation uses this as an example.

400dpiでは4bit程度(166階調あれば人間
の視覚特性を満足するため、明度は4bitとする。色
成分はN T S C(g号生成時かられかるように明
度以上に人間の視覚特性を利用することにより、データ
削減出来る。即ち、面積が小さければ色情報に対し、視
覚特性は感度が落ち、明度成分だけになってしまう。従
って、明度成分が4bitで良ければ色成分は、それよ
り少ないbit数で良いことが推定される。
At 400 dpi, the brightness is about 4 bits (166 gradations satisfies the human visual characteristics, so the brightness is 4 bits.The color component is NTS By using this, data can be reduced.In other words, if the area is small, the visual characteristics will be less sensitive to color information, and only the brightness component will be left.Therefore, if the brightness component is only 4 bits, the color component will be smaller than that. It is estimated that a small number of bits is sufficient.

但し、各画素に対する色成分bit数は削減しても、大
きい面積になったとき原画の色成分が再現されるように
なっていなければならない。
However, even if the number of color component bits for each pixel is reduced, the color components of the original image must be reproduced when the area becomes large.

従って、RGB/YrQ変換部102の出力Y、、I。Therefore, the output Y,,I of the RGB/YrQ converter 102.

、Qoは浮動小数点又はインチジャー型で精度良く計算
した値を用い、濃度保存・YIQ削減部103ではY、
、1.、Q、からbit数を削減させる動作を行わせる
。
, Qo uses a value calculated with high precision using a floating point or inch jar type, and the concentration preservation/YIQ reduction unit 103 calculates Y,
, 1. , Q, to reduce the number of bits.

信号Y。に関しては、上位の4bitのデータをY、と
じてデータ圧縮し、■。とQoについて各々4点を代表
点として量子化し、その代表点の位置情報(量子化デー
タ)をI、、Q、に与える。ここでは、I、、Q、は各
2bit値とする。
Signal Y. Regarding, compress the data by compressing the upper 4 bits of data with Y. and Qo are quantized using four points as representative points, and the position information (quantized data) of the representative points is given to I,,Q,. Here, I, , and Q are each 2-bit values.

以上のY、、1.、Q、を1バイトデータにまとめ、8
bitデータとじ104で1画素毎にバックする。従っ
て、バックされた1バイトデータは明度信号Y成分とし
4bit、色成分とし1分に2ビツト、Q分に2ビツト
計8ビツトで形成される。この形であれば、即ち、1画
素3色を1バイトデータで示せばコンピュータにとって
も扱いやす(、アフィン変換等は従来の白黒データでの
処理と全く同じ形で処理できる。またディスク105の
メモリに格納する場合でも、メモリ容量にして1/3に
なり、白黒画像と同じ容量で済む。
Above Y, 1. ,Q, into 1 byte data,8
Bit data binding 104 backs up each pixel. Therefore, the backed-up 1-byte data is formed of 4 bits for the Y component of the brightness signal, 2 bits per minute for the color component, and 2 bits for the Q minute, for a total of 8 bits. In this form, if one pixel and three colors are represented by one byte data, it is easy for a computer to handle (Affine transformation etc. can be processed in exactly the same way as conventional black and white data processing. Also, the memory of the disk 105 Even if the image is stored in the image, the memory capacity is reduced to 1/3, which is the same as that of a black and white image.

一方、Y、1.Q信号から原画データ相当のR,G、B
信号に復元するには、1バイトバック分解部107でY
、I、Q成分ごとに分離し、I、Qに関しては代表点位
置情報から代表点データに戻し、その値からR” 、G
′、B′信号を計算する。計算されたR’ 、G′、B
’ を用いて、カラープリンタ109でカラー画像8カ
すると、原画と同じ出力が得られる。
On the other hand, Y,1. R, G, B equivalent to original image data from Q signal
To restore the signal, the 1-byte back decomposition unit 107 converts Y
, I and Q components are separated, and for I and Q, the representative point data is returned from the representative point position information, and from that value R", G
', B' signals are calculated. Calculated R', G', B
' If you print 8 color images on the color printer 109 using ``, the same output as the original image will be obtained.

尚、白黒プリンタ110を利用する場合には、YIQ/
RGB変換部108のY′成分のみを利用して、白黒プ
リンタ110の白黒プリント出力データとし利用するこ
とができる。
In addition, when using the black and white printer 110, YIQ/
By using only the Y' component of the RGB converter 108, it can be used as monochrome print output data of the monochrome printer 110.

以上で、本発明の全体構成の概要を説明したが、次に、
本発明の主要部分である濃度を保存しながらビット数を
削減する方法を詳細に説明する。
The outline of the overall configuration of the present invention has been explained above, but next,
A method for reducing the number of bits while preserving density, which is the main part of the present invention, will be explained in detail.

第3A図は第1の実施例による濃度保存・YIQ削減部
103の構成などを示すブロック図である。
FIG. 3A is a block diagram showing the configuration of the density storage/YIQ reduction unit 103 according to the first embodiment.

ここで、濃度保存とは、局所的には色情報、明度成分と
同じになるよう制御させる方式で、特に人間の視覚特性
に合った形でYIQのデータ量を削減する。
Here, density preservation is a method of locally controlling color information and brightness components to be the same, and reducing the amount of YIQ data in a manner that particularly suits human visual characteristics.

第3A図において、301は入力部からのNTSCのR
GB3原色信号を示し、302はRGB3原色信号30
1をYIQ信号に変換する色成分の変換テーブルを示し
ている。
In FIG. 3A, 301 is the NTSC R from the input section.
GB3 primary color signal is shown, and 302 is RGB3 primary color signal 30
1 shows a color component conversion table for converting 1 into a YIQ signal.

305は量子化部であり、Y信号に対しては16段階、
I、Q信号に対しては4段階に閾値を設け、Y信号は4
bitに、I、Q信号は2bitに量子化する。その例
を下記表に示す。ここでは閾値として、−63,1,6
4を用いる。例えば入力されるii信号が−50とする
と、符号はlとなり、代表値は−32が割り当てられる
。この符号はYl、If、Qlとして、量子化部305
から出力される。8カされたYl、It、Ql信号は代
表値変換回路307によって各々の符号が示す代表値Y
Y、TI、QQ信号に変換され、誤差検出回路308に
おいて、量子化前のV 3’ +  1i+ qq倍信
号の誤差が演算され、誤差y、i。
305 is a quantization unit, which has 16 stages for the Y signal;
Threshold values are set in four stages for I and Q signals, and four levels are set for Y signal.
The I and Q signals are quantized to 2 bits. Examples are shown in the table below. Here, the threshold is -63, 1, 6
4 is used. For example, if the input ii signal is -50, the sign will be l and the representative value will be assigned -32. These codes are designated as Yl, If, and Ql by the quantization unit 305.
is output from. The Yl, It, and Ql signals that have been divided into
The error detection circuit 308 calculates the error of the V 3' + 1i+ qq multiplied signal before quantization, and calculates the error y, i.

qがメモリ部309に記憶される。すなわち、Y、I、
Q信号はビット数削減による量子化誤差分が3’+1+
Qごとに計算され、加算器304において後から順次入
力されるY、r、Q信号にフィードバックされ、加算さ
れる。従って、Y、I。
q is stored in the memory unit 309. That is, Y, I,
The Q signal has a quantization error of 3'+1+ due to the reduction in the number of bits.
It is calculated for each Q, and is fed back to and added to the Y, r, and Q signals input sequentially later in the adder 304. Therefore, Y, I.

Qに対応した変数をyy+  ii+ qqとし、これ
らを下式(1)で表す。すなわち、 となる。
The variables corresponding to Q are yy+ ii+ qq, and these are expressed by the following formula (1). In other words, it becomes .

この値から明度成分については、yy (0≦yy≦2
55)の上位4ビツトをYlとし、色差成分のうち工信
号については、iiが一160≦ii≦130となるか
ら、下表に従った符号を選択する。符号はO〜3の4種
であるから2ビツトで済む。
From this value, for the brightness component, yy (0≦yy≦2
The upper four bits of 55) are set as Yl, and for the optical signal among the color difference components, since ii satisfies -1160≦ii≦130, the codes according to the table below are selected. Since there are four types of codes, O to 3, 2 bits are sufficient.

表 色差成分Q信号についでもqqは一104≦qq≦60
となるから、同様に符号化比来る。従って、Q成分につ
いても2ビツトで済む。
Regarding the color difference component Q signal, qq is -104≦qq≦60
Therefore, the encoding ratio will be the same. Therefore, 2 bits are sufficient for the Q component as well.

306の1.、Q、はこの符号を送ることになる。306-1. ,Q, will send this code.

307はYIQ成分の代表値に変換する代表値変換回路
で、Yl信号はそのままの4ビツトデータから下位にも
同じ4ビツトを加え、合計8ビツトとして誤差検出回路
308に出力する。例えばyyが37.(=55)とす
ると、Y 1 ” 3 sとなる。従って、代表値変換
回路307出力は33、(=51)となる。
Reference numeral 307 is a representative value conversion circuit that converts the YIQ component into a representative value, and the Yl signal is the same 4-bit data, and the same 4 bits are added to the lower order, and the result is output to the error detection circuit 308 as a total of 8 bits. For example, yy is 37. (=55), it becomes Y 1 '' 3 s. Therefore, the output of the representative value conversion circuit 307 becomes 33 (=51).

一方、ここではii、qqに関しては、同じ処理を行う
ので、ifにつき説明すると、1i=−20” F F
 E Csから符号は1、従って、I+=1、代表値は
−32となり、代表値変換回路307の出力は一32=
FFEO,となり誤差検出回路308に入る。
On the other hand, here, the same processing is performed for ii and qq, so to explain about if, 1i=-20" F F
From E Cs, the sign is 1, so I+=1, the representative value is -32, and the output of the representative value conversion circuit 307 is -32=
FFEO, and enters the error detection circuit 308.

一方、308はy3’l l 11 qqと代表値変換
回路307出力との差分をとる誤差検出回路であり1各
成分の誤差をyerr、1err、qerrとし、次式
(2)で表すと、 となる。
On the other hand, 308 is an error detection circuit that calculates the difference between y3'l l 11 qq and the output of the representative value conversion circuit 307. Letting the errors of each component be yerr, 1err, and qerr, and expressing it by the following equation (2), Become.

Y成分について前例では、yerr=55−51=+4
,1err=−20−(−32)=+12となる。
In the previous example for the Y component, yerr=55-51=+4
, 1err=-20-(-32)=+12.

第4図は誤差検出回路308の内部に設けた誤差拡散テ
ーブルを示す図である。この誤差拡散テーブルは上記誤
差yerr、1err、qerrを2次元的に拡散する
ために使用される。
FIG. 4 is a diagram showing an error diffusion table provided inside the error detection circuit 308. This error diffusion table is used to two-dimensionally diffuse the errors yerr, 1err, and qerr.

明度の拡散誤差量e r r o r [yl  [X
]を次式(3)で表すと、 ・・・(3) となる。同様に、I、Q成分についても上式に従い計算
される。
Diffusion error amount of brightness e r r o r [yl [X
] is expressed by the following equation (3), it becomes...(3). Similarly, the I and Q components are calculated according to the above formula.

309はメモリ部であり、上記(3)式によって得られ
るe r r o r [yl  [x]を格納する。
A memory unit 309 stores e r r or r [yl [x] obtained by the above equation (3).

従って、y出力はerror [01[2]が加算器3
04でYと加算される。このように、誤差検出回路30
8により各画素の量子化誤差が計算され、第4図の拡散
マトリックスにより誤差を2次元に拡散し、メモリ部3
09により拡散された誤差を累積加算する。
Therefore, the y output is error [01[2] from the adder 3.
It is added to Y in 04. In this way, the error detection circuit 30
8, the quantization error of each pixel is calculated, and the error is two-dimensionally diffused using the diffusion matrix shown in FIG.
The errors diffused by 09 are cumulatively added.

310は送信部であり、Yl、Il、Qlの各データが
4.2.2bitに圧縮された形で送信(伝送)される
。すなわち、人力のR1,Gl。
Reference numeral 310 denotes a transmitter, which transmits (transmits) each data of Yl, Il, and Ql in a compressed form of 4.2.2 bits. In other words, R1 and Gl of human power.

Bl各8bit計24ビットデータが8bitになるた
め、1/3に圧縮されたことになる。311は上記の1
/3に圧縮されたデータを受信する受信部であり、31
0で送信されたのと同じ形式のデータを受は取る。
Since the total 24-bit data (8 bits each) becomes 8 bits, it is compressed to 1/3. 311 is 1 above
This is a receiving unit that receives data compressed to 31.
The receiver receives data in the same format as that sent with 0.

312は伸長部であって、Ylの4bitデータを擬似
的に8bitデータY°に(上位4bitに下位4bi
tOを入れる)、、IQ倍信号0〜3の符号で送られる
ため、11ページの表の代表値を用いて、2bitデー
タI’、Q’ に戻し、Y成分と同様の擬似的に8bi
tの信号に変換させる。313は色成分の変換テーブル
であり、YIQ信号からRGB信号に戻す。従ってR’
 G’B°信号は伸長された画像信号で、この信号を用
いて受信側がプリントやデイスプレィを行う。
312 is an expansion unit which converts the 4-bit data of Yl into 8-bit data Y° (upper 4 bits and lower 4 bits).
Since the IQ multiplied signal is sent with codes 0 to 3, it is returned to 2-bit data I', Q' using the representative values in the table on page 11, and pseudo-8bit data similar to the Y component is sent.
Convert it to a signal of t. Reference numeral 313 is a color component conversion table, which converts YIQ signals back to RGB signals. Therefore R'
The G'B° signal is an expanded image signal, and the receiving side uses this signal to print or display.

以上の説明により、Yl、II、Qlにビット削減した
データは、原画信号との誤差分を2次元的に拡散し、そ
の量がフィードバックされるため、2次元的面積が大き
くなると原画との相違はなくなる特性をもつ。即ち、色
差信号はミクロ的には原画との変動は大きいが、2次元
的大きな面積になると原画との信号差分はな(なる特徴
がある。これは人間の目の視覚特性によ(マツチした方
法として活用できる。
According to the above explanation, the data whose bits have been reduced to Yl, II, and Ql will two-dimensionally diffuse the error with the original image signal, and the amount will be fed back, so if the two-dimensional area becomes large, the difference from the original image will increase. It has the property of disappearing. In other words, the color difference signal has a large variation from the original image on a microscopic level, but when it comes to a large two-dimensional area, the signal difference from the original image becomes small.This is due to the visual characteristics of the human eye. It can be used as a method.

また、第3B図には上述の第3A図の回路の変形例を示
す。
Further, FIG. 3B shows a modification of the circuit shown in FIG. 3A described above.

同図において、各構成部分は、はぼ第3A図と同様であ
るが、Y、I、Q信号に変換する前のr、g、b信号を
用いて誤差を検出している点が異なる。従って代表値変
換回路307の後に3’a+to+Qo信号をrr、q
q、bb倍信号色成分変換する変換回路308°を設け
ている。
In this figure, each component is similar to that in FIG. 3A, except that errors are detected using r, g, and b signals before being converted into Y, I, and Q signals. Therefore, after the representative value conversion circuit 307, the 3'a+to+Qo signal is
A conversion circuit 308° for converting the q and bb multiplied signal color components is provided.

また、第3A図においては、誤差検出回路3゜8の内部
に設けていた重み付は回路を308° として設けた点
が第3A図と異なる。
Further, FIG. 3A differs from FIG. 3A in that the weighting provided inside the error detection circuit 3°8 is provided at 308°.

かかる第3B図の回路構成とすることにより、r5g、
b信号からY、L Q信号に変換する際の変換誤差も検
出することができ、より画質を向上させることができる
。
By adopting the circuit configuration shown in FIG. 3B, r5g,
It is also possible to detect conversion errors when converting the b signal to Y, LQ signals, thereby further improving image quality.

く第2の実施例〉 第2の実施例では、第1の実施例で説明した全動作をソ
フトウェア的に実現する例を示す。これは、CPU10
6が実施する場合、または、他のCPUが実施する場合
があり、どちらの場合にも以下に説明するフローチャー
トに従うプログラムをROM等に格納しているものとす
る。勿論、上記プログラムのワークエリアとして用いる
RAMも具備されているものとする。
Second Embodiment In the second embodiment, an example will be shown in which all the operations described in the first embodiment are realized by software. This is CPU10
6 or another CPU. In either case, it is assumed that a program according to the flowchart described below is stored in a ROM or the like. Of course, it is assumed that a RAM used as a work area for the above program is also provided.

第5図(a)、(b)、(c)は原画のRGBからYI
Q信号8ビットに変換する動作を説明するフローチャー
トであり、第6図(a)、(b)は8ビットYIQ信号
からRGB24ビットデータに変換する動作を説明する
フローチャートである。尚、ここでは、第5図(a)、
(b)、(c)及び第6図(a)、(b)の数式の部分
は、C言語を用いている。
Figures 5 (a), (b), and (c) are from RGB to YI of the original picture.
This is a flowchart explaining the operation of converting the Q signal to 8 bits, and FIGS. 6(a) and 6(b) are flowcharts explaining the operation of converting the 8-bit YIQ signal to RGB 24-bit data. In addition, here, FIG. 5(a),
The C language is used for the mathematical expressions in (b), (c) and FIGS. 6(a) and (b).

まず、原画の24ビツトカラーデータを8ビツトデータ
に圧縮する方法を第5図(a)、(b)、(C)を用い
て説明する。
First, a method for compressing 24-bit color data of an original image into 8-bit data will be explained using FIGS. 5(a), (b), and (C).

まず、原画のr、g、bデータをEY、EI。First, the r, g, and b data of the original image are EY and EI.

EQデータに変換し、かつ、圧縮するとき、EY、El
、EQのビット数を削減する。この場合、2次的平均の
ため、原画と濃度が保存されるように、ビット削減によ
る誤差を拡散する誤差拡散バッファメモリを用意し、こ
の初期化時にバッファメモリがクリアされる(ステップ
S1)。次に、原画24ビツトデータが読み込まれる(
ステップS2)。この読み込まれたデータr+g+bは
EY、EI、EQに変換される(ステップS3)。
When converting to EQ data and compressing, EY, El
, reduce the number of EQ bits. In this case, for secondary averaging, an error diffusion buffer memory is prepared to diffuse errors caused by bit reduction so that the original image and density are preserved, and the buffer memory is cleared at the time of initialization (step S1). Next, the original 24-bit data is read (
Step S2). This read data r+g+b is converted into EY, EI, and EQ (step S3).

次に、EY酸成分正の値とするため、0〜255の範囲
外のデータに対しては、前記範囲内に修正する(ステッ
プ84〜ステツプS8)。この後、EI酸成分、4つの
領域、即ち、■EI<−64、■−64≦EI<O1■
0≦EI≦64、■64<Ef)のどれに該当するかの
判定乃び判定領域■、■、■、■にそれぞれ対応したデ
ータ0.1,2.3に符号化される(ステップ89〜ス
テツプ515)。EQ酸成分同様に、4つの領域、即ち
、■EQ<−64、■−64≦EQ≦0、■O<EQ≦
64、■64<EQ)のどれに該当するかの判定及び判
定領域■、■、■、■にそれぞれ対応したデータ0,1
,2.3に符号化される(ステップS16〜ステツプ5
22)。
Next, in order to obtain a positive value for the EY acid component, data outside the range of 0 to 255 is corrected to fall within the range (steps 84 to S8). After this, the EI acid component is divided into four regions, namely: ■EI<-64, ■-64≦EI<O1■
0≦EI≦64, ■64<Ef) and is encoded into data 0.1 and 2.3 corresponding to the judgment regions ■, ■, ■, and ■, respectively (step 89 ~Step 515). Similarly to the EQ acid component, there are four regions: ■EQ<-64, ■-64≦EQ≦0, ■O<EQ≦
64, ■ 64 < EQ) and the data 0, 1 corresponding to the determination areas ■, ■, ■, ■, respectively.
, 2.3 (step S16 to step 5)
22).

そして、EY、E、I、EQ酸成分合成して8ビツトに
まとめる処理が行われ(ステップS23゜ステップ52
4)、さらに原画のデータEY、EI、EQとビット削
減したデータ(図中の示したYl、11.Ql)とから
誤差3’ eyr HL srr yq 、rrが算出
される(ステップ525)。この算出により得た誤差Y
 、rr +  ’  rr + qsrrは、21 
骨 次元的に拡散され(3×5の画素)、誤差拡散バッファ
メモリに格納される(ステップ826)。
Then, processing is performed to synthesize the EY, E, I, and EQ acid components and combine them into 8 bits (step S23, step 52).
4) Furthermore, errors 3' eyr HL srr yq and rr are calculated from the original image data EY, EI, EQ and the bit-reduced data (Yl, 11.Ql shown in the figure) (step 525). Error Y obtained by this calculation
, rr + ' rr + qsrr is 21
Bone-dimensionally diffused (3×5 pixels) and stored in an error diffusion buffer memory (step 826).

ステップS26の処理は、X方向の全画素に適応され、
1942分終了すると(ステップ527)、誤差拡散バ
ッファメモリに格納されたデータを1ライン分ずらす作
業が実施される(ステップ528)。
The process in step S26 is applied to all pixels in the X direction,
When 1942 minutes are completed (step 527), the data stored in the error diffusion buffer memory is shifted by one line (step 528).

次に、誤差拡散テーブルの3ライン目をクリアしくステ
ップ529)、ステップS23及びS24で8ビツトに
まとめられたデータ(buft)は、RA rr中のフ
ァイルに格納される(ステップ530)。
Next, the third line of the error diffusion table is cleared (step 529), and the data (buft) compiled into 8 bits in steps S23 and S24 is stored in a file in RA rr (step 530).

以上説明した全動作は、全ラインの処理が終了すると同
時に終了する(ステップ531)。
All the operations described above end at the same time as the processing of all lines ends (step 531).

次に、8ビツトに圧縮されたカラーデータを元の24ビ
ツトのカラーデータに戻す方法を第6図(a)、(b)
を用いて説明する。
Next, Figures 6(a) and (b) show how to restore the 8-bit compressed color data to the original 24-bit color data.
Explain using.

まず、RAM中のファイルより1ライン分の8ビツトデ
ータが読み圧される(ステップ561)。この読み比さ
れた8ビツトデータからEY、EI、EQ酸成分抽出さ
れる(ステップ562)。まずEI酸成分びEQ酸成分
符号0,1゜2または3により、EI酸成分びEQ酸成
分元のElまたはEQの値の代表値(−96,=32゜
32または96)に戻される(ステップ863〜ステツ
プ5672)。
First, one line of 8-bit data is read from a file in the RAM (step 561). EY, EI, and EQ acid components are extracted from the read-compared 8-bit data (step 562). First, the EI acid component and EQ acid component are returned to the representative value of the original El or EQ value (-96, = 32° 32 or 96) by the code 0, 1° 2 or 3 ( Steps 863 to 5672).

そして、Y、I、Qよりr、g、bへの変換が行われ(
ステップ573)、変換されたr+  g +bのデー
タはO〜255の範囲に設定される(ステップS6)。
Then, Y, I, and Q are converted to r, g, and b (
Step 573), the converted data of r+g+b is set to a range of 0 to 255 (step S6).

この結果、前記ファイルに入れるべき復元right)
が決定され(ステップ378)、1ライン分の復元r、
g、bデータがファイルに格納される(ステップ580
)。
As a result, the restore right to be put into said file)
is determined (step 378), and the restoration r for one line is determined (step 378).
g,b data are stored in a file (step 580
).

このようにして、上記処理による全ラインの処理が終了
により、本動作が終了する(ステップ581)。
In this way, the present operation ends when all lines have been processed by the above process (step 581).

このように、ソフトウェア的に濃度保存及びYIQ削減
を行っても、原画の画質を保ちつつ、データ量を削減で
きる効果がある。
In this way, even when density preservation and YIQ reduction are performed using software, the amount of data can be reduced while maintaining the image quality of the original image.

なお、上述の実施例では、圧縮されたデータをディスク
に格納するようにしたが、公衆回線等によりファクシミ
リ通信する様にしても良い。
In the above-described embodiment, the compressed data is stored on a disk, but it may also be communicated by facsimile over a public line or the like.

また、カラープリンタは、レーザビームプリンタ、イン
クジェットプリンタ、ドツトプリンタ。
Color printers include laser beam printers, inkjet printers, and dot printers.

熱転写プリンタ等である。Such as a thermal transfer printer.

また、受信(再生)側に、カラープリンタ109がない
場合には、受信(再生)側でRGB信号に変換すること
なく、輝度信号Y“のみを用いて0里プリンタ110に
より白黒画像再生を行うことができる。
Furthermore, if the receiving (reproducing) side does not have a color printer 109, the black and white image is reproduced by the Ori printer 110 using only the luminance signal Y'' without converting it to an RGB signal on the receiving (reproducing) side. be able to.

[発明の効果] 以上説明したように、本発明によれば、原画の画質を保
ちつつ、データ量を削減できる効果がある。
[Effects of the Invention] As explained above, according to the present invention, there is an effect that the amount of data can be reduced while maintaining the image quality of the original image.

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

第1図は本発明に係る画像処理装置の第1の実施例を示
すブロック図、 第2A図、第2B図は人間の視覚特性を説明する図、 第3A図は第1の実施例による濃度保存・YIQ削減部
103の構成などを示すブロック図、第3B図には上述
の第3A図の回路の変形例を示すブロック図、 第4図は誤差検出回路308の内部に設けた誤差拡散テ
ーブルを示す図、 第5図(a)、(b)、(c)は原画のRGBからYI
Q信号8ビットに変換する動作を説明するフローチャー
ト、 第6図(a)、(b)は8ビットYIQ信号からRGB
24ビットデータに変換する動作を説明するフローチャ
ートである。 図中、101・・・カラースキャナ、102・・・RG
B/Y I Q変換部、103・・・濃度保存・YIQ
削減部、1−04・・・1バイトパック部、105・・
・ディスク、106・・・CPU、107・・・1バイ
トバック分解部、108・・・YIQ/RGB変換部、
109・・・カラープリンタ、110・・・白黒プリン
タ、302・・・変換テーブル、305・・・量子化部
、307・・・代表値変換回路、308・・・誤差検出
回路、309・・・メモリ部、310・・・送信部、3
12・・・伸長部、313・・・変換テーブルである。
FIG. 1 is a block diagram showing the first embodiment of the image processing device according to the present invention, FIGS. 2A and 2B are diagrams explaining human visual characteristics, and FIG. 3A is the density according to the first embodiment. 3B is a block diagram showing a modification of the circuit shown in FIG. 3A, and FIG. 4 is an error diffusion table provided inside the error detection circuit 308. Figures 5 (a), (b), and (c) show the RGB to YI of the original picture.
A flowchart explaining the operation of converting the Q signal to 8 bits.
3 is a flowchart illustrating an operation of converting into 24-bit data. In the figure, 101...color scanner, 102...RG
B/Y IQ conversion unit, 103...Concentration storage/YIQ
Reduction part, 1-04...1 byte pack part, 105...
・Disk, 106...CPU, 107...1 byte back decomposition unit, 108...YIQ/RGB conversion unit,
109... Color printer, 110... Black and white printer, 302... Conversion table, 305... Quantization section, 307... Representative value conversion circuit, 308... Error detection circuit, 309... Memory section, 310... Transmission section, 3
12... Decompression unit, 313... Conversion table.

Claims (1)

【特許請求の範囲】 画素単位の原色信号を輝度信号と色信号とに変換して処
理する画像処理装置において、 前記輝度信号及び前記色信号を各信号の値に対応した所
定の代表値に変換する変換手段と、前記変換手段で変換
した各代表値と変換前の値との誤差を検出する検出手段
と、 前記変換手段による変換を実行する前の後続画素に対し
て前記検出手段で検出した誤差を拡散する拡散手段とを
備えることを特徴とする画像処理装置。
[Scope of Claims] An image processing device that converts and processes a primary color signal of each pixel into a luminance signal and a color signal, the luminance signal and the color signal being converted into a predetermined representative value corresponding to the value of each signal. a converting means for detecting an error between each representative value converted by the converting means and a value before conversion; and detecting means for detecting an error between each representative value converted by the converting means and a value before conversion; An image processing device comprising: a diffusion means for diffusing errors.
JP2311615A 1990-11-19 1990-11-19 Image processing device Pending JPH04183193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2311615A JPH04183193A (en) 1990-11-19 1990-11-19 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2311615A JPH04183193A (en) 1990-11-19 1990-11-19 Image processing device

Publications (1)

Publication Number Publication Date
JPH04183193A true JPH04183193A (en) 1992-06-30

Family

ID=18019387

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2311615A Pending JPH04183193A (en) 1990-11-19 1990-11-19 Image processing device

Country Status (1)

Country Link
JP (1) JPH04183193A (en)

Similar Documents

Publication Publication Date Title
US5398066A (en) Method and apparatus for compression and decompression of digital color images
KR100782818B1 (en) Method and system for luminance preserving color conversion from YUV to RGB
JPS59205874A (en) Picture data compressor
WO1996010882A1 (en) Method and system for color image compression in conjunction with color transformation techniques
US5987169A (en) Method for improving chromatic text resolution in images with reduced chromatic bandwidth
JP2000244935A (en) Image data compression method
JPH02100465A (en) Image encoding system
US7295701B2 (en) Methods and systems for efficiently processing image data for reproduction
JP3449680B2 (en) Video signal encoding device
JPH0662431A (en) Quantizing/inverse quantizing method for color picture element data
JP2698675B2 (en) Method for encoding and reproducing color image information
KR20020067051A (en) Processing of color signals in a color camera
JPS59128873A (en) Picture signal converting system of color facsimile
JPH0799853B2 (en) Image data compression / decompression method for printing
CN118337968A (en) A color coding approach
JP2698641B2 (en) Color image data encoding method and decoding method
JPS62283776A (en) Color image input/output device
JPH0353767A (en) Picture data compression and restoration system for print
JPH0763177B2 (en) Image information coding device
JP3323615B2 (en) Image data compression apparatus and method
JPH04188952A (en) Color image communication system
JPS6354093A (en) Color picture processing system
JPH04139960A (en) Picture coder
JPS6374268A (en) Color picture data compression system
JP2702112B2 (en) Color image processing method