JP4047192B2 - Image compression apparatus and method, image expansion apparatus and method, and program - Google Patents

Image compression apparatus and method, image expansion apparatus and method, and program Download PDF

Info

Publication number
JP4047192B2
JP4047192B2 JP2003046226A JP2003046226A JP4047192B2 JP 4047192 B2 JP4047192 B2 JP 4047192B2 JP 2003046226 A JP2003046226 A JP 2003046226A JP 2003046226 A JP2003046226 A JP 2003046226A JP 4047192 B2 JP4047192 B2 JP 4047192B2
Authority
JP
Japan
Prior art keywords
character area
area
image
color
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003046226A
Other languages
Japanese (ja)
Other versions
JP2004260327A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2003046226A priority Critical patent/JP4047192B2/en
Priority to US10/781,671 priority patent/US7386168B2/en
Priority to CNB2004100045687A priority patent/CN1301492C/en
Publication of JP2004260327A publication Critical patent/JP2004260327A/en
Application granted granted Critical
Publication of JP4047192B2 publication Critical patent/JP4047192B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、入力された多値画像を圧縮する画像圧縮装置、その画像圧縮装置で生成された圧縮データを伸長する画像処理技術に関するものである。
【0002】
【従来の技術】
近年、スキャナの普及により文書の電子化が進んでいる。電子化された文書をフルカラービットマップ形式で保存すると、例えば、A4サイズの場合では、読取解像度300dpiで、約24Mbyteにもなり、必要なメモリが膨大になる。このような大容量のデータは、メールに添付して送信するのに適したサイズとはいえない。
【0003】
そこで、フルカラー画像を圧縮することが通常行われており、その圧縮方法としてJPEGが知られている。JPEGは、写真等の自然画像を圧縮するには非常に効果的だが、文字部をJPEG圧縮するとモスキートノイズと呼ばれる画像劣化が発生する。そこで、従来では、入力された画像を文字領域及び写真領域に領域分割を行い、文字領域部分は2値化した上でMMR圧縮、写真領域部分はJPEG圧縮を行うことで、文字領域の品位を保ったまま、フルカラー画像も小さなデータサイズで表現する方法があった。
【0004】
この方法は、伸長時には、2値画像の白部分はJPEG画像を透過し、黒部分は代表色をのせた文字で表現することを特徴としている。また、別の特徴としては、単位文字当り1色を割り当てる。これにより、元々単色で表現されていた文字画像のスキャナ読込によるバラツキを除去することが可能となり、加えて、圧縮システムに利用すると、高画質高圧縮が得られる。
【0005】
また、拡張技術として、圧縮時におけるJPEG圧縮前に文字領域を文字近辺の色で穴埋めすることにより、さらに圧縮率を向上させる方法なども提案されている。更に、文字領域部分において、文字の代表色を抽出する色抽出技術も不可欠であり、以前より提案されている。この色抽出技術は、文字領域の2値画像とその文字領域の座標及びカラー画像を入力し、文字領域部における所望の色をカラー画像から抽出するものである。
【0006】
【発明が解決しようとする課題】
しかしながら、従来の技術では、色が反転した反転文字領域部分の特定ができなかったため、反転文字領域には、JPEG圧縮が施されてしまい、反転文字部は劣化してしまうという問題があった。
【0007】
近年、反転文字領域部分を特定する技術が提案されたことで、反転文字領域の色抽出を行う技術が必要となった。ここで、従来の色抽出技術をそのまま利用すると、スキャナ読込によるバラツキや圧縮作用により滲み込んでしまった入力画像中の反転文字領域の色をそのまま再現(抽出)してしまうという課題があった。
【0008】
本発明は上記の課題に鑑みてなされたものであり、良好な復元画像を生成することでき、かつ圧縮対象の画像品位を低下させない画像圧縮を行うことができる画像処理技術を提供することを目的とする。
【0009】
【課題を解決するための手段】
上記の目的を達成するための本発明による画像圧縮装置は以下の構成を備える。即ち、 入力された多値画像を圧縮する画像圧縮装置であって、
前記多値画像を2値化する2値化手段と、
前記2値化手段で2値化された2値画像中の文字領域の位置を特定し、かつ特定された文字領域が反転文字領域であるか否かを判定する第1領域特定手段と、
前記第1領域特定手段で特定された文字領域中の単位文字領域の位置を特定する第2領域特定手段と、
前記多値画像を縮小して縮小多値画像を生成する縮小手段と、
前記第1領域特定手段で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記第2領域特定手段で特定された単位文字領域の位置情報及び前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出手段と、
前記第1領域特定手段で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め手段と、
前記穴埋め手段で生成された穴埋め縮小多値画像を圧縮する第1圧縮手段と、
前記第1領域特定手段で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮手段と、
前記第1及び第2領域特定手段で特定された位置情報と、前記第1及び第2圧縮手段で生成された第1及び第2圧縮コードと、前記代表色抽出手段で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力手段とを備え、
前記代表色抽出手段は、
前記第2領域特定手段で特定された単位文字領域の位置情報を用いて、前記縮小多値画像の色情報を参照することにより、前記単位文字領域の平均色を算出する平均色算出手段と、
前記平均色算出手段で生成された単位文字領域の平均色を用いて、前記単位文字領域からなる文字領域内における色空間ヒストグラムを第1ヒストグラムを作成する第1ヒストグラム作成手段と、
前記第1ヒストグラム中で出力頻度の高い色分布から順に、前記単位文字領域の代表色の候補となる候補代表色を抽出する抽出手段と、
前記第1領域特定手段で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記抽出手段で抽出された候補代表色と前記単位文字領域の平均色に基づいて、前記候補代表色を前記単位文字領域の代表色に割り当てる色割当手段とを備え、
前記色割当手段は、前記抽出手段で抽出された候補代表色と、前記単位文字領域の平均色との間の色空間上の距離を計算し、
その距離が所定範囲内であり、かつ前記領域種別情報が単位文字領域からなる文字領域が反転文字領域であることを示している場合には、所定色を前記単位文字領域の代表色として割り当て、
その距離が所定範囲内であり、かつ前記領域種別情報が単位文字領域からなる文字領域が反転文字領域でないことを示している場合には、前記候補代表色を前記単位文字領域の代表色として割り当てる。
【0010】
【発明の実施の形態】
以下、本発明の実施の形態について図面を用いて詳細に説明する。
【0011】
尚、以下に説明する実施形態の画像圧縮装置及び画像伸長装置の各構成要素の相対配置、各処理に用いられる数式、数値等は、特に、特定的な記載がない限りは、この発明の範囲をそれらのみに限定する趣旨のものではない。
【0012】
図1は本発明の実施形態の画像圧縮装置の概略構成を示す図である。
【0013】
図1において、実線は画像の流れ及び入力を示し、点線は情報の流れ及び入力を示すものとする。
【0014】
カラー多値画像である入力画像101は、2値化部102で2値化され、2値画像103が作成される。領域特定部A104は、2値画像103を入力とし、例えば、所定値をとる画素(例えば、黒画素)の輪郭線追跡等により文字領域を検出して、文字領域座標106を作成する。文字領域座標106は、文字領域の位置(座標)やサイズを示す情報である。また、領域特定部A104が文字領域を特定することで、それ以外の写真やイラスト等の自然(階調)画像を示す自然画像領域の位置やサイズも特定されることは言うまでもない。更に、各領域の種類を特定するための属性情報(文字や画像)も別途生成する。
【0015】
領域特定部B105は、2値画像103と領域特定部A104により作成された文字領域座標106を入力とし、文字領域内における各文字(単位文字領域)の位置及びサイズを特定する。説明を簡単にするため、実施形態1では、各単位文字領域の位置及びサイズの情報も文字領域座標106に追加するものとする。また、領域特定部A104により作成された文字領域座標106により、文字領域毎の2値画像(部分2値画像107)を作成する。また、多値画像112は、縮小部113により縮小され、縮小多値画像114が作成される。
【0016】
尚、縮小部113は、設定された解像度変換パラメータに基づいて、多値画像112の解像度変換を行う。また、この解像度変換パラメータは、処理対象の多値画像の空間周波数に基づいて適宜制御するようにしても良い。例えば、多値画像の高周波成分が小さい場合には、大きい場合に比べて、より低解像度に変換するように、この解像度変換パラメータを制御しても良い。
【0017】
代表色抽出部110は、部分2値画像107と文字領域座標106及び縮小多値画像114を入力・参照し、部分2値画像107の黒部分と縮小多値画像114とを位置対応させながら、文字領域中の各単位文字領域の各文字代表色111を算出する。尚、多値画像112は入力画像101と同一である。
【0018】
文字領域穴埋め部115は、部分2値画像107と縮小多値画像114及び文字領域座標106を入力・参照とし、縮小多値画像114上の各文字領域あるいは単位文字領域毎に、その周辺色で塗り潰す処理(周辺色に置換する処理)を行う。
【0019】
以上の処理の後、部分2値画像107は各々順次、MMR圧縮部108により圧縮コードA109として圧縮される。また、文字領域穴埋め部115にて穴埋めされた穴埋め縮小多値画像は、JPEG圧縮部116により圧縮コードB117としてJPEG圧縮される。尚、MMR圧縮部108の代わりに、MMR圧縮以外の2値画像圧縮、例えば、JBIG圧縮、MR圧縮、MH圧縮等を用いても良い。
【0020】
このようにして、各構成要素から得られる文字領域座標106、圧縮コードA109、各文字代表色111、圧縮コードB117のデータ群を結合した圧縮データ118が作成される。この圧縮データ118を、更に、PDFなどに可逆圧縮しても良い。
【0021】
尚、入力画像101中に文字領域が存在しない場合、圧縮データ118は圧縮コードB117のみとなる。
【0022】
また、画像圧縮装置及び後述するこの画像圧縮装置で生成された圧縮データを伸長する画像伸長装置を実現するハードウエア構成としては、例えば、パーソナルコンピュータ等の汎用コンピュータで実現される。また、この汎用コンピュータには、その標準的な構成要素として、例えば、CPU、RAM、ROM、ハードディスク、外部記憶装置、ネットワークインタフェース、ディスプレイ、キーボード、マウス等を有している。
【0023】
また、これらの画像圧縮装置及び画像伸長装置は、このような汎用コンピュータに対する拡張カードとして実現される専用ハードウエアとして実現されても良い。
【0024】
更に、これらの画像圧縮装置及び画像伸長装置を搭載する装置の具体例としては、ネットワーク通信機能を有する複合機(コピー、プリンタ、スキャナ、ファクシミリ機能等を有する装置)、カラースキャナ、カラーファクシミリ等が挙げられる。
【0025】
次に、2値化部102が実行する2値化処理について、図2及び図3を用いて説明する。
【0026】
図2は本発明の実施形態の入力画像の一例を示す図である。また、図3は本発明の実施形態の2値化部が実行する2値化処理を示すフローチャートである。
【0027】
図2において、入力画像201はカラー多値画像であり、領域203の文字は白色、領域204の文字は黄色、領域205の文字は青色、領域207の文字は黒、領域206の画像は任意の複数色であるとする。尚、この入力画像201がスキャナで読み取ったものである場合には、その読取時のバラツキやJPEG圧縮の劣化を含んでいるものとするが、劣化を含んでいない画像も本実施形態の対象であることは言うまでもない。
【0028】
以下では、例として、入力画像101をスキャナで読み取った後のRGBデータ(24bit)とする場合、まず、ステップS301にて、下記の変換式により輝度変換を行い、輝度画像を作成する。
【0029】
Y = 0.299×R + 0.587×G + 0.114×B
次に、ステップS302にて、輝度画像の全面ヒストグラムを作成する。ここで、ヒストグラムの一例を図示すると図4のようになる。図4において、横軸はY信号の輝度レベル0〜255であり、縦軸はその出現頻度を示している。図4の場合、401が文字や画像の分布であり、402が下地の分布であることを示している。
【0030】
次に、ステップS303にて、最適な2値化閾値Tを算出する。但し、ここでの2値化閾値Tの算出方法は、特に限定はしない。図4では、例えば、分布401と分布402の頂点の輝度レベル間の中間点403を2値化閾値Tとしている。
【0031】
最後に、ステップS304にて、輝度画像を2値化閾値Tに基づいて、2値化する。
【0032】
以上の処理により、図1の2値画像103が作成される。また、図2の多値画像201を2値化した場合の2値画像は、例えば、図7の2値画像701のようになる。
【0033】
次に、領域特定部A104が実行する処理について、図5を用いて説明する。
【0034】
図5は本発明の実施形態の領域特定部A104が実行する処理を示すフローチャートである。
【0035】
まず、ステップS501にて、2値画像103の黒画素を参照しながら、輪郭線追跡を行う。次に、ステップS502にて、追跡された輪郭線内をさらに追跡し、その追跡結果に基づいて、輪郭線内の領域から文字領域と、その位置やサイズを特定する。更に、特定された文字領域が反転文字領域であるか否かを特定し、その反転文字領域であるか否かを示す領域種別情報を生成して、メモリに記憶する。尚、文字領域以外の領域は、自然画像領域として特定する。
【0036】
以上の処理により、文字領域、反転文字領域及び自然画像領域の位置、サイズ及びその領域の種類を示す属性が特定される。ここで、図7の2値画像701に領域特定部A104の処理を施した結果を、図8に示す。図8では、全部で4つの領域が特定され、801〜803が文字領域で、特に、文字領域801は反転文字領域で、804が自然画像領域に特定されている。
【0037】
次に、領域特定部B105が実行する処理について、図6を用いて説明する。
【0038】
図6は本発明の実施形態の領域特定部B105が実行する処理を示すフローチャートである。
【0039】
図6で説明する処理は、領域特定部A104により特定された文字領域群、図8の例では、文字領域801〜803に対して順次行われる。
【0040】
まず、ステップS601にて、未処理の文字領域の有無を判定する。未処理の文字領域がない場合(ステップS601でNO)、処理を終了する。一方、未処理の文字領域がある場合(ステップS601でYES)、ステップS602に進む。
【0041】
次に、ステップS602にて、2値画像の所定値(黒画素、但し、反転文字領域の場合は、白画素)をとる画素の集合を単位文字とみなし、単位文字領域の位置を特定する。ここで、図8の文字領域801に領域特定部B105の処理を施した結果を、図9に示す。図9では、全部で5つの単位文字領域902〜906が特定されている。以降、同様にして、図8の文字領域802、803についても処理が実行される。
【0042】
以上のようにして、領域特定部A104及び領域特定部B105により特定された文字領域・単位文字領域の領域情報(位置、サイズ、反転の有無)を、文字領域座標106として、例えば、画像圧縮装置内のメモリ(例えば、RAM)に保存する。
【0043】
次に、代表色抽出部110が実行する処理について、図10〜図12A及び図12Bのフローチャート、及び図13及び図14の説明図を用いて説明する。
【0044】
図10は本発明の実施形態の代表色抽出部が実行する処理を示すフローチャートである。
【0045】
代表色抽出部110では、上述したように、入力として、文字領域座標106と部分2値画像107及び縮小多値画像114を使用する。部分2値画像107は、2値画像103の文字領域を切り取って別のワークメモリ等のメモリに格納してあるものとする。縮小多値画像114は、多値画像112を縮小部113により縮小されたものであり、同様に別のワークメモリ等のメモリに格納してあるものとする。
【0046】
尚、本実施形態では、縮小部113の縮小度を50%として説明する。この場合、縮小多値画像用のワークメモリは、縮小前の多値画像用のワークメモリよりもそのメモリ容量が1/4に軽減することができる。但し、縮小度は50%に限定されるものではなく、用途や目的に応じて任意の縮小率が設定できることは言うまでもない。
【0047】
代表色抽出部110では、全ての文字領域、即ち、全ての部分2値画像107に対して順に処理を行う(本実施形態では、文字領域は、図8の文字領域801〜803の3つがあり、この順番で処理される)ため、最初に、ステップS1101にて、文字領域座標106を参照しながら、未処理の文字領域の有無を判定する。未処理の文字領域がない場合(ステップS1101でNO)、処理を終了する。一方、未処理の文字領域がある場合(ステップS1101でYES)、ステップS1102に進む。
【0048】
次に、ステップS1102で、文字領域座標106を参照しながら、文字領域が反転文字領域であるか否かを判定する。反転文字領域である場合(ステップS1102でYES)、ステップS1103に進み、その反転文字領域の色を反転処理によって反転する、即ち、白文字から黒文字にする。その後、代表色抽出部110で代表色抽出処理を実行する(ステップS1104)。
【0049】
尚、反転文字領域に対して、ステップS1103の反転処理を実行する理由は、通常の文字領域に施す代表色抽出処理と処理条件を共通にして、代表色抽出部110で共通アルゴリズムを適用するためである。但し、代表色抽出部110の処理後は、元の反転文字領域に戻す必要があるため、ステップS1105で、ステップS1103で反転処理を施した文字領域の色を再度反転処理によって再反転する、即ち、黒文字から白文字にする。
【0050】
一方、ステップS1102において、文字領域が反転文字領域でない場合(ステップS1102でNO)、ステップS1106に進み、代表色抽出部110で代表色抽出処理を実行する。
【0051】
次に、ステップS1104あるいはステップS1106の代表色抽出処理の詳細について、図11を用いて説明する。
【0052】
図11は本発明の実施形態の代表色抽出処理の詳細を示すフローチャートである。
【0053】
尚、上述のように代表色抽出処理での処理対象は、通常の文字領域、反転文字領域の両方となる。但し、反転文字領域に対する代表色抽出処理では、後述する特別な処理を伴う。そこで、本実施形態では、反転文字領域が処理対象である場合の処理例として、図9の反転文字領域901に対する代表色抽出処理について説明する。
【0054】
まず、ステップS1201にて、文字領域の代表色数nに1を設定する。これは、「第1色目の色を抽出する」という意味である。次に、ステップS1202にて、文字領域座標106を参照し、かつ部分2値画像107の黒画素に位置的に対応する縮小多値画像114の色(RGB)を参照しながら、単位文字毎にRGBの平均色を算出する。
【0055】
次に、ステップS1203にて、上記で算出された各単位文字領域のRGBの平均色を、例えば、YCbCrのような、輝度Yと色差CbCrで表現できる色空間に変換する。尚、色空間は、LabやYuv等の他の色空間でも構わないものとするが、ここでは、YCbCrで説明を行う。また、RGBからYCbCrへの変換式は省略する。
【0056】
尚、入力画像101がJPEG画像である場合は、JPEG解凍時に一般的に行われるYCbCr−>RGB変換を行わずに、YCbCr色空間のまま、入力が可能であるという特徴を備える。そのため、この場合には、ステップS1203の処理は不要となり、より高速な処理が達成される。
【0057】
例えば、上述の図9の5つの単位文字領域902〜906に対して、YCbCr変換を施すと、
単位文字領域902:(Y1,Cb1,Cr1)
単位文字領域903:(Y2,Cb2,Cr2)
単位文字領域904:(Y3,Cb3,Cr3)
単位文字領域905:(Y4,Cb4,Cr4)
単位文字領域906:(Y5,Cb5,Cr5)
となる。
【0058】
次に、ステップS1204にて、ステップS1205のヒストグラム作成の準備として、ヒストグラム初期化(ヒストグラムクリア)を行う。次に、ステップS1205にて、色差Cb,Crの2次元ヒストグラムを作成する。これを、図13に示す。図13の5つのプロット1301〜1305は、それぞれ
プロット1301(Cb1,Cr1) → 単位文字領域902のプロット
プロット1302(Cb2,Cr2) → 単位文字領域903のプロット
プロット1303(Cb3,Cr3) → 単位文字領域904のプロット
プロット1304(Cb4,Cr4) → 単位文字領域905のプロット
プロット1305(Cb5,Cr5) → 単位文字領域906のプロット
である。
【0059】
また、プロット1301、1302及び1303の集合と、プロット1304及び1305の集合の距離が離れているのは、図2の入力画像(カラー多値画像)201の領域203及び領域204で示される色の違いを表すためである。更に、プロット1301、1302及び1303の間の差、または、プロット1304及び1305の間の差は、スキャナで読み取られた入力画像のバラツキ、あるいは、その後の処理(例えば、JPEG圧縮)によるバラツキを表している。
【0060】
加えて、文字領域801中の単位文字領域の内、単位文字領域(反転単位文字領域)902〜904、即ち、プロット1301〜1303は、本来、白(Cb,Cr)=(0,0)であることが望まれるが、上記のバラツキと同様の理由で、反転文字領域の背景部の色が反転単位文字領域の文字部に影響してしまい、(Cb,Cr)=(0,0)から離れた場所にプロットされてしまっている。
【0061】
尚、本実施形態では、処理の高速化のため、ステップS1205で、2次元ヒストグラムを作成しているが、精度を上げるために、Y,Cb,Crの3次元ヒストグラムを作成してもよい。
【0062】
図11の説明に戻る。
【0063】
次に、ステップS1206にて、各単位文字領域の代表色抽出と色割当を行う。尚、この処理の詳細については後述する。
【0064】
次に、ステップS1207にて、ステップS1206で色が未割当の単位文字の有無を判定する。未割当の単位文字がある場合(ステップS1207でYES)、ステップS1208に進み、代表色数nに1を加算して、先に作成したヒストグラムを初期化し(ステップS1204)、色が未割当の単位文字に対してのみ、ヒストグラムを作成する(ステップS1205)。以下、同様にして、ステップS1207にて、色が未割当の単位文字がなくなるまで処理を続ける。そして、未割当の単位文字がない場合(ステップS1207でNO)、処理を終了する。
【0065】
次に、ステップS1206の各単位文字領域の代表色抽出と色割当の処理の詳細について、図12A及び図12Bを用いて説明する。
【0066】
図12A及び図12Bは本発明の実施形態のステップS1206の代表色抽出と色割当の処理の詳細を示すフローチャートである。
【0067】
まず、ステップS1501にて、単位文字領域の代表色の候補となる候補代表色C’(n)の抽出を行う。尚、nは代表色数であり、図11で使用されているnと同じである。また、候補代表色C’(n)は、Cb,Crの情報をもつ構造体であり、n番目の代表色のCbをC’(n)_b、n番目の代表色のCrをC’(n)_rと表すことにする。
【0068】
具体的な候補代表色の抽出方法について、図14を用いて説明する。
【0069】
図14で示される点線で囲まれる四角は、予め設定されたエリアを示しており、各エリアには1つの代表色(Cb,Cr)が設定されているものとする。エリアの大小は任意であるが、精度と処理効率のトレードオフを考慮して設定することが望ましい。
【0070】
YCbCrがそれぞれ8bitである場合、本実施形態では、エリアの縦横幅を3bitに設定することにする。但し、図14では、説明を簡単にするため、エリアを大きく図示している。ここで、各エリアをCb−Cr方向に走査し、エリア内のプロット数の最大値を取得する。ここでは、エリア1で最大プロット数3が得られるので、候補代表色として1401(黒三角▲)が得られる。または、これらの3つのプロットから、代表色を改めて算出しても良い。
【0071】
図12Aの説明に戻る。
【0072】
次に、ステップS1502にて、処理対象の文字領域が反転文字領域であるか否かを判定する。反転文字領域である場合(ステップS1502でYES)、ステップS1503にて抽出したC’(n)の調整を行う。これは、スキャナ読取のバラツキやJPEG圧縮等の劣化により、入力画像の反転文字領域の背景色が、本来は、白であるはずの文字部に滲んでしまったために誤って抽出された代表色を所定色(白)として補正するための調整である。
【0073】
このステップS1503の詳細について、図12Bを用いて説明する。
【0074】
図12Bは本発明の実施形態のステップS1503の詳細を示すフローチャートである。
【0075】
まず、ステップS1511にて、WhiteFlagをOFFに初期設定する。次に、ステップS1512にて、代表色C’(n)の色空間上の原点(Cb,Cr)=(0,0)からの距離Distance_Rを算出する。次に、ステップS1513にて、距離Distance_Rが゛所定値value_R以下であるか否かを判定する。
【0076】
距離Distance_Rが所定値value_Rより大きい場合(ステップS1513でNO)、処理を終了し、ステップS1504に進む。一方、距離Distance_Rが所定値value_R以下である場合(ステップS1513でYES)、WhiteFlagをONに設定し、ステップS1504に進む。
【0077】
尚、WhiteFlagは、代表色C’(n)を所定色(白)を示す(Cb,Cr)=(0,0)に設定するか否かを示すためのフラグであり、ONの場合には、後述するステップS1509にて、代表色C’(n)を(Cb,Cr)=(0,0)に設定する。
【0078】
図12Aの説明に戻る。
【0079】
一方、ステップS1502において、処理対象の文字領域が反転文字領域でない場合(ステップS1502でNO)、ステップS1504に進み、単位文字数mに1を設定する。次に、ステップS1505にて、mがM以下であるか否かを判定する。M以下である場合(ステップS1505でYES)、ステップS1506に進む。一方、Mより大きい場合(ステップS1505でNO)、処理を終了する。
【0080】
ここで、Mは、処理対象の文字領域内の単位文字数(総数)であり、例えば、図9の文字領域801では、M=5である。この場合は、m=1の時は、ステップS1505の条件がYESとなり、ステップS1506へ進む。そして、m=6になった時、ステップS1505の条件がNOとなり、ステップS1206のループを抜ける。
【0081】
ステップS1506にて、単位文字領域の平均色である単位文字色C(m)が未決定であるか否かを判定する。未決定でない場合(ステップS1506でNO)、ステップS1507に進む。一方、未決定である場合(ステップS1506でYES)、ステップS1507に進む。
【0082】
ここで、単位文字色C(m)は、Cb,Crの情報をもつ構造体であり、m番目の単位文字色のCbをC(m)_b、m番目の代表色のCrをC(m)_rと表すことにする。単位文字色C(m)は、最初、値が割り当てられていないため、C(m)は未決定となり、ステップS1507へ進む。
【0083】
次に、ステップS1507にて、候補代表色C’(n)と単位文字色C(m)の色空間上の距離(Distance)を算出する。
【0084】
次に、ステップS1508にて、予め設定された値valueに対して、Distance≦valueであるか否かを判定する。Distance≦valueでない場合(ステップS1508でNO)、ステップS1510に進む。一方、Distance≦valueである場合(ステップS1508でYES)、つまり、単位文字色C(m)が候補代表色C’(n)の近似色であるとみなせる場合、ステップS1509に進む。
【0085】
ステップS1509にて、候補代表色C’(n)を単位文字色C(m)(単位文字領域の代表色)に設定する。即ち、C’(n)_bをC(m)_bに代入し、C’(n)_rをC(m)_rに代入する。そして、ステップS1510にて、単位文字数mに1を加算し、ステップS1505に戻る。
【0086】
尚、ステップS1508におけるvalueは、単位文字色C(m)が候補代表色C’(n)の近似色であるか否かを判定するための閾値であり、任意にその値を調整可能である。また、上述したように、処理対象の文字領域が反転文字領域で、かつWhiteFlagがONである場合には、C(m)_b及びC(m)_rそれぞれに0を代入する。
【0087】
また、2次元ヒストグラムから代表色を算出した場合、代表色は、輝度成分Yをもたないため、文字領域内の同一の代表色をもつ単位文字間で輝度成分Yを算出する必要がある。さらに代表色のRGB情報を必要とする場合は、YCbCrからRGBへの色空間変換を行う。
【0088】
以上のようにして、図10、図11、図12A及び図12Bで示されるフローチャートで、特に、部分2値画像107と縮小多値画像114を用いて、各単位文字領域の代表色抽出と色割当が行われる。また、抽出された代表色は、図1の各文字代表色111として、圧縮データ118に格納される。
【0089】
次に、文字領域穴埋め部115が実行する処理について、図15を用いて説明する。
【0090】
図15は本発明の実施形態の文字領域穴埋め部が実行する処理を示すフローチャートである。
【0091】
文字領域穴埋め部115は、縮小多値画像114と部分2値画像107及び文字領域座標106を入力・参照し、縮小多値画像114中の文字にあたる画素を周りの背景色で塗りつぶす処理である。これにより、後のJPEG圧縮部116の圧縮率が向上する。
【0092】
まず、ステップS1701にて、文字領域毎に処理を行うため、未処理の文字領域の有無を判定する。未処理の文字領域がない場合(ステップS1701でNO)、処理を終了する。一方、未処理の文字領域がある場合(ステップS1701でYES)、ステップS1702に進み、部分2値画像107の白画素に位置的に対応する縮小多値画像114の色を参照することにより、文字領域内の背景色の平均値を算出する。部分2値画像107と縮小多値画像114の座標対応の方法は、代表色抽出部110で説明した方法と同様であるため、その詳細については省略する。
【0093】
次に、ステップS1703にて、算出した背景色の平均値を縮小多値画像114の文字領域に割り当てる、つまり、算出した背景色で縮小多値画像114の文字領域あるいはその文字領域内の単位文字領域を穴埋めする。
【0094】
次に、圧縮データ118を伸長する画像伸長装置について、図16を用いて説明する。
【0095】
図16は本発明の実施形態の画像伸長装置の概略構成を示す図である。
【0096】
MMR伸長部1803は、圧縮コードA109を入力し、MMR伸長処理を行い、2値画像1804を作成する。JPEG伸長部1809は、圧縮コードB117を入力し、JPEG伸長処理を行い、さらに拡大部1810で拡大処理を行うことで、多値画像1811を作成する。合成部1805は、文字領域座標106を参照しながら、各文字代表色111を2値画像1804中の対応する単位文字領域の各黒画素に割り当て、その2値画像を多値画像1811の上に表示する。この際、2値画像1804の白画素は多値画像1811を透過する。
【0097】
このようにして、図16の画像伸長装置は、図1の画像圧縮装置により作成された圧縮データ118を伸長し、最終的な復元画像である伸長画像1806を生成することができる。
【0098】
以上説明したように、本実施形態によれば、文字領域が反転文字領域であるか否かを判定し、その判定結果に基づいて、文字領域の2値画像とその文字領域を構成する単位文字領域における代表色を抽出して割り当てることで、各文字領域に対して適切な代表色を抽出して割り当てることができる。
【0099】
また、この単位文字領域毎の代表色を圧縮データの一部として生成する。そして、この圧縮データを伸長して復元画像を得る場合には、この代表色を利用して、各文字領域内の各単位文字領域の色を再現する。これにより、入力画像の画品位、特に、反転文字領域の画品位を良好に維持した復元画像を再現することができる。
【0100】
また、文字領域に関しては、従来使用されていたJPEG圧縮に代って、MMR圧縮を利用して圧縮することで、より高圧縮な圧縮画像を生成することができる。
【0101】
以上説明した実施形態における、画像圧縮装置及び画像伸長装置は、画像圧縮機能及び画像伸長機能を有するパーソナルコンピュータ等の情報処理装置でもって実現できるし、その機能を実現する手順としての方法の発明として捉えることができる。また、コンピュータにより実現できるわけであるから、本発明はそれぞれの装置で実行されるコンピュータプログラム、更には、そのコンピュータプログラムを格納し、コンピュータが読み込めるCD−ROM等のコンピュータ可読記憶媒体にも適用できるのは明らかであろう。
【0102】
従って、上記実施形態に係る実施態様を列挙すると、次の通りである。すなわち、画像圧縮装置及び画像伸長装置、それらの方法、プログラムは、次のようになる。
【0103】
<実施態様1> 入力された多値画像を圧縮する画像圧縮装置であって、
前記多値画像を2値化する2値化手段と、
前記2値化手段で2値化された2値画像中の文字領域の位置を特定し、かつ特定された文字領域が反転文字領域であるか否かを判定する第1領域特定手段と、前記第1領域特定手段で特定された文字領域中の単位文字領域の位置を特定する第2領域特定手段と、
前記多値画像を縮小する縮小手段と、
前記第1領域特定手段で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記第2領域特定手段で特定された単位文字領域の位置情報及び前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出手段と、
前記第1領域特定手段で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め手段と、前記穴埋め手段で生成された穴埋め縮小多値画像を圧縮する第1圧縮手段と、前記第1領域特定手段で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮手段と、
前記第1及び第2領域特定手段で特定された位置情報と、前記第1及び第2圧縮手段で生成された第1及び第2圧縮コードと、前記代表色抽出手段で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力手段と
を備えることを特徴とする画像圧縮装置。
【0104】
<実施態様2> 前記代表色抽出手段は、前記第2領域特定手段で特定された単位文字領域の位置情報を用いて、前記縮小多値画像の色情報を参照することにより、前記単位文字領域の平均色を算出する平均色算出手段と、
前記平均色算出手段で生成された単位文字領域の平均色から第1ヒストグラムを作成する第1ヒストグラム作成手段と、
前記第1ヒストグラムに基づいて、前記単位文字領域の代表色の候補となる候補代表色を抽出する抽出手段と、
前記第1領域特定手段で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記抽出手段で抽出された候補代表色と前記単位文字領域の平均色に基づいて、前記候補代表色を前記単位文字の代表色に割り当てる色割当手段と
を備えることを特徴とする実施態様1に記載の画像圧縮装置。
【0105】
<実施態様3> 前記2値化手段は、前記多値画像に基づく第2ヒストグラムを作成する第2ヒストグラム作成手段と、
前記第2ヒストグラムに基づいて、前記多値画像を2値化するための2値化閾値を算出する2値化閾値算出手段と
を備えることを特徴とする実施態様2に記載の画像圧縮装置。
【0106】
<実施態様4> 前記第1領域特定手段は、前記2値画像において所定値をとる画素の輪郭線追跡を行って特定される領域群を、それぞれ文字領域あるいは自然画像領域に特定し、かつ文字領域に対しては反転文字領域であるか否かを特定し、前記領域群の各領域の位置情報、サイズ情報及びその種類を示す属性情報を特定する
ことを特徴とする実施態様1に記載の画像圧縮装置。
【0107】
<実施態様5> 前記第2領域特定手段は、前記第1領域特定手段で特定された文字領域中の所定値をとる画素の集合を単位文字領域として特定し、前記単位文字領域の位置情報とサイズ情報を特定する
ことを特徴とする実施態様1に記載の画像圧縮装置。
【0108】
<実施態様6> 前記平均色算出手段は、前記第2領域特定手段で特定された単位文字領域の位置情報を用いて、前記単位文字領域内の所定値をとる画素に対応する前記縮小多値画像の色情報を参照することにより、該単位文字領域の平均色を算出する
ことを特徴とする実施態様2に記載の画像圧縮装置。
【0109】
<実施態様7> 前記第1ヒストグラム作成手段は、前記平均色算出手段で算出された単位文字領域の平均色を用いて、前記単位文字領域からなる文字領域内における色空間ヒストグラムを第1ヒストグラムとして作成する
ことを特徴とする実施態様2に記載の画像圧縮装置。
【0110】
<実施態様8> 前記抽出手段は、前記色空間ヒストグラム中で出力頻度の高い色分布から順に、前記単位文字領域の代表色の候補となる候補代表色を抽出する
ことを特徴とする実施態様7に記載の画像圧縮装置。
【0111】
<実施態様9> 前記色割当手段は、前記抽出手段で抽出された候補代表色と、前記単位文字領域の平均色との間の色空間上の距離を計算し、その距離が所定範囲内である場合に、前記候補代表色を前記単位文字領域の代表色として割り当る
ことを特徴とする実施態様8に記載の画像圧縮装置。
【0112】
<実施態様10> 前記色割当手段は、前記抽出手段で抽出された候補代表色と、前記単位文字領域の平均色との間の色空間上の距離を計算し、その距離が所定範囲内であり、かつ単位文字領域からなる文字領域が反転文字領域である場合に、所定色を前記単位文字領域の代表色として割り当る
ことを特徴とする実施態様8に記載の画像圧縮装置。
【0113】
<実施態様11> 前記縮小手段は、解像度変換パラメータを用いて、前記多値画像を解像度変換することで該多値画像を縮小する
ことを特徴とする実施態様1に記載の画像圧縮装置。
【0114】
<実施態様12> 前記穴埋め手段は、前記第1領域特定手段で特定された文字領域の位置情報に基づいて、前記縮小手段で設定されている縮小度に応じた位置に対応する前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする
ことを特徴とする実施態様1に記載の画像圧縮装置。
【0115】
<実施態様13> 前記第1圧縮手段は、JPEG圧縮準拠である
ことを特徴とする実施態様1に記載の画像圧縮装置。
【0116】
<実施態様14> 前記第2圧縮手段は、MMR圧縮準拠である
ことを特徴とする実施態様1に記載の画像圧縮装置。
【0117】
<実施態様15> 前記圧縮データを可逆圧縮する第3圧縮手段と
を更に備えることを特徴とする実施態様1に記載の画像圧縮装置。
【0118】
<実施態様16> 圧縮データを伸長する画像伸長装置であって、
多値画像を2値化した2値画像中の文字領域あるいは反転文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域あるいは反転文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域あるいは反転文字領域の位置情報と、該文字領域あるいは反転文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力手段と、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長手段と、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長手段と、
前記第2伸長手段で伸長された縮小多値画像を拡大する拡大手段と、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大手段で拡大された多値画像を合成する合成手段と
を備えることを特徴とする画像伸長装置。
【0119】
<実施態様17> 入力された多値画像を圧縮する画像圧縮方法であって、
前記多値画像を2値化する2値化工程と、
前記2値化工程で2値化された2値画像中の文字領域の位置を特定し、かつ特定された文字領域が反転文字領域であるか否かを判定する第1領域特定工程と、
前記第1領域特定工程で特定された文字領域中の単位文字領域の位置を特定する第2領域特定工程と、
前記多値画像を縮小する縮小工程と、
前記第1領域特定工程で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記第2領域特定工程で特定された単位文字領域の位置情報及び前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出工程と、
前記第1領域特定工程で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め工程と、
前記穴埋め工程で生成された穴埋め縮小多値画像を圧縮する第1圧縮工程と、
前記第1領域特定工程で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮工程と、
前記第1及び第2領域特定工程で特定された位置情報と、前記第1及び第2圧縮工程で生成された第1及び第2圧縮コードと、前記代表色抽出工程で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力工程と
を備えることを特徴とする画像圧縮方法。
【0120】
<実施態様18> 圧縮データを伸長する画像伸長方法であって、
多値画像を2値化した2値画像中の文字領域あるいは反転文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域あるいは反転文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域あるいは反転文字領域の位置情報と、該文字領域あるいは反転文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力工程と、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長工程と、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長工程と、
前記第2伸長工程で伸長された縮小多値画像を拡大する拡大工程と、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大工程で拡大された多値画像を合成する合成工程と
を備えることを特徴とする画像伸長方法。
【0121】
<実施態様19> 入力された多値画像を圧縮する画像圧縮を実現するプログラムであって、
前記多値画像を2値化する2値化工程のプログラムコードと、
前記2値化工程で2値化された2値画像中の文字領域の位置を特定し、かつ特定された文字領域が反転文字領域であるか否かを判定する第1領域特定工程のプログラムコードと、
前記第1領域特定工程で特定された文字領域中の単位文字領域の位置を特定する第2領域特定工程のプログラムコードと、
前記多値画像を縮小する縮小工程のプログラムコードと、
前記第1領域特定工程で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記第2領域特定工程で特定された単位文字領域の位置情報及び前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出工程のプログラムコードと、
前記第1領域特定工程で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め工程のプログラムコードと、
前記穴埋め工程で生成された穴埋め縮小多値画像を圧縮する第1圧縮工程のプログラムコードと、
前記第1領域特定工程で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮工程のプログラムコードと、
前記第1及び第2領域特定工程で特定された位置情報と、前記第1及び第2圧縮工程で生成された第1及び第2圧縮コードと、前記代表色抽出工程で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力工程のプログラムコードと
を備えることを特徴とするプログラム。
【0122】
<実施態様20> 圧縮データを伸長する画像伸長を実現するプログラムであって、
多値画像を2値化した2値画像中の文字領域あるいは反転文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域あるいは反転文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域あるいは反転文字領域の位置情報と、該文字領域あるいは反転文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力工程のプログラムコードと、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長工程のプログラムコードと、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長工程のプログラムコードと、
前記第2伸長工程で伸長された縮小多値画像を拡大する拡大工程のプログラムコードと、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大工程で拡大された多値画像を合成する合成工程のプログラムコードと
を備えることを特徴とするプログラム。
【0123】
以上、実施形態例を詳述したが、本発明は、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。
【0124】
尚、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラム(実施形態では図に示すフローチャートに対応したプログラム)を、システムあるいは装置に直接あるいは遠隔から供給し、そのシステムあるいは装置のコンピュータが該供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。
【0125】
従って、本発明の機能処理をコンピュータで実現するために、該コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。
【0126】
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。
【0127】
プログラムを供給するための記録媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。
【0128】
その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続し、該ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。
【0129】
また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせ、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。
【0130】
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現され得る。
【0131】
さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現される。
【0132】
【発明の効果】
以上説明したように、本発明によれば、良好な復元画像を生成することでき、かつ圧縮対象の画像品位を低下させない画像圧縮を行うことができる画像処理技術を提供できる。
【図面の簡単な説明】
【図1】本発明の実施形態の画像圧縮装置の概略構成を示す図である。
【図2】本発明の実施形態の入力画像の一例を示す図である。
【図3】本発明の実施形態の2値化部が実行する2値化処理を示すフローチャートである。
【図4】本発明の実施形態の入力画像のヒストグラムの一例を示す図である。
【図5】本発明の実施形態の領域特定部Aが実行する処理を示すフローチャートである。
【図6】本発明の実施形態の領域特定部Bが実行する処理を示すフローチャートである。
【図7】本発明の実施形態の2値画像の一例を示す図である。
【図8】本発明の実施形態の領域特定部Aによる処理結果の一例を示す図である。
【図9】本発明の実施形態の領域特定部Bによる処理結果の一例を示す図である。
【図10】本発明の実施形態の代表色抽出部が実行する処理を示すフローチャートである。
【図11】本発明の実施形態の代表色抽出処理の詳細を示すフローチャートである。
【図12A】本発明の実施形態のステップS1006の代表色抽出と色割当の処理の詳細を示すフローチャートである。
【図12B】本発明の実施形態のステップS1503の詳細を示すフローチャートである。
【図13】本発明の実施形態の代表色抽出部の処理を説明するための図である。
【図14】本発明の実施形態の代表色抽出部の処理を説明するための図である。
【図15】本発明の実施形態の文字領域穴埋め部が実行する処理を示すフローチャートである。
【図16】本発明の実施形態の画像伸長装置の概略構成を示す図である。
【符号の説明】
101 入力画像
102 2値化部
103 2値画像
104 領域特定部A
105 領域特定部B
106 文字領域座標
107 部分2値画像
108 MMR圧縮部
109 圧縮コードA
110 代表色抽出部
111 各文字代表色
112 多値画像
113 縮小部
114 縮小多値画像
115 文字領域穴埋め部
116 JPEG圧縮部
117 圧縮コードB
118 圧縮データ
1803 MMR伸長部
1804 2値画像
1805 合成部
1806 伸長画像
1809 JPEG伸長部
1810 拡大部
1811 多値画像
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image compression apparatus that compresses an input multi-valued image and an image processing technique that expands compressed data generated by the image compression apparatus.
[0002]
[Prior art]
In recent years, the digitization of documents has progressed with the spread of scanners. When an electronic document is stored in a full-color bitmap format, for example, in the case of A4 size, the reading resolution is 300 dpi and the size is about 24 Mbytes, which requires a large amount of memory. Such a large amount of data cannot be said to be a size suitable for transmission by attaching to mail.
[0003]
Therefore, it is usual to compress full-color images, and JPEG is known as the compression method. JPEG is very effective for compressing natural images such as photographs, but image degradation called mosquito noise occurs when JPEG compression is performed on character portions. Therefore, conventionally, the input image is divided into a character area and a photograph area, the character area portion is binarized, and MMR compression is performed, and the photograph area portion is subjected to JPEG compression, thereby improving the quality of the character area. There was a method of expressing a full-color image with a small data size while keeping it.
[0004]
This method is characterized in that when decompressing, the white portion of the binary image is transmitted through the JPEG image and the black portion is represented by characters with a representative color. As another feature, one color is assigned per unit character. As a result, it is possible to remove variations caused by reading a character image originally expressed in a single color, and in addition, when used in a compression system, high image quality and high compression can be obtained.
[0005]
Further, as an expansion technique, a method of further improving the compression rate by filling a character area with a color near the character before JPEG compression at the time of compression has been proposed. Furthermore, a color extraction technique for extracting a representative color of a character in the character region portion is indispensable and has been proposed. In this color extraction technique, a binary image of a character area, coordinates of the character area, and a color image are input, and a desired color in the character area portion is extracted from the color image.
[0006]
[Problems to be solved by the invention]
However, in the conventional technique, since the inverted character area portion in which the color is inverted cannot be specified, there is a problem that JPEG compression is performed on the inverted character area and the inverted character portion is deteriorated.
[0007]
In recent years, since a technique for specifying a reversed character area portion has been proposed, a technique for performing color extraction of the reversed character area is required. Here, when the conventional color extraction technique is used as it is, there is a problem that the color of the reversed character area in the input image that has been blurred due to the reading by the scanner or the compression effect is reproduced (extracted) as it is.
[0008]
The present invention has been made in view of the above problems, and an object of the present invention is to provide an image processing technique capable of generating a good restored image and performing image compression without reducing the image quality of a compression target. And
[0009]
[Means for Solving the Problems]
  In order to achieve the above object, an image compression apparatus according to the present invention comprises the following arrangement. That is, an image compression apparatus that compresses an input multi-valued image,
  Binarization means for binarizing the multi-valued image;
  First area specifying means for specifying a position of a character area in the binary image binarized by the binarizing means and determining whether or not the specified character area is an inverted character area;
  Second area specifying means for specifying the position of the unit character area in the character area specified by the first area specifying means;
  Reduce the multi-valued imageTo generate a reduced multi-valued imageReducing means to
  Area type information indicating whether the character area specified by the first area specifying means is an inverted character area, position information of the unit character area specified by the second area specifying means, and the reduced multi-value image And a representative color extracting means for extracting a representative color of the unit character area,
  A filling means for filling a unit character area in the character area of the reduced multi-valued image with its peripheral color based on the position information of the character area specified by the first area specifying means;
  First compression means for compressing the hole filling reduced multi-value image generated by the hole filling means;
  Second compression means for compressing a partial binary image corresponding to the character area specified by the first area specifying means;
  Position information specified by the first and second area specifying means, first and second compressed codes generated by the first and second compressing means, and unit character area extracted by the representative color extracting means Output means for outputting compressed data including representative color information of
  The representative color extracting means includes
    Average color calculation means for calculating an average color of the unit character area by referring to color information of the reduced multi-value image using position information of the unit character area specified by the second area specifying means;
    First histogram creating means for creating a first histogram of a color space histogram in a character area composed of the unit character areas using an average color of the unit character areas generated by the average color calculating means;
    Extraction means for extracting candidate representative colors that are candidates for representative colors of the unit character region in order from a color distribution having a high output frequency in the first histogram;
    Based on area type information indicating whether or not the character area specified by the first area specifying means is an inverted character area, the candidate representative color extracted by the extracting means and the average color of the unit character area, Color allocating means for allocating the candidate representative color to the representative color of the unit character area,
  The color assigning means calculates a distance on the color space between the candidate representative color extracted by the extracting means and the average color of the unit character area;
    When the distance is within a predetermined range and the area type information indicates that the character area consisting of the unit character area is an inverted character area, a predetermined color is assigned as a representative color of the unit character area,
    When the distance is within a predetermined range and the area type information indicates that the character area consisting of the unit character area is not the reverse character area, the candidate representative color is assigned as the representative color of the unit character area. .
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0011]
It should be noted that the relative arrangement of each component of the image compression apparatus and the image expansion apparatus according to the embodiments described below, mathematical formulas, numerical values, etc. used for each processing are within the scope of the present invention unless otherwise specified. It is not intended to limit only to those.
[0012]
FIG. 1 is a diagram showing a schematic configuration of an image compression apparatus according to an embodiment of the present invention.
[0013]
In FIG. 1, a solid line indicates an image flow and input, and a dotted line indicates an information flow and input.
[0014]
An input image 101 which is a color multi-valued image is binarized by a binarizing unit 102 to create a binary image 103. The area specifying unit A104 receives the binary image 103, detects a character area by, for example, contour tracing of a pixel (for example, a black pixel) having a predetermined value, and creates a character area coordinate 106. The character area coordinates 106 are information indicating the position (coordinates) and size of the character area. It goes without saying that the area specifying unit A104 specifies the character area, so that the position and size of a natural image area indicating a natural (gradation) image such as a photograph or illustration are also specified. Furthermore, attribute information (characters and images) for specifying the type of each area is also generated separately.
[0015]
The area specifying unit B105 inputs the binary image 103 and the character area coordinates 106 created by the area specifying unit A104, and specifies the position and size of each character (unit character area) in the character area. In order to simplify the description, in the first embodiment, information on the position and size of each unit character area is also added to the character area coordinates 106. Also, a binary image (partial binary image 107) for each character area is created based on the character area coordinates 106 created by the area specifying unit A104. Further, the multi-value image 112 is reduced by the reduction unit 113, and a reduced multi-value image 114 is created.
[0016]
Note that the reduction unit 113 performs resolution conversion of the multi-valued image 112 based on the set resolution conversion parameter. Further, this resolution conversion parameter may be appropriately controlled based on the spatial frequency of the multi-value image to be processed. For example, when the high-frequency component of the multivalued image is small, the resolution conversion parameter may be controlled so that the resolution is converted to a lower resolution than when it is large.
[0017]
The representative color extraction unit 110 inputs / refers to the partial binary image 107, the character region coordinates 106, and the reduced multi-value image 114, and positions the black portion of the partial binary image 107 and the reduced multi-value image 114 in a position-corresponding manner. Each character representative color 111 of each unit character area in the character area is calculated. Note that the multi-value image 112 is the same as the input image 101.
[0018]
The character area filling unit 115 receives and inputs the partial binary image 107, the reduced multi-value image 114, and the character area coordinates 106, and for each character area or unit character area on the reduced multi-value image 114, the surrounding color is used. A process of filling (replacement with surrounding colors) is performed.
[0019]
After the above processing, each of the partial binary images 107 is sequentially compressed by the MMR compression unit 108 as the compressed code A109. In addition, the hole-filled reduced multi-valued image filled in by the character area filling unit 115 is JPEG-compressed by the JPEG compression unit 116 as the compression code B117. Instead of the MMR compression unit 108, binary image compression other than MMR compression, for example, JBIG compression, MR compression, MH compression, or the like may be used.
[0020]
In this way, compressed data 118 is created by combining the data group of the character area coordinates 106, the compression code A 109, the character representative color 111, and the compression code B 117 obtained from each component. The compressed data 118 may be further reversibly compressed into PDF or the like.
[0021]
If there is no character area in the input image 101, the compressed data 118 is only the compressed code B117.
[0022]
Further, a hardware configuration for realizing an image compression apparatus and an image expansion apparatus that expands compressed data generated by the image compression apparatus, which will be described later, is realized by a general-purpose computer such as a personal computer. The general-purpose computer has, for example, a CPU, a RAM, a ROM, a hard disk, an external storage device, a network interface, a display, a keyboard, and a mouse as standard components.
[0023]
Further, these image compression apparatus and image expansion apparatus may be realized as dedicated hardware that is realized as an expansion card for such a general-purpose computer.
[0024]
Further, specific examples of the apparatus equipped with these image compression apparatus and image expansion apparatus include a multifunction peripheral having a network communication function (an apparatus having a copy, printer, scanner, facsimile function, etc.), a color scanner, a color facsimile, and the like. Can be mentioned.
[0025]
Next, the binarization process executed by the binarization unit 102 will be described with reference to FIGS.
[0026]
FIG. 2 is a diagram showing an example of an input image according to the embodiment of the present invention. FIG. 3 is a flowchart showing a binarization process executed by the binarization unit according to the embodiment of the present invention.
[0027]
In FIG. 2, the input image 201 is a color multi-valued image. The characters in the region 203 are white, the characters in the region 204 are yellow, the characters in the region 205 are blue, the characters in the region 207 are black, and the image in the region 206 is arbitrary. Assume that there are multiple colors. When the input image 201 is read by a scanner, it is assumed that the input image 201 includes variations at the time of reading and deterioration of JPEG compression. However, an image that does not include deterioration is also an object of this embodiment. Needless to say.
[0028]
Hereinafter, as an example, when the input image 101 is converted to RGB data (24 bits) after being read by the scanner, first, in step S301, luminance conversion is performed by the following conversion formula to create a luminance image.
[0029]
Y = 0.299 × R + 0.587 × G + 0.114 × B
Next, in step S302, an entire histogram of the luminance image is created. Here, an example of the histogram is shown in FIG. In FIG. 4, the horizontal axis represents the luminance level of the Y signal from 0 to 255, and the vertical axis represents the appearance frequency. In the case of FIG. 4, 401 indicates the distribution of characters and images, and 402 indicates the distribution of the background.
[0030]
Next, in step S303, an optimal binarization threshold T is calculated. However, the calculation method of the binarization threshold T here is not particularly limited. In FIG. 4, for example, an intermediate point 403 between the luminance levels of the vertices of the distribution 401 and the distribution 402 is set as the binarization threshold T.
[0031]
Finally, in step S304, the luminance image is binarized based on the binarization threshold T.
[0032]
Through the above processing, the binary image 103 in FIG. 1 is created. Further, a binary image when the multi-valued image 201 in FIG. 2 is binarized is, for example, a binary image 701 in FIG.
[0033]
Next, processing executed by the area specifying unit A104 will be described with reference to FIG.
[0034]
FIG. 5 is a flowchart showing processing executed by the area specifying unit A104 according to the embodiment of this invention.
[0035]
First, in step S501, contour tracking is performed while referring to black pixels in the binary image 103. Next, in step S502, the traced contour line is further traced, and based on the trace result, the character region, its position and size are specified from the region in the contour line. Further, it is specified whether or not the specified character area is an inverted character area, and area type information indicating whether or not the specified character area is the inverted character area is generated and stored in the memory. An area other than the character area is specified as a natural image area.
[0036]
Through the above processing, the attributes indicating the position, size, and type of the character area, the inverted character area, and the natural image area are specified. Here, FIG. 8 shows a result of applying the processing of the area specifying unit A104 to the binary image 701 in FIG. In FIG. 8, a total of four areas are specified, 801 to 803 are character areas, in particular, the character area 801 is an inverted character area, and 804 is specified as a natural image area.
[0037]
Next, processing executed by the area specifying unit B105 will be described with reference to FIG.
[0038]
FIG. 6 is a flowchart showing processing executed by the area specifying unit B105 according to the embodiment of this invention.
[0039]
The process described in FIG. 6 is sequentially performed on the character area group specified by the area specifying unit A104, and in the example of FIG. 8, the character areas 801 to 803 are sequentially performed.
[0040]
First, in step S601, the presence / absence of an unprocessed character area is determined. If there is no unprocessed character area (NO in step S601), the process ends. On the other hand, if there is an unprocessed character area (YES in step S601), the process proceeds to step S602.
[0041]
Next, in step S602, a set of pixels taking a predetermined value (black pixel, but white pixel in the case of an inverted character region) of the binary image is regarded as a unit character, and the position of the unit character region is specified. Here, FIG. 9 shows a result of applying the processing of the area specifying unit B105 to the character area 801 in FIG. In FIG. 9, a total of five unit character areas 902 to 906 are specified. Thereafter, processing is similarly performed for the character areas 802 and 803 in FIG.
[0042]
As described above, the region information (position, size, presence / absence of inversion) of the character region / unit character region specified by the region specifying unit A104 and the region specifying unit B105 is used as the character region coordinates 106, for example, an image compression device. Is stored in a memory (eg, RAM).
[0043]
Next, processing executed by the representative color extraction unit 110 will be described with reference to flowcharts of FIGS. 10 to 12A and 12B and explanatory diagrams of FIGS.
[0044]
FIG. 10 is a flowchart showing processing executed by the representative color extraction unit according to the embodiment of the present invention.
[0045]
As described above, the representative color extraction unit 110 uses the character region coordinates 106, the partial binary image 107, and the reduced multi-value image 114 as inputs. In the partial binary image 107, it is assumed that the character area of the binary image 103 is cut out and stored in a memory such as another work memory. The reduced multi-value image 114 is obtained by reducing the multi-value image 112 by the reduction unit 113 and is similarly stored in a memory such as another work memory.
[0046]
In the present embodiment, the reduction degree of the reduction unit 113 is assumed to be 50%. In this case, the work memory for the reduced multi-valued image can be reduced to 1/4 of the memory capacity of the work memory for the multi-valued image before the reduction. However, the degree of reduction is not limited to 50%, and it goes without saying that an arbitrary reduction ratio can be set according to the application and purpose.
[0047]
The representative color extraction unit 110 sequentially processes all character regions, that is, all partial binary images 107 (in this embodiment, there are three character regions 801 to 803 in FIG. 8). Therefore, first, in step S1101, the presence or absence of an unprocessed character area is determined with reference to the character area coordinates 106. If there is no unprocessed character area (NO in step S1101), the process ends. On the other hand, if there is an unprocessed character area (YES in step S1101), the process proceeds to step S1102.
[0048]
In step S1102, it is determined whether the character area is an inverted character area while referring to the character area coordinates 106. If it is an inverted character area (YES in step S1102), the process proceeds to step S1103, and the color of the inverted character area is inverted by an inversion process, that is, white characters are changed to black characters. Thereafter, the representative color extraction unit 110 executes representative color extraction processing (step S1104).
[0049]
The reason why the reversal processing in step S1103 is executed for the reversed character area is that the representative color extraction unit 110 applies the common algorithm in common processing conditions with the representative color extraction process applied to the normal character area. It is. However, since it is necessary to return to the original inverted character area after the processing of the representative color extraction unit 110, in step S1105, the color of the character area subjected to the inversion process in step S1103 is re-inverted again by the inversion process. , From black to white.
[0050]
On the other hand, if it is determined in step S1102 that the character area is not an inverted character area (NO in step S1102), the process proceeds to step S1106, and the representative color extraction unit 110 executes representative color extraction processing.
[0051]
Next, details of the representative color extraction processing in step S1104 or step S1106 will be described with reference to FIG.
[0052]
FIG. 11 is a flowchart showing details of representative color extraction processing according to the embodiment of the present invention.
[0053]
As described above, the processing target in the representative color extraction process is both a normal character area and a reversed character area. However, the representative color extraction processing for the reversed character region involves special processing described later. Therefore, in this embodiment, a representative color extraction process for the reversed character region 901 in FIG. 9 will be described as a processing example when the reversed character region is a processing target.
[0054]
First, in step S1201, 1 is set as the representative color number n of the character area. This means that “the first color is extracted”. Next, in step S1202, referring to the character region coordinates 106 and referring to the color (RGB) of the reduced multi-value image 114 corresponding to the black pixel of the partial binary image 107, for each unit character. An average color of RGB is calculated.
[0055]
Next, in step S1203, the average RGB color of each unit character area calculated above is converted into a color space such as YCbCr that can be expressed by luminance Y and color difference CbCr. The color space may be another color space such as Lab or Yuv. Here, YCbCr will be used for the description. Also, the conversion formula from RGB to YCbCr is omitted.
[0056]
When the input image 101 is a JPEG image, the image can be input in the YCbCr color space without performing the YCbCr-> RGB conversion generally performed at the time of JPEG decompression. Therefore, in this case, the process of step S1203 is not necessary, and a higher speed process is achieved.
[0057]
For example, when YCbCr conversion is performed on the five unit character areas 902 to 906 in FIG. 9 described above,
Unit character area 902: (Y1, Cb1, Cr1)
Unit character area 903: (Y2, Cb2, Cr2)
Unit character area 904: (Y3, Cb3, Cr3)
Unit character area 905: (Y4, Cb4, Cr4)
Unit character area 906: (Y5, Cb5, Cr5)
It becomes.
[0058]
In step S1204, histogram initialization (histogram clear) is performed as preparation for creating a histogram in step S1205. In step S1205, a two-dimensional histogram of the color differences Cb and Cr is created. This is shown in FIG. The five plots 1301 to 1305 in FIG.
Plot 1301 (Cb1, Cr1) → Plot of unit character area 902
Plot 1302 (Cb2, Cr2) → Plot of unit character area 903
Plot 1303 (Cb3, Cr3) → Plot of unit character area 904
Plot 1304 (Cb4, Cr4) → Plot of unit character area 905
Plot 1305 (Cb5, Cr5) → Plot of unit character area 906
It is.
[0059]
Further, the distance between the set of plots 1301, 1302 and 1303 and the set of plots 1304 and 1305 is that the colors indicated by the areas 203 and 204 of the input image (color multi-valued image) 201 in FIG. This is to express the difference. Further, the difference between plots 1301, 1302 and 1303, or the difference between plots 1304 and 1305 represents variations in the input image read by the scanner, or variations due to subsequent processing (eg, JPEG compression). ing.
[0060]
In addition, among the unit character areas in the character area 801, unit character areas (reversed unit character areas) 902 to 904, that is, plots 1301 to 1303 are originally white (Cb, Cr) = (0, 0). Although it is desirable, for the same reason as the above variation, the color of the background portion of the reversed character region affects the character portion of the reversed unit character region, and from (Cb, Cr) = (0, 0) Plotted away.
[0061]
In this embodiment, a two-dimensional histogram is created in step S1205 for speeding up the processing. However, a three-dimensional histogram of Y, Cb, and Cr may be created to increase the accuracy.
[0062]
Returning to the description of FIG.
[0063]
Next, in step S1206, representative color extraction and color assignment of each unit character area are performed. Details of this process will be described later.
[0064]
Next, in step S1207, it is determined whether or not there is a unit character whose color is not assigned in step S1206. If there is an unassigned unit character (YES in step S1207), the process proceeds to step S1208, 1 is added to the representative color number n, and the previously created histogram is initialized (step S1204). A histogram is created only for characters (step S1205). Thereafter, in the same manner, in step S1207, the processing is continued until there is no unit character to which no color is assigned. If there is no unallocated unit character (NO in step S1207), the process ends.
[0065]
Next, details of the representative color extraction and color assignment processing of each unit character area in step S1206 will be described with reference to FIGS. 12A and 12B.
[0066]
12A and 12B are flowcharts showing details of the representative color extraction and color assignment processing in step S1206 according to the embodiment of the present invention.
[0067]
First, in step S1501, a candidate representative color C ′ (n) that is a candidate for the representative color of the unit character area is extracted. Note that n is the number of representative colors, which is the same as n used in FIG. The candidate representative color C ′ (n) is a structure having information of Cb and Cr. The nth representative color Cb is C ′ (n) _b, and the nth representative color Cr is C ′ ( n) It shall be expressed as _r.
[0068]
A specific candidate representative color extraction method will be described with reference to FIG.
[0069]
A square surrounded by a dotted line shown in FIG. 14 indicates a preset area, and one representative color (Cb, Cr) is set in each area. The size of the area is arbitrary, but it is desirable to set in consideration of the trade-off between accuracy and processing efficiency.
[0070]
When YCbCr is 8 bits each, in this embodiment, the vertical and horizontal width of the area is set to 3 bits. However, in FIG. 14, the area is greatly illustrated for the sake of simplicity. Here, each area is scanned in the Cb-Cr direction, and the maximum value of the number of plots in the area is acquired. Here, since the maximum number of plots 3 is obtained in area 1, 1401 (black triangle ▲) is obtained as a candidate representative color. Alternatively, the representative color may be calculated again from these three plots.
[0071]
Returning to the description of FIG.
[0072]
In step S1502, it is determined whether the character area to be processed is an inverted character area. If it is a reversed character area (YES in step S1502), C ′ (n) extracted in step S1503 is adjusted. This is because the background color of the reversed character area of the input image is blurred in the character portion that should have been white due to variations in scanner reading and JPEG compression. This is an adjustment for correcting as a predetermined color (white).
[0073]
Details of step S1503 will be described with reference to FIG. 12B.
[0074]
FIG. 12B is a flowchart showing details of step S1503 according to the embodiment of the present invention.
[0075]
First, in step S1511, WhiteFlag is initially set to OFF. In step S1512, a distance Distance_R from the origin (Cb, Cr) = (0, 0) on the color space of the representative color C ′ (n) is calculated. Next, in step S1513, it is determined whether or not the distance Distance_R is equal to or smaller than a “predetermined value value_R”.
[0076]
If the distance Distance_R is greater than the predetermined value value_R (NO in step S1513), the process ends, and the process proceeds to step S1504. On the other hand, if the distance Distance_R is equal to or smaller than the predetermined value value_R (YES in step S1513), WhiteFlag is set to ON, and the process proceeds to step S1504.
[0077]
WhiteFlag is a flag indicating whether or not the representative color C ′ (n) is set to (Cb, Cr) = (0, 0) indicating a predetermined color (white). In step S1509 described later, the representative color C ′ (n) is set to (Cb, Cr) = (0, 0).
[0078]
Returning to the description of FIG.
[0079]
On the other hand, if it is determined in step S1502 that the character area to be processed is not an inverted character area (NO in step S1502), the process advances to step S1504 to set 1 to the number m of unit characters. Next, in step S1505, it is determined whether m is M or less. If it is M or less (YES in step S1505), the process advances to step S1506. On the other hand, if greater than M (NO in step S1505), the process ends.
[0080]
Here, M is the number of unit characters (total number) in the character area to be processed. For example, in the character area 801 in FIG. 9, M = 5. In this case, when m = 1, the condition of step S1505 is YES, and the process proceeds to step S1506. When m = 6, the condition in step S1505 is NO, and the process exits the loop in step S1206.
[0081]
In step S1506, it is determined whether the unit character color C (m), which is the average color of the unit character area, has not been determined. If not yet determined (NO in step S1506), the process proceeds to step S1507. On the other hand, if not yet determined (YES in step S1506), the process advances to step S1507.
[0082]
Here, the unit character color C (m) is a structure having information of Cb and Cr, Cb of the mth unit character color is C (m) _b, and Cr of the mth representative color is C (m ) _R. Since the unit character color C (m) is not initially assigned a value, C (m) is undetermined, and the process proceeds to step S1507.
[0083]
In step S1507, a distance (Distance) between the candidate representative color C '(n) and the unit character color C (m) in the color space is calculated.
[0084]
Next, in step S1508, it is determined whether or not Distance ≦ value with respect to a preset value value. If Distance ≦ value is not satisfied (NO in step S1508), the process advances to step S1510. On the other hand, if Distance ≦ value (YES in step S1508), that is, if the unit character color C (m) can be regarded as an approximate color of the candidate representative color C ′ (n), the process proceeds to step S1509.
[0085]
In step S1509, the candidate representative color C '(n) is set to the unit character color C (m) (representative color of the unit character area). That is, C ′ (n) _b is substituted for C (m) _b, and C ′ (n) _r is substituted for C (m) _r. In step S1510, 1 is added to the number m of unit characters, and the process returns to step S1505.
[0086]
The value in step S1508 is a threshold value for determining whether or not the unit character color C (m) is an approximate color of the candidate representative color C ′ (n), and the value can be arbitrarily adjusted. . Further, as described above, when the character area to be processed is an inverted character area and WhiteFlag is ON, 0 is assigned to each of C (m) _b and C (m) _r.
[0087]
Further, when the representative color is calculated from the two-dimensional histogram, the representative color does not have the luminance component Y. Therefore, it is necessary to calculate the luminance component Y between unit characters having the same representative color in the character area. Further, when the RGB information of the representative color is required, color space conversion from YCbCr to RGB is performed.
[0088]
As described above, in the flowcharts shown in FIG. 10, FIG. 11, FIG. 12A, and FIG. 12B, the representative color extraction and color of each unit character area using the partial binary image 107 and the reduced multi-value image 114 in particular. Allocation is made. Further, the extracted representative colors are stored in the compressed data 118 as the character representative colors 111 of FIG.
[0089]
Next, processing executed by the character area filling unit 115 will be described with reference to FIG.
[0090]
FIG. 15 is a flowchart illustrating processing executed by the character area filling unit according to the embodiment of this invention.
[0091]
The character area filling unit 115 is a process of inputting and referring to the reduced multi-value image 114, the partial binary image 107, and the character area coordinates 106, and filling the pixels corresponding to the characters in the reduced multi-value image 114 with the surrounding background color. Thereby, the compression rate of the subsequent JPEG compression unit 116 is improved.
[0092]
First, in step S1701, since processing is performed for each character area, it is determined whether there is an unprocessed character area. If there is no unprocessed character area (NO in step S1701), the process ends. On the other hand, if there is an unprocessed character area (YES in step S1701), the process proceeds to step S1702 to refer to the color of the reduced multi-value image 114 corresponding to the white pixel of the partial binary image 107, thereby The average value of the background colors in the area is calculated. The method for coordinating the partial binary image 107 and the reduced multi-valued image 114 is the same as the method described in the representative color extracting unit 110, and the details thereof are omitted.
[0093]
Next, in step S1703, the calculated average value of the background color is assigned to the character area of the reduced multivalued image 114, that is, the character area of the reduced multivalued image 114 with the calculated background color or the unit characters in the character area. Fill the area.
[0094]
Next, an image expansion apparatus that expands the compressed data 118 will be described with reference to FIG.
[0095]
FIG. 16 is a diagram showing a schematic configuration of an image expansion apparatus according to the embodiment of the present invention.
[0096]
The MMR decompression unit 1803 receives the compression code A109, performs MMR decompression processing, and creates a binary image 1804. The JPEG decompression unit 1809 receives the compression code B117, performs JPEG decompression processing, and further performs enlargement processing in the enlargement unit 1810, thereby creating a multi-value image 1811. The synthesizer 1805 assigns each character representative color 111 to each black pixel of the corresponding unit character region in the binary image 1804 while referring to the character region coordinates 106, and places the binary image on the multi-valued image 1811. indicate. At this time, white pixels of the binary image 1804 are transmitted through the multi-value image 1811.
[0097]
In this manner, the image decompression apparatus in FIG. 16 can decompress the compressed data 118 created by the image compression apparatus in FIG. 1 and generate a decompressed image 1806 that is a final restored image.
[0098]
As described above, according to the present embodiment, it is determined whether or not the character area is an inverted character area, and based on the determination result, the binary image of the character area and the unit characters constituting the character area By extracting and assigning the representative color in the area, it is possible to extract and assign an appropriate representative color to each character area.
[0099]
Further, the representative color for each unit character area is generated as a part of the compressed data. When decompressing the compressed data to obtain a restored image, the representative color is used to reproduce the color of each unit character area in each character area. As a result, it is possible to reproduce a restored image in which the image quality of the input image, in particular, the image quality of the reversed character area is maintained well.
[0100]
Further, with respect to the character area, a compressed image with higher compression can be generated by compressing using MMR compression instead of the conventionally used JPEG compression.
[0101]
The image compression apparatus and the image expansion apparatus in the embodiment described above can be realized by an information processing apparatus such as a personal computer having an image compression function and an image expansion function, and as a method invention as a procedure for realizing the function. Can be caught. Since the present invention can be realized by a computer, the present invention can be applied to a computer program executed by each device, and further to a computer-readable storage medium such as a CD-ROM that stores the computer program and can be read by the computer. It will be clear.
[0102]
Therefore, the embodiments according to the above embodiment are listed as follows. That is, the image compression apparatus, the image expansion apparatus, their methods, and programs are as follows.
[0103]
<Embodiment 1> An image compression apparatus for compressing an input multi-valued image,
Binarization means for binarizing the multi-valued image;
First area specifying means for specifying a position of a character area in the binary image binarized by the binarizing means and determining whether the specified character area is an inverted character area; Second area specifying means for specifying the position of the unit character area in the character area specified by the first area specifying means;
Reduction means for reducing the multi-valued image;
Area type information indicating whether the character area specified by the first area specifying means is an inverted character area, position information of the unit character area specified by the second area specifying means, and the reduced multi-value image And a representative color extracting means for extracting a representative color of the unit character area,
Based on the position information of the character area specified by the first area specifying means, the unit character area in the character area of the reduced multi-valued image is filled with its surrounding color, and generated by the hole filling means A first compression means for compressing a hole-filled reduced multi-value image; a second compression means for compressing a partial binary image corresponding to the character area specified by the first area specifying means;
Position information specified by the first and second area specifying means, first and second compressed codes generated by the first and second compressing means, and unit character area extracted by the representative color extracting means Output means for outputting compressed data including representative color information of
An image compression apparatus comprising:
[0104]
<Embodiment 2> The representative color extracting unit refers to the color information of the reduced multi-valued image by using the position information of the unit character region specified by the second region specifying unit, thereby the unit character region. Average color calculating means for calculating the average color of
First histogram creating means for creating a first histogram from an average color of unit character areas generated by the average color calculating means;
Extracting means for extracting a candidate representative color that is a candidate for a representative color of the unit character area based on the first histogram;
Based on area type information indicating whether or not the character area specified by the first area specifying means is an inverted character area, the candidate representative color extracted by the extracting means and the average color of the unit character area, Color assigning means for assigning the candidate representative color to the representative color of the unit character;
The image compression apparatus according to Embodiment 1, further comprising:
[0105]
<Embodiment 3> The binarization means includes second histogram creation means for creating a second histogram based on the multi-valued image;
Binarization threshold value calculation means for calculating a binarization threshold value for binarizing the multi-valued image based on the second histogram;
The image compression apparatus according to Embodiment 2, further comprising:
[0106]
<Embodiment 4> The first area specifying unit specifies an area group specified by performing contour tracking of pixels having a predetermined value in the binary image as a character area or a natural image area, and a character. Specify whether the area is an inverted character area, and specify position information, size information, and attribute information indicating the type of each area in the area group.
The image compression apparatus according to Embodiment 1, wherein
[0107]
<Embodiment 5> The second area specifying unit specifies, as a unit character area, a set of pixels having a predetermined value in the character area specified by the first area specifying unit, and position information of the unit character area and Identify size information
The image compression apparatus according to Embodiment 1, wherein
[0108]
<Embodiment 6> The average color calculating means uses the position information of the unit character area specified by the second area specifying means, and the reduced multivalue corresponding to a pixel taking a predetermined value in the unit character area The average color of the unit character area is calculated by referring to the color information of the image.
The image compression apparatus according to Embodiment 2, wherein
[0109]
<Embodiment 7> Using the average color of the unit character area calculated by the average color calculation means, the first histogram creating means uses a color space histogram in a character area consisting of the unit character areas as a first histogram. create
The image compression apparatus according to Embodiment 2, wherein
[0110]
<Embodiment 8> The extraction unit extracts candidate representative colors that are candidates for the representative color of the unit character area in order from a color distribution having a high output frequency in the color space histogram.
The image compression apparatus according to Embodiment 7, wherein
[0111]
<Embodiment 9> The color assignment unit calculates a distance in a color space between the candidate representative color extracted by the extraction unit and the average color of the unit character area, and the distance is within a predetermined range. In some cases, the candidate representative color is assigned as the representative color of the unit character area.
The image compression apparatus according to embodiment 8, wherein
[0112]
<Embodiment 10> The color allocating unit calculates a distance in a color space between the candidate representative color extracted by the extracting unit and an average color of the unit character area, and the distance is within a predetermined range. If a character area consisting of unit character areas is an inverted character area, a predetermined color is assigned as a representative color of the unit character area
The image compression apparatus according to embodiment 8, wherein
[0113]
<Embodiment 11> The reduction means reduces the multi-valued image by converting the resolution of the multi-valued image using a resolution conversion parameter.
The image compression apparatus according to Embodiment 1, wherein
[0114]
<Embodiment 12> The reduction multi-value corresponding to the position corresponding to the reduction degree set by the reduction means based on the position information of the character area specified by the first area specification means. Fill unit character area in character area of image with surrounding color
The image compression apparatus according to Embodiment 1, wherein
[0115]
<Embodiment 13> The first compression means is compliant with JPEG compression.
The image compression apparatus according to Embodiment 1, wherein
[0116]
<Embodiment 14> The second compression means is compliant with MMR compression.
The image compression apparatus according to Embodiment 1, wherein
[0117]
<Embodiment 15> Third compression means for reversibly compressing the compressed data;
The image compression apparatus according to claim 1, further comprising:
[0118]
<Embodiment 16> An image decompression apparatus for decompressing compressed data,
A first compressed code obtained by compressing a character area or an inverted character area in a binary image obtained by binarizing the multi-valued image, and a unit character area in the reduced multi-valued image character area or the inverted character area of the multi-valued image. A second compressed code obtained by compressing the reduced multi-valued image filled with the surrounding color, position information of the character area or the inverted character area, and representative color information of the unit character area in the character area or the inverted character area. Input means for inputting compressed data including,
First decompression means for decompressing the first compressed code in the compressed data;
Second decompression means for decompressing the second compressed code in the compressed data;
Enlarging means for enlarging the reduced multi-valued image expanded by the second expanding means;
A synthesizing unit that synthesizes the binary image expanded in the first expansion stage and the multi-valued image expanded by the enlarging unit based on the position information and the representative color in the compressed data;
An image expansion apparatus comprising:
[0119]
<Embodiment 17> An image compression method for compressing an input multi-valued image,
A binarization step for binarizing the multi-valued image;
A first region specifying step of specifying a position of a character region in the binary image binarized in the binarization step and determining whether or not the specified character region is an inverted character region;
A second region specifying step for specifying the position of the unit character region in the character region specified in the first region specifying step;
A reduction step of reducing the multi-valued image;
Area type information indicating whether or not the character area specified in the first area specifying step is an inverted character area, position information of the unit character area specified in the second area specifying step, and the reduced multi-value image And a representative color extracting step of extracting a representative color of the unit character area,
Filling a unit character area in the character area of the reduced multi-valued image with a surrounding color based on the position information of the character area specified in the first area specifying step;
A first compression step of compressing the hole filling reduced multi-value image generated in the hole filling step;
A second compression step of compressing the partial binary image corresponding to the character region identified in the first region identification step;
The position information specified in the first and second area specifying steps, the first and second compressed codes generated in the first and second compression steps, and the unit character area extracted in the representative color extracting step An output process for outputting compressed data including representative color information of
An image compression method comprising:
[0120]
<Embodiment 18> An image decompression method for decompressing compressed data,
A first compressed code obtained by compressing a character area or an inverted character area in a binary image obtained by binarizing the multi-valued image, and a unit character area in the reduced multi-valued image character area or the inverted character area of the multi-valued image. A second compressed code obtained by compressing the reduced multi-valued image filled with the surrounding color, position information of the character area or the inverted character area, and representative color information of the unit character area in the character area or the inverted character area. An input process for inputting compressed data including,
A first decompression step of decompressing the first compressed code in the compressed data;
A second decompression step of decompressing the second compressed code in the compressed data;
An enlarging step of enlarging the reduced multi-valued image expanded in the second extending step;
A combining step of combining the binary image expanded in the first expansion step and the multi-valued image expanded in the expansion step based on the position information and the representative color in the compressed data;
An image decompression method comprising:
[0121]
<Embodiment 19> A program for realizing image compression for compressing an input multi-valued image,
A program code of a binarization step for binarizing the multi-valued image;
Program code of the first area specifying step for specifying the position of the character area in the binary image binarized in the binarizing step and determining whether the specified character area is an inverted character area When,
A program code of the second area specifying step for specifying the position of the unit character area in the character area specified in the first area specifying step;
A program code of a reduction process for reducing the multi-valued image;
Area type information indicating whether or not the character area specified in the first area specifying step is an inverted character area, position information of the unit character area specified in the second area specifying step, and the reduced multi-value image And a program code of a representative color extraction step for extracting a representative color of the unit character area,
Based on the position information of the character region specified in the first region specifying step, a program code of a filling step for filling a unit character region in the character region of the reduced multi-valued image with its peripheral color,
A program code of a first compression step for compressing the hole filling reduced multi-value image generated in the hole filling step;
A program code of a second compression step for compressing the partial binary image corresponding to the character region identified in the first region identification step;
The position information specified in the first and second area specifying steps, the first and second compressed codes generated in the first and second compression steps, and the unit character area extracted in the representative color extracting step Output process program code that outputs compressed data including representative color information
A program comprising:
[0122]
<Embodiment 20> A program for realizing image decompression for decompressing compressed data,
A first compressed code obtained by compressing a character area or an inverted character area in a binary image obtained by binarizing the multi-valued image, and a unit character area in the reduced multi-valued image character area or the inverted character area of the multi-valued image. A second compressed code obtained by compressing the reduced multi-valued image filled with the surrounding color, position information of the character area or the inverted character area, and representative color information of the unit character area in the character area or the inverted character area. Program code of the input process for inputting the compressed data including,
A program code of a first decompression step for decompressing the first compressed code in the compressed data;
A program code of a second decompression step for decompressing the second compressed code in the compressed data;
A program code for an enlarging process for enlarging the reduced multi-valued image expanded in the second extending process;
Based on the position information and the representative color in the compressed data, a program code of a synthesis step for synthesizing the binary image expanded in the first expansion step and the multi-value image expanded in the expansion step;
A program comprising:
[0123]
Although the embodiment has been described in detail above, the present invention may be applied to a system constituted by a plurality of devices, or may be applied to an apparatus constituted by one device.
[0124]
In the present invention, a software program (in the embodiment, a program corresponding to the flowchart shown in the figure) that realizes the functions of the above-described embodiment is directly or remotely supplied to the system or apparatus, and the computer of the system or apparatus Is also achieved by reading and executing the supplied program code.
[0125]
Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.
[0126]
In this case, the program may be in any form as long as it has a program function, such as an object code, a program executed by an interpreter, or script data supplied to the OS.
[0127]
As a recording medium for supplying the program, for example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card ROM, DVD (DVD-ROM, DVD-R) and the like.
[0128]
As another program supply method, a client computer browser is used to connect to an Internet homepage, and the computer program of the present invention itself or a compressed file including an automatic installation function is downloaded from the homepage to a recording medium such as a hard disk. Can also be supplied. It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.
[0129]
In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. It is also possible to execute the encrypted program by using the key information and install the program on a computer.
[0130]
In addition to the functions of the above-described embodiments being realized by the computer executing the read program, the OS running on the computer based on the instruction of the program is a part of the actual processing. Alternatively, the functions of the above-described embodiment can be realized by performing all of them and performing the processing.
[0131]
Furthermore, after the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion board or The CPU or the like provided in 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.
[0132]
【The invention's effect】
As described above, according to the present invention, it is possible to provide an image processing technique capable of generating a good restored image and performing image compression that does not reduce the image quality of the compression target.
[Brief description of the drawings]
FIG. 1 is a diagram showing a schematic configuration of an image compression apparatus according to an embodiment of the present invention.
FIG. 2 is a diagram showing an example of an input image according to the embodiment of the present invention.
FIG. 3 is a flowchart illustrating a binarization process executed by a binarization unit according to the embodiment of this invention.
FIG. 4 is a diagram illustrating an example of a histogram of an input image according to the embodiment of this invention.
FIG. 5 is a flowchart illustrating processing executed by an area specifying unit A according to the embodiment of this invention.
FIG. 6 is a flowchart illustrating processing executed by an area specifying unit B according to the embodiment of this invention.
FIG. 7 is a diagram showing an example of a binary image according to the embodiment of the present invention.
FIG. 8 is a diagram illustrating an example of a processing result by an area specifying unit A according to the embodiment of this invention.
FIG. 9 is a diagram illustrating an example of a processing result by an area specifying unit B according to the embodiment of this invention.
FIG. 10 is a flowchart illustrating processing executed by a representative color extraction unit according to the embodiment of this invention.
FIG. 11 is a flowchart showing details of representative color extraction processing according to the embodiment of the present invention.
FIG. 12A is a flowchart showing details of representative color extraction and color assignment processing in step S1006 according to the embodiment of the present invention;
FIG. 12B is a flowchart showing details of step S1503 according to the embodiment of the present invention.
FIG. 13 is a diagram for explaining processing of a representative color extraction unit according to the embodiment of this invention.
FIG. 14 is a diagram for explaining processing of a representative color extraction unit according to the embodiment of this invention;
FIG. 15 is a flowchart illustrating processing executed by a character area filling unit according to the embodiment of this invention.
FIG. 16 is a diagram showing a schematic configuration of an image expansion apparatus according to an embodiment of the present invention.
[Explanation of symbols]
101 Input image
102 Binarization unit
103 Binary image
104 Area specifying part A
105 Area specifying part B
106 Character area coordinates
107 Partial binary image
108 MMR compression unit
109 Compression code A
110 Representative color extraction unit
111 Character representative color
112 Multi-valued image
113 Reduction part
114 Reduced multi-valued image
115 Character area filling part
116 JPEG compression unit
117 Compressed code B
118 Compressed data
1803 MMR extender
1804 Binary image
1805 Synthesis unit
1806 Expanded image
1809 JPEG decompression part
1810 Enlarged section
1811 Multi-valued image

