JP3849906B2 - Image compression apparatus and image compression method - Google Patents
Image compression apparatus and image compression method Download PDFInfo
- 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
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
[0010]
The binary image is input to the
[0011]
The binary image is converted to 8 bits by adding 7 bits having a value of 0 to the lower order in the
[0012]
The codes encoded by the
[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
[0015]
Next, a luminance signal is generated by a luminance signal generation unit that combines the
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
[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
[0021]
Next, the brightness-corrected luminance signal is binarized. The aperture corrected luminance signal is stored in the
[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
[0023]
The
[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
[0025]
The non-low luminance pixel detection threshold
[0026]
The binarization
[0027]
The detailed structure of the compressor is shown in FIG. The binarized image is input to the
[0028]
The fixed
[0029]
The codes encoded by the
[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
[0031]
The aperture-corrected luminance signal is binarized as follows. As in the second embodiment, the image is transferred from the
[0032]
The
[0033]
Similar to the second embodiment, the block is binarized by the
[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
[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
[0036]
As in the second embodiment, the image transferred to the
[0037]
FIG. 12 shows details of the image
[0038]
In addition, the boundary between the white and black of the output signal of the
[0039]
By taking the
[0040]
Returning to FIG. 11, the pseudo
[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
[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-
[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
FIG. 2 shows a configuration of
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
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
[Explanation of symbols]
1
Claims (4)
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)
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 |
-
1999
- 1999-10-13 JP JP29077399A patent/JP3849906B2/en not_active Expired - Fee Related
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 |