JP3344875B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3344875B2
JP3344875B2 JP16013395A JP16013395A JP3344875B2 JP 3344875 B2 JP3344875 B2 JP 3344875B2 JP 16013395 A JP16013395 A JP 16013395A JP 16013395 A JP16013395 A JP 16013395A JP 3344875 B2 JP3344875 B2 JP 3344875B2
Authority
JP
Japan
Prior art keywords
data
bit
bit plane
image
plane
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 - Lifetime
Application number
JP16013395A
Other languages
Japanese (ja)
Other versions
JPH08331390A (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 JP16013395A priority Critical patent/JP3344875B2/en
Publication of JPH08331390A publication Critical patent/JPH08331390A/en
Application granted granted Critical
Publication of JP3344875B2 publication Critical patent/JP3344875B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、1画素あたり複数ビッ
トからなる白黒多階調画像から、同一ビット順位のビッ
トデータを画素毎に取り出してなるビットプレーンを形
成し、おのおののビットプレーン毎に二値符号化処理し
て、原画像を符号化圧縮する画像処理装置、および、1
画素あたり複数ビットからなる白黒多階調画像から、同
一ビット順位のビットデータを画素毎に取り出してなる
ビットプレーンを形成し、おのおののビットプレーン毎
に二値符号化処理して得られた符号化データに基づい
て、原画像の画像データを複号化する画像処理装置、お
よび、複数の色成分からなるとともに、1つの色成分が
1画素あたり複数ビットからなるカラー多階調画像か
ら、おのおのの色成分について、同一ビット順位のビッ
トデータを画素毎に取り出してなるビットプレーンを形
成し、おのおののビットプレーン毎に二値符号化処理し
て、原画像を符号化圧縮する画像処理装置、および、複
数の色成分からなるとともに、1つの色成分が1画素あ
たり複数ビットからなるカラー多階調画像から、おのお
のの色成分について、おのおののビットプレーン毎に二
値符号化処理して得られた符号化データに基づいて、原
画像の画像データを複号化する画像処理装置、および、
1画素あたり複数ビットからなる白黒多階調画像から、
同一ビット順位のビットデータを画素毎に取り出してな
るビットプレーンを形成し、おのおののビットプレーン
毎に二値符号化処理して、原画像を符号化圧縮するとと
もに、所定の伝送手順により、その二値符号化データを
相手端末に送信する送信機能を備えた画像処理装置、お
よび、複数の色成分からなるとともに、1つの色成分が
1画素あたり複数ビットからなるカラー多階調画像か
ら、おのおのの色成分について、同一ビット順位のビッ
トデータを画素毎に取り出してなるビットプレーンを形
成し、おのおののビットプレーン毎に二値符号化処理し
て、原画像を符号化圧縮するとともに、所定の伝送手順
により、その二値符号化データを相手端末に送信する送
信機能を備えた画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention forms a bit plane by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and forms a bit plane for each bit plane. An image processing device that performs a binary encoding process and encodes and compresses an original image;
A bit plane formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image consisting of multiple bits per pixel, and encoding obtained by performing binary encoding processing for each bit plane An image processing apparatus for decoding the image data of the original image based on the data, and a color multi-tone image composed of a plurality of color components and one color component composed of a plurality of bits per pixel. An image processing apparatus that forms a bit plane by extracting bit data of the same bit order for each pixel for each color component, performs a binary encoding process for each bit plane, and encodes and compresses the original image, and From a color multi-tone image composed of a plurality of color components and one color component composed of a plurality of bits per pixel, for each color component, On the basis ax each bit plane of the binary coding processing to encoded data obtained, the image processing apparatus for decoding the image data of the original image, and,
From a monochrome multi-tone image consisting of multiple bits per pixel,
A bit plane is formed by extracting the bit data of the same bit order for each pixel, and a binary encoding process is performed for each bit plane to encode and compress the original image. An image processing device having a transmission function of transmitting value-encoded data to a partner terminal; and a color multi-tone image including a plurality of color components and one color component including a plurality of bits per pixel. For a color component, a bit plane is formed by extracting bit data of the same bit order for each pixel, a binary encoding process is performed for each bit plane, and the original image is encoded and compressed. The present invention relates to an image processing apparatus having a transmission function of transmitting the binary coded data to a partner terminal.

【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]

【発明が解決しようとする課題】さて、所定の大きさ
(縦横寸法)の画像を圧縮して形成した画情報を、例え
ば、フロッピーディスクなどの交換可能な記憶メディア
を用いて配布しようとするとき、フロッピーディスク1
枚あたり保存できる画情報の数をある程度特定できるこ
とが好ましい。
[0005] Now, when trying to distribute image information formed by compressing an image of a predetermined size (length and width dimensions) using, for example, an exchangeable storage medium such as a floppy disk, etc. , Floppy disk 1
It is preferable that the number of pieces of image information that can be stored per sheet can be specified to some extent.

【0007】例えば、上述した後者の符号化方式をこの
ような応用に用いると、次のような不都合を生じる。
For example, when the latter encoding method is used for such an application, the following inconvenience occurs.

【0008】すなわち、後者の符号化方式で採用される
二値画像符号化方式は、いずれも可変長符号を用いて符
号化を行うために、画像1枚あたりの符号データ量は、
その画像の複雑さ等に応じてかなり変動するため、画像
の内容によって、フロッピーディスク1枚あたりに収容
できる画像の枚数が大幅に変動し、画像の配布のための
計画が多様になるという事態を生じる。
That is, in the binary image encoding method adopted in the latter encoding method, encoding is performed using a variable-length code, so that the amount of code data per image is:
Because the image fluctuates considerably depending on the complexity of the image, etc., the number of images that can be accommodated per floppy disk greatly fluctuates depending on the content of the image. Occurs.

【0009】本発明は、かかる実情に鑑みてなされたも
のであり、白黒多階調画像あるいはカラー多階調画像を
符号化圧縮したときの符号データのデータ量を制限でき
る画像処理装置を提供することを目的としている。ま
た、そのようにデータ量が制限された符号データを適切
に処理して原画像を形成できる画像処理装置を提供する
ことを目的としている。また、画像通信において、相手
端末が扱えるデータ量が制限されているとき、その制限
データ量に、送信画情報のデータ量を制限できる画像処
理装置を提供することを目的としている。
The present invention has been made in view of the above circumstances, and provides an image processing apparatus capable of limiting the amount of code data when encoding and compressing a black-and-white multi-tone image or a color multi-tone image. It is intended to be. It is another object of the present invention to provide an image processing apparatus capable of forming an original image by appropriately processing code data having such a limited data amount. It is another object of the present invention to provide an image processing apparatus capable of limiting the data amount of transmission image information to the limited data amount when the data amount that can be handled by the partner terminal is limited in image communication.

【0010】[0010]

【課題を解決するための手段】本発明は、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 monochrome multi-tone image composed of a plurality of bits per pixel. In an image processing apparatus that performs a binary coding process for each time and encodes and compresses an original image, the data of the bit plane is binary-coded in bit plane units from the bit plane of the most significant bit to the bit plane of the lower bit. Bit plane encoding means for encoding and outputting binary encoded data, and the total data amount in bit plane units calculated in the output order of the binary encoded data output from the bit plane encoding means are predetermined. Code amount control means for limiting the code amount within the range.

【0011】また、1画素あたり複数ビットからなる白
黒多階調画像から、同一ビット順位のビットデータを画
素毎に取り出してなるビットプレーンを形成し、おのお
ののビットプレーン毎に二値符号化処理して、原画像を
符号化圧縮する画像処理装置において、上記ビットプレ
ーンのデータを最上位ビットのビットプレーンから下位
ビットのビットプレーンに向けて、ビットプレーン単位
に二値符号化して二値符号化データを出力するビットプ
レーン符号化手段と、上記ビットプレーン符号化手段か
ら出力される二値符号化データの出力順に算出したビッ
トプレーン単位の総データ量を、あらかじめ定められた
値以内に制限するとともに、二値符号化データの先頭に
上記原画像の1画素あたりのビット数をあらわす情報を
付加する符号量制御手段を備えたものである。
Further, a bit plane is formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and a binary encoding process is performed for each bit plane. In an image processing apparatus that encodes and compresses an original image, the data of the bit plane is binary-coded from A bit plane encoding means for outputting the bit plane encoding means, and the total data amount per bit plane calculated in the output order of the binary encoded data output from the bit plane encoding means is limited to within a predetermined value, A code amount system for adding information indicating the number of bits per pixel of the original image to the head of the binary coded data It is those with the means.

【0012】また、1画素あたり複数ビットからなる白
黒多階調画像から、同一ビット順位のビットデータを画
素毎に取り出してなるビットプレーンを形成し、おのお
ののビットプレーン毎に二値符号化処理して、原画像を
符号化圧縮する画像処理装置において、上記ビットプレ
ーンのデータを最上位ビットのビットプレーンから下位
ビットのビットプレーンに向けて、ビットプレーン単位
に二値符号化して二値符号化データを出力するビットプ
レーン符号化手段と、上記二値符号化データのデータ量
の制限値を入力するデータ量制限値入力手段と、上記ビ
ットプレーン符号化手段から出力される二値符号化デー
タの出力順に算出したビットプレーン単位の総データ量
を、上記データ量制限値入力手段より入力された制限値
以内に制限する符号量制御手段を備えたものである。
Also, a bit plane is formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and a binary encoding process is performed for each bit plane. In an image processing apparatus that encodes and compresses an original image, the bit plane data is binary-coded in bit plane units from the highest-order bit plane to the lower-order bit plane, so that , A data amount limit value input means for inputting a data amount limit value of the binary encoded data, and an output of the binary encoded data output from the bit plane encoding means. A code for limiting the total data amount in bit plane units calculated in order within the limit value input from the data amount limit value input means. Those having a quantity control means.

【0013】また、1画素あたり複数ビットからなる白
黒多階調画像から、同一ビット順位のビットデータを画
素毎に取り出してなるビットプレーンを形成し、おのお
ののビットプレーン毎に二値符号化処理して、原画像を
符号化圧縮する画像処理装置において、上記ビットプレ
ーンのデータを最上位ビットのビットプレーンから下位
ビットのビットプレーンに向けて、ビットプレーン単位
に二値符号化して二値符号化データを出力するビットプ
レーン符号化手段と、上記二値符号化データのデータ量
の制限値を入力するデータ量制限値入力手段と、上記ビ
ットプレーン符号化手段から出力される二値符号化デー
タの出力順に算出したビットプレーン単位の総データ量
を、上記データ量制限値入力手段より入力された制限値
以内に制限するとともに、二値符号化データの先頭に上
記原画像の1画素あたりのビット数をあらわす情報を付
加する符号量制御手段を備えたものである。
Further, a bit plane is formed by extracting bit data of the same bit order for each pixel from a black and white multi-tone image composed of a plurality of bits per pixel. In an image processing apparatus that encodes and compresses an original image, the data of the bit plane is binary-coded from , A data amount limit value input means for inputting a data amount limit value of the binary encoded data, and an output of the binary encoded data output from the bit plane encoding means. When the total data amount in the bit plane unit calculated in order is limited within the limit value input from the data amount limit value input means, Moni, those having a code amount control means for adding the information representing the number of bits per pixel of the top on the original image of the binary coded data.

【0014】また、1画素あたり複数ビットからなる白
黒多階調画像から、同一ビット順位のビットデータを画
素毎に取り出してなるビットプレーンを形成し、おのお
ののビットプレーン毎に二値符号化処理して得られた符
号化データに基づいて、原画像の画像データを復号化す
る画像処理装置において、上記ビットプレーン毎の二値
符号化データを復号化してあらかじめ定められているビ
ットプレーン数のビットプレーン単位の画像データを形
成するビットプレーン復号化手段と、上記ビットプレー
ン復号化手段から出力されるビットプレーン単位の復号
化画像データのうち、正常に復号化できなかった下位ビ
ットのビットプレーンの画像データを補間する補間画像
データを発生する挿入画像データ発生手段と、上記ビッ
トプレーン復号化手段から正常に復号化されて出力され
る復号化画像データと、上記挿入画像データ発生手段か
ら出力される補間画像データに基づいて、原画像の画像
データを形成するビットプレーンデータ作成手段を備え
たものである。
Further, a bit plane is formed by extracting bit data of the same bit order for each pixel from a black and white multi-tone image composed of a plurality of bits per pixel, and a binary encoding process is performed for each bit plane. In the image processing apparatus for decoding the image data of the original image based on the coded data obtained in the above, the binary coded data for each bit plane is decoded and the bit planes of a predetermined number of bit planes are decoded. Bit plane decoding means for forming a unit of image data; and bit plane image data of lower-order bits which could not be decoded normally among bit plane unit decoded image data output from the bit plane decoding means. Inserting image data generating means for generating interpolated image data for interpolating Bit plane data generating means for forming image data of an original image based on the decoded image data normally decoded and output from the stage and the interpolated image data output from the inserted image data generating means. Things.

【0015】また、1画素あたり複数ビットからなる白
黒多階調画像から、同一ビット順位のビットデータを画
素毎に取り出してなるビットプレーンを形成し、おのお
ののビットプレーン毎に二値符号化処理して得られた符
号化データに基づいて、原画像の画像データを復号化す
る画像処理装置において、上記ビットプレーン毎の二値
符号化データを復号化してビットプレーン単位の画像デ
ータを形成するビットプレーン復号化手段と、上記ビッ
トプレーン復号化手段から出力されるビットプレーン単
位の復号化画像データのうち、正常に復号化できなかっ
た下位ビットのビットプレーンの画像データ、および、
上記二値符号化データの先頭に付加されている原画像の
1画素あたりのビット数をあらわす情報に対応したビッ
トプレーン数と上記ビットプレーン復号化手段が正常に
復号化したビットプレーン数との差に相当するビットプ
レーン数分の下位ビットの画像データを発生する挿入画
像データ発生手段と、上記ビットプレーン復号化手段か
ら出力される復号化画像データと、上記挿入画像データ
発生手段から出力される画像データに基づいて、原画像
の画像データを形成するビットプレーンデータ作成手段
を備えたものである。
A bit plane is formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and a binary encoding process is performed for each bit plane. In the image processing apparatus for decoding the image data of the original image based on the coded data obtained in the above, a bit plane for decoding the binary coded data for each bit plane to form image data in a bit plane unit Decoding means, among the bit-plane-unit decoded image data output from the bit-plane decoding means, image data of bit planes of lower bits that could not be decoded normally, and
The difference between the number of bit planes corresponding to the information representing the number of bits per pixel of the original image added to the head of the binary coded data and the number of bit planes normally decoded by the bit plane decoding means , Inserted image data generating means for generating image data of lower bits corresponding to the number of bit planes, decoded image data output from the bit plane decoding means, and image output from the inserted image data generating means. It is provided with bit plane data generating means for forming image data of an original image based on the data.

【0016】また、複数の色成分からなるとともに、1
つの色成分が1画素あたり複数ビットからなるカラー多
階調画像から、おのおのの色成分について、同一ビット
順位のビットデータを画素毎に取り出してなるビットプ
レーンを形成し、おのおののビットプレーン毎に二値符
号化処理して、原画像を符号化圧縮する画像処理装置に
おいて、おのおのの色成分について、上記ビットプレー
ンのデータを最上位ビットのビットプレーンから下位ビ
ットのビットプレーンに向けて、ビットプレーン単位に
二値符号化して二値符号化データを出力するビットプレ
ーン符号化手段と、おのおのの色成分について、上記ビ
ットプレーン符号化手段から出力される二値符号化デー
タの出力順に算出したビットプレーン単位の総データ量
を、あらかじめ定められた値以内に制限する符号量制御
手段を備えたものである。
In addition, a plurality of color components and one
A bit plane is formed by extracting bit data of the same bit order for each color component for each pixel from a color multi-tone image in which one color component consists of a plurality of bits per pixel, and two bit planes are formed for each bit plane. In an image processing apparatus that performs value encoding processing and encodes and compresses an original image, for each color component, the data of the bit plane is shifted from the bit plane of the most significant bit to the bit plane of the lower bit in bit plane units. A bit plane encoding means for binary encoding and outputting binary encoded data, and a bit plane unit calculated for each color component in the output order of the binary encoded data outputted from the bit plane encoding means. With code amount control means for limiting the total data amount of A.

【0017】また、複数の色成分からなるとともに、1
つの色成分が1画素あたり複数ビットからなるカラー多
階調画像から、おのおのの色成分について、同一ビット
順位のビットデータを画素毎に取り出してなるビットプ
レーンを形成し、おのおののビットプレーン毎に二値符
号化処理して、原画像を符号化圧縮する画像処理装置に
おいて、おのおのの色成分について、上記ビットプレー
ンのデータを最上位ビットのビットプレーンから下位ビ
ットのビットプレーンに向けて、ビットプレーン単位に
二値符号化して二値符号化データを出力する複数のビッ
トプレーン符号化手段と、おのおのの色成分について、
上記複数のビットプレーン符号化手段から出力される二
値符号化データの出力順に算出したビットプレーン単位
の総データ量を、あらかじめ定められた値以内にそれぞ
れ制限する複数の符号量制御手段を備えたものである。
In addition, a plurality of color components
A bit plane is formed by extracting bit data of the same bit order for each color component for each pixel from a color multi-tone image in which one color component consists of a plurality of bits per pixel, and two bit planes are formed for each bit plane. In an image processing apparatus that performs value encoding processing and encodes and compresses an original image, for each color component, the data of the bit plane is shifted from the bit plane of the most significant bit to the bit plane of the lower bit in bit plane units. A plurality of bit plane encoding means for binary encoding and outputting binary encoded data, and for each color component,
A plurality of code amount control means for limiting the total data amount per bit plane calculated in the output order of the binary coded data output from the plurality of bit plane coding means to a predetermined value or less. Things.

【0018】また、複数の色成分からなるとともに、1
つの色成分が1画素あたり複数ビットからなるカラー多
階調画像から、おのおのの色成分について、同一ビット
順位のビットデータを画素毎に取り出してなるビットプ
レーンを形成し、おのおののビットプレーン毎に二値符
号化処理して、原画像を符号化圧縮する画像処理装置に
おいて、おのおのの色成分について、上記ビットプレー
ンのデータを最上位ビットのビットプレーンから下位ビ
ットのビットプレーンに向けて、ビットプレーン単位に
二値符号化して二値符号化データを出力するビットプレ
ーン符号化手段と、おのおのの色成分について、上記ビ
ットプレーン符号化手段から出力される二値符号化デー
タの出力順に算出したビットプレーン単位の総データ量
を、あらかじめ定められた値以内に制限するとともに、
上記二値符号化データの先頭に、色成分の数および1画
素あたりのビット数をあわらす情報を付加する符号量制
御手段を備えたものである。
In addition, while being composed of a plurality of color components,
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-tone image in which one color component is composed of a plurality of bits per pixel, and two bit planes are formed for each bit plane. In an image processing apparatus that performs value encoding processing and encodes and compresses an original image, for each color component, the data of the bit plane is shifted from the bit plane of the most significant bit to the bit plane of the lower bit in bit plane units. A bit plane encoding unit that outputs binary encoded data by binary encoding, and a bit plane unit calculated for each color component in the output order of the binary encoded data output from the bit plane encoding unit. Limits the total amount of data within a predetermined value,
A code amount control means for adding information indicating the number of color components and the number of bits per pixel is provided at the head of the binary coded data.

【0019】また、複数の色成分からなるとともに、1
つの色成分が1画素あたり複数ビットからなるカラー多
階調画像から、おのおのの色成分について、同一ビット
順位のビットデータを画素毎に取り出してなるビットプ
レーンを形成し、おのおののビットプレーン毎に二値符
号化処理して、原画像を符号化圧縮する画像処理装置に
おいて、おのおのの色成分について、上記ビットプレー
ンのデータを最上位ビットのビットプレーンから下位ビ
ットのビットプレーンに向けて、ビットプレーン単位に
二値符号化して二値符号化データを出力する複数のビッ
トプレーン符号化手段と、おのおのの色成分について、
上記複数のビットプレーン符号化手段から出力される二
値符号化データの出力順に算出したビットプレーン単位
の総データ量を、あらかじめ定められた値以内にそれぞ
れ制限するとともに、上記二値符号化データの先頭に、
色成分の数および1画素あたりのビット数をあわらす情
報を付加する複数の符号量制御手段を備えたものであ
る。
In addition, while being composed of a plurality of color components,
A bit plane is formed by extracting bit data of the same bit order for each color component for each pixel from a color multi-tone image in which one color component consists of a plurality of bits per pixel, and two bit planes are formed for each bit plane. In an image processing apparatus that performs value encoding processing and encodes and compresses an original image, for each color component, the data of the bit plane is shifted from the bit plane of the most significant bit to the bit plane of the lower bit in bit plane units. A plurality of bit plane encoding means for binary encoding and outputting binary encoded data, and for each color component,
The total data amount per bit plane calculated in the output order of the binary encoded data output from the plurality of bit plane encoding means is limited to a predetermined value or less, and the binary encoded data At the beginning,
It comprises a plurality of code amount control means for adding information indicating the number of color components and the number of bits per pixel.

【0020】また、複数の色成分からなるとともに、1
つの色成分が1画素あたり複数ビットからなるカラー多
階調画像から、おのおのの色成分について、同一ビット
順位のビットデータを画素毎に取り出してなるビットプ
レーンを形成し、おのおののビットプレーン毎に二値符
号化処理して、原画像を符号化圧縮する画像処理装置に
おいて、おのおのの色成分について、上記ビットプレー
ンのデータを最上位ビットのビットプレーンから下位ビ
ットのビットプレーンに向けて、ビットプレーン単位に
二値符号化して二値符号化データを出力するビットプレ
ーン符号化手段と、上記二値符号化データのデータ量の
制限値を入力するデータ量制限値入力手段と、おのおの
の色成分について、上記ビットプレーン符号化手段から
出力される二値符号化データの出力順に算出したビット
プレーン単位の総データ量を、上記データ量制限値入力
手段より入力された制限値に制限する符号量制御手段を
備えたものである。
In addition, while being composed of a plurality of color components,
A bit plane is formed by extracting bit data of the same bit order for each color component for each pixel from a color multi-tone image in which one color component consists of a plurality of bits per pixel, and two bit planes are formed for each bit plane. In an image processing apparatus that performs value encoding processing and encodes and compresses an original image, for each color component, the data of the bit plane is shifted from the bit plane of the most significant bit to the bit plane of the lower bit in bit plane units. Bit plane encoding means for binary encoding and outputting binary encoded data, data amount limit value input means for inputting a data amount limit value of the binary encoded data, and for each color component, The total of the bit plane units calculated in the output order of the binary coded data output from the bit plane coding means. The chromatography data amount, those having a code amount control means for limiting the limit value input from the data amount limiting value input means.

【0021】また、複数の色成分からなるとともに、1
つの色成分が1画素あたり複数ビットからなるカラー多
階調画像から、おのおのの色成分について、同一ビット
順位のビットデータを画素毎に取り出してなるビットプ
レーンを形成し、おのおののビットプレーン毎に二値符
号化処理して、原画像を符号化圧縮する画像処理装置に
おいて、おのおのの色成分について、上記ビットプレー
ンのデータを最上位ビットのビットプレーンから下位ビ
ットのビットプレーンに向けて、ビットプレーン単位に
二値符号化して二値符号化データを出力するビットプレ
ーン符号化手段と、上記二値符号化データのデータ量の
制限値を入力するデータ量制限値入力手段と、おのおの
の色成分について、上記ビットプレーン符号化手段から
出力される二値符号化データの出力順に算出したビット
プレーン単位の総データ量を、上記データ量制限値入力
手段より入力された制限値以内に制限するとともに、上
記二値符号化データの先頭に、色成分の数および1画素
あたりのビット数をあわらす情報を付加する符号量制御
手段を備えたものである。
In addition, while being composed of a plurality of color components,
A bit plane is formed by extracting bit data of the same bit order for each color component for each pixel from a color multi-tone image in which one color component consists of a plurality of bits per pixel, and two bit planes are formed for each bit plane. In an image processing apparatus that performs value encoding processing and encodes and compresses an original image, for each color component, the data of the bit plane is shifted from the bit plane of the most significant bit to the bit plane of the lower bit in bit plane units. Bit plane encoding means for binary encoding and outputting binary encoded data, data amount limit value input means for inputting a data amount limit value of the binary encoded data, and for each color component, The total of the bit plane units calculated in the output order of the binary coded data output from the bit plane coding means. Data amount within the limit value input from the data amount limit value input means, and information indicating the number of color components and the number of bits per pixel at the beginning of the binary coded data. It is provided with a code amount control means to be added.

【0022】また、複数の色成分からなるとともに、1
つの色成分が1画素あたり複数ビットからなるカラー多
階調画像から、おのおのの色成分について、おのおのの
ビットプレーン毎に二値符号化処理して得られた符号化
データに基づいて、原画像の画像データを復号化する画
像処理装置において、上記ビットプレーン毎の二値符号
化データを復号化してあらかじめ定められているビット
プレーン数のビットプレーン単位の画像データを形成す
るビットプレーン復号化手段と、上記ビットプレーン復
号化手段から出力されるビットプレーン単位の復号化画
像データのうち、正常に復号化できなかった下位ビット
のビットプレーンの画像データを補間する補間画像デー
タを発生する挿入画像データ発生手段と、上記ビットプ
レーン復号化手段から正常に復号化されて出力される復
号化画像データと、上記挿入画像データ発生手段から出
力される補間画像データに基づいて、おのおのの色成分
の画像データを形成するビットプレーンデータ作成手段
と、上記ビットプレーンデータ作成手段から出力される
おのおのの色成分の画像データに基づいて、原画像の画
像データを形成する画像データ変換出力手段を備えたも
のである。
In addition, while being composed of a plurality of color components,
From a color multi-tone image in which one color component consists of a plurality of bits per pixel, for each color component, based on coded data obtained by performing a binary coding process for each bit plane, In an image processing device that decodes image data, a bit plane decoding unit that decodes the binary coded data for each bit plane to form image data in units of bit planes of a predetermined number of bit planes, Inserted image data generating means for generating interpolated image data for interpolating bit plane image data of lower bits that could not be decoded normally among bit plane unit decoded image data output from the bit plane decoding means. And decoded image data that is normally decoded and output from the bit plane decoding unit. Bit plane data generating means for forming image data of each color component based on the interpolated image data output from the insertion image data generating means, and an image of each color component output from the bit plane data generating means It is provided with image data conversion output means for forming image data of an original image based on the data.

【0023】また、複数の色成分からなるとともに、1
つの色成分が1画素あたり複数ビットからなるカラー多
階調画像から、おのおのの色成分について、おのおのの
ビットプレーン毎に二値符号化処理して得られた符号化
データに基づいて、原画像の画像データを復号化する画
像処理装置において、上記ビットプレーン毎の二値符号
化データを復号化してビットプレーン単位の画像データ
を形成するビットプレーン復号化手段と、上記ビットプ
レーン復号化手段から出力されるビットプレーン単位の
復号化画像データのうち、正常に復号化できなかった下
位ビットのビットプレーンの画像データ、および、上記
二値符号化データの先頭に付加されている原画像の1画
素あたりのビット数をあらわす情報に対応したビットプ
レーン数と上記ビットプレーン復号化手段が正常に復号
化したビットプレーン数との差に相当するビットプレー
ン数分の下位ビットの画像データを発生する挿入画像デ
ータ発生手段と、上記ビットプレーン復号化手段から出
力される復号化画像データと、上記挿入画像データ発生
手段から出力される画像データに基づいて、おのおのの
色成分の画像データを形成するビットプレーンデータ作
成手段と、上記ビットプレーンデータ作成手段から出力
されるおのおのの色成分の画像データに基づいて、上記
二値符号化データの先頭に付加されている色成分の数に
対応した原画像の画像データを形成する画像データ変換
出力手段を備えたものである。
In addition, while being composed of a plurality of color components,
From a color multi-tone image in which one color component consists of a plurality of bits per pixel, for each color component, based on coded data obtained by performing a binary coding process for each bit plane, In an image processing device for decoding image data, bit plane decoding means for decoding the binary coded data for each bit plane to form image data in bit plane units, and output from the bit plane decoding means. Out of the decoded image data in units of bit planes, the image data of the bit plane of the lower bit that could not be decoded normally, and the image data per pixel of the original image added to the head of the binary coded data. The number of bit planes corresponding to the information representing the number of bits and the bit planes normally decoded by the bit plane decoding means. Image data generating means for generating image data of lower bits corresponding to the number of bit planes corresponding to the number of bit planes, decoded image data output from the bit plane decoding means, and the inserted image data generating means Bit plane data generating means for forming image data of each color component based on the image data output from the image processing apparatus; and the two-dimensional image processing apparatus based on the image data of each color component output from the bit plane data generating means. It is provided with image data conversion output means for forming image data of an original image corresponding to the number of color components added to the head of the value encoded data.

【0024】また、前記挿入画像データ発生手段として
は、疑似ランダムデータからなる画像データを発生する
ものをもちいることができる。
Further, as the inserted image data generating means, means for generating image data composed of pseudo random data can be used.

【0025】また、1画素あたり複数ビットからなる白
黒多階調画像から、同一ビット順位のビットデータを画
素毎に取り出してなるビットプレーンを形成し、おのお
ののビットプレーン毎に二値符号化処理して、原画像を
符号化圧縮するとともに、所定の伝送手順により、その
二値符号化データを相手端末に送信する送信機能を備え
た画像処理装置において、上記ビットプレーンのデータ
を最上位ビットのビットプレーンから下位ビットのビッ
トプレーンに向けて、ビットプレーン単位に二値符号化
して二値符号化データを出力するビットプレーン符号化
手段と、上記ビットプレーン符号化手段から出力される
二値符号化データの出力順に算出したビットプレーン単
位の総データ量を、所定の伝送前手順により相手端末か
ら通知される制限値以内に制限する符号量制御手段を備
えたものである。
A bit plane is formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and is subjected to a binary encoding process for each bit plane. In the image processing apparatus having the transmission function of transmitting the binary coded data to the destination terminal by a predetermined transmission procedure while encoding and compressing the original image, the data of the bit plane is converted into the most significant bit. Bit plane encoding means for performing binary encoding on a bit plane basis and outputting binary encoded data from a plane to a bit plane of lower bits, and binary encoded data output from the bit plane encoding means; Of the total data amount per bit plane calculated in the output order of Those having a code amount control means for limiting within.

【0026】また、複数の色成分からなるとともに、1
つの色成分が1画素あたり複数ビットからなるカラー多
階調画像から、おのおのの色成分について、同一ビット
順位のビットデータを画素毎に取り出してなるビットプ
レーンを形成し、おのおののビットプレーン毎に二値符
号化処理して、原画像を符号化圧縮するとともに、所定
の伝送手順により、その二値符号化データを相手端末に
送信する送信機能を備えた画像処理装置において、おの
おのの色成分について、上記ビットプレーンのデータを
最上位ビットのビットプレーンから下位ビットのビット
プレーンに向けて、ビットプレーン単位に二値符号化し
て二値符号化データを出力するビットプレーン符号化手
段と、おのおのの色成分について、上記ビットプレーン
符号化手段から出力される二値符号化データの出力順に
算出したビットプレーン単位の総データ量を、所定の伝
送前手順により相手端末から通知される制限値以内に制
限する符号量制御手段を備えたものである。
In addition, while being composed of a plurality of color components,
A bit plane is formed by extracting bit data of the same bit order for each color component for each pixel from a color multi-tone image in which one color component is composed of a plurality of bits per pixel. In the image processing apparatus having the transmission function of transmitting the binary coded data to the partner terminal by a predetermined transmission procedure while performing the value encoding process and encoding and compressing the original image, for each color component, Bit plane encoding means for binary encoding the bit plane data from the most significant bit plane to the lower bit plane and outputting binary encoded data in units of bit planes, and each color component , The bit map calculated in the output order of the binary coded data output from the bit plane coding means. The total data amount of over down units, those having a code amount control means for limiting within limit value notified from the destination terminal by a predetermined pre-transmission procedure.

【0027】[0027]

【作用】したがって、白黒多階調画像あるいはカラー多
階調画像を符号化圧縮したときの符号データのデータ量
をあらかじめ定められている値、あるいは、外部から指
定された値に制限することができるので、例えば、画像
配布時の符号データの取り扱いが容易になる。
Therefore, the data amount of the code data when the monochrome multi-tone image or the color multi-tone image is encoded and compressed can be limited to a predetermined value or a value specified from the outside. Therefore, for example, handling of code data at the time of image distribution becomes easy.

【0028】また、データ量が制限された符号データか
ら、元の白黒多階調画像あるいはカラー多階調画像を復
元することができるので、そのような符号データを適切
に取り扱うことができる。
Further, since the original black-and-white multi-tone image or color multi-tone image can be restored from the code data whose data amount is limited, such code data can be appropriately handled.

【0029】また、画像通信において、相手端末が扱え
るデータ量が制限されているとき、その制限データ量
に、白黒多階調画像あるいはカラー多階調画像の送信画
情報のデータ量を制限できるので、白黒多階調画像ある
いはカラー多階調画像の画像通信を効率よく行うことが
できる。
In the image communication, when the data amount that can be handled by the partner terminal is limited, the data amount of the transmission image information of the monochrome multi-tone image or the color multi-tone image can be limited to the limited data amount. In addition, image communication of a monochrome multi-tone image or a color multi-tone image can be efficiently performed.

【0030】また、データ量の制限は、最上位ビットの
ビットプレーンから下位ビットのビットプレーンに向け
て行われるので、白黒多階調画像あるいはカラー多階調
画像にとってより大きな情報量を運ぶ上位ビットのビッ
トプレーンの符号データは必ず含まれ、その結果、デー
タ量制限により削除された下位ビットのビットプレーン
を、例えば、ランダムデータとして発生した場合でも、
再生画像の画質はかなり良好である。
Further, since the data amount is limited from the most significant bit plane to the lower bit plane, the upper bit which carries a larger amount of information for a monochrome multi-tone image or a color multi-tone image. Bit plane code data is always included, and as a result, even if the lower-order bit plane deleted due to the data amount limitation is generated as random data, for example,
The quality of the reproduced image is quite good.

【0031】[0031]

【実施例】以下、添付図面を参照しながら、本発明の実
施例を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0032】図1は、本発明の一実施例にかかる白黒多
階調画像の符号化装置の一例を示している。この場合、
符号化対象となっている白黒多階調画像は、1画素あた
り8ビットのものである。
FIG. 1 shows an example of a coding apparatus for a monochrome multi-tone image according to an embodiment of the present invention. in this case,
The black-and-white multi-tone image to be encoded has 8 bits per pixel.

【0033】同図において、白黒多階調画像データPX
は、ビットプレーン生成部1に加えられている。ビット
プレーン生成部1は、白黒多階調画像データPXのおの
おのの画素について、第8ビットのデータを抜き出して
第8ビットのビットプレーンデータ(以下、第8ビット
プレーンデータという)を形成してその第8ビットプレ
ーンデータをビットプレーン符号化部2に出力し、次い
で、第7ビットのデータを抜き出して第7ビットのビッ
トプレーンデータ(以下、第7ビットプレーンデータと
いう)を形成してその第7ビットプレーンデータをビッ
トプレーン符号化部2に出力し、次いで、第6ビットの
データを抜き出して第6ビットのビットプレーンデータ
(以下、第6ビットプレーンデータという)を形成して
その第6ビットプレーンデータをビットプレーン符号化
部2に出力し、次いで、第5ビットのデータを抜き出し
て第5ビットのビットプレーンデータ(以下、第5ビッ
トプレーンデータという)を形成してその第5ビットプ
レーンデータをビットプレーン符号化部2に出力し、次
いで、第4ビットのデータを抜き出して第4ビットのビ
ットプレーンデータ(以下、第4ビットプレーンデータ
という)を形成してその第4ビットプレーンデータをビ
ットプレーン符号化部2に出力し、次いで、第3ビット
のデータを抜き出して第3ビットのビットプレーンデー
タ(以下、第3ビットプレーンデータという)を形成し
てその第3ビットプレーンデータをビットプレーン符号
化部2に出力し、次いで、第2ビットのデータを抜き出
して第2ビットのビットプレーンデータ(以下、第2ビ
ットプレーンデータという)を形成してその第2ビット
プレーンデータをビットプレーン符号化部2に出力し、
次いで、第1ビットのデータを抜き出して第1ビットの
ビットプレーンデータ(以下、第1ビットプレーンデー
タという)を形成してその第1ビットプレーンデータを
ビットプレーン符号化部2に出力する。それとともに、
白黒多階調画像データPXにおける1ビットあたりのビ
ット数をあらわすビット深度データSnを符号量制御部
3に出力している。
In FIG. 3, black and white multi-tone image data PX
Are added to the bit plane generation unit 1. The bit plane generation unit 1 extracts the eighth bit data for each pixel of the black-and-white multi-tone image data PX to form eighth bit data (hereinafter referred to as eighth bit plane data). The eighth bit plane data is output to the bit plane encoding unit 2, and then the seventh bit data is extracted to form seventh bit plane data (hereinafter, referred to as seventh bit plane data). The bit plane data is output to the bit plane encoding unit 2. Then, the sixth bit data is extracted to form the sixth bit plane data (hereinafter referred to as the sixth bit plane data), and the sixth bit plane is generated. The data is output to the bit plane encoding unit 2, and then the data of the fifth bit is extracted and , And outputs the fifth bit plane data to the bit plane encoding unit 2. Then, the fourth bit data is extracted and the fourth bit data is extracted. It forms plane data (hereinafter, referred to as fourth bit plane data), outputs the fourth bit plane data to the bit plane encoding unit 2, and then extracts third bit data to extract third bit bit plane data. (Hereinafter, referred to as third bit plane data), and outputs the third bit plane data to the bit plane encoding unit 2. Next, the second bit data is extracted and the second bit plane data (hereinafter, referred to as third bit plane data) is extracted. , Second bit plane data), and the second bit plane data is bit-played. Output to down coder 2,
Next, the first bit data is extracted to form first bit plane data (hereinafter, referred to as first bit plane data), and the first bit plane data is output to the bit plane encoding unit 2. With it,
The bit depth data Sn indicating the number of bits per bit in the black and white multi-tone image data PX is output to the code amount control unit 3.

【0034】ビットプレーン符号化部2は、第8ビット
プレーンデータを入力すると、第8ビットプレーンデー
タについて所定の二値画像符号化方式を適用し、それに
よって形成した第8ビットプレーンの符号データ(以
下、第8ビットプレーン符号データという)を符号量制
御部3に出力し、第7ビットプレーンデータを入力する
と、第7ビットプレーンデータについて所定の二値画像
符号化方式を適用し、それによって形成した第7ビット
プレーンの符号データ(以下、第7ビットプレーン符号
データという)を符号量制御部3に出力し、第6ビット
プレーンデータを入力すると、第6ビットプレーンデー
タについて所定の二値画像符号化方式を適用し、それに
よって形成した第6ビットプレーンの符号データ(以
下、第6ビットプレーン符号データという)を符号量制
御部3に出力し、第5ビットプレーンデータを入力する
と、第5ビットプレーンデータについて所定の二値画像
符号化方式を適用し、それによって形成した第5ビット
プレーンの符号データ(以下、第5ビットプレーン符号
データという)を符号量制御部3に出力し、第4ビット
プレーンデータを入力すると、第4ビットプレーンデー
タについて所定の二値画像符号化方式を適用し、それに
よって形成した第4ビットプレーンの符号データ(以
下、第4ビットプレーン符号データという)を符号量制
御部3に出力し、第3ビットプレーンデータを入力する
と、第3ビットプレーンデータについて所定の二値画像
符号化方式を適用し、それによって形成した第3ビット
プレーンの符号データ(以下、第3ビットプレーン符号
データという)を符号量制御部3に出力し、第2ビット
プレーンデータを入力すると、第2ビットプレーンデー
タについて所定の二値画像符号化方式を適用し、それに
よって形成した第2ビットプレーンの符号データ(以
下、第2ビットプレーン符号データという)を符号量制
御部3に出力し、第1ビットプレーンデータを入力する
と、第1ビットプレーンデータについて所定の二値画像
符号化方式を適用し、それによって形成した第1ビット
プレーンの符号データ(以下、第1ビットプレーン符号
データという)を符号量制御部3に出力する。
Upon receiving the eighth bit plane data, the bit plane encoding unit 2 applies a predetermined binary image encoding method to the eighth bit plane data, and generates the encoded data of the eighth bit plane ( (Hereinafter, referred to as an eighth bit plane code data) to the code amount control unit 3 and, when the seventh bit plane data is input, a predetermined binary image coding method is applied to the seventh bit plane data, thereby forming the seventh bit plane data. The encoded data of the seventh bit plane (hereinafter, referred to as the seventh bit plane encoded data) is output to the code amount control unit 3 and the sixth bit plane data is input. Code data of the sixth bit plane formed by applying the When code data is output to the code amount control unit 3 and the fifth bit plane data is input, a predetermined binary image coding method is applied to the fifth bit plane data, and the fifth bit plane When code data (hereinafter, referred to as fifth bit plane code data) is output to the code amount control unit 3 and the fourth bit plane data is input, a predetermined binary image coding method is applied to the fourth bit plane data, The code data of the fourth bit plane formed thereby (hereinafter, referred to as fourth bit plane code data) is output to the code amount control unit 3, and when the third bit plane data is input, a predetermined number of bits of the third bit plane data are determined. Value image coding method is applied, and code data of a third bit plane formed thereby (hereinafter, third bit plane) When the second bit plane data is input, a predetermined binary image coding method is applied to the second bit plane data, and the second bit plane formed by the second bit plane data is generated. Is output to the code amount control unit 3 and the first bit plane data is input, a predetermined binary image coding method is applied to the first bit plane data. The first bit plane code data (hereinafter, referred to as first bit plane code data) formed thereby is output to the code amount control unit 3.

【0035】符号量制御部3は、図2に示すように、ビ
ット深度データSnの値nを先頭に付加した状態で、ビ
ットプレーン符号化部2から順次入力される第8ビット
プレーン符号化データ〜第1ビットプレーン符号化デー
タを、符号化データPDとして順次出力するとともに、
その出力した符号化データPDが、あらかじめ設定され
ているデータ量に達すると、入力されたビットプレーン
符号化データの出力を停止し、符号化データPDの終了
をあらわす所定ビットパターンの終了符号Eを付加し、
符号化データPDの出力を終了する。
As shown in FIG. 2, the code amount control unit 3 adds the value n of the bit depth data Sn to the beginning, and outputs the eighth bit plane encoded data sequentially input from the bit plane encoding unit 2. To sequentially output the first bit plane encoded data as encoded data PD;
When the output encoded data PD reaches a preset data amount, the output of the input bit plane encoded data is stopped, and the end code E of a predetermined bit pattern indicating the end of the encoded data PD is changed. Add
The output of the encoded data PD ends.

【0036】したがって、このときには、設定されたデ
ータ量を超える部分の下位ビットプレーンのビットプレ
ーン符号化データは、符号データPDとして出力されな
いので、符号データPDのデータ量は、設定データ量に
制限される。
Accordingly, at this time, the bit plane coded data of the lower bit plane of the portion exceeding the set data amount is not output as the code data PD, so that the data amount of the code data PD is limited to the set data amount. You.

【0037】図3は、符号データPDに基づいて元の画
像データを形成する復号化装置の一例を示している。
FIG. 3 shows an example of a decoding device for forming original image data based on the code data PD.

【0038】同図において、ビットプレーン復号化部4
は、入力される符号データPDの先頭に付加されている
値nを取り出して、ビット深度データSSとしてビット
プレーンデータ作成部5に出力し、ビットプレーン単位
に、第8ビットプレーン符号データ、第7ビットプレー
ンデータ、…を、順次復号化し、それによって得た画像
データをビットプレーンデータ作成部5に出力する。ま
た、符号データPDの最後のビットプレーンのビットプ
レーン符号データは、1枚分の画像の途中で終わってい
て終了符号Eが付加されている場合があり、かかる場合
には、復号化できた部分まで画像データをビットプレー
ンデータ作成部5に出力するとともに、復号化エラーを
ビットプレーンデータ作成部5に通知する。
In the figure, a bit plane decoding unit 4
Extracts the value n added to the head of the input code data PD, outputs the value n as bit depth data SS to the bit plane data generation unit 5, and outputs the eighth bit plane code data and the seventh bit .. Are sequentially decoded, and the image data obtained by the decoding is output to the bit plane data creation unit 5. The bit plane code data of the last bit plane of the code data PD may end in the middle of one image and have an end code E added thereto. Up to this point, the image data is output to the bit plane data generator 5 and the decoding error is notified to the bit plane data generator 5.

【0039】ビットプレーンデータ作成部5は、ビット
プレーン復号化部4から完全なビットプレーンの画像デ
ータを入力すると、その画像データを当該ビットプレー
ンの画像データとして画像データ出力部7に出力する一
方、復号化エラーが通知されたビットプレーンについて
は、画像データが得られていない部分の画像データとし
て、挿入データ発生部6から発生させた挿入データを配
置し、1つのビットプレーンの画像データを完成し、そ
の完成後の画像データを、当該ビットプレーンの画像デ
ータとして画像データ出力部7に出力する。さらに、ビ
ットプレーンデータ作成部5は、ビットプレーン復号化
部4から出力されないビットプレーンの画像データにつ
いては、挿入データ発生部6から1枚分の画像データを
発生させ、その発生させた画像データを、それぞれのビ
ットプレーンの画像データとして、画像データ出力部7
に出力する。
When the complete bit plane image data is input from the bit plane decoding unit 4, the bit plane data creation unit 5 outputs the image data to the image data output unit 7 as the bit plane image data. With respect to the bit plane for which the decoding error has been notified, the insertion data generated from the insertion data generation unit 6 is arranged as the image data of the portion where the image data has not been obtained, and the image data of one bit plane is completed. And outputs the completed image data to the image data output unit 7 as image data of the bit plane. Further, the bit plane data generation unit 5 generates one image data from the insertion data generation unit 6 for the bit plane image data not output from the bit plane decoding unit 4, and divides the generated image data. , As image data of each bit plane, the image data output unit 7
Output to

【0040】また、挿入データ発生部6は、ビットプレ
ーンデータ作成部5から指定されたビット数のランダム
データ(「1」,「0」のランダムパターンデータ)を
発生するものであり、その出力データは、ビットプレー
ンデータ作成部5に加えられている。
The insertion data generator 6 generates random data of the number of bits specified by the bit plane data generator 5 (random pattern data of "1" and "0"), and outputs the output data. Are added to the bit plane data creation unit 5.

【0041】画像データ出力部7は、ビットプレーンデ
ータ作成部5から出力される各ビットプレーンの画像デ
ータに基づいて、白黒多階調画像データを形成し、その
形成した画像データPXrを複号化した白黒多階調画像
データとして、次段装置に出力する。
The image data output unit 7 forms black and white multi-tone image data based on the image data of each bit plane output from the bit plane data creation unit 5, and decodes the formed image data PXr. The image data is output to the next-stage device as black-and-white multi-tone image data.

【0042】図4は、図1に示した符号化装置の符号量
制御部3の処理例を示している。
FIG. 4 shows a processing example of the code amount control section 3 of the encoding apparatus shown in FIG.

【0043】まず、データ深度データSnの値nを符号
データPDの先頭に付加する態様で出力した後(処理1
01)、ビットプレーン符号化部2からデータを1単位
入力し(処理102)、入力したデータ量を累算する
(処理103)。
First, after outputting the value n of the data depth data Sn in a form of being added to the head of the code data PD (processing 1
01), one unit of data is input from the bit plane encoding unit 2 (process 102), and the input data amount is accumulated (process 103).

【0044】そして、累算値が、所定値KA以上になっ
ているかどうかを調べ(判断104)、判断104の結
果がNOになるときには、そのときに入力した1単位分
のデータを符号データPDとして出力し(処理10
5)、処理102に戻って、残りのデータの入出力を行
う。
Then, it is checked whether or not the accumulated value is equal to or greater than a predetermined value KA (decision 104). If the result of decision 104 is NO, one unit of data input at that time is encoded data PD (Process 10
5) Returning to the processing 102, the remaining data is input / output.

【0045】また、判断104の結果がYESになると
きには、出力した符号データPDのデータ量が制限デー
タ量に達した場合なので、このときには、所定の終了符
号Eを出力して(処理106)、1つの白黒多階調画像
に関する処理を終了する。
When the result of the determination 104 is YES, the data amount of the output code data PD has reached the limit data amount. At this time, a predetermined end code E is output (process 106). The processing for one monochrome multi-tone image is completed.

【0046】図5は、図3に示した復号化装置のビット
パターンデータ作成部5の処理例を示している。
FIG. 5 shows a processing example of the bit pattern data creating section 5 of the decoding apparatus shown in FIG.

【0047】まず、処理したビットプレーンの数を記憶
するためのカウンタLPを0に初期設定し(処理20
1)、ビットプレーン復号化部4から1つのビットプレ
ーンの復号化の終了が通知されるまで、ビットプレーン
復号化部4から出力されるデータを順次入力する(処理
202、判断203のNOループ)。
First, a counter LP for storing the number of processed bit planes is initialized to 0 (step 20).
1) Until the end of decoding of one bit plane is notified from the bit plane decoding unit 4, the data output from the bit plane decoding unit 4 is sequentially input (process 202, NO loop of judgment 203). .

【0048】ビットプレーン復号化部4から復号化終了
が通知されて判断203の結果がYESになると、カウ
ンタLPの値を1つ増やし(処理204)、そのとき
に、ビットプレーン復号化部4から復号化処理が正常終
了していることが通知されているかどうかを調べる(判
断205)。
When the end of decoding is notified from the bit plane decoding unit 4 and the result of the judgment 203 is YES, the value of the counter LP is increased by one (process 204). It is checked whether or not it has been notified that the decoding process has been completed normally (decision 205).

【0049】ビットプレーン復号化部4から復号化処理
が異常終了していることが通知されていない場合で、判
断205の結果がYESになるときには、そのときに入
力している1つのビットプレーンの画像データを、第
(n−(LP−1))ビットプレーンの画像データとし
て、画像データ出力部7に出力する(処理206)。そ
して、カウンタLPの値がn以上になっているかどうか
を調べ(判断207)、判断207の結果がNOになる
ときには、次のビットプレーンの画像データの処理のた
めに処理202に戻る。また、判断207の結果がYE
Sになるときには、1つの画像の復号化処理が終了した
ので、その動作を終了する。
If the bit plane decoding unit 4 has not notified that the decoding process has been abnormally terminated, and if the result of the judgment 205 is YES, the bit plane The image data is output to the image data output unit 7 as image data of the (n- (LP-1))-th bit plane (process 206). Then, it is checked whether or not the value of the counter LP is equal to or more than n (decision 207). When the result of the decision 207 is NO, the process returns to the process 202 for processing the image data of the next bit plane. Also, the result of judgment 207 is YE
At S, the decoding process for one image has been completed, and the operation is terminated.

【0050】また、ビットプレーン復号化部4から復号
化処理が異常終了していることが通知されている場合
で、判断205の結果がNOになるときには、そのとき
に入力している1つのビットプレーンの画像データのう
ち、残りの部分のデータを挿入データ発生部6より発生
させて、1つのビットプレーンの画像データを完成させ
(処理208)、その画像データを、第(n−(LP−
1))ビットプレーンの画像データとして、画像データ
出力部7に出力する(処理209)。
If the bit plane decoding unit 4 notifies that the decoding process has been abnormally terminated, and if the result of the judgment 205 is NO, one bit input at that time is output. Of the plane image data, the remaining data is generated by the insertion data generation unit 6 to complete the image data of one bit plane (process 208), and the image data is converted to the (n- (LP-
1)) Output to the image data output unit 7 as bit plane image data (process 209).

【0051】そして、カウンタLPの値がn以上になっ
ているかどうかを調べ(判断210)、判断210の結
果がNOになるときには、それ以降のビットプレーンに
ついては、符号データに含まれないので、1つのビット
プレーンのデータを挿入データ発生部6により発生させ
て入力し(処理211)、カウンタLPの値を1つ増や
し(処理212)、その生成した画像データを、第(n
−(LP−1))ビットプレーンの画像データとして、
画像データ出力部7に出力し(処理213)、全てのビ
ットプレーンの処理が終了したかどうかを調べるため
に、判断210に戻る。
Then, it is checked whether or not the value of the counter LP is equal to or more than n (decision 210). When the result of the decision 210 is NO, the bit planes thereafter are not included in the code data. The data of one bit plane is generated and input by the insertion data generator 6 (process 211), the value of the counter LP is increased by one (process 212), and the generated image data is sent to the (n
-(LP-1)) As bit plane image data,
The image data is output to the image data output unit 7 (processing 213), and the process returns to the determination 210 to check whether or not the processing of all the bit planes has been completed.

【0052】また、判断210の結果がYESになると
きには、1つの画像の復号化処理が終了したので、その
動作を終了する。
When the result of determination 210 is YES, the decoding process for one image has been completed, and the operation is terminated.

【0053】このように、本実施例では、符号データP
Dのデータ量を、設定値に制限しているので、例えば、
画像配布時の符号データの取り扱いが容易になる。
As described above, in this embodiment, the code data P
Since the data amount of D is limited to the set value, for example,
Handling of code data at the time of image distribution becomes easy.

【0054】また、符号データのデータ量の制限は、最
上位ビットのビットプレーンから下位ビットのビットプ
レーンに向けて行われるので、白黒多階調画像にとって
より大きな情報量を運ぶ上位ビットのビットプレーンの
符号データは必ず含まれ、その結果、データ量制限によ
り削除された下位ビットのビットプレーンを、例えば、
ランダムデータとして発生した場合でも、再生画像の画
質はかなり良好である。
Since the data amount of the code data is limited from the bit plane of the most significant bit to the bit plane of the lower bit, the bit plane of the upper bit which carries a larger amount of information for the monochrome multi-tone image Code data is always included, and as a result, the bit plane of the lower bits deleted due to the data amount limitation, for example,
Even when it is generated as random data, the quality of the reproduced image is quite good.

【0055】図6は、本発明の他の実施例にかかるカラ
ー多階調画像の符号化装置の一例を示している。この場
合、符号化対象となっているカラー多階調画像は、RG
B3原色の色成分をもち、おのおのの色成分について1
画素あたり8ビットのビット深度をもつものである。
FIG. 6 shows an example of a color multi-tone image coding apparatus according to another embodiment of the present invention. In this case, the color multi-tone image to be encoded is RG
It has color components of B3 primary color, and each color component is 1
It has a bit depth of 8 bits per pixel.

【0056】同図において、24ビットのカラー多階調
画像データCPは、色成分分解部10に加えられてい
る。色成分分解部10は、カラー多階調画像データCP
を8ビットのR成分のR多階調画像データCPr、8ビ
ットのG成分のG多階調画像データCPg、および、8
ビットのB成分のB多階調画像データCPbに分解する
ものであり、R多階調画像データCPr、G多階調画像
データCPg、および、B多階調画像データCPbは、
それぞれビットプレーン生成部12r,12g,12b
に加えられている。また、色成分分解部10は、カラー
多階調画像データCPにおける色成分数m、および、各
色成分についての1画素あたりのビット深度nをあらわ
すカラー関連情報SSaを符号出力部11に出力してい
る。
In the figure, 24-bit color multi-tone image data CP is applied to a color component separation section 10. The color component separation unit 10 outputs the color multi-tone image data CP.
Are converted into 8-bit R-component R multi-gradation image data CPr, 8-bit G-component G multi-gradation image data CPg, and 8
It is to be decomposed into B multi-gradation image data CPb of bit B component, and R multi-gradation image data CPr, G multi-gradation image data CPg, and B multi-gradation image data CPb are
Bit plane generators 12r, 12g, 12b respectively
Has been added to Further, the color component separation unit 10 outputs to the code output unit 11 color related information SSa indicating the number m of color components in the color multi-tone image data CP and the bit depth n per pixel for each color component. I have.

【0057】ビットプレーン生成部12rは、R多階調
画像データCPrのおのおのの画素について、第8ビッ
トのデータを抜き出して第8ビットプレーンデータを形
成してその第8ビットプレーンデータをビットプレーン
符号化部13rに出力し、次いで、第7ビットのデータ
を抜き出して第7ビットプレーンデータ形成してその第
7ビットプレーンデータをビットプレーン符号化部13
rに出力し、次いで、第6ビットのデータを抜き出して
第6ビットプレーンデータを形成してその第6ビットプ
レーンデータをビットプレーン符号化部13rに出力
し、次いで、第5ビットのデータを抜き出して第5ビッ
トプレーンデータを形成してその第5ビットプレーンデ
ータをビットプレーン符号化部13rに出力し、次い
で、第4ビットのデータを抜き出して第4ビットプレー
ンデータを形成してその第4ビットプレーンデータをビ
ットプレーン符号化部13rに出力し、次いで、第3ビ
ットのデータを抜き出して第3ビットプレーンデータを
形成してその第3ビットプレーンデータをビットプレー
ン符号化部13rに出力し、次いで、第2ビットのデー
タを抜き出して第2ビットプレーンデータを形成してそ
の第2ビットプレーンデータをビットプレーン符号化部
2に出力し、次いで、第1ビットのデータを抜き出して
第1ビットプレーンデータを形成してその第1ビットプ
レーンデータをビットプレーン符号化部13rに出力す
る。
The bit plane generation unit 12r extracts the eighth bit data for each pixel of the R multi-gradation image data CPr to form eighth bit plane data, and encodes the eighth bit plane data into a bit plane code. To the encoding unit 13r, and then extracts the seventh bit data to form seventh bit plane data, and encodes the seventh bit plane data into the bit plane encoding unit 13r.
r, and then extracts the sixth bit data to form sixth bit plane data, outputs the sixth bit plane data to the bit plane encoding unit 13r, and then extracts the fifth bit data. To form the fifth bit plane data and output the fifth bit plane data to the bit plane encoding unit 13r. Then, the fourth bit data is extracted to form the fourth bit plane data and the fourth bit plane data is formed. The plane data is output to the bit plane encoding unit 13r, then the third bit data is extracted to form third bit plane data, and the third bit plane data is output to the bit plane encoding unit 13r. , Extracting the second bit data to form second bit plane data, and forming the second bit plane Outputs over data to the bit-plane coding unit 2, then, it outputs the first bit plane data into bit plane coding unit 13r to form the first bit plane data by extracting first bit of data.

【0058】ビットプレーン符号化部13rは、第8ビ
ットプレーンデータを入力すると、第8ビットプレーン
データについて所定の二値画像符号化方式を適用し、そ
れによって形成した第8ビットプレーン符号データを符
号量制御部14rに出力し、第7ビットプレーンデータ
を入力すると、第7ビットプレーンデータについて所定
の二値画像符号化方式を適用し、それによって形成した
第7ビットプレーン符号データを符号量制御部14rに
出力し、第6ビットプレーンデータを入力すると、第6
ビットプレーンデータについて所定の二値画像符号化方
式を適用し、それによって形成した第6ビットプレーン
符号データを符号量制御部14rに出力し、第5ビット
プレーンデータを入力すると、第5ビットプレーンデー
タについて所定の二値画像符号化方式を適用し、それに
よって形成した第5ビットプレーン符号データを符号量
制御部14rに出力し、第4ビットプレーンデータを入
力すると、第4ビットプレーンデータについて所定の二
値画像符号化方式を適用し、それによって形成した第4
ビットプレーン符号データを符号量制御部14rに出力
し、第3ビットプレーンデータを入力すると、第3ビッ
トプレーンデータについて所定の二値画像符号化方式を
適用し、それによって形成した第3ビットプレーン符号
データを符号量制御部14rに出力し、第2ビットプレ
ーンデータを入力すると、第2ビットプレーンデータに
ついて所定の二値画像符号化方式を適用し、それによっ
て形成した第2ビットプレーン符号データを符号量制御
部14rに出力し、第1ビットプレーンデータを入力す
ると、第1ビットプレーンデータについて所定の二値画
像符号化方式を適用し、それによって形成した第1ビッ
トプレーン符号データを符号量制御部14rに出力す
る。
Upon receiving the eighth bit plane data, the bit plane encoding unit 13r applies a predetermined binary image encoding method to the eighth bit plane data, and encodes the eighth bit plane encoded data formed thereby. When the data is output to the amount control unit 14r and the seventh bit plane data is input, a predetermined binary image encoding method is applied to the seventh bit plane data, and the seventh bit plane coded data formed thereby is encoded by the code amount control unit. 14r, and when the sixth bit plane data is input, the sixth
A predetermined binary image coding method is applied to the bit plane data, and the sixth bit plane code data formed by the application is output to the code amount control unit 14r. When the fifth bit plane data is input, the fifth bit plane data is input. , A predetermined binary image coding method is applied, the fifth bit plane code data formed thereby is output to the code amount control unit 14r, and the fourth bit plane data is input. Applying a binary image coding scheme, the fourth
When the bit plane code data is output to the code amount control unit 14r and the third bit plane data is input, a predetermined binary image coding method is applied to the third bit plane data, and the third bit plane code formed thereby is formed. When the data is output to the code amount control unit 14r and the second bit plane data is input, a predetermined binary image encoding method is applied to the second bit plane data, and the second bit plane code data formed thereby is encoded. When the first bit plane data is output to the amount control unit 14r and the first bit plane data is input, a predetermined binary image encoding method is applied to the first bit plane data, and the first bit plane code data formed thereby is converted into the code amount control unit. 14r.

【0059】符号量制御部14rは、ビットプレーン符
号化部13rから順次入力される第8ビットプレーン符
号化データ〜第1ビットプレーン符号化データを、符号
化データとして順次出力するとともに、その出力した符
号化データが、あらかじめ設定されているデータ量に達
すると、入力されたビットプレーン符号化データの出力
を停止し、符号化データの終了をあらわす所定ビットパ
ターンの終了符号Eを付加し、符号化データの出力を終
了するものであり、その符号データは、符号出力部11
に加えられている。
The code amount control unit 14r sequentially outputs the eighth bit plane encoded data to the first bit plane encoded data sequentially input from the bit plane encoding unit 13r as encoded data, and outputs the encoded data. When the coded data reaches a preset data amount, the output of the input bit plane coded data is stopped, and an end code E of a predetermined bit pattern representing the end of the coded data is added, and The output of the data is terminated, and the code data is output to the code output unit 11.
Has been added to

【0060】ビットプレーン生成部12gは、G多階調
画像データCPgのおのおのの画素について、第8ビッ
トのデータを抜き出して第8ビットプレーンデータを形
成してその第8ビットプレーンデータをビットプレーン
符号化部13gに出力し、次いで、第7ビットのデータ
を抜き出して第7ビットプレーンデータ形成してその第
7ビットプレーンデータをビットプレーン符号化部13
gに出力し、次いで、第6ビットのデータを抜き出して
第6ビットプレーンデータを形成してその第6ビットプ
レーンデータをビットプレーン符号化部13gに出力
し、次いで、第5ビットのデータを抜き出して第5ビッ
トプレーンデータを形成してその第5ビットプレーンデ
ータをビットプレーン符号化部13gに出力し、次い
で、第4ビットのデータを抜き出して第4ビットプレー
ンデータを形成してその第4ビットプレーンデータをビ
ットプレーン符号化部13gに出力し、次いで、第3ビ
ットのデータを抜き出して第3ビットプレーンデータを
形成してその第3ビットプレーンデータをビットプレー
ン符号化部13gに出力し、次いで、第2ビットのデー
タを抜き出して第2ビットプレーンデータを形成してそ
の第2ビットプレーンデータをビットプレーン符号化部
2に出力し、次いで、第1ビットのデータを抜き出して
第1ビットプレーンデータを形成してその第1ビットプ
レーンデータをビットプレーン符号化部13gに出力す
る。
The bit plane generation unit 12g extracts the eighth bit data for each pixel of the G multi-tone image data CPg to form eighth bit plane data, and encodes the eighth bit plane data into a bit plane code. Output to the encoding unit 13g, and then extracts the seventh bit data to form seventh bit plane data, and encodes the seventh bit plane data into the bit plane encoding unit 13g.
g, and then extracts the sixth bit data to form sixth bit plane data, outputs the sixth bit plane data to the bit plane encoding unit 13g, and then extracts the fifth bit data. To generate the fifth bit plane data and output the fifth bit plane data to the bit plane encoding unit 13g. Then, the fourth bit data is extracted to form the fourth bit plane data and the fourth bit plane data is formed. The plane data is output to the bit plane encoding unit 13g, the third bit data is extracted to form third bit plane data, and the third bit plane data is output to the bit plane encoding unit 13g. , The second bit data is extracted to form second bit plane data, and the second bit plane Outputs over data to the bit-plane coding unit 2, then, it outputs the first bit plane data into bit plane coding unit 13g to form a first bit plane data by extracting first bit of data.

【0061】ビットプレーン符号化部13gは、第8ビ
ットプレーンデータを入力すると、第8ビットプレーン
データについて所定の二値画像符号化方式を適用し、そ
れによって形成した第8ビットプレーン符号データを符
号量制御部14gに出力し、第7ビットプレーンデータ
を入力すると、第7ビットプレーンデータについて所定
の二値画像符号化方式を適用し、それによって形成した
第7ビットプレーン符号データを符号量制御部14gに
出力し、第6ビットプレーンデータを入力すると、第6
ビットプレーンデータについて所定の二値画像符号化方
式を適用し、それによって形成した第6ビットプレーン
符号データを符号量制御部14gに出力し、第5ビット
プレーンデータを入力すると、第5ビットプレーンデー
タについて所定の二値画像符号化方式を適用し、それに
よって形成した第5ビットプレーン符号データを符号量
制御部14gに出力し、第4ビットプレーンデータを入
力すると、第4ビットプレーンデータについて所定の二
値画像符号化方式を適用し、それによって形成した第4
ビットプレーン符号データを符号量制御部14gに出力
し、第3ビットプレーンデータを入力すると、第3ビッ
トプレーンデータについて所定の二値画像符号化方式を
適用し、それによって形成した第3ビットプレーン符号
データを符号量制御部14gに出力し、第2ビットプレ
ーンデータを入力すると、第2ビットプレーンデータに
ついて所定の二値画像符号化方式を適用し、それによっ
て形成した第2ビットプレーン符号データを符号量制御
部14gに出力し、第1ビットプレーンデータを入力す
ると、第1ビットプレーンデータについて所定の二値画
像符号化方式を適用し、それによって形成した第1ビッ
トプレーン符号データを符号量制御部14gに出力す
る。
Upon receiving the eighth bit plane data, the bit plane encoding unit 13g applies a predetermined binary image encoding method to the eighth bit plane data, and encodes the eighth bit plane encoded data formed thereby. When the data is output to the amount control unit 14g and the seventh bit plane data is input, a predetermined binary image encoding method is applied to the seventh bit plane data, and the seventh bit plane code data formed thereby is encoded by the code amount control unit. 14g, and the sixth bit plane data is input.
A predetermined binary image coding method is applied to the bit plane data, the sixth bit plane code data formed by the predetermined method is output to the code amount control unit 14g, and the fifth bit plane data is input. Is applied to the code amount control unit 14g, and when the fourth bit plane data is inputted, a predetermined binary image coding method is applied to the fourth bit plane data. Applying a binary image coding scheme and forming the fourth
When the bit plane code data is output to the code amount control unit 14g and the third bit plane data is input, a predetermined binary image coding method is applied to the third bit plane data, and the third bit plane code formed thereby is applied. When the data is output to the code amount control unit 14g and the second bit plane data is input, a predetermined binary image encoding method is applied to the second bit plane data, and the second bit plane code data formed thereby is encoded. When the first bit plane data is output to the amount control unit 14g and the first bit plane data is input, a predetermined binary image coding method is applied to the first bit plane data, and the first bit plane code data formed thereby is encoded by the code amount control unit. Output to 14g.

【0062】符号量制御部14gは、ビットプレーン符
号化部13gから順次入力される第8ビットプレーン符
号化データ〜第1ビットプレーン符号化データを、符号
化データとして順次出力するとともに、その出力した符
号化データが、あらかじめ設定されているデータ量に達
すると、入力されたビットプレーン符号化データの出力
を停止し、符号化データの終了をあらわす所定ビットパ
ターンの終了符号Eを付加し、符号化データの出力を終
了するものであり、その符号データは、符号出力部11
に加えられている。
The code amount control unit 14g sequentially outputs the eighth bit plane encoded data to the first bit plane encoded data sequentially input from the bit plane encoding unit 13g as encoded data, and outputs the encoded data. When the coded data reaches a preset data amount, the output of the input bit plane coded data is stopped, and an end code E of a predetermined bit pattern representing the end of the coded data is added, and The output of the data is terminated, and the code data is output to the code output unit 11.
Has been added to

【0063】ビットプレーン生成部12bは、B多階調
画像データCPbのおのおのの画素について、第8ビッ
トのデータを抜き出して第8ビットプレーンデータを形
成してその第8ビットプレーンデータをビットプレーン
符号化部13bに出力し、次いで、第7ビットのデータ
を抜き出して第7ビットプレーンデータ形成してその第
7ビットプレーンデータをビットプレーン符号化部13
bに出力し、次いで、第6ビットのデータを抜き出して
第6ビットプレーンデータを形成してその第6ビットプ
レーンデータをビットプレーン符号化部13bに出力
し、次いで、第5ビットのデータを抜き出して第5ビッ
トプレーンデータを形成してその第5ビットプレーンデ
ータをビットプレーン符号化部13bに出力し、次い
で、第4ビットのデータを抜き出して第4ビットプレー
ンデータを形成してその第4ビットプレーンデータをビ
ットプレーン符号化部13bに出力し、次いで、第3ビ
ットのデータを抜き出して第3ビットプレーンデータを
形成してその第3ビットプレーンデータをビットプレー
ン符号化部13bに出力し、次いで、第2ビットのデー
タを抜き出して第2ビットプレーンデータを形成してそ
の第2ビットプレーンデータをビットプレーン符号化部
2に出力し、次いで、第1ビットのデータを抜き出して
第1ビットプレーンデータを形成してその第1ビットプ
レーンデータをビットプレーン符号化部13bに出力す
る。
The bit plane generating section 12b extracts the eighth bit data for each pixel of the B multi-gradation image data CPb to form eighth bit plane data, and encodes the eighth bit plane data into a bit plane code. And outputs the seventh bit data to form a seventh bit plane data. The seventh bit plane data is output to the bit plane encoding unit 13b.
b, and then extracts the sixth bit data to form sixth bit plane data, outputs the sixth bit plane data to the bit plane encoding unit 13b, and then extracts the fifth bit data. To form the fifth bit plane data and output the fifth bit plane data to the bit plane encoding unit 13b, and then extract the fourth bit data to form the fourth bit plane data and generate the fourth bit plane data. The plane data is output to the bit plane encoding unit 13b, then the third bit data is extracted to form third bit plane data, and the third bit plane data is output to the bit plane encoding unit 13b. , The second bit data is extracted to form second bit plane data, and the second bit plane Outputs over data to the bit-plane coding unit 2, then, it outputs the first bit plane data into bit plane coding unit 13b to form a first bit plane data by extracting first bit of data.

【0064】ビットプレーン符号化部13bは、第8ビ
ットプレーンデータを入力すると、第8ビットプレーン
データについて所定の二値画像符号化方式を適用し、そ
れによって形成した第8ビットプレーン符号データを符
号量制御部14bに出力し、第7ビットプレーンデータ
を入力すると、第7ビットプレーンデータについて所定
の二値画像符号化方式を適用し、それによって形成した
第7ビットプレーン符号データを符号量制御部14bに
出力し、第6ビットプレーンデータを入力すると、第6
ビットプレーンデータについて所定の二値画像符号化方
式を適用し、それによって形成した第6ビットプレーン
符号データを符号量制御部14bに出力し、第5ビット
プレーンデータを入力すると、第5ビットプレーンデー
タについて所定の二値画像符号化方式を適用し、それに
よって形成した第5ビットプレーン符号データを符号量
制御部14bに出力し、第4ビットプレーンデータを入
力すると、第4ビットプレーンデータについて所定の二
値画像符号化方式を適用し、それによって形成した第4
ビットプレーン符号データを符号量制御部14bに出力
し、第3ビットプレーンデータを入力すると、第3ビッ
トプレーンデータについて所定の二値画像符号化方式を
適用し、それによって形成した第3ビットプレーン符号
データを符号量制御部14bに出力し、第2ビットプレ
ーンデータを入力すると、第2ビットプレーンデータに
ついて所定の二値画像符号化方式を適用し、それによっ
て形成した第2ビットプレーン符号データを符号量制御
部14bに出力し、第1ビットプレーンデータを入力す
ると、第1ビットプレーンデータについて所定の二値画
像符号化方式を適用し、それによって形成した第1ビッ
トプレーン符号データを符号量制御部14bに出力す
る。
Upon receiving the eighth bit plane data, the bit plane encoding unit 13b applies a predetermined binary image encoding method to the eighth bit plane data, and encodes the eighth bit plane encoded data formed thereby. When the data is output to the amount control unit 14b and the seventh bit plane data is input, a predetermined binary image encoding method is applied to the seventh bit plane data, and the seventh bit plane code data formed thereby is encoded by the code amount control unit. 14b, and the sixth bit plane data is input.
A predetermined binary image encoding method is applied to the bit plane data, the sixth bit plane code data formed by the predetermined binary image coding method is output to the code amount control unit 14b, and the fifth bit plane data is input. , A predetermined binary image encoding method is applied, the fifth bit plane code data formed thereby is output to the code amount control unit 14b, and the fourth bit plane data is input. Applying a binary image coding scheme, the fourth
When the bit plane code data is output to the code amount control unit 14b and the third bit plane data is input, a predetermined binary image coding method is applied to the third bit plane data, and the third bit plane code formed thereby is applied. When the data is output to the code amount control unit 14b and the second bit plane data is input, a predetermined binary image encoding method is applied to the second bit plane data, and the second bit plane code data formed thereby is encoded. When the first bit plane data is output to the amount control unit 14b and the first bit plane data is input, a predetermined binary image coding method is applied to the first bit plane data, and the first bit plane code data formed thereby is encoded by the code amount control unit. 14b.

【0065】符号量制御部14bは、ビットプレーン符
号化部13bから順次入力される第8ビットプレーン符
号化データ〜第1ビットプレーン符号化データを、符号
化データとして順次出力するとともに、その出力した符
号化データが、あらかじめ設定されているデータ量に達
すると、入力されたビットプレーン符号化データの出力
を停止し、符号化データの終了をあらわす所定ビットパ
ターンの終了符号Eを付加し、符号化データの出力を終
了するものであり、その符号データは、符号出力部11
に加えられている。
The code amount control unit 14b sequentially outputs the eighth bit plane encoded data to the first bit plane encoded data sequentially input from the bit plane encoding unit 13b as encoded data, and outputs the encoded data. When the coded data reaches a preset data amount, the output of the input bit plane coded data is stopped, and an end code E of a predetermined bit pattern representing the end of the coded data is added, and The output of the data is terminated, and the code data is output to the code output unit 11.
Has been added to

【0066】符号出力部11は、図7(a)に示したよ
うに、色成分数mの値とビット深度nの値を先頭に付加
した状態で、符号量制御部14rから出力されるR成分
の符号データ、符号量制御部14gから出力されるG成
分の符号データ、および、符号量制御部14bから出力
されるB成分の符号データを順次配置してなるカラー符
号データCDを出力する。また、おのおのの色成分の符
号データは、同図(b)に示すように、第8ビットプレ
ーン符号化データ〜第1ビットプレーン符号化データを
順次配置するとともに、最後に符号化データの終了をあ
らわす所定ビットパターンの終了符号Eを付加した形式
のものである。
As shown in FIG. 7A, the code output unit 11 adds the value of the number m of color components and the value of the bit depth n to the head, and outputs the R output from the code amount control unit 14r. The color code data CD in which the component code data, the G component code data output from the code amount control unit 14g, and the B component code data output from the code amount control unit 14b are sequentially arranged is output. As shown in FIG. 2B, the coded data of each color component is arranged in order from the eighth bit plane coded data to the first bit plane coded data, and finally the end of the coded data is determined. This is a format in which an end code E of a predetermined bit pattern is added.

【0067】したがって、このときには、各色成分につ
いて、設定されたデータ量を超える部分の下位ビットプ
レーンのビットプレーン符号化データは、として出力さ
れないので、おのおのの色成分の符号データのデータ量
は、設定データ量に制限される。
Therefore, at this time, for each color component, the bit plane coded data of the lower bit plane of the portion exceeding the set data amount is not output as, and the data amount of the code data of each color component is Limited by data volume.

【0068】図8は、カラー符号データCDに基づいて
元の画像データを形成する復号化装置の一例を示してい
る。
FIG. 8 shows an example of a decoding apparatus for forming original image data based on color code data CD.

【0069】同図において、符号分配部15は、カラー
符号データCDから、R成分の符号データCDr、G成
分の符号データCDg、および、B成分の符号データC
Dbをそれぞれ抽出するものであり、符号データCDr
はビットプレーン復号化部16rに加えられ、符号デー
タCDgはビットプレーン復号化部16gに加えられ、
符号データCDbはビットプレーン復号化部16bに加
えられている。また、符号分配部15は、入力されるカ
ラー符号データCDの先頭に付加されている値nを取り
出して、ビット深度データSSnとしてビットプレーン
データ作成部17r,17g,17bにそれぞれ出力し
ている。
In the figure, a code distribution section 15 converts an R component code data CDr, a G component code data CDg, and a B component code data C from a color code data CD.
Db, respectively, to extract the code data CDr
Is applied to the bit plane decoding unit 16r, and the code data CDg is applied to the bit plane decoding unit 16g.
The code data CDb is added to the bit plane decoding unit 16b. The code distribution unit 15 extracts the value n added to the head of the input color code data CD, and outputs the value n to the bit plane data creation units 17r, 17g, and 17b as bit depth data SSn.

【0070】ビットプレーン復号化部16rは、入力さ
れる符号データCDrについて、ビットプレーン単位
に、第8ビットプレーン符号データ、第7ビットプレー
ンデータ、…を、順次復号化し、それによって得た画像
データをビットプレーンデータ作成部17rに出力す
る。また、符号データCDrの最後のビットプレーンの
ビットプレーン符号データは、1枚分の画像の途中で終
わっていて終了符号Eが付加されている場合があり、か
かる場合には、復号化できた部分まで画像データをビッ
トプレーンデータ作成部17rに出力するとともに、復
号化エラーをあらわす復号化終了信号SSbを、ビット
プレーンデータ作成部17rに出力する。それ以外の場
合には、1つのビットプレーンデータの復号化を終了し
た時点で、復号化正常終了をあらわす復号化終了信号S
Sbをビットプレーンデータ作成部17rに出力する。
The bit plane decoding unit 16r sequentially decodes the eighth bit plane code data, the seventh bit plane data,... For the input code data CDr in bit plane units, and obtains the image data Is output to the bit plane data creation unit 17r. Also, the bit plane code data of the last bit plane of the code data CDr may end in the middle of one image and have an end code E added thereto. Until the image data is output to the bit plane data generation unit 17r, a decoding end signal SSb indicating a decoding error is output to the bit plane data generation unit 17r. In other cases, when the decoding of one bit plane data is completed, a decoding end signal S indicating a normal end of decoding is obtained.
Sb is output to the bit plane data creation unit 17r.

【0071】ビットプレーンデータ作成部17rは、ビ
ットプレーン復号化部16rから完全なビットプレーン
の画像データを入力すると、その画像データを当該ビッ
トプレーンの画像データとして画像データ出力部19r
に出力する一方、復号化エラーが通知されたビットプレ
ーンについては、画像データが得られていない部分の画
像データとして、挿入データ発生部18rから発生させ
た挿入データを配置し、1つのビットプレーンの画像デ
ータを完成し、その完成後の画像データを、当該ビット
プレーンの画像データとして画像データ出力部19rに
出力する。さらに、ビットプレーンデータ作成部17r
は、ビットプレーン復号化部16rから出力されないビ
ットプレーンの画像データについては、挿入データ発生
部18rから1枚分の画像データを発生させ、その発生
させた画像データを、それぞれのビットプレーンの画像
データとして、画像データ出力部19rに出力する。
When the complete bit plane image data is input from the bit plane decoding unit 16r, the bit plane data creation unit 17r converts the image data into image data output unit 19r as the bit plane image data.
On the other hand, regarding the bit plane for which the decoding error has been notified, the insertion data generated from the insertion data generating unit 18r is arranged as the image data of the portion where the image data has not been obtained, and one bit plane is output. The image data is completed, and the completed image data is output to the image data output unit 19r as the bit plane image data. Further, the bit plane data creation unit 17r
For the bit-plane image data not output from the bit-plane decoding unit 16r, one image data is generated from the insertion data generation unit 18r, and the generated image data is Is output to the image data output unit 19r.

【0072】また、挿入データ発生部18rは、ビット
プレーンデータ作成部17rから指定されたビット数の
ランダムデータ(「1」,「0」ランダムパターンデー
タ)を発生するものであり、その出力データは、ビット
プレーンデータ作成部17rに加えられている。
The insertion data generator 18r generates random data ("1", "0" random pattern data) having the number of bits specified by the bit plane data generator 17r. , Bit plane data creation unit 17r.

【0073】画像データ出力部19rは、ビットプレー
ンデータ作成部17rから出力される各ビットプレーン
の画像データに基づいて、R成分多階調画像データを形
成し、その形成したR成分多階調画像データを画像デー
タ変換出力部20に出力する。
The image data output section 19r forms R component multi-tone image data based on the image data of each bit plane output from the bit plane data creation section 17r, and forms the formed R component multi-tone image. The data is output to the image data conversion output unit 20.

【0074】ビットプレーン復号化部16gは、入力さ
れる符号データCDgについて、ビットプレーン単位
に、第8ビットプレーン符号データ、第7ビットプレー
ンデータ、…を、順次復号化し、それによって得た画像
データをビットプレーンデータ作成部17gに出力す
る。また、符号データCDgの最後のビットプレーンの
ビットプレーン符号データは、1枚分の画像の途中で終
わっていて終了符号Eが付加されている場合があり、か
かる場合には、復号化できた部分まで画像データをビッ
トプレーンデータ作成部17gに出力するとともに、復
号化エラーをあらわす復号化終了信号SSbを、ビット
プレーンデータ作成部17gに出力する。それ以外の場
合には、1つのビットプレーンデータの復号化を終了し
た時点で、復号化正常終了をあらわす復号化終了信号S
Sbをビットプレーンデータ作成部17gに出力する。
The bit plane decoding unit 16g sequentially decodes the eighth bit plane code data, the seventh bit plane data,... In units of bit planes for the input code data CDg, and obtains the image data obtained thereby. Is output to the bit plane data creation unit 17g. Also, the bit plane code data of the last bit plane of the code data CDg may end in the middle of one image and have an end code E added thereto. Until the image data is output to the bit plane data generation unit 17g, a decoding end signal SSb indicating a decoding error is output to the bit plane data generation unit 17g. In other cases, when the decoding of one bit plane data is completed, a decoding end signal S indicating a normal end of decoding is obtained.
Sb is output to the bit plane data creation unit 17g.

【0075】ビットプレーンデータ作成部17gは、ビ
ットプレーン復号化部16gから完全なビットプレーン
の画像データを入力すると、その画像データを当該ビッ
トプレーンの画像データとして画像データ出力部19g
に出力する一方、復号化エラーが通知されたビットプレ
ーンについては、画像データが得られていない部分の画
像データとして、挿入データ発生部18gから発生させ
た挿入データを配置し、1つのビットプレーンの画像デ
ータを完成し、その完成後の画像データを、当該ビット
プレーンの画像データとして画像データ出力部19gに
出力する。さらに、ビットプレーンデータ作成部17g
は、ビットプレーン復号化部16gから出力されないビ
ットプレーンの画像データについては、挿入データ発生
部18gから1枚分の画像データを発生させ、その発生
させた画像データを、それぞれのビットプレーンの画像
データとして、画像データ出力部19gに出力する。
When the complete bit plane image data is input from the bit plane decoding unit 16g, the bit plane data generating unit 17g converts the image data into image data output unit 19g as the bit plane image data.
On the other hand, for the bit plane for which the decoding error has been notified, the insertion data generated from the insertion data generating unit 18g is arranged as the image data of the portion where the image data has not been obtained, and one bit plane is output. The image data is completed, and the completed image data is output to the image data output unit 19g as the image data of the bit plane. Further, a bit plane data creation unit 17g
For the bit plane image data not output from the bit plane decoding unit 16g, the insertion data generation unit 18g generates one image data, and the generated image data is converted to the bit plane image data. Is output to the image data output unit 19g.

【0076】また、挿入データ発生部18gは、ビット
プレーンデータ作成部17gから指定されたビット数の
ランダムデータ(「1」,「0」ランダムパターンデー
タ)を発生するものであり、その出力データは、ビット
プレーンデータ作成部17gに加えられている。
The insertion data generator 18g generates random data ("1", "0" random pattern data) of the number of bits designated by the bit plane data generator 17g, and its output data is , Bit plane data creation unit 17g.

【0077】画像データ出力部19gは、ビットプレー
ンデータ作成部17gから出力される各ビットプレーン
の画像データに基づいて、G成分多階調画像データを形
成し、その形成したG成分多階調画像データを画像デー
タ変換出力部20に出力する。
The image data output unit 19g forms G component multi-tone image data based on the image data of each bit plane output from the bit plane data creation unit 17g, and forms the formed G component multi-tone image. The data is output to the image data conversion output unit 20.

【0078】ビットプレーン復号化部16bは、入力さ
れる符号データCDbについて、ビットプレーン単位
に、第8ビットプレーン符号データ、第7ビットプレー
ンデータ、…を、順次復号化し、それによって得た画像
データをビットプレーンデータ作成部17bに出力す
る。また、符号データCDbの最後のビットプレーンの
ビットプレーン符号データは、1枚分の画像の途中で終
わっていて終了符号Eが付加されている場合があり、か
かる場合には、復号化できた部分まで画像データをビッ
トプレーンデータ作成部17bに出力するとともに、復
号化エラーをあらわす復号化終了信号SSbを、ビット
プレーンデータ作成部17bに出力する。それ以外の場
合には、1つのビットプレーンデータの復号化を終了し
た時点で、復号化正常終了をあらわす復号化終了信号S
Sbをビットプレーンデータ作成部17bに出力する。
The bit plane decoding unit 16b sequentially decodes the eighth bit plane code data, the seventh bit plane data,... In units of bit planes for the input code data CDb, and obtains the image data obtained thereby. Is output to the bit plane data creation unit 17b. Also, the bit plane code data of the last bit plane of the code data CDb may end in the middle of one image and have an end code E added thereto. Until the image data is output to the bit plane data generation unit 17b, a decoding end signal SSb indicating a decoding error is output to the bit plane data generation unit 17b. In other cases, when the decoding of one bit plane data is completed, a decoding end signal S indicating a normal end of decoding is obtained.
Sb is output to the bit plane data creation unit 17b.

【0079】ビットプレーンデータ作成部17bは、ビ
ットプレーン復号化部16bから完全なビットプレーン
の画像データを入力すると、その画像データを当該ビッ
トプレーンの画像データとして画像データ出力部19b
に出力する一方、復号化エラーが通知されたビットプレ
ーンについては、画像データが得られていない部分の画
像データとして、挿入データ発生部18bから発生させ
た挿入データを配置し、1つのビットプレーンの画像デ
ータを完成し、その完成後の画像データを、当該ビット
プレーンの画像データとして画像データ出力部19bに
出力する。さらに、ビットプレーンデータ作成部17b
は、ビットプレーン復号化部16bから出力されないビ
ットプレーンの画像データについては、挿入データ発生
部18bから1枚分の画像データを発生させ、その発生
させた画像データを、それぞれのビットプレーンの画像
データとして、画像データ出力部19bに出力する。
When the complete bit plane image data is input from the bit plane decoding unit 16b, the bit plane data creation unit 17b converts the image data into image data output unit 19b as the bit plane image data.
On the other hand, for the bit plane for which the decoding error has been notified, the insertion data generated from the insertion data generating unit 18b is arranged as the image data of the portion for which the image data has not been obtained, and one bit plane is output. The image data is completed, and the completed image data is output to the image data output unit 19b as the bit plane image data. Further, the bit plane data creation unit 17b
For the bit plane image data that is not output from the bit plane decoding unit 16b, the insertion data generation unit 18b generates one image data, and the generated image data is used as the bit plane image data. Is output to the image data output unit 19b.

【0080】また、挿入データ発生部18bは、ビット
プレーンデータ作成部17bから指定されたビット数の
ランダムデータ(「1」,「0」ランダムパターンデー
タ)を発生するものであり、その出力データは、ビット
プレーンデータ作成部17bに加えられている。
The insertion data generator 18b generates random data ("1", "0" random pattern data) having the number of bits specified by the bit plane data generator 17b. , And bit plane data creation unit 17b.

【0081】画像データ出力部19bは、ビットプレー
ンデータ作成部17bから出力される各ビットプレーン
の画像データに基づいて、B成分多階調画像データを形
成し、その形成したB成分多階調画像データを画像デー
タ変換出力部20に出力する。
The image data output section 19b forms B-component multi-tone image data based on the image data of each bit plane output from the bit-plane data creation section 17b, and forms the formed B-component multi-tone image. The data is output to the image data conversion output unit 20.

【0082】画像データ変換出力部20は、画像データ
出力部19rから加えられるR成分多階調画像データ、
画像データ出力部19gから加えられるG成分多階調画
像データ、および、画像データ出力部19bから加えら
れるB成分多階調画像データに基づいて、24ビットの
原画像の画像データCPrを形成するものであり、その
画像データCPrは、次段装置に出力されている。
The image data conversion and output unit 20 outputs the R component multi-tone image data added from the image data output unit 19r,
Forming 24-bit original image image data CPr based on G component multi-tone image data added from the image data output portion 19g and B component multi-tone image data added from the image data output portion 19b The image data CPr is output to the next-stage device.

【0083】図9は、図6に示した符号化装置の符号量
制御部14(14r,14g,14b)の処理例を示し
ている。
FIG. 9 shows a processing example of the code amount control unit 14 (14r, 14g, 14b) of the encoding apparatus shown in FIG.

【0084】まず、ビットプレーン符号化部13(13
r,13g,13b)からデータを1単位入力し(処理
301)、入力したデータ量を累算する(処理30
2)。そして、累算値が、所定値KA以上になっている
かどうかを調べ(判断303)、判断303の結果がN
Oになるときには、そのときに入力した1単位分のデー
タを符号データとして出力し(処理304)、処理30
1に戻って、残りのデータの入出力を行う。
First, the bit plane encoding unit 13 (13
r, 13g, 13b), one unit of data is input (process 301), and the input data amount is accumulated (process 30).
2). Then, it is determined whether or not the accumulated value is equal to or greater than a predetermined value KA (determination 303).
When it becomes O, the data for one unit input at that time is output as code data (process 304), and the process 30
Returning to step 1, the remaining data is input / output.

【0085】また、判断303の結果がYESになると
きには、出力した符号データのデータ量が制限データ量
に達した場合なので、このときには、所定の終了符号E
を出力して(処理305)、1つのカラー多階調画像に
関する処理を終了する。
When the result of determination 303 is YES, the data amount of the output code data has reached the limit data amount, and in this case, a predetermined end code E
Is output (process 305), and the process for one color multi-tone image ends.

【0086】このようにして、本実施例では、おのおの
の色成分の符号データのデータ量を、設定値に制限して
いるので、例えば、画像配布時の符号データの取り扱い
が容易になる。
As described above, in this embodiment, since the data amount of the code data of each color component is limited to the set value, for example, the handling of the code data at the time of image distribution becomes easy.

【0087】また、符号データのデータ量の制限は、最
上位ビットのビットプレーンから下位ビットのビットプ
レーンに向けて行われるので、白黒多階調画像にとって
より大きな情報量を運ぶ上位ビットのビットプレーンの
符号データは必ず含まれ、その結果、データ量制限によ
り削除された下位ビットのビットプレーンを、例えば、
ランダムデータとして発生した場合でも、再生画像の画
質はかなり良好である。
Since the amount of code data is limited from the most significant bit plane to the least significant bit plane, the upper bit plane, which carries a greater amount of information for a monochrome multi-tone image, is used. Code data is always included, and as a result, the bit plane of the lower bits deleted due to the data amount limitation, for example,
Even when it is generated as random data, the quality of the reproduced image is quite good.

【0088】図10は、本発明のさらに他の実施例にか
かるカラー多階調画像の符号化装置の一例を示してい
る。この場合、符号化対象となっているカラー多階調画
像は、RGB3原色の色成分をもち、おのおのの色成分
について1画素あたり8ビットのビット深度をもつもの
である。
FIG. 10 shows an example of a color multi-tone image coding apparatus according to still another embodiment of the present invention. In this case, the color multi-tone image to be encoded has three primary color components of RGB, and each color component has a bit depth of 8 bits per pixel.

【0089】同図において、24ビットのカラー多階調
画像データCPは、色成分分解部21に加えられてい
る。色成分分解部21は、カラー多階調画像データCP
をそれぞれ8ビットのR成分のR多階調画像データ、G
成分のG多階調画像データ、および、B成分のB多階調
画像データに、順次分解するものであり、R多階調画像
データ、G多階調画像データ、および、B多階調画像デ
ータは、順次、ビットプレーン生成部22に加えられて
いる。また、色成分分解部21は、カラー多階調画像デ
ータCPにおける色成分数m、および、各色成分につい
ての1画素あたりのビット深度nをあらわすカラー関連
情報SSaを符号出力部25に出力している。
In the figure, 24-bit color multi-tone image data CP is applied to a color component separation section 21. The color component separation section 21 outputs the color multi-tone image data CP
Is the 8-bit R-component R multi-tone image data, G
The image data is sequentially decomposed into G multi-tone image data of component and B multi-tone image data of B component, and R multi-tone image data, G multi-tone image data, and B multi-tone image The data is sequentially added to the bit plane generation unit 22. Further, the color component separation section 21 outputs to the code output section 25 the color-related information SSa indicating the number m of color components in the color multi-tone image data CP and the bit depth n per pixel for each color component. I have.

【0090】ビットプレーン生成部22は、順次加えら
れるR多階調画像データ、G多階調画像データ、およ
び、B多階調画像データについて、それぞれの画像デー
タのおのおのの画素について、第8ビットのデータを抜
き出して第8ビットプレーンデータを形成してその第8
ビットプレーンデータをビットプレーン符号化部23に
出力し、次いで、第7ビットのデータを抜き出して第7
ビットプレーンデータ形成してその第7ビットプレーン
データをビットプレーン符号化部23に出力し、次い
で、第6ビットのデータを抜き出して第6ビットプレー
ンデータを形成してその第6ビットプレーンデータをビ
ットプレーン符号化部23に出力し、次いで、第5ビッ
トのデータを抜き出して第5ビットプレーンデータを形
成してその第5ビットプレーンデータをビットプレーン
符号化部23に出力し、次いで、第4ビットのデータを
抜き出して第4ビットプレーンデータを形成してその第
4ビットプレーンデータをビットプレーン符号化部23
に出力し、次いで、第3ビットのデータを抜き出して第
3ビットプレーンデータを形成してその第3ビットプレ
ーンデータをビットプレーン符号化部23に出力し、次
いで、第2ビットのデータを抜き出して第2ビットプレ
ーンデータを形成してその第2ビットプレーンデータを
ビットプレーン符号化部2に出力し、次いで、第1ビッ
トのデータを抜き出して第1ビットプレーンデータを形
成してその第1ビットプレーンデータをビットプレーン
符号化部23に出力する。
The bit plane generation unit 22 calculates the 8th bit for each pixel of each of the R multi-gradation image data, the G multi-gradation image data, and the B multi-gradation image data which are sequentially added. To form the eighth bit plane data,
The bit plane data is output to the bit plane encoding unit 23, and then the data of the seventh bit is extracted and the data of the seventh bit is extracted.
The bit plane data is formed and the seventh bit plane data is output to the bit plane encoding unit 23. Then, the sixth bit data is extracted to form the sixth bit plane data, and the sixth bit plane data is converted into a bit. The data is output to the plane encoding unit 23, the fifth bit data is extracted to form fifth bit plane data, and the fifth bit plane data is output to the bit plane encoding unit 23. Is extracted to form fourth bit plane data, and the fourth bit plane data is encoded by the bit plane encoding unit 23.
, And then extracts the third bit data to form third bit plane data, outputs the third bit plane data to the bit plane encoding unit 23, and then extracts the second bit data. The second bit plane data is formed and the second bit plane data is output to the bit plane encoding unit 2. Then, the first bit data is extracted to form the first bit plane data, and the first bit plane data is formed. The data is output to the bit plane encoding unit 23.

【0091】ビットプレーン符号化部23は、第8ビッ
トプレーンデータを入力すると、第8ビットプレーンデ
ータについて所定の二値画像符号化方式を適用し、それ
によって形成した第8ビットプレーン符号データを符号
量制御部24に出力し、第7ビットプレーンデータを入
力すると、第7ビットプレーンデータについて所定の二
値画像符号化方式を適用し、それによって形成した第7
ビットプレーン符号データを符号量制御部24に出力
し、第6ビットプレーンデータを入力すると、第6ビッ
トプレーンデータについて所定の二値画像符号化方式を
適用し、それによって形成した第6ビットプレーン符号
データを符号量制御部24に出力し、第5ビットプレー
ンデータを入力すると、第5ビットプレーンデータにつ
いて所定の二値画像符号化方式を適用し、それによって
形成した第5ビットプレーン符号データを符号量制御部
24に出力し、第4ビットプレーンデータを入力する
と、第4ビットプレーンデータについて所定の二値画像
符号化方式を適用し、それによって形成した第4ビット
プレーン符号データを符号量制御部24に出力し、第3
ビットプレーンデータを入力すると、第3ビットプレー
ンデータについて所定の二値画像符号化方式を適用し、
それによって形成した第3ビットプレーン符号データを
符号量制御部24に出力し、第2ビットプレーンデータ
を入力すると、第2ビットプレーンデータについて所定
の二値画像符号化方式を適用し、それによって形成した
第2ビットプレーン符号データを符号量制御部24に出
力し、第1ビットプレーンデータを入力すると、第1ビ
ットプレーンデータについて所定の二値画像符号化方式
を適用し、それによって形成した第1ビットプレーン符
号データを符号量制御部24に出力する。
Upon input of the eighth bit plane data, the bit plane coding unit 23 applies a predetermined binary image coding method to the eighth bit plane data, and codes the eighth bit plane coded data formed thereby. When the data is output to the amount control unit 24 and the seventh bit plane data is input, a predetermined binary image encoding method is applied to the seventh bit plane data, and the seventh bit plane data is formed.
When the bit plane code data is output to the code amount control unit 24 and the sixth bit plane data is input, a predetermined binary image coding method is applied to the sixth bit plane data, and the sixth bit plane code formed thereby is applied. When the data is output to the code amount control unit 24 and the fifth bit plane data is input, a predetermined binary image encoding method is applied to the fifth bit plane data, and the fifth bit plane code data formed thereby is encoded. When the data is output to the amount control unit 24 and the fourth bit plane data is input, a predetermined binary image coding method is applied to the fourth bit plane data, and the fourth bit plane code data formed thereby is encoded by the code amount control unit. 24 and the third
When the bit plane data is input, a predetermined binary image encoding method is applied to the third bit plane data,
The third bit plane code data thus formed is output to the code amount control unit 24, and when the second bit plane data is input, a predetermined binary image coding method is applied to the second bit plane data, thereby forming the second bit plane data. When the second bit plane code data is output to the code amount control unit 24 and the first bit plane data is input, a predetermined binary image coding method is applied to the first bit plane data, and the first The bit plane code data is output to the code amount control unit 24.

【0092】符号量制御部24は、ビットプレーン符号
化部23から順次入力される第8ビットプレーン符号化
データ〜第1ビットプレーン符号化データを、符号化デ
ータとして順次出力するとともに、その出力した符号化
データが、あらかじめ設定されているデータ量に達する
と、入力されたビットプレーン符号化データの出力を停
止し、符号化データの終了をあらわす所定ビットパター
ンの終了符号Eを付加し、符号化データの出力を終了す
るものであり、その符号データは、符号出力部24に加
えられている。また、符号データの出力を終了すると、
終了信号SEを色成分分解部21に出力する。これによ
り、色成分分解部21は、次の色成分の画像データを出
力する。
The code amount control unit 24 sequentially outputs the eighth bit plane encoded data to the first bit plane encoded data sequentially input from the bit plane encoding unit 23 as encoded data, and outputs the encoded data. When the coded data reaches a preset data amount, the output of the input bit plane coded data is stopped, and an end code E of a predetermined bit pattern representing the end of the coded data is added, and The output of the data is terminated, and the code data is applied to the code output unit 24. When the output of the code data is completed,
The end signal SE is output to the color component separation section 21. As a result, the color component separation section 21 outputs image data of the next color component.

【0093】符号出力部25は、図7(a)に示したよ
うに、色成分数mの値とビット深度nの値を先頭に付加
した状態で、符号量制御部24から出力されるR成分の
符号データ、G成分の符号データ、および、B成分の符
号データを順次配置してなるカラー符号データCDを出
力する。また、おのおのの色成分の符号データは、上述
と同様に、同図(b)に示すように、第8ビットプレー
ン符号化データ〜第1ビットプレーン符号化データを順
次配置するとともに、最後に符号化データの終了をあら
わす所定ビットパターンの終了符号Eを付加した形式の
ものである。
As shown in FIG. 7 (a), the code output section 25 adds the value of the number m of color components and the value of the bit depth n to the head, and outputs the R output from the code amount control section 24. The color code data CD in which the component code data, the G component code data, and the B component code data are sequentially arranged is output. Similarly to the above, the code data of each color component is arranged in the order of the eighth bit plane encoded data to the first bit plane encoded data as shown in FIG. This is a format in which an end code E of a predetermined bit pattern representing the end of the coded data is added.

【0094】このようにして、この場合には、ビットプ
レーン生成部22、ビットプレーン符号化部23、およ
び、符号量制御部24を1つづつ設けるだけで、符号化
装置を構成できるので、装置コストを低減することがで
きる。
As described above, in this case, the coding apparatus can be configured only by providing the bit plane generation unit 22, the bit plane coding unit 23, and the code amount control unit 24 one by one. Cost can be reduced.

【0095】図11は、カラー符号データCDに基づい
て元の画像データを形成する復号化装置の他の例を示し
ている。
FIG. 11 shows another example of a decoding apparatus for forming original image data based on color code data CD.

【0096】同図において、符号分配部26は、カラー
符号データCDから、R成分の符号データCDr、G成
分の符号データCDg、および、B成分の符号データC
Dbを、順次抽出するものであり、符号データCDr,
CDg,CDbは、ビットプレーン復号化部27に順次
加えられている。また、符号分配部26は、入力される
カラー符号データCDの先頭に付加されている値nを取
り出して、ビット深度データSSnとしてビットプレー
ンデータ作成部28に出力するとともに、値mを取り出
して、色成分数データSSmとして画像データ変換出力
部29に出力している。
In the figure, a code distribution unit 26 converts an R component code data CDr, a G component code data CDg, and a B component code data C from a color code data CD.
Db are sequentially extracted, and code data CDr,
CDg and CDb are sequentially added to the bit plane decoding unit 27. The code distribution unit 26 extracts the value n added to the head of the input color code data CD, outputs the value n to the bit plane data creation unit 28 as bit depth data SSn, and extracts the value m. The data is output to the image data conversion output unit 29 as color component number data SSm.

【0097】ビットプレーン復号化部27は、順次入力
される符号データCDr,CDg,CDbについて、ビ
ットプレーン単位に、第8ビットプレーン符号データ、
第7ビットプレーンデータ、…を、順次復号化し、それ
によって得た画像データをビットプレーンデータ作成部
28に出力する。また、符号データCDr,CDg,C
Dbの最後のビットプレーンのビットプレーン符号デー
タは、1枚分の画像の途中で終わっていて終了符号Eが
付加されている場合があり、かかる場合には、復号化で
きた部分まで画像データをビットプレーンデータ作成部
28に出力するとともに、復号化エラーをあらわす復号
化終了信号SSbを、ビットプレーンデータ作成部28
に出力する。それ以外の場合には、1つのビットプレー
ンデータの復号化を終了した時点で、復号化正常終了を
あらわす復号化終了信号SSbをビットプレーンデータ
作成部28に出力する。
The bit plane decoding unit 27 converts the sequentially input code data CDr, CDg, CDb into eighth bit plane code data in units of bit planes.
The seventh bit plane data,... Are sequentially decoded, and the obtained image data is output to the bit plane data creation unit 28. Also, code data CDr, CDg, C
The bit plane code data of the last bit plane of Db may end in the middle of one image and have an end code E added thereto. The bit plane data generator 28 outputs a decoding end signal SSb indicating a decoding error to the bit plane data generator 28.
Output to In other cases, when the decoding of one bit plane data is completed, a decoding end signal SSb indicating the normal end of decoding is output to the bit plane data creation unit 28.

【0098】ビットプレーンデータ作成部28は、ビッ
トプレーン複号化部27から完全なビットプレーンの画
像データを入力すると、その画像データを当該ビットプ
レーンの画像データとして画像データ出力部31に出力
する一方、複号化エラーが通知されたビットプレーンに
ついては、画像データが得られていない部分の画像デー
タとして、挿入データ発生部30から発生させた挿入デ
ータを配置し、1つのビットプレーンの画像データを完
成し、その完成後の画像データを、当該ビットプレーン
の画像データとして画像データ出力部31に出力する。
さらに、ビットプレーンデータ作成部28は、ビットプ
レーン複号化部27から出力されないビットプレーンの
画像データについては、挿入データ発生部30から1枚
分の画像データを発生させ、その発生させた画像データ
を、それぞれのビットプレーンの画像データとして、画
像データ出力部31に出力する。
When the complete bit plane image data is input from the bit plane decryption unit 27, the bit plane data creation unit 28 outputs the image data to the image data output unit 31 as the bit plane image data. For the bit plane for which the decoding error has been notified, the insertion data generated from the insertion data generating unit 30 is arranged as the image data of the portion where the image data has not been obtained, and the image data of one bit plane is The completed image data is output to the image data output unit 31 as the bit plane image data.
Further, the bit plane data generation unit 28 generates one image data from the insertion data generation unit 30 for the bit plane image data not output from the bit plane decoding unit 27, and generates the generated image data. Is output to the image data output unit 31 as image data of each bit plane.

【0099】また、挿入データ発生部30は、ビットプ
レーンデータ作成部28から指定されたビット数のラン
ダムデータ(「1」,「0」ランダムパターンデータ)
を発生するものであり、その出力データは、ビットプレ
ーンデータ作成部28に加えられている。
Also, the insertion data generating section 30 generates random data (“1”, “0” random pattern data) of the number of bits designated by the bit plane data generating section 28.
The output data is applied to the bit plane data creation unit 28.

【0100】画像データ出力部31は、おのおのの色成
分について、ビットプレーンデータ作成部28から出力
される各ビットプレーンの画像データに基づいて、当該
色成分の多階調画像データを形成し、その形成した多階
調画像データを画像データ変換出力部29に出力する。
The image data output unit 31 forms multi-tone image data of each color component based on the image data of each bit plane output from the bit plane data creation unit 28, The formed multi-tone image data is output to the image data conversion output unit 29.

【0101】画像データ変換出力部29は、画像データ
出力部31から加えられる各色成分の多階調画像データ
に基づいて、24ビットの原画像の画像データCPrを
形成するものであり、その画像データCPrは、次段装
置に出力されている。
The image data conversion output section 29 forms 24-bit original image image data CPr based on multi-tone image data of each color component added from the image data output section 31. CPr is output to the next stage device.

【0102】したがって、この場合には、ビットプレー
ン復号化部27、ビットプレーンデータ作成部28、挿
入データ発生部30、および、画像データ出力部31を
それぞれ1つ設けるだけで済み、それにより、装置コス
トを大幅に低減することができる。
Therefore, in this case, only one bit plane decoding unit 27, one bit plane data creation unit 28, one insertion data generation unit 30, and one image data output unit 31 need to be provided. Cost can be significantly reduced.

【0103】図12は、本発明の別な実施例にかかる白
黒多階調画像の符号化装置の一例を示している。この場
合、符号化対象となっている白黒多階調画像は、1画素
あたり8ビットのものである。なお、同図において、図
1と同一部分および相当する部分には、同一符号を付し
ている。
FIG. 12 shows an example of a coding apparatus for a monochrome multi-tone image according to another embodiment of the present invention. In this case, the black-and-white multi-tone image to be encoded has 8 bits per pixel. In the figure, the same parts as those in FIG. 1 and corresponding parts are denoted by the same reference numerals.

【0104】同図において、白黒多階調画像データPX
は、ビットプレーン生成部1に加えられている。ビット
プレーン生成部1は、白黒多階調画像データPXのおの
おのの画素について、第8ビットのデータを抜き出して
第8ビットプレーンデータを形成してその第8ビットプ
レーンデータをビットプレーン符号化部2に出力し、次
いで、第7ビットのデータを抜き出して第7ビットプレ
ーンデータを形成してその第7ビットプレーンデータを
ビットプレーン符号化部2に出力し、次いで、第6ビッ
トのデータを抜き出して第6ビットプレーンデータを形
成してその第6ビットプレーンデータをビットプレーン
符号化部2に出力し、次いで、第5ビットのデータを抜
き出して第5ビットプレーンデータを形成してその第5
ビットプレーンデータをビットプレーン符号化部2に出
力し、次いで、第4ビットのデータを抜き出して第4ビ
ットプレーンデータを形成してその第4ビットプレーン
データをビットプレーン符号化部2に出力し、次いで、
第3ビットのデータを抜き出して第3ビットプレーンデ
ータを形成してその第3ビットプレーンデータをビット
プレーン符号化部2に出力し、次いで、第2ビットのデ
ータを抜き出して第2ビットプレーンデータを形成して
その第2ビットプレーンデータをビットプレーン符号化
部2に出力し、次いで、第1ビットのデータを抜き出し
て第1ビットプレーンデータを形成してその第1ビット
プレーンデータをビットプレーン符号化部2に出力す
る。それとともに、白黒多階調画像データPXにおける
1ビットあたりのビット数をあらわすビット深度データ
Snを符号量制御部3aに出力している。
In the figure, black and white multi-tone image data PX
Are added to the bit plane generation unit 1. For each pixel of the monochrome multi-tone image data PX, the bit plane generation unit 1 extracts the eighth bit data to form the eighth bit plane data, and encodes the eighth bit plane data into the bit plane encoding unit 2 , And then extract the seventh bit data to form seventh bit plane data, output the seventh bit plane data to the bit plane encoding unit 2, and then extract the sixth bit data. The sixth bit plane data is formed, and the sixth bit plane data is output to the bit plane encoding unit 2. Then, the fifth bit data is extracted to form the fifth bit plane data, and the fifth bit plane data is formed.
Outputting the bit plane data to the bit plane encoding unit 2, then extracting the fourth bit data to form fourth bit plane data, and outputting the fourth bit plane data to the bit plane encoding unit 2; Then
The third bit data is extracted to form third bit plane data, and the third bit plane data is output to the bit plane encoding unit 2. Then, the second bit data is extracted to extract the second bit plane data. And outputs the second bit plane data to the bit plane encoding unit 2. Next, the first bit data is extracted to form first bit plane data, and the first bit plane data is subjected to bit plane encoding. Output to section 2. At the same time, it outputs bit depth data Sn indicating the number of bits per bit in the monochrome multi-tone image data PX to the code amount control unit 3a.

【0105】ビットプレーン符号化部2は、第8ビット
プレーンデータを入力すると、第8ビットプレーンデー
タについて所定の二値画像符号化方式を適用し、それに
よって形成した第8ビットプレーン符号データを符号量
制御部3aに出力し、第7ビットプレーンデータを入力
すると、第7ビットプレーンデータについて所定の二値
画像符号化方式を適用し、それによって形成した第7ビ
ットプレーン符号データを符号量制御部3aに出力し、
第6ビットプレーンデータを入力すると、第6ビットプ
レーンデータについて所定の二値画像符号化方式を適用
し、それによって形成した第6ビットプレーン符号デー
タを符号量制御部3aに出力し、第5ビットプレーンデ
ータを入力すると、第5ビットプレーンデータについて
所定の二値画像符号化方式を適用し、それによって形成
した第5ビットプレーン符号データを符号量制御部3a
に出力し、第4ビットプレーンデータを入力すると、第
4ビットプレーンデータについて所定の二値画像符号化
方式を適用し、それによって形成した第4ビットプレー
ン符号データを符号量制御部3aに出力し、第3ビット
プレーンデータを入力すると、第3ビットプレーンデー
タについて所定の二値画像符号化方式を適用し、それに
よって形成した第3ビットプレーン符号データを符号量
制御部3aに出力し、第2ビットプレーンデータを入力
すると、第2ビットプレーンデータについて所定の二値
画像符号化方式を適用し、それによって形成した第2ビ
ットプレーン符号データを符号量制御部3aに出力し、
第1ビットプレーンデータを入力すると、第1ビットプ
レーンデータについて所定の二値画像符号化方式を適用
し、それによって形成した第1ビットプレーン符号デー
タを符号量制御部3aに出力する。
Upon input of the eighth bit plane data, the bit plane encoding unit 2 applies a predetermined binary image encoding method to the eighth bit plane data, and encodes the eighth bit plane encoded data formed thereby. When the data is output to the amount control unit 3a and the seventh bit plane data is input, a predetermined binary image encoding method is applied to the seventh bit plane data, and the seventh bit plane code data formed thereby is encoded by the code amount control unit 3a,
When the sixth bit plane data is input, a predetermined binary image coding method is applied to the sixth bit plane data, and the sixth bit plane code data formed thereby is output to the code amount control unit 3a. When the plane data is input, a predetermined binary image coding method is applied to the fifth bit plane data, and the fifth bit plane coded data formed thereby is transmitted to the code amount controller 3a.
When the fourth bit plane data is input, a predetermined binary image coding method is applied to the fourth bit plane data, and the fourth bit plane code data formed thereby is output to the code amount control unit 3a. , When the third bit plane data is input, a predetermined binary image coding method is applied to the third bit plane data, and the third bit plane code data formed thereby is output to the code amount control unit 3a. When the bit plane data is input, a predetermined binary image coding method is applied to the second bit plane data, and the second bit plane coded data formed thereby is output to the code amount control unit 3a.
When the first bit plane data is input, a predetermined binary image coding method is applied to the first bit plane data, and the first bit plane coded data formed by this is output to the code amount control unit 3a.

【0106】符号量制御部3aは、図2に示すように、
ビット深度データSnの値nを先頭に付加した状態で、
ビットプレーン符号化部2から順次入力される第8ビッ
トプレーン符号化データ〜第1ビットプレーン符号化デ
ータを、符号化データPDとして順次出力するととも
に、その出力した符号化データPDが、外部装置から加
えられている制限データ量信号DVに対応したデータ量
に達すると、入力されたビットプレーン符号化データの
出力を停止し、符号化データPDの終了をあらわす所定
ビットパターンの終了符号Eを付加し、符号化データP
Dの出力を終了する。
The code amount control unit 3a, as shown in FIG.
With the value n of the bit depth data Sn added to the head,
Eighth bit plane encoded data to first bit plane encoded data sequentially input from the bit plane encoding unit 2 are sequentially output as encoded data PD, and the output encoded data PD is output from an external device. When the data amount corresponding to the added limited data amount signal DV is reached, the output of the input bit plane encoded data is stopped, and an end code E of a predetermined bit pattern indicating the end of the encoded data PD is added. , Encoded data P
The output of D ends.

【0107】ここで、この制限データ量信号DVは、例
えば、この符号化装置がファクシミリ装置に組み込まれ
ているときには、ファクシミリ装置の制御部から出力さ
れるものである。
Here, the limited data amount signal DV is output from the control unit of the facsimile apparatus when the encoding apparatus is incorporated in the facsimile apparatus, for example.

【0108】図13は、図12に示した符号化装置の符
号量制御部3aの処理例を示している。
FIG. 13 shows a processing example of the code amount control section 3a of the encoding apparatus shown in FIG.

【0109】まず、制限データ量信号DVの値を入力し
て、変数KBにセットし(処理401)、データ深度デ
ータSnの値nを符号データPDの先頭に付加する態様
で出力した後(処理402)、ビットプレーン符号化部
2からデータを1単位入力し(処理403)、入力した
データ量を累算する(処理404)。
First, the value of the limited data amount signal DV is input and set to the variable KB (process 401), and after outputting the value n of the data depth data Sn at the beginning of the code data PD (process 401). 402), one unit of data is input from the bit plane encoding unit 2 (process 403), and the input data amount is accumulated (process 404).

【0110】そして、累算値が、変数KBの値以上にな
っているかどうかを調べ(判断405)、判断405の
結果がNOになるときには、そのときに入力した1単位
分のデータを符号データPDとして出力し(処理40
6)、処理403に戻って、残りのデータの入出力を行
う。
Then, it is checked whether or not the accumulated value is equal to or larger than the value of the variable KB (decision 405). If the result of the decision 405 is NO, the data for one unit inputted at that time is encoded data. Output as PD (Process 40
6) Return to the process 403 to input / output the remaining data.

【0111】また、判断405の結果がYESになると
きには、出力した符号データPDのデータ量が制限デー
タ量に達した場合なので、このときには、所定の終了符
号Eを出力して(処理407)、1つの白黒多階調画像
に関する処理を終了する。
When the result of the determination 405 is YES, the data amount of the output code data PD has reached the limit data amount. At this time, a predetermined end code E is output (process 407). The processing for one monochrome multi-tone image is completed.

【0112】このようにして、本実施例では、符号デー
タのデータ量を外部装置から適宜に設定することができ
るので、例えば、ユーザが所望するデータ量に符号デー
タのデータ量を設定することができ、使い勝手が向上す
る。
As described above, in this embodiment, since the data amount of the code data can be appropriately set from the external device, for example, the data amount of the code data can be set to a data amount desired by the user. Can be used and the usability is improved.

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

【0114】同図において、24ビットのカラー多階調
画像データCPは、色成分分解部10に加えられてい
る。色成分分解部10は、カラー多階調画像データCP
を8ビットのR成分のR多階調画像データCPr、8ビ
ットのG成分のG多階調画像データCPg、および、8
ビットのB成分のB多階調画像データCPbに分解する
ものであり、R多階調画像データCPr、G多階調画像
データCPg、および、B多階調画像データCPbは、
それぞれビットプレーン生成部12r,12g,12b
に加えられている。また、色成分分解部10は、カラー
多階調画像データCPにおける色成分数m、および、各
色成分についての1画素あたりのビット深度nをあらわ
すカラー関連情報SSaを符号出力部11に出力してい
る。
In the figure, 24-bit color multi-tone image data CP is applied to a color component separation section 10. The color component separation unit 10 outputs the color multi-tone image data CP.
Are converted into 8-bit R-component R multi-gradation image data CPr, 8-bit G-component G multi-gradation image data CPg, and 8
It is to be decomposed into B multi-gradation image data CPb of bit B component, and R multi-gradation image data CPr, G multi-gradation image data CPg, and B multi-gradation image data CPb are
Bit plane generators 12r, 12g, 12b respectively
Has been added to Further, the color component separation unit 10 outputs to the code output unit 11 color related information SSa indicating the number m of color components in the color multi-tone image data CP and the bit depth n per pixel for each color component. I have.

【0115】ビットプレーン生成部12rは、R多階調
画像データCPrのおのおのの画素について、第8ビッ
トのデータを抜き出して第8ビットプレーンデータを形
成してその第8ビットプレーンデータをビットプレーン
符号化部13rに出力し、次いで、第7ビットのデータ
を抜き出して第7ビットプレーンデータ形成してその第
7ビットプレーンデータをビットプレーン符号化部13
rに出力し、次いで、第6ビットのデータを抜き出して
第6ビットプレーンデータを形成してその第6ビットプ
レーンデータをビットプレーン符号化部13rに出力
し、次いで、第5ビットのデータを抜き出して第5ビッ
トプレーンデータを形成してその第5ビットプレーンデ
ータをビットプレーン符号化部13rに出力し、次い
で、第4ビットのデータを抜き出して第4ビットプレー
ンデータを形成してその第4ビットプレーンデータをビ
ットプレーン符号化部13rに出力し、次いで、第3ビ
ットのデータを抜き出して第3ビットプレーンデータを
形成してその第3ビットプレーンデータをビットプレー
ン符号化部13rに出力し、次いで、第2ビットのデー
タを抜き出して第2ビットプレーンデータを形成してそ
の第2ビットプレーンデータをビットプレーン符号化部
2に出力し、次いで、第1ビットのデータを抜き出して
第1ビットプレーンデータを形成してその第1ビットプ
レーンデータをビットプレーン符号化部13rに出力す
る。
For each pixel of the R multi-tone image data CPr, the bit plane generating unit 12r extracts the eighth bit data to form eighth bit plane data, and encodes the eighth bit plane data into a bit plane code. And outputs the seventh bit data to form a seventh bit plane data.
r, and then extracts the sixth bit data to form sixth bit plane data, outputs the sixth bit plane data to the bit plane encoding unit 13r, and then extracts the fifth bit data. To form the fifth bit plane data and output the fifth bit plane data to the bit plane encoding unit 13r. Then, the fourth bit data is extracted to form the fourth bit plane data and the fourth bit plane data is formed. The plane data is output to the bit plane encoding unit 13r, then the third bit data is extracted to form third bit plane data, and the third bit plane data is output to the bit plane encoding unit 13r. , Extracting the second bit data to form second bit plane data, and forming the second bit plane Outputs over data to the bit-plane coding unit 2, then, it outputs the first bit plane data into bit plane coding unit 13r to form the first bit plane data by extracting first bit of data.

【0116】ビットプレーン符号化部13rは、第8ビ
ットプレーンデータを入力すると、第8ビットプレーン
データについて所定の二値画像符号化方式を適用し、そ
れによって形成した第8ビットプレーン符号データを符
号量制御部14raに出力し、第7ビットプレーンデー
タを入力すると、第7ビットプレーンデータについて所
定の二値画像符号化方式を適用し、それによって形成し
た第7ビットプレーン符号データを符号量制御部14r
aに出力し、第6ビットプレーンデータを入力すると、
第6ビットプレーンデータについて所定の二値画像符号
化方式を適用し、それによって形成した第6ビットプレ
ーン符号データを符号量制御部14raに出力し、第5
ビットプレーンデータを入力すると、第5ビットプレー
ンデータについて所定の二値画像符号化方式を適用し、
それによって形成した第5ビットプレーン符号データを
符号量制御部14raに出力し、第4ビットプレーンデ
ータを入力すると、第4ビットプレーンデータについて
所定の二値画像符号化方式を適用し、それによって形成
した第4ビットプレーン符号データを符号量制御部14
raに出力し、第3ビットプレーンデータを入力する
と、第3ビットプレーンデータについて所定の二値画像
符号化方式を適用し、それによって形成した第3ビット
プレーン符号データを符号量制御部14raに出力し、
第2ビットプレーンデータを入力すると、第2ビットプ
レーンデータについて所定の二値画像符号化方式を適用
し、それによって形成した第2ビットプレーン符号デー
タを符号量制御部14raに出力し、第1ビットプレー
ンデータを入力すると、第1ビットプレーンデータにつ
いて所定の二値画像符号化方式を適用し、それによって
形成した第1ビットプレーン符号データを符号量制御部
14raに出力する。
Upon input of the eighth bit plane data, the bit plane encoding unit 13r applies a predetermined binary image encoding method to the eighth bit plane data, and encodes the eighth bit plane encoded data formed thereby. When the data is output to the amount control unit 14ra and the seventh bit plane data is input, a predetermined binary image encoding method is applied to the seventh bit plane data, and the seventh bit plane coded data formed thereby is encoded by the code amount control unit. 14r
a, and when the sixth bit plane data is input,
A predetermined binary image coding method is applied to the sixth bit plane data, and the sixth bit plane coded data formed by the application is output to the code amount control unit 14ra.
When the bit plane data is input, a predetermined binary image encoding method is applied to the fifth bit plane data,
The fifth bit plane code data formed thereby is output to the code amount control unit 14ra, and when the fourth bit plane data is input, a predetermined binary image coding method is applied to the fourth bit plane data, thereby forming the fourth bit plane data. The fourth bit plane coded data thus obtained is transmitted to the code amount control unit 14.
When the third bit plane data is input and the third bit plane data is input, a predetermined binary image coding method is applied to the third bit plane data, and the third bit plane code data formed thereby is output to the code amount control unit 14ra. And
When the second bit plane data is input, a predetermined binary image coding method is applied to the second bit plane data, and the second bit plane code data formed thereby is output to the code amount control unit 14ra, and the first bit plane data is output. When the plane data is input, a predetermined binary image coding method is applied to the first bit plane data, and the first bit plane coded data formed thereby is output to the code amount control unit 14ra.

【0117】符号量制御部14raは、ビットプレーン
符号化部13rから順次入力される第8ビットプレーン
符号化データ〜第1ビットプレーン符号化データを、符
号化データとして順次出力するとともに、その出力した
符号化データが、外部装置から加えられる制限データ量
信号DVに対応したデータ量に達すると、入力されたビ
ットプレーン符号化データの出力を停止し、符号化デー
タの終了をあらわす所定ビットパターンの終了符号Eを
付加し、符号化データの出力を終了するものであり、そ
の符号データは、符号出力部11に加えられている。
The code amount control unit 14ra sequentially outputs the eighth bit plane encoded data to the first bit plane encoded data sequentially input from the bit plane encoding unit 13r as encoded data, and outputs the encoded data. When the encoded data reaches a data amount corresponding to the limited data amount signal DV applied from an external device, the output of the input bit plane encoded data is stopped, and the end of a predetermined bit pattern indicating the end of the encoded data is terminated. The code E is added, and the output of the coded data is ended. The coded data is added to the code output unit 11.

【0118】ビットプレーン生成部12gは、G多階調
画像データCPgのおのおのの画素について、第8ビッ
トのデータを抜き出して第8ビットプレーンデータを形
成してその第8ビットプレーンデータをビットプレーン
符号化部13gに出力し、次いで、第7ビットのデータ
を抜き出して第7ビットプレーンデータ形成してその第
7ビットプレーンデータをビットプレーン符号化部13
gに出力し、次いで、第6ビットのデータを抜き出して
第6ビットプレーンデータを形成してその第6ビットプ
レーンデータをビットプレーン符号化部13gに出力
し、次いで、第5ビットのデータを抜き出して第5ビッ
トプレーンデータを形成してその第5ビットプレーンデ
ータをビットプレーン符号化部13gに出力し、次い
で、第4ビットのデータを抜き出して第4ビットプレー
ンデータを形成してその第4ビットプレーンデータをビ
ットプレーン符号化部13gに出力し、次いで、第3ビ
ットのデータを抜き出して第3ビットプレーンデータを
形成してその第3ビットプレーンデータをビットプレー
ン符号化部13gに出力し、次いで、第2ビットのデー
タを抜き出して第2ビットプレーンデータを形成してそ
の第2ビットプレーンデータをビットプレーン符号化部
2に出力し、次いで、第1ビットのデータを抜き出して
第1ビットプレーンデータを形成してその第1ビットプ
レーンデータをビットプレーン符号化部13gに出力す
る。
The bit plane generation unit 12g extracts the eighth bit data for each pixel of the G multi-tone image data CPg to form eighth bit plane data, and encodes the eighth bit plane data into a bit plane code. Output to the encoding unit 13g, and then extracts the seventh bit data to form seventh bit plane data, and encodes the seventh bit plane data into the bit plane encoding unit 13g.
g, and then extracts the sixth bit data to form sixth bit plane data, outputs the sixth bit plane data to the bit plane encoding unit 13g, and then extracts the fifth bit data. To generate the fifth bit plane data and output the fifth bit plane data to the bit plane encoding unit 13g. Then, the fourth bit data is extracted to form the fourth bit plane data and the fourth bit plane data is formed. The plane data is output to the bit plane encoding unit 13g, the third bit data is extracted to form third bit plane data, and the third bit plane data is output to the bit plane encoding unit 13g. , The second bit data is extracted to form second bit plane data, and the second bit plane Outputs over data to the bit-plane coding unit 2, then, it outputs the first bit plane data into bit plane coding unit 13g to form a first bit plane data by extracting first bit of data.

【0119】ビットプレーン符号化部13gは、第8ビ
ットプレーンデータを入力すると、第8ビットプレーン
データについて所定の二値画像符号化方式を適用し、そ
れによって形成した第8ビットプレーン符号データを符
号量制御部14gaに出力し、第7ビットプレーンデー
タを入力すると、第7ビットプレーンデータについて所
定の二値画像符号化方式を適用し、それによって形成し
た第7ビットプレーン符号データを符号量制御部14g
aに出力し、第6ビットプレーンデータを入力すると、
第6ビットプレーンデータについて所定の二値画像符号
化方式を適用し、それによって形成した第6ビットプレ
ーン符号データを符号量制御部14gaに出力し、第5
ビットプレーンデータを入力すると、第5ビットプレー
ンデータについて所定の二値画像符号化方式を適用し、
それによって形成した第5ビットプレーン符号データを
符号量制御部14gaに出力し、第4ビットプレーンデ
ータを入力すると、第4ビットプレーンデータについて
所定の二値画像符号化方式を適用し、それによって形成
した第4ビットプレーン符号データを符号量制御部14
gaに出力し、第3ビットプレーンデータを入力する
と、第3ビットプレーンデータについて所定の二値画像
符号化方式を適用し、それによって形成した第3ビット
プレーン符号データを符号量制御部14gaに出力し、
第2ビットプレーンデータを入力すると、第2ビットプ
レーンデータについて所定の二値画像符号化方式を適用
し、それによって形成した第2ビットプレーン符号デー
タを符号量制御部14gaに出力し、第1ビットプレー
ンデータを入力すると、第1ビットプレーンデータにつ
いて所定の二値画像符号化方式を適用し、それによって
形成した第1ビットプレーン符号データを符号量制御部
14gaに出力する。
Upon input of the eighth bit plane data, the bit plane encoding unit 13g applies a predetermined binary image encoding method to the eighth bit plane data, and encodes the eighth bit plane encoded data formed thereby. When the seventh bit plane data is output to the amount control unit 14ga and the seventh bit plane data is input, a predetermined binary image encoding method is applied to the seventh bit plane data, and the seventh bit plane code data formed thereby is encoded by the code amount control unit. 14g
a, and when the sixth bit plane data is input,
A predetermined binary image coding method is applied to the sixth bit plane data, and the sixth bit plane coded data formed by the application is output to the code amount control unit 14ga.
When the bit plane data is input, a predetermined binary image encoding method is applied to the fifth bit plane data,
The fifth bit plane code data formed thereby is output to the code amount control unit 14ga, and when the fourth bit plane data is input, a predetermined binary image coding method is applied to the fourth bit plane data, thereby forming the fourth bit plane data. The fourth bit plane coded data thus obtained is transmitted to the code amount control unit 14.
ga, and when the third bit plane data is input, a predetermined binary image coding method is applied to the third bit plane data, and the third bit plane coded data formed thereby is output to the code amount control unit 14ga. And
When the second bit plane data is input, a predetermined binary image coding method is applied to the second bit plane data, and the second bit plane code data formed by the second bit plane data is output to the code amount control unit 14ga, and the first bit plane data is output. When the plane data is input, a predetermined binary image coding method is applied to the first bit plane data, and the first bit plane coded data formed thereby is output to the code amount control unit 14ga.

【0120】符号量制御部14gaは、ビットプレーン
符号化部13gから順次入力される第8ビットプレーン
符号化データ〜第1ビットプレーン符号化データを、符
号化データとして順次出力するとともに、その出力した
符号化データが、外部装置から加えられている制限デー
タ量信号DVに対応したデータ量に達すると、入力され
たビットプレーン符号化データの出力を停止し、符号化
データの終了をあらわす所定ビットパターンの終了符号
Eを付加し、符号化データの出力を終了するものであ
り、その符号データは、符号出力部11に加えられてい
る。
The code amount control unit 14ga sequentially outputs the eighth bit plane encoded data to the first bit plane encoded data sequentially input from the bit plane encoding unit 13g as encoded data, and outputs the encoded data. When the encoded data reaches a data amount corresponding to the limited data amount signal DV applied from an external device, the output of the input bit plane encoded data is stopped, and a predetermined bit pattern indicating the end of the encoded data is output. The end code E is added to end the output of the encoded data, and the encoded data is added to the code output unit 11.

【0121】ビットプレーン生成部12bは、B多階調
画像データCPbのおのおのの画素について、第8ビッ
トのデータを抜き出して第8ビットプレーンデータを形
成してその第8ビットプレーンデータをビットプレーン
符号化部13bに出力し、次いで、第7ビットのデータ
を抜き出して第7ビットプレーンデータ形成してその第
7ビットプレーンデータをビットプレーン符号化部13
bに出力し、次いで、第6ビットのデータを抜き出して
第6ビットプレーンデータを形成してその第6ビットプ
レーンデータをビットプレーン符号化部13bに出力
し、次いで、第5ビットのデータを抜き出して第5ビッ
トプレーンデータを形成してその第5ビットプレーンデ
ータをビットプレーン符号化部13bに出力し、次い
で、第4ビットのデータを抜き出して第4ビットプレー
ンデータを形成してその第4ビットプレーンデータをビ
ットプレーン符号化部13bに出力し、次いで、第3ビ
ットのデータを抜き出して第3ビットプレーンデータを
形成してその第3ビットプレーンデータをビットプレー
ン符号化部13bに出力し、次いで、第2ビットのデー
タを抜き出して第2ビットプレーンデータを形成してそ
の第2ビットプレーンデータをビットプレーン符号化部
2に出力し、次いで、第1ビットのデータを抜き出して
第1ビットプレーンデータを形成してその第1ビットプ
レーンデータをビットプレーン符号化部13bに出力す
る。
The bit plane generation unit 12b extracts the eighth bit data for each pixel of the B multi-gradation image data CPb to form eighth bit plane data, and encodes the eighth bit plane data into a bit plane code. And outputs the seventh bit data to form a seventh bit plane data. The seventh bit plane data is output to the bit plane encoding unit 13b.
b, and then extracts the sixth bit data to form sixth bit plane data, outputs the sixth bit plane data to the bit plane encoding unit 13b, and then extracts the fifth bit data. To form the fifth bit plane data and output the fifth bit plane data to the bit plane encoding unit 13b, and then extract the fourth bit data to form the fourth bit plane data and generate the fourth bit plane data. The plane data is output to the bit plane encoding unit 13b, then the third bit data is extracted to form third bit plane data, and the third bit plane data is output to the bit plane encoding unit 13b. , The second bit data is extracted to form second bit plane data, and the second bit plane Outputs over data to the bit-plane coding unit 2, then, it outputs the first bit plane data into bit plane coding unit 13b to form a first bit plane data by extracting first bit of data.

【0122】ビットプレーン符号化部13bは、第8ビ
ットプレーンデータを入力すると、第8ビットプレーン
データについて所定の二値画像符号化方式を適用し、そ
れによって形成した第8ビットプレーン符号データを符
号量制御部14baに出力し、第7ビットプレーンデー
タを入力すると、第7ビットプレーンデータについて所
定の二値画像符号化方式を適用し、それによって形成し
た第7ビットプレーン符号データを符号量制御部14b
aに出力し、第6ビットプレーンデータを入力すると、
第6ビットプレーンデータについて所定の二値画像符号
化方式を適用し、それによって形成した第6ビットプレ
ーン符号データを符号量制御部14baに出力し、第5
ビットプレーンデータを入力すると、第5ビットプレー
ンデータについて所定の二値画像符号化方式を適用し、
それによって形成した第5ビットプレーン符号データを
符号量制御部14baに出力し、第4ビットプレーンデ
ータを入力すると、第4ビットプレーンデータについて
所定の二値画像符号化方式を適用し、それによって形成
した第4ビットプレーン符号データを符号量制御部14
baに出力し、第3ビットプレーンデータを入力する
と、第3ビットプレーンデータについて所定の二値画像
符号化方式を適用し、それによって形成した第3ビット
プレーン符号データを符号量制御部14baに出力し、
第2ビットプレーンデータを入力すると、第2ビットプ
レーンデータについて所定の二値画像符号化方式を適用
し、それによって形成した第2ビットプレーン符号デー
タを符号量制御部14baに出力し、第1ビットプレー
ンデータを入力すると、第1ビットプレーンデータにつ
いて所定の二値画像符号化方式を適用し、それによって
形成した第1ビットプレーン符号データを符号量制御部
14baに出力する。
Upon input of the eighth bit plane data, the bit plane coding unit 13b applies a predetermined binary image coding method to the eighth bit plane data, and codes the eighth bit plane code data formed thereby. When the data is output to the amount control unit 14ba and the seventh bit plane data is input, a predetermined binary image encoding method is applied to the seventh bit plane data, and the seventh bit plane code data formed thereby is encoded by the code amount control unit 14ba. 14b
a, and when the sixth bit plane data is input,
A predetermined binary image coding method is applied to the sixth bit plane data, and the sixth bit plane coded data formed thereby is output to the code amount control unit 14ba.
When the bit plane data is input, a predetermined binary image encoding method is applied to the fifth bit plane data,
The fifth bit plane code data formed thereby is output to the code amount control unit 14ba, and when the fourth bit plane data is input, a predetermined binary image coding method is applied to the fourth bit plane data, thereby forming the fourth bit plane data. The fourth bit plane coded data thus obtained is transmitted to the code amount control unit 14.
When the third bit plane data is input and the third bit plane data is input, a predetermined binary image encoding method is applied to the third bit plane data, and the third bit plane code data formed thereby is output to the code amount control unit 14ba. And
When the second bit plane data is input, a predetermined binary image coding method is applied to the second bit plane data, and the second bit plane coded data formed thereby is output to the code amount control unit 14ba, and the first bit plane data is output. When the plane data is input, a predetermined binary image coding method is applied to the first bit plane data, and the first bit plane coded data formed thereby is output to the code amount control unit 14ba.

【0123】符号量制御部14baは、ビットプレーン
符号化部13bから順次入力される第8ビットプレーン
符号化データ〜第1ビットプレーン符号化データを、符
号化データとして順次出力するとともに、その出力した
符号化データが、外部装置から加えられている制限デー
タ量信号DVに対応したデータ量に達すると、入力され
たビットプレーン符号化データの出力を停止し、符号化
データの終了をあらわす所定ビットパターンの終了符号
Eを付加し、符号化データの出力を終了するものであ
り、その符号データは、符号出力部11に加えられてい
る。
The code amount control unit 14ba sequentially outputs the eighth bit plane encoded data to the first bit plane encoded data sequentially input from the bit plane encoding unit 13b as encoded data, and outputs the encoded data. When the encoded data reaches a data amount corresponding to the limited data amount signal DV applied from an external device, the output of the input bit plane encoded data is stopped, and a predetermined bit pattern indicating the end of the encoded data is output. Is added, and the output of the encoded data is terminated, and the encoded data is added to the code output unit 11.

【0124】符号出力部11は、図7(a)に示したよ
うに、色成分数mの値とビット深度nの値を先頭に付加
した状態で、符号量制御部14raから出力されるR成
分の符号データ、符号量制御部14gaから出力される
G成分の符号データ、および、符号量制御部14baか
ら出力されるB成分の符号データを順次配置してなるカ
ラー符号データCDを出力する。また、おのおのの色成
分の符号データは、同図(b)に示すように、第8ビッ
トプレーン符号化データ〜第1ビットプレーン符号化デ
ータを順次配置するとともに、最後に符号化データの終
了をあらわす所定ビットパターンの終了符号Eを付加し
た形式のものである。
As shown in FIG. 7A, the code output unit 11 adds the value of the number m of color components and the value of the bit depth n to the head, and outputs the R output from the code amount control unit 14ra. The color code data CD in which the component code data, the G component code data output from the code amount control unit 14ga, and the B component code data output from the code amount control unit 14ba are sequentially arranged is output. As shown in FIG. 2B, the coded data of each color component is arranged in order from the eighth bit plane coded data to the first bit plane coded data, and finally the end of the coded data is determined. This is a format in which an end code E of a predetermined bit pattern is added.

【0125】図15は、図14に示した符号化装置の符
号量制御部14ra,14ga,14baの処理例を示
している。
FIG. 15 shows a processing example of the code amount control units 14ra, 14ga, and 14ba of the encoding apparatus shown in FIG.

【0126】まず、制限データ量信号DVの値を入力し
て、変数KBにセットし(処理501)、ビットプレー
ン符号化部13r,13g,13bからデータを1単位
入力し(処理502)、入力したデータ量を累算する
(処理503)。
First, the value of the limited data amount signal DV is input and set to a variable KB (processing 501), and one unit of data is input from the bit plane encoding units 13r, 13g, and 13b (processing 502). The calculated data amount is accumulated (process 503).

【0127】そして、累算値が、変数KBの値以上にな
っているかどうかを調べ(判断504)、判断504の
結果がNOになるときには、そのときに入力した1単位
分のデータを符号データとして出力し(処理505)、
処理502に戻って、残りのデータの入出力を行う。
Then, it is checked whether or not the accumulated value is equal to or larger than the value of the variable KB (decision 504). If the result of the decision 504 is NO, the data of one unit input at that time is encoded data. (Process 505),
Returning to the process 502, the remaining data is input / output.

【0128】また、判断504の結果がYESになると
きには、出力した符号データのデータ量が制限データ量
に達した場合なので、このときには、所定の終了符号E
を出力して(処理506)、1つのカラー多階調画像に
関する処理を終了する。
If the result of determination 504 is YES, it means that the data amount of the output code data has reached the limit data amount.
Is output (process 506), and the process for one color multi-tone image ends.

【0129】このようにして、本実施例では、各色成分
の符号データのデータ量を外部装置から適宜に設定する
ことができるので、例えば、ユーザが所望するデータ量
に符号データのデータ量を設定することができ、使い勝
手が向上する。
As described above, in this embodiment, the data amount of the code data of each color component can be appropriately set from an external device. For example, the data amount of the code data is set to a data amount desired by the user. And the usability is improved.

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

【0131】同図において、24ビットのカラー多階調
画像データCPは、色成分分解部21に加えられてい
る。色成分分解部21は、カラー多階調画像データCP
をそれぞれ8ビットのR成分のR多階調画像データ、G
成分のG多階調画像データ、および、B成分のB多階調
画像データに、順次分解するものであり、R多階調画像
データ、G多階調画像データ、および、B多階調画像デ
ータは、順次、ビットプレーン生成部22に加えられて
いる。また、色成分分解部21は、カラー多階調画像デ
ータCPにおける色成分数m、および、各色成分につい
ての1画素あたりのビット深度nをあらわすカラー関連
情報SSaを符号出力部25に出力している。
In the figure, 24-bit color multi-tone image data CP is applied to a color component separation section 21. The color component separation section 21 outputs the color multi-tone image data CP
Is the 8-bit R-component R multi-tone image data, G
The image data is sequentially decomposed into G multi-tone image data of component and B multi-tone image data of B component, and R multi-tone image data, G multi-tone image data, and B multi-tone image The data is sequentially added to the bit plane generation unit 22. Further, the color component separation section 21 outputs to the code output section 25 the color-related information SSa indicating the number m of color components in the color multi-tone image data CP and the bit depth n per pixel for each color component. I have.

【0132】ビットプレーン生成部22は、順次加えら
れるR多階調画像データ、G多階調画像データ、およ
び、B多階調画像データについて、それぞれの画像デー
タのおのおのの画素について、第8ビットのデータを抜
き出して第8ビットプレーンデータを形成してその第8
ビットプレーンデータをビットプレーン符号化部23に
出力し、次いで、第7ビットのデータを抜き出して第7
ビットプレーンデータ形成してその第7ビットプレーン
データをビットプレーン符号化部23に出力し、次い
で、第6ビットのデータを抜き出して第6ビットプレー
ンデータを形成してその第6ビットプレーンデータをビ
ットプレーン符号化部23に出力し、次いで、第5ビッ
トのデータを抜き出して第5ビットプレーンデータを形
成してその第5ビットプレーンデータをビットプレーン
符号化部23に出力し、次いで、第4ビットのデータを
抜き出して第4ビットプレーンデータを形成してその第
4ビットプレーンデータをビットプレーン符号化部23
に出力し、次いで、第3ビットのデータを抜き出して第
3ビットプレーンデータを形成してその第3ビットプレ
ーンデータをビットプレーン符号化部23に出力し、次
いで、第2ビットのデータを抜き出して第2ビットプレ
ーンデータを形成してその第2ビットプレーンデータを
ビットプレーン符号化部2に出力し、次いで、第1ビッ
トのデータを抜き出して第1ビットプレーンデータを形
成してその第1ビットプレーンデータをビットプレーン
符号化部23に出力する。
The bit plane generation unit 22 determines whether the R multi-gradation image data, the G multi-gradation image data, and the B multi-gradation image data are sequentially added to the 8th bit. To form the eighth bit plane data,
The bit plane data is output to the bit plane encoding unit 23, and then the data of the seventh bit is extracted and the data of the seventh bit is extracted.
The bit plane data is formed and the seventh bit plane data is output to the bit plane encoding unit 23. Then, the sixth bit data is extracted to form the sixth bit plane data, and the sixth bit plane data is converted into a bit. The data is output to the plane encoding unit 23, the fifth bit data is extracted to form fifth bit plane data, and the fifth bit plane data is output to the bit plane encoding unit 23. Is extracted to form fourth bit plane data, and the fourth bit plane data is encoded by the bit plane encoding unit 23.
, And then extracts the third bit data to form third bit plane data, outputs the third bit plane data to the bit plane encoding unit 23, and then extracts the second bit data. The second bit plane data is formed and the second bit plane data is output to the bit plane encoding unit 2. Then, the first bit data is extracted to form the first bit plane data, and the first bit plane data is formed. The data is output to the bit plane encoding unit 23.

【0133】ビットプレーン符号化部23は、第8ビッ
トプレーンデータを入力すると、第8ビットプレーンデ
ータについて所定の二値画像符号化方式を適用し、それ
によって形成した第8ビットプレーン符号データを符号
量制御部24aに出力し、第7ビットプレーンデータを
入力すると、第7ビットプレーンデータについて所定の
二値画像符号化方式を適用し、それによって形成した第
7ビットプレーン符号データを符号量制御部24aに出
力し、第6ビットプレーンデータを入力すると、第6ビ
ットプレーンデータについて所定の二値画像符号化方式
を適用し、それによって形成した第6ビットプレーン符
号データを符号量制御部24aに出力し、第5ビットプ
レーンデータを入力すると、第5ビットプレーンデータ
について所定の二値画像符号化方式を適用し、それによ
って形成した第5ビットプレーン符号データを符号量制
御部24aに出力し、第4ビットプレーンデータを入力
すると、第4ビットプレーンデータについて所定の二値
画像符号化方式を適用し、それによって形成した第4ビ
ットプレーン符号データを符号量制御部24aに出力
し、第3ビットプレーンデータを入力すると、第3ビッ
トプレーンデータについて所定の二値画像符号化方式を
適用し、それによって形成した第3ビットプレーン符号
データを符号量制御部24aに出力し、第2ビットプレ
ーンデータを入力すると、第2ビットプレーンデータに
ついて所定の二値画像符号化方式を適用し、それによっ
て形成した第2ビットプレーン符号データを符号量制御
部24aに出力し、第1ビットプレーンデータを入力す
ると、第1ビットプレーンデータについて所定の二値画
像符号化方式を適用し、それによって形成した第1ビッ
トプレーン符号データを符号量制御部24aに出力す
る。
Upon input of the eighth bit plane data, the bit plane coding unit 23 applies a predetermined binary image coding method to the eighth bit plane data, and codes the eighth bit plane code data formed thereby. When the data is output to the amount control unit 24a and the seventh bit plane data is input, a predetermined binary image coding method is applied to the seventh bit plane data, and the seventh bit plane code data formed thereby is encoded by the code amount control unit. When the sixth bit plane data is input and the sixth bit plane data is input, a predetermined binary image encoding method is applied to the sixth bit plane data, and the sixth bit plane code data formed thereby is output to the code amount control unit 24a. Then, when the fifth bit plane data is input, a predetermined two An image coding method is applied, and the fifth bit plane code data formed by this is output to the code amount control unit 24a, and when the fourth bit plane data is input, the predetermined binary image coding for the fourth bit plane data is performed. When the third bit plane data is input to the code amount control unit 24a and the third bit plane data is input, a predetermined binary image coding method is applied to the third bit plane data. Then, the third bit plane code data formed thereby is output to the code amount control unit 24a, and when the second bit plane data is input, a predetermined binary image coding method is applied to the second bit plane data, Is output to the code amount control unit 24a, and the first bit play The data input, the first bit plane data by applying a predetermined binary image encoding scheme, and outputs the first bit-plane coding data formed by it to the code amount control unit 24a.

【0134】符号量制御部24aは、ビットプレーン符
号化部23から順次入力される第8ビットプレーン符号
化データ〜第1ビットプレーン符号化データを、符号化
データとして順次出力するとともに、その出力した符号
化データが、外部装置から加えられている制限データ量
信号DVに対応したデータ量に達すると、入力されたビ
ットプレーン符号化データの出力を停止し、符号化デー
タの終了をあらわす所定ビットパターンの終了符号Eを
付加し、符号化データの出力を終了するものであり、そ
の符号データは、符号出力部25に加えられている。ま
た、符号データの出力を終了すると、終了信号SEを色
成分分解部21に出力する。これにより、色成分分解部
21は、次の色成分の画像データを出力する。
The code amount control section 24a sequentially outputs the eighth bit plane encoded data to the first bit plane encoded data sequentially input from the bit plane encoding section 23 as encoded data, and outputs the encoded data. When the encoded data reaches a data amount corresponding to the limited data amount signal DV applied from an external device, the output of the input bit plane encoded data is stopped, and a predetermined bit pattern indicating the end of the encoded data is output. Is added, and the output of the encoded data is terminated. The encoded data is added to the code output unit 25. When the output of the code data is completed, an end signal SE is output to the color component separation section 21. As a result, the color component separation section 21 outputs image data of the next color component.

【0135】符号出力部25は、図7(a)に示したよ
うに、色成分数mの値とビット深度nの値を先頭に付加
した状態で、符号量制御部24aから出力されるR成分
の符号データ、G成分の符号データ、および、B成分の
符号データを順次配置してなるカラー符号データCDを
出力する。
As shown in FIG. 7A, the code output section 25 adds the value of the number m of color components and the value of the bit depth n to the head, and outputs the R output from the code amount control section 24a. The color code data CD in which the component code data, the G component code data, and the B component code data are sequentially arranged is output.

【0136】また、おのおのの色成分の符号データは、
上述と同様に、同図(b)に示すように、第8ビットプ
レーン符号化データ〜第1ビットプレーン符号化データ
を順次配置するとともに、最後に符号化データの終了を
あらわす所定ビットパターンの終了符号Eを付加した形
式のものである。
The code data of each color component is
Similarly to the above, as shown in FIG. 7B, the eighth bit plane encoded data to the first bit plane encoded data are sequentially arranged, and finally, the end of a predetermined bit pattern indicating the end of the encoded data This is a format to which a code E is added.

【0137】このようにして、この場合には、ビットプ
レーン生成部22、ビットプレーン符号化部23、およ
び、符号量制御部24aを1つづつ設けるだけで、符号
化装置を構成できるので、装置コストを低減することが
できる。また、外部装置から色成分毎のデータ量を制御
することができるので、符号化装置の使い勝手が向上す
る。
As described above, in this case, the coding apparatus can be configured only by providing the bit plane generation unit 22, the bit plane coding unit 23, and the code amount control unit 24a one by one. Cost can be reduced. In addition, since the data amount of each color component can be controlled from an external device, the usability of the encoding device is improved.

【0138】図17は、本発明のさらに別な実施例にか
かるグループ3ファクシミリ装置を示している。なお、
このグループ3ファクシミリ装置は、送信原稿を白黒多
値画像(多階調画像)として読み取りができるととも
に、受信原稿を白黒多値画像として記録出力することが
できる。
FIG. 17 shows a group 3 facsimile apparatus according to still another embodiment of the present invention. In addition,
This group 3 facsimile apparatus can read a transmission original as a black-and-white multi-valued image (multi-tone image) and record and output a received original as a black-and-white multi-valued image.

【0139】同図において、制御部31は、このグルー
プ3ファクシミリ装置の各部の制御処理、および、ファ
クシミリ伝送制御手順処理を行うものであり、システム
メモリ32は、制御部31が実行する制御処理プログラ
ム、および、処理プログラムを実行するときに必要な各
種データなどを記憶するとともに、制御部31のワーク
エリアを構成するものであり、パラメータメモリ33
は、このグループ3ファクシミリ装置に固有な各種の情
報を記憶するためのものである。
In the figure, a control unit 31 performs control processing of each unit of the group 3 facsimile apparatus and facsimile transmission control procedure processing. A system memory 32 stores a control processing program executed by the control unit 31. , And various data required when executing the processing program, and constitutes a work area of the control unit 31.
Is for storing various information unique to the group 3 facsimile apparatus.

【0140】多値スキャナ34は、所定の解像度、か
つ、所定の階調度で、原稿画像を読み取るためのもので
あり、多値プロッタ35は、所定の解像度、かつ、所定
の階調度で、画像を記録出力するためのものであり、操
作表示部36は、このファクシミリ装置を操作するため
のもので、各種の操作キー、および、各種の表示器から
なる。
The multi-value scanner 34 is for reading an original image at a predetermined resolution and a predetermined gradation, and the multi-value plotter 35 is for reading an image at a predetermined resolution and a predetermined gradation. The operation display section 36 is for operating the facsimile apparatus, and includes various operation keys and various display devices.

【0141】符号化復号化部37は、画信号を符号化圧
縮するとともに、符号化圧縮されている画情報を元の画
信号に復号化するためのものであり、符号化機能として
は、図12に示した符号化装置を備え、複号化機能とし
ては、図3に示した複号化装置を備えている。画像蓄積
装置38は、符号化圧縮された状態の画情報を多数記憶
するためのものである。
The encoding / decoding section 37 encodes and compresses the image signal and decodes the encoded and compressed image information into the original image signal. The encoding function is as shown in FIG. The encoding device shown in FIG. 12 is provided, and as the decoding function, the decoding device shown in FIG. 3 is provided. The image storage device 38 is for storing a large number of encoded and compressed image information.

【0142】グループ3ファクシミリモデム39は、グ
ループ3ファクシミリのモデム機能を実現するためのも
のであり、伝送手順信号をやりとりするための低速モデ
ム機能(V.21モデム)、および、おもに画情報をや
りとりするための高速モデム機能(V.17モデム、
V.33モデム、V.29モデム、V.27terモデ
ムなど)を備えている。
The group 3 facsimile modem 39 is for realizing the modem function of the group 3 facsimile. The group 3 facsimile modem 39 has a low-speed modem function (V.21 modem) for exchanging transmission procedure signals and mainly exchanges image information. High-speed modem function (V.17 modem,
V. 33 modem; 29 modem, V.29. 27ter modem etc.).

【0143】網制御装置40は、このファクシミリ装置
を公衆電話回線網に接続するためのものであり、自動発
着信機能を備えている。
The network control device 40 is for connecting the facsimile apparatus to a public telephone line network and has an automatic transmission / reception function.

【0144】これらの、制御部31、システムメモリ3
2、パラメータメモリ33、多値スキャナ34、多値プ
ロッタ35、操作表示部36、符号化復号化部37、画
像蓄積装置38、グループ3ファクシミリモデム39、
および、網制御装置40は、内部バス41に接続されて
おり、これらの各要素間でのデータのやりとりは、主と
してこの内部バス41を介して行われている。
The control unit 31 and the system memory 3
2, parameter memory 33, multi-value scanner 34, multi-value plotter 35, operation display unit 36, encoding / decoding unit 37, image storage device 38, group 3 facsimile modem 39,
The network control device 40 is connected to an internal bus 41, and data exchange between these elements is mainly performed via the internal bus 41.

【0145】また、網制御装置40とグループ3ファク
シミリモデム39との間のデータのやりとりは、直接行
なわれている。
Data exchange between the network controller 40 and the group 3 facsimile modem 39 is directly performed.

【0146】図18は、図17に示したファクシミリ装
置の画情報送信処理の一例を示している。
FIG. 18 shows an example of the image information transmitting process of the facsimile apparatus shown in FIG.

【0147】まず、指定された宛先へ発呼して(処理6
01)、所定の伝送前手順を実行して、相手端末との間
で画情報伝送のための種々の条件を設定する(処理60
2)。このとき、相手端末からは、装置機能として、受
信可能なデータ量が通知されるので、このときに通知さ
れたデータ量の値を、符号化復号化部37の符号化装置
の符号量制御部3aに加える制限データ量信号DVにセ
ットする(処理603)。これにより、これ以降、符号
化復号化部37では、出力される符号データのデータ量
が、この制限データ量信号DVの値に制限される。
First, a call is made to the designated destination (process 6).
01), a predetermined pre-transmission procedure is executed to set various conditions for image information transmission with the partner terminal (step 60).
2). At this time, since the partner terminal notifies the receivable data amount as a device function, the value of the notified data amount is used as the device function by the code amount control unit of the encoding device of the encoding / decoding unit 37. The limit data amount signal DV to be added to 3a is set (process 603). As a result, thereafter, in the encoding / decoding unit 37, the data amount of the output coded data is limited to the value of the limited data amount signal DV.

【0148】次いで、多値スキャナ34によって1ペー
ジ分の送信原稿の画像を読み取り(処理604)、それ
によって得た白黒多階調画像データを符号化復号化部3
7で符号化圧縮し、それによって得た画情報(符号デー
タPD)を相手端末に送信し(処理606)、そのとき
に対応したメッセージ後信号を送出し(処理607)、
相手端末より応答信号を受信する(処理608)。
Next, the image of the transmission document for one page is read by the multi-level scanner 34 (process 604), and the obtained black-and-white multi-tone image data is encoded and decoded by the encoding / decoding section 3.
7, the image information (code data PD) obtained by this is transmitted to the other terminal (process 606), and a corresponding post-message signal is transmitted at that time (process 607).
A response signal is received from the partner terminal (process 608).

【0149】ここで、多値スキャナ34に他の送信原稿
がセットされているかどうかを調べ(判断609)、判
断609の結果がYESになるときには、処理604に
戻り、次のページの送信原稿の画像の送信動作を行う。
Here, it is checked whether or not another transmission original is set on the multi-valued scanner 34 (decision 609). An image transmission operation is performed.

【0150】また、全ての送信原稿の画像送信動作が終
了した場合で、判断609の結果がNOになるときに
は、切断命令信号DCNを送出し(処理610)、回線
を復旧して(処理611)、一連の送信動作を終了す
る。
If the image transmission operation for all transmission originals has been completed and the result of determination 609 is NO, a disconnection command signal DCN is transmitted (process 610), and the line is restored (process 611). , A series of transmission operations ends.

【0151】このようにして、本実施例では、相手端末
が受信可能なデータ量に、送信画情報のデータ量を抑制
しているので、適切な多値画情報(多階調画情報)送信
を行うことができる。
As described above, in this embodiment, since the data amount of the transmission image information is suppressed to the data amount that can be received by the partner terminal, appropriate multi-valued image information (multi-tone image information) is transmitted. It can be performed.

【0152】なお、上述した実施例では、挿入データ発
生部は、疑似ランダム発生処理により挿入する画像デー
タを発生しているが、それ以外のデータ発生処理、例え
ば、周知の予測処理などにより、挿入する画像データを
発生することもできる。
In the above-described embodiment, the insertion data generating section generates the image data to be inserted by the pseudo-random generation processing. However, the insertion data is generated by other data generation processing, for example, the well-known prediction processing. Image data to be generated.

【0153】また、上述した実施例では、白黒多階調画
像データの1画素あたりのビット数が8ビットの場合、
および、カラー多階調画像データの1画素あたりのビッ
ト数が24ビット(各色成分毎8ビット)について説明
したが、それ以外のビット数の場合にも本発明を同様に
して適用することができる。
In the above-described embodiment, when the number of bits per pixel of the monochrome multi-tone image data is 8 bits,
Also, although the number of bits per pixel of the color multi-tone image data is 24 bits (8 bits for each color component), the present invention can be similarly applied to other numbers of bits. .

【0154】また、上述した実施例では、カラー多階調
画像データの色成分としてRGBの3原色を用いた場合
について説明したが、それ以外の色成分に分割する場合
でも、本発明を同様にして適用することができる。
Further, in the above-described embodiment, the case where the three primary colors of RGB are used as the color components of the color multi-tone image data has been described. Can be applied.

【0155】また、上述した実施例では、通信機能とし
てグループ3ファクシミリ通信機能を備えたものについ
て説明したが、他の通信機能、例えば、グループ4ファ
クシミリ通信機能や汎用のデータ伝送機能を備えたもの
についても、本発明を同様にして適用することができ
る。
In the above-described embodiment, the communication function having the group 3 facsimile communication function has been described. However, other communication functions such as the group 4 facsimile communication function and the general-purpose data transmission function can be used. The present invention can be similarly applied to

【0156】[0156]

【発明の効果】以上説明したように、本発明によれば、
白黒多階調画像あるいはカラー多階調画像を符号化圧縮
したときの符号データのデータ量をあらかじめ定められ
ている値、あるいは、外部から指定された値に制限する
ことができるので、例えば、画像配布時の符号データの
取り扱いが容易になるという効果を得る。
As described above, according to the present invention,
Since the amount of code data when encoding and compressing a black-and-white multi-tone image or a color multi-tone image can be limited to a predetermined value or a value specified from the outside, for example, There is an effect that the handling of the code data at the time of distribution becomes easy.

【0157】また、データ量が制限された符号データか
ら、元の白黒多階調画像あるいはカラー多階調画像を復
元することができるので、そのような符号データを適切
に取り扱うことができるという効果を得る。
In addition, since the original black-and-white multi-tone image or color multi-tone image can be restored from the code data whose data amount is limited, such code data can be appropriately handled. Get.

【0158】また、画像通信において、相手端末が扱え
るデータ量が制限されているとき、その制限データ量
に、白黒多階調画像あるいはカラー多階調画像の送信画
情報のデータ量を制限できるので、白黒多階調画像ある
いはカラー多階調画像の画像通信を効率よく行うことが
できるという効果を得る。
In the image communication, when the data amount that can be handled by the partner terminal is limited, the data amount of the transmission image information of the monochrome multi-tone image or the color multi-tone image can be limited to the limited data amount. Thus, an effect is obtained that image communication of a monochrome multi-tone image or a color multi-tone image can be efficiently performed.

【0159】また、データ量の制限は、最上位ビットの
ビットプレーンから下位ビットのビットプレーンに向け
て行われるので、白黒多階調画像あるいはカラー多階調
画像にとってより大きな情報量を運ぶ上位ビットのビッ
トプレーンの符号データは必ず含まれ、その結果、デー
タ量制限により削除された下位ビットのビットプレーン
を、例えば、ランダムデータとして発生した場合でも、
再生画像の画質はかなり良好であるという効果も得る。
Since the data amount is restricted from the bit plane of the most significant bit to the bit plane of the lower bit, the upper bit that carries a larger amount of information for a monochrome multi-tone image or a color multi-tone image. Bit plane code data is always included, and as a result, even if the lower-order bit plane deleted due to the data amount limitation is generated as random data, for example,
The effect that the image quality of the reproduced image is quite good is also obtained.

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

【図1】本発明の一実施例にかかる白黒多階調画像の符
号化装置の一例を示したブロック図。
FIG. 1 is a block diagram showing an example of a monochrome multi-tone image encoding apparatus according to an embodiment of the present invention.

【図2】符号データPDの一例を示した概略図。FIG. 2 is a schematic diagram showing an example of code data PD.

【図3】符号データPDに基づいて元の画像データを形
成する復号化装置の一例を示したブロック図。
FIG. 3 is a block diagram illustrating an example of a decoding device that forms original image data based on code data PD.

【図4】符号化装置の符号量制御部の処理例を示したフ
ローチャート。
FIG. 4 is a flowchart illustrating a processing example of a code amount control unit of the encoding device.

【図5】復号化装置のビットパターンデータ作成部の処
理の一例を示したフローチャート。
FIG. 5 is a flowchart illustrating an example of processing of a bit pattern data creation unit of the decoding device.

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

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

【図8】カラー符号データCDに基づいて元の画像デー
タを形成する復号化装置の一例を示したブロック図。
FIG. 8 is a block diagram illustrating an example of a decoding device that forms original image data based on color code data CD.

【図9】図6に示した符号化装置の符号量制御部の処理
例を示したフローチャート。
FIG. 9 is a flowchart showing a processing example of a code amount control unit of the encoding device shown in FIG. 6;

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

【図11】カラー符号データCDに基づいて元の画像デ
ータを形成する復号化装置の他の例を示したブロック
図。
FIG. 11 is a block diagram showing another example of a decoding device that forms original image data based on color code data CD.

【図12】本発明の別な実施例にかかる白黒多階調画像
の符号化装置の一例を示したブロック図。
FIG. 12 is a block diagram showing an example of a coding apparatus for a black-and-white multi-tone image according to another embodiment of the present invention.

【図13】図12に示した符号化装置の符号量制御部の
処理の一例を示したフローチャート。
FIG. 13 is a flowchart illustrating an example of processing of a code amount control unit of the encoding device illustrated in FIG. 12;

【図14】本発明の別な実施例にかかるカラー多階調画
像の符号化装置の一例を示したブロック図。
FIG. 14 is a block diagram showing an example of a color multi-tone image coding apparatus according to another embodiment of the present invention.

【図15】図14に示した符号化装置の符号量制御部の
処理例を示し
15 shows a processing example of a code amount control unit of the encoding device shown in FIG.

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

【図17】本発明のさらに別な実施例にかかるグループ
3ファクシミリ装置を示したブロック図。
FIG. 17 is a block diagram showing a group 3 facsimile apparatus according to still another embodiment of the present invention.

【図18】図17の装置の送信時の処理例を示したフロ
ーチャート。
18 is a flowchart showing a processing example at the time of transmission of the device of FIG. 17;

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

1,12r,12g,12b,22 ビットプレーン生
成部 2,13r,13g,13b,23 ビットプレーン符
号化部 3,3a,14r,14ra,14g,14ga,14
b,14ba,24,24a 符号量制御部 4,16r,16g,16b,27 ビットプレーン復
号化部 5,17r,17g,17b,28 ビットプレーンデ
ータ作成部 6,18r,18g,18b,30 挿入データ発生部 7,19r,19g,19b,31 画像データ出力部 10,21 色成分分解部 11,25 符号出力部 15,26 符号分配部 20,29 画像データ出力変換部 31 制御部 32 システムメモリ 33 パラメータメモリ 34 多値スキャナ 35 多値プロッタ 37 符号化復号化部
1, 12r, 12g, 12b, 22-bit plane generating unit 2, 13r, 13g, 13b, 23-bit plane encoding unit 3, 3a, 14r, 14ra, 14g, 14ga, 14
b, 14ba, 24, 24a Code amount control unit 4, 16r, 16g, 16b, 27 bit plane decoding unit 5, 17r, 17g, 17b, 28 bit plane data creation unit 6, 18r, 18g, 18b, 30 Insert data Generation unit 7, 19r, 19g, 19b, 31 Image data output unit 10, 21 Color component separation unit 11, 25 Code output unit 15, 26 Code distribution unit 20, 29 Image data output conversion unit 31, Control unit 32 System memory 33 Parameter Memory 34 Multi-level scanner 35 Multi-level plotter 37 Encoding / decoding unit

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/41 - 1/419 Continuation of front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/41-1/419

Claims (17)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 1画素あたり複数ビットからなる白黒多
階調画像から、同一ビット順位のビットデータを画素毎
に取り出してなるビットプレーンを形成し、おのおのの
ビットプレーン毎に二値符号化処理して、原画像を符号
化圧縮する画像処理装置において、 上記ビットプレーンのデータを最上位ビットのビットプ
レーンから下位ビットのビットプレーンに向けて、ビッ
トプレーン単位に二値符号化して二値符号化データを出
力するビットプレーン符号化手段と、 上記ビットプレーン符号化手段から出力される二値符号
化データの出力順に算出したビットプレーン単位の総デ
ータ量を、あらかじめ定められた値以内に制限する符号
量制御手段を備えたことを特徴とする画像処理装置。
1. A bit plane formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and performing a binary encoding process for each bit plane. In an image processing apparatus for encoding and compressing an original image, the bit-plane data is binary-coded in bit-plane units from the bit plane of the most significant bit to the bit plane of the lower-order bit, and the binary encoded data is A bit plane encoding means for outputting the data amount, and a code amount for limiting the total data amount per bit plane calculated in the output order of the binary encoded data output from the bit plane encoding means to within a predetermined value. An image processing apparatus comprising control means.
【請求項2】 1画素あたり複数ビットからなる白黒多
階調画像から、同一ビット順位のビットデータを画素毎
に取り出してなるビットプレーンを形成し、おのおのの
ビットプレーン毎に二値符号化処理して、原画像を符号
化圧縮する画像処理装置において、 上記ビットプレーンのデータを最上位ビットのビットプ
レーンから下位ビットのビットプレーンに向けて、ビッ
トプレーン単位に二値符号化して二値符号化データを出
力するビットプレーン符号化手段と、 上記ビットプレーン符号化手段から出力される二値符号
化データの出力順に算出したビットプレーン単位の総デ
ータ量を、あらかじめ定められた値以内に制限するとと
もに、二値符号化データの先頭に上記原画像の1画素あ
たりのビット数をあらわす情報を付加する符号量制御手
段を備えたことを特徴とする画像処理装置。
2. A bit plane formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and performing a binary encoding process for each bit plane. In an image processing apparatus for encoding and compressing an original image, the bit-plane data is binary-coded in bit-plane units from the bit plane of the most significant bit to the bit plane of the lower-order bit, and the binary encoded data is Bit plane encoding means for outputting the total data amount per bit plane calculated in the output order of the binary encoded data output from the bit plane encoding means, within a predetermined value, A code amount control method for adding information representing the number of bits per pixel of the original image to the head of the binary coded data. The image processing apparatus characterized by comprising a.
【請求項3】 1画素あたり複数ビットからなる白黒多
階調画像から、同一ビット順位のビットデータを画素毎
に取り出してなるビットプレーンを形成し、おのおのの
ビットプレーン毎に二値符号化処理して、原画像を符号
化圧縮する画像処理装置において、 上記ビットプレーンのデータを最上位ビットのビットプ
レーンから下位ビットのビットプレーンに向けて、ビッ
トプレーン単位に二値符号化して二値符号化データを出
力するビットプレーン符号化手段と、 上記二値符号化データのデータ量の制限値を入力するデ
ータ量制限値入力手段と、 上記ビットプレーン符号化手段から出力される二値符号
化データの出力順に算出したビットプレーン単位の総デ
ータ量を、上記データ量制限値入力手段より入力された
制限値以内に制限する符号量制御手段を備えたことを特
徴とする画像処理装置。
3. A bit plane formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and performing a binary encoding process for each bit plane. In an image processing apparatus for encoding and compressing an original image, the bit-plane data is binary-coded in bit-plane units from the bit plane of the most significant bit to the bit plane of the lower-order bit, and the binary encoded data is Bit plane encoding means for outputting a data amount limit value input means for inputting a data amount limit value of the binary encoded data, and output of the binary encoded data output from the bit plane encoding means. A code amount for limiting the total data amount in the bit plane unit calculated in order within the limit value input from the data amount limit value input means. An image processing apparatus comprising control means.
【請求項4】 1画素あたり複数ビットからなる白黒多
階調画像から、同一ビット順位のビットデータを画素毎
に取り出してなるビットプレーンを形成し、おのおのの
ビットプレーン毎に二値符号化処理して、原画像を符号
化圧縮する画像処理装置において、 上記ビットプレーンのデータを最上位ビットのビットプ
レーンから下位ビットのビットプレーンに向けて、ビッ
トプレーン単位に二値符号化して二値符号化データを出
力するビットプレーン符号化手段と、 上記二値符号化データのデータ量の制限値を入力するデ
ータ量制限値入力手段と、 上記ビットプレーン符号化手段から出力される二値符号
化データの出力順に算出したビットプレーン単位の総デ
ータ量を、上記データ量制限値入力手段より入力された
制限値以内に制限するとともに、二値符号化データの先
頭に上記原画像の1画素あたりのビット数をあらわす情
報を付加する符号量制御手段を備えたことを特徴とする
画像処理装置。
4. A bit plane is formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and a binary encoding process is performed for each bit plane. In an image processing apparatus for encoding and compressing an original image, the bit-plane data is binary-coded in bit-plane units from the bit plane of the most significant bit to the bit plane of the lower-order bit, and the binary encoded data is Bit plane encoding means for outputting a data amount limit value input means for inputting a data amount limit value of the binary encoded data, and output of the binary encoded data output from the bit plane encoding means. The total data amount in the bit plane unit calculated in order is limited to within the limit value input from the data amount limit value input means. And a code amount control means for adding information representing the number of bits per pixel of the original image to the head of the binary coded data.
【請求項5】 1画素あたり複数ビットからなる白黒多
階調画像から、同一ビット順位のビットデータを画素毎
に取り出してなるビットプレーンを形成し、おのおのの
ビットプレーン毎に二値符号化処理して得られた符号化
データに基づいて、原画像の画像データを復号化する画
像処理装置において、 上記ビットプレーン毎の二値符号化データを復号化して
あらかじめ定められているビットプレーン数のビットプ
レーン単位の画像データを形成するビットプレーン復号
化手段と、 上記ビットプレーン復号化手段から出力されるビットプ
レーン単位の復号化画像データのうち、正常に復号化で
きなかった下位ビットのビットプレーンの画像データを
補間する補間画像データを発生する挿入画像データ発生
手段と、 上記ビットプレーン復号化手段から正常に復号化されて
出力される復号化画像データと、上記挿入画像データ発
生手段から出力される補間画像データに基づいて、原画
像の画像データを形成するビットプレーンデータ作成手
段を備えたことを特徴とする画像処理装置。
5. A bit plane formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and performing a binary encoding process for each bit plane. An image processing apparatus that decodes image data of an original image based on the encoded data obtained by decoding the binary encoded data for each of the bit planes. A bit plane decoding unit that forms a unit of image data; and a bit plane image data of a lower bit that cannot be decoded normally among the bit plane unit decoded image data output from the bit plane decoding unit. Inserting image data generating means for generating interpolated image data for interpolating Bit plane data generating means for forming image data of an original image based on the decoded image data normally decoded and output from and the interpolated image data output from the inserted image data generating means. An image processing apparatus characterized by the above-mentioned.
【請求項6】 1画素あたり複数ビットからなる白黒多
階調画像から、同一ビット順位のビットデータを画素毎
に取り出してなるビットプレーンを形成し、おのおのの
ビットプレーン毎に二値符号化処理して得られた符号化
データに基づいて、原画像の画像データを復号化する画
像処理装置において、 上記ビットプレーン毎の二値符号化データを復号化して
ビットプレーン単位の画像データを形成するビットプレ
ーン復号化手段と、 上記ビットプレーン復号化手段から出力されるビットプ
レーン単位の復号化画像データのうち、正常に復号化で
きなかった下位ビットのビットプレーンの画像データ、
および、上記二値符号化データの先頭に付加されている
原画像の1画素あたりのビット数をあらわす情報に対応
したビットプレーン数と上記ビットプレーン復号化手段
が正常に復号化したビットプレーン数との差に相当する
ビットプレーン数分の下位ビットの画像データを発生す
る挿入画像データ発生手段と、 上記ビットプレーン復号化手段から出力される復号化画
像データと、上記挿入画像データ発生手段から出力され
る画像データに基づいて、原画像の画像データを形成す
るビットプレーンデータ作成手段を備えたことを特徴と
する画像処理装置。
6. A bit plane formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image composed of a plurality of bits per pixel, and performing a binary encoding process for each bit plane. An image processing apparatus for decoding image data of an original image based on the coded data obtained in the above step, comprising: a bit plane for decoding the binary coded data for each bit plane to form image data in a bit plane unit Decoding means, of the bit-plane-decoded image data output from the bit-plane decoding means, bit-plane image data of lower bits that could not be decoded normally;
And the number of bit planes corresponding to information representing the number of bits per pixel of the original image added to the head of the binary coded data and the number of bit planes normally decoded by the bit plane decoding means. , The inserted image data generating means for generating image data of lower bits corresponding to the number of bit planes corresponding to the difference between the bit planes, the decoded image data output from the bit plane decoding means, An image processing apparatus comprising: bit plane data generating means for forming image data of an original image based on image data to be processed.
【請求項7】 複数の色成分からなるとともに、1つの
色成分が1画素あたり複数ビットからなるカラー多階調
画像から、おのおのの色成分について、同一ビット順位
のビットデータを画素毎に取り出してなるビットプレー
ンを形成し、おのおののビットプレーン毎に二値符号化
処理して、原画像を符号化圧縮する画像処理装置におい
て、 おのおのの色成分について、上記ビットプレーンのデー
タを最上位ビットのビットプレーンから下位ビットのビ
ットプレーンに向けて、ビットプレーン単位に二値符号
化して二値符号化データを出力するビットプレーン符号
化手段と、 おのおのの色成分について、上記ビットプレーン符号化
手段から出力される二値符号化データの出力順に算出し
たビットプレーン単位の総データ量を、あらかじめ定め
られた値以内に制限する符号量制御手段を備えたことを
特徴とする画像処理装置。
7. Bit data of the same bit order for each color component is extracted for each pixel from a color multi-tone image composed of a plurality of color components and one color component composed of a plurality of bits per pixel. An image processing apparatus that forms a bit plane, performs binary coding for each bit plane, and encodes and compresses the original image. For each color component, the data of the bit plane is converted into the most significant bit. Bit plane encoding means for performing binary encoding in units of bit planes and outputting binary encoded data from the plane to the bit plane of lower bits, and for each color component, output from the bit plane encoding means. The total data amount per bit plane calculated in the output order of binary encoded data The image processing apparatus characterized by comprising a code amount control means for limiting within a value was.
【請求項8】 複数の色成分からなるとともに、1つの
色成分が1画素あたり複数ビットからなるカラー多階調
画像から、おのおのの色成分について、同一ビット順位
のビットデータを画素毎に取り出してなるビットプレー
ンを形成し、おのおののビットプレーン毎に二値符号化
処理して、原画像を符号化圧縮する画像処理装置におい
て、 おのおのの色成分について、上記ビットプレーンのデー
タを最上位ビットのビットプレーンから下位ビットのビ
ットプレーンに向けて、ビットプレーン単位に二値符号
化して二値符号化データを出力する複数のビットプレー
ン符号化手段と、 おのおのの色成分について、上記複数のビットプレーン
符号化手段から出力される二値符号化データの出力順に
算出したビットプレーン単位の総データ量を、あらかじ
め定められた値以内にそれぞれ制限する複数の符号量制
御手段を備えたことを特徴とする画像処理装置。
8. A color multi-tone image comprising a plurality of color components and one color component comprising a plurality of bits per pixel. For each color component, bit data having the same bit order is extracted for each pixel. An image processing apparatus that forms a bit plane, performs binary coding for each bit plane, and encodes and compresses the original image. For each color component, the data of the bit plane is converted into the most significant bit. A plurality of bit plane coding means for performing binary coding in units of bit planes and outputting binary coded data from the plane to a bit plane of lower bits, and the plurality of bit plane codings for each color component Means the total data amount in bit plane units calculated in the output order of the binary encoded data output from the means. The image processing apparatus characterized by comprising a plurality of code amount control means for limiting respectively within order determined value of Flip.
【請求項9】 複数の色成分からなるとともに、1つの
色成分が1画素あたり複数ビットからなるカラー多階調
画像から、おのおのの色成分について、同一ビット順位
のビットデータを画素毎に取り出してなるビットプレー
ンを形成し、おのおののビットプレーン毎に二値符号化
処理して、原画像を符号化圧縮する画像処理装置におい
て、 おのおのの色成分について、上記ビットプレーンのデー
タを最上位ビットのビットプレーンから下位ビットのビ
ットプレーンに向けて、ビットプレーン単位に二値符号
化して二値符号化データを出力するビットプレーン符号
化手段と、 おのおのの色成分について、上記ビットプレーン符号化
手段から出力される二値符号化データの出力順に算出し
たビットプレーン単位の総データ量を、あらかじめ定め
られた値以内に制限するとともに、上記二値符号化デー
タの先頭に、色成分の数および1画素あたりのビット数
をあわらす情報を付加する符号量制御手段を備えたこと
を特徴とする画像処理装置。
9. From a color multi-tone image composed of a plurality of color components and one color component composed of a plurality of bits per pixel, bit data of the same bit order is extracted for each pixel for each color component. An image processing apparatus that forms a bit plane, performs binary coding for each bit plane, and encodes and compresses the original image. For each color component, the data of the bit plane is converted into the most significant bit. Bit plane encoding means for performing binary encoding on a bit plane basis and outputting binary encoded data from the plane to the bit plane of lower bits, and for each color component, the bit plane encoding means The total data amount per bit plane calculated in the output order of binary encoded data And a code amount control means for adding information indicating the number of color components and the number of bits per pixel at the beginning of the binary coded data. apparatus.
【請求項10】 複数の色成分からなるとともに、1つ
の色成分が1画素あたり複数ビットからなるカラー多階
調画像から、おのおのの色成分について、同一ビット順
位のビットデータを画素毎に取り出してなるビットプレ
ーンを形成し、おのおののビットプレーン毎に二値符号
化処理して、原画像を符号化圧縮する画像処理装置にお
いて、 おのおのの色成分について、上記ビットプレーンのデー
タを最上位ビットのビットプレーンから下位ビットのビ
ットプレーンに向けて、ビットプレーン単位に二値符号
化して二値符号化データを出力する複数のビットプレー
ン符号化手段と、 おのおのの色成分について、上記複数のビットプレーン
符号化手段から出力される二値符号化データの出力順に
算出したビットプレーン単位の総データ量を、あらかじ
め定められた値以内にそれぞれ制限するとともに、上記
二値符号化データの先頭に、色成分の数および1画素あ
たりのビット数をあわらす情報を付加する複数の符号量
制御手段を備えたことを特徴とする画像処理装置。
10. A bit data having the same bit order for each color component is extracted for each pixel from a color multi-tone image including a plurality of color components and one color component including a plurality of bits per pixel. An image processing apparatus that forms a bit plane, performs binary coding for each bit plane, and encodes and compresses the original image. For each color component, the data of the bit plane is converted into the most significant bit. A plurality of bit plane coding means for performing binary coding in units of bit planes and outputting binary coded data from the plane to a bit plane of lower bits, and the plurality of bit plane codings for each color component The total data amount in bit plane units calculated in the output order of the binary coded data output from the A plurality of code amount control means for limiting information within a predetermined value and adding information indicating the number of color components and the number of bits per pixel to the head of the binary coded data are provided. An image processing apparatus characterized by the above-mentioned.
【請求項11】 複数の色成分からなるとともに、1つ
の色成分が1画素あたり複数ビットからなるカラー多階
調画像から、おのおのの色成分について、同一ビット順
位のビットデータを画素毎に取り出してなるビットプレ
ーンを形成し、おのおののビットプレーン毎に二値符号
化処理して、原画像を符号化圧縮する画像処理装置にお
いて、 おのおのの色成分について、上記ビットプレーンのデー
タを最上位ビットのビットプレーンから下位ビットのビ
ットプレーンに向けて、ビットプレーン単位に二値符号
化して二値符号化データを出力するビットプレーン符号
化手段と、 上記二値符号化データのデータ量の制限値を入力するデ
ータ量制限値入力手段と、 おのおのの色成分について、上記ビットプレーン符号化
手段から出力される二値符号化データの出力順に算出し
たビットプレーン単位の総データ量を、上記データ量制
限値入力手段より入力された制限値に制限する符号量制
御手段を備えたことを特徴とする画像処理装置。
11. Bit data of the same bit order for each color component is extracted for each pixel from a color multi-tone image composed of a plurality of color components and one color component composed of a plurality of bits per pixel. An image processing apparatus that forms a bit plane, performs binary coding for each bit plane, and encodes and compresses the original image. For each color component, the data of the bit plane is converted into the most significant bit. A bit plane encoding unit that performs binary encoding in bit plane units and outputs binary encoded data from the plane to a bit plane of lower bits, and inputs a limit value of a data amount of the binary encoded data. Data amount limit value input means, and a binary code output from the bit plane coding means for each color component. An image processing apparatus, comprising: a code amount control unit that limits a total data amount in a bit plane unit calculated in an output order of encoded data to a limit value input from the data amount limit value input unit.
【請求項12】 複数の色成分からなるとともに、1つ
の色成分が1画素あたり複数ビットからなるカラー多階
調画像から、おのおのの色成分について、同一ビット順
位のビットデータを画素毎に取り出してなるビットプレ
ーンを形成し、おのおののビットプレーン毎に二値符号
化処理して、原画像を符号化圧縮する画像処理装置にお
いて、 おのおのの色成分について、上記ビットプレーンのデー
タを最上位ビットのビットプレーンから下位ビットのビ
ットプレーンに向けて、ビットプレーン単位に二値符号
化して二値符号化データを出力するビットプレーン符号
化手段と、 上記二値符号化データのデータ量の制限値を入力するデ
ータ量制限値入力手段と、 おのおのの色成分について、上記ビットプレーン符号化
手段から出力される二値符号化データの出力順に算出し
たビットプレーン単位の総データ量を、上記データ量制
限値入力手段より入力された制限値以内に制限するとと
もに、上記二値符号化データの先頭に、色成分の数およ
び1画素あたりのビット数をあわらす情報を付加する符
号量制御手段を備えたことを特徴とする画像処理装置。
12. From a color multi-tone image composed of a plurality of color components and one color component composed of a plurality of bits per pixel, bit data of the same bit order is extracted for each pixel for each color component. An image processing apparatus that forms a bit plane, performs binary coding for each bit plane, and encodes and compresses the original image. For each color component, the data of the bit plane is converted into the most significant bit. A bit plane encoding unit that performs binary encoding in bit plane units and outputs binary encoded data from the plane to a bit plane of lower bits, and inputs a limit value of a data amount of the binary encoded data. Data amount limit value input means, and a binary code output from the bit plane coding means for each color component. The total data amount in bit plane units calculated in the output order of the encoded data is limited to within the limit value input from the data amount limit value input means, and the number of color components and An image processing apparatus comprising a code amount control unit for adding information indicating the number of bits per pixel.
【請求項13】 複数の色成分からなるとともに、1つ
の色成分が1画素あたり複数ビットからなるカラー多階
調画像から、おのおのの色成分について、おのおののビ
ットプレーン毎に二値符号化処理して得られた符号化デ
ータに基づいて、原画像の画像データを復号化する画像
処理装置において、 上記ビットプレーン毎の二値符号化データを復号化して
あらかじめ定められているビットプレーン数のビットプ
レーン単位の画像データを形成するビットプレーン復号
化手段と、 上記ビットプレーン復号化手段から出力されるビットプ
レーン単位の復号化画像データのうち、正常に復号化で
きなかった下位ビットのビットプレーンの画像データを
補間する補間画像データを発生する挿入画像データ発生
手段と、 上記ビットプレーン復号化手段から正常に復号化されて
出力される復号化画像データと、上記挿入画像データ発
生手段から出力される補間画像データに基づいて、おの
おのの色成分の画像データを形成するビットプレーンデ
ータ作成手段と、 上記ビットプレーンデータ作成手段から出力されるおの
おのの色成分の画像データに基づいて、原画像の画像デ
ータを形成する画像データ変換出力手段を備えたことを
特徴とする画像処理装置。
13. A binary coding process for each color component for each bit plane from a color multi-tone image composed of a plurality of color components and one color component composed of a plurality of bits per pixel. An image processing apparatus that decodes image data of an original image based on the encoded data obtained by decoding the binary encoded data for each of the bit planes. A bit plane decoding unit that forms a unit of image data; and a bit plane image data of a lower bit that cannot be decoded normally among the bit plane unit decoded image data output from the bit plane decoding unit. An insertion image data generating means for generating interpolation image data for interpolating Bit plane data generating means for forming image data of each color component based on the decoded image data that is normally decoded and output, and the interpolated image data output from the inserted image data generating means, An image processing apparatus comprising: an image data conversion output unit that forms image data of an original image based on image data of each color component output from the bit plane data generation unit.
【請求項14】 複数の色成分からなるとともに、1つ
の色成分が1画素あたり複数ビットからなるカラー多階
調画像から、おのおのの色成分について、おのおののビ
ットプレーン毎に二値符号化処理して得られた符号化デ
ータに基づいて、原画像の画像データを復号化する画像
処理装置において、 上記ビットプレーン毎の二値符号化データを復号化して
ビットプレーン単位の画像データを形成するビットプレ
ーン復号化手段と、 上記ビットプレーン復号化手段から出力されるビットプ
レーン単位の復号化画像データのうち、正常に復号化で
きなかった下位ビットのビットプレーンの画像データ、
および、上記二値符号化データの先頭に付加されている
原画像の1画素あたりのビット数をあらわす情報に対応
したビットプレーン数と上記ビットプレーン復号化手段
が正常に復号化したビットプレーン数との差に相当する
ビットプレーン数分の下位ビットの画像データを発生す
る挿入画像データ発生手段と、 上記ビットプレーン復号化手段から出力される復号化画
像データと、上記挿入画像データ発生手段から出力され
る画像データに基づいて、おのおのの色成分の画像デー
タを形成するビットプレーンデータ作成手段と、 上記ビットプレーンデータ作成手段から出力されるおの
おのの色成分の画像データに基づいて、上記二値符号化
データの先頭に付加されている色成分の数に対応した原
画像の画像データを形成する画像データ変換出力手段を
備えたことを特徴とする画像処理装置。
14. A binary encoding process for each bit plane for each color component from a color multi-tone image composed of a plurality of color components and one color component composed of a plurality of bits per pixel. An image processing apparatus for decoding image data of an original image based on the coded data obtained in the above step, comprising: a bit plane for decoding the binary coded data for each bit plane to form image data in a bit plane unit Decoding means, of the bit-plane-decoded image data output from the bit-plane decoding means, bit-plane image data of lower bits that could not be decoded normally;
And the number of bit planes corresponding to information representing the number of bits per pixel of the original image added to the head of the binary coded data and the number of bit planes normally decoded by the bit plane decoding means. , The inserted image data generating means for generating image data of lower bits corresponding to the number of bit planes corresponding to the difference between the bit planes, the decoded image data output from the bit plane decoding means, Bit plane data generating means for forming image data of each color component based on image data to be processed, and the binary coding based on image data of each color component output from the bit plane data generating means. Image data conversion output that forms the image data of the original image corresponding to the number of color components added to the head of the data The image processing apparatus characterized by comprising means.
【請求項15】 前記挿入画像データ発生手段は、疑似
ランダムデータからなる画像データを発生するものであ
ることを特徴とする請求項5または請求項6または請求
項13または請求項14記載の画像処理装置。
15. The image processing apparatus according to claim 5, wherein said insertion image data generating means generates image data composed of pseudo-random data. apparatus.
【請求項16】 1画素あたり複数ビットからなる白黒
多階調画像から、同一ビット順位のビットデータを画素
毎に取り出してなるビットプレーンを形成し、おのおの
のビットプレーン毎に二値符号化処理して、原画像を符
号化圧縮するとともに、所定の伝送手順により、その二
値符号化データを相手端末に送信する送信機能を備えた
画像処理装置において、 上記ビットプレーンのデータを最上位ビットのビットプ
レーンから下位ビットのビットプレーンに向けて、ビッ
トプレーン単位に二値符号化して二値符号化データを出
力するビットプレーン符号化手段と、 上記ビットプレーン符号化手段から出力される二値符号
化データの出力順に算出したビットプレーン単位の総デ
ータ量を、所定の伝送前手順により相手端末から通知さ
れる制限値以内に制限する符号量制御手段を備えたこと
を特徴とする画像処理装置。
16. A bit plane formed by extracting bit data of the same bit order for each pixel from a monochrome multi-tone image consisting of a plurality of bits per pixel, and performing a binary encoding process for each bit plane. An image processing apparatus having a transmission function of transmitting the binary coded data to the destination terminal by a predetermined transmission procedure while encoding and compressing the original image. Bit plane encoding means for performing binary encoding on a bit plane basis and outputting binary encoded data from the plane to a bit plane of lower bits, and binary encoded data output from the bit plane encoding means The total data amount per bit plane calculated in the output order of The image processing apparatus characterized by comprising a code amount control means for limiting within.
【請求項17】 複数の色成分からなるとともに、1つ
の色成分が1画素あたり複数ビットからなるカラー多階
調画像から、おのおのの色成分について、同一ビット順
位のビットデータを画素毎に取り出してなるビットプレ
ーンを形成し、おのおののビットプレーン毎に二値符号
化処理して、原画像を符号化圧縮するとともに、所定の
伝送手順により、その二値符号化データを相手端末に送
信する送信機能を備えた画像処理装置において、 おのおのの色成分について、上記ビットプレーンのデー
タを最上位ビットのビットプレーンから下位ビットのビ
ットプレーンに向けて、ビットプレーン単位に二値符号
化して二値符号化データを出力するビットプレーン符号
化手段と、 おのおのの色成分について、上記ビットプレーン符号化
手段から出力される二値符号化データの出力順に算出し
たビットプレーン単位の総データ量を、所定の伝送前手
順により相手端末から通知される制限値以内に制限する
符号量制御手段を備えたことを特徴とする画像処理装
置。
17. Bit data having the same bit order for each color component is extracted for each pixel from a color multi-tone image including a plurality of color components and one color component including a plurality of bits per pixel. A transmission function that forms binary bit planes, performs binary coding for each bit plane, encodes and compresses the original image, and transmits the binary coded data to the destination terminal according to a predetermined transmission procedure. An image processing apparatus comprising: for each color component, the bit-plane data is binary-coded in bit-plane units from the bit plane of the most significant bit to the bit plane of the lower-order bit, and the binary encoded data Output from the bit plane encoding means for each color component. Code amount control means for limiting the total data amount per bit plane calculated in the output order of the binary coded data to within a limit value notified from a partner terminal by a predetermined pre-transmission procedure. Image processing device.
JP16013395A 1995-06-05 1995-06-05 Image processing device Expired - Lifetime JP3344875B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16013395A JP3344875B2 (en) 1995-06-05 1995-06-05 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16013395A JP3344875B2 (en) 1995-06-05 1995-06-05 Image processing device

Publications (2)

Publication Number Publication Date
JPH08331390A JPH08331390A (en) 1996-12-13
JP3344875B2 true JP3344875B2 (en) 2002-11-18

Family

ID=15708591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16013395A Expired - Lifetime JP3344875B2 (en) 1995-06-05 1995-06-05 Image processing device

Country Status (1)

Country Link
JP (1) JP3344875B2 (en)

Also Published As

Publication number Publication date
JPH08331390A (en) 1996-12-13

Similar Documents

Publication Publication Date Title
US6947600B1 (en) Information processing method, apparatus and storage medium for receiving and decoding a code sequence obtained by encoding an image
JP3223163B2 (en) Communication device
JPH07264417A (en) Image coding method
JP3231800B2 (en) Image encoding apparatus and image encoding method
JP3344875B2 (en) Image processing device
JPH09205647A (en) Image coder, image decoder and image processor
JP2824910B2 (en) How to combine data into an image
JPH08298554A (en) Equipment and method for picture communication
JP3223046B2 (en) Error diffusion coding apparatus for binary image
JP2733465B2 (en) Data communication device and method
JP3361201B2 (en) Image encoding apparatus, image encoding / decoding apparatus, and image encoding / decoding method
JPS63182973A (en) Pseudo half-tonal image transmission method for facsimile equipment
JP2733464B2 (en) Data communication device and method
JP2849385B2 (en) Color image compression encoder
JP3079647B2 (en) Image data conversion method and apparatus
JP3295507B2 (en) Binary image encoding / decoding method
JPH07147638A (en) Image processor
JPH0937081A (en) Device and method for processing picture
JP3736107B2 (en) Image processing device
JP2698641B2 (en) Color image data encoding method and decoding method
JP2003153008A (en) Image coding device and image decoding device
JP3261206B2 (en) Image coding method
JPH06152973A (en) Method and device for compressing color picture
JPH0763177B2 (en) Image information coding device
JP2887166B2 (en) Image information communication device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080830

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080830

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090830

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090830

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100830

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100830

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110830

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110830

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120830

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120830

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130830

Year of fee payment: 11

EXPY Cancellation because of completion of term