JPH08130644A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JPH08130644A
JPH08130644A JP6288577A JP28857794A JPH08130644A JP H08130644 A JPH08130644 A JP H08130644A JP 6288577 A JP6288577 A JP 6288577A JP 28857794 A JP28857794 A JP 28857794A JP H08130644 A JPH08130644 A JP H08130644A
Authority
JP
Japan
Prior art keywords
error
data
pixel
weighting
picture element
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.)
Withdrawn
Application number
JP6288577A
Other languages
Japanese (ja)
Inventor
Hideyuki Kobayashi
秀幸 小林
Masami Yamano
雅美 山野
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.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP6288577A priority Critical patent/JPH08130644A/en
Publication of JPH08130644A publication Critical patent/JPH08130644A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE: To obtain a binarized image operated at a high speed by applying error diffusion processing to weighting arithmetic operation for an error of a just preceding picture element through data conversion with a 2nd memory means. CONSTITUTION: A register 6 being a 1st memory means latches error data produced when a picture element signal of a preceding line to a noticed picture element is binarized. A current line error data conversion section 10 applies weighting arithmetic operation to data of a picture element just precedingly to a noticed picture element through data conversion by a 2nd memory means. An adder block 2 reflects data from a preceding line error weighting block 1 and data from the conversion section 10 onto the noticed picture element to correct the luminance. Thus, the weighting arithmetic operation for the error of the preceding picture element is conducted through data conversion by the 2nd memory means in this way to eliminate the need for complicated processing such as multiplication, division and comparison discrimination and a gray level image is subjected to error diffusion processing at a high speed to obtain a binary image.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、濃淡画像信号を誤差
拡散法により2値化する画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for binarizing a grayscale image signal by an error diffusion method.

【0002】[0002]

【従来の技術】従来より、ディジタルプリンタ、ディジ
タル複写機等において中間調を表現するための2値化手
法として、1975年にFloid とSteinberg により、
“An Adaptive Algorithm for Spatial Grayscale ”
(Proceeding of the S. I. D. Vol. 17/2 Second
Quater 1975)という論文の中で提案された誤差拡
散法がある。この2値化手法は、2値化処理で発生した
誤差を周辺の画素に分散し、画像濃度を保存することに
特徴がある。この手法を実施する一般的な回路構成のブ
ロック図を図3に示す。図3においては、1は前ライン
の誤差と重み付け係数との積和演算を行うための前ライ
ン誤差重み付けブロック、2は着目画素に周辺の誤差量
を加味させる加算ブロック、3は着目画素の輝度データ
を修正した輝度データに対して、2値データ及び誤差量
を演算するための誤差演算処理ブロック、4は現ライン
の誤差と重み付け係数との積和演算を行うための現ライ
ン誤差重み付けブロック、5はセンサの画素マトリクス
のライン数分のラインメモリを持ちnライン遅延させる
為のnライン遅延線である。なお、6は1段のDフリッ
プフロップからなるレジスタである。
2. Description of the Related Art Conventionally, as a binarizing method for expressing a halftone in a digital printer, a digital copying machine, etc., in 1975, Floid and Steinberg,
“An Adaptive Algorithm for Spatial Grayscale”
(Proceeding of the SID Vol. 17/2 Second
There is an error diffusion method proposed in a paper called Quater 1975). This binarization method is characterized in that the error generated in the binarization process is dispersed to surrounding pixels and the image density is preserved. A block diagram of a general circuit configuration for implementing this technique is shown in FIG. In FIG. 3, 1 is a front line error weighting block for performing a product-sum operation of the error of the previous line and a weighting coefficient, 2 is an addition block for adding the peripheral error amount to the pixel of interest, and 3 is the luminance of the pixel of interest. An error calculation processing block for calculating binary data and an error amount with respect to the corrected brightness data, 4 is a current line error weighting block for performing a sum of products operation of an error of the current line and a weighting coefficient, Reference numeral 5 is an n-line delay line having a line memory for the number of lines of the pixel matrix of the sensor for delaying n lines. Reference numeral 6 is a register composed of one stage D flip-flop.

【0003】このように構成された誤差拡散処理回路の
動作については、先に本件出願人の出願に係る特願平6
−106219号の中でも述べられているが、今、2値
化の例として図4の(A)に示すような2ラインのマト
リクスサイズを考える。この場合、Pを着目画素データ
とするとG1,G2,G3,GP1はその位置における
2値化した時の誤差量を表し、図4の(B)はその誤差
量に対する重み付け係数を表している。ここでαは、次
式(1)で表される。 α=K1+K2+K3+K4 ・・・・・(1)
Regarding the operation of the error diffusion processing circuit configured as described above, Japanese Patent Application No.
As described in No. -106219, consider a two-line matrix size as shown in FIG. 4A as an example of binarization. In this case, when P is the pixel data of interest, G1, G2, G3, and GP1 represent the error amount when binarizing at that position, and (B) of FIG. 4 represents the weighting coefficient for the error amount. Here, α is represented by the following equation (1). α = K1 + K2 + K3 + K4 (1)

【0004】次に、このマトリクスをもとに、図3に示
した誤差拡散処理回路の動作について説明する。前ライ
ン誤差重み付けブロック1では、ライン遅延線5にて遅
延された1ライン前の誤差G1,G2,G3に、それぞ
れK1/α,K2/α,K3/αとの乗算を行った後、
和をとっている。このブロック1における演算は次式
(2)のようになる。 前ライン誤差総和=(K1/α)・G1+(K2/α)・G2+(K3/α) ・G3 ・・・・・(2) 一方、現ラインの誤差については現ライン誤差重み付け
ブロック4にて、次式(3)のような演算を行う。 現ライン誤差総和=(K4/α)・GP1 ・・・・・(3) この例では現ラインの誤差は、1画素前のデータのみ用
いていることから、現ライン誤差重み付けブロック4は
図5に示すような回路構成となる。図5において、7は
誤差と重み付け係数の乗算を行うための乗算器である。
もし、図6の(A),(B)に示すような画素マトリク
ス,重み付け係数の場合は、現ライン誤差重み付けブロ
ック4は図7に示すような構成となる。このように現ラ
インの参照画素誤差を多くとると、その画素分の乗算器
7が必要になり、更にn個前の誤差に対してはn段のD
フリップフロップが必要となる。
Next, the operation of the error diffusion processing circuit shown in FIG. 3 will be described based on this matrix. In the previous line error weighting block 1, the errors G1, G2 and G3 one line before, which are delayed by the line delay line 5, are multiplied by K1 / α, K2 / α and K3 / α, respectively,
I'm taking a sum. The calculation in this block 1 is expressed by the following equation (2). Previous line error sum = (K1 / α) · G1 + (K2 / α) · G2 + (K3 / α) · G3 (2) On the other hand, regarding the error of the current line, the current line error weighting block 4 is used. Then, the calculation as in the following equation (3) is performed. Current line error sum = (K4 / α) · GP1 (3) In this example, since the error of the current line uses only the data one pixel before, the current line error weighting block 4 is shown in FIG. The circuit configuration is as shown in. In FIG. 5, 7 is a multiplier for multiplying the error and the weighting coefficient.
If the pixel matrix and the weighting coefficient are as shown in FIGS. 6A and 6B, the current line error weighting block 4 has a configuration as shown in FIG. If the reference pixel error of the current line is large in this way, the multiplier 7 for that pixel is required, and n stages of D-stages are required for the error of the nth previous pixel.
You need a flip-flop.

【0005】前ライン誤差重み付けブロック1及び現ラ
イン誤差重み付けブロック4で重み付けされた誤差は、
加算ブロック2にて着目画素の輝度データに加算して、
着目画素の輝度データに周辺の誤差情報を反映させてい
る。この加算ブロック2にて修正されたデータは誤差演
算処理ブロック3にて、着目画素の白/黒の判定が行わ
れ、且つその時の誤差量が計算され、後の画素の2値化
を行う際の誤差として利用するようになっている。
The error weighted by the previous line error weighting block 1 and the current line error weighting block 4 is
In the addition block 2, the luminance data of the pixel of interest is added,
The peripheral error information is reflected in the luminance data of the pixel of interest. The data corrected by the addition block 2 is subjected to the error calculation processing block 3 to determine whether the pixel of interest is white / black, and the error amount at that time is calculated, and when the subsequent pixel is binarized. It is designed to be used as the error of.

【0006】図4に示すマトリクスに対して、これらの
動作を実現するためには、図3に示すブロック図は図8
に示すように具体化される。図8において、21−1〜21
−8は1段のレジスタ、22−1〜22−4は重み付け係数
と誤差量の積算を行うための乗算器、23−1〜23−4は
加算器、24はd信号がスレッシュレベル(Thresh)より
小さい時、“H”を出力するための比較器、25は減算
器、26はS端子が“L”の時減算器25の出力を選択し、
“H”の時d信号を選択するセレクタ、27は1ライン分
の誤差を格納するためのラインメモリである。
In order to realize these operations for the matrix shown in FIG. 4, the block diagram shown in FIG.
It is embodied as shown in. In FIG. 8, 21-1 to 21
-8 is a one-stage register, 22-1 to 22-4 are multipliers for integrating the weighting coefficient and the error amount, 23-1 to 23-4 are adders, and 24 is a threshold level of the d signal. ), A comparator for outputting "H", 25 is a subtractor, 26 is an output of the subtractor 25 when the S terminal is "L",
A selector for selecting the d signal when it is "H", and a line memory 27 for storing an error for one line.

【0007】次に、上記構成の誤差拡散処理回路の動作
を、図9のタイミングチャートに基づいて説明する。着
目画素Pの画素データの2値化を行うことを考えた場
合、周辺(1ライン前)の誤差量G1〜G3を図9に示
すように、時刻t0でG1、時刻t1でG2、時刻t2
でG3を誤差データとして入力したとすると、a信号
は、乗算器22−1で誤差量G1と係数K1/αの積算
を行い、レジスタ21−2を介して出力される信号であ
り、b信号は、乗算器22−2で誤差量G2と係数K2
/αの積算を行い、その積算信号に前記a信号を加算器
23−1で加算し、レジスタ21−3を介して出力され
る信号であり、同様にc信号は、乗算器22−3で誤差
量G3と係数K3/αの積算を行い、その積算信号に前
記b信号を加算器23−2で加算し、レジスタ21−4
を介して出力される信号である。この時のc信号は、周
辺(1ライン前)の誤差量の演算の総和を表している。
(時刻t4)
Next, the operation of the error diffusion processing circuit having the above configuration will be described with reference to the timing chart of FIG. When considering binarizing the pixel data of the pixel of interest P, the error amounts G1 to G3 of the periphery (one line before) are G1 at time t0, G2 at time t1, and time t2 as shown in FIG.
If G3 is input as error data in, the a signal is a signal that is output through the register 21-2 after the error amount G1 and the coefficient K1 / α are integrated in the multiplier 22-1, and the b signal is Is the error amount G2 and the coefficient K2 in the multiplier 22-2.
/ Α is integrated, the a signal is added to the integrated signal by the adder 23-1, and is output through the register 21-3. Similarly, the c signal is output by the multiplier 22-3. The error amount G3 and the coefficient K3 / α are integrated, the b signal is added to the integrated signal by the adder 23-2, and the register 21-4 is added.
Is a signal output via. The c signal at this time represents the sum total of the calculation of the error amount of the periphery (one line before).
(Time t4)

【0008】次の時刻t5では、着目画素Pに対して周
辺の誤差により補正された画素データdとなる。この修
正された画素データdに対して、2値化を行うわけであ
るが、この修正された画素データdが、比較器24にお
いてあらかじめ設定しておいた2値化のスレッシュレベ
ル(Thresh)と比較され、スレッシュレベルより大きい
時、出力は“L”と判定され、時刻t6において、2値
出力D1として白(“L”)を出力する。同様に画素デ
ータdがスレッシュレベルより小さい時は時刻t7にお
いて、2値出力D2として黒(“H”)を出力する。
At the next time t5, the pixel data d is corrected by the peripheral error with respect to the pixel of interest P. The corrected pixel data d is binarized, and the corrected pixel data d corresponds to the binarized threshold level (Thresh) preset in the comparator 24. When compared, the output is determined to be "L" when it is higher than the threshold level, and white ("L") is output as the binary output D1 at time t6. Similarly, when the pixel data d is smaller than the threshold level, black (“H”) is output as the binary output D2 at time t7.

【0009】この比較器24における判定において、白
(“L”)と判定した時、セレクタ26は減算器25の
出力を選択する。減算器25においては、画素データd
とWhite (白の最大レベル)との減算を行い、White か
らの誤差を着目画素Pにおける誤差量として、セレクタ
26から送出する。また、比較器24における判定にお
いて、黒(“H”)と判定した時、セレクタ26は画素
データdを選択し、黒の最大レベル(“0”)との誤
差、すなわち画素データdを着目画素Pにおける誤差量
として送出する。この誤差量は次の画素の処理をする時
の左隣の誤差量GP1として帰還をかけ、また、次のラ
インの誤差として用いるために、ラインメモリ27に格
納する。このような処理を行うことにより、濃淡画像を
誤差拡散処理して2値画像を得ることができる。
When the comparator 24 makes a judgment of white ("L"), the selector 26 selects the output of the subtractor 25. In the subtractor 25, the pixel data d
And White (the maximum white level) are subtracted, and the error from White is sent from the selector 26 as the error amount in the pixel of interest P. When the comparator 24 determines that the pixel is black (“H”), the selector 26 selects the pixel data d, and the error from the maximum black level (“0”), that is, the pixel data d It is sent as an error amount at P. This error amount is fed back as an error amount GP1 on the left side when processing the next pixel, and is stored in the line memory 27 to be used as an error of the next line. By performing such processing, it is possible to obtain a binary image by performing error diffusion processing on the grayscale image.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、このよ
うな構成の誤差拡散処理回路においては、誤差演算処理
ブロックにて演算された誤差の値を、次の着目画素の誤
差演算時に必要となり、映像信号をリアルタイムで処理
するのが困難であるという問題があった。この場合、直
前(1画素前)の画素位置における誤差の重み付け演算
が一番処理時間がかかる。具体的には図3に示したブロ
ック図においては、誤差演算処理ブロック3→現ライン
誤差重み付けブロック4→加算ブロック2→レジスタ6
の信号系であり、図8に示す回路構成図では、減算器25
→セレクタ26→乗算器22−4→加算器23−3→加算器23
−4→レジスタ21−5の信号系であり、この信号系の動
作を速くすることが、システムの高速処理につながるも
のであった。
However, in the error diffusion processing circuit having such a configuration, the error value calculated by the error calculation processing block is required at the time of error calculation of the next pixel of interest, and the video signal Was difficult to process in real time. In this case, the weighting calculation of the error at the immediately preceding pixel position (one pixel before) takes the longest processing time. Specifically, in the block diagram shown in FIG. 3, the error calculation processing block 3 → current line error weighting block 4 → addition block 2 → register 6
In the circuit configuration diagram shown in FIG. 8, the subtractor 25
→ Selector 26 → Multiplier 22-4 → Adder 23-3 → Adder 23
-4 → Register 21-5 is a signal system, and speeding up the operation of this signal system has led to high-speed processing of the system.

【0011】本発明は、従来の誤差拡散処理法による2
値化画像処理装置における上記問題点を解消するために
なされたもので、高速に動作させることの可能な誤差拡
散法を用いた2値化画像処理装置を提供することを目的
とする。
The present invention is based on the conventional error diffusion processing method.
The object of the present invention is to provide a binarized image processing device using an error diffusion method that can be operated at high speed, and has been made in order to solve the above problems in the binarized image processing device.

【0012】[0012]

【課題を解決するための手段及び作用】上記問題点を解
決するため、本発明は、センサにより被写体の濃淡画像
信号を取得し、該画像信号から誤差拡散法により2値化
画像信号を得るようにした画像処理装置において、着目
画素より以前のラインの画素の信号を2値化した時に生
じる誤差データを保持しておく第1のメモリ手段と、前
記前ライン誤差データに対して重み付けをする手段と、
第2のメモリ手段によるデータ変換により着目画素の直
前画素の誤差データの重み付けを行う手段と、前記前ラ
イン誤差重み付け手段からのデータと前記直前画素誤差
重み付け手段からのデータとを着目画素に反映して輝度
を補正する加算手段と、該加算手段からの補正画素デー
タに対してスレッシュレベルで2値化し、且つその時の
誤差データを演算する手段とを備え、直前画素の誤差重
み付けデータを第2のメモリ手段によるデータ変換によ
り求め誤差拡散処理を行うように画像処理装置を構成す
るものである。なお、第1のメモリ手段としては、ライ
ンメモリ,シフトレジスタ等が用いられ、第2のメモリ
手段としては、ROM,RAM等が用いられる。
In order to solve the above problems, the present invention acquires a grayscale image signal of a subject by a sensor and obtains a binarized image signal from the image signal by an error diffusion method. In the image processing apparatus described above, a first memory means for holding error data generated when a signal of a pixel on a line before the pixel of interest is binarized, and a means for weighting the preceding line error data. When,
A means for weighting the error data of the immediately preceding pixel of the pixel of interest by data conversion by the second memory means, the data from the preceding line error weighting means and the data from the immediately preceding pixel error weighting means are reflected in the pixel of interest. And adding means for correcting the luminance to correct the brightness, and means for binarizing the corrected pixel data from the adding means at the threshold level and calculating the error data at that time. The image processing apparatus is configured to perform the error diffusion processing obtained by the data conversion by the memory means. A line memory, a shift register or the like is used as the first memory means, and a ROM, a RAM or the like is used as the second memory means.

【0013】このように構成した画像処理装置において
は、処理を高速化する場合に一番ネックとなる直前画素
の誤差の重み付け演算を第2のメモリ手段によるデータ
変換により行うようにしたので、より高速の誤差拡散処
理を実現することができる。他の画素の誤差の重み付け
演算は、処理を行う上では問題とならないので、従来通
りの演算器を用いて演算を行うことにより、特別にRO
Mを用いることなく簡単な構成で誤差拡散処理を行い、
2値画像を得ることができる。
In the image processing apparatus configured as described above, the weighting calculation of the error of the immediately preceding pixel, which becomes the most bottleneck in speeding up the processing, is performed by the data conversion by the second memory means. High-speed error diffusion processing can be realized. Since the weighting calculation of the error of other pixels does not cause any problem in the processing, the RO calculation is performed by using the conventional arithmetic unit.
Perform error diffusion processing with a simple configuration without using M,
A binary image can be obtained.

【0014】[0014]

【実施例】次に,実施例について説明する。図1は、本
発明に係る画像処理装置の基本的な構成を示すブロック
構成図であり,図3に示した従来例と同一又は対応する
部材には同一符号を付して示している。図1において、
1は前ラインの誤差と重み付け係数との積和演算を行う
ための前ライン誤差重み付けブロック、2は着目画素に
周辺の誤差量を加味させる加算ブロック(着目画素補正
ブロック)、3は着目画素の輝度データを修正した輝度
データに対して、2値データ及び誤差量を演算するため
の誤差演算処理ブロック、5はマトリクスのライン数分
のラインメモリを持ちnライン遅延させる為のnライン
遅延線、6は1段のレジスタ(Dフリップフロップ)、
10は現ライン誤差データ変換部(ルックアップテーブ
ル)である。
EXAMPLES Next, examples will be described. FIG. 1 is a block configuration diagram showing a basic configuration of an image processing apparatus according to the present invention, and the same or corresponding members as those of the conventional example shown in FIG. 3 are designated by the same reference numerals. In FIG.
1 is a front line error weighting block for performing a product-sum operation of the error of the previous line and a weighting coefficient, 2 is an addition block (target pixel correction block) for adding the peripheral error amount to the target pixel, and 3 is the target pixel An error calculation processing block for calculating binary data and an error amount with respect to the brightness data in which the brightness data is corrected, 5 has a line memory for the number of lines in the matrix, and an n-line delay line for delaying n lines, 6 is a one-stage register (D flip-flop),
Reference numeral 10 is a current line error data conversion unit (lookup table).

【0015】次に、図1に示した基本的な構成の具体的
な回路構成を図2に示す。図2に示す回路構成は、RO
M28を備えている点以外は図8に示した従来例と同じな
ので、その説明を省略する。ROM28はアドレスを入力
することにより予め入力しておいたデータを読み出すこ
とのできるメモリで、レジスタ21−5からの補正画素デ
ータdを入力とし、出力を加算器23−3に接続してい
る。
Next, FIG. 2 shows a specific circuit configuration of the basic configuration shown in FIG. The circuit configuration shown in FIG.
The description is omitted because it is the same as the conventional example shown in FIG. 8 except that the M28 is provided. The ROM 28 is a memory capable of reading out the previously input data by inputting an address, receives the corrected pixel data d from the register 21-5 as an input, and has its output connected to the adder 23-3.

【0016】次に、図2に示す回路の動作について説明
する。着目画素は8ビットのデータで表されているとす
ると、最大レベル(白レベル)は255 である。加算器23
−4では周囲の誤差データを着目画素を加えて補正画素
データを出力するようになっている。ここで誤差データ
を加えた補正画素データが“255 ”を超える場合は“25
5 ”に、負の値になるときは“0”になるようにクリッ
プを行っている。したがって、補正画素データdの値は
常に8ビットとなる。次に、この8ビットの補正画素デ
ータdをROM28のアドレスとして入力し、予め入力し
ておいたROM28のデータを読み出すようにしている。
すなわち、このROM28は、直前画素の誤差重み付け演
算を行い、補正画素データをもとに誤差を重み付けした
値に変換すると等価な機能を有することになる。
Next, the operation of the circuit shown in FIG. 2 will be described. If the pixel of interest is represented by 8-bit data, the maximum level (white level) is 255. Adder 23
At -4, corrected pixel data is output by adding the target pixel to the surrounding error data. If the corrected pixel data added with the error data exceeds "255" here, "25"
The value of the corrected pixel data d is always 8 bits, so that the value of the corrected pixel data d is always 8 bits. Is input as the address of the ROM 28, and the previously input data of the ROM 28 is read out.
That is, the ROM 28 has an equivalent function when the error weighting calculation of the immediately preceding pixel is performed and the error pixel weighted value is converted based on the corrected pixel data.

【0017】このROM28により変換するデータは、補
正画素(輝度)データdに対して、次のような値を入れ
ておくとよい。 0≦d≦Threshの時 ・・・・・(K4/α)×d Thresh≦d≦White の時 ・・・(K4/α)×(d−
White ) K4/αはシステム(誤差マトリクス)により決定され
る定数であり、White は“255 ”の固定値、Threshを
“128 ”の固定値とすれば、256 ワードの容量のROM
を用いればよい。
The data to be converted by the ROM 28 should have the following values for the corrected pixel (luminance) data d. When 0 ≦ d ≦ Thresh ・ ・ ・ (K4 / α) × d Thresh ≦ d ≦ White ・ ・ ・ (K4 / α) × (d-
White) K4 / α is a constant determined by the system (error matrix), White is a fixed value of "255", and Thresh is a fixed value of "128".
Can be used.

【0018】また、前出の特願平6−106221号の
出願において示したように、Whiteを可変することによ
り、画像の明るさが変えられることはよく知られてい
る。一般に、White は値を小さくするほど、すなわちTh
reshに近づけるほど明るい画像が得られる。
It is well known that the brightness of an image can be changed by changing White as shown in the above-mentioned Japanese Patent Application No. 6-106221. Generally, the smaller the value of White, that is, Th
The closer to resh, the brighter the image.

【0019】この原理を本発明に適用した場合、例えば
White の値を、“255 ”,“223 ”,“191 ”,“159
”の4段階の可変にしたとすると、表1に示すよう
に、それぞれのWhite に対応する(K4/α)×(d−
White )の値を、ROMに入れておけばよい。
When this principle is applied to the present invention, for example,
Set the White value to "255", "223", "191", "159".
Assuming that it is made variable in four levels of “, as shown in Table 1, (K4 / α) × (d−) corresponding to each White
The value of (White) should be stored in ROM.

【0020】[0020]

【表1】 [Table 1]

【0021】すなわち、White の値をn段にするなら
ば、256 ×nワードのROMを用いるとよい。
That is, if the value of White is set to n stages, it is preferable to use a ROM of 256 × n words.

【0022】上記実施例では、補正画素データdをアド
レスとして、そのまま利用するようにしたものを示した
が、補正画素データdの8ビットの内、上位ビットのみ
をアドレスとして用いることにより、ROMの容量を削
減することができる。すなわち、例えば8ビットの場
合、28 =256 ワードの容量が必要であるが、下位2ビ
ットを使用せず切り捨てて、上位6ビットのみをROM
のアドレスとして利用すれば、26 =64ワードの容量の
ROMで済ますことができる。この場合、隣の1画素の
誤差が多少正確ではなくなるが、下位2ビット程度を切
り捨てても、見かけ上特に問題はないことが確認されて
いる。なお、メモリとしてROMを用いた場合は、RO
Mのアクセスタイムは(誤差拡散処理の処理時間/1画
素)よりも短い時間に設定されている。
In the above embodiment, the correction pixel data d is used as an address and used as it is. However, by using only the upper bits of the 8 bits of the correction pixel data d as an address, the ROM The capacity can be reduced. That is, for example, in the case of 8 bits, a capacity of 2 8 = 256 words is required, but the lower 2 bits are not used and are discarded, and only the upper 6 bits are stored in the ROM.
If it is used as the address of, a ROM with a capacity of 2 6 = 64 words can be used. In this case, the error of the adjacent one pixel becomes somewhat inaccurate, but it has been confirmed that there is no particular problem in appearance even if the lower 2 bits are discarded. If ROM is used as the memory, RO
The access time of M is set to a time shorter than (processing time of error diffusion processing / 1 pixel).

【0023】また上記実施例では、直前画素の誤差重み
付け演算のみにROMを用いたものを示したが、これ以
外の箇所の誤差重み付け演算にもROMを利用して処理
することもできる。
Further, in the above embodiment, the ROM is used only for the error weighting calculation of the immediately preceding pixel, but the ROM can be used for the error weighting calculation of other portions.

【0024】[0024]

【発明の効果】以上実施例に基づいて説明したように、
本発明によれば、前画素の誤差の重み付け演算をROM
等の第2のメモリ手段によるデータ変換により行うよう
にしているので、乗算、除算、比較判定などの複雑な処
理が不必要となり、濃淡画像を高速に誤差拡散処理して
2値画像を得ることができる。
As described above on the basis of the embodiments,
According to the present invention, the weighting calculation of the error of the previous pixel is performed in the ROM.
Since it is performed by the data conversion by the second memory means such as, the complicated processing such as multiplication, division and comparison determination is unnecessary, and the binary image is obtained by performing the error diffusion processing on the grayscale image at high speed. You can

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

【図1】本発明に係る画像処理装置の基本的な構成を示
すブロック構成図である。
FIG. 1 is a block configuration diagram showing a basic configuration of an image processing apparatus according to the present invention.

【図2】本発明の具体的な実施例を示す回路構成図であ
る。
FIG. 2 is a circuit configuration diagram showing a specific embodiment of the present invention.

【図3】従来の誤差拡散法を用いた2値化画像処理装置
の基本構成を示すブロック構成図である。
FIG. 3 is a block configuration diagram showing a basic configuration of a binary image processing apparatus using a conventional error diffusion method.

【図4】誤差拡散処理を説明するための誤差マトリクス
及び重み付け係数を示す図である。
FIG. 4 is a diagram showing an error matrix and a weighting coefficient for explaining the error diffusion processing.

【図5】図3に示した基本構成における現ライン誤差重
み付けブロックの構成例を示す図である。
5 is a diagram showing a configuration example of a current line error weighting block in the basic configuration shown in FIG.

【図6】一般的な画素マトリクスを説明するための図で
ある。
FIG. 6 is a diagram for explaining a general pixel matrix.

【図7】図3に示した現ライン誤差重み付けブロックを
図6に示すマトリクスで実現するための回路構成例を示
す図である。
7 is a diagram showing a circuit configuration example for realizing the current line error weighting block shown in FIG. 3 with the matrix shown in FIG. 6;

【図8】図3に示した基本構成の具体的な回路構成例を
示す図である。
FIG. 8 is a diagram showing a specific circuit configuration example of the basic configuration shown in FIG.

【図9】図8に示した回路構成例の動作を説明するため
のタイムチャートである。
9 is a time chart for explaining the operation of the circuit configuration example shown in FIG.

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

1 前ライン誤差重み付けブロック 2 加算ブロック 3 誤差演算処理ブロック 5 nライン遅延線 6 レジスタ 10 現ライン誤差データ変換部 1 Previous Line Error Weighting Block 2 Addition Block 3 Error Calculation Processing Block 5 n Line Delay Line 6 Register 10 Current Line Error Data Converter

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 センサにより被写体の濃淡画像信号を取
得し、該画像信号から誤差拡散法により2値化画像信号
を得るようにした画像処理装置において、着目画素より
以前のラインの画素の信号を2値化した時に生じる誤差
データを保持しておく第1のメモリ手段と、前記前ライ
ン誤差データに対して重み付けをする手段と、第2のメ
モリ手段によるデータ変換により着目画素の直前画素の
誤差データの重み付けを行う手段と、前記前ライン誤差
重み付け手段からのデータと前記直前画素誤差重み付け
手段からのデータとを着目画素に反映して輝度を補正す
る加算手段と、該加算手段からの補正画素データに対し
てスレッシュレベルで2値化し、且つその時の誤差デー
タを演算する手段とを備え、直前画素の誤差重み付けデ
ータを第2のメモリ手段によるデータ変換により求め誤
差拡散処理を行うようにしたことを特徴とする画像処理
装置。
1. An image processing apparatus, wherein a grayscale image signal of a subject is obtained by a sensor, and a binarized image signal is obtained from the image signal by an error diffusion method. First memory means for holding error data generated when binarized, means for weighting the preceding line error data, and error of the pixel immediately preceding the pixel of interest by data conversion by the second memory means. Data weighting means, adding means for correcting the luminance by reflecting the data from the previous line error weighting means and the data from the immediately preceding pixel error weighting means on the target pixel, and the correction pixel from the adding means And binarizing the data at a threshold level and calculating the error data at that time. The error weighting data of the immediately preceding pixel is stored in the second memory. An image processing apparatus characterized in that error diffusion processing is performed by data conversion by means.
JP6288577A 1994-10-31 1994-10-31 Image processing unit Withdrawn JPH08130644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6288577A JPH08130644A (en) 1994-10-31 1994-10-31 Image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6288577A JPH08130644A (en) 1994-10-31 1994-10-31 Image processing unit

Publications (1)

Publication Number Publication Date
JPH08130644A true JPH08130644A (en) 1996-05-21

Family

ID=17732073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6288577A Withdrawn JPH08130644A (en) 1994-10-31 1994-10-31 Image processing unit

Country Status (1)

Country Link
JP (1) JPH08130644A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1327692C (en) * 1998-07-17 2007-07-18 索尼公司 Imaging device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1327692C (en) * 1998-07-17 2007-07-18 索尼公司 Imaging device

Similar Documents

Publication Publication Date Title
EP1418543B1 (en) Contrast compensation in a digital image using histogram equalization
US6771832B1 (en) Image processor for processing an image with an error diffusion process and image processing method for processing an image with an error diffusion process
JP2756280B2 (en) Color image processing equipment
JPH02253765A (en) Picture processor
US5162925A (en) Color image processor capable of performing masking using a reduced number of bits
JPH04181875A (en) Picture processing unit
US6356361B1 (en) Image processing apparatus and method for processing gradation image data using error diffusion
JPH08130644A (en) Image processing unit
JPS62242473A (en) Pseudo halftone image processor
JP2521745B2 (en) Image processing device
JPH06245059A (en) Image processor
JPH08279903A (en) Binary picture processor
EP0840495B1 (en) Method and apparatus of correcting image data levels
JPH1042191A (en) Method and device for correcting back light of picture
JP3157870B2 (en) Image processing method
JPH0668250A (en) Image processor
JP3549475B2 (en) Image processing method
JP2946217B2 (en) Image processing device
JP3249341B2 (en) Image processing device
JP3363721B2 (en) Halftone processing method and image processing apparatus
JPH0554190A (en) Picture processor
JPH10164364A (en) Image reader
JP3089355B2 (en) Image processing device
JPH1028223A (en) Image data processor
JPH1032713A (en) Picture processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020115