JP3291056B2 - Image processing method and apparatus - Google Patents

Image processing method and apparatus

Info

Publication number
JP3291056B2
JP3291056B2 JP02565093A JP2565093A JP3291056B2 JP 3291056 B2 JP3291056 B2 JP 3291056B2 JP 02565093 A JP02565093 A JP 02565093A JP 2565093 A JP2565093 A JP 2565093A JP 3291056 B2 JP3291056 B2 JP 3291056B2
Authority
JP
Japan
Prior art keywords
signal
value
output
image
information
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.)
Expired - Fee Related
Application number
JP02565093A
Other languages
Japanese (ja)
Other versions
JPH06245079A (en
Inventor
正和 木虎
正広 船田
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 JP02565093A priority Critical patent/JP3291056B2/en
Publication of JPH06245079A publication Critical patent/JPH06245079A/en
Application granted granted Critical
Publication of JP3291056B2 publication Critical patent/JP3291056B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は画像処理方法及びその装
置に関し、特に、フルカラー画像データを符号化(圧
縮)および復号化(伸張)の処理を施す画像処理方法及
びその装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and apparatus, and more particularly to an image processing method and apparatus for encoding (compressing) and decoding (expanding) full-color image data.

【0002】[0002]

【従来の技術】従来より、フルカラー画像データを所定
の画素ブロックごとに明度情報と色度情報に分離して符
号化(圧縮)する装置として、例えば、特願昭63−1418
26号等に開示されている装置などが提案されている。
2. Description of the Related Art Conventionally, as a device for separating (encoding) full-color image data into brightness information and chromaticity information for each predetermined pixel block, for example, Japanese Patent Application No. 63-1418.
An apparatus disclosed in No. 26 or the like has been proposed.

【0003】このような圧縮方式においては、例えば、
4画素×4ライン単位で明度情報と色度情報の相関性を
利用して色度情報の交流成分の符号化を行っていた。ま
た、さらに画像情報の特徴により、画像情報の属性を2
つに分類し、異なる符号化を行っている。
In such a compression system, for example,
The coding of the AC component of the chromaticity information is performed using the correlation between the brightness information and the chromaticity information in units of 4 pixels × 4 lines. Further, according to the characteristics of the image information, the attribute of the image
And encodes them differently.

【0004】[0004]

【発明が解決しようとする課題】しかしながら上記従来
例では、網点画像のように画素単位レベルでの人工的な
パターンの組み合わせで巨視的に任意の画像を形成して
いる原稿の場合、明度情報と色度情報の相関性が弱いの
で、符号化して復号化した画像の再現性が悪くなるとい
う問題があった。特に、ハイライトの部分では明度情報
の属性が正しく分類されず、最適な符号化が行われない
ために画質の劣化が大きくなってしまうという欠点があ
った。
However, in the above-mentioned conventional example, in the case of a document in which an arbitrary image is macroscopically formed by a combination of artificial patterns at a pixel unit level, such as a halftone image, the brightness information Therefore, there is a problem that the reproducibility of the coded and decoded image is deteriorated. In particular, in the highlight portion, the attribute of the brightness information is not correctly classified, and there is a disadvantage that the image quality is greatly deteriorated because optimal encoding is not performed.

【0005】例えば、網点原稿の場合、網点の色度と原
稿紙の生地の色度が全く異なるために、巨視的には単調
な色味に見える画像領域も文字部などと同じ領域と判定
されてしまう。そのために、色度の直流成分に割り当て
られる情報量が少ない符号化が選択され、疑似輪郭が発
生したり、ハイライトの部分ががさついたりする。
For example, in the case of a halftone original, since the chromaticity of the halftone dot is completely different from the chromaticity of the cloth of the manuscript paper, the image region that looks monotonous macroscopically is also the same as the character region and the like. It will be judged. For this reason, encoding is selected in which the amount of information allocated to the DC component of the chromaticity is small, and a pseudo contour is generated or a highlight portion is roughened.

【0006】本発明は上記従来例に鑑みてなされたもの
で、例えば、画素単位レベルでの人工的なパターンの組
み合わせで巨視的に任意の画像となるように形成された
画像を符号化・復号化しても画像の再現性が良い画像処
理方法及びその装置を提供することを目的としている。
The present invention has been made in view of the above conventional example. For example, an image formed by macroscopically forming an arbitrary image by combining artificial patterns at a pixel unit level is encoded and decoded. It is an object of the present invention to provide an image processing method and an image processing method that provide good image reproducibility even when the image processing is performed.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に本発明の画像処理方法は、以下のような工程からな
る。即ち、フルカラー画像信号を処理する画像処理方法
であって、フルカラー画像信号を入力する入力工程と、
前記フルカラー画像信号を画素ブロック単位の明度情報
と色度情報に分離する分離工程と、前記画素ブロック単
位ごとに前記フルカラー画像信号の明度情報を直流成分
と交流成分に分離して量子化・符号化する第1符号化工
程と、前記画素ブロック内の明度情報の最大値と最小値
との差分値を算出する第1算出工程と、前記画素ブロッ
ク内での色度情報の平均値を算出する第2算出工程と、
前記画素ブロック内の明度情報の最大値をとる位置の色
度情報と前記明度情報の最小値をとる位置の色度情報と
の差分値を算出する第3の算出工程と、前記第1の算出
工程において算出された差分値と前記第3の算出工程に
おいて算出された差分値との比率を示す差分比を求め、
符号化する第2符号化工程と、前記第1算出工程におい
て算出された差分値が所定値より大きい時には前記第2
算出工程において算出された平均値を非線形に量子化し
たものを出力し、前記第1算出工程において算出された
差分値が所定値より小さい時は前記第2算出工程におい
て算出された平均値を量子化せずに出力する第3符号化
工程とを有することを特徴とする画像処理方法を備え
る。
In order to achieve the above object, an image processing method according to the present invention comprises the following steps. That is, an image processing method for processing a full-color image signal, an input step of inputting a full-color image signal,
A separation step of separating the full-color image signal into brightness information and chromaticity information in pixel block units; and a quantization / encoding by separating the brightness information of the full-color image signal into a DC component and an AC component for each pixel block. A first encoding step of calculating a difference value between a maximum value and a minimum value of brightness information in the pixel block, and a second calculating step of calculating an average value of chromaticity information in the pixel block. 2 calculation steps;
A third calculating step of calculating a difference value between chromaticity information at a position where the brightness information takes a maximum value in the pixel block and chromaticity information at a position where the brightness information takes a minimum value, and the first calculation Calculating a difference ratio indicating a ratio between the difference value calculated in the step and the difference value calculated in the third calculation step;
A second encoding step for encoding, and the second encoding step when the difference value calculated in the first calculation step is larger than a predetermined value.
A non-linear quantized version of the average calculated in the calculating step is output. If the difference calculated in the first calculating step is smaller than a predetermined value, the average calculated in the second calculating step is quantized. And a third encoding step of outputting without encoding.

【0008】また他の発明によれば、フルカラー画像信
号を処理する画像処理装置であって、フルカラー画像信
号を入力する入力手段と、前記フルカラー画像信号を画
素ブロック単位の明度情報と色度情報に分離する分離手
段と、前記画素ブロック単位ごとに前記フルカラー画像
信号の明度情報を直流成分と交流成分に分離して量子化
・符号化する第1符号化手段と、前記画素ブロック内の
明度情報の最大値と最小値との差分値を算出する第1算
出手段と、前記画素ブロック内での色度情報の平均値を
算出する第2算出手段と、前記画素ブロック内の明度情
報の最大値をとる位置の色度情報と前記明度情報の最小
値をとる位置の色度情報との差分値を算出する第3の算
出手段と、前記第1の算出手段によって算出された差分
値と前記第3の算出手段によって算出された差分値との
比率を示す差分比を求め、符号化する第2符号化手段
と、前記第1算出手段によって算出された差分値が所定
値より大きい時には前記第2算出手段によって算出され
た平均値を非線形に量子化したものを出力し、前記第1
算出手段によって算出された差分値が所定値より小さい
時は前記第2算出手段によって算出された平均値を量子
化せずに出力する第3符号化手段とを有することを特徴
とする画像処理装置を備える。
According to another aspect of the present invention, there is provided an image processing apparatus for processing a full-color image signal, comprising: input means for inputting a full-color image signal; and converting the full-color image signal into brightness information and chromaticity information in pixel block units. Separating means for separating, brightness information of the full-color image signal for each pixel block, first coding means for separating and quantizing and coding the DC component and AC component, and brightness information of the pixel block. A first calculator for calculating a difference value between a maximum value and a minimum value, a second calculator for calculating an average value of chromaticity information in the pixel block, and a maximum value of brightness information in the pixel block. Third calculating means for calculating a difference value between the chromaticity information of the position to be taken and the chromaticity information of the position having the minimum value of the lightness information; and the third calculating means calculates the difference value between the third value and the third value. Calculation A second encoding unit for obtaining and encoding a difference ratio indicating a ratio with respect to the difference value calculated by the unit; and a second encoding unit for encoding when the difference value calculated by the first calculation unit is larger than a predetermined value. A non-linearly quantized version of the calculated average value is output, and the first
An image processing apparatus comprising: a third encoding unit that outputs, without quantizing, the average value calculated by the second calculation unit when the difference value calculated by the calculation unit is smaller than a predetermined value. Is provided.

【0009】[0009]

【作用】以上の構成により本発明は、入力したフルカラ
ー画像信号の符号化の際に、その画像信号を画素ブロッ
ク単位に明度情報と色度情報に分離し、その画素ブロッ
ク内の明度情報の最大値と最小値との差分値を算出し、
その画素ブロック内での色度情報の平均値を算出し、そ
の画素ブロック内の明度情報の最大値をとる位置の色度
情報と明度情報の最小値をとる位置の色度情報との差分
値を算出し、算出された明度情報の差分値と算出された
色度情報の差分値との比率を示す差分比を求め符号化す
るとともに、算出された明度情報の差分値が所定値より
大きい時には算出された色度情報の平均値を非線形に量
子化したものを出力し、算出された明度情報の差分値が
所定値より小さい時は算出された色度情報の平均値を量
子化せずに出力するよう動作する。
According to the present invention, when encoding an input full-color image signal, the present invention separates the image signal into brightness information and chromaticity information for each pixel block, and sets the maximum brightness information in the pixel block. Calculate the difference between the value and the minimum value,
The average value of the chromaticity information in the pixel block is calculated, and the difference value between the chromaticity information at the position where the maximum value of the brightness information in the pixel block is obtained and the chromaticity information at the position where the minimum value of the brightness information is obtained Is calculated, and a difference ratio indicating a ratio between the calculated difference value of the brightness information and the calculated difference value of the chromaticity information is calculated and encoded. When the difference value of the calculated brightness information is larger than a predetermined value, Non-linearly quantized output of the calculated average value of the chromaticity information is output, and when the calculated difference value of the brightness information is smaller than a predetermined value, the average value of the calculated chromaticity information is not quantized. Operate to output.

【0010】[0010]

【実施例】以下添付図面を参照して本発明の好適な実施
例を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0011】[装置概要説明(図1)]図1は本発明の
代表的な実施例であるフルカラーの複写機の概要構成を
示すブロック図である。図1において、201は原稿台
ガラスであり、読み取られるべき原稿202が置かれ
る。原稿202は、光源203により照射され、ミラー
204〜206を経て、光学系207により、CCD2
08上に像が結ばれる。更に、モータ209により、ミ
ラー204、光源203を含むミラーユニット210
は、速度(V)で機械的に駆動され、ミラー205,2
06を含む第2ミラーユニット211は速度1/2Vで
駆動され、原稿202の全面が走査される。212は画
像処理回路部であり、読み取られた画像情報を電気信号
として処理し、プリント信号として出力する部分であ
る。
[Explanation of Apparatus Outline (FIG. 1)] FIG. 1 is a block diagram showing an outline configuration of a full-color copying machine which is a typical embodiment of the present invention. In FIG. 1, reference numeral 201 denotes a platen glass on which a document 202 to be read is placed. The original 202 is illuminated by a light source 203, passes through mirrors 204 to 206, and is transmitted to a CCD 2 by an optical system 207.
An image is formed on the image 08. Further, a mirror unit 210 including a mirror 204 and a light source 203 is driven by a motor 209.
Are mechanically driven at a speed (V), and mirrors 205 and 2
The second mirror unit 211 including the drive unit 06 is driven at a speed of 1/2 V, and the entire surface of the document 202 is scanned. Reference numeral 212 denotes an image processing circuit which processes the read image information as an electric signal and outputs it as a print signal.

【0012】213〜216は、半導体レーザであり、
画像処理回路部212より出力されたプリント信号によ
り駆動され、それぞれの半導体レーザによって発光され
たレーザ光は、ポリゴンミラー217〜220によっ
て、感光ドラム225〜228上に潜像を形成する。2
21〜224は各々、ブラック(Bk)、イエロ
(Y)、シアン(C)、マゼンタ(M)のトナーによっ
て、潜像を現像するための現像器であり、現像された各
色のトナーは、用紙に転写され、フルカラーのプリント
出力がなされる。
Reference numerals 213 to 216 denote semiconductor lasers,
The laser beams driven by the print signals output from the image processing circuit unit 212 and emitted by the respective semiconductor lasers form latent images on the photosensitive drums 225 to 228 by the polygon mirrors 217 to 220. 2
Reference numerals 21 to 224 denote developing units for developing latent images using black (Bk), yellow (Y), cyan (C), and magenta (M) toners, respectively. To a full-color printout.

【0013】用紙カセット229〜231、及び、手差
しトレイ232のいずれかより給紙された用紙は、レジ
ストローラ223を経て、転写ベルト234上に吸着さ
れ、搬送される。給紙のタイミングと同期がとられて、
予め感光ドラム225〜228には各色のトナーが現像
されており、用紙の搬送とともに、トナーが用紙に転写
される。
Paper fed from one of the paper cassettes 229 to 231 and the manual feed tray 232 is attracted onto a transfer belt 234 via a registration roller 223 and is conveyed. Synchronized with the paper feed timing,
The toners of the respective colors are developed on the photosensitive drums 225 to 228 in advance, and the toner is transferred to the paper as the paper is transported.

【0014】各色のトナーが転写された用紙は、分離/
搬送され、定着器235によって、トナーが用紙に定着
され、排紙トレイ236に排紙される。
The paper on which the toner of each color is transferred is separated / separated.
The sheet is conveyed, the toner is fixed on the sheet by the fixing device 235, and the sheet is discharged to the sheet discharge tray 236.

【0015】[画像処理回路の概要説明(図2〜図
3)]図2〜図3は画像処理回路212の構成を示すブ
ロック図である。図2〜図3において、101〜103
は各々、レッド(R),グリーン(G),ブルー(B)
のCCDセンサであり、それぞれのセンサからの出力は
対応するアナログ増幅器104〜106により増幅さ
れ、対応するA/D変換器によって、各々ディジタル信
号として出力される。110、111は各々ディレイメ
モリであり、3つのCCDセンサ101〜103の間の
空間的ずれを補正するものである。
[Overview of Image Processing Circuit (FIGS. 2 and 3)] FIGS. 2 and 3 are block diagrams showing the configuration of the image processing circuit 212. 2 to 3, 101 to 103
Are red (R), green (G), and blue (B), respectively.
The outputs from the respective sensors are amplified by the corresponding analog amplifiers 104 to 106 and output as digital signals by the corresponding A / D converters. Reference numerals 110 and 111 denote delay memories, respectively, for correcting a spatial shift between the three CCD sensors 101 to 103.

【0016】151〜156は各々、トライステーテの
ゲート回路であり、CPU(不図示)によって、変倍処
理の内容に従って表1に示すようにセットされるOE1
〜OE6信号が“0”である時のみ、入力された信号を
出力する。157〜160は各々、変倍回路であり、画
像信号を主走査方向に変倍する。
Reference numerals 151 to 156 denote tristate gate circuits, which are set as shown in Table 1 by a CPU (not shown) in accordance with the contents of the scaling process.
Only when the OE6 signal is "0", the input signal is output. Reference numerals 157 to 160 denote magnification circuits, each of which scales an image signal in the main scanning direction.

【0017】112は色空間変換器であり、RGB信号
を、明度信号(L* )と色度信号(a*,b* )に変換す
る。ここで、L*,a*,b* 信号は、CIEで国際標準と
してL*,a*,b* 空間として規定される色度成分を表す
信号であり、L*,a*,b* 信号は、式(1)に従って計
算される。 ここで、αij,X0 ,Y0 ,Z0 は定数である。
Reference numeral 112 denotes a color space converter, which converts an RGB signal into a lightness signal (L * ) and chromaticity signals (a * , b * ). Here, the L * , a * , b * signal is a signal representing a chromaticity component defined as an L * , a * , b * space as an international standard in the CIE, and the L * , a * , b * signal Is calculated according to equation (1). Here, α ij , X 0 , Y 0 , and Z 0 are constants.

【0018】また、X,Y,Zは、RGB信号により演
算され発生する信号であり、式(2)で表される。 ここで、βijは定数である。
X, Y, and Z are signals calculated and generated based on the RGB signals, and are expressed by equation (2). Here, β ij is a constant.

【0019】113は明度信号の符号化器であり、L*
信号を4×4の画素ブロック単位で符号化し、その符号
化信号(L-code)を出力し、114は色度信号の符号化
器であり、a*,b* 信号を4×4の画素ブロック単位で
符号化し、その符号化信号(ab-code )を出力する。
Reference numeral 113 denotes an encoder for a brightness signal, and L *
The signal is encoded in units of 4 × 4 pixel blocks, and the encoded signal (L-code) is output. Reference numeral 114 denotes a chrominance signal encoder, which encodes a * and b * signals into 4 × 4 pixels. Encode in block units and output the encoded signal (ab-code).

【0020】115は特徴抽出回路であり、当該画素が
黒画素であるか否かの判定信号(K 1')を発生する黒画
素検出回路115aと、判定信号(K1')を入力し、4
×4の画素ブロック内が黒画素エリアであるか否かの判
定をする4×4エリア処理回路115b、および当該画
素が文字領域にあるか否かの判定信号(K2')を発生す
る文字領域検出回路115c、判定信号(K2')を入力
し、4×4の画素ブロック内が文字領域であるか否かの
判定をする4×4エリア処理回路115dより構成され
る。
Reference numeral 115 denotes a feature extraction circuit, which
A determination signal (K 1') Black picture that causes
Element detection circuit 115a and a determination signal (K1') And enter 4
It is determined whether or not the inside of the × 4 pixel block is a black pixel area.
4 × 4 area processing circuit 115b for determining
The determination signal (KTwo') Fire
Character region detection circuit 115c, the determination signal (KTwo')
And whether the inside of the 4 × 4 pixel block is a character area
It is composed of a 4 × 4 area processing circuit 115d for making a determination.
You.

【0021】116は画像メモリであり、明度情報の符
号化信号(L-code)、色度情報の符号化信号(ab-code
)、特徴抽出の結果である判定信号(K1 )、及び、
判定信号(K2 )が蓄えられる。
Reference numeral 116 denotes an image memory, which is an encoded signal of lightness information (L-code) and an encoded signal of chromaticity information (ab-code).
), A determination signal (K 1 ) as a result of feature extraction, and
The judgment signal (K 2 ) is stored.

【0022】141〜144は各々、マゼンタ(M)、
シアン(C)、イエロ(Y)、ブラック(Bk)用の濃
度信号生成回路であり、ほぼ同じ構成をとる。
Reference numerals 141 to 144 denote magenta (M),
This is a density signal generation circuit for cyan (C), yellow (Y), and black (Bk), and has almost the same configuration.

【0023】117a、117b、117c、及び、1
17dは明度情報の復号化器であり画像メモリ116よ
り読み出された符号化信号(L-code)によりL* 信号を
復号化し、118a、118b、118c、及び、11
8dは色度情報の復号化器であり画像メモリ116より
読み出された符号化信号(ab-code )によりa* 信号及
びb* 信号を復号する。
117a, 117b, 117c, and 1
Reference numeral 17d denotes a brightness information decoder which decodes the L * signal by using the coded signal (L-code) read from the image memory 116, and outputs 118a, 118b, 118c, and 11
Reference numeral 8d denotes a decoder for chromaticity information, which decodes the a * signal and the b * signal using the encoded signal (ab-code) read from the image memory 116.

【0024】119a、119b、119c、及び、1
19dは色空間変換器であり、復号化されたL*,a*,b
* 信号を、トナー現像色であるマゼンタ(M)、シアン
(C)、イエロ(Y)、ブラック(Bk)の各色成分へ
変換する変換回路である。120a、120b、120
c、及び、120dは濃度変換回路であり、ROM或は
RAMのルックアップテーブル(以下、LUTという)
で構成される。121a、121b、121c、及び、
121dは空間フィルタであり、出力画像の空間周波数
の補正をおこなう。また、122a、122b、122
c、及び、122dは、画素補正回路であり、復号化さ
れた画像データの補正をおこなう。
119a, 119b, 119c, and 1
19d is a color space converter, which decodes L * , a * , b
* A conversion circuit that converts signals into respective color components of magenta (M), cyan (C), yellow (Y), and black (Bk), which are toner development colors. 120a, 120b, 120
Reference numerals c and 120d denote density conversion circuits, which are ROM or RAM look-up tables (hereinafter referred to as LUTs).
It consists of. 121a, 121b, 121c, and
Reference numeral 121d denotes a spatial filter that corrects a spatial frequency of an output image. 122a, 122b, 122
Reference numerals c and 122d denote pixel correction circuits that correct decoded image data.

【0025】[0025]

【表1】 [明度成分符号化器113(図4〜図14)]図4は明
度情報符号化器113の構成を示すブロック図である。
また、図5〜図6は明度情報符号化の流れを概念的に示
す図である。
[Table 1] [Brightness Component Encoder 113 (FIGS. 4 to 14)] FIG. 4 is a block diagram showing a configuration of the brightness information encoder 113. As shown in FIG.
FIGS. 5 and 6 are diagrams conceptually showing the flow of brightness information encoding.

【0026】ここで、画像データの符号化(圧縮)は、
図7に示すように、4画素(主走査方向)×4ライン
(副走査方向)の計16画素を1ブロックの単位として
行われる。図7において、XPHSは主走査位置を示す
2ビットの信号であり、“0”、“1”、“2”、
“3”の値を示す信号が繰り返し出力され、YPHSは
副走査位置を示す2ビットの信号であり、“0”、
“1”、“2”、“3”の値を示す信号が繰り返し出力
される。これらの信号に同期して4画素×4ラインの1
ブロックが切り出される。
Here, the encoding (compression) of the image data is
As shown in FIG. 7, the processing is performed using a total of 16 pixels of 4 pixels (main scanning direction) × 4 lines (sub scanning direction) as a unit of one block. In FIG. 7, XPHS is a 2-bit signal indicating the main scanning position, and is “0”, “1”, “2”,
A signal indicating a value of “3” is repeatedly output, and YPHS is a 2-bit signal indicating a sub-scanning position.
Signals indicating the values of “1”, “2”, and “3” are repeatedly output. In synchronism with these signals, 1 of 4 pixels × 4 lines
Blocks are cut out.

【0027】先ず、明度情報符号化の概念を図5〜図6
を参照して説明する。図5の401に示すように、切り
出された1ブロックの明度情報をXij(i,j=1〜
4)としたときに、これに(3)式に示す4行×4列の
アダマール変換を施すと、図5の402に示すような行
列(Yij(i,j=1〜4))を得る。アダマール変換
は、直交変換の一種であり、4行×4列のデータを2次
元ウォルシュ関数で展開するものであり、フーリエ変換
によって時間領域もしくは空間領域の信号が周波数領域
もしくは空間周波数領域に変換するのに相当する。即
ち、アダマール変換後の行列(Yij(i,j=1〜
4))は、入力信号の行列(Xij(i,j=1〜4))
のもつ空間周波数の各成分に相当する信号となる。
First, the concept of the brightness information encoding will be described with reference to FIGS.
This will be described with reference to FIG. As indicated by 401 in FIG. 5, the brightness information of one cut-out block is represented by X ij (i, j = 1 to
4), when this is subjected to a Hadamard transform of 4 rows × 4 columns shown in equation (3), a matrix (Y ij (i, j = 1 to 4)) as indicated by 402 in FIG. 5 is obtained. obtain. The Hadamard transform is a kind of orthogonal transform, which expands data of 4 rows × 4 columns by a two-dimensional Walsh function, and transforms a signal in a time domain or a spatial domain into a frequency domain or a spatial frequency domain by a Fourier transform. Equivalent to That is, the matrix after the Hadamard transform (Y ij (i, j = 1 to 1)
4)) is a matrix of input signals (X ij (i, j = 1 to 4))
Is a signal corresponding to each component of the spatial frequency of.

【0028】 ここで、Hは4×4のアダマール行列であり、HT はH
の転置行列である。
[0028] Here, H is a 4 × 4 Hadamard matrix, and H T is H
Is a transposed matrix.

【0029】さて、2次元のフーリエ変換の場合と同様
に、このアダマール変換の出力行列(Yij(i,j=1
〜4))においては、iの値(即ち行位置)が大きくな
ればなるほど副走査方向の高い空間周波数の成分が配置
され、jの値(即ち列位置)が大きくなればなるほど主
走査方向の高い空間周波数の成分が配置される。特に、
i=j=1の場合にはYij=(1/4)ΣXijとなり、
入力データXij(i,j=1〜4)の直流成分、即ち、
平均値に相当する信号(厳密には平均値の4倍の値の信
号)が出力される。
As in the case of the two-dimensional Fourier transform, the output matrix of this Hadamard transform (Y ij (i, j = 1
4)), the higher the value of i (i.e., the row position), the higher the spatial frequency component in the sub-scanning direction is arranged, and the larger the value of j (i.e., the column position), the higher the value of i in the main scanning direction. High spatial frequency components are located. In particular,
When i = j = 1, Y ij = (() ΣX ij , and
DC component of input data X ij (i, j = 1 to 4), that is,
A signal corresponding to the average value (strictly, a signal having a value four times the average value) is output.

【0030】更に、一般的に読み込まれた画像は、CC
D等の読み取りセンサの読み取り解像力や光学系の透過
特性などによって、高い空間周波数成分のものが少なく
ないことが知られている。この特性を利用して、アダマ
ール変換後の信号Yij(i,j=1〜4)をスカラー量
子化し、図5の403に示すような行列(Zij(i,j
=1〜4)を得る。
Further, generally, the read image is a CC
It is known that there are not a few high spatial frequency components depending on the reading resolution of a reading sensor such as D and the transmission characteristics of an optical system. By utilizing this characteristic, the signal Y ij (i, j = 1 to 4) after the Hadamard transform is scalar-quantized, and a matrix (Z ij (i, j) as shown by 403 in FIG.
= 1 to 4).

【0031】図6(a)には1ブロックの明度情報Xij
(i,j=1〜4)の各要素のビット数を、図6(b)
にはアダマール変換の出力行列(Yij(i,j=1〜
4))の各要素のビット数を、図6(c)にはスカラー
量子化されたアダマール変換の出力行列(Zij(i,j
=1〜4))の各要素のビット数を示す。これらの図に
示される様に、Y11、即ち、直流成分を最も多い8ビッ
トに量子化しZ11とし、各Yijを空間周波数の高いほど
少ないビット数で量子化する。
FIG. 6A shows one block of brightness information X ij.
The number of bits of each element of (i, j = 1 to 4) is shown in FIG.
Has an output matrix of the Hadamard transform (Y ij (i, j = 1 to 1)
4)), the output matrix (Z ij (i, j) of the scalar-quantized Hadamard transform is shown in FIG.
= 1 to 4)) indicates the number of bits of each element. As shown in these figures, Y 11 , that is, the DC component is quantized to 8 bits, which is the largest, to be Z 11, and each Y ij is quantized with a smaller number of bits as the spatial frequency is higher.

【0032】更に、Zij(i,j=1〜4)の16個の
要素を、図5の404に示す様に、直流成分および、4
つの交流成分にグループ化する。即ち、表2に示すよう
に、AVEに直流成分としてZ11を割り当て、L1に主
走査交流成分としてZ21,Z 13,Z14をグループ化し割
り当て、L2に副走査交流成分としてZ21,Z31,Z 41
をグループ化し割り当て、Mに主走査および副走査の中
域交流成分としてZ22,Z23,Z32,Z33をグループ化
し割り当て、Hに主走査および副走査の高域成分として
24,Z42,Z43,Z44をグループ化し割り当てる。
Further, Zij(I, j = 1 to 4)
The elements are represented by a DC component and a 4
Group into two AC components. That is, as shown in Table 2.
And AVE as a DC component as Z11Is assigned to L1
Z as scanning AC componenttwenty one, Z 13, Z14Into groups
And Z2 is added to L2 as a sub-scanning AC componenttwenty one, Z31, Z 41
Are grouped and assigned, and M is assigned to
Z as the area AC componenttwenty two, Ztwenty three, Z32, Z33Group
And assigned to H as a high-frequency component of main scanning and sub-scanning
Ztwenty four, Z42, Z43, Z44And assign them.

【0033】[0033]

【表2】 図4において、701〜703はラインメモリであり、
それぞれ画像データを1ライン遅延させることで、図7
に示したような画素ブロックが切り出される。704は
アダマール変換回路であり、(3)式で示される変換を
行う。
[Table 2] In FIG. 4, 701 to 703 are line memories,
By delaying each image data by one line, FIG.
The pixel block as shown in FIG. Reference numeral 704 denotes a Hadamard transform circuit, which performs the transform represented by Expression (3).

【0034】即ち、図8に示すように、CLK信号とX
PHS信号とに同期して、アダマール変換回路704の
1 にはX11,X12,X13,X14信号が、アダマール変
換回路704のX2 にはX21,X22,X23,X24信号
が、アダマール変換回路704のX3 にはX31,X32
33,X34信号が、アダマール変換回路704のX4
41,X42,X43,X44信号が入力される。また、アダ
マール変換された信号が、CLK信号8パルス分遅延さ
れて、アダマール変換回路704のY1 からY11
12,Y13,Y14が、アダマール変換回路704のY2
からY21,Y22,Y23,Y24が、アダマール変換回路7
04のY3 からY31,Y32,Y33,Y34が、アダマール
変換回路704のY4 からY41,Y42,Y43,Y44が出
力される。
That is, as shown in FIG.
In synchronization with the PHS signal, X 11 , X 12 , X 13 , and X 14 signals are applied to X 1 of the Hadamard conversion circuit 704, and X 21 , X 22 , X 23 , and X are applied to X 2 of the Hadamard conversion circuit 704. 24 signals are stored in X 3 of the Hadamard conversion circuit 704 as X 31 , X 32 ,
The X 33 and X 34 signals are input to X 4 of the Hadamard conversion circuit 704, and the X 41 , X 42 , X 43 and X 44 signals are input. Further, the signal subjected to the Hadamard transform is delayed by eight pulses of the CLK signal, and the signals from Y 1 to Y 11 ,
Y 12 , Y 13 , and Y 14 are Y 2 of the Hadamard transform circuit 704.
, Y 21 , Y 22 , Y 23 , and Y 24 are converted into Hadamard transform circuits 7
Y 31 from Y 3 of 04, Y 32, Y 33, Y 34 is, Y 41 from Y 4 Hadamard transform circuit 704, Y 42, Y 43, Y 44 is output.

【0035】705〜708は各々、LUT用ROMで
あり、図5〜図6で説明したスカラ量子化を実行する部
分である。即ち、アダマール変換された出力を図6
(c)に示すようなビット数に量子化するように、RO
M705〜708各々のアドレスには、予め、入力とな
るアダマール変換後の出力及びXPHS信号に対応する
出力として、スカラ量子化された結果を出力する様にデ
ータが書き込まれている。709はベクトル量子化のた
めのグループ化を行う回路(以下、グループ化回路とい
う)であり、図9〜図10にその詳細な構成を示す。
Reference numerals 705 to 708 denote LUT ROMs for executing the scalar quantization described with reference to FIGS. That is, the output after the Hadamard transform is shown in FIG.
RO is quantized to the number of bits as shown in FIG.
In each of the addresses M705 to 708, data is written in advance so as to output a scalar-quantized result as an input after Hadamard transform and an output corresponding to the XPHS signal. Reference numeral 709 denotes a circuit for performing grouping for vector quantization (hereinafter, referred to as a grouping circuit), and the detailed configuration thereof is shown in FIGS.

【0036】図9〜図10において、801〜816は
各々、フリップフロップ回路であり、CLK信号に同期
した遅延を与え、図5の403に示す4画素×4ライン
で構成される1ブロックの中のデータを保持し、その中
から図5の404および表2に示すようなAVE、L
1、L2、M、及び、Hの各グループに分けられたデー
タが抽出される。817〜821は各々、2→1セレク
タであり、S端子に“0”が入力されている場合には、
出力端子(Y)にはA側入力の値が出力され、Sに
“1”が入力されている場合には、出力端子(Y)には
B側入力の値が出力される。
In FIGS. 9 and 10, reference numerals 801 to 816 denote flip-flop circuits, each of which applies a delay synchronized with the CLK signal, and is included in one block composed of 4 pixels × 4 lines shown at 403 in FIG. 5 are stored, and AVE, L as shown in 404 of FIG.
Data divided into groups of 1, L2, M, and H are extracted. Reference numerals 817 to 821 denote 2 → 1 selectors. When “0” is input to the S terminal,
The value of the A-side input is output to the output terminal (Y), and when "1" is input to S, the value of the B-side input is output to the output terminal (Y).

【0037】また、822〜826はフリップフロップ
回路であり、CLK信号に同期した遅延を与える。XD
0信号は、図8に示すようにCLK信号およびXPHS
信号に同期し、XPHS信号が“0”の場合のみ“0”
になり、それ以外では“1”になる信号であり、結果的
に、4画素×4ラインで構成される1ブロックごとに、
表2に示した各グループごとのスカラ量子化結果がセレ
クタ817〜821の出力がフリップフロップ822〜
826によりCLK信号の1パルス分の遅延され、各フ
リップフロップのQ出力より図8に示されるタイミング
で出力される。更に、827〜831もフリップフロッ
プ回路であり、CLK4信号の立ち上がりで入力データ
を保持し、図8に示すタイミングでAVE、L1、L
2、M、及び、Hの各信号が出力される。
Reference numerals 822 to 826 denote flip-flop circuits which apply a delay in synchronization with the CLK signal. XD
0 signal is the CLK signal and XPHS as shown in FIG.
Synchronized with the signal, "0" only when the XPHS signal is "0"
Otherwise, the signal becomes “1”. As a result, for each block composed of 4 pixels × 4 lines,
The scalar quantization results for each group shown in Table 2 are output from the selectors 817 to 821 and the flip-flops 822 to 821.
The signal is delayed by one pulse of the CLK signal by 826, and is output from the Q output of each flip-flop at the timing shown in FIG. Further, 827 to 831 are also flip-flop circuits, which hold input data at the rising edge of the CLK4 signal, and output AVE, L1, L at the timing shown in FIG.
2, M and H signals are output.

【0038】さらに図4において、710〜713はL
UT用ROMであり、それぞれグループ化回路709の
L1、L2、M、及び、Hより出力される信号を公知の
ベクトル量子化技術により量子化するものであり、それ
ぞれ、L1のグループを9ビット、L2のグループを9
ビット、Mのグループを8ビット、Hのグループを8ビ
ットに量子化され、フリップフロップ714にて、CL
K4信号の立ち上がりで同期がとられ、図8に示すタイ
ミングでL-code信号として出力される。
Further, in FIG.
A UT ROM that quantizes signals output from L1, L2, M, and H of the grouping circuit 709 by a known vector quantization technique. Each of the L1 groups has 9 bits. 9 L2 groups
Bit, the group of M is quantized to 8 bits, and the group of H is quantized to 8 bits.
Synchronization is achieved at the rise of the K4 signal, and the signal is output as an L-code signal at the timing shown in FIG.

【0039】また、715はLGAIN算出器であり、
A,B,C,Dの各入力端子には、アダマール変換回路
704の入力端子X1,X2,X3,X4 への入力と同様のタ
イミングで、4画素×4ラインで構成されるブロック単
位でL* 信号が入力され、各ブロックについて明度信号
(L* )の振幅(最大値−最小値)であるLGAIN信
号、L* が最大値をとる位置情報(ブロック内の座標)
LMX、及び、L* が最小値をとる位置情報(ブロック
内の座標)LMNを算出する。
Reference numeral 715 denotes an LGAIN calculator.
Each of the input terminals A, B, C and D is composed of 4 pixels × 4 lines at the same timing as the input to the input terminals X 1 , X 2 , X 3 and X 4 of the Hadamard conversion circuit 704. An L * signal is input in block units, and an LGAIN signal representing the amplitude (maximum value−minimum value) of the brightness signal (L * ) for each block, and position information (coordinates in the block) at which L * takes the maximum value
The position information (the coordinates in the block) LMN at which LMX and L * take the minimum value is calculated.

【0040】図11はLGAIN算出器715の詳細な
構成を示すブロック図である。図11において、901
〜904はフリップフロップであり、入力データをCL
K信号の立ち上がりで保持する。905は副走査方向の
最大値および最小値の検索回路であり、図12にその詳
細な構成を示す。
FIG. 11 is a block diagram showing a detailed configuration of the LGAIN calculator 715. In FIG.
To 904 are flip-flops for input data CL
It is held at the rise of the K signal. Reference numeral 905 denotes a search circuit for a maximum value and a minimum value in the sub-scanning direction. FIG.

【0041】図12において、1001〜1002は2
→1のセレクタ、1003は比較器、1004はインバ
ータである。セレクタ1001〜1002と比較器10
03のA入力端子とB入力端子各々に入力されるデータ
に関して、もし、A(A入力端子への入力値)>B(B
入力端子への入力値)であったならば、比較器1003
の出力端子(Y)の出力は“1”になり、セレクタ10
01の出力端子(Y)からはA入力端子に入力されたA
信号が、セレクタ1002の出力端子(Y)からはB入
力端子に入力されたB信号が出力される。一方、A≦B
であったならば、比較器1003の出力端子(Y)の出
力は“0”になり、セレクタ1001の出力端子(Y)
からはB入力端子に入力されたB信号が、セレクタ10
02の出力端子(Y)からはA入力端子に入力されたA
信号が出力される。その結果、比較器1001の出力端
子(Y)からは、max(A,B)の値が出力され、比
較器1002の出力端子(Y)からは、min(A,
B)の値が出力される。
In FIG. 12, 1001 to 1002 are 2
→ 1 is a selector, 1003 is a comparator, and 1004 is an inverter. Selectors 1001 to 1002 and comparator 10
03, the data input to each of the A input terminal and the B input terminal, if A (input value to the A input terminal)> B (B
Input value to the input terminal), the comparator 1003
The output of the output terminal (Y) becomes “1” and the selector 10
01 from the output terminal (Y) of the A
A signal is output from the output terminal (Y) of the selector 1002 to the B signal input to the B input terminal. On the other hand, A ≦ B
, The output of the output terminal (Y) of the comparator 1003 becomes “0”, and the output terminal (Y) of the selector 1001
The B signal input to the B input terminal from the
02 output terminal (Y) from the A input terminal
A signal is output. As a result, the value of max (A, B) is output from the output terminal (Y) of the comparator 1001, and the value of min (A, B) is output from the output terminal (Y) of the comparator 1002.
The value of B) is output.

【0042】同様に、1005〜1006は2→1のセ
レクタ、1007は比較器、1008はインバータであ
る。ここで、セレクタ1005〜1006と比較器10
07のA入力端子とB入力端子各々に入力されるデータ
に関して、もし、C(A入力端子への入力値)>D(B
入力端子への入力値)であったならば、比較器1007
の出力端子(Y)の出力は“1”になり、セレクタ10
05の出力端子(Y)からはA入力端子に入力されたC
信号が、セレクタ1006の出力端子(Y)からはB入
力端子に入力されたD信号が出力される。一方、C≦D
であったならば、比較器1007の出力端子(Y)の出
力は“0”になり、セレクタ1005の出力端子(Y)
からはB入力端子に入力されたD信号が、セレクタ10
06の出力端子(Y)からはA入力端子に入力されたC
信号が出力される。その結果、比較器1005の出力端
子(Y)からは、max(C,D)の値が出力され、比
較器1004の出力端子(Y)からは、min(C,
D)の値が出力される。
Similarly, reference numerals 1005 to 1006 denote 2 → 1 selectors, 1007 denotes a comparator, and 1008 denotes an inverter. Here, the selectors 1005 to 1006 and the comparator 10
07, the data input to each of the A input terminal and the B input terminal, if C (input value to the A input terminal)> D (B
Input value to the input terminal), the comparator 1007
The output of the output terminal (Y) becomes “1” and the selector 10
05 input terminal A from the output terminal (Y)
The signal is output from the output terminal (Y) of the selector 1006 to the D signal input to the B input terminal. On the other hand, C ≦ D
, The output of the output terminal (Y) of the comparator 1007 becomes “0”, and the output terminal (Y) of the selector 1005
The D signal input to the B input terminal from the
06 from the output terminal (Y) to the A input terminal
A signal is output. As a result, the value of max (C, D) is output from the output terminal (Y) of the comparator 1005, and min (C, D) is output from the output terminal (Y) of the comparator 1004.
The value of D) is output.

【0043】更に、1009、1011は2→1セレク
タ、1010は比較器、1012〜1014はインバー
タであり、もし、max(A,B)>max(C,D)
である場合には、比較器1010の出力は“1”とな
り、max(A,B)の値がセレクタ1009の出力端
子(Y)より出力され、もし、max(A,B)≦ma
x(C,D)である場合には、比較器1010の出力は
“0”となり、max(C,D)の値がセレクタ100
9の出力端子(Y)より出力される。その結果、max
(A,B,C,D)の値がセレクタ1009の出力端子
(Y)より信号(max)として出力される。また、信
号imx(0)及び信号imx(1)には、A、B、
C、Dのいずれが最大値をとったかを示すコードが次の
ように出力される。即ち、Aが最大値をとる時、imx
(1)=0かつimx(0)=0、Bが最大値をとる
時、imx(1)=0かつimx(0)=1、Cが最大
値をとる時、imx(1)=1かつimx(0)=0、
Dが最大値をとる時、imx(1)=0かつimx
(0)=1となる。
Further, 1009 and 1011 are 2 → 1 selectors, 1010 is a comparator, and 1012 to 1014 are inverters. If max (A, B)> max (C, D)
, The output of the comparator 1010 becomes “1”, and the value of max (A, B) is output from the output terminal (Y) of the selector 1009. If max (A, B) ≦ max
If it is x (C, D), the output of the comparator 1010 is “0” and the value of max (C, D) is
9 output terminal (Y). As a result, max
The value of (A, B, C, D) is output from the output terminal (Y) of the selector 1009 as a signal (max). Also, signals imx (0) and signal imx (1) include A, B,
A code indicating which of C and D has the maximum value is output as follows. That is, when A takes the maximum value, imx
(1) = 0 and imx (0) = 0, when B takes the maximum value, imx (1) = 0 and imx (0) = 1, when C takes the maximum value, imx (1) = 1 and imx (0) = 0,
When D takes the maximum value, imx (1) = 0 and imx
(0) = 1.

【0044】同様に、1015、1017は2→1セレ
クタ、1016は比較器であり、もし、min(A,
B)>min(C,D)である場合には、比較器101
6の出力は“1”となり、min(C,D)の値がセレ
クタ1015の出力端子(Y)より出力され、もし、m
in(A,B)≦min(C,D)である場合には、比
較器1016の出力は“0”となり、min(A,B)
の値がセレクタ1015の出力端子(Y)より出力され
る。その結果、min(A,B,C,D)の値がセレク
タ1015の出力端子(Y)より信号(min)として
出力される。また、信号imn(0)及び信号imn
(1)には、A、B、C、Dのいずれが最小値をとった
かを示すコードが次のように出力される。即ち、Aが最
小値をとる時、imn(1)=0かつimn(0)=
0、Bが最小値をとる時、imn(1)=0かつimn
(0)=1、Cが最小値をとる時、imn(1)=1か
つimn(0)=0、Dが最小値をとる時、imn
(1)=1かつimn(0)=1となる。
Similarly, 1015 and 1017 are 2 → 1 selectors and 1016 are comparators, and if min (A,
B)> min (C, D), the comparator 101
6 is "1", and the value of min (C, D) is output from the output terminal (Y) of the selector 1015.
When in (A, B) ≦ min (C, D), the output of the comparator 1016 is “0”, and min (A, B)
Is output from the output terminal (Y) of the selector 1015. As a result, the value of min (A, B, C, D) is output from the output terminal (Y) of the selector 1015 as a signal (min). Also, the signal imn (0) and the signal imn
In (1), a code indicating which of A, B, C, and D has the minimum value is output as follows. That is, when A takes the minimum value, imn (1) = 0 and imn (0) =
When 0 and B take minimum values, imn (1) = 0 and imn
When (0) = 1, C takes the minimum value, imn (1) = 1 and imn (0) = 0, and when D takes the minimum value, imn
(1) = 1 and imn (0) = 1.

【0045】さて再び図11において、906〜913
は各々、フリップフロップ回路であり、副走査方向の最
大値/最小値検索回路905の出力信号であるmax,
min,imx,imnをそれぞれCLK信号の1パル
ス分だけの遅延をあたえる。また、914は主走査方向
の最大値を検索する回路であり、その詳細な構成を図1
3に示す。
Referring again to FIG.
Are flip-flop circuits, and max and min, which are output signals of the maximum / minimum value search circuit 905 in the sub-scanning direction.
Each of min, imx, and imn is given a delay of one pulse of the CLK signal. Reference numeral 914 denotes a circuit for searching for the maximum value in the main scanning direction.
3 is shown.

【0046】図13において、1101は2→1セレク
タ、1102は比較器、1103はインバータである。
セレクタ1101と比較器1102には各々、2つの入
力信号端子AとBがあり、A端子にはA信号がB端子に
はB信号が入力される。ここで、もし、A(A信号の
値)>B(B信号の値)であるならば、比較器1102
の出力は“1”となり、セレクタ1101の出力端子
(Y)にはA信号が出力される。一方、もし、A≦Bで
あるならば、比較器1102の出力は“0”となり、セ
レクタ1101の出力端子(Y)にはB信号が出力され
る。その結果、セレクタ1101の出力端子(Y)に
は、max(A,B)の値が出力される。
In FIG. 13, 1101 is a 2 → 1 selector, 1102 is a comparator, and 1103 is an inverter.
The selector 1101 and the comparator 1102 each have two input signal terminals A and B, and the A terminal receives the A signal and the B terminal receives the B signal. Here, if A (the value of the A signal)> B (the value of the B signal), the comparator 1102
Is "1", and an A signal is output to the output terminal (Y) of the selector 1101. On the other hand, if A ≦ B, the output of the comparator 1102 becomes “0”, and the B signal is output to the output terminal (Y) of the selector 1101. As a result, the value of max (A, B) is output to the output terminal (Y) of the selector 1101.

【0047】またセレクタ1104において、そのセレ
クタへの2つの入力信号iAとiBに関し、もし、A
(iA信号の値)>B(iB信号の値)であるならば、
セレクタ1104の出力端子(Y)からはiA信号が出
力され、もし、A≦Bであるならば、セレクタ1104
の出力端子(Y)からはiB信号が出力される。
In the selector 1104, if two input signals iA and iB to the selector are set to A
If (value of iA signal)> B (value of iB signal), then
An iA signal is output from the output terminal (Y) of the selector 1104, and if A ≦ B, the selector 1104
Output terminal (Y) outputs an iB signal.

【0048】同様に、1105は2→1セレクタ、11
06は比較器、1107はインバータである。セレクタ
1105と比較器1106には各々、2つの入力信号端
子AとBがあり、A端子にはC信号がB端子にはD信号
が入力される。ここで、もし、C(C信号の値)>D
(D信号の値)であるならば、比較器1106の出力は
“1”となり、セレクタ1105の出力端子(Y)には
C信号が出力される。一方、もし、C≦Dであるなら
ば、比較器1106の出力は“0”となり、セレクタ1
105の出力端子(Y)にはD信号が出力される。その
結果、セレクタ1105の出力端子(Y)には、max
(C,D)の値が出力される。
Similarly, 1105 is a 2 → 1 selector, 11
06 is a comparator and 1107 is an inverter. Each of the selector 1105 and the comparator 1106 has two input signal terminals A and B. A signal is input to the A terminal, and D signal is input to the B terminal. Here, if C (value of C signal)> D
If it is (the value of the D signal), the output of the comparator 1106 becomes “1”, and the C signal is output to the output terminal (Y) of the selector 1105. On the other hand, if C ≦ D, the output of the comparator 1106 is “0” and the selector 1106
The output terminal (Y) 105 outputs a D signal. As a result, the output terminal (Y) of the selector 1105 has max
The value of (C, D) is output.

【0049】またセレクタ1108において、そのセレ
クタへの2つの入力信号iCとiDに関し、もし、A
(iC信号の値)>B(iD信号の値)であるならば、
セレクタ1108の出力端子(Y)からはiC信号が出
力され、もし、A≦Bであるならば、セレクタ1108
の出力端子(Y)からはiD信号が出力される。
In the selector 1108, if two input signals iC and iD to the selector are set to A,
If (value of iC signal)> B (value of iD signal),
An iC signal is output from the output terminal (Y) of the selector 1108, and if A ≦ B, the selector 1108
Output terminal (Y) outputs an iD signal.

【0050】さらに、1109、1111、及び、11
13は2→1セレクタ、1110は比較器、1112は
インバータである。セレクタ1109及び比較器111
0各々の2つの各入力端子A、Bへの入力信号に関し、
もし、max(A,B)>max(C,D)である場合
には、比較器1110の出力は“1”となり、セレクタ
1109の出力端子(Y)には、max(A,B)が出
力される。一方、もし、max(A,B)≦max
(C,D)である場合には、比較器1110の出力は
“0”となり、セレクタ1109の出力端子(Y)に
は、max(C,D)が出力される。その結果、セレク
タ1109の出力端子(Y)には、max(A,B,
C,D)の値が出力される。
Further, 1109, 1111 and 11
13 is a 2 → 1 selector, 1110 is a comparator, and 1112 is an inverter. Selector 1109 and comparator 111
0 With respect to the input signal to each of the two input terminals A and B,
If max (A, B)> max (C, D), the output of the comparator 1110 is “1”, and the output terminal (Y) of the selector 1109 is connected to max (A, B). Is output. On the other hand, if max (A, B) ≦ max
In the case of (C, D), the output of the comparator 1110 becomes “0”, and max (C, D) is output to the output terminal (Y) of the selector 1109. As a result, the output terminal (Y) of the selector 1109 has max (A, B,
C, D) are output.

【0051】また、入力信号A,B,C,Dの内、どの
入力が最大値をとるかで、出力信号imx(0)、im
x(1)、imx(3〜2)の値は、以下のように決定
される。即ち、 Aが最大値をとる場合、imx(3〜2)=iA、im
x(1)=0、imx(0)=0 Bが最大値をとる場合、imx(3〜2)=iB、im
x(1)=0、imx(0)=1 Cが最大値をとる場合、imx(3〜2)=iC、im
x(1)=1、imx(0)=0 Dが最大値をとる場合、imx(3〜2)=iD、im
x(1)=1、imx(0)=1となる。
The output signals imx (0) and imx are determined by which input takes the maximum value among the input signals A, B, C and D.
The values of x (1) and imx (3 to 2) are determined as follows. That is, when A takes the maximum value, imx (3 to 2) = iA, im
x (1) = 0, imx (0) = 0 When B takes the maximum value, imx (3 to 2) = iB, im
x (1) = 0, imx (0) = 1 When C takes the maximum value, imx (3-2) = iC, im
x (1) = 1, imx (0) = 0 When D takes the maximum value, imx (3-2) = id, im
x (1) = 1 and imx (0) = 1.

【0052】このようにして、imxはL* 信号が4画
素×4ラインで構成される1ブロック中で最大値をとる
位置(座標)を示す信号となる。
Thus, imx is a signal indicating the position (coordinate) where the L * signal takes the maximum value in one block composed of 4 pixels × 4 lines.

【0053】一方、図11において、915は主走査方
向の最小値を検索する回路であり、その詳細を図14に
示す。
On the other hand, in FIG. 11, reference numeral 915 denotes a circuit for searching for the minimum value in the main scanning direction, the details of which are shown in FIG.

【0054】図14において、1201は2→1セレク
タ、1202は比較器である。セレクタ1201と比較
器1202には各々、2つの入力信号端子AとBがあ
り、A端子にはA信号がB端子にはB信号が入力され
る。ここで、もし、A(A信号の値)>B(B信号の
値)であるならば、比較器1202の出力は“1”とな
り、セレクタ1201の出力端子(Y)にはB信号が出
力される。一方、もし、A≦Bであるならば、比較器1
202の出力は“0”となり、セレクタ1201のY出
力にはA信号が出力される。その結果、セレクタ120
1の出力端子(Y)には、min(A,B)の値が出力
される。
In FIG. 14, reference numeral 1201 denotes a 2 → 1 selector, and 1202 denotes a comparator. Each of the selector 1201 and the comparator 1202 has two input signal terminals A and B. The A terminal receives the A signal and the B terminal receives the B signal. Here, if A (value of the A signal)> B (value of the B signal), the output of the comparator 1202 becomes “1”, and the B signal is output to the output terminal (Y) of the selector 1201. Is done. On the other hand, if A ≦ B, the comparator 1
The output of 202 becomes “0”, and the A signal is output to the Y output of the selector 1201. As a result, the selector 120
The value of min (A, B) is output to the output terminal (Y) of No. 1.

【0055】また、セレクタ1203の2つの入力端子
A、B各々に入力される入力信号iAとiBに関して、
もし、A(iA信号の値)>B(iB信号の値)である
ならば、セレクタ1203の出力端子(Y)からはiB
信号が出力され、もし、A≦Bであるならば、その出力
端子(Y)からはiA信号が出力される。
Further, regarding input signals iA and iB input to two input terminals A and B of selector 1203,
If A (the value of the iA signal)> B (the value of the iB signal), iB is output from the output terminal (Y) of the selector 1203.
A signal is output. If A ≦ B, an iA signal is output from the output terminal (Y).

【0056】同様にして、1204は2→1セレクタ、
1205は比較器である。セレクタ1204と比較器1
205には各々、2つの入力信号端子AとBがあり、A
端子にはC信号がB端子にはD信号が入力される。ここ
で、もし、C>Dであるならば、比較器1205の出力
は、“1”となり、セレクタ1204の出力端子(Y)
にはD信号が出力される。一方、もし、C≦Dであるな
らば、比較器1205の出力は“0”となり、セレクタ
1204の出力端子(Y)にはC信号が出力される。そ
の結果、セレクタ1204の出力端子(Y)には、mi
n(C,D)の値が出力される。
Similarly, 1204 is a 2 → 1 selector,
1205 is a comparator. Selector 1204 and comparator 1
205 has two input signal terminals A and B, respectively.
The C signal is input to the terminal, and the D signal is input to the B terminal. Here, if C> D, the output of the comparator 1205 becomes “1” and the output terminal (Y) of the selector 1204
Outputs a D signal. On the other hand, if C ≦ D, the output of the comparator 1205 becomes “0”, and the C signal is output to the output terminal (Y) of the selector 1204. As a result, mi is output to the output terminal (Y) of the selector 1204.
The value of n (C, D) is output.

【0057】また、セレクタ1206の2つの入力端子
A、B各々に入力される入力信号iCとiDに関して、
もし、A(iC信号の値)>B(iD信号の値)である
ならば、セレクタ1206の出力端子(Y)からはiD
信号が出力され、もし、A≦Bであるならば、その出力
端子(Y)からはiC信号が出力される。
Further, regarding the input signals iC and iD input to the two input terminals A and B of the selector 1206,
If A (value of iC signal)> B (value of iD signal), iD is output from the output terminal (Y) of selector 1206.
A signal is output. If A ≦ B, an iC signal is output from the output terminal (Y).

【0058】さらに、1207、1209、1210は
2→1セレクタ、1208は比較器である。セレクタ1
207及び比較器1208各々の2つの各入力端子A、
Bへの入力信号に関し、もし、min(A,B)>mi
n(C,D)である場合には、比較器1208の出力は
“1”となり、セレクタ1207の出力端子(Y)には
min(C,D)が出力される。一方、もし、min
(A,B)≦min(C,D)である場合には、比較器
1208の出力は“0”となり、セレクタ1207の出
力端子(Y)にはmin(A,B)が出力される。その
結果、セレクタ1207の出力端子(Y)には、min
(A,B,C,D)の値が出力される。
Further, 1207, 1209 and 1210 are 2 → 1 selectors, and 1208 is a comparator. Selector 1
207 and two input terminals A of each of the comparators 1208,
For the input signal to B, if min (A, B)> mi
If n (C, D), the output of the comparator 1208 is “1”, and min (C, D) is output to the output terminal (Y) of the selector 1207. On the other hand, if
When (A, B) ≦ min (C, D), the output of the comparator 1208 is “0”, and min (A, B) is output to the output terminal (Y) of the selector 1207. As a result, the output terminal (Y) of the selector 1207
The value of (A, B, C, D) is output.

【0059】また、入力信号A,B,C,Dの内、どの
入力が最小値をとるかで、出力信号imn(0)、im
n(1)、imn(3〜2)の値は、以下のように決定
される。即ち、 Aが最小値をとる場合、imn(3〜2)=iA、im
n(1)=0、imn(0)=0 Bが最小値をとる場合、imn(3〜2)=iB、im
n(1)=0、imn(0)=1 Cが最小値をとる場合、imn(3〜2)=iC、im
n(1)=1、imn(0)=0 Dが最小値をとる場合、imn(3〜2)=iD、im
n(1)=1、imn(0)=1となる。
The output signals imn (0) and imn are determined based on which of the input signals A, B, C and D takes the minimum value.
The values of n (1) and imn (3 to 2) are determined as follows. That is, when A takes the minimum value, imn (3 to 2) = iA, im
n (1) = 0, imn (0) = 0 When B takes the minimum value, imn (3-2) = iB, im
When n (1) = 0 and imn (0) = 1 C takes the minimum value, imn (3 to 2) = iC, im
n (1) = 1, imn (0) = 0 When D takes the minimum value, imn (3 to 2) = iD, im
n (1) = 1 and imn (0) = 1.

【0060】このようにして、imnはL* 信号が4画
素×4ラインで構成される1ブロック中で最小値をとる
位置(座標)を示す信号となる。
As described above, imn is a signal indicating the position (coordinate) where the L * signal takes the minimum value in one block composed of 4 pixels × 4 lines.

【0061】再び図11において、916は減算器であ
り、4画素×4ラインで構成される1ブロック中のL*
信号の最大値(max)から最小値(min)を減じた
値を出力する。917〜919は2→1セレクタ、92
0〜922はフリップフロップ回路である。また、XD
1信号は図8に示すように、XPHS信号およびCLK
信号に同期して、XPHS信号の値が“1”であるとき
のみ“0”となり、それ以外では、“1”となる信号で
ある。さらに、1ブロックでL* 信号の最大値−最小値
であるLGAIN信号、L* 信号が最大値をとる場合の
1ブロック内の位置(座標)を示すLMX信号、L*
号が最小値をとる場合の1ブロック内の位置(座標)を
示すLMN信号は図8に示すタイミングで出力される。
Referring again to FIG. 11, reference numeral 916 denotes a subtractor, and L * in one block composed of 4 pixels × 4 lines .
A value obtained by subtracting the minimum value (min) from the maximum value (max) of the signal is output. 917 to 919 are 2 → 1 selectors, 92
0 to 922 are flip-flop circuits. Also, XD
One signal is an XPHS signal and a CLK signal as shown in FIG.
In synchronization with the signal, the signal is "0" only when the value of the XPHS signal is "1", and is "1" otherwise. Furthermore, the maximum value of the L * signal in one block - LGAIN signal is a minimum value, LMX signal indicating the position (coordinates) in one block in the case of L * signal takes the maximum value, L * signal takes the minimum value The LMN signal indicating the position (coordinate) in one block in the case is output at the timing shown in FIG.

【0062】図4の716は比較器であり、比較器71
6の入力端子AにはLGAIN算出器715からのLG
AIN信号が、また、その入力端子BにはCPU(不図
示)からの信号(ある定数値)が入力される。比較器7
16の入力信号に関し、A(LGAIN信号の値)>B
(CPUからの信号値)ならば、比較器716からの出
力(LFLG )は“1”となり、A<Bならば“0”とな
る。
In FIG. 4, reference numeral 716 denotes a comparator.
6 from the LGAIN calculator 715 to the input terminal A of LG.
An AIN signal and a signal (a certain constant value) from a CPU (not shown) are input to its input terminal B. Comparator 7
For 16 input signals, A (value of LGAIN signal)> B
If (signal value from CPU), the output (L FLG ) from the comparator 716 will be “1”, and if A <B, it will be “0”.

【0063】このLFLG 信号は、後述する色度情報符号
化器114の内部の量子化回路の判定信号として入力さ
れる。
This L FLG signal is input as a determination signal of a quantization circuit inside a chromaticity information encoder 114 described later.

【0064】[色度成分符号化器114(図15〜図1
9)]図15は色度情報の色度成分符号化器114の構
成を示すブロック図である。そして、図16は色度成分
符号化器114の動作タイミングを示すタイムチャート
である。
[Chromaticity component encoder 114 (FIGS. 15 to 1)
9)] FIG. 15 is a block diagram showing the structure of the chromaticity component encoder 114 for chromaticity information. FIG. 16 is a time chart showing the operation timing of the chromaticity component encoder 114.

【0065】図15において、7201〜7203は1
ラインの遅延を与えるラインメモリであり、色度情報の
内、a* 信号を4画素×4ラインで構成されるブロック
の単位で処理するためのものである。7204は、a*
信号の量子化回路である。また、7205〜7207は
1ラインの遅延を与えるラインメモリであり色度情報の
内、b* 信号をブロック単位で処理するためのものであ
る。7208は7204と同様のb* 信号の量子化回路
である。
In FIG. 15, 7201 to 7203 are 1
This is a line memory that gives a line delay, and is for processing the a * signal in the chromaticity information in units of blocks composed of 4 pixels × 4 lines. 7204 is a *
This is a signal quantization circuit. Reference numerals 7205 to 7207 denote line memories that provide a one-line delay, and process b * signals in chromaticity information in block units. Reference numeral 7208 denotes a b * signal quantization circuit similar to 7204.

【0066】図17〜図19はa* 信号量子化回路72
04及びb* 信号量子化回路7208の詳細な構成を示
すブロック図である。
FIGS. 17 to 19 show the a * signal quantization circuit 72.
FIG. 41 is a block diagram showing a detailed configuration of a 04 and b * signal quantization circuit 7208.

【0067】図17〜図18において、1501〜15
24はフリップフロップ回路であり、それぞれCLK信
号の立ち上がりに同期した遅延を与え、明度情報符号化
器113との同期合わせを行う部分である。1525〜
1526は4→1セレクタであり、s入力端子からの2
ビット入力信号が“0”の場合に出力端子(Y)から入
力端子(A)に入力された値を出力し、その2ビット入
力信号が“1”の場合に出力端子(Y)から入力端子
(B)に入力された値を出力し、その2ビット入力信号
が“2”の場合に出力端子(Y)から入力端子(C)に
入力された値を出力し、そして、その2ビット入力信号
が“3”の場合に出力端子(Y)から入力端子(D)に
入力された値を出力する。セレクタ1525のs入力端
子から入力される2ビット入力信号にはLMX信号の上
位2ビットが、セレクタ1526のs入力端子にはLM
N信号の上位2ビットが入力される。
In FIGS. 17 and 18, 1501 through 15
Numeral 24 denotes a flip-flop circuit which gives a delay synchronized with the rise of the CLK signal and synchronizes with the brightness information encoder 113. 1525-
Reference numeral 1526 denotes a 4 → 1 selector, which receives 2 from the s input terminal.
When the bit input signal is “0”, the value input from the output terminal (Y) to the input terminal (A) is output. When the 2-bit input signal is “1”, the value input from the output terminal (Y) to the input terminal. (B) outputs the value input thereto, outputs the value input from the output terminal (Y) to the input terminal (C) when the 2-bit input signal is "2", and outputs the 2-bit input signal. When the signal is "3", a value input from the output terminal (Y) to the input terminal (D) is output. The upper 2 bits of the LMX signal are input to the 2-bit input signal input from the s input terminal of the selector 1525, and LM is input to the s input terminal of the selector 1526.
The upper two bits of the N signal are input.

【0068】一方、1531〜1542はフリップフロ
ップ回路であり、それぞれCLK信号の立ち上がりに同
期した遅延を与える。1543〜1544は、1525
〜1526と同様の4→1セレクタであり、セレクタ1
543のs入力端子には同期のとられたLMX信号の下
位2ビットが入力され、同様にセレクタ1544のs入
力端子には同期のとられたLMN信号の下位2ビットが
入力される。このようにして、1ブロック内でL* 信号
が最大値をとる位置(座標)でのa* 信号(a * 信号量
子化回路7204から)或はb* 信号(b* 信号量子化
回路7208から)の値がMXとして出力され、1ブロ
ック内でL* 信号が最小値をとる位置(座標)でのa*
信号或はb* 信号の値がMNとして出力される。
On the other hand, 1531 to 1542 are flip-flops.
Circuit, each of which is the same as the rising edge of the CLK signal.
Give the expected delay. 1543 to 1544 is 1525
4 → 1 selector similar to 151526, and selector 1
The s input terminal of 543 is below the synchronized LMX signal.
2 bits are input, and the s input of the selector 1544 is similarly input.
The lower two bits of the synchronized LMN signal are
Is entered. Thus, L within one block* signal
At the position (coordinates) where* Signal (a * Signal volume
From the child circuit 7204) or b* Signal (b* Signal quantization
Circuit 7208) is output as MX and
L in the bag* A at the position (coordinate) where the signal takes the minimum value* 
Signal or b* The value of the signal is output as MN.

【0069】一方、1551は、平均値算出器であり、
入力端子A、B、C、Dから入力される入力信号の平均
値を出力する。1552〜1555はフリップフロップ
回路であり、それぞれCLK信号の立ち上がりに同期し
た遅延を与える。1556は、1551と同様な平均値
算出器であり、その入力端子A、B、C、Dから入力さ
れる入力信号の平均値を出力する。その結果、1ブロッ
ク内でのa* 信号(a * 信号量子化回路7204から)
或はb* 信号(b* 信号量子化回路7208から)の平
均値がMEとして出力される。
On the other hand, reference numeral 1551 denotes an average calculator.
Average of input signals input from input terminals A, B, C, D
Output the value. 1552 to 1555 are flip-flops
Circuits, each of which is synchronized with the rising edge of the CLK signal.
Give a delay. 1556 is the same average value as 1551
It is a calculator, input from its input terminals A, B, C, D.
And output the average value of the input signals. As a result, one block
A in the field* Signal (a * (From signal quantization circuit 7204)
Or b* Signal (b* (From the signal quantization circuit 7208)
The average value is output as ME.

【0070】さらに、1557〜1560はフリップフ
ロップ回路であり、それぞれCLK信号の立ち上がりに
同期した遅延を与え、LGAIN信号を、MX,MN,
MEの各信号と同期をとり、LG信号として出力され
る。
Further, reference numerals 1557 to 1560 denote flip-flop circuits, each of which gives a delay in synchronization with the rise of the CLK signal and converts the LGAIN signal to MX, MN, MXN.
The signal is synchronized with each signal of the ME and output as an LG signal.

【0071】図19において、MX,MN,ME,LG
の各信号は、フリップフロップ1601〜1604でC
LK信号の立ち上がりで同期がとられる。1605は減
算器であり、MXの値からMNの値を減ずることで、1
ブロック内で、L* 信号が最大値をとる位置とL* 信号
が最小値をとる位置でのa* 信号(a* 信号量子化回路
7204から)或はb* 信号(b* 信号量子化回路72
08から)の差分値を算出する。
In FIG. 19, MX, MN, ME, LG
Are input to the flip-flops 1601 to 1604 at C
Synchronization is achieved at the rise of the LK signal. A subtractor 1605 subtracts the value of MN from the value of MX to obtain 1
Within a block, L * signal (from a * signal quantization circuit 7204) a * signal at the position where the position and L * signal which takes the maximum value takes a minimum value or b * signal (b * signal quantization circuit 72
08) is calculated.

【0072】更に、1606、1610〜1611はフ
リップフロップであり、減算器1605で算出された差
分値は、フリップフロップ1606を経てLUT用RO
M1607のアドレス(A15〜A8 )に入力される。一
方、LG信号は、フリップフロップ1604、1611
をへて、LUT用ROM1607のアドレス(A7 〜A
0 )に入力され、LUT用ROM1607のアドレス
(A16)には、LFLG 信号が入力される。LUT用RO
M1607には、1ブロック内でのa* 信号(a * 信号
量子化回路7204から)或はb* 信号(b* 信号量子
化回路7208から)の交流成分の振幅の、L* 信号の
交流成分の振幅に対する比(MX−MN)/LGの値
を、LFLG 信号が“1”のときには4ビットに量子化し
たもの、また“0”のときには2ビットに量子化したも
のが予め書き込まれており、データとして出力される。
Further, 1606, 1610 to 1611 are
This is the lip flop and the difference calculated by the subtractor 1605
The minute value is passed through the flip-flop 1606 to the RO for the LUT.
M1607 address (AFifteen~ A8 ). one
On the other hand, the LG signal is supplied to flip-flops 1604 and 1611.
To the address of the LUT ROM 1607 (A7 ~ A
0 ) And the address of the LUT ROM 1607
(A16) Contains LFLG A signal is input. RO for LUT
M1607 contains a within one block.* Signal (a * signal
From the quantization circuit 7204) or b* Signal (b* Signal quantum
L) of the amplitude of the AC component of* Signal
Value of ratio (MX-MN) / LG to amplitude of AC component
And LFLG When the signal is "1", it is quantized to 4 bits
If it is "0", it is quantized to 2 bits
Are written in advance and output as data.

【0073】同様に、LUT用ROM1618には、1
ブロック内のa* 信号(a* 信号量子化回路7204か
ら)或はb* 信号(b* 信号量子化回路7208から)
の平均値MEの値を、LFLG 信号が“1”のときには6
ビットに量子化したもの、また“0”のときには8ビッ
トのままのものが予め書き込まれており、データとして
出力される。LUT用ROM1607、1618のデー
タは、経験的に得られた画像データの頻度分布に従う。
FLG 信号が“1”の時のLUT用ROM1618から
の出力データは、画像データのハイライト部分の再現性
が良くなるように、a* ,b* 信号の値が小さい方に数
多くのコードを割り当てるように、非線形に量子化して
いる。
Similarly, the LUT ROM 1618 stores 1
A * signal (from a * signal quantization circuit 7204) or b * signal (from b * signal quantization circuit 7208) in the block
The value of the average value ME is 6 when the L FLG signal is “1”.
The data quantized into bits, and when it is "0", the data which is still 8 bits is written in advance and output as data. The data in the LUT ROMs 1607 and 1618 follows the frequency distribution of empirically obtained image data.
The output data from the LUT ROM 1618 when the L FLG signal is "1" is composed of a large number of codes in a smaller value of the a * and b * signals so that the reproducibility of the highlight portion of the image data is improved. It is non-linearly quantized to allocate.

【0074】1608、1612は2→1セレクタ、1
609、1613〜1617はフリップフロップ回路で
あり、図16に示したようなタイミングでgain信号
およびmean信号が出力される。
1608 and 1612 are 2 → 1 selectors, 1
Reference numerals 609 and 1613 to 1617 denote flip-flop circuits, which output the gain signal and the mean signal at the timing shown in FIG.

【0075】[装置の動作タイミング(図20)]図2
0は本実施例の画像処理装置の動作タイミングを示すタ
イムチャートである。図20において、START信号
は本実施例の画像処理装置の原稿読み取り動作開始を示
す信号、WPE信号はイメージスキャナが原稿を読み取
って符号化処理及びメモリ書き込みを行う時間を表す信
号である。また、ITOP信号はプリント動作の開始を
示す信号であり、MPE信号は図1に示したマゼンタ半
導体レーザ216を駆動する区間信号であり、CPE信
号は図1に示したシアン半導体レーザ215を駆動する
区間信号であり、YPE信号は図1に示したイエロ半導
体レーザ214を駆動する区間信号であり、BPE信号
は図1に示したブラック半導体レーザ213を駆動する
区間信号である。
[Operation Timing of Apparatus (FIG. 20)] FIG.
0 is a time chart showing the operation timing of the image processing apparatus of the present embodiment. In FIG. 20, a START signal is a signal indicating the start of a document reading operation of the image processing apparatus according to the present embodiment, and a WPE signal is a signal indicating a time during which the image scanner reads a document to perform encoding processing and memory writing. The ITOP signal is a signal indicating the start of a printing operation, the MPE signal is a section signal for driving the magenta semiconductor laser 216 shown in FIG. 1, and the CPE signal is for driving the cyan semiconductor laser 215 shown in FIG. The YPE signal is an interval signal for driving the yellow semiconductor laser 214 shown in FIG. 1, and the BPE signal is an interval signal for driving the black semiconductor laser 213 shown in FIG.

【0076】図20に示すように、CPE信号、YPE
信号、BPE信号はそれぞれMPE信号に対して、時間
間隔t1,2,3 だけ遅延されている。これらの値は各
々、図1に示した感光ドラム228と227との間隔
(d1 )、感光ドラム228と226との間隔(d
2 )、感光ドラム228と225との間隔(d3 )に対
し、t1 =d1 /v、t2 =d2 /v、t3 =d3 /v
(vは用紙の送り速度)という関係を持つように制御さ
れる。
As shown in FIG. 20, the CPE signal, the YPE
Signal for each BPE signal MPE signals are delayed by a time interval t 1, t 2, t 3 . These values are respectively the distance (d 1 ) between the photosensitive drums 228 and 227 and the distance (d 1 ) between the photosensitive drums 228 and 226 shown in FIG.
2 ), with respect to the distance (d 3 ) between the photosensitive drums 228 and 225, t 1 = d 1 / v, t 2 = d 2 / v, and t 3 = d 3 / v.
(V is the paper feed speed).

【0077】HSYNC信号は主走査同期信号、CLK
信号は画素同期信号である。YPHS信号は2ビットの
副走査カウンタのカウント値であり、XPHS信号は2
ビットの主走査カウンタのカウント値である。これらの
信号は、START信号をHYSNC信号を入力とし
て、図21に示すように、インバータ1801と2ビッ
トカウンタ1802、1803によって、発生される。
BLK信号は1ブロック単位の周期信号であり、BDA
TAで示されるタイミングで1ブロック単位に処理がな
される。
The HSYNC signal is a main scanning synchronization signal, CLK
The signal is a pixel synchronization signal. The YPHS signal is a count value of the 2-bit sub-scanning counter, and the XPHS signal is 2 bits.
This is the count value of the main scanning counter in bits. These signals are generated by an inverter 1801 and 2-bit counters 1802 and 1803 as shown in FIG. 21 with a START signal as an input of a HYSNC signal.
The BLK signal is a periodic signal in units of one block,
Processing is performed in units of one block at the timing indicated by TA.

【0078】[エリア処理(図22〜図23)]図22
はブロック単位にエリア処理を実行するエリア処理回路
115bの構成を示すブロック図である。図22におい
て、CLKは画素同期信号、HSYNCは主走査同期信
号である。1901〜1903は1ライン遅延を与える
ラインメモリであり、各ラインメモリからの出力信号X
1,X2,X3 は、入力信号Xに対してそれぞれ副走査方向
に1ライン、2ライン、3ライン分だけ遅延している。
1904は加算器であり、2値信号(X)の副走査方向
4画素に対応するX0,1,2,3 の中でその値が
“1”であるものの数をカウントする。
[Area Processing (FIGS. 22 to 23)] FIG.
FIG. 4 is a block diagram illustrating a configuration of an area processing circuit 115b that performs an area process on a block basis. In FIG. 22, CLK is a pixel synchronization signal, and HSYNC is a main scanning synchronization signal. Reference numerals 1901-1903 denote line memories for giving one-line delay, and output signals X from the respective line memories
1 , X 2 and X 3 are delayed by one line, two lines and three lines, respectively, in the sub-scanning direction with respect to the input signal X.
Reference numeral 1904 denotes an adder, which counts the number of X 0, X 1, X 2, and X 3 corresponding to four pixels in the sub-scanning direction of the binary signal (X) whose value is “1”.

【0079】1910は2→1セレクタ、1911はN
ORゲート、1912はフリップフロップである。XP
HS(0)とXPHS(1)によりNORゲート191
1で生成されたBLK信号に同期して、ブロック単位で
カウントされた2値信号(X)の値が“1”である画素
数C1 が算出され、その値C1 がレジスタ1913に予
めセットされている比較値C2 と比較器1914におい
て比較される。ここで、C1 >C2 の場合には、比較器
1914の出力(Y)は“1”となり、C1 ≦C2 の場
合には、その出力(Y)は“0”となり、図20に示し
たBDATA信号に従うタイミングで出力される。
1910 is a 2 → 1 selector, and 1911 is N
An OR gate 1912 is a flip-flop. XP
NOR gate 191 by HS (0) and XPHS (1)
In synchronization with the BLK signal generated in step 1, the number of pixels C 1 in which the value of the binary signal (X) counted in the block is “1” is calculated, and the value C 1 is set in the register 1913 in advance. The comparison value C 2 is compared in the comparator 1914. Here, when C 1 > C 2 , the output (Y) of the comparator 1914 is “1”, and when C 1 ≦ C 2 , the output (Y) is “0”, and FIG. Are output at the timing according to the BDATA signal shown in FIG.

【0080】ここで特徴的なことは、符号化によって得
られた画像符号(L-code信号及びab-code 信号)と、特
徴抽出回路115によって抽出された特徴信号(K1,K
2 )が図7に示す4画素×4ラインで構成されるブロッ
ク単位で1対1に対応していることである。
Here, the characteristic features are that the image code (L-code signal and ab-code signal) obtained by the encoding and the characteristic signal (K 1 , K
2 ) is a one-to-one correspondence in blocks of 4 pixels × 4 lines shown in FIG.

【0081】これによって、各ブロック単位に画像符号
と特徴信号を抽出してメモリの同一アドレス、或は、同
一アドレスより算出されるアドレスに格納することや、
読み出す場合においてもそれぞれ対応して読み出すこと
が可能になる。
As a result, the image code and the characteristic signal are extracted for each block unit and stored at the same address in the memory or at an address calculated from the same address.
Also in the case of reading, it becomes possible to read correspondingly.

【0082】従って、画像情報と特徴(属性)情報とを
対応させてメモリの同一アドレス、或は、同一アドレス
より算出されるアドレスに格納することで、例えば、メ
モリの書き込み及び読み出し制御回路の共通化・簡略化
が可能となり、また、メモリ上で変倍/回転等の編集処
理を行う場合にも簡単な処理でこれを実行することが可
能になるので、システムの最適化をおこなうことができ
る。
Accordingly, by storing the image information and the characteristic (attribute) information in the same address in the memory or at the address calculated from the same address, for example, a common write and read control circuit for the memory can be used. It is possible to simplify and simplify the editing process such as scaling / rotation on the memory, so that the system can be optimized. .

【0083】図23は文字画素検出に関して、具体的な
エリア処理の例を示す図である。例えば、原稿2001
に描かれた文字の一部2002について、各画素につい
て文字画素か否かの判定結果が2003に示すように、
文字の一部2002の各画素に関して、“○”で示され
る画素でK1'=1、それ以外の画素でK1'=0と判定さ
れたとする。この場合、エリア処理回路115bでは、
例えば、C2 =4をセットすることで、1ブロックに対
し、2004に示すようなノイズ(雑音)の軽減された
信号K1 を得ることができる。
FIG. 23 is a diagram showing an example of a specific area process for character pixel detection. For example, manuscript 2001
As shown in 2003, the determination result of each pixel as to whether or not it is a character pixel is shown for a part 2002 of the character
For each pixel in the portion of text 2002, "○" K 1 ' = 1, K 1 in the other pixels' pixel represented by a is determined to = 0. In this case, in the area processing circuit 115b,
For example, by setting C 2 = 4, a signal K 1 with reduced noise (noise) as shown in 2004 can be obtained for one block.

【0084】また、黒画素検出回路の判定結果K2'につ
いても、同様の構成のエリア処理回路115d)で処理
することにより、各ブロックに対応した信号K2 を得る
ことができる。
Also, the determination result K 2 ′ of the black pixel detection circuit is processed by the area processing circuit 115d) having the same configuration, whereby a signal K 2 corresponding to each block can be obtained.

【0085】[明度成分復号化器117a〜117d
(図24)]図24は、明度成分復号化器117a〜1
17dの構成を示すブロック図である。明度情報の復号
化は画像メモリ116より読み出されたL-code信号によ
り、復号化したデータを逆アダマール変換することによ
ってL* 信号を復号化する。逆アダマール変換は(3)
式で示したアダマール変換の逆変換であり、(4)式で
定義される。
[Lightness Component Decoders 117a to 117d]
(FIG. 24)] FIG. 24 shows a brightness component decoder 117a-1.
It is a block diagram which shows the structure of 17d. The brightness information is decoded by subjecting the decoded data to inverse Hadamard transform using the L-code signal read from the image memory 116 to decode the L * signal. The inverse Hadamard transform is (3)
This is the inverse of the Hadamard transform shown in the equation, and is defined by equation (4).

【0086】 ただし、Hは4×4のアダマール行列であり、HT はH
の転置行列である。
[0086] Here, H is a 4 × 4 Hadamard matrix, and H T is H
Is a transposed matrix.

【0087】一方、アダマール変換および逆アダマール
変換は線形演算であり、行列Xのアダマール変換または
逆アダマール変換をH(X)と表現する場合、一般に
(5)式が成り立つ。
On the other hand, the Hadamard transform and the inverse Hadamard transform are linear operations, and when the Hadamard transform or the inverse Hadamard transform of the matrix X is expressed as H (X), the equation (5) generally holds.

【0088】H(X1+X2+…+X3) = H (X1)+H
(X2)+…+H (Xn)………(5) この性質を利用して、逆アダマール変換は明度情報符号
化器で定義した各周波数帯域に分解して、それぞれ並列
的に行う。
H (X 1 + X 2 +... + X 3 ) = H (X 1 ) + H
(X 2 ) +... + H (X n )... (5) By utilizing this property, the inverse Hadamard transform is decomposed into each frequency band defined by the brightness information encoder and is performed in parallel.

【0089】ここで、L1の符号によって復号化された
データマトリクスをYL1、L2の符号によって復号化さ
れたデータマトリクスをYL2、Mの符号によって復号化
されたデータマトリクスをYM 、Hの符号によって復号
化されたデータマトリクスをYH とするとき、(6)式
が成立する。
Here, the data matrix decoded by the L1 code is Y L1 , the data matrix decoded by the L2 code is Y L2 , the data matrix decoded by the M code is Y M , H When the data matrix decoded by the code is Y H , the expression (6) is satisfied.

【0090】 H(YL1+YL2+YM +YH ) =H(YL1)+H(YL2)+H(YM )+H(YH )………(6) 2101〜2104はLUT用ROMであり、符号化の
処理と逆アダマール変換の処理を予め算出した値が保持
されている。LUT用ROM2101〜2104のアド
レスの下位ビットには各々、L1の符号(9ビット)、
L2の符号(9ビット)、Mの符号(8ビット)、Hの
符号(8ビット)が入力され、LUT用ROM2101
〜2104のアドレスの上位ビット(4ビット)には各
々、XPHS(2ビット)及びYPHS(2ビット)が
入力される。以上のアドレスが入力されると、各ブロッ
クでの位置(座標)での逆アダマール変換の値が出力さ
れる。2105は加算器であり、(6)式に相当する加
算を行う部分であり、各周波数成分(L1,L2,M,
H)での逆アダマール変換の結果を加算する部分であ
る。その加算結果(L* 信号の1ブロック内での交流成
分)が得られると、フリップフロップ2106を経てL
* の交流成分LACとして出力する。
H (Y L1 + Y L2 + Y M + Y H ) = H (Y L1 ) + H (Y L2 ) + H (Y M ) + H (Y H ) (6) Reference numerals 2101 to 2104 denote ROMs for the LUT. , The values of the encoding processing and the inverse Hadamard transform processing are calculated in advance. The lower bits of the addresses of the LUT ROMs 2101 to 2104 are L1 code (9 bits), respectively.
The L2 code (9 bits), the M code (8 bits), and the H code (8 bits) are input, and the LUT ROM 2101 is input.
XPS (2 bits) and YPHS (2 bits) are input to the upper bits (4 bits) of the addresses of .about.2104, respectively. When the above address is input, the value of the inverse Hadamard transform at the position (coordinate) in each block is output. Reference numeral 2105 denotes an adder, which performs addition corresponding to the equation (6), and includes each frequency component (L1, L2, M,
This is a part for adding the result of the inverse Hadamard transform in H). When the result of the addition (the AC component in one block of the L * signal) is obtained, the L
Output as the AC component LAC of * .

【0091】もし、この方式を用いずに一括して復号化
する場合には、合計34ビットの符号と4ビットの座標
位置(XPHS,YPHS)の合計36ビットのアドレ
ス空間(64ギガバイト)のLUTが必要になり、これ
を技術的に実現しようとしても現実的ではない。しかし
ながら、以上説明した方式を用いることにより、最大1
3ビットのアドレス空間(8キロバイト)のROMを数
個用意すればよく、構成が簡単になる。また、符号長を
変更する場合にも対応が容易である。
If decoding is performed collectively without using this method, the LUT of the address space (64 gigabytes) of a total of 36 bits including a code of 34 bits and a coordinate position of 4 bits (XPHS, YPHS) is used. It is not realistic to try to achieve this technically. However, by using the method described above, a maximum of 1
It is only necessary to prepare several ROMs having a 3-bit address space (8 kilobytes), which simplifies the configuration. Further, it is easy to cope with a case where the code length is changed.

【0092】2107は加算器であり、L* の交流成分
LACとL* 信号の1ブロック内平均値AVEとを加算
して復号化後のL* 信号を得る。この信号はフリップフ
ロップ2108でCLK信号の立ち上がりに同期されて
出力される。
[0092] 2107 is an adder, by adding the 1-block average value AVE of L * AC component LAC and L * signal obtaining L * signal after decoding. This signal is output by the flip-flop 2108 in synchronization with the rise of the CLK signal.

【0093】[色度成分復号化器118a〜118d
(図25)]図25は、明度成分復号化器118a〜1
18dの構成を示すブロック図である。画像メモリ11
6より読み出されたab-code 信号は、フリップフロップ
2201でCLK信号の立ち上がりで同期がとられ、図
15に示されている様に、a-code信号とb-code信号に分
解され、それぞれが更に、again信号とamean信号、及
び、bgain信号とbmean信号に分解される。その後、乗
算器2202で1ブロック内でのa* 信号の振幅に対す
るL* 信号の振幅の比であるagain信号に明度情報L*
の交流成分(LAC)を乗算し、加算器2204でその
値にa* 信号の直流成分であるamean信号を加算してa
* 信号を復号化する。復号化されたa*信号は、フリッ
プフロップ2206でCLK信号の立ち上がりで同期を
とられて出力される。
[Chromaticity component decoders 118a to 118d]
(FIG. 25)] FIG. 25 shows the brightness component decoders 118a-1
It is a block diagram which shows the structure of 18d. Image memory 11
The ab-code signal read from 6 is synchronized at the rising edge of the CLK signal in the flip-flop 2201, and is decomposed into an a-code signal and a b-code signal as shown in FIG. Is further decomposed into an a gain signal and an a mean signal, and a b gain signal and a b mean signal. Then, the brightness information L * is added to the a gain signal which is the ratio of the amplitude of the L * signal to the amplitude of the a * signal in one block by the multiplier 2202 .
Is multiplied by the AC component (LAC) of the a * signal, and an adder 2204 adds the a mean signal, which is the DC component of the a * signal, to the value.
* Decode the signal. The decoded a * signal is output by the flip-flop 2206 in synchronization with the rising edge of the CLK signal.

【0094】同様に、乗算器2203で、1ブロック内
でのb* 信号の振幅に対するL* 信号の振幅の比である
gain信号に明度情報L* の交流成分(LAC)を乗
じ、加算器2205でb* 信号の直流成分であるbmean
信号を加算してb* 信号を復号化する。復号化されたb
* 信号は、フリップフロップ2207でCLK信号の立
ち上がりで同期をとられて出力される。
Similarly, the multiplier 2203 multiplies the b gain signal, which is the ratio of the amplitude of the L * signal to the amplitude of the b * signal in one block, by the AC component (LAC) of the brightness information L * , and In 2205, b mean which is a DC component of the b * signal
Add the signals and decode the b * signal. Decrypted b
The * signal is output by the flip-flop 2207 in synchronization with the rising edge of the CLK signal.

【0095】[色空間変換器119a〜119d(図2
6)]図26は色空間変換器119a〜119dの構成
を示すブロック図である。図26において、2301は
*,a*,b* 信号をRGB信号に変換する変換回路であ
り、式(7)により変換が行われる。
[Color space converters 119a to 119d (FIG. 2)
6)] FIG. 26 is a block diagram showing a configuration of the color space converters 119a to 119d. In FIG. 26, reference numeral 2301 denotes a conversion circuit for converting the L * , a * , and b * signals into RGB signals, and the conversion is performed by Expression (7).

【0096】 ただし、 また、[αij’]i,j=1,2,3 は、式(1)の[αij
i,j=1,2,3 の逆行列で、[βij’]i,j=1,2,3 は、式
(2)の[βiji,j=1,2,3 の逆行列である。
[0096] However, Also, [α ij '] i, j = 1,2,3 is [α ij ] in equation (1).
i, the inverse matrix of j = 1,2,3, [β ij ' ] i, j = 1,2,3 is, [beta ij] i, the inverse of j = 1, 2, 3 of the formula (2) It is a matrix.

【0097】輝度/濃度変換器2302〜2304では
各々、式(10)に従う変換が行われる。
Each of the luminance / density converters 2302 to 2304 performs a conversion according to equation (10).

【0098】 黒抽出回路2305では式(11)に従う変換を行い、
黒信号(Bk1 )を生成する。
[0098] The black extraction circuit 2305 performs conversion according to the equation (11),
Generate a black signal (Bk 1 ).

【0099】 Bk1 =min(M1,1,1 ) ………(11) 乗算器2306〜2309では各々、C1,M1,Y1,Bk
1 の各信号に所定の係数a1,a2,a3,a4 を乗じ、加算
器2310において加算演算を実行する。このようにし
て、式(12)に示す和積演算が行われる。
Bk 1 = min (M 1, C 1, Y 1 ) (11) In multipliers 2306 to 2309, C 1 , M 1 , Y 1 , Bk
Predetermined coefficients a 1 to each signal of 1, a 2, a 3, multiplied by a 4, executes adding operation in the adder 2310. In this way, the sum-product operation shown in Expression (12) is performed.

【0100】(出力C,M,YorBk)=a11+a2
1+a31+a4 Bk1………(12) レジスタ2311〜2315には各々、色空間変換器1
19aの場合には、a 11,a12,a31,a41,0が、色
空間変換器119bの場合には、a12,a22,a32,a
42,0が、色空間変換器119cの場合には、a13,a
23,a33,a43,0が、色空間変換器119dの場合に
は、a14,a24,a34,a44,a'14 がセットされてい
る。
(Output C, M, YorBk) = a1 M1+ aTwo 
C1+ aThree Y1+ aFour Bk1(12) Each of the registers 2311 to 2315 has a color space converter 1
In the case of 19a, a 11, A12, A31, A41, 0 is the color
In the case of the space transformer 119b, a12, Atwenty two, A32, A
42, 0 is the color space converter 119c, a13, A
twenty three, A33, A43, 0 is the color space converter 119d.
Is a14, Atwenty four, A34, A44, A '14 Is set
You.

【0101】2331〜2333はゲート回路、233
0は2→1セレクタ回路、2320はNANDゲート回
路であり、結果的に、黒画素判定信号(K1 )と文字領
域判定信号(K2 )の論理積により、当該画素が黒文字
領域であるか否かの判定により、図27に示すようにa
1,a2,a3,a4 の値が選ばれ、黒文字領域でない場合は
式(13)に従う処理が行われ、黒文字領域である場合
には式(14)に従う処理が行われる。
Reference numerals 2331 to 2333 denote gate circuits, 233
0 is a 2 → 1 selector circuit, and 2320 is a NAND gate circuit. As a result, the logical product of the black pixel determination signal (K 1 ) and the character area determination signal (K 2 ) determines whether the pixel is a black character area. As shown in FIG. 27,
The values of 1 , a 2 , a 3 , and a 4 are selected. If the area is not a black character area, processing according to equation (13) is performed. If the area is a black character area, processing according to equation (14) is performed.

【0102】 即ち、黒文字領域では、式(14)に示すように黒(B
k)単色で出力することで色ずれのない出力を得ること
ができる。一方、黒文字領域以外では、式(13)に示
すように、M,C,Y,Bkの4色で出力することにな
るが、式(13)の演算によってCCDセンサから読み
込まれたRGB信号に基づいてM1,C1,Y1,Bk1 信号
をトナーの分光分布特性に基づいたM,C,Y,Bk信
号に補正して出力する。
[0102] That is, in the black character area, as shown in Expression (14), black (B
k) By outputting in a single color, an output without color shift can be obtained. On the other hand, in the region other than the black character area, as shown in Expression (13), output is performed in four colors of M, C, Y, and Bk. based M 1, C 1, Y 1 , M based an Bk 1 signal to the spectral distribution characteristic of the toner, C, Y, and outputs the corrected Bk signal.

【0103】従って本実施例に従えば、入力したフルカ
ラー画像信号を4画素×4ラインで構成されるブロック
単位に分割して、そのブロック化された画像信号単位に
明度情報と色度情報とに分離して符号化する。特に、色
度情報の符号化は明度情報の交流成分の振幅値に従っ
て、その符号化長を変化させて符号化を実行することが
できる。
Therefore, according to this embodiment, the input full-color image signal is divided into block units each composed of 4 pixels × 4 lines, and the brightness information and the chromaticity information are divided into the block image signal units. Separately encode. In particular, chromaticity information can be encoded by changing its encoding length in accordance with the amplitude value of the AC component of the brightness information.

【0104】なお本実施例では画像領域を分離するため
の判定信号として4画素×4ラインで構成される1ブロ
ックのL* の最大値と最小値の差を用いたが、本発明は
これに限定されるものではない。例えば、図28に示す
ように、色度情報の最大値と最小値の色空間上での距離
を用いることもできる。
In this embodiment, the difference between the maximum value and the minimum value of L * of one block composed of 4 pixels × 4 lines is used as a determination signal for separating an image area. It is not limited. For example, as shown in FIG. 28, the distance in the color space between the maximum value and the minimum value of the chromaticity information can be used.

【0105】即ち、入力されたa* 信号はラインメモリ
2501〜2503(b* 信号はラインメモリ2508
〜2510)で1ライン分ずつ遅延させ、aGAIN算
出器2504、bGAIN算出器2511各々の入力端
子A〜Dに入力する。得られたaGAIN信号及びbG
AIN信号は各々、乗算器2505、2512により2
乗され、さらに加算器2506によって加算され、rG
AIN信号として出力される。そのrGAIN信号は比
較器2507の入力端子(B)に、もう1つの入力端子
(A)にはCPU(不図示)より送られてくる閾値が入
力される。ここで、A(CPUからの閾値)<B(rG
AIN信号の値)であれば、比較器2507の出力(L
FLG )は“1”となり、A≧Bの場合は“0”が出力さ
れる。
That is, the inputted a * signal is stored in the line memories 2501 to 2503 (the b * signal is stored in the line memory 2508).
252510), and input to the input terminals A to D of the aGAIN calculator 2504 and the bGAIN calculator 2511, respectively. The obtained aGAIN signal and bG
The AIN signal is divided by multipliers 2505 and 2512 to 2
, And further added by an adder 2506 to obtain rG
It is output as an AIN signal. The threshold value sent from the CPU (not shown) is input to the input terminal (B) of the comparator 2507 and the other input terminal (A) of the rGAIN signal. Here, A (threshold from CPU) <B (rG
AIN signal value), the output of comparator 2507 (L
FLG ) becomes "1", and when A≥B, "0" is output.

【0106】また本実施例では入力されたRGB信号を
YMCBk信号に変換する場合について説明したが、本
発明はこれに限定されるものではない。例えば、図29
に示すフルカラー画像の符号化器のように、レッド
(R)、グリーン(G)、ブルー(B)に色分解された
フルカラー画像信号を変換回路2601において、式
(15)に従って、YUV信号に変換することもでき
る。
Further, in the present embodiment, the case where the input RGB signal is converted into the YMCBk signal has been described, but the present invention is not limited to this. For example, FIG.
The full-color image signal separated into red (R), green (G), and blue (B) is converted into a YUV signal by the conversion circuit 2601 according to the equation (15) as in the full-color image encoder shown in FIG. You can also.

【0107】 ただし、c1 ,c2 ,c3 ,c4 ,c5 は定数である。[0107] Here, c 1 , c 2 , c 3 , c 4 , and c 5 are constants.

【0108】ここで、YはL* と同様に明度情報を表す
信号であり、UおよびVは、a* およびb* と同様に色
度を表す信号である。2602は離散的コサイン変換を
行うDCT回路であり、n×n(nは2の累乗;n=
4,8,16,32…)画素の離散的コサイン変換(D
CT)を実行する。そのDCT変換によって、Y信号は
各空間周波数成分に展開され、符号化器2606によっ
て、例えばハフマンコードによって符号化される。更
に、715と同様な構成を有するYの振幅検出器260
3によって、n×n画素中のY信号の振幅(Y−GAI
N)が算出される。一方、2604は7204と同様の
構成を有する回路であり、Y信号の振幅に対するU信号
の振幅比(Ugain)及びU信号の直流成分(Umean)を
出力し、あわせてU-codeとする。同様に、2605も7
204と同様の構成を有する回路であり、Y信号の振幅
に対するV信号の振幅比(Vgain)及びV信号の直流成
分(V mean)を出力し、合わせてV-codeとする。さら
に、Y-code, U-code, V-codeが合わさり、画像データの
符号となる。
Here, Y is L* Represents brightness information in the same way as
U and V are a* And b* As well as color
This is a signal representing the degree. 2602 uses discrete cosine transform
DCT circuit that performs n × n (n is a power of 2; n =
4,8,16,32 ...) pixel discrete cosine transform (D
CT). By the DCT transform, the Y signal is
Expanded to each spatial frequency component, and coded by encoder 2606
For example, it is encoded by a Huffman code. Change
, A Y amplitude detector 260 having the same configuration as 715
3, the amplitude of the Y signal in the n × n pixels (Y-GAI
N) is calculated. On the other hand, 2604 is the same as 7204
A circuit having a configuration, wherein a U signal with respect to an amplitude of a Y signal
Amplitude ratio (Ugain) And the DC component of the U signal (Umean)
Output and use as U-code. Similarly, 2605 is 7
204 is a circuit having a configuration similar to that of FIG.
The amplitude ratio of the V signal togain) And the DC signal of the V signal
Minutes (V mean) And output as V-code. Further
And Y-code, U-code, and V-code
Sign.

【0109】尚、本発明は、複数の機器から構成される
システムに適用しても良いし、1つの機器から成る装置
に適用しても良い。また、本発明は、システム或は装置
にプログラムを供給することによって達成される場合に
も適用できることはいうまでもない。
Note that the present invention may be applied to a system composed of a plurality of devices, or may be applied to an apparatus composed of one device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or an apparatus.

【0110】[0110]

【発明の効果】以上説明したように本発明によれば、入
力したフルカラー画像信号を所定の単位に分割して、そ
の所定単位ごとにに明度情報と色度情報とに分離して符
号化、特に、色度情報の直流成分は非線形に符号化する
ので、より効率の良い符号化、即ち、同じ画質劣化であ
れば符号長の短い符号化、同じ符号長であれば画質劣化
の少ない符号化を行うことができるという効果がある。
As described above, according to the present invention, an input full-color image signal is divided into predetermined units, and each of the predetermined units is separated into brightness information and chromaticity information and encoded. In particular, since the DC component of the chromaticity information is non-linearly encoded, more efficient encoding, that is, encoding with a shorter code length for the same image quality degradation, and encoding with less image quality degradation for the same code length. There is an effect that can be performed.

【0111】これによって、入力画像の符号化復号化後
の再生画像、例えば、網点画像領域のがさつきを解消で
きるので画像再現性も向上する。
As a result, the reproduced image obtained by encoding and decoding the input image, for example, the roughness of the halftone dot image area can be eliminated, so that the image reproducibility can be improved.

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

【図1】本発明の代表的な実施例である画像処理装置の
構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus that is a typical embodiment of the present invention.

【図2】画像処理回路212の構成を示すブロック図で
ある。
FIG. 2 is a block diagram illustrating a configuration of an image processing circuit 212.

【図3】画像処理回路212の構成を示すブロック図で
ある。
FIG. 3 is a block diagram illustrating a configuration of an image processing circuit 212.

【図4】明度情報符号化器113の構成を示すブロック
図である。
FIG. 4 is a block diagram illustrating a configuration of a brightness information encoder 113.

【図5】明度情報符号化器113が実行するブロック化
されたの画像信号の量子化処理の概要を示す図である。
FIG. 5 is a diagram illustrating an outline of quantization processing of a blocked image signal executed by a brightness information encoder 113;

【図6】図4で示した量子化処理の具体例を示す図であ
る。
6 is a diagram illustrating a specific example of the quantization processing illustrated in FIG. 4;

【図7】画像信号を主走査方向及び副走査方向に関して
ブロック化する様子を示す図である。
FIG. 7 is a diagram illustrating a state in which an image signal is divided into blocks in a main scanning direction and a sub-scanning direction.

【図8】明度情報符号化器113の動作タイミングを示
すタイムチャートである。
FIG. 8 is a time chart showing operation timings of the brightness information encoder 113.

【図9】グループ化回路709の構成を示すブロック図
である。
FIG. 9 is a block diagram illustrating a configuration of a grouping circuit 709.

【図10】グループ化回路709の構成を示すブロック
図である。
FIG. 10 is a block diagram illustrating a configuration of a grouping circuit 709.

【図11】LGAIN算出器715の構成を示すブロッ
ク図である。
FIG. 11 is a block diagram showing a configuration of an LGAIN calculator 715.

【図12】副走査方向の最大値/最小値検索回路905
の構成を示すブロック図である。
FIG. 12 shows a maximum / minimum value search circuit 905 in the sub-scanning direction.
FIG. 3 is a block diagram showing the configuration of FIG.

【図13】主走査方向の最大値検索回路914の構成を
示すブロック図である。
FIG. 13 is a block diagram illustrating a configuration of a maximum value search circuit 914 in the main scanning direction.

【図14】主走査方向の最小値検索回路915の構成を
示すブロック図である。
FIG. 14 is a block diagram showing a configuration of a minimum value search circuit 915 in the main scanning direction.

【図15】色度成分符号化器114の構成を示すブロッ
ク図である。
FIG. 15 is a block diagram illustrating a configuration of a chromaticity component encoder 114.

【図16】色度成分符号化器114の動作タイミングを
示すタイムチャートである。
FIG. 16 is a time chart showing the operation timing of the chromaticity component encoder 114.

【図17】a* 信号量子化回路7204及びb* 信号量
子化回路7208の構成を示すブロック図である。
FIG. 17 is a block diagram showing a configuration of an a * signal quantization circuit 7204 and a b * signal quantization circuit 7208.

【図18】a* 信号量子化回路7204及びb* 信号量
子化回路7208の構成を示すブロック図である。
18 is a block diagram illustrating a configuration of an a * signal quantization circuit 7204 and a b * signal quantization circuit 7208. FIG.

【図19】a* 信号量子化回路7204及びb* 信号量
子化回路7208の構成を示すブロック図である。
FIG. 19 is a block diagram showing a configuration of an a * signal quantization circuit 7204 and a b * signal quantization circuit 7208.

【図20】画像処理装置全体の動作タイミングを示すタ
イムチャートである。
FIG. 20 is a time chart illustrating the operation timing of the entire image processing apparatus.

【図21】XPHS信号及びYPHS信号の発生回路の
構成を示すブロック図である。
FIG. 21 is a block diagram showing a configuration of an XPHS signal and YPHS signal generation circuit.

【図22】4画素×4ラインで構成されるブロック単位
にエリア処理を実行するエリア処理回路115bの構成
を示すブロック図である。
FIG. 22 is a block diagram illustrating a configuration of an area processing circuit 115b that performs an area process on a block basis composed of 4 pixels × 4 lines.

【図23】文字画素検出に関して、エリア処理の具体例
を示す図である。
FIG. 23 is a diagram showing a specific example of area processing for character pixel detection.

【図24】明度成分復号化器117a〜117dの構成
を示すブロック図である。
FIG. 24 is a block diagram illustrating a configuration of lightness component decoders 117a to 117d.

【図25】色度情報復号化器118a〜118dの構成
を示すブロック図である。
FIG. 25 is a block diagram illustrating a configuration of chromaticity information decoders 118a to 118d.

【図26】色空間変換器119a〜119dの構成を示
すブロック図である。
FIG. 26 is a block diagram illustrating a configuration of color space converters 119a to 119d.

【図27】乗算器2306〜2309における乗算演算
に用いるC1,M1,Y1,Bk1 の各信号に対する係数(a
1,a2,a3,a4 )の値を示す図である。
FIG. 27 shows a coefficient (a) for each signal of C 1 , M 1 , Y 1 , and Bk 1 used for the multiplication operation in multipliers 2306 to 2309.
1 , a 2 , a 3 , a 4 ).

【図28】画像領域を分離のための判定信号生成回路の
別の実施例を示すブロック図である。
FIG. 28 is a block diagram showing another embodiment of a determination signal generation circuit for separating an image area.

【図29】フルカラー画像の符号化器の別の実施例を示
すブロック図である。
FIG. 29 is a block diagram showing another embodiment of a full-color image encoder.

【符号の説明】[Explanation of symbols]

101〜103 CCD 107〜109 A/D変換器 110〜111 遅延回路 112 色空間変換器 113 明度情報符号化器 114 色度情報符号化器 116 画像メモリ 117a〜117d 明度情報復号化器 118a〜118d 色度情報復号化器 141〜144 復号化器 151〜156 トライステートゲート 157〜160 変倍回路 202 読み取り原稿 212 画像処理回路 225〜228 感光ドラム 101-103 CCD 107-109 A / D converter 110-111 Delay circuit 112 Color space converter 113 Lightness information encoder 114 Chromaticity information encoder 116 Image memory 117a-117d Lightness information decoder 118a-118d Color Degree information decoders 141 to 144 Decoders 151 to 156 Tri-state gates 157 to 160 Magnification circuit 202 Reading document 212 Image processing circuit 225 to 228 Photosensitive drum

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平3−42968(JP,A) 特開 昭63−185163(JP,A) 特開 平1−311786(JP,A) 特許3162792(JP,B2) 特許326452(JP,B2) (58)調査した分野(Int.Cl.7,DB名) H04N 1/41 - 1/419 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-3-42968 (JP, A) JP-A-63-185163 (JP, A) JP-A-1-311786 (JP, A) Patent 3162792 (JP, A B2) Patent 326452 (JP, B2) (58) Fields investigated (Int. Cl. 7 , DB name) H04N 1/41-1/419

Claims (12)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 フルカラー画像信号を処理する画像処理
方法であって、 フルカラー画像信号を入力する入力工程と、 前記フルカラー画像信号を画素ブロック単位明度情報
と色度情報に分離する分離工程と、 前記画素ブロック単位ごとに前記フルカラー画像信号の
明度情報を直流成分と交流成分に分離して量子化・符号
化する第1符号化工程と、 前記画素ブロック内の明度情報の最大値と最小値との差
分値を算出する第1算出工程と、 前記画素ブロック内での色度情報の平均値を算出する第
2算出工程と、前記画素ブロック内の明度情報の最大値をとる位置の色
度情報と前記明度情報の最小値をとる位置の色度情報と
の差分値を算出する第3の算出工程と、 前記第1算出工程において算出された差分値と前記第3
の算出工程において算出された差分値との比率を示す差
分比を求め、 符号化する第符号化工程と 前記第1算出工程において算出された差分値が所定値よ
り大きい時には前記第2算出工程において算出された平
均値を非線形に量子化したものを出力し、前記第1算出
工程において算出された差分値が所定値より小さい時は
前記第2算出工程において算出された平均値を量子化せ
ずに出力する符号化工程とを有することを特徴とす
る画像処理方法。
1. An image processing method for processing a color image signal, an input step of inputting a color image signal, and a separation step of separating said full-color image signals into brightness information and the chromaticity information of the pixel block, A first encoding step of separating and quantizing and encoding the brightness information of the full-color image signal into a DC component and an AC component for each pixel block unit; and a maximum value and a minimum value of the brightness information in the pixel block. Difference
A first calculating step of calculating a partial value ; a second calculating step of calculating an average value of chromaticity information in the pixel block; and a color at a position where a maximum value of brightness information in the pixel block is obtained.
Chromaticity information of the position where the minimum value of the brightness information and the brightness information is obtained;
A third calculation step of calculating a difference value, the difference value calculated in the first calculation step 3
Indicating the ratio with the difference value calculated in the calculation step of
Seek min ratio, a second encoding step of encoding, the difference value calculated in the first calculation step exceeds a predetermined value
Is larger than the average calculated in the second calculation step.
A non-linear quantized version of the average is output and the first calculation
When the difference value calculated in the process is smaller than the predetermined value
Quantizing the average value calculated in the second calculation step;
And a third encoding step of outputting the image data without any processing.
【請求項2】 前記色度情報の平均値の非線形な量子
とは、色度の低い画像信号に対しては符号コード量を多
く割り当てて表現し、色度の高い画像信号に対しては少
ないコード数で表現することを特徴とする請求項1に記
載の画像処理方法。
2. The non-linear quantization of the average value of chromaticity information is represented by allocating a large amount of code code to an image signal with low chromaticity, and expressing it by assigning a large amount of code code to an image signal with low chromaticity. 2. The image processing method according to claim 1, wherein the image is represented by a small number of codes.
【請求項3】 フルカラー画像信号を処理する画像処理
装置であって、 フルカラー画像信号を入力する入力手段と、 前記フルカラー画像信号を画素ブロック単位明度情報
と色度情報に分離する分離手段と、 前記画素ブロック単位ごとに前記フルカラー画像信号の
明度情報を直流成分と交流成分に分離して量子化・符号
化する第1符号化手段と、 前記画素ブロック内の明度情報の最大値と最小値との差
分値を算出する第1算出手段と、 前記画素ブロック内での色度情報の平均値を算出する第
2算出手段と、前記画素ブロック内の明度情報の最大値をとる位置の色
度情報と前記明度情報の最小値をとる位置の色度情報と
の差分値を算出する第3の算出手段と、 前記第1算出手段によって算出された差分値と前記第3
の算出手段によって算出された差分値との比率を示す差
分比を求め、 符号化する第符号化手段と 前記第1算出手段によって算出された差分値が所定値よ
り大きい時には前記第2算出手段によって算出された平
均値を非線形に量子化したものを出力し、前記第1算出
手段によって算出された差分値が所定値より小さい時は
前記第2算出手段によって算出された平均値を量子化せ
ずに出力する符号化手段とを有することを特徴とす
る画像処理装置。
3. An image processing apparatus for processing a color image signal input means for inputting a color image signal, separating means for separating the color image signal into luminance information and chromaticity information of the pixel block, First encoding means for separating and quantizing and encoding the brightness information of the full-color image signal into a DC component and an AC component for each pixel block unit; a maximum value and a minimum value of the brightness information in the pixel block ; Difference
First calculating means for calculating a fractional value ; second calculating means for calculating an average value of chromaticity information in the pixel block; and a color at a position at which a maximum value of brightness information in the pixel block is obtained.
Chromaticity information of the position where the minimum value of the brightness information and the brightness information is obtained;
A third calculating means for calculating a difference value between the first and second calculating means;
Indicating the ratio to the difference value calculated by the calculation means
Seek min ratio, a second coding means for coding the difference value calculated by said first calculating means exceeds a predetermined value
Is larger than the average calculated by the second calculating means.
A non-linear quantized version of the average is output and the first calculation
When the difference value calculated by the means is smaller than the predetermined value
Quantizing the average value calculated by the second calculating means
An image processing apparatus comprising: a third encoding unit configured to output the image data without using the third encoding unit.
【請求項4】 前記色度情報の平均値の非線形な量子
とは、色度の低い画像信号に対しては符号コード量を多
く割り当てて表現し、色度の高い画像信号に対しては少
ないコード数で表現することを特徴とする請求項3に記
載の画像処理装置。
4. The non-linear quantization of the average value of the chromaticity information is represented by assigning a large amount of code code to an image signal having a low chromaticity and expressing it by assigning a large amount of code code to an image signal having a low chromaticity. 4. The image processing apparatus according to claim 3, wherein the image is represented by a small number of codes.
【請求項5】 前記第1符号化手段は前記画素ブロック
単位ごとに前記明度情報に直交変換を施すことにより、
直流成分と交流成分に分離することを特徴とする請求項
3に記載の画像処理装置。
5. The first encoding unit performs an orthogonal transform on the brightness information for each pixel block unit ,
The image processing apparatus according to claim 3, wherein the direct current component and the alternating current component are separated .
【請求項6】 前記直交変換はアダマール変換であるこ
とを特徴とする請求項5記載の画像処理装置。
6. The image processing apparatus according to claim 5 , wherein the orthogonal transform is a Hadamard transform.
【請求項7】 前記直交変換は離散的フーリエ変換もし
くは離散的コサイン変換であることを特徴とする請求項
記載の画像処理装置。
7. The image processing apparatus according to claim 5 , wherein the orthogonal transform is a discrete Fourier transform or a discrete cosine transform.
【請求項8】 前記符号化された符号長は、固定長符号
であることを特徴とする請求項3に記載の画像処理装
置。
8. The image processing apparatus according to claim 3, wherein the encoded code length is a fixed length code.
【請求項9】 前記入力手段はフルカラー画像を光学的
に読み込み電気信号に変換する画像読み取り手段を有す
ることを特徴とする請求項3に記載の画像処理装置。
9. The image processing apparatus according to claim 3, wherein said input means has an image reading means for optically reading a full-color image and converting it into an electric signal.
【請求項10】 前記符号化されたフルカラー画像の情
報を格納する記憶手段をさらに有することを特徴とする
請求項3に記載の画像処理装置。
10. The image processing apparatus according to claim 3, further comprising storage means for storing information of the encoded full-color image.
【請求項11】 前記符号化されたフルカラー画像の情
報を復号化し、前記復号化されたフルカラー画像を記録
媒体に可視化して出力する画像形成手段をさらに有する
ことを特徴とする請求項3に記載の画像処理装置。
11. The image processing apparatus according to claim 3, further comprising image forming means for decoding the information of the encoded full-color image, and visualizing and outputting the decoded full-color image on a recording medium. Image processing device.
【請求項12】 前記画像形成手段は、色成分に対応し
た複数の画像形成部と、前記複数の画像形成部に記録媒
体を順次搬送する搬送手段とを有することを特徴とする
請求項11に記載の画像処理装置。
12. The image forming apparatus according to claim 11, wherein the image forming unit includes a plurality of image forming units corresponding to color components and a conveying unit that sequentially conveys a recording medium to the plurality of image forming units. An image processing apparatus as described in the above.
JP02565093A 1993-02-15 1993-02-15 Image processing method and apparatus Expired - Fee Related JP3291056B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02565093A JP3291056B2 (en) 1993-02-15 1993-02-15 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02565093A JP3291056B2 (en) 1993-02-15 1993-02-15 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH06245079A JPH06245079A (en) 1994-09-02
JP3291056B2 true JP3291056B2 (en) 2002-06-10

Family

ID=12171702

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02565093A Expired - Fee Related JP3291056B2 (en) 1993-02-15 1993-02-15 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3291056B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10117006A (en) * 1996-08-23 1998-05-06 Kanegafuchi Chem Ind Co Ltd Thin-film photoelectric conversion device
WO2002043401A1 (en) 2000-11-22 2002-05-30 Koninklijke Philips Electronics N.V. Video signal processing

Also Published As

Publication number Publication date
JPH06245079A (en) 1994-09-02

Similar Documents

Publication Publication Date Title
JP4275827B2 (en) Digital image data processing method and processing apparatus
US5668646A (en) Apparatus and method for decoding differently encoded multi-level and binary image data, the later corresponding to a color in the original image
US5361147A (en) Method and apparatus for encoding and decoding color images
US6342950B1 (en) Method and apparatus for encoding image, image decoding apparatus and image forming apparatus
US5165072A (en) Image processing apparatus which detects a line image
US20070103731A1 (en) Method and system for generating contone encoded binary print data streams
JP3161172B2 (en) Encoding device
JP3162792B2 (en) Image processing device
JP2004112695A (en) Image processing apparatus and processing method thereof
JP3291056B2 (en) Image processing method and apparatus
JP3256011B2 (en) Image forming apparatus and control method thereof
JPH05176180A (en) Coding method for still natural picture with mixed existence of binary picture
JP3880422B2 (en) Image forming system, and image processing system and method
JP3117331B2 (en) Image data processing device
JP3264526B2 (en) Image processing method and apparatus
JP2004128664A (en) Image processor and processing method
JP3507100B2 (en) Image processing system and method
EP1006715A2 (en) Processing digital image data
JP2009065559A (en) Image processing apparatus, image processing method, and storage medium with image processing program stored thereon
JP3154242B2 (en) Image processing apparatus and color image processing method
JP3440974B2 (en) Block encoding method and apparatus
JP3288696B2 (en) Image processing apparatus and image processing method
JPH05145746A (en) Image processor
JPH0879539A (en) Picture processor and method thereof
JPH0758949A (en) Image processing device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020304

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080322

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090322

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100322

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees