JPH09270913A - Image signal processor - Google Patents

Image signal processor

Info

Publication number
JPH09270913A
JPH09270913A JP8075586A JP7558696A JPH09270913A JP H09270913 A JPH09270913 A JP H09270913A JP 8075586 A JP8075586 A JP 8075586A JP 7558696 A JP7558696 A JP 7558696A JP H09270913 A JPH09270913 A JP H09270913A
Authority
JP
Japan
Prior art keywords
data
quantization error
error
circuit
quantization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8075586A
Other languages
Japanese (ja)
Inventor
Yuji Ishioka
裕二 石岡
Makoto Matsumoto
誠 松本
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP8075586A priority Critical patent/JPH09270913A/en
Publication of JPH09270913A publication Critical patent/JPH09270913A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image signal processor in which quantization error data are stored, even when number of picture elements of an image sensor is increased with a quantization error storage memory having a comparatively smaller capacity. SOLUTION: Multi-value input picture element data 5 read from an original 15, amplified by an image signal amplifier circuit 3, and converted by an A/D converter circuit 4 are given to a quantization circuit 6, and an error spread arithmetic circuit 9, in which error spread processing is conducted to calculate quantization error data caused when the data 5 are quantized into binary output picture element data 7 and the result is written and stored in a quantization error storage memory 12 for error spread processing of a succeeding line. In this case, the storage of quantization error data as to all picture elements or storage of quantization error data averaged by grouping plural picture elements into blocks is selected, based on the storage capacity of the quantization error storage memory and number of picture elements of the image sensor 2 set depending on the size of a read original.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、イメージセンサ
等を使用した画像信号処理装置に関し、所定ビット数の
画素データ(以下多値の画素データという)を、低ビッ
ト、特に1ビットの画素データ(以下2値の画素データ
という)に量子化する際に生ずる量子化誤差のバラツキ
を平均化するようにしたものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image signal processing apparatus using an image sensor or the like, and relates to pixel data of a predetermined number of bits (hereinafter referred to as multi-valued pixel data) of low bit, especially 1 bit pixel data ( In the following description, variations in quantization error that occur during quantization into binary pixel data will be averaged.

【0002】[0002]

【従来の技術】一般に、イメージセンサにより読み取ら
れた多値の画像データを2値の画像データ等に量子化す
る際、原画像の読み取り濃度と白黒の表示濃度との違い
から量子化誤差が生ずる。この量子化誤差を局所的に拡
散させ最小近似することにより、階調性と解像度が或程
度両立する画像が得られることは知られている。この手
法は誤差拡散法と呼ばれ、まず周辺画素の量子化誤差
で、注目画素からの距離による重み付け平均化を行い、
それが注目画素に加えられ、注目画素は固定閾値により
量子化を行う方法がとられてきた。
2. Description of the Related Art Generally, when quantizing multi-valued image data read by an image sensor into binary image data or the like, a quantization error occurs due to a difference between a read density of an original image and a black and white display density. . It is known that an image in which gradation and resolution are compatible to some extent can be obtained by locally diffusing this quantization error and performing a minimum approximation. This method is called the error diffusion method. First, the quantization error of the surrounding pixels is used to perform weighted averaging according to the distance from the pixel of interest,
It has been added to the pixel of interest, and the pixel of interest has been quantized with a fixed threshold.

【0003】図7は従来のこの種画像信号処理装置を示
すブロック線図で、図において、1はレンズ系、2は読
取り位置をライン方向に走査してアナログの画像信号を
画素単位に出力するイメージセンサ、3はイメージセン
サ2から読出された画像信号を増幅する画像信号増幅回
路、4は画像信号増幅回路3からの画像信号を1画素1
バイトのデジタルデータである入力画素データ5に変換
するアナログデジタル変換回路(以下A/D変換回路と
いう)、6は1画素1バイトの入力画素データ5を誤差
拡散処理して1ビットの画素データ7に量子化し出力す
るとともに、この量子化による各画素の量子化誤差を演
算して量子化誤差データ8を出力する量子化回路、9は
量子化回路6において以前に処理された現ラインの周辺
画素の量子化誤差データ8と、前ラインの周辺画素の量
子化誤差データ10とにより誤差拡散処理用データ11
を演算して量子化回路6に出力する誤差拡散演算回路、
12は量子化回路6からの量子化誤差データ8が順次書
込まれ、前ラインの量子化誤差データ10が誤差拡散演
算回路9に読出される量子化誤差記憶メモリ、13は制
御回路、14は制御回路13から出力される画素読出し
のタイミングをきめる画素クロック信号、15は被読出
し原稿である。
FIG. 7 is a block diagram showing a conventional image signal processing apparatus of this type. In the figure, 1 is a lens system, 2 is a scanning position in a line direction, and an analog image signal is output pixel by pixel. The image sensor 3 is an image signal amplifier circuit that amplifies the image signal read from the image sensor 2, and 4 is the image signal from the image signal amplifier circuit 3 for each pixel 1
An analog-digital conversion circuit (hereinafter referred to as an A / D conversion circuit) 6 that converts input pixel data 5 that is byte digital data, 6 is 1-bit pixel data 7 by performing error diffusion processing on 1-pixel 1-byte input pixel data 5 Quantizing circuit outputs the quantized error data 8 by calculating the quantized error of each pixel by quantizing and outputting the quantized error Error diffusion processing data 11 based on the quantization error data 8 and the quantization error data 10 of the peripheral pixels on the previous line.
An error diffusion calculation circuit that calculates and outputs to the quantization circuit 6,
Reference numeral 12 is a quantization error storage memory in which the quantization error data 8 from the quantization circuit 6 is sequentially written, and the quantization error data 10 of the previous line is read out to the error diffusion calculation circuit 9, 13 is a control circuit, and 14 is A pixel clock signal output from the control circuit 13 that determines the timing of pixel readout, and 15 is a read original.

【0004】図8は誤差拡散法を説明する図で、各桝は
各画素に対応し、その中に書かれた文字Z,A〜Gはそ
の画素における量子化誤差、即ち、Zは現在量子化処理
が行なわれる注目画素の、A,B,C,Dは前ライン
(直上のライン)の周辺画素の、F,Gは現ラインの周
辺画素の量子化誤差を表わし、( )内の数値は誤差拡
散処理が行なわれる際の重みを示している。
FIG. 8 is a diagram for explaining the error diffusion method. Each box corresponds to each pixel, and the letters Z and A to G written therein are the quantization error in that pixel, that is, Z is the present quantum. A, B, C, D of the target pixel on which the quantization processing is performed represent the quantization error of the peripheral pixels of the previous line (the line immediately above), and F, G represent the quantization error of the peripheral pixels of the current line. Indicates the weight when the error diffusion processing is performed.

【0005】図9は量子化回路6及び誤差拡散演算回路
9の詳細を示す回路線図で、図において、61はA/D
変換回路4からの1バイトの多値入力画素データ5と誤
差拡散演算回路9からの誤差拡散処理用データ11を加
算し、加算値のMSB(最高位ビットの2進値)を2値
の出力画素データ7として出力する加算回路、62は加
算回路61からの多値の加算データと、2値の出力画素
データ7が0か1かによってセレクタ63により切換え
出力される全ビット0の多値データ“0”か全ビット1
の多値データ“R”との差を量子化誤差データ8として
出力する減算回路である。
FIG. 9 is a circuit diagram showing details of the quantizing circuit 6 and the error diffusion calculating circuit 9. In the figure, 61 is an A / D.
The 1-byte multi-valued input pixel data 5 from the conversion circuit 4 and the error diffusion processing data 11 from the error diffusion calculation circuit 9 are added, and the added value MSB (the binary value of the most significant bit) is output in binary. An addition circuit that outputs as pixel data 7, 62 is multi-valued addition data from the addition circuit 61, and multi-valued data of all bits 0 that is switched and output by the selector 63 depending on whether the binary output pixel data 7 is 0 or 1. “0” or all bits 1
This is a subtraction circuit that outputs the difference from the multi-valued data “R” as the quantization error data 8.

【0006】91A,91B,91C,91D,91E
は量子化誤差記憶メモリ12から読出された前ラインの
周辺画素の量子化誤差データ10を、制御回路13から
の画素クロック信号14に同期して順次転送するデータ
転送回路、91F,91Gは量子化回路6で処理された
現ラインの2つ前及び前位置の画素の量子化誤差データ
8を画素クロック信号14に同期して順次転送するデー
タ転送回路、92A,92Eは1/16除算回路、92
B,92D,92Fは1/8除算回路、92C,92G
は1/4除算回路で、各データ転送回路91A〜91G
の多値出力データを2ビット、3ビット、4ビットシフ
トする等によって実現できる。93は各除算回路92A
〜92Gの出力データを加算する加算回路である。
91A, 91B, 91C, 91D, 91E
Is a data transfer circuit for sequentially transferring the quantized error data 10 of the peripheral pixels of the previous line read from the quantized error storage memory 12 in synchronization with the pixel clock signal 14 from the control circuit 13, and 91F and 91G are quantized. A data transfer circuit for sequentially transferring the quantized error data 8 of the pixel at the position two before and at the previous position of the current line processed by the circuit 6 in synchronization with the pixel clock signal 14, and 92A and 92E, 1/16 division circuits, 92
B, 92D and 92F are 1/8 division circuits, 92C and 92G
Is a 1/4 division circuit, and each of the data transfer circuits 91A to 91G
Can be realized by shifting the multi-valued output data of 2 bits, 3 bits, and 4 bits. 93 is each division circuit 92A
It is an adder circuit that adds the output data of ~ 92G.

【0007】次にその動作について説明する。まず、読
出すべき原稿15がセットされてイメージセンサ2が起
動され、原稿の走査が開始される。原稿15から読出さ
れた各画素毎の画像信号は画像信号増幅回路3で増幅さ
れ、A/D変換回路4でデジタルの1画素1バイトの入
力画素データ5に変換されて量子化回路6の加算回路6
1の一方の端子に印加され、それの他方の端子に印加さ
れる誤差拡散演算回路9からの誤差拡散処理用データ1
1と加算される。原稿15からの読出開始時点では誤差
拡散処理用データ11は多値データ“0”なので、加算
回路61からは多値の入力画素データ5のMSBが2値
の出力画素データ7として出力される。一方、加算回路
61の多値の出力データは減算回路62の一方の入力端
子に印加され、他方の端子に印加される、2値の出力画
素データ7が0か1かによってセレクタ63から出力さ
れる全ビット0の多値データ“0”か全ビット1の多値
データ“R”かの何れかとの減算が行なわれ、量子化誤
差データ8が出力される。即ち、2値データで出力され
る白か黒の多値データと実際に読出された階調を持った
多値の入力画素データ5との差が演算されて量子化誤差
データ8として出力され、誤差拡散演算回路9のデータ
転送回路91Gに置数される。
Next, the operation will be described. First, the document 15 to be read is set, the image sensor 2 is activated, and scanning of the document is started. The image signal for each pixel read from the original 15 is amplified by the image signal amplification circuit 3, converted into digital 1-pixel 1-byte input pixel data 5 by the A / D conversion circuit 4, and added by the quantization circuit 6. Circuit 6
Error diffusion processing data 1 from the error diffusion calculation circuit 9 applied to one terminal of the
1 is added. Since the error diffusion processing data 11 is multi-valued data “0” at the start of reading from the original 15, the MSB of the multi-valued input pixel data 5 is output from the addition circuit 61 as the binary output pixel data 7. On the other hand, the multivalued output data of the adder circuit 61 is applied to one input terminal of the subtractor circuit 62 and is output from the selector 63 depending on whether the binary output pixel data 7 applied to the other terminal is 0 or 1. Quantization error data 8 is output by performing subtraction with either multi-valued data "0" of all bits 0 or multi-valued data "R" of all bits 1. That is, the difference between the white or black multi-valued data output as binary data and the actually read multi-valued input pixel data 5 having gradation is calculated and output as the quantization error data 8. It is registered in the data transfer circuit 91G of the error diffusion calculation circuit 9.

【0008】次の画素クロック信号14の印加によっ
て、読出された次の画素の入力画素データ5が加算回路
61に入力され、データ転送回路91Gに置数されてい
た前画素の量子化誤差データ8が次のデータ転送回路9
1Fに転送されると同時に1/4除算回路92Gで1/
4に除算され加算回路93で加算(この時点では他の加
算値は0)された誤差拡散処理用データ11と加算され
る。即ち、加算回路61に誤差拡散処理された画素デー
タが得られ、このデータについて上述の量子化及び量子
化誤差データの算出が行なわれる。このようにして最上
ラインの各画素について、画像読出し、誤差拡散処理、
量子化、量子化誤差データの算出が行なわれ、算出され
た量子化誤差データはデータ転送回路91G,91Fを
介して量子化誤差記憶メモリ12に順次書込まれる。
By the application of the next pixel clock signal 14, the read input pixel data 5 of the next pixel is input to the adder circuit 61, and the quantization error data 8 of the previous pixel registered in the data transfer circuit 91G. Is the next data transfer circuit 9
At the same time when it is transferred to 1F, 1/4 in 1/4 division circuit 92G
The error diffusion processing data 11 is divided by 4 and added by the adder circuit 93 (other added values are 0 at this point). That is, the pixel data subjected to the error diffusion processing is obtained in the adder circuit 61, and the above quantization and the calculation of the quantization error data are performed on this data. In this way, for each pixel on the top line, image reading, error diffusion processing,
Quantization and calculation of quantization error data are performed, and the calculated quantization error data is sequentially written in the quantization error storage memory 12 via the data transfer circuits 91G and 91F.

【0009】次ラインの読出しに入ると、量子化誤差記
憶メモリ12に記憶されている前ラインの周辺画素によ
る誤差拡散処理が加えられる。以下、第2ライン以下の
3画素目以降の図8の注目画素Zの処理について説明す
る。この画素の入力画素データが加算回路61に入力さ
れる時点では、データ転送回路91A,91B,91
C,91D,91Eには量子化誤差記憶メモリ12から
読出された、注目画素の前ラインの周辺画素の量子化誤
差データA,B,C,D,Eが置数されており、データ
転送回路91F,91Gには、現ライン読出し時の前に
算出された現ラインの周辺画素の量子化誤差データF,
Gが置数されている。これらの量子化誤差データは除算
回路92A〜92Gにより各周辺画素の重みに相当した
値で除算されて加算回路93で加算されて、誤差拡散処
理用データ11として加算回路62に入力されている。
この誤差拡散処理用データ11が注目画素の入力画素デ
ータ5に加えられ誤差拡散処理が行なわれた値について
量子化が行なわれて2値の出力画素データ7が出力さ
れ、減算回路62からそれの量子化データが制御回路1
3からの次の画素クロック信号14の印加によってデー
タ転送回路91Gに入力される。
When the next line is read out, error diffusion processing is performed by the peripheral pixels of the previous line stored in the quantization error storage memory 12. The processing of the target pixel Z of FIG. 8 on the third and subsequent pixels on the second line and below will be described below. At the time when the input pixel data of this pixel is input to the adder circuit 61, the data transfer circuits 91A, 91B, 91
Quantization error data A, B, C, D, E of the peripheral pixels on the preceding line of the pixel of interest read from the quantization error storage memory 12 are stored in C, 91D, 91E, and the data transfer circuit 91F and 91G include the quantization error data F, which is calculated before reading the current line, of the peripheral pixels of the current line.
G is registered. These quantized error data are divided by a value corresponding to the weight of each peripheral pixel by the division circuits 92A to 92G, added by the addition circuit 93, and input to the addition circuit 62 as error diffusion processing data 11.
This error diffusion processing data 11 is added to the input pixel data 5 of the pixel of interest, and the value subjected to the error diffusion processing is quantized to output binary output pixel data 7, which is output from the subtraction circuit 62. Quantized data is control circuit 1
The next pixel clock signal 14 from 3 is input to the data transfer circuit 91G.

【0010】以下、量子化、量子化誤差算出及び誤差拡
散処理についてより一般的に説明する。ここで、ある画
素における多値画素データ5をI(0≦I≦R)、量子
化誤差をErrとすると、I>R/2(MSB=1)の時
は Err=I−R …(1) I≦R/2(MSB=0)の時は Err=I−0=I …(2) となる。
The quantization, quantization error calculation, and error diffusion processing will be described more generally below. Here, assuming that the multi-valued pixel data 5 in a certain pixel is I (0 ≦ I ≦ R) and the quantization error is Err, when I> R / 2 (MSB = 1), Err = I−R (1 ) When I≤R / 2 (MSB = 0), Err = I-0 = I (2)

【0011】また、注目画素の画素データ値をIz、そ
れの誤差拡散処理された修正画素データ修正値をIz'、
周辺画素の量子化誤差データをA,B,C,D,E,
F,G、注目画素に対する重み付け積算誤差をFzとす
ると、 Fz=(A+B×2+C×4+D×2+E+F×2+G×4)/16 …(3) Iz'=Iz+Fz …(4) この(3),(4)式により誤差拡散処理された修正画素
データ値Iz'を求め、この値を(1),(2)式に代入し
て、注目画素の量子化誤差データZを求めれば、Iz'>
R/2の時は Z=Iz'−R …(5) Iz'≦R/2の時は Z=Iz'−0=Iz' …(6) となる。
Further, the pixel data value of the pixel of interest is Iz, the corrected pixel data correction value of the error diffusion processing thereof is Iz ',
A, B, C, D, E, quantizing error data of peripheral pixels
F, G, and Fz, the weighted cumulative error for the pixel of interest, Fz = (A + B × 2 + C × 4 + D × 2 + E + F × 2 + G × 4) / 16 (3) Iz ′ = Iz + Fz (4) If the corrected pixel data value Iz 'that has been subjected to error diffusion processing is obtained by the equation (4) and this value is substituted into the equations (1) and (2) to obtain the quantized error data Z of the pixel of interest, then Iz'>
When R / 2, Z = Iz'-R (5) When Iz'≤R / 2, Z = Iz'-0 = Iz '(6)

【0012】上記(3)式の演算が誤差拡散演算回路9に
よって、(4)式の演算が加算回路61によって、(5),
(6)式の演算が減算回路62によってそれぞれ行なわれ
る。こうして各画素の修正画素データ値Iz'のMSBが
2値の出力画素データ7として出力され、処理中の各量
子化誤差データF,G,Zが次ラインの誤差拡散演算用
に量子化誤差記憶メモリ12に記憶される。
The operation of the equation (3) is performed by the error diffusion operation circuit 9, and the operation of the equation (4) is performed by the adder circuit 61.
The subtraction circuit 62 performs the calculation of the equation (6). In this way, the MSB of the corrected pixel data value Iz 'of each pixel is output as the binary output pixel data 7, and the quantized error data F, G, and Z being processed are quantized error stored for the error diffusion calculation of the next line. It is stored in the memory 12.

【0013】[0013]

【発明が解決しようとする課題】従来の誤差拡散機能を
備えた画像信号処理装置は以上のように構成されている
ので、イメージセンサの1画素に対して1バイトの量子
化誤差データを記憶するために、イメージセンサの画素
数と同等のバイトの記憶容量を持った量子化誤差記憶メ
モリを必要とした。そのため、原稿の大小に応じてイメ
ージセンサの画素数を変化させ得るようにした場合、イ
メージセンサの最大の画素数に対応できるよう、冗長な
大記憶容量を持った量子化誤差記憶メモリを必要とし、
小容量の量子化誤差記憶メモリでは大画面の原稿をイメ
ージセンサで読出しても誤差拡散処理が行なえないとい
う問題点があった。
Since the conventional image signal processing device having the error diffusion function is configured as described above, one byte of quantized error data is stored for each pixel of the image sensor. Therefore, a quantization error storage memory having a storage capacity of bytes equivalent to the number of pixels of the image sensor is required. Therefore, when the number of pixels of the image sensor can be changed according to the size of the original, a quantization error storage memory having a large redundant storage capacity is required so as to correspond to the maximum number of pixels of the image sensor. ,
In the small-capacity quantization error storage memory, there is a problem that the error diffusion process cannot be performed even if a large-screen original is read by the image sensor.

【0014】この発明は、上記のような問題点を解消す
るためになされたもので、比較的小容量の量子化誤差記
憶メモリで、原稿の大小に応ずるイメージセンサの画素
数の変化に対応できる画像信号処理装置を得ることを目
的としている。
The present invention has been made in order to solve the above problems, and is a quantization error storage memory having a relatively small capacity, and can cope with a change in the number of pixels of an image sensor depending on the size of an original. The purpose is to obtain an image signal processing device.

【0015】[0015]

【課題を解決するための手段】この発明に係る画像信号
処理装置は、イメージセンサ、画像信号増幅回路、この
画像信号増幅回路からの各画素信号を所定ビット数の画
素データに変換するアナログデジタル変換回路、このア
ナログデジタル変換回路からの所定ビット数の画素デー
タを誤差拡散処理して低ビット数の画素データに量子化
し出力するとともに、この量子化による各画素の量子化
誤差を演算して量子化誤差データを出力する量子化回
路、この量子化回路から出力された量子化誤差データを
記憶する量子化誤差記憶メモリ、及びこの量子化誤差記
憶メモリから読出された前ラインの所定画素の量子化誤
差データと、上記量子化回路において前に処理された現
ラインの所定画素の量子化誤差データとにより誤差拡散
処理用データを演算して上記量子化回路に出力する誤差
拡散演算回路とを備えた画像信号処理装置において、上
記量子化誤差記憶メモリに書込まれる量子化誤差データ
を複数画素毎にブロック化し平均化して、ブロック毎の
量子化誤差データを上記量子化誤差記憶メモリに記憶さ
せるブロック量子化誤差記憶手段と、1ラインの全画素
についての量子化誤差データの上記量子化誤差記憶メモ
リへの記憶と、上記ブロック量子化誤差記憶手段による
記憶とを切換える量子化誤差記憶切換え手段とを設けた
ものである。
An image signal processing apparatus according to the present invention includes an image sensor, an image signal amplifier circuit, and an analog-digital converter for converting each pixel signal from the image signal amplifier circuit into pixel data having a predetermined number of bits. Circuit, the pixel data of a predetermined number of bits from this analog-digital conversion circuit is subjected to error diffusion processing, quantized into low-bit number pixel data and output, and the quantization error of each pixel due to this quantization is calculated and quantized. A quantization circuit that outputs error data, a quantization error storage memory that stores the quantization error data output from this quantization circuit, and a quantization error of a predetermined pixel of the previous line read from this quantization error storage memory. Calculate data for error diffusion processing by using the data and the quantized error data of the predetermined pixel of the current line previously processed by the quantization circuit. In the image signal processing device including an error diffusion calculation circuit for outputting to the quantization circuit, the quantization error data written in the quantization error storage memory is divided into blocks for a plurality of pixels and averaged, and Block quantization error storage means for storing quantization error data in the quantization error storage memory, storage of quantization error data for all pixels in one line in the quantization error storage memory, and block quantization error Quantization error storage switching means for switching between storage by the storage means is provided.

【0016】また、ブロック量子化誤差記憶手段を、異
った画素数でブロック化する複数のブロック補正データ
記憶手段としたものである。さらに、量子化誤差記憶切
換え手段を、イメージセンサの画素数と量子化誤差記憶
メモリの記憶容量に応じて、全画素についての量子化誤
差の記憶とブロック量子化誤差記憶手段による記憶とを
切換えるようにしたものである。
Further, the block quantization error storage means is a plurality of block correction data storage means for forming blocks with different numbers of pixels. Further, the quantization error storage switching means is switched between storage of the quantization error for all pixels and storage by the block quantization error storage means according to the number of pixels of the image sensor and the storage capacity of the quantization error storage memory. It is the one.

【0017】[0017]

【発明の実施の形態】以下、この発明の実施の形態を図
について説明する。図1はこの実施の形態の画像信号処
理装置を示すブロック線図で、図において、1はレンズ
系、2はイメージセンサ、3は画像信号増幅回路、4は
A/D変換回路、5は多値の入力画素データ、6は量子
化回路、7は2値の出力画素データ、8は現ラインの量
子化誤差データ、9は誤差拡散演算回路、10は前ライ
ンの量子化誤差データ、11は誤差拡散処理用データ、
12は量子化誤差記憶メモリ、13は制御回路、14は
画素クロック信号、15は被読出し原稿で、以上は図7
で示す従来例と同様のものである。なお、イメージセン
サ2からは原稿の大きさによって設定される画素数Xを
示す画素数データが制御回路7に入力されるよう構成さ
れている。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an image signal processing apparatus according to this embodiment. In the figure, 1 is a lens system, 2 is an image sensor, 3 is an image signal amplifier circuit, 4 is an A / D conversion circuit, and 5 is many. Input pixel data of values, 6 is a quantization circuit, 7 is binary output pixel data, 8 is quantization error data of the current line, 9 is an error diffusion calculation circuit, 10 is quantization error data of the previous line, and 11 is Data for error diffusion processing,
Reference numeral 12 is a quantization error storage memory, 13 is a control circuit, 14 is a pixel clock signal, and 15 is an original to be read.
This is the same as the conventional example shown by. The image sensor 2 is configured so that pixel number data indicating the pixel number X set according to the size of the document is input to the control circuit 7.

【0018】16は誤差拡散演算回路9からの現ライン
の量子化誤差データ8を、各画素毎に1量子化誤差デー
タとして、或は2画素毎又は4画素毎にブロック化し平
均化して1ブロック毎に1量子化誤差データとして、量
子化誤差記憶メモリ12に切換え出力する平均化回路、
17は、各画素毎に、2画素毎に或は4画素毎にアドレ
スを作成して、量子化誤差記憶メモリ12に切換え設定
し、量子化誤差データの書込み及び読出しを行なう誤差
データ書込み読出し回路、18はイメージセンサ2から
の画素数データXに応じて制御回路13で作成され、各
画素毎に量子化誤差データを記憶させるか、2画素毎に
或は4画素毎に量子化誤差データを記憶させるかを選択
する記憶選択信号、19は量子化誤差記憶メモリ12へ
の量子化誤差データの書込み読出しのタイミングをきめ
る書込み読出しクロック信号、20は書込み時に誤差デ
ータ書込み読出し回路17から量子化誤差記憶メモリ1
2に出力される書込みアドレス信号、21は読出し時に
誤差データ書込み読出し回路17から量子化誤差記憶メ
モリ12に出力される読出しアドレス信号、22は量子
化誤差記憶メモリ12に書込み記憶される書込み量子化
誤差データである。なお、平均化回路16及び誤差デー
タ書込み読出し回路17によりブロック量子化誤差記憶
手段を構成している。
Numeral 16 designates the quantized error data 8 of the current line from the error diffusion calculation circuit 9 as one quantized error data for each pixel, or blocks for every two pixels or every four pixels and averaged to form one block. An averaging circuit for switching and outputting to the quantization error storage memory 12 one quantization error data each,
An error data writing / reading circuit 17 creates an address for each pixel, for every two pixels or for every four pixels, and switches and sets it to the quantization error storage memory 12 to write and read the quantization error data. , 18 are created by the control circuit 13 in accordance with the pixel number data X from the image sensor 2 and store the quantization error data for each pixel, or store the quantization error data for every 2 pixels or every 4 pixels. A storage selection signal for selecting whether to store, 19 is a write / read clock signal that determines the timing of writing / reading the quantization error data to / from the quantization error storage memory 12, and 20 is a quantization error from the error data write / read circuit 17 during writing. Storage memory 1
2 is a write address signal, 21 is a read address signal output from the error data write / read circuit 17 to the quantization error storage memory 12 at the time of reading, and 22 is write quantization that is written and stored in the quantization error storage memory 12. This is error data. The averaging circuit 16 and the error data writing / reading circuit 17 form a block quantization error storage means.

【0019】図2は誤差データ書込み読出し回路17の
一例を示す回路図で、図において、23,24は例えば
T型フリップフロップからなり、制御回路13からの画
素クロック信号14を1/2、さらに1/4に分周する
1/2パルス分周回路、25は、制御回路13からの記
憶選択信号18に応じて、制御回路13からの画素クロ
ック信号14、この画素クロック信号14を1/2分周
したパルス信号及び1/4分周したパルス信号の何れか
を選択して、記憶クロック信号19として出力するセレ
クタ、26はセレクタ25からの記憶クロック信号19
によってインクリメントされ、量子化誤差記憶メモリ1
2に書込みアドレス信号20として出力する書込み用ア
ドレスカウンタ、27はセレクタ25からの記憶クロッ
ク信号19によってインクリメントされ、量子化誤差記
憶メモリ12に読出しアドレス信号21として出力する
読出し用アドレスカウンタである。なお、セレクタ25
は量子化誤差記憶切換え手段を構成している。
FIG. 2 is a circuit diagram showing an example of the error data writing / reading circuit 17. In the drawing, 23 and 24 are, for example, T-type flip-flops, and the pixel clock signal 14 from the control circuit 13 is 1/2, and further. A 1/2 pulse frequency dividing circuit for dividing the frequency into 1/4, 25 is a pixel clock signal 14 from the control circuit 13 in response to a memory selection signal 18 from the control circuit 13, and 1/2 the pixel clock signal 14 A selector that selects either the divided pulse signal or the 1/4 divided pulse signal and outputs it as the storage clock signal 19, and 26 is the storage clock signal 19 from the selector 25.
Quantization error storage memory 1 incremented by
2 is a write address counter that outputs a write address signal 20 to 2, and 27 is a read address counter that is incremented by the storage clock signal 19 from the selector 25 and outputs to the quantization error storage memory 12 as a read address signal 21. The selector 25
Constitutes a quantization error memory switching means.

【0020】図3は平均化回路16の一例を示す回路図
で、図において、31,32,33,34は、誤差拡散
演算回路9から並列に入力される1バイトの現ライン量
子化誤差データ8を、制御回路13からの画素クロック
信号14印加毎に次段に転送する、フリップフロップか
らなるデータ転送回路、35,36,37,38はこれ
らデータ転送回路31,32,33,34の出力デー
タ、39はデータ転送回路32,33の2出力データ3
6,37を加算する加算回路、40はこの加算回路39
の出力データ、41はデータ転送回路31,32,3
3,34の4出力データ35,36,37,38を加算
する加算回路、42は加算回路41の出力データ、43
は加算回路39の出力データ40を1/2に除算する1
/2除算回路、44は1/2除算回路43の出力デー
タ、45は加算回路41の出力データ42を1/4に除
算する1/4除算回路、46は1/4除算回路45の出
力データ、47は、制御回路13からの記憶選択信号1
8に応じて、データ転送回路34の出力データ38、1
/2除算回路43の出力データ44及び1/4除算回路
45の出力データ46の何れかを選択して、出力データ
48として出力するセレクタ、49はセレクタ47の出
力データ48を誤差データ書込み読出し回路17からの
書込み読出しクロック信号19印加毎に量子化誤差記憶
メモリ12に書込み量子化誤差データ22として出力す
るデータ転送回路である。なお、セレクタ47は量子化
誤差記憶切換え手段を構成している。
FIG. 3 is a circuit diagram showing an example of the averaging circuit 16. In the figure, 31, 32, 33 and 34 are 1-byte current line quantized error data input in parallel from the error diffusion calculation circuit 9. 8 is transferred to the next stage each time the pixel clock signal 14 is applied from the control circuit 13, and the data transfer circuits 35, 36, 37 and 38 are output from these data transfer circuits 31, 32, 33 and 34. Data, 39 is 2 output data 3 of the data transfer circuits 32 and 33
An adder circuit for adding 6, 37, 40 is an adder circuit 39
Output data, 41 is data transfer circuits 31, 32, 3
Adder circuit for adding 4 output data 35, 36, 37, 38 of 3, 34, 42 is output data of the adder circuit 41, 43
Is 1 which divides the output data 40 of the adder circuit 39 into 1/2
/ 2 division circuit, 44 is the output data of the 1/2 division circuit 43, 45 is a 1/4 division circuit that divides the output data 42 of the addition circuit 41 into 1/4, and 46 is the output data of the 1/4 division circuit 45 , 47 are memory selection signals 1 from the control circuit 13.
8 of the output data 38 of the data transfer circuit 34,
A selector that selects either the output data 44 of the / 2 division circuit 43 or the output data 46 of the 1/4 division circuit 45 and outputs it as output data 48. 49 is an error data write / read circuit for the output data 48 of the selector 47. The data transfer circuit outputs write quantization error data 22 to the quantization error storage memory 12 every time the write / read clock signal 19 is applied from 17. The selector 47 constitutes a quantization error memory switching means.

【0021】図4は全画素についての量子化誤差データ
を記憶する場合の動作を説明するタイムチャート、図5
は2画素毎にブロック化して量子化誤差データを記憶す
る場合の動作を説明するタイムチャート、図6は4画素
毎にブロック化して量子化誤差データを記憶する場合の
動作を説明するタイムチャートである。図において、D
1〜D9は誤差拡散演算回路9から、D1,D2,…,
D9に順に順次出力される1バイトの量子化誤差データ
8である。なお、図8、図9はこの実施の形態にも適用
される。
FIG. 4 is a time chart for explaining the operation when storing the quantization error data for all pixels, and FIG.
6 is a time chart for explaining the operation when storing the quantized error data by blocking every 2 pixels, and FIG. 6 is a time chart for explaining the operation when storing the quantized error data by blocking every 4 pixels. is there. In the figure, D
1 to D9 are D1, D2, ..., From the error diffusion calculation circuit 9.
The 1-byte quantized error data 8 is sequentially output to D9. 8 and 9 are also applied to this embodiment.

【0022】以下、この実施の形態の動作について説明
する。まず、読出すべき原稿15がセットされ、イメー
ジセンサ2の画素数Xが読出される原稿の大きさに応じ
て設定されると、その画素数Xを示す画素数データが制
御回路13に入力される。制御回路13においてこの画
素数Xがメモリ12の記憶容量(Yバイト)と比較さ
れ、X≦Yの時は全画素記憶、1/2X≦Y<Xの時は
2画素単位のブロック記憶、1/4X≦Y<1/2Xの
時は4画素単位のブロック記憶を選択するデータが、制
御回路13中のレジスタ等に書込まれ、それに応じた記
憶選択信号18が平均化回路16及び誤差データ書込み
読出し回路17に出力される。
The operation of this embodiment will be described below. First, the document 15 to be read is set, and when the pixel number X of the image sensor 2 is set according to the size of the document to be read, pixel number data indicating the pixel number X is input to the control circuit 13. It The number X of pixels is compared with the storage capacity (Y byte) of the memory 12 in the control circuit 13, and when X ≦ Y, all pixel storage, when 1 / 2X ≦ Y <X, block storage in units of 2 pixels, 1 When / 4X ≦ Y <1 / 2X, the data for selecting the block storage in units of 4 pixels is written in the register or the like in the control circuit 13, and the storage selection signal 18 corresponding thereto is output to the averaging circuit 16 and the error data. It is output to the write / read circuit 17.

【0023】次に、イメージセンサ2による原稿の走査
が開始される。原稿15から読出された各画素毎の画像
信号は画像信号増幅回路3で増幅され、A/D変換回路
4でデジタルの1画素1バイトの入力画素データ5に変
換されて量子化回路6に印加される。この量子化回路6
で、入力画素データ5と誤差拡散演算回路9からの誤差
拡散処理用データ11とが加算されて誤差拡散処理が施
された後、この誤差拡散処理後の画素データの量子化及
び量子化誤差算出が行なわれ、この算出された現ライン
の量子化誤差8と量子化誤差記憶メモリ12から読出さ
れた前ラインの量子化誤差10とによって誤差拡散処理
用データ11が算出され、次に処理される画素データ5
用に量子化回路6に印加される。以上の誤差拡散処理、
量子化及び量子化誤差算出動作は図8、図9で説明した
のと同様なのでその詳細動作の説明は省略する。
Next, the scanning of the document by the image sensor 2 is started. The image signal for each pixel read out from the original 15 is amplified by the image signal amplification circuit 3, converted into digital input pixel data 1 byte of 1 pixel by the A / D conversion circuit 4, and applied to the quantization circuit 6. To be done. This quantization circuit 6
Then, after the input pixel data 5 and the error diffusion processing data 11 from the error diffusion calculation circuit 9 are added and subjected to error diffusion processing, the pixel data after the error diffusion processing is quantized and the quantization error is calculated. The error diffusion processing data 11 is calculated by the calculated quantization error 8 of the current line and the quantization error 10 of the previous line read from the quantization error storage memory 12, and is processed next. Pixel data 5
Is applied to the quantizer circuit 6 for. The above error diffusion processing,
Since the quantizing and quantizing error calculating operations are the same as those described with reference to FIGS. 8 and 9, detailed description thereof will be omitted.

【0024】量子化回路6で算出され、誤差拡散演算回
路9で誤差拡散処理用データ算出に使用された現ライン
の量子化誤差8は平均化回路16に入力され、制御回路
13からの記憶選択信号18によってきまる記憶方法に
応じて、1画素、2画素、或は4画素を1ブロックと
し、ブロック内のディジタルデータ値が平均化され、そ
の結果が1ブロックに対し1つの量子化誤差データとし
て量子化誤差記憶メモリ12に順次書込まれ、一方、量
子化誤差記憶メモリ12から前ライン画素の量子化処理
時に書込まれた量子化誤差データが、記憶選択信号18
によってきまる記憶方法に応じて、1画素毎に1量子化
誤差データが、2画素毎に1量子化誤差データが、或は
4画素毎に1量子化誤差データが、誤差拡散処理用に順
次読出される。
The quantizing error 8 of the current line calculated by the quantizing circuit 6 and used for calculating the error diffusion processing data by the error diffusion calculating circuit 9 is input to the averaging circuit 16 and selected by the control circuit 13 for storage selection. Depending on the storage method determined by the signal 18, one pixel, two pixels, or four pixels are set as one block, digital data values in the block are averaged, and the result is set as one quantization error data for one block. The quantization error data written in the quantization error storage memory 12 sequentially, while the quantization error data written in the quantization processing of the previous line pixel from the quantization error storage memory 12, is stored in the storage selection signal 18
Depending on the storage method determined by, 1 quantization error data for each pixel, 1 quantization error data for every 2 pixels, or 1 quantization error data for every 4 pixels are sequentially read out for error diffusion processing. To be done.

【0025】次に図2によって誤差データ書込み読出し
回路17の動作を説明する。まず、制御回路13からの
記憶選択信号18が全量子化誤差記憶動作を示す場合
は、セレクタ25によって制御回路13からの画素クロ
ック信号14が直接書込み用アドレスカウンタ26及び
読出し用アドレスカウンタ27に印加され、その信号の
立上りエッジでカウンタ26,27がインクリメントさ
れ、量子化誤差記憶メモリ12に書込みアドレス信号2
0及び読出しアドレス信号21として出力される。即
ち、平均化回路16から各画素毎に出力される量子化誤
差データが、量子化誤差記憶メモリ12の各画素毎にイ
ンクリメントされたアドレスに書込まれ、そして量子化
誤差記憶メモリ12に記憶されている前ラインの量子化
誤差データが、各画素毎にインクリメントされたアドレ
スから読出される。この時は、セレクタ25によって選
択された、画素クロック信号14と同一周期のタイミン
グパルスが書込み読出しクロック信号19として平均化
回路16に出力される。
Next, the operation of the error data write / read circuit 17 will be described with reference to FIG. First, when the storage selection signal 18 from the control circuit 13 indicates the total quantization error storage operation, the pixel clock signal 14 from the control circuit 13 is directly applied to the write address counter 26 and the read address counter 27 by the selector 25. The counters 26 and 27 are incremented at the rising edge of the signal, and the write address signal 2 is written in the quantization error storage memory 12.
It is output as 0 and the read address signal 21. That is, the quantization error data output from the averaging circuit 16 for each pixel is written in the address incremented for each pixel in the quantization error storage memory 12, and stored in the quantization error storage memory 12. The quantized error data of the preceding line is read from the address incremented for each pixel. At this time, the timing pulse having the same cycle as the pixel clock signal 14 selected by the selector 25 is output to the averaging circuit 16 as the write / read clock signal 19.

【0026】2画素単位のブロック量子化誤差記憶動作
時は、制御回路13からの画素クロック信号14が1/
2パルス分周回路23によって1/2に分周されたパル
スがセレクタ25によって選択されてカウンタ26及び
27に印加され、そのパルスの立上りエッジでインクリ
メントされ、量子化誤差記憶メモリ12にアドレス信号
16として出力される。即ち、平均化回路16から2画
素毎に出力される量子化誤差データが、量子化誤差記憶
メモリ12の2画素毎にインクリメントされたアドレス
に書込まれ、そして量子化誤差記憶メモリ12に記憶さ
れている前ラインの量子化誤差データが、2画素毎にイ
ンクリメントされたアドレスから読出される。この時
は、セレクタ25によって選択された、画素クロック信
号14の2倍周期のタイミングパルスが書込み読出しク
ロック信号19として平均化回路16に出力される。
During the block quantization error storage operation in units of two pixels, the pixel clock signal 14 from the control circuit 13 is 1 /
The pulse divided by 1/2 by the 2-pulse frequency dividing circuit 23 is selected by the selector 25 and applied to the counters 26 and 27, incremented at the rising edge of the pulse, and the address signal 16 is supplied to the quantization error storage memory 12. Is output as. That is, the quantization error data output from the averaging circuit 16 for every two pixels is written to the address of the quantization error storage memory 12 that is incremented for every two pixels, and stored in the quantization error storage memory 12. The quantized error data of the preceding line being read is read from the address incremented for every two pixels. At this time, the timing pulse of the double cycle of the pixel clock signal 14 selected by the selector 25 is output to the averaging circuit 16 as the write / read clock signal 19.

【0027】4画素単位のブロック量子化誤差記憶動作
時は、制御回路13からの画素クロック信号14が1/
2パルス分周回路23によって1/2に、さらに1/2
パルス分周回路24によって1/2に分周され、結果と
して1/4に分周されたパルスがセレクタ25によって
選択されてカウンタ26及び27に印加され、そのパル
スの立上りエッジでインクリメントされ、量子化誤差記
憶メモリ12にアドレス信号16として出力される。即
ち、平均化回路16から4画素毎に出力される量子化誤
差データが、量子化誤差記憶メモリ12の4画素毎にイ
ンクリメントされたアドレスに書込まれ、そして量子化
誤差記憶メモリ12に記憶されている前ラインの量子化
誤差データが、4画素毎にインクリメントされたアドレ
スから読出される。この時は、セレクタ25によって選
択された、画素クロック信号14の4倍周期のタイミン
グパルスが書込み読出しクロック信号19として平均化
回路16に出力される。
During a block quantization error storage operation in units of 4 pixels, the pixel clock signal 14 from the control circuit 13 is 1 /
By the 2-pulse frequency dividing circuit 23, it is further halved to 1/2
The pulse divided by the pulse frequency dividing circuit 24 into 1/2, and as a result, the pulse divided into 1/4 is selected by the selector 25 and applied to the counters 26 and 27, which is incremented at the rising edge of the pulse and The address signal 16 is output to the digitization error storage memory 12. That is, the quantization error data output from the averaging circuit 16 every 4 pixels is written to the address of the quantization error storage memory 12 that is incremented every 4 pixels, and then stored in the quantization error storage memory 12. The quantized error data of the preceding line is read from the address incremented every 4 pixels. At this time, the timing pulse of the quadruple cycle of the pixel clock signal 14 selected by the selector 25 is output to the averaging circuit 16 as the write / read clock signal 19.

【0028】次に、図3〜図6によって平均化回路16
の詳細動作を説明する。まず、制御回路13からの記憶
選択信号18により全量子化誤差記憶動作が選択された
場合は、図4に示すように、誤差拡散演算回路9からの
1バイトの量子化誤差データ8(D1,…,D9)が、
制御回路13からの画素クロック信号14の立下り毎に
データ転送回路31にセットされ、次の画素クロック信
号14の立上り時にそれの内容が出力データ35として
出力され、それの立下り時に次段のデータ転送回路32
にセットされる。このようにして画素クロック信号14
の印加毎に量子化誤差データ8がデータ転送回路32,
33,34と転送され、4番目の画素クロック信号14
の立上り時に、出力データ38が全画素補正動作を選択
しているセレクタ47を通して、データ転送回路49に
セットされる。このセットされたデータが、画素クロッ
ク信号14と同周期の誤差データ書込み読出し回路17
からの書込み読出しクロック信号19の立上り毎に、書
込み量子化誤差データ22として量子化誤差記憶メモリ
12に出力される。
Next, the averaging circuit 16 will be described with reference to FIGS.
The detailed operation of will be described. First, when the full quantization error storage operation is selected by the storage selection signal 18 from the control circuit 13, as shown in FIG. 4, the 1-byte quantization error data 8 (D1, …, D9)
Each time the pixel clock signal 14 from the control circuit 13 falls, it is set in the data transfer circuit 31, its content is output as output data 35 at the next rising edge of the pixel clock signal 14, and at the falling edge of the next stage. Data transfer circuit 32
Is set to In this way, the pixel clock signal 14
The quantization error data 8 is transferred to the data transfer circuit 32,
33, 34 and the fourth pixel clock signal 14
At the rising edge of, the output data 38 is set in the data transfer circuit 49 through the selector 47 which selects the all-pixel correction operation. The set data is the error data write / read circuit 17 having the same cycle as the pixel clock signal 14.
Write quantization error data 22 is output to the quantization error storage memory 12 at every rise of the write / read clock signal 19 from.

【0029】一方、2画素単位のブロック記憶動作時
は、図5に示すように、データ転送回路31,32,3
3,34のデータ転送動作は上述の全画素補正動作と同
様であるが、2番目のデータ転送回路32の出力データ
36と3番目のデータ転送回路33の出力データ37と
が加算回路39で加算され、その加算データ40が1/
2除算回路43で1/2に除算されて平均化されたデー
タ44が、2画素単位のブロック記憶動作を選択してい
るセレクタ47を通して、データ転送回路49にセット
される。このセットされたデータが画素クロック信号1
4の2倍の周期である誤差データ書込み読出し回路17
からの書込み読出しクロック信号19の立上り毎に、書
込み量子化誤差データ22として量子化誤差記憶メモリ
12に出力される。
On the other hand, during the block storage operation in units of 2 pixels, as shown in FIG. 5, the data transfer circuits 31, 32, 3 are
The data transfer operations of 3 and 34 are similar to the above-described all-pixel correction operation, but the output data 36 of the second data transfer circuit 32 and the output data 37 of the third data transfer circuit 33 are added by the adder circuit 39. And the added data 40 is 1 /
The data 44 divided by 1/2 in the 2 division circuit 43 and averaged is set in the data transfer circuit 49 through the selector 47 that selects the block storage operation in units of 2 pixels. This set data is the pixel clock signal 1
Error data write / read circuit 17 having a cycle twice that of 4
Write quantization error data 22 is output to the quantization error storage memory 12 at every rise of the write / read clock signal 19 from.

【0030】他方、4画素単位のブロック記憶動作時
は、図6に示すように、データ転送回路31,32,3
3,34のデータ転送動作は上述の全画素補正動作と同
様であるが、全データ転送回路31,32,33,34
の出力データ35,36,37,38が加算回路41で
加算され、その加算データ42が1/4除算回路45で
1/4に除算されて平均化されたデータ46が、4画素
単位のブロック記憶動作を選択しているセレクタ47を
通して、データ転送回路49にセットされる。このセッ
トされたデータが画素クロック信号14の4倍の周期で
ある誤差データ書込み読出し回路17からの書込み読出
しクロック信号19の立上り毎に、書込み量子化誤差デ
ータ22として量子化誤差記憶メモリ12に出力され
る。
On the other hand, during the block storing operation in units of 4 pixels, as shown in FIG. 6, the data transfer circuits 31, 32, 3
The data transfer operations of 3, 34 are the same as the all-pixel correction operation described above, but all the data transfer circuits 31, 32, 33, 34
Output data 35, 36, 37, and 38 are added by an adder circuit 41, and the added data 42 is divided by 1/4 by a 1/4 divider circuit 45 to be averaged. It is set in the data transfer circuit 49 through the selector 47 which selects the storage operation. The set data is output to the quantization error storage memory 12 as the write quantization error data 22 at every rise of the write / read clock signal 19 from the error data write / read circuit 17 whose cycle is four times as long as the pixel clock signal 14. To be done.

【0031】以上のようにして量子化誤差記憶メモリ1
2に書込まれた量子化誤差データは、次ライン画素の誤
差拡散処理時に読出されるが、この時同じブロック内で
は複数の画素に対して同じ量子化誤差データが使用され
る。即ち、2画素単位のブロック記憶動作時は、図8に
おいて前ラインの量子化誤差データA〜Eが例えば、 A=B=(A+B)/2,C=D=(C+D)/2,E=
(E+E')/2 と置きかえられ、4画素単位のブロック記憶動作時は、
例えば A=B=C=D=(A+B+C+D)/4,E=(E+E'
+E''+E''')/4 と置きかえられる。ここに、E',E'',E'''はE対応
画素の次に順次配列された画素の量子化誤差データであ
る。
As described above, the quantization error storage memory 1
The quantized error data written in 2 is read at the time of the error diffusion processing of the pixel of the next line. At this time, the same quantized error data is used for a plurality of pixels in the same block. That is, in the block storage operation in units of 2 pixels, the quantization error data A to E in the previous line in FIG. 8 are, for example, A = B = (A + B) / 2, C = D = (C + D) / 2, E =
It is replaced with (E + E ') / 2, and in the block storage operation of 4 pixel unit,
For example, A = B = C = D = (A + B + C + D) / 4, E = (E + E '
+ E '' + E ''') / 4 can be replaced. Here, E ′, E ″, and E ′ ″ are the quantization error data of the pixels sequentially arranged next to the E corresponding pixel.

【0032】この実施の形態では、1バイトの多値画素
データを2ビットの2値画素データに量子化する場合に
ついて説明したが、量子化される多値画素データのビッ
ト数が1バイトに限られるものでないことはもちろんで
あり、また、2値画素データに限らず低ビット数の多値
画素データに量子化する場合にも適用可能である。
In this embodiment, the case where 1-byte multi-valued pixel data is quantized into 2-bit binary pixel data has been described. However, the number of bits of quantized multi-valued pixel data is limited to 1 byte. Of course, it is not limited to binary pixel data, and is applicable not only to binary pixel data, but also to quantization into low-bit-number multivalued pixel data.

【0033】[0033]

【発明の効果】この発明は以上説明したように、画素デ
ータの量子化により生ずる量子化誤差データを複数画素
毎にブロック化し平均化して、ブロック毎の量子化誤差
データを量子化誤差記憶メモリに記憶させ得るように
し、全画素についての量子化誤差データの量子化誤差記
憶メモリへの記憶と、ブロック化し平均化した量子化誤
差データの記憶とを切換えるようにしたので、小容量の
量子化誤差記憶メモリを用いてもイメージセンサの画素
数変化に充分対応し得る画像信号処理装置が簡単な構成
変化で得られる効果がある。
As described above, according to the present invention, the quantization error data generated by the quantization of the pixel data is blocked and averaged for each plurality of pixels, and the quantization error data for each block is stored in the quantization error storage memory. Since it is possible to store the quantization error data for all pixels and to switch between the storage of the quantization error storage memory of the quantization error data for all pixels and the storage of the blocked and averaged quantization error data, the quantization error of a small capacity can be stored. Even if the storage memory is used, there is an effect that an image signal processing device that can sufficiently cope with the change in the number of pixels of the image sensor can be obtained by a simple change in the configuration.

【0034】また、上記のものにおいて、異った画素数
でブロック化された複数のブロック量子化誤差データを
切換えて量子化誤差記憶メモリに記憶させ得るようにし
たので、より広範囲のイメージセンサの画素数変化に対
応し得るという効果がある。
Further, in the above-mentioned one, since a plurality of block quantizing error data blocked by different numbers of pixels can be switched and stored in the quantizing error storing memory, the image sensor of a wider range can be used. This has an effect of being able to cope with a change in the number of pixels.

【0035】さらに、イメージセンサの画素数と量子化
誤差記憶メモリの記憶容量に応じて、全画素についての
量子化誤差データの記憶と、ブロック化し平均化した量
子化誤差データの記憶とを切換えるようにしたので、イ
メージセンサの画素数の設定によって自動的に最適の量
子化誤差データ記憶方法が選択できるという効果があ
る。
Further, depending on the number of pixels of the image sensor and the storage capacity of the quantization error storage memory, the storage of the quantization error data for all the pixels and the storage of the blocked and averaged quantization error data are switched. Therefore, the optimum quantization error data storage method can be automatically selected by setting the number of pixels of the image sensor.

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

【図1】 この発明の一実施の形態を示すブロック線
図。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】 この実施の形態の誤差データ書込み読出し回
路の一例を示す回路図。
FIG. 2 is a circuit diagram showing an example of an error data write / read circuit of this embodiment.

【図3】 この実施の形態の平均化回路の一例を示す回
路図。
FIG. 3 is a circuit diagram showing an example of an averaging circuit of this embodiment.

【図4】 この実施の形態における全画素量子化誤差記
憶動作を説明するタイムチャート。
FIG. 4 is a time chart for explaining an all-pixel quantization error storage operation in this embodiment.

【図5】 この実施の形態における2画素単位のブロッ
ク量子化誤差記憶動作を説明するタイムチャート。
FIG. 5 is a time chart explaining a block quantization error storage operation in units of two pixels in this embodiment.

【図6】 この実施の形態における4画素単位のブロッ
ク量子化誤差記憶動作を説明するタイムチャート。
FIG. 6 is a time chart explaining a block quantization error storing operation in units of 4 pixels according to the present embodiment.

【図7】 従来の画像信号処理装置を示すブロック線
図。
FIG. 7 is a block diagram showing a conventional image signal processing device.

【図8】 誤差拡散法を説明する図。FIG. 8 is a diagram illustrating an error diffusion method.

【図9】 量子化回路及び誤差拡散演算回路の詳細を示
す回路図。
FIG. 9 is a circuit diagram showing details of a quantization circuit and an error diffusion calculation circuit.

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

2 イメージセンサ、3 画像信号増幅回路、4 A/
D変換回路、5 入力画像データ、6 量子化回路、7
2値の画素データ、8 現ラインの量子化誤差デー
タ、9 誤差拡散演算回路、10 前ラインの量子化誤
差データ、11誤差拡散処理用データ、12 量子化誤
差記憶メモリ、13 制御回路、14画素クロック信
号、16 平均化回路(ブロック量子化誤差記憶手
段)、17誤差データ書込み読出し回路(ブロック量子
化誤差記憶手段)、18 記憶選択信号、19 書込み
読出しクロック信号、20 書込みアドレス信号、21
読出しアドレス信号、22 書込み量子化誤差デー
タ、25,47 セレクタ(量子化誤差記憶切換え手
段)。
2 image sensor, 3 image signal amplification circuit, 4 A /
D conversion circuit, 5 input image data, 6 quantization circuit, 7
Binary pixel data, 8 current line quantization error data, 9 error diffusion calculation circuit, 10 previous line quantization error data, 11 error diffusion processing data, 12 quantization error storage memory, 13 control circuit, 14 pixels Clock signal, 16 averaging circuit (block quantization error storage means), 17 error data write / read circuit (block quantization error storage means), 18 storage selection signal, 19 write / read clock signal, 20 write address signal, 21
Read address signal, 22 write quantization error data, 25, 47 selector (quantization error storage switching means).

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 イメージセンサ、画像信号増幅回路、こ
の画像信号増幅回路からの各画素信号を所定ビット数の
画素データに変換するアナログデジタル変換回路、この
アナログデジタル変換回路からの所定ビット数の画素デ
ータを誤差拡散処理して低ビット数の画素データに量子
化し出力するとともに、この量子化による各画素の量子
化誤差を演算して量子化誤差データを出力する量子化回
路、この量子化回路から出力された量子化誤差データを
記憶する量子化誤差記憶メモリ、及びこの量子化誤差記
憶メモリから読出された前ラインの所定画素の量子化誤
差データと、上記量子化回路において前に処理された現
ラインの所定画素の量子化誤差データとにより誤差拡散
処理用データを演算して上記量子化回路に出力する誤差
拡散演算回路とを備えた画像信号処理装置において、上
記量子化誤差記憶メモリに書込まれる量子化誤差データ
を複数画素毎にブロック化し平均化して、ブロック毎の
量子化誤差データを上記量子化誤差記憶メモリに記憶さ
せるブロック量子化誤差記憶手段と、1ラインの全画素
についての量子化誤差データの上記量子化誤差記憶メモ
リへの記憶と、上記ブロック量子化誤差記憶手段による
記憶とを切換える量子化誤差記憶切換え手段とを設けた
ことを特徴とする画像信号処理装置。
1. An image sensor, an image signal amplification circuit, an analog-digital conversion circuit for converting each pixel signal from the image signal amplification circuit into pixel data having a predetermined number of bits, and a pixel having a predetermined number of bits from the analog-digital conversion circuit. Quantization circuit that performs error diffusion processing on data and quantizes and outputs it to pixel data with a low number of bits, and calculates the quantization error of each pixel by this quantization and outputs quantized error data. A quantization error storage memory that stores the output quantization error data, the quantization error data of a predetermined pixel on the previous line read from this quantization error storage memory, and the current value that was previously processed in the quantization circuit. An error diffusion calculation circuit for calculating error diffusion processing data based on the quantized error data of a predetermined pixel on the line and outputting the data to the quantization circuit. In the image signal processing device, the quantization error data written in the quantization error storage memory is divided into blocks for each plurality of pixels and averaged, and the quantization error data for each block is stored in the quantization error storage memory. Quantization error storage means, quantization error storage switching means for switching between storage of the quantization error data for all pixels in one line in the quantization error storage memory, and storage by the block quantization error storage means. An image signal processing device provided.
【請求項2】 ブロック量子化誤差記憶手段は、異った
画素数についてブロック化する複数のブロック量子化誤
差記憶手段からなることを特徴とする請求項1記載の画
像信号処理装置。
2. The image signal processing apparatus according to claim 1, wherein the block quantization error storage means is composed of a plurality of block quantization error storage means for dividing into blocks for different numbers of pixels.
【請求項3】 量子化誤差記憶切換え手段は、イメージ
センサの画素数と、量子化誤差記憶メモリの記憶容量に
応じて、全画素についての量子化誤差データの記憶とブ
ロック量子化誤差記憶手段による記憶とを切換えるよう
にしたことを特徴とする請求項1または2記載の画像信
号処理装置。
3. The quantizing error memory switching means comprises means for storing the quantizing error data for all pixels and a block quantizing error memory means according to the number of pixels of the image sensor and the memory capacity of the quantizing error memory memory. 3. The image signal processing device according to claim 1, wherein the image signal processing device is switched between storage and storage.
JP8075586A 1996-03-29 1996-03-29 Image signal processor Pending JPH09270913A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8075586A JPH09270913A (en) 1996-03-29 1996-03-29 Image signal processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8075586A JPH09270913A (en) 1996-03-29 1996-03-29 Image signal processor

Publications (1)

Publication Number Publication Date
JPH09270913A true JPH09270913A (en) 1997-10-14

Family

ID=13580462

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8075586A Pending JPH09270913A (en) 1996-03-29 1996-03-29 Image signal processor

Country Status (1)

Country Link
JP (1) JPH09270913A (en)

Similar Documents

Publication Publication Date Title
US6831684B1 (en) Circuit and method for pixel rearrangement in a digital pixel sensor readout
US20220006966A1 (en) Image sensing system and operating method thereof
KR970049856A (en) Sensor distance correction method and circuit in an image reading device having a plurality of licensors
JPH11187264A (en) Method and device for processing image
TW522723B (en) Circuit and method for pixel rearrangement in a digital pixel sensor readout
JP2000244922A (en) Method for compressing picture data
JPH09270913A (en) Image signal processor
US20060007456A1 (en) Image signal processing device
JPH0698157A (en) Halftone image forming device
JP2000244744A (en) Image data compression method and image data management method
JP3209396B2 (en) Image data compression method and apparatus
JP2506205B2 (en) Black level correction device
JP3774523B2 (en) Image processing apparatus and control method thereof
JP2004289846A (en) System and method of compensating noise of fetched image
JP2697679B2 (en) Dither image display device
JPS63290070A (en) Picture processor
JPH09252403A (en) Image signal processing unit
JP2934971B2 (en) Image binarization processing device
JPS5938789B2 (en) Image signal predictive restoration device
JPH04217173A (en) Method and device for converting picture data
JPH04165821A (en) A/d converter
JPH07111586A (en) Image processing device
JPS6295669A (en) Picture processor
JPH0618437B2 (en) Image signal processor
JPS60182269A (en) Picture processing method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050201

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20051101