JP3890250B2 - Image coding apparatus and image coding method - Google Patents
Image coding apparatus and image coding method Download PDFInfo
- Publication number
- JP3890250B2 JP3890250B2 JP2002114773A JP2002114773A JP3890250B2 JP 3890250 B2 JP3890250 B2 JP 3890250B2 JP 2002114773 A JP2002114773 A JP 2002114773A JP 2002114773 A JP2002114773 A JP 2002114773A JP 3890250 B2 JP3890250 B2 JP 3890250B2
- Authority
- JP
- Japan
- Prior art keywords
- color
- image
- color information
- information
- data indicating
- 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
Links
Images
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
Description
【0001】
【発明が属する技術分野】
本発明は、画像を符号化する画像符号化装置、及び画像符号化方法に関するものでる。
【0002】
【従来の技術】
近年、カラープリンタ、カラースキャナの普及により、カラー化された文書が増え、これをスキャンして取り込み、電子ファイルとして保存したり、インターネット等を介して送付する機会が増えている。しかしフルカラーデータでは記憶装置や回線の付加が大きいため何らかの方法で小さくする必要がある。
【0003】
従来、カラー画像を圧縮する方法として誤差拡散等で擬似階調を持った二値画像にして圧縮する方法、JPEG形式で圧縮する方法、8ビット等のパレットカラーに変換を行いZIP圧縮やLZW圧縮をする方法等があった。
【0004】
【発明が解決しようとする課題】
しかしながら擬似階調二値画像ではサイズは小さくなるがカラーは失われてしまう。JPEG形式を選択した場合はJPEG特有のモスキートノイズのため圧縮サイズと文字品位のトレードオフが生ずる。パレットカラーに変換してZIP圧縮やLZW圧縮をする方法は、カラー文書画像の大半の色分布は離散的ではなく局所的であるため、その画像を多ビットで保持すると元々効率が悪いためそれを圧縮した結果も効率が悪くなる。
【0005】
本発明は以上の問題に鑑みてなされたものであり、圧縮効率の向上と共に、再現性の良い圧縮を行うことを目的とする。
【0006】
【課題を解決するための手段】
本発明の目的を達成するために、例えば本発明の画像符号化方法は以下の構成を備える。
【0007】
すなわち、カラー画像を符号化する画像符号化方法であって、
カラー画像を表すビット数を減らすことにより当該カラー画像に対する減色処理を行う減色工程と、
前記減色されたカラー画像に含まれる色毎に、その色を表すカラー情報を生成するカラー情報生成工程と、
前記減色されたカラー画像に含まれる色毎に、その色に対応するインデックスカラー画像を生成するインデックス画像生成工程と、
各カラー情報の色重心の値を参照し、参照した値が近いカラー情報同士を統合する第1更新工程と、
各カラー情報を表す輝度と色差に基づいて、近い色を示すカラー情報同士を統合する第2更新工程と、
前記第1及び第2の更新工程での統合により得られた各カラー情報の色に対応する二値画像を、前記カラーインデックス画像を用いて生成し、圧縮する圧縮工程と、
前記第1及び第2の更新工程での統合により得られた各カラー情報と、前記圧縮工程で得られた二値圧縮画像とを出力する出力工程と
を備えることを特徴とする。
本発明の目的を達成するために、例えば本発明の画像符号化装置は以下の構成を備える。
すなわち、カラー画像を符号化する画像符号化装置であって、
カラー画像を表すビット数を減らすことにより当該カラー画像に対する減色処理を行う減色手段と、
前記減色されたカラー画像に含まれる色毎に、その色を表すカラー情報を生成するカラー情報生成手段と、
前記減色されたカラー画像に含まれる色毎に、その色に対応するインデックスカラー画像を生成するインデックス画像生成手段と、
各カラー情報の色重心の値を参照し、参照した値が近いカラー情報同士を統合する第1更新手段と、
各カラー情報を表す輝度と色差に基づいて、近い色を示すカラー情報同士を統合する第2更新手段と、
前記第1及び第2の更新手段による統合により得られた各カラー情報の色に対応する二値画像を、前記カラーインデックス画像を用いて生成し、圧縮する圧縮手段と、
前記第1及び第2の更新手段による統合により得られた各カラー情報と、前記圧縮手段により得られた二値圧縮画像とを出力する出力手段と
を備えることを特徴とする。
【0008】
本発明の目的を達成するために、例えば本発明の画像符号化装置は以下の構成を備える。
【0009】
すなわち、画像を符号化する画像符号化装置であって、
元画像に対して減色処理を施し、減色画像を生成する減色処理手段と、
前記減色画像において色を有する領域に関するカラー情報を、前記減色画像に含まれる色毎に生成するカラー情報生成手段と、
前記減色画像において色を有する領域のインデックスカラー画像を、前記減色画像に含まれる色毎に生成する部分画像生成手段と、
前記カラー情報生成手段によるカラー情報において、比較的近い色を示すカラー情報を更新し、統合する第1の更新手段と、
前記第1の更新手段により更新されたカラー情報を参照し、比較的近い輝度色差を示すカラー情報を更新し、統合する第2の更新手段と、
前記第1の更新手段、前記第2の更新手段による統合に応じて、対応する統合先と統合元のインデックスカラー画像の論理和画像を求め、更に当該論理和画像の二値画像を生成して圧縮を行い、当該圧縮データと当該圧縮データに対応する前記第2の更新手段により更新されたカラー情報とで構成される二値画像圧縮データを生成する圧縮手段と、
最も画素数の多い前記領域のカラー情報に含まれる色を示すデータと、前記圧縮手段による前記二値画像圧縮データとを含む出力データを生成する圧縮データ生成手段と
を備えることを特徴とする。
本発明の目的を達成するために、例えば本発明の画像符号化方法は以下の構成を備える。
すなわち、画像を符号化する画像符号化方法であって、
元画像に対して減色処理を施し、減色画像を生成する減色処理工程と、
前記減色画像において色を有する領域に関するカラー情報を、前記減色画像に含まれる色毎に生成するカラー情報生成工程と、
前記減色画像において色を有する領域のカラーインデックス画像を、前記減色画像に含まれる色毎に生成する部分画像生成工程と、
前記カラー情報生成工程によるカラー情報において、比較的近い色を示すカラー情報を更新し、統合する第1の更新工程と、
前記第1の更新工程で更新されたカラー情報を参照し、比較的近い輝度色差を示すカラー情報を更新し、統合する第2の更新工程と、
前記第1の更新工程、前記第2の更新工程による統合に応じて、対応する統合先と統合元のカラーインデックス画像の論理和画像を求め、更に当該論理和画像の二値画像を生成して圧縮を行い、当該圧縮データと当該圧縮データに対応する前記第2の更新工程で更新されたカラー情報とで構成される二値画像圧縮データを生成する圧縮工程と、
最も画素数の多い前記領域のカラー情報に含まれる色を示すデータと、前記圧縮工程による前記二値画像圧縮データとを含む出力データを生成する圧縮データ生成工程と
を備えることを特徴とする。
【0010】
【発明の実施の形態】
以下添付図面を参照して、本発明を好適な実施形態に従って詳細に説明する。
【0011】
図1に本実施形態における画像符号化装置の機能構成と共に、各部において処理される、もしくは処理後のデータを示す。101は元画像である。102は減色処理部で、元画像101に対して予め決められた色数に単純減色処理を行い、インデックス化する(減色された夫々の色のみを含む画像(後述のインデックスカラー画像104)を生成し、各インデックスカラー画像に対してインデックスを付ける)。103はカラー情報で、減色処理部102で生成されるインデックスカラー画像が含む色(色重心)を示すデータと、インデックスカラー画像の画素数を示すデータと、元画像におけるインデックスカラー画像の位置(分布範囲)を示すデータとで構成されており、インデックスカラー画像毎に減色処理部102で生成される。
【0012】
なお、分布範囲のデータは、元画像におけるインデックスカラー画像の左上隅の座標、右下隅の座標のデータを含むデータとする。またカラー情報103は対応するインデックスカラー画像と関連づけられているものとする。例えば対応するインデックスカラー画像に付けられたインデックスと同じインデックスを対応するカラー画像にも付けておく。
【0013】
104はインデックスカラー画像であり、上述の通り、元画像に対して減色処理を行った結果の画像(減色画像)に含まれる夫々の色のみを含む画像である。105はカラー情報ソート部であり、カラー情報103を画素数によってソーティングする。106は同色統合部であり、カラー情報ソート部105でソートされたカラー情報同士を比較し、条件に応じて同一色と判断して統合処理を行うと共に、統合処理を施されたカラー情報の更新をする。
【0014】
107は中間色削減部であり、ソートされたカラー情報同士を比較し、条件に応じてカラー情報同士を結合し、中間調に位置する色数の削減を行う。108は背景色データであり、中間色削減部107で処理されたカラー情報のうち、最上位のカラー情報(最も多い画素数のカラー情報)に含まれる色重心のデータである。109は二値画像作成圧縮部であり、残ったカラー情報(最上位以外のカラー情報)毎に対応するインデックスカラー画像を用いて二値画像を作成し、この二値画像に対して圧縮を行う。110は二値画像圧縮データであり、二値画像作成圧縮部109で作成されたデータ群であって、それぞれに色情報が付加されている。111はデータ統合部であり、背景色データ108と二値画像圧縮データ110を統合して圧縮画像112を作成する。
【0015】
上記構成を備える本実施形態における画像符号化装置が行う画像符号化処理について、図7を用いて簡単に説明する。図7は元画像(カラー画像)と、元画像において各色の領域の画像を示す図である。元画像である原稿には赤文字と黒文字が使われていて青色のインクを用いて手書き修正が加えられている。このカラー画像に対して減色処理、同色判定処理、中間色削減処理を施すと、カラー画像は白色部分画像、黒色部分画像、赤色部分画像、青色部分画像に分解される。ここで分解された各部分画像において、画像を構成する画素数の最も多い画像は白色部分画像であるので、これを背景画像として用いることとする。実際に白色部分画像は画像データとして保持せずに、元画像のサイズを示すデータとカラー値(白を示すカラー値)を示すデータとして保持される。また、黒色部分画像、赤色部分画像、青色部分画像については、その色毎に二値画像(例えば赤色部分画像の場合、1の部分は赤を示し、0の部分は下地の部分を示す画像)を作成し、圧縮すると共に、色を示すデータを付加する。
【0016】
上記構成を備える本実施形態における画像符号化装置が行う画像符号化処理について、図2を参照して説明する。図2は本実施形態における画像符号化装置が行う画像符号化処理のフローチャートである。
【0017】
元画像101であるカラー画像が減色処理部102に入力されると、ステップS201で、減色処理部102は元画像101に対して予め決められた色数に減色処理を行い、上記カラー情報103とインデックスカラー画像104を生成し、出力する。減色処理では、フルカラーRGB 24bit(R、G、B夫々24ビットで表現)のデータを2−2−2,3−3−2,3−3−3bit等のビット数に落とす。このビット数の選び方は色の判定をどの程度の精度でしたいかによって選ばれる。以降の説明では2−2−2ビット(R、G、Bの夫々を2ビットで表現する)として説明するが、以下の説明はこれに限定されるものではない。この減色処理部102で出力されるカラー情報103は上述の通り、インデックスカラー画像が含む色(色重心)を示すデータと、インデックスカラー画像の画素数と、元画像におけるインデックスカラー画像の位置(分布範囲)を示すデータとで構成される。
【0018】
次に、減色処理部102で得られたカラー情報103はカラー情報ソート部105へ入力され、ステップS202で、その画素数とインデックス番号に応じた重み付けをかけた値にによってソーティングされる。ソーティングの結果、インデックスカラー画像は基本的に画素数が多いものほど上位に位置されるが、この重み付け、即ち係数は同程度の画素数のカラー情報を比較した場合に原色に近いカラー情報が上位になるように予め調整された値である。図3に重み係数の例を示す。
【0019】
図3(a)はRBG空間を示す図で、上記説明の通り本実施形態では減色後の画像のR、G、Bはすべて4階調で表現されるので、R方向に4つ、G方向に4つ、B方向に4つの色要素が存在することになる。後述の図3(b)、図3(c)、図3(d)、図3(e)に示す重み付けのマトリクスはこれらR方向に4つ、G方向に4つ、B方向に4つ存在する色要素に対して用いられるものである。具体的には、各マトリクスの各要素は、対応する色要素の個数(各色の画素数)に対する倍率として用いられる。
【0020】
図3(b)は図3(a)においてaで示す直線を含み、R−B平面に平行な平面において、各位置の色要素に対する重み係数のマトリクスを示す図で、図3(c)は図3(a)においてbで示す直線を含み、R−B平面に平行な平面において、各位置の色要素に対する重み係数のマトリクスを示す図で、図3(d)は図3(a)においてcで示す直線を含み、R−B平面に平行な平面において、各位置の色要素に対する重み係数のマトリクスを示す図で、図3(e)は図3(a)においてdで示す直線を含み、R−B平面に平行な平面において、各位置の色要素に対する重み係数のマトリクスを示す図である。
【0021】
なお、同図に示した各マトリクスの要素の値(0.9〜1.2)はこれに限定されるものではなく、例えば減色処理部102での減色数や色の優先度によって変えても良い。
【0022】
図2に戻って、ステップS203では、カラー情報ソート部105でソーティングされたカラー情報が同色統合部106へ入力され、同色統合部106は夫々のカラー情報の色重心の値を比較し、比較的値が近い(例えば夫々の値の差分の絶対値が所定値以下)場合には、同一色として比較した2つのカラー情報の統合を行う。これは同じ色でありながら、RGBの何れかの値がたまたま最初の減色処理の閾値に近いために複数のカラーに分離された色を一つに戻す処理である。またこの統合処理に伴って、カラー情報に含まれる画素数、色重心、分布範囲を再計算する。
【0023】
具体的には、統合する夫々のカラー情報に含まれる画素数を足し合わせることで統合後の画素数を求めることができる。また、統合する夫々のカラー情報に含まれる色重心を足し合わせ、2で割ることで、統合後の色重心(平均色)を求めることができる。また、また、統合する夫々のカラー情報に含まれる分布範囲のデータにおいて、最も左上隅の位置を示す座標と、最も右下隅の位置を示す座標を採用することで、統合後の分布範囲を求めることができる。以上の処理により、カラー情報の統合に伴う、カラー情報の更新を行うことができる。なお、このカラー情報の更新処理は一例であって、これに限定されるものではない。
【0024】
次にステップS204では、中間削減部107によって、同色統合部106で更新されたカラー情報を含むすべてのカラー情報に含まれる色重心の値を輝度色差の値に変換し、更に変換後の夫々の輝度色差値を比較し、比較的値が近いカラー情報同士(例えば夫々の値の差分の絶対値が所定値以下であるカラー情報同士)に対して結合処理を行う。これにより中間調に位置する色数の削減を行う。この処理の目的は、たとえ元の文書画像が白黒の原稿であってもスキャナで取り込んだ場合に下地の白色と文字部の黒色の境界部分に白から黒にかけての多くの階調が生ずるのを取り除くことである。白に近い灰色は白にして黒に近い灰色は黒にするのであり、他の色も同様に処理する。
【0025】
なお、ステップS204で行われる統合処理の内容は上記ステップS203における処理内容と同じようにして行われるが、色重心の値だけはそのまま残す点が異なる。これは中間色を統合してその色重心を求めた場合に例えば黒なら灰色が混じって明るめの色になり、白は逆に暗めになってしまうのを防ぐためである。結合された色情報の代表色はソーティング順位の高いカラー情報の色重心が採用されるが、ソーティングにおいて画素数だけではなく重み係数を用いるのはカラー文書原稿で用いられるであろう原色系の色を優先するためである。ステップS204における処理の詳細については後述する。
【0026】
次にステップS205では、中間色削減部107で処理された結果のうち、最上位カラー情報の色重心の値を背景色データ108として出力する。次にステップS206では、二値画像作成圧縮部109が最上位以外のカラー情報とインデックスカラー画像104を用いて色毎の二値画像を作成してMMR等の方法で圧縮処理する。ここで作成される二値画像はカラー情報が保持している色分布範囲に応じた大きさであり、原稿の一部にしか存在しない場合はその部分しか圧縮保存しない。
【0027】
この色毎の二値画像であるが、インデックスカラー画像104のインデックス番号を0〜63としてインデックス63にインデックス60と62のカラー情報が統合されているとすると、その二値画像はインデックス60と62のデータを論理和した画像であり、インデックス63のカラー情報の色重心の値で描画されることになる。この結果、作られるのが二値画像圧縮データ110で、カラー情報とMMR圧縮データとで構成されるデータ群である。
【0028】
そして最後にステップS207では、データ結合部111において背景色データ108と二値画像圧縮データ110をまとめて圧縮データ(出力)112を作成して出力をする。図4に圧縮データ112の構成例を示す。
【0029】
まずヘッダ部分に入力された文書画像(上記元画像101)の大きさ(縦横の画素数)、背景色のカラー値、解像度等の情報が入る。背景色には基本的に画素数が最も多い色が選択されるため例えば原稿が赤等のカラー用紙に印刷されている場合は赤系の値が入る。しかし下地が白色の場合が多いと考えられるので、背景色の白色判定を行い、白色と判断される場合は背景色の値は省略してよい。白色判定は例えば、RGBのそれぞれの値が一定値以上で、それぞれの値の差が一定値以内であった場合、白色とみなす。
【0030】
ヘッダ部の次に各色毎の圧縮データが続く。圧縮データは上述の通りカラー情報とMMR圧縮データとから構成されている。背景色を除いて残った色数がNであった場合、その色数分だけ同じ構造のデータが存在する。もちろん入力された画像が白紙等の単色原稿であった場合、この部分のデータは作成されない。白黒原稿であった場合、カラー圧縮データ数は1になり二値画像とほぼ等価になる。黒画素が原稿の一部分のみであればMMR圧縮データはその部分のみ圧縮するため、通常のMMR圧縮より小さくなる。
【0031】
この圧縮データ112を元画像に復号する方法については、図4に示したヘッダ部分に記憶されている背景色で原稿の全領域を描画し、圧縮データに含まれているMMR圧縮データを格納されている順番に伸長し、その画像をマスクにして記憶されている位置、色に従って上書きしていくことでなされる。
【0032】
図5は上記ステップS204における処理の詳細を示すフローチャートである。
【0033】
まずステップS501でカラー情報のソーティング順位にリストを作成する。このリストにそって中間色の削減処理が行われる。次にステップS502において、カラー情報の色重心の値をRGBからYCrCbの輝度色差データに変換を行い、この輝度色差データのデータをカラー情報に付加する。色差へ変換を行うのは輝度差の近い同系色を統合して中間色を削減するのに適しているためである。
【0034】
ステップS503、ステップS504、ステップS505はどれもすべて基本的な処理内容は同じであるが、処理対象が異なる。すなわち、夫々Y,Cr,Cbの各成分の差分がそれぞれ予め決められた閾値以内かどうか比較を行い、その条件以内ならカラー情報の統合を行い色数を削減する。
【0035】
図6にステップS503、ステップS504、ステップS505で行われる処理のフローチャートを示す。同図に示したフローチャートに従った処理はステップS503、ステップS504、ステップS505で共通であるが、ステップS605における閾値処理で用いる閾値が夫々異なる。
【0036】
まずステップS601で、上記ソーティング結果において最上位のカラー情報をカラー情報Iとして選択する。次にステップS602でカラー情報IのYCrCb値を変数Y'Cr'Cb'に記憶する。そしてステップS603において上記ソーティング結果において最下位のカラー情報をカラー情報Jとして選択する。
【0037】
そしてステップS604で、カラー情報I、Jの夫々のY,Cr,Cbを比較し、夫々の成分の差が所定の閾値(上述の通りステップS503、ステップS504、ステップS505の各処理によって用いる閾値は異なる)以内であるか否かを判定する。
【0038】
ステップS605においてその閾値以内ならステップS606へ進み、そうでなければステップS608へ進む。しかしカラー情報IとJのCrまたはCb値の符号が異なる場合はJのCrまたはCb値の絶対値を調べて予め決められたある一定値以上ならこの条件は正立させない。例えばカラー情報IとJのCr値の差が閾値以内であってもその符号がことなる場合はカラー情報Jの絶対値を予め決められた値と比較して小さいなら処理をステップS605へ進めるが、大きいには処理をステップS608に進める。Cbの値についても同様の処理をする。これは図5のフローで設定された閾値の大きさによっては単純に差分を比較して統合を行った場合に淡い青と淡い赤色のような異なる色同士のカラー情報が統合されてしまうのを防ぐためである。逆に淡い青と淡い赤色のような異なる色同士が統合されないように閾値を設定してしまうと青と淡い青のような同系色を統合することはできなくなる。
【0039】
ステップS606では、カラー情報Iにカラー情報Jのデータを統合する。これによってカラー情報Iの色数、分布範囲等の各データは更新されるが色重心の値は更新しない。その代わり統合した場合の色重心を計算し、更にその色重心を輝度色差データに変換し、これを上記Y’Cr’Cb’に反映させる。ステップS607ではカラー情報Jのデータをリストから外す。ステップS608では、カラー情報Jがリスト上の一つ上位に位置していたカラー情報がIであるかどうかを調べて、カラー情報Iでないなら処理をステップS609に進め、カラー情報Iであるなら処理をステップS610に進める。
【0040】
ステップS609では、カラー情報Jの一つ上位に位置していたカラー情報をカラー情報Jに設定して処理をステップS604に戻す。ステップS610では記憶しているY’Cr’Cb’の値をカラー情報IのYCrCbに戻す。
【0041】
そしてステップS611では、カラー情報Iの一つ下のカラー情報が最下位かまたはステップS607でリストから削除されて存在しないかどうか調べ、存在しかつ最下位でなければ処理をステップS612に進め、カラー情報Iの一つ下のカラー情報を改めてカラー情報Iに設定し、処理をステップS602に戻す。一方、ステップS611においてカラー情報Iの一つ下のカラー情報が最下位である、またはステップS607でリストから削除されて存在しない場合には処理を終了する。なお、上記処理により更新されたリストはステップS205以降で、例えば最上位のカラー情報を参照する場合に複数あるカラー情報の中から1つを選択する場合などに用いられる。
【0042】
ステップS605において用いられる閾値は同系色を統合する目的のため色差CrCbに比較して輝度Yの閾値は少し大きめに設定する。ステップS503における処理として実行される場合にはこの閾値は比較的小さくし、ステップS504,ステップS505の順に大きくする。ステップS502で付加した仮の色重心であるYCrCbの値を図6に示したフローチャートに従った処理に従って再計算を行うのは、ステップS504以降の閾値をあまり大きな値に設定しなくても色の統合をできるようにするためである。
【0043】
説明すると、ステップS503の処理で黒色に明るい黒色が統合されたとする。その場合の仮の色重心であるYCrCbの値は明るい黒方向へ移動する。その場合、暗い灰色との距離が近づくため、次のステップS504以降の閾値をある程度大きくするだけで黒色に暗い灰色が統合できるのである。
【0044】
またステップS503、ステップS504、ステップS505における処理は色の近いものから統合を行うためと、これらの処理を変化させることで圧縮データ112のサイズを制御できるためである。図4を見れば分かるように、圧縮データ112のサイズを決定する要素の一つがカラー圧縮データの数である。すなわち最終的に残る色数を制御すれば圧縮サイズの制御も可能になる。色数を多くすれば元のカラー画像に近い品位になり色数を少なくすれば二値画像に近づく。よってその得たい画質と圧縮サイズによってこの段数を決めれば良い。
【0045】
以上の説明により、本実施形態における画像符号化装置及び画像符号化方法は、色毎の二値画像を持つことにより大半のカラー文書画像を効率よく圧縮することができる。また、色の画素数と色空間上の位置に応じた係数の積の大きさによってソーティングを行い、その順位によって同色統合部106、中間色削減部107が色統合を行い、中間色削減部107では色重心の値を再計算しないことにより色の再現性が良い。また、中間色削減部107が複数の閾値を持ち、その閾値の数と値を制御することにより画質とサイズを制御できる。
【0046】
[その他の実施形態]
本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0047】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0048】
【発明の効果】
以上の説明により、本発明によって、圧縮効率の向上と共に、再現性の良い圧縮を行うことができる。
【図面の簡単な説明】
【図1】本発明の実施形態における画像符号化装置の機能構成と共に、各部において処理される、もしくは処理後のデータを示す図である。
【図2】本発明の実施形態における画像符号化装置が行う画像符号化処理のフローチャートである。
【図3】重み計数の例を示す図である。
【図4】圧縮データ112の構成例を示す図である。
【図5】ステップS204における処理の詳細を示すフローチャートである。
【図6】ステップS503、ステップS504、ステップS505で行われる処理のフローチャートである。
【図7】元画像と、元画像において各色の領域の画像を示す図である。[0001]
[Technical field to which the invention belongs]
The present invention relates to an image encoding device and an image encoding method for encoding an image.
[0002]
[Prior art]
In recent years, with the widespread use of color printers and color scanners, the number of colorized documents has increased, and there have been increasing opportunities to scan and capture them and store them as electronic files or send them via the Internet or the like. However, since full color data requires a large amount of storage devices and lines, it must be reduced by some method.
[0003]
Conventionally, as a method of compressing a color image, a method of compressing a binary image having a pseudo gradation by error diffusion or the like, a method of compressing in a JPEG format, converting to a palette color of 8 bits or the like and ZIP compression or LZW compression There was a way to do it.
[0004]
[Problems to be solved by the invention]
However, the pseudo gradation binary image is reduced in size but loses color. When JPEG format is selected, there is a trade-off between compression size and character quality due to mosquito noise peculiar to JPEG. In the method of converting to palette colors and performing ZIP compression or LZW compression, the color distribution of most color document images is local rather than discrete. The result of compression also becomes inefficient.
[0005]
The present invention has been made in view of the above problems, and an object of the present invention is to perform compression with good reproducibility while improving compression efficiency.
[0006]
[Means for Solving the Problems]
In order to achieve the object of the present invention, for example, an image encoding method of the present invention comprises the following arrangement.
[0007]
That is, an image encoding method for encoding a color image,
A color reduction step of performing color reduction processing on the color image by reducing the number of bits representing the color image;
For each color included in the reduced color image, a color information generation step for generating color information representing the color;
For each color included in the reduced color image, an index image generation step for generating an index color image corresponding to the color;
A first update step of referring to the value of the color centroid of each color information and integrating the color information having similar reference values ;
A second update step of integrating color information indicating close colors based on luminance and color difference representing each color information;
A compression step of generating and compressing a binary image corresponding to the color of each color information obtained by the integration in the first and second update steps using the color index image;
An output step of outputting each color information obtained by the integration in the first and second update steps and the binary compressed image obtained in the compression step.
In order to achieve the object of the present invention, for example, an image encoding apparatus of the present invention comprises the following arrangement.
That is, an image encoding device that encodes a color image,
A color reduction means for performing color reduction processing on the color image by reducing the number of bits representing the color image;
Color information generating means for generating color information representing the color for each color included in the reduced color image;
Index image generating means for generating an index color image corresponding to each color included in the reduced color image;
A first updating unit that refers to the value of the color centroid of each color information and integrates the color information having similar values ;
Second update means for integrating color information indicating similar colors based on luminance and color difference representing each color information;
Compression means for generating and compressing a binary image corresponding to the color of each color information obtained by integration by the first and second update means using the color index image;
And output means for outputting each color information obtained by the integration by the first and second updating means and a binary compressed image obtained by the compression means.
[0008]
In order to achieve the object of the present invention, for example, an image encoding apparatus of the present invention comprises the following arrangement.
[0009]
That is, an image encoding device that encodes an image,
A color reduction processing unit that performs color reduction processing on the original image to generate a color reduction image;
Color information generating means for generating color information relating to a region having a color in the subtractive color image for each color included in the subtractive color image;
A partial image generating means for generating an index color image of an area having a color in the subtractive color image for each color included in the subtractive color image;
In the color information generated by the color information generation means, first update means for updating and integrating color information indicating relatively close colors;
Referring to the color information updated by the first updating means, updating the color information indicating a relatively close luminance color difference, and integrating the second updating means;
According to the integration by the first update unit and the second update unit, a logical sum image of the index color image corresponding to the integration destination and the integration source is obtained, and a binary image of the logical sum image is generated. Compression means for performing compression and generating binary image compressed data composed of the compressed data and color information updated by the second update means corresponding to the compressed data;
And compressed data generating means for generating output data including data indicating the color included in the color information of the region having the largest number of pixels and the binary image compressed data by the compressing means.
In order to achieve the object of the present invention, for example, an image encoding method of the present invention comprises the following arrangement.
That is, an image encoding method for encoding an image,
A color-reduction processing step of performing a color reduction process on the original image to generate a color-reduced image;
A color information generating step for generating color information relating to a region having a color in the subtractive color image for each color included in the subtractive color image;
A partial image generation step of generating a color index image of an area having a color in the subtractive color image for each color included in the subtractive color image;
In the color information generated by the color information generation step, a first update step of updating and integrating color information indicating relatively close colors;
A second update step of referring to the color information updated in the first update step, updating color information indicating a relatively close luminance color difference, and integrating the color information;
In accordance with the integration by the first update step and the second update step, a logical sum image of the color index image corresponding to the integration destination and the integration source is obtained, and a binary image of the logical sum image is further generated. A compression step of performing compression and generating binary image compressed data composed of the compressed data and the color information updated in the second update step corresponding to the compressed data;
And a compressed data generation step of generating output data including data indicating the color included in the color information of the region having the largest number of pixels and the binary image compressed data by the compression step.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, the present invention will be described in detail according to preferred embodiments with reference to the accompanying drawings.
[0011]
FIG. 1 shows the functional configuration of the image coding apparatus according to the present embodiment and the data processed or processed after each part.
[0012]
The data of the distribution range is data including the coordinates of the upper left corner and the lower right corner of the index color image in the original image. The
[0013]
[0014]
An intermediate
[0015]
An image encoding process performed by the image encoding apparatus according to the present embodiment having the above configuration will be briefly described with reference to FIG. FIG. 7 shows an original image (color image) and an image of each color area in the original image. The original image, which is red and black characters, is handwritten with blue ink. When the color image is subjected to color reduction processing, same color determination processing, and intermediate color reduction processing, the color image is decomposed into a white partial image, a black partial image, a red partial image, and a blue partial image. In each partial image decomposed here, an image having the largest number of pixels constituting the image is a white partial image, and is used as a background image. Actually, the white partial image is not stored as image data, but is stored as data indicating the size of the original image and data indicating the color value (color value indicating white). In addition, for the black partial image, the red partial image, and the blue partial image, a binary image for each color (for example, in the case of a red partial image, 1 portion indicates red and 0 portion indicates a background portion) Is created, compressed, and data indicating the color is added.
[0016]
Image coding processing performed by the image coding apparatus according to the present embodiment having the above-described configuration will be described with reference to FIG. FIG. 2 is a flowchart of image coding processing performed by the image coding apparatus according to this embodiment.
[0017]
When the color image that is the
[0018]
Next, the
[0019]
FIG. 3A is a diagram showing the RBG space. As described above, in this embodiment, R, G, and B of the image after color reduction are all expressed in four gradations, so that four in the R direction and G direction. Thus, there are four color elements in the B direction. 3 (b), FIG. 3 (c), FIG. 3 (d), and FIG. 3 (e) to be described later, there are four weighting matrices in the R direction, four in the G direction, and four in the B direction. This is used for color elements to be performed. Specifically, each element of each matrix is used as a magnification with respect to the number of corresponding color elements (number of pixels of each color).
[0020]
FIG. 3B is a diagram showing a matrix of weighting factors for the color elements at each position in a plane parallel to the RB plane, including the straight line indicated by a in FIG. 3A, and FIG. FIG. 3A is a diagram showing a matrix of weighting factors for color elements at each position on a plane including a straight line indicated by b in FIG. 3A and parallel to the RB plane, and FIG. 3D is a diagram in FIG. FIG. 3 (e) includes a straight line indicated by d in FIG. 3 (a). FIG. 3 (e) includes a straight line indicated by d in FIG. 3 (a). FIG. 4 is a diagram illustrating a matrix of weighting factors for color elements at each position in a plane parallel to the RB plane.
[0021]
Note that the values (0.9 to 1.2) of the elements of each matrix shown in the figure are not limited to this, and may be changed depending on, for example, the number of color reductions and the color priority in the color
[0022]
Returning to FIG. 2, in step S203, the color information sorted by the color
[0023]
Specifically, the number of pixels after integration can be obtained by adding the number of pixels included in each color information to be integrated. Further, by adding the color centroids included in the respective color information to be integrated and dividing by 2, it is possible to obtain the color centroid (average color) after integration. In addition, in the distribution range data included in each color information to be integrated, the coordinate indicating the position of the upper left corner and the coordinate indicating the position of the lower right corner are employed to obtain the distribution range after integration. be able to. Through the above processing, the color information can be updated along with the integration of the color information. The color information update process is an example, and the present invention is not limited to this.
[0024]
In step S204, the
[0025]
Note that the content of the integration processing performed in step S204 is performed in the same manner as the processing content in step S203, except that only the value of the color centroid remains. This is because, when the intermediate colors are integrated and the center of gravity of the color is obtained, for example, if black, gray is mixed to become a lighter color, and white is prevented from becoming darker. The representative color of the combined color information uses the color centroid of the color information having a high sorting order. However, in the sorting, it is not only the number of pixels but also the weighting factor that is used for a color document manuscript. This is to prioritize. Details of the processing in step S204 will be described later.
[0026]
In step S <b> 205, the value of the color centroid of the most significant color information among the results processed by the intermediate
[0027]
Assuming that the binary image is for each color, and the index number of the
[0028]
Finally, in step S207, the
[0029]
First, information such as the size (number of vertical and horizontal pixels) of the document image (the original image 101), the color value of the background color, and the resolution is input to the header portion. Since the color having the largest number of pixels is basically selected as the background color, for example, when the document is printed on a color paper such as red, a red value is entered. However, since it is considered that the background is often white, the background color may be determined to be white, and if it is determined to be white, the background color value may be omitted. For example, in the white color determination, when each value of RGB is equal to or larger than a certain value and the difference between the values is within a certain value, it is regarded as white.
[0030]
The header portion is followed by compressed data for each color. The compressed data is composed of color information and MMR compressed data as described above. If the number of colors remaining excluding the background color is N, data having the same structure exists for the number of colors. Of course, if the input image is a single color original such as a blank sheet, the data of this portion is not created. In the case of a black and white document, the number of color compression data is 1, which is almost equivalent to a binary image. If the black pixel is only a part of the document, the MMR compressed data is compressed only in that part, and thus becomes smaller than the normal MMR compression.
[0031]
With respect to the method of decoding the compressed data 112 into the original image, the entire area of the original is drawn with the background color stored in the header shown in FIG. 4, and the MMR compressed data included in the compressed data is stored. The images are decompressed in the order in which they are stored and overwritten according to the stored positions and colors using the images as a mask.
[0032]
FIG. 5 is a flowchart showing details of the process in step S204.
[0033]
First, in step S501, a list is created in the sorting order of color information. Intermediate color reduction processing is performed along this list. In step S502, the color centroid value of the color information is converted from RGB to YCrCb luminance color difference data, and the luminance color difference data is added to the color information. The conversion to the color difference is because it is suitable for reducing the intermediate colors by integrating similar colors having similar luminance differences.
[0034]
Steps S503, S504, and S505 all have the same basic processing contents, but have different processing targets. That is, a comparison is made as to whether or not the difference between the respective components Y, Cr, and Cb is within a predetermined threshold value. If the difference is within the predetermined condition, the color information is integrated to reduce the number of colors.
[0035]
FIG. 6 shows a flowchart of processing performed in step S503, step S504, and step S505. The processing according to the flowchart shown in the figure is common to step S503, step S504, and step S505, but the threshold used in the threshold processing in step S605 is different.
[0036]
First, in step S601, the highest color information in the sorting result is selected as color information I. In step S602, the YCrCb value of the color information I is stored in the variable Y'Cr'Cb '. In step S603, the lowest color information in the sorting result is selected as color information J.
[0037]
In step S604, Y, Cr, and Cb of the color information I and J are compared, and the difference between the components is a predetermined threshold value (the threshold value used by each process of step S503, step S504, and step S505 is as described above). It is determined whether or not the difference is within.
[0038]
If it is within the threshold value in step S605, the process proceeds to step S606. Otherwise, the process proceeds to step S608. However, if the signs of the Cr or Cb values of the color information I and J are different, the absolute value of the Cr or Cb value of J is examined, and this condition is not erected if it exceeds a certain predetermined value. For example, even if the difference between the Cr values of the color information I and J is within the threshold, if the sign is different, the absolute value of the color information J is compared with a predetermined value, and if it is smaller, the process proceeds to step S605. If greater, the process proceeds to step S608. The same process is performed for the value of Cb. This is because, depending on the size of the threshold set in the flow of FIG. 5, when the differences are simply compared and integrated, the color information of different colors such as light blue and light red will be integrated. This is to prevent it. Conversely, if the threshold is set so that different colors such as light blue and light red are not integrated, similar colors such as blue and light blue cannot be integrated.
[0039]
In step S606, the color information J is integrated with the color information I. As a result, the data such as the number of colors and the distribution range of the color information I are updated, but the value of the color centroid is not updated. Instead, the color centroid in the case of integration is calculated, the color centroid is converted into luminance color difference data, and this is reflected in the Y′Cr′Cb ′. In step S607, the color information J data is removed from the list. In step S608, it is checked whether or not the color information whose color information J is positioned one higher in the list is I. If it is not color information I, the process proceeds to step S609, and if it is color information I, the process is performed. Advances to step S610.
[0040]
In step S609, the color information located one level above color information J is set as color information J, and the process returns to step S604. In step S610, the stored Y′Cr′Cb ′ value is returned to YCrCb of the color information I.
[0041]
In step S611, it is checked whether the color information immediately below color information I is at the lowest level or deleted from the list at step S607 and does not exist. If it is not present and is not at the lowest level, the process proceeds to step S612. The color information immediately below the information I is set again as the color information I, and the process returns to step S602. On the other hand, if the color information immediately below color information I is the lowest in step S611, or if it is deleted from the list and does not exist in step S607, the process ends. The list updated by the above processing is used after step S205, for example, when selecting one of a plurality of pieces of color information when referring to the top color information.
[0042]
The threshold used in step S605 is set slightly larger than the color difference CrCb for the purpose of integrating similar colors. In the case of being executed as the processing in step S503, this threshold value is made relatively small and increased in the order of step S504 and step S505. Recalculation of the value of YCrCb, which is the provisional color centroid added in step S502, according to the process according to the flowchart shown in FIG. 6 is performed even if the threshold value after step S504 is not set to a very large value. This is to enable integration.
[0043]
For example, it is assumed that bright black is integrated with black in the process of step S503. In this case, the value of YCrCb, which is the temporary color centroid, moves in the bright black direction. In this case, since the distance from the dark gray is closer, the dark gray can be integrated into the black simply by increasing the threshold value after the next step S504 to some extent.
[0044]
This is because the processing in step S503, step S504, and step S505 is performed for integration from the closest colors, and the size of the compressed data 112 can be controlled by changing these processing. As can be seen from FIG. 4, one of the factors determining the size of the compressed data 112 is the number of color compressed data. That is, the compression size can be controlled by controlling the number of finally remaining colors. If the number of colors is increased, the quality is close to that of the original color image, and if the number of colors is decreased, the image is closer to a binary image. Therefore, the number of stages may be determined according to the desired image quality and compression size.
[0045]
As described above, the image encoding apparatus and the image encoding method according to this embodiment can efficiently compress most color document images by having binary images for each color. Also, sorting is performed according to the product of the coefficient according to the number of pixels of the color and the position in the color space, and the same
[0046]
[Other Embodiments]
An object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus. Needless to say, this can also be achieved by reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
[0047]
Furthermore, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is determined based on the instruction of the program code. It goes without saying that the CPU or the like provided in the expansion card or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.
[0048]
【The invention's effect】
As described above, according to the present invention, it is possible to perform compression with good reproducibility while improving compression efficiency.
[Brief description of the drawings]
BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a diagram illustrating data processed or processed after each unit, together with a functional configuration of an image encoding device according to an embodiment of the present invention.
FIG. 2 is a flowchart of image coding processing performed by the image coding apparatus according to the embodiment of the present invention.
FIG. 3 is a diagram illustrating an example of weight counting.
4 is a diagram illustrating a configuration example of compressed data 112. FIG.
FIG. 5 is a flowchart showing details of processing in step S204.
FIG. 6 is a flowchart of processing performed in step S503, step S504, and step S505.
FIG. 7 is a diagram illustrating an original image and an image of each color area in the original image.
Claims (14)
カラー画像を表すビット数を減らすことにより当該カラー画像に対する減色処理を行う減色工程と、
前記減色されたカラー画像に含まれる色毎に、その色を表すカラー情報を生成するカラー情報生成工程と、
前記減色されたカラー画像に含まれる色毎に、その色に対応するインデックスカラー画像を生成するインデックス画像生成工程と、
各カラー情報の色重心の値を参照し、参照した値が近いカラー情報同士を統合する第1更新工程と、
各カラー情報を表す輝度と色差に基づいて、近い色を示すカラー情報同士を統合する第2更新工程と、
前記第1及び第2の更新工程での統合により得られた各カラー情報の色に対応する二値画像を、前記カラーインデックス画像を用いて生成し、圧縮する圧縮工程と、
前記第1及び第2の更新工程での統合により得られた各カラー情報と、前記圧縮工程で得られた二値圧縮画像とを出力する出力工程と
を備えることを特徴とする画像符号化方法。An image encoding method for encoding a color image,
A color reduction step of performing color reduction processing on the color image by reducing the number of bits representing the color image;
For each color included in the reduced color image, a color information generation step for generating color information representing the color;
For each color included in the reduced color image, an index image generation step for generating an index color image corresponding to the color;
A first update step of referring to the value of the color centroid of each color information and integrating the color information having similar reference values ;
A second update step of integrating color information indicating close colors based on luminance and color difference representing each color information;
A compression step of generating and compressing a binary image corresponding to the color of each color information obtained by the integration in the first and second update steps using the color index image;
An image encoding method comprising: outputting each color information obtained by integration in the first and second update steps and a binary compressed image obtained in the compression step .
カラー画像を表すビット数を減らすことにより当該カラー画像に対する減色処理を行う減色手段と、
前記減色されたカラー画像に含まれる色毎に、その色を表すカラー情報を生成するカラー情報生成手段と、
前記減色されたカラー画像に含まれる色毎に、その色に対応するインデックスカラー画像を生成するインデックス画像生成手段と、
各カラー情報の色重心の値を参照し、参照した値が近いカラー情報同士を統合する第1更新手段と、
各カラー情報を表す輝度と色差に基づいて、近い色を示すカラー情報同士を統合する第2更新手段と、
前記第1及び第2の更新手段による統合により得られた各カラー情報の色に対応する二値画像を、前記カラーインデックス画像を用いて生成し、圧縮する圧縮手段と、
前記第1及び第2の更新手段による統合により得られた各カラー情報と、前記圧縮手段により得られた二値圧縮画像とを出力する出力手段と
を備えることを特徴とする画像符号化装置。An image encoding device for encoding a color image,
A color reduction means for performing color reduction processing on the color image by reducing the number of bits representing the color image;
Color information generating means for generating color information representing the color for each color included in the reduced color image;
Index image generating means for generating an index color image corresponding to each color included in the reduced color image;
A first updating unit that refers to the value of the color centroid of each color information and integrates the color information having similar values ;
Second update means for integrating color information indicating similar colors based on luminance and color difference representing each color information;
Compression means for generating and compressing a binary image corresponding to the color of each color information obtained by integration by the first and second update means using the color index image;
An image encoding apparatus comprising: output means for outputting each color information obtained by integration by the first and second update means and a binary compressed image obtained by the compression means.
元画像に対して減色処理を施し、減色画像を生成する減色処理手段と、
前記減色画像において色を有する領域に関するカラー情報を、前記減色画像に含まれる色毎に生成するカラー情報生成手段と、
前記減色画像において色を有する領域のインデックスカラー画像を、前記減色画像に含まれる色毎に生成する部分画像生成手段と、
前記カラー情報生成手段によるカラー情報において、比較的近い色を示すカラー情報を更新し、統合する第1の更新手段と、
前記第1の更新手段により更新されたカラー情報を参照し、比較的近い輝度色差を示すカラー情報を更新し、統合する第2の更新手段と、
前記第1の更新手段、前記第2の更新手段による統合に応じて、対応する統合先と統合元のインデックスカラー画像の論理和画像を求め、更に当該論理和画像の二値画像を生成して圧縮を行い、当該圧縮データと当該圧縮データに対応する前記第2の更新手段により更新されたカラー情報とで構成される二値画像圧縮データを生成する圧縮手段と、
最も画素数の多い前記領域のカラー情報に含まれる色を示すデータと、前記圧縮手段による前記二値画像圧縮データとを含む出力データを生成する圧縮データ生成手段と
を備えることを特徴とする画像符号化装置。An image encoding device for encoding an image, comprising:
A color reduction processing unit that performs color reduction processing on the original image to generate a color reduction image;
Color information generating means for generating color information relating to a region having a color in the subtractive color image for each color included in the subtractive color image;
A partial image generating means for generating an index color image of an area having a color in the subtractive color image for each color included in the subtractive color image;
In the color information generated by the color information generation means, first update means for updating and integrating color information indicating relatively close colors;
Referring to the color information updated by the first updating means, updating the color information indicating a relatively close luminance color difference, and integrating the second updating means;
According to the integration by the first update unit and the second update unit, a logical sum image of the index color image corresponding to the integration destination and the integration source is obtained, and a binary image of the logical sum image is generated. Compression means for performing compression and generating binary image compressed data composed of the compressed data and color information updated by the second update means corresponding to the compressed data;
An image comprising: compressed data generating means for generating output data including data indicating the color included in the color information of the region having the largest number of pixels and the binary image compressed data by the compressing means. Encoding device.
当該ソート手段は、画素数が多い順番に前記カラー情報をソートすることを特徴とする請求項4に記載の画像符号化装置。Further, the color information includes sorting means for sorting the color information by referring to data obtained by further adjusting the data indicating the number of pixels included in the color information,
The image encoding apparatus according to claim 4 , wherein the sorting unit sorts the color information in order of increasing number of pixels.
元画像に対して減色処理を施し、減色画像を生成する減色処理工程と、
前記減色画像において色を有する領域に関するカラー情報を、前記減色画像に含まれる色毎に生成するカラー情報生成工程と、
前記減色画像において色を有する領域のインデックスカラー画像を、前記減色画像に含まれる色毎に生成する部分画像生成工程と、
前記カラー情報生成工程によるカラー情報において、比較的近い色を示すカラー情報を更新し、統合する第1の更新工程と、
前記第1の更新工程で更新されたカラー情報を参照し、比較的近い輝度色差を示すカラー情報を更新し、統合する第2の更新工程と、
前記第1の更新工程、前記第2の更新工程による統合に応じて、対応する統合先と統合元のインデックスカラー画像の論理和画像を求め、更に当該論理和画像の二値画像を生成して圧縮を行い、当該圧縮データと当該圧縮データに対応する前記第2の更新工程で更新されたカラー情報とで構成される二値画像圧縮データを生成する圧縮工程と、
最も画素数の多い前記領域のカラー情報に含まれる色を示すデータと、前記圧縮工程による前記二値画像圧縮データとを含む出力データを生成する圧縮データ生成工程と
を備えることを特徴とする画像符号化方法。An image encoding method for encoding an image, comprising:
A color-reduction processing step of performing a color reduction process on the original image to generate a color-reduced image;
A color information generating step for generating color information relating to a region having a color in the subtractive color image for each color included in the subtractive color image;
A partial image generation step of generating an index color image of an area having a color in the subtractive color image for each color included in the subtractive color image;
In the color information generated by the color information generation step, a first update step of updating and integrating color information indicating relatively close colors;
A second update step of referring to the color information updated in the first update step, updating color information indicating a relatively close luminance color difference, and integrating the color information;
According to the integration by the first update step and the second update step, a logical sum image of the index color image corresponding to the integration destination and the integration source is obtained, and further, a binary image of the logical sum image is generated. A compression step of performing compression and generating binary image compressed data composed of the compressed data and the color information updated in the second update step corresponding to the compressed data;
An image comprising: a compressed data generation step for generating output data including data indicating a color included in color information of the region having the largest number of pixels and the binary image compressed data by the compression step Encoding method.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002114773A JP3890250B2 (en) | 2002-04-17 | 2002-04-17 | Image coding apparatus and image coding method |
EP03252432.4A EP1355484B1 (en) | 2002-04-17 | 2003-04-16 | Image compression method and apparatus, and image coding method and apparatus |
CN03122140.8A CN1253010C (en) | 2002-04-17 | 2003-04-17 | Picture compression method and device, and picture coding device and method |
US10/417,102 US7158669B2 (en) | 2002-04-17 | 2003-04-17 | Image compression method and apparatus, and image coding method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002114773A JP3890250B2 (en) | 2002-04-17 | 2002-04-17 | Image coding apparatus and image coding method |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2003309727A JP2003309727A (en) | 2003-10-31 |
JP2003309727A5 JP2003309727A5 (en) | 2005-09-22 |
JP3890250B2 true JP3890250B2 (en) | 2007-03-07 |
Family
ID=29396453
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002114773A Expired - Fee Related JP3890250B2 (en) | 2002-04-17 | 2002-04-17 | Image coding apparatus and image coding method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3890250B2 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4649237B2 (en) * | 2005-03-07 | 2011-03-09 | 株式会社東芝 | Image compression apparatus, image compression method, and image compression program |
JP4698743B2 (en) | 2009-01-22 | 2011-06-08 | シャープ株式会社 | Image compression method, image compression apparatus, image forming apparatus, computer program, and recording medium |
US20100226568A1 (en) * | 2009-03-09 | 2010-09-09 | Smith Micro Software, Inc. | Effective color modeling method for predictive image compression |
CN109819254B (en) * | 2019-01-31 | 2022-05-03 | 深圳市战音科技有限公司 | Lossy image compression transmission method and system |
JP2022029840A (en) | 2020-08-05 | 2022-02-18 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
JP2022030055A (en) | 2020-08-06 | 2022-02-18 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
-
2002
- 2002-04-17 JP JP2002114773A patent/JP3890250B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2003309727A (en) | 2003-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7158669B2 (en) | Image compression method and apparatus, and image coding method and apparatus | |
US8660347B2 (en) | Image processing apparatus and processing method therefor | |
US5222154A (en) | System and method for spot color extraction | |
US7386168B2 (en) | Image processing apparatus | |
US8319987B2 (en) | Image processing apparatus and control method for compressing image data by determining common images amongst a plurality of page images | |
JPH0640348B2 (en) | Image conversion method | |
US7145676B2 (en) | Compound document image compression using multi-region two layer format | |
JP2007208956A (en) | Image processing apparatus, image forming apparatus, control method of image processing apparatus, image processing program, and computer-readable storage medium | |
US7411707B2 (en) | Image processing apparatus and method thereof | |
US20100067023A1 (en) | Image processing apparatus, image processing method and program | |
US8780414B2 (en) | Image processing apparatus, image processing method, and computer-readable medium for image data compression | |
US7024055B2 (en) | Sparse representation of extended gamut images | |
JP4035456B2 (en) | Image compression method and image compression apparatus | |
US7065254B2 (en) | Multilayered image file | |
JP3890250B2 (en) | Image coding apparatus and image coding method | |
JP2006115500A (en) | High-speed low memory paper color suppression algorithm | |
US9471857B2 (en) | Overcoat processing mechanism | |
MXPA04006233A (en) | Raster image path architecture. | |
US20020126312A1 (en) | Accelerating color conversion using a temporary palette cache | |
JP2022030055A (en) | Image processing apparatus, image processing method, and program | |
JP4442651B2 (en) | Image processing apparatus and program | |
US8494261B2 (en) | Image processing apparatus, image processing method, and computer-readable medium | |
JP7185451B2 (en) | Image processing device, image processing method, and program | |
JP3264526B2 (en) | Image processing method and apparatus | |
JP2012119791A (en) | Image processing device, image processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050418 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050418 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060821 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061020 |
|
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: 20061113 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061204 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 3890250 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091208 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101208 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111208 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121208 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131208 Year of fee payment: 7 |
|
LAPS | Cancellation because of no payment of annual fees |