JP3849906B2 - Image compression apparatus and image compression method - Google Patents

Image compression apparatus and image compression method Download PDF

Info

Publication number
JP3849906B2
JP3849906B2 JP29077399A JP29077399A JP3849906B2 JP 3849906 B2 JP3849906 B2 JP 3849906B2 JP 29077399 A JP29077399 A JP 29077399A JP 29077399 A JP29077399 A JP 29077399A JP 3849906 B2 JP3849906 B2 JP 3849906B2
Authority
JP
Japan
Prior art keywords
image
binarization
compression
pixel data
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP29077399A
Other languages
Japanese (ja)
Other versions
JP2001111840A (en
Inventor
禎郎 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP29077399A priority Critical patent/JP3849906B2/en
Publication of JP2001111840A publication Critical patent/JP2001111840A/en
Application granted granted Critical
Publication of JP3849906B2 publication Critical patent/JP3849906B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、画像圧縮装置および画像圧縮方法に関し、特にデジタルカメラなどの限られた容量の記憶装置を持つ画像入力装置における記憶容量の節約に寄与する画像圧縮装置および画像圧縮方法に関する。
【0002】
【従来の技術】
映像入力機器として専ら使用されてきたビデオカメラやデジタルスチルカメラ機器の発達で、これをドキュメント入力機器として使用したいという要求が高まってきた。特に最近のデジタルスチルカメラは高画素化と小型化により、携帯情報収集ツールとしてさまざまな用途に使われ始めている。文書、看板、広告などの文字情報は二値画像で十分な情報が得られ、しかも保存に必要な記憶容量も小さいので二値化画像として保存することが有利である。また、二値化した画像をファックス送信したり、文字認識をして再利用することもできる。さらに、300万画素クラスのCCDを使用した場合、多値カラー画像(YUV4:2:2)をJPEG圧縮で1/16にしたとしても、375キロバイト必要となる。
【0003】
一方、白黒の二値画像ならば非圧縮でも375キロバイトで、MH、MMRなどの二値画像圧縮をすれば文字を中心とした画像ならば十分な圧縮が期待できる。
【0004】
【発明が解決しようとする課題】
ところが、自然画などの画像をディザや誤差拡散などの疑似中間調処理を用いて二値化した場合、MHやMMR圧縮後の符号長は圧縮前の画像サイズより大きくなることが多く圧縮する意味がない。また、JBIGでは原理的には圧縮前の画像サイズより大きくなることはないが、計算が複雑で、疑似中間調画像に対して圧縮率が著しく向上するというわけではない。
【0005】
本発明は、上記した事情を鑑みてなされたものであり、
本発明の目的は、二値画像を圧縮する際、所定の符号長に圧縮する固定長多値画像圧縮と可変長二値画像圧縮とを行い、両圧縮による圧縮後の符号長を比較して符号長の短い方の符号を選択することで、画像を効率的に圧縮する画像圧縮装置および画像圧縮方法を提供することにある。
【0006】
本発明の他の目的は、本発明の圧縮装置を用いて、出来る限り多数の白黒二値画像を記憶できる画像入力装置を提供することにある。
【0007】
【課題を解決するための手段】
本発明では、二値画像の下位に値が0の7ビットを付加して8ビット(0または255の値)に変換し、固定長圧縮器で8ビットの画像を圧縮する。また、可変長圧縮器で二値画像を圧縮し、このとき符号長が所定バイトを越えたか否かを調べる。所定バイトを越えているときは固定長圧縮器で圧縮した符号を選択し、越えていないときは可変長圧縮器で圧縮した符号を選択する。
【0008】
また、本発明を画像入力装置に適用する場合には、取り込んだ多値画像を二値化した後、固定長圧縮器で圧縮した符号化長と可変長圧縮器で圧縮した符号化長を比較し、短い方の符号を選択して記憶する。
【0009】
【発明の実施の形態】
以下、本発明の一実施例を図面を用いて具体的に説明する。
(実施例1)
図1は、本発明の実施例1の構成を示す。図において、1はビット変換器、2は固定長圧縮器、4は可変長圧縮器、3、5はバッファ、6は選択器、7は符号長判別信号である。
【0010】
二値画像は、可変長圧縮器4に入力される。可変長圧縮器4では、公知の二値画像圧縮方法であるMHあるいはMMRなどの圧縮が行われる。MHやMMRは演算が簡単で容易に実現でき、圧縮スピードも速いという利点がある。特に文字画像に最適な圧縮方法であるので、ドキュメントの画像に対しては高い圧縮率が得られる。例えば、1280×960の大きさの画像では、非圧縮二値画像の画像サイズが154kbyteに対して、MH、MMRの符号長は約20kbyte〜30kbyteである。また、疑似中間調処理した二値画像の場合は、MH、MMRとも圧縮後の符号長が圧縮前の画像サイズより多くの場合大きくなる。
【0011】
また、二値画像は、ビット変換器1において値が0の7ビットが下位に付加され8ビットに変換される。8ビットに変換された画像のとる値は0か255のいずれかである。8ビット化された画像は固定長圧縮器2で圧縮される。固定長圧縮器2では公知のJPEG圧縮が行われる。JPEG圧縮はもともと8ビットカラー画像の多値画像圧縮方法であるが、二値画像の二値0と1を輝度の0と255に割り当て、色成分を0とすれば二値画像への応用は可能である。JPEG圧縮後の符号長は、非圧縮二値画像の画像サイズに対して2/3程度に設定する。例えば、画像の大きさが1280×960であるならば、非圧縮二値画像の画像サイズは154kbyteである。画像圧縮比を2/3と設定すればJPEG圧縮後の符号長は100kbyteになる。約100kbyteあれば、JPEG画像を復号して再度二値化処理しても、符号化前の二値画像と比較して劣化が目立たないレベルである。
【0012】
可変長圧縮器4と固定長圧縮器2で符号化された符号はそれぞれバッファ5、3に一時保存される。可変長圧縮器4は符号が100kbyteを越えたか否かの判別信号7を選択器6に出力する。選択器6は、可変長圧縮器4の判別信号7を受けて100kbyteを越えているならば(つまり、可変長符号化の符号長が、固定長符号化の符号長よりも長い)バッファ3の符号を、100kbyteを越えていないならば(つまり、可変長符号化の符号長が、固定長符号化の符号長よりも短い)バッファ5の符号を読み出して出力する。
【0013】
(実施例2)
図2は、本発明の実施例2の構成を示す。図2は、デジタルスチルカメラの画像入力から輝度信号の二値化圧縮保存までの構成を示す図である。
【0014】
CCD11は、光学系を通して集光された光を電気信号に変換する手段であり、各画素R,G,Bのアナログ画像信号を出力する。AGC回路10は、CCDからの信号出力を電気的に増幅する回路であり、被写体の明るさが不足し、シャッタースピードが遅く出来ない場合など露光量が不足する撮影の場合、ゲインを上昇させて適度なレベルの出力が得られるようにする。出力された画像信号をA/D変換器12でデジタル信号に変換する。デジタル信号は、ホワイトバランス調整器13でホワイトバランスが調整される。ホワイトバランス調整とは画像中の無彩色部分を検出し、無彩色がR=G=Bとなるように各色信号を調整することである。
【0015】
次に、輝度信号生成器14と輝度信号選択器15を合わせた輝度信号生成手段において輝度信号が生成される。ホワイトバランスが調整された画像は、輝度信号生成器14で二つの輝度信号が生成される。一つは、広帯域の輝度信号、もう一つは狭帯域の輝度信号である。広帯域の輝度信号YHは、注目画素がそれぞれR,G,Bのときにそれぞれ下式で算出される。
YH_R=R
YH_G=G
YH_B=B
被写体が白黒である場合には、最も広帯域な輝度信号が生成される。
【0016】
次に、狭帯域の輝度信号YLについては、例えば、図3のように市松模様にRGBフィルタが配置された場合、G0におけるYL信号は下式のように生成される。
YL_G0=(4G0+G1+G2+G3+G4)/8
また、R0,B0におけるYL信号は下式のように生成される。
YL_R0=(G0+G1+G2+G5)/4
YL_B0=(G0+G1+G3+G6)/4
【0017】
上記のように、周囲のG画素を使用して、平均をとることによりノイズの少ない狭帯域の輝度信号YLを生成する。輝度信号選択器15は、適正露出が得られるカメラの絞り量およびシャッタースピードから計算されたEv値とあらかじめ設定された値Ev0(絞り開放時のレンズのf値および手ぶれしない程度の遅いシャッタースピードで決まる量)とを比較して、Ev値がEv0より大きい場合にはYHを、Ev値がEv0以下の場合にはYLを選択し出力する。
【0018】
ただし、実際の撮影は、フラッシュを使用しなくても手ぶれを防ぐため、シャッタースピードは遅くとも1/焦点距離(mm)秒に設定する。
【0019】
生成された輝度信号はアパーチャ補正器16で画像の輪郭部分を補正する。図4は、アパーチャ補正器の詳細な構成を示す。輝度信号は縦方向および横方向のラプラシアンフィルタ31、32で縦方向のラプラシアンおよび横方向のラプラシアンを算出する。縦方向および横方向のラプラシアンの絶対値33、34を比較器35で比較し、絶対値の大きい方のラプラシアンを選択器36で選択し、加算器37で元の輝度信号に加える。
【0020】
ラプラシアンフィルタの係数は図5に示すように、露光量であるEv値が所定の値Ev0より大きい場合は図5(a)のハイパス型、小さい場合は図5(b)のバンドパス型フィルタを用いる。フィルタの係数はパラメータ38に格納されていて、比較結果に応じてフィルタの係数(a)または(b)がフィルタ31、32に設定される。バンドパス型を利用すれば、1ドットの細かなノイズは抑制され、被写体の明るさが不足する場合に、背景のノイズ低減のみならず、文字の品質も向上する。
【0021】
次に、アパーチャ補正した輝度信号の二値化を行う。アパーチャ補正された輝度信号は一時フレームメモリ17に記憶される。CCD11のサイズにより画像サイズが決まっているので画像サイズを基に、CPU18が二値化処理に必要なブロックサイズとサンプリング周期を計算して、それぞれブロックバッファ19と非低輝度画素平均値算出器20を制御する。
【0022】
図6は、サンプリング周期を示した図である。図6(a)は画像サイズが小さい場合、図6(b)は画像サイズが大きい場合のサンプリング周期を示す。カメラで撮影した画像の明るさのむらは、画像の中心付近が明るく、周辺にいくにしたがって暗くなる。したがって、あらかじめCPU18のROM上に画像のブロック分割の形状を図7のように正方形、長方形、三角形の組み合わせで画像の中心を対称点として分割するよう記憶させておけば、ブロック内の明るさはより均一に近くなり、正方形だけのブロックを使用する場合と比較して、より高品質な二値化を可能にする。
【0023】
ブロックバッファ19は、あらかじめ設定された形状、サイズのブロック単位で画像をフレームメモリから読み出して一時記憶するバッファである。非低輝度画素平均値算出器20は、ブロックバッファ19に蓄えられた画像から、あらかじめ設定されたサンプリング周期で画素をサンプリングして読み出し、その輝度値の平均を算出する手段である。
【0024】
図8は、非低輝度画素平均値算出器の詳細な構成を示す。サンプル読み出しされた画素値は、比較器41で閾値thl_ijと比較される。比較の結果、画素値が閾値より大きい場合、ゲート45を開き、加算結果レジスタ42の値と画素値が加算器46で加算され、その結果が加算結果レジスタ42に記憶される。同時に、カウンタ43が一つインクリメントされる。ここで、カウンタ43は、インクリメントの結果、桁が繰り上がる状態(カウンタが2のべき乗を示す状態)になると、ゲート47を開き、加算器の結果をシフトレジスタ44に記憶し、カウンタが示すビット数だけ右シフトする。ブロック内の全画素について処理した後、シフトレジスタ44に記憶された値が非低輝度画素平均値ave_ijとして出力される。
【0025】
非低輝度画素検出閾値設定器21は、前ブロック(現ブロックが(i,j)なら(i−1,j)を指す)の非低輝度画素平均値ave_i−1jに所定の係数Caを乗算して非低輝度画素平均値算出器20で使用する閾値thl_ijを算出する。所定の係数をCa=1/4とすると、非低輝度画素検出閾値設定器21は、ave_i−1jの下位2ビットを除いた値となるので特別な回路は必要なくなる。非低輝度画素平均値算出回路20で算出されたave_ijを用いて二値化閾値設定回路22で画像二値化のために二値化閾値th_ijを設定する。
【0026】
二値化閾値設定回路22は、所定の係数Cbをave_ijに乗じる乗算器であるが、Cb=x/16、あるいはCb=x/8(xは分母を越えない自然数を表す既定値)とすれば、二値化閾値設定回路22は加算器のみで構成できるのでコスト、スピードの点で有利になる。二値化閾値th_ijを用いて二値化器23でブロックを二値化する。二値化された画像は、圧縮器24で画像圧縮がなされる。
【0027】
圧縮器の詳細な構成を図9に示す。二値化された画像は、可変長圧縮器51および固定長圧縮器52に入力される。可変長圧縮器51では、公知の二値画像圧縮方法であるMHあるいはMMRなどの圧縮が行われる。MHやMMRは演算が簡単で容易に実現でき、圧縮スピードも速いという利点がある。特に文字画像に特化した圧縮方法なのでドキュメントの画像には高い圧縮率が得られる。例えば、1280×960の大きさの画像では、非圧縮二値画像の画像サイズが154kbyteに対して、MH、MMRの符号長は約20kbyte〜30kbyteである。また、疑似中間調処理をした二値画像の場合はMH、MMRとも圧縮後の符号長が圧縮前の画像サイズより多くの場合大きくなる。
【0028】
固定長圧縮器52では公知のJPEG圧縮が行われる。JPEG圧縮はもともと8ビットカラー画像の多値画像圧縮方法であるが、二値画像の二値0と1を、輝度の0と255に割り当て、色成分を0とすれば二値画像への応用は可能である。JPEG圧縮後の符号長は、非圧縮二値画像の画像サイズに対して2/3程度に設定する。例えば、画像の大きさが1280×960であるならば、非圧縮二値画像の画像サイズは154kbyteである。画像圧縮比を2/3と設定すればJPEG圧縮後の符号長は100kbyteになる。約100kbyteあれば、JPEG画像を復号してもう一度二値化処理しても、符号化前の二値画像と比較して劣化は気にならないレベルである。
【0029】
可変長圧縮器51と固定長圧縮器52で符号化された符号はそれぞれバッファ53、54に一時保存される。可変長圧縮器51は圧縮した符号が100kbyteを越えたか否かの判別信号56を符号選択器55に出力する。符号選択器55は、可変長圧縮器51の判別信号56を受けて100kbyteを越えているならば(可変長符号化の符号長が、固定長符号化の符号長よりも長い場合)バッファ54の符号を、100kbyteを越えていないならば(可変長符号化の符号長が、固定長符号化の符号長よりも短い場合)バッファ53の符号を読み出して図2のメモリ25に出力し、符号化された画像が保存される。
【0030】
(実施例3)
図10は、本発明の実施例3の構成を示す。実施例2と異なる点は、疑似中間調処理二値化回路27、選択器28、モード設定器9を設けた点である。アパーチャ補正された輝度信号が一時フレームメモリ17に記憶されるまでの処理は実施例2と同様である。
【0031】
アパーチャ補正した輝度信号について以下のように二値化を行う。実施例2と同様にしてフレームメモリ17からブロックバッファ19に画像が転送される。ブロックバッファ19に転送された画像は、疑似中間調処理二値化回路27および単純二値化回路23に入力される。疑似中間調処理二値化回路27では疑似中間調処理(公知のディザ処理あるいは誤差拡散処理)を用いて画像を二値化する。
【0032】
文字二値化回路26内のブロックバッファ19、非低輝度画素平均値算出器20、非低輝度画素検出閾値設定器21、二値化閾値設定回路22は、実施例2で説明したものと同様であるので、説明を省略する。
【0033】
実施例2と同様に、二値化閾値th_ijを用いて単純二値化器23でブロックを二値化する。疑似中間調処理された二値画像、単純二値化された二値画像は選択器28に入力される。
【0034】
モード設定器9は、カメラの文字二値化モードあるいは自然画二値化モードを設定するもので、文字二値化モードが設定された場合には、単純二値化された二値画像が、自然画二値化モードが設定された場合には、疑似中間調処理された二値画像が選択器28で選択されて出力される。選択された画像は、実施例2で説明したと同様にして圧縮器24で画像圧縮され、符号化された画像がメモリ25に保存される。
【0035】
(実施例4)
図11は、本発明の実施例4の構成を示す。実施例3と相違する点は、モード設定器の代わりに、像域分離回路30を設けた点である。
【0036】
実施例2と同様にブロックバッファ19に転送された画像は、像域分離回路30、疑似中間調処理二値化回路27および単純二値化回路23に入力される。像域分離回路30では画像の各画素毎に文字または非文字(絵柄)の領域を判別する。
【0037】
図12は、像域分離回路30の詳細を示す。像域分離回路30へは、ブロックバッファ19の画像信号と単純二値化回路23の出力信号が入力される。入力された画像信号はエッジ抽出回路301で、図13に示すようなマスク係数を持ったラプラシアン演算(注目画素は中心の画素)または図14に示すような一次微分演算(注目画素は左右のフィルタの中心の画素)を行い、二値化回路302においてその演算値edgeを所定の閾値thで二値化することにより、注目画素がエッジであるか非エッジであるかを判定する。
【0038】
また、単純二値化回路23の出力信号は、境界検出回路303で白と黒の境界が検出される。境界検出回路303は、注目画素を含む3×3画素の中に白画素と黒画素の両者が混在している場合に、注目画素は境界であると判定し、3×3画素の中に白画素のみあるいは黒画素のみが存在する場合は境界でないと判定する。
【0039】
二値化回路302の出力と境界検出回路303の出力の論理積304を取ることによって、注目画素が文字領域(エッジかつ境界)であるか否か(非文字領域)を判定し、選択器28へ出力する。
【0040】
図11に戻って、疑似中間調処理回路27では疑似中間調処理(公知のディザ処理あるいは誤差拡散処理)を用いて画像を二値化する。
【0041】
疑似中間調処理された二値画像、単純二値化された二値画像は像域分離回路30の文字/非文字判別信号に基づき、文字領域の場合は単純二値化された二値画像が、非文字領域の場合は疑似中間調処理された二値画像が選択器28で選択されて出力される。選択された画像は、実施例2で説明したと同様にして圧縮器24で画像圧縮され、符号化された画像がメモリ25に保存される。
【0042】
(実施例5)
本発明の実施例5は、画像圧縮方法に係わる実施例である。図15は、実施例5の処理フローチャートである。はじめに二値画像が入力される(ステップ101)。入力された二値画像は0と255の二値しかとらない8ビットの多値画像に変換され(下位に7ビットの0を付加する)、あらかじめ定められた圧縮率で多値画像用の固定長符号化がなされる(ステップ102)。固定長符号化の代表的な例はJPEGである。
【0043】
次に、二値画像に対して二値画像用の可変長符号化がなされる(ステップ103)。可変長符号化の代表的な例はMHやMMRである。それぞれの符号化で符号化された符号長を比較する(ステップ104)。可変長符号化の符号長が短ければ可変長符号を選択し(ステップ105)、固定長符号化の符号長が短ければ固定長符号を選択し(ステップ106)、記憶する(ステップ107)。
【0044】
【発明の効果】
以上、説明したように、本発明によれば、二値画像に対して、簡易な構成でかつ高圧縮率をもつ固定長の多値画像圧縮が可能になる。
【0045】
本発明によれば、異なる圧縮方法または圧縮手段を用意しているので、二値画像の内容に関わらず、圧縮率が高く画質の良い画像圧縮を得ることが可能となる。
【0046】
本発明によれば、撮影した画像を保存する際、二値化した画像を高圧縮、高画質で保存できる画像入力装置を得ることが可能になる。
【0047】
本発明によれば、画像を二値化する際、入力する画像の種類に応じて、二値化手段を切り替えることができるので、高画質の二値画像が得られる。
【0048】
本発明によれば、画像の領域(文字/非文字)に応じて領域毎に二値化方式が選択できるので、高画質の二値画像が得られる。
【図面の簡単な説明】
【図1】 本発明の実施例1の構成を示す。
【図2】 本発明の実施例2の構成を示す。
【図3】 CCDの画素配列を示す。
【図4】 アパーチャ補正回路の構成を示す。
【図5】 (a)は、ハイパス型ラプラシアンを示し、(b)はバンドパス型ラプラシアンを示す。
【図6】 (a)、(b)はそれぞれ異なるサンプリング周期を示す。
【図7】 画像のブロック分割方法を示す。
【図8】 非低輝度画素平均値算出器の構成を示す。
【図9】 画像圧縮器の構成を示す。
【図10】 本発明の実施例3の構成を示す。
【図11】 本発明の実施例4の構成を示す。
【図12】 像域分離回路の構成を示す。
【図13】 ラプラシアンマスク係数を示す。
【図14】 一次微分演算を示す。
【図15】 本発明の実施例5の処理フローチャートを示す。
【符号の説明】
1 ビット変換器
2 固定長圧縮器
3、5 バッファ
4 可変長圧縮器
6 選択器
7 符号長判別信号
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image compression apparatus and an image compression method , and more particularly to an image compression apparatus and an image compression method that contribute to saving storage capacity in an image input apparatus having a limited storage capacity such as a digital camera.
[0002]
[Prior art]
With the development of video cameras and digital still camera devices that have been exclusively used as video input devices, there has been an increasing demand to use them as document input devices. In particular, recent digital still cameras have begun to be used for various purposes as portable information collection tools due to their high pixels and small size. Character information such as documents, signboards, and advertisements can be obtained as a binary image because sufficient information can be obtained with a binary image and the storage capacity required for storage is small. In addition, the binarized image can be transmitted by fax, or can be reused after character recognition. Further, when a 3 million pixel class CCD is used, even if the multi-valued color image (YUV 4: 2: 2) is reduced to 1/16 by JPEG compression, 375 kilobytes are required.
[0003]
On the other hand, if it is a black and white binary image, it is 375 kilobytes even if it is not compressed, and if binary image compression such as MH and MMR is performed, sufficient compression can be expected if the image is centered on characters.
[0004]
[Problems to be solved by the invention]
However, when an image such as a natural image is binarized using pseudo halftone processing such as dithering or error diffusion, the code length after MH or MMR compression is often larger than the image size before compression, meaning that compression is performed. There is no. In principle, JBIG does not become larger than the image size before compression, but the calculation is complicated and the compression rate does not significantly improve for a pseudo-halftone image.
[0005]
The present invention has been made in view of the above circumstances,
An object of the present invention is to perform a fixed-length multi-value image compression and a variable-length binary image compression for compressing a binary image to a predetermined code length, and compare the code length after compression by both compressions. An object of the present invention is to provide an image compression apparatus and an image compression method for efficiently compressing an image by selecting a code having a shorter code length.
[0006]
Another object of the present invention is to provide an image input apparatus capable of storing as many black and white binary images as possible using the compression apparatus of the present invention.
[0007]
[Means for Solving the Problems]
In the present invention, 7 bits having a value of 0 are added to the lower order of the binary image to convert it to 8 bits (value of 0 or 255), and the 8-bit image is compressed by a fixed length compressor. Further, the binary image is compressed by the variable length compressor, and it is checked whether or not the code length exceeds a predetermined byte. When the predetermined byte is exceeded, the code compressed by the fixed length compressor is selected, and when the predetermined byte is not exceeded, the code compressed by the variable length compressor is selected.
[0008]
In addition, when the present invention is applied to an image input device, after binarizing the captured multi-valued image, the encoded length compressed by the fixed length compressor is compared with the encoded length compressed by the variable length compressor. Then, the shorter code is selected and stored.
[0009]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
Example 1
FIG. 1 shows the configuration of Embodiment 1 of the present invention. In the figure, 1 is a bit converter, 2 is a fixed length compressor, 4 is a variable length compressor, 3, 5 is a buffer, 6 is a selector, and 7 is a code length discrimination signal.
[0010]
The binary image is input to the variable length compressor 4. The variable length compressor 4 performs compression such as MH or MMR, which is a known binary image compression method. MH and MMR have the advantage that they are simple and easy to implement, and the compression speed is fast. In particular, since the compression method is optimal for character images, a high compression rate can be obtained for document images. For example, in an image having a size of 1280 × 960, the code size of MH and MMR is about 20 kbytes to 30 kbytes while the image size of the uncompressed binary image is 154 kbytes. In the case of a binary image subjected to pseudo halftone processing, the code length after compression is larger in both cases of MH and MMR than the image size before compression.
[0011]
The binary image is converted to 8 bits by adding 7 bits having a value of 0 to the lower order in the bit converter 1. The value of the image converted to 8 bits is either 0 or 255. The 8-bit image is compressed by the fixed length compressor 2. The fixed length compressor 2 performs known JPEG compression. JPEG compression is originally a multi-value image compression method for 8-bit color images, but if binary values 0 and 1 are assigned to luminance values 0 and 255 and the color component is set to 0, the application to the binary image is Is possible. The code length after JPEG compression is set to about 2/3 of the image size of the uncompressed binary image. For example, if the image size is 1280 × 960, the image size of the uncompressed binary image is 154 kbytes. If the image compression ratio is set to 2/3, the code length after JPEG compression is 100 kbytes. If it is about 100 kbytes, even if the JPEG image is decoded and binarized again, the deterioration is not conspicuous compared to the binary image before encoding.
[0012]
The codes encoded by the variable length compressor 4 and the fixed length compressor 2 are temporarily stored in the buffers 5 and 3, respectively. The variable length compressor 4 outputs a determination signal 7 to the selector 6 as to whether or not the code exceeds 100 kbytes. If the selector 6 receives the discrimination signal 7 from the variable length compressor 4 and exceeds 100 kbytes (that is, the code length of the variable length encoding is longer than the code length of the fixed length encoding), the selector 6 If the code does not exceed 100 kbytes (that is, the code length of variable length coding is shorter than the code length of fixed length coding), the code of the buffer 5 is read and output.
[0013]
(Example 2)
FIG. 2 shows a configuration of the second embodiment of the present invention. FIG. 2 is a diagram showing a configuration from image input of a digital still camera to binarized compression storage of luminance signals.
[0014]
The CCD 11 is means for converting the light collected through the optical system into an electrical signal, and outputs an analog image signal of each pixel R, G, B. The AGC circuit 10 is a circuit that electrically amplifies the signal output from the CCD, and in the case of shooting where the amount of exposure is insufficient, such as when the subject is insufficiently bright and the shutter speed cannot be slowed down, the gain is increased. Ensure that a moderate level of output is obtained. The output image signal is converted into a digital signal by the A / D converter 12. The white balance of the digital signal is adjusted by the white balance adjuster 13. White balance adjustment is to detect an achromatic color portion in an image and adjust each color signal so that the achromatic color becomes R = G = B.
[0015]
Next, a luminance signal is generated by a luminance signal generation unit that combines the luminance signal generator 14 and the luminance signal selector 15. The luminance signal generator 14 generates two luminance signals for the image whose white balance has been adjusted. One is a wideband luminance signal, and the other is a narrowband luminance signal. The broadband luminance signal YH is calculated by the following equation when the target pixel is R, G, B, respectively.
YH_R = R
YH_G = G
YH_B = B
When the subject is black and white, the broadest luminance signal is generated.
[0016]
Next, for the narrowband luminance signal YL, for example, when RGB filters are arranged in a checkered pattern as shown in FIG. 3, the YL signal in G0 is generated as shown in the following equation.
YL_G0 = (4G0 + G1 + G2 + G3 + G4) / 8
The YL signal at R0 and B0 is generated as in the following equation.
YL_R0 = (G0 + G1 + G2 + G5) / 4
YL_B0 = (G0 + G1 + G3 + G6) / 4
[0017]
As described above, the surrounding G pixels are used to generate a narrow-band luminance signal YL with less noise by taking an average. The luminance signal selector 15 has an Ev value calculated from the aperture amount and shutter speed of the camera for obtaining proper exposure and a preset value Ev0 (the f value of the lens when the aperture is open and a slow shutter speed that does not cause camera shake). When the Ev value is greater than Ev0, YH is selected, and when the Ev value is less than Ev0, YL is selected and output.
[0018]
However, in actual shooting, in order to prevent camera shake without using a flash, the shutter speed is set to 1 / focal length (mm) seconds at the latest.
[0019]
The generated luminance signal corrects the contour portion of the image by the aperture corrector 16. FIG. 4 shows a detailed configuration of the aperture corrector. For the luminance signal, vertical and horizontal Laplacian filters 31 and 32 calculate a vertical Laplacian and a horizontal Laplacian. The absolute values 33 and 34 of the Laplacian in the vertical direction and the horizontal direction are compared by the comparator 35, the Laplacian having the larger absolute value is selected by the selector 36, and added to the original luminance signal by the adder 37.
[0020]
As shown in FIG. 5, the coefficient of the Laplacian filter is the high-pass type shown in FIG. 5A when the Ev value as the exposure amount is larger than a predetermined value Ev0, and the band-pass type filter shown in FIG. Use. The filter coefficient is stored in the parameter 38, and the filter coefficient (a) or (b) is set in the filters 31 and 32 according to the comparison result. If the band-pass type is used, fine noise of one dot is suppressed, and when the brightness of the subject is insufficient, not only background noise is reduced but also the quality of characters is improved.
[0021]
Next, the brightness-corrected luminance signal is binarized. The aperture corrected luminance signal is stored in the temporary frame memory 17. Since the image size is determined by the size of the CCD 11, based on the image size, the CPU 18 calculates a block size and a sampling period necessary for the binarization process, and a block buffer 19 and a non-low brightness pixel average value calculator 20 respectively. To control.
[0022]
FIG. 6 is a diagram showing the sampling period. FIG. 6A shows a sampling period when the image size is small, and FIG. 6B shows a sampling period when the image size is large. The unevenness of the brightness of the image taken by the camera is bright near the center of the image and becomes darker as it goes to the periphery. Therefore, if the shape of the block division of the image is stored in advance in the ROM of the CPU 18 so as to divide the center of the image as a symmetric point with a combination of square, rectangle, and triangle as shown in FIG. It becomes closer to uniformity and allows higher quality binarization compared to using only square blocks.
[0023]
The block buffer 19 is a buffer that reads an image from the frame memory and stores it temporarily in units of blocks having a preset shape and size. The non-low-brightness pixel average value calculator 20 is a unit that samples and reads out pixels from the image stored in the block buffer 19 at a preset sampling period and calculates the average of the luminance values.
[0024]
FIG. 8 shows a detailed configuration of the non-low luminance pixel average value calculator. The sampled pixel value is compared with the threshold value thl_ij by the comparator 41. If the pixel value is larger than the threshold value as a result of the comparison, the gate 45 is opened, the value of the addition result register 42 and the pixel value are added by the adder 46, and the result is stored in the addition result register 42. At the same time, the counter 43 is incremented by one. Here, when the counter 43 is in a state where the digit is incremented as a result of the increment (a state in which the counter indicates a power of 2), the gate 47 is opened, the result of the adder is stored in the shift register 44, and the bit indicated by the counter Shift right by a number. After processing all the pixels in the block, the value stored in the shift register 44 is output as the non-low luminance pixel average value ave_ij.
[0025]
The non-low luminance pixel detection threshold value setting unit 21 multiplies the non-low luminance pixel average value ave_i-1j of the previous block (indicating (i-1, j) if the current block is (i, j)) by a predetermined coefficient Ca. Then, the threshold value thl_ij used by the non-low luminance pixel average value calculator 20 is calculated. If the predetermined coefficient is Ca = 1/4, the non-low luminance pixel detection threshold value setting unit 21 is a value excluding the lower 2 bits of ave_i-1j, so that no special circuit is required. Using the ave_ij calculated by the non-low luminance pixel average value calculation circuit 20, the binarization threshold setting circuit 22 sets a binarization threshold th_ij for image binarization.
[0026]
The binarization threshold setting circuit 22 is a multiplier that multiplies a predetermined coefficient Cb by ave_ij, and Cb = x / 16 or Cb = x / 8 (x is a default value that represents a natural number not exceeding the denominator). For example, since the binarization threshold value setting circuit 22 can be composed of only an adder, it is advantageous in terms of cost and speed. The binarizer 23 binarizes the block using the binarization threshold th_ij. The binarized image is compressed by the compressor 24.
[0027]
The detailed structure of the compressor is shown in FIG. The binarized image is input to the variable length compressor 51 and the fixed length compressor 52. The variable length compressor 51 performs compression such as MH or MMR, which is a known binary image compression method. MH and MMR have the advantage that they are simple and easy to implement, and the compression speed is fast. In particular, since the compression method is specialized for character images, a high compression ratio can be obtained for document images. For example, in an image having a size of 1280 × 960, the code size of MH and MMR is about 20 kbytes to 30 kbytes while the image size of the uncompressed binary image is 154 kbytes. In the case of a binary image subjected to pseudo halftone processing, both the MH and MMR have a larger code length after compression than the image size before compression.
[0028]
The fixed length compressor 52 performs known JPEG compression. JPEG compression is originally a multi-value image compression method for 8-bit color images. However, if binary values 0 and 1 of a binary image are assigned to luminance values 0 and 255 and the color component is set to 0, application to a binary image is possible. Is possible. The code length after JPEG compression is set to about 2/3 of the image size of the uncompressed binary image. For example, if the image size is 1280 × 960, the image size of the uncompressed binary image is 154 kbytes. If the image compression ratio is set to 2/3, the code length after JPEG compression is 100 kbytes. If it is about 100 kbytes, even if the JPEG image is decoded and binarized once again, it is at a level that does not bother degradation compared to the binary image before encoding.
[0029]
The codes encoded by the variable length compressor 51 and the fixed length compressor 52 are temporarily stored in the buffers 53 and 54, respectively. The variable length compressor 51 outputs a determination signal 56 to the code selector 55 as to whether or not the compressed code exceeds 100 kbytes. If the code selector 55 receives the discrimination signal 56 of the variable length compressor 51 and exceeds 100 kbytes (if the code length of the variable length encoding is longer than the code length of the fixed length encoding), the code selector 55 If the code does not exceed 100 kbytes (when the code length of variable-length coding is shorter than the code length of fixed-length coding), the code of the buffer 53 is read and output to the memory 25 of FIG. The saved image is saved.
[0030]
Example 3
FIG. 10 shows the configuration of the third embodiment of the present invention. The difference from the second embodiment is that a pseudo halftone processing binarization circuit 27, a selector 28, and a mode setting unit 9 are provided. The process until the aperture corrected luminance signal is stored in the temporary frame memory 17 is the same as in the second embodiment.
[0031]
The aperture-corrected luminance signal is binarized as follows. As in the second embodiment, the image is transferred from the frame memory 17 to the block buffer 19. The image transferred to the block buffer 19 is input to the pseudo halftone processing binarization circuit 27 and the simple binarization circuit 23. The pseudo halftone processing binarization circuit 27 binarizes the image using pseudo halftone processing (known dither processing or error diffusion processing).
[0032]
The block buffer 19, the non-low luminance pixel average value calculator 20, the non-low luminance pixel detection threshold value setting unit 21, and the binarization threshold value setting circuit 22 in the character binarization circuit 26 are the same as those described in the second embodiment. Therefore, explanation is omitted.
[0033]
Similar to the second embodiment, the block is binarized by the simple binarizer 23 using the binarization threshold th_ij. The pseudo halftone processed binary image and the simple binarized binary image are input to the selector 28.
[0034]
The mode setting unit 9 sets the character binarization mode or the natural image binarization mode of the camera. When the character binarization mode is set, a simple binarized binary image is When the natural image binarization mode is set, a binary image subjected to pseudo halftone processing is selected by the selector 28 and output. The selected image is compressed by the compressor 24 in the same manner as described in the second embodiment, and the encoded image is stored in the memory 25.
[0035]
Example 4
FIG. 11 shows the configuration of the fourth embodiment of the present invention. The difference from the third embodiment is that an image area separation circuit 30 is provided instead of the mode setting device.
[0036]
As in the second embodiment, the image transferred to the block buffer 19 is input to the image area separation circuit 30, the pseudo halftone processing binarization circuit 27, and the simple binarization circuit 23. The image area separation circuit 30 determines a character or non-character (design) area for each pixel of the image.
[0037]
FIG. 12 shows details of the image area separation circuit 30. An image signal from the block buffer 19 and an output signal from the simple binarization circuit 23 are input to the image area separation circuit 30. The input image signal is output by an edge extraction circuit 301, and a Laplacian operation (the pixel of interest is a central pixel) having a mask coefficient as shown in FIG. 13 or a first-order differential operation as shown in FIG. The binarization circuit 302 binarizes the calculated value edge with a predetermined threshold th to determine whether the pixel of interest is an edge or a non-edge.
[0038]
In addition, the boundary between the white and black of the output signal of the simple binarization circuit 23 is detected by the boundary detection circuit 303. The boundary detection circuit 303 determines that the target pixel is a boundary when both the white pixel and the black pixel are mixed in the 3 × 3 pixel including the target pixel, and determines that the white pixel is included in the 3 × 3 pixel. When only a pixel or only a black pixel exists, it is determined that it is not a boundary.
[0039]
By taking the logical product 304 of the output of the binarization circuit 302 and the output of the boundary detection circuit 303, it is determined whether or not the pixel of interest is a character region (edge and boundary) (non-character region). Output to.
[0040]
Returning to FIG. 11, the pseudo halftone processing circuit 27 binarizes the image using pseudo halftone processing (known dither processing or error diffusion processing).
[0041]
The binary image subjected to pseudo halftone processing and the simple binarized binary image are based on the character / non-character discrimination signal of the image area separation circuit 30, and in the case of the character area, the simple binarized binary image is obtained. In the case of a non-character area, a binary image subjected to pseudo halftone processing is selected by the selector 28 and output. The selected image is compressed by the compressor 24 in the same manner as described in the second embodiment, and the encoded image is stored in the memory 25.
[0042]
(Example 5)
The fifth embodiment of the present invention is an embodiment related to an image compression method. FIG. 15 is a process flowchart of the fifth embodiment. First, a binary image is input (step 101). The input binary image is converted into an 8-bit multi-value image that takes only binary values of 0 and 255 (7-bit 0 is added to the lower order), and fixed for a multi-value image at a predetermined compression rate. Long coding is performed (step 102). A typical example of fixed length coding is JPEG.
[0043]
Next, variable length coding for the binary image is performed on the binary image (step 103). Typical examples of variable length coding are MH and MMR. The code lengths encoded in the respective encodings are compared (step 104). If the code length of variable length coding is short, a variable length code is selected (step 105), and if the code length of fixed length coding is short, a fixed length code is selected (step 106) and stored (step 107).
[0044]
【The invention's effect】
As described above, according to the present invention , a fixed-length multi-value image compression having a simple configuration and a high compression rate can be performed on a binary image.
[0045]
According to the present invention , since different compression methods or compression means are prepared, it is possible to obtain image compression with a high compression rate and high image quality regardless of the contents of the binary image.
[0046]
According to the present invention , it is possible to obtain an image input device capable of storing a binarized image with high compression and high image quality when storing a captured image.
[0047]
According to the present invention , when binarizing an image, the binarizing means can be switched according to the type of image to be input, so that a high-quality binary image can be obtained.
[0048]
According to the present invention , since a binarization method can be selected for each area according to the area (character / non-character) of the image, a high-quality binary image can be obtained.
[Brief description of the drawings]
FIG. 1 shows a configuration of Embodiment 1 of the present invention.
FIG. 2 shows a configuration of Embodiment 2 of the present invention.
FIG. 3 shows a pixel arrangement of a CCD.
FIG. 4 shows a configuration of an aperture correction circuit.
FIG. 5A shows a high-pass Laplacian, and FIG. 5B shows a band-pass Laplacian.
FIGS. 6A and 6B show different sampling periods, respectively.
FIG. 7 shows an image block dividing method.
FIG. 8 shows a configuration of a non-low luminance pixel average value calculator.
FIG. 9 shows a configuration of an image compressor.
FIG. 10 shows a configuration of Embodiment 3 of the present invention.
FIG. 11 shows a configuration of Example 4 of the present invention.
FIG. 12 shows a configuration of an image area separation circuit.
FIG. 13 shows Laplacian mask coefficients.
FIG. 14 shows a first derivative operation.
FIG. 15 shows a processing flowchart of Embodiment 5 of the present invention.
[Explanation of symbols]
1 bit converter 2 fixed length compressor 3, 5 buffer 4 variable length compressor 6 selector 7 code length discrimination signal

Claims (4)

入力多値画像データを複数のブロックに分割するブロック分割手段と、前記ブロック分割手段により分割されたブロック毎に、ブロック内の画素の明るさに応じた二値化閾値を決定し、該二値化閾値によりブロック内の画素データを二値化する単純二値化手段と、前記入力多値画像の各画素データを擬似中間調二値画像に変換する擬似中間調二値化手段と、前記入力多値画像の各画素毎に文字領域であるか非文字領域であるかを判別する像域分離手段と、前記像域分離手段で文字領域であると判定された画素については、前記単純二値化手段により二値化された画素データを選択し、前記像域分離手段で非文字領域であると判定された画素については、前記疑似中間調二値化手段により二値化された画素データを選択する第一の選択手段と、前記選択手段により選択された画素データにより構成される二値画像データに対して、可変長圧縮を行う可変長圧縮手段と、前記選択手段により選択された画素データにより構成される二値画像データを、所定のビット幅の多値画像データに変換する多値化手段と、前記多値化手段により得られた多値画像データに対して固定長圧縮を行う固定長圧縮手段と、前記可変長圧縮手段と、前記固定長圧縮手段とによる圧縮後の符号長を比較し、符号長の短い方の符号を選択する第二の選択手段とを有することを特徴とする画像圧縮装置。A block dividing unit that divides input multi-valued image data into a plurality of blocks, and a binarization threshold value is determined for each block divided by the block dividing unit according to the brightness of pixels in the block. A simple binarization unit that binarizes pixel data in a block by a binarization threshold; a pseudo halftone binarization unit that converts each pixel data of the input multivalued image into a pseudo halftone binary image; and the input An image area separating unit that determines whether each pixel of the multi-valued image is a character area or a non-character area, and the pixel that is determined to be a character area by the image area separating unit The pixel data binarized by the binarizing means is selected, and the pixel data binarized by the pseudo halftone binarizing means is selected for the pixels determined to be non-character areas by the image area separating means. A first selection means to select; Variable length compression means for performing variable length compression on binary image data composed of pixel data selected by the selection means, and binary image data composed of pixel data selected by the selection means Multi-value conversion means for converting to multi-value image data having a predetermined bit width; fixed-length compression means for performing fixed-length compression on the multi-value image data obtained by the multi-value conversion means; and the variable length compression And an image compression apparatus comprising: a second selection unit that compares a code length after compression by the fixed length compression unit and selects a code having a shorter code length. 入力多値画像データを複数のブロックに分割するブロック分割手段と、前記ブロック分割手段により分割されたブロック毎に、ブロック内の画素の明るさに応じた二値化閾値を決定し、該二値化閾値によりブロック内の画素データを二値化する単純二値化手段と、前記入力多値画像の各画素データを擬似中間調二値画像に変換する擬似中間調二値化手段と、文字二値化モードあるいは自然画二値化モードのいずれかを設定する二値化モード設定手段と、前記二値化モード設定手段で文字二値化モードが設定された場合には、前記単純二値化手段により二値化された画素データを選択し、前記二値化モード設定手段で自然画二値化モードが設定された場合には、前記疑似中間調二値化手段により二値化された画素データを選択する第一の選択手段と、前記選択手段により選択された画素データにより構成される二値画像データに対して、可変長圧縮を行う可変長圧縮手段と、前記選択手段により選択された画素データにより構成される二値画像データを、所定のビット幅の多値画像データに変換する多値化手段と、前記多値化手段により得られた多値画像データに対して固定長圧縮を行う固定長圧縮手段と、前記可変長圧縮手段と、前記固定長圧縮手段とによる圧縮後の符号長を比較し、符号長の短い方の符号を選択する第二の選択手段とを有することを特徴とする画像圧縮装置。A block dividing unit that divides input multi-valued image data into a plurality of blocks, and a binarization threshold value is determined for each block divided by the block dividing unit according to the brightness of pixels in the block. A simple binarization unit that binarizes pixel data in a block by a threshold value, a pseudo halftone binarization unit that converts each pixel data of the input multivalued image into a pseudo halftone binary image, Binarization mode setting means for setting either the binarization mode or the natural image binarization mode; and when the character binarization mode is set by the binarization mode setting means, the simple binarization When the pixel data binarized by the means is selected and the natural image binarization mode is set by the binarization mode setting means, the pixel binarized by the pseudo halftone binarization means First choice to select data A variable-length compression unit that performs variable-length compression on binary image data composed of pixel data selected by the selection unit, and a binary image composed of pixel data selected by the selection unit Multi-value conversion means for converting data into multi-value image data having a predetermined bit width; fixed-length compression means for performing fixed-length compression on multi-value image data obtained by the multi-value conversion means; and the variable An image compression apparatus comprising: a long compression unit; and a second selection unit that compares a code length after compression by the fixed length compression unit and selects a code having a shorter code length. 入力多値画像データを複数のブロックに分割するブロック分割工程と、前記ブロック分割工程により分割されたブロック毎に、ブロック内の画素の明るさに応じた二値化閾値を決定し、該二値化閾値によりブロック内の画素データを二値化する単純二値化工程と、前記入力多値画像の各画素データを擬似中間調二値画像に変換する擬似中間調二値化工程と、前記入力多値画像の各画素毎に文字領域であるか非文字領域であるかを判別する像域分離工程と、前記像域分離工程で文字領域であると判定された画素については、前記単純二値化工程により二値化された画素データを選択し、前記像域分離工程で非文字領域であると判定された画素については、前記疑似中間調二値化工程により二値化された画素データを選択する第一の選択工程と、前記選択工程により選択された画素データにより構成される二値画像データに対して、可変長圧縮を行う可変長圧縮工程と、前記選択工程により選択された画素データにより構成される二値画像データを、所定のビット幅の多値画像データに変換する多値化工程と、前記多値化工程により得られた多値画像データに対して固定長圧縮を行う固定長圧縮工程と、前記可変長圧縮工程と、前記固定長圧縮工程とによる圧縮後の符号長を比較し、符号長の短い方の符号を選択する第二の選択工程とを有することを特徴とする画像圧縮方法。A block dividing step for dividing the input multi-valued image data into a plurality of blocks, and for each block divided by the block dividing step, a binarization threshold value is determined according to the brightness of the pixels in the block, and the binary A simple binarization step for binarizing pixel data in a block by a threshold value, a pseudo halftone binarization step for converting each pixel data of the input multi-valued image into a pseudo halftone binary image, and the input An image area separating step for determining whether each pixel of the multi-valued image is a character area or a non-character area, and for the pixels determined to be a character area in the image area separating step, the simple binary The pixel data binarized by the binarization step is selected, and the pixel data binarized by the pseudo halftone binarization step is selected for the pixel determined to be a non-character region by the image area separation step. A first selection step to select; and A variable length compression step for performing variable length compression on binary image data composed of pixel data selected by the selection step, and binary image data composed of pixel data selected by the selection step A multi-value conversion step for converting to multi-value image data having a predetermined bit width, a fixed-length compression step for performing fixed-length compression on the multi-value image data obtained by the multi-value conversion step, and the variable length compression And a second selection step of comparing a code length after compression in the fixed length compression step and selecting a code having a shorter code length. 入力多値画像データを複数のブロックに分割するブロック分割工程と、前記ブロック分割工程により分割されたブロック毎に、ブロック内の画素の明るさに応A block dividing step for dividing the input multi-valued image data into a plurality of blocks, and the brightness of the pixels in the block for each block divided by the block dividing step. じた二値化閾値を決定し、該二値化閾値によりブロック内の画素データを二値化する単純二値化工程と、前記入力多値画像の各画素データを擬似中間調二値画像に変換する擬似中間調二値化工程と、文字二値化モードあるいは自然画二値化モードのいずれかを設定する二値化モード設定工程と、前記二値化モード設定工程で文字二値化モードが設定された場合には、前記単純二値化工程により二値化された画素データを選択し、前記二値化モード設定工程で自然画二値化モードが設定された場合には、前記疑似中間調二値化工程により二値化された画素データを選択する第一の選択工程と、前記選択工程により選択された画素データにより構成される二値画像データに対して、可変長圧縮を行う可変長圧縮工程と、前記選択工程により選択された画素データにより構成される二値画像データを、所定のビット幅の多値画像データに変換する多値化工程と、前記多値化工程により得られた多値画像データに対して固定長圧縮を行う固定長圧縮工程と、前記可変長圧縮工程と、前記固定長圧縮工程とによる圧縮後の符号長を比較し、符号長の短い方の符号を選択する第二の選択工程とを有することを特徴とする画像圧縮方法。A simple binarization step of binarizing the pixel data in the block with the binarization threshold, and converting each pixel data of the input multi-valued image into a pseudo halftone binary image A pseudo halftone binarization step for conversion, a binarization mode setting step for setting either a character binarization mode or a natural image binarization mode, and a character binarization mode in the binarization mode setting step Is set, the pixel data binarized by the simple binarization step is selected, and when the natural image binarization mode is set by the binarization mode setting step, Variable length compression is performed on a first selection step for selecting pixel data binarized by the halftone binarization step and binary image data composed of the pixel data selected by the selection step. Variable length compression process and selected by the selection process Multi-value conversion process for converting binary image data composed of pixel data into multi-value image data having a predetermined bit width, and fixed-length compression for multi-value image data obtained by the multi-value conversion process A second selection step of comparing a code length after compression by the variable length compression step and the fixed length compression step and selecting a code having a shorter code length. An image compression method characterized by the above.
JP29077399A 1999-10-13 1999-10-13 Image compression apparatus and image compression method Expired - Fee Related JP3849906B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29077399A JP3849906B2 (en) 1999-10-13 1999-10-13 Image compression apparatus and image compression method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29077399A JP3849906B2 (en) 1999-10-13 1999-10-13 Image compression apparatus and image compression method

Publications (2)

Publication Number Publication Date
JP2001111840A JP2001111840A (en) 2001-04-20
JP3849906B2 true JP3849906B2 (en) 2006-11-22

Family

ID=17760348

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29077399A Expired - Fee Related JP3849906B2 (en) 1999-10-13 1999-10-13 Image compression apparatus and image compression method

Country Status (1)

Country Link
JP (1) JP3849906B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4078132B2 (en) 2002-06-28 2008-04-23 キヤノン株式会社 Image processing apparatus and method
KR100627672B1 (en) * 2003-03-14 2006-09-27 이호열 block for embankment
JP2007143082A (en) * 2005-11-22 2007-06-07 Konica Minolta Business Technologies Inc Method and apparatus for compressing image data
JP2021175049A (en) 2020-04-22 2021-11-01 株式会社リコー Information processing apparatus, information processing method, and program

Also Published As

Publication number Publication date
JP2001111840A (en) 2001-04-20

Similar Documents

Publication Publication Date Title
US8538174B2 (en) Image processing device
US7432985B2 (en) Image processing method
JP4003399B2 (en) Image processing apparatus and method, and recording medium
US7920183B2 (en) Image processing device and digital camera
KR101244912B1 (en) Apparatus and method for correcting gamma in digital image processing device
CN110365920B (en) Image processing
WO2008032517A1 (en) Image processing device and image processing method, and image pickup device and image pickup method
WO2005081542A1 (en) Image processing method
KR100504649B1 (en) Device for compressing image data
JP2003224731A (en) Image processing apparatus and image processing method
US6771815B2 (en) Image correction apparatus and recording medium for storing image correction program
JP4196039B2 (en) Image data compression method
JP3849906B2 (en) Image compression apparatus and image compression method
KR101337667B1 (en) Lens roll-off correction operation using values corrected based on brightness information
JP2004054884A (en) Image processing device
JP3117331B2 (en) Image data processing device
WO2006109703A1 (en) Imaging system and video signal processing program
JPWO2019142836A1 (en) Encoding device, decoding device, coding method, decoding method, coding program, and decoding program
JP2001078085A (en) Image processor
JP4027545B2 (en) Digital camera and method for photographing characters
JP3093235B2 (en) Image processing method and apparatus
JPS63205238A (en) Image processing apparatus
JPH1132201A (en) Image processing unit
JP2001209782A (en) Image pickup device and its method for photographing character
JPH0773312A (en) Image reader

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060517

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060718

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060824

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

Free format text: PAYMENT UNTIL: 20090908

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100908

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110908

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120908

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees