JPH05284371A - Image data encoding method - Google Patents

Image data encoding method

Info

Publication number
JPH05284371A
JPH05284371A JP4082579A JP8257992A JPH05284371A JP H05284371 A JPH05284371 A JP H05284371A JP 4082579 A JP4082579 A JP 4082579A JP 8257992 A JP8257992 A JP 8257992A JP H05284371 A JPH05284371 A JP H05284371A
Authority
JP
Japan
Prior art keywords
image
code
component
components
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4082579A
Other languages
Japanese (ja)
Inventor
Tsuguo Noda
嗣男 野田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4082579A priority Critical patent/JPH05284371A/en
Publication of JPH05284371A publication Critical patent/JPH05284371A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Color Television Systems (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To efficiently encode an achromatic color image by encoding only a component decided to be significant with regard to plural components of a picture element. CONSTITUTION:In an image data encoding part 11, Y, Cr and Cb signals of an image component are subjected to ADCT conversion and encoded, stored in a buffer 13, and also, sent to an encoding/calculating part 14, and in the case of being an achromatic color image, the code quantity is calculated as a prescribed value. A code output part 15 decides whether the code quantity in the code quantity calculating part 14 coincides with the prescribed value or not, regards it as a significant component in the case they do not coincide with each other, and outputs the code held in the code buffer 13. Accordingly, a luminance Y signal is outputted since the code quantity is larger than the prescribed value, but a color signal is decided to be equal to the prescribed value, and not outputted. In such a way, code generation of a color component which does not contribute to a restored image in a monochromatic image is suppressed, the code quantity is reduced without being accompanied with deterioration of the picture quality and the efficiency can be enhanced.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像データを圧縮する装
置に係り、更に詳しくは複数の成分からなる画像の各々
の多値画像を複数の画素からなるブロックに分割し、ブ
ロック内の画像を符号化する多値画像の画像データ符号
化方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device for compressing image data, and more specifically, it divides each multi-valued image of an image composed of a plurality of components into blocks composed of a plurality of pixels and The present invention relates to an image data encoding method for a multivalued image to be encoded.

【0002】[0002]

【従来の技術】数値データに比べて情報量が桁違いに大
きい画像データ、特に中間調画像やカラー画像のデータ
を蓄積し、あるいは高速、高品質で伝送するためには、
画素毎の階調値を高能率に符号化する必要がある。画像
データの高能率な圧縮方法として適応離散コサイン変換
符号化方式(Adaptive Discrete Cosine Transform:A
DCT)がある。ADCTは、画像を8×8画素からな
るブロックに分割し、各ブロックの画信号を2次元離散
コサイン変換(Discrete Cosine Transform )により空
間周波数分布の係数に変換し、視覚に適応した閾値で量
子化し、求まった量子化係数を統計的に求めたハフマン
・テーブルにより符号化するものである。
2. Description of the Related Art In order to store image data whose amount of information is orders of magnitude greater than numerical data, especially halftone image and color image data, or to transmit at high speed and high quality,
It is necessary to efficiently code the gradation value for each pixel. Adaptive Discrete Cosine Transform (A) is a highly efficient compression method for image data.
DCT). ADCT divides an image into blocks of 8 × 8 pixels, converts the image signal of each block into a coefficient of spatial frequency distribution by a two-dimensional Discrete Cosine Transform, and quantizes it with a threshold value suitable for vision. The quantized coefficient obtained is encoded by a Huffman table obtained statistically.

【0003】図10は静止画像の符号化装置の従来の構
成図である。符号化に先立ち、先ず入力するカラー画像
のRGBの信号を符号化に適した成分である輝度信号Y
と2種類の色成分Cr,Cbに色変換部1は変換する。
色変換部1でY,Cr,Cb信号に変換された3種類の
成分の信号は画像バッファ2に格納される。画像バッフ
ァ2内に1画面分の3種類の信号が格納されると、符号
化制御部3は画像データ符号化部4を動作させる。尚、
以下で述べる制御により、各成分の出力を指示する信号
を画像バッファ2に順次加える。
FIG. 10 is a conventional block diagram of a still image coding apparatus. Prior to encoding, a RGB signal of a color image to be input is a luminance signal Y which is a component suitable for encoding.
And the color conversion unit 1 converts into two types of color components Cr and Cb.
The signals of the three types of components converted into the Y, Cr, and Cb signals by the color conversion unit 1 are stored in the image buffer 2. When three types of signals for one screen are stored in the image buffer 2, the encoding control unit 3 operates the image data encoding unit 4. still,
By the control described below, signals for instructing the output of each component are sequentially added to the image buffer 2.

【0004】図11は画像データ符号化部4の動作フロ
ーチャートである。画像データ符号化部4は前述した成
分であるY,Cr,Cb信号に対しそれぞれ別に符号化
を行う。先ず処理を開始するとステップST1でI=1
を設定する。このIは各成分を指示するものであり、I
が1の時に例えばY信号、2の時にCr信号、3の時に
Cb信号などである。ステップST1の後に、第I成分
の符号化をステップST2で実行する。この時、Iは1
であるのでY信号を符号化する。続いてステップST3
で求めた第1成分の符号を出力する制御を行い、画像デ
ータ符号化部4はこの制御により求めた符号を出力す
る。続いて出力の成分が終了したかをステップST4で
判別し、終了してない時(NO)にはI=I+1とす
る。これによってIは1から2に変化する。続いて前述
したステップST2,ST3を実行し、これを繰り返す
ことによりCr信号、Cb信号のそれぞれの成分をも符
号化する。そしてステップST4における判別によっ
て、全ての成分が終了したと判別(YES)し処理を終
了する。以上のような画像データ符号化部の処理によっ
てデータが符号化される。
FIG. 11 is an operation flowchart of the image data encoding unit 4. The image data encoding unit 4 separately encodes the Y, Cr, and Cb signals that are the components described above. First, when the processing is started, I = 1 in step ST1.
To set. This I indicates each component, and I
Is 1, for example, a Y signal, 2 is a Cr signal, and 3 is a Cb signal. After step ST1, the encoding of the I-th component is executed in step ST2. At this time, I is 1
Therefore, the Y signal is encoded. Then step ST3
The control for outputting the code of the first component obtained in step S1 is performed, and the image data encoding unit 4 outputs the code obtained by this control. Subsequently, it is determined in step ST4 whether or not the output component is completed, and when it is not completed (NO), I = I + 1 is set. This causes I to change from 1 to 2. Subsequently, steps ST2 and ST3 described above are executed, and by repeating this, the respective components of the Cr signal and the Cb signal are also encoded. Then, by the determination in step ST4, it is determined that all the components are finished (YES), and the process is finished. The data is encoded by the processing of the image data encoding unit as described above.

【0005】画像データ符号化部4は例えばDCT変換
部、量子化部、および可変長符号部等で構成され、ステ
ップST2の符号化制御部3による制御でそれぞれの信
号を符号化する。例えば画像バッファ2から出力される
第1の成分のY信号をDCT変換部は2次元離散コサイ
ン変換により空間周波数分布の係数に変換する。そして
その成分を量子化部は視覚に適応した閾値で量子化し、
可変長符号化部は最後に求まった量子化係数を統計的に
求めたハフマン・テーブルにより可変長符号化する。以
上のような動作によりY信号並びにCr信号、Cb信号
を実行することによりカラー画像を符号化している。
The image data encoding unit 4 is composed of, for example, a DCT conversion unit, a quantization unit, a variable length encoding unit, etc., and encodes each signal under the control of the encoding control unit 3 in step ST2. For example, the DCT transform unit transforms the Y signal of the first component output from the image buffer 2 into the coefficient of the spatial frequency distribution by the two-dimensional discrete cosine transform. Then, the quantizer quantizes the component with a threshold adapted to vision,
The variable-length coding unit performs variable-length coding on the last-obtained quantized coefficient using a Huffman table that is statistically obtained. The color image is encoded by executing the Y signal, the Cr signal, and the Cb signal by the above operation.

【0006】[0006]

【発明が解決しようとする課題】前述した従来の符号化
装置においてはカラー画像であることを優先するため、
例えば無彩色の画像を符号化する場合であっても全ての
成分を符号化して符号データを蓄積し、更には伝送して
いる。しかしながら、カラー画像信号であっても無彩色
の画像も存在し、この様な場合であっても一定量の色成
分のための符号が必要となっている。例えば医療用画像
などは無彩色画像であり、このような画像を読み取って
符号化する場合には、読み取り時に発生する背景部のわ
ずかな色ムラも符号化されるために復元画像が汚く見え
るという問題を有していた。また、無彩色画像であるに
もかかわらず、データの圧縮率が悪いという問題を有し
ていた。
In the above-mentioned conventional encoding apparatus, since priority is given to a color image,
For example, even when encoding an achromatic image, all components are encoded, code data is accumulated, and further transmitted. However, even a color image signal has an achromatic image, and even in such a case, a code for a certain amount of color components is required. For example, a medical image is an achromatic image, and when such an image is read and encoded, a slight color unevenness in the background portion that occurs at the time of reading is also encoded, so that the restored image looks dirty. Had a problem. Also, there is a problem that the data compression rate is poor even though the image is an achromatic image.

【0007】本発明はカラー画像の符号化装置でありな
がら、オペレータの介在無く無彩色画像をも効率良く符
号化する復号方法を提供することを目的とする。
It is an object of the present invention to provide a decoding method for efficiently coding an achromatic image without the intervention of an operator while being a color image coding apparatus.

【0008】[0008]

【課題を解決するための手段および作用】本発明は複数
の成分の画素からなる原画像を、複数のブロックに分割
して得られる各ブロック毎に、該ブロック内の前記複数
の階調値を符号化する方法におけるものである。
According to the present invention, for each block obtained by dividing an original image composed of pixels of a plurality of components into a plurality of blocks, the plurality of gradation values in the block are calculated. This is in the encoding method.

【0009】〔第1の発明〕第1の工程で画素の複数の
成分のそれぞれの有為を判定し、この第1の工程で有為
と判定された成分のみを符号化して出力する。有為と判
定された成分のみ符号化データを出力するので、効率良
く符号化できる。
[First Invention] The significance of each of the plurality of components of the pixel is determined in the first step, and only the component determined to be significant in the first step is encoded and output. Since the encoded data is output only for the components determined to be significant, efficient encoding is possible.

【0010】〔第2の発明〕第1の工程で入力する全て
の前記複数の成分を符号化し、その符号化された符号量
に基づいて第2の工程で無為な成分の符号を除去する。
符号化においては全ての成分について成されるが、符号
量に基づいて無為な成分の符号を除去するので効率良く
符号化することができる。
[Second Invention] All the plurality of components input in the first step are encoded, and the unnecessary component code is removed in the second step based on the encoded code amount.
The coding is performed for all components, but since the codes of unnecessary components are removed based on the code amount, efficient coding is possible.

【0011】(第3の発明〕第1の工程で符号化対象と
なる前記複数の成分のうちの各成分の分布範囲を選出
し、その第1の工程で得られた選出結果から前記各成分
が有為か否かを第2の工程で判定、第2の工程で有為と
判定された成分のみを第3の工程で符号化する。
(Third invention) A distribution range of each component of the plurality of components to be encoded is selected in the first step, and each component is selected from the selection result obtained in the first step. Is determined in the second step, and only the components determined to be significant in the second step are encoded in the third step.

【0012】符号化すべき複数の成分の画素からなる原
画像は例えばRGBよりなる信号で、第1の工程で各成
分の分布範囲を検出する工程はRGB信号をY,Cr,
Cb信号に変換する際に行われる。そして有為か否かの
判定はCr,Cb信号が所定範囲外の時に有為と判定す
る。特に前述した原画像が無彩色であった際には、Y信
号のみでCr,Cb信号は出力されないので、有為な成
分のみを符号化することができる。
An original image composed of pixels of a plurality of components to be encoded is a signal composed of RGB, for example, and the step of detecting the distribution range of each component in the first step uses RGB signals of Y, Cr,
It is performed when converting to a Cb signal. Then, the judgment as to whether it is significant or not is judged to be significant when the Cr and Cb signals are outside the predetermined range. In particular, when the above-mentioned original image is achromatic, the Cr and Cb signals are not output with only the Y signal, so that only significant components can be encoded.

【0013】[0013]

【実施例】以下図面を用いて本発明を詳細に説明する。
図1は本発明の処理フローチャートである。本発明は第
1には入力する画像の成分が有為であるか否かを判別
し、その結果によって処理を施すものである。ステップ
ST11で成分番号を順次指定し、ステップST12で
その成分が有為か否かを判別し、その成分が有為でない
時にはステップST13でI=I+1を行い、次の成分
を指定する。そして再度ステップST12から繰り返
す。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the drawings.
FIG. 1 is a processing flowchart of the present invention. The first aspect of the present invention is to determine whether or not a component of an input image is significant, and to perform processing according to the result. In step ST11, component numbers are sequentially designated, in step ST12, it is determined whether or not the component is significant, and when the component is not significant, I = I + 1 is performed in step ST13 to designate the next component. Then, the process is repeated from step ST12 again.

【0014】第I番目の成分が有為である時(YES)
には、ステップST2につづいてステップST14で第
I番目の成分の符号を出力する(ST14)。そして、
ステップST15で全ての成分が終了したかを判別し、
終了してない時には再度ステップST13から繰り返
す。また全ての成分に対する処理が終了している時には
全処理を終了する(ST15)。前述した成分とは例え
ばY,Cr,Cb信号等の画像信号であり、白黒信号で
あるならばCr,Cb信号は中間値となるので一定とな
る。この一定値から、入力した信号が白黒画像の時は輝
度信号であるY信号のみが有効となり、他は無効である
と判断し有効のみを出力する。
When the I-th component is significant (YES)
In step ST14, the code of the I-th component is output following step ST2 (ST14). And
In step ST15, it is determined whether all the components are finished,
If not completed, the process is repeated from step ST13. When the processing for all the components is completed, all the processing is completed (ST15). The above-mentioned components are image signals such as Y, Cr and Cb signals. If they are black and white signals, the Cr and Cb signals have intermediate values and are constant. From this constant value, when the input signal is a monochrome image, it is determined that only the Y signal, which is a luminance signal, is valid, and the others are invalid, and only valid is output.

【0015】CTスキャナの読み取り画像等の完全なモ
ノクロ画像の場合には、従来の符号化技術では色成分の
画素レベルは全て無彩色を示す一定値(256階調の場
合には128の階調レベル)で符号化していたのに対
し、本発明では2種類の色成分に対しては有為でないと
判定して符号の出力を行わないため、従来と比べ全く同
一な復元画像を復元できるにもかかわらずより少ない符
号量で符号化することができる。特にCT画像のように
完全なモノクロ画像に対して効率良く作用する。
In the case of a completely monochrome image such as an image read by a CT scanner, all pixel levels of color components in the conventional encoding technique have a constant value (in the case of 256 gradations, 128 gradations). However, the present invention determines that the two types of color components are not significant and does not output the code. Therefore, the same restored image can be restored as compared with the conventional one. Nevertheless, it can be encoded with a smaller code amount. Especially, it works efficiently on a completely monochrome image such as a CT image.

【0016】図2は本発明の第1の実施例の構成図であ
る。画像データ符号部11は例えば図3に示すADCT
変換を行い、Y,Cr,Cb信号を符号化する。図3は
画像データ符号化部11の詳細な構成図である。入力デ
ータであるY,Cr,Cb信号は順次画面単位で加わ
る。すなわち各成分単位で加わる。そしてこの成分単位
を8×8画素単位で最終的にADCT変換する。
FIG. 2 is a block diagram of the first embodiment of the present invention. The image data encoding unit 11 is, for example, the ADCT shown in FIG.
The conversion is performed and the Y, Cr and Cb signals are encoded. FIG. 3 is a detailed configuration diagram of the image data encoding unit 11. The Y, Cr, and Cb signals that are input data are sequentially added in screen units. That is, each component unit is added. Then, this component unit is finally ADCT-converted in units of 8 × 8 pixels.

【0017】まず第1にDCT変換部111によって2
次元離散コサイン変換(DCT)を行い、そのDCT変
換されたデータは量子化部112で量子化される。量子
化部112には量子化閾値113が加わっており、量子
化部112はこの量子化閾値113を用いて8×8画素
のDCT変換された情報を量子化する。この量子化した
情報は可変長符号化部114に加わる。可変長符号化部
114にはハフマン符号表115が接続しており、量子
化部112によって量子化された情報をハフマン符号表
115を用いて可変長符号化する。
First, the DCT converter 111
The three-dimensional discrete cosine transform (DCT) is performed, and the DCT-transformed data is quantized by the quantizer 112. A quantization threshold value 113 is added to the quantization unit 112, and the quantization unit 112 quantizes the DCT-transformed information of 8 × 8 pixels using this quantization threshold value 113. This quantized information is added to the variable length coding unit 114. A Huffman code table 115 is connected to the variable length coding unit 114, and the information quantized by the quantizing unit 112 is variable length coded using the Huffman code table 115.

【0018】以上のような画像データ符号化部11を動
作させるため、符号化制御部12はカラー画像を構成す
る各成分に対して1成分ずつ符号化するように画像デー
タ符号化部11を制御し、画像データ符号化部11は前
述した如く1成分ずつADCT変換して得た符号データ
を符号バッファ13に格納する。
In order to operate the image data coding unit 11 as described above, the coding control unit 12 controls the image data coding unit 11 so as to code one component for each component forming a color image. Then, the image data encoding unit 11 stores in the code buffer 13 the code data obtained by performing the ADCT conversion for each component as described above.

【0019】画像データ符号化部11より出力される符
号データは符号バッファ13への格納と並行して符号量
算出部14にも出力される。ここで完全な無彩色画像の
場合には、輝度Y信号、色Cr信号、Cb信号のうち色
成分であるCr,Cb信号の2種類の全ての画素レベル
は中間調となる。例えば256階調であったならばその
画素レベルは128となる。
The code data output from the image data encoding unit 11 is also output to the code amount calculation unit 14 in parallel with the storage in the code buffer 13. Here, in the case of a completely achromatic image, all of the two types of pixel levels of the luminance Y signal, the color Cr signal, and the Cb signal, which are the color components Cr and Cb signals, are halftone. For example, if there are 256 gradations, the pixel level will be 128.

【0020】このため符号化された全てのブロックは0
からのDC差分値とブロックの終端を示す符号(EO
B)で構成される。各事象に対する符号は予め割り当て
られているため、例えばDCの差分値0が2ビットで、
EOBが3ビットであるならば、各色成分の符号量は
(5×ブロックの個数)ビットの一定値となる。
Therefore, all encoded blocks are 0
From the DC difference value and the code indicating the end of the block (EO
B). Since the code for each event is assigned in advance, for example, the DC difference value 0 is 2 bits,
If the EOB is 3 bits, the code amount of each color component is a constant value of (5 × the number of blocks) bits.

【0021】符号出力部15では符号量算出部14にお
ける符号量が所定値と一致するか否かを判定し、符号量
と所定とが一致した場合には符号化制御部16に対して
符号出力の完了を通知する。
The code output unit 15 determines whether or not the code amount in the code amount calculation unit 14 matches a predetermined value, and if the code amount and the predetermined value match, the code output unit 15 outputs the code to the coding control unit 16. Notify the completion of.

【0022】符号量と所定値とが一致しない場合には有
為な成分とみなして符号出力部15に対して符号バッフ
ァに保持された符号を出力するよう指示する。これによ
って符号出力部15より符号が出力される。
When the code amount and the predetermined value do not match, it is regarded as a significant component and the code output unit 15 is instructed to output the code held in the code buffer. As a result, the code output unit 15 outputs the code.

【0023】図4は前述した本発明の第1の実施例の動
作フローチャートである。符号出力制御部16は図4の
動作制御を行って全体の動作を制御する。まず符号出力
制御部16はステップST31でI=1を設定する。続
いて、第I成分の符号化をステップST32で指示す
る。さらに、ステップST33で第I成分の符号量は所
定値より多いか否かを判断する。ステップST33の判
断において所定値より多いと判断した時(YES)に
は、その第1成分の符号は有為であるのでステップST
4でこの第1成分の符号を出力する。
FIG. 4 is an operation flowchart of the above-described first embodiment of the present invention. The code output control unit 16 performs the operation control of FIG. 4 to control the entire operation. First, the code output control unit 16 sets I = 1 in step ST31. Then, the coding of the I-th component is instructed in step ST32. Further, in step ST33, it is determined whether the code amount of the I-th component is larger than a predetermined value. If it is determined in step ST33 that the number is larger than the predetermined value (YES), the sign of the first component is significant, and therefore step ST
At 4, the code of the first component is output.

【0024】続いて全ての成分が終了したかをステップ
ST35で判定し、全ての成分が終了していない時、あ
るいはステップST33で第I成分の符号量が所定値よ
り多いと判断しなかった時(NO)にはステップST3
6でI=I+1とする。このステップST36によって
次の成分が指示されることになる。
Subsequently, it is determined in step ST35 whether or not all the components are finished, and when all the components are not finished or when it is not determined in step ST33 that the code amount of the I-th component is larger than a predetermined value. Step NO3 for (NO)
At 6, I = I + 1. The step ST36 indicates the next component.

【0025】続いて、設定されたI成分の符号化をステ
ップST32で実行し、I成分の符号量が所定より多い
か否かを再度ステップST33で行う。前述した動作を
順次繰り返すことにより、例えば1画像分のY信号とC
r信号、Cb信号を入力した際、Y信号は輝度信号であ
るので、その成分の符号量は所定値より多いとなってス
テップST34で変換された符号が出力されることにな
る。続いて第2成分並びに第3成分は色信号であるので
白黒画像であった時には、所定値と等しいと判断され、
その変換信号は出力されない。すなわちカラー画像であ
った場合には、Y,Cr,Cb信号はそれぞれ別々な独
立した値を有するので符号量は所定値より多いとなり順
次各成分が出力されることになる。これに対しモノカラ
ーであった時には輝度信号(Y信号)の符号量は所定値
より多いが、色信号であるCr信号、Cb信号は一定と
なるので符号化しても一定値となる。この一定値を判定
することによってカラー画像であるか白黒画像であるか
を判別することができる。
Subsequently, the set I component is encoded in step ST32, and it is again determined in step ST33 whether the code amount of the I component is larger than a predetermined amount. By repeating the above-described operation in sequence, for example, the Y signal and C for one image can be obtained.
When the r signal and the Cb signal are input, since the Y signal is a luminance signal, the code amount of the component is larger than a predetermined value, and the code converted in step ST34 is output. Subsequently, since the second component and the third component are color signals, when the image is a black and white image, it is determined to be equal to the predetermined value,
The converted signal is not output. That is, in the case of a color image, since the Y, Cr, and Cb signals have different independent values, the code amount becomes larger than a predetermined value, and each component is sequentially output. On the other hand, when the color is mono-color, the code amount of the luminance signal (Y signal) is larger than a predetermined value, but the Cr signal and the Cb signal which are color signals are constant, so that they are constant values even when encoded. By determining this constant value, it is possible to determine whether the image is a color image or a monochrome image.

【0026】第5図は本発明の第2の実施例の構成図で
ある。符号化制御部21は、画像バッファ22に保持さ
れた入力信号の各成分の符号化に先立ち、画像データ分
布範囲検出部24に出力するようデマルチプレクサ(D
MPX)23を制御する。この制御によってデマルチプ
レクサを介して画像バッファ22に格納された画像デー
タが分布範囲検出部24に加わる。分布範囲検出部24
では各成分の画素レベルの最大値と最小値を検出する。
この検出は各成分単位で行われる。そしてその結果は有
為性判定部25に入力する。有為性判定部25では入力
する最大値と最小値を比較し、その結果から有為性があ
るかを判定する。
FIG. 5 is a block diagram of the second embodiment of the present invention. The encoding control unit 21 outputs the demultiplexer (D) to the image data distribution range detection unit 24 prior to encoding each component of the input signal held in the image buffer 22.
MPX) 23 is controlled. By this control, the image data stored in the image buffer 22 via the demultiplexer is added to the distribution range detection unit 24. Distribution range detection unit 24
Then, the maximum value and the minimum value of the pixel level of each component are detected.
This detection is performed for each component. Then, the result is input to the significance determination unit 25. The significance determination unit 25 compares the maximum value and the minimum value that are input and determines from the result whether there is significance.

【0027】図6は有為性判定部25の構成図である。
有為性判定部25は最大値保持部251と最小値保持部
252と比較部253とよりなる。分布範囲検出部24
で検出された最大値は最大値保持部251に加わり、最
小値は最小値保持部252に加わる。最大値保持部25
1並びに最小値保持部252が記憶する各値は比較部2
53に入力する。例えば無彩色画像であった場合には、
Y信号の時には分布範囲検出部24からの最大値、最小
値が異なり、Cr,Cb信号の時にはこの値は128の
一定値となる。有為性判定部25内の比較部253はそ
れらの一致を検出し、その結果を出力する。無彩色でな
い時(一致していない)すなわちカラーである時には
1、無彩色である時(一致している)には0を出力(S
IG信号)する。
FIG. 6 is a block diagram of the significance judgment unit 25.
The significance determination unit 25 includes a maximum value holding unit 251, a minimum value holding unit 252, and a comparison unit 253. Distribution range detection unit 24
The maximum value detected in 1 is added to the maximum value holding unit 251, and the minimum value is added to the minimum value holding unit 252. Maximum value holding unit 25
1 and each value stored in the minimum value holding unit 252 is the comparison unit 2
Enter in 53. For example, if it is an achromatic image,
The maximum value and the minimum value from the distribution range detector 24 are different for the Y signal, and this value is a constant value of 128 for the Cr and Cb signals. The comparison unit 253 in the significance determination unit 25 detects the coincidences and outputs the result. When the color is not achromatic (does not match), that is, when it is color, 1 is output, and when it is achromatic (match), 0 is output (S
IG signal).

【0028】符号化制御部21はSIG信号が0であっ
た際、画像データ符号化部26に対し符号化の指示を行
わず、次の成分の有為性を判定するためデマルチプレク
サに対して再度次の成分を選択し出力するよう指示す
る。また1であった時には有為性を有するので、画像デ
ータ符号化部26に対しそのデータを符号化して出力す
るよう指示する。以上のような動作によって各成分全て
の画像を選択的に符号化して出力する。
When the SIG signal is 0, the encoding control unit 21 does not instruct the image data encoding unit 26 to perform encoding, but instructs the demultiplexer to determine the significance of the next component. Instruct to select and output the next component again. Further, when the value is 1, it has the significance, and therefore the image data encoding unit 26 is instructed to encode and output the data. By the above operation, the images of all the components are selectively encoded and output.

【0029】前述した本発明の第2の実施例においては
1つの成分に対し最大値、最小値が一致しているか否か
を判定しているが、本発明はこれに限るものではない。
図7は有為性判定部25の他の構成図である。前述した
実施例においては最大値、最小値が一致しているか否か
を判定しているが、図7における他の構成図では最大値
並びに最小値の範囲を限定し、その結果から求めてい
る。例えば白黒画像であっても、白黒スキャナで取り込
んだものではなく、カラースキャナで取り込んだ場合に
はY,Cr,Cb信号のうち、色信号のCr,Cbは誤
差からして当然同一値となるとは限らない。このため、
分布範囲検出部24で求めた最大値並びに最小値を最大
値保持部251、最小値保持部252に格納する。この
結果を減算部256,257に出力する。中心部保持部
254は無効とすべき値の中心値を出力し、減算部25
6,257はその値と最大値保持部251、最小値保持
部252で記憶する最大値、最小値との差分を求める。
求めた結果B,Cは比較部258,259に入力する。
一方、閾値保持部255はそれぞれの閾値を有してお
り、最大値が中心値より特定値Aの値以上あるいは最小
値が特定値Aの値以上であった時に1を出力する。そし
てその信号はORゲート260に加わり、OR加算され
たSIG信号として出力される。この回路による結果
は、中心値保持部254で出力される値の±Aの範囲で
あったならば、SIG信号を1とするものである(減算
部256,257は差分値を求めているが、符号を有す
るものとしても良い)。要は最大値、最小値が特定の範
囲以内にそれぞれ入っていればSIG信号を0とし、入
っていなかったならば1とするものである。以上のよう
な有為性判定を行うことにより色ムラが見られるような
白黒の原稿を読み取った画像においても有為性を判定す
ることができ、中心値が128でなくても多少のズレが
生じても高速、高品質で伝送することが可能となる。
In the second embodiment of the present invention described above, it is determined whether or not the maximum value and the minimum value are the same for one component, but the present invention is not limited to this.
FIG. 7 is another configuration diagram of the significance determination unit 25. In the above-described embodiment, it is determined whether or not the maximum value and the minimum value match, but in the other configuration diagram in FIG. 7, the range of the maximum value and the minimum value is limited and the result is obtained. .. For example, even a monochrome image is not captured by a monochrome scanner, but when captured by a color scanner, the color signals Cr and Cb of the Y, Cr, and Cb signals naturally have the same value due to an error. Not necessarily. For this reason,
The maximum value and the minimum value obtained by the distribution range detecting unit 24 are stored in the maximum value holding unit 251 and the minimum value holding unit 252. The result is output to the subtraction units 256 and 257. The central part holding part 254 outputs the central value of the values to be invalidated, and the subtracting part 25
6 and 257 obtain the difference between the value and the maximum value and the minimum value stored in the maximum value holding unit 251 and the minimum value holding unit 252.
The obtained results B and C are input to the comparison units 258 and 259.
On the other hand, the threshold value holding unit 255 has respective threshold values, and outputs 1 when the maximum value is greater than or equal to the specific value A than the central value or the minimum value is greater than or equal to the specific value A. Then, the signal is added to the OR gate 260 and is output as a SIG signal obtained by OR addition. If the result of this circuit is within the range of ± A of the value output by the central value holding unit 254, the SIG signal is set to 1 (though the subtraction units 256 and 257 find the difference value). , May have a code). The point is that the SIG signal is set to 0 if the maximum value and the minimum value are within the specific range, and is set to 1 if they are not within the specific range. By performing the significance determination as described above, it is possible to determine the significance even in an image obtained by reading a black-and-white document in which color unevenness is seen, and even if the center value is not 128, there is some deviation. Even if it occurs, it is possible to transmit at high speed and high quality.

【0030】図8は本発明の第2の実施例の動作フロー
チャートである。ステップST41でI=1を設定し、
ステップST42で第I成分の分布範囲を検出する。ス
テップST42の分布範囲の検出は分布範囲検出部24
の処理である。続いてステップST43で第I成分の有
為性を判定する。この有為性の判定は例えば図7に示し
た有為性判定部の処理である。そしてその結果が有為あ
るか否かをステップST43で判別し、有為でない時に
はすなわちSIG信号が0であった時には次の成分に進
べきIをI+1と変化させ、前述した処理ステップST
42より実行する。
FIG. 8 is an operation flowchart of the second embodiment of the present invention. Set I = 1 in step ST41,
In step ST42, the distribution range of the I-th component is detected. The distribution range detection unit 24 detects the distribution range in step ST42.
Processing. Subsequently, in step ST43, the significance of the I-th component is determined. This determination of significance is, for example, the processing of the significance determination unit shown in FIG. 7. Then, it is determined in step ST43 whether or not the result is significant. When it is not significant, that is, when the SIG signal is 0, I to be changed to the next component is changed to I + 1, and the above-mentioned processing step ST is performed.
Execute from 42.

【0031】一方、ステップST44における判別で有
為性有りと判別した時(YES)には、ステップST4
5でI成分を符号化し、続いてその符号化した符号をS
T46で出力する。すなわち画像データ符号化部26が
ステップST45並びにステップST46を行い出力す
る。符号化制御部21は続いて全ての成分が終了したか
をステップST47で判別し、全てが終了してない時に
は再度次の成分を指示するため、ステップST48でI
=I+1としてステップST42より繰り返し実行す
る。また、全ての成分が終了している時(YES)には
全処理を終了する。
On the other hand, when it is determined in step ST44 that there is a significance (YES), step ST4
5, the I component is encoded, and then the encoded code is S
Output at T46. That is, the image data encoding unit 26 outputs by performing steps ST45 and ST46. The coding control unit 21 subsequently determines in step ST47 whether all the components have ended, and when all the components have not ended, the encoding control unit 21 instructs the next component again, so in step ST48
= I + 1, and the process is repeated from step ST42. When all the components are finished (YES), the whole process is finished.

【0032】以上のような処理により特定の分布範囲で
あったとしてもそれを白黒画像と判断するので背景色等
に色ムラを生ずることはなく、さらには有効に圧縮する
ことができる。
Even if a specific distribution range is obtained by the above processing, it is determined as a black and white image, so that color unevenness does not occur in the background color and the like, and further effective compression is possible.

【0033】図9は本発明の第3の実施例の構成図であ
る。図5に示す本発明の第2の実施例においては入力す
る信号はY,Cr,Cb信号であった。これに対し本発
明の第3の実施例においてはRGB信号を色変換し、そ
の分布を求めている。
FIG. 9 is a block diagram of the third embodiment of the present invention. In the second embodiment of the present invention shown in FIG. 5, the input signals are Y, Cr and Cb signals. On the other hand, in the third embodiment of the present invention, the RGB signals are color-converted and the distribution thereof is obtained.

【0034】RGB信号は色変換部31に入力する。色
変換部31はRGB信号を輝度成分のY信号と2つの色
成分のCr,Cb信号へ変換する。RGB信号のそれぞ
れの値をR,G,Bとし、Y,Cr,Cb信号のそれぞ
れの値をY,Cr,Cbとするならば、色変換部31
は、 Y= 0.299×R+ 0.587×G+ 0.114×B Cr= 0.713×( 0.701×R− 0.587×G− 0.114×B)+128 Cb= 0.564×(-0.299×R− 0.587×G+ 0.886×B)+128 の計算を行う。
The RGB signals are input to the color conversion section 31. The color conversion unit 31 converts the RGB signal into a Y signal of a luminance component and Cr, Cb signals of two color components. If the respective values of the RGB signals are R, G, B and the respective values of the Y, Cr, Cb signals are Y, Cr, Cb, the color conversion unit 31.
Is Y = 0.299 × R + 0.587 × G + 0.114 × B Cr = 0.713 × (0.701 × R−0.587 × G−0.114 × B) +128 Cb = 0.564 × (−0.299 × R−0.587 × G + 0.886 × B) +128 Calculate.

【0035】それらのY,Cr,Cb信号は輝度変換部
31に各ドット単位で加わるが、変換された結果は画像
バッファ32に入力するとともに、分布範囲検出部33
に入力する。分布範囲検出部33はY信号並びにCr,
Cb信号に対し合計3つの最大値と最小値を求める検出
部であり、例えば図6や図7の構成を3組設けたもので
ある。そして、1画像分が入力した際それぞれY,C
b,Cr信号の3個の最大値並びに3個の最小値が加わ
り、有為性判定部34はそれぞれの値が範囲内に入って
いるかを判定し、入っている時には0を符号化制御部3
5に出力する。
These Y, Cr, and Cb signals are applied to the brightness conversion unit 31 on a dot-by-dot basis. The converted results are input to the image buffer 32, and the distribution range detection unit 33 is also provided.
To enter. The distribution range detection unit 33 uses the Y signal and Cr,
This is a detection unit for obtaining a total of three maximum values and minimum values for the Cb signal, and for example, three sets of the configurations of FIGS. 6 and 7 are provided. Then, when one image is input, Y and C respectively
The three maximum values and the three minimum values of the b and Cr signals are added, and the significance determination unit 34 determines whether each value is within the range. Three
Output to 5.

【0036】第3の実施例においては、画像バッファ3
2に入力され変換して符号として出力する際、例えば無
彩色であると判定した時、すなわちCr,Cb信号が有
為性を持たないと判定した時には画像データ符号化部3
6でADCT変換を行わず、そのY信号のみをADCT
変換して出力する。
In the third embodiment, the image buffer 3
When inputting to 2 and converting and outputting as a code, for example, when it is determined that the color is achromatic, that is, when the Cr and Cb signals have no significance, the image data encoding unit 3
ADCT conversion is not performed in 6 and only the Y signal is ADCT converted.
Convert and output.

【0037】以上の動作では入力する画像データのRG
B信号をY,Cr,Cb信号に変換する最中に並行して
有為性を判定するので、画像データ符号化部36におい
て符号化するのはY信号のみとなり、画像を圧縮できる
ばかりか高速処理が可能となる。
In the above operation, the RG of the input image data
Since the significance is judged in parallel during the conversion of the B signal into the Y, Cr and Cb signals, only the Y signal is coded in the image data coding unit 36, which not only compresses the image but also speeds it up. Processing becomes possible.

【0038】[0038]

【発明の効果】以上述べたように本発明によれば、モノ
クロ画像における色成分のような復元画像に寄与しない
成分の符号生成を抑制できるとともに、復元画像の画質
劣化を伴うことなく符号量を低減することができ、また
その処理は全く自動化で成されるものであり、人手を介
さず行うことができる。
As described above, according to the present invention, it is possible to suppress code generation of components that do not contribute to a restored image, such as color components in a monochrome image, and to reduce the code amount without degrading the image quality of the restored image. It can be reduced, and the process is completely automated and can be performed without human intervention.

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

【図1】本発明の処理フローチャートである。FIG. 1 is a processing flowchart of the present invention.

【図2】本発明の第1の実施例の構成図である。FIG. 2 is a configuration diagram of a first embodiment of the present invention.

【図3】画像データ符号化部の詳細な構成図である。FIG. 3 is a detailed configuration diagram of an image data encoding unit.

【図4】本発明の第1の実施例の動作フローチャートで
ある。
FIG. 4 is an operation flowchart of the first embodiment of the present invention.

【図5】本発明の第2の実施例の構成図である。FIG. 5 is a configuration diagram of a second embodiment of the present invention.

【図6】有意性判定部の構成図である。FIG. 6 is a configuration diagram of a significance determination unit.

【図7】有意性判定部の他の構成図である。FIG. 7 is another configuration diagram of a significance determination unit.

【図8】本発明の第2の実施例の動作フローチャートで
ある。
FIG. 8 is an operation flowchart of the second embodiment of the present invention.

【図9】本発明の第3の実施例の構成図である。FIG. 9 is a configuration diagram of a third embodiment of the present invention.

【図10】従来の構成図である。FIG. 10 is a conventional configuration diagram.

【図11】従来の処理フローチャートである。FIG. 11 is a conventional processing flowchart.

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

11 画像データ符号化部 12 符号化制御部 13 符号バッファ 14 符号量算出部 15 符号出力部 16 符号出力制御部 21 符号化制御部 22 画像バッファ 23 DMPX 24 分布範囲検出部 25 有意性判定部 26 画像データ符号化部 31 色変換部 32 画像バッファ 33 分布範囲検出部 34 有意性判定部 35 符号化制御部 36 画像データ符号化部 11 image data coding unit 12 coding control unit 13 code buffer 14 code amount calculation unit 15 code output unit 16 code output control unit 21 coding control unit 22 image buffer 23 DMPX 24 distribution range detection unit 25 significance determination unit 26 image Data coding unit 31 Color conversion unit 32 Image buffer 33 Distribution range detection unit 34 Significance determination unit 35 Coding control unit 36 Image data coding unit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数の成分の画素から成る原画像を、複
数の画素からなる複数のブロックに分割して得られる各
ブロック毎に、該ブロック内の前記複数の階調値を符号
化する方法において、 前記画素の複数の成分のそれぞれの有為を判定する第1
の工程と、 前記第1の工程で有為と判定した成分のみを符号化して
出力する第2の工程とを有することを特徴とする画像デ
ータ符号化方法。
1. A method of encoding the plurality of gradation values in each block obtained by dividing an original image composed of pixels of a plurality of components into a plurality of blocks composed of a plurality of pixels. In determining a significance of each of the plurality of components of the pixel,
And the second step of encoding and outputting only the component determined to be significant in the first step.
【請求項2】 複数の成分の画素から成る原画像を、複
数の画素からなる複数のブロックに分割して得られる各
ブロック毎に、該ブロック内の前記複数の階調値を符号
化する方法において、 入力する全ての前記複数の成分を符号化する第1の工程
と、 該第1の工程で符号化された符号量に基づいて無為な成
分の符号を除去する第2の工程とを有することを特徴と
する画像データ符号化方法。
2. A method of encoding the plurality of gradation values in each block for each block obtained by dividing an original image composed of pixels of a plurality of components into a plurality of blocks composed of a plurality of pixels. In, there is a first step of encoding all the plurality of components to be input, and a second step of removing the code of an unnecessary component based on the code amount encoded in the first step. An image data encoding method characterized by the above.
【請求項3】 複数の成分の画素から成る原画像を、複
数の画素からなる複数のブロックに分割して得られる各
ブロック毎に、該ブロック内の前記複数の階調値を符号
化する方法において、 符号化対象となる前記複数の成分のうちの各成分の分布
範囲を検出する第1の工程と、 前記第1の工程で得られた検出結果から前記各成分が有
意か否かを判定する第2の工程と、 前記第2の工程で有意と判定された成分のみを符号化す
る第3の工程とを有することを特徴とする画像データ符
号化方法。
3. A method of encoding the plurality of gradation values in each block obtained by dividing an original image composed of pixels of a plurality of components into a plurality of blocks composed of a plurality of pixels. In the first step of detecting the distribution range of each component of the plurality of components to be encoded, and determining whether each of the components is significant from the detection result obtained in the first step. And a third step of encoding only the components determined to be significant in the second step, the image data encoding method.
【請求項4】 前記入力する原画像はRGB信号であ
り、前記第1の工程は前記原画像のRGB信号からY,
Cr,Cb信号に変換する際に並行して行われることを
特徴とする請求項3記載の画像データ符号化方法。
4. The input original image is an RGB signal, and the first step is to convert the RGB signal of the original image to Y,
4. The image data encoding method according to claim 3, wherein the image data encoding method is performed in parallel when converting into Cr and Cb signals.
【請求項5】 前記第2の工程の有意か否かの判定は、
前記Cr,Cb信号が所定範囲外の時に有意と判定する
ことを特徴とする請求項4記載の画像データ符号化方
法。
5. The determination as to whether or not the second step is significant,
The image data encoding method according to claim 4, wherein it is determined to be significant when the Cr and Cb signals are out of a predetermined range.
JP4082579A 1992-04-06 1992-04-06 Image data encoding method Pending JPH05284371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4082579A JPH05284371A (en) 1992-04-06 1992-04-06 Image data encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4082579A JPH05284371A (en) 1992-04-06 1992-04-06 Image data encoding method

Publications (1)

Publication Number Publication Date
JPH05284371A true JPH05284371A (en) 1993-10-29

Family

ID=13778396

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4082579A Pending JPH05284371A (en) 1992-04-06 1992-04-06 Image data encoding method

Country Status (1)

Country Link
JP (1) JPH05284371A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6486981B1 (en) 1993-07-27 2002-11-26 Canon Kabushiki Kaisha Color image processing method and apparatus thereof
JP2009124585A (en) * 2007-11-16 2009-06-04 Canon Inc Image coding apparatus and image coding method
CN111866513A (en) * 2019-04-25 2020-10-30 瑞昱半导体股份有限公司 Image compression method and image compressor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6486981B1 (en) 1993-07-27 2002-11-26 Canon Kabushiki Kaisha Color image processing method and apparatus thereof
JP2009124585A (en) * 2007-11-16 2009-06-04 Canon Inc Image coding apparatus and image coding method
CN111866513A (en) * 2019-04-25 2020-10-30 瑞昱半导体股份有限公司 Image compression method and image compressor

Similar Documents

Publication Publication Date Title
US7499592B2 (en) Image decoding apparatus and its control method
US5930386A (en) Image processing apparatus and method
KR100740818B1 (en) Variance based adaptive block size dct image compression
JP3466705B2 (en) How to decompress compressed images
JP3072776B2 (en) Image processing device
US5369439A (en) Orthogonal transform encoder using DC component to control quantization step size
JP4365957B2 (en) Image processing method and apparatus and storage medium
JP3095804B2 (en) Image data transmission apparatus and image data transmission method
US20050276500A1 (en) Image encoding apparatus, and image processing apparatus and its control method
US20070025632A1 (en) Image coding apparatus and its control method, and computer program and computer readable storage medium
JP2003032677A (en) Compressive coder for moving image
JPH1118089A (en) Image data compressor
JP3469438B2 (en) Image signal processing method and apparatus, recording medium
JPH05284371A (en) Image data encoding method
JP3222780B2 (en) Image compression device
JP3732900B2 (en) Image compression apparatus and image expansion apparatus
JP2003224868A (en) Image compression apparatus, image compression method, image compression program, and image expansion program
JP3101597B2 (en) Image storage method and apparatus
JP3104803B2 (en) Video signal transmission device
JP2009260747A (en) Image encoding device, and control method thereof
JPH07111596A (en) Communication equipment for still picture
JPH07193838A (en) Coder
JP2698641B2 (en) Color image data encoding method and decoding method
JPH0787332A (en) Communicating equipment for irreversible coding data
JP3200073B2 (en) Image processing device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010213