JPH0425751B2 - - Google Patents

Info

Publication number
JPH0425751B2
JPH0425751B2 JP59105009A JP10500984A JPH0425751B2 JP H0425751 B2 JPH0425751 B2 JP H0425751B2 JP 59105009 A JP59105009 A JP 59105009A JP 10500984 A JP10500984 A JP 10500984A JP H0425751 B2 JPH0425751 B2 JP H0425751B2
Authority
JP
Japan
Prior art keywords
image signal
signal level
pixel
data
scanning window
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 - Lifetime
Application number
JP59105009A
Other languages
Japanese (ja)
Other versions
JPS60248071A (en
Inventor
Toshiharu Kurosawa
Hiroyoshi Tsucha
Hirotaka Ootsuka
Juji Maruyama
Katsuo Nakazato
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP59105009A priority Critical patent/JPS60248071A/en
Publication of JPS60248071A publication Critical patent/JPS60248071A/en
Publication of JPH0425751B2 publication Critical patent/JPH0425751B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 産業上の利用分野 本考案はフアクシミリ電送装置などのように一
度画像を走査分解した後再度画像を構成する一般
の画像走査・記憶装置または画像走査・表示装置
に用いられる画信号処理方法および画信号処理装
置に関するものである。
[Detailed Description of the Invention] Industrial Application Field The present invention is used in general image scanning/storage devices or image scanning/display devices that once scan and decompose an image and then compose the image again, such as a facsimile transmission device. The present invention relates to an image signal processing method and an image signal processing device.

従来技術の構成とその問題点 近年日常業務におけるフアクシミリ利用がます
ます拡大の一途であり、それとともに従来の白黒
二値の他に中間調の再現に対する要望も強まりつ
つある。中間調の再現に関しては記録装置と伝送
方式の両面から制約されることが多い。例えば写
真に使われる銀塩の印画紙に記憶する装置や感熱
記録装置などは中間調の記録特性が良いが、静電
記録装置やインクジエツト記録装置などは本質的
に二値記録に向いているものと云える。一方、伝
送方式ではこれまでのアナログ伝送からデイジタ
ル伝送に変りつつありデータ圧縮技術などを駆使
してより高速に効率よい電送を行なおうという傾
向にある。そこで白黒2値の記録装置を用いる擬
似中間調表示に良い方式があればこれからのデイ
ジタルデータ電送の方向とも符号し、より最適な
フアクシミリ電送システムを構成できるようにな
る。
Configuration of conventional technology and its problems In recent years, the use of facsimile in daily work has been expanding more and more, and along with this, the demand for reproduction of halftones in addition to the conventional black and white binary is also increasing. Reproduction of halftones is often restricted by both recording devices and transmission methods. For example, devices that store data on silver halide photographic paper used in photography and thermal recording devices have good halftone recording characteristics, but electrostatic recording devices and inkjet recording devices are essentially suited for binary recording. I can say that. On the other hand, the transmission method is changing from the conventional analog transmission to digital transmission, and there is a tendency to make full use of data compression technology to perform faster and more efficient transmission. Therefore, if there is a good method for pseudo-halftone display using a black and white binary recording device, it will be compatible with the future direction of digital data transmission, and it will be possible to construct a more optimal facsimile transmission system.

さて、擬似中間調表示の代表的なものには新
聞・雑誌などの印刷画像にみられる網点化の方法
と、閾値のマトリクステーブルに従つて画像を二
値化していくデイザ法とがある。しかしながらこ
れら従来の方法は文字や線画などの二値画像に対
してはその分解能を劣化させる欠点があり、従つ
て中間濃度と二値画像が混在する画像に対しては
そのいずれかを犠牲にせざるをえなくなる。
Now, typical methods of pseudo-halftone display include the halftone method seen in printed images of newspapers and magazines, and the dither method in which the image is binarized according to a matrix table of threshold values. However, these conventional methods have the disadvantage of deteriorating the resolution for binary images such as characters and line drawings, and therefore, for images that contain a mixture of intermediate density and binary images, one or the other must be sacrificed. You won't be able to use it.

以下、従来例の一つとして二値画像の分解能劣
化が比較的少ない擬似中間調表示であるデイザ法
について第1図を用いて説明する。同図aにおい
て、1は量子化された原画データ、2は閾値デー
タ、3は二値化データを示すパターンである。原
画データDxyは対応する位置の閾値データSxyと大
小比較され、大きければ黒(=1)、大きくなけ
れば白(=0\)として閾値処理され二値化データ
Pxyに変換される。閾値データ2は例えば同図b
に示すような4×4の大きさをもつ閾値データが
繰返し展開されている。閾値の窓が4×4の場合
は16種の閾値を設定でき、従つて原画データに対
して擬似的に17レベルを表わす中間調表示が可能
となる。同図bに示すDnaxは原画データの最大
値を表わしている。
The dither method, which is a pseudo-halftone display with relatively little deterioration in the resolution of binary images, will be described below as one of the conventional examples with reference to FIG. In the figure a, 1 is a pattern indicating quantized original image data, 2 is a pattern indicating threshold value data, and 3 is a pattern indicating binarized data. The original image data D xy is compared in size with the threshold data S xy at the corresponding position, and if it is larger, it is black (=1), otherwise it is thresholded as white (=0\), and the binarized data is processed.
Converted to P xy . For example, threshold data 2 is shown in figure b.
Threshold data having a size of 4×4 as shown in the figure is repeatedly expanded. When the threshold value window is 4×4, 16 types of threshold values can be set, and therefore, halftone display that pseudo-expresses 17 levels for the original image data is possible. D nax shown in FIG. 5B represents the maximum value of the original image data.

以上、第1図の例に示したデイザ法は原画デー
タの各画素毎独立に閾値処理されて二値データに
変換されるが原画データのレベルに応じた黒の数
が閾値窓毎に表われて平均的に中間調を表現する
ことになる。閾値の窓の大きさと表示画質との関
係は窓が小さいと画像の分解能は良いが、表示で
きる中間調レベルが少なくなり、窓を大きくする
と画像の分解能は悪いが、表示できる中間調レベ
ルが多くなるという関係にある。いずれにしても
白黒二値の原画に対して普通の二値化処理の表示
画質より分解能を悪くするという欠点を有してい
た。
As mentioned above, in the dither method shown in the example in Figure 1, each pixel of the original image data is thresholded independently and converted to binary data, but the number of blacks corresponding to the level of the original image data appears in each threshold window. This results in an average representation of midtones. The relationship between the size of the threshold window and display image quality is that the smaller the window, the better the image resolution, but fewer halftone levels that can be displayed; the larger the window, the worse the image resolution, but the more halftone levels that can be displayed. There is a relationship of becoming. In any case, this method has the disadvantage that the display quality of a black-and-white binary original image is poorer than that of ordinary binary processing.

発明の目的 本発明は上記二値画像の分解能劣化による画質
低下のない擬似中間調表示を行なうことのできる
画信号処理方法およびその装置を提供することを
目的とする。
OBJECTS OF THE INVENTION It is an object of the present invention to provide an image signal processing method and an apparatus thereof that can perform pseudo-halftone display without deterioration in image quality due to resolution deterioration of the binary image.

発明の構成 本発明は、 (1) 原画像を走査分解して得られた各画素の画信
号レベルにランダムな雑音成分を重畳させた画
信号レベルを第1の画信号記憶装置に記憶さ
せ、 (2) ランダムな雑音成分を重畳させない各画素の
画信号レベルを第2の画信号記憶装置に記憶さ
せ、 (3) 前記第2の画信号記憶装置を走査する画素数
Mの第2の走査窓内の全ての画信号レベルの和
Snと誤差補正量Eの和Sを求め、 OSC×MのときS=C×N+A O>SのときN=O,A=O S>C×MのときN=M,A=O 〔但し、Cは所定の画信号レベル、 NはO≦N≦Mなる整数、 AはO≦A<C0〕 なるNとAを求め、 (4) 前記第2の画信号記憶装置と対応する前記第
1の画信号記憶装置の位置を走査する画素数M
の第1の走査窓内の各画素には前記和Sに応じ
て大きさが制御される付加データを重畳させた
後に各画素を画信号レベルの降順または昇順に
番号付けし、 (5) 前記第1の走査窓に対応する前記第2の走査
窓内の各画素に対し降順の時は1番目からN番
目の画素は画信号レベルとしてCを、(N+1)
番目の画素は画信号レベルとしてAを、残りの
画素は画信号レベルとしてOを割当てる置換を
施し、昇順の時は1番目から(M−N−1)番
目の画素は画信号レベルとしてOを、(M−N)
番目の画素は画信号レベルとしてAを、残りの
画素は画信号レベルとしてCを割当てる置換を
施し、 (6) 現在の第2の走査窓内の各画素で以後の走査
窓移動によつて再度走査窓内に含まれなくなる
画素の画信号レベルP1STに対し、前記画信号レ
ベルP1STと予め定めてあるOV<Cなる二値
化レベルVとの比較により前記画信号レベル
P1STが大きい場合はCを、前記画信号レベル
P1STが大きくない場合はOを画信号レベルP2ND
として与える置換を施し、 (7) 次の走査窓移動後の誤差補正量Eとして、前
記画信号レベルP1STとP2NDの差の総和を与え、 (8) 上記(2),(3),(4),(5),(6),(7)を前記第1、

2の画信号記憶手段の全域に対して前記第1、
第2の走査窓を所定画素分づつ移動させながら
繰返す画像処理を行なうものである。
Structure of the Invention The present invention provides: (1) storing in a first image signal storage device an image signal level obtained by superimposing a random noise component on the image signal level of each pixel obtained by scanning and decomposing the original image; (2) storing the image signal level of each pixel without superimposing random noise components in a second image signal storage device; (3) scanning the second image signal storage device with the number of pixels M; Sum of all image signal levels within the window
Find the sum S of S n and the error correction amount E, and when OSC×M, S=C×N+A When O>S, N=O, A=O When S>C×M, N=M, A=O [ However, C is a predetermined image signal level, N is an integer satisfying O≦N≦M, and A is O≦A<C 0 ]. The number M of pixels for scanning the position of the first image signal storage device
(5) superimposing additional data whose size is controlled according to the sum S on each pixel within the first scanning window; For each pixel in the second scanning window corresponding to the first scanning window, in descending order, the first to Nth pixels have a pixel signal level of C, (N+1)
The th pixel is assigned A as the image signal level, the remaining pixels are assigned O as the image signal level, and in ascending order, the 1st to (M-N-1)th pixels are assigned O as the image signal level. , (M-N)
The pixel is replaced with A as the pixel signal level, and the remaining pixels are given C as the pixel signal level. The image signal level P 1ST of a pixel that is no longer included in the scanning window is determined by comparing the image signal level P 1ST with a predetermined binarization level V where OV<C.
If P 1ST is large, set C to the image signal level.
If P 1ST is not large, set O to image signal level P 2ND
(7) Give the sum of the differences between the image signal levels P 1ST and P 2ND as the error correction amount E after the next scanning window movement, (8) Above (2), (3), (4), (5), (6), (7) in the first
The first,
Image processing is performed repeatedly while moving the second scanning window by a predetermined number of pixels.

実施例の説明 以下、本発明の画像信号処理方法について、図
面を参照しながらその一実施例を説明する。
DESCRIPTION OF EMBODIMENTS An embodiment of the image signal processing method of the present invention will be described below with reference to the drawings.

第2図は走査窓とデータ変換を説明する図であ
る。同図aにおいて5は原画データであり、走査
窓6が同図aの右側に主走査、下側に副走査され
ながら走査窓6内で逐一データ変換が行なわれて
いく。走査窓6の大きさは任意であるが、例えば
2×2画素、3×3画素、4×4画素という程度
の大きさである。また走査窓6は主走査方向、副
走査方向とも1画素づつ走査していくのを基本と
するが必らずしもその限りではない。
FIG. 2 is a diagram explaining the scanning window and data conversion. In the figure a, 5 is original image data, and data conversion is performed one by one within the scanning window 6 while the scanning window 6 is main-scanning to the right side of the figure a and sub-scanning to the lower side. Although the size of the scanning window 6 is arbitrary, it is, for example, about 2×2 pixels, 3×3 pixels, or 4×4 pixels. The scanning window 6 is basically scanned pixel by pixel in both the main scanning direction and the sub-scanning direction, but this is not necessarily the case.

なお本実施例では1画素づつの走査で説明す
る。
Note that this embodiment will be explained by scanning one pixel at a time.

さて、走査窓6を2×2画素とすると、原画デ
ータの1個の画素、例えば走査窓6内の画素Dn,o
は走査窓6の移動につれて4回のデータ変換を受
けることになる。データ変換は第2図b〜第2図
eに示すように行なわれる。なお、同図bは走査
窓6の位置における原画データを示したものであ
り、同図cは現走査窓6の位置におけるデータ変
換が行なわれる前の状態を示したものである。
Now, if the scanning window 6 is 2×2 pixels, one pixel of the original image data, for example, the pixel D n,o within the scanning window 6.
will undergo data conversion four times as the scanning window 6 moves. Data conversion is performed as shown in FIGS. 2b to 2e. Note that FIG. 2B shows the original image data at the position of the scanning window 6, and FIG.

(但し、′の数は過去においてその画素がデー
タ変換を受けた回数を示している。) 同図dは現走査窓6の位置においてデータ変換
が行なわれた後の状態を示したものである。ここ
で、変換されたデータは原画データを書換えるの
ではなく、別途記憶されているものとする。な
お、走査窓6内のデータ変換は第3図のフローチ
ヤートに示すように、 (イ) 第2図cに示すようなデータの総和Sを求め
る。
(However, the number ' indicates the number of times that pixel has undergone data conversion in the past.) Figure d shows the state after data conversion has been performed at the current scanning window 6 position. . Here, it is assumed that the converted data is not rewritten to the original image data but is stored separately. The data conversion within the scanning window 6 is performed as shown in the flowchart of FIG. 3. (a) The total sum S of data as shown in FIG. 2c is determined.

S=Dn-1o-1+Dn-1″,o +Dn′,o-1+Dn,o ……(1) (ロ) 次式におけるNとAを求める。 S=D n-1 , o-1 + D n-1 ″, o + D n ′, o-1 + D n,o ...(1) (b) Find N and A in the following equation.

S=C・N+A ……(2) 但し、Cは定数で例えばC=Dnaxとする。
Dnaxは最大値。またNは正の整数である。
S=C・N+A...(2) However, C is a constant, for example, C=D nax .
D nax is the maximum value. Further, N is a positive integer.

(ハ) 第2図bに示すようなデータの大きさ順を
調べる。同じ値のときは予かじめ定められた順
に決める。
(c) Check the order of data size as shown in Figure 2b. If the values are the same, they are determined in a predetermined order.

(ニ) 第2図cに示すデータを第2図bに示すデー
タの大きさ順に対応する所に対しN個分Cに変
換し、次をAに変換し、残りを0\に変換する。
例えば(ロ)においてN=1が求まり、(ハ)において λn,o-1・Dn,o-1>λn,o・Dn,o>λn-1,o・ ・Dn-1,o>λn-1o-1・Dn-1o-1 ……(3) の関係であることが求まると第2図eに示すよ
うなデータ変換がなされる。但しλは雑音成分
である。
(d) Convert the data shown in FIG. 2c to C for N parts corresponding to the data shown in FIG. 2b in order of size, convert the next to A, and convert the rest to 0\.
For example, in (b), N=1 is found, and in (c), λ n,o-1・D n,o-1 >λ n,o・D n,o >λ n-1,o・ ・D n- 1,o > λ n-1 , o-1 ·D n-1 , o-1 ...(3) When the relationship is found, data conversion as shown in FIG. 2e is performed. However, λ is a noise component.

上記のデータ変換を原画の全データについて行
なうと、原画データのデータ値が小さい所では0
の数が多く、データ値が大きい所ではCの数が多
く、原画データのデータ値に比例して変換されて
いく。従つてデータ変換された値に対して通常の
閾値処理を行ない二値化データにすると擬似中間
表示のデータを得ることができる。
If the above data conversion is performed on all data of the original image, it will be 0 if the data value of the original image data is small.
Where the number of C is large and the data value is large, the number of C is large, and the conversion is done in proportion to the data value of the original image data. Therefore, if normal threshold processing is performed on the data-converted values to create binarized data, pseudo-intermediate display data can be obtained.

上記データ処理によれば、変換データが原画デ
ータの大きい順に配置(再配分)されていくた
め、白黒二値の原画に対しての分解劣化は発生し
ないのみならず、原画の中の細線が量子化のため
に通常の閾値処理では点線になるような所も連続
した線で再生される傾向にある。これは上記デー
タ処理において、原画の中の大きな値のデータが
周辺の小さな値のデータを引寄せて更に大きくな
る効果をもつことによる。
According to the data processing described above, since the conversion data is arranged (redistributed) in order of the original image data, not only does decomposition and deterioration of the black and white binary original image not occur, but also the thin lines in the original image are Because of this, even areas that would be dotted lines in normal threshold processing tend to be reproduced as continuous lines. This is because, in the data processing described above, large value data in the original image attracts surrounding small value data and has the effect of becoming even larger.

また上記データ処理によれば、入力画信号レベ
ルにランダムな雑音成分を重畳させているため、
等しいレベルの画信号レベルが広い範囲内に存在
するような画像、例えば、コンピユータ等を利用
して発生させたような画像等に対しては、ランダ
ム雑音レベルの順位付けをとることができる。従
つて再成画像の周期的なパターン発生を抑制する
ことができる。
Furthermore, according to the above data processing, since random noise components are superimposed on the input image signal level,
Random noise levels can be ranked for images in which the same image signal level exists within a wide range, for example, images generated using a computer or the like. Therefore, it is possible to suppress the occurrence of periodic patterns in the regenerated image.

さて第2図dにおいて、Dn-1′′′′,o-1は最後の
データ変換をした値である。この値がOまたはC
の場合は良いが、Aの場合は二値化されて誤差が
発生することになる。すなわち、二値化後の白は
O,黒はCの値を持つため、Aを閾値処理して二
値化することは余分に白または黒に変化させたこ
とになる。これは擬似中間調の階調特性を悪くす
るがDn-1′′′′,o-1の値をP1STとし、これを閾値判

した値P2ND(0\またはC)の差分を誤差補正量E
として次の走査窓での総和Sを求める時に加算す
ることにより階調特性の改善を計ることができ
る。
Now, in Fig. 2 d, D n-1 ′′′′, o-1 is the value after the last data conversion. This value is O or C
In the case of A, it is fine, but in the case of A, it is binarized and an error occurs. That is, after binarization, white has a value of O and black has a value of C, so performing threshold processing on A and binarizing it means redundantly changing it to white or black. This worsens the gradation characteristics of the pseudo halftone, but let the value of D n-1 ′′′′, o-1 be P 1ST , and the difference between the value P 2ND (0\ or C) determined by the threshold value is the error. Correction amount E
The gradation characteristics can be improved by adding the sum S when calculating the sum S in the next scanning window.

また、上記データ処理によれば、前記引寄せ効
果により強く輪郭強調された画像となる傾向にあ
る。また原画の平担な濃度分布の所は原画のもつ
雑音や光電変換における雑音成分がデータ変換後
の山谷(黒、白)を作るため二値化画像が砂目の
ようにランダムな模様となる。
Further, according to the data processing described above, there is a tendency for the image to have strong outline emphasis due to the above-mentioned attraction effect. In addition, where the original image has a flat density distribution, noise in the original image and noise components in photoelectric conversion create peaks and valleys (black, white) after data conversion, resulting in a binarized image with a random pattern like grain. .

そこで原画の平担な濃度分布の所がデータ変換
後に規則的な分布となるように、かつ輪郭強調効
果を弱めるようにするため、以下の方法が考えら
れる。
Therefore, in order to make the flat density distribution of the original image become a regular distribution after data conversion and weaken the edge enhancement effect, the following method can be considered.

すなわち、上記データ処理では走査窓内の原画
データの大きい順に新データを配置してきた。従
つて順位付用のデータに規則性を導入すると、そ
の強さに応じて変換後のデータ分布に規則性をも
たせることが可能となると同時に、規則性の山谷
が前記引寄せ効果を抑制する働きをもたせること
ができる。第4図aは規則性をもたせるその方法
を示すものである。同図において、11は原画デ
ータ、12は加算データ、13は原画データに加
算したデータをそれぞれ示すものである。この第
4図aに示すデータ13を第2図bの代りに順位
づけデータとして使用することにより、第3図に
示したフローチヤートにおけるイ〜ニの走査窓6
内のデータ変換手順に比して前記引寄せ効果を抑
制することができる。なお、第4図におけるデー
タ12は規則的な配列のパターンであり、作り方
は任意であるが、その一例を第4図bに示す。第
4図bは4×4画素分の付加データを展開する場
合で、データ値は第4図aの原画データ11の値
が8ビツト(0〜255)で量子化された値として
設定している。付加データの大きさは原画データ
の最大値255の1/8以下に設定しているが、この値
の大きさは原画データの雑音成分より少し大きい
値にするのが良い。すなわち、一般に画像走査に
よる原画データは光反射率信号であり、原画の白
い部分は雑音が大きく黒い部分は雑音が小さくな
る。従つて原画データの大きさに応じて付加デー
タの大きさを制御するほうが良い。第5図にその
一例を示す。走査窓6は2×2、原画データ11
は8ビツト量子化の場合で、横軸に走査窓6内の
データ総和Sをとり、縦軸に付加データの補正係
数をとつている。
That is, in the data processing described above, new data is arranged in descending order of original image data within the scanning window. Therefore, by introducing regularity into the data for ranking, it becomes possible to impart regularity to the data distribution after conversion depending on the strength of the regularity, and at the same time, the peaks and troughs of the regularity work to suppress the above-mentioned attraction effect. can be made to last. FIG. 4a shows the method for providing regularity. In the figure, 11 represents original image data, 12 represents added data, and 13 represents data added to the original image data. By using the data 13 shown in FIG. 4a as the ranking data instead of the data 13 in FIG.
The above-mentioned attraction effect can be suppressed compared to the data conversion procedure in the above. Note that the data 12 in FIG. 4 is a regular array pattern, and can be created in any way, but an example thereof is shown in FIG. 4b. Figure 4b shows the case where additional data for 4 x 4 pixels is expanded, and the data value is set as a value obtained by quantizing the original image data 11 in Figure 4a with 8 bits (0 to 255). There is. The size of the additional data is set to 1/8 or less of the maximum value of 255 of the original image data, but it is preferable that the size of this value is slightly larger than the noise component of the original image data. That is, in general, original image data obtained by scanning an image is a light reflectance signal, and the white portions of the original image have large noises, and the black portions have small noises. Therefore, it is better to control the size of the additional data according to the size of the original image data. An example is shown in FIG. Scanning window 6 is 2x2, original image data 11
In the case of 8-bit quantization, the horizontal axis represents the total sum S of data within the scanning window 6, and the vertical axis represents the correction coefficient of additional data.

本実施例ではデータ総和Sの値に応じて付加デ
ータを1/2,1/4,1/8,1/16にする簡単な補正で
あるが、実用的には十分である。しかし、理想的
には付加データの振幅補正係数は光反射率データ
であるデータ総和Sを濃度に換算した値に対して
一定比率となるようにすればよい。
In this embodiment, the additional data is simply corrected to 1/2, 1/4, 1/8, or 1/16 according to the value of the data sum S, but it is sufficient for practical use. However, ideally, the amplitude correction coefficient of the additional data should be a constant ratio to the value obtained by converting the data sum S, which is light reflectance data, into density.

以下、上述した内容を考慮して画信号処理方法
について第6図に示すフローチヤートとともにさ
らに詳細に説明を行なう。
In the following, the image signal processing method will be explained in more detail with reference to the flowchart shown in FIG. 6 in consideration of the above-mentioned contents.

〔なお、第6図に示すフローチヤートにおい
て、 G1,G2:画像データ記憶装置、 W1:G1の画像データに対する走査窓、 λn,o・Dn,o,λn,o-1・Dn,o-1,λn-1,o・Dn-1,o
λn-1o-1・Dn-1o-1 :W1内の各データ、 λ:ランダムノイズ、 W2:G2の画像データに対する走査窓、 Dn,o,Dn′,o-1,Dn-1″,o,Dn-1′′′′,o-1:W
2
の各データで現走査窓位置においてデータ変換さ
れる前の値。′の数は過去の走査窓位置でデータ
変換された回数、 Dn,o,Dn″,o-1,Dn-1′′′′,o,Dn-1′′′′,
o-1:W2
の各データで現走査窓位置においてデータ変換さ
れた後の値。′の数は現走査窓位置も含めて過去
にデータ変換された回数、 E:誤差補正量、 Sn:走査窓W2内のデータ総和、 S:Sn+Eの値、 M:走査窓W1、走査窓W2の画素数、M=4、 C:所定の画信号レベル、 N:ONMなる整数、 A:OA<C, dn,o,dn,o-1,dn-1,o,dn-1o-1:付加データ、 k:Sに応じて変化する振幅補正係数、 γn,o,γn,o-1,γn-1,o,γn-1o-1:順位付用デ

タ、 γn,o=k×dn,o+λn,o・Dn,o γn,o-1=k×dn,o-1+λn,o-1・Dn,o-1 γn-1,o=k×dn-1,o+λn-1,o・Dn-1,o γn-1o-1=k×dn-1o-1+λn-1o-1・Dn-1o-1 V:二値化レベル をそれぞれ示す。
[In the flowchart shown in FIG. 6, G 1 , G 2 : image data storage device, W 1 : scanning window for image data of G 1 , λ n,o・D n,o , λ n,o- 1・D n,o-1 , λ n-1,o・D n-1,o ,
λ n-1 , o-1・D n-1 , o-1 : each data in W 1 , λ: random noise, W 2 : scanning window for image data of G 2, D n,o , D n ′ , o-1 , D n-1 ″, o , D n-1 ′′′′, o-1 :W
The value before data conversion at the current scanning window position for each data in 2 . The number ′ is the number of times data was converted at the past scanning window position, D n,o , D n ″, o-1 , D n-1 ′′′′, o , D n-1 ′′′′,
o-1 : Value after data conversion at the current scanning window position for each data in W2 . The number ' is the number of times data has been converted in the past including the current scanning window position, E: error correction amount, S n : total data within scanning window W 2 , S: value of S n + E, M: scanning window W 1 , number of pixels in scanning window W2 , M=4, C: predetermined image signal level, N: integer ONM, A: OA<C, d n,o , d n,o-1 , d n-1 , o , d n-1 , o-1 : additional data, k : amplitude correction coefficient that changes according to S, γ n,o , γ n,o-1 , γ n-1,o , γ n-1 , o-1 : Ranking data, γ n,o = k×d n,on,o・D n,o γ n,o-1 = k×d n,o-1n,o- 1・D n,o-1 γ n-1,o =k×d n-1,on-1,o・D n-1,o γ n-1 , o-1 =k×d n- 1 , o-1n-1 , o-1・D n-1 , o-1 V: Indicates the binarization level, respectively.

(イ) ランダムノイズを重畳した画像データとラン
ダムノイズを重畳しない画像データをそれぞれ
記憶装置G1,G2に入力する(なお画像データ
を1画素または1走査線分づつ入力しながら以
下の処理をすることも可能であるが、ここでは
全画像データを入力した後に処理していくもの
とする。)。
(b) Input the image data with random noise superimposed and the image data without superimposed random noise into the storage devices G 1 and G 2 respectively (the following processing is performed while inputting the image data one pixel or one scanning line at a time). It is also possible to do this, but in this case we will process it after all image data has been input.)

(ロ) 記憶装置G1に入力した画像データの主走
査・副走査のスタート位置に走査窓W1を、記
憶装置G2に入力した画像データの主走査・副
走査のスタート位置に走査窓W2を初期セツト
する。
(b) A scanning window W 1 is placed at the start position of the main scanning and sub-scanning of the image data input to the storage device G 1 , and a scanning window W is placed at the start position of the main scanning and sub-scanning of the image data input to the storage device G 2 . 2 is initially set.

(ハ) 主走査の始めに初期値として誤差補正量E=
Oをセツトする。
(c) Error correction amount E= as initial value at the beginning of main scanning
Set O.

(ニ) 走査窓W2内データの総和Smと誤差補正量E
の和Sを求める。
(d) Total sum Sm of data within scanning window W2 and error correction amount E
Find the sum S.

(ホ)・(ヘ) Sの大きさを比較判定し、O>Sならば
(ト)でN=O,A=Oとし、S>C×Mならば
(チ)でN=M,A=Oとし、それ以外では
(リ)でS=C×N+AなるNとAを求める。
(e)・(f) Compare and judge the size of S, and if O>S
In (g), set N=O, A=O, and if S>C×M, set N=M, A=O in (ch), otherwise, in (li), set N and A such that S=C×N+A. demand.

(ヌ) Sの値に応じて付加データの振幅を補正
する係数kを求める。
(J) Find a coefficient k for correcting the amplitude of additional data according to the value of S.

(ル) 順位付用データγn,o,γn,o-1,γn-1,o
γn-1o-1を、 γn,o=k×dn,o+λn,o・Dn,o γn,o-1=k×dn,o-1+λn,o-1・Dn,o-1 γn-1,o=k×dn-1,o+λn,o-1・Dn-1,o γn-1o-1=k×dn-1o-1+λn-1o-1・Dn-1o-
として計算し、その大きい順に走査窓W2内の
各対応するデータ位置を以下のように書換えて
いる。
(Ru) Ranking data γ n,o , γ n,o-1 , γ n-1,o '
γ n-1 , o-1 , γ n,o = k×d n,o + λ n,o・D n,o γ n,o-1 = k×d n,o-1 + λ n,o- 1・D n,o-1 γ n-1,o =k×d n-1,on,o-1・D n-1,o γ n-1 , o-1 =k×d n- 1 , o-1n-1 , o-1・D n-1 , o-
1 , and the corresponding data positions within the scanning window W2 are rewritten as follows in descending order of size.

〔N番目までをCとする。 [Let C be up to the Nth number.

N+1番目をAとする。 Let A be the N+1st one.

残りをOとする。〕 (ヲ) 走査窓W2内のデータDn-1′′′′,o-1をP1ST
とする。
Let the rest be O. 〕 (ヲ) Data D n-1 ′′′′, o-1 in scanning window W 2 is P 1ST
shall be.

(ワ) P1STと二値化レベルVを比較する。P1ST
が大きければ(カ)でP2NDをCとし、P1STが大
きくなければ(ヨ)でP2NDをOとする。なお、
データDn-1′′′′,o-1の値は最終的に二値化レベ
ルVで二値データに変換されるのであるから、
ここでP2NDの値に置換えてもそのままでも同じ
ことである。
(W) Compare P 1ST and binarization level V. P 1ST
If is large, then (F) sets P 2ND to C, and if P 1ST is large, then (Y) sets P 2ND to O. In addition,
Since the values of data D n-1 ′′′′, o-1 are finally converted to binary data at the binarization level V,
Here, it is the same whether you replace it with the value of P 2ND or leave it as is.

(タ) 次の走査窓位置で補正する誤差補正量を
EとしてP2ND−P1STを求める。
(T) Calculate P 2ND −P 1ST by setting E as the error correction amount to be corrected at the next scanning window position.

(レ) 走査窓W1と走査窓W2とをともに主走査
方向へ1画素移動する。
(v) Both scanning window W 1 and scanning window W 2 are moved by one pixel in the main scanning direction.

(ツ) 主走査方向の処理が終了したかを判断す
る。終了していなければ(ニ)に戻る。
(2) Determine whether processing in the main scanning direction is complete. If it has not finished, return to (d).

(ツ) 終了していれば(ヲ)で走査窓W1と走
査窓W2をともに主走査のスタート位置に戻し、
副走査方向に1画素移動する。
(t) If it has finished, press (w) to return both scanning window W 1 and scanning window W 2 to the main scanning start position.
Move one pixel in the sub-scanning direction.

(ネ) 副走査方向に処理終了を判断し、終了し
てなければ(ハ)に戻る。
(n) Determine whether processing has ended in the sub-scanning direction, and if it has not ended, return to (c).

以上第6図に示した(イ)〜(ネ)の処理方法によ
り、二値画像の分解能劣化による画質低下の生じ
ない擬似中間調表示を得ることができる。
By using the processing methods (a) to (e) shown in FIG. 6, it is possible to obtain a pseudo-halftone display that does not cause deterioration in image quality due to deterioration in resolution of a binary image.

次に第7図を参照しながら、本発明の一実施例
における画像信号処理装置について説明する。
Next, an image signal processing device according to an embodiment of the present invention will be described with reference to FIG.

第7図は本発明の一実施例における画像信号処
理装置のブロツク結線を示すものである。
FIG. 7 shows block connections of an image signal processing apparatus in an embodiment of the present invention.

第7図において、15は後述する各ブロツク機
能にタイミング信号を供給するタイミング信号発
生回路で各ブロツク機能へのタイミング信号供給
線は省略している。17は端子16を介して入力
されるアナログ画像信号をデイジタル画像信号に
変換するA/D変換器、10はランダムノイズ重
畳回路19,21はそれぞれゲート回路18,2
0を介し指示されたアドレスに応じてデイジタル
画像信号を記憶あるいは読み出す画像データ記憶
装置、22はゲート回路18,20にアドレス情
報を送出してゲート回路18,20を制御するア
ドレス制御回路、23は再配分のデータ変換処理
が全て終了したデータを二値化して端子24を介
して画像記録装置等に記録させる二値化回路、2
5は走査窓内データと誤差補正演算回路26から
送出される誤差補正データEとの総和Sを求める
データ加算回路、27はデータ加算回路25が求
めた総和に応じて走査窓内の各データに付加デー
タを加算する付加データ加算回路、28は付加デ
ータ加算回路27の出力をデータの大きい順に順
位付する順位付回路、29はデータ加算回路25
から送出されてくる総和Sから変換データを作成
し再配分を行なう再配分回路である。
In FIG. 7, reference numeral 15 denotes a timing signal generation circuit that supplies timing signals to each block function to be described later, and timing signal supply lines to each block function are omitted. 17 is an A/D converter that converts an analog image signal input through the terminal 16 into a digital image signal; 10 is a random noise superimposition circuit 19, 21 is a gate circuit 18, 2, respectively;
0, an image data storage device that stores or reads out a digital image signal according to an address specified through 0; 22, an address control circuit that sends address information to the gate circuits 18, 20 to control the gate circuits 18, 20; 23, an address control circuit; a binarization circuit that binarizes the data for which all data conversion processing for redistribution has been completed and records it in an image recording device or the like via a terminal 24;
5 is a data addition circuit that calculates the sum S of the data within the scanning window and the error correction data E sent from the error correction calculation circuit 26; 28 is a ranking circuit that ranks the output of the additional data adder circuit 27 in descending order of data; 29 is a data adder circuit 25;
This is a redistribution circuit that creates converted data from the total sum S sent from and redistributes it.

上記構成において、以下その動作を説明する。 The operation of the above configuration will be explained below.

まず原画像を走査して得たアナログ画信号は入
力端子16を介してA/D変換器17によりデイ
ジタル画像信号に変換され、画像データ記憶装置
19に記憶される画信号は、ランダムノイズ重畳
回路10によつてランダムノイズ重畳デイジタル
画信号とし、ゲート回路18を介して記憶され
る。又、画像データ記憶装置21に記憶されるデ
イジタル画像信号は、A/D変換器17によつて
デイジタル画像信号に変換された後、ゲート回路
20を介して記憶される。その際ゲート回路18
とゲート回路20とは、アドレス制御回路22に
より制御されており、それぞれ記憶装置19と記
憶装置21のデータ書込み読出し番地を指示す
る。そして後述する処理において記憶装置19に
記憶されたデータは順位付用のデータとして用い
られ、記憶装置21のデータは再配分によるデー
タ変換で逐一書換えられていくものである。
First, an analog image signal obtained by scanning an original image is converted into a digital image signal by an A/D converter 17 via an input terminal 16, and the image signal stored in an image data storage device 19 is generated by a random noise superimposition circuit. 10 into a random noise superimposed digital image signal, which is stored via a gate circuit 18. Further, the digital image signal stored in the image data storage device 21 is converted into a digital image signal by the A/D converter 17 and then stored via the gate circuit 20. At that time, the gate circuit 18
and gate circuit 20 are controlled by an address control circuit 22, and instruct data write/read addresses of memory device 19 and memory device 21, respectively. In the process described later, the data stored in the storage device 19 is used as ranking data, and the data in the storage device 21 is rewritten one by one through data conversion by reallocation.

また、再配分のデータ変換処理が全て終了した
データは記憶装置21からゲート回路21を介し
て読出され二値化回路23を介して画像記録装置
(図示せず)等で記録される出力画像信号として
出力端子24に出力される。さて、データ加算回
路25は記憶装置21からゲート回路20を介し
て得た走査窓内データと誤差補正量演算回路26
から得た誤差補正データEの総和Sを求める。付
加データ加算回路27は内部に用意した各付加デ
ータの大きさをデータ加算回路25から得た総和
Sにより制御し、それぞれの値と記憶装置19か
らゲート回路18を通して得た走査窓内の各デー
タをそれぞれ加算してその情報を順位付回路28
に送出する。順位付回路28では付加データ加算
回路27から得た各データによりデータの大きい
順に記憶装置21の対応する走査窓位置における
データ番地を全て決定しアドレス制御回路22と
誤差補正演算回路26に通知する。またこの通知
するタイミングで誤差補正量演算回路26と再配
分回路29にも通知する。そこで再配分回路29
はデータ加算回路25から得た総和Sから変換デ
ータを作成しアドレス制御回路22で指定された
記憶装置21の番地にゲート回路20を介して順
次変換データを書込んでいく。誤差補正演算回路
26は走査窓内で最後のデータ変換された値(第
2図dのDn-1′′′′,o-1)であるP1STを順位付回路

8からのアドレスとタイミングの情報をもとに再
配分回路29の変換データから選別し、そのP1ST
と二値化回路23から得た二値化レベルVと比較
してOまたはCの値P2NDを求め、P1ST−P2NDの値
を次の走査窓における誤差補正量Eとして与え
る。
Further, the data for which all the data conversion processing for redistribution has been completed is read out from the storage device 21 via the gate circuit 21, and output image signal is recorded via the binarization circuit 23 by an image recording device (not shown) or the like. The signal is output to the output terminal 24 as a signal. Now, the data addition circuit 25 uses the data within the scanning window obtained from the storage device 21 via the gate circuit 20 and the error correction amount calculation circuit 26.
The total sum S of the error correction data E obtained from the above is calculated. The additional data addition circuit 27 controls the size of each additional data prepared internally by the sum S obtained from the data addition circuit 25, and adds each value and each data within the scanning window obtained from the storage device 19 through the gate circuit 18. are added and the information is sent to the ranking circuit 28.
Send to. The ranking circuit 28 determines all data addresses at the corresponding scanning window positions in the storage device 21 in descending order of the data obtained from the additional data addition circuit 27, and notifies the address control circuit 22 and the error correction calculation circuit 26. Also, at this notification timing, the error correction amount calculation circuit 26 and the redistribution circuit 29 are also notified. Therefore, the redistribution circuit 29
creates converted data from the sum S obtained from the data adder circuit 25 and sequentially writes the converted data to the address of the storage device 21 specified by the address control circuit 22 via the gate circuit 20. The error correction calculation circuit 26 outputs P 1ST , which is the last data-converted value (D n-1 ′′′′, o-1 in FIG. 2 d) within the scanning window, to the ranking circuit 2.
Based on the address and timing information from 8, the conversion data of the redistribution circuit 29 is selected, and the
is compared with the binarization level V obtained from the binarization circuit 23 to obtain the value P 2ND of O or C, and the value P 1ST -P 2ND is given as the error correction amount E in the next scanning window.

以上を繰り返すことにより、画像信号の処理を
行なうことができる。
By repeating the above steps, image signals can be processed.

以下第8図〜第13図を参照して第7図に示し
た付加データ加算回路27、順位付回路28、再
配分回路29および誤差補正演算回路26の更に
詳細な構成を説明する。
The detailed configurations of the additional data addition circuit 27, ranking circuit 28, redistribution circuit 29, and error correction calculation circuit 26 shown in FIG. 7 will be described below with reference to FIGS. 8 to 13.

第8図は第7図の付加データ加算回路27の詳
細な構成を示すブロツク結線図である。たとえば
第9図aに示す4×4マトリクス30の付加デー
タを原画像データに対して繰返して加算していく
ものとする。そのマトリクスデータを第9図bに
示すような配列31で記憶しているのが記憶装置
32である。記憶装置32は入力端子33から入
る副走査同期パルスをカウントする2ビツトカウ
ンタ34の内容を上位アドレス、入力端子35か
ら入るタイミングパルスT1をカウントする2ビ
ツトカウンタ36の内容を下位アドレスとする記
憶内容のデータを出力している。また入力端子3
3から入る副走査同期パルスはカウンタ36をリ
セツトし、入力端子35から入るタイミングパル
スT1は記憶装置32の出力データを5個のレジ
スタ37に取り込む。仮に付加データがb0〜b7
8ビツトデータ(但し、b0の方が上位)として用
意されているものとすると、5個のレジスタには
それぞれ1/1,1/2,1/4,1/8,1/16のデータとし
て取込まれる。比較回路38は入力端子39から
入る総和Sの内容と内部の定数C1〜C4との大小
を比較し、5個の出力線の内1個を1、他を0と
する。定数は第5図で示したC1=960、C2=896、
C3=768、C4=512のような値である。ゲート回
路40は比較回路38の出力信号により下記に示
す5個のレジスタ37の内1個のレジスタ内容を
出力する。
FIG. 8 is a block diagram showing the detailed configuration of the additional data addition circuit 27 of FIG. 7. For example, assume that additional data in a 4×4 matrix 30 shown in FIG. 9a is repeatedly added to the original image data. A storage device 32 stores the matrix data in an array 31 as shown in FIG. 9b. The storage device 32 stores the contents of a 2-bit counter 34 that counts sub-scanning synchronization pulses input from an input terminal 33 as an upper address, and the contents of a 2-bit counter 36 that counts a timing pulse T1 input from an input terminal 35 as a lower address. Content data is output. Also, input terminal 3
The sub-scan synchronizing pulse inputted from input terminal 3 resets the counter 36, and the timing pulse T1 inputted from input terminal 35 captures the output data of the storage device 32 into five registers 37. Assuming that the additional data is prepared as 8-bit data from b 0 to b 7 (however, b 0 is higher-order), each of the five registers contains 1/1, 1/2, and 1/4. , 1/8, and 1/16 data. The comparison circuit 38 compares the contents of the sum S input from the input terminal 39 with internal constants C 1 to C 4 and sets one of the five output lines to 1 and the others to 0. The constants are C 1 = 960, C 2 = 896, shown in Figure 5.
Values such as C 3 = 768 and C 4 = 512. The gate circuit 40 outputs the contents of one of the five registers 37 shown below based on the output signal of the comparison circuit 38.

〔 S>C1のとき1/16データのレジスタ内容 C1S>C2のとき1/8データのレジスタ内容 C2S>C3のとき1/4データのレジスタ内容 C3S>C4のとき1/2データのレジスタ内容 C4Sのとき1/1データのレジスタ内容。〕 加算回路41はゲート回路40の出力と入力端
子42から入る記憶装置のデータを入力端子43
から入るタイミングパルスT2により加算して出
力端子44に出力する。このようなタイミング
を、すなわち、入力端子39の総和S、入力端子
42のデータD(第2図b参照)、入力端子35の
タイミングパルスT1、入力端子43のタイミン
グパルスT2の関係を第10図に示す。
[When S>C 1 , register contents of 1/16 data C 1 When S>C 2 , register contents of 1/8 data C 2 When S>C 3 , register contents of 1/4 data C 3 S>C 4 Register contents of 1/2 data when C 4 Register contents of 1/1 data when S. ] The adder circuit 41 inputs the output of the gate circuit 40 and the data of the storage device inputted from the input terminal 42 to the input terminal 43.
The sum is added according to the timing pulse T 2 input from , and is output to the output terminal 44 . In other words, the relationship between the sum S of the input terminal 39, the data D of the input terminal 42 (see FIG. 2b), the timing pulse T 1 of the input terminal 35, and the timing pulse T 2 of the input terminal 43 is expressed as follows. It is shown in Figure 10.

次に、順位付回路28の詳細について説明す
る。第11図は第7図に示した順位付回路28の
ブロツク構成を示すものである。付加データを加
算した2×2走査窓内の4個のデータはデータ入
力端子44から入力され、ゲート回路46を介し
走査窓内の位置と対応した4個のデータレジスタ
47の所定の位置に記憶される。このときの所定
の位置は入力端子43から入力されるタイミング
パルスT2をカウントするカウンタ48の出力を
ゲート回路49を介してレジスタ47にアドレス
設定することにより、指定される。入力端子43
から入力されるタンミングパルスT2はゲート回
路50を介しレジスタ47のデータ書込みクロツ
クになると同時に、タイミング制御回路51にも
送出され信号線52にゲート切換え信号を出力さ
せる。信号線52のゲート切換え信号はゲート回
路46、ゲート回路49、ゲート回路50を駆動
しレジスタ47に対して入力端子44から入る4
個のデータを取込む入力モードの状態を作りだし
ている。一方、最大値検出回路53はレジスタ4
7の4個のデータに対して最大値を検出し、その
最大値のデータアドレスを出力する。このときタ
イミング制御回路51は信号線52のゲート切換
え信号でゲート回路46、ゲート回路49、ゲー
ト回路50を駆動し、レジスタ47の内容書換え
をモードの状態を作り出している。この状態にお
いて上記最大値のデータアドレスはゲート回路4
9を介してレジスタ47に設定され、またレジス
タ54の負の定数値がゲート回路46を介してレ
ジスタ47に設定される。そしてタイミング制御
回路51から信号線55を介して出力される内部
クロツク信号がゲート回路50を介してレジスタ
47のデータ書込みクロツクになることにより、
レジスタ47の最大値データが負のデータに書換
えられる。この状態において信号線55に内部ク
ロツクが4個出力されたとき、レジスタ47の内
容は全て負の値に変わることになる。この内部ク
ロツクが出る順に最大値検出回路53の出力に最
初にレジスタ47に取込んだデータの大きい順の
対応するデータアドレスが出力される。このアド
レスは4個のアドレス記憶レジスタ56の書込み
データとなり順次記憶されるものであるが、この
とき信号線55の内部クロツクはアドレス記憶レ
ジスタ56の書込みクロツクになると同時に、カ
ウンタ57に入力される。カウンタ57の出力は
ゲート回路58を介しアドレス記憶レジスタ56
にアドレスデータを記憶する位置の指定を行な
う。このときタイミング制御回路51から出力さ
れる信号59の出力信号はゲート回路58を駆動
してデータの書込み状態につまりカウンタ57の
出力をアドレス記憶レジスタ56に与える。アド
レス記憶レジスタ56に4個のアドレスデータが
書込まれた後、信号線59の出力信号はゲート回
路58を駆動しアドレス記憶レジスタ56をデー
タの読出し状態にする。このあとタイミング制御
回路51の信号線60に読出しクロツクを出力す
ると、カウンタ61はこのクロツクをカウント
し、その出力をゲート回路58を介してアドレス
記憶レジスタ56に与え、アドレスデータの読出
し位置を指定する。このようにして順位付回路2
8からのアドレスデータが出力端子62に出力さ
れる。また信号線60の読出しクロツクは出力端
子63に出力され、他の回路ブロツクのタイミン
グ信号となる。なおカウンタ48,57,61は
いずれも2ビツトのカウンタで、図示していない
副走査同期パルスによりリセツトされる。またハ
ードウエア製作上の遅延時間補償など、信号のタ
イミング調整の細部については自明のことである
ため説明を省略する。
Next, details of the ranking circuit 28 will be explained. FIG. 11 shows a block configuration of the ranking circuit 28 shown in FIG. The four pieces of data within the 2×2 scanning window, including the additional data, are input from the data input terminal 44 and stored in predetermined positions of four data registers 47 corresponding to the positions within the scanning window via the gate circuit 46. be done. The predetermined position at this time is designated by setting the address of the output of the counter 48 that counts the timing pulse T 2 inputted from the input terminal 43 in the register 47 via the gate circuit 49 . Input terminal 43
The timing pulse T 2 inputted from the gate circuit 50 becomes a data write clock for the register 47 and is also sent to the timing control circuit 51 to output a gate switching signal to the signal line 52. The gate switching signal on the signal line 52 drives the gate circuit 46, the gate circuit 49, and the gate circuit 50, and enters the register 47 from the input terminal 44.
It creates an input mode state that takes in individual data. On the other hand, the maximum value detection circuit 53
The maximum value is detected for the four data of 7, and the data address of the maximum value is output. At this time, the timing control circuit 51 drives the gate circuit 46, gate circuit 49, and gate circuit 50 with the gate switching signal on the signal line 52, thereby creating a mode for rewriting the contents of the register 47. In this state, the data address of the maximum value is the gate circuit 4.
The negative constant value of the register 54 is set in the register 47 via the gate circuit 46. Then, the internal clock signal output from the timing control circuit 51 via the signal line 55 becomes the data write clock for the register 47 via the gate circuit 50.
The maximum value data of the register 47 is rewritten to negative data. In this state, when four internal clocks are output to the signal line 55, the contents of the register 47 all change to negative values. In the order in which this internal clock is output, the data addresses corresponding to the data first fetched into the register 47 are outputted to the output of the maximum value detection circuit 53 in descending order. This address becomes the write data of the four address storage registers 56 and is stored in sequence. At this time, the internal clock of the signal line 55 becomes the write clock of the address storage register 56 and is simultaneously input to the counter 57. The output of the counter 57 is sent to an address storage register 56 via a gate circuit 58.
Specify the location where address data is to be stored. At this time, the output signal 59 output from the timing control circuit 51 drives the gate circuit 58 to enter the data write state, that is, the output of the counter 57 is applied to the address storage register 56. After four pieces of address data are written in the address storage register 56, the output signal of the signal line 59 drives the gate circuit 58 to put the address storage register 56 in a data read state. After that, when a read clock is output to the signal line 60 of the timing control circuit 51, the counter 61 counts this clock and provides the output to the address storage register 56 via the gate circuit 58 to specify the read position of the address data. . In this way, the ranking circuit 2
Address data from 8 is output to output terminal 62. Further, the readout clock on the signal line 60 is outputted to an output terminal 63 and becomes a timing signal for other circuit blocks. Note that the counters 48, 57, and 61 are all 2-bit counters, and are reset by a sub-scan synchronization pulse (not shown). Furthermore, the details of signal timing adjustment, such as delay time compensation in hardware production, are self-evident and will not be explained here.

ここで注意すべきことは出力端子62に出力す
るアドレスデータは、00,01,10,11の4種類で
あり、第7図の画像データ記憶装置19,20に
おけるアドレスはアドレス制御回路22で新たに
作られることになる。従つて、00,01,10,11は
走査窓内のアドレスであり、仮りに第2図dの走
査窓9と対応させて考えると、00Dn-1′′′′,o-1
01はDn-1′′′′,o・10はDn″,o-1・11はDn′,o
定義
しておけば良い。
What should be noted here is that there are four types of address data output to the output terminal 62: 00, 01, 10, and 11, and the addresses in the image data storage devices 19 and 20 in FIG. It will be made in Therefore, 00, 01, 10, 11 are addresses within the scanning window, and if we consider them in correspondence with the scanning window 9 in Figure 2d, then 00D n-1 ′′′′, o-1
It is sufficient to define 01 as D n-1 ′′′′, o・10 as D n ″, and o-1・11 as D n ′, o .

従つて入力端子44から入るデータもこの走査
窓内アドレスに対応する順に現われなければなら
ない。後述する第13図の誤差補正演算回路26
におけるアドレス定数も走査窓内アドレスの意味
である。
Therefore, the data input from the input terminal 44 must also appear in the order corresponding to the addresses within this scanning window. Error correction calculation circuit 26 in FIG. 13, which will be described later.
The address constant in also means an address within the scanning window.

次に再配分回路29について説明する。 Next, the redistribution circuit 29 will be explained.

第12図は第7図の再配分回路29の詳細なブ
ロツク結線を示すものである。走査窓内データの
総和Sは入力端子64からゲート回路65を介し
てレジスタ66にセツトされる。入力端子67か
ら入るタイミング信号はゲート回路65とレジス
タ66を駆動し、総和Sをレジスタ66にセツト
するときに入力端子64からの信号を通過させレ
ジスタ66に書込む。それ以外ではゲート回路6
5は減算回路68の出力信号を通過させる。減算
回路68はレジスタ66の内容からレジスタ69
にセツトされている定数Cを減算して出力する。
入力端子63から入るタイミング信号はレジスタ
66を駆動し、ゲート回路65を介して入る減算
回路68の出力信号がレジスタ66に取込まれ
る。従つてレジスタ66の出力は入力端子63か
らタイミング信号が入る毎に最初の総和Sから定
数Cを順次減算していくことになる。比較回路7
0はレジスタ66の内容とレジスタ69の内容C
とを比較しレジスタ66の内容が大きいか同じ時
はゲート回路71を駆動してレジスタ69の内容
Cをゲート回路71の出力とし、レジスタ66の
内容が小さい時はゲート回路71を駆動してレジ
スタ66の内容をゲート回路71の出力とする。
正負判定回路72はゲート回路73を駆動しレジ
スタ66の内容が正の時はゲート回路71の出力
をゲート回路73の出力とし、レジスタ66の内
容が負の時にはレジスタ74の内容である定数0
をゲート回路73の出力とすることにより出力端
子75に再配分されたデータを出力する。
FIG. 12 shows detailed block connections of the redistribution circuit 29 of FIG. 7. The sum S of data within the scanning window is set in a register 66 from an input terminal 64 via a gate circuit 65. A timing signal input from the input terminal 67 drives the gate circuit 65 and the register 66, and when setting the sum S in the register 66, the signal from the input terminal 64 is passed through and written to the register 66. Otherwise, gate circuit 6
5 allows the output signal of the subtraction circuit 68 to pass through. The subtraction circuit 68 extracts the contents of the register 69 from the contents of the register 66.
The constant C set in is subtracted and output.
The timing signal input from the input terminal 63 drives the register 66, and the output signal of the subtraction circuit 68 input via the gate circuit 65 is taken into the register 66. Therefore, the output of the register 66 is to sequentially subtract the constant C from the initial sum S every time a timing signal is input from the input terminal 63. Comparison circuit 7
0 is the content of register 66 and the content of register 69 C
When the contents of the register 66 are larger or the same, the gate circuit 71 is driven and the contents C of the register 69 are made the output of the gate circuit 71, and when the contents of the register 66 are small, the gate circuit 71 is driven and the register 69 is output. The contents of 66 are taken as the output of the gate circuit 71.
The positive/negative determination circuit 72 drives the gate circuit 73, and when the contents of the register 66 are positive, the output of the gate circuit 71 is used as the output of the gate circuit 73, and when the contents of the register 66 is negative, the constant 0, which is the contents of the register 74, is used.
By making the output of the gate circuit 73, the redistributed data is outputted to the output terminal 75.

次に誤差補正演算回路26について説明する。 Next, the error correction calculation circuit 26 will be explained.

第13図は第7図の誤差補正演算回路26の詳
細なブロツク結線を示すものである。比較回路7
6はレジスタ77のアドレス定数と入力端子62
から入るアドレスデータを比較し、一致するとゲ
ート回路78を駆動して入力端子63から入るタ
イミング信号を通過させる。レジスタ77のアド
レス定数は走査窓内で最後のデータ変換された値
Dn-1′′′′,o-1の走査窓内アドレスで前記の例では
00の値となる。比較回路79は入力端子80から
入る二値化レベルVと入力端子79から入る再配
分されたデータとを比較し、再配分されたデータ
が大きければゲート回路81を駆動してレジスタ
82の定数Cをゲート回路81の出力とし、再配
分されたデータが大きくなければゲート回路81
を駆動してレジスタ83の定数0をゲート回路8
1の出力とする。減算回路84は入力端子75の
再配分データからゲート回路81の出力を減算す
る。レジスタ85はゲート回路78の出力信号で
減算回路84の減算結果を取込み出力端子86へ
誤差補正量Eとして与える。
FIG. 13 shows detailed block connections of the error correction calculation circuit 26 of FIG. 7. Comparison circuit 7
6 is the address constant of register 77 and input terminal 62
The address data input from the input terminal 63 are compared, and if they match, the gate circuit 78 is driven to allow the timing signal input from the input terminal 63 to pass. The address constant of register 77 is the value of the last data converted within the scanning window.
D n-1 ′′′′, address within the scanning window of o-1 in the above example
The value will be 00. The comparison circuit 79 compares the binarized level V input from the input terminal 80 and the redistributed data input from the input terminal 79, and if the redistributed data is larger, it drives the gate circuit 81 and changes the constant C of the register 82. is the output of the gate circuit 81, and if the redistributed data is large, the gate circuit 81
to drive the constant 0 of the register 83 to the gate circuit 8
The output is 1. The subtraction circuit 84 subtracts the output of the gate circuit 81 from the redistribution data at the input terminal 75. The register 85 takes in the subtraction result of the subtraction circuit 84 using the output signal of the gate circuit 78 and supplies it to an output terminal 86 as an error correction amount E.

発明の効果 以上のように本発明は画質低下のない擬似中間
調を得ることができ、また本発明による画像処理
は画像読取り例でのみ行なえばよい。従つてたと
えば既存のフアクシミリシステム等では送信側に
一部回路を付加するだけで実施することが可能と
なる。従来は文字線画などの二値画像と中間調画
像の混在する画像ではその片方の画質低下をさけ
られなかつたことが本発明により両方とも良質の
画像を表示・記録することが可能となつた。また
従来のデイザ法では表現できる擬似中間調のレベ
ル数はマトリクスサイズで限定され、レベル数を
多くするために走査窓サイズを大きくすると分解
能が劣化することになる。従つてカラー画像を処
理するときには再現色が少なく実用的でない。し
かし本発明は表現できるレベルが原理的にほぼ連
続であるため、カラー画像処理にも最適な方式と
云える。またカラー画像処理においてイエロー
Y,シアンC,マゼンタM、ブラツクBそれぞれ
の信号に対して上記付加データのレベル分布をズ
ラして配置することにより各色の重なりを少なく
するなどの工夫も容易に可能なことは明らかであ
る。
Effects of the Invention As described above, the present invention can obtain pseudo halftones without deteriorating image quality, and the image processing according to the present invention only needs to be performed in the image reading example. Therefore, for example, existing facsimile systems can be implemented by simply adding some circuits to the transmitting side. Conventionally, when an image was a mixture of a binary image such as a character line drawing and a halftone image, it was impossible to avoid deterioration in the image quality of one of them, but the present invention has made it possible to display and record images of high quality for both. Furthermore, in the conventional dither method, the number of pseudo halftone levels that can be expressed is limited by the matrix size, and if the scanning window size is increased to increase the number of levels, the resolution will deteriorate. Therefore, when processing color images, the number of reproduced colors is so small that it is not practical. However, since the levels that can be expressed in the present invention are essentially continuous, it can be said to be an optimal method for color image processing. In addition, in color image processing, it is easily possible to reduce the overlap of each color by staggering the level distribution of the additional data for each of the yellow Y, cyan C, magenta M, and black B signals. That is clear.

さらに本発明は、広い範囲にわたる等しいレベ
ルの画信号、特にコンピユータにより発生させた
等レベルの画信号に対しても良好な再生画像を得
ることができる。
Further, according to the present invention, a good reproduced image can be obtained even for image signals of equal level over a wide range, especially image signals of equal level generated by a computer.

さらに、付加データの規則性が現在各種発表さ
れている予測符号化法などの帯域圧縮効率を向上
させることにもなる等、本発明により波及する効
果は非常に大なるものがある。
Furthermore, the regularity of the additional data also improves the band compression efficiency of various currently announced predictive coding methods, and the present invention has a very large effect.

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

第1図a,bは従来の擬似中間調表示の1つで
あるデイザ法を説明する概略図、第2図a〜eは
本発明の一実施例における画像信号処理方法の走
査窓とデータ変換を説明する概略図、第3図は同
方法の一部の処理手順を示すフローチヤート、第
4図のa,bは同方法のデータ再配分に規則性を
与える方法を説明する概略図、第5図は付加デー
タ補正係数を総和Sとの関係を示すグラフ、第6
図は本発明の一実施例における画像信号処理方法
の処理手順を示すフローチヤート、第7図は本発
明の一実施例における画像信号処理装置のブロツ
ク結線図、第8図は同装置における付加データ加
算回路のブロツク結線図、第9図a,bは同付加
データ加算回路における記憶装置の記憶状態を説
明するための概略図、第10図は同付加データ加
算回路の動作を示すタイミングチヤート、第11
図は同装置における順位付回路のブロツク結線
図、第12図は同装置における再配分回路のブロ
ツク結線図、第13図は同装置における誤差補正
演算回路のブロツク結線図である。 19,21……画像データ記憶装置、25……
データ加算回路、26……誤差補正演算回路、2
7……付加データ加算回路、28……順位付回
路、29……再配分回路。
Figures 1a and b are schematic diagrams illustrating the dither method, which is one of the conventional pseudo halftone displays, and Figures 2a to 2e are scanning windows and data conversion of an image signal processing method in an embodiment of the present invention. FIG. 3 is a flowchart showing a part of the processing procedure of the method; FIGS. Figure 5 is a graph showing the relationship between the additional data correction coefficient and the total sum S.
The figure is a flowchart showing the processing procedure of an image signal processing method in an embodiment of the present invention, FIG. 7 is a block wiring diagram of an image signal processing device in an embodiment of the present invention, and FIG. 8 is an additional data in the device. 9a and 9b are schematic diagrams for explaining the storage state of the storage device in the additional data adding circuit, and FIG. 10 is a timing chart showing the operation of the additional data adding circuit. 11
12 is a block diagram of the ranking circuit in the same device, FIG. 12 is a block diagram of the redistribution circuit in the same device, and FIG. 13 is a block diagram of the error correction calculation circuit in the same device. 19, 21... image data storage device, 25...
Data addition circuit, 26...Error correction calculation circuit, 2
7... Additional data addition circuit, 28... Ranking circuit, 29... Redistribution circuit.

Claims (1)

【特許請求の範囲】 1 原画像を走査分解して得られた各画素の画信
号レベルにランダムな雑音成分を重畳させた画信
号レベルを第1の画信号記憶装置に記憶させ、ラ
ンダムな雑音成分を重畳させない各画素の画信号
レベルを第2の画信号記憶装置に記憶させ、前記
第2の画信号記憶装置を走査する画素数Mの第2
の走査窓内の全ての画素の画信号レベルの和Sn
と誤差補正量Eの和Sを求め、 OSC×MのときS=C×N+A O>SのときN=O,A=O S>C×MのときN=M,A=O 〔但し、Cは所定の画信号レベル、 NはONMなる整数、 AはOA<C。〕 なるNとAを求め、前記第2の画信号記憶装置と
対応する前記第1の画信号記憶装置の位置を走査
する画素数Mの第1の走査窓内の各画素には前記
和Sに応じて大きさが制御される付加データを重
畳させた後に各画素を画信号レベルの降順または
昇順に番号付けし、前記第1の走基窓に対応する
前記第2の走査窓内の各画素に対し降順の時は1
番目からN番目の画素は画信号レベルとしてC
を、(N+1)番目の画素は画信号レベルとして
Aを、残りの画素は画信号レベルとしてOを割当
てる置換を施し、昇順の時は1番目から(M−N
−1)番目の画素は画信号レベルとしてOを、
(M−N)番目の画素は画信号レベルとしてAを、
残りの画素は画信号レベルとしてCを割当てる置
換を施し、現在の第2の走査窓内の各画素で以後
の走査窓移動によつて再度走査窓内に含まれなく
なる画素の画信号レベルP1STに対し、前記画信号
レベルP1STと予め定めてあるOV<Cなる二値
化レベルVとの比較により前記画信号レベルP1ST
が大きい場合はCを、前記画信号レベルP1STが大
きくない場合はOを画信号レベルP2NDとして与え
る置換を施し、次の走査窓移動後の誤差補正量E
として前記画信号レベルP1STとP2NDの差の総和を
与え、上記手順を前記第1、第2の画信号記憶装
置の全域に対して前記第1の走査窓および前記第
2の走査窓を所定画素分づつ移動させながら繰返
すことを特徴とする画像信号処理方法。 2 原画像を走査分解して得られた各画素の画信
号レベルにランダムな雑音成分を重畳させた画信
号レベルを第1の画信号記憶装置に記憶させ、ラ
ンダムな雑音成分を重畳させない各画素の画信号
レベルを第2の画信号記憶装置に記憶させ、前記
第2の画信号記憶装置を走査する画素数Mの第2
の走査窓内の全ての画素の画信号レベルの和Sn
と誤差補正量Eの和Sとを求め、 OSC×MのときS=C×N+A O>SのときN=O,A=O S>C×MのときN=M,A=O 〔但し、Cは所定の画信号レベル、 NはONMなる整数、 AはOA<C。〕 なるNとAを求める演算手段と、前記第2の画信
号記憶装置と対応する前記第1の画信号記憶装置
の位置を走査する画素数Mの第1の走査窓内の各
画素には前記和Sに応じて大きさが制御される付
加データを重畳させた後に各画素を画信号レベル
の降順または昇順に番号付けする順位付手段と、
前記第1の走査窓に対応する前記第2の走査窓内
の各画素に対し降順の時は1番目からN番目の画
素は画信号レベルとしてCを、(N+1)番目の
画素は画信号レベルとしてAを、残りの画素は画
信号レベルとしてOを割当てる置換を施し、昇順
の時は1番目から(M−N−1)番目の画素は画
信号レベルとしてOを、(M−N)番目の画素は
画信号レベルとしてAを、残りの画素は画信号レ
ベルとしてCを割当てる割当手段と、現在の走査
窓W2内の各画素で以後の走査窓移動によつて再
度走査窓内に含まれなくなる画素の画信号レベル
P1STに対し、前記画信号レベルP1STと予め定めて
あるOV<Cなる二値化レベルVとの比較によ
り前記画信号レベルP1STが大きい場合はCを、前
記画信号レベルP1STが大きくない場合はOを画信
号レベルP2NDとして与える置換を施す手段と、次
の走査窓移動後の誤差補正量Eとして前記画信号
レベルP1STとP2NDとの差の総和を与える手段と、
前記第1、第2の画信号記憶手段の全域に対して
前記第1の走査窓および前記第2の走査窓を所定
画素分づつ移動させる手段とを備えた画像信号処
理装置。
[Claims] 1. An image signal level obtained by scanning and decomposing an original image and superimposing a random noise component on the image signal level of each pixel is stored in a first image signal storage device, and the random noise component is stored in a first image signal storage device. The pixel signal level of each pixel whose components are not superimposed is stored in a second pixel storage device, and the second pixel number M of pixels to be scanned in the second pixel storage device is stored.
The sum of the image signal levels of all pixels within the scanning window S n
Find the sum S of the error correction amount E, and when OSC×M, S=C×N+A When O>S, N=O, A=O When S>C×M, N=M, A=O [However, C is a predetermined image signal level, N is an integer ONM, and A is OA<C. ] Calculate N and A, and calculate the sum S for each pixel within a first scanning window of M pixels in which a position of the first image signal storage device corresponding to the second image signal storage device is scanned. After superimposing additional data whose size is controlled according to 1 for descending order of pixels
The pixel from the th to the Nth has an image signal level of C.
, the (N+1)th pixel is assigned A as the image signal level, the remaining pixels are assigned O as the image signal level, and in ascending order, from the 1st to (M-N
-1)th pixel has O as the image signal level,
The (M−N)th pixel has A as the image signal level,
The remaining pixels are replaced by assigning C as the image signal level, and for each pixel within the current second scanning window, the image signal level P 1ST of the pixel that will no longer be included within the scanning window due to subsequent scanning window movement. In contrast, the image signal level P 1ST is determined by comparing the image signal level P 1ST with a predetermined binarization level V where OV<C.
If the image signal level P 1ST is large, C is given as the image signal level P 2ND, and if the image signal level P 1ST is not large, O is given as the image signal level P 2ND .
The sum of the differences between the image signal levels P 1ST and P 2ND is given as An image signal processing method characterized by repeating the process while moving by a predetermined number of pixels. 2. An image signal level obtained by scanning and decomposing the original image and superimposing a random noise component on the image signal level of each pixel is stored in the first image signal storage device, and each pixel on which a random noise component is not superimposed is stored. A second image signal level of the number M of pixels to be scanned in the second image signal storage device is stored in a second image signal storage device.
The sum of the image signal levels of all pixels within the scanning window S n
and the sum S of the error correction amount E. When OSC×M, S=C×N+A When O>S, N=O, A=O When S>C×M, N=M, A=O [However, , C is a predetermined image signal level, N is an integer ONM, and A is OA<C. ] Calculating means for calculating N and A, and each pixel within a first scanning window of M pixels for scanning a position of the first image signal storage device corresponding to the second image signal storage device; a ranking means for superimposing additional data whose size is controlled according to the sum S and then numbering each pixel in descending order or ascending order of image signal level;
For each pixel in the second scanning window corresponding to the first scanning window, in descending order, the 1st to Nth pixels have a pixel signal level of C, and the (N+1)th pixel has a pixel signal level of C. The remaining pixels are assigned O as the image signal level, and in ascending order, the 1st to (M-N-1)th pixels are assigned O as the image signal level, and the (M-N)th pixel is assigned O as the image signal level. pixel is assigned A as the image signal level, and the remaining pixels are assigned C as the image signal level, and each pixel within the current scanning window W2 is included within the scanning window again by subsequent scanning window movement. Image signal level of pixels that disappear
For P 1ST , when the image signal level P 1ST is compared with a predetermined binarization level V where OV<C, if the image signal level P 1ST is large, C is determined, and the image signal level P 1ST is large. If there is no image signal level P 2ND , means for replacing O as the image signal level P 2ND, and means for providing the sum of the difference between the image signal levels P 1ST and P 2ND as the error correction amount E after the next scanning window movement;
An image signal processing device comprising: means for moving the first scanning window and the second scanning window by a predetermined pixel with respect to the entire area of the first and second image signal storage means.
JP59105009A 1984-05-23 1984-05-23 Method and device for processing picture signal Granted JPS60248071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59105009A JPS60248071A (en) 1984-05-23 1984-05-23 Method and device for processing picture signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59105009A JPS60248071A (en) 1984-05-23 1984-05-23 Method and device for processing picture signal

Publications (2)

Publication Number Publication Date
JPS60248071A JPS60248071A (en) 1985-12-07
JPH0425751B2 true JPH0425751B2 (en) 1992-05-01

Family

ID=14396073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59105009A Granted JPS60248071A (en) 1984-05-23 1984-05-23 Method and device for processing picture signal

Country Status (1)

Country Link
JP (1) JPS60248071A (en)

Also Published As

Publication number Publication date
JPS60248071A (en) 1985-12-07

Similar Documents

Publication Publication Date Title
EP0717551B1 (en) Image processing apparatus
US4551768A (en) Method and apparatus for processing image signal
US5729663A (en) Method and apparatus for gray screening
US5375002A (en) Color error diffusion
US6201612B1 (en) Image processing method and apparatus employing block error diffusion
US4692811A (en) Apparatus for processing image signal
JPS59156070A (en) Picture processing device
JPS6198069A (en) Image processor
JPS59218076A (en) Picture processing system
US6330075B1 (en) Image processing method and apparatus
US6559976B1 (en) Color image processor
US5715329A (en) Digital copying machine with memory for compressed image data
US20030020935A1 (en) Image processing method and apparatus
JPH027113B2 (en)
JPH0117309B2 (en)
JPH0425751B2 (en)
JP2891775B2 (en) Digitized density limit generation and storage method for halftone original image mesh screen
JPS6349428B2 (en)
JPH042034B2 (en)
JP2800071B2 (en) Color image forming equipment
JPH0425752B2 (en)
JPS6349427B2 (en)
US20060203291A1 (en) Tone converting device, image processing apparatus, printing apparatus, tone converting method, and program
JPH0354913B2 (en)
JPS6349429B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term