JPH06141184A - Method and device for encoding/decoding multilever picture data - Google Patents

Method and device for encoding/decoding multilever picture data

Info

Publication number
JPH06141184A
JPH06141184A JP28562192A JP28562192A JPH06141184A JP H06141184 A JPH06141184 A JP H06141184A JP 28562192 A JP28562192 A JP 28562192A JP 28562192 A JP28562192 A JP 28562192A JP H06141184 A JPH06141184 A JP H06141184A
Authority
JP
Japan
Prior art keywords
change point
line
pixel
image data
encoding
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.)
Granted
Application number
JP28562192A
Other languages
Japanese (ja)
Other versions
JP3259989B2 (en
Inventor
Akihiro 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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP28562192A priority Critical patent/JP3259989B2/en
Publication of JPH06141184A publication Critical patent/JPH06141184A/en
Application granted granted Critical
Publication of JP3259989B2 publication Critical patent/JP3259989B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently encode multilevel picture data without damaging the reproducibility of a multilevel picture by detecting the picture element, where the density level is changed, as a change point with respect to each line of multilevel picture data and encoding the change point of the encoding line by two-dimensional displacement of differences in position and density level from the change point of an already encoded reference line. CONSTITUTION:A change point detecting part 4 is provided which detects the position of a picture element which is different from the picture element, which just precedes it in the scanning order, by density level with respect to each line at the time of defining each line of multilevel picture data, which is obtained by sampling in picture element units, as the encoding line. A distance detecting part 12 which compares the change point on the encoding line with that on the reference line as an already encoded line to obtain a position difference DELTAa and a level difference detecting part 13 which obtains a density level difference DELTAn are provided. These position difference DELTAa and density level difference DELTAn are recognized as two-dimensional displacement, and a preliminarily determined code V corresponding to this displacement is obtained to encode the change point on the encoding line.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像を走査し画素単位
にサンプリングして得られる多値画像データを高能率符
号化して蓄積あるいは伝送するための多値画像データの
符号化方法および装置に関するものであり、更にそれと
関連した多値画像データの復元方法および装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multivalued image data encoding method and device for highly efficient encoding and storing or transmitting multivalued image data obtained by scanning an image and sampling in pixel units. The present invention also relates to a method and apparatus for restoring multi-valued image data related thereto.

【0002】[0002]

【従来の技術】多値画像データの符号化方法としては、
ビット・プレーン符号化法やブロック符号化法などがよ
く知られている。ビット・プレーン符号化法は、多値画
像の2次元データ圧縮の一方法で、各画素の濃度レベル
を2進符号で表現し、その2進符号列の同位ビットにつ
いて2次元のMR(モディファイド・リード)符号化を
行う。この符号化の方法は、上位ビットの2次元的相関
は高いが、低位ビットの相関は少なく、圧縮率は余り良
くない。
2. Description of the Related Art As a method of encoding multi-valued image data,
Bit plane coding methods and block coding methods are well known. The bit plane coding method is a method of two-dimensional data compression of a multi-valued image, in which the density level of each pixel is expressed by a binary code, and two-dimensional MR (Modified. Read) Encode. In this encoding method, although the two-dimensional correlation of high-order bits is high, the correlation of low-order bits is small and the compression rate is not so good.

【0003】ブロック符号化法は、多階調画像の1次元
または2次元のデータ圧縮の一方法であり、画像を一定
の区間(1次元圧縮のとき)または一定の領域(2次元
圧縮のとき)に分割し、区間毎または領域毎にその平均
濃度レベルと各画素の濃度レベルとの差を順次符号化す
る。
The block coding method is a method of compressing a one-dimensional or two-dimensional data of a multi-tone image, and a certain section (in the one-dimensional compression) or a certain area (in the two-dimensional compression) of the image. ), And the difference between the average density level and the density level of each pixel is sequentially encoded for each section or each area.

【0004】この方法は、画像の変化特性と無関係に区
間または領域を設定するため、分割境界の前後で画像特
性に相関が有ってもそれを生かせず、圧縮効率は必ずし
も良くない。また、他の多値画像の符号化方法として
は、量子化された符号化ラインの階調レベルの境界を、
参照ラインの境界位置との位置関係を2値画像の符号化
によく使用されるMR(モディファイド・リード)方式
で符号化する方法がある。
In this method, since the section or region is set irrespective of the change characteristic of the image, even if there is a correlation in the image characteristic before and after the division boundary, it cannot be utilized, and the compression efficiency is not always good. As another multi-valued image coding method, the boundary of the gradation level of the quantized coding line is
There is a method of encoding the positional relationship with the boundary position of the reference line by an MR (Modified Read) method which is often used for encoding a binary image.

【0005】しかし、この方法は、前述のMR方式を適
用するため符号化ラインの階調レベルの境界の一方側の
レベルと、参照ラインの境界の対応する一方側のレベル
が等しい場合の境界位置を垂直符号で符号化する。よっ
て、階調レベルの境界(階調レベルの変化する変化点と
もいえる)位置が参照ラインに対して、位置的にも階調
レベル(濃度レベル)的にも頻度高く変化する多値画像
に対しては、必ずしも高い符号化効率は得られない。
However, since this method applies the above-mentioned MR method, the boundary position when the level on one side of the gradation level boundary of the coding line and the corresponding level on the one side of the boundary of the reference line are the same. Is encoded with a vertical code. Therefore, for a multi-valued image in which the boundary of the gradation level (which can also be called a change point where the gradation level changes) changes frequently with respect to the reference line both in terms of position and gradation level (density level). As a result, high coding efficiency cannot always be obtained.

【0006】関連する多値画像の符号化方法としては、
特公平4−7871号公報、特公平3−22752号公
報記載の方法などがある。
As a related multilevel image encoding method,
There are methods described in JP-B-4-7871 and JP-B-3-22752.

【0007】[0007]

【発明が解決しようとする課題】本発明の目的は、上記
の点を考慮して、写真等の多値画像を含む文書などの多
値画像の高能率符号化に適する多値画像データの符号化
方法および装置、さらにはそれに関連した多値画像デー
タの復元方法および装置を提供するにある。
SUMMARY OF THE INVENTION In consideration of the above points, an object of the present invention is to encode multi-valued image data suitable for high-efficiency encoding of multi-valued images such as documents including multi-valued images such as photographs. A method and apparatus for converting the multi-valued image data, and a method and apparatus for restoring multi-valued image data related thereto.

【0008】具体的には、画像の主走査方向のみなら
ず、副走査方向についても濃度レベルの相関を利用した
符号化を行うことにより、再現性を損なうことなく、高
い符号化効率が期待でき、伝送時間の短縮と蓄積容量の
減少が期待できる多値画像データの符号化方法および装
置と、関連した多値画像データの復元方法および装置を
を提供することを目的とする。
Specifically, by performing coding using the density level correlation not only in the main scanning direction of the image but also in the sub scanning direction, high coding efficiency can be expected without impairing reproducibility. An object of the present invention is to provide a multivalued image data encoding method and device, which can be expected to reduce transmission time and storage capacity, and a related multivalued image data restoration method and device.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
の第1の解決手段は、画像を走査し画素単位にサンプリ
ングして得た多値画像データの各ラインについて、濃度
レベルが変化する画素を変化点として検出し、符号化ラ
インの変化点を、すでに符号化された参照ラインの変化
点との位置の差Δaと、濃度レベルの差Δnの2次元的
な変位(Δa,Δn)に対応する符号V(Δa, Δn)
で符号化するようにした多値画像データ符号化方法およ
び装置としたことである。
A first means for achieving the above object is to provide a pixel whose density level changes for each line of multi-valued image data obtained by scanning an image and sampling in pixel units. Is detected as a change point, and the change point of the encoded line is converted into a two-dimensional displacement (Δa, Δn) of the difference Δa in position with the change point of the already encoded reference line and the difference Δn in density level. Corresponding code V (Δa, Δn)
That is, the multi-valued image data encoding method and apparatus are adapted to be encoded by.

【0010】第2の解決手段は、画像を走査し画素単位
にサンプリングして得た多値画像データに対して、注目
画素とその周辺画素の濃度レベルをもとに、注目画素が
文字・線画領域に属しているか否かを判別する像域判別
手段、前記判別結果が肯定的な場合、注目画素の濃度レ
ベルに応じて、注目画素を白(最小濃度レベル)あるい
は黒(最大濃度レベル)に2値量子化し、
A second solution is that, for multi-valued image data obtained by scanning an image and sampling in pixel units, the target pixel is a character / line drawing based on the density levels of the target pixel and its peripheral pixels. An image area discriminating means for discriminating whether or not the pixel belongs to a region, and when the discrimination result is affirmative, the target pixel is changed to white (minimum density level) or black (maximum density level) depending on the density level of the target pixel. Binary quantization,

【0011】前記判定結果が否定的な場合、注目画素の
濃度レベルをそのまま出力する2値化処理手段、を設
け、2値化処理手段の出力画像データの各ラインについ
て、濃度レベルが変化する画素を変化点として検出し、
符号化ラインの変化点を、すでに符号化された参照ライ
ンの変化点との位置の差Δaと、濃度レベルの差Δnの
2次元的な変位(Δa, Δn)に対応する符号V(Δ
a, Δn)で符号化するようにした多値画像データ符号
化方法および装置としたことである。
If the result of the determination is negative, a binarization processing means for outputting the density level of the pixel of interest as it is is provided, and a pixel whose density level changes for each line of the output image data of the binarization processing means. Is detected as a change point,
A code V (Δ) corresponding to a two-dimensional displacement (Δa, Δn) of the difference Δa in position between the change point of the encoded line and the change point of the already encoded reference line and the difference Δn in density level.
a, Δn) is a multivalued image data encoding method and apparatus.

【0012】第3の解決手段は、画像を走査し画素単位
にサンプリングして得た多値画像データに対して、注目
画素とその周辺画素の濃度レベルをもとに、注目画素が
文字・線画などの2値画像領域に属しているか、あるい
は写真などの多値画像領域に属しているかをを判別する
像域判別手段を設け、像域判定結果に応じ、読み取った
多値画像データを、多値画像領域の画素を最小濃度レベ
ル(白)にした2値画像データ面と、2値画像領域の画
素を最小濃度レベル(白)にした多値画像データ面の2
面に分離し、
A third solving means is that, for multi-valued image data obtained by scanning an image and sampling in pixel units, the target pixel is a character / line drawing based on the density levels of the target pixel and its peripheral pixels. Image area discrimination means for discriminating whether or not it belongs to a binary image area such as or a multi-valued image area such as a photograph, and multi-valued image data read according to the image area determination result 2 of the binary image data surface in which the pixels in the value image area are set to the minimum density level (white) and the multivalued image data surface in which the pixels in the binary image area are set to the minimum density level (white).
Separated into faces,

【0013】2値画像データ面の画像を2値量子化し、
第1の符号化方式で符号化し、多値画像データ面の画像
を第2の符号化方式で符号化し、各面の先頭符号化ライ
ンより交互に符号化データを伝送するようにした多値画
像データ符号化方法および装置としたことである。
The image on the binary image data surface is binary-quantized,
A multi-valued image encoded by the first encoding method, an image on the multi-valued image data surface is encoded by the second encoding method, and the encoded data is alternately transmitted from the head encoding line of each surface. That is, the data encoding method and device are used.

【0014】第4の解決手段は、画像を走査し画素単位
にサンプリングして得た多値画像データに対して、注目
画素とその周辺画素の濃度レベルをもとに、注目画素が
文字・線画領域に属しているか否かを判別する像域判別
手段、前記判別結果が肯定的な場合、注目画素の濃度レ
ベルに応じて、注目画素を白(最小濃度レベル)あるい
は黒(最大濃度レベル)に2値化する2値化処理手段を
設け、
A fourth solving means is that, for multi-valued image data obtained by scanning an image and sampling in pixel units, the target pixel is a character / line drawing based on the density levels of the target pixel and its peripheral pixels. An image area discriminating means for discriminating whether or not the pixel belongs to a region, and when the discrimination result is affirmative, the target pixel is changed to white (minimum density level) or black (maximum density level) depending on the density level of the target pixel. Binarization processing means for binarizing is provided,

【0015】像域判別手段の判別結果が肯定的な画素列
をMR符号化方法で2値符号化し、判別結果が否定的な
画素列を多値符号化し、2値符号化コード列および多値
符号化コード列の先頭に、符号化方法を識別する識別符
号を付加するようにした多値画像データ符号化方法およ
び装置としたことである。
Pixel sequences having a positive determination result of the image area determining means are binary-coded by the MR encoding method, and pixel sequences having a negative determination result are multi-value encoded, and the binary-encoded code sequence and multi-value are encoded. This is to provide a multivalued image data encoding method and device in which an identification code for identifying the encoding method is added to the head of the encoded code string.

【0016】第5の解決手段は、記憶媒体あるいは伝送
媒体を介して取り込んだM階調の符号化された多値画像
データを復号化する多値画像データ復号化手段、多値画
像データ復号化手段で復号化されたM階調の多値画像を
N階調(N≦M)に再量子化し、再量子化時の量子化誤
差を周辺の画素に拡散して量子化前後の平均濃度レベル
を一致させるN値誤差拡散手段を有し、
A fifth solving means is a multi-valued image data decoding means for decoding the M-level encoded multi-valued image data fetched through a storage medium or a transmission medium, and a multi-valued image data decoding means. The multi-valued image of M gradations decoded by the means is requantized to N gradations (N ≦ M), the quantization error at the time of requantization is diffused to the peripheral pixels, and the average density level before and after the quantization. Has N-value error diffusion means for matching

【0017】多値画像表示あるいは印字手段の画素当た
りの階調表現数nがn≦Mのとき、階調表現数nに対応
してN値誤差拡散手段の再量子化の階調数をnにして、
M階調の復号化された多値画像をn階調に再量子化する
ようにした多値画像データ復元方法および装置としたこ
とである。
When the gradation expression number n per pixel of the multi-valued image display or printing means is n ≦ M, the gradation number of requantization of the N-value error diffusion means is n corresponding to the gradation expression number n. And then
This is to provide a multivalued image data restoration method and device for requantizing an M gradation decoded multivalued image into n gradations.

【0018】[0018]

【作用】本発明の第1の解決手段は、写真などの多値画
像は、画素単位の濃度レベルの変化は緩やかで、注目画
素の濃度レベルはその周辺画素の濃度レベルとほぼ等し
く、差が有ってもわずかである、という特性を利用した
ものである。
According to the first solving means of the present invention, in a multi-valued image such as a photograph, the density level of each pixel changes slowly, and the density level of the pixel of interest is almost equal to the density levels of the surrounding pixels, and the difference is small. It utilizes the characteristic that even if there is, it is very small.

【0019】上記の多値画像の性質より、符号化ライン
上の濃度が変化する変化点の位置は、すでに符号化され
た参照ライン上の変化点の位置の近傍に存在し、しかも
両変化点の濃度レベルの差も小さい確率が高い。
Due to the properties of the multi-valued image described above, the position of the changing point on the encoded line where the density changes exists near the position of the already changing point on the reference line, and both changing points are present. There is a high probability that the difference in the concentration level of is also small.

【0020】よって、第1の解決手段では、符号化ライ
ン上の濃度の変化する画素を変化点として検出し、この
変化点を参照ライン上の変化点との位置の差Δaと濃度
レベルの差Δnの2次元的な変位(Δa, Δn)に対応
して、発生頻度の高いものほど符号語長の短い符号語を
割当て符号化することにより、再現性を損なうことな
く、高い符号化効率を期待することができる。
Therefore, in the first solving means, a pixel whose density changes on the encoding line is detected as a change point, and this change point is located at a position difference Δa from the change point on the reference line and a difference between the density levels. Corresponding to the two-dimensional displacement (Δa, Δn) of Δn, by assigning and encoding codewords having shorter codeword lengths as the frequency of occurrence is high, high coding efficiency is achieved without impairing reproducibility. Can be expected.

【0021】第2の解決手段は、像域判別手段によって
2値画像領域と判別した領域の画素を、その画素の濃度
レベルに応じて白(最小濃度レベル)あるいは黒(最大
濃度レベル)に2値化するので、この領域では、変化点
は白から黒への変化画素と黒から白への変化画素の2種
類となり、濃度レベル差符号L(Δn )の内Δn の正負
の最大値に対する符号語を短い符号長の符号語に割り当
てれば、この2値画像領域は、第1の解決手段の多値画
像符号化方法で従来のMR符号とほぼ同じ符号化効率で
符号化できる。
A second solving means is to set the pixels of the area discriminated as the binary image area by the image area discriminating means to white (minimum density level) or black (maximum density level) depending on the density level of the pixel. Since the value is converted into a value, there are two types of change points in this area, a change pixel from white to black and a change pixel from black to white, and the sign of the maximum positive or negative value of Δn in the density level difference code L (Δn) If a word is assigned to a code word having a short code length, this binary image area can be coded by the multi-valued image coding method of the first solving means with almost the same coding efficiency as the conventional MR code.

【0022】つまり、多値画像領域の高い符号化効率を
期待できるとともに、2値画像領域は、エッジ強調によ
り鮮明な2値画にされ、しかも従来とほぼ同じ高い符号
化効率を得ることができる。
That is, a high coding efficiency of the multi-valued image area can be expected, and the binary image area can be made into a sharp binary image by edge enhancement, and the same high coding efficiency as the conventional one can be obtained. .

【0023】第3の解決手段は、2値画像と多値画像の
混在する画像を像域判別手段によって2値画像領域と多
値画像領域を判別し、多値画像領域を白化した2値画像
面と2値画像領域を白化した多値画像面の2面に分離
し、この2面の画像を、それぞれ画像の性質に対応した
符号化効率の高い符号化方法で符号化するので、トータ
ルとして高い符号化効率が期待でき、画像の蓄積におけ
るメモリ容量の低減を図ることができるとともに、画像
伝送においても伝送時間の短縮化を図ることができる。
A third solving means is a binary image in which an image in which a binary image and a multivalued image are mixed is discriminated between a binary image area and a multivalued image area by the image area discrimination means, and the multivalued image area is whitened. Plane and the binary image area are separated into two white-valued multi-valued image planes, and the images of these two planes are encoded by encoding methods with high encoding efficiency corresponding to the nature of the image, so that the total is obtained. High encoding efficiency can be expected, the memory capacity for image storage can be reduced, and the transmission time can be shortened for image transmission.

【0024】また、性質の異なる画像を分離して蓄積、
伝送するので、画像復元時に、2値画像と多値画像を独
立に、様々な修正加工が可能となる。
Further, images having different properties are separated and stored,
Since the data is transmitted, various correction processing can be performed independently on the binary image and the multivalued image at the time of image restoration.

【0025】第4の解決手段は、2値画像と多値画像の
混在する画像を像域判別手段によって2値画像領域と多
値画像領域を判別し、符号化ライン内において、2値画
像領域を2値化後、MR符号化方法で2値符号化し、多
値画像領域を多値符号化し、2値、多値符号列の先頭に
符号化方法の識別符号を付加して蓄積、伝送するので、
A fourth solving means discriminates a binary image area and a multivalued image area by an image area discriminating means in an image in which a binary image and a multivalued image are mixed, and a binary image area in an encoding line. Is binarized by the MR encoding method, the multi-valued image area is multi-valued, the identification code of the encoding method is added to the head of the binary and multi-valued code sequence, and the data is stored and transmitted. So

【0026】第3の解決手段と同様に、それぞれ画像の
性質に対応した符号化効率の高い符号化方法で符号化で
き、トータルとして高い符号化効率が期待でき、画像の
蓄積におけるメモリ容量の低減を図ることができるとと
もに、画像伝送においても伝送時間の短縮化を図ること
ができる。
Similar to the third solving means, it is possible to perform coding with a coding method having a high coding efficiency corresponding to the nature of each image, so that a high coding efficiency can be expected as a whole, and the memory capacity for image storage is reduced. It is possible to reduce the transmission time in image transmission.

【0027】第5の解決手段は、多値符号化された画像
あるいは受信された多値画像は、ディスプレイ、プリン
タの表示・印字階調数nに対応して、N値誤差拡散法に
よりn値に量子化し、多値画像を表示・印字するので、
表示・印字階調能力を生かした最良の多値画像を得るこ
とができる。
A fifth solution is that the multi-value coded image or the received multi-value image corresponds to the display / print gradation number n of the display or printer by n-value by the N-value error diffusion method. Since it is quantized into and displays and prints a multi-valued image,
It is possible to obtain the best multi-valued image that makes full use of the display / print gradation capability.

【0028】[0028]

【実施例】以下、本発明の実施例を図面を用いて説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0029】[第1の実施例]図1は、本発明の第1の
実施例の構成を示すブロック図である。同図において、
1は多値画像データの入力端子、2は多値画像データを
取り込むための多値画像データの入力タイミングに同期
した同期信号入力端子、3は多値画像データを少なくと
も1ライン分記憶する多値画像ラインメモリ、4は多値
画像データより濃度の変化する変化点(変化画素)のラ
イン上の位置とその濃度レベルを検出する変化点検出
部、である。
[First Embodiment] FIG. 1 is a block diagram showing the configuration of the first embodiment of the present invention. In the figure,
1 is an input terminal for multi-valued image data, 2 is a sync signal input terminal synchronized with the input timing of multi-valued image data for capturing multi-valued image data, and 3 is a multi-valued one for storing at least one line of multi-valued image data The image line memory 4 is a change point detection unit that detects the position on the line of a change point (change pixel) where the density changes from the multivalued image data and the density level thereof.

【0030】5は符号化ラインの符号化する変化点a0,a
1,a2の位置と濃度レベルを記憶する符号化変化点メモリ
部、6は変化点検出部5で検出された符号化ラインの変
化点の情報を一時記憶する符号化ライン変化点メモリ、
7はすでに符号化された参照ラインの変化点の情報を記
憶する参照ライン変化点メモリ、8は変化点a0を基準に
して、参照ライン変化点メモリ7より参照ラインの参照
変化点b1,b2 を検出するb1b2検出部、9は参照変化点b
1,b2 の情報を記憶する参照変化点メモリ部、である。
Reference numeral 5 is a change point a0, a at which the coding line is coded.
A coded change point memory unit that stores the positions of 1 and a2 and a density level; 6 is a coded line change point memory that temporarily stores information about the change point of the coded line detected by the change point detection unit 5;
Reference numeral 7 is a reference line change point memory for storing information of already encoded change points of the reference line, and 8 is a reference line change point memory 7 for determining reference change points b1 and b2 of the reference line based on the change point a0. B1b2 detecting section for detecting, 9 is reference change point b
A reference change point memory unit that stores information of 1 and b2.

【0031】10は変化点a1とb2の位置関係よりパスモ
ードか否かを判別するパスモード判別部、11は垂直モ
ード符号化部、12から15は垂直モード符号化部11
を構成する要素で、12は変化点a1とb1の位置関係及び
距離を検出するa1b1距離検出部、13は変化点a1とb1の
濃度レベルの差を検出するa1b1レベル差検出部、14は
a1b1距離検出部12とa1b1レベル差検出部13の検出結
果をもとに垂直モードか否かを判別する垂直モード判別
部、15はa1b1距離検出部12とa1b1レベル差検出部1
3の検出結果をもとに、この2次元的変位に対応した符
号を出力する垂直モード符号テーブル、である。
Reference numeral 10 is a pass mode discriminating section for discriminating whether or not the mode is the pass mode based on the positional relationship between the change points a1 and b2, 11 is a vertical mode encoding section, and 12 to 15 are vertical mode encoding sections 11
12 is an a1b1 distance detection unit that detects the positional relationship between the change points a1 and b1 and the distance, 13 is an a1b1 level difference detection unit that detects the difference in density level between the change points a1 and b1, and 14 is
A vertical mode determination unit that determines whether or not the mode is the vertical mode based on the detection results of the a1b1 distance detection unit 12 and the a1b1 level difference detection unit 13, and 15 is a1b1 distance detection unit 12 and a1b1 level difference detection unit 1.
3 is a vertical mode code table for outputting a code corresponding to this two-dimensional displacement based on the detection result of No. 3.

【0032】16は水平モード符号化部、17から24
は水平モード符号化部16を構成する要素で、17は変
化点a0とa1の距離を検出するa0a1距離検出部、18は変
化点a0とa1の濃度レベル差を検出するa0a1レベル差検出
部、19は変化点a1とa2の距離を検出するa1a2距離検出
部、20は変化点a1とa2の濃度レベル差を検出するa1a2
レベル差検出部、21と22はセレクタ、23は2つの
変化点間の距離(ラン長に対応)に対応した符号を出力
するラン長符号テーブル、24は2つの変化点間の濃度
レベル差に対応した符号を出力するレベル差符号テーブ
ル、である。
Reference numeral 16 is a horizontal mode encoding unit, and 17 to 24.
Is an element that constitutes the horizontal mode encoding unit 16, 17 is an a0a1 distance detection unit that detects the distance between the change points a0 and a1, and 18 is an a0a1 level difference detection unit that detects the density level difference between the change points a0 and a1, Reference numeral 19 denotes an a1a2 distance detecting unit that detects the distance between the changing points a1 and a2, and 20 denotes a1a2 that detects the difference in density level between the changing points a1 and a2.
Level difference detectors, 21 and 22 are selectors, 23 is a run length code table that outputs a code corresponding to the distance (corresponding to the run length) between two change points, and 24 is a density level difference between two change points. It is a level difference code table which outputs a corresponding code.

【0033】25は2次元符号化データ列の先頭を示す
符号EOL0を出力するEOL0符号発生部、26はパスモード
を示す符号Pを出力するP符号発生部、27は水平モー
ドを示す符号Hを出力するH符号発生部、28は1次元
符号化データ列の先頭を示す符号EOL1を出力するEOL1符
号発生部、29はパスモード判別部10と垂直モード判
別部14の判別結果に対応して15、23、24、2
5、26および27より出力される各符号を選択的に取
り込み、所定の順に配列して出力する2次元符号合成
部、である。
Reference numeral 25 is an EOL0 code generator that outputs a code EOL0 indicating the beginning of a two-dimensional encoded data string, 26 is a P code generator that outputs a code P indicating a pass mode, and 27 is a code H indicating a horizontal mode. An H code generating section for outputting, 28 is an EOL1 code generating section for outputting a code EOL1 indicating the head of the one-dimensional encoded data sequence, and 29 is 15 corresponding to the discrimination results of the pass mode discriminating section 10 and the vertical mode discriminating section 14. , 23, 24, 2
A two-dimensional code synthesizing unit that selectively takes in the respective codes output from Nos. 5, 26 and 27, arranges them in a predetermined order, and outputs them.

【0034】30はラン長符号テーブル23とレベル差
符号テーブル24およびEOL1符号発生部28より出力さ
れる符号を取り込み、所定の順に配列して出力する1次
元符号合成部、31は2次元符号合成部29と1次元符
号合成部30の出力の一方を選択して出力するセレク
タ、32は本符号化装置の出力端子、33はセレクタ、
34は多値画像ラインメモリのアドレスを制御するアド
レス制御部、34は各部の動作を制御する制御部、36
は同期信号入力端子2の同期信号をもとに符号化したラ
イン数を計数するKラインカウンタ、37はKラインカ
ウンタの値をもとに、1次元か2次元かの符号化方法を
切り替える符号化切替部である。
Numeral 30 is a one-dimensional code synthesizing section for taking in the codes outputted from the run length code table 23, the level difference code table 24 and the EOL1 code generating section 28, arranging them in a predetermined order and outputting them, and 31 is a two-dimensional code synthesizing section. A selector that selects and outputs one of the outputs of the unit 29 and the one-dimensional code synthesis unit 30, 32 is an output terminal of the encoding device, 33 is a selector,
Reference numeral 34 is an address control unit that controls the address of the multi-valued image line memory, 34 is a control unit that controls the operation of each unit, and 36.
Is a K line counter that counts the number of lines coded based on the sync signal of the sync signal input terminal 2, and 37 is a code that switches between one-dimensional and two-dimensional coding methods based on the value of the K line counter. It is a switching unit.

【0035】次に、この第1の実施例の動作を図1を参
照して説明する。この実施例の符号化装置は、多値画像
データ入力端子1より供給されるライン単位の多値画像
データを、画素単位毎に端子2に供給される同期信号を
もとに、多値画像ラインメモリ3の所定のエリアに一時
記憶する。
Next, the operation of the first embodiment will be described with reference to FIG. The encoding apparatus of this embodiment uses multi-valued image data in line units supplied from the multi-valued image data input terminal 1 on the basis of a synchronization signal supplied to the terminal 2 for each pixel unit. It is temporarily stored in a predetermined area of the memory 3.

【0036】ライン上の先頭画素からの位置iにおける
画素の濃度レベルをN(i)とすると、アドレス制御部
34はラインの先頭でアドレス値を0にし、1画素取り
込むごとに1インクリメントして、ライン上の画素の配
列順に対応して記憶すべきエリアのアドレス値を発生
し、多値画像ラインメモリ3に1ライン分の各画素の濃
度レベルを記憶する。
Assuming that the density level of the pixel at the position i from the head pixel on the line is N (i), the address control unit 34 sets the address value to 0 at the head of the line and increments by 1 each time one pixel is fetched. Address values of areas to be stored are generated corresponding to the arrangement order of pixels on a line, and the density level of each pixel for one line is stored in the multi-valued image line memory 3.

【0037】本実施例の符号化装置は、この多値画像ラ
インメモリ3に記憶された1ライン分の多値画像データ
を符号化ラインとして後述の符号化方法で符号化し、符
号化が完了すると、入力端子1より新たな符号化すべき
ラインの多値画像データを取り込む。
The encoding apparatus of this embodiment encodes the multi-valued image data for one line stored in the multi-valued image line memory 3 as an encoding line by the encoding method described later, and when the encoding is completed. , Input multi-valued image data of a new line to be encoded from the input terminal 1.

【0038】kラインカウンタ36はこの入力ライン数
を計数し、符号化法切替部37によって先頭ラインを含
めkライン毎に符号化方法を切り替える。つまり、先頭
のラインを1次元符号化し、後続の(k−1)ラインを
2次元符号化し、再び次のラインを1次元符号化すると
いうように、kライン毎に1次元符号化処理を行う。
The k-line counter 36 counts the number of input lines, and the coding-method switching unit 37 switches the coding method for each k-line including the leading line. That is, the first line is one-dimensionally encoded, the subsequent (k-1) line is two-dimensionally encoded, and the next line is one-dimensionally encoded again, so that the one-dimensional encoding process is performed every k lines. .

【0039】1次元符号化結果は1次元符号合成部30
よりセレクタ31を介して出力端子32に出力される。
2次元符号化結果は2次元符号合成部29よりセレクタ
31を介して出力端子32に出力される。1ページ分の
ラインの符号化が完了すると、1次元符号合成部30は
EOL1符号発生部28よりEOL1符号を取り込み、この符号
の6連続符号(ページの終了を示すRTC符号)をセレ
クタ31を介して出力端子32に出力する。
The one-dimensional coding result is the one-dimensional code synthesizing unit 30.
Is output to the output terminal 32 via the selector 31.
The two-dimensional coding result is output from the two-dimensional code synthesizing unit 29 to the output terminal 32 via the selector 31. When the coding of the line for one page is completed, the one-dimensional code synthesizing unit 30
The EOL1 code is fetched from the EOL1 code generation unit 28, and 6 consecutive codes (RTC code indicating the end of the page) of this code are output to the output terminal 32 via the selector 31.

【0040】(1次元符号化動作)まず、1次元符号化
の動作について説明する。変化点検出部4は多値画像ラ
インメモリ3からラインの先頭画素より読み出し、濃度
レベルの変化する画素を変化点として検出し、その変化
点の位置i(アドレス制御部34より供給されるアドレ
ス値)と濃度レベルN(i)を符号化変化点メモリ部5
に供給する。例えば、画素位置(i−1)とiの画素の
濃度レベルN(i−1)とN(i)が異なる場合、画素
位置iの画素を変化点として検出する。
(One-dimensional encoding operation) First, the one-dimensional encoding operation will be described. The change point detection unit 4 reads from the head pixel of the line from the multi-valued image line memory 3, detects a pixel whose density level changes as a change point, and detects the position i of the change point (the address value supplied from the address control unit 34). ) And the density level N (i) are encoded.
Supply to. For example, when the density levels N (i-1) and N (i) of the pixel position (i-1) and the pixel of i are different, the pixel of the pixel position i is detected as the change point.

【0041】ただし、変化点検出部4はラインの先頭画
素の直前に白(最小濃度レベル)画素が仮想的に存在す
るものとして、上記変化点を検出する。また、ラインの
最後の画素の直後に白(最小濃度レベル)画素が存在す
るものとして、この仮想画素はラインの最後の画素の濃
度レベルに依存せず、仮想変化画素(仮想変化点)とし
て検出する。
However, the change point detection unit 4 detects the change point on the assumption that a white (minimum density level) pixel is virtually present immediately before the head pixel of the line. Also, assuming that a white (minimum density level) pixel exists immediately after the last pixel of the line, this virtual pixel is detected as a virtual change pixel (virtual change point) without depending on the density level of the last pixel of the line. To do.

【0042】図2に変化点検出部4の変化点検出の様子
を示す。この図では、説明の便宜上、1ラインの画素数
を14画素としている。各小枠は1つの画素を示し、枠
内の数値はその画素の濃度レベルを示している。0は白
を意味し、濃度レベルの数値が大きくなるほど黒いこと
を意味する。枠上部の数値は各画素の位置を示し、sは
ラインの先頭画素の直前に設けた仮想白画素、eはライ
ンの最後の画素の直後に設けた仮想変化画素(点)であ
る。
FIG. 2 shows how the change point detection section 4 detects a change point. In this figure, the number of pixels in one line is 14 for convenience of explanation. Each small frame shows one pixel, and the numerical value in the frame shows the density level of that pixel. 0 means white, and the larger the value of the density level, the darker it is. The numerical value at the top of the frame indicates the position of each pixel, s is a virtual white pixel provided immediately before the first pixel of the line, and e is a virtual change pixel (point) provided immediately after the last pixel of the line.

【0043】図2の(1)の場合は、矢印で示したよう
に画素位置3、4、5、8、9及び仮想変化画素eが変
化点として検出される。図2の(2)の場合は、画素位
置0、3、9及び仮想変化画素eが変化点として検出さ
れる。
In the case of (1) in FIG. 2, the pixel positions 3, 4, 5, 8, 9 and the virtual change pixel e are detected as change points as indicated by the arrows. In the case of (2) in FIG. 2, pixel positions 0, 3, 9 and the virtual change pixel e are detected as change points.

【0044】変化点検出部4で検出された変化点を各ラ
インの先頭より cj, j=1,2,,N (但し、N は検出変化点の数) とすると、各変化点cjの位置Pj と濃度レベルN(Pj
)の情報がペアになって順に符号化変化点メモリ部5
に供給される。
If the change points detected by the change point detection unit 4 are cj, j = 1,2, N from the beginning of each line (where N is the number of detected change points), the position of each change point cj Pj and concentration level N (Pj
) Information becomes a pair and the encoding change point memory unit 5 is arranged in order.
Is supplied to.

【0045】以後、変化点cjを cj= (Pj,N(Pj )) と表現する。Hereinafter, the change point cj is expressed as cj = (Pj, N (Pj)).

【0046】符号化変化点メモリ部5は、符号化変化点
a0メモリ、a1メモリおよびa2メモリで構成され、a0,a1,
a2メモリの順で記憶する変化点のアドレス値(位置Pj
)が大きくなるような関係で、入力される変化点情報
を記憶する。つまり、変化点a0メモリの変化点がcjの場
合、変化点a1メモリには変化点cj+1が、変化点a2メモリ
には変化点cj+2が記憶される。
The encoding change point memory unit 5 is provided with an encoding change point.
It consists of a0 memory, a1 memory and a2 memory.
Address value of change point (position Pj stored in the order of a2 memory)
), The input change point information is stored. That is, when the change point of the change point a0 memory is cj, the change point cj + 1 is stored in the change point a1 memory, and the change point cj + 2 is stored in the change point a2 memory.

【0047】1次元符号化の場合は、変化点a0メモリと
変化点a1メモリが使用され、上記の変化点の位置関係
で、入力の変化点情報が2つのメモリに記憶される。な
を、ラインの最初の変化点c1の情報は、a1メモリに記憶
され、a0メモリはラインの先頭画素の直前の位置しラン
長0で濃度レヘ゛ル 0(白)とした仮想白画素を仮想変化
点とするために初期化される。つまり、位置P0 =0
(ライン先頭画素と同じ位置)、濃度レヘ゛ル N(P0 )
=0(白)の様に、初期化される。
In the case of one-dimensional encoding, a change point a0 memory and a change point a1 memory are used, and input change point information is stored in two memories according to the positional relationship of the change points described above. However, the information of the first change point c1 of the line is stored in the a1 memory, and the a0 memory is located immediately before the first pixel of the line, and the virtual white pixel with the run length of 0 and the density level of 0 (white) is virtually changed. Initialized to be a point. That is, position P0 = 0
(Same position as the line top pixel), Density level N (P0)
It is initialized as = 0 (white).

【0048】よって、a0メモリには変化点cjが、a1メモ
リには変化点cj+1(j=0,1,2,,N:Nは検出変化点の数、た
だしc0は上記仮想変化点)が、変化点が入力される毎に
記憶される。この様子を図3に示している。図中の符号
化変化点メモリ部5への入力変化点c1,c2,,,c6は、図2
の(1)で示した符号化ラインに於いて検出した変化点
c1,c2,,,c6である。
Therefore, the change point cj is in the a0 memory, and the change point cj + 1 (j = 0,1,2, N: N is the number of detected change points in the a1 memory, where c0 is the virtual change point. ) Is stored each time a change point is input. This state is shown in FIG. The input change points c1, c2, ..., C6 to the encoding change point memory unit 5 in FIG.
Change point detected in the coding line shown in (1) of
c1, c2, ..., c6.

【0049】水平モード符号化部16は1次元符号化時
の場合は、符号化変化点メモリ部5のa0メモリおよびa1
メモリより出力される検出順的に隣接する変化点情報を
もとに、順次、水平モードの符号化をする。a0メモリ出
力の変化点をcj,a1 メモリ出力の変化点をcj+1とし cj = {Pj, N( Pj)} cj+1= {Pj+1,N( Pj+1)} ただし、{a,N(a)}の a はライン上の位置を示し、N
(a)はライン上位置aの画素の濃度レベル値を示す。
In the case of one-dimensional coding, the horizontal mode coding section 16 uses the a0 memory and a1 of the coding change point memory section 5.
The horizontal mode is sequentially encoded based on the change point information that is output from the memory and is adjacent in the detection order. a0 memory output change point is cj, a1 memory output change point is cj + 1 cj = {Pj, N (Pj)} cj + 1 = {Pj + 1, N (Pj + 1)} where {a , N (a)} a indicates the position on the line, and N
(a) shows the density level value of the pixel at the position a on the line.

【0050】Pj<Pj+1 とすると、a0a1距離検出部17は(Pj+1 −Pj )の演
算を行い、変化点cjからcj+1までの距離Δaj を検出す
る。 Δaj =Pj+1 −Pj つまり、変化点cjから変化点cj+1の直前の画素まで連続
する同一濃度レベルの画素列のラン長Δaj を検出す
る。
When Pj <Pj + 1, the a0a1 distance detector 17 calculates (Pj + 1-Pj) and detects the distance Δaj from the change point cj to cj + 1. .DELTA.aj = Pj + 1-Pj That is, the run length .DELTA.aj of the pixel row of the same density level that continues from the change point cj to the pixel immediately before the change point cj + 1 is detected.

【0051】a0a1レベル差検出部18は、N( Pj+1)−
N( Pj)の演算を行い、変化点cjと変化点cj+1の画素の
濃度レベル差Δnj を検出する。 Δnj =N( Pj+1)−N( Pj) 多値画像データの濃度レベル値を最小0(白)から最大
n(黒)とすれば、濃度レベル差は−nからnの値を取
り得る。
The a0a1 level difference detection unit 18 uses N (Pj + 1)-
N (Pj) is calculated to detect the density level difference Δnj between the pixels at the change point cj and the change point cj + 1. Δnj = N (Pj + 1) -N (Pj) If the density level value of the multi-valued image data is changed from the minimum 0 (white) to the maximum n (black), the density level difference can take values from -n to n. .

【0052】図4は、1次元符号化時の水平モード符号
化部16(図1)の変化点間のラン長と濃度レベル差の
検出の動作および1次元符号化コード列を示す説明図で
ある。図4の(1),(2)のそれぞれの(b) に、図1
のa0a1距離検出部17による変化点間のラン長と、a0a1
レベル差検出部18による変化点間の濃度レベル差の検
出結果の様子を示す。なを、変化点列は、図2で示した
符号化ラインにおいて検出した変化点列である。
FIG. 4 is an explanatory diagram showing the operation of detecting the run length and the density level difference between the change points of the horizontal mode encoding unit 16 (FIG. 1) during the one-dimensional encoding and the one-dimensional encoded code string. is there. In (b) of (1) and (2) of FIG.
Of the run length between the change points by the a0a1 distance detection unit 17 of
The state of the detection result of the density level difference between the change points by the level difference detection unit 18 is shown. The change point sequence is the change point sequence detected in the coding line shown in FIG.

【0053】a0a1距離検出部17で検出された変化点間
のラン長Δa0 は、順次、セレクタ21を介してラン長
符号化テーブル23に供給され、ラン長Δa0 に対応し
た符号R(Δa0 )に変換される。符号R(Δa0 )
は、ファクシミリで用いられるMH(モテ゛ィファイト゛・ハフマン)
符号などの様に、発生頻度の高いラン長に対して短い符
号語を割り当てた符号によって構成する。MH符号の様
にメイクアップ符号とターミネイト符号とで構成しても
良い。
The run length Δa0 between the change points detected by the a0a1 distance detector 17 is sequentially supplied to the run length coding table 23 via the selector 21 and converted into a code R (Δa0) corresponding to the run length Δa0. To be converted. Code R (Δa0)
Is the MH (Modified Huffman) used in facsimiles
Like a code, it is configured by a code in which a short code word is assigned to a run length that frequently occurs. You may comprise with a makeup code and a termination code like MH code.

【0054】a0a1レベル差検出部18で検出された変化
点間の濃度レベル差Δn0 は、順次、セレクタ22を介
してレベル差符号化テーブル24に供給され、レベル差
Δn0 に対応した符号L(Δn0 )に変換される。符号
L(Δn0 )も上記と同様に、発生頻度の高いレベル差
に対して短い符号を割り当てた符号によって構成する。
The density level difference Δn0 between the change points detected by the a0a1 level difference detecting section 18 is sequentially supplied to the level difference encoding table 24 via the selector 22, and the code L (Δn0 corresponding to the level difference Δn0 is supplied. ) Is converted to. Similarly to the above, the code L (Δn0) is also configured by a code in which a short code is assigned to a level difference having a high occurrence frequency.

【0055】つまり、1次元符号化は、変化点を、隣接
する変化点間のラン長Δa0 と濃度レベル差Δn0 にそ
れぞれ対応する符号R(Δa0 )と符号L(Δn0 )の
両者で、R(Δa0 )+L(Δn0 )の如く符号化す
る。
In other words, in the one-dimensional encoding, the change point is represented by R (Δa0) and L (Δn0) corresponding to the run length Δa0 and the density level difference Δn0 between the adjacent change points, respectively. It is encoded as Δa0) + L (Δn0).

【0056】ラン長符号テーブル23の出力符号R(Δ
a0 )とレベル差符号テーブル24の出力符号L(Δn
0 )は、1次元符号合成部30に供給される。1次元符
号合成部30は、1次元符号化ラインの先頭にてEOL1符
号発生部28からの符号EOL1を取り込み、以後順次供給
される符号R(Δa0 )とL(Δn0 )を取り込み、所
定の配列にして出力する。
The output code R (Δ
a0) and the output code L (Δn of the level difference code table 24
0) is supplied to the one-dimensional code synthesis unit 30. The one-dimensional code synthesizing unit 30 takes in the code EOL1 from the EOL1 code generating unit 28 at the head of the one-dimensional coded line, takes in the codes R (Δa0) and L (Δn0) that are sequentially supplied thereafter, and arranges them in a predetermined array. And output.

【0057】図4の(c) に、1次元符号化合成部30よ
り出力される1次元符号化列の例を示す。図4の(d)
に、ラン長符号語を、図10の(2)に示すように、M
H符号の黒ランレングス符号語、レベル差符号語を、図
10の(1)に示す符号語とした場合の符号化データ列
を示す。また、図4の(b) に示した様に、1ラインの符
号R(Δa0 )によるラン長の総和は1ラインの画素数
に対応し、1ラインの符号L(Δn0 )の総和は最小濃
度レベルの0(白)になる。
FIG. 4C shows an example of the one-dimensional coded sequence output from the one-dimensional coded synthesis section 30. Figure 4 (d)
To the run length codeword as shown in (2) of FIG.
10 shows an encoded data string when the black run length code word and the level difference code word of the H code are the code words shown in (1) of FIG. Further, as shown in FIG. 4B, the sum of run lengths by the code R (Δa0) of one line corresponds to the number of pixels of one line, and the sum of the code L (Δn0) of one line is the minimum density. The level becomes 0 (white).

【0058】これは、1ラインを復号化した時、両者を
チェックすることにより伝送時、あるいは記憶再生時の
誤りを検出するためである。1次元符号合成部30より
出力される1次元符号列は、セレクタ31を介して本符
号化装置の出力端子である32より出力され、伝送ある
いは記憶装置などに記憶される。セレクタ31は、前述
の符号化法切替部37によって、1次元符号化時には1
次元符号合成部30からの符号列が選択されるように制
御される。
This is to detect an error during transmission or during storage / reproduction by checking both when decoding one line. The one-dimensional code string output from the one-dimensional code synthesizing unit 30 is output from the output terminal 32 of the present encoding device via the selector 31, and is stored in a transmission device or a storage device. The selector 31 is set to 1 when one-dimensionally encoded by the encoding method switching unit 37 described above.
It is controlled so that the code string from the dimensional code synthesis unit 30 is selected.

【0059】また、セレクタ21、22は、符号化切替
部37と制御部35によって制御される(制御線は図示
していない)。1次元符号化時には、セレクタ21はa0
a1距離検出部17の出力を選択するように、セレクタ2
2はa1a2距離検出部19の出力を選択するように制御さ
れる。
The selectors 21 and 22 are controlled by the encoding switching section 37 and the control section 35 (control lines are not shown). At the time of one-dimensional encoding, the selector 21 uses a0
Select the output of the a1 distance detector 17 so that the selector 2
2 is controlled to select the output of the a1a2 distance detector 19.

【0060】(2次元符号化動作)上記の様に1次元符
号化が行われると、次の連続する(k−1)個のライン
は2次元符号化が行われる。2次元符号化に先だって、
符号化されたライン(1次元符号化ラインも含めて)の
変化点情報(各変化点の位置iとその画素の濃度レベル
N(i))は符号化ライン変化点メモリ6を介して、次
ラインの符号化に際し、参照ライン変化点メモリ7に供
給され記憶される。つまり、参照ライン変化点メモリ7
には、符号化すべきラインの直前に符号化された参照ラ
インの変化点の情報が記憶される。
(Two-dimensional encoding operation) When the one-dimensional encoding is performed as described above, the next consecutive (k-1) lines are two-dimensional encoded. Before two-dimensional encoding,
The change point information (the position i of each change point and the density level N (i) of the pixel) of the coded line (including the one-dimensional coded line) is transferred to the next line via the coded line change point memory 6. Upon encoding the line, it is supplied to and stored in the reference line change point memory 7. That is, the reference line change point memory 7
Stores information about the change point of the reference line encoded immediately before the line to be encoded.

【0061】図5に、図2の(1)に示した符号化ライ
ンに於いて検出した変化点の、参照ライン変化点メモリ
7に於ける記憶の様子を示す。図中のAj はラインの先
頭より検出したj 番目の変化点情報を記憶するメモリの
アドレス値を示す。このアドレス値は変化点毎に所定値
増加させて次の変化点情報を対応するエリアに記憶す
る。
FIG. 5 shows how the change point detected in the coded line shown in (1) of FIG. 2 is stored in the reference line change point memory 7. Aj in the figure indicates the address value of the memory that stores the jth change point information detected from the beginning of the line. This address value is increased by a predetermined value for each change point, and the next change point information is stored in the corresponding area.

【0062】また、EOF (エンド・オブ・ファイル)は
参照ライン変化点情報の終了を示すコードである。よっ
て、b1b2検出手段8は、先頭アドレス値A1 より所定値
毎にアドレス値を増加させることによって、対応する変
化点の情報(位置と濃度レベル)を読み出す。また、読
み出した情報がEOF コードであれば、以後その参照ライ
ンには変化点が存在しないことを検知する。
EOF (End of File) is a code indicating the end of the reference line change point information. Therefore, the b1b2 detecting means 8 reads the information (position and density level) of the corresponding change point by increasing the address value from the head address value A1 at every predetermined value. If the read information is the EOF code, it is detected that there is no change point on the reference line thereafter.

【0063】これらのアドレス制御は図示しない参照ラ
イン変化点メモリ・アドレス制御部によって制御され
る。符号化ライン変化点メモリ6も同様な形式で検出し
た符号化ラインの変化点情報を記憶する。
These address controls are controlled by a reference line change point memory / address controller (not shown). The coding line change point memory 6 also stores the change point information of the detected coding line in a similar format.

【0064】2次元符号化は、多値画像ラインメモリ3
の新たな符号化ラインを、参照ライン変化点メモリ7に
記憶されている変化点情報をもとに符号化する。まず、
2次元符号化の原理を説明する。2次元符号化の場合
は、符号化ライン上の変化点である符号化変化点a0,a1,
a2および参照ライン上の変化点である参照変化点b,b2を
次のように定義する。
The two-dimensional encoding is performed by the multivalued image line memory 3
The new coded line is encoded based on the change point information stored in the reference line change point memory 7. First,
The principle of two-dimensional encoding will be described. In the case of two-dimensional coding, the coding change points a0, a1, which are the change points on the coding line.
The a2 and the reference change points b and b2 which are the change points on the reference line are defined as follows.

【0065】(用語の定義) 変化点・・・ ライン上で画素の濃度レベルが直前の画素の
濃度レベルと異なる画素。 符号化変化点a0・・・ 符号化ライン上の変化点で、他の変
化点を定義する点。ラインの先頭に於いては、ライン先
頭画素の直前に配置した仮想画素。その後のa0の位置は
直前の符号化モード(後述する)により定義される。
(Definition of terms) Change point: A pixel in which the density level of the pixel on the line is different from the density level of the immediately preceding pixel. Encoding change point a0 ... A change point on the encoding line that defines another change point. At the beginning of the line, a virtual pixel placed immediately before the beginning pixel of the line. The subsequent position of a0 is defined by the immediately preceding coding mode (described later).

【0066】 符号化変化点a1・・・ 符号化ライン上の変化点で前記a0よ
り右の最初の変化点。 符号化変化点a2・・・ 符号化ライン上の変化点で前記a1よ
り右の最初の変化点。 参照変化点b1・・・ 参照ライン上で前記a0より右にありa0
と濃度レベルの異なる画素で、存在する場合はその最初
の変化点、存在しない場合は参照ライン上の最後の画素
の直後の仮想変化点。 参照変化点b2・・・ 参照ライン上で前記b1より右にある変
化点で、存在する場合はその最初の変化点、存在しない
場合は参照ライン上の最後の画素の直後の仮想変化点。
Encoding change point a1 ... The first change point on the encoding line to the right of a0. Coding change point a2 ... The first change point on the coding line to the right of the a1. Reference change point b1 ・ ・ ・ A0 on the reference line to the right of the a0
And a pixel with a different density level, if there is one, its first change point, and if it does not exist, the virtual change point immediately after the last pixel on the reference line. Reference change point b2 ... A change point on the reference line to the right of the b1. If it exists, the first change point thereof, and if it does not exist, a virtual change point immediately after the last pixel on the reference line.

【0067】上記に対応する変化点情報を、多値画像ラ
インメモリ3の符号化ラインの画素列より、変化点検出
部4によって、符号化変化点a0,a1,a2を検出し、参照ラ
イン変化点メモリ7に記憶されている参照ラインの変化
点情報より、b1b2検出部8によって、参照変化点b,b2を
検出し、符号化変化点メモリ部5および参照変化点メモ
リ部9の対応するメモリに記憶する。これらの参照変化
点との位置および濃度レベル差に応じて符号化変化点を
次の手順によって符号化して行く。
The change point information corresponding to the above is detected by the change point detection unit 4 from the pixel line of the encoded line of the multi-valued image line memory 3 to detect the coded change points a0, a1 and a2, and the reference line change The reference change points b and b2 are detected by the b1b2 detection unit 8 from the change point information of the reference line stored in the point memory 7, and the corresponding memories of the encoding change point memory unit 5 and the reference change point memory unit 9 are detected. Remember. The coding change points are coded by the following procedure in accordance with the position and the density level difference from these reference change points.

【0068】(手順A)a1の左側にb2が存在する場合は
パスモード符号化を行い、a0をb2の直下の符号化ライン
上の画素位置に移行させる。なを、a1の直上にb2が存在
する場合は、パスモード符号化を行わないで手順Bに移
行する。
(Procedure A) If b2 exists on the left side of a1, pass mode coding is performed, and a0 is moved to the pixel position on the coding line immediately below b2. However, if b2 exists immediately above a1, the procedure goes to step B without performing the pass mode coding.

【0069】(手順B)a1の左側にb2が存在しない場合
は、a1とb1の距離Δa と、a1とb1の濃度レベル差Δn
を、 Δa =Pa1−Pb1 Δn =N(Pa1)−N(Pb1) によって検出し、位置の差Δaと濃度レベル差Δnの2
次元的変位(Δa, Δn)が所定の範囲内にある場合、
垂直モード符号化を行って a0 をa1の位置に移行させ
る。2次元的変位(Δa, Δn)が所定の範囲内にない
場合、水平モード符号化を行ってa0をa2の位置に移行さ
せる。
(Procedure B) When b2 does not exist on the left side of a1, the distance Δa between a1 and b1 and the concentration level difference Δn between a1 and b1.
Is detected by Δa = Pa1−Pb1 Δn = N (Pa1) −N (Pb1), and 2 of the position difference Δa and the concentration level difference Δn is detected.
If the dimensional displacement (Δa, Δn) is within the specified range,
Performs vertical mode encoding and shifts a0 to position a1. When the two-dimensional displacement (Δa, Δn) is not within the predetermined range, horizontal mode coding is performed to shift a0 to the position of a2.

【0070】(始端画素・終端画素の処理)は次のよう
にする。各符号化ラインの最初のa0は、仮想的に最初の
画素の直前に置き、白画素(最小濃度レベル)とする。
また、各符号化ラインの符号化は、最後の実在の画素の
直後に位置する仮想変化画素(最小濃度レベル)の位置
が符号化されるまで続ける。
(Processing of start pixel and end pixel) is performed as follows. The first a0 of each encoded line is virtually placed immediately before the first pixel and is set as a white pixel (minimum density level).
Further, the coding of each coding line is continued until the position of the virtual change pixel (minimum density level) located immediately after the last existing pixel is coded.

【0071】パスモード符号化は、パスモードを示す符
号P を出力するのみで変化点の符号化はしない。即ち、
パスモード符号語:P 垂直モード符号化は、符号化変化点a1と参照変化点b1の
距離Δa と、濃度レベル差Δn の2次元的変位(Δa,Δ
n )に対応した符号V(Δa,Δn )で符号化変化点a1を
符号化する。即ち、垂直モード符号語:V(Δa,Δn)
The pass mode encoding outputs only the code P indicating the pass mode, and does not encode the change point. That is,
Pass mode code word: P Vertical mode coding is performed by the distance Δa between the coding change point a1 and the reference change point b1 and the two-dimensional displacement (Δa, Δ) of the density level difference Δn.
The coding change point a1 is coded with the code V (Δa, Δn) corresponding to (n). That is, vertical mode code word: V (Δa, Δn)

【0072】水平モード符号化は、水平モード符号化を
示す符号H と、符号化変化点a0からa1までのラン長Δa
0 を示す符号R(Δa0 )と、a0とa1の濃度レベル差Δ
n0を示す符号L(Δn0 )と、符号変化点a1からa2ま
でのラン長Δa1 を示す符号R(Δa1 )と、a1とa2の
濃度レベル差Δn1 を示す符号L(Δn1 )とで、符号
化変化点a1,a2 を符号化する。即ち、水平モード符号
語:H+R(Δa0)+L(Δn0)+R(Δa1)+L(Δn1)
The horizontal mode coding is performed by the code H indicating the horizontal mode coding and the run length Δa from the coding change points a0 to a1.
The sign R (Δa0) indicating 0 and the density level difference Δ between a0 and a1
The code L (Δn0) indicating n0, the code R (Δa1) indicating the run length Δa1 from the code change points a1 to a2, and the code L (Δn1) indicating the density level difference Δn1 between a1 and a2 are encoded. The change points a1 and a2 are encoded. That is, horizontal mode code word: H + R (Δa0) + L (Δn0) + R (Δa1) + L (Δn1)

【0073】図6に、本符号化装置の符号化手順のフロ
ー、特に2次元符号化手順のフローを示している。図6
に於いては、符号化変化点a2を垂直モードの判定が否定
的な場合に検出するようにしているが、a1検出時に、引
き続きa2を予め検出するようにしてもよい。
FIG. 6 shows the flow of the coding procedure of the present coding apparatus, particularly the flow of the two-dimensional coding procedure. Figure 6
In the above, the encoding change point a2 is detected when the vertical mode determination is negative, but a2 may be detected in advance when a1 is detected.

【0074】上記の2次元符号化を具体例を用いて、そ
の動作を説明する。すでに符号化された参照ラインの画
素列と、新たに符号化する符号化ラインの画素列を、図
7の(1-2) と(2) のような画素列とすると、2次元符号
化は、すでに検出され参照ライン変化点メモリ7に記憶
されている参照ライン変化点情報をもとに、符号化ライ
ンを次の様にして符号化する。
The operation of the above two-dimensional encoding will be described using a specific example. If the pixel row of the already encoded reference line and the pixel row of the encoding line to be newly encoded are pixel rows as shown in (1-2) and (2) of FIG. Based on the reference line change point information already detected and stored in the reference line change point memory 7, the coding line is coded as follows.

【0075】なを、図7の(1-2) の参照ラインの画素列
は、図2の(1) 、図4の(1) と同じで、参照ライン変化
点メモリには、図5および図7の(1-1) に示す変化点情
報が記憶されている。
The pixel line of the reference line of (1-2) of FIG. 7 is the same as (1) of FIG. 2 and (1) of FIG. The change point information shown in (1-1) of FIG. 7 is stored.

【0076】変化点検出部4は、1次元符号化で説明し
た様に、濃度レベルの変化する画素を変化点として検出
する。図7の符号化ラインの場合は、まず最初に画素位
置3の画素が変化点として検出される。その次には画素
位置4の画素が変化点として検出される。
As described in the one-dimensional encoding, the changing point detecting section 4 detects a pixel whose density level changes as a changing point. In the case of the coded line of FIG. 7, the pixel at pixel position 3 is first detected as the change point. Next, the pixel at the pixel position 4 is detected as the change point.

【0077】この2つの変化点が、符号化変化点メモリ
部5に供給されると、符号化変化点メモリ部5は、最初
の変化点情報をa1メモリに、次の変化点情報をa2メモリ
に記憶する。また、ラインの先頭に於いては、2次元符
号化の場合、a0メモリは、ラインの先頭の直前に仮想的
に設けた最小濃度レベル(白)の仮想画素の位置および
濃度レベルとなるように初期化される。
When these two change points are supplied to the encoding change point memory unit 5, the encoding change point memory unit 5 stores the first change point information in the a1 memory and the next change point information in the a2 memory. Remember. Also, at the beginning of the line, in the case of two-dimensional encoding, the a0 memory is set to the position and the density level of the virtual pixel of the minimum density level (white) virtually provided immediately before the beginning of the line. It is initialized.

【0078】つまり、ラインの先頭においては、符号化
変化点メモリ部5のa0メモリはラインの先頭画素の直前
に配置した仮想画素の情報が、a1メモリには第1(最初
に検出した)の変化点情報、a2メモリには第2(次に検
出した)の変化点情報が記憶される。
That is, at the head of the line, the information of the virtual pixel arranged immediately before the head pixel of the line is stored in the a0 memory of the coding change point memory unit 5, and the first (first detected) information is stored in the a1 memory. Change point information, the second (the next detected) change point information is stored in the a2 memory.

【0079】b1b2検出部8は、このa0メモリの変化点の
位置情報をもとに、この変化点より右(アドレス的に大
きい)にある参照ライン上の最初の変化点b1(参照変化
点b1)とその右にある変化点b2(参照変化点b2)を参照
ライン変化点メモリ7より検出し、参照変化点メモリ部
9に供給する。この場合、a0メモリの変化点の位置がs=
-1なので、 bi= (Pj , N(Pj ) とすると、参照
変化点b1=(3,2)、参照変化点b2=(4,3)が検出され、b1は
参照変化点メモリ部9のb1メモリに、b2は参照変化点メ
モリ部9のb2メモリに記憶される。
Based on the position information of the changing point of the a0 memory, the b1b2 detecting section 8 determines the first changing point b1 (reference changing point b1) on the reference line on the right side (larger in address) than the changing point. ) And a change point b2 (reference change point b2) on the right side of the line) are detected from the reference line change point memory 7 and supplied to the reference change point memory unit 9. In this case, the change point position of a0 memory is s =
Therefore, if bi = (Pj, N (Pj), the reference change point b1 = (3,2) and the reference change point b2 = (4,3) are detected, and b1 is stored in the reference change point memory unit 9. The b1 memory and the b2 memory are stored in the b2 memory of the reference change point memory unit 9, respectively.

【0080】この時の符号化変化点メモリ部5のa0,a1,
a2メモリと、参照変化点メモリ部9のb1,b2 メモリの各
符号化変化点a0,a1,a2と、参照変化点b1,b2 の画素位置
の関係を図7の(3)の1)に示す。1)の場合は
A0, a1, of the encoding change point memory unit 5 at this time
The relationship between the pixel positions of the a2 memory and the coding change points a0, a1, a2 of the b1 and b2 memories of the reference change point memory unit 9 and the reference change points b1 and b2 is shown in 1) of (3) of FIG. Show. In case of 1)

【0081】 a0=(0,0) a1=(3,1) b1=(3,2) a2=(4,2) b2=(4,3) となる。A0 = (0,0) a1 = (3,1) b1 = (3,2) a2 = (4,2) b2 = (4,3).

【0082】パスモード判別部10は、符号化変化点メ
モリ部5のa1メモリの符号化変化点a1と、参照変化点メ
モリ9のb2メモリの参照変化点b2の位置関係より、パス
モードか否かを判別する。つまり、参照変化点b2が符号
化変化点a1の位置の左側(アドレス的に小さい)にある
か否かを検出する。図7の(3)の1)の場合は、b2はa1
の右側にあるのでパスモードには該当しない。このパス
モード判別部10の否定的判別結果は2次元符号合成部
29に供給される。
The pass mode discriminating unit 10 determines whether or not the pass mode is determined from the positional relationship between the encoding change point a1 of the a1 memory of the encoding change point memory unit 5 and the reference change point b2 of the b2 memory of the reference change point memory 9. Determine whether. That is, it is detected whether or not the reference change point b2 is on the left side (smaller in address) of the position of the coding change point a1. In the case of 1) in (3) of FIG. 7, b2 is a1.
It does not correspond to the pass mode because it is on the right side of. The negative determination result of the pass mode determination unit 10 is supplied to the two-dimensional code synthesis unit 29.

【0083】垂直モード符号化部11は、符号化変化点
a1と参照変化点b1の情報をもとに垂直モードか否かを判
別後、垂直モードに該当する場合、符号化変化点a1を垂
直モード符号で符号化する。a1の位置をPa1, 濃度レベ
ルをN(Pa1)、b1の位置をPb1, 濃度レベルをN(P
b1)とし、 符号化変化点a1= (Pa1,N(Pa1)) 参照変化点 b1= (Pb1,N(Pb1)) すると、
The vertical mode coding unit 11 determines the coding change point.
After determining whether or not the mode is the vertical mode based on the information of a1 and the reference change point b1, the coding change point a1 is encoded by the vertical mode code when the vertical mode is applicable. The position of a1 is Pa1, the density level is N (Pa1), the position of b1 is Pb1, the density level is N (P1).
b1) and the encoding change point a1 = (Pa1, N (Pa1)) and the reference change point b1 = (Pb1, N (Pb1)),

【0084】a1b1距離検出部12は、a1とb1の位置的距
離(方向を含む)Δa として、Δa=Pa1−Pb1 を検
出する。a1b1レベル差検出部13は、a1とb1の濃度レベ
ル差Δn として、Δn =N(Pa1)−N(Pb1) を検
出する。
The a1b1 distance detector 12 detects Δa = Pa1−Pb1 as the positional distance (including direction) Δa between a1 and b1. The a1b1 level difference detection unit 13 detects Δn = N (Pa1) −N (Pb1) as the density level difference Δn between a1 and b1.

【0085】図7の(3)の1)の場合は、a1=(3,1),b1=
(3,2) なので、 距離Δa =3-3=0 レベル差Δn =1-2=-1 2次元的変位(Δa,Δn )=(0,-1) となる。
In the case of 1) in (3) of FIG. 7, a1 = (3,1), b1 =
Since it is (3,2), the distance Δa = 3-3 = 0 level difference Δn = 1-2 = -1 two-dimensional displacement (Δa, Δn) = (0, -1).

【0086】垂直モード判別部14は、a1b1距離検出部
12の検出結果Δa と、a1b1レベル差検出部13の検出
結果Δn の2次元的変位(Δa,Δn )が所定の範囲内に
あるか否かを判別する。
The vertical mode discriminating unit 14 determines whether the two-dimensional displacement (Δa, Δn) between the detection result Δa of the a1b1 distance detecting unit 12 and the detection result Δn of the a1b1 level difference detecting unit 13 is within a predetermined range. Determine whether.

【0087】a1とb1の距離Δa と濃度レベル差Δn の2
次元的変位(Δa,Δn )に対して、どこまでを垂直モー
ドとするかによって、2次元符号化時の符号化効率が異
なってくる。多値画像に対して、2次元的変位(Δa,Δ
n )の発生頻度の高いものを垂直モードにして、発生頻
度順に短い符号語を割当て、発生頻度の低いものは水平
モードで符号化すべきである。
2 of the distance Δa between a1 and b1 and the density level difference Δn
The coding efficiency at the time of two-dimensional coding differs depending on how far the vertical mode is set with respect to the dimensional displacement (Δa, Δn). Two-dimensional displacement (Δa, Δ
n) with a high frequency of occurrence should be in vertical mode, short code words should be assigned in order of frequency of occurrence, and those with a low frequency of occurrence should be coded in horizontal mode.

【0088】でないと、発生頻度の低い2次元的変位ま
で垂直モードに含め、垂直モードの場合数を多くする
と、発生頻度の低い変位は符号語長が長くなり、水平モ
ード符号化より符号語長が長くなり、符号化効率が低下
する。垂直モードで符号化する2次元的変位(Δa,Δn
)の領域は、様々な設定が可能である。その例を図8
に示す。
Otherwise, if a two-dimensional displacement having a low frequency of occurrence is included in the vertical mode and the number of cases in the vertical mode is increased, the code word length of the displacement having a low frequency of occurrence becomes longer, and the code word length becomes longer than that of the horizontal mode coding. Is longer and the coding efficiency is lower. Two-dimensional displacement (Δa, Δn
Various settings can be made for the area of). An example is shown in FIG.
Shown in.

【0089】図8の(a) は、垂直モードで符号化する2
次元的変位の領域を、距離Δa が-3から3 の範囲でかつ
濃度レヘ゛ル 差Δn が-3から3 の範囲の領域としたもので
ある。この場合は、距離Δa と濃度レベル差Δn が独立
に変化する場合を想定したものである。(b) は、距離Δ
a の絶対値が大きくなると濃度レベル差は小さいという
確率が高い場合を想定したものである。
FIG. 8 (a) shows a case of encoding in the vertical mode 2
The region of the dimensional displacement is a region in which the distance Δa is in the range of −3 to 3 and the density level difference Δn is in the range of −3 to 3. In this case, it is assumed that the distance Δa and the concentration level difference Δn change independently. (b) is the distance Δ
It is assumed that there is a high probability that the difference in concentration level will become smaller as the absolute value of a becomes larger.

【0090】図8の(c) は、距離Δa と濃度レベル差Δ
n は、一方が大きければ他方は小さいという確率が高い
場合を想定したものである。なを図8では、-3から3 ま
での範囲としたが、この数値に限定されるものではな
く、図8はあくまで、垂直モードで符号化する2次元的
変位の領域の形状を示したものである。ここでは、説明
の便宜上、図8の(b) に示す領域を垂直モードで符号化
する領域として以後説明する。つまり、距離Δa が-1か
ら1 の範囲でかつ濃度レベル差Δn が-1から1 までの範
囲と、Δa が-3から3 の範囲でかつΔn=0 の範囲におい
て、符号化変化点a1を垂直モードで符号化する。
FIG. 8C shows the distance Δa and the density level difference Δ.
n is assumed to be high when one is large and the other is small. In Fig. 8, the range is from -3 to 3, but the range is not limited to this value, and Fig. 8 shows the shape of the two-dimensional displacement region encoded in the vertical mode. Is. Here, for convenience of explanation, the region shown in FIG. 8B will be described as a region to be encoded in the vertical mode. That is, the encoding change point a1 is set in the range where the distance Δa is in the range of -1 to 1 and the concentration level difference Δn is in the range of -1 to 1, and in the range where Δa is in the range of -3 to 3 and Δn = 0. Encode in vertical mode.

【0091】図7の(3)の1)の場合は、距離Δa =0
、レベル差Δn =-1で、2次元的変位(0,-1)は上記
の垂直モードの符号化領域内にあるので、垂直モード判
別結果は肯定的となる。よって、2次元的変位(0,-1)
は垂直モード符号テーブル15で対応する符号語V(0,
-1)に符号化される。また、垂直モード判別結果は2次
元符号合成部29に供給される。
In the case of 1) in (3) of FIG. 7, the distance Δa = 0
, The level difference Δn = −1, the two-dimensional displacement (0, −1) is within the above-described vertical mode coding area, and therefore the vertical mode determination result is affirmative. Therefore, two-dimensional displacement (0, -1)
Is a corresponding code word V (0, 0 in the vertical mode code table 15).
-1) is encoded. Further, the vertical mode determination result is supplied to the two-dimensional code synthesis unit 29.

【0092】垂直モード符号テーブル15は、上記距離
Δa と濃度レベル差Δn の2次元的変位(Δa,Δn )を
入力にして、この入力の2次元的変位(Δa,Δn )に対
応した符号V(Δa,Δn )を出力し、2次元符号合成部
29に供給する。
The vertical mode code table 15 inputs the two-dimensional displacement (Δa, Δn) of the distance Δa and the density level difference Δn, and the code V corresponding to the two-dimensional displacement (Δa, Δn) of this input. (Δa, Δn) is output and supplied to the two-dimensional code synthesis unit 29.

【0093】図7の(3)の1)の場合は、符号V(0,-
1)を出力する。垂直モード符号化は、図8の(b) に示
した垂直モード領域において、発生頻度の高い順に短い
符号語を割当た符号構成で、たとえば2値のMR符号化
方式における垂直モード符号と同様なもので構成する。
In the case of 1) in (3) of FIG. 7, the code V (0,-
1) is output. The vertical mode coding is a code configuration in which short code words are assigned in descending order of occurrence frequency in the vertical mode region shown in FIG. 8 (b), and is similar to the vertical mode code in the binary MR coding method, for example. Composed of things.

【0094】符号化変化点a1が上記のように垂直モード
で符号化されると、新たな符号化変化点a0を先のa1の画
素に修正し、この新たなa0を基準にa1,a2 及びb1,b2 を
変化点検出部4およびb1b2検出部8によって検出し、符
号化変化点メモリ部5および参照変化点メモリ部9の所
定のメモリに記憶する。この新たな符号化変化点と参照
変化点の位置関係を図7の(3)の2)に示す。
When the coding change point a1 is coded in the vertical mode as described above, the new coding change point a0 is modified to the pixel of the previous a1 and a1, a2 and b1 and b2 are detected by the change point detection section 4 and the b1b2 detection section 8 and stored in a predetermined memory of the encoded change point memory section 5 and the reference change point memory section 9. The positional relationship between the new coding change point and the reference change point is shown in 2) of (3) of FIG.

【0095】2)の場合は a0=(3,1) a1=(4,2) b1=(4,3) a2=(5,4) b2=(5,4) となる。In the case of 2), a0 = (3,1) a1 = (4,2) b1 = (4,3) a2 = (5,4) b2 = (5,4).

【0096】この2)の場合も、パスモード判別部10の
判別結果はb2はa1の右側に位置するので否定的となり、 a1b1距離Δa=4-4=0 a1b1レベル差Δn=2−3=−1 2次元的変位(Δa,Δn )=(0,-1) となり、2次元的変位は垂直モード符号化領域内なので
垂直モードで符号化され、符号V(0,-1)が2次元符号
合成部29に供給される。
Also in this case 2), the determination result of the pass mode determination unit 10 is negative because b2 is located on the right side of a1, and a1b1 distance Δa = 4-4 = 0 a1b1 level difference Δn = 2-3 = -1 Two-dimensional displacement (Δa, Δn) = (0, -1) and the two-dimensional displacement is encoded in the vertical mode because it is within the vertical mode encoding area, and the code V (0, -1) is two-dimensional. It is supplied to the code synthesis unit 29.

【0097】垂直モードでa1が符号化されたので、同様
にして、新たなa0を先のa1の位置に修正し、符号化変化
点と参照変化点を更新する。更新結果を図7の(3)の
3)に示す。3)の場合は a0=(4,2) a1=(5,4) b1=(5,4) a2=(10,0) b2=(8,2) となる。
Since a1 is encoded in the vertical mode, a new a0 is similarly corrected to the position of the previous a1 and the encoding change point and the reference change point are updated. The update result is shown in (3) of FIG.
Shown in 3). In the case of 3), a0 = (4,2) a1 = (5,4) b1 = (5,4) a2 = (10,0) b2 = (8,2).

【0098】この3)の場合もパスモード判別部10の判
別結果は、b2はa1の右側に位置するので否定的となり、 a1b1距離Δa=5-5=0 a1b1レベル差Δn=4-4=0 2次元的変位(Δa,Δn )=(0,0) となり、この3)の場合も垂直モードでV(0,0 )に符号
化される。
Also in this case 3), the determination result of the pass mode determination unit 10 is negative because b2 is located on the right side of a1, and a1b1 distance Δa = 5-5 = 0 a1b1 level difference Δn = 4-4 = 0 Two-dimensional displacement (Δa, Δn) = (0,0), and even in the case of 3), V (0,0) is encoded in the vertical mode.

【0099】さらに次の符号化変化点および参照変化点
は、図7の(3)の4)のようになる。4)の場合は a0=(5,4) a1=(10,0) b1=(8,2) a2=(14,0) b2=(9,0) となる。
The next coding change point and reference change point are as shown in 4) of (3) of FIG. In the case of 4), a0 = (5,4) a1 = (10,0) b1 = (8,2) a2 = (14,0) b2 = (9,0).

【0100】この場合、b2がa1の左側に位置するのでパ
スモードとなり、パスモード判別部10の判別結果が2
次元符号合成部29に供給される。パスモード符号化後
は、新たなa0は、先のb2の位置に修正され、このa0を基
準に符号化変化点および参照変化点が更新される。更新
結果を図7の(3)の5)に示す。
In this case, since b2 is located on the left side of a1, the mode is the pass mode, and the determination result of the pass mode determination unit 10 is 2
It is supplied to the dimensional code synthesis unit 29. After the pass mode coding, the new a0 is corrected to the position of the previous b2, and the coding change point and the reference change point are updated based on this a0. The update result is shown in 5) of (3) in FIG.

【0101】5)の場合は a0=(9,4) a1=(10,0) b1=(14,0) a2=(14,0) (b2=(14,0) ) となる。In the case of 5), a0 = (9,4) a1 = (10,0) b1 = (14,0) a2 = (14,0) (b2 = (14,0)).

【0102】この場合もパスモード判別部10の判別結
果は、b2はa1の右側に位置するので否定的となり、 a1b1距離Δa=10-14=-4 a1b1レベル差Δn=0-0=0 2次元的変位(Δa,Δn )= (-4,0) となり、2次元的変位は垂直モード符号化領域外となる
ので、その旨の垂直モード判別部14の否定的判別結果
が2次元符号合成部29に供給される。
In this case as well, the determination result of the pass mode determination unit 10 is negative because b2 is located on the right side of a1, and a1b1 distance Δa = 10-14 = -4 a1b1 level difference Δn = 0-0 = 0 2 Since the dimensional displacement (Δa, Δn) = (− 4,0) and the two-dimensional displacement is outside the vertical mode coding region, the negative discrimination result of the vertical mode discrimination unit 14 to that effect is the two-dimensional code synthesis. Is supplied to the unit 29.

【0103】そして、水平モード符号化部16におい
て、符号化変化点a1とa2が水平モードで符号化される。
水平モード符号化部16は、まずa0a1距離検出部17に
てa0とa1の距離Δa0として、 Δa0= Pa1- Pa0=10-9=
1 つまり、a0からa1の直前の画素まで連続する同一濃
度レベルの画素列のラン長を検出し、セレクタ21を介
してラン長符号テーブル23に供給する。
Then, in the horizontal mode encoding section 16, the encoding change points a1 and a2 are encoded in the horizontal mode.
The horizontal mode encoding unit 16 first determines the distance Δa0 between a0 and a1 in the a0a1 distance detection unit 17 as follows: Δa0 = Pa1-Pa0 = 10-9 =
1 That is, the run lengths of pixel rows of the same density level that continue from the pixel immediately before a0 to a1 are detected and supplied to the run length code table 23 via the selector 21.

【0104】ラン長符号テーブル23は、1次元符号化
と同じく、入力のラン長Δa0に対応した符号R(Δa0)
= R(1 )を出力する。a0a1レベル差検出部18は、a0
とa1の濃度レベル差Δn0として、Δn0= N(a1)- N
(a0)=0-4=-4 を検出し、セレクタ22を介してレベ
ル差符号テーブル24に供給する。レベル差符号テーブ
ル24は、1次元符号化と同じく、入力の濃度レベル差
Δn0に対応した符号L(Δn0)= L(-4)を出力する。
The run length code table 23 has a code R (Δa0) corresponding to the input run length Δa0, as in the one-dimensional coding.
= Output R (1). a0a1 The level difference detection unit 18 uses a0
Δn0 = N (a1)-N
(A0) = 0-4 = -4 is detected and supplied to the level difference code table 24 via the selector 22. The level difference code table 24 outputs the code L (Δn0) = L (−4) corresponding to the input density level difference Δn0, as in the one-dimensional encoding.

【0105】ラン長符号テーブル23とレベル差符号テ
ーブル24の出力符号R(1 )とL(-4)は、2次元符
号合成部29にそれぞれ供給される。さらに、a1a2距離
検出部19は、a1とa2の距離Δa1として、Δa1= Pa2-
Pa1=14-10=4 つまり、a1からa2の直前の画素まで連続
する同一濃度レベルの画素列のラン長を検出し、セレク
タ21を介してラン長符号テーブル23に供給する。
The output codes R (1) and L (-4) of the run length code table 23 and the level difference code table 24 are supplied to the two-dimensional code synthesis section 29, respectively. Further, the a1a2 distance detecting unit 19 determines that the distance Δa1 between a1 and a2 is Δa1 = Pa2-
That is, Pa1 = 14-10 = 4 That is, the run lengths of the pixel rows of the same density level that continue from the pixel immediately before a1 to a2 are detected and supplied to the run length code table 23 via the selector 21.

【0106】ラン長符号テーブル23は、このラン長に
対応した符号R(Δa1)=R(4 )を出力する。また、
a1a2レベル検出部20は、a1とa2の濃度レベル差Δn1と
して、Δn1= N(a2)- N(a1)=0-0=0 を検出し、セ
レクタ22を介してレベル差符号テーブル24に供給す
る。レベル差符号テーブル24は、入力の濃度レベル差
Δn1に対応した符号L(Δn1)= L(0 )を出力する。
これらのラン長符号R(4 )とレベル差符号L(0 )
は、それぞれ2次元符号合成部29に供給される。
The run length code table 23 outputs the code R (Δa1) = R (4) corresponding to this run length. Also,
The a1a2 level detector 20 detects Δn1 = N (a2) −N (a1) = 0-0 = 0 as the density level difference Δn1 between a1 and a2, and supplies it to the level difference code table 24 via the selector 22. To do. The level difference code table 24 outputs the code L (Δn1) = L (0) corresponding to the input density level difference Δn1.
These run length code R (4) and level difference code L (0)
Are supplied to the two-dimensional code synthesis unit 29, respectively.

【0107】つまり、2次元符号化時の水平モード符号
化部16は、符号化変化点a1とa2を、a0とa1間のラン長
Δa0と濃度レベル差Δn0と、a1とa2間のラン長Δa1と濃
度レベル差Δn1を対応する符号で、 R(Δa0)+L
(Δn0)+R(Δa1)+L(Δn1)のように符号化す
る。
That is, the horizontal mode encoding unit 16 at the time of two-dimensional encoding sets the encoding change points a1 and a2 to the run length Δa0 between a0 and a1, the density level difference Δn0, and the run length between a1 and a2. R (Δa0) + L with the corresponding code for Δa1 and the density level difference Δn1
Encoding is performed as (Δn0) + R (Δa1) + L (Δn1).

【0108】5)の場合は、R(1 )+L(-4)+R(4
)+L(0 )となる。この水平モード符号化が終了す
ると、新たなa0は先のa2の位置に修正される。この時、
新たなa0の位置が終端部の仮想画素位置に対応するの
で、この符号化ラインの符号化は終了となる。
In the case of 5), R (1) + L (-4) + R (4
) + L (0). When this horizontal mode encoding is completed, the new a0 is corrected to the position of the previous a2. At this time,
Since the new position of a0 corresponds to the virtual pixel position at the end, the coding of this coding line ends.

【0109】2次元符号合成部29は、各2次元符号化
ラインの先頭に於いて、以後の符号列が2次元符号化さ
れた符号列である旨を示すEOL0符号を、EOL0符号発生部
25より取り込む。
The two-dimensional code synthesizing unit 29 sets the EOL0 code indicating that the subsequent code string is a two-dimensional coded code string at the head of each two-dimensional code line to the EOL0 code generating unit 25. Take in more.

【0110】そして、以後パスモード判別部10と垂直
モード判別部14の判別結果に応じて、P符号発生部2
6からのパスモードを示すP符号、垂直モード符号化部
11より出力される垂直符号V(Δa,Δn )、H符号発
生部27からの水平モードを示すH符号、および水平モ
ード符号化部16より出力される水平符号R(Δa0)+L(
Δn0)+R(Δa1)+L( Δn1) (ただし、Δa0はa0とa1の距
離、Δn0はa0とa1の濃度レベル差、Δa1はa1とa2の距
離、Δn1はa1とa2の濃度レベル差)を選択的に取り込
み、符号化順に各符号を配列し、セレクタ31を介し
て、本符号化装置の出力端32より出力する。
Then, thereafter, the P code generation unit 2 is determined according to the determination results of the pass mode determination unit 10 and the vertical mode determination unit 14.
6, the P code indicating the pass mode, the vertical code V (Δa, Δn) output from the vertical mode encoder 11, the H code indicating the horizontal mode from the H code generator 27, and the horizontal mode encoder 16 Horizontal code output from R (Δa0) + L (
Δn0) + R (Δa1) + L (Δn1) (where Δa0 is the distance between a0 and a1, Δn0 is the concentration level difference between a0 and a1, Δa1 is the distance between a1 and a2, Δn1 is the concentration level difference between a1 and a2) ) Is selectively taken in, each code is arranged in the order of encoding, and is output from the output end 32 of the present encoding device via the selector 31.

【0111】具体的には 0)2次元符号化ラインの先頭において、EOL0符号発生
部25からの符号EOL0を取り込む。 1)パスモード判別部10の判別結果が肯定的な場合
は、P符号発生部26からの符号Pを取り込む。
Specifically, 0) The code EOL0 from the EOL0 code generator 25 is fetched at the head of the two-dimensional coding line. 1) If the determination result of the pass mode determination unit 10 is affirmative, the code P from the P code generation unit 26 is fetched.

【0112】2)パスモード判別部10の判別結果が否
定的で垂直モード判別部14の判別結果が肯定的な場合
は、垂直モード符号化部11からの垂直符号V(Δa,Δ
n )を取り込む。 3)パスモード判別部10と垂直モード判別部14の判
別結果がともに否定的な場合は、H符号発生部27から
の符号Hと水平モード符号化部16からの水平符号R(Δ
a0)+L( Δn0)+R(Δa1)+L( Δn1) を取り込む。
2) When the determination result of the pass mode determination unit 10 is negative and the determination result of the vertical mode determination unit 14 is affirmative, the vertical code V (Δa, Δ) from the vertical mode encoding unit 11 is obtained.
n) is taken in. 3) When the determination results of the pass mode determination unit 10 and the vertical mode determination unit 14 are both negative, the code H from the H code generation unit 27 and the horizontal code R (Δ from the horizontal mode encoding unit 16
Take in a0) + L (Δn0) + R (Δa1) + L (Δn1).

【0113】図7の(1-2) の参照ラインに対する(2) の
符号化ラインの2次元符号化結果の2次元符号列を図7
の(4) に示す。
The two-dimensional code string of the two-dimensional coding result of the coding line of (2) with respect to the reference line of (1-2) of FIG. 7 is shown in FIG.
(4) of.

【0114】図9に、2次元符号化における各符号化モ
ードと対応する符号語をまとめて示す。垂直モードの符
号語は、垂直モードの2次元的変位(Δa,Δn )の領域
を図8の(b) の領域にした場合で、符号語自身はその1
例である。ここでは、濃度レベル差Δn =0における垂
直符号語 V(-3,0),V(-2,0),V(-1,0),V(0,0),V(1,0),
V(2,0),V(3,0) は、MR符号化方式の垂直モード符号語 V-3, V-2, V-1, V0,V1,V2,V3 に一致させている。
FIG. 9 collectively shows the code words corresponding to each coding mode in the two-dimensional coding. The code word in the vertical mode is the case where the area of the two-dimensional displacement (Δa, Δn) in the vertical mode is set to the area shown in (b) of FIG.
Here is an example. Here, the vertical codewords V (-3,0), V (-2,0), V (-1,0), V (0,0), V (1,0) at the density level difference Δn = 0 ,
V (2,0) and V (3,0) are matched with the vertical mode code words V-3, V-2, V-1, V0, V1, V2 and V3 of the MR coding method.

【0115】これによって、従来のファクシミリの符号
化装置との共用化をはかり、本発明による多値画像の符
号化装置の規模の増大を避けるとともに、従来ファクシ
ミリへの適用の容易化を図っている。
As a result, common use with a conventional facsimile encoding device is achieved, the increase in the scale of the multivalued image encoding device according to the present invention is avoided, and the application to conventional facsimiles is facilitated. .

【0116】図10の(1)に、濃度レベル差符号L
(Δn)の1例を示す。この符号語は濃度レベル差Δn の
絶対値が大きいほど、発生頻度が少ないとして割当た符
号語で、これに限定されるものでない。例えば、濃度レ
ベル差Δn の絶対値が所定値以上の場合は、レベル差そ
のものを2進符号で符号化するようにしてもよい。この
場合、2進符号の旨を示す符号を2進符号の前に付加す
ることによって、通常の符号か2進符号かを区別すれば
よい。図7の(5) に、図9、図10で示した符号語の場
合の符号化データ列を示す。
In FIG. 10A, the density level difference code L
An example of (Δn) is shown. This code word is assigned as the occurrence frequency is smaller as the absolute value of the density level difference Δn is larger, and is not limited to this. For example, when the absolute value of the density level difference Δn is equal to or larger than a predetermined value, the level difference itself may be encoded by a binary code. In this case, a normal code or a binary code may be distinguished by adding a code indicating the binary code before the binary code. FIG. 7 (5) shows an encoded data string in the case of the code word shown in FIGS. 9 and 10.

【0117】(第1の実施例の効果)以上説明したよう
に、本発明の第1の実施例は、写真などの多値画像にお
いては、画素単位における濃度レベルの変化は緩やか
で、注目画素の濃度レベルはその周辺画素の濃度レベル
とほぼ等しく、差があってもわずかであるという性質を
利用したものである。
(Effects of First Embodiment) As described above, in the first embodiment of the present invention, in a multi-valued image such as a photograph, the density level change in pixel units is gentle, and The density level of is almost equal to the density level of the surrounding pixels, and even if there is a difference, it is slight.

【0118】つまり、本発明の第1の実施例は、符号化
ライン上の濃度が変化する変化点の位置は、すでに符号
化された参照ライン上の変化点の位置の近傍に存在し、
しかも両変化点の濃度レベル差も小さいという性質を利
用し、参照ライン上の変化点と符号化ラインの変化点の
位置の差Δa と、濃度レベルの差Δn の2次元的変位
(Δa,Δn )を、発生頻度の高いものほど符号語長の短
い符号語を割当、符号化変化点を符号化することによっ
て、再現性を損なうことなく、高い圧縮率を期待するこ
とができる。
That is, according to the first embodiment of the present invention, the position of the changing point on the encoded line where the density changes exists near the position of the already changed encoded point on the reference line,
Moreover, by utilizing the property that the difference in density level between both change points is small, the two-dimensional displacement (Δa, Δn) of the difference Δa between the position of the change point on the reference line and the change point on the coding line and the difference Δn of the density level is used. ), A code word having a shorter code word length is assigned to a higher occurrence frequency, and a coding change point is coded, whereby a high compression rate can be expected without impairing reproducibility.

【0119】また、本発明の符号化方式は、従来のファ
クシミリにおける白黒2値のMR符号化方式を基本に、
多値画像に拡張したものであるので、従来のMR方式と
親和性が高く、多値画像を多値レベルのまま符号化して
伝送するファクシミリ機能を追加する上で、それほど装
置規模を増大させることなく、実現できる利点がある。
The encoding system of the present invention is based on the monochrome binary MR encoding system in the conventional facsimile.
Since it is extended to multi-valued images, it has a high affinity with the conventional MR system, and it is necessary to increase the device scale so much when adding a facsimile function for encoding and transmitting multi-valued images as they are at multi-valued levels. There is an advantage that can be realized.

【0120】また、以上の説明では、色情報を含まない
画像情報の場合について説明したが、カラー画像にも
R、G、BあるいはY、I、Qの個々の色成分ごとに、
あるいは特定の色成分のみに、前述の多値符号化方法を
適用すれば、カラー画像の高能率符号化あるいは高能率
伝送が可能となる。
Further, in the above description, the case of the image information not including the color information has been described. However, in the color image, the individual color components of R, G, B or Y, I, Q are
Alternatively, by applying the above-described multi-level encoding method only to a specific color component, it is possible to perform high-efficiency encoding or high-efficiency transmission of a color image.

【0121】[第2の実施例]図11は、本発明の第2
の実施例の構成を示すブロック図である。この第2の実
施例は、文字・線画や写真などの多値画像を読取り符号
化して蓄積あるいは伝送する画像伝送装置(例えばファ
クシミリ装置)に適用したものである。
[Second Embodiment] FIG. 11 shows a second embodiment of the present invention.
3 is a block diagram showing the configuration of the embodiment of FIG. The second embodiment is applied to an image transmission device (for example, a facsimile device) that reads and encodes a multivalued image such as a character / line drawing or a photograph and stores or transmits it.

【0122】図11において、50は原稿を読み取る1
次元読取センサ、51は読取センサ50の出力をディジ
タル化するADC(アナログ・ディジタル・コンバー
タ)、52は読取センサ50の画素感度のバラツキおよ
び原稿を照射する光源のムラを補正するシェーディング
補正部、53はシェーディング補正後の少なくとも1ラ
イン分の画像データを一時記憶する前ライン多値画像メ
モリ、54はシェーディング補正部52の出力の画像デ
ータより原稿の白ピーク値を検出する白ピーク検出部、
である。
In FIG. 11, reference numeral 50 denotes a document reading 1
A dimension reading sensor, 51 is an ADC (analog-digital converter) that digitizes the output of the reading sensor 50, 52 is a shading correction unit that corrects variations in pixel sensitivity of the reading sensor 50 and unevenness of a light source that illuminates an original, 53 Is a front line multi-valued image memory that temporarily stores at least one line of image data after shading correction, 54 is a white peak detection unit that detects the white peak value of the document from the image data output from the shading correction unit 52,
Is.

【0123】55は現ラインの注目画素とその前後周辺
の画素および前ライン多値画像メモリ53より供給され
る周辺画素の濃度レベルをもとに、線画のエッジ部を強
調するエッジ強調部、56は注目画素とその前後周辺の
画素および前ライン多値画像メモリ53より供給される
周辺画素の濃度レベルをもとに、注目画素の濃度レベル
を平滑化処理をする平滑化部、57は平滑化後の濃度レ
ベルをそのレベルに応じて所定のレベルに変換するガン
マ補正部、である。
Reference numeral 55 designates an edge emphasizing portion for emphasizing the edge portion of the line drawing on the basis of the density levels of the pixel of interest of the current line, its peripheral pixels and the peripheral pixels supplied from the preceding line multi-valued image memory 53. Is a smoothing unit that smoothes the density level of the pixel of interest based on the density levels of the pixel of interest, surrounding pixels before and after it, and peripheral pixels supplied from the preceding line multi-valued image memory 53. A gamma correction unit for converting a subsequent density level into a predetermined level according to the level.

【0124】58は現ラインの注目画素とその前後周辺
の画素および前ライン多値画像メモリ53より供給され
る周辺画素の濃度レベルをもとに、注目画素が文字・線
画などの2値画像の領域の画素か、写真などの多値画像
の領域の画素かを判別する像域判別部、59は2値/多
値量子化部、60と61は2値/多値量子化部59を構
成する要素で、60はエッジ強調部55の出力値を白ピ
ーク検出部54の検出値におうじて2値量子化(最大濃
度レベルか最小濃度レベルかに)する2値量子化部、6
1は2値量子化部60とガンマ補正部57の出力のいず
れかを像域判別部58に判別結果に応じて選択し出力す
るセレクタ、である。
Reference numeral 58 denotes a target pixel of a binary image such as a character or line drawing based on the density levels of the target pixel of the current line and its surrounding pixels and the peripheral pixels supplied from the preceding line multi-valued image memory 53. An image area discrimination unit that discriminates between a pixel in a region and a pixel in a region of a multivalued image such as a photograph, 59 is a binary / multivalued quantizer, and 60 and 61 are binary / multivalued quantizers 59. 60 is a binary quantizing unit that performs binary quantization (whether it is the maximum density level or the minimum density level) on the output value of the edge emphasizing unit 55 according to the detection value of the white peak detecting unit 54.
Reference numeral 1 denotes a selector for selecting and outputting either the output of the binary quantizing unit 60 or the gamma correcting unit 57 to the image area discriminating unit 58 according to the discrimination result.

【0125】62はセレクタ61より出力される画像デ
ータを一時記憶するラインバッファメモリ、63は前述
の第1の実施例の多値画像データ符号化装置(図1に示
した)の機能を有する多値符号化部、66は多値符号化
部63の出力端子32より出力される多値符号化データ
を蓄積する蓄積メモリである。64は蓄積メモリの多値
符号化データを変調して回線65に送出するモデムであ
る。
Reference numeral 62 is a line buffer memory for temporarily storing the image data output from the selector 61, and 63 is a multi-function image data encoding apparatus (shown in FIG. 1) of the first embodiment. The value encoding unit 66 is a storage memory that stores the multilevel encoded data output from the output terminal 32 of the multilevel encoding unit 63. Reference numeral 64 is a modem that modulates multi-level encoded data in the storage memory and sends it to the line 65.

【0126】68は回線65より受信しモデム64で復
調され蓄積メモリ66一時記憶された受信多値符号化デ
ータを、多値符号化部63とは逆の復号化を行い多値画
像を復元する多値復号化部、69は復号化された多値画
像データの各画素の濃度レベルをN値に量子化し、量子
化時の誤差を周辺の画素に拡散し、入力の平均濃度レベ
ルとN値量子化後の平均濃度レベルをほぼ一致させるN
値誤差拡散部、70はN値誤差拡散結果の画像を表示す
るディスプレイ、71はN値誤差拡散結果を印字するプ
リンタ、72はディスプレイ70とプリンタ71の画素
当たりの表示階調数nに対応して、それぞれ表示、印字
のためのN値誤差拡散部69のN値を可変するN値制御
部である。
Reference numeral 68 decodes the received multilevel coded data received from the line 65, demodulated by the modem 64 and temporarily stored in the storage memory 66, and reversely decodes the multilevel coded unit 63 to restore a multilevel image. The multi-level decoding unit 69 quantizes the density level of each pixel of the decoded multi-valued image data into an N value, diffuses an error at the time of quantization to peripheral pixels, and inputs the average density level and the N value. N for making the average density levels after quantization approximately equal
A value error diffusion unit, 70 is a display that displays an image of the N-value error diffusion result, 71 is a printer that prints the N-value error diffusion result, and 72 is the display gradation number n per pixel of the display 70 and the printer 71. And an N value control unit for changing the N value of the N value error diffusion unit 69 for displaying and printing respectively.

【0127】この第2の実施例は、読取センサ50で読
み取った画像信号を、像域判別部58で、注目画素が文
字・線画などの2値画像の領域に属するか、写真など多
値画像の領域に属するかを検出し、2値画像領域に属す
る場合は、注目画素の濃度レベルに応じて、注目画素を
白(最小濃度レベル)あるいは黒(最大濃度レベル)に
2値量子化し、
In the second embodiment, the image signal read by the reading sensor 50 is used by the image area discrimination unit 58 to determine whether the pixel of interest belongs to a binary image area such as a character or line drawing, or a multivalued image such as a photograph. If the pixel of interest belongs to a binary image area, the pixel of interest is binary quantized into white (minimum density level) or black (maximum density level) according to the density level of the pixel of interest,

【0128】多値画像領域に属する場合は、注目画素の
濃度レベルをそのまま出力する2値/多値量子化部59
によって選択的に2値量子化し、この選択的に2値量子
化された画像データに対して、第1の実施例で示した多
値符号化を行う多値符号化部63によって多値符号化す
るものである。そして、蓄積メモリ66に一時記憶ある
いはモデム63を介して回線65より相手受信装置に送
信するものである。
If the pixel belongs to the multi-valued image area, the binary / multi-valued quantizer 59 outputs the density level of the pixel of interest as it is.
Is selectively binary-quantized by the multi-value encoding unit 63 that performs the multi-value encoding shown in the first embodiment on the selectively binary-quantized image data. To do. Then, it is temporarily stored in the storage memory 66 or is transmitted from the line 65 to the partner receiving device via the modem 63.

【0129】また、多値符号化された画像データを受信
した場合は、多値復号化部68で復号化後、N値誤差拡
散部69において、ディスプレイ70およびプリンタ7
1の階調表現能力数nに対応して、画素当たりn値の階
調を持たせた疑似中間調化を行い、表示あるいは印字を
行うものである。
When multi-value coded image data is received, the multi-value decoding unit 68 decodes the image data, and then the N-value error diffusion unit 69 displays the display 70 and the printer 7.
Corresponding to the number n of gradation expression abilities of 1, pseudo halftoning with n gradations per pixel is performed, and display or printing is performed.

【0130】第2の実施例の動作を説明する。読取セン
サ50は原稿をライン単位で読取り、画素単位にその読
取レベル(アナログ値)を動作タイミング制御部67か
らの読取クロックに同期して出力する。ADCは読取ク
ロックに同期して、各画素の読取レベルをディジタルに
量子化し、シェーディング補正部52に供給する。
The operation of the second embodiment will be described. The reading sensor 50 reads the document in line units, and outputs the reading level (analog value) in pixel units in synchronization with the reading clock from the operation timing control unit 67. The ADC digitally quantizes the read level of each pixel in synchronization with the read clock, and supplies it to the shading correction unit 52.

【0131】シェーディング補正部52は、読取センサ
50の画素の感度バラツキおよび原稿を照射する光源の
ムラを補正する。このため、シェーディング補正部52
は、予め、読取センサ50で白基準原稿を読み取り量子
化された1ライン分の画像データ(シェーディング波形
と称す)を記憶しておき、このシェーディング波形をも
とに、原稿のライン上(主走査上)の位置に対応して、
読取画素の量子化値(濃度レベル)を補正する。
The shading correction unit 52 corrects the variation in the sensitivity of the pixels of the reading sensor 50 and the unevenness of the light source that illuminates the original. Therefore, the shading correction unit 52
Stores in advance image data for one line (referred to as a shading waveform) in which a white reference document is read by the reading sensor 50 and quantized, and is stored on the line of the document (main scanning) based on the shading waveform. Corresponding to the position above)
The quantized value (density level) of the read pixel is corrected.

【0132】このシェーディング補正結果は白ピーク検
出部54、エッジ強調部55、平滑化部56、前ライン
多値画像メモリ53および像域判定部58に供給され
る。各部の画素データの取り込みは図示しない制御タイ
ミング信号に同期して取り込む。
The shading correction result is supplied to the white peak detecting section 54, the edge enhancing section 55, the smoothing section 56, the preceding line multi-valued image memory 53 and the image area determining section 58. The pixel data of each part is fetched in synchronization with a control timing signal (not shown).

【0133】前ライン多値画像メモリ53は、シェーデ
ィング補正結果を順次取り込み、現ラインの入力に対し
て、それ以前の少なくとも1ライン分の画像データを一
時記憶する。この前ライン多値画像メモリ53は、現ラ
インの注目画素の位置に対応して、前ラインの注目画素
周辺の画素のデータをエッジ強調部55、平滑化部56
および像域判定部58に供給する。
The previous line multi-valued image memory 53 sequentially takes in the shading correction results, and temporarily stores the image data for at least one line before the current line input. The front line multi-valued image memory 53 stores the data of the pixels around the target pixel of the previous line corresponding to the position of the target pixel of the current line in the edge emphasizing unit 55 and the smoothing unit 56.
And to the image area determination unit 58.

【0134】エッジ強調部55は、図12の(1)に示
すように、ハッチを施した現ラインの注目画素と、その
周辺画素の濃度レベルに対して、図のように重み係数a,
b,c,d,e,f を掛け、その総和として注目画素の濃度レベ
ルを決定する。重み係数は周辺画素に対しては、負の値
(a,b,c,d,f) を、注目画素には正の値(e) を与え、重み
係数の総和が1となるように配分する。
As shown in (1) of FIG. 12, the edge emphasizing unit 55 sets the weighting factor a, for the density level of the hatched current pixel of the current line and its peripheral pixels as shown in the figure.
Multiply b, c, d, e, and f, and determine the density level of the pixel of interest as the sum of them. The weighting factor is a negative value for the surrounding pixels
(a, b, c, d, f) is given to the pixel of interest with a positive value (e), and the weighting coefficients are distributed so that the sum becomes 1.

【0135】これによって、注目画素と周辺画素の濃度
レベルの差が大きいとその差をより強調し、結果として
線画などの白黒変化境界部が強調されることになる。こ
のエッジ強調結果は、2値/多値量子化部59を構成す
る2値量子化部60に供給され、2値(最大濃度レベル
あるいは最小濃度レベル)に量子化される。
As a result, if the difference between the density levels of the target pixel and the peripheral pixels is large, the difference is further emphasized, and as a result, the black and white change boundary portion such as a line drawing is emphasized. The edge emphasis result is supplied to the binary quantization unit 60 that constitutes the binary / multi-valued quantization unit 59, and is quantized into a binary value (maximum density level or minimum density level).

【0136】白ピーク検出部54は、入力の画素の濃度
レベルより、白側のピーク値(濃度レベルでは最小値)
を検出する。検出の応答性は白側への変化には速く、検
出ピーク値より黒側の濃度レベルの場合は緩やかに黒側
にピーク値を変化させる特性を持つ。この白ピーク検出
結果は2値量子化部59に供給される。
The white peak detector 54 has a peak value on the white side of the density level of the input pixel (minimum value at the density level).
To detect. The responsivity of the detection is fast for the change to the white side, and has a characteristic that the peak value is gently changed to the black side when the density level is on the black side from the detected peak value. The white peak detection result is supplied to the binary quantization unit 59.

【0137】2値量子化部60は白ピーク検出部54の
検出結果の白ピーク値に応じて、2値化のいき値を変
え、エッジ強調された画像データを2値量子化する。つ
まり、白ピーク値が最小濃度レベル値(純白)の場合
は、いき値は純白と純黒の中間的濃度レベルとし、白ピ
ーク値が黒側に変化した場合はいき値も所定の割合で黒
側に変化させる。これは、原稿の地濃度を白とみなし、
地濃度上にある文字・線画を2値化するためである。
The binary quantizing unit 60 changes the binarization threshold value according to the white peak value of the detection result of the white peak detecting unit 54, and binary-quantizes the edge-emphasized image data. That is, when the white peak value is the minimum density level value (pure white), the threshold value is an intermediate density level between pure white and pure black, and when the white peak value changes to the black side, the threshold value is also black at a predetermined ratio. Change to the side. This regards the background density of the original as white,
This is for binarizing characters / line drawings on the background density.

【0138】2値量子化部60の2値量子化結果はセレ
クタ61の一方の入力端子に供給される。平滑化部56
は、図12の(2)に示すように、ハッチを施した現ラ
インの注目画素と、その周辺画素の濃度レベルに対し
て、図のように重み係数a,b,c,d,e,f を掛け、その総和
として注目画素の濃度レベルを決定する。重み係数は注
目画素および周辺画素に対して正の値を与え、重み係数
の総和が1となるように配分する。これによって、画素
単位の濃度レベルの変化を平滑化する。平滑化の度合い
は重み係数の与え方によって異なる。
The binary quantization result of the binary quantization section 60 is supplied to one input terminal of the selector 61. Smoothing unit 56
As shown in (2) of FIG. 12, the weighting factors a, b, c, d, e, for the density level of the hatched target pixel of the current line and its surrounding pixels are shown in the figure. Multiply by f and determine the density level of the pixel of interest as the sum. The weighting coefficient is given a positive value with respect to the pixel of interest and the peripheral pixels, and the weighting coefficient is distributed so that the total sum becomes 1. As a result, changes in the density level of each pixel are smoothed. The degree of smoothing depends on how the weighting factors are given.

【0139】なを、平滑化用のフィルタの周辺画素の領
域は、図12の(2)に限定されるものではなく、網点
よりなる多値画像の場合は、その網点の周期をカバーす
る周辺画素領域を用いて、網点周期内の平均濃度を検出
するように平滑化する必要がある。ここでは、説明の便
宜上、原理を示すため、図のような3*2画素領域とし
た。
The area of the peripheral pixels of the smoothing filter is not limited to (2) in FIG. 12, but in the case of a multi-valued image consisting of halftone dots, the period of the halftone dots is covered. It is necessary to perform smoothing so as to detect the average density within the halftone dot period by using the surrounding pixel area. Here, for convenience of explanation, in order to show the principle, a 3 * 2 pixel region as shown in the figure is used.

【0140】この平滑化後の画像データはガンマ補正部
57によって、図12の(3)に示すように、入力の濃
度レベルに応じて、濃度レベルが補正さる。図では3種
の補正特性を示している。これは、多値画像の濃度特性
を記録特性や、記録後の画像のメリハリを考慮して行
う。ガンマ補正部57の補正結果はセレクタ61の他方
の入力端子に供給される。
The gamma correction unit 57 corrects the density level of the smoothed image data according to the input density level, as shown in (3) of FIG. The figure shows three types of correction characteristics. This is performed in consideration of the recording characteristics of the multivalued image density characteristics and the sharpness of the image after recording. The correction result of the gamma correction unit 57 is supplied to the other input terminal of the selector 61.

【0141】像域判定部58は、図13の(1)に示す
ように、現ラインの注目画素(H )と現ラインの周辺画
素(F,G,I,J )と前ラインの周辺画素(A,B,C,D,E )の
濃度レベルをもとに、注目画素が文字・線画などの2値
画像領域に属するか、写真(網点画像も含む)などの多
値画像領域に属するかを検出する。
As shown in (1) of FIG. 13, the image area determination unit 58 determines the target pixel (H) of the current line, the peripheral pixels (F, G, I, J) of the current line and the peripheral pixels of the previous line. Based on the density levels of (A, B, C, D, E), the pixel of interest belongs to a binary image area such as a character or line drawing, or to a multi-valued image area such as a photograph (including a halftone image). Detects if it belongs.

【0142】判別方法は、図13の(2)、(3)およ
び(4)に示すように、図12の(2)に示したのと等
価な平滑化フィルタを画素単位に移動させ、それぞの平
滑化結果の濃度レベルN(G),N(H) 、およびN(I)を求め、
N(H)とN(G)の差、N(H)とN(I)の差のいずれかが所定値以
上の場合は、注目画素は2値画像領域に属すると判定
し、そうでない場合は、多値画像領域に属すると判定す
る。
As shown in (2), (3) and (4) of FIG. 13, the discrimination method is to move the smoothing filter equivalent to that shown in (2) of FIG. The density levels N (G), N (H), and N (I) of the smoothing result are obtained,
If either the difference between N (H) and N (G) or the difference between N (H) and N (I) is greater than or equal to a predetermined value, it is determined that the pixel of interest belongs to the binary image area. Is determined to belong to the multi-valued image area.

【0143】平滑化後の濃度レベルをもとに判定するの
は、網点画像の網点の黒と網点間の白の濃度レベル変化
を2値画像領域と誤判定するのを避けるためである。よ
って、ここでの平滑化フィルタも平滑化部56の平滑化
フィルタと同様に、網点周期内の平均的濃度レベルを検
出するものである。
The determination based on the density level after smoothing is performed in order to avoid erroneous determination of a change in the density level of black in the halftone dot image and white between the halftone dots as a binary image area. is there. Therefore, like the smoothing filter of the smoothing unit 56, the smoothing filter here also detects the average density level within the halftone dot period.

【0144】なを、像域判定は、上記の方法に限定され
るものではなく、各種の判定方法を用いることができ
る。例えば、特開平2−292956号公報、特公平3
−62355号公報記載のように、網点の周期性に着目
し、まず網点画像領域を検出し、その後、特開昭58−
115975号公報記載のように、線画と写真(網点画
像を除く)の濃度レベル変化量と変化の頻度の差を利用
して、線画と写真画に判別し、結果として、文字・線画
の2値画像領域と写真(網点画像を含む)などの多値画
像領域とを判別するようにしてもよい。
The image area determination is not limited to the above method, but various determination methods can be used. For example, Japanese Patent Laid-Open No. 2-292956 and Japanese Patent Publication No.
-62355, paying attention to the periodicity of the halftone dots, first detecting the halftone dot image area, and thereafter,
As described in Japanese Patent No. 115975, the difference between the density level change amount of a line drawing and a photograph (excluding a halftone dot image) and the change frequency is used to discriminate between a line drawing and a photographic image. The value image area may be distinguished from a multivalued image area such as a photograph (including a halftone image).

【0145】このようにして、注目画素の領域を判別す
ると、その判別結果はセレクタ61の制御端子に供給さ
れる。セレクタ61は、像域判別結果が2値画像領域の
場合、2値量子化部60の2値量子化結果を選択し、ラ
インバッファメモリ62に供給する。像域判別結果が多
値画像領域の場合は、ガンマ補正部57の補正結果を選
択し、ラインバッファメモリ62に供給する。
When the area of the target pixel is discriminated in this way, the discrimination result is supplied to the control terminal of the selector 61. When the image area discrimination result is a binary image area, the selector 61 selects the binary quantization result of the binary quantization unit 60 and supplies it to the line buffer memory 62. When the image area determination result is the multi-valued image area, the correction result of the gamma correction unit 57 is selected and supplied to the line buffer memory 62.

【0146】ラインバッファメモリ62は、読取センサ
50の読取速度と多値符号化部63およびモデム64の
回線65への送出速度との差を吸収するバッファ的役割
をはたすメモリである。このラインバッファメモリ62
の記憶量が一定量以上になると、動作タイミング制御部
67は読取センサ50のライン読取を一時停止し、多値
符号化部63で符号化されラインバッファメモリ62の
記憶量が一定値以下になると読取を再開する。
The line buffer memory 62 serves as a buffer that absorbs the difference between the reading speed of the reading sensor 50 and the sending speed of the multi-level encoding unit 63 and the modem 64 to the line 65. This line buffer memory 62
When the storage amount of the above is more than a certain amount, the operation timing control unit 67 temporarily stops the line reading of the reading sensor 50, and when the storage amount of the line buffer memory 62 encoded by the multi-level encoding unit 63 becomes less than the certain amount. Resume reading.

【0147】ラインバッファメモリ62への記憶および
読み出しは動作タイミング制御部67の制御タイミング
によって制御される。読み出しの制御タイミングは多値
符号化部63にも供給される。ラインバッファメモリ6
2の出力画像データは、多値符号化部63に供給され多
値符号化される。多値符号化部63の符号化方法は、第
1の実施例で説明した符号化方法である。多値符号化部
63の構成は、図1に示した構成である。
Storage and reading in the line buffer memory 62 are controlled by the control timing of the operation timing controller 67. The read control timing is also supplied to the multi-level encoding unit 63. Line buffer memory 6
The second output image data is supplied to the multi-level encoding unit 63 and multi-level encoded. The encoding method of the multi-level encoder 63 is the encoding method described in the first embodiment. The configuration of the multi-level encoding unit 63 is the configuration shown in FIG.

【0148】2値画像領域を最小濃度レベル(白)と最
大濃度レベル(黒)に2値量子化しているので、2値画
像領域では、変化点は、白から黒への変化画素および黒
から白への変化画素となる。濃度レベルの変化は正負の
最大値となる。1次元符号化時の濃度レベル差および2
次元符号化時の水平モード符号化時の濃度レベル差に対
応する符号を、この最大濃度レベル変化の発生頻度に対
応して、符号語長を設定すれば、従来の2値のMR符号
化とほぼ同等の高い符号化効率で符号化することができ
る。
Since the binary image area is binary-quantized into the minimum density level (white) and the maximum density level (black), the changing point in the binary image area is from the change pixel from white to black and from black. It becomes a pixel that changes to white. The change in the concentration level has the maximum positive and negative values. Difference in density level and two in one-dimensional encoding
The code corresponding to the density level difference at the time of horizontal mode coding at the time of dimensional coding is set to a code word length corresponding to the occurrence frequency of this maximum density level change. Encoding can be performed with almost the same high encoding efficiency.

【0149】また、2次元符号化時の垂直モード符号化
においては、符号化ラインの白(黒)への変化点a1を、
参照ラインの白(黒)への参照変化点b1との位置の差と
濃度レベルの差で符号化するが、濃度レベルの差は0で
あるので、結果的には位置の差に対応する符号語で符号
化される。これは従来のMR符号化方法と一致すること
になる。
In vertical mode coding at the time of two-dimensional coding, the change point a1 of the coding line to white (black) is
The reference line is encoded by the difference between the position of the reference change point b1 to white (black) and the density level. However, since the difference between the density levels is 0, the code corresponding to the position difference results. Encoded in words. This is consistent with the conventional MR encoding method.

【0150】これらの各符号化モードにおける符号化テ
ーブルの符号語は、扱う画像、2値画像領域をどの程度
含んだ画像かによって、各符号語の発生頻度は異なる。
扱う画像に対応して、また、ある程度扱う画像を想定し
て、そのときの発生頻度に対応して、符号語の符号語長
を決めるようにしておけば良い。これによって、2値画
像領域では、従来のMR符号化とほぼ同じ高い符号化効
率で符号化することができる。
The frequency of occurrence of each code word varies depending on the image to be handled and the image including the binary image area in the code table in each of these coding modes.
The codeword length of the codeword may be determined in correspondence with the image to be handled, and assuming an image to be handled to some extent, in accordance with the occurrence frequency at that time. As a result, in the binary image area, it is possible to perform encoding with almost the same high encoding efficiency as the conventional MR encoding.

【0151】また、多値画像領域は、前述したように、
濃度レベルの変化する変化点を参照ラインの参照変化点
との位置の差と濃度レベルの差の2次元的変位に対応し
た符号語で符号化するので、濃度変化の緩やかな多値画
像を高い符号化効率で符号化することができる。多値符
号化結果は、蓄積メモリ66に一時蓄積されモデム64
を介して回線65に送出される。以上が第2の実施例の
読取、画像処理、符号化、蓄積、伝送の動作である。
As described above, the multi-valued image area is
Since the change point where the density level changes is encoded by the code word corresponding to the two-dimensional displacement of the difference between the position of the reference line and the reference change point and the difference of the density level, a multi-valued image with a gentle change in density is enhanced. It can be encoded with encoding efficiency. The multilevel encoding result is temporarily stored in the storage memory 66 and is stored in the modem 64.
Is sent to the line 65 via. The above is the operations of reading, image processing, encoding, accumulating, and transmitting in the second embodiment.

【0152】次に多値符号化された画像の受信時の動作
を説明する。回線65より受信されモデム64で復調さ
れた多値符号化データは、蓄積メモリ66を介して多値
復号化部68にて多値画像データに復号化される。この
復号化方法は多値符号化部63の符号化方法に対する復
号化方法である。
Next, the operation at the time of receiving a multi-value encoded image will be described. The multi-level coded data received from the line 65 and demodulated by the modem 64 is decoded into multi-level image data by the multi-level decoding unit 68 via the storage memory 66. This decoding method is a decoding method for the coding method of the multi-level coding unit 63.

【0153】図14は、多値復号化部68の構成を示す
ブロック図である。同図において、6801は、多値復
号化部68の多値符号化データ入力端子、6802は多
値符号化データをビット単位に記憶するシフトレジス
タ、6803はEOL1符号とEOL0符号を検出するEOL1/0符
号検出部、である。
FIG. 14 is a block diagram showing the structure of the multilevel decoding unit 68. In the figure, 6801 is a multi-level encoded data input terminal of the multi-level decoding unit 68, 6802 is a shift register that stores multi-level encoded data in bit units, and 6803 is EOL1 / that detects EOL1 code and EOL0 code. 0 code detector.

【0154】6804は2次元符号化における符号化モ
ードを示すP 符号とH 符号を検出する2次元符号化モー
ド符号検出部、6805は垂直モード符号化データV
(Δa,Δn )を検出し復号化する垂直モード復号部、6
806は水平モード符号化データR(Δa0), L(Δn
0), R(Δa1), L(Δn1)を、R(Δa0), L(Δn
0), R(Δa1), L(Δn1)の順で検出し、それぞれ
復号化する水平モード復号部、である。
Reference numeral 6804 denotes a two-dimensional coding mode code detecting section for detecting the P code and the H code indicating the coding mode in the two-dimensional coding, and 6805 denotes the vertical mode coded data V.
Vertical mode decoding unit for detecting and decoding (Δa, Δn), 6
Reference numeral 806 denotes horizontal mode encoded data R (Δa0), L (Δn
0), R (Δa1), L (Δn1) to R (Δa0), L (Δn
0), R (Δa1), and L (Δn1) in this order, and the horizontal mode decoding unit performs decoding.

【0155】6807は復号化ラインの復号の基準とな
る基準変化点a0を記憶する基準変化点a0メモリ、681
0は前ライン変化点メモリ6811より、参照変化点b
1,b2を基準変化点a0に対応して検出するb1b2検出部、6
809は参照変化点b1とb2を一時記憶する参照変化点b1
b2メモリ、6808は基準変化点a0、参照変化点b1,b2
および2次元符号化モード検出部6804の検出結果と
その結果に対応して出力される垂直モード復号部680
5と水平モード復号部6806の復号化結果をもとに、
変化点a1、a2を算出する変化点算出部、である。
Reference numeral 6807 denotes a reference change point a0 memory for storing a reference change point a0 which serves as a reference for decoding a decoding line, and 681.
0 is the reference change point b from the previous line change point memory 6811.
B1b2 detection unit for detecting 1, b2 corresponding to the reference change point a0, 6
Reference change point b1 809 temporarily stores reference change points b1 and b2.
b2 memory, 6808 is standard change point a0, reference change point b1, b2
And the detection result of the two-dimensional encoding mode detection unit 6804 and the vertical mode decoding unit 680 which is output corresponding to the detection result.
5 and the decoding result of the horizontal mode decoding unit 6806,
A change point calculation unit that calculates change points a1 and a2.

【0156】6812は変化点算出部6808で算出し
た現ライン(復号化ライン)の変化点を一時記憶する現
ライン変化点メモリ、6824は復号化ラインのライン
の終了を検出するライン終了検出部、6815は1次元
符号化ラインの受信エラーを検出する受信エラー検出
部、6816から6821は受信エラー検出部6815
を構成する要素で、6816は1次元符号化ラインの各
ラン長の総和を検出するラン長総和検出部、6817は
前記ラン長の総和値と1ラインの所定画素数値rとの一
致を検出する一致検出部、6819は1次元符号化ライ
ンの各変化点間の濃度レヘ゛ル 差の1ライン分の総和を検
出するレベル差総和検出部、6820は前記レベル差総
和値が0か否かを検出する一致検出部、6821は前記
一致検出部6817と6820の検出結果がともに肯定
的か否かを検出するアンド論理部、である。
Reference numeral 6812 denotes a current line change point memory for temporarily storing the change point of the current line (decoding line) calculated by the change point calculation unit 6808, 6824 denotes a line end detection unit for detecting the end of the line of the decoded line, Reference numeral 6815 denotes a reception error detection unit that detects a reception error of the one-dimensional encoded line, and reference numerals 6816 to 6821 denote reception error detection units 6815.
6816 is a run length sum detection unit that detects a sum of run lengths of a one-dimensional encoded line, and 6817 detects a match between the sum of run lengths and a predetermined pixel value r of one line. A coincidence detection unit, 6819 detects the total sum of the density level differences between the change points of the one-dimensional encoded lines for one line, and a total difference detection unit 6820 detects whether the total level difference value is 0 or not. The coincidence detection unit 6821 is an AND logic unit that detects whether the detection results of the coincidence detection units 6817 and 6820 are both positive.

【0157】6813は現ライン変化点メモリ6812
の変化点情報をもとに、復号化ラインの多値画素列を復
元する画素復元部、6814は復元された復号化ライン
の多値画素列を記憶する多値画像ラインメモリ、682
2は多値復号化部68の出力端子、6823は各部の動
作を制御する制御部である。
6813 is a current line change point memory 6812
A pixel restoration unit that restores the multi-valued pixel row of the decoded line based on the change point information of the, 6814 is a multi-valued image line memory that stores the restored multi-valued pixel row of the decoded line, 682
Reference numeral 2 is an output terminal of the multi-level decoding unit 68, and 6823 is a control unit for controlling the operation of each unit.

【0158】次に、この多値復号化部68の動作を、図
15から図19の動作フロー図を参照しながら説明す
る。図15は、多値復号化部68の全体動作を示したフ
ロー図である。
Next, the operation of the multi-level decoding unit 68 will be described with reference to the operation flow charts of FIGS. FIG. 15 is a flowchart showing the overall operation of the multi-level decoding unit 68.

【0159】多値復号化部68は、多値符号化データの
入力端子6801より供給される多値符号シフトレジス
タ6802にビット単位で取り込む。EOL1/0検出部68
03は、EOL1符号とEOL0符号を多値符号シフトレジスタ
6802の出力より検出する。このいずれかの符号を検
出するまで、多値符号シフトレジスタ6802の内部デ
ータをビット単位でシフトし、同時に入力端子6801
より新たなデータを取り込んで行く。
The multi-level decoding unit 68 loads the multi-level encoded data into the multi-level code shift register 6802 supplied from the input terminal 6801 in bit units. EOL1 / 0 detector 68
03 detects the EOL1 code and the EOL0 code from the output of the multilevel code shift register 6802. Until any of these codes is detected, the internal data of the multi-level code shift register 6802 is shifted bit by bit, and at the same time, the input terminal 6801
Take in more new data.

【0160】EOL1/0検出部6803でEOL1符号を検出す
ると、多値復号化部68は、EOL1符号に続く1ライン分
の符号化データを1次元復号化処理を行う。1次元復号
化処理後、この1次元復号化処理に於いて、受信エラー
が無く、またRTC符号(ページ終了符号)が検出され
ない場合(ページの終了でない場合)は、再び、EOL1/0
検出部6803にて、EOL1符号とEOL0符号を検出する。
When the EOL1 / 0 detection unit 6803 detects the EOL1 code, the multilevel decoding unit 68 performs a one-dimensional decoding process on the coded data for one line following the EOL1 code. After the one-dimensional decoding process, if there is no reception error and the RTC code (page end code) is not detected in this one-dimensional decoding process (if the page is not the end), EOL1 / 0 is set again.
The detector 6803 detects the EOL1 code and the EOL0 code.

【0161】検出した符号がEOL0符号の場合は、引き続
く符号化データを2次元復号化処理を行う。このEOL1符
号、EOL0符号を各ラインの先頭として、ライン単位の復
号化処理を、ページ終了信号(RTC符号)を検出する
まで行う。RTC符号検出は図11には図示していない
がRTC検出部によって行う。
When the detected code is the EOL0 code, the subsequent coded data is subjected to the two-dimensional decoding process. The EOL1 code and the EOL0 code are used as the head of each line, and the decoding processing is performed in line units until the page end signal (RTC code) is detected. Although not shown in FIG. 11, the RTC code detection is performed by the RTC detector.

【0162】1次元復号化処理および2次元復号化処理
において、受信エラーなどのエラーを検出した場合は、
所定のエラー処理を行い、EOL1/0検出部6803にて、
EOL1符号を検出するまで、符号化データ入力端子より新
たな符号化データを取り込む。
When an error such as a reception error is detected in the one-dimensional decoding process and the two-dimensional decoding process,
Performs predetermined error processing, and the EOL1 / 0 detection unit 6803
New coded data is fetched from the coded data input terminal until the EOL1 code is detected.

【0163】EOL1符号を検出すると、1次元符号化処理
を行う。このエラーに対応する処理は、2次元符号化処
理は前ライン(参照ライン)の変化点を基準に符号化ラ
インの変化点を符号化しているので、1次元符号化ライ
ンの復号および2次元符号化ラインの復号化において、
エラーがあると、このエラーが次のラインに伝搬するこ
とになるので、次の1次元符号化ラインを検出するまで
は、正しく復号化された最後のラインを繰り返し出力す
るようにして、エラーによる表示・印字を避ける処理を
行う。このような処理は、各部のエラー検出結果をもと
に動作制御部6823の制御によって行われる。
When the EOL1 code is detected, one-dimensional coding processing is performed. In the processing corresponding to this error, the two-dimensional coding processing encodes the change point of the coding line with the change point of the previous line (reference line) as a reference, so that the decoding of the one-dimensional coding line and the two-dimensional coding are performed. In decoding the coded line,
If there is an error, this error will be propagated to the next line. Therefore, until the next one-dimensional coded line is detected, the last correctly decoded line is repeatedly output, and the error may occur. Perform processing to avoid displaying / printing. Such processing is performed under the control of the operation control unit 6823 based on the error detection result of each unit.

【0164】(1次元復号化処理)次に、EOL1符号検出
後の1次元復号化処理の動作を説明する。図16に1次
元復号化処理の動作手順を示す。
(One-Dimensional Decoding Processing) Next, the operation of the one-dimensional decoding processing after detecting the EOL1 code will be described. FIG. 16 shows the operation procedure of the one-dimensional decoding process.

【0165】EOL1/0検出部6803は、EOL1符号を検出
すると、1次元符号化ラインの1次元復号化処理に先だ
って、基準変化点a0メモリ6807、ラン長総和検出部
6816およびレベル差総和検出部6819を初期化す
る。基準変化点a0メモリ6807は、画素位置をPj 、
画素位置Pj の濃度レベルをN(Pj )とすると、記憶
値a0は a0=(P0 、N(P0 ))=(0、0) のように、仮想変化画素に初期化される。
Upon detecting the EOL1 code, the EOL1 / 0 detection unit 6803 detects the reference change point a0 memory 6807, the run length total sum detection unit 6816, and the level difference total detection unit prior to the one-dimensional decoding processing of the one-dimensional encoded line. 6819 is initialized. The reference change point a0 memory 6807 stores the pixel position as Pj,
Assuming that the density level at the pixel position Pj is N (Pj), the stored value a0 is initialized to the virtual change pixel as a0 = (P0, N (P0)) = (0,0).

【0166】なを、j は復号化ラインの先頭からj 番目
の変化点を意味する。ラン長総和検出部6816は、検
出値suma=0に、レベル差総和検出部6819は検出値su
mn=0に初期化される。また、EOL1/0検出部6803は、
水平モード復号部6806に1次元復号化処理の開始を
指示する。
Here, j means the j-th change point from the beginning of the decoding line. The run length sum detection unit 6816 sets the detection value suma = 0, and the level difference sum detection unit 6819 sets the detection value su.
It is initialized to mn = 0. Further, the EOL1 / 0 detection unit 6803
The horizontal mode decoding unit 6806 is instructed to start the one-dimensional decoding process.

【0167】1次元復号化処理における水平モード復号
部6806は、多値符号化シフトレジスタ6802よ
り、符号化データを取り込み、まず、ラン長符号R(Δ
aj)を検出する。ここで、Δajは、j 番目とj+1 番目の
変化点間のラン長である。この検出は、各ラン長符号と
対応するラン長とを入力と出力に対応させたラン長復号
テーブル(図10の(2) )をもとに、多値符号シフトレ
ジスタ6803からのビット単位の符号列より、ラン長
復号テーブルに存在するラン長符号R(Δaj)を検出
し、対応するラン長Δajを得る。そして、得られたラン
長Δajを変化点算出部6808に供給する。
The horizontal mode decoding unit 6806 in the one-dimensional decoding processing fetches the coded data from the multi-level coding shift register 6802, and first, the run length code R (Δ
aj) is detected. Here, Δaj is the run length between the j-th and j + 1-th change points. This detection is based on a run length decoding table ((2) in FIG. 10) in which each run length code and the corresponding run length are associated with the input and the output, and the unit of bit from the multi-level code shift register 6803 is selected. The run length code R (Δaj) existing in the run length decoding table is detected from the code string, and the corresponding run length Δaj is obtained. Then, the obtained run length Δaj is supplied to the change point calculation unit 6808.

【0168】次に、水平モード復号部6806は、ラン
長符号検出後の符号化データ列より、同様にして、図1
0の(1)に示したレベル差復号テーブルをもとに、レ
ベル差符号L(Δnj)を検出し、対応するレベル差Δnj
を変化点算出部6808に供給する。Δnjは、j 番目と
j+1 番目の変化点間の濃度レベル差である。
Next, the horizontal mode decoding unit 6806 similarly uses the encoded data sequence after the run length code detection as shown in FIG.
Based on the level difference decoding table shown in (1) of 0, the level difference code L (Δnj) is detected, and the corresponding level difference Δnj is detected.
Is supplied to the change point calculation unit 6808. Δnj is the j-th
This is the density level difference between the j + 1th change point.

【0169】このように、ラン長Δajとレベル差Δnjの
検出をペアでラインの終了まで繰り返し行う。このラン
長とレベル差の検出に於いて、各テーブルに該当するラ
ン長符号あるいはレベル差符号が検出できなかった場合
は、受信時あるいは蓄積メモリへの記憶・再生時に符号
誤りを生じたものと判断し、エラーフラグをセットして
この1次元復号化処理を終了する。
In this way, the detection of the run length Δaj and the level difference Δnj is repeated in pairs until the end of the line. In detecting the run length and level difference, if the run length code or level difference code corresponding to each table could not be detected, it is considered that a code error occurred during reception or during storage / reproduction in the storage memory. The determination is made, the error flag is set, and the one-dimensional decoding process is ended.

【0170】具体的には、水平モード復号部6806は
このエラーの旨を動作制御部6823に知らせ、動作制
御部6823が、図15の手順のようにエラー時の全体
の動作を制御する。ここで、1次元符号化ラインの符号
データ列を、図4の(1)の(d) に示した符号データ列
とすると、水平モード復号部6806は、EOL1符号後
の"10"をラン長符号として、引き続く"0011"をレベル差
符号として検出し、対応するラン長Δa1=3 、レベル差
Δn1=2を変化点算出部6808に供給する。
Specifically, the horizontal mode decoding unit 6806 notifies the operation control unit 6823 of the error, and the operation control unit 6823 controls the entire operation at the time of error as in the procedure of FIG. Here, assuming that the coded data string of the one-dimensional coding line is the coded data string shown in (d) of (1) of FIG. 4, the horizontal mode decoding unit 6806 causes the run length to be "10" after EOL1 coding. As the code, the subsequent "0011" is detected as a level difference code, and the corresponding run length Δa1 = 3 and level difference Δn1 = 2 are supplied to the change point calculation unit 6808.

【0171】この検出を順次繰り返して検出結果を変化
点算出部6808に供給する。この符号列の場合は、ラ
ン長とレベル差の検出結果は、図4の(1)の(b) のよ
うになる。変化点算出部6808は、水平モード復号部
6806よりペアで供給されるラン長Δajとレベル差Δ
njをもとに、順次変化点を算出していく。
This detection is sequentially repeated and the detection result is supplied to the change point calculation unit 6808. In the case of this code string, the run length and level difference detection results are as shown in (b) of (1) of FIG. The change point calculation unit 6808 supplies the run length Δaj and the level difference Δ supplied as a pair from the horizontal mode decoding unit 6806.
The change points are calculated sequentially based on nj.

【0172】具体的には、最初に供給されるラン長Δa1
とレベル差Δn1と基準変化点a0メモリの基準画素の位置
P0 と濃度レベルN(P0 )より、最初の算出変化点C1
の位置P1 と濃度レベルN(P1 )を P1 =P0 +Δa1 N(P1 )=N(P0 )+Δn1 C1=(P1 ,N(P1 )) のように算出する。
Specifically, the run length Δa1 supplied first
Based on the level difference Δn1, the reference change point a0, the position P0 of the reference pixel in the memory, and the density level N (P0), the first calculated change point C1
Position P1 and density level N (P1) are calculated as P1 = P0 + .DELTA.a1 N (P1) = N (P0) +. DELTA.n1 C1 = (P1, N (P1)).

【0173】そして、この算出変化点の情報を現ライン
変化点メモリ6812に供給するとともに、基準変化点
a0メモリ6807の記憶値a0を a0=C1 のように、更新する。
Then, the information of the calculated change point is supplied to the current line change point memory 6812, and the reference change point is stored.
The value a0 stored in the a0 memory 6807 is updated as a0 = C1.

【0174】このように、変化点算出部6808は、順
次、水平モード復号部6806よりペアで供給されるラ
ン長Δajとレベル差Δnjと、基準変化点a0メモリの記憶
値a0 a0=(Pj ,N(Pj )) より、j+1 番目の変化点Cj+1を Pj+1 =Pj +Δaj N(Pj+1 )=N(Pj )+Δnj Cj+1=(Pj+1 ,N(Pj+1 )) のように算出し、結果を現ライン変化点メモリ6812
に供給するとともに、基準変化点a0メモリ6807をCj
+1の変化点情報に更新する。
As described above, the change point calculation unit 6808 sequentially supplies the run length Δaj and the level difference Δnj supplied from the horizontal mode decoding unit 6806 in pairs, and the stored value a0 a0 = (Pj, Pj, N (Pj)), the j + 1th change point Cj + 1 is calculated as Pj + 1 = Pj + Δaj N (Pj + 1) = N (Pj) + Δnj Cj + 1 = (Pj + 1, N (Pj + 1) )) Is calculated and the result is calculated as the current line change point memory 6812.
To the reference change point a0 memory 6807 and Cj
Update to +1 change point information.

【0175】この変化点算出は、ライン終了検出部68
24にて、基準変化点a0メモリ6807の記憶変化点の
位置Pj が1ラインの所定画素数r以上かを検出し、検
出結果が肯定的になるまで継続する。あるいは、図16
のフロー図に示したようにラン長の総和値sumaがr以上
になった時をライン終了と判断するようにしてもよい。
This change point calculation is performed by the line end detection unit 68.
At 24, it is detected whether or not the position Pj of the storage change point of the reference change point a0 memory 6807 is equal to or more than the predetermined pixel number r of one line, and the operation is continued until the detection result becomes affirmative. Alternatively, FIG.
As shown in the flow chart of FIG. 5, the line end may be determined when the sum value sum of run lengths suma is equal to or greater than r.

【0176】この1ライン分の変化点Cjの算出の結果、
図4の(1)の(d) の符号列に対しては、現ライン変化
点メモリ6812には、図5に示したように、各変化点
Cjの位置Pj と濃度レベルN(Pj )がペアで記憶され
ることになる。画素復元部6813は、後述の受信エラ
ー検出部6815にてエラーが無いと検出された現ライ
ン変化点メモリ6812の変化点情報をもとに、復号化
ラインの多値画素列を多値画像ラインメモリ6814上
に復元する。
As a result of calculation of the change point Cj for one line,
For the code string of (d) in (1) of FIG. 4, the change points of the current line change point memory 6812 are as shown in FIG.
The position Pj of Cj and the density level N (Pj) are stored as a pair. The pixel restoration unit 6813, based on the change point information of the current line change point memory 6812 detected by the reception error detection unit 6815 described later that there is no error, converts the multi-valued pixel row of the decoding line into the multi-valued image line. Restored on memory 6814.

【0177】現ライン変化点メモリ6812の記憶変化
点情報を図5とすると、つぎのように多値画素列を復元
する。まず、ラインの先頭から、最初の変化点C1= (P
1 ,N(P1 ))=(3,2)の位置P1=3の直前の画素まで
を、濃度レベル0の画素列にする。変化点C1位置P1=3
から次の変化点C2=(4,3)の位置P2 =4の直前の画素ま
でを、濃度レベルN(P1 ))= 2の画素にし、変化点
C2位置P2 =4から変化点C3位置P3 =5の直前の画素
までを、濃度レベルN(P2 ))= 3の画素にする。
When the change point information stored in the current line change point memory 6812 is shown in FIG. 5, a multi-valued pixel row is restored as follows. First, the first change point C1 = (P
The pixel row up to the pixel immediately before the position P1 = 3 of 1, N (P1)) = (3,2) is set to the pixel row of the density level 0. Change point C1 position P1 = 3
From the next change point C2 = (4,3) to the pixel immediately before the position P2 = 4 is set to the pixel of the density level N (P1)) = 2, and the change point
The pixel from the C2 position P2 = 4 to the pixel immediately before the change point C3 position P3 = 5 is set to the pixel of the density level N (P2) = 3.

【0178】このように、順次、変化点Cj=(Pj ,N
(Pj ))の位置Pj から変化点Cj+1=(Pj+1 ,N
(Pj+1 ))の位置Pj+1 の直前の画素までを、濃度レ
ベルN(Pj )の画素で復元する。この画素復元部68
13による画素復元結果は、図4の(a) のようになる。
In this way, the change points Cj = (Pj, N
Change point Cj + 1 = (Pj + 1, N from position Pj of (Pj))
Up to the pixel immediately before the position Pj + 1 of (Pj + 1)) is restored with the pixel of the density level N (Pj). This pixel restoration unit 68
The pixel restoration result by 13 is as shown in FIG.

【0179】受信エラー検出部6815は、1次元復号
化処理中の水平モード復号部6806より出力される各
変化点間のラン長Δajとレベル差Δnjをもとに、1次元
符号化データ列中の誤りをつぎのように検出する。ラン
長総和検出部6816は、ライン先頭にて初期化された
ラン長総和検出値sumaにΔajを順次加算して1ライン分
のラン長の総和を検出する。また、レベル差総和検出部
6819は、ライン先頭にて初期化されたレベル差総和
検出値sumnにΔnjを順次加算して1ライン分のレベル差
の総和を検出する。
The reception error detection unit 6815 uses the run length Δaj and the level difference Δnj between the respective change points output from the horizontal mode decoding unit 6806 during the one-dimensional decoding process, in the one-dimensional encoded data string. The error of is detected as follows. The run length sum detection unit 6816 sequentially adds Δaj to the run length sum detection value suma initialized at the beginning of the line to detect the sum of run lengths for one line. Also, the level difference sum detection unit 6819 sequentially adds Δnj to the level difference sum detection value sumn initialized at the beginning of the line to detect the sum of the level differences for one line.

【0180】一致検出部6817は、ラン長総和検出値
sumaと1ラインの所定画素数rとの一致を検出し、一致
検出部6820は、レベル差総和検出値sumnが0か否か
を検出する。1次元符号化時において、ラインの先頭の
直前に配置した白の仮想画素とラインの終端直後の白の
仮想変化点を含めて、変化点間の距離(ラン長)と濃度
レベル差を符号化しているので、ラン長総和は、1ライ
ンの画素数rに、濃度レベル差の総和は0になるはずで
ある。
The coincidence detection unit 6817 has a run length sum detection value.
The match between the suma and the predetermined pixel number r of one line is detected, and the match detection unit 6820 detects whether the level difference sum total detection value sumn is 0 or not. At the time of one-dimensional encoding, the distance (run length) between the change points and the density level difference are encoded, including the white virtual pixel arranged immediately before the beginning of the line and the white virtual change point immediately after the end of the line. Therefore, the total run length should be the number r of pixels in one line, and the total sum of the density level differences should be zero.

【0181】よって、少なくとも1つの一致検出値の検
出結果が否定的の場合、1次元符号化データ中に誤りが
あると判断し、この旨を動作制御部6823に知らせ
る。動作制御部6823は、次の受信エラーのない1次
元復号化ラインの変化点算出が完了するまで、画素復元
部6813の動作を停止せしめる。つまり、画素復元部
はエラーのない復号化ラインの画素を多値画像ラインメ
モリ6814上に復元する。
Therefore, when the detection result of at least one coincidence detection value is negative, it is determined that there is an error in the one-dimensional encoded data, and the operation control unit 6823 is notified of this. The operation control unit 6823 stops the operation of the pixel restoration unit 6813 until the calculation of the change point of the next one-dimensional decoding line having no reception error is completed. That is, the pixel restoration unit restores the pixels of the error-free decoded line on the multi-valued image line memory 6814.

【0182】復号化ラインの画素復元が完了すると、現
ライン変化点メモリ6812の変化点情報は、次の符号
化ラインの復号化のために前ライン変化点メモリ681
1に転送され、同様な形式で記憶される。
When the pixel restoration of the decoded line is completed, the change point information of the current line change point memory 6812 is stored in the previous line change point memory 681 for decoding of the next encoded line.
1 and stored in a similar format.

【0183】(2次元復号化処理)次に、EOL0符号検出
後の2次元復号化処理の動作を説明する。図17に2次
元復号化処理の動作手順を示す。
(Two-dimensional decoding process) Next, the operation of the two-dimensional decoding process after detection of the EOL0 code will be described. FIG. 17 shows the operation procedure of the two-dimensional decoding process.

【0184】EOL1/0検出部6803は、EOL0符号を検出
すると、2次元符号化ラインの2次元復号化処理に先だ
って、基準変化点a0メモリの記憶値a0を、1次元復号化
処理と同様に、 a0=(Pa0、N(Pa0))=(0、
0) のように、仮想変化画素に初期化する。
Upon detecting the EOL0 code, the EOL1 / 0 detection unit 6803 changes the stored value a0 of the reference change point a0 memory in the same manner as in the one-dimensional decoding process prior to the two-dimensional decoding process of the two-dimensional coding line. , A0 = (Pa0, N (Pa0)) = (0,
0), and initializes to a virtual change pixel.

【0185】b1b2検出部6810は、多値符号化部63
のb1b2検出部8と同様に、基準変化点a0メモリの変化点
a0を基準に、参照変化点b1とb2を前ライン変化点メモリ
6811より検出し、その変化点情報を参照変化点b1b2
メモリ6809のb1メモリ、b2メモリに記憶する。ま
た、EOL1/0検出部6803は、EOL0符号を検出すると、
2次元符号化モード符号検出部6804の動作開始を指
示する。2次元符号化モード符号検出部6804は、EO
L0符号に引き続く符号列が、P 符号(パスモードを示す
符号)かH 符号(水平モードを示す符号)か、それ以外
(垂直モードで符号化された垂直符号語)かを検出す
る。
The b1b2 detection unit 6810 has a multi-level encoding unit 63.
Similar to the b1b2 detection section 8 of the reference change point a0 change point of the memory
The reference change points b1 and b2 are detected from the previous line change point memory 6811 based on a0, and the change point information is used as the reference change point b1b2.
The data is stored in the b1 memory and the b2 memory of the memory 6809. Further, when the EOL1 / 0 detection unit 6803 detects the EOL0 code,
The two-dimensional coding mode code detection unit 6804 is instructed to start operation. The two-dimensional coding mode code detection unit 6804 uses the EO
It is detected whether the code string following the L0 code is a P code (a code indicating the pass mode), an H code (a code indicating the horizontal mode), or any other code (a vertical code word encoded in the vertical mode).

【0186】以下、2次元符号化モード符号検出部68
04が、(1)P符号を検出した場合、(2)H符号を
検出した場合、および(3)P、H符号でない場合の動
作について説明する。(1)P符号を検出した場合は、
その旨を変化点算出部6808にしらせる。変化点算出
部6808は、P符号を検出した場合(パスモード復号
の場合)、基準変化点a0と参照変化点b2を a0= (Pa0,N(Pa0)) b2= (Pb2,N(Pb2))
Hereinafter, the two-dimensional coding mode code detection unit 68
The operation of 04 when (1) the P code is detected, (2) when the H code is detected, and (3) when it is not the P or H code will be described. (1) When the P code is detected,
The change point calculation unit 6808 is informed of that fact. When the P code is detected (in the case of pass mode decoding), the change point calculation unit 6808 sets the standard change point a0 and the reference change point b2 to a0 = (Pa0, N (Pa0)) b2 = (Pb2, N (Pb2) )

【0187】とすると、新たな基準変化点a0を a0= (Pb2,N(Pa0)) のように、濃度レベルは旧a0と同じくし、位置をb2の位
置にして、基準変化点a0メモリ6807の記憶値を更新
する。(これは、図17の"a0=b2の直下" に相当する処
理である)
Then, the new reference change point a0 is set to be the same as the old a0, the position is set to the position of b2, and the reference change point a0 memory 6807 is expressed as a0 = (Pb2, N (Pa0)). The stored value of is updated. (This is a process corresponding to "immediately below a0 = b2" in FIG. 17)

【0188】(2)H符号を検出した場合は、図18に
示す水平モード復号化手順で水平モード復号化処理を行
い、基準変化点a0を後述するa2で更新する。具体的に
は、2次元符号化モード符号検出部6804は、水平モ
ード復号部6806の動作開始を指示する。水平モード
復号部6806は、H 符号に引き続く符号列より、1次
元復号化処理時と同様に、ラン長符号R(Δa0)とレベ
ル差符号L(Δn0)をラン長復号テーブル、およびレベ
ル差復号テーブルをもとに検出し、対応するラン長Δa
0、レベル差Δn0を変化点算出部6808に供給する。
(2) When the H code is detected, the horizontal mode decoding process is performed by the horizontal mode decoding procedure shown in FIG. 18, and the reference change point a0 is updated with a2 described later. Specifically, the two-dimensional coding mode code detection unit 6804 instructs the horizontal mode decoding unit 6806 to start operation. The horizontal mode decoding unit 6806 determines the run length code R (Δa0) and the level difference code L (Δn0) from the code string following the H code in the run length decoding table and the level difference decoding as in the one-dimensional decoding process. Detected based on the table, the corresponding run length Δa
0 and the level difference Δn0 are supplied to the change point calculation unit 6808.

【0189】上記と同様に、引き続く符号列よりラン長
符号R(Δa1)とレベル差符号L(Δn1)を検出し、ラ
ン長Δa1とレベル差Δn1を変化点算出部6808に供給
する。変化点算出部6808は、H符号を検出した場合
(水平モード復号の場合)、基準変化点a0即ち、a0=
(Pa0,N(Pa0)) と、Δa0およびΔn0より、変化
点a1を a1= (Pa0+Δa0,N(Pa0)+Δn0)=(Pa1,N(Pa1)) のように算出し、
Similarly to the above, the run length code R (Δa1) and the level difference code L (Δn1) are detected from the subsequent code string, and the run length Δa1 and the level difference Δn1 are supplied to the change point calculation unit 6808. When the change point calculation unit 6808 detects the H code (in the case of horizontal mode decoding), the reference change point a0, that is, a0 =
From (Pa0, N (Pa0)) and Δa0 and Δn0, the change point a1 is calculated as a1 = (Pa0 + Δa0, N (Pa0) + Δn0) = (Pa1, N (Pa1)),

【0190】さらにa1と、Δa1およびΔn1より、変化点
a2を、a2= (Pa1+Δa1,N(Pa1)+Δn1)=(Pa
2,N(Pa2)) のように算出する。この算出結果
は、現ライン変化点メモリ6812に供給されるととも
に、変化点a2情報は、新たな基準変化点a0として、基準
変化点a0メモリ6807に記憶される。
Further, from a1 and Δa1 and Δn1, the change point
a2 is a2 = (Pa1 + Δa1, N (Pa1) + Δn1) = (Pa
2, N (Pa2)). This calculation result is supplied to the current line change point memory 6812, and the change point a2 information is stored in the reference change point a0 memory 6807 as a new reference change point a0.

【0191】(3)P、H符号でない場合は、図19に
示す垂直モード復号化手順で垂直モード復号化処理を行
い、基準変化点a0を後述するa1で更新する。具体的に
は、2次元符号化モード符号検出部6804は、垂直モ
ード復号部6805の動作開始を指示する。垂直モード
復号部6805は、符号化データ列より、図9に示した
垂直符号V(Δa ,Δn )と2次元的変位(Δa ,Δn
)を対応させた垂直復号テーブルをもとに、垂直符号
を検出し、対応する2次元的変位(Δa ,Δn )を変化
点算出部6808に供給する。
(3) If the code is not a P or H code, vertical mode decoding processing is performed in the vertical mode decoding procedure shown in FIG. 19, and the reference change point a0 is updated with a1 described later. Specifically, the two-dimensional coding mode code detection unit 6804 instructs the vertical mode decoding unit 6805 to start operation. The vertical mode decoding unit 6805 receives the vertical code V (Δa, Δn) and the two-dimensional displacement (Δa, Δn) shown in FIG. 9 from the encoded data string.
), The vertical code is detected based on the corresponding vertical decoding table, and the corresponding two-dimensional displacement (Δa, Δn) is supplied to the change point calculation unit 6808.

【0192】変化点算出部6808は、P、H符号でな
い場合(垂直モード復号の場合)、参照変化点b1として b1= (Pb1,N(Pb1)) と、Δa およびΔn より、変化点a1を a1= (Pb1+Δa ,N(Pb1)+Δn )=(Pa1,N(Pa1)) のように算出する。
If it is not a P or H code (in the case of vertical mode decoding), change point calculation section 6808 determines change point a1 from b1 = (Pb1, N (Pb1)) as reference change point b1 and Δa and Δn. It is calculated as a1 = (Pb1 + Δa, N (Pb1) + Δn) = (Pa1, N (Pa1)).

【0193】この変化点a1情報は、現ライン変化点メモ
リ6812に供給されるとともに、新たな基準変化点a0
として、基準変化点a0メモリ6807に記憶される。以
上のように、2次元復号化処理は、2次元符号化モード
符号検出部6804で符号化モードを検出し、対応する
復号化処理を行い、変化点を算出し、これを現ライン変
化点メモリ6812に記憶するとともに基準変化点a0を
更新し、このa0に対応して、b1b2検出部6810は参照
変化点b1,b2 を検出し、次の復号化処理の準備をする。
この繰り返しを、ライン終了検出部6824にて、基準
変化点a0の位置が1ラインの所定画素数r以上になるま
で行う。
This change point a1 information is supplied to the current line change point memory 6812 and a new reference change point a0 is set.
Is stored in the reference change point a0 memory 6807 as As described above, in the two-dimensional decoding process, the two-dimensional coding mode code detection unit 6804 detects the coding mode, performs the corresponding decoding process, calculates the change point, and stores the change point in the current line change point memory. The reference change point a0 is stored in the 6812 and the reference change point a0 is updated, and the b1b2 detection unit 6810 detects the reference change points b1 and b2 corresponding to this a0 and prepares for the next decoding process.
This repetition is repeated by the line end detection unit 6824 until the position of the reference change point a0 becomes equal to or greater than the predetermined number of pixels r in one line.

【0194】水平モード復号部6806および垂直モー
ド復号部6805において対応する符号を検出できなか
った場合は、符号化データ列の受信エラーを生じたもの
として、その旨を動作制御部6823に知らせる。動作
制御部6823は、このエラーのない復号化ラインの現
ライン変化点メモリ6812に記憶されている変化点情
報をもとに、画素復元部6813により、多値画像ライ
ンメモリ6814上に画素列を復元させる。
When the horizontal mode decoding unit 6806 and the vertical mode decoding unit 6805 cannot detect the corresponding codes, the operation control unit 6823 is notified that a reception error of the encoded data string has occurred. Based on the change point information stored in the current line change point memory 6812 of the error-free decoded line, the operation control unit 6823 causes the pixel restoration unit 6813 to create a pixel row in the multi-valued image line memory 6814. Restore.

【0195】2次元符号化ラインの符号化データ列を図
7の(5) 、参照ラインの変化点を図中の(1-1) とする
と、上記の2次元復号化処理により、図中の(2) に示す
画素列が復元されることになる。以上のようにして、多
値復号化部68によって復元された多値画像は、ライン
単位にN値誤差拡散部69に供給され、ディスプレイ7
0およびプリンタ71の画素当たりの階調表示能力nに
対応して、n値量子化される。
Assuming that the coded data string of the two-dimensional coded line is (5) in FIG. 7 and the change point of the reference line is (1-1) in the figure, the above two-dimensional decoding process results in The pixel row shown in (2) will be restored. As described above, the multi-valued image restored by the multi-valued decoding unit 68 is supplied to the N-valued error diffusion unit 69 line by line, and is displayed on the display 7.
0 and the n-value quantization corresponding to the gradation display capability n per pixel of the printer 71.

【0196】図20はN値誤差拡散部69の構成を示す
ブロック図である。同図において、6901はN値誤差
拡散部69の多値画像データの入力端子、6902は量
子化数Nを制御するn値制御信号入力端子、6903は
加算部、6904はN値量子化部、6905はN値量子
化部6904の入力濃度レベル値と量子化後の濃度レベ
ル値の差を算出する誤差算出部、である。
FIG. 20 is a block diagram showing the structure of the N-value error diffusion unit 69. In the figure, 6901 is an input terminal for multi-valued image data of the N-value error diffusion section 69, 6902 is an n-value control signal input terminal for controlling the quantization number N, 6903 is an addition section, 6904 is an N-value quantization section, Reference numeral 6905 denotes an error calculation unit that calculates the difference between the input density level value of the N-value quantization unit 6904 and the density level value after quantization.

【0197】6906は誤差拡散フィルタ部、6907
から6913は誤差拡散フィルタ部6906を構成する
要素で、6907はすくなくとも1ライン分の各画素の
量子化誤差を記憶する誤差ラインメモリ、6908、6
909はタイミング合わせ用のディレイ手段、691
0、6911および6912は各入力の量子化誤差値に
対応した補正値を出力する重み付け部、6913は重み
付け部6910と6912および6913の各出力を加
算する加算部、6914はN値誤差拡散部69の出力端
子である。
Reference numeral 6906 denotes an error diffusion filter section, 6907.
To 6913 are elements constituting the error diffusion filter unit 6906, and 6907 is an error line memory for storing the quantization error of each pixel for at least one line, 6908, 6
Reference numeral 909 denotes a delay unit for timing adjustment, 691
0, 6911 and 6912 are weighting units that output correction values corresponding to the quantization error values of the respective inputs, 6913 is an addition unit that adds the outputs of the weighting units 6910 and 6912 and 6913, and 6914 is an N-value error diffusion unit 69. Output terminal.

【0198】N値誤差拡散部69は、多値画像データ入
力端子6901より多値画像データXi,j(i は副走査方
向位置、j は主走査方向位置)を取り込み、加算部69
03にて、誤差拡散フィルタ部6906の出力値ESi,j
と加算してN値量子化部6904に供給する。N値量子
化部6904は、n値制御信号入力端子6902より供
給されるn値制御値nに対応して、入力値Di,jをn値に
量子化する。
The N-value error diffusion unit 69 takes in the multi-valued image data Xi, j (i is the sub-scanning direction position, j is the main scanning direction position) from the multi-valued image data input terminal 6901, and the adding unit 69
03, the output value ESi, j of the error diffusion filter unit 6906
And is supplied to the N-value quantization unit 6904. The N-value quantizer 6904 quantizes the input value Di, j into an n-value corresponding to the n-value control value n supplied from the n-value control signal input terminal 6902.

【0199】誤差算出部6905はN値量子化部690
4の入力値Di,jと量子化後の値Yi,jの差Ei,jを、 Ei,j
=Di,j-Yi,j のように算出し、誤差拡散フィルタ部69
06に供給する。この量子化誤差Ei,jは、ディレイ69
08を介して重み付け部6910に供給されるととも
に、誤差ラインメモリ6907に供給され一時記憶され
る。
The error calculation unit 6905 has an N-value quantization unit 690.
The difference Ei, j between the input value Di, j of 4 and the quantized value Yi, j is
= Di, j-Yi, j, and the error diffusion filter unit 69
Supply to 06. This quantization error Ei, j is
It is supplied to the weighting unit 6910 via 08 and is also supplied to the error line memory 6907 for temporary storage.

【0200】誤差ラインメモリ6907は、入力画素値
Xi,jの画素位置j に対応して前ラインの量子化誤差Ei-
1,jとEi-1,j+1を出力し、Ei-1,jをディレイ6909を
介して重み付け部6911に、Ei-1,j+1を重み付け部6
912に供給する。重み付け部6910、6911およ
び6912は各入力の量子化誤差値に補正係数a,b,c を
乗算した補正値を出力する。これらの各重み付け部の出
力値は、加算部6913で加算され、加算部6903で
入力値Xi,jに加算される。
The error line memory 6907 stores the input pixel value.
Quantization error Ei- of the previous line corresponding to pixel position j of Xi, j
1, j and Ei-1, j + 1 are output, Ei-1, j is sent to the weighting unit 6911 via the delay 6909, and Ei-1, j + 1 is sent to the weighting unit 6
Supply to 912. The weighting units 6910, 6911 and 6912 output a correction value obtained by multiplying the quantization error value of each input by the correction coefficient a, b, c. The output values of these weighting units are added by the addition unit 6913, and added by the addition unit 6903 to the input value Xi, j.

【0201】誤差拡散フィルタ6906の出力値(加算
部6913の出力値)をESi,j とすると、 ESi,j=a*Ei,j-1 + b*Ei-1,j + c*Ei-1,j+1 ただし、a+b+c ≦1 となり、加算部6903の出力値Di,jは Di,j=Xi,j + Ei,j となる。このDi,jがN値量子化部6904でn値に量子
化され、量子化値Yi,jが出力端子6914より出力され
る。
Let ESi, j be the output value of the error diffusion filter 6906 (output value of the adder 6913), ESi, j = a * Ei, j-1 + b * Ei-1, j + c * Ei-1 , j + 1 However, a + b + c ≦ 1, and the output value Di, j of the adder 6903 becomes Di, j = Xi, j + Ei, j. This Di, j is quantized into an n value by the N-value quantization unit 6904, and the quantized value Yi, j is output from the output terminal 6914.

【0202】図21は、このN値誤差拡散部69の動
作、特に誤差拡散フィルタ部6906の誤差の拡散の様
子を示す説明図で、i は副走査方向位置、j は主走査方
向位置を示す。図中(a)に示すように、量子化する注
目画素をSi,j(×印)とすると、(1) に示す前ラインの
画素Si-1,jの量子化誤差(誤差ラインメモリに記憶され
ている値)Ei-1,jが補正係数bで補正され注目画素Si,j
の濃度レベルに加算される。
FIG. 21 is an explanatory diagram showing the operation of the N-value error diffusion section 69, and in particular the manner of error diffusion by the error diffusion filter section 6906, where i is the sub-scanning direction position and j is the main scanning direction position. . As shown in (a) in the figure, if the pixel of interest to be quantized is Si, j (x mark), the quantization error of the pixels Si-1, j on the previous line shown in (1) (stored in the error line memory Value) Ei-1, j is corrected by the correction coefficient b and the target pixel Si, j
Is added to the density level of.

【0203】同様に、前ラインの画素Si-1,j+1の量子化
誤差Ei-1,j+1が補正係数cで補正され注目画素に加算さ
れる。さらに、現ラインの注目画素の直前の画素Si,j-1
の量子化誤差Ei,j-1が注目画素に加算される。言い替え
ると、図中(b)に示すように注目画素(×印)の量子
化誤差が補正係数a,b,c で補正されたものが周辺の画素
に配分される。このように、量子化誤差を周辺画素に拡
散していくので、N値量子化前後の画像の平均濃度を一
致させることができる。
Similarly, the quantization errors Ei-1, j + 1 of the pixels Si-1, j + 1 on the previous line are corrected by the correction coefficient c and added to the target pixel. Further, the pixel Si, j-1 immediately before the pixel of interest on the current line is
The quantization error Ei, j-1 of is added to the pixel of interest. In other words, as shown in (b) in the figure, the quantization error of the target pixel (marked by x) corrected by the correction coefficients a, b, c is distributed to the peripheral pixels. Since the quantization error is diffused to the peripheral pixels in this way, the average densities of the images before and after the N-value quantization can be matched.

【0204】図22は、N値量子化部6904の構成を
示すブロック図である。同図において、69041はN
値量子化部6904の入力端子、69042は入力端子
69041の入力値Di,jを2値に量子化する2値量子化
テーブル、69043はDi,jを3値に量子化する3値量
子化テーブル、69044はDi,jをN値に量子化するN
値量子化テーブル、69045は各テーブルの量子化出
力をn値制御値入力端子6902の値nに対応したn値
量子化テーブルの量子化出力を選択し、出力するセレク
タ、6914はN値量子化部69の出力端子である。
FIG. 22 is a block diagram showing the structure of N-value quantization section 6904. In the figure, 69041 is N
An input terminal of the value quantization unit 6904, 69042 is a binary quantization table that quantizes the input value Di, j of the input terminal 69041 into a binary value, and 69043 is a ternary quantization table that quantizes Di, j into a ternary value. , 69044 quantizes Di, j into N values N
A value quantization table, 69045 is a selector for selecting and outputting the quantization output of each table as the quantization output of the n-value quantization table corresponding to the value n of the n-value control value input terminal 6902, 6914 is an N-value quantization The output terminal of the unit 69.

【0205】図では2、3およびN値量子化テーブルの
みを示しているが、実際には2からNまでの複数の量子
化テーブルを有する。量子化入力値Di,jは、各量子化テ
ーブルに入力され各n値量子化値がセレクタ69045
に供給される。例えば、量子化入力値を0〜255とす
ると、3値量子化テーブル69043は、入力値に対応
して3値(0、128、255)のいずれかの値を出力
する。セレクタ69045はn値制御値nに対応してn
値量子化テーブルの量子化値Yi,jを選択し、出力端子6
914に出力する。
Although only two, three and N-value quantization tables are shown in the figure, in reality, there are a plurality of quantization tables from 2 to N. The quantized input value Di, j is input to each quantization table and each n-value quantized value is selected by the selector 69045.
Is supplied to. For example, when the quantized input value is 0 to 255, the ternary quantization table 69043 outputs any one of three values (0, 128, 255) corresponding to the input value. The selector 69045 has n values corresponding to the n-value control value n.
Select the quantized value Yi, j in the value quantization table and output terminal 6
Output to 914.

【0206】n値制御値nは、N値制御部72より供給
される。N値制御部72は、接続されているディスプレ
イ70とプリンタ71の1画素当たりの階調表現能力に
応じて、n値を出力する。
The n-value control value n is supplied from the N-value control unit 72. The N-value control unit 72 outputs an n-value according to the gradation expression capability per pixel of the connected display 70 and printer 71.

【0207】例えば、ディスプレイ70の階調数をnd
、プリンタ71の階調数をnp 、N値誤差拡散部69
の入力階調数をni とし、 np <nd ≦ni とすると、ディスプレイ70で多値画像を再現表示する
場合は、制御値nをndにし、プリンタ71で多値画像
を再現印字する場合は、制御値nをnp に設定する。
For example, if the number of gradations of the display 70 is nd
, The number of gradations of the printer 71 is np, and the N-value error diffusion unit 69
If the number of input grayscales is set to ni and np <nd ≤ ni, the control value n is set to nd when the multi-valued image is reproduced and displayed on the display 70, and the multi-valued image is reproduced and printed by the printer 71. Set the control value n to np.

【0208】このように、ディスプレイ、プリンタの階
調数に合わせて量子化し、多値画像を再現するので、デ
ィスプレイ70、プリンタ71の表示、印字能力を最大
限生かした多値画像を得ることができる。(第2の実施
例の効果)
As described above, since the multivalued image is reproduced by quantizing in accordance with the number of gradations of the display and the printer, it is possible to obtain the multivalued image which maximizes the display and printing capabilities of the display 70 and the printer 71. it can. (Effect of the second embodiment)

【0209】以上説明したように、本発明の第2の実施
例では、(1) 文字・線画などの2値画像領域の画素をそ
の画素の濃度レベルに応じて白(最小濃度レベル)ある
いは黒(最大濃度レベル)に2値化するので、この領域
では、変化点は白から黒への変化画素と黒から白への変
化画素の2種類となり、濃度レベル差符号L(Δn )の
内Δn の正負の最大値に対する符号語を短い符号長の符
号語に割り当てることにより、この2値画像領域は、第
1の実施例の多値画像符号化方法で従来のMR符号とほ
ぼ同じ符号化効率で符号化できる。
As described above, in the second embodiment of the present invention, (1) a pixel in a binary image area such as a character / line drawing is white (minimum density level) or black depending on the density level of the pixel. Since the value is binarized to (maximum density level), there are two types of change points in this area, a change pixel from white to black and a change pixel from black to white, and Δn in the density level difference code L (Δn) By assigning the code word for the positive and negative maximum values of the code word of the short code length, this binary image area is almost the same coding efficiency as the conventional MR code in the multi-valued image coding method of the first embodiment. Can be encoded with.

【0210】つまり、多値画像領域の高い符号化効率を
期待できるとともに、2値画像領域は、エッジ強調によ
り鮮明な2値画にされ、しかも従来とほぼ同じ高い符号
化効率を得ることができる。また、(2) 多値符号化され
た画像あるいは受信された多値画像は、ディスプレイ、
プリンタの表示・印字階調数nに対応して、N値誤差拡
散法によりn値に量子化し、多値画像を表示・印字する
ので、表示・印字階調能力を生かした最良の多値画像を
得ることができる。
That is, it is possible to expect a high coding efficiency in the multi-valued image area, and the binary image area is made into a sharp binary image by edge emphasis, and moreover, a high coding efficiency similar to the conventional one can be obtained. . In addition, (2) the multi-value encoded image or the received multi-valued image is displayed,
Corresponding to the number n of display / print gradation levels of a printer, the multi-value image is displayed / printed by quantizing to n values by the N-value error diffusion method. Can be obtained.

【0211】[第3の実施例]図23は、本発明の第3
の実施例の構成を示すブロック図である。この第3の実
施例は、文字・線画や写真などの多値画像を読取り符号
化して蓄積あるいは伝送する画像伝送装置(例えばファ
クシミリ装置)である。
[Third Embodiment] FIG. 23 shows the third embodiment of the present invention.
3 is a block diagram showing the configuration of the embodiment of FIG. The third embodiment is an image transmission apparatus (for example, a facsimile apparatus) that reads and encodes a multivalued image such as a character / line drawing or a photograph and stores or transmits it.

【0212】具体的には、図24の(1)に示すよう
に、2値画像領域と多値画像領域が混在する多値画像原
稿を読取り、(2)に示す多値画像領域を白化した2値
画像と(3)に示す2値画像領域を白化した多値画像の
2面に分離し、分離された2値画像面を従来のMR符号
化で、分離された多値画像面を第1の実施例で示した多
値画像符号化方法で符号化し、2値MR符号化ラインデ
ータと多値符号化ラインデータをペアにして1ライン分
を構成し、伝送するようにしたものである。
Specifically, as shown in (1) of FIG. 24, a multi-valued image original in which a binary image area and a multi-valued image area are mixed is read, and the multi-valued image area shown in (2) is whitened. The binary image and the binary image area shown in (3) are separated into two surfaces of a whitened multivalued image, and the separated binary image surface is subjected to conventional MR encoding to separate the separated multivalued image surface into The multi-valued image encoding method shown in the first embodiment is used for encoding, and binary MR encoded line data and multi-valued encoded line data are paired to form one line for transmission. .

【0213】図23において、図11の第2の実施例と
同一の機能を有するものは同一の番号を付している。8
0は、像域判定部58による注目画素の像域判定結果が
2値画像の場合、2値量子化部60の2値量子化値を選
択出力し、判定結果が多値画像の場合、最小濃度レベル
(白)を選択出力するセレクタ、81は像域判定結果
が、2値の場合、最小濃度レベル(白)を選択出力し、
判定結果が多値画像の場合、ガンマ補正部57の補正結
果を選択出力するセレクタ、である。
In FIG. 23, those having the same functions as those in the second embodiment of FIG. 11 are designated by the same reference numerals. 8
When the image area determination result of the pixel of interest by the image area determination unit 58 is a binary image, 0 selects and outputs the binary quantization value of the binary quantization unit 60, and when the determination result is a multi-valued image, the minimum value is set. The selector 81 for selectively outputting the density level (white), 81 outputs the minimum density level (white) when the image area determination result is binary,
When the determination result is a multi-valued image, the selector selectively outputs the correction result of the gamma correction unit 57.

【0214】82はセレクタ80の出力値を画素単位に
一時記憶する2値ラインバッファメモリ、83は2値ラ
インバッファメモリ82からの出力を従来のMR符号化
法(2値MR符号化と称す)で符号化する2値MR符号
化部、84は2値MR符号化部83の符号化結果と多値
符号化結果を選択して出力するセレクタ、85は蓄積メ
モリ66からの2値MR符号化データを復号化する2値
MR復号化部、86は2値MR復号化部の復号化結果を
少なくとも1ライン分記憶する(1画素当たり1ビット
で)2値ラインメモリ、である。
Reference numeral 82 is a binary line buffer memory for temporarily storing the output value of the selector 80 in pixel units, and reference numeral 83 is an output from the binary line buffer memory 82 in the conventional MR encoding method (referred to as binary MR encoding). A binary MR encoding unit that encodes in accordance with 1., a selector 84 that selects and outputs the encoding result of the binary MR encoding unit 83 and the multilevel encoding result, and 85 is a binary MR encoding from the storage memory 66. A binary MR decoding unit that decodes data, and 86 is a binary line memory that stores at least one line of the decoding result of the binary MR decoding unit (1 bit per pixel).

【0215】87は2値ラインメモリ86の出力値(1
/0)に対応し、最大濃度レベルあるいは最小濃度レベ
ルを出力する濃度復元部、88は濃度復元部87の出力
濃度レベル値とN値誤差拡散部69の出力濃度レベル値
を画素単位に加算して出力する濃度加算部である。
87 is the output value of the binary line memory 86 (1
/ 0) corresponding to the maximum density level or the minimum density level, and 88 adds the output density level value of the density recovery section 87 and the output density level value of the N-value error diffusion section 69 in pixel units. It is a density addition unit that outputs the output.

【0216】第3の実施例の動作を説明する。ここで
は、第2の実施例の動作と異なる部分を主に説明する。
原稿を読取センサ50で読取り、A/D変換後シェーデ
ィング補正された読取ラインの濃度レベルを、図25の
(1)とし、この読取ラインと前ラインの読取結果をも
とにした像域判定部58の判定結果を、図25の(2)
示す判定結果とすると、セレクタ80とセレクタ81
は、この像域判定結果に対応して、次のように制御され
る。
The operation of the third embodiment will be described. Here, the part different from the operation of the second embodiment will be mainly described.
An image area determination unit based on the reading result of this reading line and the preceding line is shown in FIG. 25, where the density level of the reading line is read by the reading sensor 50 and subjected to shading correction after A / D conversion. The determination result of 58 is (2) in FIG.
Given the determination result shown, the selector 80 and the selector 81
Is controlled as follows in accordance with this image area determination result.

【0217】セレクタ80は、図25の(3)に示すよ
うに、像域判定結果が2値画像領域の時、エッジ強調部
55でエッジ強調され2値量子化部60で2値量子化さ
れた結果を選択し出力する。像域判定結果が多値画像領
域の時は、白(濃度レベル最小値)を選択し出力する。
つまり、セレクタ80は、多値画像領域を白化した2値
画像データ(1画素当たり1ビット)を出力する。
As shown in (3) of FIG. 25, the selector 80 is edge-enhanced by the edge emphasizing section 55 and binary-quantized by the binary quantizing section 60 when the image area determination result is a binary image area. The selected result is output. When the image area determination result is a multi-valued image area, white (minimum density level) is selected and output.
That is, the selector 80 outputs the binary image data (1 bit per pixel) in which the multi-valued image area is whitened.

【0218】セレクタ81は、図25の(4)に示すよ
うに、像域判定結果が2値画像領域の時、白(濃度レベ
ル最小値)を選択し出力する。像域判定結果が多値画像
領域の時は、平滑化部56で平滑化されガンマ補正部5
7で濃度補正された結果を選択し出力する。つまり、セ
レクタ81は2値画像領域を白化した多値画像データ
(1画素当たり複数ビット)を出力する。
As shown in (4) of FIG. 25, the selector 81 selects and outputs white (minimum density level) when the image area determination result is a binary image area. When the image area determination result is a multi-valued image area, it is smoothed by the smoothing unit 56 and the gamma correction unit 5
In step 7, the result of density correction is selected and output. That is, the selector 81 outputs multi-valued image data (a plurality of bits per pixel) in which the binary image area is whitened.

【0219】セレクタ80の出力は2値ラインバッファ
メモリに一時記憶され、セレクタ81の出力はラインバ
ッファメモリ62に一時記憶される。2値MR符号化部
83は、2値ラインバッファメモリ82より出力される
2値画像データをライン単位にMR符号化する。MR
(モディファイド・リード)符号化は、ファクシミリな
どで一般的に使用される2値画像の符号化方法で、ここ
では説明を割愛する。
The output of the selector 80 is temporarily stored in the binary line buffer memory, and the output of the selector 81 is temporarily stored in the line buffer memory 62. The binary MR encoding unit 83 MR-encodes the binary image data output from the binary line buffer memory 82 on a line-by-line basis. MR
The (Modified Read) encoding is a binary image encoding method generally used in a facsimile or the like, and the description thereof is omitted here.

【0220】多値符号化部63は、ラインバッファメモ
リ62より出力される多値画像データをライン単位に多
値符号化する。符号化方法は第1の実施例で説明した符
号化方法である。図23の(4)と(5)に、各読取ラ
インに対する2値MR符号化と多値符号化の様子を示
す。(4)が2値MR符号化、(5)が多値符号化の1
/2次元符号化のラインを示している。図ではkファク
ター値=4の場合を示している。
The multi-value encoding unit 63 multi-value encodes the multi-valued image data output from the line buffer memory 62 on a line-by-line basis. The coding method is the coding method described in the first embodiment. 23 (4) and (5) show the states of binary MR coding and multilevel coding for each reading line. (4) is binary MR coding, and (5) is multi-level coding 1
2 shows a line for two-dimensional encoding. The figure shows the case where the k factor value = 4.

【0221】図に示すように、ラインiの2値画像デー
タを2値MR符号化における1次元符号化(いわゆるM
H符号化)をし、多値画像データを多値符号化における
1次元符号化をする。次のラインi+1,i+2、i+
3の2値画像データを2値MR符号化における2次元符
号化(MR)をし、多値画像データを多値符号化におけ
る2次元符号化をする。上記4ラインの処理を繰り返し
ていく。
As shown in the figure, the binary image data of line i is subjected to one-dimensional coding (so-called M
H-encoding), and multi-valued image data is one-dimensionally encoded in multi-valued encoding. Next line i + 1, i + 2, i +
The binary image data of No. 3 is subjected to two-dimensional encoding (MR) in binary MR encoding, and the multi-valued image data is subjected to two-dimensional encoding in multi-level encoding. The above four lines are repeated.

【0222】図26の(1)に示すように、各読取ライ
ンiの2値MR符号化部83による2値MR符号化デー
タ(a)と多値符号化部63による多値符号化データ
(A)は、セレクタ84を介して、図26の(2)に示
すような順で、蓄積メモリ66に供給される。つまり、
読取ライン毎に、2値MR符号化データに引き続き多値
符号化データがセレクタ84を介して蓄積メモリ66に
一時記憶される。
As shown in (1) of FIG. 26, the binary MR encoded data (a) by the binary MR encoding unit 83 of each reading line i and the multivalued encoded data ( 26A is supplied to the storage memory 66 through the selector 84 in the order shown in FIG. That is,
Following the binary MR encoded data, the multilevel encoded data is temporarily stored in the storage memory 66 via the selector 84 for each reading line.

【0223】図中のEOL1は2値MR符号化において、引
き続く符号化データ列が1次元符号化された符号化デー
タ列であることを示す符号、EOL0は2値MR符号化にお
いて、引き続く符号化データ列が2次元符号化された符
号化データ列であることを示す符号、EOLM1 は多値符号
化において、引き続く符号化データ列が1次元符号化さ
れた符号化データ列であることを示す符号、EOLM0 は多
値符号化において、引き続く符号化データ列が2次元符
号化された符号化データ列であることを示す符号であ
る。
In the figure, EOL1 is a code indicating that the subsequent encoded data sequence is a one-dimensionally encoded encoded data sequence in binary MR encoding, and EOL0 is a subsequent encoding in binary MR encoding. A code indicating that the data string is a two-dimensional coded coded data string, and EOLM1 is a code indicating that the subsequent coded data string is a one-dimensional coded coded data string in multi-level coding. , EOLM0 is a code indicating that the subsequent encoded data sequence is a two-dimensionally encoded data sequence in multi-level encoding.

【0224】これらの符号化された符号化データ列は、
伝送の場合は、蓄積メモリ66より、図26の(2)に
示した順でモデム64を介して回線65に送出される。
上記の様に符号化された多値画像を受信した場合は、受
信符号化データは蓄積メモリ66を介して、復号化のた
めに2値MR符号化部85と多値復号化部68に図26
の(2)の順で供給される。
These encoded data strings are
In the case of transmission, the data is sent from the storage memory 66 to the line 65 via the modem 64 in the order shown in (2) of FIG.
When the multi-valued image coded as described above is received, the received coded data is sent to the binary MR coding unit 85 and the multi-level decoding unit 68 for decoding via the storage memory 66. 26
It is supplied in the order of (2).

【0225】また、自身の装置で画像を符号化し、一旦
蓄積メモリ66に記憶し、オフラインで復元(いわゆる
オフラインのCOPY動作)の場合も、同様に(2)の
順で蓄積メモリ66より読み出し、2値MR符号化部8
5と多値復号化部68に供給される。
Also, in the case where the image is encoded by its own device, temporarily stored in the storage memory 66, and restored offline (so-called offline COPY operation), the same is read from the storage memory 66 in the order of (2), Binary MR encoding unit 8
5 and the multilevel decoding unit 68.

【0226】2値MR復号化部85は、EOL1符号および
EOL0符号を検出し、引き続く符号化データ列を2値MR
復号化を行う。EOL1符号を検出後は、引き続く符号化デ
ータ列を、1次元復号化処理(いわゆるMH復号)を行
い、EOL0符号を検出後は、引き続く符号化データ列を、
2次元復号化処理(MR復号)を行う。復号化結果は2
値ラインメモリ86にライン単位で一時記憶される。
The binary MR decoding unit 85 uses the EOL1 code and
EOL0 code is detected and the subsequent encoded data string is binary MR
Decrypt. After detecting the EOL1 code, the subsequent encoded data string is subjected to one-dimensional decoding processing (so-called MH decoding), and after detecting the EOL0 code, the subsequent encoded data string is
Two-dimensional decoding processing (MR decoding) is performed. The decryption result is 2
The value line memory 86 is temporarily stored line by line.

【0227】2値ラインメモリ86の2値画像データ
(1画素当たり1ビットで、白/黒を表現)は、濃度復
元部87にて、各画素の記憶値に対応して、最小濃度レ
ベル値(白)あるいは最大濃度レベル値(黒)が復元さ
れる。この最小濃度レベル値と最大濃度レベル値は、多
値画像の符号化における最小濃度レベル値、最大濃度レ
ベル値と同じ値で、例えば、多値画像を濃度レベル0
(白)から濃度レベル63(黒)で符号化した場合は、
最小濃度レベル値は0、最大濃度レベル値は63とな
る。濃度復元部87の2値画像の濃度復元結果は、濃度
加算部88に供給される。
The binary image data in the binary line memory 86 (1 bit per pixel represents white / black) is converted into the minimum density level value by the density restoring unit 87 in correspondence with the stored value of each pixel. (White) or the maximum density level value (black) is restored. The minimum density level value and the maximum density level value are the same as the minimum density level value and the maximum density level value in the encoding of the multi-valued image.
When encoding from (white) to density level 63 (black),
The minimum density level value is 0 and the maximum density level value is 63. The density restoration result of the binary image by the density restoration unit 87 is supplied to the density addition unit 88.

【0228】多値復号化部68は、EOLM1 符号およびEO
LM0 符号を検出し、(図14に示した多値復号化部68
のEOL1/0符号検出部6803の検出符号を、EOL1符号を
EOLM1 符号に、EOL0符号をEOLM0 符号に変更して)引き
続く符号化データ列を多値復号化を行う。EOLM1 符号を
検出後は、引き続く符号化データ列を1次元復号化処理
を行い、EOLM0 符号を検出後は、引き続く符号化データ
列を2次元復号化処理を行う。
The multi-level decoding unit 68 uses the EOLM1 code and EO
The LM0 code is detected, and the multilevel decoding unit 68 shown in FIG.
The detection code of the EOL1 / 0 code detection unit 6803 of
EOLM1 code, EOL0 code is changed to EOLM0 code) and the subsequent encoded data string is multi-value decoded. After detecting the EOLM1 code, the subsequent encoded data sequence is subjected to one-dimensional decoding processing, and after detecting the EOLM0 code, the subsequent encoded data sequence is subjected to two-dimensional decoding processing.

【0229】多値復号化部68にて多値復号化された結
果は、N値誤差拡散部69において、N値制御部72か
らのn値制御値nに対応して、n値に再量子化され濃度
加算部88に供給される。濃度加算部88では、N値誤
差拡散部69からのn値量子化された復号化ラインiの
多値画像データ(最小濃度レベルから最大濃度レベルま
での値を取り得る)と、2値ラインメモリ86に一時記
憶され、濃度復元部87で濃度復元された復号化ライン
iの2値画像データ(最小濃度レベルか最大濃度レベル
かのいずれかの値をとる)が、対応する画素単位に加算
される。
The result of the multi-value decoding by the multi-value decoding unit 68 is requantized into an n-value by the N-value error diffusion unit 69 in correspondence with the n-value control value n from the N-value control unit 72. And is supplied to the density addition unit 88. In the density addition unit 88, the n-value quantized multivalued image data of the decoded line i from the N-value error diffusion unit 69 (which can take values from the minimum density level to the maximum density level) and the binary line memory The binary image data of the decoded line i (which takes either the minimum density level or the maximum density level) temporarily stored in 86 and density-restored by the density restoration unit 87 is added to the corresponding pixel unit. It

【0230】これによって、2値画像と多値画像が分離
され、独自に符号化されていたものが、ここで合成さ
れ、読取画像あるいは受信画像が復元される。濃度加算
部88の出力は、ディスプレイ70あるいはプリンタ7
1に供給され画像が再現される。
As a result, the binary image and the multi-valued image are separated, and those originally encoded are combined here to restore the read image or the received image. The output of the density addition unit 88 is the display 70 or the printer 7.
1 and the image is reproduced.

【0231】図27に2値画像と多値画像の復号化後か
ら、両者の合成に至る様子を示す。(1)は2値MR復
号化結果で、各画素は白画素か黒画素かを示す1ビット
で表現されている。図では黒画素を1で、白画素を0で
示している。(2)は濃度復元結果で、黒画素の場合は
最大濃度レベル値、白画素の場合は最小濃度レベル値と
なる。(3)はN値誤差拡散結果で、(4)は濃度加算
部88による(2)の2値画像領域と(3)の多値画像
領域の濃度加算結果である。
FIG. 27 shows how a binary image and a multi-valued image are decoded and then combined. (1) is a binary MR decoding result, and each pixel is represented by 1 bit indicating whether it is a white pixel or a black pixel. In the figure, black pixels are indicated by 1 and white pixels are indicated by 0. (2) is the density restoration result, which is the maximum density level value for black pixels and the minimum density level value for white pixels. (3) is the N-value error diffusion result, and (4) is the density addition result of the binary image area of (2) and the multi-valued image area of (3) by the density addition unit 88.

【0232】図27の(5)は、N値誤差拡散部69に
おけるn値を(3)の場合より小さく(粗く)した場合
の多値画像の再量子化結果で、(6)は先の(2)の2
値画像と(5)の多値画像を濃度加算して、両者を合成
した結果である。
FIG. 27 (5) shows the result of requantization of the multi-valued image when the n value in the N-value error diffusion unit 69 is made smaller (coarse) than in the case of (3). 2 of (2)
It is the result of adding the densities of the value image and the multivalued image of (5) and combining the two.

【0233】(第3の実施例の効果)以上説明したよう
に、第3の実施例では、2値画像と多値画像の混在する
画像を2値画像領域と多値画像領域に分離し、多値画像
領域を白化した2値画像面と2値画像領域を白化した多
値画像面を、それぞれ画像の性質に対応した符号化効率
の高い符号化方法で符号化できるので、トータルとして
高い符号化効率が期待でき、画像の蓄積におけるメモリ
容量の低減を図ることができるとともに、画像伝送にお
いても伝送時間の短縮化を図ることができる。
(Effect of the Third Embodiment) As described above, in the third embodiment, an image in which a binary image and a multivalued image are mixed is separated into a binary image area and a multivalued image area, Since the binary image plane in which the multi-valued image area is whitened and the multi-valued image plane in which the binary image area is whitened can be coded by a coding method having a high coding efficiency corresponding to the property of the image, respectively, a high total coding is possible. Efficiency can be expected, the memory capacity for image storage can be reduced, and the transmission time for image transmission can be shortened.

【0234】特に、白化領域の符号化においては、変化
点が存在しないので、2次元符号化時にはこの白化領域
による符号量の増大は無い。1次元符号化時に、この白
領域のラン長を表現する符号が必要となるが、kファク
タ値を大きくすることにより増加の割合は微小にするこ
とができる。むしろ、それぞれ画像の性質に対応した符
号化方法をとることによってトータルの符号化効率の向
上を図ることが期待できる。
In particular, since there is no change point in the coding of the whitened area, there is no increase in the code amount due to the whitened area in the two-dimensional coding. At the time of one-dimensional encoding, a code expressing the run length of this white area is required, but the increase rate can be made minute by increasing the k factor value. Rather, it can be expected that the total coding efficiency can be improved by adopting a coding method corresponding to each image property.

【0235】また、2値画像領域と多値画像領域を分離
して、蓄積あるいは伝送するので、画像復元時に多値画
像の濃度特性(いわゆるガンマ特性)を、受信側におい
て、ディスプレイ70あるいはプリンタ71の濃度特性
に合わせるように、あるいは受信側の好みに応じて、加
工修正することも可能になる。また、2値画像の濃度も
多値画像とは独立に白、黒の濃度、色を変化させること
も可能となる。このように、性質の異なる画像を分離し
て蓄積、伝送するので、画像復元時に、2値画像と多値
画像を独立に、様々な修正加工が可能となる。
Further, since the binary image area and the multi-valued image area are separated and stored or transmitted, the density characteristic (so-called gamma characteristic) of the multi-valued image is restored at the time of image restoration on the display 70 or printer 71 on the receiving side. It is also possible to modify the processing so as to match the density characteristics of the above or according to the preference of the receiving side. In addition, the density of the binary image can be changed independently of the density of the multi-valued image. In this way, since images having different properties are separated and stored and transmitted, various correction processes can be performed independently on a binary image and a multivalued image at the time of image restoration.

【0236】多値符号化、多値復号化方法は前述の符号
化方法に限定されるものではなく、様々な多値符号化方
法を用いることができる。例えば、DCT(ディスクリ
ート・コサイン・トランスフォーム)などのように、8
*8画素を単位にした符号化方法を用いて、多値画像領
域を符号化してもよい。
The multi-level coding and multi-level decoding method is not limited to the above-mentioned coding method, and various multi-level coding methods can be used. For example, 8 such as DCT (Discrete Cosine Transform)
* The multi-valued image area may be encoded by using an encoding method in units of 8 pixels.

【0237】図28は、2値画像領域を前述の2値MR
符号化で符号化し、多値画像領域をDCTで符号化する
場合の読取ラインの符号化の様子を示している。DCT
による多値画像符号化は(2)に示すように、例えば、
8ラインを大きな単位にして、このなかの画素群を8*
8の単位でDCT符号化し、この8ライン分のDCT符
号化結果を(3)に示すように、2値符号化の8ライン
分の符号化データに続き、対応する8ライン分のDCT
符号化データを蓄積、伝送するようにしても、同様な効
果を得ることができる。
FIG. 28 shows that the binary image area has the above-mentioned binary MR.
FIG. 7 shows a state of encoding of a read line when encoding is performed by encoding and a multi-valued image area is encoded by DCT. DCT
As shown in (2), multi-valued image coding by
The pixel group in this is 8 *
DCT coding is performed in units of 8, and the DCT coding result for 8 lines is followed by the coded data for 8 lines of binary coding and the corresponding DCT for 8 lines as shown in (3).
Similar effects can be obtained by storing and transmitting encoded data.

【0238】[第4の実施例]前述の実施例では、多値
画像領域を白化した2値画像面と2値画像領域を白化し
た多値画像面の2面に分離したが、1つの読取面で2値
画像領域と多値画像領域で符号化方法を変えるようにし
ても、同様な効果を期待することができる。
[Fourth Embodiment] In the above-described embodiment, the multivalued image area is separated into two surfaces, a whitened binary image surface and a whitened multivalued image surface. Even if the encoding method is changed between the binary image area and the multi-valued image area, the same effect can be expected.

【0239】図29はこの符号化方法を示す図で、
(1)の2値と多値画像の混在画像に対して、図29の
(2)のように、像域判定結果に応じて対応する符号化
処理をライン内で変え、符号化処理をする。ここでは、
kファクタ値=4の場合を示しており、ラインiとi+
4..のように4ライン毎にそれぞれ1次元符号化を行
う。
FIG. 29 is a diagram showing this encoding method.
For a mixed image of binary and multi-valued images of (1), as shown in (2) of FIG. 29, the corresponding encoding process is changed within a line according to the image area determination result, and the encoding process is performed. . here,
The case where the k factor value = 4 is shown, and the lines i and i + are shown.
4. . As described above, one-dimensional encoding is performed for every four lines.

【0240】図29の(2)のラインi+1では、多値
符号化処理が1次元符号化処理を経ずにいきなり2次元
符号化処理から始まることになるが、(前ラインが1次
元符号化処理するラインであったが、多値画像領域が存
在しなかったのでこういう状況が発生した。)、2次元
多値符号化は、前ラインの2値画像の2値化処理後(最
小濃度レベルか最大濃度レベルかに量子化されたデー
タ)の値をもとに、対応する参照変化点b1,b2 を求め、
現ラインi+1を多値符号化する。
In line i + 1 of (2) in FIG. 29, the multi-valued encoding process suddenly starts from the two-dimensional encoding process without passing through the one-dimensional encoding process. This situation occurred because there was no multi-valued image area, although it was the line to be processed.) Two-dimensional multi-level encoding is performed after the binarization processing of the binary image of the previous line (minimum density level). Or the maximum density level quantized data), the corresponding reference change points b1 and b2 are obtained,
Multi-value code the current line i + 1.

【0241】また、ラインi+6のように前ラインの多
値画像領域が終了して、現ラインでは2値画像領域にな
り、これを2値の2次元符号化をする場合は、2値の2
次元符号化では、変化点間の多値の濃度レベル差の概念
はないので、垂直符号化はできないが、対応する画素列
を水平モードで符号化することによって2値の2次元符
号化を行うことができる。
Further, when the multi-valued image area of the previous line, such as line i + 6, ends and becomes a binary image area in the current line, and when this is subjected to binary two-dimensional encoding, it is a binary 2
In the dimensional coding, since there is no concept of multivalued density level differences between change points, vertical coding cannot be performed, but binary two-dimensional coding is performed by coding the corresponding pixel column in the horizontal mode. be able to.

【0242】このようにして符号化処理した各ラインの
符号化データ列の例を、図29の(3)に示す。図中の
EOL1,EOL0 符号は、引き続く符号化データ列が2値の1
次元、2次元符号化データ列であり、かつ新たなライン
の先頭であることを示す符号。EOL1-C,EOL0-C 符号は、
引き続く符号化データ列が2値の1次元、2次元符号化
データ列であるが、新たなラインの先頭ではないことを
示す符号。EOLM1,EOLM0 符号は、引き続く符号化データ
列が多値の1次元、2次元符号化データ列であり、かつ
新たなラインの先頭であることを示す符号。EOLM1-C,EO
LM0-C 符号は、引き続く符号化データ列が2値の1次
元、2次元符号化データ列であるが、新たなラインの先
頭ではないことを示す符号である。
An example of the encoded data string of each line which has been encoded in this way is shown in (3) of FIG. In the figure
For EOL1 and EOL0 codes, the subsequent encoded data string is binary 1
Dimension, a code that is a two-dimensional encoded data string and that indicates the beginning of a new line. EOL1-C and EOL0-C codes are
A code indicating that the subsequent coded data string is a binary one-dimensional, two-dimensional coded data string, but is not the beginning of a new line. The EOLM1 and EOLM0 codes are codes that indicate that the subsequent coded data string is a multi-valued one-dimensional, two-dimensional coded data string and is the head of a new line. EOLM1-C, EO
The LM0-C code is a code indicating that the subsequent coded data string is a binary one-dimensional, two-dimensional coded data string, but is not the beginning of a new line.

【0243】これらの符号化データ列は、図29の
(3)のように、読取ライン順に蓄積あるいは伝送す
る。この符号化された画像データの復号化は、EOL1、EO
L0、EOLM1、およびEOLM0 符号を検出することにより、
新たなラインの復号化を開始し、各種のEOL 符号を検出
し対応する復号化方法で復号化処理を行う。
These encoded data strings are stored or transmitted in the order of reading lines as shown in (3) of FIG. Decoding of this coded image data is performed by EOL1 and EO.
By detecting the L0, EOLM1, and EOLM0 signs,
The decoding of a new line is started, various EOL codes are detected, and the decoding process is performed by the corresponding decoding method.

【0244】2値画像領域は最小濃度レベルか最大濃度
レベルのいずれかの値に濃度復元し、多値領域は復号化
された濃度レベルそのままにした復号化ラインの画像デ
ータをN値誤差拡散部でn値に再量子化してディスプレ
イあるいはプリンタに表示・印字して画像を再現する。
2値画像領域は最小濃度レベルか最大濃度レベルかに2
値量子化され、濃度復元されているのでN値誤差拡散処
理をしても量子化誤差は発生せず入力2値化画像は変化
しない。多値画像領域の画像がn値量子化されるのみで
ある。
In the binary image area, the density is restored to a value of either the minimum density level or the maximum density level, and in the multi-valued area, the image data of the decoding line in which the decoded density level is left unchanged is transferred to the N-value error diffusion unit. To re-quantize to n value and display / print on display or printer to reproduce image.
Whether the binary image area is the minimum density level or the maximum density level
Since the values are quantized and the density is restored, no quantization error occurs even if the N-value error diffusion process is performed, and the input binary image does not change. The image in the multi-valued image area is only n-value quantized.

【0245】[0245]

【発明の効果】以上説明したように、本発明によれば、
(1−1)写真など多値画像においては、符号化ライン
上の濃度が変化する変化点の位置は、すでに符号化され
た参照ライン上の変化点の位置の近傍に存在し、しかも
両変化点の濃度レベル差も小さいという性質を利用し、
参照ライン上の変化点と符号化ラインの変化点の位置の
差Δa と濃度レベルの差Δn の2次元的変位(Δa,Δn
)を、発生頻度の高いものほど符号語長の短い符号語
を割当、符号化するので、多値画像を再現性を損なうこ
となく、高い符号化効率で符号化することができる。
As described above, according to the present invention,
(1-1) In a multi-valued image such as a photograph, the position of the changing point on the coding line where the density changes exists near the position of the already changing point on the reference line, and both changes Utilizing the property that the difference in concentration level between points is small,
Two-dimensional displacement (Δa, Δn) of the difference Δa between the change point on the reference line and the change point on the encoding line and the difference Δn between the density levels.
), A code word having a shorter code word length is assigned and coded with a higher occurrence frequency, so that a multi-valued image can be coded with high coding efficiency without impairing reproducibility.

【0246】また(1−2)本発明の符号化方式は、従
来のファクシミリにおける白黒2値のMR符号化方式を
基本に多値画像に拡張したものであるので、従来のMR
方式と親和性が高く、多値画像を多値レベルのまま符号
化して伝送するファクシミリ機能を追加する上で、それ
ほど装置規模を増大させることなく、実現できる利点が
ある。
(1-2) Since the encoding method of the present invention is an extension of the conventional MR encoding method of monochrome binary in a facsimile to a multi-valued image, the conventional MR
It has a high affinity with the system and has an advantage that it can be realized without increasing the device scale so much when adding a facsimile function for encoding and transmitting a multi-valued image as it is at a multi-valued level.

【0247】また、(2−1)2値画像領域を検出し、
最小濃度レベル(白)あるいは最大濃度レベル(黒)に
2値量子化することにより、2値画像と多値画像の混在
する画像を高い符号化効率で符号化することができる。
Further, (2-1) the binary image area is detected,
By binary-quantizing to the minimum density level (white) or the maximum density level (black), an image in which a binary image and a multivalued image are mixed can be coded with high coding efficiency.

【0248】また、(2−2)多値符号化された画像あ
るいは受信された多値画像は、ディスプレイ、プリンタ
の表示・印字階調数nに対応して、N値誤差拡散法によ
りn値に量子化し、多値画像を表示・印字するので、表
示・印字階調能力を生かした最良の多値画像を得ること
ができる。
Further, (2-2) the multi-value coded image or the received multi-valued image corresponds to the display / print gradation number n of the display or printer by n-value by the N-value error diffusion method. Since the multi-valued image is quantized and displayed / printed, it is possible to obtain the best multi-valued image utilizing the display / print gradation capability.

【0249】また、(3−1)2値画像と多値画像の混
在する画像を、2値画像領域と多値画像領域に分離し、
多値画像領域を白化した2値画像面と2値画像領域を白
化した多値画像面を、それぞれ画像の性質に対応した符
号化効率の高い符号化方法で符号化できるので、トータ
ルとして高い符号化効率が期待でき、画像の蓄積におけ
るメモリ容量の低減を図ることができるとともに、画像
伝送においても伝送時間の短縮化を図ることができる。
Further, (3-1) an image in which a binary image and a multivalued image are mixed is separated into a binary image region and a multivalued image region,
Since the binary image plane in which the multi-valued image area is whitened and the multi-valued image plane in which the binary image area is whitened can be coded by a coding method having a high coding efficiency corresponding to the property of the image, respectively, a high total coding is possible. Efficiency can be expected, the memory capacity for image storage can be reduced, and the transmission time for image transmission can be shortened.

【0250】また(3−2)性質の異なる画像を分離し
て蓄積、伝送するので、画像復元時に、2値画像と多値
画像を独立に、様々な修正加工が可能となる。
(3-2) Since images having different properties are separated and stored and transmitted, various correction processes can be independently performed on the binary image and the multivalued image at the time of image restoration.

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

【図1】本発明の第1の実施例としての多値画像符号化
装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a multi-valued image encoding device as a first embodiment of the present invention.

【図2】図1の変化点検出部4の変化点検出動作を説明
する説明図である。
FIG. 2 is an explanatory diagram illustrating a change point detection operation of a change point detection unit 4 in FIG.

【図3】1次元符号化時の符号化変化点メモリ部5のa
0,a1 メモリの変化点情報の記憶動作を示す説明図であ
る。
FIG. 3a of the encoding change point memory unit 5 at the time of one-dimensional encoding
It is explanatory drawing which shows the memory | storage operation of the change point information of 0, a1 memory.

【図4】1次元符号化時の水平モード符号化部16の変
化点間のラン長と濃度レベル差の検出の動作および1次
元符号化コード列を示す説明図である。
FIG. 4 is an explanatory diagram showing an operation of detecting a run length and a density level difference between changing points of the horizontal mode encoding unit 16 at the time of one-dimensional encoding, and a one-dimensional encoded code string.

【図5】参照ライン変化点メモリおよび符号化ライン変
化点メモリの変化点情報の記憶方法を示す説明図であ
る。
FIG. 5 is an explanatory diagram showing a method of storing change point information in a reference line change point memory and a coded line change point memory.

【図6】本発明の第1の実施例の1次元および2次元符
号化の動作の手順を示すフローチャートである。
FIG. 6 is a flowchart showing a procedure of an operation of one-dimensional and two-dimensional encoding according to the first embodiment of the present invention.

【図7】本発明の第1の実施例の2次元符号化の動作お
よび2次元符号化コード列を示す説明図である。
FIG. 7 is an explanatory diagram showing a two-dimensional encoding operation and a two-dimensional encoded code string according to the first embodiment of this invention.

【図8】垂直モードで符号化する2次元的変位の領域例
を示す説明図である。
FIG. 8 is an explanatory diagram showing an example of a two-dimensional displacement area encoded in the vertical mode.

【図9】2次元符号化時の符号化モードと符号化される
画素および符号語を示す説明図である。
FIG. 9 is an explanatory diagram showing a coding mode, a pixel to be coded, and a code word at the time of two-dimensional coding.

【図10】第1の実施例の濃度レベル差符号の例を示す
説明図である。
FIG. 10 is an explanatory diagram showing an example of a density level difference code according to the first embodiment.

【図11】本発明の第2の実施例としての多値画像電送
装置の構成を示すブロック図である。
FIG. 11 is a block diagram showing a configuration of a multi-value image transmission device as a second embodiment of the present invention.

【図12】図11のエッジ強調部55、平滑化部56お
よびガンマ補正部57の動作を説明する説明図である。
12 is an explanatory diagram illustrating operations of an edge enhancement unit 55, a smoothing unit 56, and a gamma correction unit 57 in FIG.

【図13】図11の像域判定部58の動作を説明する説
明図である。
13 is an explanatory diagram illustrating an operation of the image area determination unit 58 in FIG.

【図14】図11の多値復号化部68の構成を示す説明
図である。
14 is an explanatory diagram showing a configuration of a multilevel decoding unit 68 in FIG.

【図15】第2の実施例の多値復号化部68の多値復号
化手順を示すフローチャートである。
FIG. 15 is a flowchart showing a multilevel decoding procedure of a multilevel decoding unit 68 according to the second embodiment.

【図16】多値復号化部68の1次元復号化手順を示す
フローチャートである。
FIG. 16 is a flowchart showing a one-dimensional decoding procedure of the multilevel decoding unit 68.

【図17】多値復号化部68の2次元復号化手順を示す
フローチャートである。
FIG. 17 is a flowchart showing a two-dimensional decoding procedure of the multilevel decoding unit 68.

【図18】多値復号化部68の水平モード復号化手順を
示すフローチャートである。
FIG. 18 is a flowchart showing a horizontal mode decoding procedure of the multilevel decoding unit 68.

【図19】多値復号化部68の垂直モード復号化手順を
示すフローチャートである。
FIG. 19 is a flowchart showing a vertical mode decoding procedure of the multilevel decoding unit 68.

【図20】図11のN値誤差拡散部69の構成を示すブ
ロック図である。
20 is a block diagram showing a configuration of an N-value error diffusion unit 69 in FIG.

【図21】量子化誤差の拡散様子を示す説明図である。FIG. 21 is an explanatory diagram showing how a quantization error is diffused.

【図22】N値量子化部6904の構成を示すブロック
図である。
FIG. 22 is a block diagram showing the configuration of an N-value quantization unit 6904.

【図23】本発明の第3の実施例としての多値画像電送
装置の構成を示すブロック図である。
FIG. 23 is a block diagram showing a configuration of a multi-value image transmission device as a third embodiment of the present invention.

【図24】2値画像領域と多値画像領域を分離し2値画
像と多値画像面の2面に読取画像を分離する様子と各面
に対する符号化方法を示す説明図である。
[Fig. 24] Fig. 24 is an explanatory diagram illustrating a manner in which a binary image area and a multivalued image area are separated and a read image is separated into two surfaces of a binary image and a multivalued image surface and an encoding method for each surface.

【図25】読取ラインを像域判定結果によって2値画像
面と多値画像面に分離する様子を示す説明図である。
FIG. 25 is an explanatory diagram showing a manner in which a reading line is separated into a binary image surface and a multivalued image surface according to an image area determination result.

【図26】2値画像面と多値画像面の符号化データ例と
その蓄積および伝送の順を示す説明図である。
[Fig. 26] Fig. 26 is an explanatory diagram illustrating an example of encoded data on a binary image plane and a multivalued image plane, and the order of storage and transmission thereof.

【図27】2値画像面の復号化ラインの復号化結果と多
値画像面の復号化ラインの復号化結果とその濃度加算に
よる合成の様子を示す説明図である。
[Fig. 27] Fig. 27 is an explanatory diagram illustrating a decoding result of a decoding line of a binary image plane, a decoding result of a decoding line of a multi-valued image plane, and a combination state thereof by density addition.

【図28】2値画像面をMR符号化、多値画像面をDC
T符号化するときの符号化の様子と各符号化結果の蓄積
あるいは伝送時の伝送順を示す説明図である。
[Fig. 28] MR encoding of a binary image plane, DC of a multi-valued image plane
FIG. 3 is an explanatory diagram showing a state of encoding when performing T encoding, and a transmission order when accumulating or transmitting each encoding result.

【図29】読取ライン内で2値画像領域と多値画像領域
で符号化方法を変えた場合の符号化の方法と符号化結果
の伝送時に符号化方法を識別する識別符号を付加する様
子を示す説明図である。
FIG. 29 shows how a coding method is changed when a coding method is changed between a binary image area and a multivalued image area in a read line, and an identification code for identifying the coding method is added when transmitting a coding result. It is an explanatory view shown.

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

1・・・ 多値画像入力端子、3・・・ 多値画像ラインメモ
リ、4・・・ 変化点検出部、5・・・ 符号化変化点メモリ
部、7・・・ 参照ライン変化点メモリ、8・・・ b1b2検出
部、9・・・ 参照変化点メモリ部、10・・・ パスモード判
別部、11・・・ 垂直モード符号化部、14・・・ 垂直モー
ド判別部、12・・・ a1b1距離検出部、13・・・a1b1レベ
ル差検出部、15・・・ 垂直モード符号テーブル、16・・
・ 水平モード符号化部、17・・・ a0a1距離検出部、18
・・・ a0a1レベル差検出部、23・・・ ラン長符号テーブ
ル、24・・・ レベル差符号テーブル、25・・・ EOL0符号
発生部、26・・・ P 符号発生部、27・・・ H 符号発生
部、28・・・ EOL1符号発生部、29・・・ 2次元符号合成
部、30・・・ 1次元符号合成部、32・・・ 多値符号化装
置の出力端子、50・・・ 読取センサ、52・・・ シェーデ
ィング補正部、53・・・ 前ライン多値画像メモリ、54
・・・ 白ピーク検出部、55・・・ エッジ強調部、56・・・
平滑化部、57・・・ ガンマ補正部、58・・・ 像域判定
部、59・・・ 2値/多値量子化部、60・・・ 2値量子化
部、61・・・ セレクタ、63・・・ 多値符号化部、66・・
・ 蓄積メモリ、64・・・ モデム、68・・・ 多値復号化
部、69・・・ N値誤差拡散部、70・・・ ディスプレイ、
71・・・ プリンタ、72・・・ N値制御部、6803・・・
EOL1/0符号検出部、6804・・・ 2次元符号化モード符
号検出部、6805・・・ 垂直モード復号部、6806・・
・ 水平モード復号部、6807・・・ 基準変化点a0メモ
リ、6808・・・ 変化点算出部、6809・・・ 参照変化
点b1b2メモリ、6810・・・ b1b2検出部、6811・・・
前ライン変化点メモリ、6813・・・ 画素復元部、68
15・・・ 受信エラー検出部、6816・・・ ラン長総和検
出部、6819・・・ レベル差総和検出部、6904・・・
N値量子化部、6905・・・誤差算出部、6907・・・
誤差ラインメモリ、6903、6913・・・ 加算部、6
910、6911、6912・・・ 重み付け部、6904
2・・・ 2値量子化テーブル、69043・・・ 3値量子化
テーブル、69044・・・ N値量子化テーブル、690
2・・・ n値制御値入力端子、69045・・・ セレクタ、
80、81・・・セレクタ、83・・・ 2値MR符号化部、
85・・・ 2値MR復号部、87・・・ 濃度復元部、88・・
・ 濃度加算部
1 ... Multi-valued image input terminal, 3 ... Multi-valued image line memory, 4 ... Change point detection section, 5 ... Encoding change point memory section, 7 ... Reference line change point memory, 8 ... b1b2 detection unit, 9 ... Reference change point memory unit, 10 ... Path mode determination unit, 11 ... Vertical mode encoding unit, 14 ... Vertical mode determination unit, 12 ... a1b1 distance detector, 13 ... a1b1 level difference detector, 15 ... Vertical mode code table, 16 ...
・ Horizontal mode coding unit, 17 ... a0a1 distance detection unit, 18
... a0a1 level difference detection unit, 23 ... run length code table, 24 ... level difference code table, 25 ... EOL0 code generation unit, 26 ... P code generation unit, 27 ... H Code generation unit, 28 ... EOL1 code generation unit, 29 ... Two-dimensional code synthesis unit, 30 ... One-dimensional code synthesis unit, 32 ... Output terminal of multi-level coding device, 50 ... Reading sensor 52 ... Shading correction unit 53 ... Front line multi-valued image memory 54
・ ・ ・ White peak detection unit, 55 ・ ・ ・ Edge enhancement unit, 56 ・ ・ ・
Smoothing unit, 57 ... Gamma correction unit, 58 ... Image area determination unit, 59 ... Binary / multi-valued quantization unit, 60 ... Binary quantization unit, 61 ... Selector, 63 ... Multi-level encoding unit, 66 ...
Storage memory, 64 ... Modem, 68 ... Multi-level decoding section, 69 ... N-value error diffusion section, 70 ... Display,
71 ... Printer, 72 ... N-value control unit, 6803 ...
EOL1 / 0 code detection unit, 6804 ... Two-dimensional coding mode code detection unit, 6805 ... Vertical mode decoding unit, 6806 ...
Horizontal mode decoding unit, 6807 ... Standard change point a0 memory, 6808 ... Change point calculation unit, 6809 ... Reference change point b1b2 memory, 6810 ... b1b2 detection unit, 6811 ...
Previous line change point memory, 6813 ... Pixel restoration unit, 68
15 ... Reception error detection unit, 6816 ... Run length total detection unit, 6819 ... Level difference total detection unit, 6904 ...
N-value quantizer, 6905 ... Error calculator, 6907 ...
Error line memory, 6903, 6913 ... Adder unit, 6
910, 6911, 6912 ... Weighting unit, 6904
2 ... Binary quantization table, 69043 ... Tri-valued quantization table, 69044 ... N-valued quantization table, 690
2 ... n-value control value input terminal, 69045 ... selector,
80, 81 ... Selector, 83 ... Binary MR encoding unit,
85 ... Binary MR decoding unit, 87 ... Density restoration unit, 88 ...
・ Concentration adder

Claims (30)

【特許請求の範囲】[Claims] 【請求項1】 画像を走査し画素単位にサンプリングし
て得た多値画像データの各ラインを符号化ラインとする
とき、各ラインについて、濃度レベルが、走査順に見て
直前の画素のそれと、異なる画素の位置を変化点として
検出する段階と、 符号化ライン上の変化点を、すでに符号化されたライン
である参照ライン上の変化点と比較し、位置の差Δaを
求める段階と、濃度レベルの差Δnを求める段階と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それに対応する予め定
めた符号V(Δa,Δn)を求めることにより、前記符
号化ライン上の変化点を符号化する段階と、から成るこ
とを特徴とする多値画像データ符号化方法。
1. When each line of multi-valued image data obtained by scanning an image and sampling in pixel units is used as an encoding line, the density level of each line is the same as that of the immediately preceding pixel in the scanning order, Detecting the position of a different pixel as a change point, comparing the change point on the encoded line with the change point on the reference line, which is an already encoded line, and obtaining the position difference Δa; The step of obtaining the level difference Δn and the step V of obtaining the position difference Δa and the concentration level difference Δn as a two-dimensional displacement (Δa, Δn) and obtaining a predetermined code V (Δa, Δn) corresponding thereto Accordingly, the method of encoding multi-valued image data comprises the step of encoding the change points on the encoding line.
【請求項2】 画像を走査し画素単位にサンプリングし
て得た多値画像データの各ラインを符号化ラインとする
とき、各ラインについて、濃度レベルが、走査順に見て
直前の画素のそれと、異なる画素の位置を変化点として
検出することとして、 前記符号化ライン上の変化点で、他の変化点を定義する
ための基準となる基準変化点をa0、当該符号化ライン
上で前記基準変化点a0より、走査方向に見て(以下、
右側という)最初の変化点をa1、当該符号化ライン上
で前記変化点a1より、右側の最初の変化点をa2、と
してこれら変化点を検出する段階と、 すでに符号化されたラインである参照ライン上で、前記
基準変化点a0の相当位置より、右側にあり、該変化点
a0のそれと濃度レベルの異なる変化点をb1、当該参
照ライン上で、前記変化点b1より、右側の最初の変化
点をb2として、これら変化点を検出する段階と、 前記変化点a1とb1のそれぞれのライン上での位置の
差Δaと濃度レベル差Δnをそれぞれ求める段階と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それが所定の範囲に収
まっているか否かを判定する段階と、 それが所定の範囲に収まっているとき、前記2次元的な
変位(Δa,Δn)に対応する予め定めた符号V(Δ
a,Δn)を求めることにより、前記変化点a1を符号
化する段階と、 その後、符号化した前記変化点a1を新たな基準変化点
a0とし、前記変化点a2を新たな変化点a1として、
上記手順を繰り返す段階と、から成ることを特徴とする
多値画像データ符号化方法。
2. When each line of multi-valued image data obtained by scanning an image and sampling in pixel units is used as an encoding line, the density level of each line is that of the immediately preceding pixel in the scanning order, By detecting the position of a different pixel as a change point, a change point on the coding line is a0, a reference change point serving as a reference for defining another change point, and the reference change on the coding line. Seen in the scanning direction from the point a0 (hereinafter,
Detecting these change points with the first change point being the right side (a1), the first change point on the right side from the change point a1 on the encoding line, and a2, and the already encoded line. On the line, a change point on the right side of the corresponding position of the reference change point a0 and having a density level different from that of the change point a0 is b1, and the first change on the right side of the change point b1 on the reference line. The point is designated as b2, the step of detecting these change points, the step of obtaining the position difference Δa and the density level difference Δn on the respective lines of the change points a1 and b1, respectively, and the obtained position difference Δa. The difference Δn between the concentration levels is used as a two-dimensional displacement (Δa, Δn) to determine whether or not the difference is within a predetermined range, and when the difference is within a predetermined range, the two-dimensional Displacement ( Predetermined code V (Δ) corresponding to Δa, Δn)
a, Δn) to encode the change point a1, and then the encoded change point a1 as a new reference change point a0 and the change point a2 as a new change point a1.
A multi-valued image data encoding method comprising the steps of repeating the above procedure.
【請求項3】 画像を走査し画素単位にサンプリングし
て得た多値画像データの各ラインを符号化ラインとする
とき、各ラインについて、濃度レベルが、走査順に見て
直前の画素のそれと、異なる画素の位置を変化点として
検出することとして、 前記符号化ライン上の変化点で、他の変化点を定義する
ための基準となる基準変化点をa0、当該符号化ライン
上で前記基準変化点a0より、走査方向に見て(以下、
右側という)最初の変化点をa1、当該符号化ライン上
で前記変化点a1より、右側の最初の変化点をa2、と
してこれら変化点を検出する段階と、 すでに符号化されたラインである参照ライン上で、前記
基準変化点a0の相当位置より、右側にあり、該変化点
a0のそれと濃度レベルの異なる変化点をb1、当該参
照ライン上で、前記変化点b1より、右側の最初の変化
点をb2として、これら変化点を検出する段階と、 前記変化点b2の当該ライン上の位置が、前記変化点a
1の当該ライン上の位置より、左側にあるか否かを判定
する第1の判定段階と、 前記第1の判定結果が肯定的の場合、その旨を特定符号
Pで符号化する段階と、続いて前記変化点b2の当該参
照ライン上の位置と同じ当該符号化ライン上の画素位置
を新たな基準変化点a0に選定する段階と、 前記変化点a1とb1のそれぞれのライン上での位置の
差Δaと濃度レベル差Δnをそれぞれ求める段階と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それが所定の範囲に収
まっているか否かを判定する第2の判定段階と、 前記第1の判定結果が否定的で、前記第2の判定結果が
肯定的の場合、前記2次元的な変位(Δa,Δn)に対
応する予め定めた符号V(Δa,Δn)を求めることに
より、前記変化点a1を符号化する段階と、続いて、符
号化した前記変化点a1を新たな基準変化点a0とし、
前記変化点a2を新たな変化点a1として、上記手順を
繰り返す段階と、 前記第1の判定結果が否定的で、前記第2の判定結果も
否定的の場合、その旨を示す特定符号Hと、前記変化点
a0からa1までのラン長Δa0を示す符号R(Δa
0)および前記変化点a0とa1の濃度差Δn0を示す
符号L(Δn0)と、前記変化点a1からa2までのラ
ン長Δa1を示す符号R(Δa1)および前記変化点a
1とa2の濃度差Δn1を示す符号L(Δn1)と、で
前記変化点a1,a2を符号化する段階と、続いて、前
記変化点a2を新たな基準変化点a0として、上記手順
を繰り返す段階と、 から成ることを特徴とする多値画像データ符号化方法。
3. When each line of multi-valued image data obtained by scanning an image and sampling in pixel units is used as an encoding line, the density level of each line is that of the immediately preceding pixel in the scanning order, By detecting the position of a different pixel as a change point, a change point on the coding line is a0, a reference change point serving as a reference for defining another change point, and the reference change on the coding line. Seen in the scanning direction from the point a0 (hereinafter,
Detecting these change points with the first change point being the right side (a1), the first change point on the right side from the change point a1 on the encoding line, and a2, and the already encoded line. On the line, a change point on the right side of the corresponding position of the reference change point a0 and having a density level different from that of the change point a0 is b1, and the first change on the right side of the change point b1 on the reference line. The point where b2 is the point of detection of these change points, and the position of the change point b2 on the line is the change point a.
A first determination step of determining whether or not the position is on the left side of the position of 1 on the line; and, if the first determination result is affirmative, encoding that effect with a specific code P, Subsequently, selecting a pixel position on the coding line that is the same as the position of the change point b2 on the reference line as a new reference change point a0, and the positions of the change points a1 and b1 on the respective lines. Difference Δa and density level difference Δn, and whether the calculated position difference Δa and density level difference Δn are two-dimensional displacements (Δa, Δn) and whether they are within a predetermined range. And a second determination step for determining whether or not the first determination result is negative and the second determination result is positive, the predetermined determination corresponding to the two-dimensional displacement (Δa, Δn). The change point is calculated by obtaining the code V (Δa, Δn) A method for encoding a 1, followed by the change point a1 obtained by coding the new reference change point a0,
A step of repeating the above procedure with the change point a2 as a new change point a1, and when the first determination result is negative and the second determination result is also negative, a specific code H indicating that , A code R (Δa indicating the run length Δa0 from the change points a0 to a1
0) and the code L (Δn0) indicating the density difference Δn0 between the change points a0 and a1, the code R (Δa1) indicating the run length Δa1 from the change points a1 to a2, and the change point a.
The step of encoding the change points a1 and a2 with the code L (Δn1) indicating the density difference Δn1 between 1 and a2, and then the above procedure is repeated with the change point a2 as a new reference change point a0. A multi-valued image data encoding method comprising the steps of:
【請求項4】 請求項2又は3に記載の多値画像データ
符号化方法において、変化点a1とb1の位置の差Δa
と濃度レベル差Δnの2次元的変位(Δa,Δn)が所
定の範囲にあるか否かを判定する判定結果が肯定的なと
き、変化点a1を前記2次元的変位(Δa,Δn)に対
応して符号化する符号V(Δa,Δn)において、Δa
が-3,-2,-1,0,1,2,3の中の何れかの値で、Δn=0のと
きの符号を、白黒2値用の標準符号化方式であるMR
(モディファイド・リード)符号の垂直モードに於ける
符号と一致させることを特徴とする多値画像データ符号
化方法。
4. The multivalued image data encoding method according to claim 2, wherein the difference Δa between the positions of the change points a1 and b1.
And the density level difference Δn has a two-dimensional displacement (Δa, Δn) within a predetermined range, the change point a1 is set to the two-dimensional displacement (Δa, Δn). In the code V (Δa, Δn) to be encoded correspondingly, Δa
Is any of the values -3, -2, -1, 0, 1, 2, 3 and the code when Δn = 0 is the standard encoding method for binary black and white MR
A multivalued image data encoding method, which is characterized by matching a code in a vertical mode of a (modified read) code.
【請求項5】 請求項2,3又は4に記載の多値画像デ
ータ符号化方法において、符号化の対象とする全ライン
の中で、先頭ラインと、それ以降第K番目(但しKは整
数)のライン毎に、当該ライン上で変化点として検出し
た画素位置の列をc0,c1,c2,c3,c4,,,cN とすると
き(Nは任意の整数)、これら変化点列c0,c1,c2,c
3,c4,,,cN を、変化点cj からcj+1 までのラン長Δ
aj を示す符号R(Δaj )と、変化点cj とcj+1 の
濃度差Δnj を示す符号L(Δnj )と(ただしj=0,,,
N-1 )、で符号化し、この符号列の先頭に、上記符号列
である旨の符号EOL1を付加することを特徴とする多値画
像データ符号化方法。
5. The multi-valued image data encoding method according to claim 2, 3 or 4, wherein among all the lines to be encoded, the first line and the K-th line thereafter (where K is an integer) ), The column of pixel positions detected as change points on the line is defined as c0, c1, c2, c3, c4 ,, cN (N is an arbitrary integer), these change point sequences c0, c1, c2, c
Let 3, c4 ,,, cN be the run length Δ from the change point cj to cj + 1
The symbol R (Δaj) indicating aj and the symbol L (Δnj) indicating the density difference Δnj between the change points cj and cj + 1 (where j = 0 ,,,
N-1), and the code EOL1 indicating that the code string is added to the head of the code string.
【請求項6】 画像を走査し画素単位にサンプリングし
て得た多値画像データを取込み、各画素データ毎にその
濃度レベルに応じて最小濃度レベルである白か、最大濃
度レベルである黒に、2値量子化する段階と、 前記多値画像データを取込み、各画素データをその濃度
レベルをそのままに出力する出力段階と、 前記多値画像データを取込み、その中で注目画素として
選定した画素データにつき、当該画素データと、その周
辺に位置する画素データと、のそれぞれの濃度レベルを
もとに、当該注目画素データが、文字・線画領域に属す
るものか、否かを判別する像域判別段階と、 前記像域判別結果が肯定的な場合、前記2値量子化出力
を選択して通し、否定的な場合、前記濃度レベルがその
ままの出力を選択して通す選択段階と、 前記選択された出力である画像データの各ラインを符号
化ラインとするとき、各ラインについて、濃度レベル
が、走査順に見て直前の画素のそれと、異なる画素の位
置を変化点として検出する段階と、 符号化ライン上の変化点を、すでに符号化されたライン
である参照ライン上の変化点と比較し、位置の差Δaを
求める段階と、濃度レベルの差Δnを求める段階と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それに対応する予め定
めた符号V(Δa,Δn)を求めることにより、前記符
号化ライン上の変化点を符号化する段階と、から成るこ
とを特徴とする多値画像データ符号化方法。
6. Multi-valued image data obtained by scanning an image and sampling in pixel units is taken in, and the minimum density level is white or the maximum density level is black depending on the density level of each pixel data. A step of performing binary quantization, an output step of taking in the multi-valued image data and outputting each pixel data without changing its density level, and a step of taking in the multi-valued image data and selecting a pixel as a target pixel therein Regarding the data, based on the respective density levels of the pixel data and the pixel data located in the periphery of the pixel data, it is possible to determine whether or not the pixel data of interest belongs to a character / line drawing area or not. A step of selecting the binary quantized output when the image area discrimination result is affirmative, and a negative step when the image area discrimination result is negative; When each line of the image data that is the output is used as a coded line, the density level of each line is different from that of the immediately preceding pixel in the scanning order, and the position of a different pixel is detected as a change point. The change point on the conversion line is compared with the change point on the reference line, which is an already encoded line, to obtain the position difference Δa, to obtain the density level difference Δn, and The change point on the encoding line is encoded by obtaining the predetermined code V (Δa, Δn) corresponding to the difference Δa and the difference Δn between the density levels as a two-dimensional displacement (Δa, Δn). A multivalued image data encoding method comprising the steps of:
【請求項7】 画像を走査し画素単位にサンプリングし
て得た多値画像データを取込み、各画素データ毎にその
濃度レベルに応じて最小濃度レベルである白か、最大濃
度レベルである黒に、2値量子化する段階と、 前記多値画像データを取込み、各画素データをその濃度
レベルをそのままに出力する出力段階と、 前記多値画像データを取込み、その中で注目画素として
選定した画素データにつき、当該画素データと、その周
辺に位置する画素データと、のそれぞれの濃度レベルを
もとに、当該注目画素データが、文字・線画領域に属す
るものか、否かを判別する像域判別段階と、 前記像域判別結果が肯定的な場合、前記2値量子化出力
を選択して通し、否定的な場合、前記濃度レベルがその
ままの出力を選択して通す選択段階と、 前記選択された出力である画像データの各ラインを符号
化ラインとするとき、各ラインについて、濃度レベル
が、走査順に見て直前の画素のそれと、異なる画素の位
置を変化点として検出することとして、 前記符号化ライン上の変化点で、他の変化点を定義する
ための基準となる基準変化点をa0、当該符号化ライン
上で前記基準変化点a0より、走査方向に見て(以下、
右側という)最初の変化点をa1、当該符号化ライン上
で前記変化点a1より、右側の最初の変化点をa2、と
してこれら変化点を検出する段階と、 すでに符号化されたラインである参照ライン上で、前記
基準変化点a0の相当位置より、右側にあり、該変化点
a0のそれと濃度レベルの異なる変化点をb1、当該参
照ライン上で、前記変化点b1より、右側の最初の変化
点をb2として、これら変化点を検出する段階と、 前記変化点a1とb1のそれぞれのライン上での位置の
差Δaと濃度レベル差Δnをそれぞれ求める段階と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それが所定の範囲に収
まっているか否かを判定する段階と、 それが所定の範囲に収まっているとき、前記2次元的な
変位(Δa,Δn)に対応する予め定めた符号V(Δ
a,Δn)を求めることにより、前記変化点a1を符号
化する段階と、 その後、符号化した前記変化点a1を新たな基準変化点
a0とし、前記変化点a2を新たな変化点a1として、
上記手順を繰り返す段階と、から成ることを特徴とする
多値画像データ符号化方法。
7. Multi-valued image data obtained by scanning an image and sampling in pixel units is taken in, and the minimum density level is white or the maximum density level is black depending on the density level of each pixel data. A step of performing binary quantization, an output step of taking in the multi-valued image data and outputting each pixel data without changing its density level, and a step of taking in the multi-valued image data and selecting a pixel as a target pixel therein Regarding the data, based on the respective density levels of the pixel data and the pixel data located in the periphery of the pixel data, it is possible to determine whether or not the pixel data of interest belongs to a character / line drawing area or not. A step of selecting the binary quantized output when the image area discrimination result is affirmative, and a negative step when the image area discrimination result is negative; When each line of the image data that is the output is a coded line, the density level of each line is different from that of the immediately preceding pixel in the scanning order, and the position of a different pixel is detected as a change point. At the change point on the encoding line, a reference change point serving as a reference for defining another change point is a0, and the reference change point a0 on the encoding line is viewed in the scanning direction (hereinafter,
Detecting these change points with the first change point being the right side (a1), the first change point on the right side from the change point a1 on the encoding line, and a2, and the already encoded line. On the line, a change point on the right side of the corresponding position of the reference change point a0 and having a density level different from that of the change point a0 is b1, and the first change on the right side of the change point b1 on the reference line. The point is designated as b2, the step of detecting these change points, the step of obtaining the position difference Δa and the density level difference Δn on the respective lines of the change points a1 and b1, respectively, and the obtained position difference Δa. The difference Δn between the concentration levels is used as a two-dimensional displacement (Δa, Δn) to determine whether or not the difference is within a predetermined range, and when the difference is within a predetermined range, the two-dimensional Displacement ( Predetermined code V (Δ) corresponding to Δa, Δn)
a, Δn) to encode the change point a1, and then the encoded change point a1 as a new reference change point a0 and the change point a2 as a new change point a1.
A multi-valued image data encoding method comprising the steps of repeating the above procedure.
【請求項8】 画像を走査し画素単位にサンプリングし
て得た多値画像データを取込み、各画素データ毎にその
濃度レベルに応じて最小濃度レベルである白か、最大濃
度レベルである黒に、2値量子化する段階と、 前記多値画像データを取込み、各画素データをその濃度
レベルをそのままに出力する出力段階と、 前記多値画像データを取込み、その中で注目画素として
選定した画素データにつき、当該画素データと、その周
辺に位置する画素データと、のそれぞれの濃度レベルを
もとに、当該注目画素データが、文字・線画領域に属す
るものか、否かを判別する像域判別段階と、 前記像域判別結果が肯定的な場合、前記2値量子化出力
を選択して通し、否定的な場合、前記濃度レベルがその
ままの出力を選択して通す選択段階と、 前記選択された出力である画像データの各ラインを符号
化ラインとするとき、各ラインについて、濃度レベル
が、走査順に見て直前の画素のそれと、異なる画素の位
置を変化点として検出することとして、 前記符号化ライン上の変化点で、他の変化点を定義する
ための基準となる基準変化点をa0、当該符号化ライン
上で前記基準変化点a0より、走査方向に見て(以下、
右側という)最初の変化点をa1、当該符号化ライン上
で前記変化点a1より、右側の最初の変化点をa2、と
してこれら変化点を検出する段階と、 すでに符号化されたラインである参照ライン上で、前記
基準変化点a0の相当位置より、右側にあり、該変化点
a0のそれと濃度レベルの異なる変化点をb1、当該参
照ライン上で、前記変化点b1より、右側の最初の変化
点をb2として、これら変化点を検出する段階と、 前記変化点b2の当該ライン上の位置が、前記変化点a
1の当該ライン上の位置より、左側にあるか否かを判定
する第1の判定段階と、 前記第1の判定結果が肯定的の場合、その旨を特定符号
Pで符号化する段階と、続いて前記変化点b2の当該参
照ライン上の位置と同じ当該符号化ライン上の画素位置
を新たな基準変化点a0に選定する段階と、 前記変化点a1とb1のそれぞれのライン上での位置の
差Δaと濃度レベル差Δnをそれぞれ求める段階と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それが所定の範囲に収
まっているか否かを判定する第2の判定段階と、 前記第1の判定結果が否定的で、前記第2の判定結果が
肯定的の場合、前記2次元的な変位(Δa,Δn)に対
応する予め定めた符号V(Δa,Δn)を求めることに
より、前記変化点a1を符号化する段階と、続いて、符
号化した前記変化点a1を新たな基準変化点a0とし、
前記変化点a2を新たな変化点a1として、上記手順を
繰り返す段階と、 前記第1の判定結果が否定的で、前記第2の判定結果も
否定的の場合、その旨を示す特定符号Hと、前記変化点
a0からa1までのラン長Δa0を示す符号R(Δa
0)および前記変化点a0とa1の濃度差Δn0を示す
符号L(Δn0)と、前記変化点a1からa2までのラ
ン長Δa1を示す符号R(Δa1)および前記変化点a
1とa2の濃度差Δn1を示す符号L(Δn1)と、で
前記変化点a1,a2を符号化する段階と、続いて、前
記変化点a2を新たな基準変化点a0として、上記手順
を繰り返す段階と、 から成ることを特徴とする多値画像データ符号化方法。
8. Multi-valued image data obtained by scanning an image and sampling in pixel units is taken, and the minimum density level is white or the maximum density level is black depending on the density level of each pixel data. A step of performing binary quantization, an output step of taking in the multi-valued image data and outputting each pixel data without changing its density level, and a step of taking in the multi-valued image data and selecting a pixel as a target pixel therein Regarding the data, based on the respective density levels of the pixel data and the pixel data located in the periphery of the pixel data, it is possible to determine whether or not the pixel data of interest belongs to a character / line drawing area or not. A step of selecting the binary quantized output when the image area discrimination result is affirmative, and a negative step when the image area discrimination result is negative; When each line of the image data that is the output is a coded line, the density level of each line is different from that of the immediately preceding pixel in the scanning order, and the position of a different pixel is detected as a change point. At the change point on the encoding line, a reference change point serving as a reference for defining another change point is a0, and the reference change point a0 on the encoding line is viewed in the scanning direction (hereinafter,
Detecting these change points with the first change point being the right side (a1), the first change point on the right side from the change point a1 on the encoding line, and a2, and the already encoded line. On the line, a change point on the right side of the corresponding position of the reference change point a0 and having a density level different from that of the change point a0 is b1, and the first change on the right side of the change point b1 on the reference line. The point where b2 is the point of detection of these change points, and the position of the change point b2 on the line is the change point a.
A first determination step of determining whether or not the position is on the left side of the position of 1 on the line; and, if the first determination result is affirmative, encoding that effect with a specific code P, Subsequently, selecting a pixel position on the coding line that is the same as the position of the change point b2 on the reference line as a new reference change point a0, and the positions of the change points a1 and b1 on the respective lines. Difference Δa and density level difference Δn, and whether the calculated position difference Δa and density level difference Δn are two-dimensional displacements (Δa, Δn) and whether they are within a predetermined range. And a second determination step for determining whether or not the first determination result is negative and the second determination result is positive, the predetermined determination corresponding to the two-dimensional displacement (Δa, Δn). The change point is calculated by obtaining the code V (Δa, Δn) A method for encoding a 1, followed by the change point a1 obtained by coding the new reference change point a0,
A step of repeating the above procedure with the change point a2 as a new change point a1, and when the first determination result is negative and the second determination result is also negative, a specific code H indicating that , A code R (Δa indicating the run length Δa0 from the change points a0 to a1
0) and the code L (Δn0) indicating the density difference Δn0 between the change points a0 and a1, the code R (Δa1) indicating the run length Δa1 from the change points a1 to a2, and the change point a.
The step of encoding the change points a1 and a2 with the code L (Δn1) indicating the density difference Δn1 between 1 and a2, and then the above procedure is repeated with the change point a2 as a new reference change point a0. A multi-valued image data encoding method comprising the steps of:
【請求項9】 画像を走査し画素単位にサンプリングし
て得た多値画像データを取込み、その中で注目画素とし
て選定した画素データにつき、当該画素データと、その
周辺に位置する画素データと、のそれぞれの濃度レベル
をもとに、当該注目画素データが、文字・線画の如き2
値画像領域に属するものか、写真の如き多値画像領域に
属するものか、を判別する像域判別段階と、 画像を走査し画素単位にサンプリングして得た前記多値
画像データを取込み、前記像域判別結果を用いて、取り
込んだその多値画像データを、その中で、写真の如き多
値画像領域に属する画像データは最小濃度レベルである
白とし、文字・線画の如き2値画像領域に属する画像デ
ータはそのままとした第1の画像データ面を作成する段
階と、 前記像域判別結果を用いて、取り込んだその同じ多値画
像データを、その中で、写真の如き多値画像領域に属す
る画像データはそのままとし、文字・線画の如き2値画
像領域に属する画像データは最小濃度レベルである白と
した第2の画像データ面を作成する段階と、 前記第1の画像データ面に属する画像データは2値量子
化して第1の符号化方式で符号化する第1の符号化段階
と、 前記第2の画像データ面に属する画像データは、前記第
1の符号化方式とは異なる第2の符号化方式で符号化す
る第2の符号化段階と、 前記第1の画像データ面と第2の画像データ面につき、
先頭符号化ラインより交互に符号化データを伝送する段
階と、から成ることを特徴とする多値画像データ符号化
方法。
9. Multi-valued image data obtained by scanning an image and sampling in pixel units, and regarding the pixel data selected as a pixel of interest therein, the pixel data and pixel data located in the periphery thereof, Based on each density level of the
An image area discrimination step of discriminating whether the image belongs to a value image area or a multivalued image area such as a photograph, and the multivalued image data obtained by scanning the image and sampling pixel by pixel is taken in, Using the image area discrimination result, the captured multi-valued image data is set to white, which is the minimum density level, of the image data belonging to the multi-valued image area such as a photograph, and the binary image area such as a character or line drawing. The step of creating a first image data surface with the image data belonging to the same as is, and the same multi-valued image data captured by using the image area discrimination result, Creating a second image data surface in which the image data belonging to the same is left as it is, and the image data belonging to the binary image area such as a character and a line drawing is white which is the minimum density level; Belong to A first encoding step of binary-quantizing image data and encoding the image data by a first encoding method; and image data belonging to the second image data plane, which is different from the first encoding method. A second encoding step of encoding with the second encoding method, and the first image data surface and the second image data surface,
A method for encoding multi-valued image data, comprising the step of alternately transmitting encoded data from a head encoding line.
【請求項10】 請求項9に記載の多値画像データ符号
化方法において、前記第2の符号化方法が、請求項1,
2,3,4,又は5に記載の符号化方法から成ることを
特徴とする多値画像データ符号化方法。
10. The multi-valued image data encoding method according to claim 9, wherein the second encoding method is the method of claim 1,
2. A multivalued image data encoding method comprising the encoding method described in 2, 3, 4, or 5.
【請求項11】 請求項9または10に記載の多値画像
データ符号化方法において、前記第1の符号化方法によ
る符号化データ列と第2の符号化方法による符号化デー
タ列を識別する識別符号を、各符号化データ列の先頭に
付すことを特徴とする多値画像データ符号化方法。
11. The multi-valued image data encoding method according to claim 9 or 10, wherein identification is performed to identify an encoded data sequence by the first encoding method and an encoded data sequence by the second encoding method. A multi-valued image data encoding method, wherein a code is added to the head of each encoded data string.
【請求項12】 画像を走査し画素単位にサンプリング
して得た多値画像データを取込み、その中で注目画素と
して選定した画素データにつき、当該画素データと、そ
の周辺に位置する画素データと、のそれぞれの濃度レベ
ルをもとに、当該注目画素データが、文字・線画領域に
属するものか、否か、を判別する像域判別段階と、 前記判別結果が肯定的な場合、当該画素データの濃度レ
ベルに応じて、当該画素データを最小濃度レベルである
白又は最大濃度レベルである黒に2値化する2値化処理
段階と、 前記2値化処理段階により2値化された画像データ列を
MR符号化方式で2値符号化する段階と、前記判別結果
が否定的な場合、当該画素データ列を多値符号化方式で
符号化する多値符号化段階と、 前記2値化した2値符号化コード列および前記多値符号
化コード列の、それぞれの先頭に、符号化方式を識別す
る識別符号を付加する段階と、から成ることを特徴とす
る多値画像データ符号化方法。
12. Multi-valued image data obtained by scanning an image and sampling in pixel units, and regarding the pixel data selected as a pixel of interest therein, the pixel data and pixel data located in the periphery thereof, An image area determination step of determining whether or not the pixel data of interest belongs to a character / line drawing area based on each of the density levels of, and if the determination result is affirmative, A binarization processing step of binarizing the pixel data into white, which is the minimum density level, or black, which is the maximum density level, according to the density level; and an image data string binarized by the binarization processing step. Is binary-coded by an MR coding method, and if the determination result is negative, a multi-value coding step of coding the pixel data string by a multi-value coding method, and the binarization Value encoding code string And a step of adding an identification code for identifying an encoding method to the head of each of the multi-level encoded code string, the multi-level image data encoding method.
【請求項13】 請求項12に記載の多値画像データ符
号化方法において、前記多値符号化段階が、請求項1,
2,3,4,又は5に記載の多値画像データ符号化方法
から成ることを特徴とする多値画像データ符号化方法。
13. The method for encoding multi-valued image data according to claim 12, wherein the multi-valued encoding step comprises:
A multivalued image data encoding method comprising the multivalued image data encoding method described in 2, 3, 4, or 5.
【請求項14】 画像を走査し画素単位にサンプリング
して得た多値画像データの各ラインを符号化ラインとす
るとき、各ラインについて、濃度レベルが、走査順に見
て直前の画素のそれと、異なる画素の位置を変化点とし
て検出する手段(4)と、 符号化ライン上の変化点を、すでに符号化されたライン
である参照ライン上の変化点と比較し、位置の差Δaを
求める手段(12)と、濃度レベルの差Δnを求める手
段(13)と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それに対応する予め定
めた符号V(Δa,Δn)を求めることにより、前記符
号化ライン上の変化点を符号化する手段(15)と、か
ら成ることを特徴とする多値画像データ符号化装置。
14. When each line of multi-valued image data obtained by scanning an image and sampling in pixel units is used as an encoding line, the density level of each line is that of the immediately preceding pixel in the scanning order, and Means (4) for detecting the position of different pixels as a change point, and means for comparing the change point on the coding line with the change point on the reference line which is an already coded line to obtain a position difference Δa. (12) and a means (13) for obtaining the difference Δn between the density levels, and a predetermined two-dimensional displacement (Δa, Δn) corresponding to the obtained difference Δa between the positions and the difference Δn between the density levels. A multi-valued image data encoding device comprising: a means (15) for encoding a change point on the encoding line by obtaining a code V (Δa, Δn).
【請求項15】 画像を走査し画素単位にサンプリング
して得た多値画像データの各ラインを符号化ラインとす
るとき、各ラインについて、濃度レベルが、走査順に見
て直前の画素のそれと、異なる画素の位置を変化点とし
て検出することとして、 前記符号化ライン上の変化点で、他の変化点を定義する
ための基準となる基準変化点をa0、当該符号化ライン
上で前記基準変化点a0より、走査方向に見て(以下、
右側という)最初の変化点をa1、当該符号化ライン上
で前記変化点a1より、右側の最初の変化点をa2、と
してこれら変化点を検出する手段と、 すでに符号化されたラインである参照ライン上で、前記
基準変化点a0の相当位置より、右側にあり、該変化点
a0のそれと濃度レベルの異なる変化点をb1、当該参
照ライン上で、前記変化点b1より、右側の最初の変化
点をb2として、これら変化点を検出する手段と、 前記変化点a1とb1のそれぞれのライン上での位置の
差Δaと濃度レベル差Δnをそれぞれ求める手段と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それが所定の範囲に収
まっているか否かを判定する手段と、 それが所定の範囲に収まっているとき、前記2次元的な
変位(Δa,Δn)に対応する予め定めた符号V(Δ
a,Δn)を求めることにより、前記変化点a1を符号
化する手段と、 その後、符号化した前記変化点a1を新たな基準変化点
a0とし、前記変化点a2を新たな変化点a1として、
上記手順を繰り返す手段と、から成ることを特徴とする
多値画像データ符号化装置。
15. When each line of multi-valued image data obtained by scanning an image and sampling in pixel units is used as an encoding line, the density level of each line is that of the immediately preceding pixel in the scanning order, By detecting the position of a different pixel as a change point, a change point on the coding line is a0, a reference change point serving as a reference for defining another change point, and the reference change on the coding line. Seen in the scanning direction from the point a0 (hereinafter,
Means for detecting these first change points a1), the first change point a1 on the right of the change line a1 on the coded line, and a2, and the already encoded line. On the line, a change point on the right side of the corresponding position of the reference change point a0 and having a density level different from that of the change point a0 is b1, and the first change on the right side of the change point b1 on the reference line. The point is set as b2, a means for detecting these change points, a means for respectively obtaining the position difference Δa and the density level difference Δn on the respective lines of the change points a1 and b1, and the obtained position difference Δa. Means for determining whether or not the difference Δn between the concentration levels is within a predetermined range by using the two-dimensional displacement (Δa, Δn) as a displacement, and when the difference is within a predetermined range, the two-dimensional displacement Displacement ( Predetermined code V (Δ) corresponding to Δa, Δn)
a, Δn), means for encoding the change point a1, and then the encoded change point a1 as a new reference change point a0 and the change point a2 as a new change point a1.
A multi-valued image data encoding device comprising: means for repeating the above procedure.
【請求項16】 画像を走査し画素単位にサンプリング
して得た多値画像データの各ラインを符号化ラインとす
るとき、各ラインについて、濃度レベルが、走査順に見
て直前の画素のそれと、異なる画素の位置を変化点とし
て検出することとして、 前記符号化ライン上の変化点で、他の変化点を定義する
ための基準となる基準変化点をa0、当該符号化ライン
上で前記基準変化点a0より、走査方向に見て(以下、
右側という)最初の変化点をa1、当該符号化ライン上
で前記変化点a1より、右側の最初の変化点をa2、と
してこれら変化点を検出する手段と、 すでに符号化されたラインである参照ライン上で、前記
基準変化点a0の相当位置より、右側にあり、該変化点
a0のそれと濃度レベルの異なる変化点をb1、当該参
照ライン上で、前記変化点b1より、右側の最初の変化
点をb2として、これら変化点を検出する手段と、 前記変化点b2の当該ライン上の位置が、前記変化点a
1の当該ライン上の位置より、左側にあるか否かを判定
する第1の判定手段(10)と、 前記第1の判定結果が肯定的の場合、その旨を特定符号
Pで符号化する手段と、続いて前記変化点b2の当該参
照ライン上の位置と同じ当該符号化ライン上の画素位置
を新たな基準変化点a0に選定する手段と、 前記変化点a1とb1のそれぞれのライン上での位置の
差Δaと濃度レベル差Δnをそれぞれ求める手段と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それが所定の範囲に収
まっているか否かを判定する第2の判定手段(14)
と、 前記第1の判定結果が否定的で、前記第2の判定結果が
肯定的の場合、前記2次元的な変位(Δa,Δn)に対
応する予め定めた符号V(Δa,Δn)を求めることに
より、前記変化点a1を符号化する手段と、続いて、符
号化した前記変化点a1を新たな基準変化点a0とし、
前記変化点a2を新たな変化点a1として、上記手順を
繰り返す手段と、 前記第1の判定結果が否定的で、前記第2の判定結果も
否定的の場合、その旨を示す特定符号Hと、前記変化点
a0からa1までのラン長Δa0を示す符号R(Δa
0)および前記変化点a0とa1の濃度差Δn0を示す
符号L(Δn0)と、前記変化点a1からa2までのラ
ン長Δa1を示す符号R(Δa1)および前記変化点a
1とa2の濃度差Δn1を示す符号L(Δn1)と、で
前記変化点a1,a2を符号化する手段と、続いて、前
記変化点a2を新たな基準変化点a0として、上記手順
を繰り返す手段と、 から成ることを特徴とする多値画像データ符号化装置。
16. When each line of multi-valued image data obtained by scanning an image and sampling in pixel units is used as an encoding line, the density level of each line is that of the immediately preceding pixel in the scanning order, By detecting the position of a different pixel as a change point, a change point on the coding line is a0, a reference change point serving as a reference for defining another change point, and the reference change on the coding line. Seen in the scanning direction from the point a0 (hereinafter,
Means for detecting these first change points a1), the first change point a1 on the right of the change line a1 on the coded line, and a2, and the already encoded line. On the line, a change point on the right side of the corresponding position of the reference change point a0 and having a density level different from that of the change point a0 is b1, and the first change on the right side of the change point b1 on the reference line. The point is defined as b2, and means for detecting these change points and the position of the change point b2 on the line are the change points a
A first determination means (10) for determining whether or not the position is on the left side of the position of 1 on the line, and if the result of the first determination is affirmative, that effect is encoded by a specific code P. And a means for subsequently selecting a pixel position on the coding line that is the same as the position of the change point b2 on the reference line as a new reference change point a0, and on each line of the change points a1 and b1. Means for obtaining the position difference Δa and the concentration level difference Δn, and the obtained position difference Δa and the concentration level difference Δn as a two-dimensional displacement (Δa, Δn), which is within a predetermined range. Second determination means (14) for determining whether or not
When the first determination result is negative and the second determination result is affirmative, a predetermined code V (Δa, Δn) corresponding to the two-dimensional displacement (Δa, Δn) is set. A means for encoding the change point a1 by obtaining, and subsequently, the encoded change point a1 as a new reference change point a0,
Means for repeating the above procedure with the change point a2 as a new change point a1 and a specific code H indicating that when the first determination result is negative and the second determination result is also negative. , A code R (Δa indicating the run length Δa0 from the change points a0 to a1
0) and the code L (Δn0) indicating the density difference Δn0 between the change points a0 and a1, the code R (Δa1) indicating the run length Δa1 from the change points a1 to a2, and the change point a.
A means for encoding the change points a1 and a2 with a code L (Δn1) indicating the density difference Δn1 between 1 and a2, and then the above procedure is repeated with the change point a2 as a new reference change point a0. A multivalued image data encoding device comprising:
【請求項17】 請求項15又は16に記載の多値画像
データ符号化装置において、変化点a1とb1の位置の
差Δaと濃度レベル差Δnの2次元的変位(Δa,Δ
n)が所定の範囲にあるか否かを判定する判定結果が肯
定的なとき、変化点a1を前記2次元的変位(Δa,Δ
n)に対応して符号化する符号V(Δa,Δn)におい
て、Δaが-3,-2,-1,0,1,2,3の中の何れかの値で、Δn
=0のときの符号を、白黒2値用の標準符号化方式であ
るMR(モディファイド・リード)符号の垂直モードに
於ける符号と一致させることを特徴とする多値画像デー
タ符号化装置。
17. The multi-valued image data encoding apparatus according to claim 15 or 16, wherein a two-dimensional displacement (Δa, Δ) between a position difference Δa between change points a1 and b1 and a density level difference Δn.
When the determination result for determining whether or not n) is within a predetermined range is affirmative, the change point a1 is set to the two-dimensional displacement (Δa, Δ).
n), in the code V (Δa, Δn) to be encoded, Δa is any value in -3, -2, -1, 0, 1, 2, 3
A multivalued image data coding device, wherein a code when = 0 is matched with a code in a vertical mode of MR (Modified Read) code which is a standard coding method for binary black and white.
【請求項18】 請求項15,16又は17に記載の多
値画像データ符号化装置において、符号化の対象とする
全ラインの中で、先頭ラインと、それ以降第K番目(但
しKは整数)のライン毎に、当該ライン上で変化点とし
て検出した画素位置の列をc0,c1,c2,c3,c4,,,cN
とするとき(Nは任意の整数)、これら変化点列c0,c
1,c2,c3,c4,,,cN を、変化点cj からcj+1 までの
ラン長Δaj を示す符号R(Δaj )と、変化点cj と
cj+1 の濃度差Δnj を示す符号L(Δnj )と(ただ
しj=0,,,N-1 )、で符号化し、この符号列の先頭に、上
記符号列である旨の符号EOL1を付加することを特徴とす
る多値画像データ符号化装置。
18. The multi-valued image data encoding device according to claim 15, 16 or 17, wherein, of all the lines to be encoded, the first line and the K-th line thereafter (where K is an integer). ), The columns of pixel positions detected as change points on the line are c0, c1, c2, c3, c4 ,, cN
(N is an arbitrary integer), these change point sequences c0, c
1, c2, c3, c4,, cN are code R (Δaj) indicating the run length Δaj from the change points cj to cj + 1 and L (j) indicating the density difference Δnj between the change points cj and cj + 1. Δnj) and (where j = 0 ,,, N-1), and adds the code EOL1 to the beginning of this code string to the beginning of this code string. apparatus.
【請求項19】 画像を走査し画素単位にサンプリング
して得た多値画像データを取込み、各画素データ毎にそ
の濃度レベルに応じて最小濃度レベルである白か、最大
濃度レベルである黒に、2値量子化する手段(60)
と、 前記多値画像データを取込み、各画素データをその濃度
レベルをそのままに出力する出力手段と、 前記多値画像データを取込み、その中で注目画素として
選定した画素データにつき、当該画素データと、その周
辺に位置する画素データと、のそれぞれの濃度レベルを
もとに、当該注目画素データが、文字・線画領域に属す
るものか、否かを判別する像域判別手段と、 前記像域判別結果が肯定的な場合、前記2値量子化手段
の出力を選択して通し、否定的な場合、前記出力手段の
出力を選択して通す選択手段(61)と、 前記選択手段からの出力である画像データの各ラインを
符号化ラインとするとき、各ラインについて、濃度レベ
ルが、走査順に見て直前の画素のそれと、異なる画素の
位置を変化点として検出する手段と、 符号化ライン上の変化点を、すでに符号化されたライン
である参照ライン上の変化点と比較し、位置の差Δaを
求める手段と、濃度レベルの差Δnを求める手段と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それに対応する予め定
めた符号V(Δa,Δn)を求めることにより、前記符
号化ライン上の変化点を符号化する手段(15)と、か
ら成ることを特徴とする多値画像データ符号化装置。
19. Multi-valued image data obtained by scanning an image and sampling in pixel units is taken, and the minimum density level is white or the maximum density level is black depending on the density level of each pixel data. Means for binary quantization (60)
An output unit that takes in the multi-valued image data and outputs each pixel data without changing its density level; and, for the pixel data selected as a pixel of interest in the multi-valued image data, the pixel data and An image area discrimination means for discriminating whether or not the pixel data of interest belongs to a character / line drawing area based on respective density levels of the pixel data located around the pixel area and the pixel data located around the pixel area. If the result is affirmative, the output of the binary quantizing means is selected and passed, and if the result is negative, the selecting means (61) that selects and passes the output of the output means, and the output from the selecting means. When each line of a certain image data is used as a coded line, a density level of each line is different from that of the immediately preceding pixel in the scanning order, and a means for detecting a position of a different pixel as a change point, and a coded line The change point on the reference line, which is an already encoded line, to obtain the position difference Δa, the means to obtain the density level difference Δn, and the obtained position difference. The change point on the coding line is coded by obtaining the predetermined code V (Δa, Δn) corresponding to the difference Δn between Δa and the density level as a two-dimensional displacement (Δa, Δn). A multivalued image data encoding device comprising: a means (15);
【請求項20】 画像を走査し画素単位にサンプリング
して得た多値画像データを取込み、各画素データ毎にそ
の濃度レベルに応じて最小濃度レベルである白か、最大
濃度レベルである黒に、2値量子化する手段(60)
と、 前記多値画像データを取込み、各画素データをその濃度
レベルをそのままに出力する出力手段と、 前記多値画像データを取込み、その中で注目画素として
選定した画素データにつき、当該画素データと、その周
辺に位置する画素データと、のそれぞれの濃度レベルを
もとに、当該注目画素データが、文字・線画領域に属す
るものか、否かを判別する像域判別手段と、 前記像域判別結果が肯定的な場合、前記2値量子化手段
の出力を選択して通し、否定的な場合、前記出力手段の
出力を選択して通す選択手段(61)と、 前記選択手段からの出力である画像データの各ラインを
符号化ラインとするとき、各ラインについて、濃度レベ
ルが、走査順に見て直前の画素のそれと、異なる画素の
位置を変化点として検出することとして、 前記符号化ライン上の変化点で、他の変化点を定義する
ための基準となる基準変化点をa0、当該符号化ライン
上で前記基準変化点a0より、走査方向に見て(以下、
右側という)最初の変化点をa1、当該符号化ライン上
で前記変化点a1より、右側の最初の変化点をa2、と
してこれら変化点を検出する手段と、 すでに符号化されたラインである参照ライン上で、前記
基準変化点a0の相当位置より、右側にあり、該変化点
a0のそれと濃度レベルの異なる変化点をb1、当該参
照ライン上で、前記変化点b1より、右側の最初の変化
点をb2として、これら変化点を検出する手段と、 前記変化点a1とb1のそれぞれのライン上での位置の
差Δaと濃度レベル差Δnをそれぞれ求める手段と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それが所定の範囲に収
まっているか否かを判定する手段と、 それが所定の範囲に収まっているとき、前記2次元的な
変位(Δa,Δn)に対応する予め定めた符号V(Δ
a,Δn)を求めることにより、前記変化点a1を符号
化する手段と、 その後、符号化した前記変化点a1を新たな基準変化点
a0とし、前記変化点a2を新たな変化点a1として、
上記手順を繰り返す手段と、から成ることを特徴とする
多値画像データ符号化装置。
20. The multi-valued image data obtained by scanning an image and sampling in pixel units is taken in, and the minimum density level is white or the maximum density level is black depending on the density level of each pixel data. Means for binary quantization (60)
An output unit that takes in the multi-valued image data and outputs each pixel data without changing its density level; and, for the pixel data selected as a pixel of interest in the multi-valued image data, the pixel data and An image area discrimination means for discriminating whether or not the pixel data of interest belongs to a character / line drawing area based on respective density levels of the pixel data located around the pixel area and the pixel data located around the pixel area. If the result is affirmative, the output of the binary quantizing means is selected and passed, and if the result is negative, the selecting means (61) that selects and passes the output of the output means, and the output from the selecting means. When each line of certain image data is an encoded line, the density level of each line is different from that of the immediately preceding pixel in the scanning order, and the position of a different pixel is detected as a change point. A change point on the No. of lines, the reference change point as a reference for defining the other change point a0, than the reference change point a0 on the coding line, as viewed in the scanning direction (hereinafter,
Means for detecting these first change points a1), the first change point a1 on the right of the change line a1 on the coded line, and a2, and the already encoded line. On the line, a change point on the right side of the corresponding position of the reference change point a0 and having a density level different from that of the change point a0 is b1, and the first change on the right side of the change point b1 on the reference line. The point is set as b2, a means for detecting these change points, a means for respectively obtaining the position difference Δa and the density level difference Δn on the respective lines of the change points a1 and b1, and the obtained position difference Δa. Means for determining whether or not the difference Δn between the concentration levels is within a predetermined range by using the two-dimensional displacement (Δa, Δn) as a displacement, and when the difference is within a predetermined range, the two-dimensional displacement Displacement ( Predetermined code V (Δ) corresponding to Δa, Δn)
a, Δn), means for encoding the change point a1, and then the encoded change point a1 as a new reference change point a0 and the change point a2 as a new change point a1.
A multi-valued image data encoding device comprising: means for repeating the above procedure.
【請求項21】 画像を走査し画素単位にサンプリング
して得た多値画像データを取込み、各画素データ毎にそ
の濃度レベルに応じて最小濃度レベルである白か、最大
濃度レベルである黒に、2値量子化する手段(60)
と、 前記多値画像データを取込み、各画素データをその濃度
レベルをそのままに出力する出力手段と、 前記多値画像データを取込み、その中で注目画素として
選定した画素データにつき、当該画素データと、その周
辺に位置する画素データと、のそれぞれの濃度レベルを
もとに、当該注目画素データが、文字・線画領域に属す
るものか、否かを判別する像域判別手段と、 前記像域判別結果が肯定的な場合、前記2値量子化手段
の出力を選択して通し、否定的な場合、前記出力手段の
出力を選択して通す選択手段(61)と、 前記選択手段からの出力である画像データの各ラインを
符号化ラインとするとき、各ラインについて、濃度レベ
ルが、走査順に見て直前の画素のそれと、異なる画素の
位置を変化点として検出することとして、 前記符号化ライン上の変化点で、他の変化点を定義する
ための基準となる基準変化点をa0、当該符号化ライン
上で前記基準変化点a0より、走査方向に見て(以下、
右側という)最初の変化点をa1、当該符号化ライン上
で前記変化点a1より、右側の最初の変化点をa2、と
してこれら変化点を検出する手段と、 すでに符号化されたラインである参照ライン上で、前記
基準変化点a0の相当位置より、右側にあり、該変化点
a0のそれと濃度レベルの異なる変化点をb1、当該参
照ライン上で、前記変化点b1より、右側の最初の変化
点をb2として、これら変化点を検出する手段と、 前記変化点b2の当該ライン上の位置が、前記変化点a
1の当該ライン上の位置より、左側にあるか否かを判定
する第1の判定手段(10)と、 前記第1の判定結果が肯定的の場合、その旨を特定符号
Pで符号化する手段と、続いて前記変化点b2の当該参
照ライン上の位置と同じ当該符号化ライン上の画素位置
を新たな基準変化点a0に選定する手段と、 前記変化点a1とb1のそれぞれのライン上での位置の
差Δaと濃度レベル差Δnをそれぞれ求める手段と、 求めた前記位置の差Δaと濃度レベルの差Δnを2次元
的な変位(Δa,Δn)として、それが所定の範囲に収
まっているか否かを判定する第2の判定手段(14)
と、 前記第1の判定結果が否定的で、前記第2の判定結果が
肯定的の場合、前記2次元的な変位(Δa,Δn)に対
応する予め定めた符号V(Δa,Δn)を求めることに
より、前記変化点a1を符号化する手段と、続いて、符
号化した前記変化点a1を新たな基準変化点a0とし、
前記変化点a2を新たな変化点a1として、上記手順を
繰り返す手段と、 前記第1の判定結果が否定的で、前記第2の判定結果も
否定的の場合、その旨を示す特定符号Hと、前記変化点
a0からa1までのラン長Δa0を示す符号R(Δa
0)および前記変化点a0とa1の濃度差Δn0を示す
符号L(Δn0)と、前記変化点a1からa2までのラ
ン長Δa1を示す符号R(Δa1)および前記変化点a
1とa2の濃度差Δn1を示す符号L(Δn1)と、で
前記変化点a1,a2を符号化する手段と、続いて、前
記変化点a2を新たな基準変化点a0として、上記手順
を繰り返す手段と、 から成ることを特徴とする多値画像データ符号化装置。
21. Multi-valued image data obtained by scanning an image and sampling in pixel units is taken, and the minimum density level is white or the maximum density level is black depending on the density level of each pixel data. Means for binary quantization (60)
An output unit that takes in the multi-valued image data and outputs each pixel data without changing its density level; and, for the pixel data selected as a pixel of interest in the multi-valued image data, the pixel data and An image area discrimination means for discriminating whether or not the pixel data of interest belongs to a character / line drawing area based on respective density levels of the pixel data located around the pixel area and the pixel data located around the pixel area. If the result is affirmative, the output of the binary quantizing means is selected and passed, and if the result is negative, the selecting means (61) that selects and passes the output of the output means, and the output from the selecting means. When each line of certain image data is an encoded line, the density level of each line is different from that of the immediately preceding pixel in the scanning order, and the position of a different pixel is detected as a change point. A change point on the No. of lines, the reference change point as a reference for defining the other change point a0, than the reference change point a0 on the coding line, as viewed in the scanning direction (hereinafter,
Means for detecting these first change points a1), the first change point a1 on the right of the change line a1 on the coded line, and a2, and the already encoded line. On the line, a change point on the right side of the corresponding position of the reference change point a0 and having a density level different from that of the change point a0 is b1, and the first change on the right side of the change point b1 on the reference line. The point is defined as b2, and means for detecting these change points and the position of the change point b2 on the line are the change points a
A first determination means (10) for determining whether or not the position is on the left side of the position of 1 on the line, and if the result of the first determination is affirmative, that effect is encoded by a specific code P. And a means for subsequently selecting a pixel position on the coding line that is the same as the position of the change point b2 on the reference line as a new reference change point a0, and on each line of the change points a1 and b1. Means for obtaining the position difference Δa and the concentration level difference Δn, and the obtained position difference Δa and the concentration level difference Δn as a two-dimensional displacement (Δa, Δn), which is within a predetermined range. Second determination means (14) for determining whether or not
When the first determination result is negative and the second determination result is affirmative, a predetermined code V (Δa, Δn) corresponding to the two-dimensional displacement (Δa, Δn) is set. A means for encoding the change point a1 by obtaining, and subsequently, the encoded change point a1 as a new reference change point a0,
Means for repeating the above procedure with the change point a2 as a new change point a1 and a specific code H indicating that when the first determination result is negative and the second determination result is also negative. , A code R (Δa indicating the run length Δa0 from the change points a0 to a1
0) and the code L (Δn0) indicating the density difference Δn0 between the change points a0 and a1, the code R (Δa1) indicating the run length Δa1 from the change points a1 to a2, and the change point a.
A means for encoding the change points a1 and a2 with a code L (Δn1) indicating the density difference Δn1 between 1 and a2, and then the above procedure is repeated with the change point a2 as a new reference change point a0. A multivalued image data encoding device comprising:
【請求項22】 画像を走査し画素単位にサンプリング
して得た多値画像データを取込み、その中で注目画素と
して選定した画素データにつき、当該画素データと、そ
の周辺に位置する画素データと、のそれぞれの濃度レベ
ルをもとに、当該注目画素データが、文字・線画の如き
2値画像領域に属するものか、写真の如き多値画像領域
に属するものか、を判別する像域判別手段と、 画像を走査し画素単位にサンプリングして得た前記多値
画像データを取込み、前記像域判別手段による判別結果
を用いて、取り込んだその多値画像データを、その中
で、写真の如き多値画像領域に属する画像データは最小
濃度レベルである白とし、文字・線画の如き2値画像領
域に属する画像データはそのままとした第1の画像デー
タ面を作成する手段と、 前記像域判別手段による判別結果を用いて、取り込んだ
その同じ多値画像データを、その中で、写真の如き多値
画像領域に属する画像データはそのままとし、文字・線
画の如き2値画像領域に属する画像データは最小濃度レ
ベルである白とした第2の画像データ面を作成する手段
と、 前記第1の画像データ面に属する画像データは2値量子
化して第1の符号化方式で符号化する第1の符号化手段
と、 前記第2の画像データ面に属する画像データは、前記第
1の符号化方式とは異なる第2の符号化方式で符号化す
る第2の符号化手段と、 前記第1の画像データ面と第2の画像データ面につき、
先頭符号化ラインより交互に符号化データを伝送する手
段と、から成ることを特徴とする多値画像データ符号化
装置。
22. The multi-valued image data obtained by scanning an image and sampling in pixel units is taken in, and for the pixel data selected as a pixel of interest therein, the pixel data and pixel data located in the periphery thereof, An image area discriminating means for discriminating whether the pixel data of interest belongs to a binary image area such as a character / line drawing or a multivalued image area such as a photograph based on the respective density levels of , The multi-valued image data obtained by scanning the image and sampling in pixel units is taken in, and the multi-valued image data taken in is taken in by using the result of the discrimination by the image area discrimination means. Image data belonging to the value image area is white, which is the minimum density level, and means for creating a first image data surface in which the image data belonging to the binary image area such as a character / line drawing is left unchanged; Using the discrimination result by the region discriminating means, the same multi-valued image data that has been captured is left in the same multi-valued image region such as a photograph, but remains in the binary image region such as a character or line drawing. Image data has a minimum density level of white, and means for creating a second image data surface, and image data belonging to the first image data surface is binary-quantized and encoded by the first encoding method. A first encoding means; a second encoding means for encoding the image data belonging to the second image data surface by a second encoding method different from the first encoding method; For the first image data surface and the second image data surface,
A multivalued image data encoding device, comprising: means for alternately transmitting encoded data from a head encoding line.
【請求項23】 請求項22に記載の多値画像データ符
号化装置において、前記第2の符号化手段が、請求項1
4,15,16,17,又は18に記載の符号化手段か
ら成ることを特徴とする多値画像データ符号化装置。
23. The multi-valued image data encoding device according to claim 22, wherein the second encoding means comprises:
A multivalued image data encoding device comprising the encoding means described in 4, 15, 16, 17, or 18.
【請求項24】 請求項22または23に記載の多値画
像データ符号化装置において、前記第1の符号化手段に
よる符号化データ列と第2の符号化手段による符号化デ
ータ列を識別する識別符号を、各符号化データ列の先頭
に付すことを特徴とする多値画像データ符号化装置。
24. The multi-valued image data encoding device according to claim 22 or 23, which identifies a coded data string by the first coding means and a coded data string by the second coding means. A multi-valued image data encoding device, wherein a code is added to the head of each encoded data string.
【請求項25】 画像を走査し画素単位にサンプリング
して得た多値画像データを取込み、その中で注目画素と
して選定した画素データにつき、当該画素データと、そ
の周辺に位置する画素データと、のそれぞれの濃度レベ
ルをもとに、当該注目画素データが、文字・線画領域に
属するものか、否か、を判別する像域判別手段と、 前記判別結果が肯定的な場合、当該画素データの濃度レ
ベルに応じて、当該画素データを最小濃度レベルである
白又は最大濃度レベルである黒に2値化する2値化処理
手段と、 前記2値化処理手段により2値化された画像データ列を
MR符号化方式で2値符号化する手段と、前記判別結果
が否定的な場合、当該画素データ列を多値符号化方式で
符号化する多値符号化手段と、 前記2値符号化手段により2値化した2値符号化コード
列および前記多値符号化手段により多値符号化した多値
符号化コード列の、それぞれの先頭に、符号化方式を識
別する識別符号を付加する手段と、から成ることを特徴
とする多値画像データ符号化装置。
25. Multi-valued image data obtained by scanning an image and sampling in pixel units is taken in, and for the pixel data selected as a pixel of interest therein, the pixel data and pixel data located in the periphery thereof, Image area discrimination means for discriminating whether or not the pixel data of interest belongs to a character / line drawing area based on each density level of the pixel data, and if the discrimination result is affirmative, A binarization processing unit that binarizes the pixel data into white, which is the minimum density level, or black, which is the maximum density level, according to the density level; and an image data string binarized by the binarization processing unit. Is binary-coded by an MR coding system, and a multi-level coding unit that codes the pixel data string by a multi-level coding system when the determination result is negative, and the binary coding unit. Binarized by And a means for adding an identification code for identifying an encoding method to the head of each of the binary coded code string and the multi-valued coded string multi-valued coded by the multi-valued coding means. A multi-valued image data encoding device characterized.
【請求項26】 請求項25に記載の多値画像データ符
号化装置において、前記多値符号化手段が、請求項1
4,15,16,17,又は18に記載の多値画像デー
タ符号化手段から成ることを特徴とする多値画像データ
符号化装置。
26. The multi-valued image data encoding device according to claim 25, wherein the multi-valued encoding means comprises:
A multivalued image data encoding device comprising the multivalued image data encoding means described in 4, 15, 16, 17, or 18.
【請求項27】 記憶媒体あるいは伝送媒体を介して取
り込んだM階調(但しMは整数)の符号化された多値画
像データを復号化する多値画像データ復号化段階と、 前記多値画像データ復号化段階で復号化されたM階調の
多値画像をN階調(但しNは整数で、N≦M)に再量子
化し、その際の量子化誤差を当該注目画素の周辺の画素
に拡散して量子化前後の平均濃度レベルを一致させるN
値誤差拡散段階と、から成り、 多値画像表示あるいは印字手段の画素当たりの階調表現
数nがn≦Mのとき、階調表現数nに対応して前記N値
誤差拡散段階の再量子化の階調数をnにして、M階調の
復号化された多値画像を、n階調に再量子化するように
したことを特徴とする多値画像データ復元方法。
27. A multi-valued image data decoding step of decoding M-levels (where M is an integer) encoded multi-valued image data captured via a storage medium or a transmission medium, and the multi-valued image. The multi-valued image of M gradations decoded in the data decoding step is requantized into N gradations (where N is an integer, N ≦ M), and the quantization error at that time is quantized by the pixels around the target pixel. To match the average density levels before and after quantization.
A value error diffusion step, and when the gradation expression number n per pixel of the multivalued image display or printing means is n ≦ M, the requantization of the N value error diffusion step is performed corresponding to the gradation expression number n. A multi-valued image data restoration method, characterized in that the number of gradations for quantization is set to n, and the decoded multi-valued image of M gradations is re-quantized to n gradations.
【請求項28】 記憶媒体あるいは伝送媒体を介して取
り込んだM階調(但しMは整数)の符号化された多値画
像データを復号化する多値画像データ復号化段階と、 前記多値画像データ復号化段階で復号化されたM階調の
多値画像をN階調(但しNは整数で、N≦M)に再量子
化し、その際の量子化誤差を当該注目画素の周辺の画素
に拡散して量子化前後の平均濃度レベルを一致させるN
値誤差拡散段階と、から成り、 多値画像を表示するディスプレイの画素当たりの階調表
現数nd と多値画像をプリントするプリンタの画素当た
りの階調表現数np が異なり、ともにM以下の場合、デ
ィスプレイで多値画像を再現する場合は、前記N値誤差
拡散段階の再量子化の階調数をnd とし、プリンタで多
値画像を再現する場合は、前記N値誤差拡散段階の再量
子化の階調数をnp とし、それぞれ多値画像データ復号
化段階で復号化されたM階調の多値画像を再量子化する
ようにしたことを特徴とする多値画像データ復元方法。
28. A multi-valued image data decoding step for decoding M-levels (where M is an integer) encoded multi-valued image data captured via a storage medium or a transmission medium, and the multi-valued image. The multi-valued image of M gradations decoded in the data decoding step is requantized into N gradations (where N is an integer, N ≦ M), and the quantization error at that time is quantized by the pixels around the target pixel. To match the average density levels before and after quantization.
When the number of gradation representations per pixel nd of a display for displaying a multi-valued image and the number of gradation representations per pixel np of a printer for printing a multi-valued image are different and both are M or less. When reproducing a multi-valued image on a display, the number of gradations for requantization in the N-value error diffusion step is set to nd, and when reproducing a multi-valued image on a printer, requantization in the N-value error diffusion step is performed. A multi-valued image data restoration method, wherein the number of gradations for quantization is np, and the M-valued multi-valued image decoded in the multi-valued image data decoding step is requantized.
【請求項29】 記憶媒体あるいは伝送媒体を介して取
り込んだM階調(但しMは整数)の符号化された多値画
像データを復号化する多値画像データ復号化手段(6
8)と、 前記多値画像データ復号化手段で復号化されたM階調の
多値画像をN階調(但しNは整数で、N≦M)に再量子
化し、その際の量子化誤差を当該注目画素の周辺の画素
に拡散して量子化前後の平均濃度レベルを一致させるN
値誤差拡散手段(69)と、を有し、 多値画像表示あるいは印字手段の画素当たりの階調表現
数nがn≦Mのとき、階調表現数nに対応して前記N値
誤差拡散手段の再量子化の階調数をnにして、M階調の
復号化された多値画像を、n階調に再量子化するように
したことを特徴とする多値画像データ復元装置。
29. Multivalued image data decoding means (6) for decoding M gradation (where M is an integer) encoded multivalued image data taken in via a storage medium or a transmission medium.
8) and requantizing the multi-valued image of M gradations decoded by the multi-valued image data decoding means into N gradations (where N is an integer, N ≦ M), and a quantization error at that time To the pixels around the pixel of interest to match the average density levels before and after quantization N
Value error diffusion means (69), and when the gradation expression number n per pixel of the multivalued image display or printing means is n ≦ M, the N value error diffusion is performed corresponding to the gradation expression number n. A multivalued image data restoration device, wherein the number of requantization gradations of the means is set to n, and the decoded multivalued image of M gradations is requantized to n gradations.
【請求項30】 記憶媒体あるいは伝送媒体を介して取
り込んだM階調(但しMは整数)の符号化された多値画
像データを復号化する多値画像データ復号化手段(6
8)と、 前記多値画像データ復号化手段で復号化されたM階調の
多値画像をN階調(但しNは整数で、N≦M)に再量子
化し、その際の量子化誤差を当該注目画素の周辺の画素
に拡散して量子化前後の平均濃度レベルを一致させるN
値誤差拡散手段(69)と、多値画像を表示するディス
プレイ(70)と、多値画像をプリントするプリンタ
(71)と、を有し、 前記ディスプレイの画素当たりの階調表現数nd と前記
プリンタの画素当たりの階調表現数np が異なり、とも
にM以下の場合、ディスプレイで多値画像を再現する場
合は、前記N値誤差拡散手段の再量子化の階調数をnd
とし、プリンタで多値画像を再現する場合は、前記N値
誤差拡散手段の再量子化の階調数をnpとし、それぞれ
多値画像データ復号化手段で復号化されたM階調の多値
画像を再量子化するようにしたことを特徴とする多値画
像データ復元装置。
30. A multi-valued image data decoding means (6) for decoding M-level (where M is an integer) encoded multi-valued image data fetched via a storage medium or a transmission medium.
8) and requantizing the multi-valued image of M gradations decoded by the multi-valued image data decoding means into N gradations (where N is an integer, N ≦ M), and a quantization error at that time To the pixels around the pixel of interest to match the average density levels before and after quantization N
A value error diffusion means (69), a display (70) for displaying a multi-valued image, and a printer (71) for printing the multi-valued image are provided, and the gradation representation number nd per pixel of the display and the When the number of gradation representations np per pixel of the printer is different and both are M or less, and when a multi-valued image is reproduced on the display, the number of gradations for requantization of the N-value error diffusion means is nd.
In the case of reproducing a multi-valued image with a printer, the number of requantization gradations of the N-value error diffusion means is set to np, and multi-valued M gradations decoded by the multi-valued image data decoding means, respectively. A multivalued image data restoration device characterized in that an image is requantized.
JP28562192A 1992-10-23 1992-10-23 Binary and multi-valued mixed coded image data restoration method and apparatus Expired - Fee Related JP3259989B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28562192A JP3259989B2 (en) 1992-10-23 1992-10-23 Binary and multi-valued mixed coded image data restoration method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28562192A JP3259989B2 (en) 1992-10-23 1992-10-23 Binary and multi-valued mixed coded image data restoration method and apparatus

Publications (2)

Publication Number Publication Date
JPH06141184A true JPH06141184A (en) 1994-05-20
JP3259989B2 JP3259989B2 (en) 2002-02-25

Family

ID=17693905

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28562192A Expired - Fee Related JP3259989B2 (en) 1992-10-23 1992-10-23 Binary and multi-valued mixed coded image data restoration method and apparatus

Country Status (1)

Country Link
JP (1) JP3259989B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016006961A (en) * 2008-11-10 2016-01-14 アップル インコーポレイテッド System and method for compressing stream of integer-valued data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016006961A (en) * 2008-11-10 2016-01-14 アップル インコーポレイテッド System and method for compressing stream of integer-valued data

Also Published As

Publication number Publication date
JP3259989B2 (en) 2002-02-25

Similar Documents

Publication Publication Date Title
JPS59223073A (en) Picture processor
JP2794281B2 (en) Code decoding processor for dither signal
JP3095804B2 (en) Image data transmission apparatus and image data transmission method
JPH0431222B2 (en)
WO1993021725A2 (en) Methods and apparatus for halftoning and inverse halftoning and the transmission of such images
JP4522199B2 (en) Image encoding apparatus, image processing apparatus, control method therefor, computer program, and computer-readable storage medium
JPS60153264A (en) Transmission system of half tone picture
US5442459A (en) Process for encoding a half tone image considering similarity between blocks
US4688100A (en) Video data encoding/decoding apparatus
US5491564A (en) Data compression method and apparatus for binary image using Markov model encoding
US5271072A (en) Image reduction of binary images using filtering processing
JP2756371B2 (en) Image processing device
JP3231800B2 (en) Image encoding apparatus and image encoding method
US5689588A (en) Method and apparatus for increasing compressibility of multibit image data with the LSB value determined in the thresholding operation based on pixel position
JPH07264417A (en) Image coding method
US7450769B2 (en) Image processing method for facilitating data transmission
JP3259989B2 (en) Binary and multi-valued mixed coded image data restoration method and apparatus
JP3459723B2 (en) Image processing apparatus and method
JP2831954B2 (en) Image encoding / decoding device and image processing device
JP2966426B2 (en) Color image processing apparatus and method
KR0159418B1 (en) Apparatus for improving the transmission picture quality in the facsimile system and method thereof
KR940007683B1 (en) Bloc cording method of middle tone picture
JP3358132B2 (en) Image processing device
JP3732329B2 (en) Pseudo halftone image encoding apparatus and encoding method
JP2796766B2 (en) High Efficiency Coding Method of Binary Image Mixed Natural Image

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees