JP2004128881A - Image compression apparatus, image expansion apparatus, and method for them, and program - Google Patents

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

Info

Publication number
JP2004128881A
JP2004128881A JP2002290148A JP2002290148A JP2004128881A JP 2004128881 A JP2004128881 A JP 2004128881A JP 2002290148 A JP2002290148 A JP 2002290148A JP 2002290148 A JP2002290148 A JP 2002290148A JP 2004128881 A JP2004128881 A JP 2004128881A
Authority
JP
Japan
Prior art keywords
image
character area
unit
area
compression
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.)
Granted
Application number
JP2002290148A
Other languages
Japanese (ja)
Other versions
JP3817506B2 (en
Inventor
Reiji Misawa
三沢 玲司
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 JP2002290148A priority Critical patent/JP3817506B2/en
Publication of JP2004128881A publication Critical patent/JP2004128881A/en
Application granted granted Critical
Publication of JP3817506B2 publication Critical patent/JP3817506B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image compression apparatus which generates an excellent decoded image without degrading image quality of a compression object and efficiently compresses an image at low cost performance, and also to provide an image expansion apparatus, a method for them, and a program. <P>SOLUTION: A binary section 102 binarizes a multi-value image 101. An area particularizing section A104 particularizes a position of a character area in a binary image 103. An area particularizing section B105 particularizes a position of a unit character area in the character area. A reduction section 114 reduces a processing section image 101. A representative color extract section 110 extracts a representative color of the unit character area on the basis of position information of the unit character area and a reduced multi-value image 118. A character area filling-in section 113 fills in the character area of the reduced multi-value image by its peripheral color on the basis of the position information of the character area. A JPEG compression section 108 compresses a partial binary image 107 corresponding to the character area. An MMR compression section 108 compresses the partial binary image 107 corresponding to the character area. Compression data 117 including the position information, compression codes generated by each compression section, and representative color information of the unit character area are outputted. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、入力された多値画像を圧縮する画像圧縮装置、その画像圧縮装置で生成された圧縮データを伸長する画像伸長装置及びそれらの方法、プログラムに関するものである。
【0002】
【従来の技術】
近年、スキャナの普及により文書の電子化が進んでいる。電子化された文書をフルカラービットマップ形式で保存すると、例えば、A4サイズの場合では、読取解像度300dpiで、約24Mbyteにもなり、必要なメモリが膨大になる。このような大容量のデータは、メールに添付して送信するのに適したサイズとはいえない。
【0003】
そこで、フルカラー画像を圧縮することが通常行われており、その圧縮方法としてJPEGが知られている。JPEGは、写真等の自然画像を圧縮するには非常に効果的だが、文字部をJPEG圧縮するとモスキートノイズと呼ばれる画像劣化が発生する。そこで、従来では、入力された画像を文字領域及び写真領域に領域分割を行い、文字領域部分は2値化した上でMMR圧縮、写真領域部分はJPEG圧縮を行うことで、文字領域の品位を保ったまま、フルカラー文書も小さなデータサイズで表現する方法があった。
【0004】
この方法は、伸長時には、2値画像の白部分はJPEG画像を透過し、黒部分は代表色をのせた文字で表現する。また、JPEG圧縮前に文字領域を文字近辺の色で穴埋めすることにより、さらに圧縮率を向上させる方法があった。また、効率的な圧縮、かつ伸長時に良好な画像の再現を実現するために、文字領域の代表色を抽出する技術が必須となっている。
【0005】
【発明が解決しようとする課題】
しかしながら、従来の技術では、文字領域の代表色を抽出するためには、入力された多値画像とそれを2値化した2値画像を必要とするため、これらの2種類の画像をワークメモリ等のメモリに一時的に保持しておく必要があった。例えば、入力された多値画像がA4サイズの場合では読取解像度300dpiで、約24Mbyteの一時的なメモリを必要とする。特に、画像読取機能を備えた複合機やスキャナ等に、従来のような圧縮技術を組み込む場合においては、メモリ量の削減はコスト面においても望まれる。
【0006】
本発明は上記の課題を解決するためになされたものであり、良好な復元画像を生成することでき、かつ圧縮対象の画像品位を低下させない画像圧縮を効率的にかつ低コストパフォーマンスで行うことができる画像圧縮装置、画像伸長装置及びそれらの方法、プログラムを提供することを目的とする。
【0007】
【課題を解決するための手段】
上記の目的を達成するための本発明による画像圧縮装置は以下の構成を備える。即ち、
入力された多値画像を圧縮する画像圧縮装置であって、
前記多値画像を2値化する2値化手段と、
前記2値化手段で2値化された2値画像中の文字領域の位置を特定する第1領域特定手段と、
前記第1領域特定手段で特定された文字領域中の単位文字領域の位置を特定する第2領域特定手段と、
前記多値画像を縮小する縮小手段と、
前記第2領域特定手段で特定された単位文字領域の位置情報と前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出手段と、
前記第1領域特定手段で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め手段と、
前記穴埋め手段で生成された穴埋め縮小多値画像を圧縮する第1圧縮手段と、
前記第1領域特定手段で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮手段と、
前記第1及び第2領域特定手段で特定された位置情報と、前記第1及び第2圧縮手段で生成された第1及び第2圧縮コードと、前記代表色抽出手段で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力手段と
を備える。
【0008】
また、好ましくは、前記代表色抽出手段は、前記第2領域特定手段で特定された単位文字領域の位置情報を用いて、前記縮小多値画像の色情報を参照することにより、前記単位文字領域の平均色を算出する平均色算出手段と、
前記平均色算出手段で生成された単位文字領域の平均色から第1ヒストグラムを作成する第1ヒストグラム作成手段と、
前記第1ヒストグラムに基づいて、前記単位文字領域の代表色の候補となる候補代表色を抽出する抽出手段と、
前記抽出手段で抽出された候補代表色と前記単位文字領域の平均色に基づいて、前記候補代表色を前記単位文字の代表色に割り当てる色割当手段と
を備える。
【0009】
また、好ましくは、前記2値化手段は、前記多値画像に基づく第2ヒストグラムを作成する第2ヒストグラム作成手段と、
前記第2ヒストグラムに基づいて、前記多値画像を2値化するための2値化閾値を算出する2値化閾値算出手段と
を備える。
【0010】
また、好ましくは、前記第1領域特定手段は、前記2値画像において所定値をとる画素の輪郭線追跡を行って特定される領域群を、それぞれ文字領域あるいは自然画像領域に特定し、前記領域群の各領域の位置情報、サイズ情報及びその種類を示す属性情報を特定する。
【0011】
また、好ましくは、前記第2領域特定手段は、前記第1領域特定手段で特定された文字領域中の所定値をとる画素の集合を単位文字領域として特定し、前記単位文字領域の位置情報とサイズ情報を特定する。
【0012】
また、好ましくは、前記平均色算出手段は、前記第2領域特定手段で特定された単位文字領域の位置情報を用いて、前記単位文字領域内の所定値をとる画素に対応する前記縮小多値画像の色情報を参照することにより、該単位文字領域の平均色を算出する。
【0013】
また、好ましくは、前記第1ヒストグラム作成手段は、前記平均色算出手段で算出された単位文字領域の平均色を用いて、前記単位文字領域からなる文字領域内における色空間ヒストグラムを第1ヒストグラムとして作成する。
【0014】
また、好ましくは、前記抽出手段は、前記色空間ヒストグラム中で出力頻度の高い色分布から順に、前記単位文字領域の代表色の候補となる候補代表色を抽出する。
【0015】
また、好ましくは、前記色割当手段は、前記抽出手段で抽出された候補代表色と、前記単位文字領域の平均色との間の色空間上の距離を計算し、その距離が所定範囲内である場合に、前記候補代表色を前記単位文字領域の代表色として割り当る。
【0016】
また、好ましくは、前記縮小手段は、解像度変換パラメータを用いて、前記多値画像を解像度変換することで該多値画像を縮小する。
【0017】
また、好ましくは、前記穴埋め手段は、前記第1領域特定手段で特定された文字領域の位置情報に基づいて、前記縮小手段で設定されている縮小度に応じた位置に対応する前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする。
【0018】
また、好ましくは、前記第1圧縮手段は、JPEG圧縮準拠である。
【0019】
また、好ましくは、前記第2圧縮手段は、MMR圧縮準拠である。
【0020】
また、好ましくは、前記圧縮データを可逆圧縮する第3圧縮手段と
を更に備える。
【0021】
上記の目的を達成するための本発明による画像伸長装置は以下の構成を備える。即ち、
圧縮データを伸長する画像伸長装置であって、
多値画像を2値化した2値画像中の文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域の位置情報と、該文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力手段と、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長手段と、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長手段と、
前記第2伸長手段で伸長された縮小多値画像を拡大する拡大手段と、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大手段で拡大された多値画像を合成する合成手段と
を備える。
【0022】
上記の目的を達成するための本発明による画像圧縮方法は以下の構成を備える。即ち、
入力された多値画像を圧縮する画像圧縮方法であって、
前記多値画像を2値化する2値化工程と、
前記2値化工程で2値化された2値画像中の文字領域の位置を特定する第1領域特定工程と、
前記第1領域特定工程で特定された文字領域中の単位文字領域の位置を特定する第2領域特定工程と、
前記多値画像を縮小する縮小工程と、
前記第2領域特定工程で特定された単位文字領域の位置情報と前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出工程と、
前記第1領域特定工程で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め工程と、
前記穴埋め工程で生成された穴埋め縮小多値画像を圧縮する第1圧縮工程と、
前記第1領域特定工程で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮工程と、
前記第1及び第2領域特定工程で特定された位置情報と、前記第1及び第2圧縮工程で生成された第1及び第2圧縮コードと、前記代表色抽出工程で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力工程と
を備える。
【0023】
上記の目的を達成するための本発明による画像伸長方法は以下の構成を備える。即ち、
圧縮データを伸長する画像伸長方法であって、
多値画像を2値化した2値画像中の文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域の位置情報と、該文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力工程と、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長工程と、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長工程と、
前記第2伸長工程で伸長された縮小多値画像を拡大する拡大工程と、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大工程で拡大された多値画像を合成する合成工程と
を備える。
【0024】
上記の目的を達成するための本発明によるプログラムは以下の構成を備える。即ち、
入力された多値画像を圧縮する画像圧縮を実現するプログラムであって、
前記多値画像を2値化する2値化工程のプログラムコードと、
前記2値化工程で2値化された2値画像中の文字領域の位置を特定する第1領域特定工程のプログラムコードと、
前記第1領域特定工程で特定された文字領域中の単位文字領域の位置を特定する第2領域特定工程のプログラムコードと、
前記多値画像を縮小する縮小工程のプログラムコードと、
前記第2領域特定工程で特定された単位文字領域の位置情報と前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出工程のプログラムコードと、
前記第1領域特定工程で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め工程のプログラムコードと、
前記穴埋め工程で生成された穴埋め縮小多値画像を圧縮する第1圧縮工程のプログラムコードと、
前記第1領域特定工程で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮工程のプログラムコードと、
前記第1及び第2領域特定工程で特定された位置情報と、前記第1及び第2圧縮工程で生成された第1及び第2圧縮コードと、前記代表色抽出工程で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力工程のプログラムコードと
を備える。
【0025】
上記の目的を達成するための本発明によるプログラムは以下の構成を備える。即ち、
圧縮データを伸長する画像伸長を実現するプログラムであって、
多値画像を2値化した2値画像中の文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域の位置情報と、該文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力工程のプログラムコードと、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長工程のプログラムコードと、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長工程のプログラムコードと、
前記第2伸長工程で伸長された縮小多値画像を拡大する拡大工程のプログラムコードと、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大工程で拡大された多値画像を合成する合成工程のプログラムコードと
を備える。
【0026】
【発明の実施の形態】
以下、本発明の実施の形態について図面を用いて詳細に説明する。
【0027】
尚、以下に説明する実施形態の画像圧縮装置及び画像伸長装置の各構成要素の相対配置、各処理に用いられる数式、数値等は、特に、特定的な記載がない限りは、この発明の範囲をそれらのみに限定する趣旨のものではない。
【0028】
図1は本発明の実施形態の画像圧縮装置の概略構成を示す図である。
【0029】
図1において、実線は画像の流れ及び入力を示し、点線は情報の流れ及び入力を示すものとする。
【0030】
カラー多値画像である入力画像101は、2値化部102で2値化され、2値画像103が作成される。領域特定部A104は、2値画像103を入力とし、例えば、所定値をとる画素(例えば、黒画素)の輪郭線追跡等により文字領域を検出して、文字領域座標106を作成する。文字領域座標106は、文字領域の位置(座標)やサイズを示す情報である。また、領域特定部A104が文字領域を特定することで、それ以外の写真やイラスト等の自然(階調)画像を示す自然画像領域の位置やサイズも特定されることは言うまでもない。更に、各領域の種類を特定するための属性情報(文字や画像)も別途生成する。
【0031】
領域特定部B105は、2値画像103と領域特定部A104により作成された文字領域座標106を入力とし、文字領域内における各文字(単位文字領域)の位置及びサイズを特定する。説明を簡単にするため、実施形態1では、各単位文字領域の位置及びサイズの情報も文字領域座標106に追加するものとする。また、領域特定部A104により作成された文字領域座標106により、文字領域毎の2値画像(部分2値画像107)を作成する。また、多値画像112は、縮小部114により縮小され、縮小多値画像118が作成される。
【0032】
この縮小部114は、設定された解像度変換パラメータに基づいて、穴埋め多値画像の解像度変換を行う。また、縮小部114は、この解像度変換パラメータを、処理対象の多値画像の空間周波数に基づいて適宜制御するようにしても良い。例えば、多値画像の高周波成分が小さい場合には、大きい場合に比べて、より低解像度に変換するように、この解像度変換パラメータを制御しても良い。
【0033】
代表色抽出部110は、部分2値画像107と文字領域座標106及び縮小多値画像118を入力とし、部分2値画像107の黒部分と縮小多値画像118とを位置対応させながら、文字領域中の各単位文字領域の各文字代表色111を算出する。尚、この処理の詳細については後述する。尚、多値画像112は入力画像101と同一である。
【0034】
文字領域穴埋め部113は、縮小多値画像114及び文字領域座標106を入力とし、縮小多値画像118上の各文字領域あるいは単位文字領域毎に、その周辺色で塗り潰す処理(周辺色に置換する処理)を行う。
【0035】
以上の処理の後、部分2値画像107は各々順次、MMR圧縮部108により圧縮コードA109として圧縮される。また、文字領域穴埋め部113にて穴埋めされた穴埋め多値画像は、JPEG圧縮部115により圧縮コードB116としてJPEG圧縮される。尚、MMR圧縮部108の代わりに、MMR圧縮以外の2値画像圧縮、例えば、JBIG圧縮、MR圧縮、MH圧縮等を用いても良い。
【0036】
このようにして、各構成要素から得られる文字領域座標106、圧縮コードA109、各文字代表色111、圧縮コードB116のデータ群を結合した圧縮データ117が作成される。この圧縮データ117を、更に、PDFなどに可逆圧縮しても良い。
【0037】
尚、入力画像101中に文字領域が存在しない場合、圧縮データ117は圧縮コードB116のみとなる。
【0038】
また、画像圧縮装置及び後述するこの画像圧縮装置で生成された圧縮データを伸長する画像伸長装置を実現するハードウエア構成としては、例えば、パーソナルコンピュータ等の汎用コンピュータで実現される。また、この汎用コンピュータには、その標準的な構成要素として、例えば、CPU、RAM、ROM、ハードディスク、外部記憶装置、ネットワークインタフェース、ディスプレイ、キーボード、マウス等を有している。
【0039】
また、これらの画像圧縮装置及び画像伸長装置は、このような汎用コンピュータに対する拡張カードとして実現される専用ハードウエアとして実現されても良い。
【0040】
更に、これらの画像圧縮装置及び画像伸長装置を搭載する装置の具体例としては、ネットワーク通信機能を有する複合機(コピー、プリンタ、スキャナ、ファクシミリ機能等を有する装置)、カラースキャナ、カラーファクシミリ等が挙げられる。
【0041】
次に、2値化部102が実行する2値化処理について、図2及び図3を用いて説明する。
【0042】
図2は本発明の実施形態の入力画像の一例を示す図である。また、図3は本発明の実施形態の2値化部が実行する2値化処理を示すフローチャートである。
【0043】
図2において、入力画像201はカラー多値画像であり、領域203は赤色、領域204は青色、その他の文字は黒、領域205は任意の複数色であるとする。
【0044】
例として、入力画像101をスキャナで読み取った後のRGBデータ(24bit)とする場合、まず、ステップS301にて、下記の変換式により輝度変換を行い、輝度画像を作成する。
【0045】
Y = 0.299×R + 0.587×G + 0.114×B
次に、ステップS302にて、輝度画像の全面ヒストグラムを作成する。ここで、ヒストグラムの一例を図示すると図6のようになる。図6において、横軸はY信号の輝度レベル0〜255であり、縦軸はその出現頻度を示している。図6の場合、601が文字やイメージの分布であり、602が下地の分布であることを示している。
【0046】
次に、ステップS303にて、最適な2値化閾値Tを算出する。但し、ここでの2値化閾値Tの算出方法は、特に限定はしない。図6では、例えば、分布601と分布602の頂点の輝度レベル間の中間点603を2値化閾値Tとしている。
【0047】
最後に、ステップS304にて、輝度画像を2値化閾値Tに基づいて、2値化する。
【0048】
以上の処理により、図1の2値画像103が作成される。また、図2の多値画像201を2値化した場合の2値画像は、例えば、図7の2値画像701のようになる。
【0049】
次に、領域特定部A104が実行する処理について、図4を用いて説明する。
【0050】
図4は本発明の実施形態の領域特定部A104が実行する処理を示すフローチャートである。
【0051】
まず、ステップS401にて、2値画像103の黒画素を参照しながら、輪郭線追跡を行う。次に、ステップS402にて、追跡された輪郭線内をさらに追跡し、その追跡結果に基づいて、輪郭線内の領域から文字領域と、その位置やサイズを特定する。また、文字領域以外の領域は、自然画像領域として特定する。
【0052】
以上の処理により、文字領域及び自然画像領域の位置、サイズ及びその領域の種類を示す属性が特定される。ここで、図7の2値画像701に領域特定部A104の処理を施した結果を、図8に示す。図8では、全部で4つの領域が特定され、801〜803が文字領域、804が自然画像領域に特定されている。
【0053】
次に、領域特定部B105が実行する処理について、図5を用いて説明する。
【0054】
図5は本発明の実施形態の領域特定部B105が実行する処理を示すフローチャートである。
【0055】
図5で説明する処理は、領域特定部A104により特定された文字領域群、図8の例では、文字領域801〜803に対して順次行われる。
【0056】
まず、ステップS501にて、未処理の文字領域の有無を判定する。未処理の文字領域がない場合(ステップS501でNO)、処理を終了する。一方、未処理の文字領域がある場合(ステップS501でYES)、ステップS502に進む。
【0057】
次に、ステップS502にて、2値画像の所定値(黒画素)をとる画素の集合を単位文字とみなし、単位文字領域の位置を特定する。ここで、図8の文字領域801に領域特定部B105の処理を施した結果を、図9に示す。図9では、全部で5つの単位文字領域902〜906が特定されている。以降、同様にして、図8の文字領域802、803についても処理が実行される。
【0058】
以上のようにして、領域特定部A104及び領域特定部B105により特定された文字領域・単位文字領域の領域情報(位置、サイズ)を、文字領域座標106として、例えば、画像圧縮装置内のメモリ(例えば、RAM)に保存する。
【0059】
次に、代表色抽出部110が実行する処理について、図10、図11のフローチャート、及び図12〜図15の説明図を用いて説明する。
【0060】
図10は本発明の実施形態の代表色抽出部が実行する処理を示すフローチャートである。
【0061】
代表色抽出部110では、上述したように、入力として、文字領域座標106と部分2値画像107及び縮小多値画像118を使用する。部分2値画像107は、2値画像103の文字領域を切り取って別のワークメモリ等のメモリに格納してあるものとする。縮小多値画像118は、多値画像112を縮小部114により縮小されたものであり、同様に別のワークメモリ等のメモリに格納してあるものとする。
【0062】
尚、本実施形態では、縮小部114の縮小度を50%として説明する。この場合、縮小多値画像用のワークメモリは、縮小前の多値画像用のワークメモリよりもそのメモリ容量が1/4に軽減することができる。但し、縮小度は50%に限定されるものではなく、用途や目的に応じて任意の縮小率が設定できることは言うまでもない。
【0063】
ここでは、処理対象の具体例として、図9の文字領域801を用いるとする。
【0064】
代表色抽出部110では、全ての文字領域、即ち、全ての部分2値画像107に対して順に処理を行うため、最初に、ステップS1001にて、文字領域座標106を参照しながら、未処理の文字領域の有無を判定する。未処理の文字領域がない場合(ステップS1001でNO)、処理を終了する。一方、未処理の文字領域がある場合(ステップS1001でYES)、ステップS1008に進む。
【0065】
次に、ステップS1008にて、文字領域の代表色数nに1を設定する。これは、「第1色目の色を抽出する」という意味である。次に、ステップS1002にて、文字領域座標106を参照し、かつ部分2値画像107の黒画素に位置的に対応する縮小多値画像114の色(RGB)を参照しながら、単位文字毎にRGBの平均色を算出する。この算出例として、図12A及び図12Bを用いて具体的に説明する。
【0066】
図12Aにおいて、201は多値画像であり、701は2値化後の2値画像、203は縮小後の縮小多値画像である。2値画像701の画像端座標として、左上p1(0,0)、右上p2(w,0)、左下p3(0,h),右下p4(w,h)とする。これに対し、縮小画像203は、縦横50%の縮小としているので、画像端座標は左上p9(0,0)、右上p10(w/2,0)、左下p11(0,h/2)、右下p12(w/2,h/2)と表すことができる。
【0067】
但し、wは多値画像201の幅、hは多値画像201の高さである。
【0068】
また、1201は2値画像701上の単位文字領域「C」の拡大図であり、1202は縮小画像203上の単位文字領域「C」の拡大図が1202である。単位文字座標は、拡大図1201が左上p5(x,y)、右上p6(x+tw,y)、左下p7(x,y+th)、右下p8(x+tw,y+th)である。これに対し、拡大図1202が左上p13(x/2,y/2)、右上p14((x+tw)/2,y/2)、左下p15(x/2,(y+th)/2)、右下p16((x+tw)/2,(y+th)/2)と表すことができる。
【0069】
但し、これらのx、y、tw、thの情報は、文字領域座標106により得られる。また、ステップS1002で、単位文字毎にRGB平均色を算出するにあたっては、画素レベルでの処理を行う。この処理の具体例について、図12Bを用いて説明する。
【0070】
図12Bにおいて、1701及び1702は、それぞれ拡大図1201及び1202の画素分布を示している。
【0071】
ここで、例えば、画素分布1701のp17(x+2,y+2)の黒画素に位置的に対応する画素分布1702の画素は、p19((x+2)/2,(y+2)/2)であることがわかる。そして、このp19((x+2)/2,(y+2)/2)のRGB値を参照する。また、画素分布1702は縮小度50%で縮小されているので、p18(x+3,y+3)においても同一のp19((x+2)/2,(y+2)/2)のRGB値を参照する。
【0072】
以下、画素分布1701内における全ての黒画素に対応する画素分布1702の画素値(RGB値)を参照し、その参照によって得られた画素値を用いて、単位文字のRGB値の平均値を算出する。
【0073】
つまり、2値画像701上の単位文字領域の位置情報を用いて、縮小部114の縮小度に応じた縮小多値画像203上の位置に対応する色情報(RGB値)を参照することで、2値画像701上の単位文字領域の平均色を算出する。
【0074】
次に、ステップS1003にて、上記で算出された各単位文字領域のRGBの平均色を、例えば、YCbCrのような、輝度と色差で表現できる色空間に変換する。尚、色空間は、LabやYuv等の他の色空間でも構わないものとするが、ここでは、YCbCrで説明を行う。また、RGBからYCbCrへの変換式は省略する。
【0075】
例えば、上述の5つの単位文字領域902〜906に対して、YCbCr変換を施すと、
単位文字領域902:(Y1,Cb1,Cr1)
単位文字領域903:(Y2,Cb2,Cr2)
単位文字領域904:(Y3,Cb3,Cr3)
単位文字領域905:(Y4,Cb4,Cr4)
単位文字領域906:(Y5,Cb5,Cr5)
となる。
【0076】
次に、ステップS1004にて、ステップS1005のヒストグラム作成の準備として、ヒストグラム初期化(ヒストグラムクリア)を行う。次に、ステップS1005にて、色差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のプロット
である。また、プロット1301、1302及び1305と、プロット1303及び1304の距離が離れているのは、図2の多値画像201で示される色の違いを表すためであり、プロット1301、1302及び1305の間の差、または、プロット1303及び1304の間の差は、スキャナで読み取られた入力画像のバラツキ、あるいは、その後の処理(例えば、JPEG圧縮)によるバラツキを表している。
【0077】
尚、本実施形態では、処理の高速化のため、2次元ヒストグラムを作成しているが、精度を上げるために、Y,Cb,Crの3次元ヒストグラムを作成してもよい。
【0078】
次に、ステップS1006にて、各単位文字領域の代表色抽出と色割当を行う。尚、この処理の詳細については後述する。
【0079】
次に、ステップS1007にて、ステップS1006で色が未割当の単位文字の有無を判定する。未割当の単位文字がある場合(ステップS1007でYES)、ステップS1009に進み、代表色数nに1を加算して、先に作成したヒストグラムを初期化し(ステップS1004)、色が未割当の単位文字に対してのみ、ヒストグラムを作成する(ステップS1005)。以下、同様にして、ステップS1007にて、色が未割当の単位文字がなくなるまで処理を続ける。そして、未割当の単位文字がない場合(ステップS1007でNO)、ステップS1001に戻り、他の未処理の文字領域があれば、以下、同様の処理を行う。
【0080】
次に、ステップS1006の各単位文字領域の代表色抽出と色割当の処理の詳細について、図11を用いて説明する。
【0081】
図11は本発明の実施形態のステップS1006の代表色抽出と色割当の処理の詳細を示すフローチャートである。
【0082】
まず、ステップS1101にて、単位文字領域の代表色の候補となる候補代表色C’(n)の抽出を行う。尚、nは代表色数であり、図10で使用されているnと同じである。また、候補代表色C’(n)は、Cb,Crの情報をもつ構造体であり、n番目の代表色のCbをC’(n)_b、n番目の代表色のCrをC’(n)_rと表すことにする。
【0083】
具体的な候補代表色の抽出方法について、図14を用いて説明する。
【0084】
図14で示される点線で囲まれる四角は、予め設定されたエリアを示しており、各エリアには1つの代表色(Cb,Cr)が設定されているものとする。エリアの大小は任意であるが、精度と処理効率のトレードオフを考慮して設定することが望ましい。YCbCrがそれぞれ8bitである場合、本実施形態では、エリアの縦横幅を3bitに設定することにする。但し、図14では、説明を簡単にするため、エリアを大きく図示している。ここで、各エリアをCb−Cr方向に走査し、エリア内のプロット数の最大値を取得する。ここでは、エリア1で最大プロット数3が得られるので、候補代表色として1401(黒三角▲)が得られる。
【0085】
次に、ステップS1102にて、単位文字数mに1を設定する。次に、ステップS1103にて、mがM以下であるか否かを判定する。M以下である場合(ステップS1103でYES)、ステップS1104に進む。一方、Mより大きい場合(ステップS1103でNO)、処理を終了する。
【0086】
ここで、Mは、処理対象の文字領域内の単位文字数(総数)であり、例えば、図9の文字領域801では、M=5である。この場合は、m=1の時は、ステップS1103の条件がYESとなり、ステップS1104へ進む。そして、m=6になった時、ステップS1103の条件がNOとなり、ステップS1006のループを抜ける。
【0087】
ステップS1104にて、単位文字領域の平均色である単位文字色C(m)が未決定であるか否かを判定する。未決定でない場合(ステップS1104でNO)、ステップS1108に進む。一方、未決定である場合(ステップS1104でYES)、ステップS1105に進む。
【0088】
ここで、単位文字色C(m)は、Cb,Crの情報をもつ構造体であり、m番目の単位文字色のCbをC(m)_b、m番目の代表色のCrをC(m)_rと表すことにする。単位文字色C(m)は、最初、値が割り当てられていないため、C(m)は未決定となり、ステップS1105へ進む。
【0089】
次に、ステップS1105にて、候補代表色C’(n)と単位文字色C(m)の色空間上の距離(Distance)を算出する。
【0090】
次に、ステップS1106にて、予め設定された値valueに対して、Distance≦valueであるか否かを判定する。Distance≦valueでない場合(ステップS1106でNO)、ステップS1108に進む。一方、Distance≦valueである場合(ステップS1106でYES)、ステップS1107に進む。
【0091】
ステップS1107にて、候補代表色C’(n)を単位文字色C(m)(単位文字領域の代表色)に設定する。即ち、C’(n)_bをC(m)_bに代入し、C’(n)_rをC(m)_rに代入する。ここで、valueは任意に値を調整可能である。
【0092】
そして、ステップS1108にて、単位文字数mに1を加算し、ステップS1103に戻る。
【0093】
図11のステップS1105及びステップS1106の処理の具体例について、図15を用いて説明する。ここでは、n=1、m=1であると仮定するため、候補代表色C’(1)はプロット1401、単位文字色C(1)はプロット1301である。上述のステップS1105及びステップS1106では、候補代表色C’(1)であるプロット1401を中心とし、valueを半径とした点線円1500内に、単位文字色C(1)のプロット1301が存在するか否かを判定している。
【0094】
ここでは、プロット1301は点線円1500に存在しているため、候補代表色C’(1)(本実施形態の場合、黒あるいは黒の近似色)が、単位文字領域902に対応する代表色C(1)として設定される。同様に、m=2、5の時もプロット1302、1305は、ステップS1106の条件を満たすため、候補代表色C’(1)が、単位文字領域903及び906それぞれの代表色C(2)及びC(5)として設定される。
【0095】
一方、m=3、4の時は、ステップS1106の条件を満たさないため、C(3)、C(4)は未決定のまま、ステップS1006のループを抜け、次の代表色抽出を行う。そして、その後の処理で、候補代表色C’(2)(本実施形態の場合、青あるいは青の近似色)が、単位文字領域904及び905それぞれに対応する代表色C(3)及びC(4)として設定されることになる。
【0096】
以上のようにして、図10、図11で示されるフローチャートで、各単位文字領域の代表色抽出と色割当が行われる。また、抽出された代表色は、図1の各文字代表色111として、圧縮データ117に格納される。
【0097】
次に、文字領域穴埋め部113が実行する処理について、図16を用いて説明する。
【0098】
図16は本発明の実施形態の文字領域穴埋め部が実行する処理を示すフローチャートである。
【0099】
文字領域穴埋め部113、縮小多値画像118と部分2値画像107及び文字領域座標106を入力とし、縮小多値画像118中の文字にあたる画素を周りの背景色で塗りつぶす処理である。これにより、後のJPEG圧縮部115の圧縮率が向上する。
【0100】
まず、ステップS1801にて、文字領域毎に処理を行うため、未処理の文字領域の有無を判定する。未処理の文字領域がない場合(ステップS1801でNO)、処理を終了する。一方、未処理の文字領域がある場合(ステップS1801でYES)、ステップS1802に進み、部分2値画像107の白画素に位置的に対応する縮小多値画像118の色を参照することにより、文字領域内の背景色の平均値を算出する。部分2値画像107と縮小多値画像118の座標対応の方法は、代表色抽出部110で説明した方法と同様であるため、その詳細については省略する。次に、ステップS1803にて、算出した背景色の平均値を縮小多値画像118の文字領域に割り当てる、つまり、算出した背景色で縮小多値画像118の文字領域あるいはその文字領域内の単位文字領域を穴埋めする。
【0101】
次に、圧縮データ117を伸長する画像伸長装置について、図17を用いて説明する。
【0102】
図17は本発明の実施形態の画像伸長装置の概略構成を示す図である。
【0103】
MMR伸長部1603は、圧縮コードA109を入力し、MMR伸長処理を行い、2値画像1604を作成する。JPEG伸長部1609は、圧縮コードB116を入力し、JPEG伸長処理を行い、さらに拡大部1610で拡大処理を行うことで、多値画像1611を作成する。合成部1605は、文字領域座標106を参照しながら、各文字代表色111を2値画像1604中の対応する単位文字領域の各黒画素に割り当て、その2値画像を多値画像1611の上に表示する。この際、2値画像1604の白画素は多値画像1611を透過する。
【0104】
このようにして、図17の画像伸長装置は、図1の画像圧縮装置により作成された圧縮データ117を伸長し、最終的な復元画像である伸長画像1606を生成することができる。
【0105】
以上説明したように、本実施形態によれば、入力された多値画像を縮小後、この縮小多値画像を用いて、文字領域の単位文字領域の代表色を抽出することにより、少なくとも従来の代表色の抽出精度も維持したまま、処理対象の画像を一時的に格納するためのワークメモリを大幅に削減することができる。また、処理工程としては、従来と同数の処理工程で実現できるため、コストパフォーマンスの向上が可能となる。
【0106】
また、文字領域の2値画像とその文字領域を構成する単位文字領域における代表色を抽出して割り当て、この単位文字領域毎の代表色を圧縮データの一部として生成する。そして、この圧縮データを伸長して復元画像を得る場合には、この代表色を利用して、各文字領域内の各単位文字領域の色を再現する。これにより、入力画像の画品位を良好に維持した復元画像を再現することができる。
【0107】
また、文字領域に関しては、従来使用されていたJPEG圧縮に代って、MMR圧縮を利用して圧縮することで、より高圧縮な圧縮画像を生成することができる。
【0108】
以上、実施形態例を詳述したが、本発明は、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。
【0109】
尚、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラム(実施形態では図に示すフローチャートに対応したプログラム)を、システムあるいは装置に直接あるいは遠隔から供給し、そのシステムあるいは装置のコンピュータが該供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。
【0110】
従って、本発明の機能処理をコンピュータで実現するために、該コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。
【0111】
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。
【0112】
プログラムを供給するための記録媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。
【0113】
その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続し、該ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。
【0114】
また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせ、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。
【0115】
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現され得る。
【0116】
さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現される。
【0117】
【発明の効果】
以上説明したように、本発明によれば、良好な復元画像を生成することでき、かつ圧縮対象の画像品位を低下させない画像圧縮を効率的にかつ低コストパフォーマンスで行うことができる画像圧縮装置、画像伸長装置及びそれらの方法、プログラムを提供できる。
【図面の簡単な説明】
【図1】本発明の実施形態の画像圧縮装置の概略構成を示す図である。
【図2】本発明の実施形態の入力画像の一例を示す図である。
【図3】本発明の実施形態の2値化部が実行する2値化処理を示すフローチャートである。
【図4】本発明の実施形態の領域特定部Aが実行する処理を示すフローチャートである。
【図5】本発明の実施形態の領域特定部Bが実行する処理を示すフローチャートである。
【図6】本発明の実施形態の入力画像のヒストグラムの一例を示す図である。
【図7】本発明の実施形態の2値画像の一例を示す図である。
【図8】本発明の実施形態の領域特定部Aによる処理結果の一例を示す図である。
【図9】本発明の実施形態の領域特定部Bによる処理結果の一例を示す図である。
【図10】本発明の実施形態の代表色抽出部が実行する処理を示すフローチャートである。
【図11】本発明の実施形態のステップS1006の代表色抽出と色割当の処理の詳細を示すフローチャートである。
【図12A】本発明の実施形態の代表色抽出部の処理を説明するための図である。
【図12B】本発明の実施形態の代表色抽出部の処理を説明するための図である。
【図13】本発明の実施形態の代表色抽出部の処理を説明するための図である。
【図14】本発明の実施形態の代表色抽出部の処理を説明するための図である。
【図15】本発明の実施形態の代表色抽出部の処理を説明するための図である。
【図16】本発明の実施形態の文字領域穴埋め部が実行する処理を示すフローチャートである。
【図17】本発明の実施形態の画像伸長装置の概略構成を示す図である。
【符号の説明】
101 入力画像
102 2値化部
103 2値画像
104 領域特定部A
105 領域特定部B
106 文字領域座標
107 部分2値画像
108 MMR圧縮部
109 圧縮コードA
110 代表色抽出部
111 各文字代表色
112 多値画像
113 文字領域穴埋め部
114 縮小部
115 JPEG圧縮部
116 圧縮コードB
117 圧縮データ
118 縮小多値画像
1603 MMR伸長部
1604 2値画像
1605 合成部
1606 伸長画像
1609 JPEG伸長部
1610 拡大部
1611 多値画像
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image compression device for compressing an input multi-valued image, an image decompression device for decompressing compressed data generated by the image compression device, a method thereof, and a program.
[0002]
[Prior art]
2. Description of the Related Art In recent years, documents have been digitized due to the spread of scanners. If the digitized 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 resolution becomes about 24 Mbytes, and the required memory becomes enormous. Such a large amount of data cannot be said to be a size suitable for being attached to a mail and transmitted.
[0003]
Therefore, compression of a full-color image is usually performed, and JPEG is known as a compression method. JPEG is very effective for compressing natural images such as photographs, but JPEG compression of character parts causes image degradation called mosquito noise. Therefore, conventionally, the input image is divided into a character region and a photograph region, and the character region portion is binarized and then subjected to MMR compression, and the photograph region portion is subjected to JPEG compression to improve the quality of the character region. There was a way to express full-color documents with a small data size while keeping them.
[0004]
According to this method, at the time of decompression, a white portion of a binary image is transmitted through a JPEG image, and a black portion is represented by characters with a representative color. There is also a method for further improving the compression ratio by filling a character area with a color near the character before JPEG compression. In addition, in order to realize efficient compression and good image reproduction at the time of decompression, a technique for extracting a representative color of a character area is essential.
[0005]
[Problems to be solved by the invention]
However, in the related art, in order to extract a representative color of a character area, an input multi-value image and a binary image obtained by binarizing the input multi-value image are required. It was necessary to temporarily hold the data in a memory such as the above. For example, when the input multi-valued image is A4 size, a read resolution of 300 dpi and a temporary memory of about 24 Mbytes are required. In particular, when a conventional compression technique is incorporated into a multifunction peripheral or a scanner having an image reading function, a reduction in the amount of memory is desired in terms of cost.
[0006]
The present invention has been made in order to solve the above-described problems, and it is possible to generate a good restored image and perform image compression efficiently and at a low cost performance without deteriorating the image quality of a compression target. It is an object of the present invention to provide an image compression device, an image decompression device, a method thereof, and a program that can be used.
[0007]
[Means for Solving the Problems]
An image compression apparatus according to the present invention for achieving the above object has the following configuration. That is,
An image compression device for compressing an input multi-valued image,
Binarizing 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;
A second area specifying means for specifying a position of a unit character area in the character area specified by the first area specifying means;
Reducing means for reducing the multi-valued image,
A representative color extracting unit that extracts a representative color of the unit character region based on the position information of the unit character region specified by the second region specifying unit and the reduced multivalued image;
Filling means for filling a unit character area in the character area of the reduced multi-value image with its surrounding color based on the position information of the character area specified by the first area specifying means;
First compression means for compressing the fill-in reduced multivalued image generated by the fill-in means;
A second compression unit that compresses a partial binary image corresponding to the character region specified by the first region specification unit;
Position information specified by the first and second area specifying means, first and second compressed codes generated by the first and second compression means, and a unit character area extracted by the representative color extraction means And output means for outputting compressed data including the representative color information.
[0008]
Also preferably, the representative color extracting unit refers to the color information of the reduced multi-valued image using the position information of the unit character region specified by the second region specifying unit, thereby obtaining the unit character region. Average color calculating means for calculating the average color of
First histogram creating means for creating a first histogram from the average color of the unit character area 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;
A color assigning unit that assigns the candidate representative color to the representative color of the unit character based on the candidate representative color extracted by the extracting unit and the average color of the unit character area.
[0009]
Preferably, the binarizing means includes a second histogram creating means for creating a second histogram based on the multi-valued image,
And a binarization threshold value calculating means for calculating a binarization threshold value for binarizing the multi-valued image based on the second histogram.
[0010]
Preferably, the first area specifying means specifies an area group specified by performing contour line tracing of pixels having a predetermined value in the binary image as a character area or a natural image area, respectively. Position information, size information, and attribute information indicating the type of each area of the group are specified.
[0011]
Preferably, the second area specifying means specifies, as a unit character area, a set of pixels having a predetermined value in the character area specified by the first area specifying means. Specify size information.
[0012]
Also, preferably, the average color calculating means uses the position information of the unit character area specified by the second area specifying means, and uses the reduced multi-value corresponding to a pixel having 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.
[0013]
Preferably, the first histogram creating unit uses the average color of the unit character area calculated by the average color calculating unit to set a color space histogram in the character area including the unit character area as a first histogram. create.
[0014]
Preferably, 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.
[0015]
Preferably, 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 set within a predetermined range. In some cases, the candidate representative color is assigned as a representative color of the unit character area.
[0016]
Preferably, the reduction unit reduces the multi-valued image by performing resolution conversion of the multi-valued image using a resolution conversion parameter.
[0017]
Also, preferably, the filling means includes the reduced multi-value corresponding to a position corresponding to a reduction degree set by the reducing means, based on position information of the character area specified by the first area specifying means. The unit character area in the character area of the image is filled with surrounding colors.
[0018]
Preferably, the first compression unit is based on JPEG compression.
[0019]
Preferably, the second compression unit is based on MMR compression.
[0020]
Preferably, the apparatus further comprises third compression means for reversibly compressing the compressed data.
[0021]
An image decompression device according to the present invention for achieving the above object has the following configuration. That is,
An image decompression device for decompressing compressed data,
A first compression code for compressing a character area in a binary image obtained by binarizing a multi-valued image, and a unit character area in the character area of the reduced multi-valued image of the multi-valued image filled with surrounding colors. Input means for inputting compressed data including a second compressed code obtained by compressing the reduced multi-valued image, position information of the character area, and representative color information of a unit character area in the character area;
First decompression means for decompressing the first compression code in the compressed data;
Second decompression means for decompressing the second compression code in the compressed data;
Enlarging means for enlarging the reduced multivalued image expanded by the second expanding means;
A synthesizing unit that synthesizes the binary image expanded by the first expansion stage and the multi-value image expanded by the expansion unit based on the position information and the representative color in the compressed data.
[0022]
An image compression method according to the present invention for achieving the above object has the following configuration. That is,
An image compression method for compressing an input multi-valued image,
A binarization step of binarizing the multi-valued image;
A first area specifying step of specifying a position of a character area in the binary image binarized in the binarizing step;
A second area specifying step of specifying the position of the unit character area in the character area specified in the first area specifying step;
A reducing step of reducing the multi-valued image,
A representative color extracting step of extracting a representative color of the unit character area based on the position information of the unit character area specified in the second area specifying step and the reduced multi-valued image;
A filling step of filling a unit character area in the character area of the reduced multi-valued image with its 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 fill-in reduced multivalued image generated in the fill-in step;
A second compression step of compressing a partial binary image corresponding to the character area specified in the first area specification 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 extraction step Outputting compressed data including the representative color information.
[0023]
An image decompression method according to the present invention for achieving the above object has the following configuration. That is,
An image decompression method for decompressing compressed data,
A first compression code for compressing a character area in a binary image obtained by binarizing a multi-valued image, and a unit character area in the character area of the reduced multi-valued image of the multi-valued image filled with surrounding colors. An input step of inputting compressed data including a second compressed code obtained by compressing the reduced multi-valued image, position information of the character area, and representative color information of a unit character area in the character area;
A first decompression step of decompressing the first compression code in the compressed data;
A second decompression step of decompressing the second compression code in the compressed data;
An enlarging step of enlarging the reduced multivalued image expanded in the second expanding step;
A synthesizing step of synthesizing the binary image decompressed in the first decompression stage and the multi-value image expanded in the enlarging step based on the position information and the representative color in the compressed data.
[0024]
A program according to the present invention for achieving the above object has the following configuration. That is,
A program for realizing image compression for compressing an input multi-valued image,
Program code for a binarization step of binarizing the multi-valued image;
A program code for a first area specifying step for specifying a position of a character area in the binary image binarized in the binarizing step;
A program code for a second area specifying step for specifying the position of the unit character area in the character area specified in the first area specifying step;
Program code for a reduction step of reducing the multi-valued image,
A program code for a representative color extracting step of extracting a representative color of the unit character area based on the position information of the unit character area specified in the second area specifying step and the reduced multi-valued image;
A program code for a filling process of filling a unit character region in the character region of the reduced multi-valued image with its surrounding color based on the position information of the character region specified in the first region specifying step;
A program code of a first compression step of compressing the fill-in reduced multi-value image generated in the padding step;
Program code for a second compression step of compressing a partial binary image corresponding to the character area specified in the first area specification 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 extraction step And a program code of an output step of outputting compressed data including the representative color information.
[0025]
A program according to the present invention for achieving the above object has the following configuration. That is,
A program for realizing image expansion for expanding compressed data,
A first compression code for compressing a character area in a binary image obtained by binarizing a multi-valued image, and a unit character area in the character area of the reduced multi-valued image of the multi-valued image filled with surrounding colors. A second compression code for compressing the reduced multi-valued image, position information of the character area, and program code of an input step of inputting compressed data including representative color information of a unit character area in the character area;
Program code for a first decompression step for decompressing the first compression code in the compressed data;
Program code for a second decompression step for decompressing the second compression code in the compressed data;
Program code for an enlarging step for enlarging the reduced multivalued image expanded in the second expanding step;
And a program code for a synthesizing step of synthesizing the binary image expanded in the first expansion stage and the multi-valued image expanded in the expansion step based on the position information and the representative color in the compressed data. .
[0026]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0027]
It should be noted that the relative arrangement of each component of the image compression apparatus and the image decompression apparatus of the embodiment described below, and the mathematical formulas and numerical values used for each processing are not limited to the scope of the present invention unless otherwise specified. Is not intended to be limited only to them.
[0028]
FIG. 1 is a diagram showing a schematic configuration of an image compression device according to an embodiment of the present invention.
[0029]
In FIG. 1, the solid line indicates the flow and input of an image, and the dotted line indicates the flow and input of information.
[0030]
An input image 101, which is a color multi-valued image, is binarized by a binarization unit 102, and a binary image 103 is created. The area specifying unit A104 receives the binary image 103, detects a character area by, for example, tracing the contour of a pixel (for example, a black pixel) having a predetermined value, and creates the character area coordinates 106. The character area coordinates 106 are information indicating the position (coordinates) and size of the character area. It is needless to say that, by specifying the character area by the area specifying unit A104, the position and size of a natural image area indicating a natural (gradation) image such as a photograph or an illustration are also specified. Further, attribute information (characters and images) for specifying the type of each area is separately generated.
[0031]
The area specifying unit B105 receives 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. For simplicity, in the first embodiment, information on the position and size of each unit character area is also added to the character area coordinates 106. Further, 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-valued image 112 is reduced by the reduction unit 114, and a reduced multi-valued image 118 is created.
[0032]
The reduction unit 114 performs resolution conversion of the fill-in-the-blank image based on the set resolution conversion parameters. The reduction unit 114 may appropriately control the resolution conversion parameter based on the spatial frequency of the multivalued image to be processed. For example, when the high-frequency component of the multi-valued image is small, the resolution conversion parameter may be controlled so as to convert to a lower resolution than when the high-frequency component is large.
[0033]
The representative color extraction unit 110 receives the partial binary image 107, the character area coordinates 106, and the reduced multi-valued image 118 as input, and associates the black area of the partial binary image 107 with the reduced multi-valued image 118 to position the character area. Each character representative color 111 of each unit character area in the middle is calculated. The details of this process will be described later. Note that the multi-valued image 112 is the same as the input image 101.
[0034]
The character area filling unit 113 receives the reduced multi-valued image 114 and the character area coordinates 106 as input, and fills each character area or unit character area on the reduced multi-valued image 118 with its surrounding color (replace with the surrounding color). Process).
[0035]
After the above processing, each of the partial binary images 107 is sequentially compressed by the MMR compression unit 108 as a compression code A109. Further, the multi-valued image filled in by the character area filling unit 113 is JPEG-compressed by the JPEG compression unit 115 as a compression code B116. Note that, 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.
[0036]
In this way, the compressed data 117 is created by combining the data group of the character area coordinates 106, the compression code A109, each character representative color 111, and the compression code B116 obtained from each component. The compressed data 117 may be further losslessly compressed to PDF or the like.
[0037]
If there is no character area in the input image 101, the compressed data 117 is only the compressed code B116.
[0038]
The hardware configuration for realizing the image compression device and an image decompression device that decompresses the compressed data generated by the image compression device described later is realized by a general-purpose computer such as a personal computer, for example. Further, this general-purpose computer has, as standard components, a CPU, a RAM, a ROM, a hard disk, an external storage device, a network interface, a display, a keyboard, a mouse, and the like.
[0039]
The image compression device and the image decompression device may be realized as dedicated hardware realized as an expansion card for such a general-purpose computer.
[0040]
Further, specific examples of an apparatus equipped with the image compression apparatus and the image decompression 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. No.
[0041]
Next, a binarization process performed by the binarization unit 102 will be described with reference to FIGS.
[0042]
FIG. 2 is a diagram illustrating 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 the binarization unit according to the embodiment of the present invention.
[0043]
In FIG. 2, it is assumed that an input image 201 is a color multivalued image, an area 203 is red, an area 204 is blue, other characters are black, and an area 205 is an arbitrary plurality of colors.
[0044]
As an example, when the input image 101 is to be RGB data (24 bits) after being read by a scanner, first, in step S301, brightness conversion is performed by the following conversion formula to create a brightness image.
[0045]
Y = 0.299 × R + 0.587 × G + 0.114 × B
Next, in step S302, an entire histogram of the luminance image is created. Here, FIG. 6 shows an example of the histogram. In FIG. 6, the horizontal axis represents the luminance level of the Y signal from 0 to 255, and the vertical axis represents its appearance frequency. In the case of FIG. 6, 601 indicates the distribution of characters and images, and 602 indicates the distribution of the background.
[0046]
Next, in step S303, an optimal binarization threshold T is calculated. However, the method of calculating the binarization threshold T here is not particularly limited. In FIG. 6, for example, an intermediate point 603 between the luminance levels at the vertices of the distribution 601 and the distribution 602 is set as the binarization threshold T.
[0047]
Finally, in step S304, the luminance image is binarized based on the binarization threshold T.
[0048]
Through the above processing, the binary image 103 of FIG. 1 is created. A binary image obtained by binarizing the multi-valued image 201 in FIG. 2 is, for example, a binary image 701 in FIG.
[0049]
Next, a process executed by the area specifying unit A104 will be described with reference to FIG.
[0050]
FIG. 4 is a flowchart showing a process executed by the area specifying unit A104 according to the embodiment of the present invention.
[0051]
First, in step S401, contour tracing is performed with reference to black pixels of the binary image 103. Next, in step S402, the inside of the traced outline is further traced, and based on the result of the trace, a character region and its position and size are specified from the region within the outline. In addition, an area other than the character area is specified as a natural image area.
[0052]
Through the above processing, the attributes indicating the position and size of the character area and the natural image area and the type of the area are specified. Here, FIG. 8 shows a result obtained by performing the processing of the area specifying unit A104 on the binary image 701 of FIG. In FIG. 8, four regions are specified in total, 801 to 803 are specified as character regions, and 804 is specified as a natural image region.
[0053]
Next, a process executed by the area specifying unit B105 will be described with reference to FIG.
[0054]
FIG. 5 is a flowchart showing a process executed by the area specifying unit B105 according to the embodiment of the present invention.
[0055]
The processing described in FIG. 5 is sequentially performed on the character area group specified by the area specifying unit A104, in the example of FIG. 8, the character areas 801 to 803.
[0056]
First, in step S501, it is determined whether there is an unprocessed character area. If there is no unprocessed character area (NO in step S501), the process ends. On the other hand, if there is an unprocessed character area (YES in step S501), the process advances to step S502.
[0057]
Next, in step S502, a set of pixels having a predetermined value (black pixel) of the binary image is regarded as a unit character, and the position of the unit character area is specified. Here, FIG. 9 shows a result obtained by performing the processing of the area specifying unit B105 on the character area 801 of FIG. In FIG. 9, a total of five unit character areas 902 to 906 are specified. Thereafter, the processing is similarly performed for the character areas 802 and 803 in FIG.
[0058]
As described above, the area information (position and size) of the character area / unit character area specified by the area specifying unit A104 and the area specifying unit B105 is used as the character area coordinates 106, for example, in the memory ( (For example, RAM).
[0059]
Next, the processing executed by the representative color extracting unit 110 will be described with reference to the flowcharts of FIGS. 10 and 11 and the explanatory diagrams of FIGS.
[0060]
FIG. 10 is a flowchart illustrating a process executed by the representative color extracting unit according to the embodiment of the present invention.
[0061]
As described above, the representative color extraction unit 110 uses the character area coordinates 106, the partial binary image 107, and the reduced multi-value image 118 as inputs. It is assumed that the partial binary image 107 has been obtained by cutting out the character area of the binary image 103 and storing it in another memory such as a work memory. The reduced multi-valued image 118 is obtained by reducing the multi-valued image 112 by the reduction unit 114, and is stored in another memory such as a work memory.
[0062]
In the present embodiment, the description will be made assuming that the reduction degree of the reduction unit 114 is 50%. In this case, the work memory for the reduced multi-valued image can be reduced in memory capacity to 1/4 that 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 rate can be set according to the application and purpose.
[0063]
Here, it is assumed that the character area 801 in FIG. 9 is used as a specific example of the processing target.
[0064]
Since the representative color extracting unit 110 sequentially processes all the character areas, that is, all the partial binary images 107, first, in step S <b> 1001, the unprocessed The presence or absence of a character area is determined. If there is no unprocessed character area (NO in step S1001), the process ends. If there is an unprocessed character area (YES in step S1001), the process advances to step S1008.
[0065]
Next, in step S1008, 1 is set to the representative color number n of the character area. This means "extract the first color". Next, in step S1002, while referring to the character area coordinates 106 and referring to the color (RGB) of the reduced multi-valued image 114 corresponding to the position of the black pixel of the partial binary image 107, each unit character The average color of RGB is calculated. This calculation example will be specifically described with reference to FIGS. 12A and 12B.
[0066]
In FIG. 12A, reference numeral 201 denotes a multivalued image, reference numeral 701 denotes a binary image after binarization, and reference numeral 203 denotes a reduced multivalued image after reduction. The image end coordinates of the binary image 701 are p1 (0, 0), p2 (w, 0), p3 (0, h), and p4 (w, h). On the other hand, since the reduced image 203 is reduced by 50% vertically and horizontally, the image end coordinates are upper left p9 (0, 0), upper right p10 (w / 2, 0), lower left p11 (0, h / 2), It can be expressed as lower right p12 (w / 2, h / 2).
[0067]
Here, w is the width of the multi-valued image 201, and h is the height of the multi-valued image 201.
[0068]
Reference numeral 1201 denotes an enlarged view of the unit character area “C” on the binary image 701, and reference numeral 1202 denotes an enlarged view of the unit character area “C” on the reduced image 203. The unit character coordinates in the enlarged view 1201 are upper left p5 (x, y), upper right p6 (x + tw, y), lower left p7 (x, y + th), and lower right p8 (x + tw, y + th). On the other hand, the enlarged view 1202 shows the upper left p13 (x / 2, y / 2), the upper right p14 ((x + tw) / 2, y / 2), the lower left p15 (x / 2, (y + th) / 2), and the lower right. p16 ((x + tw) / 2, (y + th) / 2).
[0069]
However, the information of x, y, tw, and th is obtained from the character area coordinates 106. In calculating the RGB average color for each unit character in step S1002, processing at the pixel level is performed. A specific example of this processing will be described with reference to FIG. 12B.
[0070]
In FIG. 12B, reference numerals 1701 and 1702 denote the pixel distributions of the enlarged views 1201 and 1202, respectively.
[0071]
Here, for example, it can be seen that the pixel of the pixel distribution 1702 that corresponds in position to the black pixel of p17 (x + 2, y + 2) of the pixel distribution 1701 is p19 ((x + 2) / 2, (y + 2) / 2). . Then, the RGB values of p19 ((x + 2) / 2, (y + 2) / 2) are referred to. Further, since the pixel distribution 1702 is reduced at a reduction degree of 50%, the same RGB value of p19 ((x + 2) / 2, (y + 2) / 2) is referred to at p18 (x + 3, y + 3).
[0072]
Hereinafter, the pixel values (RGB values) of the pixel distribution 1702 corresponding to all the black pixels in the pixel distribution 1701 are referred to, and the average value of the RGB values of the unit character is calculated using the pixel values obtained by the reference. I do.
[0073]
That is, by using the position information of the unit character area on the binary image 701, referring to the color information (RGB values) corresponding to the position on the reduced multi-valued image 203 according to the degree of reduction of the reducing unit 114, The average color of the unit character area on the binary image 701 is calculated.
[0074]
Next, in step S1003, the RGB average color of each unit character area calculated above is converted into a color space such as YCbCr that can be expressed by luminance and color difference. The color space may be another color space such as Lab or Yuv, but here, the description will be made with YCbCr. Further, the conversion formula from RGB to YCbCr is omitted.
[0075]
For example, when the above five unit character areas 902 to 906 are subjected to YCbCr conversion,
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.
[0076]
Next, in step S1004, histogram initialization (histogram clear) is performed in preparation for the histogram creation in step S1005. Next, in step S1005, a two-dimensional histogram of the color differences Cb and Cr is created. This is shown in FIG. 13 are plot 1301 (Cb1, Cr1) → plot plot 1302 (Cb2, Cr2) of unit character area 902 → plot plot 1303 (Cb3, Cr3) of unit character area 903 → unit character A plot plot 1304 (Cb4, Cr4) of the area 904 → a plot plot 1305 (Cb5, Cr5) of the unit character area 905 → a plot of the unit character area 906. The plots 1301, 1302 and 1305 are spaced apart from the plots 1303 and 1304 in order to represent the difference in the colors shown in the multi-valued image 201 in FIG. Or the difference between the plots 1303 and 1304 indicates the variation in the input image read by the scanner or the variation due to the subsequent processing (for example, JPEG compression).
[0077]
In the present embodiment, a two-dimensional histogram is created for speeding up processing, but a three-dimensional histogram of Y, Cb, and Cr may be created for improving accuracy.
[0078]
Next, in step S1006, representative color extraction and color assignment of each unit character area are performed. The details of this process will be described later.
[0079]
Next, in step S1007, it is determined whether there is a unit character whose color has not been allocated in step S1006. If there is an unassigned unit character (YES in step S1007), the flow advances to step S1009 to add 1 to the representative color number n to initialize the previously created histogram (step S1004). A histogram is created only for characters (step S1005). Hereinafter, similarly, in step S1007, the process is continued until there is no unit character to which a color has not been assigned. If there is no unassigned unit character (NO in step S1007), the process returns to step S1001, and if there is another unprocessed character area, the same processing is performed.
[0080]
Next, details of the process of extracting the representative color of each unit character area and assigning colors in step S1006 will be described with reference to FIG.
[0081]
FIG. 11 is a flowchart showing details of the representative color extraction and color assignment processing in step S1006 according to the embodiment of the present invention.
[0082]
First, in step S1101, a candidate representative color C ′ (n) that is a candidate for a representative color of a unit character area is extracted. Note that n is the number of representative colors, which is the same as n used in FIG. Further, the candidate representative color C ′ (n) is a structure having information of Cb and Cr. n) _r.
[0083]
A specific method of extracting candidate representative colors will be described with reference to FIG.
[0084]
A square surrounded by a dotted line shown in FIG. 14 indicates a preset area, and it is assumed that one representative color (Cb, Cr) is set in each area. Although the size of the area is arbitrary, it is desirable to set the area in consideration of a trade-off between accuracy and processing efficiency. In a case where each of YCbCr is 8 bits, in the present embodiment, the vertical and horizontal widths of the area are set to 3 bits. However, in FIG. 14, the area is illustrated in a large size 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 obtained. Here, since the maximum number of plots 3 is obtained in the area 1, 1401 (black triangle)) is obtained as the candidate representative color.
[0085]
Next, in step S1102, 1 is set for the number m of unit characters. Next, in step S1103, it is determined whether or not m is equal to or less than M. If it is less than or equal to M (YES in step S1103), the process advances to step S1104. On the other hand, if it is larger than M (NO in step S1103), the process ends.
[0086]
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 S1103 is YES, and the process proceeds to step S1104. Then, when m = 6, the condition of step S1103 is NO, and the process exits the loop of step S1006.
[0087]
In step S1104, 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 it is not determined (NO in step S1104), the process advances to step S1108. On the other hand, if it has not been determined (YES in step S1104), the flow advances to step S1105.
[0088]
Here, the unit character color C (m) is a structure having information of Cb and Cr. ) _R. Since no value is initially assigned to the unit character color C (m), C (m) is undetermined and the process proceeds to step S1105.
[0089]
Next, in step S1105, a distance (Distance) in the color space between the candidate representative color C ′ (n) and the unit character color C (m) is calculated.
[0090]
Next, in step S1106, it is determined whether or not Distance ≦ value with respect to a preset value value. If Distance ≦ value is not satisfied (NO in step S1106), the flow advances to step S1108. On the other hand, if Distance ≦ value is satisfied (YES in step S1106), the flow advances to step S1107.
[0091]
In step S1107, the candidate representative color C ′ (n) is set as the unit character color C (m) (the 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. Here, the value of the value can be arbitrarily adjusted.
[0092]
Then, in step S1108, 1 is added to the number of unit characters m, and the process returns to step S1103.
[0093]
A specific example of the processing in steps S1105 and S1106 in FIG. 11 will be described with reference to FIG. Here, since it is assumed that n = 1 and m = 1, the candidate representative color C ′ (1) is a plot 1401 and the unit character color C (1) is a plot 1301. In the above-described steps S1105 and S1106, whether the plot 1301 of the unit character color C (1) exists in the dotted circle 1500 centered on the plot 1401 that is the candidate representative color C ′ (1) and having a radius of value Has been determined.
[0094]
Here, since the plot 1301 exists in the dotted circle 1500, the candidate representative color C ′ (1) (black or an approximate color of black in this embodiment) is changed to the representative color C corresponding to the unit character area 902. Set as (1). Similarly, when m = 2 and 5, the plots 1302 and 1305 satisfy the condition of step S1106, so that the candidate representative colors C ′ (1) are replaced with the representative colors C (2) and C (2) of the unit character areas 903 and 906, respectively. Set as C (5).
[0095]
On the other hand, when m = 3, 4, since the condition of step S1106 is not satisfied, the process leaves the loop of step S1006 and performs the next representative color extraction while leaving C (3) and C (4) undecided. Then, in the subsequent processing, the candidate representative colors C ′ (2) (blue or an approximate color of blue in this embodiment) are changed to the representative colors C (3) and C (3) corresponding to the unit character areas 904 and 905, respectively. 4).
[0096]
As described above, in the flowcharts shown in FIGS. 10 and 11, the representative color extraction and the color assignment of each unit character area are performed. The extracted representative colors are stored in the compressed data 117 as the respective character representative colors 111 in FIG.
[0097]
Next, the processing executed by the character area filling unit 113 will be described with reference to FIG.
[0098]
FIG. 16 is a flowchart showing processing executed by the character area filling unit according to the embodiment of the present invention.
[0099]
The character area filling unit 113, the reduced multi-valued image 118, the partial binary image 107, and the character area coordinates 106 are input, and pixels corresponding to characters in the reduced multi-valued image 118 are filled with the surrounding background color. As a result, the compression ratio of the JPEG compression unit 115 is improved.
[0100]
First, in step S1801, to perform processing for each character area, it is determined whether there is an unprocessed character area. If there is no unprocessed character area (NO in step S1801), the processing ends. On the other hand, if there is an unprocessed character area (YES in step S1801), the flow advances to step S1802 to refer to the color of the reduced multi-valued image 118 corresponding to the position of the white pixel of the partial binary image 107 to obtain the character. The average value of the background color in the area is calculated. The method of coordinating the coordinates of the partial binary image 107 and the reduced multi-valued image 118 is the same as the method described for the representative color extracting unit 110, and thus the details are omitted. Next, in step S1803, the calculated average value of the background color is assigned to the character area of the reduced multi-valued image 118, that is, the character area of the reduced multi-valued image 118 or the unit character in the character area using the calculated background color. Fill the area.
[0101]
Next, an image decompression device that decompresses the compressed data 117 will be described with reference to FIG.
[0102]
FIG. 17 is a diagram showing a schematic configuration of the image decompression device according to the embodiment of the present invention.
[0103]
The MMR decompression unit 1603 receives the compression code A109, performs an MMR decompression process, and creates a binary image 1604. The JPEG decompression unit 1609 receives the compression code B116, performs JPEG decompression processing, and further performs expansion processing in the expansion unit 1610, thereby creating a multi-valued image 1611. The combining unit 1605 assigns each character representative color 111 to each black pixel of the corresponding unit character area in the binary image 1604 while referring to the character area coordinates 106, and places the binary image on the multi-valued image 1611. indicate. At this time, the white pixels of the binary image 1604 are transmitted through the multi-value image 1611.
[0104]
In this way, the image decompression device of FIG. 17 can decompress the compressed data 117 created by the image compression device of FIG. 1 and generate a decompressed image 1606 that is the final restored image.
[0105]
As described above, according to the present embodiment, after reducing the input multi-valued image and using the reduced multi-valued image to extract the representative color of the unit character area of the character area, at least the conventional technique is used. A work memory for temporarily storing an image to be processed can be significantly reduced while maintaining the representative color extraction accuracy. Further, since the number of processing steps can be realized by the same number of processing steps as in the past, cost performance can be improved.
[0106]
Further, a representative color in a binary image of a character area and a unit character area constituting the character area is extracted and assigned, and the representative color of each unit character area is generated as a part of the compressed data. Then, when a decompressed image is obtained by expanding the compressed data, the color of each unit character area in each character area is reproduced using this representative color. This makes it possible to reproduce a restored image in which the image quality of the input image is well maintained.
[0107]
Further, with respect to the character area, a compressed image with higher compression can be generated by using MMR compression instead of the conventionally used JPEG compression.
[0108]
Although the embodiment has been described in detail, the present invention may be applied to a system including a plurality of devices, or may be applied to an apparatus including a single device.
[0109]
According to the present invention, a software program (in the embodiment, a program corresponding to the flowchart shown in the drawings) for realizing the functions of the above-described embodiments is directly or remotely supplied to a system or an apparatus, and the computer of the system or the apparatus is supplied to the computer. Is also achieved by reading and executing the supplied program code.
[0110]
Therefore, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. That is, the present invention includes the computer program itself for realizing the functional processing of the present invention.
[0111]
In this case, any form of the program, such as an object code, a program executed by an interpreter, and script data supplied to the OS, is applicable as long as the program has the function of the program.
[0112]
As a recording medium for supplying the program, for example, a 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.
[0113]
Other methods of supplying the program include connecting to a homepage on the Internet using a browser of a client computer, and downloading the computer program itself of the present invention or a file containing a compressed automatic installation function from the homepage to a recording medium such as a hard disk. Can also be supplied. Further, the present invention 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, the present invention also includes a WWW server that allows a plurality of users to download a program file for implementing the functional processing of the present invention on a computer.
[0114]
In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and downloaded to a user who satisfies predetermined conditions from a homepage via the Internet to download key information for decryption. It is also possible to execute the encrypted program by using the key information and install the program on a computer to realize the program.
[0115]
The functions of the above-described embodiments are implemented when the computer executes the read program, and an OS or the like running on the computer executes a part of the actual processing based on the instructions of the program. Alternatively, all the operations are performed, and the functions of the above-described embodiments can be realized by the processing.
[0116]
Further, after the program read from the recording medium is written into 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 A CPU or the like provided in the function expansion unit performs part or all of the actual processing, and the processing also realizes the functions of the above-described embodiments.
[0117]
【The invention's effect】
As described above, according to the present invention, it is possible to generate a good restored image, and an image compression apparatus capable of performing image compression without deteriorating the image quality of a compression target efficiently and at low cost performance, An image decompression device, a method thereof, and a program can be provided.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a schematic configuration of an image compression device according to an embodiment of the present invention.
FIG. 2 is a diagram illustrating 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 the present invention.
FIG. 4 is a flowchart illustrating processing executed by an area specifying unit A according to the embodiment of the present invention.
FIG. 5 is a flowchart illustrating a process executed by an area specifying unit B according to the embodiment of the present invention.
FIG. 6 is a diagram illustrating an example of a histogram of an input image according to the embodiment of the present invention.
FIG. 7 is a diagram illustrating 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 the present invention.
FIG. 9 is a diagram illustrating an example of a processing result by a region specifying unit B according to the embodiment of the present invention.
FIG. 10 is a flowchart illustrating a process executed by a representative color extracting unit according to the embodiment of the present invention.
FIG. 11 is a flowchart illustrating details of representative color extraction and color allocation processing in step S1006 according to the embodiment of this invention.
FIG. 12A is a diagram for describing processing of a representative color extraction unit according to the embodiment of this invention.
FIG. 12B is a diagram for describing processing of the representative color extraction unit according to the embodiment of this invention.
FIG. 13 is a diagram for describing processing of a representative color extraction unit according to the embodiment of the present invention.
FIG. 14 is a diagram for explaining processing of a representative color extracting unit according to the embodiment of the present invention.
FIG. 15 is a diagram for describing processing of a representative color extraction unit according to the embodiment of this invention.
FIG. 16 is a flowchart illustrating a process executed by a character area filling unit according to the embodiment of the present invention.
FIG. 17 is a diagram illustrating a schematic configuration of an image decompression device according to an embodiment of the present invention.
[Explanation of symbols]
101 Input image 102 Binarization unit 103 Binary image 104 Area specifying unit A
105 Area specifying unit B
106 character area coordinates 107 partial binary image 108 MMR compression unit 109 compression code A
110 Representative color extraction unit 111 Each character representative color 112 Multi-valued image 113 Character area filling unit 114 Reduction unit 115 JPEG compression unit 116 Compression code B
117 Compressed data 118 Reduced multi-valued image 1603 MMR decompressor 1604 Binary image 1605 Combiner 1606 Decompressed image 1609 JPEG decompressor 1610 Enlarger 1611 Multi-valued image

Claims (19)

入力された多値画像を圧縮する画像圧縮装置であって、
前記多値画像を2値化する2値化手段と、
前記2値化手段で2値化された2値画像中の文字領域の位置を特定する第1領域特定手段と、
前記第1領域特定手段で特定された文字領域中の単位文字領域の位置を特定する第2領域特定手段と、
前記多値画像を縮小する縮小手段と、
前記第2領域特定手段で特定された単位文字領域の位置情報と前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出手段と、
前記第1領域特定手段で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め手段と、
前記穴埋め手段で生成された穴埋め縮小多値画像を圧縮する第1圧縮手段と、
前記第1領域特定手段で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮手段と、
前記第1及び第2領域特定手段で特定された位置情報と、前記第1及び第2圧縮手段で生成された第1及び第2圧縮コードと、前記代表色抽出手段で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力手段と
を備えることを特徴とする画像圧縮装置。
An image compression device for compressing an input multi-valued image,
Binarizing 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;
A second area specifying means for specifying a position of a unit character area in the character area specified by the first area specifying means;
Reducing means for reducing the multi-valued image,
A representative color extracting unit that extracts a representative color of the unit character region based on the position information of the unit character region specified by the second region specifying unit and the reduced multivalued image;
Filling means for filling a unit character area in the character area of the reduced multi-value image with its surrounding color based on the position information of the character area specified by the first area specifying means;
First compression means for compressing the fill-in reduced multivalued image generated by the fill-in means;
A second compression unit that compresses a partial binary image corresponding to the character region specified by the first region specification unit;
Position information specified by the first and second area specifying means, first and second compressed codes generated by the first and second compression means, and a unit character area extracted by the representative color extraction means Output means for outputting compressed data including the representative color information.
前記代表色抽出手段は、前記第2領域特定手段で特定された単位文字領域の位置情報を用いて、前記縮小多値画像の色情報を参照することにより、前記単位文字領域の平均色を算出する平均色算出手段と、
前記平均色算出手段で生成された単位文字領域の平均色から第1ヒストグラムを作成する第1ヒストグラム作成手段と、
前記第1ヒストグラムに基づいて、前記単位文字領域の代表色の候補となる候補代表色を抽出する抽出手段と、
前記抽出手段で抽出された候補代表色と前記単位文字領域の平均色に基づいて、前記候補代表色を前記単位文字の代表色に割り当てる色割当手段と
を備えることを特徴とする請求項1に記載の画像圧縮装置。
The representative color extracting means calculates the average color of the unit character area by referring to the color information of the reduced multi-valued image using the position information of the unit character area specified by the second area specifying means. Means for calculating average color,
First histogram creating means for creating a first histogram from the average color of the unit character area 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;
2. The image processing apparatus according to claim 1, further comprising: a color assigning unit that assigns the candidate representative color to the representative color of the unit character based on the candidate representative color extracted by the extracting unit and an average color of the unit character area. An image compression device according to claim 1.
前記2値化手段は、前記多値画像に基づく第2ヒストグラムを作成する第2ヒストグラム作成手段と、
前記第2ヒストグラムに基づいて、前記多値画像を2値化するための2値化閾値を算出する2値化閾値算出手段と
を備えることを特徴とする請求項2に記載の画像圧縮装置。
A second histogram creating unit that creates a second histogram based on the multi-valued image;
3. The image compression apparatus according to claim 2, further comprising: a binarization threshold calculating unit configured to calculate a binarization threshold for binarizing the multi-valued image based on the second histogram.
前記第1領域特定手段は、前記2値画像において所定値をとる画素の輪郭線追跡を行って特定される領域群を、それぞれ文字領域あるいは自然画像領域に特定し、前記領域群の各領域の位置情報、サイズ情報及びその種類を示す属性情報を特定する
ことを特徴とする請求項1に記載の画像圧縮装置。
The first area specifying means specifies an area group specified by performing contour line tracing of a pixel having a predetermined value in the binary image, as a character area or a natural image area, respectively. 2. The image compression device according to claim 1, wherein attribute information indicating position information, size information, and a type thereof is specified.
前記第2領域特定手段は、前記第1領域特定手段で特定された文字領域中の所定値をとる画素の集合を単位文字領域として特定し、前記単位文字領域の位置情報とサイズ情報を特定する
ことを特徴とする請求項1に記載の画像圧縮装置。
The second region specifying unit specifies a set of pixels having a predetermined value in the character region specified by the first region specifying unit as a unit character region, and specifies position information and size information of the unit character region. The image compression apparatus according to claim 1, wherein:
前記平均色算出手段は、前記第2領域特定手段で特定された単位文字領域の位置情報を用いて、前記単位文字領域内の所定値をとる画素に対応する前記縮小多値画像の色情報を参照することにより、該単位文字領域の平均色を算出する
ことを特徴とする請求項2に記載の画像圧縮装置。
The average color calculating means uses the position information of the unit character area specified by the second area specifying means to calculate color information of the reduced multivalued image corresponding to a pixel having a predetermined value in the unit character area. 3. The image compression apparatus according to claim 2, wherein an average color of the unit character area is calculated by referring to the reference color.
前記第1ヒストグラム作成手段は、前記平均色算出手段で算出された単位文字領域の平均色を用いて、前記単位文字領域からなる文字領域内における色空間ヒストグラムを第1ヒストグラムとして作成する
ことを特徴とする請求項2に記載の画像圧縮装置。
The first histogram creating means creates a color space histogram in a character area including the unit character area as a first histogram using the average color of the unit character area calculated by the average color calculating means. The image compression apparatus according to claim 2, wherein
前記抽出手段は、前記色空間ヒストグラム中で出力頻度の高い色分布から順に、前記単位文字領域の代表色の候補となる候補代表色を抽出する
ことを特徴とする請求項7に記載の画像圧縮装置。
8. The image compression method according to claim 7, wherein 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. apparatus.
前記色割当手段は、前記抽出手段で抽出された候補代表色と、前記単位文字領域の平均色との間の色空間上の距離を計算し、その距離が所定範囲内である場合に、前記候補代表色を前記単位文字領域の代表色として割り当る
ことを特徴とする請求項8に記載の画像圧縮装置。
The color allocating unit calculates a distance in a color space between the candidate representative color extracted by the extracting unit and the average color of the unit character area, and when the distance is within a predetermined range, 9. The apparatus according to claim 8, wherein a candidate representative color is assigned as a representative color of the unit character area.
前記縮小手段は、解像度変換パラメータを用いて、前記多値画像を解像度変換することで該多値画像を縮小する
ことを特徴とする請求項1に記載の画像圧縮装置。
2. The image compression apparatus according to claim 1, wherein the reduction unit reduces the multi-valued image by performing resolution conversion on the multi-valued image using a resolution conversion parameter.
前記穴埋め手段は、前記第1領域特定手段で特定された文字領域の位置情報に基づいて、前記縮小手段で設定されている縮小度に応じた位置に対応する前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする
ことを特徴とする請求項1に記載の画像圧縮装置。
The fill-in-the-blank means includes a character area of the reduced multi-valued image corresponding to a position corresponding to the reduction degree set by the reducing means, based on the position information of the character area specified by the first area specifying means. 2. The image compression apparatus according to claim 1, wherein the unit character area is filled with surrounding colors.
前記第1圧縮手段は、JPEG圧縮準拠である
ことを特徴とする請求項1に記載の画像圧縮装置。
The image compression apparatus according to claim 1, wherein the first compression unit is based on JPEG compression.
前記第2圧縮手段は、MMR圧縮準拠である
ことを特徴とする請求項1に記載の画像圧縮装置。
The image compression apparatus according to claim 1, wherein the second compression unit is based on MMR compression.
前記圧縮データを可逆圧縮する第3圧縮手段と
を更に備えることを特徴とする請求項1に記載の画像圧縮装置。
3. The image compression apparatus according to claim 1, further comprising: third compression means for reversibly compressing the compressed data.
圧縮データを伸長する画像伸長装置であって、
多値画像を2値化した2値画像中の文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域の位置情報と、該文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力手段と、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長手段と、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長手段と、
前記第2伸長手段で伸長された縮小多値画像を拡大する拡大手段と、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大手段で拡大された多値画像を合成する合成手段と
を備えることを特徴とする画像伸長装置。
An image decompression device for decompressing compressed data,
A first compression code for compressing a character area in a binary image obtained by binarizing a multi-valued image, and a unit character area in the character area of the reduced multi-valued image of the multi-valued image filled with surrounding colors. Input means for inputting compressed data including a second compressed code obtained by compressing the reduced multi-valued image, position information of the character area, and representative color information of a unit character area in the character area;
First decompression means for decompressing the first compression code in the compressed data;
Second decompression means for decompressing the second compression code in the compressed data;
Enlarging means for enlarging the reduced multivalued image expanded by the second expanding means;
A synthesizing unit for synthesizing the binary image expanded by the first expansion stage and the multi-value image expanded by the expansion unit based on the position information and the representative color in the compressed data. Image decompression device.
入力された多値画像を圧縮する画像圧縮方法であって、
前記多値画像を2値化する2値化工程と、
前記2値化工程で2値化された2値画像中の文字領域の位置を特定する第1領域特定工程と、
前記第1領域特定工程で特定された文字領域中の単位文字領域の位置を特定する第2領域特定工程と、
前記多値画像を縮小する縮小工程と、
前記第2領域特定工程で特定された単位文字領域の位置情報と前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出工程と、
前記第1領域特定工程で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め工程と、
前記穴埋め工程で生成された穴埋め縮小多値画像を圧縮する第1圧縮工程と、
前記第1領域特定工程で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮工程と、
前記第1及び第2領域特定工程で特定された位置情報と、前記第1及び第2圧縮工程で生成された第1及び第2圧縮コードと、前記代表色抽出工程で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力工程と
を備えることを特徴とする画像圧縮方法。
An image compression method for compressing an input multi-valued image,
A binarization step of binarizing the multi-valued image;
A first area specifying step of specifying a position of a character area in the binary image binarized in the binarizing step;
A second area specifying step of specifying the position of the unit character area in the character area specified in the first area specifying step;
A reducing step of reducing the multi-valued image,
A representative color extracting step of extracting a representative color of the unit character area based on the position information of the unit character area specified in the second area specifying step and the reduced multi-valued image;
A filling step of filling a unit character area in the character area of the reduced multi-valued image with its 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 fill-in reduced multivalued image generated in the fill-in step;
A second compression step of compressing a partial binary image corresponding to the character area specified in the first area specification 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 extraction step An output step of outputting compressed data including the representative color information.
圧縮データを伸長する画像伸長方法であって、
多値画像を2値化した2値画像中の文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域の位置情報と、該文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力工程と、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長工程と、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長工程と、
前記第2伸長工程で伸長された縮小多値画像を拡大する拡大工程と、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大工程で拡大された多値画像を合成する合成工程と
を備えることを特徴とする画像伸長方法。
An image decompression method for decompressing compressed data,
A first compression code for compressing a character area in a binary image obtained by binarizing a multi-valued image, and a unit character area in the character area of the reduced multi-valued image of the multi-valued image filled with surrounding colors. An input step of inputting compressed data including a second compressed code obtained by compressing the reduced multi-valued image, position information of the character area, and representative color information of a unit character area in the character area;
A first decompression step of decompressing the first compression code in the compressed data;
A second decompression step of decompressing the second compression code in the compressed data;
An enlarging step of enlarging the reduced multivalued image expanded in the second expanding step;
A synthesizing step of synthesizing the binary image decompressed in the first decompression stage and the multi-valued image expanded in the enlarging step based on the position information and the representative color in the compressed data. Image expansion method.
入力された多値画像を圧縮する画像圧縮を実現するプログラムであって、
前記多値画像を2値化する2値化工程のプログラムコードと、
前記2値化工程で2値化された2値画像中の文字領域の位置を特定する第1領域特定工程のプログラムコードと、
前記第1領域特定工程で特定された文字領域中の単位文字領域の位置を特定する第2領域特定工程のプログラムコードと、
前記多値画像を縮小する縮小工程のプログラムコードと、
前記第2領域特定工程で特定された単位文字領域の位置情報と前記縮小多値画像とに基づいて、前記単位文字領域の代表色を抽出する代表色抽出工程のプログラムコードと、
前記第1領域特定工程で特定された文字領域の位置情報に基づいて、前記縮小多値画像の文字領域内の単位文字領域をその周辺色で穴埋めする穴埋め工程のプログラムコードと、
前記穴埋め工程で生成された穴埋め縮小多値画像を圧縮する第1圧縮工程のプログラムコードと、
前記第1領域特定工程で特定された文字領域に対応する部分2値画像を圧縮する第2圧縮工程のプログラムコードと、
前記第1及び第2領域特定工程で特定された位置情報と、前記第1及び第2圧縮工程で生成された第1及び第2圧縮コードと、前記代表色抽出工程で抽出された単位文字領域の代表色情報を含む圧縮データを出力する出力工程のプログラムコードと
を備えることを特徴とするプログラム。
A program for realizing image compression for compressing an input multi-valued image,
Program code for a binarization step of binarizing the multi-valued image;
A program code for a first area specifying step for specifying a position of a character area in the binary image binarized in the binarizing step;
A program code for a second area specifying step for specifying the position of the unit character area in the character area specified in the first area specifying step;
Program code for a reduction step of reducing the multi-valued image,
A program code for a representative color extracting step of extracting a representative color of the unit character area based on the position information of the unit character area specified in the second area specifying step and the reduced multi-valued image;
A program code for a filling process of filling a unit character region in the character region of the reduced multi-valued image with its surrounding color based on the position information of the character region specified in the first region specifying step;
A program code of a first compression step of compressing the fill-in reduced multi-value image generated in the padding step;
Program code for a second compression step of compressing a partial binary image corresponding to the character area specified in the first area specification 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 extraction step And a program code for an output step of outputting compressed data including the representative color information.
圧縮データを伸長する画像伸長を実現するプログラムであって、
多値画像を2値化した2値画像中の文字領域を圧縮した第1圧縮コードと、前記多値画像の縮小多値画像の文字領域内の単位文字領域がその周辺色で穴埋めされた前記縮小多値画像を圧縮した第2圧縮コードと、前記文字領域の位置情報と、該文字領域内の単位文字領域の代表色情報を含む圧縮データを入力する入力工程のプログラムコードと、
前記圧縮データ中の前記第1圧縮コードを伸長する第1伸長工程のプログラムコードと、
前記圧縮データ中の前記第2圧縮コードを伸長する第2伸長工程のプログラムコードと、
前記第2伸長工程で伸長された縮小多値画像を拡大する拡大工程のプログラムコードと、
前記圧縮データ中の前記位置情報及び前記代表色に基づいて、前記第1伸長段で伸長された2値画像と前記拡大工程で拡大された多値画像を合成する合成工程のプログラムコードと
を備えることを特徴とするプログラム。
A program for realizing image expansion for expanding compressed data,
A first compression code for compressing a character area in a binary image obtained by binarizing a multi-valued image, and a unit character area in the character area of the reduced multi-valued image of the multi-valued image filled with surrounding colors. A second compression code for compressing the reduced multi-valued image, position information of the character area, and program code of an input step of inputting compressed data including representative color information of a unit character area in the character area;
Program code for a first decompression step for decompressing the first compression code in the compressed data;
Program code for a second decompression step for decompressing the second compression code in the compressed data;
Program code for an enlarging step for enlarging the reduced multivalued image expanded in the second expanding step;
And a program code for a synthesizing step of synthesizing the binary image expanded in the first expansion stage and the multi-valued image expanded in the expansion step based on the position information and the representative color in the compressed data. A program characterized by the following.
JP2002290148A 2002-10-02 2002-10-02 Image compression apparatus, image expansion apparatus, method thereof, and program Expired - Fee Related JP3817506B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002290148A JP3817506B2 (en) 2002-10-02 2002-10-02 Image compression apparatus, image expansion apparatus, method thereof, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002290148A JP3817506B2 (en) 2002-10-02 2002-10-02 Image compression apparatus, image expansion apparatus, method thereof, and program

Publications (2)

Publication Number Publication Date
JP2004128881A true JP2004128881A (en) 2004-04-22
JP3817506B2 JP3817506B2 (en) 2006-09-06

Family

ID=32282123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002290148A Expired - Fee Related JP3817506B2 (en) 2002-10-02 2002-10-02 Image compression apparatus, image expansion apparatus, method thereof, and program

Country Status (1)

Country Link
JP (1) JP3817506B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006014210A (en) * 2004-06-29 2006-01-12 Ricoh Co Ltd Image processing and image forming apparatuses
JP2009017392A (en) * 2007-07-06 2009-01-22 Kyocera Mita Corp Image processing device and image forming apparatus
JP2010033541A (en) * 2008-06-26 2010-02-12 Canon Inc Image processing apparatus and method
JP2013125994A (en) * 2011-12-13 2013-06-24 Canon Inc Image compression device, image compression method, and computer program
WO2024012249A1 (en) * 2022-07-15 2024-01-18 华为技术有限公司 Method and apparatus for coding image including text, and method and apparatus for decoding image including text

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006014210A (en) * 2004-06-29 2006-01-12 Ricoh Co Ltd Image processing and image forming apparatuses
JP4533683B2 (en) * 2004-06-29 2010-09-01 株式会社リコー Image processing apparatus and image forming apparatus
JP2009017392A (en) * 2007-07-06 2009-01-22 Kyocera Mita Corp Image processing device and image forming apparatus
JP2010033541A (en) * 2008-06-26 2010-02-12 Canon Inc Image processing apparatus and method
US8417029B2 (en) 2008-06-26 2013-04-09 Canon Kabushiki Kaisha Image processing apparatus and method, including fill-up processing
JP2013125994A (en) * 2011-12-13 2013-06-24 Canon Inc Image compression device, image compression method, and computer program
WO2024012249A1 (en) * 2022-07-15 2024-01-18 华为技术有限公司 Method and apparatus for coding image including text, and method and apparatus for decoding image including text

Also Published As

Publication number Publication date
JP3817506B2 (en) 2006-09-06

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
JP5036430B2 (en) Image processing apparatus and control method thereof
US7639388B2 (en) Image processing apparatus, image reproduction apparatus, system, method and storage medium for image processing and image reproduction
JP4366003B2 (en) Image processing apparatus and image processing method
JP5137759B2 (en) Image processing device
JP2009225422A (en) Image encoding apparatus, image processing apparatus, and control method thereof
JP4708888B2 (en) Image processing apparatus, image processing method, and computer program
JP4364809B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP4235583B2 (en) Image processing apparatus, image processing program, and storage medium
JP5893379B2 (en) Image compression apparatus, image compression method, and computer program
JP3715905B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP5178490B2 (en) Image processing apparatus, image processing method, and computer program
JP2003338935A (en) Image processing equipment and method therefor
JP2003244447A (en) Image processor and image processing method
JP3817506B2 (en) Image compression apparatus, image expansion apparatus, method thereof, and program
JP3870147B2 (en) Image compression apparatus, image expansion apparatus, method thereof, and program
JP2003348361A (en) Image processing apparatus
JP2003219187A (en) Image processing method and image processor
JP2005204206A (en) Image processing apparatus, image processing program, and storage medium
JP2003338934A (en) Image processing equipment and method therefor
JP4504096B2 (en) Image processing apparatus, program, and storage medium
JP4383187B2 (en) Image processing apparatus, image processing program, and storage medium
JP2007335983A (en) Image processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040526

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060217

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060418

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060612

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3817506

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090616

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100616

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110616

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120616

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120616

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130616

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees