JP3320282B2 - Multi-value image processing device - Google Patents

Multi-value image processing device

Info

Publication number
JP3320282B2
JP3320282B2 JP27067195A JP27067195A JP3320282B2 JP 3320282 B2 JP3320282 B2 JP 3320282B2 JP 27067195 A JP27067195 A JP 27067195A JP 27067195 A JP27067195 A JP 27067195A JP 3320282 B2 JP3320282 B2 JP 3320282B2
Authority
JP
Japan
Prior art keywords
image
data
bit
bit plane
probability
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP27067195A
Other languages
Japanese (ja)
Other versions
JPH0993440A (en
Inventor
泰之 野水
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP27067195A priority Critical patent/JP3320282B2/en
Publication of JPH0993440A publication Critical patent/JPH0993440A/en
Application granted granted Critical
Publication of JP3320282B2 publication Critical patent/JP3320282B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、1画素あたり複数
ビットからなる白黒多値画像から、同一ビット順位のビ
ットデータを画素毎に取り出してビットプレーンを形成
し、おのおののビットプレーンについて算術符号処理し
て形成された多値画像符号データに対し、上記算術符号
処理の逆処理である算術復号処理を適用し、原画像を再
生する多値画像処理装置、および、複数の色成分で、か
つ、1画素あたり複数ビットからなるカラー多値画像か
ら、各色成分について、同一ビット順位のビットデータ
を画素毎に取り出してビットプレーンを形成し、おのお
ののビットプレーンについて算術符号処理して形成され
たカラー多値画像符号データに対し、上記算術符号処理
の逆処理である算術復号処理を適用し、原画像を再生す
る多値画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for extracting bit data of the same bit order for each pixel from a monochrome multi-valued image composed of a plurality of bits per pixel, forming bit planes, and performing arithmetic coding on each bit plane. A multi-valued image processing apparatus that applies an arithmetic decoding process, which is the inverse process of the above-described arithmetic coding process, to the multi-valued image code data formed by the above, and reproduces the original image, For each color component, bit data having the same bit order is extracted for each pixel from a multi-valued color image composed of a plurality of bits per pixel to form a bit plane, and each color plane is formed by arithmetic code processing. A multi-valued image processing device that applies an arithmetic decoding process, which is a reverse process of the above-described arithmetic coding process, to the value image code data and reproduces the original image. On.

【0002】[0002]

【従来の技術】近年、データ通信やデータ処理の多様化
に伴い、例えば、ファクシミリ装置などでやりとりした
り、あるいは、パーソナルコンピュータ装置で処理する
文書として、1画素あたり複数ビットからなる白黒多階
調画像、あるいは、複数の色成分からなるとともに1つ
の色成分が1画素あたり複数ビットからなるカラー多階
調画像を用いたいという要請がある。
2. Description of the Related Art In recent years, with the diversification of data communication and data processing, for example, as a document to be exchanged by a facsimile device or processed by a personal computer device, a monochrome multi-gradation comprising a plurality of bits per pixel is used. There is a demand for using an image or a color multi-tone image composed of a plurality of color components and one color component composed of a plurality of bits per pixel.

【0003】ここで、周知のように、画像データのデー
タ量は非常に大きいため、これをそのままの状態でデー
タ処理すると、例えば、蓄積するために必要な記憶装置
の容量が膨大になったり、データ処理に要する時間が過
大になったりするので、通常、画像データを符号化圧縮
してデータ量を削減した状態で、データ通信したり蓄積
している。とくに、白黒多階調画像やカラー多階調画像
は、1画素あたりのビット数が多いので、より高能率に
符号化圧縮できる符号化方式が要求されている。
Here, as is well known, since the data amount of image data is very large, if the data is processed as it is, for example, the capacity of a storage device required for storage becomes enormous, Since the time required for data processing becomes excessively long, usually, data communication is performed or accumulated in a state where image data is encoded and compressed to reduce the data amount. In particular, since a black-and-white multi-tone image and a color multi-tone image have a large number of bits per pixel, an encoding method capable of encoding and compressing with higher efficiency is required.

【0004】例えば、白黒多階調画像を符号化圧縮する
ときには、1画素あたり複数ビットデータをそのままの
状態で取り扱う符号化方式(いわゆるJPEG方式)
と、白黒多階調画像で同一ビット順位のビットデータを
画素毎に取り出してビットプレーンを形成し、おのおの
のビットプレーン毎に二値符号化処理して、原画像を符
号化圧縮するいわゆるビットプレーン方式の符号化方式
の2種類がある。後者の符号化方式では、二値符号化処
理として、適宜な二値画像符号化方式、例えば、MH方
式、MR方式、MMR方式、JBIG方式などが採用さ
れる。
For example, when encoding and compressing a black-and-white multi-tone image, an encoding method (so-called JPEG method) in which a plurality of bits per pixel is handled as it is.
A so-called bit plane in which bit data of the same bit order in a monochrome multi-tone image is extracted for each pixel to form a bit plane, and a binary encoding process is performed for each bit plane to encode and compress the original image. There are two types of encoding methods. In the latter encoding method, an appropriate binary image encoding method, for example, an MH method, an MR method, an MMR method, a JBIG method, or the like is adopted as a binary encoding process.

【0005】ここで、上述した前者の符号化方式では、
人間の視覚特性を利用して画質を損なわない程度に原画
の情報量を一部削減するいわゆるロッシー符号化方式で
あるため、再生画像における文字画像がぼやけたり、あ
るいは、符号化圧縮率を大きくすると再生画像の画質が
極端に悪くなるという事情があり、また、後者の符号化
方式では、白黒多階調画像を符号化圧縮するときの符号
化圧縮率が前者の符号化方式に比べて若干劣るという事
情がある。
Here, in the former coding method described above,
Because it is a so-called lossy encoding method that partially reduces the information amount of the original image to the extent that the image quality is not impaired using human visual characteristics, the character image in the reproduced image is blurred, or if the encoding compression ratio is increased, There is a situation that the image quality of the reproduced image is extremely deteriorated, and in the latter encoding method, the encoding compression rate when encoding and compressing a monochrome multi-tone image is slightly inferior to the former encoding method. There are circumstances.

【0006】[0006]

【発明が解決しようとする課題】ところで、符号データ
を復号して再生画像を処理する場合、出力画像の特徴が
出力手段により適切にあらわされるようにするために、
出力手段の出力特性と、画像の種類に応じて、出力画像
を前処理することがなされることがある。
By the way, in the case of decoding the encoded data and processing the reproduced image, in order for the characteristics of the output image to be appropriately represented by the output means,
The output image may be pre-processed depending on the output characteristics of the output unit and the type of the image.

【0007】本発明は、かかる実情に鑑みてなされたも
のであり、画像の種類に応じ、画質の良好な白黒多値画
像またはカラー多値画像を得ることができる多値画像処
理装置を提供することを目的としている。
The present invention has been made in view of the above circumstances, and provides a multi-valued image processing apparatus capable of obtaining a high-quality black-and-white multi-valued image or a color multi-valued image according to the type of image. It is intended to be.

【0008】[0008]

【課題を解決するための手段】本発明は、1画素あたり
複数ビットからなる白黒多値画像から、同一ビット順位
のビットデータを画素毎に取り出してビットプレーンを
形成し、おのおののビットプレーンについて算術符号処
理して形成された多値画像符号データに対し、上記算術
符号処理の逆処理である算術復号処理を適用し、原画像
を再生する多値画像処理装置において、おのおののビッ
トプレーンの符号データについて上記算術復号処理を適
用して元の二値画像データを形成する算術復号化処理手
段と、上記算術復号化処理手段の復号化処理時に判定し
た状態毎に、おのおのの状態でのシンボル出現確率を収
集して統計する状態確率統計手段と、上記状態確率統計
手段の統計結果に基づいて、処理対象の画像の種別を判
定する画像判定手段と、上記画像判定手段が判定した画
像の種別に基づき、全てのビットプレーンについて上記
算術復号化処理手段が形成して得た復号多値画像データ
を画像処理する画像処理手段を備えたものである。
According to the present invention, a bit plane is formed by extracting bit data of the same bit order for each pixel from a black-and-white multi-valued image composed of a plurality of bits per pixel, and forming an arithmetic operation on each bit plane. In a multi-level image processing apparatus that applies an arithmetic decoding process, which is the inverse process of the above-described arithmetic coding process, to multi-level image code data formed by code processing and reproduces an original image, code data of each bit plane is reproduced. Arithmetic decoding means for applying the arithmetic decoding processing to form the original binary image data, and the symbol appearance probability in each state for each state determined at the time of decoding processing by the arithmetic decoding processing means. State statistical means for collecting and statistic data, and an image determining means for determining the type of the image to be processed based on the statistical result of the state probability statistical means. And image processing means for performing image processing on decoded multivalued image data obtained by the arithmetic decoding processing means for all bit planes based on the type of image determined by the image determination means. .

【0009】また、複数の色成分で、かつ、1画素あた
り複数ビットからなるカラー多値画像から、各色成分に
ついて、同一ビット順位のビットデータを画素毎に取り
出してビットプレーンを形成し、おのおののビットプレ
ーンについて算術符号処理して形成されたカラー多値画
像符号データに対し、上記算術符号処理の逆処理である
算術復号処理を適用し、原画像を再生する多値画像処理
装置において、おのおののビットプレーンの符号データ
について上記算術復号処理を適用して元の二値画像デー
タを形成する算術復号化処理手段と、上記算術復号化処
理手段の復号化処理時に判定した状態毎に、おのおのの
状態でのシンボル出現確率を収集して統計する状態確率
統計手段と、上記状態確率統計手段の統計結果に基づい
て、処理対象の画像の種別を判定する画像判定手段と、
上記画像判定手段が判定した画像の種別に基づき、全て
の色成分の全てのビットプレーンについて上記算術復号
化処理手段が形成して得た復号カラー多値画像データを
画像処理する画像処理手段を備えたものである。
Also, from a multi-valued color image having a plurality of color components and a plurality of bits per pixel, for each color component, bit data having the same bit order is extracted for each pixel to form a bit plane. In a multi-valued image processing apparatus that applies an arithmetic decoding process, which is a reverse process of the above-described arithmetic coding process, to a color multi-valued image code data formed by performing an arithmetic coding process on a bit plane and reproduces an original image, Arithmetic decoding processing means for applying the arithmetic decoding processing to the bit plane code data to form the original binary image data; and states for each of the states determined at the time of decoding processing by the arithmetic decoding processing means. State probability statistic means for collecting and statistic symbol appearance probabilities at a time, and an image to be processed based on the statistical result of the state probability statistic means. An image determining unit of type determines,
Image processing means for performing image processing on decoded color multi-valued image data obtained by the arithmetic decoding processing means for all bit planes of all color components based on the image type determined by the image determination means. It is a thing.

【0010】また、前記画像判定手段は、所定の上位ビ
ットのビットプレーンに対応した統計結果にあらわれる
文字画像の特徴に対応した所定の状態の劣勢シンボル出
現確率が所定値よりも小さくなっているときには、その
処理対象の画像が文字画像であると判定し、上記所定の
上位ビットのビットプレーンに対応した統計結果にあら
われる上記所定の状態の劣勢シンボル出現確率が所定値
以上になっているときには、その処理対象の画像が写真
画像であると判定するものである。
[0010] The image determining means may determine whether the occurrence probability of the inferior symbol in a predetermined state corresponding to a feature of a character image appearing in a statistical result corresponding to a bit plane of a predetermined upper bit is smaller than a predetermined value. It is determined that the image to be processed is a character image, and when the inferior symbol appearance probability of the predetermined state, which appears in the statistical result corresponding to the bit plane of the predetermined upper bit, is equal to or more than a predetermined value, the It is determined that the image to be processed is a photographic image.

【0011】また、前記画像判定手段は、最上位ビット
のビットプレーンに対応した統計結果にあらわれる文字
画像の特徴に対応した所定の状態の劣勢シンボル出現確
率が所定値よりも小さくなっているときには、その処理
対象の画像が文字画像であると判定し、最上位ビットの
ビットプレーンに対応した統計結果にあらわれる上記所
定の状態の劣勢シンボル出現確率が所定値以上になって
いるときには、その処理対象の画像が写真画像であると
判定するものである。
[0011] The image determining means may be arranged such that when the probability of occurrence of a less-probable symbol in a predetermined state corresponding to a feature of a character image appearing in a statistical result corresponding to a bit plane of the most significant bit is smaller than a predetermined value, When the image to be processed is determined to be a character image, and the occurrence probability of the inferior symbol in the above-mentioned predetermined state, which appears in the statistical result corresponding to the bit plane of the most significant bit, is equal to or more than a predetermined value, It is determined that the image is a photographic image.

【0012】また、前記画像判定手段は、最上位ビット
のビットプレーンに対応した統計結果にあらわれる劣勢
シンボルの出現確率がいずれかの状態に偏っているとき
には、その処理対象の画像が文字画像であると判定し、
最上位ビットのビットプレーンに対応した統計結果にあ
らわれる劣勢シンボルの出現確率がいずれの状態にも偏
っていないときには、その処理対象の画像が写真画像で
あると判定するものである。
[0012] When the appearance probability of the inferior symbol appearing in the statistical result corresponding to the bit plane of the most significant bit is biased to one of the states, the image to be processed is a character image. Is determined,
If the occurrence probability of the inferior symbol appearing in the statistical result corresponding to the bit plane of the most significant bit is not biased in any state, it is determined that the image to be processed is a photographic image.

【0013】[0013]

【発明の実施の形態】以下、添付図面を参照しながら、
本発明の実施例を詳細に説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG.
Embodiments of the present invention will be described in detail.

【0014】まず、本実施例で取り扱う符号化方式の基
本について説明する。
First, the basics of the encoding system used in this embodiment will be described.

【0015】本実施例では、白黒多値画像を符号化圧縮
するときには、同一ビット順位のビットデータを画素毎
に取り出してビットプレーンを形成し、おのおののビッ
トプレーン毎に二値符号化処理して、原画像を符号化圧
縮するいわゆるビットプレーン方式の符号化方式を採用
している。
In this embodiment, when encoding and compressing a black-and-white multi-valued image, bit data having the same bit order is extracted for each pixel to form a bit plane, and a binary encoding process is performed for each bit plane. In this case, a so-called bit plane coding method for coding and compressing an original image is adopted.

【0016】例えば、1画素あたり8ビットの多値画像
をビットプレーン方式で符号化するとき、図1に示すよ
うに、まず、8ビットの多値画像データから、その第8
ビット(MSB)を取り出してビットプレーンBP8を
形成し、第7ビットを取り出してビットプレーンBP7
を形成し、以下、同様にして、第1ビット(LSB)の
ビットプレーンBP1まで形成する。
For example, when an 8-bit multi-valued image per pixel is encoded by the bit plane method, first, as shown in FIG.
The bit (MSB) is extracted to form a bit plane BP8, and the seventh bit is extracted to extract a bit plane BP7.
Are formed in the same manner up to the first bit (LSB) bit plane BP1.

【0017】このようにして形成した各ビットのビット
プレーンBP8〜BP1は、二値画像データとして取り
扱うことができる。本実施例では、二値画像データを高
能率に圧縮する符号化方式として、いわゆるJBIG方
式を用いる。
The bit planes BP8 to BP1 of each bit formed as described above can be handled as binary image data. In the present embodiment, a so-called JBIG method is used as an encoding method for compressing binary image data with high efficiency.

【0018】JBIG方式の符号化方式では、画像をマ
ルコフモデルとみなし、その状態を認識した符号化を行
う。すなわち、モデルテンプレートを用いて、符号化対
象となっている注目画素の周囲の複数の参照画素を抽出
し、その抽出した複数の参照画素のビットパターン毎
に、注目画素の状態を予測し、その予測確率に基づい
て、QM−coder符号化処理を行うことで、二値画
像データを符号化圧縮する。
In the coding system of the JBIG system, an image is regarded as a Markov model, and coding is performed with its state recognized. That is, using the model template, a plurality of reference pixels around the target pixel to be encoded are extracted, and the state of the target pixel is predicted for each bit pattern of the extracted reference pixels. The binary image data is encoded and compressed by performing QM-coder encoding based on the prediction probability.

【0019】ここで、QM−coder符号化方式の基
礎となっている算術符号について説明する。算術符号と
は、0以上1未満([0,1))の数直線上の対応区間
(2進小数で[0.0…0,0.1…1))を各シンボ
ルの生起確率に応じて不等長に分割していき、対象シン
ボル系列を対応する部分区間に割り当て、再帰的に分割
を繰り返していくことにより得られた区間内に含まれる
点の座標を、少なくとも他の区間と区別できる2進小数
で表現してそのまま符号とするものである。
Here, the arithmetic code which is the basis of the QM-coder coding method will be described. Arithmetic code means that a corresponding section (binary decimal [0.0... 0, 0.1... 1)) on a number line from 0 to 1 ([0, 1)) according to the occurrence probability of each symbol. The target symbol sequence is assigned to the corresponding subsections, and the coordinates of the points included in the section obtained by repeating the division recursively are distinguished at least from other sections. It is represented by a binary decimal number that can be used as a code as it is.

【0020】例えば、符号化シンボル系列0100を対
象とした二値算術符号化では、図2に示すような符号化
が行われる。
For example, in binary arithmetic coding for the coded symbol sequence 0100, coding as shown in FIG. 2 is performed.

【0021】同図において、例えば、第1シンボルの符
号化時には、全区間が0と1のシンボルの生起確率の比
にしたがってA(0)とA(1)に分割され、0の発生
により区間A(0)が選択される。次に、第2シンボル
の符号化のさいには、その状態における両シンボルの生
起確率比によってA(0)がさらに分割され、発生シン
ボル系列に対応する区間としてA(01)が選択され
る。このような分割と選択の処理のくり返しにより符号
化が進められる。
In FIG. 1, for example, when encoding the first symbol, the entire interval is divided into A (0) and A (1) according to the ratio of the occurrence probabilities of the 0 and 1 symbols. A (0) is selected. Next, when encoding the second symbol, A (0) is further divided by the occurrence probability ratio of both symbols in that state, and A (01) is selected as a section corresponding to the generated symbol sequence. Coding is advanced by repeating such division and selection processing.

【0022】この算術符号はいわゆる非ブロック符号で
あり、とくに、上述した予測符号化方式のように状態番
号(コンテクスト)に応じてシンボル(データの二値
(白黒)状態)の出現確率が変化する場合の符号化に適
しており、また、MH符号のようなランレングス符号に
比べて、符号器の規模や必要メモリ量などのハードウェ
アが小さくて済む、より高い効率が期待できる、およ
び、適用符号化が容易であるという利点がある。
This arithmetic code is a so-called non-block code, and in particular, the appearance probability of a symbol (binary (black and white) state of data) changes according to the state number (context) as in the above-described predictive coding method. It is suitable for encoding in such a case, and requires less hardware such as an encoder scale and a required memory amount than a run-length code such as an MH code, and higher efficiency can be expected. There is an advantage that encoding is easy.

【0023】上述したQM−coderは、この算術符
号化をより少ないハードウェア資源を用いて実現し、か
つ、より高速な処理が可能なようにしたものである。な
お、通常は、画像データを直接算術符号化するのではな
く、予測符号化処理により画像データの各画素が劣勢シ
ンボルであるのか、あるいは、優勢シンボルであるのか
の判定を行なう前処理を行なう。ここで、劣勢シンボル
とは、そのときのコンテクストでの発生確率のより低い
シンボルをあらわし、優勢シンボルとは、そのときのコ
ンテクストでの発生確率のより高いシンボルをあらわ
す。したがって、劣勢シンボルあるいは優勢シンボルが
白画素または黒画素のいずれであるかは、そのコンテク
ストに応じて統計的に定められる。
The above-described QM-coder implements this arithmetic coding using less hardware resources and enables higher-speed processing. Normally, image data is not directly subjected to arithmetic coding, but pre-processing is performed by predictive coding to determine whether each pixel of the image data is a lesser symbol or a more significant symbol. Here, the inferior symbol represents a symbol having a lower occurrence probability in the context at that time, and the dominant symbol represents a symbol having a higher occurrence probability in the context at that time. Therefore, whether the inferior symbol or the superior symbol is a white pixel or a black pixel is statistically determined according to the context.

【0024】次に、QM−coderの符号化/復号化
アルゴリズムについて説明する。
Next, the encoding / decoding algorithm of QM-coder will be described.

【0025】符号化の初めでは、0以上1未満の数直線
を考える。この数直線の間隔をA、そのときのマルコフ
状態(初期状態では、状態0)に対応した劣勢シンボル
の発生確率をQeとすると、分割後の領域は、次式
(I)であらわされる。
At the beginning of encoding, a number line from 0 to less than 1 is considered. Assuming that the interval between the number lines is A, and the probability of occurrence of inferior symbols corresponding to the Markov state (state 0 in the initial state) at that time is Qe, the area after division is represented by the following equation (I).

【0026】 a=A×(1−Qe) (a:優勢シンボルの領域の大きさ) b=A×Qe (b:劣勢シンボルの領域の大きさ) (I)A = A × (1−Qe) (a: size of region of superior symbol) b = A × Qe (b: size of region of inferior symbol) (I)

【0027】ここで、最初のシンボルが0(優勢シンボ
ル)であった場合には、aを新しいAとして、1(劣勢
シンボル)であった場合には、bを新しいAとしてさら
に分割を行なう。なお、符号化テーブルは、マルコフ状
態の状態番号と、確率Qeとの関係、および、再正規化
処理発生時(後述)の状態推移のための情報などが組み
になって記憶されている。
Here, if the first symbol is 0 (dominant symbol), a is set as a new A, and if it is 1 (inferior symbol), b is set as a new A and further division is performed. The encoding table stores a set of a relationship between a Markov state number and a probability Qe, information on a state transition when a renormalization process occurs (described later), and the like.

【0028】しかしながら、符号化時に乗算操作が行わ
れることは装置規模の面でも演算速度の面でも不利であ
る。また、無限長のシンボル系列を符号化するさい、小
さくなった領域を演算するためには無限長の演算用レジ
スタが必要となる。
However, performing the multiplication operation at the time of encoding is disadvantageous in terms of the apparatus scale and the operation speed. Further, when encoding an infinite-length symbol sequence, an infinite-length operation register is required to operate a reduced area.

【0029】そこで、QM−coderでは、分割後の
新しいAが常に0.75以上1.5未満の大きさになる
ように操作して、Aを1に近似できるようにし、上述し
た式(I)を次式(II)で近似する。
Therefore, the QM-coder operates so that the new A after the division always has a size of 0.75 or more and less than 1.5, so that A can be approximated to 1 and the above-mentioned equation (I ) Is approximated by the following equation (II).

【0030】 a=A−Qe b=Qe (II)A = A−Qe b = Qe (II)

【0031】この近似に伴い、Aの値が0.75未満に
なったときには、Aが0.75以上1.5未満の値にな
るまでAを左にビットシフトして拡大する再正規化処理
を行なう。この再正規化処理により、乗算を必要とする
演算を減算で実現できるとともに、有限長レジスタを用
いて演算を行なうことができる。また、再正規化処理を
行なうと、そのときのマルコフ状態と、処理対象のシン
ボルの優勢/劣勢の区別に応じて、次のマルコフ状態に
推移する。
In accordance with this approximation, when the value of A becomes less than 0.75, renormalization processing in which A is bit-shifted to the left and enlarged until A becomes a value of 0.75 or more and less than 1.5. Perform By this renormalization processing, an operation requiring multiplication can be realized by subtraction, and an operation can be performed using a finite length register. When the renormalization process is performed, the state changes to the next Markov state according to the Markov state at that time and the distinction between the superior / inferior of the symbol to be processed.

【0032】優勢シンボルの符号化処理は、例えば、図
3(a)に示すように行われ、また、劣勢シンボルの符
号化処理は、例えば、同図(b)に示すように行われ
る。ここで、Cは符号をあらわし、その初期値は0であ
る。
The encoding process of the superior symbol is performed, for example, as shown in FIG. 3A, and the encoding process of the inferior symbol is performed, for example, as shown in FIG. Here, C represents a code, and its initial value is 0.

【0033】すなわち、優勢シンボルを符号化するとき
には、符号Cは変更せず(処理101)、領域Aの値を
そのときのマルコフ状態に対応した確率Qeだけ小さい
値に更新する(処理102)。このとき、領域Aの値が
0.75よりも小さいかどうかを調べて(判断10
3)、判断103の結果がYESになるときには、領域
Aの値および符号Cを再正規化処理するとともに状態推
移し(処理104)、1つの優勢シンボルの処理を終了
する。また、判断103の結果がNOになるときには、
処理104を行なわず、そのときのマルコフ状態を維持
する。
That is, when encoding the dominant symbol, the code C is not changed (process 101), and the value of the area A is updated to a value smaller by the probability Qe corresponding to the Markov state at that time (process 102). At this time, it is checked whether or not the value of the area A is smaller than 0.75 (determination 10
3) When the result of the judgment 103 is YES, the value of the area A and the code C are renormalized and the state is changed (processing 104), and the processing of one dominant symbol is ended. When the result of the judgment 103 is NO,
The process 104 is not performed, and the Markov state at that time is maintained.

【0034】また、劣勢シンボルを符号化するときに
は、符号Cの値を(A−Qe)だけ増やして(処理20
1)、領域Aの値を確率Qeの値に更新し(処理20
2)、領域Aと符号Cを再正規化処理するとともに状態
推移する(処理203)。
When coding the inferior symbol, the value of code C is increased by (A-Qe) (step 20).
1) Update the value of the area A to the value of the probability Qe (Process 20)
2) The region A and the code C are re-normalized and the state is changed (process 203).

【0035】このときに生成した符号Cは、領域のもっ
とも下の部分を示す2進小数値に一致する。また、再正
規化処理では、符号Cを領域Aと同じ桁数左シフトして
拡大し、1を超えた部分の符号Cの値が、符号データと
して出力される。
The code C generated at this time matches the binary decimal value indicating the lowermost part of the area. In the re-normalization process, the code C is shifted to the left by the same number of digits as the area A and enlarged, and the value of the code C exceeding 1 is output as code data.

【0036】また、復号化処理の一例を図3(c)に示
す。
FIG. 3C shows an example of the decoding process.

【0037】まず、符号Cが値(A−Qe)よりも小さ
いかどうかを調べて(判断301)、判断301の結果
がYESになるときには、復号化対象となっている注目
画素を優勢シンボルとして判断し(処理302)、領域
Aの値をそのときのマルコフ状態に対応した確率Qeだ
け減じた値に更新する(処理303)。そして、更新し
た領域Aの値が0.75よりも小さくなったかどうかを
調べて(判断304)、判断304の結果がYESにな
るときには、領域Aと符号Cを再正規化するとともにマ
ルコフ状態を推移して(処理305)、この1つのシン
ボルの復号化処理を終了する。また、判断304の結果
がNOになるときには、処理305を行なわず、そのと
きのマルコフ状態を維持する。
First, it is checked whether or not the code C is smaller than the value (A-Qe) (decision 301). If the result of the decision 301 is YES, the target pixel to be decoded is set as the dominant symbol. Judgment is made (step 302), and the value of the area A is updated to a value reduced by the probability Qe corresponding to the current Markov state (step 303). Then, it is checked whether or not the updated value of the area A has become smaller than 0.75 (determination 304). When the result of the determination 304 is YES, the area A and the code C are renormalized and the Markov state is changed. After the transition (process 305), the decoding process of this one symbol ends. When the result of the determination 304 is NO, the process 305 is not performed, and the Markov state at that time is maintained.

【0038】また、判断301の結果がNOになるとき
には、注目画素を劣勢シンボルとして判断し(処理30
6)、符号Cの値を(A−Qe)だけ小さい値に更新す
るとともに(処理307)、領域Aを確率Qeの値に更
新し(処理308)、領域Aと符号Cを再正規化すると
ともにマルコフ状態を推移して(処理309)、この1
つのシンボルの復号化処理を終了する。
If the result of determination 301 is NO, the pixel of interest is determined to be the inferior symbol (step 30).
6) Update the value of code C to a value smaller by (A-Qe) (process 307), update region A to the value of probability Qe (process 308), and renormalize region A and code C. Together with the Markov state (process 309).
The decoding process for one symbol is completed.

【0039】このようにして、QM−coderの符号
化時では、優勢シンボルがあらわれたときには符号Cが
変化しないとともに、再正規化処理が行われる可能性が
少なく、また、劣勢シンボルがあらわれると即再正規化
処理が行われるとともに符号データが形成される。
As described above, when encoding the QM-coder, the code C does not change when a superior symbol appears, and there is little possibility that renormalization processing will be performed. The re-normalization process is performed and code data is formed.

【0040】したがって、劣勢シンボルの出現頻度が小
さくなるように前処理である予測符号化処理を行なう
と、符号化効率が向上するとともに、処理速度も向上す
る。
Therefore, if the predictive coding process, which is the pre-processing, is performed so that the appearance frequency of the inferior symbol becomes small, the coding efficiency is improved and the processing speed is also improved.

【0041】この予測符号化処理に用いる用いるテンプ
レートの一例を図4に示す。このテンプレートは、JB
IG方式で基本(デフォルト)として用いられるいわゆ
るJBIGデフォルト3ラインテンプレートである。こ
のテンプレートは、注目画素の周囲の10画素を参照画
素として抽出するので、この場合、その参照画素のビッ
トパターンに応じて1024個の状態(コンテクスト)
が判定される。
FIG. 4 shows an example of a template used for the predictive encoding process. This template is JB
This is a so-called JBIG default three-line template used as a basis (default) in the IG system. In this template, 10 pixels around the target pixel are extracted as reference pixels. In this case, 1024 states (contexts) according to the bit pattern of the reference pixel are used.
Is determined.

【0042】図5は、JBIG方式を適用して多値画像
データを符号化圧縮する多値符号化装置の一例を示して
いる。
FIG. 5 shows an example of a multi-level coding apparatus for coding and compressing multi-level image data by applying the JBIG method.

【0043】同図において、画像入力部1を介して、例
えば、8ビット幅の多値画像データPXが入力されて、
ビットプレーン展開部2に加えられる。ビットプレーン
展開部2は、多値画像データをビットプレーンに展開す
るものであり、おのおののビットプレーンのデータは、
ビットプレーンメモリ3に記憶される。
In the figure, multi-valued image data PX having, for example, an 8-bit width is input through an image input unit 1.
It is added to the bit plane development unit 2. The bit plane development unit 2 develops multi-valued image data into bit planes, and the data of each bit plane is
It is stored in the bit plane memory 3.

【0044】データ参照部4は、符号化対象となってい
る注目画素のデータをビットプレーンメモリ3から読み
出し、注目画素データDXとして算術符号エンジン5に
出力するとともに、そのときの注目画素について所定の
テンプレートを適用し、複数の参照画素のデータをビッ
トプレーンメモリ3から読み出し、参照画素データDR
として確率評価器6に出力する。
The data reference unit 4 reads the data of the target pixel to be coded from the bit plane memory 3 and outputs it to the arithmetic code engine 5 as target pixel data DX. The template is applied to read out the data of the plurality of reference pixels from the bit plane memory 3, and the reference pixel data DR
Is output to the probability evaluator 6.

【0045】確率評価器6は、入力した参照画素データ
DRに基づいて、コンテクストを判定し、おのおののコ
ンテクストについて、劣勢シンボル(または優勢シンボ
ル)の確率推定値、および、劣勢シンボル(または優勢
シンボル)の種別を算術符号エンジン5に出力する。
The probability evaluator 6 determines the context based on the input reference pixel data DR, and for each context, the probability estimation value of the inferior symbol (or superior symbol) and the inferior symbol (or superior symbol). Is output to the arithmetic code engine 5.

【0046】算術符号エンジン5は、入力した注目画素
データDX、劣勢シンボル(または優勢シンボル)の確
率推定値、および、劣勢シンボル(または優勢シンボ
ル)の種別に基づいて、上述した符号化処理を実行し、
その結果得た符号データCXを符号作成部8に出力す
る。また、算術符号化エンジン5は、その符号化処理に
おいて再正規化処理が行われると、その旨を確率評価器
6に通知する。
The arithmetic coding engine 5 executes the above-described coding processing based on the input pixel data of interest DX, the estimated value of the inferior symbol (or superior symbol), and the type of the inferior symbol (or superior symbol). And
The code data CX obtained as a result is output to the code generator 8. Further, when the re-normalization process is performed in the encoding process, the arithmetic encoding engine 5 notifies the probability evaluator 6 to that effect.

【0047】それにより、確率評価器6は、再正規化処
理の実行に同期して、コンテクストの遷移を行い、確率
評価状態を更新する。また、確率評価器6は、おのおの
のコンテクストについて、マルコフ状態値(確率推定値
インデックスの値;7ビット)と、そのときの優勢シン
ボルが白/黒のいずれかをあらわす1ビットの計8ビッ
トのデータを記憶している。
Accordingly, the probability evaluator 6 changes the context in synchronization with the execution of the re-normalization process, and updates the probability evaluation state. In addition, the probability evaluator 6 calculates a Markov state value (probability estimation value index value: 7 bits) and a 1-bit symbol indicating that the dominant symbol at that time is either white or black for each context, for a total of 8 bits. Data is stored.

【0048】この算術符号エンジン5と確率評価器6に
より、算術符号器7が構成されている。
The arithmetic code engine 5 and the probability evaluator 6 constitute an arithmetic coder 7.

【0049】ここで、データ参照部4が用いるテンプレ
ートは、図4に示したと同じJBIGデフォルト3ライ
ンテンプレートを用いているので、注目画素Xについ
て、参照画素A〜Jの10個の参照画素が抽出され、そ
の抽出された参照画素の10ビットのデータが、参照画
素データDRとして確率評価器6に出力される。
Here, the template used by the data reference unit 4 uses the same JBIG default three line template as shown in FIG. 4, so that ten reference pixels A to J are extracted for the target pixel X. The extracted 10-bit data of the reference pixel is output to the probability evaluator 6 as reference pixel data DR.

【0050】また、この場合には、確率評価器6は、1
024個の各コンテクストについて、それぞれ8ビット
データ(確率推定値インデックスおよび優勢シンボルの
値)を記憶している。
Also, in this case, the probability evaluator 6
For each of the 024 contexts, 8-bit data (probability estimated value index and value of dominant symbol) is stored.

【0051】符号作成部8は、算術符号器7から加えら
れる符号データCXに対応した多値符号データCDを形
成するものであり、その多値符号データCDを次段装置
に出力する。
The code creating section 8 forms multi-level code data CD corresponding to the code data CX added from the arithmetic encoder 7, and outputs the multi-level code data CD to the next stage device.

【0052】ここで、符号作成部8が形成する多値符号
データCDの一例を図6に示す。
Here, an example of the multi-level code data CD formed by the code generation section 8 is shown in FIG.

【0053】多値符号データCDは、先頭に元の画像デ
ータPXのビット数に対応したビット精度情報(n;こ
の場合は「8」)に続き、最上位ビットプレーンから下
位ビットプレーンに向かって各ビットプレーンに対応し
たビットプレーン符号データを順次配列したものであ
る。
The multi-level code data CD starts with bit precision information (n; "8" in this case) corresponding to the number of bits of the original image data PX, and then moves from the most significant bit plane to the least significant bit plane. Bit plane code data corresponding to each bit plane is sequentially arranged.

【0054】図7は、本発明の一実施例にかかり、多値
符号データCDを復号する多値復号処理装置の一例を示
している。
FIG. 7 shows an example of a multi-level decoding processor for decoding multi-level code data CD according to an embodiment of the present invention.

【0055】同図において、データ入力部10を介して
入力される多値符号データCDは、算術復号器11の算
術復号エンジン12に加えられており、この算術復号エ
ンジン12から出力される復号された画像データCDx
は、ビットプレーンデータ作成部13に加えられてい
る。
In FIG. 1, multi-level code data CD input through a data input unit 10 is applied to an arithmetic decoding engine 12 of an arithmetic decoder 11, and is decoded and output from the arithmetic decoding engine 12. Image data CDx
Are added to the bit plane data creation unit 13.

【0056】ビットプレーンデータ作成部13は、算術
復号器11から加えられる画像データCDxを、対応す
るビットプレーンのビットプレーンメモリ14に記憶す
るとともに、データ参照部15から指定された参照画素
データをビットプレーンメモリ14から読み出して、デ
ータ参照部15に出力するものである。
The bit plane data creation unit 13 stores the image data CDx added from the arithmetic decoder 11 in the bit plane memory 14 of the corresponding bit plane, and stores the reference pixel data designated by the data reference unit 15 in the bit plane. The data is read from the plane memory 14 and output to the data reference unit 15.

【0057】データ参照部15は、復号化対象となって
いる注目画素について所定のテンプレートを適用し、必
要な参照画素のアドレスをビットプレーンデータ作成部
13に指定して、ビットプレーンデータ作成部13より
参照画素データを受け取り、その受け取った参照画素デ
ータを、算術復号器11の確率評価器16に出力する。
The data reference unit 15 applies a predetermined template to the pixel of interest to be decoded, specifies the address of the required reference pixel to the bit plane data generation unit 13, Further, the reference pixel data is received, and the received reference pixel data is output to the probability evaluator 16 of the arithmetic decoder 11.

【0058】確率評価器16は、入力した参照画素デー
タに基づいて、コンテクストを判定し、おのおののコン
テクストについて、劣勢シンボル(または優勢シンボ
ル)の確率推定値、および、劣勢シンボル(または優勢
シンボル)の種別を算術復号エンジン12に出力すると
ともに、そのときに判定して得たコンテクストの状態番
号をあらわす状態番号データDCを状態確率統計部17
に出力する。
The probability estimator 16 determines the context based on the input reference pixel data, and for each context, the probability estimation value of the inferior symbol (or superior symbol) and the probability of the inferior symbol (or superior symbol). The type is output to the arithmetic decoding engine 12 and state number data DC representing the state number of the context obtained at that time is represented by the state probability statistic unit 17.
Output to

【0059】算術復号エンジン12は、入力した注目画
素データ、劣勢シンボル(または優勢シンボル)の確率
推定値、および、劣勢シンボル(または優勢シンボル)
の種別に基づいて、上述した復号化処理を実行し、その
結果得た画像データCDxをビットプレーンデータ作成
部13に出力するとともに、そのときの注目画素が劣勢
シンボルであるか優勢シンボルであるかをあらわす画素
種別データDPを状態確率統計部17に出力する。ま
た、算術復号エンジン12は、その復号化処理において
再正規化処理が行われると、その旨を確率評価器16に
通知する。
The arithmetic decoding engine 12 inputs the target pixel data, the estimated value of the inferior symbol (or superior symbol), and the inferior symbol (or superior symbol).
And outputs the resulting image data CDx to the bit-plane data creation unit 13 based on the type of the symbol, and determines whether the pixel of interest at that time is a inferior symbol or a superior symbol Is output to the state probability statistical unit 17. Further, when the renormalization processing is performed in the decoding processing, the arithmetic decoding engine 12 notifies the probability evaluator 16 of the renormalization processing.

【0060】それにより、確率評価器16は、再正規化
処理の実行に同期して、コンテクストの遷移を行い、確
率評価状態を更新する。また、確率評価器16は、おの
おののコンテクストについて、マルコフ状態値(確率推
定値インデックスの値;7ビット)と、そのときの優勢
シンボルが白/黒のいずれかをあらわす1ビットの計8
ビットのデータを記憶している。
Accordingly, the probability evaluator 16 changes the context in synchronization with the execution of the re-normalization process, and updates the probability evaluation state. Further, the probability evaluator 16 calculates a Markov state value (a value of the probability estimation value index; 7 bits) and a 1-bit symbol indicating that the dominant symbol at that time is either white or black for each context.
Bit data is stored.

【0061】ここで、データ参照部15は、図4に示し
たようなJBIGデフォルト3ラインテンプレートを用
いる。したがって、注目画素Xについて、参照画素A〜
Jの10個の参照画素が抽出され、その抽出された参照
画素の10ビットのデータが、参照画素データとして確
率評価器16に出力される。
Here, the data reference unit 15 uses a JBIG default three line template as shown in FIG. Therefore, for the target pixel X, the reference pixels A to
The ten reference pixels of J are extracted, and 10-bit data of the extracted reference pixels is output to the probability evaluator 16 as reference pixel data.

【0062】また、この場合には、確率評価器16は、
1024個の各コンテクストについて、それぞれ8ビッ
トデータ(確率推定値インデックスおよび優勢シンボル
の値)を記憶している。
In this case, the probability evaluator 16
For each of the 1024 contexts, 8-bit data (probability estimated value index and value of dominant symbol) is stored.

【0063】また、状態確率統計部17は、所定のビッ
トプレーン(例えば、最上位ビットプレーン)につい
て、各コンテクストについて劣勢シンボルと優勢シンボ
ルの出現回数を計数し、劣勢シンボルと優勢シンボルの
出現回数の総和を算出し、その総和の値で劣勢シンボル
の出現回数を割り算して、おのおののコンテクストにつ
いての劣勢シンボルの出現確率を算出するものであり、
その算出結果は、状態確率統計データSPとしてビット
プレーン毎に画像判定部18に出力される。
The state probability statistic unit 17 counts the number of appearances of the inferior symbol and the superior symbol for each context for a predetermined bit plane (for example, the most significant bit plane), and calculates the number of appearances of the inferior symbol and the superior symbol. The sum is calculated, the number of occurrences of the inferior symbol is divided by the value of the sum, and the probability of appearance of the inferior symbol for each context is calculated.
The calculation result is output to the image determination unit 18 for each bit plane as the state probability statistical data SP.

【0064】画像判定部18は、状態確率統計部17よ
り入力される状態確率統計データSPに基づき、復号し
て再生している画像が文字画像であるか写真画像である
かを判定するものであり、その判定結果は、画像判定デ
ータKPとして、連動する2つの切換器19,20に加
えられている。
The image determination unit 18 determines whether the image decoded and reproduced is a character image or a photographic image based on the state probability statistical data SP input from the state probability statistical unit 17. The determination result is provided to two linked switches 19 and 20 as image determination data KP.

【0065】切換器19は、ビットプレーンメモリ14
の全ビットプレーンから同一画素位置の画像データをそ
れぞれ取り出してまとめ、多値画像データXPを形成す
るとともに、その多値画像データXPを、画像判定デー
タKPの値が写真画像をあらわしている場合には写真画
像処理部21に出力し、画像判定データKPの値が文字
画像をあらわしている場合には文字画像処理部22に出
力する。
The switch 19 is provided in the bit plane memory 14
The image data at the same pixel position is respectively taken out from all the bit planes and combined to form multi-valued image data XP, and the multi-valued image data XP is used when the value of the image determination data KP represents a photographic image. Is output to the photo image processing unit 21, and is output to the character image processing unit 22 when the value of the image determination data KP indicates a character image.

【0066】切換器20は、画像判定データKPの値が
写真画像をあらわしている場合には写真画像処理部21
の出力データを選択するとともに、画像判定データKP
の値が文字画像をあらわしている場合には文字画像処理
部22の出力データを選択し、その選択したデータを多
値画像データXPaとして、次段装置に出力する。
When the value of the image determination data KP indicates a photographic image, the switch 20 switches to the photographic image processing section 21.
And the image determination data KP
If the value represents a character image, the output data of the character image processing unit 22 is selected, and the selected data is output to the next-stage device as multi-valued image data XPa.

【0067】ここで、写真画像処理部21は、図8
(b)に示すように、入力した原稿濃度に対して出力す
る画像濃度が線形の関係になるような画像処理(γ補正
処理)や、周囲画素を利用して注目画素の濃度を平滑化
するを行うものである。それにより、切換器19,20
により写真画像処理部21が選択されているときには、
多値画像データXPは、写真画像処理部21によりその
中間調状態が良好に表現される状態に変換された多値画
像データXPaとして出力され、その結果、写真画像の
再生画質が良好になる。
Here, the photographic image processing section 21 operates as shown in FIG.
As shown in (b), image processing (γ correction processing) such that the output image density has a linear relationship with the input document density, or the density of the target pixel is smoothed using surrounding pixels. Is what you do. Thereby, the switches 19 and 20
When the photographic image processing unit 21 is selected by
The multi-valued image data XP is output as multi-valued image data XPa converted into a state in which the halftone state is well represented by the photographic image processing unit 21, and as a result, the reproduced image quality of the photographic image is improved.

【0068】また、文字画像処理部22は、図8(a)
に示すように、入力した原稿画像に対して出力する画像
濃度が非線形の関係になり、文字画像に現れるエッジ部
分を強調する画像処理(γ補正処理)や、読取手段の画
素構造等が原因して文字画像のエッジ部に現れるギザギ
ザを解消するスムージング処理等を行うものである。そ
れにより、切換器19,20により文字画像処理部22
が選択されているときには、多値画像データXPは、文
字画像処理部22により文字画像の特徴が良好に表現さ
れる状態に変換された多値画像データXPaとして出力
され、その結果、文字画像の再生画質が良好になる。
Further, the character image processing section 22 operates as shown in FIG.
As shown in (1), the image density to be output with respect to the input document image has a non-linear relationship, which is caused by image processing (γ correction processing) for emphasizing an edge portion appearing in a character image, pixel structure of a reading unit, and the like. To perform smoothing processing or the like for eliminating jaggedness appearing at the edge of the character image. Thereby, the character image processing unit 22 is switched by the switches 19 and 20.
Is selected, the multi-valued image data XP is output as multi-valued image data XPa converted by the character image processing unit 22 into a state in which the characteristics of the character image are well expressed. As a result, the character image Good reproduction image quality.

【0069】したがって、画像判定部18により、処理
対象の多値画像データXPの画像が写真画像であると判
定されると、写真画像に対応した画像判定データKPが
出力され、このときには、切換器19および切換器20
は写真画像処理部21を選択するので、ビットプレーン
メモリ14より出力される多値画像データXPは、写真
画像処理部21によって上述した画像処理が施され、切
換器20を介して多値画像データXPaとして出力され
るので、写真画像の再生画質が良好になる。
Therefore, when the image determination unit 18 determines that the image of the multivalued image data XP to be processed is a photographic image, the image determination data KP corresponding to the photographic image is output. 19 and switch 20
Selects the photographic image processing unit 21, the multi-valued image data XP output from the bit plane memory 14 is subjected to the above-described image processing by the photographic image processing unit 21, Since the image is output as XPa, the reproduction image quality of the photographic image is improved.

【0070】また、画像判定部18により、処理対象の
多値画像データXPの画像が文字画像であると判定され
ると、文字画像に対応した画像判定データKPが出力さ
れ、このときには、切換器19および切換器20は文字
画像処理部22を選択するので、ビットプレーンメモリ
14より出力される多値画像データXPは、文字画像処
理部22によって上述した画像処理が施され、切換器2
0を介して多値画像データXPaとして出力されるの
で、文字画像の再生画質が良好になる。
When the image of the multivalued image data XP to be processed is determined to be a character image by the image determination section 18, image determination data KP corresponding to the character image is output. Since the multivalued image data XP output from the bit plane memory 14 is subjected to the above-described image processing by the character image processing unit 22 and the switching unit 2
Since it is output as multi-valued image data XPa via 0, the reproduction quality of the character image is improved.

【0071】このようにして、本実施例では、再生画像
が写真画像の場合、および、文字画像の場合で、それぞ
れ最適な画像処理が行われ、再生画像の種類にかかわら
ず、その画質が良好なものとなる。
As described above, in the present embodiment, the optimum image processing is performed for each of the reproduced image in the case of the photographic image and the case of the character image, and the image quality is good regardless of the type of the reproduced image. It becomes something.

【0072】ところで、多値画像データに基づいて原画
像が文字画像であるか写真画像であるかを判定する方法
について、本発明者の実験によれば、文字画像において
は、文字部分と下地部分とに画像の内容が大きく分かれ
るため、それらをあらわす1つ以上の特定の状態番号に
ついて劣勢シンボルの出現確率が非常に小さくなること
が確認できている。ここで、特定の状態番号とは、縦線
または横線をあらわすビットパターンに対応した状態番
号である。
According to an experiment conducted by the inventor of the present invention, a method of determining whether an original image is a character image or a photographic image based on multi-valued image data has been described. Since the contents of the images are largely divided, it has been confirmed that the occurrence probability of the inferior symbol becomes extremely small for one or more specific state numbers representing them. Here, the specific state number is a state number corresponding to a bit pattern representing a vertical line or a horizontal line.

【0073】したがって、その特定状態番号について劣
勢シンボルの出現確率の平均値を算出し、その平均値の
値が所定値よりも大きくなっている場合には原画像が文
字画像であると判断でき、その平均値の値が所定値以上
になっている場合には原画像が写真画像であると判断す
ることができる。
Accordingly, the average value of the appearance probabilities of the inferior symbols for the specific state number is calculated, and if the average value is larger than the predetermined value, it can be determined that the original image is a character image. If the average value is equal to or greater than a predetermined value, it can be determined that the original image is a photographic image.

【0074】図9は、かかる判定方法を適用する場合の
画像判定部18の処理の他の例を示している。
FIG. 9 shows another example of the processing of the image judging section 18 when such a judging method is applied.

【0075】まず、状態確率統計部17より出力される
1ビットプレーン分の状態確率統計データSPを入力し
(処理401)、上述した特定の各状態番号について劣
勢シンボルの出現確率を取り出して(処理402)、そ
の取り出した出現確率の平均値Pmを算出し(処理40
3)、その平均値Pmの値が所定値KAよりも大きいか
どうかを調べる(判断404)。
First, the state probability statistical data SP for one bit plane output from the state probability statistical unit 17 is input (processing 401), and the occurrence probability of the inferior symbol is extracted for each of the specific state numbers described above (processing 401). 402), and calculate the average value Pm of the extracted appearance probabilities (process 40).
3) It is checked whether or not the value of the average value Pm is larger than a predetermined value KA (determination 404).

【0076】判断404の結果がYESになるときに
は、このときの原画像が文字画像であると判定し(処理
405)、切換器19,20に文字画像処理部22を選
択させる内容の画像判定データKPを出力する(処理4
06)。
If the result of determination 404 is YES, it is determined that the original image at this time is a character image (process 405), and the image determination data having contents that cause the switches 19 and 20 to select the character image processing unit 22 Output KP (Process 4
06).

【0077】また、判断404の結果がNOになるとき
には、このときの原画像が写真画像であると判定し(処
理407)、処理406に移行して、このときは切換器
19,20に写真画像処理部21を選択させる内容の画
像判定データKPを出力する。
If the result of determination 404 is NO, it is determined that the original image at this time is a photographic image (step 407), and the flow shifts to step 406. It outputs image determination data KP having contents that cause the image processing unit 21 to select.

【0078】このようにして、本実施例では、原画像の
画像種別に応じて、再生画像の画質を良好なものにする
ことができる。
As described above, in the present embodiment, it is possible to improve the quality of the reproduced image according to the type of the original image.

【0079】ところで、上述した実施例では、白黒画像
を多値画像データとして読み取ったときの多値画像デー
タを処理する場合について説明したが、本発明は、カラ
ー画像を多値画像データとして読み取った場合について
も同様にして適用することができる。
In the above-described embodiment, a case has been described in which multi-valued image data is processed when a monochrome image is read as multi-valued image data. However, in the present invention, a color image is read as multi-valued image data. The same can be applied to the case.

【0080】図10は、本発明のさらに他の実施例にか
かるカラー多値画像符号化装置の一例を示している。こ
の場合、符号化対象となっているカラー多階調画像は、
RGB3原色の色成分をもち、おのおのの色成分につい
て1画素あたり8ビットのビット深度をもつものであ
る。なお、同図において図5と同一部分および相当する
部分には、同一符号または関連する符号を付している。
FIG. 10 shows an example of a color multi-level image encoding apparatus according to still another embodiment of the present invention. In this case, the color multi-tone image to be encoded is
It has color components of three primary colors RGB, and each color component has a bit depth of 8 bits per pixel. In this figure, the same parts as those in FIG. 5 and corresponding parts are denoted by the same reference numerals or related reference numerals.

【0081】同図において、カラー画像入力部25を介
して入力された24ビットのカラー多階調画像データP
Xcは、色成分分解部26に加えられている。色成分分
解部26は、カラー多階調画像データPXcを8ビット
のR成分のR多階調画像データPXr、8ビットのG成
分のG多階調画像データPXg、および、8ビットのB
成分のB多階調画像データPXbに分解するものであ
り、R多階調画像データPXr、G多階調画像データP
Xg、および、B多階調画像データPXbは、それぞれ
ビットプレーン展開部2r,2g,2bに加えられてい
る。
In the figure, 24-bit color multi-tone image data P input through a color image input unit 25 is shown.
Xc is added to the color component separation unit 26. The color component separation section 26 converts the color multi-tone image data PXc into 8-bit R component R multi-tone image data PXr, 8-bit G component G multi-tone image data PXg, and 8-bit B
The component B is decomposed into B multi-gradation image data PXb, and R multi-gradation image data PXr and G multi-gradation image data P
Xg and B multi-tone image data PXb are added to the bit plane developing units 2r, 2g, and 2b, respectively.

【0082】ビットプレーン展開部2rは、R多値画像
データPXrをビットプレーンに展開するものであり、
おのおののビットプレーンのデータは、ビットプレーン
メモリ3rに記憶される。
The bit plane developing section 2r develops the R multi-valued image data PXr into bit planes.
The data of each bit plane is stored in the bit plane memory 3r.

【0083】ビットプレーン展開部2gは、G多値画像
データPXgをビットプレーンに展開するものであり、
おのおののビットプレーンのデータは、ビットプレーン
メモリ3gに記憶される。
The bit plane developing unit 2g develops the G multi-valued image data PXg into bit planes.
The data of each bit plane is stored in the bit plane memory 3g.

【0084】ビットプレーン展開部2bは、B多値画像
データPXbをビットプレーンに展開するものであり、
おのおののビットプレーンのデータは、ビットプレーン
メモリ3bに記憶される。
The bit plane developing unit 2b develops the B multi-valued image data PXb into bit planes.
The data of each bit plane is stored in the bit plane memory 3b.

【0085】データ参照部4rは、符号化対象となって
いる注目画素のデータをビットプレーンメモリ3rから
読み出し、注目画素データDXrとして算術符号器9r
の算術符号エンジン(図示略;図5参照)に出力すると
ともに、そのときの注目画素について所定のテンプレー
トを適用し、複数の参照画素のデータをビットプレーン
メモリ3rから読み出し、参照画素データDRrとして
算術符号器9rの確率評価器(図示略;図5参照)に出
力する。
The data reference section 4r reads the data of the target pixel to be coded from the bit plane memory 3r, and outputs the read data as the target pixel data DXr by the arithmetic encoder 9r.
, A predetermined template is applied to the pixel of interest at that time, data of a plurality of reference pixels is read from the bit plane memory 3r, and the arithmetic operation is performed as reference pixel data DRr. The data is output to a probability evaluator (not shown; see FIG. 5) of the encoder 9r.

【0086】データ参照部4gは、符号化対象となって
いる注目画素のデータをビットプレーンメモリ3gから
読み出し、注目画素データDXgとして算術符号器9g
の算術符号エンジン(図示略;図5参照)に出力すると
ともに、そのときの注目画素について所定のテンプレー
トを適用し、複数の参照画素のデータをビットプレーン
メモリ3gから読み出し、参照画素データDRgとして
算術符号器9gの確率評価器(図示略;図5参照)に出
力する。
The data reference section 4g reads the data of the target pixel to be coded from the bit plane memory 3g, and as the target pixel data DXg, outputs the arithmetic coder 9g.
, A predetermined template is applied to the pixel of interest at that time, data of a plurality of reference pixels is read out from the bit plane memory 3g, and the arithmetic operation is performed as reference pixel data DRg. The data is output to a probability evaluator (not shown; see FIG. 5) of the encoder 9g.

【0087】データ参照部4bは、符号化対象となって
いる注目画素のデータをビットプレーンメモリ3bから
読み出し、注目画素データDXbとして算術符号器9b
の算術符号エンジン(図示略;図5参照)に出力すると
ともに、そのときの注目画素について所定のテンプレー
トを適用し、複数の参照画素のデータをビットプレーン
メモリ3bから読み出し、参照画素データDRbとして
算術符号器9bの確率評価器(図示略;図5参照)に出
力する。
The data reference section 4b reads the data of the target pixel to be coded from the bit plane memory 3b, and outputs the data as the target pixel data DXb by the arithmetic encoder 9b.
, A predetermined template is applied to the pixel of interest at that time, data of a plurality of reference pixels are read from the bit plane memory 3b, and the arithmetic operation is performed as reference pixel data DRb. The data is output to a probability evaluator (not shown; see FIG. 5) of the encoder 9b.

【0088】ここで、データ参照部4r,4g,4bが
用いるテンプレートは、図4に示したと同じJBIGデ
フォルト3ラインテンプレートを用いているので、注目
画素Xについて、参照画素A〜Jの10個の参照画素が
抽出され、その抽出された参照画素の10ビットのデー
タが、参照画素データDRr,DRg,DRbとしてそ
れぞれ算術符号器9r,9g,9bに出力される。
Here, the template used by the data reference sections 4r, 4g, and 4b uses the same JBIG default three-line template as shown in FIG. The reference pixel is extracted, and the extracted 10-bit data of the reference pixel is output to the arithmetic encoders 9r, 9g, 9b as reference pixel data DRr, DRg, DRb, respectively.

【0089】算術符号器9rは、入力される注目画素デ
ータDXrおよび参照画素データDRrに基づき、上述
した算術符号化処理を実行し、それによって得た符号デ
ータをR成分符号データCXrとして符号作成部27に
出力する。
The arithmetic coder 9r executes the above-described arithmetic coding process based on the input pixel data of interest DXr and reference pixel data DRr, and obtains the coded data as R component code data CXr. 27.

【0090】算術符号器9gは、入力される注目画素デ
ータDXgおよび参照画素データDRgに基づき、上述
した算術符号化処理を実行し、それによって得た符号デ
ータをG成分符号データCXgとして符号作成部27に
出力する。
The arithmetic coder 9g executes the above-described arithmetic coding process based on the input target pixel data DXg and the reference pixel data DRg, and obtains the obtained code data as G component code data CXg. 27.

【0091】算術符号器9bは、入力される注目画素デ
ータDXbおよび参照画素データDRbに基づき、上述
した算術符号化処理を実行し、それによって得た符号デ
ータをB成分符号データCXbとして符号作成部27に
出力する。
The arithmetic coder 9b executes the above-described arithmetic coding process based on the input pixel data of interest DXb and reference pixel data DRb, and obtains the code data obtained thereby as B component code data CXb. 27.

【0092】符号作成部27は、算術符号器9r,9
g,9bから加えられる符号データCXr,CXg,C
Xbに対応したカラー多値符号データCDcを形成する
ものであり、そのカラー多値符号データCDcを次段装
置に出力する。
The code generator 27 includes arithmetic coder 9r, 9
code data CXr, CXg, C added from g, 9b
It forms color multi-level code data CDc corresponding to Xb, and outputs the color multi-level code data CDc to the next stage device.

【0093】ここで、符号作成部22が形成するカラー
多値符号データCDcの一例を図11(a),(b)に
示す。
Here, an example of the color multi-level code data CDc formed by the code generation section 22 is shown in FIGS.

【0094】カラー多値符号データCDcは、同図
(a)に示すように、先頭に元の画像データPXcのビ
ット数に対応したビット精度情報(n;この場合は
「8」)と、色成分数(この場合は「3」)をあらわす
ヘッダ情報に続き、各色成分の符号データを順次配置し
たものである。
As shown in FIG. 11A, the color multi-level code data CDc has bit precision information (n; "8" in this case) corresponding to the number of bits of the original image data PXc at the beginning, and Following header information indicating the number of components (in this case, “3”), code data of each color component is sequentially arranged.

【0095】また、おのおのの色成分の符号データは、
同図(b)に示すように、最上位ビットプレーンから下
位ビットプレーンに向かって各ビットプレーンに対応し
たビットプレーン符号データを順次配列したものであ
る。
The code data of each color component is
As shown in FIG. 2B, bit plane code data corresponding to each bit plane is sequentially arranged from the most significant bit plane to the lower bit plane.

【0096】図12は、カラー多値符号データCDcを
復号化するカラー多値画像復号化装置の一例を示してい
る。
FIG. 12 shows an example of a color multi-level image decoding apparatus for decoding color multi-level code data CDc.

【0097】同図において、カラー多値符号データCD
cは、符号分配部30に加えられ、符号分配部30は、
カラー多値符号データCDcに含まれるR成分の多値符
号データCDr、G成分の多値符号データCDg、およ
び、B成分の多値符号データCDbを抽出して、おのお
のの多値符号データCDr,CDg,CDgを、最上位
ビットプレーンから下位ビットプレーンに向かってビッ
トプレーン順序に算術復号器11r,11g,11bに
それぞれ出力する。これらの算術復号器11r,11
g,11bからそれぞれ出力される復号された画像デー
タCCr,CCg,CCbは、ビットプレーンデータ作
成部13r,13g,13bにそれぞれ加えられてい
る。
In the figure, color multi-level code data CD
c is added to the code distribution unit 30, and the code distribution unit 30
The multi-level code data CDr of the R component, the multi-level code data CDg of the G component, and the multi-level code data CDb of the B component included in the color multi-level code data CDc are extracted, and the multi-level code data CDr, CDr, CDg and CDg are output to the arithmetic decoders 11r, 11g, and 11b in the bit plane order from the most significant bit plane to the least significant bit plane. These arithmetic decoders 11r, 11
The decoded image data CCr, CCg, and CCb respectively output from g and 11b are added to the bit plane data generators 13r, 13g, and 13b, respectively.

【0098】ビットプレーンデータ作成部13r,13
g,13bは、算術復号器11r,11g,11bから
それぞれ加えられる画像データCCr,CCg,CCb
を、対応するビットプレーンのビットプレーンメモリ1
4r,14g,14bにそれぞれ記憶するとともに、デ
ータ参照部15r,15g,15bからそれぞれ指定さ
れた参照画素データをおのおのビットプレーンメモリ1
4r,14g,14bから読み出して、データ参照部1
5r,15g,15bにそれぞれ出力するものである。
Bit plane data creation units 13r, 13
g, 13b are image data CCr, CCg, CCb added from the arithmetic decoders 11r, 11g, 11b, respectively.
To the bit plane memory 1 of the corresponding bit plane.
4r, 14g, and 14b, respectively, and stores the reference pixel data specified by the data reference units 15r, 15g, and 15b in the bit plane memory 1 respectively.
4r, 14g, and 14b, and read the data reference unit 1
5r, 15g, and 15b.

【0099】データ参照部15r,15g,15bは、
復号化対象となっている注目画素について所定のテンプ
レートを適用し、必要な参照画素のアドレスをビットプ
レーンデータ作成部13r,13g,13bにそれぞれ
に指定して、ビットプレーンデータ作成部13r,13
g,13bより参照画素データをそれぞれ受け取り、そ
の受け取った参照画素データを、算術復号器11r,1
1g,11bの確率評価器(図示略;図7参照)に出力
する。
The data reference sections 15r, 15g, 15b
A predetermined template is applied to the target pixel to be decoded, and the address of the required reference pixel is specified to each of the bit plane data generation units 13r, 13g, and 13b, and the bit plane data generation units 13r and 13b are designated.
g, 13b, and receives the reference pixel data, and converts the received reference pixel data into arithmetic decoders 11r, 1r.
1g and 11b are output to probability estimators (not shown; see FIG. 7).

【0100】ここで、データ参照部15は、図4に示し
たようなJBIGデフォルト3ラインテンプレートを用
いる。
Here, the data reference section 15 uses a JBIG default three-line template as shown in FIG.

【0101】算術復号器11rにおいて、確率評価器
は、入力した参照画素データに基づいて、コンテクスト
を判定し、おのおののコンテクストについて、劣勢シン
ボル(または優勢シンボル)の確率推定値、および、劣
勢シンボル(または優勢シンボル)の種別を算術符号エ
ンジンに出力するとともに、そのときに判定して得たコ
ンテクストの状態番号をあらわす状態番号データDCを
状態確率統計部17に出力する。
In the arithmetic decoder 11r, the probability estimator determines the context based on the input reference pixel data, and for each context, the probability estimation value of the inferior symbol (or superior symbol) and the inferior symbol ( Or, the type of the superior symbol is output to the arithmetic code engine, and the state number data DC representing the state number of the context obtained at that time is output to the state probability statistic unit 17.

【0102】算術復号器11rにおいて、算術復号エン
ジンは、入力した注目画素データ、劣勢シンボル(また
は優勢シンボル)の確率推定値、および、劣勢シンボル
(または優勢シンボル)の種別に基づいて、上述した復
号化処理を実行し、その結果得た画像データCCrをビ
ットプレーンデータ作成部13に出力するとともに、そ
のときの注目画素が劣勢シンボルであるか優勢シンボル
であるかをあらわす画素種別データDPを状態確率統計
部17に出力する。また、算術復号エンジンは、その復
号化処理において再正規化処理が行われると、その旨を
確率評価器に通知する。
In the arithmetic decoder 11r, the arithmetic decoding engine performs the above-described decoding based on the input target pixel data, the estimated value of the inferior symbol (or superior symbol), and the type of the inferior symbol (or superior symbol). And outputs the image data CCr obtained as a result to the bit plane data generation unit 13 and also outputs the pixel type data DP indicating whether the pixel of interest at that time is the inferior symbol or the superior symbol to the state probability Output to the statistics unit 17. Further, when the renormalization process is performed in the decoding process, the arithmetic decoding engine notifies the probability evaluator of the fact.

【0103】それにより、確率評価器は、再正規化処理
の実行に同期して、コンテクストの遷移を行い、確率評
価状態を更新する。また、確率評価器は、おのおののコ
ンテクストについて、マルコフ状態値(確率推定値イン
デックスの値;7ビット)と、そのときの優勢シンボル
が白/黒のいずれかをあらわす1ビットの計8ビットの
データを記憶している。
Accordingly, the probability evaluator performs a context transition and updates the probability evaluation state in synchronization with the execution of the renormalization process. Further, the probability estimator calculates a Markov state value (a value of a probability estimation value index; 7 bits) and a 1-bit data indicating that the dominant symbol at that time is either white or black for each context, for a total of 8 bits. I remember.

【0104】また、状態確率統計部17は、所定のビッ
トプレーン(例えば、最上位ビットプレーン)につい
て、各コンテクストについて劣勢シンボルと優勢シンボ
ルの出現回数を計数し、劣勢シンボルと優勢シンボルの
出現回数の総和を算出し、その総和の値で劣勢シンボル
の出現回数を割り算して、おのおののコンテクストにつ
いての劣勢シンボルの出現確率を算出するものであり、
その算出結果は、状態確率統計データSPとしてビット
プレーン毎に画像判定部18に出力される。
Further, the state probability statistic unit 17 counts the number of appearances of the inferior symbol and the superior symbol for each context for a predetermined bit plane (for example, the most significant bit plane), and calculates the number of appearances of the inferior symbol and the superior symbol. The sum is calculated, the number of occurrences of the inferior symbol is divided by the value of the sum, and the probability of appearance of the inferior symbol for each context is calculated.
The calculation result is output to the image determination unit 18 for each bit plane as the state probability statistical data SP.

【0105】画像判定部18は、状態確率統計部17よ
り入力される状態確率統計データSPに基づき、復号し
て再生している画像が文字画像であるか写真画像である
かを判定するものであり、その判定結果は、画像判定デ
ータKPとして、連動する2つの切換器19,20に加
えられている。
The image determining unit 18 determines whether the image decoded and reproduced is a character image or a photographic image based on the state probability statistical data SP input from the state probability statistical unit 17. The determination result is provided to two linked switches 19 and 20 as image determination data KP.

【0106】画像データ合成部31は、ビットプレーン
メモリ14rに記憶されている第8ビットプレーン〜第
1ビットプレーンのビットプレーン画像データCCr、
ビットプレーンメモリ14gに記憶されている第8ビッ
トプレーン〜第1ビットプレーンのビットプレーン画像
データCCg、および、ビットプレーンメモリ14bに
記憶されている第8ビットプレーン〜第1ビットプレー
ンのビットプレーン画像データCCbについて、順次各
色成分毎に各画素の画像データを抽出し、同一画素位置
の3つの色成分の8ビットのデータをまとめてカラー多
値画像データXCを形成するものであり、そのカラー多
値画像データXCは、切換器19に加えられている。
The image data synthesizing section 31 stores the bit plane image data CCr of the eighth bit plane to the first bit plane stored in the bit plane memory 14r.
Eighth bit plane to first bit plane bit plane image data CCg stored in bit plane memory 14g and eighth bit plane to first bit plane bit plane image data stored in bit plane memory 14b For CCb, image data of each pixel is sequentially extracted for each color component, and 8-bit data of three color components at the same pixel position are combined to form color multivalued image data XC. The image data XC is applied to the switch 19.

【0107】切換器19は、カラー多値画像データCX
を、画像判定データKPの値が写真画像をあらわしてい
る場合には写真画像処理部21に出力し、画像判定デー
タKPの値が文字画像をあらわしている場合には文字画
像処理部22に出力する。
The switch 19 is provided with a color multi-valued image data CX.
Is output to the photo image processing unit 21 when the value of the image determination data KP indicates a photographic image, and is output to the character image processing unit 22 when the value of the image determination data KP indicates a text image. I do.

【0108】切換器20は、画像判定データKPの値が
写真画像をあらわしている場合には写真画像処理部21
の出力データを選択するとともに、画像判定データKP
の値が文字画像をあらわしている場合には文字画像処理
部22の出力データを選択し、その選択したデータを、
カラー多値画像データCXaとして、次段装置に出力す
る。
When the value of the image determination data KP indicates a photographic image, the switch 20 switches to the photographic image processing section 21.
And the image determination data KP
If the value represents a character image, the output data of the character image processing unit 22 is selected, and the selected data is
The data is output to the next-stage device as color multivalued image data CXa.

【0109】したがって、画像判定部18により、処理
対象の多値画像データXPの画像が写真画像であると判
定されると、写真画像に対応した画像判定データKPが
出力され、このときには、切換器19および切換器20
は写真画像処理部21を選択するので、画像データ合成
部31より出力されるカラー多値画像データXCは、写
真画像処理部21によって上述したような画像処理(γ
補正処理および平滑化処理等)が施され、切換器20を
介してカラー多値画像データXPaとして出力されるの
で、写真画像の再生画質が良好になる。
Therefore, when the image determination unit 18 determines that the image of the multivalued image data XP to be processed is a photographic image, the image determination data KP corresponding to the photographic image is output. 19 and switch 20
Selects the photographic image processing unit 21, the color multi-valued image data XC output from the image data synthesizing unit 31 is processed by the photographic image processing unit 21 in the image processing (γ
Correction processing and smoothing processing) are performed and output as color multi-valued image data XPa via the switch 20, so that the reproduced image quality of the photographic image is improved.

【0110】また、画像判定部18により処理対象の多
値画像データXPの画像が文字画像であると判定される
と、文字画像に対応した画像判定データKPが出力さ
れ、このときには、切換器19および切換器20は文字
画像処理部22を選択するので、画像データ合成部31
より出力されるカラー多値画像データXCは、文字画像
処理部22によって上述した画像処理が施され、切換器
20を介してカラー多値画像データXCaとして出力さ
れるので、文字画像の再生画質が良好になる。
When the image of the multivalued image data XP to be processed is determined to be a character image by the image determination section 18, image determination data KP corresponding to the character image is output. And the switch 20 selects the character image processing unit 22, so that the image data combining unit 31
The color multi-valued image data XC output from the above is subjected to the above-described image processing by the character image processing unit 22 and is output as the color multi-valued image data XCa via the switch 20. Become good.

【0111】この場合の画像判定部18の判定処理は、
図9と同様の処理を適用することができる。
In this case, the judgment process of the image judgment unit 18 is as follows.
The same processing as in FIG. 9 can be applied.

【0112】このようにして、本実施例では、原画像の
画像種別に応じて、カラー再生画像の画質を良好なもの
にすることができる。
As described above, according to the present embodiment, it is possible to improve the image quality of the color reproduced image according to the image type of the original image.

【0113】なお、上述した実施例では、算術符号時に
JBIGデフォルト3ラインテンプレートを用いて符号
化しているが、それ以外の適宜なテンプレート(例え
ば、浮動参照画素を画像内容によって最適な状態に移動
するアダプティブテンプレート等)を用いることができ
る。
In the above-described embodiment, the JBIG default three-line template is used for encoding at the time of arithmetic coding. However, any other appropriate template (for example, a floating reference pixel is moved to an optimum state according to image content) Adaptive template, etc.).

【0114】[0114]

【発明の効果】以上説明したように、本発明によれば、
算術符号処理により符号化圧縮されたデータから白黒多
値画像を再生するときに、その画像種類に応じた画像処
理を適用するので、再生画像の画質を良好にすることが
できるという効果を得る。
As described above, according to the present invention,
When reproducing a black-and-white multi-valued image from data encoded and compressed by the arithmetic coding process, image processing according to the type of the image is applied, so that the effect of improving the image quality of the reproduced image is obtained.

【0115】また、算術符号処理により符号化圧縮され
たデータからカラー多値画像を再生するときに、その画
像種類に応じた画像処理を適用するので、再生カラー画
像の画質を良好にすることができるという効果を得る。
Further, when reproducing a color multi-valued image from data coded and compressed by arithmetic coding, image processing according to the type of the image is applied, so that the image quality of the reproduced color image can be improved. The effect that can be obtained.

【0116】また、算術復号処理するときに得られる劣
勢シンボル出現確率の統計情報に基づいて再生画像の種
類を判断しているので、確実に画像種類の判断を行うこ
とができ、例えば、写真画像に対して文字画像用の画像
処理を適用するなどの不都合を防止することができると
いう効果を得る。
Further, since the type of the reproduced image is determined based on the statistical information of the inferior symbol appearance probability obtained at the time of the arithmetic decoding process, the image type can be reliably determined. In this case, it is possible to prevent an inconvenience such as applying image processing for a character image.

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

【図1】多値画像をビットプレーン方式で符号化すると
きの説明図。
FIG. 1 is an explanatory diagram when a multi-valued image is encoded by a bit plane method.

【図2】符号化シンボル系列「0100」を対象とした
2値算術符号化の一例を説明するための概略図。
FIG. 2 is a schematic diagram for explaining an example of binary arithmetic coding for a coded symbol sequence “0100”.

【図3】QM−coder方式の符号化復号化処理の一
例を説明するためのフローチャート。
FIG. 3 is a flowchart for explaining an example of a QM-coder encoding / decoding process.

【図4】予測符号化処理に用いる用いるテンプレートの
一例を示した概略図。
FIG. 4 is a schematic diagram showing an example of a template used for predictive encoding processing.

【図5】本発明の一実施例にかかる多値符号化装置の一
例を示したブロック図。
FIG. 5 is a block diagram showing an example of a multi-level encoding device according to one embodiment of the present invention.

【図6】多値符号データの一例を示した概略図。FIG. 6 is a schematic diagram showing an example of multi-level code data.

【図7】符号化判定部の処理の一例を示したフローチャ
ート。
FIG. 7 is a flowchart illustrating an example of processing of an encoding determination unit.

【図8】写真画像処理部および文字画像処理部の処理の
一部(γ補正)を説明するためのグラフ図。
FIG. 8 is a graph for explaining a part of the processing (γ correction) of the photographic image processing unit and the character image processing unit.

【図9】多値復号化装置の一例を示したブロック図。FIG. 9 is a block diagram illustrating an example of a multi-level decoding device.

【図10】本発明の他の実施例にかかるカラー多値画像
符号化装置の一例を示したブロック図。
FIG. 10 is a block diagram showing an example of a color multi-level image encoding device according to another embodiment of the present invention.

【図11】カラー多値符号データの一例を示した概略
図。
FIG. 11 is a schematic diagram showing an example of color multi-level code data.

【図12】カラー多値符号データを復号化するカラー多
値画像復号化装置の一例を示したブロック図。
FIG. 12 is a block diagram illustrating an example of a color multi-level image decoding device that decodes color multi-level code data.

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

11,11r,11g,11b 算術復号器 12 算術復号エンジン 13,13r,13g,13b ビットプレーンデータ
作成部 14,14r,14g,14b ビットプレーンメモリ 15,15r,15g,15b データ参照部 16 確率評価器 17 状態確率統計部 18 画像判定部 19,20 切換器 21 写真画像処理部 22 文字画像処理部 30 符号分配部 31 画像データ合成部
11, 11r, 11g, 11b Arithmetic decoder 12 Arithmetic decoding engine 13, 13r, 13g, 13b Bit plane data creation unit 14, 14r, 14g, 14b Bit plane memory 15, 15r, 15g, 15b Data reference unit 16 Probability evaluator 17 State Probability Statistical Unit 18 Image Judgment Unit 19, 20 Switch 21 Photo Image Processing Unit 22 Character Image Processing Unit 30 Code Distribution Unit 31 Image Data Synthesis Unit

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 1画素あたり複数ビットからなる白黒多
値画像から、同一ビット順位のビットデータを画素毎に
取り出してビットプレーンを形成し、おのおののビット
プレーンについて算術符号処理して形成された多値画像
符号データに対し、上記算術符号処理の逆処理である算
術復号処理を適用し、原画像を再生する多値画像処理装
置において、 おのおののビットプレーンの符号データについて上記算
術復号処理を適用して元の二値画像データを形成する算
術復号化処理手段と、 上記算術復号化処理手段の復号化処理時に判定した状態
毎に、おのおのの状態でのシンボル出現確率を収集して
統計する状態確率統計手段と、 上記状態確率統計手段の統計結果に基づいて、処理対象
の画像の種別を判定する画像判定手段と、 上記画像判定手段が判定した画像の種別に基づき、全て
のビットプレーンについて上記算術復号化処理手段が形
成して得た復号多値画像データを画像処理する画像処理
手段を備えたことを特徴とする多値画像処理装置。
1. A bit plane is formed by extracting bit data of the same bit order for each pixel from a black-and-white multi-valued image composed of a plurality of bits per pixel, forming a bit plane, and performing arithmetic code processing on each bit plane. In a multi-level image processing device that applies an arithmetic decoding process, which is a reverse process of the above arithmetic coding process, to the value image code data and reproduces the original image, the arithmetic decoding process is applied to the code data of each bit plane. Arithmetic decoding means for forming the original binary image data, and a state probability for collecting and statistic symbol appearance probabilities in each state for each state determined during the decoding processing of the arithmetic decoding processing means. Statistical means; image determining means for determining a type of an image to be processed based on statistical results of the state probability statistical means; and image determining means A multi-valued image processing apparatus comprising: image processing means for performing image processing on decoded multi-valued image data formed and formed by the arithmetic decoding processing means for all bit planes based on the determined image type. .
【請求項2】 複数の色成分で、かつ、1画素あたり複
数ビットからなるカラー多値画像から、各色成分につい
て、同一ビット順位のビットデータを画素毎に取り出し
てビットプレーンを形成し、おのおののビットプレーン
について算術符号処理して形成されたカラー多値画像符
号データに対し、上記算術符号処理の逆処理である算術
復号処理を適用し、原画像を再生する多値画像処理装置
において、 おのおののビットプレーンの符号データについて上記算
術復号処理を適用して元の二値画像データを形成する算
術復号化処理手段と、 上記算術復号化処理手段の復号化処理時に判定した状態
毎に、おのおのの状態でのシンボル出現確率を収集して
統計する状態確率統計手段と、 上記状態確率統計手段の統計結果に基づいて、処理対象
の画像の種別を判定する画像判定手段と、 上記画像判定手段が判定した画像の種別に基づき、全て
の色成分の全てのビットプレーンについて上記算術復号
化処理手段が形成して得た復号カラー多値画像データを
画像処理する画像処理手段を備えたことを特徴とする多
値画像処理装置。
2. A bit plane is formed by extracting bit data having the same bit order for each color component for each pixel from a color multi-valued image including a plurality of color components and a plurality of bits per pixel. A multi-valued image processing device that applies an arithmetic decoding process, which is a reverse process of the above-described arithmetic coding process, to a color multi-valued image code data formed by performing an arithmetic coding process on a bit plane, and reproduces an original image. Arithmetic decoding means for applying the arithmetic decoding process to the bit plane code data to form the original binary image data; and each state determined at the time of the decoding processing by the arithmetic decoding processing means. State probability statistical means for collecting and statistic symbol appearance probabilities in the image, and based on the statistical result of the state probability statistical means, Image determination means for determining a type; and decoded color multi-valued image data obtained by the arithmetic decoding processing means for all bit planes of all color components based on the image type determined by the image determination means. A multi-valued image processing apparatus comprising an image processing means for performing image processing on.
【請求項3】 前記画像判定手段は、所定の上位ビット
のビットプレーンに対応した統計結果にあらわれる文字
画像の特徴に対応した所定の状態の劣勢シンボル出現確
率が所定値よりも小さくなっているときには、その処理
対象の画像が文字画像であると判定し、上記所定の上位
ビットのビットプレーンに対応した統計結果にあらわれ
る上記所定の状態の劣勢シンボル出現確率が所定値以上
になっているときには、その処理対象の画像が写真画像
であると判定することを特徴とする請求項1または請求
項2記載の多値画像処理装置。
3. The image determining means according to claim 1, wherein said inferior symbol appearance probability in a predetermined state corresponding to a characteristic of a character image appearing in a statistical result corresponding to a bit plane of a predetermined upper bit is smaller than a predetermined value. It is determined that the image to be processed is a character image, and when the inferior symbol appearance probability of the predetermined state, which appears in the statistical result corresponding to the bit plane of the predetermined upper bit, is equal to or more than a predetermined value, the 3. The multi-value image processing apparatus according to claim 1, wherein the image to be processed is determined to be a photographic image.
【請求項4】 前記画像判定手段は、最上位ビットのビ
ットプレーンに対応した統計結果にあらわれる文字画像
の特徴に対応した所定の状態の劣勢シンボル出現確率が
所定値よりも小さくなっているときには、その処理対象
の画像が文字画像であると判定し、最上位ビットのビッ
トプレーンに対応した統計結果にあらわれる上記所定の
状態の劣勢シンボル出現確率が所定値以上になっている
ときには、その処理対象の画像が写真画像であると判定
することを特徴とする請求項1または請求項2記載の多
値画像処理装置。
4. The image determining means according to claim 1, wherein, when the occurrence probability of the inferior symbol in a predetermined state corresponding to the characteristic of the character image appearing in the statistical result corresponding to the bit plane of the most significant bit is smaller than a predetermined value, When it is determined that the image to be processed is a character image, and the occurrence probability of the inferior symbol in the above-mentioned predetermined state, which appears in the statistical result corresponding to the bit plane of the most significant bit, is equal to or more than a predetermined value, 3. The multi-value image processing apparatus according to claim 1, wherein the image is determined to be a photographic image.
【請求項5】 前記画像判定手段は、最上位ビットのビ
ットプレーンに対応した統計結果にあらわれる劣勢シン
ボルの出現確率がいずれかの状態に偏っているときに
は、その処理対象の画像が文字画像であると判定し、最
上位ビットのビットプレーンに対応した統計結果にあら
われる劣勢シンボルの出現確率がいずれの状態にも偏っ
ていないときには、その処理対象の画像が写真画像であ
ると判定することを特徴とする請求項1または請求項2
記載の多値画像処理装置。
5. The image determining means, when the occurrence probability of a less-probable symbol appearing in the statistical result corresponding to the bit plane of the most significant bit is biased to one of the states, the image to be processed is a character image. When the occurrence probability of the inferior symbol appearing in the statistical result corresponding to the bit plane of the most significant bit is not biased in any state, it is determined that the image to be processed is a photographic image. Claim 1 or Claim 2
The multivalued image processing apparatus according to the above.
JP27067195A 1995-09-26 1995-09-26 Multi-value image processing device Expired - Fee Related JP3320282B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27067195A JP3320282B2 (en) 1995-09-26 1995-09-26 Multi-value image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27067195A JP3320282B2 (en) 1995-09-26 1995-09-26 Multi-value image processing device

Publications (2)

Publication Number Publication Date
JPH0993440A JPH0993440A (en) 1997-04-04
JP3320282B2 true JP3320282B2 (en) 2002-09-03

Family

ID=17489329

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27067195A Expired - Fee Related JP3320282B2 (en) 1995-09-26 1995-09-26 Multi-value image processing device

Country Status (1)

Country Link
JP (1) JP3320282B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3349957B2 (en) 1997-07-09 2002-11-25 株式会社ハイニックスセミコンダクター Interpolation apparatus and method for binary video information using context probability table
DE19944213C1 (en) * 1999-09-15 2001-05-23 Inst Telematik E V Method for compressing a digital image with several bit levels
WO2002047396A1 (en) * 2000-12-01 2002-06-13 Celartem Technology Inc. Image format
KR100462789B1 (en) * 2002-06-12 2004-12-20 한국과학기술원 method and apparatus for multi-symbol data compression using a binary arithmetic coder

Also Published As

Publication number Publication date
JPH0993440A (en) 1997-04-04

Similar Documents

Publication Publication Date Title
JP3364074B2 (en) Bit plane coding device
US5363219A (en) Image processing method and apparatus
US6912318B2 (en) Method and system for compressing motion image information
JPH09135358A (en) Image encoding device using arithmetic code
JPS60153264A (en) Transmission system of half tone picture
JPS6096079A (en) Encoding method of multivalue picture
JP3794749B2 (en) Video signal encoding device
US5761342A (en) Image processing apparatus and method
JP3320282B2 (en) Multi-value image processing device
KR100504415B1 (en) Image encoding apparatus, image encoding method, image decoding apparatus, image decoding method and recording medium
JP2000125111A (en) Picture compression method, picture restoration method, picture compression device, picture reader, picture compression program storage medium and picture restoration program storage medium
JP3223046B2 (en) Error diffusion coding apparatus for binary image
JPH09149260A (en) Information processor and information processing method
JP3320281B2 (en) Multi-value image processing device
JP3139460B2 (en) Method and apparatus for encoding binary document image
KR20010110053A (en) Method for compressing dynamic image information and system therefor
JP2000078020A (en) Compression method for dividing every word and applying compression to most significant bit
JP3845390B2 (en) Image decoding apparatus and image decoding method
JP3788895B2 (en) Encoding apparatus, encoding method, and computer-readable recording medium recording a program for causing a computer to execute the encoding method
JP2952007B2 (en) Image coding device
JP3200109B2 (en) Image transmission method
JP3958033B2 (en) Method and system for compressing moving picture information
JPH07112243B2 (en) Block division sequential reproduction coding method
EP1170956A2 (en) Method and system for compressing motion image information
US6298168B1 (en) Image coding apparatus

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080621

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090621

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090621

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100621

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110621

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees