JP3998115B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP3998115B2
JP3998115B2 JP2000039535A JP2000039535A JP3998115B2 JP 3998115 B2 JP3998115 B2 JP 3998115B2 JP 2000039535 A JP2000039535 A JP 2000039535A JP 2000039535 A JP2000039535 A JP 2000039535A JP 3998115 B2 JP3998115 B2 JP 3998115B2
Authority
JP
Japan
Prior art keywords
code
lightness
value
color difference
average
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2000039535A
Other languages
Japanese (ja)
Other versions
JP2001230934A (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 JP2000039535A priority Critical patent/JP3998115B2/en
Publication of JP2001230934A publication Critical patent/JP2001230934A/en
Application granted granted Critical
Publication of JP3998115B2 publication Critical patent/JP3998115B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、カラー文書画像データ、モノクロ文書画像データ、その他、画像データを符号圧縮して得られた符号データをさらに圧縮するための符号圧縮方法、符号圧縮装置、及び、それを適用した文書画像ファイリングシステムなどの画像処理装置に関する。
【0002】
【従来の技術】
画像処理装置において、カラーデジタル画像のような大量のデータを、限られた容量の記憶装置に格納する場合、データ圧縮の技術が使われることが多い。さらに、画像データをある圧縮方式で符号化した時の符号量が、記憶装置の容量を超えてしまう場合、既に符号化され記憶されているデータを、その超過分だけ削減する必要がある。この情報削減は通常、画像データに含まれる視覚的冗長性を利用した非可逆な処理となる。
【0003】
従来でも、例えばハードディスク(HDD)のような記憶装置に、多数ページの画像を圧縮して格納する装置では、HDD容量がいっぱいになると、これまで格納してきたページの圧縮データを削減し、さらに何枚かのページを格納できるようにしている。データの削減は、解像度や階調性と言った画像品質を落とし圧縮率を高めることで実現している。
【0004】
このような符号化済みのデータから情報削減を容易に行える符号化方法として、階層的符号化がある。階層的でない符号化、例えばJPEG baselineの場合、圧縮符号を一旦伸長し、再度異なった圧縮率で再圧縮すると言う面倒な手順を踏まなければならない。しかし、JPEG extendedプログレッシブのような階層的符号化なら、画質上重要でない階層のデータを破棄するだけで、情報削減を行うことができる。
【0005】
一方、JPEGより簡単にカラー画像データを符号圧縮する方式として、固定長圧縮方式がある。これは、カラー画像データをブロック単位に、その明度成分については、GBTC(Generalized Block Truncation Coding)方式で、平均明度、明度分散、各画素量子化値に変換し、色成分については、平均値を生成し、これを符号とする方式である。生成される符号長は各ブロック全て同じ(固定長圧縮)にしてあるため、符号の扱いが容易であると言う長所がある。例えば、符号を転送する際の転送速度を一定にできるので、フロー制御が簡略化されたり、記憶された符号に対し直接加工、編集を行う際のアドレス計算が容易になる等の長所がある。例えば、特許第2608284号公報には、このような固定長圧縮方式においてさらにブロック中にエッジを含むか否かによって、明度に関する符号長と、色に関する符号長の比率を変えることで、伸長画像の画像品質を向上させることが記載されている。
【0006】
【発明が解決しようとする課題】
上記従来技術において、JPEG extendedプログレッシブのような階層的符号方式は、処理が複雑であると言う欠点を有していた。また、特許第2608284号公報に記載の方式は、処理は比較簡単であるが、符号の構成上、圧縮符号の状態からの情報削減(圧縮率再調整)が容易でない、あるいは削減によって新たな問題を生じると言う欠点があった。例えば仮に色に関する符号を削除してしまうと、ブロックあたりの符号長がバラバラになってしまい、固定長圧縮のメリットがなくなってしまう。
【0007】
本発明は、上記従来技術の問題点に鑑み、画像データの圧縮符号に対する、加工、編集が容易で、さらにその圧縮率を高めることも容易であり、その際の画質劣化も小さい符号圧縮方法及び装置、並びにそれを適用した画像処理装置を提供することを目的とする。
【0008】
【課題を解決するための手段】
本発明は、符号の扱いが容易である固定長圧縮方式を採用し、画像データを符号圧縮して得られる複数符号部分からなる固定長の符号化データ中の重要度の低い符号部分を除去(削除)あるいは縮小置換することを基本とするものである。さらに、必要なら、圧縮結果の符号化データ中の次に重要度の低い符号部分を除去し、また、残った有意の符号部分について再符号化するものである。
【0009】
例えば、カラー画像データをブロック単位に、ブロック内画素の明度平均を表わす第1の符号、ブロック内画素の明度分散を表わす第2の符号、ブロック内の個々の明度値を表わす第3の符号、及び、ブロック内画素の色平均を表わす第4の符号に符号圧縮した符号化データについて、その第4の符号部分を除去あるいは縮小置換して圧縮した符号化データを得る。画像データが通常のビジネス文書画像であれば、最も重要度が低いのは色の符号である。したがって、色情報が縮退・喪失しても文書の意味は残せるものである。
【0010】
さらに、必要ならば、圧縮結果の第1の符号、第2の符号、第3の符号からなる符号化データについて、第1の符号と第2の符号の値に応じて第3の符号を再生成し、第1の符号部分と第2の符号部分を除去し、再生成した第3の符号のみとする。具体的には、第2の符号の明度分散値が所定閾値より大きい場合には、元々の第3の符号をそのまま再生成後の符号とし、所定閾値より小さい場合、第1の符号の明度平均に応じて第3の符号を再生成する。例えば、明度分散値が大きいブロックは文字の書かれたような領域であり、第3の符号だけでも文書の意味が失われることは少ない。また、明度分散値が小さいブロックは、例えば写真のような領域であり、明度平均に応じてブロック内の個々の画素の明度値を再生成することにより、画質劣化を小さくできる。
【0011】
モノクロ画像データの場合には、元々符号化データはブロック内画素の明度平均を表わす第1の符号、ブロック内画素の明度分散を表わす第2の符号、ブロック内の個々の画素の明度値を表わす第3の符号で構成されるため、さらに圧縮を必要とする場合には、この第1の符号と第2の符号と第3の符号からなる符号化データについて直接上記のように圧縮して第3の符号のみとすればよい。
【0012】
本発明に係る画像処理装置及び画像処理方法は以下のように定義することができる。
【0013】
請求項1に係る画像処理は、
カラー画像データを明度成分データと色差成分データとに変換する色変換手段と、
前記明度成分データを所定のブロック単位に固定長圧縮し、平均明度値、明度分散値及び明度量子化値の符号を生成する明度符号化手段と、
前記色差成分データを前記ブロック単位に固定長圧縮し、平均色差値の符号を生成する色差符号化手段と、
前記平均明度値、明度分散値、明度量子化値及び平均色差値の符号からなる符号化データを蓄積する蓄積手段と、
前記蓄積手段に蓄積されている前記平均色差値の符号を前記ブロック単位に除去する色差符号除去手段と、
前記蓄積手段に蓄積されている前記明度平均値及び明度分散値の符号を前記ブロック単位に除去する明度符号再量子化手段と、
を有することを特徴とする。
【0014】
請求項2に係る画像処理装置は、請求項1に係る画像処理装置の構成に加え、
前記明度符号再量子化手段は、明度量子化値の符号中の1の個数と平均明度値とを対応付けたテーブルを備え、
前記明度符号再量子化手段は、前記蓄積手段に蓄積されている前記平均明度値、明度分散値及び明度量子化値の符号を読み出し、前記ブロック単位に明度分散値を所定の閾値と比較し、明度分散値が前記閾値未満であると判定したブロックについて、前記テーブルより、当該ブロックの平均明度値に対応した1の個数を読み出し、当該個数に等しい個数の1を含む明度量子化値の符号を再作成する、ことを特徴とする。
【0015】
請求項3に係る画像処理装置は、請求項1又は2に係る画像処理装置の構成に加え、
前記蓄積手段に蓄積されている前記平均色差値の符号に対し、そのビット数を縮小する再量子化を前記ブロック単位に行う色差符号再量子化手段を有することを特徴とする。
【0016】
請求項4に係る画像処理装置は、請求項3に係る画像処理装置の構成に加え、
前記色差符号再量子化手段は、前記ブロック単位に平均明度値が所定の明度範囲内であるか否かの判定を行い、その判定結果に応じて前記平均色差値に対する再量子化の方法を変更することを特徴とする。
【0017】
請求項5に係る画像処理方法は、
カラー画像データを明度成分データと色差成分データとに変換する色変換工程と、
前記明度成分データを所定のブロック単位に固定長圧縮し、平均明度値、明度分散値及び明度量子化値の符号を生成する明度符号化工程と、
前記色差成分データを前記ブロック単位に固定長圧縮し、平均色差値の符号を生成する色差符号化工程と、
前記平均明度値、明度分散値、明度量子化値及び平均色差値の符号からなる符号化データを蓄積手段に蓄積する蓄積工程と、
前記蓄積手段に蓄積されている前記平均色差値の符号を前記ブロック単位に除去する色差符号除去工程と、
前記蓄積手段に蓄積されている前記明度平均値及び明度分散値の符号を前記ブロック単位に除去する明度符号再量子化工程と、を有することを特徴とする。
【0018】
請求項6に係る画像処理方法は、請求項5に係る画像処理方法の構成に加え、
前記明度符号再量子化工程は、前記蓄積手段に蓄積されている前記平均明度値、明度分散値及び明度量子化値の符号を読み出し、前記ブロック単位に明度分散値を所定の閾値と比較し、明度分散値が前記閾値未満であると判定したブロックについて、明度量子化値の符号中の1の個数と平均明度値とを対応つけたテーブルより、当該ブロックの平均明度値に対応した1の個数を読み出し、当該個数に等しい個数の1を含む明度量子化値の符号を再作成する、ことを特徴とする。
【0019】
請求項7に係る画像処理方法は、請求項5又は6に係る画像処理方法の構成に加え、
前記蓄積手段に蓄積されている前記平均色差値の符号に対し、そのビット数を縮小する再量子化を前記ブロック単位に行う色差符号再量子化工程を有することを特徴とする。
【0020】
請求項8に係る画像処理方法は、請求項7に係る画像処理方法の構成に加え、
前記色差符号再量子化工程は、前記ブロック単位に平均明度値が所定の明度範囲内であるか否かの判定を行い、その判定結果に応じて前記平均色差値の符号に対する再量子化の方法を変更することを特徴とする。
【0021】
【発明の実施の形態】
以下、本発明の実施の形態について図面を参照して説明する。なお、以下の実施の形態では、カラー画像データをブロック単位(4×4画素)に、その明度成分は、BTC方式で平均明度、明度分散、各画素量子化値に変換し、色成分は平均値を生成し、これらを符号とする符号化データを例に説明するが、本発明はこれに限定されるものではなく、モノクロ画像データを同様にBTC方式で平均明度、明度分散、各画素量子化値に変換し、これらを符号とする符号化データ、さらには、カラー/モノクロ画像データを別の方式で符号圧縮した符号化データ、一般に複数符号部分からなる固定長の符号化データに広く適用できることは云うまでもない。
【0022】
〔符号化/復号化〕
初めに、本実施の形態で用いられるカラー画像データの符号化/復号化の一例について説明する。
図1は、カラー画像データを圧縮符号化する構成例のブロック図である。図において、11は色変換部、12は作業用のバッファメモリ、13は明度符号化部、14は色差Cr符号化部、15は色差Cb符号部、16は符号化データを蓄積するメモリ装置である。
【0023】
色変換部11では、1画素がR(赤)、G(緑)、B(青)の入力カラー画像データを、次式のような変換式を適用して、Y(明度)及びCrとCb(色差)のデータに変換する。
Y=0.299R+0.587G+0.114B (1)
Cr=1/(2(1−0.299))(R−Y) (2)
Cb=1/(2(1−0.114))(B−Y) (3)
【0024】
本実施の形態では、1画素を構成するR、G、BやY、Cr、Cbの各データは8ビットとする(即ち、量子化レベル256)。図中、例えば〔7:0〕は0〜7の8ビットを表わしている。G、BやY、Cr/Cbについても同様である。
【0025】
バッファメモリ12では、色変換部11で色変換されたY(明度)CrCb(色差)のデータを順次格納し、所定のブロック単位(符号化単位)に順次読み出す。本実施の形態では、1ブロックを4×4=16画素とする。ここで、ブロック内の4×4の各画素の位置(i、j)を(00)〜(33)(i=0〜3、j=0〜3)で表わす。図中、例えばY00〔7:0〕は、1ブロック内の位置(0、0)の画素のYデータ(8ビット)、Y33〔7:0〕は、位置(3、3)の画素のYデータ(8ビット)を表わしている。CrCbのデータも同様である。
【0026】
明度符号化部13では、ブロック単位に、1ブロック16画素のY(明度)データY00〔7:0〕〜Y33〔7:0〕から、BTC方式を適用して、ブロック内16画素の平均明度値La〔7:0〕(8ビット)、明度分散値L〔7:0〕(8ビット)、及びブロック内16画素の各量子化値φ00〜φ33(1ビット/画素)の符号を生成する。ここで、平均明度値La〔7:0〕は、ブロック内16画素の明度データY00〔7:0〕〜Y33〔7:0〕の平均値を計算し、8ビットに丸める処理で求める。明度分散値L〔7:0〕はブロック内の明度分散の度合いを表わし、Y00〔7:0〕〜Y33〔7:0〕中の最大値から最小値を引いて求める。量子化値φ00〜φ33は、平均明度値Laを閾値として、Y00〔7:0〕〜Y33〔7:0〕のそれぞれを2値化して求める。
【0027】
色差Cr符号化部14では、ブロック単位に、1ブロック16画素の色差データCr00〔7:0〕〜Cr33〔7:0〕から、ブロック内16画素の平均色差値Cr(7:0)(8ビット)を生成する。同様に、色差Cr符号化部15では、ブロック単位に、1ブロック16画素の色差データCb00〔7:0〕〜Cb33〔7:0〕から、ブロック内16画素の平均色差値Cb〔7:0〕(8ビット)を生成する。CrCbの平均値算出はLaの場合と同様である。
【0028】
メモリ装置16では、4×4画素のブロック単位に、明度符号化部13、色差(Cr/Cb)符号化部14、15から出力される符号(φ00〜φ33、La〔7:0〕、L〔7:0〕、Cr〔7:0〕、Cb〔7:0〕)を1レコード(48ビット)として、順次、元カラー画像データの符号化データを蓄積する。
【0029】
図2、図3に明度符号化部13でのGBTC符号化処理の具体的イメージを示す。図2(a)は符号化前の1ブロック16画素の各明度値Yij(i=0〜3、j=0〜3)であり、図2(b)は、これから得られた符号化後のLa、Ld、φij(i=0〜3、j=0〜3)の値である。16画素の平均明度値La=108は、図2(a)の16画素の各明度値Yijの平均値演算を行い、その平均値=108.4375を整数化して得られる。明度分散値Ld=56は、図2(a)の16画素の各明度値中の最大値=136から最小値=80を引いた値として得られる。16画素の各量子化値φijは、図2(a)の対応する画素の明度値YijがLa=108以下では0、La=108より大では1として得られる。図3は、図2(a)の16画素の明度値の分布とLa、Lの関係を表わしている。
【0030】
図4は、明度符号化部13、色差(Cr/Cb)符号化部14、15からブロック単位に出力される符号化データ(φij、La、Ld、Cr、Cb)の構成を表わしたものである。元々のカラー画像データのY、CrおよびCbは各々、1画素8ビットであるため、図4では、符号化の結果、1ブロック16画素当り、(8+8+8)×16=384ビットのデータ量が、48ビットと1/8に圧縮符号化されることが分かる。なお、モノクロ画像の符号化データは、Cr/Cbの符号部分がなく、図4の例では、明度符号部分(φij、La、Ld)だけの32ビットとなる。
【0031】
図5は、図4の符号化データを復号化する構成例のブロック図である。図において、21はメモリ装置、22は明度符号逆変換部、23はバッファメモリ、24は色逆変換部である。
【0032】
メモリ装置21は、図1のメモリ装置16に対応し、ここでは、1ブロック当り図4に示したビット構成の符号化データが蓄積されている。復号の場合、このメモリ装置21に蓄積されている符号化データを順次読み出し、ブロック単位に、ブロック内16画素の平均色差値Cr〔7:0〕、Cb〔7:0〕はバッファメモリ23に直接格納するが、ブロック内16画素の平均明度値La〔7:0〕、明度分散値Ld〔7:0〕、及びブロック内16画素の各量子化値φ00〜φ33の明度符号データは明度符号逆変換部22に渡す。
【0033】
明度符号逆変換部22では、La〔7:0〕、Ld〔7:0〕、及びφ00〜φ33をもとに、ブロック内16画素の各明度データY00〔7:0〕〜Y33〔7:0〕を復号する。具体的には、φij=0の画素は、そのYijをLa−Ld/2とし、φij=1の画素は、そのYijをLa+Ld/2とする。
【0034】
バッファメモリ23では、明度符号逆変換部22から出力されるブロック内16画素の各明度データY00〔7:0〕〜Y33〔7:0〕を、先の平均色差データCr〔7:0〕、Cb〔7:0〕と対応づけて格納する。
【0035】
色逆変換部24では、バッファメモリ23内の1ブロック16画素の各明度データY00〔7:0〕〜Y33〔7:0〕、ブロック内16画素の平均色差データCr〔7:0〕、Cb〔7:0〕について、各々、1画素のY〔7:0〕とCr〔7:0〕とCb〔7:0〕を組として、次式を適用し、1画素単位にR(赤)、G(緑)、B(青)のカラー画像データR〔7:0〕、G〔7:0〕、B〔7:0〕に逆変換する。
R=Y+2(1−0.299)Cr (4)
B=Y+2(1−0.114)Cb (5)
G=Y+2(1−0.299R−0.114B)/0.587 (6)
【0036】
以下、本発明の各実施例について詳述する。さらなる符号圧縮対象の元々の符号化データは図4の符号構成とする。Laが第1の符号、Lが第2の符号、φijが第3の符号、CrCbが第4の符号である。
【0037】
〔実施例1〕
符号化データが、通常のビジネス文書画像を対象としたものであれば、各符号の内で、最も重要度が低いのは色差(色部分)の符号と言える。写真部分なら、明度情報さえ残っていれば、被写体判別できる。文字/グラフィックス部分であっても、明度差さえあれば、色差情報が失われても、文書の意味を残せる。本実施例は、この考えにもとづいている。
【0038】
図6は本実施例1のブロック図であり、31はメモリ装置、32は色差符号除去部を示す。メモリ装置31は既に符号化ずみの画像データを蓄積している。本実施例では、1ブロック当り図4に示した符号構成(48ビット)の符号化データを蓄積している。色差符号除去部32は、該符号化データ中の色差符号部分CrCbを削除する処理を行う。
【0039】
図7は、色差符号除去部32の処理フローチャートである。色差符号除去部32では、メモリ装置31に蓄積されている符号化データ(LaLd、φij、CrCb)を順次読み出し(ステップ41)、1ブロック単位に、その中の色差符号部分Cr〔7:0〕、Cb〔7:0〕を除去し(ステップ42)、La〔7:0〕、Ld〔7:0〕、φ00〜φ33の明度符号部分のみをメモリ装置31に再書込みする(ステップ43)。以下、メモリ装置31内の処理対象符号化データの処理がすべて終るまで繰り返す(ステップ44)。
【0040】
図8は本実施例1の符号圧縮の遷移を示している。図8(a)は図4に示した48ビットの元々の符号化データである。本実施例1では、図8(a)のように圧縮符号化されたカラー画像データを、さらに符号圧縮したいという要求等があった場合、その色差符号部分CrCbを除去する。この結果、図8(b)に示すように、1ブロック当り32ビットとなり、(a)よりさらに小さくなっている。(a)の圧縮符号に対しGBTC逆変換をして、再度異なった変換をするわけではないので、容易に符号長を短くすることができる。各符号データがブロックごとに固まって(例えばレコードとして)、メモリ装置の連続したアドレスに格納されていた場合、削除した色差の符号長だけ、次のブロックの符号を順次ずらすことで、連続したアドレスを空き領域にすることができる。削除しない符号をずらさなくても、削除対象のアドレスを開放し、別のデータを格納できるようにしてもよい。
【0041】
図8(b)の圧縮符号化データからの復号化処理は、先の式(4)、(5)、(6)において、Cr=Cb=0として行えばよい。
【0042】
〔実施例2〕
本実施例は、実施例1で色差符号部分を削除した明度部分のみのGBTC符号化データ(La、Ld、φij)からさらにLaLdを除去し、明度量子化値φijの符号のみとするものである。明度量子化値φijは明度分散Ldをもとに再量子化(再符号化)したものを出力する。この再量子化された明度量子化値をφ′ijと称すことにする。なお、モノクロ画像データのGBTC符号化データは、元々がLa、Ld、φijのみであるので、さらに符号圧縮を行う場合には、本実施例2を直接適用する。
【0043】
図9は本実施例2のブロック図であり、51はメモリ装置、52は明度符号再量子化部、53はφ′作成用テーブルである。メモリ装置51は、既に符号圧縮ずみの画像データを蓄積している。本実施例では、1ブロック当り図8(b)に示した符号構成の明度符号部分のみのGBTC符号化データを蓄積している。明度符号再量子化部52は、該明度符号部分のみのGBTC符号化データからLaLdを削除するとともに、明度量子化値φ′ij(i=0〜3、j=0〜3)を作成する。
【0044】
図10は、明度符号再量子化部52の処理フローチャートである。明度符号再量子化部52では、メモリ装置51に蓄積されている明度部分のみのGBTC符号化データ(La、Ld、φij)を読み出し(ステップ61)、ブロック単位にその明度分散値L〔7:0〕を、所定の閾値T(例えば、T=128)と比較する(ステップ62)。そして、Ld≧Tであれば、いまの明度量子化値φ00〜φ33をそのままφ′00〜φ′33とし、LaLdは除去し(ステップ63)、φ00〜φ33=φ′00〜φ′33のみをメモリ装置51に再書込みする(ステップ65)。一方、Ld<Tの場合は、φ′作成用テーブル53を参照して、あらためてφ′00〜φ′33を作成し、同様にLaLdは除去して(ステップ64)、φ′00〜φ′33のみをメモリ装置51に再書込みする(ステップ65)。以下、メモリ装置51内の処理対象符号化データの処理がすべて終るまで繰り返す(ステップ66)。
【0045】
図11は本実施例2の符号圧縮の遷移を示している。図11(a)は、図8(b)に示したように、実施例1を適用して圧縮した32ビットのGBTC符号化データである。これを本実施例2を適用してさらに圧縮すると、図11(b)に示すように、1ブロック当り16ビットとなり、図11(a)よりさらに半分となる。また、図4の元々の48ビットの符号化データからは1/3となる。モノクロ画像データでは、元々のGBTC符号化データが図11(a)の符号構成であり、本実施例2を適用すると、同様に図11(b)となるため、半分になる。
【0046】
図11(b)の符号化データからの復号化処理は、φ′ij=0の画素をYij=0、φ′ij=1の画素をYij=255、Cr=Cb=0として行えばよい。この場合、復号画像は完全な2値画像となる。
【0047】
図12は、図10のステップ63、64での具体的処理例、図13はそれに使用されるφ′作成用テーブル53の一例である。
【0048】
明度分散値Ldが大きいブロック(Ldが閾値T以上)は、大きなエッジが存在する。これは例えば文字の書かれたような領域なので、画像を2値化してしまっても、画像文書の意味が失われるようなことは少ない。図12(a)は、その一例である。この場合には、φij=φ′ijとする。
【0049】
一方、図2(b),(c)は、Ldが閾値T未満だった場合を示している。このようなブロックは、エッジのない、なだらかな、例えば写真の置かれたような領域なので、階調性が重要な領域と言える。よって、2値画像であっても、階調、すなわち平均明度値Laが、ブロック内の黒画素数で表現されていれば、画質劣化は小さいと言える。そこで、まず、Laの値ごとにブロック内の黒画素数を図13のテーブルによって決定する。この黒画素数が、φij=1である画素数と同じであれば、φijそのものをφ′ijとする。異なっていた場合、φij=1の画素数を強制的に、目的の黒画素数に合わせる。図12(b)の場合、La=108なので、図13のテーブルからブロック内黒画素数を6にすることとなる。ところがφij=1は9画素あるので、3画素分φij=1を0に変えている。ここでは、ブロックの左上画素からラスター順にたどって、φijを変化させφ′ijを作成している。図12(c)は、逆にφij=0を1に変える例である。
【0050】
〔実施例3〕
図14は本実施例3のブロック図である。図中、70はメモリ装置、72は符号圧縮装置であり、符号圧縮装置72は色差符号除去部73、明度符号再量子化部74及びφ′作成用テーブル75からなる。即ち、これは実施例1と実施例2を組み合わせたものである。図15に本実施例における符号圧縮の遷移を示す。
【0051】
メモリ装置70には、最初、図15(a)に示すような1ブロック(4×4画素)当り48ビット構成の符号化データに圧縮されたカラー画像データが蓄積されている。この画像データをさらに圧縮する必要が生じた場合、まず、色差符号除去部73により、図15(b)に示すような1ブロック当り32ビット構成の色差符号部分が削除された明度部分のみのGBTC符号(図8(b)の符号)に圧縮し、メモリ装置70に再書き込みする。これでも不十分で、さらに圧縮する必要が生じた場合、次に、明度符号再量子化部74により、メモリ装置70に蓄積されている図15(b)のGBTC符号を、さらに図15(c)に示すような1ブロック当り16ビット構成の明度量子化値φ′ijのみの符号に圧縮し、メモリ装置70に再書き込みする。
【0052】
本実施例3によれば、符号化された画像データを蓄積するメモリ装置の空き容量を段階的、適応的に改善できる。例えば、メモリ装置に多種多様の種々な画像データが蓄積されている場合、画像データの種別等により、圧縮処理を図15(b)までにする、引き続き図15(c)まで進める、あるいは図15(a)のままとする等、使い分けることが可能である。
【0053】
なお、モノクロ文書画像データでは、その元々の符号化データは図15(b)のような明度部分のみのGBTC符号であるため、この符号化データをさらに圧縮する必要がある場合には、直接、明度符号再量子化部74を起動すればよい。
【0054】
〔実施例4〕
実施例1〜3は、基本的に符号化データ中の色差符号部分を除去することを前提とするものであるが、本実施例4は、符号化データのさらなる圧縮が必要になった場合、まず、この色差符号部分を縮小置換するものである。
【0055】
図16は本実施例4のブロック図であり、81はメモリ装置、82は色差符号再量子化部を示す。メモリ装置81は、図1のメモリ装置16や図5のメモリ装置21に該当し、図4に示すような1ブロック(4×4画素)当り48ビット構成の符号化データの画像データを蓄積している。ここで、Cr、Cbはそれぞれ8ビットであり、量子化レベルは255(−127〜+127)である。色差符号再量子化部82は、この符号化データ中の色差符号部分Cr、Cbを再量子化(再符号化)してビット数を縮小する処理を行う。ここでは、7レベルに再量子化し、Cr〔7:0〕、Cb〔7:0〕の合計16ビットの色差符号部分を、C〔5:0〕の合計6ビットに縮小するものとする。
【0056】
図17は、色差符号再量子化部82の処理フローチャートである。色差符号再量子化部82では、メモリ装置81に蓄積されている符号化データを順次読み出し(ステップ91)、1ブロック単位に、その符号La〔7:0〕、Ld〔7:0〕、φ00〜φ33、Cr〔7:0〕、Cb〔7:0〕の中の色差符号部分Cr〔7:0〕、Cb〔7:0〕をそれぞれ再量子化して、両方をC〔5:0〕にまとめ(ステップ92)、あらためて符号化データLa〔7:0〕、Ld〔7:0〕、φ00〜φ33、C〔5:0〕としてメモリ装置81に再書込みする(ステップ93)。以下、メモリ装置81内の処理対象符号化データの処理がすべて終了するまで繰り返す(ステップ94)。ここで、ステップ92での再量子化処理は、最も簡単には、Cr、Cbの値を各々所定の数(例えば32)で割算し、各々3ビットに丸めることで実現できる。また、再量子化テーブルで索引することでもよい。この場合、Cr、Cbの入力値に対応して出力値Cが直接得られるため、割算や丸め処理を省略できる。
【0057】
図18は、本実施例を適用した場合の符号圧縮の遷移を示す。図18(a)は、図4に示した1ブロック当り48ビットの元々の符号化データである。本実施例4を適用すると、この符号化データは図18(b)に示すように、1ブロック当り38ビットとなり、10ビット圧縮されることが分かる。図18(b)の符号は、同図(a)の符号圧縮に対しGBTC逆変換をして、再度異なった変換をするわけではないので、容易に符号長を短くすることができる。各符号がブロックごとに固まって、メモリ装置の連続したアドレスに格納されていた場合、縮小した色差の符号長だけ、次のブロックの符号を順次ずらすことで、連続したアドレスを空き領域にすることができる。削除しない符号をずらさなくても、削除対象のアドレスを開放し、別のデータを格納できるようにしてもよい。
【0058】
図18(b)の符号化データからの復号化処理は、式(4)、(5)、(6)において、C〔5:0〕の前半3ビットをCr、後半3ビットをCbとして行えばよい。
【0059】
図19は本実施例による色差符号再量子化の処理イメージを示したものである。図中、細い縦横線は再量子化の閾値を表しており、この量子化閾値で囲われた各領域に入った値を、黒丸で示した各量子化代表値に変換することで、Cr、Cbを再量子化・再符号化し、符号を縮小することを示している。ここで、図19(a)は、Cr、Cbの各々の量子化レベル255(−127〜+127)を7レベルに再量子化・再符号化し(例えば、Cr、Cbを各々32で割って丸める)、Cr、Cbで合計16ビットの符号を合計6ビットに縮小することを示している。
【0060】
再量子化方法はこれに限定されない。例えばCr、Cbの色差空間は、視覚的に不均一な空間であるため、量子化閾値線を不均一に設定することで、視覚的により効果的な縮小が行える。これは、テーブルを使用することで容易に実現できる。また、図19は、Cr、Cbそれぞれについてのスカラー量子化の例であるが、例えば隣接する領域を統合し、1つの量子化代表値を割り当てる、2次元ベクトル量子化であれば、さらに効果的縮小となる。
【0061】
ところで、実際のCr、Cbは図19の全範囲に存在し得る訳ではない。図19の楕円で囲われた領域が、その範囲を模式的に表している。よって量子化代表値は、この範囲内にのみ置かれる方が効果的となる。ところがこの範囲は、明度値によって移動する。中間の明度で広く、シャドー部やハイライト部の明度で狭い。そこで明度値として、Laを用い、Laの値に応じ、量子化しきい値及び量子化代表値を移動させる。図19(b)は、明度値の違いによって、より狭い範囲で量子化を行う様を示したものである。図19(b)はCr、Cbを各々16で割った例である。
【0062】
図20に、中間明度には図19(a)に示すような色差再量子化法を適用し、シャドー/ハイライト部には図19(b)に示すような色差再量子化法を適用した場合の、色差符号再量子化部82の処理フローチャートを示す。色差符号再量子化部82は、メモリ装置81から符号化データを読み出し(ステップ101)、1ブロックの符号La〔7:0〕、Ld〔7:0〕、φ00〜φ33、Cr〔7:0〕、Cb〔7:0〕が揃うと、平均明度符号La〔7:0〕の値が閾値T1、T2の範囲内か判定する(ステップ102)。T1≦La<T2の場合(中間明度)、図19(a)を適用して色差符号Cr〔7:0〕、Cb〔7:0〕を再量子化・再符号化し(Cr、Cbを32で割って丸める)、それらをまとめてC〔5:0〕とする(ステップ103)。一方、La<T1(シャドー)あるいはLa>T2(ハイライト)の場合は、図19(b)を適用してCr〔7:0〕、Cb〔7:0〕を再量子化・再符号化し(Cr、Cbを16で割って丸める)、C5:0〕とする(ステップ104)。そして、符号化データLa〔7:0〕、Ld〔7:0〕、φ00〜φ33、C〔5:0〕をあらためてメモリ装置81に再書込みする(ステップ105)。以下、メモリ装置81内の処理対象データの処理がすべて終るまで繰り返す(ステップ106)。
【0063】
〔実施例5〕
これは実施例4と実施例1の組み合せである。即ち、実施例4により、まず、元々の符号化データLa〔7:0〕、Ld〔7:0〕、φ00〜φ33、Cr〔7:0〕、Cb〔7:0〕における色差符号部分Cr〔7:0〕、Cb〔7:0〕をC〔5:0〕に縮小置換し、符号化データLa〔7:0〕、Ld〔7:0〕、φ00〜φ33、C〔5:0〕とする。これでも不十分であれば、次に、縮小置換したC〔5:0〕をまったく除去し、実施例1と同様に、符号化データをLa〔7:0〕、Ld〔7:0〕、φ00〜φ33の明度部分のみの符号とするのである。この実施例5の構成、及び、符号の遷移状態については、次の実施例6で一緒に示すこととし、ここでは省略する。
【0064】
〔実施例6〕
図21は本実施例6のブロック図である。図中、110はメモリ装置、120は符号圧縮装置であり、符号圧縮装置120は色差符号再量子化部121、色差符号除去部122、明度符号再量子化部123及びφ′作成用テーブル124からなる。即ち、本実施例6は実施例5と実施例2を組み合わせて構成するものである。図中、色差符号再量子化部121と色差符号除去部122の構成が実施例5に相当する。本実施例6における符号圧縮の遷移を図22に示す。
【0065】
メモリ装置110には、最初、図22(a)に示すような1ブロック(4×4画素)当り48ビット構成の符号化データに圧縮された画像データが蓄積されている。該メモリ装置110内の画像データをさらに圧縮する必要が生じた場合、まず、色差符号再量子化部121により、色差符号CrCb合計16ビットを色差符号C合計6ビットに再量子化(再符号化)し、図22(b)に示すように、1ブロック当り38ビット構成の符号化データに圧縮してメモリ装置110に再書き込みする。このメモリ装置110に再書き込みされて蓄積された図22(b)の符号形式の文書画像データをさらに圧縮する必要が生じた場合、次に、色差符号除去部122において、こんどは色差符号C6ビットをまったく除去し、図22(c)に示すように、1ブロック当り32ビット構成の明度符号部分だけのGBTC符号に圧縮してメモリ装置110に再書き込みする。そして、このメモリ装置110に再書き込みされて蓄積された図22(c)の符号形式の文書画像データをさらに圧縮する必要が生じた場合には、次に、明度符号再量子化部123において、こんどは明度符号部分のLaLd合計16ビットを除去するとともに、φijを再量子化(再符号化)し、図22(d)に示すように、1ブロック当り16ビット構成の明度再量子化値φ′ijだけの符号(2値化符号)に圧縮してメモリ装置110に再書き込みする。
【0066】
本実施例によれば、画像データを蓄積するメモリ装置の空き容量を、先の実施例3に比べてさらに段階的、適応的に改善できる。
【0067】
〔応用例〕
ここでは、一例として大量の文書画像データを扱うファイリングシステムなどの画像処理装置への応用例を示すが、勿論、本発明の符号圧縮方式はこれ以外の種々の画像処理装置やシステムに適用できるものである。
【0068】
図23は、本発明の符号圧縮方式を適用した文書画像ファイリングシステムなどの画像処理装置の一実施例を示すブロック図である。本画像処理装置は、表示装置200、キーボード210、マウス(ポインティングデバイス)220、スキャナ230、プリンタ240、文書ファイル250、処理制御装置(CPU)260、符号/復号処理装置270、符号圧縮装置280、文書画像データベース290、二次記憶装置300、及び、これらを接続するバス310などで構成される。
【0069】
CPU260は、各部の制御を行うとともに、文書画像データベース280の登録・検索などを行う。符号/復号処理装置270は、図1及び図5で説明したような構成である。符号圧縮装置280は先の実施例1〜6で説明したいずれの構成でもよいが、ここでは、ベストモードの実施例6の構成(図21)を備えるとする。後述するように、符号圧縮装置280のいずれの符号圧縮部を動作させるかは、CPU260が制御する。該符号圧縮装置280は、例えばボード(基板)構造としてCPU260に着脱可能としてもよく、また、CPU260が符号/復号処理装置270と一緒に最初から内蔵することでもよい。
【0070】
原文書の画像データは、イメージスキャナ230で読み取り、画像データとしてCPU260に転送される。また、フロッピーディスクやMO、その他の文書ファイル250の既存の画像データは、直接CPU260に転送される。図1では省略したが、画像データは通信回線を通して遠隔の端末から受信することでもよく、同様にCPU260に転送される。CPU260では入力された画像データに必要なら編集などの前処理をほどこして符号/復号処理装置270に渡し、符号/復号処理装置270で該画像データを符号化し、文書画像データベース290に蓄積する。このようにして、データベース290は、文書画像データの符号化データを文書ごとに大量に蓄積している。
【0071】
利用者は、キーボード210などを使用して文書画像データベース290のデータ検索要求を入力する。CPU260は、データ検索要求があると、文書画像データベース280から該当する文書の符号化データを読み出して符号/復号処理装置270に渡し、符号/復号処理装置270で復号し、表示装置200に表示する。また、プリント要求があるとプリンタ240でプリントアウトする。
【0072】
以上は、この種の画像処理装置の一般的動作である。以下、符号圧縮装置280を搭載した本画像処理装置の特徴的動作を説明する。
ここで、文書画像データベース290は、文書画像データを1ブロック単位(4×4画素)、図4や図22(a)のように、明度部分についてはGBTC方式で符号化した色差量子化値φij16ビット、平均明度値La8ビット、明度分散値L8ビット、色成分については色差平均値CrCb各8ビットの合計48ビットの符号化データを蓄積しているとする。
【0073】
CPU260は、文書画像データベース290の蓄積データ量を管理し、許容容量を超えた場合、文書画像データベース290に蓄積されている画像データの文書一覧等を表示装置200に表示する。利用者は、キーボード210やマウス220などで、この文書一覧表示から更に圧縮してもよい文書画像データを一つあるいは複数選択し、符号圧縮を要求する。ここで、文書画像データが通常のビジネス文書画像の場合、各符号の内で最も重要度の低いのは色差の符号であり、色差情報が多少失なわれても文書の意味を残せるものである。
【0074】
CPU260は、符号圧縮要求を受け取ると、まず、符号圧縮装置280内の色差符号再量子化部281を起動し、選択された文書画像データの符号圧縮を指示する。色差再量子化部281は、指示された文書画像データをデータベース290から読み出し、図22(a)のような符号化データを図22(b)のように符号圧縮し、データベース290に再書き込みする。この結果、当該文書画像データは1ブロック当り48ビットから38ビットに減少し、その分、データベース290に余裕が生じる。なお、文書画像データベース290では、当該文書画像データを色差再量子化済みデータとして管理する。
【0075】
CPU260は、上記符号圧縮処理後も、まだ文書画像データベース290の蓄積データ量が許容容量を超えていた場合、あるいは、しばらく登録利用後、再び蓄積データ量が許容容量を超えた場合、再び利用者に符号圧縮すべき文書画像データを問い合わせる。この結果、利用者が新しい文書画像データを選択した場合には、CPU260は、符号圧縮装置280内の色差符号再量子化部281を再び起動する。一方、色差再量子化済みの文書画像データを選択した場合には、CPU260は、次に色差符号除去部282を起動し、該色差再量子化済みの文書画像データの符号圧縮を指示する。色差符号除去部282は、指示された文書画像データをデータベース290から読み出し、図22(b)のように符号圧縮済みの文書画像データを図22(c)のように更に符号圧縮し、データベース290に再書込みする。この結果、当該文書画像データは1ブロック当り38ビットから32ビットに減少する。文書画像データベース290では、当該文書画像データを色差符号削除済みデータとして管理する。
【0076】
以下、同様の動作を繰り返し、色差符号削除済みデータが選択された場合、CPU260は、次に符号圧縮装置280内の明度符号再量子化部283を起動し、該色差符号削除済みの画像データの符号圧縮を指示する。明度符号再量子化部283は、指示された文書画像データをデータベース290から読み出し、図22(c)のように符号圧縮済みの文書画像データを図22(d)のように更に符号圧縮し、データベース280に再書込みする。この結果、当該文書画像データは1ブロック当り16ビットに減少する。文書画像データベース290では、当該文書画像データを色差符号削除/明度再量子化済みデータとして管理する。
【0077】
図24は上記動作のCPU260の制御フローチャートを示したものである。なお、モノクロ文書画像データは、元々図22(c)の符号形式でデータベース290に蓄積されている。したがって、符号圧縮対象として該モノクロ文書データが選択された場合、CPU260は、最初から符号圧縮装置280内の明度再量子化部283を起動するようにすればよい。
【0078】
以上の動作では、文書画像データベース290を使用状況が許容容量を超える都度、CPU260が利用者に問い合わせ、選択された文書画像データの符号圧縮状態にもとづいて、符号圧縮装置280内の色差符号再量子化部281、色差符号除去部282、明度符号再量子化部283のいずれかを起動するとしたが、CPU260では、文書画像データベース290の使用データ量が許容容量以下になるまで、選択された文書画像データについて、符号圧縮装置280内の色差符号再量子化部281、色差符号除去部282、明度符号再量子化部283を順に自動起動することも可能である。図25に、この場合のCPU260の制御フローチャートを示す。図24のような対話形式とするか、図25のような自動起動とするかは、例えば最初の選択時などで利用者があらかじめ指示すればよい。
【0079】
ところで、図24や図25の動作後、文書画像データベース290には、一般に元々符号/復号処理装置270で符号化された文書画像データ、符号圧縮装置280の各符号圧縮部281、282、283で更に符号圧縮された色差符号再量子化済み文書画像データ、色差符号削除済み文書画像データ、色差符号削除/明度符号再量子済み文書画像データが混在することになる。
【0080】
検索時、符号/復号処理装置270の復号処理では、元々の符号化文書画像データは図5のようにして復号すればよい。一方、色差符号再量子化済みの文書画像データは、式(4)、(5)、(6)において、再量子化色差符号Cの前半をCr、後半をCbとして復号する。この場合、色情報は縮退するが、まったく失われることはない。色差符号削除済みの文書画像データは、Cr=0、Cb=0として復号する。これはモノクロ文書画像データの符号と同じであり、色情報は失われるが、通常のビジネス文書画像では、文書の意味は残せる。色差符号削除/明度符号再量子済み文書画像データは、明度再量子化値φ′ij=0の画素をYij=0(白)、φ′ij=1の画素をYij=256(黒)、Cr=0、Cb=0として復号する。この場合、復号画像は完全な2値画像となる。文書によっては、これでも文書の意味は残せるものである。
【0081】
次に、図23の二次記憶装置300の利用について説明する。利用者は、符号圧縮対象の文書画像データを選択し、符号圧縮処理をCPU260に要求するとき、該文書画像の元々の符号化データを残したい場合、その旨をCPU260に指示す。CPU260は、この指示を受け取った場合、符号圧縮装置280の起動に先立って、文書画像データベース290から当該符号化文書画像データを読み出して二次記憶装置300に格納する。これにより、検索時、文書画像データベース290の符号圧縮済みデータからの復号画像では不十分の場合、二次記憶装置300にある元々の符号化データを読み出し、符号/復号処理装置270で復号することにより、原画像を得ることが可能になる。
【0082】
〔記録媒体〕
本発明の符号圧縮方法は、コンピュータで実行可能なプログラムとして、コンピュータで読み取り可能な記録媒体、例えばフロッピーディスク、CD−ROM、メモリカードなどに記録して提供することも可能である。図23に示したような画像処理装置は所謂コンピュータシステムのハードウエア・ソフトウエア資源を利用して構築されるものであり、この場合、上記記録媒体のプログラムをインストールすることにより、符号圧縮装置280が所定の機能を奏するようになる。なお、記録媒体には符号/復号処理装置270用のプログラムも一緒に記録することでもよい。
【0083】
【発明の効果】
本発明の画像圧縮方法、画像圧縮装置及び画像処理装置によれば、以下のような効果が得られる。
(1) 画質上重要でない一部の情報を削除や縮小置換するだけであるため、符号化済みのデータに対する圧縮率の向上処理を容易に実現できる。
(2) 圧縮率向上処理後も、ブロックあたりの符号長は、常に一定であるので、圧縮符号に対する、加工/編集容易性は失われない。
(3) 画質上重要でない情報から順に破棄することにより、各段階において高い画質の画像を復元できる。そして、多段処理は適応的な処理を行っているので、種々の画像特性に応じた高い画質が得られる。
(4) 各段階におけるブロックあたりの符号長は、常に一定であるので、(2)で述べたように圧縮符号に対する、加工、編集が容易であり、さらにその圧縮率多段階処理自体も簡単なものとなっている。
【図面の簡単な説明】
【図1】 本発明の実施例で用いる符号化データを生成する符号化機構の構成例を示すブロック図である。
【図2】 符号化の具体的処理例を示す図である。
【図3】 図2の各画素値の分布を示す図である。
【図4】 本発明の実施例で用いる符号化データのビット構成を示す図である。
【図5】 本発明の実施例で用いる符号化データを復号する復号機構の構成例を示すブロック図である。
【図6】 本発明の符号圧縮の第1の実施例のブロック図である。
【図7】 本発明の第1の実施例の処理フローチャートである。
【図8】 本発明の第1の実施例の符号圧縮の遷移を示す図である。
【図9】 本発明の符号圧縮の第2の実施例のブロック図である。
【図10】 本発明の第2の実施例の処理フローチャートである。
【図11】 本発明の第2の実施例の符号圧縮の遷移を示す図である。
【図12】 本発明の第2の実施例の具体的処理例を示す図である。
【図13】 本発明の第2の実施例で用いる明度再量子化値作成用テーブルの一例を示す図である。
【図14】 本発明の符号圧縮の第3の実施例のブロック図である。
【図15】 本発明の第3の実施例の符号圧縮の遷移を示す図である。
【図16】 本発明の符号圧縮の第4の実施例のブロック図である。
【図17】 本発明の第4の実施例の処理フローチャートである。
【図18】 本発明の第4の実施例の符号圧縮の遷移を示す図である。
【図19】 本発明の第4の実施例の符号圧縮の概念図である。
【図20】 本発明の第4の実施例の他の処理フローチャートである。
【図21】 本発明の符号圧縮の第5の実施例のブロック図である。
【図22】 本発明の第5の実施例の符号圧縮の遷移を示す図である。
【図23】 本発明の一応用例の文書画像ファイリングシステムの全体的ブロック図である。
【図24】 図23の文書画像ファイリングシステムの動作例を説明するフローチャートである。
【図25】 図23の文書画像ファイリングシステムの他の動作例を説明するフローチャートである。
【符号の説明】
200 表示装置
210 キーボード
220 マウス
230 スキャナ
240 プリンタ
250 文書ファイル
260 処理制御装置(CPU)
270 符号/復号処理装置
280 符号圧縮装置
281 色差符号再量子化部
282 色差符号除去部
283 明度符号再量子化部
290 文書画像データベース
300 二次記憶装置
[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to color document image data, monochrome document image data, and other code compression methods, code compression apparatuses, and document images to which code data obtained by code compression of image data is further compressed. The present invention relates to an image processing apparatus such as a filing system.
[0002]
[Prior art]
  In an image processing apparatus, when a large amount of data such as a color digital image is stored in a storage device having a limited capacity, a data compression technique is often used. Furthermore, when the code amount when the image data is encoded by a certain compression method exceeds the capacity of the storage device, it is necessary to reduce the already encoded and stored data by that excess. This information reduction is usually an irreversible process using visual redundancy included in the image data.
[0003]
  Conventionally, in a device that compresses and stores images of a large number of pages in a storage device such as a hard disk (HDD), when the HDD capacity is full, the compressed data of the pages that have been stored so far is reduced. A page can be stored. Data reduction is achieved by reducing the image quality such as resolution and gradation and increasing the compression rate.
[0004]
  Hierarchical coding is an encoding method that can easily reduce information from such encoded data. In the case of non-hierarchical encoding, for example, JPEG baseline, it is necessary to go through the troublesome procedure of once decompressing the compressed code and recompressing it again at a different compression rate. However, with hierarchical encoding such as JPEG extended progressive, information can be reduced simply by discarding data in layers that are not important in terms of image quality.
[0005]
  On the other hand, there is a fixed-length compression method as a method for code-compressing color image data more easily than JPEG. This is because color image data is converted into block units, the lightness component is converted into average lightness, lightness dispersion, and each pixel quantized value by the GBTC (generalized block truncation coding) method. This is a method of generating and using this as a code. Since the generated code length is the same for each block (fixed length compression), the code is easy to handle. For example, since the transfer speed when transferring the code can be made constant, there are advantages such as simplified flow control and easy address calculation when directly processing and editing the stored code. For example, in Japanese Patent No. 2608284, the ratio of the code length related to lightness and the code length related to color is changed depending on whether or not an edge is further included in the block in such a fixed-length compression method. It is described to improve image quality.
[0006]
[Problems to be solved by the invention]
  In the above prior art, the hierarchical coding method such as JPEG extended progressive has a drawback that the processing is complicated. In addition, the method described in Japanese Patent No. 2608284 is a comparative process.TargetAlthough it is simple, there is a drawback that the information reduction (compression rate readjustment) from the state of the compression code is not easy due to the code structure, or that a new problem is caused by the reduction. For example, if the code relating to the color is deleted, the code lengths per block will vary, and the merit of the fixed length compression will be lost.
[0007]
  In view of the above-described problems of the prior art, the present invention can easily process and edit image data compression codes, can easily increase the compression ratio, and can reduce image quality deterioration at that time. An object is to provide an apparatus and an image processing apparatus to which the apparatus is applied.
[0008]
[Means for Solving the Problems]
  The present invention employs a fixed-length compression method that makes it easy to handle codes, and removes low-importance code portions from fixed-length encoded data consisting of a plurality of code portions obtained by code compression of image data ( (Delete) or reduced replacement. Further, if necessary, the code part having the next lowest importance in the encoded data of the compression result is removed, and the remaining significant code part is re-encoded.
[0009]
  For example, for each block of color image data, a first code representing the lightness average of the pixels in the block, a second code representing the lightness variance of the pixels in the block, a third code representing the individual lightness values in the block, Then, with respect to the encoded data that is code-compressed to the fourth code representing the color average of the pixels in the block, the encoded data is obtained by removing or reducing and replacing the fourth code part. If the image data is a normal business document image, the least important is the color code. Therefore, even if the color information is degenerated or lost, the meaning of the document can remain.
[0010]
  Furthermore, if necessary, the third code is reproduced according to the values of the first code and the second code with respect to the encoded data composed of the first code, the second code, and the third code of the compression result. The first code part and the second code part are removed, and only the regenerated third code is used. Specifically, when the lightness variance value of the second code is larger than a predetermined threshold value, the original third code is used as it is after the regeneration, and when it is smaller than the predetermined threshold value, the lightness average of the first code is used. In response to this, the third code is regenerated. For example, a block having a large brightness variance value is an area where characters are written, and it is unlikely that the meaning of the document is lost even with the third code alone. A block having a small lightness variance value is a region such as a photograph, for example, and image quality deterioration can be reduced by regenerating the lightness value of each pixel in the block according to the lightness average.
[0011]
  In the case of monochrome image data, the encoded data originally represents a first code representing the lightness average of the pixels within the block, a second code representing the lightness variance of the pixels within the block, and the lightness values of the individual pixels within the block. Since it is composed of the third code, when further compression is required, the encoded data consisting of the first code, the second code, and the third code is directly compressed as described above. Only the code of 3 may be used.
[0012]
  The image processing apparatus and the image processing method according to the present invention can be defined as follows.
[0013]
  Image processing according to claim 1 includes:
  Color conversion means for converting color image data into lightness component data and color difference component data;
Lightness encoding means for compressing the lightness component data in a predetermined block unit and generating codes of average lightness value, lightness variance value, and lightness quantization value;
Color difference encoding means for generating a code of an average color difference value by compressing the color difference component data at a fixed length in block units;
Accumulation means for accumulating encoded data composed of codes of the average lightness value, the lightness variance value, the lightness quantization value, and the average color difference value;
Color difference code removing means for removing the code of the average color difference value stored in the storage means in units of blocks;
Lightness code requantization means for removing the code of the lightness average value and lightness variance value stored in the storage means for each block;
It is characterized by having.
[0014]
  In addition to the configuration of the image processing device according to claim 1, the image processing device according to claim 2 includes:
  The lightness code requantization means includes a table in which the number of 1s in the code of the lightness quantization value and the average lightness value are associated with each other.
The lightness code requantization means reads the sign of the average lightness value, lightness variance value, and lightness quantization value accumulated in the accumulation means, and compares the lightness variance value for each block with a predetermined threshold value, For the block for which the brightness variance value is determined to be less than the threshold value, the number of 1 corresponding to the average brightness value of the block is read from the table, and the sign of the brightness quantized value including the number 1 equal to the number is read. It is characterized by re-creating.
[0015]
  In addition to the configuration of the image processing apparatus according to claim 1, the image processing apparatus according to claim 3
  It is characterized by further comprising color difference code requantization means for performing requantization for reducing the number of bits for the code of the average color difference value stored in the storage means for each block.
[0016]
  In addition to the configuration of the image processing device according to claim 3, the image processing device according to claim 4 includes:
  The color difference code requantization means determines whether or not the average brightness value is within a predetermined brightness range for each block, and changes a requantization method for the average color difference value according to the determination result. It is characterized by doing.
[0017]
  An image processing method according to claim 5 comprises:
  A color conversion step for converting color image data into lightness component data and color difference component data;
A lightness coding step of generating a code of an average lightness value, a lightness variance value, and a lightness quantization value by compressing the lightness component data in a predetermined block unit;
A color difference encoding step in which the color difference component data is fixed-length-compressed in units of blocks and a code of an average color difference value is generated;
An accumulating step of accumulating in the accumulating means encoded data consisting of codes of the average brightness value, the brightness variance value, the brightness quantized value, and the average color difference value;
A color-difference code removing step of removing the code of the average color-difference value stored in the storage unit in units of blocks;
A lightness code requantization step of removing the code of the lightness average value and lightness dispersion value stored in the storage means in units of blocks.
[0018]
  In addition to the configuration of the image processing method according to claim 5, the image processing method according to claim 6 includes:
  The lightness code requantization step reads out the sign of the average lightness value, lightness variance value, and lightness quantization value accumulated in the accumulation means, and compares the lightness variance value with a predetermined threshold value for each block, For a block determined to have a lightness variance value less than the threshold, the number of 1s corresponding to the average lightness value of the block from the table in which the number of 1s in the code of the lightness quantized value and the average lightness value are associated. , And the code of the lightness quantized value including the number 1 equal to the number is recreated.
[0019]
  The image processing method according to claim 7 includes, in addition to the configuration of the image processing method according to claim 5 or 6,
  A color difference code requantization step of performing requantization for reducing the number of bits for the code of the average color difference value stored in the storage means in units of blocks.
[0020]
  In addition to the configuration of the image processing method according to claim 7, the image processing method according to claim 8 includes:
  The color difference code requantization step determines whether or not an average brightness value is within a predetermined brightness range for each block, and a method of requantizing the code of the average color difference value according to the determination result It is characterized by changing.
[0021]
DETAILED DESCRIPTION OF THE INVENTION
  Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following embodiment, color image data is divided into block units (4 × 4 pixels), and its brightness component isGThe average brightness, brightness variance, and each pixel quantized value are converted by the BTC method, and average values are generated for the color components, and the encoded data using these as codes will be described as an example, but the present invention is limited to this. Monochrome image data in the same wayGCoded data converted into average brightness, brightness variance, and pixel quantized values using the BTC method and using these as codes, and further, encoded data obtained by code-compressing color / monochrome image data using another method, generally multiple codes Needless to say, the present invention can be widely applied to fixed-length encoded data consisting of portions.
[0022]
[Encoding / Decoding]
  First, an example of color image data encoding / decoding used in the present embodiment will be described.
  FIG. 1 is a block diagram of a configuration example for compressing and encoding color image data. In the figure, 11 is a color conversion unit, 12 is a working buffer memory, 13 is a lightness encoding unit, 14 is a color difference Cr encoding unit, 15 is a color difference Cb encoding unit, and 16 is a memory device that stores encoded data. is there.
[0023]
  In the color conversion unit 11, Y (lightness), Cr, and Cb are applied to input color image data in which one pixel is R (red), G (green), and B (blue) by applying a conversion expression such as the following expression: Convert to (color difference) data.
    Y = 0.299R + 0.587G + 0.114B (1)
    Cr = 1 / (2 (1-0.299)) (R−Y) (2)
    Cb = 1 / (2 (1-0.114)) (BY) (3)
[0024]
  In the present embodiment, each of R, G, B, Y, Cr, and Cb data constituting one pixel is 8 bits (that is, quantization level 256). In the figure, for example, [7: 0] represents 8 bits of 0-7. The same applies to G, B, Y, and Cr / Cb.
[0025]
  In the buffer memory 12, Y (lightness) color-converted by the color converter 11.WhenCr,Cb (color difference) data is sequentially stored, and sequentially read out in predetermined block units (encoding units). In the present embodiment, one block is 4 × 4 = 16 pixels. Here, the position (i, j) of each 4 × 4 pixel in the block is represented by (00) to (33) (i = 0 to 3, j = 0 to 3). In the figure, for example, Y00[7: 0] is Y data (8 bits) of the pixel at the position (0, 0) in one block, Y33[7: 0] represents Y data (8 bits) of the pixel at the position (3, 3). Cr,The same applies to Cb data.
[0026]
  In the lightness coding unit 13, Y (lightness) data Y of 16 pixels per block is provided for each block.00[7: 0] to Y33From [7: 0]GApplying the BTC method, the average brightness value La [7: 0] (8 bits) of the 16 pixels in the block, the brightness dispersion value Ld[7: 0] (8 bits) and each quantization value φ of 16 pixels in the block00~ Φ33A code of (1 bit / pixel) is generated. Here, the average brightness value La [7: 0] is the brightness data Y of 16 pixels in the block.00[7: 0] to Y33An average value of [7: 0] is calculated and obtained by rounding to 8 bits. Value variance Ld[7: 0] represents the degree of lightness dispersion in the block, and Y00[7: 0] to Y33It is obtained by subtracting the minimum value from the maximum value in [7: 0]. Quantized value φ00~ Φ33Is Y with the average brightness value La as a threshold value.00[7: 0] to Y33Each of [7: 0] is obtained by binarizing.
[0027]
  In the chrominance Cr encoding unit 14, the chrominance data Cr of 16 pixels per block is provided for each block.00[7: 0] to Cr33From [7: 0], an average color difference value Cr (7: 0) (8 bits) of 16 pixels in the block is generated. Similarly, in the color difference Cr encoding unit 15, color difference data Cb of 16 pixels per block is provided for each block.00[7: 0] to Cb33From [7: 0], an average color difference value Cb [7: 0] (8 bits) of 16 pixels in the block is generated. Cr,The calculation of the average value of Cb is the same as in the case of La.
[0028]
  In the memory device 16, codes (φ) output from the lightness coding unit 13 and the color difference (Cr / Cb) coding units 14 and 15 in units of 4 × 4 pixel blocks.00~ Φ33, La [7: 0], Ld[7: 0], Cr [7: 0], Cb [7: 0]) are set as one record (48 bits), and the encoded data of the original color image data is sequentially stored.
[0029]
  2 and 3 show specific images of the GBTC encoding process in the lightness encoding unit 13. FIG. 2A shows each lightness value Y of 16 pixels per block before encoding.ij(I = 0-3, j = 0-3), and FIG. 2B shows La, Ld, φ after encoding obtained from thisijThe value is (i = 0-3, j = 0-3). The average brightness value La = 108 of 16 pixels is equal to each brightness value Y of 16 pixels in FIG.ijIs obtained by converting the average value = 108.4375 into an integer. The lightness variance value Ld = 56 is obtained as a value obtained by subtracting the minimum value = 80 from the maximum value = 136 among the lightness values of the 16 pixels in FIG. 16 pixel quantized value φijIs the brightness value Y of the corresponding pixel in FIG.ijIs obtained when La = 108 or less, and when La is greater than 108, 1 is obtained. FIG. 3 shows the distribution of the lightness values of 16 pixels in FIG.dRepresents the relationship.
[0030]
  FIG. 4 shows encoded data (φ) output in units of blocks from the lightness encoding unit 13 and the color difference (Cr / Cb) encoding units 14 and 15.ij, La, Ld, Cr, Cb). Since Y, Cr, and Cb of the original color image data are each 8 bits per pixel, in FIG. 4, as a result of encoding, a data amount of (8 + 8 + 8) × 16 = 384 bits per block of 16 pixels is obtained. It can be seen that the compression encoding is 48 bits and 1/8. Note that the encoded data of the monochrome image does not have a Cr / Cb code portion, and in the example of FIG.ij, La, Ld) only 32 bits.
