JPH03187573A - Pseudo half tone picture encoding system - Google Patents

Pseudo half tone picture encoding system

Info

Publication number
JPH03187573A
JPH03187573A JP1326886A JP32688689A JPH03187573A JP H03187573 A JPH03187573 A JP H03187573A JP 1326886 A JP1326886 A JP 1326886A JP 32688689 A JP32688689 A JP 32688689A JP H03187573 A JPH03187573 A JP H03187573A
Authority
JP
Japan
Prior art keywords
encoding
picture element
pixel
value
black
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1326886A
Other languages
Japanese (ja)
Inventor
Hidekazu Sakurai
櫻井 英和
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP1326886A priority Critical patent/JPH03187573A/en
Publication of JPH03187573A publication Critical patent/JPH03187573A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To enable efficient compression and encoding by encoding a value, which calculates exclusive OR between a forecasting value to forecast an attention picture element as black or white and the value of the attention picture element in an inputted picture element, as forecasting error as a function to be mathematically calculated from the number of black picture elements in the two peripheral picture element areas of the attention picture element. CONSTITUTION:A scanning part 1, a pseudo half tone generating part 2, a line memories 3 and 4, D flip-flops 51-55, 61-65 and 71-75 for picture element delay, black picture element counting parts 81-84, an arithmetic calculation part 9 and a run length encoding part 10 are provided. The forecasting error signal is encoded by a compressing and encoding means such as run length encoding, etc., being the exclusive OR between the forecasting value of the attention picture element, which is determined by arithmetic calculation form the number of the black picture elements counting the number of the black picture elements in first and second peripheral areas of the attention picture element, and the value of the real attention picture element. Thus, the pseudo half tone picture can be efficiently compressed and encoded by an error diffusing system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明用疑似中間調画像符号化方式に関し、特に、中間
調画像を誤差拡散方式により2値画像に変換する擬似中
間調画像符号化方式に関する。
Detailed Description of the Invention [Industrial Application Field] This invention relates to a pseudo-halftone image encoding method for use in the present invention, and particularly relates to a pseudo-halftone image encoding method for converting a halftone image into a binary image using an error diffusion method. .

〔従来の技術〕[Conventional technology]

従来何疑似中間調画像符号化については次に示す如く数
多くの方式が知られている。その第1の方式は多値符号
化と呼ばれるもので、中間調画像なA/D変換してnb
it/画素で表現し、これを圧縮符号化するものである
。その圧縮符号化方式には各種あり、大別しても予測符
号化、直交変換符号化、プロツクトランケーション符号
化、ビットブレーン符号化及びベクトル量子化符号化等
数多くの方式が知られている。
Conventionally, a number of methods have been known for pseudo-halftone image encoding, as shown below. The first method is called multilevel encoding, in which halftone images are A/D converted and nb
It is expressed as it/pixel, and this is compressed and encoded. There are various types of compression encoding methods, and broadly speaking, there are many known methods such as predictive encoding, orthogonal transform encoding, process truncation encoding, bit-brain encoding, and vector quantization encoding.

第2の方式は、2値符号化であり、まず中間調画像を何
らかの方法で2値画像に変換し、その後、さらにその2
値画像を圧縮符号化するものである。
The second method is binary encoding, which first converts the halftone image into a binary image by some method, and then further converts the halftone image into a binary image.
It compresses and encodes value images.

2値画像に変換された中間調画像を疑似中間調画像と称
している。多値符号化と2値符号化を比較すると、同一
の線密度(サンプリング密度)で走査した画像では当然
多値符号化の方が情報量が多く、画質は良い。一方2値
符号化では2値画像に変換した時点で既にlビット/画
素の情報量に削減されており、多値画像に比較して画質
は劣下しているが符号化データ量は少なく、従って伝送
時間も短かくて済む。
A halftone image converted into a binary image is called a pseudo halftone image. Comparing multilevel encoding and binary encoding, for images scanned at the same linear density (sampling density), multilevel encoding naturally provides more information and better image quality. On the other hand, with binary encoding, the amount of information is already reduced to l bits/pixel at the time of conversion to a binary image, and although the image quality is inferior compared to multilevel images, the amount of encoded data is small. Therefore, the transmission time can also be shortened.

ところで、受信側で画像を再生する記録デバイスとして
は、基本的に階調再現の可能な銀塩写真等の記録方式も
あるが、通常ファクシミリ、複写機等に用いられている
感熱記録方式、レーザビームプリンタ(LBP)等の記
録デバイスや印刷機等では記録デバイスの階調再現能力
は無いが又は極めて低く、基本的には2値再現を主とし
たものが多い。そのため、折角多値符号化を用いて良質
の画像を伝送しても、記録時には2値画像に変換して1
疑似中間調画像として再現することが多いため最近2値
符号化が多く用いられている。
By the way, as recording devices for reproducing images on the receiving side, there are recording methods such as silver halide photography that can basically reproduce gradation, but there are also recording devices such as thermal recording methods and lasers that are normally used in facsimile machines, copying machines, etc. In recording devices such as beam printers (LBP), printing machines, and the like, the recording device has no or very low gradation reproduction ability, and basically many of them mainly reproduce binary values. Therefore, even if high-quality images are transmitted using multilevel encoding, they are converted to binary images when recording.
Recently, binary encoding has been widely used because it is often reproduced as a pseudo-halftone image.

さて、中間調画像を2値画像に変換する疑似中間調の方
式としても種々のもとが知られているが最も代表的なも
のはデイザ方式と呼ばれるものである。その中でも特に
良く使用されている組織的デイザ法は第5図(a)に示
すようにブロック内の各画素に対し異なる閾値を設定し
、この閾値を用いて各画素を2値化する方式である。所
定濃度(7)の均一な画像をデイザ方式によって2値化
して得られた画像の例を第5図(b)に示す。この例で
示されるように全体の中の黒画素の数により中間調力W
似的に表現される。このようにして得られたデイザ画像
をさらに圧縮符号化する方式として予測符号化が知られ
ている。予測符号化の最も単純に例として、例えば、注
目画素をそのn画素(nは第5図(a)の閾値パターン
の周期である第5図の例ではn=4)前の画素と同じと
予測する方法が考えられる。第5図(b)の例から分か
るようにn画素前の画素は注目画素と同じ閾値で2値化
さ′れているためその間に原画像の濃度変化がなければ
2値化された画像における注目画素はn画素前の画素と
同じ値であり、従って多くの場合前述の予測は連中し、
予測値と実際の入力画素の排他的論理、1111(予測
誤差と呼ぶ)はOとなる。したがってこのようにして得
られる予測誤差信号は0が極めて多く1が少ないという
性質を持つ。このような予測誤差信号のエントロピーは
−PiOgp−(1−P) Ilog (1−P) (
P : 1の発生確率〕で与えられ、例えばランレング
ス符号化(予測誤差1の画素から次の予測誤差lの画素
までの距離を符号化する方式)により前記エントロピー
に限りなく近く圧縮できることが知られている。実際の
デイザ画像の予測符号化においてはもう少し複雑な予測
が用いられることが多いがいずれもデイザ閾値パターン
の周期性を用いたものであり原理的には前記の単純な例
と同様のものである。
Various pseudo-halftone methods are known for converting a halftone image into a binary image, but the most typical one is the so-called dither method. Among them, the systematic dither method that is particularly commonly used is a method in which a different threshold value is set for each pixel in a block, and each pixel is binarized using this threshold value, as shown in Figure 5 (a). be. An example of an image obtained by binarizing a uniform image with a predetermined density (7) using the dither method is shown in FIG. 5(b). As shown in this example, the halftone level W is determined by the number of black pixels in the whole
expressed similarly. Predictive encoding is known as a method for further compressing and encoding the dithered image obtained in this manner. As the simplest example of predictive coding, for example, if a pixel of interest is the same as the previous n pixels (n is the period of the threshold pattern in Fig. 5(a), n = 4 in the example of Fig. 5), There are ways to make predictions. As can be seen from the example in Figure 5(b), the pixel n pixels before is binarized with the same threshold as the pixel of interest, so if there is no density change in the original image during that time, the binarized image will be The pixel of interest has the same value as the pixel n pixels before, so in many cases the above prediction will be true,
The exclusive logic between the predicted value and the actual input pixel, 1111 (referred to as prediction error), is O. Therefore, the prediction error signal obtained in this manner has a property that there are extremely many 0's and few 1's. The entropy of such a prediction error signal is -PiOgp-(1-P) Ilog (1-P) (
It is known that the entropy can be compressed as close as possible to the entropy, for example, by run-length encoding (a method of encoding the distance from a pixel with a prediction error of 1 to a pixel with a next prediction error of 1). It is being In actual predictive coding of dithered images, slightly more complex predictions are often used, but they all use the periodicity of the dithered threshold pattern, and are basically the same as the simple example above. .

一方、↑疑似中間調画像の生成方式として誤差拡散方式
と呼ばれる方式がある。本方式のアルゴリズムを第6図
を参照して説明する。ここでは原画値化する。その結果
が黒(1)であればその画素以降の隣接画素に実際の画
素値とlの誤差(0〜−一の値)を分散して加える。結
果が白(0)であれば同様に実際の画素値とOの誤差(
0〜−の値)を分散して加える。次の画素に対しても今
加えられた誤差値で修正された値を閾値−で2値化し同
様に誤差を分散して隣接画素に加えて行く。第6図は所
定濃度(−)の原画(a)に対して第1画素5 の2値化(b)、第2画素の2値化(c)を行なった例
である。本方式はデイザ方式と比較しデイザパターンの
周期性がないため濃度変化部分で滑らかな階調変化が得
られ解像度の低下も少ないためデイザ方式よりも良好側
疑似中間調画像が得られる。
On the other hand, there is a method called an error diffusion method as a method for generating pseudo-halftone images. The algorithm of this method will be explained with reference to FIG. Here, the original image value is converted. If the result is black (1), the error between the actual pixel value and l (a value between 0 and -1) is distributed and added to the adjacent pixels after that pixel. If the result is white (0), the error between the actual pixel value and O (
(values from 0 to -) are added in a distributed manner. For the next pixel, the value corrected by the error value just added is binarized using the threshold value -, and the error is similarly dispersed and added to the adjacent pixel. FIG. 6 shows an example in which the first pixel 5 is binarized (b) and the second pixel 5 is binarized (c) for an original image (a) of a predetermined density (-). Compared to the dither method, this method has no periodicity in the dither pattern, so smooth gradation changes can be obtained in areas where the density changes, and there is less deterioration in resolution, so a better pseudo-halftone image can be obtained than the dither method.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の擬似中間調画像符号化方式の誤差拡散方
式においては、デイザ画像のような周期性がないためデ
イザ画像に適用された如き予測方式は適応できず、効率
的な圧縮符号化ができないためデータ量が多く通信時間
が長くなるという欠点を有している。
In the error diffusion method of the conventional pseudo-halftone image encoding method described above, since there is no periodicity like that of a dithered image, a prediction method such as that applied to a dithered image cannot be applied, and efficient compression encoding cannot be performed. Therefore, it has the disadvantage that the amount of data is large and the communication time is long.

〔課題を解決するための手段〕[Means to solve the problem]

本発明■疑似中間調画像符号化方式は2値表現された擬
似中間調画像の符号化において、注目画素のあらかじめ
定められた第1の周辺領域の黒画素数を計数する手段と
、前記第1の周辺領域と異なる第2の周辺領域の黒画素
を計数する手段とを有し、前記第1と第2の周辺画素領
域の黒画素の数から算術的に定まる関数として前記注目
画素を黒又は白と予測した予測値と入力された画像の前
記注目画素の値との排他的論理和を求めた値を予測誤差
として符号化する手段とを有している。
The pseudo-halftone image encoding method of the present invention, in encoding a binary-expressed pseudo-halftone image, includes means for counting the number of black pixels in a predetermined first surrounding area of a pixel of interest; means for counting black pixels in a second peripheral area different from the peripheral area of the target pixel, the pixel of interest is counted as black or The image forming apparatus includes means for encoding, as a prediction error, a value obtained by calculating an exclusive OR of a predicted value predicted to be white and the value of the pixel of interest of the input image.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

先ず本実施例の誤差拡散方式について説明すると、第7
図において画素位置(x、y)の原画像(中間調画像)
での値をf (x、y)(0≦f(x、y)≦1)誤差
拡散方式によって得られたJ疑似中間調画像での値をg
 (x、y)(g (x。
First, the error diffusion method of this embodiment will be explained.
Original image (halftone image) at pixel position (x, y) in the figure
The value at f (x, y) (0≦f(x, y)≦1) The value at the J pseudo-halftone image obtained by the error diffusion method is g
(x,y)(g(x.

y)=0.1)とすると g(x、y)=Q(f(x、y)十B(x、y))  
 ==(1)(1)式と表せる。ここでQ(・)は適当
な固定の(x、y)は隣接する先行画素位置(x−1゜
y)、(x−1,y−1)、(x、y−1)、(x+1
、y−1)の2値化により発生した誤差の拡散値の総和
である。すなわち、画素位置(x、y)の2値化による
誤差をe (x、y)=f (x。
y) = 0.1), then g(x, y) = Q(f(x, y) + B(x, y))
==(1) It can be expressed as equation (1). Here, Q(・) is an appropriate fixed value (x, y) is the adjacent preceding pixel position (x-1° y), (x-1, y-1), (x, y-1), (x+1
, y-1) is the sum of error diffusion values generated by binarization. That is, the error due to binarization of the pixel position (x, y) is e (x, y)=f (x.

y)+E (x、y)−g (x、y)とすれば、E(
x+y)=a+o ・e(x−1,y)+ane(x−
1,y−1)+ao+e(x、y−1)+a−1Ie(
x+1.y−1)・・・・・・(2) (2)式である。ここにalG+ all+ aolz
 a−11は各方向への誤差拡散係数であり、al。+
a、、+a、。
y) + E (x, y) - g (x, y), then E(
x+y)=a+o・e(x-1,y)+ane(x-
1,y-1)+ao+e(x,y-1)+a-1Ie(
x+1. y-1)...(2) Formula (2). here alG+ all+ aolz
a-11 is the error diffusion coefficient in each direction; al. +
a,,+a,.

+ & −u = 1である。簡便のため(2)式をE
(x。
+ & −u = 1. For simplicity, equation (2) is written as E
(x.

y) = Σ a−e(i、D・・・・・・2a式と書
くこ(貢、y) とにする。さて、ある画像領域りに対して、その領域内
の黒画素の数は Σg(x、y)=Σ(f(x、y)+E(x、y)−e
(x、y))=Σf (x 、 y)+ΣE(x、y)
−Σe (x 、 y)となるが、ΣE (x、y)−
Σe (X+ y)は領D             
      D域り内ではE (x、y)とe (x、
y)が相殺し領域外との拡散誤差の出入は領域りが大き
くなるに従い0に近づくのである程度広い領域りについ
域内の黒画素の量により、その部分の平均濃度が表現さ
れていることが判る。
y) = Σ a-e(i, D...2a formula (Mitsugu, y). Now, for a certain image area, the number of black pixels in that area is Σg(x,y)=Σ(f(x,y)+E(x,y)−e
(x, y)) = Σf (x, y) + ΣE (x, y)
−Σe (x, y), but ΣE (x, y)−
Σe (X+y) is territory D
In area D, E (x, y) and e (x,
y) cancel each other out, and the diffusion error from outside the area approaches 0 as the area size increases, so it can be seen that for a fairly wide area, the average density of that part is expressed by the amount of black pixels within the area. .

次に、本実施例の圧縮符号化について説明する。Next, compression encoding of this embodiment will be explained.

前述のように誤差拡散方式においては領域内の平均濃度
はその領域内の黒画素の量により表現されている。そこ
で注目画素(X、Y)の2つの周辺領域D 1. D 
2をD 1. D 2内の画素はすべて2値化処理済で
あるように定め、領域り、+ (X、Y)。
As described above, in the error diffusion method, the average density within an area is expressed by the amount of black pixels within that area. Therefore, two surrounding areas D of the pixel of interest (X, Y) 1. D
2 to D 1. It is determined that all pixels in D2 have been binarized, and the area is + (X, Y).

D、+(X、Y)の平均濃度はそれぞれ(Σg(x、y
)十g(X、Y))/(N(D+)+1)i ・・・・・・(3) (Σg(x、 y)+g(X、 Y))/(N(D2)
+1)・・・・・・(4) 但しN (Dl)、N (Dz)はそれぞれ領域D1゜
D2内の総画素数 (3)、 (4)式と表わされる。領域DI、D!内と
位置(X、Y)で大きな濃度変化がないとすれば(3)
The average concentration of D, +(X, Y) is (Σg(x, y
) 10g (X, Y)) / (N (D+) + 1) i ...... (3) (Σg (x, y) + g (X, Y)) / (N (D2)
+1)...(4) However, N (Dl) and N (Dz) are the total number of pixels in the areas D1 and D2, respectively (3) and are represented by equations (4). Area DI, D! Assuming there is no large concentration change inside and at position (X, Y) (3)
.

(4)式はいずれも画素位置(X、Y)の中間調値f 
(X、Y)に近いと考えられるのでg (X。
In both equations (4), the halftone value f at the pixel position (X, Y)
Since it is considered to be close to (X, Y), g (X.

Y)の予測値g (X、Y)を(3)、 (4)式の差
ができるだけ少ないように定める。
The predicted value g (X, Y) of Y) is determined so that the difference between equations (3) and (4) is as small as possible.

すなわち、 (5)式となる。That is, The formula (5) is obtained.

・・・・・・(5) このように定めた予測信号g (x、y)と入力疑似中
間調画像g (x r y )の排他的論理和g(x、
y)0g (x、y)を予測誤差信号として、これを例
えばランレングス符号化することによりデータ量の削減
が実現できる。
......(5) Exclusive OR g(x,
y)0g (x, y) is used as a prediction error signal, and by performing run-length encoding on this, for example, the amount of data can be reduced.

また、本実施例においては領域DI (X、Y)D2 
(X、Y)として、第4図に示す画素領域を採用してい
る。
Furthermore, in this embodiment, the area DI (X, Y)D2
The pixel area shown in FIG. 4 is used as (X, Y).

第1図において、走査部1は原稿を走査し、その画信号
をA/D変換してディジタル中間調画信号を出力する。
In FIG. 1, a scanning section 1 scans an original, A/D converts the image signal, and outputs a digital halftone image signal.

J疑似中間調生成部2は中間調画信号を誤差拡散方式に
より擬似中間調に変換する。
The J pseudo-halftone generation unit 2 converts the halftone image signal into a pseudo-halftone using an error diffusion method.

ラインメモリ3と4は各可疑似中間調に変換さえた1ビ
ット/画素の画信号を1走査線分遅延する。
Line memories 3 and 4 delay the 1-bit/pixel image signal converted into each pseudo-halftone by one scanning line.

Dフリップフロップ51〜55.61〜65.71〜7
5は各々擬似中間調生成部(2)からの画信号、ライン
メモリ(1)3からの画信号およびラインメモリ(2)
4からの画信号を順次1画素分遅延させる。
D flip-flop 51-55.61-65.71-7
5 is an image signal from the pseudo halftone generation unit (2), an image signal from line memory (1) 3, and a line memory (2), respectively.
The image signals from 4 are sequentially delayed by one pixel.

黒計数部81〜83はそれぞれ54と55.61〜65
.71〜75のDフリップフロップに相当する画素位置
の黒画素数を計数する。黒画素計数部(3)84は52
.62〜64のDフリップフロップに相当する画素位置
の黒画素数を計数する。算術演算部9は54,62,6
3,64に相当する画素の値(黒又は白)と黒画素計数
部からの黒画素数の総和に対応して、予測値を決定する
。符号化部10は算術演算部(9)からの予測値とDフ
リップフロップ(53)からの出力である注目画素との
排他的論理和をとった信号(すなわち予測誤差信号)を
ランレングス符号化する。第2図に黒画素計数部81〜
83の詳細な構成な示す。第1図において、注目画素(
予測しようとしている画素)の値はD−F/F(53)
から出力されている。この時第8図の領域り、(X、Y
)に相当する画素はD−F/F54,55,61〜65
.71〜75の出力である。
Black counting parts 81-83 are 54 and 55, respectively.61-65
.. The number of black pixels at pixel positions corresponding to D flip-flops 71 to 75 is counted. Black pixel counting section (3) 84 is 52
.. The number of black pixels at pixel positions corresponding to D flip-flops 62 to 64 is counted. Arithmetic operation unit 9 is 54, 62, 6
A predicted value is determined in accordance with the sum of the pixel values (black or white) corresponding to 3 and 64 and the number of black pixels from the black pixel counting section. The encoding unit 10 performs run-length encoding on a signal (that is, a prediction error signal) obtained by exclusive ORing the predicted value from the arithmetic operation unit (9) and the pixel of interest that is output from the D flip-flop (53). do. In FIG. 2, the black pixel counting section 81~
83 is shown in detail. In Figure 1, the pixel of interest (
The value of the pixel you are trying to predict is D-F/F (53)
It is output from. At this time, the area shown in Figure 8 is (X, Y
) are D-F/F54, 55, 61 to 65.
.. The outputs are 71 to 75.

以下、本実施例の動作について、第3図のタイミングチ
ャートも参照しながら、説明する。先ず各走査線の動作
の開始時において、図に示されていないクリア信号によ
りカウンタ802およびすべてのD−F/Fは“0″ク
リアされる。従って、その時カウンタ802は対応する
各走査線内の領域D I (x 、 y)内の黒画素の
数を示している。さて、画素(m、n)の直前の画素(
m−1,n)が注目画素位置すなわちD−F/F (5
3)の出力にある状態を考える。この時各走査線の領域
Dr(m−1,n)の値が対応する黒画素係数部(81
〜83)のカウンタ(802)から出力されているとす
る。この状態において、各走査線の領域り、(m−1,
n)に含まれ、領域D+(m。
The operation of this embodiment will be described below with reference to the timing chart of FIG. First, at the start of each scanning line operation, the counter 802 and all D-F/Fs are cleared to "0" by a clear signal not shown. Therefore, counter 802 is then indicating the number of black pixels in region D I (x, y) within each corresponding scan line. Now, the pixel (
m-1, n) is the pixel position of interest, that is, D-F/F (5
Consider the state at the output of 3). At this time, the value of the area Dr (m-1, n) of each scanning line corresponds to the black pixel coefficient part (81
-83) is output from the counter (802). In this state, the area of each scanning line is (m-1,
n) and is included in area D+(m.

n)に含まれない画素がS i 2 (i=1〜3)に
、領域D+ (m  1.n)に含まれず、領域D1(
m、n)い含まれる画素が5i1(i=1〜3)に出力
されている。第1図、第2図い示されていないシフトク
ロックの立上りで各画素はD−F/Fによりシフトされ
るがその時第2図から分かるようにSilとSi2の値
が等しければカウンタ802のイネーブル端子ENは“
L”でカウンタの値は変化せず領域D1内の(走査線毎
の)黒画素の数も変化しない。Silが“1”  (黒
)で、Si2が“0″ (白)の場合はカウンタ802
のイネーブル端子ENは“H”であり、DN/丁下端子
は“L”であるためカウンタ802はアップカウント動
作しlだけ増加する。一方領域D1内の黒画素数も1増
加する。同様にSilが“0″ (白)、Si2が“1
” (黒)の時はカウンタ(802)の値、領域D1内
の黒画素数とも1減少する。以上より帰納的にカウンタ
(802)は常に注目画素(X、Y)に対し、走査線毎
の領域D+内の黒画素数を示していることが分かる。黒
画素計数部84はROMにより実現されD−F/F54
,62,63.64の出力中の“1″(黒)の数を2ビ
ツトのバイナリコードとしてS7に出力する。算術演算
部9は領域D1内の走査線毎の黒画素数84〜S6と領
域D2内の黒画素数87の値とから式(5)の算術演算
の結果の予測値g (X、Y)を発生する。本実施例で
はこの算術演算部9の入力は37 2本、842本、S
5゜S6各3本の合計10本であり1つのROM(Re
ad 0nly Memory)にあらかじめ演算結果
値を書込んでおくことにより実現できる。
Pixels not included in S i 2 (i=1 to 3), pixels not included in area D+ (m 1.n), and pixels not included in area D1 (
Pixels included in m, n) are output to 5i1 (i=1 to 3). At the rising edge of the shift clock (not shown in FIGS. 1 and 2), each pixel is shifted by the D-F/F. At that time, as can be seen from FIG. 2, if the values of Sil and Si2 are equal, the counter 802 is enabled. Terminal EN is “
When Sil is "1" (black) and Si2 is "0" (white), the counter value does not change and the number of black pixels (per scanning line) in area D1 does not change. 802
Since the enable terminal EN of is "H" and the DN/lower terminal is "L", the counter 802 performs an up-count operation and increases by l. On the other hand, the number of black pixels in the area D1 also increases by one. Similarly, Sil is “0” (white) and Si2 is “1”
” (black), both the value of the counter (802) and the number of black pixels in the area D1 decrease by 1. From the above, inductively, the counter (802) always calculates the value for each scanning line for the pixel of interest (X, Y). It can be seen that the number of black pixels in the area D+ is shown.The black pixel counting section 84 is realized by a ROM and
, 62, 63, and 64 are output as a 2-bit binary code to S7. The arithmetic operation unit 9 calculates the predicted value g (X, Y) of the result of the arithmetic operation of equation (5) based on the number of black pixels 84 to S6 for each scanning line in the area D1 and the value of the number of black pixels 87 in the area D2. occurs. In this embodiment, the inputs of the arithmetic operation unit 9 are 372, 842, and S
5゜S6, 3 each, total of 10, and one ROM (Re
This can be realized by writing the calculation result value in advance into the ad 0nly Memory).

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、注目画素の第1と
第2の周辺領域の黒画素数を計数した黒画素数から算術
演算により決定した注目画素の予測値と実際の注目画素
の値の排他的論理和である予測誤差信号をランレングス
符号化等の既知の圧縮符号化手段により符号化すること
により誤差拡散方式によるf疑似中間調画像を効率的に
圧縮符号化し、データ量を減少して伝送時間を短縮でき
る効果がある。
As explained above, according to the present invention, the predicted value of the pixel of interest and the actual value of the pixel of interest are determined by an arithmetic operation from the number of black pixels obtained by counting the number of black pixels in the first and second surrounding areas of the pixel of interest. By encoding the prediction error signal, which is the exclusive OR of This has the effect of shortening transmission time.

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

第1図は本発明の一実施例を示すブロック図、第2図は
本実施例における黒画素計数部の詳細ブロック図、第3
図は本実施例の動作説明のためのタイミング図、第4図
は本実施例における参照画素領域を示す図、第5図、第
6図及び第7図は従来の擬似中間調画像符号化方式の一
例を説明するための図である。 1・・・・・・走査部、2・・・・・4疑似中間調生戊
部、3゜4・・・・・・ラインメモリ、51〜55.6
1〜65゜71〜75・・・・・・画素遅延用Dフリッ
プフロップ、81〜84・・・・・・黒画素計数部、9
・・・・・・算術演算部、IO・・・・・・ランレング
ス符号化部、801・・・・・・排他的論理和ゲート、
802・・・・・・アップダウンカウンタ。
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a detailed block diagram of the black pixel counting section in this embodiment, and FIG.
The figure is a timing diagram for explaining the operation of this embodiment, FIG. 4 is a diagram showing a reference pixel area in this embodiment, and FIGS. 5, 6, and 7 are conventional pseudo halftone image encoding systems. It is a figure for explaining an example. 1... Scanning section, 2... 4 Pseudo halftone generation section, 3° 4... Line memory, 51 to 55.6
1-65° 71-75...D flip-flop for pixel delay, 81-84...Black pixel counting unit, 9
... Arithmetic operation section, IO ... Run length encoding section, 801 ... Exclusive OR gate,
802...Up/down counter.

Claims (1)

【特許請求の範囲】[Claims]  2値表現された擬似中間調画像の符号化において、注
目画素のあらかじめ定められた第1の周辺領域の黒画素
数を計数する手段と、前記第1の周辺領域と異なる第2
の周辺領域の黒画素を計数する手段とを有し、前記第1
と第2の周辺画素領域の黒画素の数から算術的に定まる
関数として、前記注目画素を黒又は白と予測した予測値
と入力された画像の前記注目画素の値との排他的論理和
を求めた値を予測誤差として符号化する手段とを有する
ことを特徴とする擬似中間調画像の符号化方式。
In encoding a binary-expressed pseudo-halftone image, means for counting the number of black pixels in a predetermined first surrounding area of a pixel of interest;
means for counting black pixels in the peripheral area of the first
and the number of black pixels in the second peripheral pixel area, and the exclusive OR of the predicted value of the pixel of interest predicted to be black or white and the value of the pixel of interest of the input image. 1. A method for encoding a pseudo-halftone image, comprising means for encoding the determined value as a prediction error.
JP1326886A 1989-12-15 1989-12-15 Pseudo half tone picture encoding system Pending JPH03187573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1326886A JPH03187573A (en) 1989-12-15 1989-12-15 Pseudo half tone picture encoding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1326886A JPH03187573A (en) 1989-12-15 1989-12-15 Pseudo half tone picture encoding system

Publications (1)

Publication Number Publication Date
JPH03187573A true JPH03187573A (en) 1991-08-15

Family

ID=18192844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1326886A Pending JPH03187573A (en) 1989-12-15 1989-12-15 Pseudo half tone picture encoding system

Country Status (1)

Country Link
JP (1) JPH03187573A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2402012A (en) * 2003-05-20 2004-11-24 Software 2000 Ltd Halftone image bitmask generation
US7025515B2 (en) 2003-05-20 2006-04-11 Software 2000 Ltd. Bit mask generation system
US8705131B2 (en) 2004-10-18 2014-04-22 Software Imaging Technology Limited Bit mask generation system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2402012A (en) * 2003-05-20 2004-11-24 Software 2000 Ltd Halftone image bitmask generation
GB2402012B (en) * 2003-05-20 2006-02-01 Software 2000 Ltd Bit mask generation system and printer drivers and printing methods incorporating bit masks generated utilising same
US7025515B2 (en) 2003-05-20 2006-04-11 Software 2000 Ltd. Bit mask generation system
US8705131B2 (en) 2004-10-18 2014-04-22 Software Imaging Technology Limited Bit mask generation system

Similar Documents

Publication Publication Date Title
JP2794281B2 (en) Code decoding processor for dither signal
US5491564A (en) Data compression method and apparatus for binary image using Markov model encoding
JP3966117B2 (en) Image processing apparatus, image encoding apparatus, image printing apparatus, and methods thereof
JPH03187573A (en) Pseudo half tone picture encoding system
JPH09186883A (en) Multi-level image coding device
JPH08204971A (en) Image compression method using predictive coding and error diffusion
JP3864681B2 (en) Image data encoding apparatus, image data encoding method, recording medium, and image forming apparatus
JPH0832820A (en) Error diffusion method binary image coding device
US5200839A (en) Image processing apparatus
JPH03141776A (en) Picture encoder
JP2007306513A (en) Method and device for image data compression
JP2941843B2 (en) Apparatus and method for reducing image signal
JP2569568B2 (en) Pseudo halftone image two-dimensional data prediction operation device for facsimile machine
JP3867886B2 (en) Image encoding method, image encoding device, image decoding method, and image decoding device
JP3732329B2 (en) Pseudo halftone image encoding apparatus and encoding method
JPH06233122A (en) Image processing device
JP2584826B2 (en) Image data processing device
JPH1155531A (en) Arithmetic coding device
JP2650964B2 (en) Image processing device
JP2570437B2 (en) Facsimile machine
JP4526069B2 (en) Image information arithmetic coding apparatus and image information arithmetic decoding apparatus
JPH0135541B2 (en)
JPS6090469A (en) Forecasting conversion encoder
JPH0411460A (en) Picture data compressor
JPS6325748B2 (en)