JPS6167370A - Gradation picture coding and decoding method - Google Patents

Gradation picture coding and decoding method

Info

Publication number
JPS6167370A
JPS6167370A JP59188936A JP18893684A JPS6167370A JP S6167370 A JPS6167370 A JP S6167370A JP 59188936 A JP59188936 A JP 59188936A JP 18893684 A JP18893684 A JP 18893684A JP S6167370 A JPS6167370 A JP S6167370A
Authority
JP
Japan
Prior art keywords
density
code
encoding
information
pixel
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
JP59188936A
Other languages
Japanese (ja)
Inventor
Yoshiharu Okino
美晴 沖野
Osamu Asada
修 浅田
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP59188936A priority Critical patent/JPS6167370A/en
Publication of JPS6167370A publication Critical patent/JPS6167370A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To attain reproduction with good picture quality by sampling density information, coding it, interpolating it into information with higher picture element density than a sampled picture element density and then applying dither so as to encode a gradation picture efficiently. CONSTITUTION:When input density information IN is inputted to a coding section 100, the input density of each picture element of the gradation picture is sampled with a low resolution at coding and the result is outputted to a decoding section 200 as a code string C. A controller B201 in a decoding section 200 uses an identification code discriminating circuit 202 to discriminate a received code and then uses an interpolation circuit 207 to apply interpolation based on the regenerated density and uses a dither circuit 208 to apply binary- coding top interpolated density information.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は階調画像に対して冗長度を抑圧して効率よく符
号化し、この符号をさらにディザ法により2値化して再
生する階調画像符号・復号化方法に関する。
Detailed Description of the Invention (Industrial Field of Application) The present invention efficiently encodes a gradation image by suppressing redundancy, and further converts this code into a binary image using a dither method to reproduce the gradation image. Regarding encoding/decoding methods.

(従来の技術) 従来、階調性をもつ画像を白と黒の2種の濃度で疑似的
に表現する手法としてディザ法が知られている。このデ
ィサ法について記述した文献としてInternati
onal Conference on Commun
ication。
(Prior Art) A dither method is conventionally known as a method for pseudo-expressing an image having gradation with two types of density, white and black. As a document describing this disa method, International
onal Conference on Commun
cation.

Conference Record volume 
1 + 1973 P、26 el 1− P、26・
15があるが、ディザ法とはこの文献にも記載されてい
るように原画像に対して画素位置により異なった閾値を
用いて2値化し、黒画素と白画素の密度比によって疑似
的に中間調を表現するものである。次に第2図、第3図
、第4図を用いてディザ法についてさらに説明する。第
2図は原画像の各画素の位置とその濃度情報とを示した
ものであり、例えば4行×4列を1つの画素ブロックと
して1画素ブロック内の主走査方向位置をh=o 、 
1 、2 、3副走査方向位置をv=o、1゜2.3と
したもので、各画素の濃度は0から15までの16レベ
ルの階調で表わされる。第3図は4×4のディザ閾値マ
トリクスを示したものであり、第2図に示す原画像を第
3図の閾値マトリクスを用いて2値化すると第4図のよ
うに2値化された画像が得られる。ここで第2図、第3
図ではOが最も白いレベル、15が最も黒いレベルとし
、第4図では0が白、■が黒であるとする。
Conference Record volume
1 + 1973 P, 26 el 1- P, 26・
15, but as described in this document, the dithering method involves binarizing the original image using different threshold values depending on the pixel position, and creating a pseudo intermediate image by using the density ratio of black pixels and white pixels. It expresses the tone. Next, the dither method will be further explained using FIGS. 2, 3, and 4. FIG. 2 shows the position of each pixel in the original image and its density information. For example, one pixel block consists of 4 rows x 4 columns, and the main scanning direction position within one pixel block is h=o,
The positions in the sub-scanning direction of 1, 2, and 3 are v=o, 1°2.3, and the density of each pixel is represented by 16 levels of gradation from 0 to 15. Figure 3 shows a 4x4 dither threshold matrix, and when the original image shown in Figure 2 is binarized using the threshold matrix in Figure 3, it is binarized as shown in Figure 4. An image is obtained. Here, Figures 2 and 3
In the figure, O is the whitest level, 15 is the blackest level, and in FIG. 4, 0 is white and ■ is black.

ところで、白と黒の2値画像に対して冗長度を抑圧する
符号化方式としてCCITT (国際電信電話諮問委員
会)においてランレングス符号化方式の中の1つである
モディファイドハフマン(以下鼎と略す)符号化方式が
勧告されているヵ具体的内容は例えば電子通信学会綿「
新版ファクシミリの基礎と応用」(昭和57−9−10
)電子通信学会P、390−393に書かれている。こ
の手法では白い画素は比較的長く連続し、黒画素の連続
は比較的短いという文書画像の統計的性質を利用して高
能率に符号化する手法である。
By the way, Modified Huffman (hereinafter abbreviated as Ding), which is one of the run-length encoding methods, has been proposed by the CCITT (Consultative Committee for International Telegraph and Telephone) as an encoding method for suppressing redundancy for binary images of black and white. ) The specific content of the recommended encoding method is, for example, published by the Institute of Electronics and Communication Engineers.
Basics and Applications of New Edition Facsimile” (September 10, 1972)
) Written in IEICE P, 390-393. This method utilizes the statistical properties of document images in which white pixels are relatively long and black pixels are relatively short, resulting in highly efficient encoding.

MH符号化方式は文字等の2値画像を対象としたランレ
ングス符号化方式であるが、ディザ画像に対して効率よ
く符号化するために考案された手法としてビット・イン
ターリーブ法がちる。このビット・インターリーブ法に
ついて記述した文献としてProceeding of
 the S、1.D、 + 17 [2]5econ
dQuarter (1976) (米) P、92−
101があるが、この文献中にも記載されるように、ビ
ットインタリーブ法とは近い閾値の画素が連続するよう
に画素をならべかえMH符号化等のランレングス符号化
を施す手法である。
The MH encoding method is a run-length encoding method for binary images such as characters, but the bit interleaving method is a method devised for efficiently encoding dithered images. A document describing this bit interleaving method is Proceeding of
the S, 1. D, + 17 [2] 5econ
dQuarter (1976) (US) P, 92-
As described in this document, the bit interleaving method is a method of rearranging pixels so that pixels with similar threshold values are continuous and performing run-length encoding such as MH encoding.

(発明が解決しようとする問題点) しかしながら、第4図に示したようにディザ化されだ2
値画像は短い白のランや長い黒のランの発生確率が高い
ため、上記MH方式で符号化しても高い効率は得られな
いものであった。例えば階調性を有するある画像に第3
図の閾値マ) IJクスを用いたディザ画像(主走査1
728画素、副走査2290行)に対してMH符号化を
用いると、6.277,409 ビットの符号が発生し
、原画像1728X 2290 = 3,957,12
0ビツトの約1.6倍になり、符号化の意味がなくなっ
てしまうという欠点があった。
(Problem to be solved by the invention) However, as shown in FIG.
Since a value image has a high probability of generating short white runs or long black runs, high efficiency cannot be obtained even if the value image is encoded using the MH method. For example, in an image with gradation, the third
Dithered image (main scan 1) using IJ
When MH encoding is used for 728 pixels and 2290 sub-scan lines), a code of 6.277,409 bits is generated, and the original image 1728 x 2290 = 3,957,12
This has the disadvantage that it is approximately 1.6 times as large as a 0 bit, making the encoding meaningless.

ところで、上記階調画像に対してビット・インターリー
ブ法により4画素おきにビット・インターリーブし、M
H符号化すると1,316,897ビツトで、原画像の
約033倍であった。
By the way, the above gradation image is bit-interleaved every four pixels by the bit-interleaving method, and M
When H-encoded, it was 1,316,897 bits, which was about 033 times the original image.

ところが通常の電話回線を使用するファクシミリでのデ
ータ転送速度は9600ビット毎秒程度であり、この速
度で前記ビット・インターリーブによる符号化を行って
も伝送時間は約137秒かかることになり、従って、よ
り効率よく圧縮して符号化し高速な転送を可能とするこ
とが要求されていた。そこで本発明は符号化時には効率
よく圧縮して高速な伝送を可能とし、復号化時には復号
、補間、ディザ化を行うことにより良画質な再生を可能
とする、階調画像符号・復号化方法を提供することにあ
る。
However, the data transfer rate in a facsimile that uses a normal telephone line is about 9,600 bits per second, and even if the above-mentioned bit interleaving encoding is performed at this speed, the transmission time will be about 137 seconds. There was a need for efficient compression and encoding to enable high-speed transfer. Therefore, the present invention provides a gradation image encoding/decoding method that enables high-speed transmission by efficiently compressing during encoding, and enables high-quality reproduction by performing decoding, interpolation, and dithering during decoding. It is about providing.

(問題点を解決するための手段) 本発明は、符号化時には階調画像の各画素の濃度情報を
原画素濃度より低い第1の画素密度でサンシリングして
符号化して転送し、復号化時には前記符号を復号化して
濃度情報を再生した後、第1の画素密度以上の第2の画
素密度に濃度情報を補間し、第2の画素密度でディザ化
により2値化するようにしたものである。
(Means for Solving the Problems) The present invention provides that, at the time of encoding, the density information of each pixel of a gradation image is encoded and transmitted at a first pixel density lower than the original pixel density, and then decoded. Sometimes, after decoding the code and reproducing density information, the density information is interpolated to a second pixel density that is higher than the first pixel density, and binarized by dithering at the second pixel density. It is.

(作用) 本発明によれば、符号化時には階調画像の各画素の入力
濃度情報を低い分解能でサンプリングして符号化してい
るので高速伝送が可能となり、また復号化時には前記入
力濃度情報を復号し、そして高い分解能に補間した後デ
ィサ化により2値化して再生しているので良画質な再生
が可能となるものである。
(Operation) According to the present invention, since the input density information of each pixel of a gradation image is sampled and encoded at a low resolution during encoding, high-speed transmission is possible, and during decoding, the input density information is decoded. Then, after interpolating to a high resolution, the image is binarized by dithering and then reproduced, making it possible to reproduce the image with high quality.

(実施例) 第1図はこの発明の第1の実施例である階調画像符号・
復号化装置のブロック図を示したもので、以下第1図に
基づき詳細に説明する。
(Embodiment) FIG. 1 shows a gradation image code, which is a first embodiment of the present invention.
This figure shows a block diagram of a decoding device, and will be explained in detail below based on FIG. 1.

第1図において、100は符号化部であり、200は復
号化部である。この符号化部100は、コントローラA
101、メモリAlO2、アドレスカウンタA703、
MH符号化回路104、メモリB105、アドレスカウ
ンタB106、カウンタ107、識別符号発生回路10
8、セレクタA109からなる。また復号化部200は
、コントローラ8201、識別符号判別回路202、鼎
復号化回路203、セレクタB2θ4、メモリC205
、アドレスカウンタC206、補間回路207、ディザ
回路20EIからなる。
In FIG. 1, 100 is an encoding section, and 200 is a decoding section. This encoding unit 100 is a controller A
101, memory AlO2, address counter A703,
MH encoding circuit 104, memory B105, address counter B106, counter 107, identification code generation circuit 10
8. Consists of selector A109. The decoding unit 200 also includes a controller 8201, an identification code discrimination circuit 202, a decoding circuit 203, a selector B2θ4, and a memory C205.
, an address counter C206, an interpolation circuit 207, and a dither circuit 20EI.

本実施例の動作を次に説明する。まず図示しない画像読
取手段により検出された画像読取情報すなわち各両名に
対して4ビツトに量子化された入力濃度情報INが符号
化部100へ入力される。
The operation of this embodiment will be explained next. First, image reading information detected by an image reading means (not shown), that is, input density information IN quantized to 4 bits for each image, is input to the encoding section 100.

読取対象の1行当りの画素数が例えば1728画素であ
れば、1728画素/1行の入力濃度情報INが各々4
ビツトで順次入力される。ここでコントローラAl0I
の制御により、これらの画素のうちから、・1行毎のも
の例えば第2図f v = 0の位置の行に対応する画
素であって、さらに該当行中の4列毎のもの例えばh=
oの位置の列に対応する432画素/1行の入力濃度情
報INのみをサンプリングしメモリAlO2に4ビツト
の1まで記憶させる。次にメモIJ A Z 02に記
憶された第1の行の各画素の入力濃度情報のうち最も重
みの大きいビットのみをとり出す。例えば第2図の入力
濃度情報のうちv=O,h=Oの入力濃度情報をとり出
すと1.10.15・・・となる。これを2進数で表す
と第5図のようになる。このうち最も重みの大きいビッ
トは第5図中MSBで示したように0.1,1.・・・
となる。このビット列に対してM H符号化回路104
を用いてMH符号化を行う。このMH符号化回路104
で発生したMl’i符号はメモリB105に記憶される
。この際カラ/り107でMH符号のビット数がカウン
トされ、1行分すなわち432ビツトの原情報に対する
符号化が終了した時点で1行分のカウント値をコントロ
ーラA101に出力する。コントローラ八101はこの
値が原情報の432ビツトより犬か否かを比較し、犬の
ときは識別符号発生回路108に原情報をそのまま送出
する識別符号Bを発生させた後、メモIJ A 102
内の432ビツトの原情報をセレクタA109を介して
復号化部200へ送出する。壕だカウンタ107のカウ
ント値が432ビツトより小のときは、識別符号発生回
路にM H符号を送出する識別符号Aを発生させた後、
メモリB105内のMH符号をセレクタA109を介し
て復号化部200へ送出する。
For example, if the number of pixels per line to be read is 1728 pixels, the input density information IN for 1728 pixels/1 line is 4 each.
Bits are input sequentially. Here controller Al0I
Under the control of, from among these pixels, pixels corresponding to every row, for example, the row at the position f v = 0 in FIG. 2, and pixels every fourth column in the corresponding row, for example h=
Only the input density information IN of 432 pixels/row corresponding to the column at position o is sampled and stored up to 4 bits of 1 in the memory AlO2. Next, only the bit with the largest weight is extracted from the input density information of each pixel in the first row stored in the memo IJ AZ 02. For example, if the input density information of v=O, h=O is extracted from the input density information of FIG. 2, it becomes 1.10.15... If this is expressed in binary numbers, it will be as shown in Figure 5. Among these bits, the bits with the highest weight are 0.1, 1, etc., as shown by the MSB in FIG. ...
becomes. For this bit string, M H encoding circuit 104
MH encoding is performed using This MH encoding circuit 104
The Ml'i code generated in is stored in memory B105. At this time, the number of bits of the MH code is counted by the color/reader 107, and when the encoding of one row of original information, that is, 432 bits, is completed, the count value for one row is output to the controller A101. The controller 8 101 compares this value with the 432 bits of the original information to see if it is a dog, and if it is a dog, it causes the identification code generation circuit 108 to generate an identification code B that sends the original information as it is, and then outputs the memo IJA 102.
The original information of 432 bits is sent to the decoding section 200 via the selector A109. When the count value of the counter 107 is smaller than 432 bits, after the identification code generation circuit generates the identification code A which sends the MH code,
The MH code in memory B105 is sent to decoding section 200 via selector A109.

以上の符号化を第5図でMGBより1つ右隣のビ、ト列
0,0.L、・・・に対しても同様に行い、次にさらに
右隣のビット列0,1,1.・・・に対して ′同様に
行い、最後に最も重みの小さいビット列すなわち第5図
でLSBと示されたビット列l、0゜1、・・・に対し
て符号化を行う。このようにして第1図で最も上のv=
0.h=0の行、1,10゜15、・・・の符号化が終
了すると次のv=o、h=0の行すなわち8,15.O
,・・・の符号化を同様に行う。以下これをくり返し、
全頁の符号化を終える。
In FIG. 5, the above encoding is performed in the bit, g, and g rows 0, 0, one position to the right of MGB. The same process is performed for L, . . . , and then the bit strings 0, 1, 1, . . . 'The same process is performed, and finally the bit string with the smallest weight, that is, the bit string l, 0° 1, . . . indicated as LSB in FIG. 5, is encoded. In this way, the topmost v=
0. When the encoding of the row h=0, 1, 10° 15, . O
, . . . are encoded in the same way. Repeat this below,
Finish encoding all pages.

第6図は上記の動作によって得られる符号列C(符号化
部100の出力)の順を図示している。
FIG. 6 illustrates the order of the code string C (output of the encoding unit 100) obtained by the above operation.

この第6図の例では4つの重みビット列のうち上位2つ
のビット列ではMH符号のビット数が432より小であ
ったとし、下位2つのビット列でば432より犬であっ
たとする。AはMH符号であることを示す識別符号で、
C,、C2はそれぞれ最上位およびその1つ下の位のビ
ット列をMH符号化した符号列である。まだ、Bは原情
報であることを示す識別符号で、D3+D4はそれぞれ
最下位より1つ上お・よび最下位のビット列をそのまま
とり出したものである。この符号列Cは復号化部20θ
に入力される。
In the example shown in FIG. 6, it is assumed that the number of bits of the MH code is smaller than 432 in the upper two bit strings of the four weighted bit strings, and it is assumed that the number of bits of the MH code is smaller than 432 in the lower two bit strings. A is an identification code indicating that it is an MH code,
C, , C2 are code strings obtained by MH encoding the bit strings of the most significant and one digit below the most significant bit string, respectively. Still, B is an identification code indicating that it is original information, and D3+D4 are the bit strings one above the lowest and the lowest, respectively, extracted as they are. This code string C is transmitted to the decoding unit 20θ
is input.

復号化部200において、コントローラB201では捷
ず識別符号判別回路202を用いて受信する符号が第6
図にAおよびBで示したMH符号列か原情報のいずれで
あるかの判別を行う。この結果MH符号列であればMH
復号化回路203を用いて原ビット列情報を432ビツ
ト再生する。このときコントローラB201はセレクタ
B204に対しこの再生情報がメモリ入力として選択さ
れるよう指示する。まだ識別符号判別回路の判別結果が
原情報であれば、コントローラ820ノはセレクタB2
04にこの原情報がメモリ入力として選択されるよう指
示する。このようにしてセレクタB204によって選択
された情報はアドレスカウンタC2θ6にしたがってメ
モリC205に順次記憶される。前述の符号化と同様に
最も重みの大きいビット列から最も重みの小さいビット
列まで1行分に対して4回上記動作を行う。これを該当
桁分繰りかえして全頁の復号が終了するとメモIJ C
205内には第5図に示したような4行毎且つ4列毎の
v=o、h=oの位置の画素の入力濃度情報が記憶され
ている。
In the decoding unit 200, the controller B 201 does not select the received code using the identification code discriminating circuit 202.
It is determined whether the MH code string shown by A and B in the figure is the original information or the original information. As a result, if MH code string, MH
The decoding circuit 203 is used to reproduce 432 bits of the original bit string information. At this time, the controller B201 instructs the selector B204 to select this playback information as memory input. If the discrimination result of the identification code discrimination circuit is still the original information, the controller 820 selector B2
04 to select this raw information as memory input. The information selected by selector B204 in this manner is sequentially stored in memory C205 according to address counter C2θ6. Similar to the above-mentioned encoding, the above operation is performed four times for one row from the bit string with the highest weight to the bit string with the lowest weight. Repeat this for the corresponding digits and when all pages have been decoded, the memo IJC
Input density information of pixels at positions v=o, h=o in every fourth row and every fourth column as shown in FIG. 5 is stored in 205.

次にコントローラB201は補間回路207を用いて4
×4の周期毎に再生された濃度をもとに補間を行う。補
間関数としてはWilliam K、 Pratt著、
 ” Digital Image Processi
ng’+ (1978)John Wi Iey & 
5ons社発行P113〜P114に記載されているよ
うに0次補間、1次補間、2次補間などがあるが、ここ
では主走査方向は1次補間、副走査方向はO次補間を行
う場合について説明する。メモIJ C205には4行
毎且つ4列毎のy=Q 、h=oの位置の画素の入力濃
度情報1゜10.15・・が記憶されている。この情報
に対して第4図でv=o、h=oの位置に対応する濃度
であるとし、主走査方向については1次補間すなわち距
離の加重平均をとった補間をし、副走査方向については
0次補間すなわち4行同一値による補間を行う。その結
果は第7図のようになる。この補間濃度情報に対しディ
ザ回路20Bを用いて2値化する。ディザ回路20gで
は第3図に示した閾値マトリクスを用いて2値化を行う
が、この2値化した結果を第8図に示す。このようにし
て再生された2値画像の再生出力OUTは第4図に示し
た画像とは必ずしも一致してはいないが、階調性を有す
る画像は一般的に急激な濃度変化は少ないため、上記の
方式により符号化を施しても、例えばファクシミリで用
いられている8画素/III+I+程度の分解能で実用
上必要な情報はほぼ保存される。
Next, the controller B 201 uses the interpolation circuit 207 to
Interpolation is performed based on the density reproduced every ×4 period. The interpolation function is written by William K. Pratt,
”Digital Image Process
ng'+ (1978) John Wi Iey &
As described in pages 113 to 114 published by 5ons, there are 0-order interpolation, 1-order interpolation, 2-order interpolation, etc., but here we will discuss the case where 1-order interpolation is performed in the main scanning direction and 0-order interpolation is performed in the sub-scanning direction. explain. The memo IJC 205 stores input density information 1°10.15 for pixels at positions y=Q, h=o in every fourth row and every fourth column. For this information, it is assumed that the densities correspond to the positions v=o and h=o in FIG. performs zero-order interpolation, that is, interpolation using the same values in four rows. The result is as shown in Figure 7. This interpolated density information is binarized using a dither circuit 20B. The dither circuit 20g performs binarization using the threshold matrix shown in FIG. 3, and the result of this binarization is shown in FIG. The reproduction output OUT of the binary image reproduced in this way does not necessarily match the image shown in FIG. 4, but since images with gradation generally have little sudden change in density, Even when encoding is performed using the above-mentioned method, practically necessary information can be preserved with a resolution of about 8 pixels/III+I+ used in facsimile, for example.

なお、前記従来技術で説明に用いた階調画像に対し、本
実施例による上記高速符号化を施した結果は以下のよう
であった。1ず2290行に対して4行おきに572行
とり出し、重みビット列毎に符号化する。まず最も重み
の大きいビット列では572行中563行がMH符号で
次のビット列では496行、次のビット列では116行
、最も重みの小さいビット列では27行がMH符号化さ
れた。この結果総符号長は666,310ビツトであり
、これは前記ビット・インターリーブ法による場合の約
0.51倍である。従って、9600ビット毎秒のデー
タ転送速度であれば約69秒で伝送することが可能であ
る。
Note that the results of performing the above-mentioned high-speed encoding according to this embodiment on the gradation image used in the description of the conventional technique are as follows. First, 572 rows are extracted every fourth row out of 2290 rows and encoded for each weight bit string. First, 563 out of 572 rows of the bit string with the highest weight were MH encoded, 496 rows of the next bit string, 116 rows of the next bit string, and 27 rows of the bit string with the lowest weight were MH coded. As a result, the total code length is 666,310 bits, which is about 0.51 times that of the bit interleaving method. Therefore, at a data transfer rate of 9600 bits per second, it is possible to transmit data in approximately 69 seconds.

なお、本実施例では符号化部100と復号化部200と
をそれぞれ別々のブロックで示し、その両者の間を直接
接続した場合について示したが、符号化部ZOOと復号
化部200とが公衆回線等の伝送路を介して接続される
場合も含むものである。また、符号化部100と復号化
部200とが同−匣体内に設けられる場合には、コント
ローラ820ノとコントローラB 20 Zトハ1つの
コントローラを共用することも可能である。また、本発
明の第2の実施例として、符号化部100において千鳥
状にサンプリングして、且っ復号化部2θ0においても
千鳥状に補間及びディサ化することもできる。この場合
第9図に示すように、濃度情報のサンプリング点が千鳥
状になるだめ、視覚上自然性、了解度が向上する効果が
得られる。
In this embodiment, the encoding unit 100 and the decoding unit 200 are shown as separate blocks, and the case where they are directly connected is shown, but the encoding unit ZOO and the decoding unit 200 are This also includes cases where connections are made via transmission paths such as lines. Furthermore, when the encoding section 100 and the decoding section 200 are provided in the same housing, it is also possible to share one controller, the controller 820 and the controller B20Z. Furthermore, as a second embodiment of the present invention, the encoding unit 100 may sample in a staggered manner, and the decoding unit 2θ0 may also perform interpolation and desaturation in a staggered manner. In this case, as shown in FIG. 9, since the sampling points of the density information are staggered, the effect of improving visual naturalness and intelligibility can be obtained.

さらに第3の実施例として、入力濃度情報の重みの上位
の特定数の桁(例えば2桁)はMH符号化し、下位の特
定数の桁(例えば2桁)は原ビット列をそのit符号と
するように固定的に決めておくようにすることもできる
。この場合符号化部100のカウンタ107は不要とな
る。このようにする理由は、我々の実験結果によれば重
みの大きいビット列のMH符号はど符号長が短い性質が
あることがわかっただめである。
Furthermore, as a third embodiment, the upper specific number of digits (for example, 2 digits) of the weight of the input density information is MH encoded, and the lower specific number of digits (for example, 2 digits) uses the original bit string as its IT code. It is also possible to set it fixedly like this. In this case, the counter 107 of the encoding section 100 becomes unnecessary. The reason for doing this is that, according to our experimental results, it has been found that the MH code of a bit string with a large weight has a short code length.

ところで、以上では各画素の入力濃度情報のサンプリン
グで各画素ブロックの中のv=o、h=Oの位置のも・
のを抽出して符号・復号化を行う場合について説明した
が、各画素ブロックの中の他の任意の位置の画素の入力
濃度情報を抽出対象とすることもでき、あるいは各画素
ブロックの中の所定数の画素もしくは全画素の入力濃度
情報を平均化したものを算出して、抽出対象とすること
もできる。まだ符号化する入力濃度情報のサンプリング
周期としては、高い画像品質を得たい場合は短い周期で
、低い画像品質が許容される場合は長い周期でサンプリ
ングすることができる。従って予めサンプリング周期を
複数種類備えておき、必要とする画像品質に応じてサン
プリング周期を選択するようにすることもできる。
By the way, in the above, by sampling the input density information of each pixel, the positions of v=o and h=O in each pixel block are also sampled.
Although we have explained the case where the input density information is extracted and encoded/decoded, it is also possible to extract the input density information of a pixel at any other position in each pixel block, or It is also possible to calculate the average of the input density information of a predetermined number of pixels or all pixels and use it as an extraction target. The sampling period for the input density information to be encoded may be short if high image quality is desired, or long if low image quality is acceptable. Therefore, it is also possible to prepare a plurality of sampling periods in advance and select the sampling period according to the required image quality.

(発明の効果) この発明は以上説明したように、濃度情報をサンプリン
グして符号化を行い、復号後にはとのサンシリング画素
密度より高い画素密度に補間した後、ディサ化するよう
にしたので、階調画像を効率よく符号化し、寸だ良画質
で再生できる利点があり、ファクシミリ、静止画伝送装
置、でイノタル画像ファイル装置等における階調画像符
号・復号化装置として利用することができる。
(Effects of the Invention) As explained above, in this invention, density information is sampled and encoded, and after decoding, it is interpolated to a pixel density higher than the original sampling pixel density, and then desaturation is performed. It has the advantage of being able to efficiently encode gradation images and reproduce them with very good image quality, and can be used as a gradation image encoding/decoding device in facsimiles, still image transmission devices, innotal image file devices, etc.

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

第1図は本発明の第1の実施例のブロック図、第2図は
原画像の各画素の濃度情報を示した図、第3図ば4×4
のディザ閾値マトリクスを示した図、第4図はディザ法
により2値化された画像を示した図、第5図はv=o、
h=oの位置の濃度情報を2進表示した図、第6図は符
号列Cを示した図、第7図は復号時の補間を説明するだ
めの図、第8図は復号時のディザ化を説明するだめの図
、第9図は本発明の第2の実施例におけるディサ周期を
説明するだめの図。 100・・・符号化部、10ノ・・コントローラA11
02・・・メモリA、103・・・アドレスカウンタA
1104・・・MH符号化回路、105・・メモ’JB
%106・・・アドレスカウンタB、107・・・カウ
ンタ、108・・・識別符号発生回路、109・・セレ
クタA1200・・・復号化部、20トコント口7 B
 z2θ2・・・識別符号判別回路、2θ3・・・MH
復号化回路、204・・・セレクタf3,20.5・・
・メモリC120T6・・・アドレスカウンタC,20
7・・・補間回路、208・・ディザ回路。 特許 出 願人 沖電気工業株式会社 手続補正書輸幻 60.3.27 昭和  年  月  日
Figure 1 is a block diagram of the first embodiment of the present invention, Figure 2 is a diagram showing the density information of each pixel of the original image, and Figure 3 is a 4x4
Figure 4 is a diagram showing an image binarized by the dither method, Figure 5 is a diagram showing the dither threshold matrix of v=o,
Figure 6 is a diagram showing the code string C in binary representation of the density information at the position h=o, Figure 7 is a diagram for explaining interpolation during decoding, and Figure 8 is a diagram showing the dithering during decoding FIG. 9 is a diagram for explaining the dither period in the second embodiment of the present invention. 100... Encoding unit, 10... Controller A11
02...Memory A, 103...Address counter A
1104...MH encoding circuit, 105...Memo'JB
%106...Address counter B, 107...Counter, 108...Identification code generation circuit, 109...Selector A1200...Decoding unit, 20 control port 7B
z2θ2...Identification code discrimination circuit, 2θ3...MH
Decoding circuit, 204...Selector f3, 20.5...
・Memory C120T6...Address counter C, 20
7...Interpolation circuit, 208...Dither circuit. Patent Applicant: Oki Electric Industry Co., Ltd. Procedural Amendment 60.3.27 Showa Year, Month, Day

Claims (2)

【特許請求の範囲】[Claims] (1)階調画像をディザ化により、2値化して再生する
階調画像符号・復号化方法において、符号化時は階調画
像の各画素の濃度情報を第1の画素密度でサンプリング
し符号化して転送し、復号化時には前記符号を復号して
濃度情報を再生した後第1の画素密度以上の第2の画素
密度に濃度情報を補間し第2の画素密度でディザ化によ
り2値化するようにしたことを特徴とする階調画像符号
・復号化方法。
(1) In a gradation image encoding/decoding method that binarizes and reproduces a gradation image by dithering, during encoding, the density information of each pixel of the gradation image is sampled at a first pixel density and encoded. At the time of decoding, the code is decoded to reproduce the density information, and then the density information is interpolated to a second pixel density that is higher than the first pixel density, and binarized by dithering at the second pixel density. A gradation image encoding/decoding method characterized by:
(2)符号化はサンプリングされた所定単位毎の各画素
の濃度情報に対し、各画素の濃度情報を表すビット情報
の内の同一位置のビット毎にビット列を構成し当該各ビ
ット列毎にランレングス符号化し当該ランレングス符号
のビット長と原ビット列のビット長とを比較していずれ
か短かい方を選択し転送させる符号となすものであり、 符号の復号及び濃度情報の再生は転送されてくる符号が
ランレングス符号もしくは原ビット列のいずれであるか
を判定しランレングス符号の場合のみ復号して復号され
たランレングス符号もしくは原ビット列から各画素の濃
度情報を再生するものであることを特徴とする。特許請
求の範囲第1項記載の階調画像符号・復号化方法。
(2) Encoding is performed by constructing a bit string for each bit at the same position in the bit information representing the density information of each pixel for the density information of each pixel sampled in a predetermined unit, and creating a run length for each bit string. The bit length of the encoded run-length code is compared with the bit length of the original bit string, and the shorter one is selected as the code to be transmitted.Decoding of the code and reproduction of the density information are transmitted. It is characterized by determining whether the code is a run-length code or an original bit string, decoding only if it is a run-length code, and reproducing the density information of each pixel from the decoded run-length code or original bit string. do. A gradation image encoding/decoding method according to claim 1.
JP59188936A 1984-09-11 1984-09-11 Gradation picture coding and decoding method Pending JPS6167370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59188936A JPS6167370A (en) 1984-09-11 1984-09-11 Gradation picture coding and decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59188936A JPS6167370A (en) 1984-09-11 1984-09-11 Gradation picture coding and decoding method

Publications (1)

Publication Number Publication Date
JPS6167370A true JPS6167370A (en) 1986-04-07

Family

ID=16232488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59188936A Pending JPS6167370A (en) 1984-09-11 1984-09-11 Gradation picture coding and decoding method

Country Status (1)

Country Link
JP (1) JPS6167370A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5236410A (en) * 1975-09-18 1977-03-19 Nippon Telegr & Teleph Corp <Ntt> Facsimile communicion system
JPS55138974A (en) * 1979-04-17 1980-10-30 Ricoh Co Ltd Image processing method
JPS5711577A (en) * 1980-06-24 1982-01-21 Ricoh Co Ltd Coding method for picture information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5236410A (en) * 1975-09-18 1977-03-19 Nippon Telegr & Teleph Corp <Ntt> Facsimile communicion system
JPS55138974A (en) * 1979-04-17 1980-10-30 Ricoh Co Ltd Image processing method
JPS5711577A (en) * 1980-06-24 1982-01-21 Ricoh Co Ltd Coding method for picture information

Similar Documents

Publication Publication Date Title
US5073966A (en) Image data processing apparatus
JPS59223073A (en) Picture processor
US5442459A (en) Process for encoding a half tone image considering similarity between blocks
JPS6096079A (en) Multilevel image encoding method
KR0123790B1 (en) Image encoding method and image encoding / decoding method
JPH09200532A (en) Multi-value image data transmission device
JPS6167370A (en) Gradation picture coding and decoding method
JPH036066Y2 (en)
JPH08298589A (en) Image processing device for mixed images of photos and documents
JPH07112243B2 (en) Block division sequential reproduction coding method
JPS5840989A (en) Coding processing method and transmission controlling method of picture information
JP3263218B2 (en) Image information data compression and playback device
JPS61123277A (en) Picture data compression system
JPS6358425B2 (en)
JPS6367394B2 (en)
JPS63102557A (en) Multiple-valued image encoding device
JP3146092B2 (en) Encoding device and decoding device
JPH0789619B2 (en) Encoder
JPS61136379A (en) Encoding system
JPS61136378A (en) Encoding method
JPS62140553A (en) Encoding method for image signal
JPH09284566A (en) Image data encoding / decoding device and encoding / decoding method
JPH11252374A (en) Image encoder
JPS6174455A (en) Coding control system of binary picture signal
JP2002158878A (en) Image processing apparatus and image processing method