[0031]
  FIG. 5 is a block diagram of a configuration example for decoding the encoded data of FIG. In the figure, 21 is a memory device, 22 is a lightness code inverse transform unit, 23 is a buffer memory, and 24 is a color inverse transform unit.
[0032]
  The memory device 21 corresponds to the memory device 16 of FIG. 1, and here, the encoded data of the bit configuration shown in FIG. 4 is stored per block. In the case of decoding, the encoded data stored in the memory device 21 is sequentially read, and the average color difference values Cr [7: 0] and Cb [7: 0] of 16 pixels in the block are stored in the buffer memory 23 in units of blocks. Although stored directly, the average brightness value La [7: 0] of the 16 pixels in the block, the brightness variance value Ld [7: 0], and the respective quantized values φ of the 16 pixels in the block00~ Φ33Is transmitted to the lightness code inverse transform unit 22.
[0033]
  In the lightness code inverse transform unit 22, La [7: 0], Ld [7: 0], and φ00~ Φ33Based on the above, each brightness value Y of 16 pixels in the block00[7: 0] to Y33[7: 0] is decoded. Specifically, φij= 0 pixel is YijIs La-Ld / 2 and φij= 1 pixel is YijIs La + Ld / 2.
[0034]
  In the buffer memory 23, the lightness data Y of 16 pixels in the block output from the lightness code inverse transform unit 22.00[7: 0] to Y33[7: 0] is stored in association with the previous average color difference data Cr [7: 0], Cb [7: 0].
[0035]
  In the color inverse conversion unit 24, each brightness data Y of 16 pixels in one block in the buffer memory 23.00[7: 0] to Y33[7: 0] and average color difference data Cr [7: 0] and Cb [7: 0] of 16 pixels in the block, respectively, Y [7: 0], Cr [7: 0] and Cb [ 7: 0] as a set, the following formula is applied, and R (red), G (green), B (blue) color image data R [7: 0], G [7: 0], Inversely converted to B [7: 0].
    R = Y + 2 (1−0.299) Cr (4)
    B = Y + 2 (1-0.114) Cb (5)
    G = Y + 2 (1−0.299R−0.114B) /0.587 (6)
[0036]
  Hereinafter, each example of the present invention will be described in detail. The original encoded data to be further code-compressed has the code configuration shown in FIG. La is the first code, LdIs the second code, φijIs the third code, Cr,Cb is the fourth code.
[0037]
[Example 1]
  If the encoded data is intended for a normal business document image, it can be said that the code having the lowest importance among the codes is a color difference (color part) code. In the case of a photograph, if the brightness information remains, the subjectTheCan be determined. Even if it is a character / graphics part, as long as there is a difference in brightness, the meaning of the document can be retained even if the color difference information is lost. The present embodiment is based on this idea.
[0038]
  FIG. 6 is a block diagram of the first embodiment, in which 31 indicates a memory device and 32 indicates a color difference code removing unit. The memory device 31 has already stored the encoded image data. In this embodiment, encoded data having the code configuration (48 bits) shown in FIG. 4 is stored per block. The chrominance code removing unit 32 is configured to output a chrominance code portion Cr in the encoded data,A process of deleting Cb is performed.
[0039]
  FIG. 7 is a processing flowchart of the color difference code removing unit 32. In the chrominance code removing unit 32, the encoded data (La,Ld, φij, Cr,Cb) is read sequentially (step 41), and the color difference code portions Cr [7: 0] and Cb [7: 0] are removed in units of one block (step 42), La [7: 0], Ld [7: 0], φ00~ Φ33Only the lightness code portion is rewritten in the memory device 31 (step 43). Thereafter, the processing is repeated until the processing of the processing target encoded data in the memory device 31 is completed (step 44).
[0040]
  FIG. 8 shows the code compression transition of the first embodiment. FIG. 8A shows the original encoded data of 48 bits shown in FIG. In the first embodiment, when there is a request for further code compression of the color image data compressed and encoded as shown in FIG. 8A, the color difference code portion Cr,Cb is removed. As a result, as shown in FIG. 8B, there are 32 bits per block, which is even smaller than in FIG. Since the GBTC inverse conversion is not performed again on the compression code of (a) and the conversion is not performed again, the code length can be easily shortened. If each code data is consolidated for each block (for example, as a record) and stored at consecutive addresses in the memory device, the code of the next block is sequentially shifted by the code length of the deleted color difference to obtain consecutive addresses. Can be freed up. Even if the code not to be deleted is not shifted, the address to be deleted may be released so that other data can be stored.
[0041]
  Decoding processing from the compression-encoded data in FIG. 8B may be performed with Cr = Cb = 0 in the previous equations (4), (5), and (6).
[0042]
[Example 2]
  In this embodiment, GBTC encoded data (La, Ld, φ) of only the lightness portion from which the color difference code portion is deleted in the first embodiment.ij) From La,Ld is removed and the lightness quantization value φijThis is the only sign. Lightness quantization value φijOutputs the re-quantized (re-encoded) lightness distribution Ld. This requantized lightness quantization value is expressed as φ ′ijI will call it. Note that GBTC encoded data of monochrome image data is originally La, Ld, φijTherefore, when code compression is further performed, the second embodiment is directly applied.
[0043]
  FIG. 9 is a block diagram of the second embodiment, in which 51 is a memory device, 52 is a lightness code requantization unit, and 53 is a φ ′ creation table. The memory device 51 has already accumulated image data that has been subjected to code compression. In this embodiment, GBTC encoded data of only the lightness code portion of the code configuration shown in FIG. 8B is accumulated per block. The lightness code requantization unit 52 calculates Lac from the GBTC encoded data of only the lightness code part.,While deleting Ld, the lightness quantization value φ ′ij(I = 0-3, j = 0-3).
[0044]
  FIG. 10 is a processing flowchart of the lightness code requantization unit 52. In the lightness code requantization unit 52, only GBTC encoded data (La, Ld, φ) stored in the memory device 51 is stored.ij) Is read (step 61), and its brightness variance Ld[7: 0] is compared with a predetermined threshold T (for example, T = 128) (step 62). If Ld ≧ T, the current lightness quantization value φ00~ Φ33As it is φ ′00~ Φ '33And La,Ld is removed (step 63), φ00~ Φ33= Φ ′00~ Φ '33Are rewritten to the memory device 51 (step 65). On the other hand, Ld <TIn this case, referring to the φ ′ creation table 53, φ ′00~ Φ '33As well as La,Ld is removed (step 64) and φ ′00~ Φ '33Are rewritten to the memory device 51 (step 65). Thereafter, the processing is repeated until all the processing of the encoded data to be processed in the memory device 51 is completed (step 66).
[0045]
  FIG. 11 shows the code compression transition of the second embodiment. FIG. 11A shows 32-bit GBTC encoded data compressed by applying the first embodiment as shown in FIG. 8B. When this is further compressed by applying the second embodiment, as shown in FIG. 11 (b), it becomes 16 bits per block, which is half that of FIG. 11 (a). Moreover, it becomes 1/3 from the original 48-bit encoded data in FIG. In the monochrome image data, the original GBTC-encoded data has the code configuration of FIG. 11A, and when the second embodiment is applied, similarly to FIG. 11B, it becomes half.
[0046]
  The decoding process from the encoded data in FIG.ij= 0 pixel is Yij= 0, φ 'ij= 1 pixel Yij= 255, Cr = Cb = 0. In this case, the decoded image is a complete binary image.
[0047]
  FIG. 12 shows an example of specific processing in steps 63 and 64 of FIG. 10, and FIG. 13 shows an example of the φ ′ creation table 53 used for the processing.
[0048]
  A block having a large lightness variance value Ld (Ld is equal to or greater than the threshold value T) has a large edge. This is, for example, an area where characters are written, so even if the image is binarized, the meaning of the image document is rarely lost. FIG. 12A shows an example. In this case, φij= Φ ′ijAnd
[0049]
  Meanwhile, figure12 (b) and (c) show the case where Ld is less than the threshold value T. Such a block is a region where there is no edge and is gentle, for example, a region where a photograph is placed. Therefore, even in a binary image, it can be said that image quality degradation is small if the gradation, that is, the average brightness value La is expressed by the number of black pixels in the block. Therefore, first, the number of black pixels in the block is determined by the table of FIG. 13 for each value of La. This black pixel count is φijIf the number of pixels is equal to 1, φijΦ ′ijAnd If they are different, φij= 1 forcibly match the number of black pixels. In the case of FIG. 12B, since La = 108, the number of black pixels in the block is set to 6 from the table of FIG. However, φij= 1 has 9 pixels, so φ for 3 pixelsij= 1 is changed to 0. Here, follow the raster order from the upper left pixel of the block,ijChange φ ′ijHave created. On the other hand, FIG.ijThis is an example of changing = 0 to 1.
[0050]
Example 3
  FIG. 14 is a block diagram of the third embodiment. In the figure, 70 is a memory device, 72 is a code compression device, and the code compression device 72 comprises a color difference code removal unit 73, a lightness code requantization unit 74, and a φ ′ creation table 75. That is, this is a combination of Example 1 and Example 2. FIG. 15 shows the transition of code compression in this embodiment.
[0051]
  First, the memory device 70 stores color image data compressed into encoded data of 48 bits per block (4 × 4 pixels) as shown in FIG. When it is necessary to further compress this image data, first, the color difference code removing unit 73 removes the 32-bit color difference code portion per block as shown in FIG. The code is compressed into a code (the code in FIG. 8B) and rewritten in the memory device 70. If this is insufficient and further compression is necessary, the lightness code requantization unit 74 then converts the GBTC code of FIG. 15B stored in the memory device 70 into the further FIG. ) Quantization value φ ′ having 16 bits per block as shown in FIG.ijThe code is compressed to the only code and rewritten in the memory device 70.
[0052]
  According to the third embodiment, the free capacity of the memory device that stores the encoded image data can be improved stepwise and adaptively. For example, when various kinds of various image data are stored in the memory device, the compression processing is made up to FIG. 15 (b) or continued to FIG. 15 (c) depending on the type of image data or the like. It can be used properly, for example, as in (a).
[0053]
  In monochrome document image data, the original encoded data is a GBTC code having only a lightness portion as shown in FIG. 15B. Therefore, when it is necessary to further compress the encoded data, The lightness code requantization unit 74 may be activated.
[0054]
Example 4
  The first to third embodiments are basically based on the assumption that the color difference code portion in the encoded data is removed. However, in the fourth embodiment, when further compression of the encoded data is required, First, this color difference code portion is reduced and replaced.
[0055]
  FIG. 16 is a block diagram of the fourth embodiment, in which 81 is a memory device, and 82 is a color difference code requantization unit. Memory device81Corresponds to the memory device 16 of FIG. 1 or the memory device 21 of FIG. 5 and stores image data of 48 bits of encoded data per block (4 × 4 pixels) as shown in FIG. Here, Cr and Cb are each 8 bits, and the quantization level is 255 (-127 to +127). The color difference code requantization unit 82 performs a process of reducing the number of bits by requantizing (recoding) the color difference code portions Cr and Cb in the encoded data. Here, it is assumed that the quantization is requantized to 7 levels, and the 16-bit color difference code portion of Cr [7: 0] and Cb [7: 0] is reduced to a total of 6 bits of C [5: 0].
[0056]
  FIG. 17 is a process flowchart of the color difference code requantization unit 82. The chrominance code requantization unit 82 sequentially reads out the encoded data stored in the memory device 81 (step 91), and the codes La [7: 0], Ld [7: 0], φ in units of one block.00~ Φ33, Cr [7: 0] and Cb [7: 0], the color difference code portions Cr [7: 0] and Cb [7: 0] are requantized, and both are combined into C [5: 0]. (Step 92), encoded data La [7: 0], Ld [7: 0], φ again00~ Φ33, C [5: 0], the data is rewritten in the memory device 81 (step 93). Thereafter, the processing is repeated until all the processing of the encoded data to be processed in the memory device 81 is completed (step 94). Here, the re-quantization process in step 92 can be most simply realized by dividing the values of Cr and Cb by a predetermined number (for example, 32) and rounding them to 3 bits. Further, it may be indexed by a requantization table. In this case, since the output value C is directly obtained corresponding to the input values of Cr and Cb, division and rounding can be omitted.
[0057]
  FIG. 18 shows the transition of code compression when this embodiment is applied. FIG. 18A shows the original encoded data of 48 bits per block shown in FIG. When this embodiment 4 is applied, this encoded data becomes 38 bits per block as shown in FIG. The code in FIG. 18B is not subjected to a reverse GBTC conversion to the code compression in FIG. 18A, and is not converted again, so that the code length can be easily shortened. If each code is fixed for each block and stored at consecutive addresses in the memory device, the code of the next block is shifted sequentially by the code length of the reduced color difference to make the consecutive address free space. Can do. Even if the code not to be deleted is not shifted, the address to be deleted may be released so that other data can be stored.
[0058]
  The decoding process from the encoded data in FIG. 18B is performed by using the first 3 bits of C [5: 0] as Cr and the latter 3 bits as Cb in equations (4), (5), and (6). Just do it.
[0059]
  FIG. 19 shows an image of color difference code requantization processing according to this embodiment. In the figure, thin vertical and horizontal lines represent threshold values for requantization, and by converting the values that have entered each region surrounded by the quantization threshold values into respective quantization representative values indicated by black circles, Cr, It shows that Cb is re-quantized and re-encoded to reduce the code. Here, in FIG. 19A, the quantization levels 255 (-127 to +127) of Cr and Cb are requantized and re-encoded to 7 levels (for example, each of Cr and Cb is divided by 32 and rounded). ), A code of 16 bits in total with Cr and Cb is reduced to a total of 6 bits.
[0060]
  The requantization method is not limited to this. For example, since the color difference space of Cr and Cb is a visually non-uniform space, it is possible to visually reduce more effectively by setting the quantization threshold line non-uniformly. This can be easily realized by using a table. FIG. 19 shows an example of scalar quantization for Cr and Cb. For example, two-dimensional vector quantization in which adjacent regions are integrated and one quantization representative value is assigned is more effective. It becomes reduction.
[0061]
  By the way, actual Cr and Cb may not exist in the entire range of FIG. A region surrounded by an ellipse in FIG. 19 schematically represents the range. Therefore, it is more effective that the quantized representative value is placed only within this range. However, this range moves with the brightness value. Wide in medium brightness and narrow in shadow and highlight areas. Therefore, La is used as the brightness value, and the quantization threshold value and the quantization representative value are moved according to the value of La. FIG. 19B shows that the quantization is performed in a narrower range depending on the difference in brightness value. FIG. 19B shows an example in which Cr and Cb are each divided by 16.
[0062]
  In FIG. 20, the color difference requantization method as shown in FIG. 19A is applied to the intermediate brightness, and the color difference requantization method as shown in FIG. 19B is applied to the shadow / highlight portion. The process flowchart of the color difference code requantization part 82 in the case is shown. The chrominance code requantization unit 82 reads the encoded data from the memory device 81 (step 101), and 1 block of codes La [7: 0], Ld [7: 0], φ00~ Φ33, Cr [7: 0] and Cb [7: 0] are determined, it is determined whether the value of the average brightness code La [7: 0] is within the threshold values T1 and T2 (step 102). In the case of T1 ≦ La <T2 (intermediate lightness), the color difference codes Cr [7: 0] and Cb [7: 0] are requantized and recoded by applying FIG. 19A (Cr and Cb are 32). And round them together) to obtain C [5: 0] (step 103). On the other hand, when La <T1 (shadow) or La> T2 (highlight), Cr [7: 0] and Cb [7: 0] are requantized and recoded by applying FIG. 19B. (Cr, Cb is divided by 16 and rounded), and C5: 0] (step 104). The encoded data La [7: 0], Ld [7: 0], φ00~ Φ33, C [5: 0] are rewritten in the memory device 81 (step 105). Thereafter, the processing is repeated until all the processing target data in the memory device 81 is processed (step 106).
[0063]
Example 5
  This is a combination of Example 4 and Example 1. That is, according to the fourth embodiment, first, the original encoded data La [7: 0], Ld [7: 0], φ00~ Φ33, Cr [7: 0] and Cb [7: 0], the color difference code portions Cr [7: 0] and Cb [7: 0] are reduced and replaced with C [5: 0], and the encoded data La [7: 0], Ld [7: 0], φ00~ Φ33, C [5: 0]. If this is still insufficient, then C [5: 0] that has been reduced and replaced is completely removed, and the encoded data is converted into La [7: 0], Ld [7: 0], φ00~ Φ33This is a code for only the lightness part of. The configuration and the code transition state of the fifth embodiment will be described together in the sixth embodiment, and will be omitted here.
[0064]
Example 6
  FIG. 21 is a block diagram of the sixth embodiment. In the figure, 110 is a memory device, 120 is a code compression device, and the code compression device 120 includes a color difference code requantization unit 121, a color difference code removal unit 122, a lightness code requantization unit 123, and a φ ′ creation table 124. Become. That is, the sixth embodiment is configured by combining the fifth embodiment and the second embodiment. In the drawing, the configurations of the color difference code requantization unit 121 and the color difference code removal unit 122 correspond to the fifth embodiment. The code compression transition in the sixth embodiment is shown in FIG.
[0065]
  In the memory device 110, first, image data compressed into 48-bit encoded data per block (4 × 4 pixels) as shown in FIG. When it is necessary to further compress the image data in the memory device 110, first, the color difference code requantization unit 121 performs color difference code Cr.,Cb total 16 bits are re-quantized (re-encoded) to color difference code C total 6 bits, and compressed to 38 bits of encoded data per block as shown in FIG. Rewrite. When it is necessary to further compress the document image data in the code format of FIG. 22B rewritten and stored in the memory device 110, the color difference code removing unit 122 next performs the color difference code C6 bit. 22 is completely removed, and as shown in FIG. 22C, the data is compressed into a GBTC code having only a lightness code portion of 32 bits per block and rewritten in the memory device 110. Then, when it is necessary to further compress the document image data in the code format of FIG. 22 (c) rewritten and accumulated in the memory device 110, the brightness code requantization unit 123 then This time La of the lightness code part,Remove Ld total 16 bits and φijIs re-quantized (re-encoded), and as shown in FIG. 22 (d), the lightness re-quantized value φ ′ of 16 bits per blockijThe code is compressed to the only code (binarized code) and rewritten in the memory device 110.
[0066]
  According to the present embodiment, the free capacity of the memory device for storing the image data can be improved stepwise and adaptively as compared with the third embodiment.
[0067]
[Application example]
  Here, as an example, an example of application to an image processing apparatus such as a filing system that handles a large amount of document image data is shown. Of course, the code compression method of the present invention can be applied to various other image processing apparatuses and systems. It is.
[0068]
  FIG. 23 is a block diagram showing an embodiment of an image processing apparatus such as a document image filing system to which the code compression method of the present invention is applied. The image processing apparatus includes a display device 200, a keyboard 210, a mouse (pointing device) 220, a scanner 230, a printer 240, a document file 250, a processing control device (CPU) 260, an encoding / decoding processing device 270, a code compression device 280, The document image database 290, the secondary storage device 300, and a bus 310 for connecting them are included.
[0069]
  The CPU 260 controls each unit and registers / searches the document image database 280. The encoding / decoding processing device 270 is configured as described with reference to FIGS. The code compression apparatus 280 may have any of the configurations described in the first to sixth embodiments. Here, the configuration of the best mode of the sixth embodiment (see FIG.21). As will be described later, the CPU 260 controls which code compression unit of the code compression device 280 is operated. The code compression device 280 may be detachable from the CPU 260, for example, as a board (board) structure, or may be built in from the beginning together with the code / decoding processing device 270.
[0070]
  The image data of the original document is read by the image scanner 230 and transferred to the CPU 260 as image data. The existing image data of the floppy disk, MO, and other document files 250 are directly transferred to the CPU 260. Although omitted in FIG. 1, the image data may be received from a remote terminal through a communication line, and similarly transferred to the CPU 260. The CPU 260 applies preprocessing such as editing to the input image data if necessary and passes it to the encoding / decoding processing device 270. The encoding / decoding processing device 270 encodes the image data and stores it in the document image database 290. In this way, the database 290 accumulates a large amount of encoded data of document image data for each document.
[0071]
  The user inputs a data search request for the document image database 290 using the keyboard 210 or the like. When there is a data search request, the CPU 260 reads the encoded data of the corresponding document from the document image database 280, passes it to the encoding / decoding processing device 270, decodes it by the encoding / decoding processing device 270, and displays it on the display device 200. . When there is a print request, the printer 240 prints out.
[0072]
  The above is the general operation of this type of image processing apparatus. Hereinafter, characteristic operations of the image processing apparatus equipped with the code compression apparatus 280 will be described.
  Here, in the document image database 290, the color difference quantization value φ obtained by encoding the document image data in one block unit (4 × 4 pixels), and the brightness portion is encoded by the GBTC method as shown in FIGS. 4 and 22A.ij16 bits, average brightness value La8 bits, brightness variance value Ld8-bit, color difference average value Cr for color components,It is assumed that encoded data of 48 bits in total of 8 bits for each Cb is accumulated.
[0073]
  The CPU 260 manages the amount of data stored in the document image database 290, and displays a document list of image data stored in the document image database 290 on the display device 200 when the allowable capacity is exceeded. The user selects one or a plurality of document image data that may be further compressed from the document list display using the keyboard 210 or the mouse 220, and requests code compression. Here, when the document image data is a normal business document image, the code having the lowest importance among the codes is the code of the color difference, and can retain the meaning of the document even if the color difference information is somewhat lost. .
[0074]
  Upon receiving the code compression request, the CPU 260 first activates the color difference code requantization unit 281 in the code compression device 280 to instruct code compression of the selected document image data. The color difference requantization unit 281 reads the instructed document image data from the database 290, code-compresses the encoded data as shown in FIG. 22A as shown in FIG. 22B, and rewrites it into the database 290. . As a result, the document image data is reduced from 48 bits to 38 bits per block, and a margin is generated in the database 290 accordingly. In the document image database 290, the document image data is managed as color difference requantized data.
[0075]
  If the accumulated data amount in the document image database 290 still exceeds the allowable capacity even after the code compression process, or if the accumulated data amount again exceeds the allowable capacity after registration for a while, the CPU 260 again Is inquired about document image data to be code-compressed. As a result, when the user selects new document image data, the CPU 260 activates the color difference code requantization unit 281 in the code compression device 280 again. On the other hand, when selecting the document image data that has undergone color difference requantization, the CPU 260 then activates the color difference code removal unit 282 to instruct the code compression of the document image data that has undergone color difference requantization. The color difference code removing unit 282 reads the instructed document image data from the database 290, further code-compresses the document image data that has been code-compressed as shown in FIG. 22B, and the database 290 as shown in FIG. Rewrite to. As a result, the document image data is reduced from 38 bits to 32 bits per block. The document image database 290 manages the document image data as color difference code deleted data.
[0076]
  Thereafter, when the same operation is repeated and the color difference code deleted data is selected, the CPU 260 next activates the lightness code requantization unit 283 in the code compression device 280, and the color difference code deleted image data is deleted. Instructs code compression. The lightness code requantization unit 283 reads the instructed document image data from the database 290, and further code-compresses the code-compressed document image data as shown in FIG. 22C, as shown in FIG. Rewrite to database 280. As a result, the document image data is reduced to 16 bits per block. The document image database 290 manages the document image data as color difference code deleted / lightness requantized data.
[0077]
  FIG. 24 shows a control flowchart of the CPU 260 for the above operation. The monochrome document image data is originally stored in the database 290 in the code format shown in FIG. Therefore, when the monochrome document data is selected as the code compression target, the CPU 260 may activate the lightness requantization unit 283 in the code compression device 280 from the beginning.
[0078]
  In the above operation, whenever the usage state of the document image database 290 exceeds the allowable capacity, the CPU 260 inquires the user, and based on the code compression state of the selected document image data, the color difference code requantization in the code compression device 280 is performed. The CPU 260 activates any one of the conversion unit 281, the color difference code removal unit 282, and the lightness code requantization unit 283, but the CPU 260 selects the selected document image until the use data amount of the document image database 290 becomes less than the allowable capacity. For data, the color difference code requantization unit 281, the color difference code removal unit 282, and the lightness code requantization unit 283 in the code compression device 280 can be automatically started in order. FIG. 25 shows a control flowchart of the CPU 260 in this case. Whether the interactive format as shown in FIG. 24 or the automatic activation as shown in FIG. 25 is used may be instructed by the user in advance at the time of the first selection, for example.
[0079]
  24 and 25, the document image database 290 generally includes the document image data originally encoded by the encoding / decoding processing device 270, the code compression units 281, 282, and 283 of the code compression device 280. Further, code-compressed color difference code requantized document image data, color difference code deleted document image data, and color difference code deleted / lightness code requantized document image data are mixed.
[0080]
  At the time of retrieval, in the decoding process of the encoding / decoding processing device 270, the original encoded document image data may be decoded as shown in FIG. On the other hand, the color difference code requantized document image data is decoded with the first half of the requantized color difference code C as Cr and the second half as Cb in equations (4), (5), and (6). In this case, the color information is degenerated but not lost at all. The document image data from which the color difference code has been deleted is decoded as Cr = 0 and Cb = 0. This is the same as the code of the monochrome document image data, and the color information is lost, but the meaning of the document can be retained in a normal business document image. The color difference code deleted / lightness code requantized document image data has a lightness requantization value φ ′ij= 0 pixel is Yij= 0 (white), φ 'ij= 1 pixel Yij= 256 (black), Cr = 0, Cb = 0. In this case, the decoded image is a complete binary image. Depending on the document, the meaning of the document can still be retained.
[0081]
  Next, use of the secondary storage device 300 of FIG. 23 will be described. When the user selects document image data to be code-compressed and requests the CPU 260 to perform code compression processing, if the user wants to leave the original encoded data of the document image, the user instructs the CPU 260 to that effect. When the CPU 260 receives this instruction, the encoded document image data is read from the document image database 290 and stored in the secondary storage device 300 prior to the activation of the code compression device 280. As a result, when the decoded image from the code-compressed data in the document image database 290 is insufficient at the time of search, the original encoded data in the secondary storage device 300 is read and decoded by the encoding / decoding processing device 270. Thus, an original image can be obtained.
[0082]
〔recoding media〕
  The code compression method of the present invention can be provided by being recorded on a computer-readable recording medium such as a floppy disk, a CD-ROM, or a memory card as a computer-executable program. The image processing apparatus as shown in FIG. 23 is constructed using the hardware and software resources of a so-called computer system. In this case, the code compression apparatus 280 is installed by installing the program of the recording medium. Has a predetermined function. Note that the program for the encoding / decoding processing device 270 may be recorded together on the recording medium.
[0083]
【The invention's effect】
  According to the image compression method, the image compression apparatus, and the image processing apparatus of the present invention, the following effects can be obtained.
(1) Since only a part of information that is not important for image quality is deleted or reduced and replaced, it is possible to easily realize a process for improving the compression rate for encoded data.
(2) Since the code length per block is always constant even after the compression rate improvement processing, the ease of processing / editing with respect to the compressed code is not lost.
(3) By discarding information that is not important for image quality in order, a high-quality image can be restored at each stage. Since multistage processing is adaptive processing, high image quality according to various image characteristics can be obtained.
(4) Since the code length per block in each stage is always constant, as described in (2), the compression code can be easily processed and edited, and the compression rate multi-stage processing itself is also simple. It has become a thing.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration example of an encoding mechanism that generates encoded data used in an embodiment of the present invention.
FIG. 2 is a diagram illustrating a specific example of encoding processing.
3 is a diagram showing a distribution of each pixel value in FIG. 2. FIG.
FIG. 4 is a diagram showing a bit configuration of encoded data used in an embodiment of the present invention.
FIG. 5 is a block diagram illustrating a configuration example of a decoding mechanism that decodes encoded data used in an embodiment of the present invention.
FIG. 6 is a block diagram of a first embodiment of code compression according to the present invention.
FIG. 7 is a process flowchart of the first embodiment of the present invention.
FIG. 8 is a diagram illustrating a transition of code compression according to the first embodiment of this invention.
FIG. 9 is a block diagram of a second embodiment of code compression according to the present invention.
FIG. 10 is a process flowchart of the second embodiment of the present invention.
FIG. 11 is a diagram illustrating a transition of code compression according to the second exemplary embodiment of the present invention.
FIG. 12 is a diagram showing a specific processing example of the second exemplary embodiment of the present invention.
FIG. 13 is a diagram showing an example of a lightness requantized value creation table used in the second embodiment of the present invention.
FIG. 14 is a block diagram of a third embodiment of code compression according to the present invention.
FIG. 15 is a diagram illustrating a transition of code compression according to the third exemplary embodiment of the present invention.
FIG. 16 is a block diagram of a fourth embodiment of code compression according to the present invention.
FIG. 17 is a process flowchart of the fourth embodiment of the present invention.
FIG. 18 is a diagram illustrating a transition of code compression according to the fourth exemplary embodiment of the present invention.
FIG. 19 is a conceptual diagram of code compression according to a fourth embodiment of the present invention.
FIG. 20 is another processing flowchart of the fourth embodiment of the present invention.
FIG. 21 is a block diagram of a fifth embodiment of code compression according to the present invention.
FIG. 22 is a diagram illustrating a transition of code compression according to the fifth exemplary embodiment of the present invention.
FIG. 23 is an overall block diagram of a document image filing system according to an application example of the present invention.
FIG. 24 is a flowchart for explaining an operation example of the document image filing system of FIG.
FIG. 25 is a flowchart for explaining another example of the operation of the document image filing system of FIG.
[Explanation of symbols]
  200 Display device
  210 keyboard
  220 mice
  230 Scanner
  240 Printer
  250 document files
  260 Processing control unit (CPU)
  270 encoding / decoding processing device
  280 Code compression device
  281 Color difference code requantization unit
  282 Color difference code removal unit
  283 Lightness Code Requantizer
  290 Document Image Database
  300 Secondary storage

Claims (8)

カラー画像データを明度成分データと色差成分データとに変換する色変換手段と、Color conversion means for converting color image data into lightness component data and color difference component data;
前記明度成分データを所定のブロック単位に固定長圧縮し、平均明度値、明度分散値及び明度量子化値の符号を生成する明度符号化手段と、  Lightness encoding means for compressing the lightness component data in a predetermined block unit and generating codes of average lightness value, lightness variance value, and lightness quantization value;
前記色差成分データを前記ブロック単位に固定長圧縮し、平均色差値の符号を生成する色差符号化手段と、  Color difference encoding means for generating a code of an average color difference value by compressing the color difference component data at a fixed length in block units;
前記平均明度値、明度分散値、明度量子化値及び平均色差値の符号からなる符号化データを蓄積する蓄積手段と、  Accumulation means for accumulating encoded data composed of codes of the average lightness value, the lightness variance value, the lightness quantization value, and the average color difference value;
前記蓄積手段に蓄積されている前記平均色差値の符号を前記ブロック単位に除去する色差符号除去手段と、  Color difference code removing means for removing the code of the average color difference value stored in the storage means in units of blocks;
前記蓄積手段に蓄積されている前記明度平均値及び明度分散値の符号を前記ブロック単位に除去する明度符号再量子化手段と、  Lightness code requantization means for removing the code of the lightness average value and lightness variance value stored in the storage means for each block;
を有することを特徴とする画像処理装置。An image processing apparatus comprising:
前記明度符号再量子化手段は、明度量子化値の符号中の1の個数と平均明度値とを対応付けたテーブルを備え、The lightness code requantization means includes a table in which the number of 1s in the code of the lightness quantization value and the average lightness value are associated with each other.
前記明度符号再量子化手段は、前記蓄積手段に蓄積されている前記平均明度値、明度分散値及び明度量子化値の符号を読み出し、前記ブロック単位に明度分散値を所定の閾値と比較し、明度分散値が前記閾値未満であると判定したブロックについて、前記テーブルより、当該ブロックの平均明度値に対応した1の個数を読み出し、当該個数に等しい個数の1を含む明度量子化値の符号を再作成する、ことを特徴とする請求項1記載の画像処理装置。  The lightness code requantization means reads the sign of the average lightness value, lightness variance value, and lightness quantization value accumulated in the accumulation means, and compares the lightness variance value for each block with a predetermined threshold value, For the block for which the brightness variance value is determined to be less than the threshold, the number of 1 corresponding to the average brightness value of the block is read from the table, and the sign of the brightness quantized value including the number 1 equal to the number is read. The image processing apparatus according to claim 1, wherein the image processing apparatus is recreated.
前記蓄積手段に蓄積されている前記平均色差値の符号に対し、そのビット数を縮小する再量子化を前記ブロック単位に行う色差符号再量子化手段をさらに有することを特徴とする請求項1又は2記載の画像処理装置。The color difference code requantization means for performing requantization for reducing the number of bits for the code of the average color difference value accumulated in the accumulation means for each block. 2. The image processing apparatus according to 2. 前記色差符号再量子化手段は、前記ブロック単位に平均明度値が所定の明度範囲内であるか否かの判定を行い、その判定結果に応じて前記平均色差値の符号に対する再量子化の方法を変更することを特徴とする請求項3記載の画像処理装置。The color difference code requantization means determines whether or not an average brightness value is within a predetermined brightness range for each block, and requantizes a code of the average color difference value according to the determination result The image processing apparatus according to claim 3, wherein: カラー画像データを明度成分データと色差成分データとに変換する色変換工程と、A color conversion step for converting color image data into lightness component data and color difference component data;
前記明度成分データを所定のブロック単位に固定長圧縮し、平均明度値、明度分散値及び明度量子化値の符号を生成する明度符号化工程と、  A lightness coding step of generating a code of an average lightness value, a lightness variance value, and a lightness quantization value by compressing the lightness component data in a predetermined block unit;
前記色差成分データを前記ブロック単位に固定長圧縮し、平均色差値の符号を生成する色差符号化工程と、  A color difference encoding step for generating a code of an average color difference value by compressing the color difference component data in a fixed length in units of blocks; and
前記平均明度値、明度分散値、明度量子化値及び平均色差値の符号からなる符号化データを蓄積手段に蓄積する蓄積工程と、  An accumulating step of accumulating in the accumulating means encoded data consisting of codes of the average brightness value, the brightness variance value, the brightness quantized value, and the average color difference value;
前記蓄積手段に蓄積されている前記平均色差値の符号を前記ブロック単位に除去する色差符号除去工程と、  A color-difference code removing step of removing the code of the average color-difference value stored in the storage unit in units of blocks;
前記蓄積手段に蓄積されている前記明度平均値及び明度分散値の符号を前記ブロック単位に除去する明度符号再量子化工程と、  A lightness code requantization step of removing the code of the lightness average value and lightness dispersion value stored in the storage means in units of blocks;
を有することを特徴とする画像処理方法。An image processing method comprising:
前記明度符号再量子化工程は、前記蓄積手段に蓄積されている前記平均明度値、明度分散値及び明度量子化値の符号を読み出し、前記ブロック単位に明度分散値を所定の閾値と比較し、明度分散値が前記閾値未満であると判定したブロックについて、明度量子化値の符号中の1の個数と平均明度値とを対応つけたテーブルより、当該ブロックの平均明度値に対応した1の個数を読み出し、当該個数に等しい個数の1を含む明度量子化値の符号を再作成する、ことを特徴とする請求項5記載の画像処理方法。The lightness code requantization step reads out the sign of the average lightness value, lightness variance value, and lightness quantization value accumulated in the accumulation means, and compares the lightness variance value with a predetermined threshold value for each block, For a block determined to have a lightness variance value less than the threshold, the number of 1s corresponding to the average lightness value of the block from a table in which the number of 1s in the code of the lightness quantization value and the average lightness value are associated The image processing method according to claim 5, further comprising: re-creating a code of a lightness quantization value including a number of 1 equal to the number. 前記蓄積手段に蓄積されている前記平均色差値の符号に対し、そのビFor the sign of the average color difference value stored in the storage means, ット数を縮小する再量子化を前記ブロック単位に行う色差符号再量子化工程をさらに有することを特徴とする請求項5又は6記載の画像処理方法。7. The image processing method according to claim 5, further comprising a color difference code requantization step of performing requantization for reducing the number of dots in units of blocks. 前記色差符号再量子化工程は、前記ブロック単位に平均明度値が所定の明度範囲内であるか否かの判定を行い、その判定結果に応じて前記平均色差値の符号に対する再量子化の方法を変更することを特徴とする請求項7記載の画像処理方法。The color difference code requantization step determines whether or not an average brightness value is within a predetermined brightness range for each block, and a method of requantizing the code of the average color difference value according to the determination result The image processing method according to claim 7, wherein:
JP2000039535A 2000-02-17 2000-02-17 Image processing apparatus and image processing method Expired - Fee Related JP3998115B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000039535A JP3998115B2 (en) 2000-02-17 2000-02-17 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000039535A JP3998115B2 (en) 2000-02-17 2000-02-17 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2001230934A JP2001230934A (en) 2001-08-24
JP3998115B2 true JP3998115B2 (en) 2007-10-24

Family

ID=18563082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000039535A Expired - Fee Related JP3998115B2 (en) 2000-02-17 2000-02-17 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP3998115B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4822340B2 (en) * 2006-09-12 2011-11-24 学校法人神奈川大学 Color image compression encoding method, decoding method, color image compression encoding device, and decoding device
JP5173867B2 (en) * 2008-05-13 2013-04-03 キヤノン株式会社 Image encoding apparatus, image decoding apparatus, and control method thereof

Also Published As

Publication number Publication date
JP2001230934A (en) 2001-08-24

Similar Documents

Publication Publication Date Title
US7257264B2 (en) Image processing apparatus and method for compression-encoding image area information
JP3902968B2 (en) Image processing apparatus, control method therefor, computer program, and storage medium
EP1271926B1 (en) Image processing method, apparatus and computer program for compression-encoding
US7769237B2 (en) Dynamic, locally-adaptive, lossless palettization of color and grayscale images
CN1756296B (en) Image processing apparatus and image processing method
US5956467A (en) Encoding color image data for multipass color printers
US8553301B2 (en) Image processing apparatus, method, and program product to perform color-reduction processing for a block
US7627181B2 (en) Image encoding apparatus and method, computer program, and computer-readable storage medium
US7454070B2 (en) Image encoding apparatus and method, computer program, and computer-readable storage medium
JP3843581B2 (en) Image encoding device, image decoding device, image processing device, image encoding method, image decoding method, and image processing method
US6950471B2 (en) Coding device, coding method and storage medium
JPH1051642A (en) Image processor
JPH08116447A (en) Coder for image signal
JP4065522B2 (en) Image processing apparatus and control method thereof
JP3902953B2 (en) Image processing apparatus and method, computer program, and storage medium
JP3984813B2 (en) Image processing apparatus and method, computer program, and storage medium
JP3998115B2 (en) Image processing apparatus and image processing method
JP3902954B2 (en) Image processing apparatus and method, computer program, and storage medium
JP3227181B2 (en) Image processing device
JP3840076B2 (en) Image processing apparatus and method, computer program, and storage medium
JP3952981B2 (en) Image processing device
JP3907505B2 (en) Block truncation coding apparatus and method
JP4195624B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, program, and storage medium
JPH0937081A (en) Device and method for processing picture
JP3596423B2 (en) Image compression method and apparatus, recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041025

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061004

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061201

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070801

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070802

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

Free format text: PAYMENT UNTIL: 20100817

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100817

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110817

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110817

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120817

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120817

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130817

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees