JPH09252408A - Multi-tone image decoding device - Google Patents

Multi-tone image decoding device

Info

Publication number
JPH09252408A
JPH09252408A JP8584096A JP8584096A JPH09252408A JP H09252408 A JPH09252408 A JP H09252408A JP 8584096 A JP8584096 A JP 8584096A JP 8584096 A JP8584096 A JP 8584096A JP H09252408 A JPH09252408 A JP H09252408A
Authority
JP
Japan
Prior art keywords
image
decoding
unit
bit plane
statistical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8584096A
Other languages
Japanese (ja)
Inventor
Yasuyuki Nomizu
泰之 野水
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 JP8584096A priority Critical patent/JPH09252408A/en
Publication of JPH09252408A publication Critical patent/JPH09252408A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

(57)【要約】 【課題】本発明は多階調画像の符号列を簡単な構成で復
号し、画像の種類や特性に応じた画像処理を行って高品
質な画像出力を行う多階調画像の復号装置を提供する。 【解決手段】ビットプレーン復号部20は入力される符
号列を算術符号化方式により復号・再生して、画像作成
部21及び状態数統計部23に出力する。ビットプレー
ン1枚分の復号が完了すると、状態数統計部23が復号
後の各状態毎の登場回数を計数し、画像判定部24が当
該統計情報に基づいて復号画像の種類や特性等を判定す
る。画像作成部21はビットプレーン復号部20で復号
されたビットプレーン単位毎の画像の合成を行って全体
の画像を作成し、出力処理部22は画像作成部21で作
成された画像を画像判定部24から入力される判定結果
に基づいて当該画像に最適でかつ画像出力特性に最適な
画像処理を行う。
(57) Abstract: The present invention is a multi-gradation method for decoding a code string of a multi-gradation image with a simple configuration, performing image processing according to the type and characteristics of the image, and outputting a high-quality image. An image decoding device is provided. A bit plane decoding unit 20 decodes and reproduces an input code string by an arithmetic coding method, and outputs the code string to an image creating unit and a number-of-states statistics unit. When the decoding for one bit plane is completed, the number-of-states statistics unit 23 counts the number of appearances for each state after decoding, and the image determination unit 24 determines the type and characteristics of the decoded image based on the statistical information. To do. The image creating unit 21 creates an entire image by synthesizing the images decoded by the bit plane decoding unit 20 for each bit plane unit, and the output processing unit 22 determines the image created by the image creating unit 21 as an image determining unit. Based on the determination result input from 24, image processing that is optimal for the image and optimal for the image output characteristic is performed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、多階調画像の復号
装置に関し、詳細には、白黒多値画像やカラー画像を高
速に高画質で復号する多階調画像の復号装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multi-tone image decoding device, and more particularly to a multi-tone image decoding device for decoding a black-and-white multi-valued image or a color image at high speed with high image quality.

【0002】[0002]

【従来の技術】従来、符号化・復号化装置、例えば、フ
ァクシミリ装置においては、送信時には、スキャナで読
み取った原稿の画像データを符号化・復号化部により、
MH(Modified Huffman)符号化方式、MR(Modufied
Relative element address designate)符号化方式、
あるいは、MMR(Modified MR )符号化方式等の2
値ファクシミリ用標準符号化方式で圧縮符号化した後、
一時的に画像メモリに蓄積して、回線に出力することに
より、相手ファクシミリ装置に送信している。また、フ
ァクシミリ装置は、受信時には、回線を介して送られて
くる符号化された画像データを受信し、一時的に画像メ
モリに蓄積した後、符号化・復号化部により元の画像デ
ータに復号して、プロッタにより記録紙に記録出力す
る。
2. Description of the Related Art Conventionally, in an encoding / decoding apparatus, for example, a facsimile apparatus, at the time of transmission, image data of an original read by a scanner is encoded by an encoding / decoding unit.
MH (Modified Huffman) coding system, MR (Modufied)
Relative element address designate) encoding method,
Alternatively, 2 such as MMR (Modified MR) coding method
After compression encoding with the standard encoding method for value facsimile,
The image is temporarily stored in the image memory and output to the line to be transmitted to the facsimile machine of the other party. When receiving, the facsimile device receives the encoded image data sent via the line, temporarily stores it in the image memory, and then decodes it into the original image data by the encoding / decoding unit. Then, the plotter prints it on the printing paper.

【0003】このようなファクシミリ装置においては、
従来、2値画像データ、すなわち、白黒2値の画像デー
タのみを取り扱っていたが、近時、記録方式の発達によ
り、1画素を複数の階調で記録できるようになり、それ
に伴って、画像データの伝送方式においても、多階調画
像データを伝送することが必要となっている。
In such a facsimile machine,
Conventionally, only binary image data, that is, black-and-white binary image data, has been handled. Recently, however, with the development of a recording method, one pixel can be recorded with a plurality of gradations. Also in the data transmission method, it is necessary to transmit multi-tone image data.

【0004】すなわち、近年ファクシミリ装置に代表さ
れる符号化復号化装置では、高速化・高画質化が進んで
きており、また、カラー画像に代表される多階調の画像
を扱える符号化復号化装置(例えば、カラーファクシミ
リ装置)も登場してきているが、従来のファクシミリ装
置に代表される符号化復号化装置では、扱うことのでき
る情報が2値情報であったため、原画像をスキャナ等で
走査して2値情報とした後に、符号化伝送を行なってい
た。そのため、原画像が階調をもつ画像であっても、2
値化されてしまうために情報の損失が発生し、画質が劣
化してしまう(特に、写真を含む画像において)という
問題があった。
That is, in recent years, an encoding / decoding apparatus typified by a facsimile apparatus has been improved in speed and image quality, and an encoding / decoding capable of handling a multi-tone image represented by a color image. Although an apparatus (for example, a color facsimile apparatus) has been introduced, since the information that can be handled by the encoding / decoding apparatus represented by the conventional facsimile apparatus is binary information, the original image is scanned by a scanner or the like. Then, it is converted into binary information and then coded and transmitted. Therefore, even if the original image is an image with gradation, 2
There is a problem that information is lost due to the binarization and the image quality is deteriorated (especially in an image including a photograph).

【0005】この情報損失による画質劣化を少なくする
ための方法として、特開平2−122767号公報や特
開昭61−212167号公報に記載されているような
画像信号の符号化復号化方式があり、これらにおいて
は、原画像を2値化せずにある程度の階調をもたせた情
報とした後に、符号化伝送を行なう方式が提案されてい
る。これは近年登場してきたカラーファクシミリ装置等
で用いられている符号化方式に代表されるような多値符
号化方式の1つであり、多階調画像を扱うので、画質劣
化をかなり小さくできるものである。
As a method for reducing the image quality deterioration due to this information loss, there are image signal coding / decoding methods as described in JP-A-2-122767 and JP-A-61-212167. In these documents, a method has been proposed in which the original image is not binarized but is converted into information having a certain gradation and then coded and transmitted. This is one of the multi-valued encoding methods typified by the encoding methods used in color facsimile machines that have recently appeared, and handles multi-gradation images, so that deterioration in image quality can be considerably reduced. Is.

【0006】ところが、多階調画像は、2値画像を取り
扱う場合に比較して、データ量が極端に多くなり、従来
の符号化方式により符号化してデータ伝送したのでは、
通信時間がながくなり、通信費が高くなる。例えば、白
黒2値画像と白黒256階調画像のデータ量を比べた場
合、1画素に要するビット数は、2値画像が1ビットで
あるのに対し、256階調画像は、8ビット必要になる
ため、全体として、256階調画像は、2値画像に比べ
て8倍のデータ量となる。このデータ量が多いというこ
とは、それだけ処理するデータ量が多くなり、処理時間
が増大するとともに、ファクシミリ装置等の通信装置に
おいては、通信時間が増大するという大きな問題があっ
た。
However, the multi-tone image has an extremely large amount of data as compared with the case where a binary image is handled, and if the data is encoded and transmitted by the conventional encoding method,
Communication time is reduced, and communication costs are increased. For example, when comparing the data amount of a black-and-white binary image and the data amount of a black-and-white 256-tone image, the number of bits required for one pixel is 1 bit for a binary image, and 8 bits for a 256-tone image. Therefore, as a whole, the 256 gradation image has a data amount eight times as large as the binary image. The fact that the amount of data is large means that the amount of data to be processed is correspondingly large and the processing time is increased, and communication devices such as facsimile apparatuses have a serious problem that the communication time is increased.

【0007】この伝送時間を短縮させる1つの方法とし
ては、多階調画像を効率良く符号化することにより、伝
送するデータ量を少なくする方法があり、多階調画像
(カラー画像も含む。)の符号化方式には、大きく分け
て次の2種類ある。
One method for reducing the transmission time is to efficiently encode a multi-tone image to reduce the amount of data to be transmitted, and a multi-tone image (including a color image). There are roughly two types of encoding methods.

【0008】すなわち、多階調画像の符号化方式として
は、人間の視覚特性を利用して画質を損なわない程度に
原画像の情報量を一部削減して符号化を行なう符号化方
式(ロッシー符号化方式と呼ばれる。)と、原画像の情
報量を損なうことなく符号化を行なう符号化方式(ロス
レス符号化方式と呼ばれる。)と、がある。
[0008] That is, as a multi-gradation image encoding method, an encoding method (Lossy method) in which the information amount of the original image is partially reduced to the extent that the image quality is not deteriorated by utilizing human visual characteristics is used. Coding system) and a coding system that performs coding without impairing the information amount of the original image (called a lossless coding system).

【0009】前者の代表としては、ITU−T(旧CC
ITT)とISO(国際標準化機構)とで標準勧告化さ
れている離散コサイン変換(以下、DCT)を用いたJ
PEG方式があり、JPEG方式は、画情報を周波数情
報に変換した後に、画情報の符号化を行なう方式で、人
間の視覚特性(階調認識能力の限界)を利用して、画質
を余り損なわない程度に原画像の情報量を削減して符号
化を行なうものである。
As a representative of the former, ITU-T (former CC
J using the Discrete Cosine Transform (hereinafter DCT), which has been standardized by the ITT) and ISO (International Organization for Standardization)
There is a PEG method, and the JPEG method is a method of converting image information into frequency information and then encoding the image information. The visual quality of human beings (limit of gradation recognition ability) is used to deteriorate the image quality too much. The encoding is performed by reducing the information amount of the original image to the extent that it does not exist.

【0010】後者の代表としては、同様に、ITU−T
とISOで標準勧告化されているJBIG方式があり、
JBIG方式は、基本的には、画像を2値のビットプレ
ーンに分解して、QM−Coderと呼ばれる2値の算
術符号化方式を用いて符号化するものである。
Similarly, as a representative of the latter, ITU-T
And the JBIG method, which has been standardized by ISO,
The JBIG method basically decomposes an image into binary bit planes and encodes it using a binary arithmetic encoding method called QM-Coder.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、これら
の符号化方式にも、一長一短がある。すなわち、JPE
G方式では、画質をあまり損なわずに効率良く符号化す
ることはができるが、文字画像部分がぼやけたり、符号
化効率を高くし過ぎると、画質が極端に悪くなるという
欠点がある。また、ファクシミリ装置においては、JP
EG方式では、2値画像を扱えないので、2値画像用の
符号化方式と多値画像用のJPEG方式の両方の符号化
部を搭載しなければならず、コストが高くなるという問
題がある。これに対して、JBIG方式では、基本的に
2値符号化方式であるために、ファクシミリ装置に適用
した場合においても、2種類の符号化部を搭載する必要
が無く、コスト面での問題はないが、多階調画像におい
ては、一般的にJPEG方式より符号化効率が劣るとい
う問題がある。
However, these coding methods also have advantages and disadvantages. That is, JPE
The G method enables efficient encoding without deteriorating the image quality, but has a drawback that the image quality becomes extremely poor if the character image portion is blurred or the encoding efficiency is too high. In the case of a facsimile machine, JP
Since the EG method cannot handle a binary image, it is necessary to mount both an encoding unit for the binary image encoding method and an encoding section for the multi-valued image JPEG method, which causes a problem of high cost. . On the other hand, since the JBIG system is basically a binary encoding system, even when it is applied to a facsimile machine, it is not necessary to mount two types of encoding units, and there is a problem in terms of cost. However, in a multi-tone image, there is a problem that the coding efficiency is generally lower than that of the JPEG method.

【0012】一方、ファクシミリ装置等の通信装置の受
信側では、送られた画像を高画質に出力するために、画
像の種類を考慮して自機の出力特性に適応した画像処理
を行なうことが多い。中でも絵文字分離を行なって画像
を処理することは、画像の品質を向上させる上で極めて
効果的である。例えば、文字画像部分では、図9に示す
ような原稿濃度と出力画像濃度の関係(γ曲線)によ
り、エッジ部分を強調することやスムージング処理とよ
ばれる輪郭を滑らかに表現する処理を行なって出力する
ことが行われ、高品位な画像の出力を行っている。ま
た、写真等の中間調画像では、図10に示すようなγ曲
線により、画像に滑らかな階調をもたせて出力すること
や周囲画素を利用して平滑化処理を行って、高画質な画
像の出力を行っている。
On the other hand, on the receiving side of a communication device such as a facsimile device, in order to output a transmitted image with high image quality, it is possible to perform image processing adapted to the output characteristics of the device itself in consideration of the type of image. Many. In particular, processing the image by performing pictogram separation is extremely effective in improving the quality of the image. For example, in the character image portion, the relationship between the original image density and the output image density (γ curve) as shown in FIG. Is performed and high-quality images are output. Further, in a halftone image such as a photograph, a high-quality image can be obtained by applying a smooth gradation to the image by a γ curve as shown in FIG. Is being output.

【0013】これらの文字画像と写真等の中間調画像の
関係は、相反しており、写真等の中間調画像に対して行
う処理を文字画像に行なうと逆効果となって画質を悪化
させ、逆に、文字画像に対して行なう処理を写真等の中
間調画像に行なうと、同様に画質を悪化させる。
The relationship between these character images and halftone images such as photographs is contradictory, and when the processing performed on the halftone images such as photographs is performed on the character images, the adverse effect is obtained, and the image quality deteriorates. On the contrary, if the processing for the character image is performed on the halftone image such as a photograph, the image quality is similarly deteriorated.

【0014】そこで、請求項1記載の発明は、JBIG
方式による算術符号化では、復号時、写真画像等の中間
調画像のように微妙な階調表現が多い場合には、各状態
毎の登場回数が平均的で、状態間でのバラツキが少な
い。逆に、文字画像においては、ある特定の状態におけ
る登場回数が多く、状態間でのバラツキが大きい。そこ
で、ビットプレーン単位に符号化された符号列から白黒
多階調画像を復号再生する際に、ビットプレーン毎の符
号終了時に、状態毎の登場回数の統計処理を行って、当
該状態毎の登場回数情報に基づいて復号画像の種類及び
特性等を判定し、該判定結果を元に画像出力時の最適な
画像処理、例えば、エッジ強調やスムージング処理ある
いは平滑化処理等を行うことにより、2値画像を復号化
するとともに、白黒多階調画像を高画質で出力すること
のできる多階調画像の復号装置を提供することを目的と
している。
Therefore, the invention according to claim 1 is the JBIG
In the arithmetic coding by the method, when there are many delicate gradation expressions such as a halftone image such as a photographic image at the time of decoding, the number of appearances in each state is average, and the variation between states is small. On the contrary, in the character image, the number of appearances in a specific state is large, and the variation between states is large. Therefore, when decoding and reproducing a black-and-white multi-tone image from a code string encoded in bit plane units, at the end of the code for each bit plane, statistical processing of the number of appearances for each state is performed, and the appearance for each state is performed. A binary value is obtained by determining the type and characteristics of the decoded image based on the number-of-times information and performing optimal image processing at the time of image output based on the determination result, for example, edge enhancement, smoothing processing or smoothing processing. An object of the present invention is to provide a multi-tone image decoding device capable of decoding an image and outputting a black-and-white multi-tone image with high image quality.

【0015】請求項2記載の発明は、ビットプレーン単
位に符号化された符号列からカラー画像を復号再生する
際に、最初の色成分におけるビットプレーン毎の復号終
了時に、各状態毎の登場回数の統計処理を行って、当該
状態毎の登場回数情報に基づいて符号画像の種類及び特
性等を判定し、該判定結果を元に画像出力時の最適な画
像処理を行うことにより、2値画像を復号化するととも
に、カラー多階調画像を高画質で出力することのできる
多階調画像の復号装置を提供することを目的としてい
る。
According to a second aspect of the present invention, when a color image is decoded and reproduced from a code string encoded in bit plane units, the number of appearances in each state at the end of decoding for each bit plane in the first color component By performing the statistical processing of 1., the type and characteristics of the code image are determined based on the appearance count information for each state, and the optimal image processing at the time of image output is performed based on the determination result. It is an object of the present invention to provide a multi-tone image decoding apparatus capable of decoding a multi-tone image and outputting a color multi-tone image with high image quality.

【0016】請求項3記載の発明は、特定の状態のみの
登場回数の統計処理のみの統計処理を行って、当該統計
情報に基づいて画像の種類及び特性等を判定することに
より、構成が簡単で、かつ、安価な高画質を出力するこ
とのできる多階調画像の復号装置を提供することを目的
としている。
According to a third aspect of the invention, the structure is simple by performing the statistical processing of only the statistical processing of the number of appearances in only a specific state and determining the type and characteristics of the image based on the statistical information. It is an object of the present invention to provide a multi-tone image decoding device that can output high-quality images at low cost.

【0017】請求項4記載の発明は、文字画像としての
特徴のある状態のみの登場回数の統計処理のみに基づい
て、文字画像であるか否かを判定することにより、構成
がより簡単で、かつ、より安価な高画質を出力すること
のできる多階調画像の復号装置を提供することを目的と
している。
The invention according to claim 4 is simpler in configuration by determining whether or not it is a character image based on only statistical processing of the number of appearances only in a characteristic state as a character image. Moreover, it is an object of the present invention to provide a multi-tone image decoding device that can output a high quality image at a lower cost.

【0018】請求項5記載の発明は、最初に復号される
最上位ビットプレーンについてのみ、文字画像において
所定の特徴ある状態のみの登場回数の統計処理を行な
い、当該文字画像において特徴ある状態の登場回数に基
づいて文字画像であるか否かを判定することにより、構
成がより一層簡単で、かつ、より一層安価な高画質を出
力することのできる多階調画像の復号装置を提供するこ
とを目的としている。
According to the fifth aspect of the present invention, only the most significant bit plane to be decoded first is subjected to statistical processing of the number of appearances of only a predetermined characteristic state in the character image, and the appearance of the characteristic state in the character image is performed. (EN) It is possible to provide a multi-gradation image decoding device that can output a high quality image with a simpler configuration and at a lower cost by determining whether or not it is a character image based on the number of times. Has an aim.

【0019】請求項6記載の発明は、上位ビットプレー
ンで文字画像であると判定すると、続いて行なわれる下
位のビットプレーンに対する復号処理を行なわず、復号
処理を行なわなかったビットプレーンについて、最上位
のビットプレーンを複製して画像を再生することによ
り、構成がさらにより一層簡単で、かつ、より一層安価
な高画質を出力することのできる多階調画像の復号装置
を提供することを目的としている。
According to the sixth aspect of the present invention, when it is determined that the upper bit plane is a character image, the subsequent lower bit plane is not subjected to the decoding process, and the bit plane which is not subjected to the decoding process is the highest bit. It is an object of the present invention to provide a multi-gradation image decoding device that can output a high quality image with a simpler configuration and at a lower cost by reproducing an image by copying the bit plane of There is.

【0020】[0020]

【課題を解決するための手段】請求項1記載の発明の多
階調画像の復号装置は、1画素nビットで表される白黒
多階調画像をビット順位毎にn枚のビットプレーンに分
解して各ビットプレーン単位毎に符号化された符号列か
ら順次ビットプレーン単位に復号して画情報の再生を行
うビットプレーン復号手段と、前記ビットプレーン復号
手段での復号後における状態毎の登場回数の統計処理を
行う状態数統計手段と、前記状態数統計手段の統計情報
に基づいて復号画像の種類及び特性等を判定する画像判
定手段と、前記ビットプレーン復号手段で再生された前
記ビットプレーン毎の画情報を元に全体の画像を作成す
る画像作成手段と、前記画像判定手段の判定結果に基づ
いて前記画像作成手段の作成した前記画像に高画質の画
像出力を行うための所定の画像処理を行なう出力処理手
段と、を備えることにより、上記目的を達成している。
According to a first aspect of the present invention, there is provided a multi-tone image decoding apparatus, wherein a black-and-white multi-tone image represented by n bits per pixel is decomposed into n bit planes for each bit order. Then, a bit plane decoding means for sequentially decoding in bit plane units from a code string encoded for each bit plane unit to reproduce image information, and the number of appearances for each state after decoding by the bit plane decoding means State number statistical means for performing statistical processing, image determination means for determining the type and characteristics of the decoded image based on the statistical information of the state number statistical means, and for each bit plane reproduced by the bit plane decoding means Image creating means for creating an entire image based on the image information of the above, and for outputting a high quality image to the image created by the image creating means based on the judgment result of the image judging means. And output processing means for performing predetermined image processing, by providing, have achieved the above objects.

【0021】ここで、JBIG方式による算術符号化で
は、復号時、写真画像等の中間調画像のように微妙な階
調表現が多い場合には、各状態毎の登場回数が平均的
で、状態間でのバラツキが少ない。逆に、文字画像にお
いては、ある特定の状態における登場回数が多く、状態
間でのバラツキが大きい。そこで、状態毎の登場回数の
統計量(統計情報)に基づいて写真画像等の階調画像で
あるか文字画像のような線画像であるかを判定すること
ができ、画像の種類や特性等に応じて高画質出力のため
の画像処理、例えば、エッジ強調やスムージング処理あ
るいは平滑化処理等を行うことができる。
Here, in the arithmetic coding by the JBIG method, when there are many delicate gradation expressions such as a halftone image such as a photographic image at the time of decoding, the number of appearances in each state is average and There is little variation between spaces. On the contrary, in the character image, the number of appearances in a specific state is large, and the variation between states is large. Therefore, it is possible to determine whether the image is a gradation image such as a photographic image or a line image such as a character image based on the statistical quantity (statistical information) of the number of appearances in each state, and the type and characteristics of the image, etc. Accordingly, image processing for high-quality output, such as edge enhancement, smoothing processing or smoothing processing, can be performed.

【0022】上記構成によれば、ビットプレーン単位に
符号化された符号列から白黒多階調画像を復号再生する
際に、ビットプレーン毎の符号終了時に、状態毎の登場
回数の統計処理を行って、当該状態毎の登場回数情報に
基づいて復号画像の種類及び特性等を判定し、当該判定
結果を元に画像出力時の最適な画像処理を行うことがで
き、2値画像を復号することができるとともに、白黒多
階調画像を高画質で出力することができる。
According to the above configuration, when decoding a black-and-white multi-tone image from a code string encoded in bit plane units, statistical processing of the number of appearances in each state is performed at the end of the code for each bit plane. Then, the type and characteristics of the decoded image can be determined based on the appearance count information for each state, and the optimum image processing at the time of image output can be performed based on the determination result, and the binary image can be decoded. In addition, it is possible to output a black-and-white multi-tone image with high image quality.

【0023】請求項2記載の発明の多階調画像の復号装
置は、1画素の色成分がmビット、色精度がnビットで
表されるカラー画像を、m×n枚のビットプレーンに分
解して各ビットプレーン単位毎に符号化された符号列か
ら順次前記ビットプレーン単位に復号して画情報の再生
を行なうビットプレーン復号手段と、最初の色成分の復
号時に、前記ビットプレーン復号手段による復号後にお
ける各状態毎の登場回数の統計処理を行なう状態数統計
手段と、前記状態数統計手段の統計情報に基づいて復号
画像の種類及び特性等を判定する画像判定手段と、前記
ビットプレーン復号手段で再生された前記ビットプレー
ン毎の画情報を元にm個の色成分毎の画像を作成する画
像作成手段と、前記画像作成手段で作成された色成分毎
の画像を元に全体のカラー画像を作成する色成分合成手
段と、前記画像判定手段の判定結果に基づいて前記色成
分合成手段の作成した前記カラー画像に高画質の画像出
力を行うための所定の画像処理を行なう出力処理手段
と、を備えることにより、上記目的を達成している。
In the multi-gradation image decoding device according to the second aspect of the present invention, a color image in which a color component of one pixel is represented by m bits and a color accuracy is represented by n bits is decomposed into m × n bit planes. Then, a bit plane decoding means for sequentially decoding the bit plane unit from the code string encoded for each bit plane unit to reproduce the image information, and the bit plane decoding means for decoding the first color component State number statistical means for performing statistical processing of the number of appearances for each state after decoding, image determination means for determining the type and characteristics of the decoded image based on the statistical information of the state number statistical means, and the bit plane decoding An image creating means for creating an image for each of m color components based on the image information for each bit plane reproduced by the means, and an entire image based on the image for each color component created by the image creating means A color component synthesizing unit that creates a color image, and an output process that performs predetermined image processing for outputting a high-quality image to the color image created by the color component synthesizing unit based on the determination result of the image determining unit. Means and means are provided to achieve the above object.

【0024】上記構成によれば、ビットプレーン単位に
符号化された符号列からカラー画像を復号再生する際
に、最初の色成分におけるビットプレーン毎の復号終了
時に、各状態毎の登場回数の統計処理を行って、当該状
態毎の登場回数情報に基づいて復号画像の種類及び特性
等を判定し、該判定結果を元に画像出力時の最適な画像
処理を行うことができ、2値画像を復号することができ
るとともに、カラー多階調画像を高画質で出力すること
ができる。
According to the above configuration, when a color image is decoded and reproduced from a code string encoded in bit plane units, at the end of decoding for each bit plane in the first color component, statistics of the number of appearances for each state By performing the processing, the type and characteristics of the decoded image are determined based on the appearance count information for each state, and the optimum image processing at the time of image output can be performed based on the determination result. It is possible to decode and output a color multi-gradation image with high image quality.

【0025】上記各場合において、例えば、請求項3に
記載するように、前記状態数統計手段は、ある特定の状
態のみの登場回数の統計処理を行ない、前記画像判定手
段は、前記特定の状態における登場回数情報から前記画
像の種類及び特性等を判定してもよい。
In each of the above cases, for example, as described in claim 3, the number-of-states statistical means performs statistical processing on the number of appearances of only a certain specific state, and the image determination means causes the image determination means to perform the specific state. The type and characteristics of the image may be determined based on the appearance frequency information.

【0026】上記構成によれば、特定の状態のみの登場
回数の統計処理のみの統計処理を行って、当該統計情報
に基づいて復号画像の種類及び特性等を判定することが
でき、状態数統計手段及び画像判定手段を簡単な構造の
ものとすることができる。その結果、高品質な画像出力
を行うことのできる多階調画像の復号装置を簡単で、か
つ、安価なものとすることができる。
According to the above configuration, it is possible to perform the statistical processing of only the statistical processing of the number of appearances of only a specific state, and determine the type and characteristics of the decoded image based on the statistical information, and the state number statistics. The means and the image determination means can have a simple structure. As a result, a multi-gradation image decoding device capable of outputting a high-quality image can be made simple and inexpensive.

【0027】また、例えば、請求項4に記載するよう
に、前記状態数統計手段は、文字画像において所定の特
徴ある状態のみの登場回数の統計処理を行ない、前記画
像判定手段は、前記状態数統計手段の統計情報に基づい
て文字画像であるか否かを判定してもよい。
Further, for example, as described in claim 4, the number-of-states statistical means performs statistical processing of the number of appearances of only a state having a predetermined characteristic in a character image, and the image determination means, the number-of-states is calculated. Whether or not it is a character image may be determined based on the statistical information of the statistical means.

【0028】上記構成によれば、文字画像として特徴の
ある状態のみの登場回数の統計処理のみに基づいて、濃
度の高い文字画像や濃度の低い下地画像を適切に判定し
て、文字画像であるか否かを判定することができ、高品
質な画像出力を行うことのできる多階調画像の復号装置
を一層簡単な構造で、かつ、より安価なものとすること
ができる。
According to the above configuration, the character image having a high density and the background image having a low density are appropriately determined based on only the statistical processing of the number of appearances only in the characteristic state as the character image, and the character image is obtained. It is possible to make a multi-tone image decoding device capable of determining whether or not it is possible to output a high quality image with a simpler structure and at a lower cost.

【0029】さらに、例えば、請求項5に記載するよう
に、前記状態数統計手段は、前記最初に復号される最上
位ビットプレーンにおいてのみ、前記文字画像において
特徴ある状態のみの登場回数の統計処理を行ない、前記
画像判定手段は、前記状態数統計手段の統計情報に基づ
いて文字画像であるか否かを判定してもよい。
Further, for example, as described in claim 5, the state number statistical means statistically counts the number of appearances of only a characteristic state in the character image only in the most significant bit plane decoded first. The image determination means may determine whether or not the image is a character image based on the statistical information of the state number statistical means.

【0030】上記構成によれば、最初に復号される最上
位ビットプレーンのみについて、文字画像において所定
の特徴ある状態のみの登場回数の統計処理を行ない、当
該文字画像において特徴ある状態の登場回数に基づいて
文字画像であるか否かを判定することができ、高品質な
画像出力を行うことのできる多階調画像の復号装置をよ
り一層簡単な構造で、かつ、より一層安価なものとする
ことができる。
According to the above configuration, only the most significant bit plane to be decoded first is subjected to statistical processing of the number of appearances of only a predetermined characteristic state in the character image, and the appearance number of the characteristic state in the character image is calculated. A multi-gradation image decoding device capable of determining whether or not a character image is based on a high-quality image, and having a simpler structure and further lower cost be able to.

【0031】また、例えば、請求項6に記載するよう
に、前記ビットプレーン復号手段は、前記画像判定手段
が文字画像であると判定すると、続いて行なわれる前記
下位のビットプレーンに対する復号処理を行なわず、前
記画像作成手段は、当該復号処理を行なわなかったビッ
トプレーンについて、最上位の前記ビットプレーンを複
製することにより画像を再生してもよい。
Further, for example, as described in claim 6, when the bit plane decoding means determines that the image determining means is a character image, the bit plane decoding means subsequently performs decoding processing on the lower bit plane. Alternatively, the image creating means may reproduce the image by copying the highest bit plane of the bit plane that has not been subjected to the decoding process.

【0032】上記構成によれば、上位ビットプレーンで
文字画像であると判定すると、続いて行なわれる下位の
ビットプレーンに対する復号処理を行なわず、復号処理
を行なわなかったビットプレーンについて、最上位のビ
ットプレーンの復号画像を複製して画像を再生するの
で、多階調画像の復号装置をより一層簡単な構造で、か
つ、より一層安価なものとすることができる。
According to the above configuration, when it is determined that the character image is in the upper bit plane, the decoding process for the lower bit plane that is subsequently performed is not performed, and the highest bit of the bit plane that has not been subjected to the decoding process is performed. Since the decoded image of the plane is duplicated to reproduce the image, the decoding device for the multi-tone image can have a simpler structure and can be made more inexpensive.

【0033】[0033]

【発明の実施の形態】以下、本発明の好適な実施の形態
を、添付図面に基づいて詳細に説明する。なお、以下に
述べる実施の形態は、本発明の好適な実施の形態である
から、技術的に好ましい種々の限定が付されているが、
本発明の範囲は、以下の説明において特に本発明を限定
する旨の記載がない限り、これらの態様に限られるもの
ではない。
Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings. In addition, although the embodiment described below is a preferred embodiment of the present invention, various technically preferable limitations are added.
The scope of the present invention is not limited to these embodiments unless otherwise specified in the following description.

【0034】図1〜図5は、本発明の多階調画像の復号
装置の第1の実施の形態を示す図であり、本実施の形態
は、ビットプレーン単位に符号化された符号列から白黒
多階調画像を復号再生する際に、ビットプレーン毎の符
号終了時に、状態毎の登場回数の統計処理を行って、当
該状態毎の登場回数情報に基づいて符号画像の種類及び
特性等を判定し、該情報を元に画像出力時の最適な画像
処理を行うもので、請求項1に対応するものである。
1 to 5 are views showing a first embodiment of a multi-gradation image decoding apparatus of the present invention. This embodiment is based on a code string coded in bit plane units. When decoding and reproducing a black-and-white multi-gradation image, at the end of the code for each bit plane, statistical processing of the number of appearances for each state is performed, and the type and characteristics of the code image are determined based on the appearance number information for each state. The determination is made and the optimum image processing is performed at the time of image output based on the information, which corresponds to claim 1.

【0035】本実施の形態は、ファクシミリ装置に適用
したものであり、図1は、本発明の多階調画像の復号装
置の第1の実施の形態を適用した送信側のファクシミリ
装置1及び受信側のファクシミリ装置2の要部ブロック
図である。
The present embodiment is applied to a facsimile machine, and FIG. 1 shows a facsimile machine 1 on the transmission side and a receiving machine to which the first embodiment of the multi-gradation image decoding apparatus of the present invention is applied. It is a principal part block diagram of the facsimile apparatus 2 of the side.

【0036】図1において、送信側ファクシミリ装置1
は、画像読取部3、画像処理部4及び符号化部5等を備
え、受信側ファクシミリ装置2は、画像出力部6、画像
処理部7及び復号化部8等を備えている。なお、図1に
は図示しないが、送信側ファクシミリ装置1は、上記以
外に、画像メモリ、画像出力部、通信制御部及び復号化
部等を備え、受信側ファクシミリ装置2は、上記以外
に、画像メモリ、画像読取部、符号化部及び通信制御部
等を備えている。そして、送信側ファクシミリ装置1及
び受信側ファクシミリ装置2は、その通信制御部に回線
(伝送路)9が接続され、通信制御部により伝送路9を
介して画像データの送受信を行う。
In FIG. 1, the facsimile apparatus 1 on the transmitting side is shown.
Includes an image reading unit 3, an image processing unit 4, an encoding unit 5, and the like, and the receiving-side facsimile device 2 includes an image output unit 6, an image processing unit 7, a decoding unit 8, and the like. Although not shown in FIG. 1, in addition to the above, the transmission side facsimile apparatus 1 includes an image memory, an image output section, a communication control section, a decoding section, etc., and the reception side facsimile apparatus 2 includes An image memory, an image reading unit, an encoding unit, a communication control unit and the like are provided. Then, the transmission side facsimile apparatus 1 and the reception side facsimile apparatus 2 are connected to a line (transmission path) 9 to the communication control section thereof, and the communication control section transmits and receives image data through the transmission path 9.

【0037】まず、送信側ファクシミリ装置1について
説明すると、画像読取部3は、例えば、CCD(Charge
Coupled Device)を利用したイメージスキャナ等が利
用されており、白黒2値の画像の原稿だけでなく、白黒
多階調画像やカラーの多階調画像の原稿を走査して、原
稿の画像を所定の解像度で読み取る。画像読取部3は、
読み取った原稿の画像データを画像処理部4に出力す
る。
First, the transmission side facsimile apparatus 1 will be described. The image reading section 3 uses, for example, a CCD (Charge).
An image scanner using a Coupled Device) is used, and not only a binary image of a binary image, but also an original image of a monochrome multi-tone image or a color multi-tone image is scanned to determine an original image. Read at the resolution of. The image reading unit 3
The image data of the read document is output to the image processing unit 4.

【0038】画像処理部4は、例えば、2値画像におい
ては、解像度変換及びサイズ変換等を行い、カラー画像
を含めた多階調画像においては、色(色成分)変換、解
像度変換及びサイズ変換等を行う。
The image processing unit 4 performs, for example, resolution conversion and size conversion on a binary image, and color (color component) conversion, resolution conversion and size conversion on a multi-gradation image including a color image. And so on.

【0039】符号化部5は、JBIG方式で用いられて
いる算術符号化方式により、画像処理部4から入力され
る画像データを圧縮符号化して、通信制御部により伝送
路9を介して受信側ファクシミリ装置2に送信する。
The encoding unit 5 compression-encodes the image data input from the image processing unit 4 by the arithmetic encoding system used in the JBIG system, and the communication control unit receives the data via the transmission line 9 on the receiving side. It is transmitted to the facsimile device 2.

【0040】次に、受信側ファクシミリ装置2について
説明すると、画像出力部6は、例えば、電子写真式記録
装置が用いられ、2値画像を記録紙に記録出力するとと
もに、白黒多階調画像やカラーの多階調画像を所定の解
像度で記録紙に記録出力する。
Next, the receiving side facsimile apparatus 2 will be described. The image output section 6 uses, for example, an electrophotographic recording apparatus, which records and outputs a binary image on a recording sheet, and a black and white multi-tone image and A color multi-tone image is recorded and output on a recording paper at a predetermined resolution.

【0041】画像処理部7は、上記画像処理部4と同様
に、例えば、2値画像においては、解像度変換及びサイ
ズ変換等を行い、カラー画像を含めた多階調画像におい
ては、色(色成分)変換、解像度変換及びサイズ変換等
を行う。
Similar to the image processing unit 4, the image processing unit 7 performs resolution conversion and size conversion on a binary image, for example, and in a multi-gradation image including a color image, color (color Component conversion, resolution conversion, size conversion, etc. are performed.

【0042】復号化部8は、上記送信側符号化部5で符
号化された符号列を符号化部5の符号化方式と同じ符号
化方式により復号する。すなわち、復号化部8は、JB
IG方式で用いられている算術符号化方式により、図示
しない通信制御部を介して受信した符号化された画像デ
ータをJBIG方式により復号して、画像処理部7に出
力する。画像処理部7は、復号された画像に必要な画像
処理を施して、画像出力部6に出力し、画像出力部6
は、画像処理部7で画像処理された画像データに基づい
て、画像を記録紙に記録出力する。
The decoding section 8 decodes the code string coded by the transmission side coding section 5 by the same coding method as that of the coding section 5. That is, the decoding unit 8
By the arithmetic coding method used in the IG method, the coded image data received via the communication control unit (not shown) is decoded by the JBIG method and output to the image processing unit 7. The image processing unit 7 performs necessary image processing on the decoded image and outputs it to the image output unit 6, and the image output unit 6
Prints and outputs an image on a recording sheet based on the image data image-processed by the image processing unit 7.

【0043】次に、上記符号化部5及び復号化部8にお
ける符号化方式であるJBIG方式の算術符号化方式に
ついて、図2に基づいて、以下説明する。
Next, the JBIG arithmetic coding method, which is the coding method in the coding unit 5 and the decoding unit 8, will be described below with reference to FIG.

【0044】算術符号化方式においては、図2に示すよ
うに、一般に、符号化部5が、予測情報作成回路10と
算術符号化回路11を備え、復号化部8が、予測情報作
成回路12と算術復号化回路13を備えている。
In the arithmetic coding system, as shown in FIG. 2, the coding unit 5 generally includes a prediction information creating circuit 10 and an arithmetic coding circuit 11, and the decoding unit 8 includes a prediction information creating circuit 12. And an arithmetic decoding circuit 13.

【0045】符号化部5の予測情報作成回路(テンプレ
ートと呼ぶこともある)10は、符号化する画素と周囲
の画素との状況により情報源のマルコフ分離を行った予
測データ(予測情報)を作成し、算術符号化回路11に
出力する。
The prediction information generating circuit (also referred to as a template) 10 of the encoding unit 5 generates prediction data (prediction information) obtained by performing Markov separation of the information source according to the situation of the pixel to be encoded and surrounding pixels. It is created and output to the arithmetic coding circuit 11.

【0046】算術符号化回路11は、予測情報作成回路
10から入力される予測データに基づいて、予測データ
を動的に評価しながら符号化画素を符号化する。
The arithmetic coding circuit 11 codes the coded pixels while dynamically evaluating the prediction data based on the prediction data input from the prediction information creating circuit 10.

【0047】一方、復号化部8では、符号化部5と全く
逆の動作を行う。すなわち、予測情報作成回路12は、
入力される符号化データ(符号化された画像データ)
を、既に復号された画素で復号しようとする画素の周囲
の画素との状況により情報源のマルコフ分離を行って、
復号しようとする符号化データの予測データ(予測情
報)を作成して、算術復号化回路13に出力する。
On the other hand, the decoding section 8 performs an operation which is completely opposite to that of the encoding section 5. That is, the prediction information creation circuit 12
Input encoded data (encoded image data)
By performing Markov separation of the information source according to the situation with the pixels around the pixel to be decoded with the already decoded pixel,
Prediction data (prediction information) of encoded data to be decoded is created and output to the arithmetic decoding circuit 13.

【0048】算術復号化回路13は、予測情報作成回路
12から入力される予測データに基づいて予測データを
動的に評価しながら符号化データを復号する。
The arithmetic decoding circuit 13 decodes the coded data while dynamically evaluating the prediction data based on the prediction data input from the prediction information creating circuit 12.

【0049】この算術符号化方式について、図3に基づ
いてさらに詳しく説明すると、算術符号化方式では、図
3に示すように、[0,1]の数直線上の対応区間(2
進小数で、[0.0・・・0、0.1・・・1])を各
シンボルの生起確率に応じて不等長に分割していき、対
象シンボル系列を対応する部分区間に割り当て、再帰的
に分割を繰り返す。このようにして得られた区間内に含
まれる点の座標を、少なくとも他の区間と区別できる2
進小数で表現してそのまま符号とする。
This arithmetic coding system will be described in more detail with reference to FIG. 3. In the arithmetic coding system, as shown in FIG. 3, the corresponding section (2
In decimal, [0.0 ... 0, 0.1 ... 1]) is divided into unequal lengths according to the occurrence probabilities of each symbol, and the target symbol sequence is assigned to the corresponding partial section. , Recursively repeat division. The coordinates of the points included in the section thus obtained can be distinguished from at least other sections.
It is expressed as a decimal number and used as it is as a code.

【0050】シンボル系列’0100’を例に算術符号
化の概念を、図3に基づいて説明すると、まず、第1シ
ンボルの符号化時には、全区間が、’0’と’1’のシ
ンボルの生起確率の比に従って、A(0)とA(1)に
分割され、’0’の発生により区間A(0)が選択され
る。次に、第2シンボルの符号化の際には、その状態に
おける両シンボルの生起確率比によってA(0)がさら
に分割され、発生シンボル系列に対応する区間としてA
(01)が選択される。このような分割と選択の処理の
繰り返しにより符号化を行う。
The concept of arithmetic coding will be described with reference to FIG. 3 by taking the symbol sequence '0100' as an example. First, at the time of coding the first symbol, the entire section is composed of symbols of '0' and '1'. It is divided into A (0) and A (1) according to the ratio of the occurrence probabilities, and the section A (0) is selected by the occurrence of '0'. Next, at the time of encoding the second symbol, A (0) is further divided by the occurrence probability ratio of both symbols in that state, and A (0) is set as an interval corresponding to the generated symbol sequence.
(01) is selected. Encoding is performed by repeating such division and selection processing.

【0051】一方、復号化では、符号化と全く逆の処理
を行い、符号が示す2進小数を元にシンボルを再生す
る。この際、シンボルの符号化を行う際の数直線の幅が
重要であり、この数直線の幅が符号化開始時と復号化開
始時とで一致していないとシンボルを正確に再現できな
くなる。普通は、この数直線の幅を符号化側と復号化側
で「1」としている。
On the other hand, in the decoding, the processing which is completely opposite to that in the coding is performed, and the symbol is reproduced based on the binary decimal represented by the code. At this time, the width of the number line at the time of encoding the symbol is important, and if the width of the number line does not match at the start of encoding and at the start of decoding, the symbol cannot be accurately reproduced. Normally, the width of this number line is set to "1" on the encoding side and the decoding side.

【0052】上記算術符号化方式は、従来のランレング
ス符号化方式(MH法、MR法)よりは、一般的に、符
号化効率がよいものである。
The above-mentioned arithmetic coding system generally has higher coding efficiency than the conventional run-length coding system (MH method, MR method).

【0053】そして、受信側ファクシミリ装置2の復号
化部8は、図4に示すように構成されている。すなわ
ち、復号化部8は、ビットプレーン復号部20、画像作
成部21、出力処理部22、状態数統計部23及び画像
判定部24等を備えている。
The decoding unit 8 of the receiving side facsimile apparatus 2 is constructed as shown in FIG. That is, the decoding unit 8 includes a bit plane decoding unit 20, an image creation unit 21, an output processing unit 22, a state number statistic unit 23, an image determination unit 24, and the like.

【0054】ビットプレーン復号部20は、ビット精度
がnである入力画情報(入力画像データ)を最上位ビッ
トから順次n枚の2値画情報(ビットプレーン)に分解
して算術符号化方式により符号化された符号列から、順
次ビットプレーンの復号を行い、画像作成部21及び状
態数統計部23に出力する。このビットプレーン復号部
20でのビットプレーンの復号方法は、送信側ファクシ
ミリ装置1の符号化部5における符号化方式と同じ符号
化方式であり、算術符号化方式である。この符号列は、
図5に示すように、当該符号列の先頭に入力画像のビッ
ト情報を示すnの情報が付加され、それに続いてビット
プレーン毎の符号がn枚分並べられている。
The bit plane decoding unit 20 decomposes the input image information (input image data) having a bit precision of n into n pieces of binary image information (bit planes) sequentially from the most significant bit and uses the arithmetic coding method. Bit planes are sequentially decoded from the encoded code string and output to the image creating unit 21 and the number-of-states statistics unit 23. The bit plane decoding method in the bit plane decoding unit 20 is the same encoding method as the encoding method in the encoding unit 5 of the transmitting side facsimile apparatus 1 and is an arithmetic encoding method. This code string is
As shown in FIG. 5, n information indicating the bit information of the input image is added to the beginning of the code string, and subsequently n codes for each bit plane are arranged.

【0055】画像作成部(画像作成手段)21は、ビッ
トプレーン復号部20で再生されたビットプレーン単位
毎の画像を元に全体の画像を作成し、出力処理部22に
出力する。
The image creating section (image creating means) 21 creates an entire image based on the image for each bit plane unit reproduced by the bit plane decoding section 20, and outputs it to the output processing section 22.

【0056】状態数統計部(状態数統計手段)23は、
ビットプレーン復号部20での各ビットプレーンの復号
後の各状態毎の登場回数の統計処理を行い、当該統計結
果である統計情報を画像判定部24に出力する。
The state number statistic section (state number statistic means) 23 is
The bit plane decoding unit 20 performs statistical processing on the number of appearances in each state after decoding each bit plane, and outputs statistical information that is the statistical result to the image determination unit 24.

【0057】画像判定部(画像判定手段)24は、状態
数統計部23から入力される統計情報に基づいてビット
プレーン復号部20で復号された画像の種類や特性等を
判定し、その判定結果を出力処理部22に出力する。
The image determination unit (image determination means) 24 determines the type and characteristics of the image decoded by the bit plane decoding unit 20 based on the statistical information input from the state number statistics unit 23, and the determination result. Is output to the output processing unit 22.

【0058】出力処理部22は、画像作成部21で作成
された画像を画像判定部24から入力される判定結果に
基づいて、当該画像に最適で、かつ、画像出力部6の出
力特性に最適な画像処理、例えば、文字画像について
は、図9に示したようなγ曲線によってエッジ部分を強
調したり、スムージング処理による輪郭を滑らかにする
処理、また、写真画像については、図10に示したよう
なγ曲線を用いて、滑らかな階調を持たせたり、周囲画
素を利用した平滑化処理を行って、図1に示した画像処
理部7に出力する。画像処理部7は、上記解像度変換や
サイズ変換等を行って、画像出力部6に出力し、画像出
力部6は、画像処理部7から送られてくる画情報に基づ
いて記録紙に画像を記録出力する。
The output processing unit 22 is optimal for the image created by the image creating unit 21 based on the determination result input from the image determining unit 24 and for the output characteristics of the image output unit 6. Image processing, for example, for character images, the edge portion is emphasized by a γ curve as shown in FIG. 9, or the contour is smoothed by smoothing processing, and for photographic images, it is shown in FIG. Using such a γ curve, a smooth gradation is provided, or smoothing processing using surrounding pixels is performed and output to the image processing unit 7 shown in FIG. 1. The image processing unit 7 performs the above-described resolution conversion, size conversion, etc., and outputs it to the image output unit 6, and the image output unit 6 displays the image on the recording paper based on the image information sent from the image processing unit 7. Record and output.

【0059】次に、動作について説明すると、受信側フ
ァクシミリ装置2は、送信側ファクシミリ装置1から送
信されてくる符号列を受信すると、復号化部8で、復号
するとともに、当該復号した画像の種類や特性等に基づ
いて高画質な画像出力に適した画像処理を施した後、画
像処理部7で解像度変換やサイズ変換等の必要な画像処
理を行った後、画像出力部6により記録紙に記録出力す
る。
Next, the operation will be described. When the receiving side facsimile apparatus 2 receives the code string transmitted from the transmitting side facsimile apparatus 1, the decoding section 8 decodes the code string and the kind of the decoded image. After performing image processing suitable for high-quality image output based on the characteristics, characteristics, etc., the image processing unit 7 performs necessary image processing such as resolution conversion and size conversion, and then the image output unit 6 prints the recording paper. Record and output.

【0060】そして、復号化部8は、入力される符号列
をビットプレーン復号部20で、送信側ファクシミリ装
置1の符号化部5による符号化方式、すなわち、算術符
号化方式により復号・再生して、画像作成部21及び状
態数統計部23に出力する。すなわち、ビットプレーン
復号部20は、最上位ビットのビットプレーンから順次
ビットプレーン単位で復号して、1つのビットプレーン
の復号を完了すると、1つ下位のビットプレーンに対し
て同様の復号処理を行い、最終的には、最下位のビット
プレーンまで順次同様な復号を行うことで、全体の復号
を行う。
Then, the decoding section 8 decodes / reproduces the input code string by the bit plane decoding section 20 by the coding method by the coding section 5 of the transmitting side facsimile apparatus 1, that is, the arithmetic coding method. And outputs it to the image creation unit 21 and the number-of-states statistics unit 23. That is, the bit plane decoding unit 20 sequentially performs decoding in bit plane units from the bit plane of the most significant bit, and when the decoding of one bit plane is completed, the bit plane decoding unit 20 performs the same decoding process on the bit plane one level below. Finally, the entire decoding is performed by sequentially performing the same decoding up to the lowest bit plane.

【0061】ビットプレーン符号部20でビットプレー
ン1枚分の復号が完了すると、状態数統計部23が復号
後の各状態毎の登場回数を計数し、その計数情報を画像
判定部24に出力する。ここでいう状態とは、一般的
に、算術符号化方式で用いられるテンプレートによる情
報源分離された状態のことを指す。
When the bit plane coding unit 20 completes the decoding for one bit plane, the state number statistics unit 23 counts the number of appearances for each state after decoding and outputs the count information to the image determination unit 24. . The state here generally refers to a state in which information sources are separated by a template used in the arithmetic coding method.

【0062】画像判定部24は、状態数統計部23での
統計処理が完了し、統計情報が入力されると、当該統計
情報に基づいて、具体的には、登場回数の偏差や特定の
状態における登場回数の多さ等に基づいて、ビットプレ
ーン復号部20で復号された画像の種類や特性等を判定
する。なお、本出願人の実験によれば、一般的に、写真
画像においては、各状態毎の登場回数が平均的であり、
状態間でのバラツキが少ない。逆に、文字画像において
は、ある特定の状態における登場回数が多く、状態間で
のバラツキが大きい。また、文字画像においては、文字
部分と下地部分とに大きく分かれるため、それらを表す
特定の状態の登場回数が非常に多くなる。したがって、
これらの性質を利用することにより、写真画像のような
階調画像であるか、文字画像のような線画像であるかの
判断を行うことができる。例えば、状態毎の登場回数の
統計量に基づいて状態毎の登場回数のバラツキが大きい
場合や状態の登場する種類数が比較的少ない場合、ある
いは、その両者を満たす場合には、文字画像と判定する
ことができる。画像判定部24は、上記のような方法に
より画像の種類や特性等を判定すると、その判定結果を
出力処理部22に出力する。
When the statistical processing in the number-of-states statistic section 23 is completed and the statistical information is input, the image determination section 24, based on the statistical information, specifically, the deviation of the number of appearances and the specific state. The type, characteristics, etc. of the image decoded by the bit plane decoding unit 20 are determined based on the number of appearances in the. According to an experiment by the applicant, generally, in a photographic image, the number of appearances in each state is average,
There is little variation between states. On the contrary, in the character image, the number of appearances in a specific state is large, and the variation between states is large. Further, in the character image, the character portion and the background portion are largely divided, so that the number of appearances of the specific state representing them becomes very large. Therefore,
By utilizing these properties, it is possible to determine whether the image is a gradation image like a photographic image or a line image like a character image. For example, if there is a large variation in the number of appearances for each state based on the statistical value of the number of appearances for each state, or if the number of types in which a state appears is relatively small, or if both of them are satisfied, then it is determined as a character image. can do. When the image determination unit 24 determines the type and characteristics of the image by the method described above, the image determination unit 24 outputs the determination result to the output processing unit 22.

【0063】そして、上記ビットプレーン復号部20で
復号されたビットプレーン単位毎の画像は、画像作成部
21に出力され、画像作成部21は、ビットプレーン単
位の画像の合成を行って、全体の画像を作成して、出力
処理部22に出力する。出力処理部22は、画像作成部
21で作成された画像を画像判定部24から入力される
判定結果に基づいて、当該画像に最適で、かつ、画像出
力部6の出力特性に最適な画像処理を行って画像処理部
7に出力する。画像処理部7は、必要な画像処理を行っ
て、画像出力部6に出力し、画像出力部6は、画像処理
部7から送られてくる画情報に基づいて記録紙に画像を
記録出力する。
The image for each bit plane unit decoded by the bit plane decoding unit 20 is output to the image creating unit 21, and the image creating unit 21 synthesizes the image for each bit plane unit to generate the entire image. An image is created and output to the output processing unit 22. The output processing unit 22 performs image processing on the image created by the image creating unit 21 based on the determination result input from the image determining unit 24, which is optimal for the image and optimal for the output characteristics of the image output unit 6. And output to the image processing unit 7. The image processing unit 7 performs necessary image processing and outputs it to the image output unit 6, and the image output unit 6 records and outputs an image on a recording paper based on the image information sent from the image processing unit 7. .

【0064】このように、本実施の形態のファクシミリ
装置2によれば、JBIG方式による算術符号化で符号
化された符号列を復号した場合、中間調画像のように微
妙な階調表現が多い場合には、各状態における登場回数
が平均的で、状態間でのバラツキが少なく、逆に、文字
画像のように中間階調の画素が少なく高レベルあるいは
低レベルの階調の画素が多い場合には、ある特的の状態
における登場回数が多く、状態間でのバラツキが大きい
ことに着目して、ビットプレーン単位に符号化された符
号列から白黒多階調画像を復号再生する際に、ビットプ
レーン毎の復号終了時に、状態毎の登場回数の統計処理
を行って、当該状態毎の登場回数情報に基づいて復号画
像の種類及び特性等を判定し、当該判定結果に基づいて
画像出力に最適な画像処理を行っている。
As described above, according to the facsimile apparatus 2 of the present embodiment, when a code string encoded by the JBIG system arithmetic encoding is decoded, there are many delicate gradation expressions like a halftone image. In this case, the number of appearances in each state is average, there is little variation between the states, and conversely, there are few pixels in the middle gradation and many pixels in the high level or low level gradation, such as in a character image. In particular, the number of appearances in a particular state is large, and paying attention to the large variation between states, when decoding and reproducing a monochrome multi-tone image from a code string encoded in bit plane units, At the end of decoding for each bit plane, statistical processing of the number of appearances for each state is performed, the type and characteristics of the decoded image are determined based on the number-of-appearance information for each state, and the image is output based on the determination result. Optimal It is doing the image processing.

【0065】したがって、2値画像を復号することがで
きるとともに、白黒多階調画像を復号して、高画質の多
階調画像を出力することができる。
Therefore, it is possible to decode a binary image, decode a monochrome multi-tone image, and output a high-quality multi-tone image.

【0066】図6及び図7は、本発明の多階調画像の復
号装置の第2の実施の形態を示す図であり、本実施の形
態は、1画素の色成分がmビット、色精度がnビットで
表されるカラー画像がビットプレーン単位に符号化され
た符号列から当該カラー画像を復号再生する際に、最初
の色成分におけるビットプレーン毎の復号終了時に、各
状態毎の登場回数の統計処理を行って、当該状態毎の登
場回数情報に基づいて復号画像の種類及び特性等を判定
し、該判定結果を元に画像出力に最適な画像処理を行う
もので、請求項2に対応するものである。
6 and 7 are diagrams showing a second embodiment of the multi-gradation image decoding apparatus of the present invention. In this embodiment, the color component of one pixel is m bits, and the color accuracy is When a color image represented by n bits is decoded and reproduced from a code string encoded in bit plane units, the number of appearances in each state at the end of decoding for each bit plane in the first color component The statistical processing is performed to determine the type and characteristics of the decoded image based on the appearance count information for each state, and the optimal image processing for image output is performed based on the determination result. Corresponding.

【0067】本実施の形態は、上記第1の実施の形態と
同様のファクシミリ装置に適用したものである。
The present embodiment is applied to the same facsimile machine as the first embodiment.

【0068】図6において、復号部30は、ビットプレ
ーン復号部31、画像作成部32、色成分合成部33、
出力処理部34、状態数統計部35及び画像判定部36
等を備えている。
In FIG. 6, the decoding unit 30 includes a bit plane decoding unit 31, an image creating unit 32, a color component synthesizing unit 33,
Output processing unit 34, number-of-states statistics unit 35, and image determination unit 36
Etc. are provided.

【0069】ビットプレーン復号部31には、受信した
符号化されたカラー画情報が入力され、このカラーの符
号列は、色成分数がmで、ビット精度がnのカラー画像
をJBIG方式の算術符号化方式により、ビット順位で
m×n枚の2値ビットプレーンに分解して符号化された
符号列である。この符号列は、図7に示すように、符号
列の先頭に、入力画像の色成分数を示すmと、入力画像
のビット精度を示すnの情報が付加され、続いて、色成
分毎及びビットプレーン毎に符号が並んでいる。ビット
プレーン復号部31は、このビットプレーン単位の符号
列を各色成分毎に順次復号して、画像作成部32及び状
態数統計部35に出力する。このビットプレーン復号部
31でのビットプレーンの復号方法は、送信側ファクシ
ミリ装置1の符号化部5における符号化方式と同じ符号
化方式であり、算術符号化方式により復号する。
The received coded color image information is input to the bit plane decoding unit 31, and this color code string has a color component number of m and a bit precision of n is a color image of JBIG system. It is a code string that is decomposed and encoded into m × n binary bit planes in bit order by an encoding method. As shown in FIG. 7, this code string is added with m, which indicates the number of color components of the input image, and n, which indicates the bit precision of the input image, at the beginning of the code string. Codes are arranged for each bit plane. The bit plane decoding unit 31 sequentially decodes the code sequence in bit plane units for each color component, and outputs the code string to the image creating unit 32 and the state number statistic unit 35. The bit plane decoding method in the bit plane decoding unit 31 is the same encoding method as the encoding method in the encoding unit 5 of the transmitting side facsimile apparatus 1, and the decoding is performed by the arithmetic encoding method.

【0070】画像作成部32は、ビットプレーン復号部
31で再生されたビットプレーン単位毎の画像を元に色
成分毎に画像を作成し、色成分合成部33に出力する。
The image creating section 32 creates an image for each color component based on the image for each bit plane reproduced by the bit plane decoding section 31, and outputs the image to the color component synthesizing section 33.

【0071】色成分合成部33は、画像作成部32で色
成分毎に作成された画像から全体のカラー画像を作成
し、出力処理部34に出力する。
The color component synthesizing section 33 creates an entire color image from the image created by the image creating section 32 for each color component, and outputs the color image to the output processing section 34.

【0072】状態数統計部(状態数統計手段)35は、
ビットプレーン復号部31での各ビットプレーンの復号
後の各状態毎の登場回数の統計処理を行い、当該統計結
果である統計情報を画像判定部36に出力する。
The state number statistic section (state number statistic means) 35 is
The bit plane decoding unit 31 performs statistical processing on the number of appearances for each state after decoding each bit plane, and outputs statistical information that is the statistical result to the image determination unit 36.

【0073】画像判定部(画像判定手段)36は、状態
数統計部35から入力される統計情報に基づいてビット
プレーン復号部31で復号された画像の種類や特性等を
判定し、その判定結果を出力処理部34に出力する。
The image determination unit (image determination means) 36 determines the type and characteristics of the image decoded by the bit plane decoding unit 31 based on the statistical information input from the state number statistical unit 35, and the determination result Is output to the output processing unit 34.

【0074】出力処理部(出力処理手段)34は、色成
分合成部33で作成されたカラー画像を画像判定部36
から入力される判定結果に基づいて、当該画像に最適
で、かつ、画像出力部6の出力特性に最適な画像処理、
例えば、文字画像については、図9に示したようなγ曲
線によってエッジ部分を強調したり、スムージング処理
による輪郭を滑らかにする処理、また、写真画像につい
ては、図10に示したようなγ曲線を用いて、滑らかな
階調を持たせたり、周囲画素を利用した平滑化処理を行
って出力する。
The output processing section (output processing means) 34 determines the color image created by the color component synthesizing section 33 from the image determining section 36.
Image processing that is optimal for the image and optimal for the output characteristics of the image output unit 6 based on the determination result input from
For example, for a character image, the edge portion is emphasized by a γ curve as shown in FIG. 9, or the contour is smoothed by a smoothing process, and for a photographic image, a γ curve as shown in FIG. Is used to provide a smooth gradation, and smoothing processing using surrounding pixels is performed and output.

【0075】次に、動作について説明すると、受信側フ
ァクシミリ装置2は、送信側ファクシミリ装置1から送
信されてくる符号列を受信すると、復号化部30で、復
号するとともに、当該復号した画像の種類や特性等に適
した画像処理を施した後、画像処理部7で解像度変換や
サイズ変換等の必要な画像処理を行った後、画像出力部
6により記録紙に記録出力する。
Next, the operation will be described. When the receiving side facsimile device 2 receives the code string transmitted from the transmitting side facsimile device 1, the receiving side facsimile device 2 decodes the code string and at the same time, the kind of the decoded image. The image processing unit 7 performs necessary image processing such as resolution conversion and size conversion after performing image processing suitable for the characteristics, characteristics, and the like, and then the image output unit 6 records and outputs the recording paper.

【0076】そして、復号化部30は、入力される符号
列を各色成分毎にビットプレーン復号部31で、送信側
ファクシミリ装置1の符号部5による符号化方式、すな
わち、算術符号化方式により復号・再生して、画像作成
部32及び状態数統計部35に出力する。すなわち、ビ
ットプレーン復号部31は、色成分毎に上位ビットのビ
ットプレーンから順次ビットプレーン単位で復号して、
最初の色成分の1つのビットプレーンの復号を完了する
と、1つ下位のビットプレーンに対して同様の復号処理
を行い、最終的には、最下位のビットプレーンまで順次
同様な復号を行って、次の色成分についても同様の処理
を行うことで、全体の復号を行う。
Then, the decoding section 30 decodes the input code string for each color component by the bit plane decoding section 31 by the coding method of the coding section 5 of the transmitting side facsimile apparatus 1, that is, the arithmetic coding method. -Reproduce and output to the image creation unit 32 and the number-of-states statistics unit 35. That is, the bit plane decoding unit 31 sequentially decodes the bit planes of the upper bits for each color component in bit plane units,
When the decoding of one bit plane of the first color component is completed, the same decoding process is performed on the bit plane one lower, and finally, the same decoding is sequentially performed up to the lowest bit plane, By performing the same process for the next color component, the entire decoding is performed.

【0077】ビットプレーン符号部31で、最初の色成
分のビットプレーン1枚分の復号が完了すると、状態数
統計部31が復号後の各状態毎の登場回数を計数し、そ
の計数情報を画像判定部36に出力する。
When the bit plane encoding unit 31 completes the decoding of one bit plane of the first color component, the number-of-states statistics unit 31 counts the number of appearances for each state after decoding, and the count information is displayed as an image. It outputs to the determination unit 36.

【0078】画像判定部36は、状態数統計部35での
統計処理が完了し、統計情報が入力されると、当該統計
情報に基づいて、ビットプレーン復号部31で復号され
た画像の種類や特性等を判定し、その判定結果を出力処
理部34に出力する。
When the statistical processing in the number-of-states statistics section 35 is completed and the statistical information is input, the image determination section 36 receives the statistical information and the type of the image decoded by the bit plane decoding section 31 and the like. The characteristics and the like are determined, and the determination result is output to the output processing unit 34.

【0079】そして、上記ビットプレーン復号部31で
復号されたビットプレーン単位毎の画像は、画像作成部
32に出力され、画像作成部32は、色成分毎にビット
プレーン単位の画像の合成を行って、色成分毎の画像を
作成し、色成分合成部33に出力する。色成分合成部3
3は、画像作成部32から入力される色成分毎の画像を
合成して、カラー画像を作成し、出力処理部34に出力
する。
The image for each bit plane unit decoded by the bit plane decoding unit 31 is output to the image forming unit 32, and the image forming unit 32 synthesizes the image for each color component on a bit plane unit basis. Then, an image for each color component is created and output to the color component combining unit 33. Color component synthesizer 3
3 synthesizes the images for each color component input from the image creating unit 32 to create a color image, and outputs the color image to the output processing unit 34.

【0080】出力処理部34は、色成分合成部33で作
成されたカラー画像を画像判定部36から入力される判
定結果に基づいて、当該カラー画像に最適で、かつ、画
像出力部6の出力特性に最適な画像処理を行って、画像
処理部7に出力する。画像処理部7は、上記解像度変換
やサイズ変換等を行って、画像出力部6に出力し、画像
出力部6は、画像処理部7から送られてくるカラー画情
報に基づいて記録紙にカラー画像を記録出力する。
The output processing unit 34 is optimal for the color image created by the color component synthesizing unit 33 based on the determination result input from the image determining unit 36, and outputs the image from the image output unit 6. Image processing suitable for the characteristics is performed and output to the image processing unit 7. The image processing unit 7 performs the above-mentioned resolution conversion, size conversion, etc., and outputs the result to the image output unit 6, and the image output unit 6 colors the recording paper based on the color image information sent from the image processing unit 7. Record and output the image.

【0081】このように、本実施の形態のファクシミリ
装置2によれば、JBIG方式による算術符号化で符号
化されたカラー画像の符号列を復号した場合、中間調画
像のように微妙な階調表現が多い場合には、各状態にお
ける登場回数が平均的で、状態間でのバラツキが少な
く、逆に、文字画像のように中間階調の画素が少なく高
レベルあるいは低レベルの階調の画素が多い場合には、
ある特的の状態における登場回数が多く、状態間でのバ
ラツキが大きいことに着目して、ビットプレーン単位に
符号化された符号列からカラー多階調画像を復号再生す
る際に、ビットプレーン毎の復号終了時に、状態毎の登
場回数の統計処理を行って、当該状態毎の登場回数情報
に基づいてカラー画像の種類及び特性等を判定し、該統
計情報に基づいてカラー画像出力時の最適な画像処理を
行っている。
As described above, according to the facsimile apparatus 2 of the present embodiment, when the code string of the color image coded by the arithmetic coding by the JBIG system is decoded, the gradation is delicate like a halftone image. When there are many expressions, the number of appearances in each state is average, there is little variation between the states, and conversely, there are few pixels with intermediate gradations such as character images and pixels with high or low level gradations. If there are many
Paying attention to the large number of appearances in a particular state and the large variation between states, when decoding and reproducing a color multi-gradation image from a code string encoded in bit plane units, At the end of decoding, the number of appearances for each state is statistically processed, the type and characteristics of the color image are determined based on the number of appearances information for each state, and the optimum for color image output based on the statistical information. Image processing.

【0082】したがって、2値画像を復号化することが
できるとともに、カラー多階調画像を復号し、高画質出
力に適した画像処理を行って、高画質のカラー画像を出
力することができる。
Therefore, it is possible to decode a binary image, decode a color multi-gradation image, perform image processing suitable for high quality output, and output a high quality color image.

【0083】図8は、本発明の多階調画像の復号装置の
第3の実施の形態を示す図であり、本実施の形態は、各
色毎にビットプレーン復号部と画像作成部を設けて、処
理速度の高速化を図ったものである。
FIG. 8 is a diagram showing a third embodiment of a multi-gradation image decoding apparatus of the present invention. In this embodiment, a bit plane decoding unit and an image creating unit are provided for each color. It is intended to increase the processing speed.

【0084】本実施の形態は、上記第2の実施の形態と
同様のファクシミリ装置に適用したものであり、本実施
の形態の説明において、上記図6と同様の構成部分に
は、同一の符号を付して、その詳細な説明を省略する。
This embodiment is applied to the same facsimile machine as that of the second embodiment, and in the description of this embodiment, the same reference numerals are given to the same components as those in FIG. Will be attached and detailed description thereof will be omitted.

【0085】図8において、復号化部40は、符号分解
部41、ビットプレーン復号部31a、31b、31
c、画像作成部32a、32b、32c、色成分合成部
33、出力処理部34、状態数統計部35及び画像判定
部36等を備えている。
In FIG. 8, the decoding unit 40 includes a code decomposing unit 41 and bit plane decoding units 31a, 31b and 31.
c, image creation units 32a, 32b, 32c, a color component synthesis unit 33, an output processing unit 34, a state number statistic unit 35, an image determination unit 36, and the like.

【0086】符号分解部41は、入力される符号列を色
成分毎の符号列に分解し、分解した各色成分毎の符号列
をそれぞれビットプレーン符号部31a、31b、31
cに出力する。
The code decomposition unit 41 decomposes the input code string into code strings for each color component, and the decomposed code strings for each color component are respectively bit-plane code units 31a, 31b, 31.
output to c.

【0087】ビットプレーン復号部31a、31b、3
1cは、上記第2の実施の形態のビットプレーン復号部
31と同様であり、本実施の形態では、入力される色成
分の数だけ設けられている。すなわち、ビットプレーン
復号部31aは、符号分解部41で分解化された最初の
色成分のビットプレーン単位の符号列を順次復号して、
画像作成部32a及び状態数統計部35に出力する。そ
して、ビットプレーン復号部31b及びビットプレーン
復号部31cには、状態数統計部35は接続されておら
ず、画像作成部32b、32cのみが接続されている。
したがって、ビットプレーン復号作成部31bは、次の
色成分のビットプレーン単位の符号列を順次復号して、
画像作成部32bに出力し、ビットプレーン復号部31
cは、さらに次の色成分のビットプレーン単位の符号列
を復号して、画像作成部32cに出力する。
Bit plane decoding units 31a, 31b, 3
1c is the same as the bit plane decoding unit 31 of the second embodiment, and in this embodiment, 1c is provided as many as the number of input color components. That is, the bit plane decoding unit 31a sequentially decodes the bit line unit code sequence of the first color component decomposed by the code decomposition unit 41,
It is output to the image creating unit 32a and the number-of-states statistics unit 35. Then, the state number statistic unit 35 is not connected to the bit plane decoding unit 31b and the bit plane decoding unit 31c, but only the image creating units 32b and 32c are connected.
Therefore, the bit plane decoding creation unit 31b sequentially decodes the bit line unit code string of the next color component,
The image is output to the image creation unit 32b, and the bit plane decoding unit 31 is output.
The c further decodes the code string of the next color component in bit plane units and outputs the code string to the image creating unit 32c.

【0088】画像作成部32a、32b、32cは、上
記第2の実施の形態の画像作成部32と同様であり、本
実施の形態では、入力される色成分の数だけ設けられて
いる。すなわち、画像作成部32aは、ビットプレーン
復号部31aで再生されたビットプレーン単位毎の画像
を元に当該色成分の全体の画像を作成し、色成分合成部
33に出力する。画像作成部32bは、ビットプレーン
復号部31bで再生されたビットプレーン単位毎の画像
を元に当該色成分の全体の画像を作成して、色成分合成
部33に出力し、画像作成部32cは、ビットプレーン
復号部31cで再生されたビットプレーン単位毎の画像
を元に当該色成分の全体の画像を作成して、色成分合成
部33に出力する。
The image creating sections 32a, 32b, 32c are the same as the image creating section 32 of the second embodiment, and in this embodiment, the number of input color components is provided. That is, the image creating unit 32a creates an entire image of the color component based on the image for each bit plane unit reproduced by the bit plane decoding unit 31a, and outputs the image to the color component synthesizing unit 33. The image creating unit 32b creates an entire image of the color component based on the image for each bit plane unit reproduced by the bit plane decoding unit 31b, and outputs the image to the color component synthesizing unit 33. An entire image of the color component is created based on the image for each bit plane unit reproduced by the bit plane decoding unit 31c and output to the color component synthesizing unit 33.

【0089】色成分合成部33は、画像作成部32a、
32b、32cで色成分毎に作成された画像から全体の
カラー画像を作成し、出力処理部34に出力する。
The color component synthesizing section 33 includes an image creating section 32a,
An entire color image is created from the images created for each color component in 32b and 32c and output to the output processing unit 34.

【0090】状態数統計部35は、ビットプレーン復号
部31aでの各ビットプレーンの復号後の各状態毎の登
場回数の統計処理を行い、当該統計結果である統計情報
を画像判定部36に出力する。画像判定部36は、上記
第2の実施の形態と同様に、状態数統計部35から入力
される統計情報に基づいて続いてビットプレーン復号部
31で復号された画像の種類や特性等を判定し、その判
定結果を出力処理部34に出力する。出力処理部34
は、上記同様に、色成分合成部33で作成されたカラー
画像を画像判定部36から入力される判定結果に基づい
て、当該画像に最適で、かつ、画像出力部6の出力特性
に最適な画像処理を行って出力する。
The number-of-states statistics unit 35 performs statistical processing of the number of appearances for each state after decoding each bit plane in the bit plane decoding unit 31a, and outputs statistical information as the statistical result to the image determination unit 36. To do. The image determination unit 36 determines the type and characteristics of the image subsequently decoded by the bit plane decoding unit 31 based on the statistical information input from the state number statistical unit 35, as in the second embodiment. Then, the determination result is output to the output processing unit 34. Output processing unit 34
Is similar to the above, the color image created by the color component synthesizing unit 33 is optimal for the image based on the determination result input from the image determining unit 36 and the output characteristic of the image output unit 6. Performs image processing and outputs.

【0091】したがって、本実施の形態によれば、カラ
ーの多階調画像を各色成分毎に、ビットプレーン単位に
符号化された符号列からカラー画像を復号再生する際
に、最初の色成分におけるビットプレーン毎の復号終了
時に、各状態毎の登場回数の統計処理を行って、当該状
態毎の登場回数情報に基づいて符号画像の種類及び特性
等を判定し、当該判定結果を元に画像出力に最適な画像
処理を行うことができる。その結果、2値画像を復号化
することができるとともに、カラー多階調画像を高画質
で出力することができる。
Therefore, according to the present embodiment, when the color multi-gradation image is decoded and reproduced for each color component from the code string coded in bit plane units, the first color component At the end of decoding for each bit plane, statistical processing of the number of appearances for each state is performed, the type and characteristics of the code image are determined based on the number of appearances information for each state, and the image is output based on the determination result. Optimal image processing can be performed. As a result, the binary image can be decoded and the color multi-gradation image can be output with high image quality.

【0092】上記各実施の形態において、上述のよう
に、一般に、写真画像においては、各状態毎の登場回数
にあまり差がなく、登場する状態の種類数が多い。逆
に、文字画像においては、特定の状態の登場回数が多く
なり、登場する状態の種類が少ない。そこで、上記各実
施の形態においては、状態毎の登場回数の統計量に基づ
いて状態毎の登場回数のバラツキが大きい場合や状態の
登場する種類数が比較的少ない場合、あるいは、その両
者を満たす場合には、文字画像と判定している。
In each of the above embodiments, as described above, generally, in photographic images, there is not much difference in the number of appearances in each state, and the number of types of states that appear is large. On the other hand, in a character image, the number of appearances of a particular state is large, and the types of states that appear are small. Therefore, in each of the above-described embodiments, when the variation in the number of appearances for each state is large based on the statistical value of the number of appearances for each state, or when the number of types in which a state appears is relatively small, or both are satisfied. In this case, it is determined to be a character image.

【0093】しかし、画像の種類によって、特定の状態
の登場回数が著しく多くなることを利用して、当該特定
の状態の登場回数のみを状態数統計部23、35で統計
処理し、画像判定部24、36で画像の種類や特性等の
判定を行うようにすると、状態数統計部23、35及び
画像判定部24、36の構成を簡単なものとすることが
でき、復号化部8、30、40、ひいてはファクシミリ
装置2を安価なものとすることができる。
However, utilizing the fact that the number of appearances of a particular state increases remarkably depending on the type of image, only the number of appearances of the particular state is statistically processed by the state number statistic units 23 and 35, and the image determination unit If the types and characteristics of images are determined by 24 and 36, the configurations of the number-of-states statistics units 23 and 35 and the image determination units 24 and 36 can be simplified, and the decoding units 8 and 30 can be performed. , 40, and thus the facsimile device 2 can be made inexpensive.

【0094】また、文字画像では、文字部分と下地部分
とに大きく分かれるため、それらを表す状態の登場回数
が多くなり、これらの特定の状態の登場回数のみを状態
数統計部23、35で統計処理し、画像判定部24、3
6で画像の種類や特性等の判定を行うようにすると、状
態数統計部23、35及び符号化判定部24、36をよ
り簡単構成のものとすることができ、復号化部8、3
0、40、ひいてはファクシミリ装置2をより安価なも
のとすることができる。
Further, since the character image is largely divided into the character portion and the background portion, the number of appearances of the states representing them increases, and only the appearance number of these specific states is statistically calculated by the state number statistic units 23 and 35. Image processing unit 24, 3
If the type and characteristics of the image are determined in 6, the state number statistical units 23 and 35 and the encoding determination units 24 and 36 can be made simpler, and the decoding units 8 and 3 can be configured.
It is possible to make the 0, 40, and thus the facsimile device 2 more inexpensive.

【0095】さらに、文字画像の場合、最初に符号化さ
れる最上位ビットで構成されるビットプレーンにおいて
のみ、文字画像としての特徴のある状態のみの登場回数
の統計処理を状態数統計部23、35で行って、画像判
定部24、36で、当該登場回数の出現確率に基づいて
画像の種類や特性等の判定を行うようにすると、状態数
統計部23、35及び画像判定部24、36をより一層
簡単構成のものとすることができ、復号化部8、30、
40、ひいてはファクシミリ装置2をより一層安価なも
のとすることができる。
Further, in the case of a character image, the statistical processing of the number of appearances of only the characteristic states of the character image is performed only in the bit plane formed by the most significant bit to be encoded first. 35, and the image determination units 24 and 36 determine the type and characteristics of the image based on the appearance probability of the number of appearances, the state number statistical units 23 and 35 and the image determination units 24 and 36. Can be made even simpler, and the decoding units 8, 30,
40, and thus the facsimile apparatus 2 can be made even cheaper.

【0096】また、文字画像と判定した場合に、下位の
ビットプレーンに対する復号を行うことなく、下位のビ
ットプレーンの画像として最上位のビットプレーンの復
号画像を複製するようにすると、画像の再生処理の処理
速度を大幅に向上させることができる。
If it is determined that the image is a character image, the decoded image of the highest bit plane is duplicated as the image of the lower bit plane without decoding the lower bit plane. The processing speed of can be greatly improved.

【0097】以上、本発明者によってなされた発明を好
適な実施の形態に基づき具体的に説明したが、本発明は
上記のものに限定されるものではなく、その要旨を逸脱
しない範囲で種々変更可能であることはいうまでもな
い。
Although the invention made by the present inventor has been specifically described based on the preferred embodiments, the present invention is not limited to the above, and various modifications can be made without departing from the gist thereof. It goes without saying that it is possible.

【0098】[0098]

【発明の効果】請求項1記載の発明の多階調画像の復号
装置によれば、ビットプレーン単位に符号化された符号
列から白黒多階調画像を復号再生する際に、ビットプレ
ーン毎の符号終了時に、状態毎の登場回数の統計処理を
行って、当該状態毎の登場回数情報に基づいて復号画像
の種類及び特性等を判定し、当該判定結果を元に画像出
力時の最適な画像処理を行うことができ、2値画像を復
号することができるとともに、白黒多階調画像を高画質
で出力することができる。
According to the multi-gradation image decoding device of the first aspect of the present invention, when decoding a monochrome multi-gradation image from a code string coded in bit plane units and reproducing the same, At the end of the code, statistical processing of the number of appearances for each state is performed, and the type and characteristics of the decoded image are determined based on the number of appearances information for each state, and the optimal image at the time of image output based on the determination result. Processing can be performed, a binary image can be decoded, and a monochrome multi-tone image can be output with high image quality.

【0099】請求項2記載の発明の多階調画像の復号装
置によれば、ビットプレーン単位に符号化された符号列
からカラー画像を復号再生する際に、最初の色成分にお
けるビットプレーン毎の復号終了時に、各状態毎の登場
回数の統計処理を行って、当該状態毎の登場回数情報に
基づいて復号画像の種類及び特性等を判定し、該判定結
果を元に画像出力時の最適な画像処理を行うことがで
き、2値画像を復号することができるとともに、カラー
多階調画像を高画質で出力することができる。
According to the multi-gradation image decoding device of the second aspect of the invention, when decoding and reproducing a color image from a code string coded in bit plane units, each bit plane in the first color component is reproduced. At the end of decoding, statistical processing of the number of appearances for each state is performed, and the type and characteristics of the decoded image are determined based on the number of appearances information for each state. Image processing can be performed, a binary image can be decoded, and a color multi-tone image can be output with high image quality.

【0100】請求項3記載の発明の多階調画像の復号装
置によれば、特定の状態のみの登場回数の統計処理のみ
の統計処理を行って、当該統計情報に基づいて復号画像
の種類及び特性等を判定することができ、状態数統計手
段及び画像判定手段を簡単な構造のものとすることがで
きる。その結果、高品質な画像出力を行うことのできる
多階調画像の復号装置を簡単で、かつ、安価なものとす
ることができる。
According to the multi-gradation image decoding apparatus of the third aspect of the present invention, the statistical processing of only the statistical processing of the number of appearances of only a specific state is performed, and the type of the decoded image and the decoded image are calculated based on the statistical information. The characteristics and the like can be determined, and the number-of-states statistical means and the image determination means can have a simple structure. As a result, a multi-gradation image decoding device capable of outputting a high-quality image can be made simple and inexpensive.

【0101】請求項4記載の発明の多階調画像の復号装
置によれば、文字画像として特徴のある状態のみの登場
回数の統計処理のみに基づいて、濃度の高い文字画像や
濃度の低い下地画像を適切に判定して、文字画像である
か否かを判定することができ、高品質な画像出力を行う
ことのできる多階調画像の復号装置を一層簡単な構造
で、かつ、より安価なものとすることができる。
According to the multi-gradation image decoding device of the fourth aspect of the present invention, the character image having a high density and the background having a low density are based on only the statistical processing of the number of appearances only in the characteristic state of the character image. A multi-gradation image decoding device capable of appropriately determining an image to determine whether or not it is a character image and capable of outputting a high-quality image has a simpler structure and is less expensive. It can be anything.

【0102】請求項5記載の発明の多階調画像の復号装
置によれば、最初に復号される最上位ビットプレーンの
みについて、文字画像において所定の特徴ある状態のみ
の登場回数の統計処理を行ない、当該文字画像において
特徴ある状態の登場回数に基づいて文字画像であるか否
かを判定することができ、高品質な画像出力を行うこと
のできる多階調画像の復号装置をより一層簡単な構造
で、かつ、より一層安価なものとすることができる。
According to the multi-gradation image decoding apparatus of the fifth aspect of the present invention, only the most significant bit plane to be decoded first is subjected to the statistical processing of the number of appearances only in a predetermined characteristic state in the character image. , It is possible to determine whether or not the character image is a character image based on the number of appearances of a characteristic state in the character image, and a simpler multi-gradation image decoding device capable of performing high-quality image output. The structure can be made more inexpensive.

【0103】請求項6記載の発明の多階調画像の復号装
置によれば、上位ビットプレーンで文字画像であると判
定すると、続いて行なわれる下位のビットプレーンに対
する復号処理を行なわず、復号処理を行なわなかったビ
ットプレーンについて、最上位のビットプレーンの復号
画像を複製して画像を再生するので、多階調画像の復号
装置をより一層簡単な構造で、かつ、より一層安価なも
のとすることができる。
According to the multi-gradation image decoding apparatus of the sixth aspect of the present invention, when it is determined that the upper bit plane is a character image, the decoding process for the lower bit plane that is subsequently performed is not performed, and the decoding process is performed. For the bit planes that have not been subjected to the above, the decoded image of the highest bit plane is duplicated to reproduce the image, so that the decoding device for the multi-gradation image has a simpler structure and is more inexpensive. be able to.

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

【図1】本発明の多階調画像の復号装置の第1の実施の
形態を適用した送信側及び受信側ファクシミリ装置の要
部ブロック構成図。
FIG. 1 is a block diagram of a main part of a transmission side and reception side facsimile apparatus to which a first embodiment of a multi-tone image decoding apparatus of the present invention is applied.

【図2】図1の符号化部及び復号化部の算術符号化方式
の一般的なブロック構成図。
FIG. 2 is a general block configuration diagram of an arithmetic coding system of an encoding unit and a decoding unit in FIG.

【図3】算術符号化方式による符号化処理の説明図。FIG. 3 is an explanatory diagram of encoding processing by an arithmetic encoding method.

【図4】図1の復号化部の詳細なブロック構成図。FIG. 4 is a detailed block configuration diagram of a decoding unit in FIG.

【図5】図4の復号化部に入力される符号列の一例を示
す図。
5 is a diagram showing an example of a code string input to the decoding unit in FIG.

【図6】本発明の多階調画像の復号装置の第2の実施の
形態を適用したファクシミリ装置の復号化部のブロック
構成図。
FIG. 6 is a block configuration diagram of a decoding unit of a facsimile apparatus to which a second embodiment of a multi-tone image decoding apparatus of the present invention is applied.

【図7】図6の復号化部に入力される符号列の一例を示
す図。
7 is a diagram showing an example of a code string input to the decoding unit in FIG.

【図8】本発明の多階調画像の復号装置の第3の実施の
形態を適用したファクシミリ装置の復号化部のブロック
構成図。
FIG. 8 is a block configuration diagram of a decoding unit of a facsimile device to which a third embodiment of a multi-tone image decoding device of the present invention has been applied.

【図9】文字画像に対して画像処理する際のγ曲線の一
例を示す図。
FIG. 9 is a diagram showing an example of a γ curve when performing image processing on a character image.

【図10】写真画像に対して画像処理する際のγ曲線の
一例を示す図。
FIG. 10 is a diagram showing an example of a γ curve when performing image processing on a photographic image.

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

1 送信側ファクシミリ装置 2 受信側ファクシミリ装置 3 画像読取部 4、7 画像処理部 5 符号化部 6 画像出力部 8 復号化部 9 伝送部 10、12 予測情報作成回路 11 算術符号化回路 13 算術復号化回路 20、31、31a〜31c ビットプレーン復号部 21、32、32a〜32c 画像作成部 22、34 出力処理部 23、35 状態数統計部 24、36 画像判定部 33 色成分合成部 41 符号分解部 1 Facsimile device on the sending side 2 Facsimile device on the receiving side 3 Image reading unit 4, 7 Image processing unit 5 Encoding unit 6 Image output unit 8 Decoding unit 9 Transmission unit 10, 12 Prediction information creating circuit 11 Arithmetic encoding circuit 13 Arithmetic decoding Decoding circuit 20, 31, 31a to 31c Bit plane decoding unit 21, 32, 32a to 32c Image creation unit 22, 34 Output processing unit 23, 35 State number statistic unit 24, 36 Image determination unit 33 Color component synthesis unit 41 Code decomposition Department

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】1画素nビットで表される白黒多階調画像
をビット順位毎にn枚のビットプレーンに分解して各ビ
ットプレーン単位毎に符号化された符号列から順次ビッ
トプレーン単位に復号して画情報の再生を行うビットプ
レーン復号手段と、前記ビットプレーン復号手段での復
号後における状態毎の登場回数の統計処理を行う状態数
統計手段と、前記状態数統計手段の統計情報に基づいて
復号画像の種類及び特性等を判定する画像判定手段と、
前記ビットプレーン復号手段で再生された前記ビットプ
レーン毎の画情報を元に全体の画像を作成する画像作成
手段と、前記画像判定手段の判定結果に基づいて前記画
像作成手段の作成した前記画像に高画質の画像出力を行
うための所定の画像処理を行なう出力処理手段と、を備
えたことを特徴とする多階調画像の復号装置。
1. A black-and-white multi-tone image represented by n bits per pixel is decomposed into n bit planes for each bit order, and a code string encoded for each bit plane unit is sequentially arranged for each bit plane unit. Bit plane decoding means for decoding and reproducing image information, state number statistical means for performing statistical processing of the number of appearances for each state after decoding in the bit plane decoding means, and statistical information for the state number statistical means Image determination means for determining the type and characteristics of the decoded image based on
An image creating unit that creates an entire image based on the image information for each bit plane reproduced by the bit plane decoding unit, and an image created by the image creating unit based on the determination result of the image determining unit. A multi-gradation image decoding device, comprising: an output processing unit that performs a predetermined image process for outputting a high-quality image.
【請求項2】1画素の色成分がmビット、色精度がnビ
ットで表されるカラー画像を、m×n枚のビットプレー
ンに分解して各ビットプレーン単位毎に符号化された符
号列から順次前記ビットプレーン単位に復号して画情報
の再生を行なうビットプレーン復号手段と、最初の色成
分の復号時に、前記ビットプレーン復号手段による復号
後における各状態毎の登場回数の統計処理を行なう状態
数統計手段と、前記状態数統計手段の統計情報に基づい
て復号画像の種類及び特性等を判定する画像判定手段
と、前記ビットプレーン復号手段で再生された前記ビッ
トプレーン毎の画情報を元にm個の色成分毎の画像を作
成する画像作成手段と、前記画像作成手段で作成された
色成分毎の画像を元に全体のカラー画像を作成する色成
分合成手段と、前記画像判定手段の判定結果に基づいて
前記色成分合成手段の作成した前記カラー画像に高画質
の画像出力を行うための所定の画像処理を行なう出力処
理手段と、を備えたことを特徴とする多階調画像の復号
装置。
2. A code string obtained by decomposing a color image in which the color component of one pixel is m bits and the color accuracy is n bits into m × n bit planes and encoding for each bit plane unit. From the bit plane decoding means for sequentially decoding the image information in units of the bit planes, and at the time of decoding the first color component, statistical processing of the number of appearances for each state after decoding by the bit plane decoding means is performed. Based on the number-of-states statistics means, an image determination means for determining the type and characteristics of the decoded image based on the statistical information of the number-of-states statistics means, and the image information for each bit plane reproduced by the bit plane decoding means. An image creating means for creating an image for each of m color components; a color component combining means for creating an entire color image based on the image for each color component created by the image creating means; Output processing means for performing a predetermined image processing for outputting a high quality image to the color image created by the color component synthesizing means based on the determination result of the image determining means. A gradation image decoding device.
【請求項3】前記状態数統計手段は、ある特定の状態の
みの登場回数の統計処理を行ない、前記画像判定手段
は、前記特定の状態における登場回数情報から前記画像
の種類及び特性等を判定することを特徴とする請求項1
または請求項2記載の多階調画像の復号装置。
3. The number-of-states statistical means performs statistical processing on the number of appearances of only a certain specific state, and the image determination means determines the type and characteristics of the image from information of the number of appearances of the certain specific state. Claim 1 characterized by the above.
Alternatively, the multi-tone image decoding device according to claim 2.
【請求項4】前記状態数統計手段は、文字画像において
所定の特徴ある状態のみの登場回数の統計処理を行な
い、前記画像判定手段は、前記状態数統計手段の統計情
報に基づいて文字画像であるか否かを判定することを特
徴とする請求項3記載の多階調画像の復号装置。
4. The number-of-states statistical means performs a statistical process of the number of appearances of only a state having a predetermined characteristic in a character image, and the image determination means is a character image based on the statistical information of the number-of-states statistical means. 4. The multi-gradation image decoding device according to claim 3, wherein it is determined whether or not there is.
【請求項5】前記状態数統計手段は、前記最初に復号さ
れる最上位ビットプレーンにおいてのみ、前記文字画像
において特徴ある状態のみの登場回数の統計処理を行な
い、前記画像判定手段は、前記状態数統計手段の統計情
報に基づいて文字画像であるか否かを判定することを特
徴とする請求項4記載の多階調画像の復号装置。
5. The number-of-states statistic means statistically processes the number of appearances of only characteristic states in the character image only in the most significant bit plane to be decoded first, and the image determination means determines the state. 5. The multi-gradation image decoding device according to claim 4, wherein it is determined whether or not the image is a character image based on the statistical information of the number statistical means.
【請求項6】前記ビットプレーン復号手段は、前記画像
判定手段が文字画像であると判定すると、続いて行なわ
れる前記下位のビットプレーンに対する復号処理を行な
わず、前記画像作成手段は、当該復号処理を行なわなか
ったビットプレーンについて、最上位の前記ビットプレ
ーンを複製することにより画像を再生することを特徴と
する請求項4または請求項5記載の多階調画像の復号装
置。
6. The bit plane decoding means, when the image determining means determines that the image is a character image, does not perform subsequent decoding processing on the lower bit plane, and the image creating means does the decoding processing. 6. A multi-gradation image decoding device according to claim 4, wherein the image is reproduced by copying the highest bit plane of the bit planes that have not been processed.
JP8584096A 1996-03-14 1996-03-14 Multi-tone image decoding device Pending JPH09252408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8584096A JPH09252408A (en) 1996-03-14 1996-03-14 Multi-tone image decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8584096A JPH09252408A (en) 1996-03-14 1996-03-14 Multi-tone image decoding device

Publications (1)

Publication Number Publication Date
JPH09252408A true JPH09252408A (en) 1997-09-22

Family

ID=13870068

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8584096A Pending JPH09252408A (en) 1996-03-14 1996-03-14 Multi-tone image decoding device

Country Status (1)

Country Link
JP (1) JPH09252408A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001268372A (en) * 2000-01-19 2001-09-28 Xerox Corp Method for generating anti-aliased text and line graphics in compressed document image
JP2003101788A (en) * 2001-09-25 2003-04-04 Ricoh Co Ltd Decoding method, decoding device, image processing device, packet header generation method, packet header generation device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001268372A (en) * 2000-01-19 2001-09-28 Xerox Corp Method for generating anti-aliased text and line graphics in compressed document image
JP2003101788A (en) * 2001-09-25 2003-04-04 Ricoh Co Ltd Decoding method, decoding device, image processing device, packet header generation method, packet header generation device

Similar Documents

Publication Publication Date Title
JP2794281B2 (en) Code decoding processor for dither signal
US5442459A (en) Process for encoding a half tone image considering similarity between blocks
JPH08125868A (en) Image processing apparatus and method
US7050645B2 (en) Image processing apparatus and image processing method
JPH11168632A (en) Binary expression processing method for dither image, method for uncompressing dither image expressed in compression binary representation and compression and uncompression system for dither image
JPH07264417A (en) Image coding method
JP2756371B2 (en) Image processing device
JP3363698B2 (en) Multi-tone image coding device
JPH09252408A (en) Multi-tone image decoding device
JPH06178122A (en) Adaptive encoding device for color image
US20090169123A1 (en) Method and apparatus to encode and decode halftone image
JP3281183B2 (en) Image encoding / decoding method and image encoding / decoding device
JP3864681B2 (en) Image data encoding apparatus, image data encoding method, recording medium, and image forming apparatus
JPS63182973A (en) Pseudo half-tonal image transmission method for facsimile equipment
JP3361201B2 (en) Image encoding apparatus, image encoding / decoding apparatus, and image encoding / decoding method
JPH1155528A (en) Image coding device
US7076109B2 (en) System and method of automatically determining the dominant periodicity in sequential binary data
JPH08298589A (en) Image processing device for mixed images of photos and documents
JP2003153008A (en) Image encoding device and image decoding device
JP2569568B2 (en) Pseudo halftone image two-dimensional data prediction operation device for facsimile machine
JP3732329B2 (en) Pseudo halftone image encoding apparatus and encoding method
JP4526069B2 (en) Image information arithmetic coding apparatus and image information arithmetic decoding apparatus
JP3852237B2 (en) Image processing device
KR940007683B1 (en) Bloc cording method of middle tone picture
JPH07177359A (en) Fax machine