Claims (15)

入力された多値画像を圧縮する画像圧縮装置であって、
前記多値画像を2値化する2値化手段と、
前記2値化手段で2値化された2値画像中の文字領域の位置を特定し、かつ特定された文字領域が反転文字領域であるか否かを判定する第1領域特定手段と、
前記第1領域特定手段で特定された文字領域中の単位文字領域の位置を特定する第2領域特定手段と、
前記多値画像を縮小して縮小多値画像を生成する縮小手段と、
前記第1領域特定手段で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記第2領域特定手段で特定された単位文字領域の位置情報及び前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出手段と、
前記第1領域特定手段で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め手段と、
前記穴埋め手段で生成された穴埋め縮小多値画像を圧縮する第1圧縮手段と、
前記第1領域特定手段で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮手段と、
前記第1及び第2領域特定手段で特定された位置情報と、前記第1及び第2圧縮手段で生成された第1及び第2圧縮コードと、前記代表色抽出手段で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力手段とを備え、
前記代表色抽出手段は、
前記第2領域特定手段で特定された単位文字領域の位置情報を用いて、前記縮小多値画像の色情報を参照することにより、前記単位文字領域の平均色を算出する平均色算出手段と、
前記平均色算出手段で生成された単位文字領域の平均色を用いて、前記単位文字領域からなる文字領域内における色空間ヒストグラムを第1ヒストグラムを作成する第1ヒストグラム作成手段と、
前記第1ヒストグラム中で出力頻度の高い色分布から順に、前記単位文字領域の代表色の候補となる候補代表色を抽出する抽出手段と、
前記第1領域特定手段で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記抽出手段で抽出された候補代表色と前記単位文字領域の平均色に基づいて、前記候補代表色を前記単位文字領域の代表色に割り当てる色割当手段とを備え、
前記色割当手段は、前記抽出手段で抽出された候補代表色と、前記単位文字領域の平均色との間の色空間上の距離を計算し、
その距離が所定範囲内であり、かつ前記領域種別情報が単位文字領域からなる文字領域が反転文字領域であることを示している場合には、所定色を前記単位文字領域の代表色として割り当て、
その距離が所定範囲内であり、かつ前記領域種別情報が単位文字領域からなる文字領域が反転文字領域でないことを示している場合には、前記候補代表色を前記単位文字領域の代表色として割り当てる
ことを特徴とする画像圧縮装置。
An image compression device for compressing an input multi-valued image,
Binarization means for binarizing the multi-valued image;
First area specifying means for specifying a position of a character area in the binary image binarized by the binarizing means and determining whether or not the specified character area is an inverted character area;
Second area specifying means for specifying the position of the unit character area in the character area specified by the first area specifying means;
Reduction means for reducing the multi-value image to generate a reduced multi-value image ;
Area type information indicating whether the character area specified by the first area specifying means is an inverted character area, position information of the unit character area specified by the second area specifying means, and the reduced multi-value image And a representative color extracting means for extracting a representative color of the unit character area,
A filling means for filling a unit character area in the character area of the reduced multi-valued image with its peripheral color based on the position information of the character area specified by the first area specifying means;
First compression means for compressing the hole filling reduced multi-value image generated by the hole filling means;
Second compression means for compressing a partial binary image corresponding to the character area specified by the first area specifying means;
Position information specified by the first and second area specifying means, first and second compressed codes generated by the first and second compressing means, and unit character area extracted by the representative color extracting means Output means for outputting compressed data including representative color information of
The representative color extracting means includes
Average color calculation means for calculating an average color of the unit character area by referring to color information of the reduced multi-value image using position information of the unit character area specified by the second area specifying means;
First histogram creating means for creating a first histogram of a color space histogram in a character area composed of the unit character areas using an average color of the unit character areas generated by the average color calculating means;
Extraction means for extracting candidate representative colors that are candidates for representative colors of the unit character region in order from a color distribution having a high output frequency in the first histogram;
Based on area type information indicating whether or not the character area specified by the first area specifying means is an inverted character area, the candidate representative color extracted by the extracting means and the average color of the unit character area, Color allocating means for allocating the candidate representative color to the representative color of the unit character area,
The color assigning means calculates a distance on the color space between the candidate representative color extracted by the extracting means and the average color of the unit character area;
When the distance is within a predetermined range and the area type information indicates that the character area consisting of the unit character area is an inverted character area, a predetermined color is assigned as a representative color of the unit character area,
When the distance is within a predetermined range and the area type information indicates that the character area consisting of the unit character area is not the reverse character area, the candidate representative color is assigned as the representative color of the unit character area. An image compression apparatus.
前記2値化手段は、前記多値画像に基づく第2ヒストグラムを作成する第2ヒストグラム作成手段と、The binarizing means includes second histogram creating means for creating a second histogram based on the multi-valued image;
前記第2ヒストグラムに基づいて、前記多値画像を2値化するための2値化閾値を算出する2値化閾値算出手段とBinarization threshold value calculation means for calculating a binarization threshold value for binarizing the multi-valued image based on the second histogram;
を備えることを特徴とする請求項1に記載の画像圧縮装置。The image compression apparatus according to claim 1, further comprising:
前記第1領域特定手段は、前記2値画像において所定値をとる画素の輪郭線追跡を行って特定される領域群を、それぞれ文字領域あるいは自然画像領域に特定し、かつ文字領域に対しては反転文字領域であるか否かを特定し、前記領域群の各領域の位置情報、サイズ情報及びその種類を示す属性情報を特定するThe first area specifying means specifies an area group specified by performing outline tracing of pixels having a predetermined value in the binary image as a character area or a natural image area, and for a character area, Specify whether or not it is a reverse character area, and specify position information, size information, and attribute information indicating the type of each area of the area group
ことを特徴とする請求項1に記載の画像圧縮装置。The image compression apparatus according to claim 1.
前記第2領域特定手段は、前記第1領域特定手段で特定された文字領域中の所定値をとる画素の集合を単位文字領域として特定し、前記単位文字領域の位置情報とサイズ情報を特定するThe second area specifying means specifies a set of pixels having a predetermined value in the character area specified by the first area specifying means as a unit character area, and specifies position information and size information of the unit character area.
ことを特徴とする請求項1に記載の画像圧縮装置。The image compression apparatus according to claim 1.
前記平均色算出手段は、前記第2領域特定手段で特定された単位文字領域の位置情報を用いて、前記単位文字領域内の所定値をとる画素に対応する前記縮小多値画像の色情報を参照することにより、該単位文字領域の平均色を算出するThe average color calculating means uses the position information of the unit character area specified by the second area specifying means to calculate the color information of the reduced multi-value image corresponding to the pixel taking a predetermined value in the unit character area. The average color of the unit character area is calculated by referring to it.
ことを特徴とする請求項1に記載の画像圧縮装置。The image compression apparatus according to claim 1.
前記縮小手段は、解像度変換パラメータを用いて、前記多値画像を解像度変換することで該多値画像を縮小して縮小多値画像を生成するThe reduction means generates a reduced multi-value image by reducing the multi-value image by converting the resolution of the multi-value image using a resolution conversion parameter.
ことを特徴とする請求項1に記載の画像圧縮装置。The image compression apparatus according to claim 1.
前記穴埋め手段は、前記第1領域特定手段で特定された文字領域の位置情報に基づいて、前記縮小手段で設定されている縮小度に応じた位置に対応する前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めするIn the character area of the reduced multi-valued image corresponding to the position corresponding to the degree of reduction set by the reduction means based on the position information of the character area specified by the first area specifying means. Fill the unit character area of with the surrounding color
ことを特徴とする請求項1に記載の画像圧縮装置。The image compression apparatus according to claim 1.
前記第1圧縮手段は、JPEG圧縮準拠であるThe first compression means is compliant with JPEG compression.
ことを特徴とする請求項1に記載の画像圧縮装置。The image compression apparatus according to claim 1.
前記第2圧縮手段は、MMR圧縮準拠であるThe second compression means is compliant with MMR compression.
ことを特徴とする請求項1に記載の画像圧縮装置。The image compression apparatus according to claim 1.
前記圧縮データを可逆圧縮する第3圧縮手段を更に備えるThird compression means for reversibly compressing the compressed data is further provided.
ことを特徴とする請求項1に記載の画像圧縮装置。The image compression apparatus according to claim 1.
圧縮データを伸長する画像伸長装置であって、
多値画像を2値化した2値画像中の文字領域あるいは反転文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域あるいは反転文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域あるいは反転文字領域の位置情報と、該文字領域あるいは反転文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力手段と、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長手段と、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長手段と、
前記第2伸長手段で伸長された縮小多値画像を拡大する拡大手段と、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大手段で拡大された多値画像を合成する合成手段とを備え、
前記代表色抽出情報は、前記圧縮データを出力する請求項1に記載の画像圧縮装置の代表色抽出手段によって生成されたものである
ことを特徴とする画像伸長装置。
An image decompression device for decompressing compressed data,
A first compressed code obtained by compressing a character area or an inverted character area in a binary image obtained by binarizing the multi-valued image, and a unit character area in the reduced multi-valued image character area or the inverted character area of the multi-valued image. A second compressed code obtained by compressing the reduced multi-valued image filled with the surrounding color, position information of the character area or the inverted character area, and representative color information of the unit character area in the character area or the inverted character area. Input means for inputting compressed data including,
First decompression means for decompressing the first compressed code in the compressed data;
Second decompression means for decompressing the second compressed code in the compressed data;
Enlarging means for enlarging the reduced multi-valued image expanded by the second expanding means;
Based on the position information and the representative color in the compressed data, comprising: a combining unit that combines the binary image expanded in the first expansion stage and the multi-valued image expanded by the expansion unit;
2. The image decompression apparatus according to claim 1, wherein the representative color extraction information is generated by a representative color extraction unit of the image compression apparatus according to claim 1 which outputs the compressed data .
入力された多値画像を圧縮する画像圧縮方法であって、An image compression method for compressing an input multi-valued image,
前記多値画像を2値化する2値化工程と、A binarization step for binarizing the multi-valued image;
前記2値化工程で2値化された2値画像中の文字領域の位置を特定し、かつ特定された文字領域が反転文字領域であるか否かを判定する第1領域特定工程と、A first region specifying step of specifying a position of a character region in the binary image binarized in the binarization step and determining whether or not the specified character region is an inverted character region;
前記第1領域特定工程で特定された文字領域中の単位文字領域の位置を特定する第2領域特定工程と、A second region specifying step for specifying the position of the unit character region in the character region specified in the first region specifying step;
前記多値画像を縮小して縮小多値画像を生成する縮小工程と、A reduction step of reducing the multi-value image to generate a reduced multi-value image;
前記第1領域特定工程で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記第2領域特定工程で特定された単位文字領域の位置情報及び前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出工程と、Area type information indicating whether or not the character area specified in the first area specifying step is an inverted character area, position information of the unit character area specified in the second area specifying step, and the reduced multi-value image And a representative color extracting step of extracting a representative color of the unit character area,
前記第1領域特定工程で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め工程と、Filling a unit character area in the character area of the reduced multi-valued image with a surrounding color based on the position information of the character area specified in the first area specifying step;
前記穴埋め工程で生成された穴埋め縮小多値画像を圧縮する第1圧縮工程と、A first compression step of compressing the hole filling reduced multi-value image generated in the hole filling step;
前記第1領域特定工程で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮工程と、A second compression step of compressing the partial binary image corresponding to the character region identified in the first region identification step;
前記第1及び第2領域特定工程で特定された位置情報と、前記第1及び第2圧縮工程で生成された第1及び第2圧縮コードと、前記代表色抽出工程で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力工程とを備え、The position information specified in the first and second area specifying steps, the first and second compressed codes generated in the first and second compression steps, and the unit character area extracted in the representative color extracting step An output process for outputting compressed data including representative color information of
前記代表色抽出工程は、The representative color extraction step includes:
前記第2領域特定工程で特定された単位文字領域の位置情報を用いて、前記縮小多値画像の色情報を参照することにより、前記単位文字領域の平均色を算出する平均色算出工程と、An average color calculating step of calculating an average color of the unit character region by referring to color information of the reduced multi-valued image using the position information of the unit character region specified in the second region specifying step;
前記平均色算出工程で生成された単位文字領域の平均色を用いて、前記単位文字領域からなる文字領域内における色空間ヒストグラムを第1ヒストグラムを作成する第1ヒストグラム作成工程と、A first histogram creating step of creating a first histogram of a color space histogram in a character region composed of the unit character regions using an average color of the unit character regions generated in the average color calculating step;
前記第1ヒストグラム中で出力頻度の高い色分布から順に、前記単位文字領域の代表色の候補となる候補代表色を抽出する抽出工程と、An extraction step of extracting candidate representative colors that are candidates for representative colors of the unit character region in order from a color distribution having a high output frequency in the first histogram;
前記第1領域特定工程で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記抽出工程で抽出された候補代表色と前記単位文字領域の平均色に基づいて、前記候補代表色を前記単位文字領域の代表色に割り当てる色割当工程とを備え、Based on the area type information indicating whether or not the character area identified in the first area identification step is an inverted character area, the candidate representative color extracted in the extraction step and the average color of the unit character area, Assigning the candidate representative color to a representative color of the unit character area,
前記色割当工程は、前記抽出工程で抽出された候補代表色と、前記単位文字領域の平均色との間の色空間上の距離を計算し、The color allocation step calculates a distance on the color space between the candidate representative color extracted in the extraction step and the average color of the unit character area,
その距離が所定範囲内であり、かつ前記領域種別情報が単位文字領域からなる文字領域が反転文字領域であることを示している場合には、所定色を前記単位文字領域の代表色として割り当て、When the distance is within a predetermined range and the area type information indicates that the character area consisting of the unit character area is an inverted character area, a predetermined color is assigned as a representative color of the unit character area,
その距離が所定範囲内であり、かつ前記領域種別情報が単位文字領域からなる文字領域が反転文字領域でないことを示している場合には、前記候補代表色を前記単位文字領域の代表色として割り当てるWhen the distance is within a predetermined range and the area type information indicates that the character area consisting of the unit character area is not the reverse character area, the candidate representative color is assigned as the representative color of the unit character area.
ことを特徴とする画像圧縮方法。An image compression method characterized by the above.
圧縮データを伸長する画像伸長方法であって、An image decompression method for decompressing compressed data,
多値画像を2値化した2値画像中の文字領域あるいは反転文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域あるいは反転文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域あるいは反転文字領域の位置情報と、該文字領域あるいは反転文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力工程と、A first compressed code obtained by compressing a character area or an inverted character area in a binary image obtained by binarizing the multi-valued image, and a unit character area in the reduced multi-valued image character area or the inverted character area of the multi-valued image. A second compressed code obtained by compressing the reduced multi-valued image filled with the surrounding color, position information of the character area or the inverted character area, and representative color information of the unit character area in the character area or the inverted character area. An input process for inputting compressed data including,
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長工程と、A first decompression step of decompressing the first compressed code in the compressed data;
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長工程と、A second decompression step of decompressing the second compressed code in the compressed data;
前記第2伸長工程で伸長された縮小多値画像を拡大する拡大工程と、An enlarging step of enlarging the reduced multi-valued image expanded in the second extending step;
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大工程で拡大された多値画像を合成する合成工程とを備え、Based on the position information and the representative color in the compressed data, comprising a combining step of combining the binary image expanded in the first expansion step and the multi-value image expanded in the expansion step,
前記代表色抽出情報は、前記圧縮データを出力する請求項12に記載の画像圧縮方法の代表色抽出工程によって生成されたものである13. The representative color extraction information is generated by a representative color extraction step of an image compression method according to claim 12, which outputs the compressed data.
ことを特徴とする画像伸長方法。An image decompression method characterized by the above.
入力された多値画像を圧縮する画像圧縮をコンピュータに実行させるためのプログラムであって、A program for causing a computer to execute image compression for compressing an input multi-valued image,
前記多値画像を2値化する2値化工程と、A binarization step for binarizing the multi-valued image;
前記2値化工程で2値化された2値画像中の文字領域の位置を特定し、かつ特定された文字領域が反転文字領域であるか否かを判定する第1領域特定工程と、A first region specifying step of specifying a position of a character region in the binary image binarized in the binarization step and determining whether or not the specified character region is an inverted character region;
前記第1領域特定工程で特定された文字領域中の単位文字領域の位置を特定する第2領域特定工程と、A second region specifying step for specifying the position of the unit character region in the character region specified in the first region specifying step;
前記多値画像を縮小して縮小多値画像を生成する縮小工程と、A reduction step of reducing the multi-value image to generate a reduced multi-value image;
前記第1領域特定工程で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記第2領域特定工程で特定された単位文字領域の位置情報及び前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出工程と、Area type information indicating whether or not the character area specified in the first area specifying step is an inverted character area, position information of the unit character area specified in the second area specifying step, and the reduced multi-value image And a representative color extracting step of extracting a representative color of the unit character area,
前記第1領域特定工程で特定された文字領域の位置情報に基づいて、前記縮小多値画像Based on the position information of the character area specified in the first area specifying step, the reduced multi-value image の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め工程と、A filling process for filling the unit character area in the character area with the surrounding color;
前記穴埋め工程で生成された穴埋め縮小多値画像を圧縮する第1圧縮工程と、A first compression step of compressing the hole filling reduced multi-value image generated in the hole filling step;
前記第1領域特定工程で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮工程と、A second compression step of compressing the partial binary image corresponding to the character region identified in the first region identification step;
前記第1及び第2領域特定工程で特定された位置情報と、前記第1及び第2圧縮工程で生成された第1及び第2圧縮コードと、前記代表色抽出工程で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力工程とをコンピュータに実行させ、The position information specified in the first and second area specifying steps, the first and second compressed codes generated in the first and second compression steps, and the unit character area extracted in the representative color extracting step An output step of outputting compressed data including representative color information of the computer,
前記代表色抽出工程は、The representative color extraction step includes:
前記第2領域特定工程で特定された単位文字領域の位置情報を用いて、前記縮小多値画像の色情報を参照することにより、前記単位文字領域の平均色を算出する平均色算出工程と、An average color calculating step of calculating an average color of the unit character region by referring to color information of the reduced multi-valued image using the position information of the unit character region specified in the second region specifying step;
前記平均色算出工程で生成された単位文字領域の平均色を用いて、前記単位文字領域からなる文字領域内における色空間ヒストグラムを第1ヒストグラムを作成する第1ヒストグラム作成工程と、A first histogram creating step of creating a first histogram of a color space histogram in a character region composed of the unit character regions using an average color of the unit character regions generated in the average color calculating step;
前記第1ヒストグラム中で出力頻度の高い色分布から順に、前記単位文字領域の代表色の候補となる候補代表色を抽出する抽出工程と、An extraction step of extracting candidate representative colors that are candidates for representative colors of the unit character region in order from a color distribution having a high output frequency in the first histogram;
前記第1領域特定工程で特定された文字領域が反転文字領域であるか否かを示す領域種別情報と、前記抽出工程で抽出された候補代表色と前記単位文字領域の平均色に基づいて、前記候補代表色を前記単位文字領域の代表色に割り当てる色割当工程とを備え、Based on the area type information indicating whether or not the character area identified in the first area identification step is an inverted character area, the candidate representative color extracted in the extraction step and the average color of the unit character area, Assigning the candidate representative color to a representative color of the unit character area,
前記色割当工程は、前記抽出工程で抽出された候補代表色と、前記単位文字領域の平均色との間の色空間上の距離を計算し、The color allocation step calculates a distance on the color space between the candidate representative color extracted in the extraction step and the average color of the unit character area,
その距離が所定範囲内であり、かつ前記領域種別情報が単位文字領域からなる文字領域が反転文字領域であることを示している場合には、所定色を前記単位文字領域の代表色として割り当て、When the distance is within a predetermined range and the area type information indicates that the character area consisting of the unit character area is an inverted character area, a predetermined color is assigned as a representative color of the unit character area,
その距離が所定範囲内であり、かつ前記領域種別情報が単位文字領域からなる文字領域が反転文字領域でないことを示している場合には、前記候補代表色を前記単位文字領域の代表色として割り当てるWhen the distance is within a predetermined range and the area type information indicates that the character area consisting of the unit character area is not the reverse character area, the candidate representative color is assigned as the representative color of the unit character area.
ことを特徴とするプログラム。A program characterized by that.
圧縮データを伸長する画像伸長をコンピュータに実行させるためのプログラムであって、
多値画像を2値化した2値画像中の文字領域あるいは反転文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域あるいは反転文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域あるいは反転文字領域の位置情報と、該文字領域あるいは反転文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力工程と、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長工程と、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長工程と、
前記第2伸長工程で伸長された縮小多値画像を拡大する拡大工程と、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大工程で拡大された多値画像を合成する合成工程とをコンピュータに実行させ、
前記代表色抽出情報は、前記圧縮データを出力する請求項12に記載の画像圧縮方法の代表色抽出工程によって生成されたものである
ことを特徴とするプログラム。
A program for causing a computer to execute image decompression for decompressing compressed data,
A first compressed code obtained by compressing a character area or an inverted character area in a binary image obtained by binarizing the multi-valued image, and a unit character area in the reduced multi-valued image character area or the inverted character area of the multi-valued image. A second compressed code obtained by compressing the reduced multi-valued image filled with the surrounding color, position information of the character area or the inverted character area, and representative color information of the unit character area in the character area or the inverted character area. An input process for inputting compressed data including,
A first decompression step of decompressing the first compressed code in the compressed data;
A second decompression step of decompressing the second compressed code in the compressed data;
An enlarging step of enlarging the reduced multi-valued image expanded in the second extending step;
Based on the position information and the representative color in the compressed data, the computer executes a combining step of combining the binary image expanded in the first expansion step and the multi-value image expanded in the expansion step. ,
13. The program according to claim 12, wherein the representative color extraction information is generated by a representative color extraction step of the image compression method according to claim 12 which outputs the compressed data .
JP2003046226A 2003-02-24 2003-02-24 Image compression apparatus and method, image expansion apparatus and method, and program Expired - Fee Related JP4047192B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2003046226A JP4047192B2 (en) 2003-02-24 2003-02-24 Image compression apparatus and method, image expansion apparatus and method, and program
US10/781,671 US7386168B2 (en) 2003-02-24 2004-02-20 Image processing apparatus
CNB2004100045687A CN1301492C (en) 2003-02-24 2004-02-23 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003046226A JP4047192B2 (en) 2003-02-24 2003-02-24 Image compression apparatus and method, image expansion apparatus and method, and program

Publications (2)

Publication Number Publication Date
JP2004260327A JP2004260327A (en) 2004-09-16
JP4047192B2 true JP4047192B2 (en) 2008-02-13

Family

ID=32866530

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003046226A Expired - Fee Related JP4047192B2 (en) 2003-02-24 2003-02-24 Image compression apparatus and method, image expansion apparatus and method, and program

Country Status (3)

Country Link
US (1) US7386168B2 (en)
JP (1) JP4047192B2 (en)
CN (1) CN1301492C (en)

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4441300B2 (en) * 2004-03-25 2010-03-31 株式会社リコー Image processing apparatus, image processing method, image processing program, and recording medium storing the program
JP2006166355A (en) * 2004-12-10 2006-06-22 Ricoh Co Ltd Image processing apparatus, image processing method, image processing program and recording medium
JP2006222940A (en) * 2005-01-14 2006-08-24 Ricoh Co Ltd Image processing apparatus
JP4609155B2 (en) * 2005-03-30 2011-01-12 セイコーエプソン株式会社 Image compression method, image compression apparatus, image compression program, and image reading apparatus
JP4817821B2 (en) * 2005-12-01 2011-11-16 キヤノン株式会社 Image processing apparatus, control method therefor, computer program, and computer-readable storage medium
US20070176934A1 (en) * 2006-01-30 2007-08-02 Nokia Corporation Method, program, and apparatus enabling font color selection enhancement
JP4732250B2 (en) 2006-06-14 2011-07-27 キヤノン株式会社 Information processing apparatus, control method, and computer program
JP4816328B2 (en) 2006-08-24 2011-11-16 富士ゼロックス株式会社 Image processing system, image compression system, image editing system, image processing program, and image processing apparatus
US8041135B2 (en) * 2006-10-20 2011-10-18 Canon Kabushiki Kaisha Image encoding apparatus and control method thereof
JP4990751B2 (en) * 2007-12-25 2012-08-01 京セラドキュメントソリューションズ株式会社 Image processing apparatus and image reading apparatus
JP4957570B2 (en) * 2008-01-30 2012-06-20 富士ゼロックス株式会社 Image processing device
JP2009217811A (en) * 2008-02-12 2009-09-24 Seiko Epson Corp Image reading device, method for reading image, and image reading program
US20090202151A1 (en) * 2008-02-13 2009-08-13 Kabushiki Kaisha Toshiba Format processing apparatus for document image and format processing method for the same
JP5132530B2 (en) * 2008-02-19 2013-01-30 キヤノン株式会社 Image coding apparatus, image processing apparatus, and control method thereof
JP4902569B2 (en) * 2008-02-19 2012-03-21 キヤノン株式会社 Image coding apparatus and control method thereof
WO2010140291A1 (en) * 2009-06-02 2010-12-09 日本電気株式会社 Information processing device
JP2012199669A (en) * 2011-03-18 2012-10-18 Seiko Epson Corp Image processing apparatus, image processing method, image processing program, and printer
US8855413B2 (en) * 2011-05-13 2014-10-07 Abbyy Development Llc Image reflow at word boundaries
JP5701181B2 (en) 2011-08-18 2015-04-15 株式会社Pfu Image processing apparatus, image processing method, and computer program
JP5701182B2 (en) * 2011-08-18 2015-04-15 株式会社Pfu Image processing apparatus, image processing method, and computer program
JP5893379B2 (en) 2011-12-13 2016-03-23 キヤノン株式会社 Image compression apparatus, image compression method, and computer program
JP5847062B2 (en) * 2012-11-27 2016-01-20 京セラドキュメントソリューションズ株式会社 Image processing device
JP5730274B2 (en) * 2012-11-27 2015-06-03 京セラドキュメントソリューションズ株式会社 Image processing device
KR102016424B1 (en) * 2013-04-12 2019-09-02 삼성디스플레이 주식회사 Data processing device and display system having the same
JP6370080B2 (en) * 2014-04-02 2018-08-08 キヤノン株式会社 Image processing apparatus, image processing method, and program.
KR101890831B1 (en) * 2017-01-11 2018-09-28 주식회사 펍플 Method for Providing E-Book Service and Computer Program Therefore
JP7185451B2 (en) * 2018-09-10 2022-12-07 キヤノン株式会社 Image processing device, image processing method, and program
JP7362405B2 (en) * 2019-10-09 2023-10-17 キヤノン株式会社 Image processing device, image processing method, and program

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5250109B2 (en) * 1974-06-28 1977-12-22
JP3231800B2 (en) * 1991-04-26 2001-11-26 キヤノン株式会社 Image encoding apparatus and image encoding method
JPH04358475A (en) * 1991-06-05 1992-12-11 Canon Inc Picture encoder
JP2001134773A (en) * 1999-11-08 2001-05-18 Canon Inc Device and method for processing image
US6965695B2 (en) * 2000-03-23 2005-11-15 Ricoh Company, Ltd. Method and system for processing character edge area data
US6999619B2 (en) * 2000-07-12 2006-02-14 Canon Kabushiki Kaisha Processing for accurate reproduction of symbols and other high-frequency areas in a color image
JP3904840B2 (en) * 2000-08-15 2007-04-11 富士通株式会社 Ruled line extraction device for extracting ruled lines from multi-valued images
JP4366003B2 (en) 2000-08-25 2009-11-18 キヤノン株式会社 Image processing apparatus and image processing method
US7133565B2 (en) * 2000-08-25 2006-11-07 Canon Kabushiki Kaisha Image processing apparatus and method
JP2002165105A (en) 2000-11-27 2002-06-07 Canon Inc Image processing device, its method, and recording medium
JP2002271611A (en) * 2001-03-14 2002-09-20 Fujitsu Ltd Image processing unit

Also Published As

Publication number Publication date
US20040165782A1 (en) 2004-08-26
CN1301492C (en) 2007-02-21
CN1525403A (en) 2004-09-01
JP2004260327A (en) 2004-09-16
US7386168B2 (en) 2008-06-10

Similar Documents

Publication Publication Date Title
JP4047192B2 (en) Image compression apparatus and method, image expansion apparatus and method, and program
US8077986B2 (en) Information processing apparatus, method of controlling same and computer program
JP4717562B2 (en) Image processing apparatus and method
US20140320872A1 (en) Image processing apparatus, image processing method, and image processing program
JP5036430B2 (en) Image processing apparatus and control method thereof
US20100097656A1 (en) Image processing apparatus and image processing method
JP4366003B2 (en) Image processing apparatus and image processing method
JP5137759B2 (en) Image processing device
JP4708888B2 (en) Image processing apparatus, image processing method, and computer program
JP3715905B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP5893379B2 (en) Image compression apparatus, image compression method, and computer program
JP4235583B2 (en) Image processing apparatus, image processing program, and storage medium
US8532385B2 (en) Image processing apparatus and image processing method
JP4364809B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2003338935A (en) Image processing equipment and method therefor
JP6370080B2 (en) Image processing apparatus, image processing method, and program.
JP3870147B2 (en) Image compression apparatus, image expansion apparatus, method thereof, and program
JP3817506B2 (en) Image compression apparatus, image expansion apparatus, method thereof, and program
JP2003348361A (en) Image processing apparatus
JP2007005907A (en) Image processing method, image processor, image processing program, and recording medium
JP3346051B2 (en) Image processing device
JP2003338934A (en) Image processing equipment and method therefor
JP2007335983A (en) Image processor
JP2005204206A (en) Image processing apparatus, image processing program, and storage medium
JP4383187B2 (en) Image processing apparatus, image processing program, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070813

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071011

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: 20071102

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071121

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

Free format text: PAYMENT UNTIL: 20101130

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4047192

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20101130

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111130

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121130

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131130

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees