JPH0425752B2 - - Google Patents
Info
- Publication number
- JPH0425752B2 JPH0425752B2 JP59105011A JP10501184A JPH0425752B2 JP H0425752 B2 JPH0425752 B2 JP H0425752B2 JP 59105011 A JP59105011 A JP 59105011A JP 10501184 A JP10501184 A JP 10501184A JP H0425752 B2 JPH0425752 B2 JP H0425752B2
- Authority
- JP
- Japan
- Prior art keywords
- image signal
- pixel
- signal level
- scanning window
- data
- 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
Links
- 238000012937 correction Methods 0.000 claims description 49
- 238000003860 storage Methods 0.000 claims description 31
- 238000000034 method Methods 0.000 claims description 23
- 238000012545 processing Methods 0.000 claims description 23
- 238000003672 processing method Methods 0.000 claims description 8
- 230000001174 ascending effect Effects 0.000 claims description 6
- 229910052717 sulfur Inorganic materials 0.000 claims description 2
- 238000006243 chemical reaction Methods 0.000 description 23
- 238000004364 calculation method Methods 0.000 description 11
- 238000013500 data storage Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 8
- 230000006866 deterioration Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 229910052760 oxygen Inorganic materials 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000002542 deteriorative effect Effects 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910052709 silver Inorganic materials 0.000 description 1
- 239000004332 silver Substances 0.000 description 1
- -1 silver halide Chemical class 0.000 description 1
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本考案はフアクシミリ電送装置などのように一
度画像を走査分解した後、再度画像を構成する一
般の画像走査・記憶装置または画像走査・表示装
置に用いられる画信号処理方法および画信号処理
装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention is applicable to 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 in a facsimile transmission device. The present invention relates to an image signal processing method and an image signal processing apparatus.
従来例の構成とその問題点
近年日常業務におけるフアクシミリ利用がます
ます拡大の一途であり、それとともに従来の白黒
二値の他に中間調の再現に対する要望も強まりつ
つある。中間調の再現に関しては記録装置と伝送
方式の両面から制約されることが多い。例えば写
真に使われる銀塩の印画紙に記録する装置や感熱
記録装置などは中間調の記録特性が良いが、静電
記録装置やインクジエツト記録装置などは本質的
に二値記録に向いているものと言える。一方、伝
送方式ではこれまでのアナログ電送からデイジタ
ル電送に変りつつありデータ圧縮技術などを駆使
してより高速に効率よい電送を行うという傾向に
ある。そこで白黒2値の記録装置を用いる擬似中
間調表示に良い方式があればこれからのデイジタ
ルデータ電送の方向とも符号し、より最適なフア
クシミリ電送システムを構成できるようになる。Conventional configurations and their 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 increasing. Reproduction of halftones is often restricted by both recording devices and transmission methods. For example, devices that record 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 trend toward faster and more efficient transmission by making full use of data compression technology. 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 developed. 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, for black and white binary original images, this method has the disadvantage that the display quality is worse 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) 前記第2の画信号記憶手段を走査する画素数
Mの第2の走査窓内の全ての画素の画信号レベ
ルの総和Snと誤差補正量Eの和Sを求め、
O≦S≦C×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を求め、
(3) 前記第2の画信号記憶装置と対応する前記第
1の画信号記憶手段の位置を走査する画素数M
の第1の走査窓内の各画素そ画信号レベルの降
順または昇順に番号付けし、
(4) 前記第1の走査窓に対応する前記第2の走査
窓内の各画素に対し降順の時は1番目からN番
目の画素は画信号レベルとしてCを、(N+1)
番目の画素は画信号レベルとしてAを、残りの
画素は画信号レベルとしてOを割当てる置換を
施し、昇順の時は1番目から(M−N−1)番
目の画素は画信号レベルとしてOを、(M−N)
番目の画素は画信号レベルとしてAを、残りの
画素は画信号レベルとしてCを割当てる置換を
施し、
(5) 前記第2の走査窓内の各画素で以後の走査窓
移動によつて再度走査窓内に含まれなくなる画
素の画信号レベルP1STに対し、前記画信号レベ
ルP1STと予め定めてあるO≦V<Cなる二値化
レベルVとの比較により前記画信号レベルP1ST
が大きい場合はCを、前記画信号レベルP1STが
大きくない場合はOを画信号レベルP2NDとして
与える置換を施し、
(6) 前記画信号レベルP1STとP2NDNO差の総和を
(K+1)個に分割誤差補正量に分割し、前記
分割誤差補正量の1つは誤差補正量Eに設定
し、残りのK個の分割誤差補正量は、前記第2
の走査窓内の各画素で、次の走査窓移動によつ
ては走査窓内に含まれないが、以後の走査窓移
動によつて再度走査窓内に含まれるK個の画素
の前記設定された画信号レベルにそれぞれ加算
し、
(7) 上記(2),(3),(4),(5),(6),(7)を前記第1、
第
2の画信号記憶手段の全域に対して前記第1、
第2の走査窓を所定画素分づつ移動させながら
繰返す画像処理を行なうものである。Structure of the Invention The present invention provides: (1) storing the image signal level of each pixel obtained by scanning and decomposing the original image in first and second image signal storage means; (2) storing the second image signal; Find the sum S of the image signal levels of all pixels in the second scanning window of M pixels to scan the storage means and the error correction amount E , and when O≦S≦C×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 Find N and A such that O≦A<C 0 ], and (3) find the number M of pixels for scanning the position of the first image signal storage means corresponding to the second image signal storage device.
(4) numbering each pixel in the first scanning window in descending or ascending order of pixel signal level; (4) numbering each pixel in the second scanning window corresponding to the first scanning window in descending order; For the 1st to Nth pixels, C is the image signal level, (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 image signal level, and the remaining pixels are assigned C as the image signal level. (5) Each pixel within the second scanning window is scanned again by subsequent scanning window movement. The image signal level P 1ST of the pixel that is no longer included in the window is determined by comparing the image signal level P 1ST with a predetermined binarization level V where O≦V<C.
When the image signal level P 1ST is large, C is substituted, and when the image signal level P 1ST is not large, O is given as the image signal level P 2ND . (6) The sum of the differences between the image signal levels P 1ST and P 2ND ) into divided error correction amounts, one of the divided error correction amounts is set to the error correction amount E, and the remaining K divided error correction amounts are set to the second divided error correction amount.
For each pixel within the scanning window, set the K pixels that are not included within the scanning window by the next scanning window movement but are again included within the scanning window by the subsequent scanning window movement. (7) The above (2), (3), (4), (5), (6), and (7) are added to the first and second image signal levels.
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, reference numeral 5 is original image data, and data conversion is performed 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-1,o-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が求まり、(ハ)において
Dn,o-1>Dn,o>
Dn-1,o>Dn-1,o-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), D n,o-1 >D n,o > D n-1,o >D n-1 , o-1 ...(3) When a certain thing is determined, data conversion as shown in FIG. 2e is performed.
上記のデータ変換を原画の全データについて行
なうと、原画データのデータ値が小さい所ではO
の数が多く、データ値が大きい所ではCの数が多
く、原画データのデータ値に比例して変換されて
いく。従つてデータ変換された値に対して通常の
閾値処理を行ない二値化データにすると擬似中間
表示のデータを得ることができる。 If the above data conversion is performed on all the data of the original image, 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.
さて第2図dにおいて、Dn-1,o-1は最後のデ
ータ変換をした値である。この値がOまたはCの
場合は良いが、Aの場合は二値化されて誤差が発
生することになる。すなわち、二値化後の白は
O,黒はCの値を持つため、Aを閾値処理して二
値化することは余分に白または黒に変化させたこ
とになり、擬似中間調の階調特性を悪くする。そ
こでDn-1,o-1の値をP1STとし、これを閾値判定
した値P2ND(OまたはC)との差分を求め、これ
を誤差補正総量Esとし,誤差補正総量Esを分割し
て一つは誤差補正量Eとして、次の走査窓での総
和Sを求める時に加算し、残りは分割誤差補正量
Edとして第2図dのデータ変換後の値Dn″,o-1の
値に加算して置換する事により、誤差補正量Eは
主走査方向の次の処理に使用され総和Sを補正
し、分割誤差補正量Edは副走査方向の次の処理
に使用され総和Sを補正する。主走査方向と副走
査方向の両方向に階調特性の改善を計る事ができ
る。 Now, in Figure 2 d, D n-1 and o-1 are the values after the last data conversion. It is fine if this value is O or C, but if it is A, it will be binarized and an error will occur. In other words, since white has a value of O and black has a value of C after binarization, thresholding A and binarizing it means changing it to white or black redundantly, resulting in a pseudo halftone gradation. It worsens the tonal characteristics. Therefore, the value of D n-1 , o-1 is set as P 1ST , and the difference between this and the threshold value P 2ND (O or C) is calculated, and this is set as the total error correction amount E s , and the total error correction amount Es is Divide it and add one as the error correction amount E when calculating the total sum S in the next scanning window, and the rest as the divided error correction amount.
By adding E d to the value D n ″, o-1 after data conversion in Figure 2 d and replacing it, the error correction amount E is used for the next process in the main scanning direction and corrects the total sum S. However, the divisional error correction amount E d is used in the next process in the sub-scanning direction to correct the sum S. It is possible to improve the gradation characteristics in both the main-scanning direction and the sub-scanning direction.
なお、前記誤差補正量Esの分割は任意の比率で
良いが以下の説明は、1/2に分割した例を説明す
る。 Although the error correction amount E s may be divided at any ratio, the following explanation will be based on an example in which it is divided into 1/2.
以下、画信号処理方法について第4図に示すフ
ローチヤートとともにさらに詳細に説明する。 The image signal processing method will be explained in more detail below with reference to the flowchart shown in FIG.
〔なお、第4図に示すフローチヤートにおい
て、
G1,G2:画像データ記憶装置、
W1:G1の画像データに対する走査窓、
Dn,o,Dn,o-1,Dn-1,o,Dn-1,o-1 :W1内の各
データ、
W2:G2の画像データに対する走査窓、
Dn,o,Dn′,o-1,Dn-1″,o,Dn-1,o-1:W2内
の各データで現走査窓位置においてデータ変換さ
れる前の値。′の数は過去の走査窓位置でデータ
変換された回数、
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:O≦N≦Mなる整数、
A:O≦A<C,
V:二値化レベル
Es:誤差補正総量
Ed:分割誤差補正量
Es=E+Ed
をそれぞれ示す。〕
(イ) 画像データを記憶装置G1,G2に入力する
(なお画像データを1画素または1走査線分づ
つ入力しながら以下の処理をすることも可能で
あるが、ここでは全画像データを入力した後に
処理していくものとする。)。 [In the flowchart shown in FIG. 4, G 1 , G 2 : image data storage device, W 1 : scanning window for image data of G 1 , D n,o , D n,o-1 , D n- 1,o , D n-1 , o-1 : Each data in W 1 , 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 : Value of each data in W 2 before data conversion at the current scanning window position. 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 : W 2
The value after data conversion at the current scanning window position for each data within. 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 O≦N≦M, A: O≦A<C, V: binarization level E s : error correction Total amount E d : Indicates the division error correction amount E s =E+E d , respectively. ] (a) Input image data into storage devices G 1 and G 2 (note that it is possible to perform the following processing while inputting image data one pixel or one scanning line at a time, but here we will input all image data ).
(ロ) 記憶装置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内データの総和Snと誤差補正量E
の和Sを求める。(d) Total sum S n of data within scanning window W 2 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 (li) find N and A such that S=C×N+A. .
(ヌ) 走査窓W1内のデータDn,o,Dn,o-1,
Dn-1,o,Dn-1,o-1の大きい順に走査窓W2内の各
対応するデータ位置を以下のように書換えてい
る。(N) Data D n,o , D n,o-1 , within scanning window W 1 ,
The corresponding data positions within the scanning window W 2 are rewritten as follows in descending order of D n-1,o , D n- 1 , and o-1 .
〔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-1woP1ST
とする。 Let the rest be O. ] (ru) Data D n-1 , o-1 woP 1ST in scanning window W 2
shall be.
(ヲ) P1STと二値化レベルVを比較する。P1ST
が大きければ(ワ)でP2NDをCとし、P1STが大
きくなれば(カ)でP2NDをOとする。なお、デ
ータDn-1,o-1の値は最終的に二値化レベルV
で二値データに変換されるのであるから、ここ
でP2NDの値に置換えてもそのままでも同じこと
である。(wo) Compare P 1ST and binarization level V. P 1ST
If is large, P 2ND is set to C with (W), and if P 1ST is large, P 2ND is set to O with (F). Note that the values of data D n-1 and o-1 are finally at the binarization level V
Since it is converted to binary data by , it is the same whether you replace it with the value of P 2ND here or leave it as is.
(ヨ) 誤差補正総量EsとしてP2ND−P1STを求
め、次の走査窓位置で補正する誤差補正量Eと
分割誤差補正量EdをそれぞれEs/2とする。(Y) P 2ND −P 1ST is determined as the total error correction amount E s , and the error correction amount E and the divided error correction amount E d to be corrected at the next scanning window position are each set as E s /2.
(タ) 走査窓W2内のデータ変換後の値Dn″,o-1
に分割誤差補正量Edを加算し、前記Dn″,o-1の
値と置換する。(T) Value after data conversion within scanning window W 2 D n ″, o-1
The division error correction amount E d is added to and replaced with the values of D n ″, o−1 .
(レ) 走査窓W1と走査窓W2とをともに主走
査方向へ1画素移動する。(v) Both scanning window W 1 and scanning window W 2 are moved by one pixel in the main scanning direction.
(ソ) 主走査方向の処理が終了したかを判断す
る。終了していなければ(ニ)に戻る。(S) Determine whether processing in the main scanning direction has been completed. 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).
以上第4図に示した(イ)〜(ネ)の処理方法によ
り、二値画像の分解能劣化による画質低下の生じ
ない擬似中間調表示を得ることができる。 By using the processing methods (a) to (e) shown in FIG. 4, it is possible to obtain a pseudo halftone display that does not suffer from deterioration in image quality due to deterioration in the resolution of the binary image.
次に第5図を参照しながら、本発明の一実施例
における画像信号処理装置について説明する。 Next, an image signal processing device according to an embodiment of the present invention will be described with reference to FIG.
第5図は本発明の一実施例における画像信号処
理装置のブロツク結線を示すものである。 FIG. 5 shows block connections of an image signal processing apparatus in an embodiment of the present invention.
第5図において、15は後述する各ブロツク機
能にタイミング信号を供給するタイミング信号発
生回路で各ブロツク機能へのタイミング信号供給
線は省略している。17は端子16を介して入力
されるアナログ画像信号をデイジタル画像信号に
変換するA/D変換器、19,21はそれぞれゲ
ート回路18,20を介し指示されたアドレスに
応じてデイジタル画像信号を記憶あるいは読み出
す画像データ記憶装置、22はゲート回路18,
20にアドレス情報を送出してゲート回路18,
20を制御するアドレス制御回路、23は再配分
のデータ変換処理が全て終了したデータを二値化
して端子24を介して画像記録装置等に記録させ
る二値化回路、25はゲート回路20を介して画
像データ記憶装置21から読み出された走査窓
W2内データと誤差補正演算回路26から送出さ
れる誤差補正データEとの総和Sを求めるデータ
加算回路、28はゲート回路18を介して画像デ
ータ記憶装置19から読み出された走査窓W1内
のデータを大きい順に順位付する順位付回路、2
9はデータ加算回路25から送出されてくる総和
Sおよび誤差補正演算回路26から送出されてく
る分割誤差補正量Edとから変換データを作成し
再配分を行なう再配分回路である。 In FIG. 5, 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 inputted through the terminal 16 into a digital image signal; 19 and 21 store digital image signals according to addresses instructed through gate circuits 18 and 20, respectively; or an image data storage device to be read; 22 is a gate circuit 18;
20 to send the address information to the gate circuit 18,
23 is a binary conversion 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; The scanning window read out from the image data storage device 21 by
28 is a scanning window W 1 read out from the image data storage device 19 via the gate circuit 18; A ranking circuit for ranking data in descending order of size, 2
Reference numeral 9 denotes a redistribution circuit that creates converted data from the sum S sent out from the data addition circuit 25 and the divided error correction amount Ed sent out from the error correction calculation circuit 26, and performs reallocation.
上記構成において、以下その動作を説明する。 The operation of the above configuration will be explained below.
まず原画像を走査して得たアナログ画信号は入
力端子16を介しA/D変換器17によりデイジ
タル画像信号に変換され、ゲート回路18を介し
て画像データ記憶装置19に記憶されるとともに
ゲート回路20を介して画像データ記憶装置21
にも記憶される。その際ゲート回路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 is stored in an image data storage device 19 via a gate circuit 18, and is also stored in a gate circuit. Image data storage device 21 via 20
It will also be remembered. At that time, the gate circuit 18 and the gate circuit 20 are controlled by an address control circuit 22, and the memory device 19 and the memory device 21, respectively.
Indicates the data write/read address. In the process to be described later, the data stored in the storage device 19 is used as data for ranking, and the data in the storage device 21 is finally rewritten by data conversion by redistribution.
また再配分のデータ変換処理が全て終了したデ
ータは記憶装置21からゲート回路20を介して
読出され二値化回路23を介し画像記録装置(図
示せず)等で記録される出力画像信号として出力
端子24に出力される。さて、データ加算回路2
5は記憶装置21からゲート回路20を介して得
た走査窓内データと誤差補正量演算回路26から
得た誤差補正データEの総和Sを求める。順位付
回路28は記憶装置19からゲート回路18を通
して得た走査窓内の各データを大きい順に記憶装
置21の対応する走査窓位置におけるデータ番地
を全て決定しアドレス制御回路22と誤差補正演
算回路26に通知する。またこの通知するタイミ
ングで誤差補正量演算回路26と再配分回路29
にも通知する。そこで再配分回路29はデータ換
算回路25から得た総和Sおよび誤差補正演算回
路26から送出されてくる分割誤差補正量Edと
から変換データを作成しアドレス制御回路22で
指定された記憶装置21の番地にゲート回路20
を介して順次変換データを書込んでいく。誤差補
正演算回路26は走査窓内で最後のデータ変換さ
れた値(第2図dのDn-1,o-1)であるP1STを順
位付回路28からのアドレスとタイミングの情報
をもとに再配分回路29の変換データから選別
し、そのP1STと二値化回路23から得た二値化レ
ベルVと比較してOまたはCの値P2NDを求め、
P1ST−P2NDの値の1/2を次の走査窓における誤差
補正量Eおよび分割誤差補正量Edとして与える。 Further, the data for which all data conversion processing for redistribution has been completed is read out from the storage device 21 via the gate circuit 20, and output as an output image signal via the binarization circuit 23 to be recorded by an image recording device (not shown) or the like. It is output to terminal 24. Now, data addition circuit 2
5 calculates the sum S of the data within the scanning window obtained from the storage device 21 via the gate circuit 20 and the error correction data E obtained from the error correction amount calculation circuit 26. The ranking circuit 28 determines all the data addresses at the corresponding scanning window positions in the storage device 21 in descending order of each data in the scanning window obtained from the storage device 19 through the gate circuit 18, and sends the data to the address control circuit 22 and the error correction calculation circuit 26. to notify. Also, at the timing of this notification, the error correction amount calculation circuit 26 and the redistribution circuit 29
will also be notified. Therefore, the redistribution circuit 29 creates converted data from the total sum S obtained from the data conversion circuit 25 and the divided error correction amount E d sent from the error correction calculation circuit 26, and transfers the converted data to the storage device 21 specified by the address control circuit 22. Gate circuit 20 at address
Conversion data is sequentially written through the . The error correction calculation circuit 26 also uses the address and timing information from the ranking circuit 28 to output P 1ST , which is the last data-converted value (D n-1 , o-1 in FIG. 2 d) within the scanning window. , and compares the P 1ST with the binarization level V obtained from the binarization circuit 23 to obtain the value P 2ND of O or C.
1/2 of the value of P 1ST −P 2ND is given as the error correction amount E and the divided error correction amount E d in the next scanning window.
以上を繰り返すことにより、画像信号の処理を
行なうことができる。 By repeating the above steps, image signals can be processed.
以下第6図〜第8図を参照して第5図に示した
順位付回路28、再配分回路29および誤差補正
演算回路26の更に詳細な構成を説明する。 The detailed configurations of the ranking circuit 28, redistribution circuit 29, and error correction calculation circuit 26 shown in FIG. 5 will be described below with reference to FIGS. 6 to 8.
まず、順位付回路28の詳細について説明す
る。 First, details of the ranking circuit 28 will be explained.
第6図は第5図に示した順位付回路28のブロ
ツク構成を示すものである。ゲート回路18を介
して画像データ記憶装置19から読み出された2
×2走査窓W1内の4個のデータはデータ入力端
子44から入力され、ゲート回路46を介し走査
窓内の位置と対応した4個のデータレジスタ47
の所定の位置に記憶される。このとき、記憶され
る位置は入力端子43から入力されるタイミング
パルスT2をカウントするカウンタ48の出力を
ゲート回路49を介してレジスタ47にアドレス
設定することにより、指定される。また入力端子
43から入力されるタンミングパルスT2はゲー
ト回路50を介しレジスタ47のデータ書込みク
ロツクになると同時に、タイミング制御回路51
にも送出され信号線52にゲート切換え信号を出
力させる。信号線52のゲート切換え信号はゲー
ト回路46、ゲート回路49、ゲート回路50を
駆動しレジスタ47に対して入力端子44から入
る4個のデータを取込む入力モードの状態を作り
だしている。一方、最大値検出回路53はレジス
タ47の4個のデータに対して最大値を検出し、
その最大値のデータアドレスを出力する。このと
きタイミング制御回路51は信号線52のゲート
切換え信号でゲート回路46、ゲート回路49、
ゲート回路50を駆動し、レジスタ47の内容書
換えモードの状態を作り出している。この状態に
おいて上記最大値のデータアドレスはゲート回路
49を介してレジスタ47に設定され、またレジ
スタ54の負の定数値がゲート回路46を介して
レジスタ47に設定され、またレジスタ54の負
の定数値がゲート回路46を介してレジスタ47
に設定される。そしてタイミング制御回路51か
ら信号線55を介して出力される内部クロツク信
号がゲート回路50を介してレジスタ47のデー
タ書込みクロツクになることにより、レジスタ4
7の最大値データが負のデータに書換えられる。
この状態において信号線55に内部クロツクが4
個出力されたとき、レジスタ47の内容は全て負
の値に変わることになる。この内部クロツクが出
る順に最大値検出回路53の出力に最初にレジス
タ47に取込んだデータの大きい順の対応するデ
ータアドレスが出力される。このアドレスは4個
のアドレス記憶レジスタ56の書込みデータとな
り順次記憶されるものであるが、このとき信号線
55の内部クロツクはアドレス記憶レジスタ56
の書込みクロツクになると同時に、カウンタ57
に入力される。カウンタ57の出力はゲート回路
58を介しアドレス記憶レジスタ56にアドレス
データを記憶する位置の指定を行なう。このとき
タイミング制御回路51から出力される信号線5
9の出力信号はゲート回路58を駆動してデータ
の書込み状態につまりカウンタ57の出力をアド
レス記憶レジスタ56に与える。アドレス記憶レ
ジスタ56に4個のアドレスデータが書込まれた
後、信号線59の出力信号はゲート回路58を駆
動しアドレス記憶レジスタ56をデータの読出し
状態にする。このあとタイミング制御回路51の
信号線60に読出しクロツクを出力すると、カウ
ンタ61はこのクロツクをカウントし、その出力
をゲート回路58を介してアドレス記憶レジスタ
56に与え、アドレスデータの読出し位置を指定
する。このようにして順位付回路28からのアド
レスデータが出力端子62に出力される。また信
号線60の読出しクロツクは出力端子63に出力
され、他の回路ブロツクのタイミング信号とな
る。なおカウンタ48,57,61はいずれも2
ビツトのカウンタで、図示していないが副走査同
期パルスによりリセツトされる。またハードウエ
ア製作上の遅延時間補償など、信号のタイミング
調整の細部については自明のことであるため説明
を省略する。 FIG. 6 shows a block configuration of the ranking circuit 28 shown in FIG. 2 read out from the image data storage device 19 via the gate circuit 18
The four pieces of data within the ×2 scanning window W1 are input from the data input terminal 44, and are sent to the four data registers 47 corresponding to the positions within the scanning window via the gate circuit 46.
is stored in a predetermined location. At this time, the memorized position 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 . Further, the timing pulse T2 inputted from the input terminal 43 passes through the gate circuit 50 and becomes a data write clock for the register 47, and at the same time, the timing control circuit 51
is also sent to signal line 52 to output a gate switching signal. The gate switching signal on the signal line 52 drives the gate circuit 46, the gate circuit 49, and the gate circuit 50 to create an input mode state in which the register 47 receives four pieces of data input from the input terminal 44. On the other hand, the maximum value detection circuit 53 detects the maximum value for the four data in the register 47,
Output the data address of the maximum value. At this time, the timing control circuit 51 uses the gate switching signal of the signal line 52 to control the gate circuit 46, gate circuit 49,
The gate circuit 50 is driven to create a state in which the contents of the register 47 are rewritten. In this state, the data address of the maximum value is set in the register 47 via the gate circuit 49, the negative constant value of the register 54 is set in the register 47 via the gate circuit 46, and the negative constant value of the register 54 is set in the register 47 via the gate circuit 46. The numerical value is sent to the register 47 via the gate circuit 46.
is set to 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 7 is rewritten to negative data.
In this state, the internal clock signal 4 is connected to the signal line 55.
When the data is outputted, the contents of the register 47 will 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 sequentially, but at this time, the internal clock of the signal line 55 is
At the same time as the write clock of
is input. The output of the counter 57 is sent via a gate circuit 58 to the address storage register 56 to designate the location where the address data is to be stored. At this time, the signal line 5 output from the timing control circuit 51
The output signal of 9 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 address data from the ranking circuit 28 is output to the 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
This is a bit counter, which is not shown, but is reset by a sub-scanning synchronization pulse. Further, 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種類で
あり、第5図の画像データ記憶装置19,21に
おけるアドレスはアドレス制御回路22で新たに
作られることになる。従つて、00,01,10,11は
走査窓内のアドレスであり、仮に第2図dの走査
窓9と対応させて考えると、00はDn-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 21 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 FIG. 2d, 00 is D n-1 , o-1 , 01
should be defined as D n-1 , o , 10 as D n ″, o-1 , 11 as D n ′, o .
従つて入力端子44から入るデータもこの走査
窓内アドレスに対応する順に現われなければなら
ない。後述する第8図の誤差補正演算回路26に
おけるアドレス定数も走査窓内アドレスの意味で
ある。 Therefore, the data input from the input terminal 44 must also appear in the order corresponding to the addresses within this scanning window. The address constant in the error correction calculation circuit 26 in FIG. 8, which will be described later, also means an address within the scanning window.
次に再配分回路29について説明する。 Next, the redistribution circuit 29 will be explained.
第7図は第5図の再配分回路29の詳細なブロ
ツク結線を示すものである。走査窓内データの総
和Sは入力端子64からゲート回路65を介して
レジスタ66にセツトされる。入力端子67から
入るタイミング信号はゲート回路65とレジスタ
66を駆動し、総和Sをレジスタ66にセツトす
るときに入力端子64からの信号を通過させレジ
スタ66に書込む。それ以外ではゲート回路65
は減算回路68の出力信号を通過させる。減算回
路68はレジスタ66の内容からレジスタ69に
セツトされている定数Cを減算して出力する。入
力端子63から入るタイミング信号はレジスタ6
6を駆動し、ゲート回路65を介して入る減算回
路68の出力信号がレジスタ66に取込まれる。
従つてレジスタ66の出力は入力端子63からタ
イミング信号が入る毎に最初の総和Sら定数Cを
順次減算していくことになる。比較回路70はレ
ジスタ66の内容とレジスタ69の内容Cとを比
較しレジスタ66の内容が大きいか同じ時はゲー
ト回路71を駆動してレジスタ69の内容Cをゲ
ート回路71の出力とし、レジスタ66の内容が
小さい時はゲート回路71を駆動してレジスタ6
6の内容をゲート回路71の出力とする。正負判
定回路72はゲート回路73を駆動しレジスタ6
6の内容が正の時はゲート回路71の出力をゲー
ト回路73の出力とし、レジスタ66の内容が負
の時にはレジスタ74の内容である定数0をゲー
ト回路73の出力とするゲート回路88は入力端
子63から入るタイミング信号により、入力端子
87から入る分割誤差補正量Edを通過させる。 FIG. 7 shows detailed block connections of the redistribution circuit 29 of FIG. 5. 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 input terminal 67 drives gate circuit 65 and register 66, and when setting the sum S in register 66, the signal from input terminal 64 is passed through and written to register 66. Otherwise, gate circuit 65
passes the output signal of the subtraction circuit 68. A subtraction circuit 68 subtracts a constant C set in a register 69 from the contents of the register 66 and outputs the result. The timing signal input from the input terminal 63 is sent to the register 6.
6, and the output signal of the subtraction circuit 68, which enters through the gate circuit 65, is taken into the register 66.
Therefore, the output of the register 66 will be such that the constant C is sequentially subtracted from the initial sum S every time a timing signal is input from the input terminal 63. The comparison circuit 70 compares the contents of the register 66 and the contents C of the register 69, and if the contents of the register 66 are greater or the same, it drives the gate circuit 71 to make the contents C of the register 69 the output of the gate circuit 71, When the content of is small, the gate circuit 71 is driven and the register 6 is
6 is the output of the gate circuit 71. The positive/negative determination circuit 72 drives the gate circuit 73 and registers 6
When the content of register 66 is positive, the output of gate circuit 71 is used as the output of gate circuit 73, and when the content of register 66 is negative, the constant 0, which is the content of register 74, is used as the output of gate circuit 73. A timing signal input from the terminal 63 allows the divided error correction amount E d input from the input terminal 87 to pass through.
ゲート回路88の出力は加算回路89に加えら
れ、ゲート回路73の出力と加算されて、出力端
子75に再配分されたデータを出力とする。とこ
ろで、ゲート回路88は第2図dの走査窓におけ
るDn″,o-1の時開くように制御されているので、
Dn″,o-1には分割誤差補正量Edが加算され、その
他のデータはそのまま再配分される。 The output of the gate circuit 88 is applied to an adder circuit 89, where it is added to the output of the gate circuit 73, and the redistributed data to the output terminal 75 is output. By the way, since the gate circuit 88 is controlled to open when D n ″, o-1 in the scanning window of FIG. 2d,
The division error correction amount E d is added to D n ″, o-1 , and the other data is redistributed as is.
次に誤差補正演算回路26について説明する。 Next, the error correction calculation circuit 26 will be explained.
第8図は第5図の誤差補正演算回路26の詳細
なブロツク結線を示すものである。比較回路76
はレジスタ77のアドレス定数と入力端子62と
から入るアドレスデータを比較し、一致するとゲ
ート回路78を駆動して入力端子63から入るタ
イミング信号を通過させる。レジスタ77のアド
レス定数は走査窓内で最後のデータ変換された値
Dn-1,o-1の走査窓内アドレスで前記の例では00
の値となる。比較回路79は入力端子80から入
る二値化レベルVと入力端子75から入る再配分
されたデータとを比較し、再配分されたデータが
大きければゲート回路81を駆動してレジスタ8
2の定数Cをゲート回路81の出力とし、再配分
されたデータが大きくなければゲート回路81を
駆動してレジスタ83の定数Oをゲート回路81
の出力とする。減算回路84は入力端子75の再
配分データからゲート回路81の出力を減算す
る。レジスタ85はゲート回路78の出力信号で
減算回路84の結果を取り込み保持する。除算回
路90はレジスタ85の出力を1/2にして出力端
子86へ誤差補正量Eとして、また出力端子91
に分割誤差補正量Edとして与える。 FIG. 8 shows detailed block connections of the error correction arithmetic circuit 26 shown in FIG. Comparison circuit 76
compares the address constant of the register 77 and the address data input from the input terminal 62, and if they match, drives the gate circuit 78 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, 00 in the above example
The value is . The comparison circuit 79 compares the binarized level V input from the input terminal 80 with the redistributed data input from the input terminal 75, and if the redistributed data is larger, drives the gate circuit 81 and registers 8.
2 is set as the output of the gate circuit 81, and if the redistributed data is large, the gate circuit 81 is driven and the constant O of the register 83 is set as the output of the gate circuit 81.
Let the output be 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 and holds the result of the subtraction circuit 84 using the output signal of the gate circuit 78. A divider circuit 90 halves the output of the register 85 and sends it to an output terminal 86 as an error correction amount E, and outputs it to an output terminal 91.
is given as the division error correction amount E d .
発明の効果
以上のように本発明は画質低下のない擬似中間
調を得ることができ、また本発明による画像処理
は画像読取り例でのみ行なえばよい。従つてたと
えば既存のフアクシミリシステム等では送信側に
一部回路を付加するだけで実施することが可能と
なる。従来は文字線画などの二値画像と中間調画
像の混在する画像ではその片方の画質低下をさけ
られなかつたことが本発明により両方とも良質の
画像を表示・記録することが可能となつた。また
従来のデイザ法では表現できる擬似中間調のレベ
ル数はマトリクスサイズで限定され、レベル数を
多くするために走査窓サイズを大きくすると分解
能が劣化することになる。従つてカラー画像を処
理するときには再現色が少なく実用的でない。し
かし本発明は表現できるレベルが原理的にほぼ連
続であるため、カラー画像処理にも最適な方式と
言える。またカラー画像処理においてイエロー
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. 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.
第1図a,bは従来の擬似中間調表示の1つで
あるデイザ法を説明する概略図、第2図a〜eは
本発明の一実施例における画像信号処理方法の走
査窓とデータ変換を説明する概略図、第3図は同
方法の一部の処理手順を示すフローチヤート、第
4図は本発明の一実施例における画像信号処理方
法の処理手順を示すフローチヤート、第5図は本
発明の一実施例における画像信号処理装置のブロ
ツク結線図、第6図は同装置における順位付回路
のブロツク結線図、第7図は同装置における再配
分回路のブロツク結線図、第8図は同装置におけ
る誤差補正演算回路のブロツク結線図である。
19,21……画像データ記憶装置、25……
データ加算回路、26……誤差補正演算回路、2
8…順位付回路、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. 3 is a flowchart showing a part of the processing procedure of the method, FIG. 4 is a flowchart showing the processing procedure of an image signal processing method in an embodiment of the present invention, and FIG. 5 is a flowchart showing the processing procedure of a part of the method. A block wiring diagram of an image signal processing apparatus according to an embodiment of the present invention, FIG. 6 is a block wiring diagram of a ranking circuit in the same apparatus, FIG. 7 is a block wiring diagram of a redistribution circuit in the same apparatus, and FIG. FIG. 2 is a block diagram of an error correction calculation circuit in the same device. 19, 21... image data storage device, 25...
Data addition circuit, 26...Error correction calculation circuit, 2
8... Ranking circuit, 29... Redistribution circuit.
Claims (1)
号レベルを第1、第2画信号記憶手段に記憶さ
せ、前記第2の画信号記憶手段を走査する画素数
Mの第2の走査窓内の全ての画素の画信号レベル
の和Snと誤差補正量Eの和Sを求め、 O≦S≦C×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<C〕 なるNとAを求め、前記第2の画信号記憶手段と
対応する前記第1の画信号記憶手段の位置を走査
する画素数Mの第1の走査窓内の各画素を画信号
レベルの降順または昇順に番号付けし、前記第1
の走基窓に対応する前記第2の走査窓内の各画素
に対し降順の時は1番目からN番目の画素は画信
号レベルとしてCを、(N+1)番目の画素は画
信号レベルとしてAを、残りの画素は画信号レベ
ルとしてOを割当てる置換を施し、昇順の時は1
番目から(M−N−1)番目の画素は画信号レベ
ルとしてOを、(M−N)番目の画素は画信号レ
ベルとしてAを、残りの画素は画信号レベルとし
てCを割当てる置換を施し、第2の走査窓内の各
画素で以後の走査窓移動によつて再度走査窓内に
含まれなくなる画素の画信号レベルP1STに対し、
前記画信号レベルP1STと予め定めてあるO≦V<
Cなる二値化レベルVとの比較により前記画信号
レベルP1STが大きい場合にCを、前記画信号レベ
ルP1STが大きくない場合はOを画信号レベルP2ND
として与える置換を施し、前記画信号レベルP1ST
とP2NDの差の総和を(K+1)個の分割誤差補正
量に分割し、前記分割誤差補正量の1つは誤差補
正量Eに設定し、残りのK個の分割誤差補正量
は、前記第2の走査窓内の各画素で、次の走査窓
移動によつては走査窓内に含まれないが、以後の
走査窓移動によつて再度走査窓内に含まれるK個
の画素の前記設定された画信号レベルにそれぞれ
加算し、上記手順を前記第1、第2の画信号記憶
手段の全域に対して前記第1の走査窓および前記
第2の走査窓を所定画素分ずつ移動させながら繰
返すことを特徴とする画像信号処理方法。 2 原画像を走査分解して得られた各画素の画信
号レベルを記憶する第1、第2の画信号記憶手段
と、前記第2の画信号記憶手段を走査する画素数
Mの第2の走査窓内の全ての画素の画信号レベル
の和Snと誤差補正量Eの和Sとを求め、 O≦S≦C×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<C〕 なるNとAを求める演算手段と、前記第2の画信
号記憶手段と対応する前記第1の画信号記憶手段
の位置を走査する画素数Mの第1の走査窓内の各
画素を画信号レベルの降順または昇順に番号付け
する順位付手段と、前記第1の走査窓に対応する
前記第2の走査窓内の各画素に対し降順の時は1
番目からN番目の画素は画信号レベルとしてC
を、(N+1)番目の画素は画信号レベルとして
Aを、残りの画素は画信号レベルとしてOを割当
てる置換を施し、昇順の時は1番目から(M−N
−1)番目の画素は画信号レベルとしてOを、
(M−N)番目の画素は画信号レベルとしてAを、
残りの画素は画信号レベルとしてCを割当てる割
当手段と、第2の走査窓内の各画素で以後の走査
窓移動によつて再度走査窓内に含まれなくなる画
素の画信号レベルP1STに対し、前記画信号レベル
P1STと予め定めてあるO≦V<Cなる二値化レベ
ルVとの比較により前記画信号レベルP1STが大き
い場合はCを、前記画信号レベルP1STが大きくな
い場合はOを画信号レベルP2NDとして与える置換
を施す手段と、前記画信号レベルP1STとP2NDの差
の総和を(K+1)個の分割誤差補正量に分割
し、前記分割誤差補正量の1つは誤差補正量Eに
設定し、残りのK個の分割誤差補正量は、前記第
2の走査窓内の各画素で、次の走査窓移動によつ
ては走査窓内に含まれないが、以後の走査窓移動
によつて再度走査窓内に含まれるK個の画素の前
記設定された画信号レベルにそれぞれ加算する手
段と、前記第1、第2の画信号記憶手段の全域に
対して前記第1の走査窓および前記第2の走査窓
を所定画素分ずつ移動させる手段とを備えた画像
信号処理装置。[Claims] 1. The image signal level of each pixel obtained by scanning and decomposing the original image is stored in first and second image signal storage means, and the number of pixels to be scanned in the second image signal storage means. Find the sum S of the pixel signal levels of all pixels in the second scanning window of M and the sum S of the error correction amount E , and when O≦S≦C×M, S=C×N+A, and 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 such that O≦N≦M, and A is O≦A<C] Find N and A, and scan each pixel in a first scanning window of M pixels to scan the position of the first image signal storage means corresponding to the second image signal storage means in descending order of image signal level. or numbered in ascending order, the first
For each pixel in the second scanning window corresponding to the scanning window, in descending order, the first to Nth pixels have a pixel signal level of C, and the (N+1)th pixel has a pixel signal level of A. , the remaining pixels are replaced with O as the image signal level, and in ascending order, 1 is assigned.
The pixel from the (M-N-1)th pixel is assigned O as the pixel signal level, the (M-N)th pixel is assigned A as the pixel signal level, and the remaining pixels are assigned C as the pixel signal level. , for each pixel within the second scanning window, the pixel signal level P 1ST of the pixel that is no longer included within the scanning window due to subsequent scanning window movement,
The image signal level P 1ST is predetermined as O≦V<
By comparison with the binarization level V, which is C, if the image signal level P 1ST is large, C is determined, and if the image signal level P 1ST is not large, O is determined as the image signal level P 2ND.
Then, the image signal level P 1ST is given as
The sum of the differences between P 2ND and For each pixel in the second scan window, the K pixels that are not included within the scan window by the next scan window movement but are again included within the scan window by the subsequent scan window movement. adding each to the set image signal level, and moving the first scanning window and the second scanning window by a predetermined pixel amount over the entire area of the first and second image signal storage means through the above procedure. An image signal processing method characterized by repeating the process. 2. First and second image signal storage means that store the image signal level of each pixel obtained by scanning and decomposing the original image, and a second image signal storage means of the number M of pixels that scans the second image signal storage means. Find the sum S n of the image signal levels of all pixels within the scanning window and the sum S of the error correction amount E, and when O≦S≦C×M, S=C×N+A, and 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]. and calculating means for calculating each pixel within a first scanning window of M pixels, which scans the position of the first image signal storage means corresponding to the second image signal storage means, in descending order of image signal level or a ranking means for numbering in ascending order; and 1 for each pixel in the second scanning window corresponding to the first scanning window in descending order;
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,
Assignment means assigns C as an image signal level to the remaining pixels, and for each pixel within the second scanning window, the image signal level P 1ST of the pixel that is no longer included within the scanning window due to subsequent scanning window movement is provided. , the image signal level
By comparing P 1ST with a predetermined binary level V such that O≦V<C, if the image signal level P 1ST is large, C is determined, and if the image signal level P 1ST is not large, O is the image signal. means for performing replacement to give a level P 2ND , and dividing the sum of the difference between the image signal levels P 1ST and P 2ND into (K+1) divided error correction amounts, one of the divided error correction amounts being an error correction amount. E, and the remaining K divisional error correction amounts are for each pixel within the second scanning window, and may not be included within the scanning window depending on the next scanning window movement, but will be included in the subsequent scanning window. means for respectively adding the set image signal levels of the K pixels included in the scanning window by the movement; An image signal processing device comprising a scanning window and means for moving the second scanning window by a predetermined pixel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59105011A JPS60248072A (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 |
---|---|---|---|
JP59105011A JPS60248072A (en) | 1984-05-23 | 1984-05-23 | Method and device for processing picture signal |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS60248072A JPS60248072A (en) | 1985-12-07 |
JPH0425752B2 true JPH0425752B2 (en) | 1992-05-01 |
Family
ID=14396127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP59105011A Granted JPS60248072A (en) | 1984-05-23 | 1984-05-23 | Method and device for processing picture signal |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS60248072A (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01134577A (en) * | 1987-11-20 | 1989-05-26 | Hitachi Ltd | Image processing device |
-
1984
- 1984-05-23 JP JP59105011A patent/JPS60248072A/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS60248072A (en) | 1985-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4551768A (en) | Method and apparatus for processing image signal | |
US5375002A (en) | Color error diffusion | |
EP0717551B1 (en) | Image processing apparatus | |
US5200831A (en) | Method and arrangement for locally switching gray dot types to reproduce an image with gray level printing | |
US4692811A (en) | Apparatus for processing image signal | |
JPS59218076A (en) | Picture processing system | |
JPS59156070A (en) | Picture processing device | |
JPH0428191B2 (en) | ||
JPH0640348B2 (en) | Image conversion method | |
JPS6198069A (en) | Image processor | |
JPS6125269B2 (en) | ||
US4533942A (en) | Method and apparatus for reproducing an image which has a coarser resolution than utilized in scanning of the image | |
US5313309A (en) | Method and apparatus for printing halftones with a gray level printer with contour suppression and/or minimization of moire patterns | |
US6559976B1 (en) | Color image processor | |
US5715329A (en) | Digital copying machine with memory for compressed image data | |
GB2160057A (en) | Density conversion in image reproduction | |
US5542029A (en) | System and method for halftoning using an overlapping threshold array | |
JPH0425752B2 (en) | ||
JPH027113B2 (en) | ||
JPH0117309B2 (en) | ||
JPH042034B2 (en) | ||
JPS6349428B2 (en) | ||
JP2800071B2 (en) | Color image forming equipment | |
JPH0425751B2 (en) | ||
JPH0129349B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |