JP2004088405A - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP2004088405A JP2004088405A JP2002246542A JP2002246542A JP2004088405A JP 2004088405 A JP2004088405 A JP 2004088405A JP 2002246542 A JP2002246542 A JP 2002246542A JP 2002246542 A JP2002246542 A JP 2002246542A JP 2004088405 A JP2004088405 A JP 2004088405A
- Authority
- JP
- Japan
- Prior art keywords
- image signal
- gradation
- dither
- bits
- display
- 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
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
- Control Of Gas Discharge Display Tubes (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
【課題】ディスプレイ装置の表示可能な階調の間隔が等間隔でない場合、誤差拡散処理とディザ処理を併用して擬似的に階調を増加させることが難しい。
【解決手段】ディスプレイ装置103に入力する画像信号のビット数bに対して、少なくとも
Log2(n×m)≦Δb
を満たすΔb分だけ画像信号のビット数を増加させるビット数拡張手段100と、ディザ処理によって擬似的に階調数をほぼ(n×m)倍することを想定し階調数cの(n×m)倍の階調に画像信号を制限する階調制限テーブルと、制限された差分を表示誤差として誤差拡散処理を行う階調制限手段101と、画像信号に依存するディザ要素を用いて画像信号のディザ処理を行い最終的にbビットc階調の画像信号に変換するレベル変換手段104とを有することを特徴とする。
【選択図】 図1When the intervals of gray scales that can be displayed by a display device are not equal, it is difficult to increase the gray scale in a pseudo manner by using both error diffusion processing and dither processing.
The number of bits b of an image signal input to a display device 103 is at least Log2 (n × m) ≦ Δb
The number-of-bits extension means 100 for increasing the number of bits of the image signal by Δb that satisfies the following equation: m) A gradation restriction table for restricting an image signal to twice as many gradations, a gradation restriction unit 101 for performing an error diffusion process using the restricted difference as a display error, and an image signal using a dither element depending on the image signal. And a level conversion means 104 for finally converting the image signal into an image signal of b bits and c gradations.
[Selection diagram] Fig. 1
Description
【0001】
【発明の属する技術分野】
本発明は、表示可能な階調が離散的で、かつ階調の間隔が等間隔でない特性を有するディスプレイ装置の中間調表示を行うための画像処理装置に関する。
【0002】
【従来の技術】
プラズマディスプレイパネル(PDP)、液晶表示装置等のディスプレイ装置において、表示可能な階調(以下、表示階調と略記する)の数が十分でない場合、滑らかな中間調の表現が難しく、階調間の境界が地図の等高線のような模様(いわゆる偽輪郭)として観測され、画像表示品質を著しく劣化させる。この場合、擬似的に階調数を増加させる手法として誤差拡散処理やディザ処理が知られている。
【0003】
以下に誤差拡散処理とディザ処理を併用する場合の一般的な手法について、図面を参照しながら説明する。例として、入力画像信号が8ビット256階調、ディスプレイ装置の表示階調が5ビット32階調、ディザ処理手段のディザマトリクス(n×m)がn=2、m=2とする。このとき、ここで用いられるディスプレイ装置の表示階調の間隔は等間隔である。
【0004】
図8において、誤差拡散回路802は8ビットの画像信号801を入力し下位1ビット信号について誤差拡散処理を行った後、上位7ビットを次のディザ回路803に送る。ディザ回路803は、この7ビット信号にディザ処理を行い5ビット化した画像信号をディスプレイ装置804に出力する。
【0005】
まず、誤差拡散処理について説明する。いま、図9に示す画素P0の信号処理を行うものとする。このとき画素P0の1ライン前の画素P1、P2、P3および直前画素P4の表示誤差、すなわち下位1ビットの値に、それぞれ図9に示すような所定の重み付け処理を行い、画素P0の入力画像信号に加算する。また、画素P0の表示誤差である下位1ビットにつては、所定の重み付け処理を行い周囲の画素P5、P6、P7、P8へ拡散する。図9の実線矢印は周囲の画素からP0に加算される誤差を表し、点線矢印はP0から周囲の画素に拡散する誤差を表している。また、矢印に付随した数値はそれぞれの重み付けの大きさを表す。図10は誤差拡散回路のブロック図である。ブロック内のTは1画素遅延回路、Hは1ライン遅延回路を表し、各遅延回路に続く各ブロックの数値はそれぞれの重み付けの大きさを表す。図10に示すように、この加算した結果のうち上位7ビットをディザ回路803に出力する。下位1ビットの誤差分については、7/16を画素P0の次の画素P5に、3/16を画素P0の左下の画素P6に、5/16を画素P0の直下の画素P7に、また、3/16を画素P0の左下の画素P8にそれぞれ加算する。このような加算を個々の画素に対して行うことで、誤差を周辺画素に拡散する。
【0006】
次に、ディザ回路803での信号処理について説明する。図11(a)は2×2ディザマトリクスの配列を示し、左上のディザ要素をd1、右下をd2、左下をd3、右上をd4としている。図11(b)は、図11(a)においてd1=0、d2=1、d3=2、d4=3としたものである。図11(c)は誤差拡散回路802で処理した後の7ビット画像信号の一例である。ディザ回路803はこれに図11(b)に示すディザ要素を各々加算する。加算結果を図11(d)に示すが、この信号は7ビットであるので下位2ビットを切り捨てて図11(e)とし、最終的には上位5ビットのみを取出すことで図11(f)の値を得る。
【0007】
ここで行ったディザ処理の原理は次のとおりである。もとの7ビットのうち、下位の2ビットが0、すなわち2進数表示でXXXXX00(X=1または0)であった場合は、どのディザ要素を加算されても上位5ビットは増加しない。例えば、画像信号が20のときには2進数表示で0010100であり、ディザ要素3は0000011であるので、これらを加算すると0010111となり上位5ビットは増加しない。ディザ要素が2および1の場合も同様である。
【0008】
もとの7ビットのうち、下位の2ビットが1であった場合は、ディザ要素が3である場合にのみ上位5ビットは繰り上がる。例えば、画像信号が21であるときには、2進数表示で0010101でありディザ要素3は0000011であるのでこれらを加算すると24、すなわち0011000となり上位5ビットは繰り上がる。ディザ要素が3である確率は1/4であるので、この場合に上位5ビットが繰り上がる確率は1/4である。
【0009】
同様に、もとの7ビットのうち下位2ビットが2であった場合は、ディザ要素が3と2のときに上位5ビットは繰り上がる。ディザ要素が3または2である確率はそれぞれ1/4であるので、この場合に上位5ビットが繰り上がる確率は2/4である。
【0010】
さらに、もとの7ビットのうち下位2ビットが3であった場合は、ディザ要素が3、2および1であるときに上位5ビットは繰り上がり、その確率は3/4である。
【0011】
したがって、例えば、もとの7ビットが21である場合には、1/4の確率で繰り上げられ24となり、それ以外の場合は最後に切り捨てられ20となるので、ディザ処理後の画像の平均的な階調は24×1/4+20×3/4=21となる。以上のようにして最終的に5ビットで擬似的にもとの7ビットが表現できることになる。
【0012】
この例では、(n×m)=(2×2)のディザマトリクスで、4つのディザ要素d1〜d4を持つので2ビット(4階調)分を擬似的に表現している。もし、(n×m)=(4×4)のディザマトリクスを使用した場合は、16のディザ要素を持つので4ビット(16階調)分を擬似的に表現することができる。
【0013】
【発明が解決しようとする課題】
上述の階調補正方法は、あくまでも表示階調の間隔が等間隔なディスプレイ装置に対して良好に中間調画像を表示するためのものである。一方、表示階調の間隔が等間隔でないディスプレイ装置の場合にはこのような画像処理方法では有効ではない。例えば、表示階調が0、1、3、7、13、23、37、56、82、115、155、202、255の8ビット13階調のようなディスプレイ装置の場合、使用するディザマトリクスが上述と同様であれば階調の値が13以上ではディザ処理を行っても繰り上がりが発生せず効果がない。また階調の値が3以下では繰り上がりが大きすぎ逆に画質劣化を招く。これは4つのディザ要素d1〜d4の値が固定化しているためである。
【0014】
これに対して、特開平8−286634号公報には、複数個の画素単位が二次元状のマトリクス形式に配置されているディスプレイ装置において、入力された画像信号に応じたディザパターンを加算した後、誤差拡散処理を行う中間調表示方法が開示されている。この方法では、誤差拡散のしきい値を入力信号とタイミングジェネレータからの信号によって、それぞれ階調毎、ドット毎およびライン毎に変化できるように構成している。そして、誤差拡散処理を行う前の入力画像信号の階調に応じて最適なディザパターンを選択することにより、常に固定されたディザパターンを挿入する従来の中間調表示方法に比べてフリッカや固定模様等の発生を抑制できる。しかしながら、この例では、階調を向上するためではなく、誤差拡散のしきい値を千鳥状に散らしてフリッカを防止するためにディザ処理を使用している。したがって、ディスプレイ装置の表示階調数が十分でなく、かつ階調の間隔が等間隔でないディスプレイ装置の場合には十分な中間調表示が行えないという課題がある。
【0015】
本発明は、このような表示階調の数が十分でないディスプレイ装置においても滑らかな中間調の表現を可能とするものである。
【0016】
【課題を解決するための手段】
上記の目的を達成するために本発明の画像処理装置は、ディスプレイ装置に入力する画像信号のビット数bに対して、少なくとも
Log2(n×m)≦Δb
を満たすΔb分だけ画像信号のビット数を増加させるビット数拡張手段と、後でディザ処理によって擬似的に階調数をほぼ(n×m)倍することを想定し階調数cのほぼ(n×m)倍の階調に画像信号を制限する階調制限テーブルと、制限された差分を表示誤差として誤差拡散処理を行う階調制限手段と、画像信号に依存するディザ要素を用いて画像信号のディザ処理を行い最終的にbビットc階調の画像信号に変換するレベル変換手段とを有することを特徴とする。
【0017】
【発明の実施の形態】
すなわち、請求項1に記載の発明は、表示可能な階調の間隔が一定でない特性を有するディスプレイ装置に入力する画像信号のビット数に対して少なくとも
Log2(n×m)≦Δb (m、nは自然数)
を満たすΔb分だけ画像信号のビット数を増加させ第1の画像信号として出力するビット数拡張手段と、ディスプレイ装置の表示可能な階調を(n×m)倍した階調に対して各階調間を(n×m)等分した階調に出力を制限する階調制限テーブルと、第1の画像信号を階調制限テーブルの階調に制限して第2の画像信号として出力するとともに、制限によって生じた差分を表示誤差として誤差拡散処理を行う階調制限手段と、第2の画像信号に基づいて決定したディザマトリクス(n×m)の各ディザ要素を用いて第2の画像信号のディザ処理を行い第3の画像信号として出力するディザ処理手段と、第3の画像信号をディスプレイ装置で表示可能なビット数および階調に変換するレベル変換手段とを有する画像処理装置である。
【0018】
また、請求項2に記載の発明は、請求項1において、ビット数拡張手段が逆ガンマ補正回路と誤差拡散回路を有し、逆ガンマ補正回路は入力画像信号を一時的に第1の画像信号のビット数よりも多い画像信号に変換することを特徴とする画像処理装置である。
【0019】
また、請求項3に記載の発明は、請求項1において、表示可能な階調を(n×m)倍した階調の各階調間を(n×m)等分するために挿入された(n×m−1)個の階調に対して、小さい方から
i=2、3、・・・、n×m
としたとき、i番目の階調が、表示可能な階調を(n×m)倍した階調の大きい方の値に繰り上がる確率が
(i−1)/(n×m)
であり、繰り上がらない確率が
{(n×m)−(i−1)}/(n×m)
となるようにディザマトリクスのディザ要素の値を設定したことを特徴とする画像処理装置である。
【0020】
以下、本発明の一実施の形態について図面を用いて詳細に説明する。
【0021】
(実施の形態1)
実施の形態1の画像処理装置について、以下にその構成を動作とともに説明する。本実施の形態は、入力画像信号が8ビット256階調、ディザ処理手段のディザマトリクス(n×m)がn=2、m=2、さらにディスプレイ装置の表示階調が8ビット13階調であり、かつ表示階調の間隔が等間隔でない場合を例として説明する。ここで、具体的な表示階調は(0、1、3、7、13、23、37、56、82、115、155、202、255)であるとする。
【0022】
図1において、8ビットの入力画像信号(画像信号A)106は、ビット数拡張手段100で10ビットの画像信号Bに変換される。次に画像信号Bは、階調制限手段101で10ビットのまま49階調に階調制限された画像信号Cに変換される。さらに画像信号Cはディザ処理手段102でディザ処理を行って10ビットの画像信号Dに変換される。そして画像信号Dは、レベル変換手段104において8ビット13階調の画像信号Eに変換され、最終的にこの画像信号Eに基づきディスプレイ装置103で画像が表示される。
【0023】
それぞれの処理について以下に説明する。
【0024】
ビット数拡張手段100は図2に示すように逆ガンマ補正回路200と第1の誤差拡散回路201から構成される。逆ガンマ補正回路200は、8ビットの画像信号A(x=0〜255)に対し、次式にしたがって逆ガンマ補正し12ビットの画像信号(y=0〜4095)に変換する。
【0025】
y=(x/255)^2.2×4095
ここで、8ビットから12ビットへと増加したのは、画像信号のダイナミックレンジ(最大階調と階調1との比)であり、階調数そのものが増加したのではないことに注意されたい。表現できる階調は256種類のxの値(x=0〜255)に対応した256種類のyの値である。
【0026】
次に、第1の誤差拡散回路201は、逆ガンマ補正後の12ビット画像信号のうち下位2ビットを表示誤差として第1の誤差拡散処理を行い、10ビットの画像信号(画像信号B)として出力する。第1の誤差拡散処理については従来の技術とほぼ同様であるので詳細な説明は省略する。ただし、従来の技術では8ビット入力信号の下位1ビットを拡散し上位7ビットを出力信号とする例について述べたが、本実施の形態では12ビット入力信号の下位2ビットを拡散し上位10ビットを出力信号としている。
【0027】
次に階調制限手段101について説明する。
【0028】
本実施の形態で用いられるディスプレイ装置の表示階調は次の8ビット13階調(0、1、3、7、13、23、37、56、82、115、155、202、255)である。これらを4倍し10ビットで表現すると(0、4、12、28、52、92、148、224、328、460、620、808、1020)となる。以下これを4倍率表示階調と略記する。ここで、それぞれの階調間を4等分するように3つの階調を等間隔で挿入すると10ビット49階調(0、1、2、3、4、6、8、10、12、16、20、24、28、34、40、46、52、62、72、82、92、106、120、134、148、167、186、205、224、250、276、302、328、361、394、427、460、500、540、580、620、667、714、761、808、861、914、967、1020)が得られる。以下これを4倍拡張表示階調と略記する。4倍拡張表示階調は、後でディザ処理手段102を用いて擬似的に階調を4倍に増やすことを見越してなされている。
【0029】
階調制限手段101は、10ビット画像信号Bを上記の49個の4倍拡張表示階調に制限する。図3は、階調制限手段101の回路ブロック図である。ブロック内のTは1画素遅延回路、Hは1ライン遅延回路を表す。階調制限手段101は、階調制限テーブル301を用いて出力画像信号Cを4倍拡張表示階調に制限するとともに、入力画像信号Bと階調制限された信号の差を表示誤差として第2の誤差拡散動作を行う。いま、ある1つの画素P0に注目し、対応する10ビット画像信号Bを入力したとする。このとき画素P0の1ライン前の画素P1、P2、P3および直前画素P4の表示誤差それぞれに図3に示した所定の重み、すなわち1/16、5/16、3/16および7/16を掛けて画素P0の入力信号に加算する。そしてこの加算した信号を階調制限テーブル301の数値、すなわち4倍拡張表示階調と比較し、加算した信号に最も近い数値を画像信号Cとして出力する。それとともに、もとの信号と出力した信号との差を表示誤差として、7/16を画素P0の次の画素P5に、3/16を画素P0の左下の画素P6に、5/16を画素P0の直下の画素P7に、1/16を画素P0の右下の画素P8にそれぞれ拡散する。
【0030】
階調制限テーブル301の構成は、例えば、入力信号に対して画像信号Cと表示誤差を出力するROMテーブルでもよく、また、入力信号に対して画像信号Cを出力するROMと、入力信号から画像信号Cを減じて表示誤差を算出する減算回路の組合せでもよい。
【0031】
次にディザ処理手段102について説明する。
【0032】
ディザ要素決定回路401は、画像信号Cに基づいて決定したディザ要素をディザ回路400に出力する。図4に示すように画像信号Cのとり得る49階調の各々に対しディザ要素(d1〜d4)の値が決まっている。本実施の形態で用いられるディザ要素は以下のように決定する。まず、4倍拡張表示階調のうち、4倍率表示階調に一致する階調に対しては4つのディザ要素を全て0とする。そうでない場合は階調間を4等分するために挿入された3つの階調のうち、最も小さい階調に対しては4つのディザ要素のうち3つを0に、2番目に小さい階調に対しては4つのディザ要素のうち2つを0に、3番目に小さい階調に対しては4つのディザ要素のうち1つを0にする。0でないものについては、4倍率表示階調のうち当該階調以上で最も小さい階調と当該階調との差とする。例えば、画像信号Cが82である場合は、82以上で最も小さい4倍率表示階調92と当該階調82との差は10となるので、d1=0、d2=10、d3=10、d4=10である。ここで、送られてきた画像信号Cがディザマトリクスのd4に対応する位置であった場合には、ディザ回路400へ出力される値は10となる。
【0033】
次に図5を用いてディザ回路400での信号処理について説明する。図5(a)は本実施の形態で用いられるディザマトリクスの配列であり、マトリクスの左上のディザ要素をd1、右下をd2、左下をd3、右上をd4としている。説明のために各画素毎の画像信号Cが、図5(c)のようになっていると仮定する。このときそれぞれの画像信号Cに対応するディザ要素は図4の表により決定され、図5(b)のように表される。ディザ回路400は、各画素毎に画像信号Cとそれに対応するディザ要素とを加算し画像信号Dとして出力する。これら2つの値を加算した結果を図5(d)に示す。これが画像信号Dである。このようにディザ要素を画像信号Cに応じて最適に決定し、画像信号Dに変換される。
【0034】
次にレベル変換手段104について説明する。レベル変換手段104は、4倍率表示階調(0、4、12、28、52、92、148、224、328、460、620、808、1020)をしきい値として画像信号Dの切り捨てを行い、その結果を4で除する。図5(e)が切り捨てを行った結果であり同図(f)が4で除した結果である。例えば、図5(d)において1行3列目の画素に対応する画像信号Dの値は82である。したがって、82未満で最も大きい値である52へと切り下げ、4で除して13となる。また、1行2列目の画像信号Cの値は92でありこの場合は切り下げが発生せず、4で除して23となる。以上のように画像信号Dは最終的にディスプレイ装置で表示可能な8ビット13階調の画像信号Eに変換される。
【0035】
ここで行ったディザ処理の結果を、4倍率表示階調である52と92との間を例に説明する。画像信号Cの値が52の場合、4つのディザ要素が全て0であるので信号は変化せず52のままである。画像信号Cの値が62の場合、4つのディザ要素のうちd1からd3は0で、d4のみが30であるのでレベル変換手段104で52に切り下げられる確率は3/4であり92に繰り上がる確率は1/4である。その結果、52×3/4+92×1/4=62となるので、平均して62が得られたことになる。画像信号Cの値が72の場合、ディザ要素のうちd1とd2が0で、d3とd4が20であるので52に切り下がる確率は2/4であり92に繰り上がる確率も2/4であり、平均して72が得られる。同様に画像信号Cの値が82の場合、52に切り下がる確率は1/4であり92に繰り上がる確率が3/4となり、平均して82が表示される。このようにして本来のディザ処理の原理どおりに擬似的な階調表現がなされており、これらは他の階調間でも同様である。
【0036】
このような画像処理により、表示階調が離散的で、かつ階調の間隔が等間隔でない特性を有するディスプレイ装置においても、誤差拡散処理とディザ処理を併用して良好な中間調画像を表示することができる。例えば、TFT駆動する液晶表示装置、STN液晶材料を用いてドットマトリクス方式で駆動する液晶表示装置、あるいはサブフィールド法を用いることで画像のコントラストが低下したり偽輪郭が発生するようなPDP装置等に対して、良好な中間調を表示できるようになる。
【0037】
特に本発明ではビット数拡張手段を用いて画像データを10ビットに拡張している。これは表示階調の間隔が1であっても、その間を4等分し3つの階調を挿入することによってディザ処理の効果を確実に得るためである。ここで用いたディスプレイ装置の表示階調は、0、1、3、7、13、23、37、56、82、115、155、202、255であり、低輝度部分で階調の間隔が小さくなっている。視覚的にも低輝度部分の輝度変化に対する感度が高いため、特に階調0と1の間、1と3の間の階調を忠実に再現することが重要となり、これを実現するためにビット数拡張手段が不可欠となっている。
【0038】
なお、本実施の形態では、入力画像信号を8ビット、ディザマトリクスを2×2、表示階調数が13階調であるとして説明した。このとき画像信号を4倍拡張表示階調である49階調に制限したのはディザマトリクスの要素の個数が4(=2×2)であることに起因していた。また、ディスプレイ装置で表現可能な8ビット13階調を4倍した10ビット13階調を用いたのは正確に4等分した49階調を作り出すためである。また、ビット数拡張手段で画像信号を8ビットから10ビットへと階調数を拡張したのも同様の理由からである。
【0039】
しかしながら本発明はこれに限定されるものではない。一般的に、入力画像信号がbビット、ディザマトリクスを(n×m)、表示階調の数がcとした場合、ビット数拡張手段において入力画像のビット数を
b+log2(n×m)
に拡張し、続く階調制限手段において、表示階調cを(n×m)倍した階調(以下mn倍率表示階調と略記する)に対し、その階調間を(n×m)等分した階調(以下、mn倍拡張表示階調と略記する)に制限し、続くディザ回路においてディザマトリクスを加算し、続くレベル変換回路においてディスプレイ装置でmn倍率表示階調をしきい値として切り捨て、その後(n×m)で除することによりディスプレイ装置において表示するための画像信号とすることができる。
【0040】
ここで使用するディザマトリクスは以下のようにして作成する。
【0041】
まず、階調制限手段から出力される階調のうち、mn倍率表示階調に一致する階調に対しては(n×m)個のディザ要素を全て0とする。次にmn倍率表示階調間を(n×m)等分するために挿入された(n×m−1)個の階調のうち、最も小さい階調に対しては(n×m)個の要素のうち(n×m−1)個を0に、2番目に小さい階調に対しては(n×m)個の要素のうち(n×m−2)個を0にする。以下同様にi番目に小さい階調に対しては(n×m)個の要素のうち(n×m−i)個を0にする。ディザ要素のうち0でないものは、mn倍率表示階調のうち当該階調以上で最も小さいものと当該階調との差とする。
【0042】
すなわち一般の場合のディザ要素は以下の式にしたがって求める。
【0043】
ディスプレイ装置の表示階調を
{0、・・・、r、s、・・・}
であるとする。このときmn倍率表示階調は
{0、・・・、(n×m)×r、(n×m)×s、・・・}
となる。(n×m)×rと(n×m)×sとの間をn×m等分する階調は
(n×m)×r、(n×m)×r+(s−r)×1、(n×m)×r+(s−r)×2、(n×m)×r+(s−r)×3、・・・、(n×m)×r+(s−r)×(i−1)、・・・、(n×m)×r+(s−r)×(n×m−1)
となる。
【0044】
ここで、(n×m)×r+(s−r)×(i−1)は、(n×m)×rと(n×m)×sとの間をn×m等分した階調のうち(n×m)×rを1番目として小さい階調からi番目の階調であることを示す。これらの記号を用て、i番目の階調に対する各ディザ要素を次のように設定する。
【0045】
d(n×m−0)=(s−r)×{(n×m)−(i−1)}
d(n×m−1)=(s−r)×{(n×m)−(i−1)}
・
・
d(n×m−(i−2))=(s−r)×{(n×m)−(i−1)}
d(n×m−(i−1))=0
・
・
d2=0
d1=0
例えば本実施の形態で使用した例で、m=2、n=2、r=13、s=23とすると、階調制限テーブルの52(i=1)に対するディザ要素は、
d4=0
d3=0
d2=0
d1=0
となる。また、階調制限テーブルの62(i=2)に対するディザ要素は、
d4=(23−13)×{(2×2)−(2−1)}=30
d3=0
d2=0
d1=0
となる。また、階調制限テーブルの72(i=3)に対するディザ要素は、
d4=(23−13)×{(2×2)−(3−1)}=20
d3=(23−13)×{(2×2)−(3−1)}=20
d2=0
d1=0
となる。また、階調制限テーブルの82(i=4)に対するディザ要素は、
d4=(23−13)×{(2×2)−(4−1)}=10
d3=(23−13)×{(2×2)−(4−1)}=10
d2=(23−13)×{(2×2)−(4−1)}=10
d1=0
となり図4の表に一致することがわかる。
【0046】
(実施の形態2)
本実施の形態は、ディザ要素決定回路を簡略化して回路規模を小さくしても実施の形態1と同様の結果が得られるようにしたものである。本実施の形態の階調拡張手段、階調制限手段、ディザ処理手段のうちのディザ回路、レベル変換手段については、実施の形態1と同様であるので説明を省略する。本実施の形態が実施の形態1と異なるのはディザ要素決定回路のディザ要素の値である。図6に示すように、4倍率表示階調間を4等分して得られた4つの階調に対応するディザマトリクスのディザ要素は全て等しい値としている。例えば、階調が52、62、72、82に対するディザ要素はd1=0、d2=10、d3=20、d4=30と全て同一の値としている。このため、画像信号に基づくディザ要素の設定処理が簡略化されるので、回路規模を小さく、かつメモリ容量も低減できる。
【0047】
以下にその構成を動作とともに説明する。なお、本実施の形態においても実施の形態1と同様、入力画像信号が8ビット256階調、ディザ処理手段のディザマトリクス(n×m)がn=2、m=2、ディスプレイ装置の表示階調が(0、1、3、7、13、23、37、56、82、115、155、202、255)の8ビット13階調であるとする。
【0048】
本実施の形態で用いられるディザ要素は以下のように決定する。まず、4つのディザ要素のうちd1については階調にかかわらず全て0とする。次に4倍率表示階調を4等分するために挿入された3つの階調をK1、K2、K3(K1<K2<K3と仮定する)とし、上記3つの階調以上で最も小さい4倍率表示階調をK4とする。d2は、上記3つの階調のうち1番大きい階調とK4との差(この場合K4−K3)とする。d3は、上記3つの階調のうち2番目に大きい階調とK4との差(この場合K4−K2)とする。d4は、上記3つの階調のうち1番小さい階調とK4との差(この場合K4−K1)とする。例えば、階調52、62、72、82に対しては、K1=62、K2=72、K3=82、K4=92となるので、d1=0、d2=92−82=10、d3=92−72=20、d4=92−62=30となり、図6に示したディザ係数が求まる。
【0049】
本実施の形態におけるディザ要素を用いてディザ処理を行った結果を図7に示す。図7(a)は本実施の形態で用いられるディザマトリクスの配列であり、実施の形態1と同じものである。各画素毎の画像信号Cが、図7(c)のようになっていると仮定する。これも実施の形態1と同じものである。このときそれぞれの画像信号Cに対応するディザ要素は図6の表により決定され、図7(b)のように表される。ディザ回路400は、各画素毎に画像信号Cとそれに対応するディザ要素とを加算し画像信号Dとして出力する。これら2つの値を加算した結果を図7(d)に示す。図7(b)および図7(d)の信号の値は、実施の形態1に対応する図5(b)、図5(d)とは異なる値を持っている。続くレベル変換手段104は、4倍率表示階調(0、4、12、28、52、92、148、224、328、460、620、808、1020)をしきい値として画像信号Dの切り捨てを行い、その結果を4で除する。図7(e)が切り捨てを行った結果であり図7(f)が4で除した結果である。この時点で、実施の形態1に対応する図5(e)、図5(f)と同一の値に戻っていることがわかる。このように、図6の表に示すようなディザ要素を設定することで、実施の形態1と同様の結果を得ることができた。
【0050】
以上の処理方法により、表示階調が離散的で、かつ階調の間隔が等間隔でない特性を有するディスプレイ装置においても誤差拡散処理とディザ処理を併用して良好な中間調画像の表示が可能となる。加えて、誤差拡散後に出力された画像信号に基づくディザ要素の設定処理が簡略化されるので、回路規模を小さく、かつメモリ容量も低減できる。この結果、低コストで擬似的に中間調表現可能な画像処理装置を実現できる。
【0051】
なお、本実施の形態において、一般的に、入力画像がbビット、ディザマトリクスをn×m、表示階調の数がcとした場合、ディザ係数は以下のようにして求める。
【0052】
ディスプレイ装置の表示階調を
{0、・・・、r、s、・・・}
であるとする。このときmn倍率表示階調は
{0、・・・、(n×m)×r、(n×m)×s、・・・}
となる。(n×m)×rと(n×m)×sとの間をn×m等分する階調は
(n×m)×r、(n×m)×r+(s−r)×1、(n×m)×r+(s−r)×2、(n×m)×r+(s−r)×3、・・・、(n×m)×r+(s−r)×(i−1)、・・・、(n×m)×r+(s−r)×(n×m−1)となる。
【0053】
ここで、(n×m)×r+(s−r)×(i−1)は、(n×m)×rと(n×m)×sとの間をn×m等分した階調のうち(n×m)×rを1番目として小さい階調からi番目の階調であることを示す。これらの記号を用い、各ディザ要素は次のように設定する。
【0054】
d1={(n×m)×s} − {(n×m)×r+(s−r)×(n×m−0)}=0
d2={(n×m)×s} − {(n×m)×r+(s−r)×(n×m−1)}
d3={(n×m)×s} − {(n×m)×r+(s−r)×(n×m−2)}
d4={(n×m)×s} − {(n×m)×r+(s−r)×(n×m−3)}
・
・
di={(n×m)×s} − {(n×m)×r+(s−r)×(n×m−(i−1))}
・
・
d(n×m)={(n×m)×s} − {(n×m)×r+(s−r)×(n×m−(n×m−1))}
={(n×m)×s} − {(n×m)×r+(s−r)×1}
例えば本実施の形態で使用した例で、m=2、n=2、r=13、s=23とする。このとき、階調制限テーブルの52(i=1)に対するディザ要素は、
d1={(2×2)×23} − {(2×2)×13+(23−13)×(2×2−0)}=0
d2={(2×2)×23} − {(2×2)×13+(23−13)×(2×2−1)}=10
d3={(2×2)×23} − {(2×2)×13+(23−13)×(2×2−2)}=20
d4={(2×2)×23} − {(2×2)×13+(23−13)×(2×2−2)}=30
となって図6の表と一致することがわかる。
【0055】
【発明の効果】
このような構成とすることにより、表示階調が離散的であり、かつそれぞれの階調の間隔が等間隔でない階調表示特性を有するディスプレイ装置に対しても、擬似的に連続的な階調表現が可能となり良好な中間調表示が行える画像表示装置が実現できる。また、ディザマトリクスのディザ要素の値を簡略化することでディザ要素出力手段のメモリ容量やディザ回路の回路規模を小さくできるため、画像処理装置の低コスト化が図れる。
【図面の簡単な説明】
【図1】本発明の実施の形態1および実施の形態2における画像処理装置の回路ブロック図
【図2】本発明の実施の形態1および実施の形態2における画像処理装置のビット数拡張手段の回路ブロック図
【図3】本発明の実施の形態1および実施の形態2における画像処理装置の階調制限手段の回路ブロック図
【図4】本発明の実施の形態1におけるディザ要素の値を示す図
【図5】本発明の実施の形態1におけるディザ処理手段およびレベル変換手段の動作を説明するための図
【図6】本発明の実施の形態2におけるディザ要素の値を示す図
【図7】本発明の実施の形態2におけるディザ処理手段およびレベル変換手段の動作を説明するための図
【図8】従来の技術における画像処理装置の回路ブロック図
【図9】従来の技術における誤差拡散の処理内容を説明するための図
【図10】従来の技術における誤差拡散回路のブロック図
【図11】従来の技術におけるディザ回路のブロック図
【符号の説明】
100 ビット数拡張手段
101 階調制限手段
102 ディザ処理手段
103,804 ディスプレイ装置
104 レベル変換手段
106 入力画像信号(画像信号A)
200 逆ガンマ補正回路
201 第1の誤差拡散回路
301 階調制限テーブル
401 ディザ要素決定回路
801 画像信号
802 誤差拡散回路
803 ディザ回路[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus for performing halftone display of a display device having a characteristic in which displayable gradations are discrete and gradation intervals are not equal.
[0002]
[Prior art]
In a display device such as a plasma display panel (PDP) or a liquid crystal display device, if the number of displayable gray scales (hereinafter simply referred to as display gray scales) is not sufficient, it is difficult to express a smooth halftone, and Is observed as a pattern (so-called false contour) like a contour line of a map, and image display quality is significantly deteriorated. In this case, error diffusion processing and dither processing are known as techniques for increasing the number of gray levels in a pseudo manner.
[0003]
Hereinafter, a general method when the error diffusion processing and the dither processing are used together will be described with reference to the drawings. As an example, it is assumed that the input image signal is 256 gradations of 8 bits, the display gradation of the display device is 32 gradations of 5 bits, and the dither matrix (n × m) of the dither processing means is n = 2 and m = 2. At this time, the intervals of the display gradation of the display device used here are equal.
[0004]
In FIG. 8, an
[0005]
First, the error diffusion processing will be described. Now, assume that signal processing of the pixel P0 shown in FIG. 9 is performed. At this time, a predetermined weighting process as shown in FIG. 9 is performed on the display error of the pixels P1, P2, P3 and the immediately preceding pixel P4 one line before the pixel P0, that is, the value of the lower one bit, and the input image of the pixel P0 Add to the signal. The lower 1 bit, which is a display error of the pixel P0, is subjected to a predetermined weighting process and diffused to surrounding pixels P5, P6, P7, P8. The solid arrow in FIG. 9 indicates an error added to P0 from surrounding pixels, and the dotted arrow indicates an error diffused from P0 to surrounding pixels. Numerical values attached to the arrows indicate the magnitude of each weight. FIG. 10 is a block diagram of the error diffusion circuit. T in the block indicates a one-pixel delay circuit, H indicates a one-line delay circuit, and the numerical value of each block following each delay circuit indicates the magnitude of each weight. As shown in FIG. 10, the upper 7 bits of the result of the addition are output to the
[0006]
Next, signal processing in the
[0007]
The principle of the dither processing performed here is as follows. If the lower 2 bits of the original 7 bits are 0, that is, XXXXXX00 (X = 1 or 0) in binary notation, the upper 5 bits do not increase regardless of which dither element is added. For example, when the image signal is 20, it is 0010100 in binary notation and the
[0008]
When the lower 2 bits of the original 7 bits are 1, the upper 5 bits are carried up only when the dither element is 3. For example, when the image signal is 21, the binary number is 0010101 and the
[0009]
Similarly, if the lower 2 bits of the original 7 bits are 2, the upper 5 bits are carried up when the dither elements are 3 and 2. Since the probability that the dither element is 3 or 2 is 1/4, respectively, the probability that the upper 5 bits are carried up in this case is 2/4.
[0010]
Further, if the lower 2 bits of the original 7 bits are 3, the upper 5 bits are carried up when the dither elements are 3, 2 and 1, and the probability is 3/4.
[0011]
Therefore, for example, if the original 7 bits are 21, it is rounded up to 24 with a probability of 1/4, otherwise it is rounded down to 20 at last, so the average of the image after dither processing is 20. An appropriate gradation is 24 × 1 / + 20 × 3/4 = 21. As described above, finally, the original 7 bits can be represented by 5 bits in a pseudo manner.
[0012]
In this example, a dither matrix of (n × m) = (2 × 2) has four dither elements d1 to d4, and thus represents two bits (four gradations) in a pseudo manner. If a dither matrix of (n × m) = (4 × 4) is used, four bits (16 gradations) can be represented in a pseudo manner since there are 16 dither elements.
[0013]
[Problems to be solved by the invention]
The above-described gradation correction method is for displaying a halftone image favorably on a display device in which the display gradation intervals are equal. On the other hand, in the case of a display device in which the intervals between display gradations are not equal, such an image processing method is not effective. For example, in the case of a display device having display gradations of 0, 1, 3, 7, 13, 23, 37, 56, 82, 115, 155, 202, and 255, the dither matrix used is If the above is the same as above, if the gradation value is 13 or more, even if dither processing is performed, no carryover occurs and there is no effect. On the other hand, if the value of the gradation is 3 or less, the carry-up is too large, and on the contrary, the image quality is deteriorated. This is because the values of the four dither elements d1 to d4 are fixed.
[0014]
On the other hand, Japanese Patent Application Laid-Open No. 8-286634 discloses that in a display device in which a plurality of pixel units are arranged in a two-dimensional matrix format, after adding a dither pattern corresponding to an input image signal, A halftone display method for performing an error diffusion process is disclosed. In this method, the threshold value of error diffusion can be changed for each gradation, for each dot, and for each line by an input signal and a signal from a timing generator. By selecting the optimal dither pattern according to the gradation of the input image signal before performing the error diffusion processing, flicker and fixed pattern can be compared with the conventional halftone display method that always inserts a fixed dither pattern. Etc. can be suppressed. However, in this example, dither processing is used not for improving the gradation but for preventing the flicker by scattering the threshold values of the error diffusion in a staggered manner. Therefore, in the case of a display device in which the number of display gradations of the display device is not sufficient and the intervals between the gradations are not equal, there is a problem that a sufficient halftone display cannot be performed.
[0015]
The present invention enables smooth halftone expression even in a display device having such a small number of display gradations.
[0016]
[Means for Solving the Problems]
In order to achieve the above object, the image processing apparatus according to the present invention is configured so that at least Log2 (n × m) ≦ Δb
A bit number extending means for increasing the number of bits of the image signal by Δb which satisfies the following condition, and approximately (n × m) times the number of gradations in a pseudo manner by dither processing. A gradation restriction table for restricting an image signal to n × m) times gradation, gradation restriction means for performing an error diffusion process using the restricted difference as a display error, and an image using a dither element dependent on the image signal. Level converting means for dithering the signal and finally converting the signal into an image signal of b bits and c gradations.
[0017]
BEST MODE FOR CARRYING OUT THE INVENTION
That is, according to the first aspect of the present invention, at least Log2 (n × m) ≦ Δb (m, n) with respect to the number of bits of an image signal input to a display device having a characteristic in which displayable gradation intervals are not constant. Is a natural number)
Bit number expansion means for increasing the number of bits of the image signal by Δb that satisfies the following equation, and outputting the first image signal as a first image signal; A gradation restriction table for restricting the output to a gradation obtained by equally dividing the interval into (n × m), a first image signal restricted to the gradation of the gradation restriction table, and output as a second image signal; A gradation limiting unit that performs an error diffusion process using a difference generated by the limitation as a display error, and a dither matrix (n × m) determined based on the second image signal. An image processing apparatus includes dither processing means for performing dither processing and outputting the third image signal as a third image signal, and level conversion means for converting the third image signal into a bit number and a gradation that can be displayed on a display device.
[0018]
According to a second aspect of the present invention, in the first aspect, the bit number extending means has an inverse gamma correction circuit and an error diffusion circuit, and the inverse gamma correction circuit temporarily converts the input image signal into a first image signal. An image processing apparatus for converting an image signal into an image signal having a larger number of bits.
[0019]
Further, the invention according to
, The probability that the i-th gray scale is raised to the larger value of the gray scale obtained by multiplying the displayable gray scale by (n × m) is (i−1) / (n × m)
And the probability of not moving is {(n × m) − (i−1)} / (n × m)
An image processing apparatus characterized in that the value of a dither element of a dither matrix is set such that
[0020]
Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
[0021]
(Embodiment 1)
The configuration and operation of the image processing apparatus according to the first embodiment will be described below. In this embodiment, the input image signal is 8 bits and 256 gradations, the dither matrix (n × m) of the dither processing means is n = 2 and m = 2, and the display gradation of the display device is 8 bits and 13 gradations. An example in which display intervals are provided and display intervals are not equal intervals will be described as an example. Here, it is assumed that the specific display gradation is (0, 1, 3, 7, 13, 23, 37, 56, 82, 115, 155, 202, 255).
[0022]
In FIG. 1, an 8-bit input image signal (image signal A) 106 is converted into a 10-bit image signal B by a bit
[0023]
Each process will be described below.
[0024]
As shown in FIG. 2, the bit number extending means 100 includes an inverse
[0025]
y = (x / 255) ^ 2.2 × 4095
Here, it should be noted that the increase from 8 bits to 12 bits is the dynamic range (the ratio between the maximum gradation and the gradation 1) of the image signal, and does not mean that the number of gradations itself has increased. . The gradations that can be expressed are 256 kinds of y values corresponding to 256 kinds of x values (x = 0 to 255).
[0026]
Next, the first
[0027]
Next, the gradation limiting means 101 will be described.
[0028]
The display gradation of the display device used in the present embodiment is the following 8-
[0029]
The
[0030]
The configuration of the gradation limit table 301 may be, for example, a ROM table that outputs an image signal C and a display error with respect to an input signal. A combination of subtraction circuits for calculating the display error by subtracting the signal C may be used.
[0031]
Next, the dither processing means 102 will be described.
[0032]
The dither
[0033]
Next, signal processing in the
[0034]
Next, the level conversion means 104 will be described. The level conversion means 104 performs truncation of the image signal D using the 4 magnification display gradation (0, 4, 12, 28, 52, 92, 148, 224, 328, 460, 620, 808, 1020) as a threshold. , And divide the result by 4. FIG. 5E shows the result of the truncation, and FIG. 5F shows the result of dividing by 4. For example, the value of the image signal D corresponding to the pixel in the first row and the third column in FIG. Therefore, it is rounded down to 52, which is the largest value below 82, and divided by 4 to be 13. In addition, the value of the image signal C in the first row and the second column is 92, and in this case, no round-down occurs and the value is divided by 4 to 23. As described above, the image signal D is finally converted into an 8-bit, 13-gradation image signal E that can be displayed on a display device.
[0035]
The result of the dither processing performed here will be described by taking as an example a range between 52 and 92, which are four-magnification display gradations. When the value of the image signal C is 52, the signal does not change and remains at 52 because all four dither elements are 0. When the value of the image signal C is 62, among the four dither elements, d1 to d3 are 0 and only d4 is 30, so that the probability of being cut down to 52 by the level conversion means 104 is 3/4, and it goes up to 92. The probability is 1/4. As a result, since 52 × 3/4 + 92 × 1 / = 62, 62 was obtained on average. When the value of the image signal C is 72, d1 and d2 of the dither elements are 0 and d3 and d4 are 20, so that the probability of falling to 52 is 2/4 and the probability of rising to 92 is 2/4. Yes, an average of 72 is obtained. Similarly, when the value of the image signal C is 82, the probability of being rounded down to 52 is 1/4, the probability of being raised to 92 is 3/4, and 82 is displayed on average. In this way, pseudo gradation expression is performed according to the principle of the original dither processing, and the same applies to other gradations.
[0036]
By such image processing, even in a display device having characteristics in which display gradations are discrete and gradation intervals are not equal, a good halftone image is displayed by using both error diffusion processing and dither processing. be able to. For example, a liquid crystal display device driven by a TFT, a liquid crystal display device driven by a dot matrix method using an STN liquid crystal material, or a PDP device in which image contrast is reduced or a false contour is generated by using a subfield method. , A good halftone can be displayed.
[0037]
In particular, in the present invention, the image data is extended to 10 bits by using the bit number extending means. This is because even if the display grayscale interval is 1, the interval between the display grayscales is divided into four and three grayscales are inserted, so that the effect of the dither processing can be reliably obtained. The display gradations of the display device used here are 0, 1, 3, 7, 13, 23, 37, 56, 82, 115, 155, 202 and 255, and the gradation intervals are small in the low luminance portion. Has become. Visually, the sensitivity to the luminance change in the low luminance portion is high. Therefore, it is particularly important to faithfully reproduce the gradation between 0 and 1 and between 1 and 3. Means for expanding the number are essential.
[0038]
In this embodiment, the input image signal has been described as 8 bits, the dither matrix has 2 × 2, and the number of display gradations has 13 gradations. At this time, the reason why the image signal was limited to 49 gradations, which is a 4-fold extended display gradation, was that the number of elements of the dither matrix was 4 (= 2 × 2). The reason why the 10-bit 13-gradation obtained by quadrupling the 8-bit 13-gradation that can be expressed by the display device is used is to accurately produce 49 gradations divided into four equal parts. Further, for the same reason, the gradation number is extended from 8 bits to 10 bits by the bit number extension means.
[0039]
However, the present invention is not limited to this. Generally, when the input image signal is b bits, the dither matrix is (n × m), and the number of display gradations is c, the number of bits of the input image is set to b + log 2 (n × m) by the bit number expansion unit.
In the following gradation limiting means, a gray scale obtained by multiplying the display gray scale c by (n × m) (hereinafter abbreviated as mn magnification display gray scale) is expressed by (n × m) or the like. In the following dither circuit, a dither matrix is added to the divided gray scales (abbreviated as mn-fold extended display gray scales), and the subsequent level conversion circuit rounds down the display scale to the mn magnification display gray scale in the display device. Then, by dividing by (nxm), an image signal to be displayed on the display device can be obtained.
[0040]
The dither matrix used here is created as follows.
[0041]
First, among the gradations output from the gradation limiting unit, all the (n × m) dither elements are set to 0 for the gradation that matches the mn magnification display gradation. Next, among the (n × m−1) gradations inserted to equally divide the mn magnification display gradation between (n × m), the (n × m) gradation is the smallest gradation. (N × m−1) of the elements are set to 0, and (n × m−2) of the (n × m) elements are set to 0 for the second smallest gradation. Similarly, for the i-th smallest gradation, (n × m−i) elements among the (n × m) elements are set to 0. A non-zero dither element is the difference between the mn magnification display gradation and the smallest one that is equal to or higher than the gradation and the gradation.
[0042]
That is, the dither element in the general case is obtained according to the following equation.
[0043]
The display gradation of the display device is {0,..., R, s,.
And At this time, the mn magnification display gradation is {0,..., (N × m) × r, (n × m) × s,.
It becomes. The gradation that divides n × m equally between (n × m) × r and (n × m) × s is (n × m) × r, (n × m) × r + (s−r) × 1 , (N × m) × r + (s−r) × 2, (n × m) × r + (s−r) × 3,..., (N × m) × r + (s−r) × (i −1),..., (N × m) × r + (s−r) × (n × m−1)
It becomes.
[0044]
Here, (n × m) × r + (s−r) × (i−1) is a gradation obtained by equally dividing (n × m) × r and (n × m) × s by n × m. Out of (n × m) × r is the first to i-th gradations. Using these symbols, each dither element for the i-th gradation is set as follows.
[0045]
d (nxm-0) = (sr) x {(nxm)-(i-1)}
d (n × m−1) = (s−r) × {(n × m) − (i−1)}
・
・
d (n × m− (i−2)) = (s−r) × {(n × m) − (i−1)}
d (nxm- (i-1)) = 0
・
・
d2 = 0
d1 = 0
For example, in the example used in the present embodiment, if m = 2, n = 2, r = 13, and s = 23, the dither element for 52 (i = 1) in the gradation restriction table is
d4 = 0
d3 = 0
d2 = 0
d1 = 0
It becomes. The dither element for 62 (i = 2) in the gradation restriction table is
d4 = (23−13) × {(2 × 2) − (2-1)} = 30
d3 = 0
d2 = 0
d1 = 0
It becomes. The dither element for 72 (i = 3) in the gradation restriction table is
d4 = (23−13) × {(2 × 2) − (3-1)} = 20
d3 = (23−13) × {(2 × 2) − (3-1)} = 20
d2 = 0
d1 = 0
It becomes. The dither element for 82 (i = 4) in the gradation restriction table is
d4 = (23−13) × {(2 × 2) − (4-1)} = 10
d3 = (23−13) × {(2 × 2) − (4-1)} = 10
d2 = (23−13) × {(2 × 2) − (4-1)} = 10
d1 = 0
Thus, it can be seen that the values coincide with the table of FIG.
[0046]
(Embodiment 2)
In the present embodiment, a result similar to that of the first embodiment can be obtained even if the circuit scale is reduced by simplifying the dither element determination circuit. The dither circuit and the level converting means of the gradation expanding means, the gradation limiting means and the dither processing means of the present embodiment are the same as those of the first embodiment, and therefore their explanation is omitted. The present embodiment differs from the first embodiment in the value of the dither element of the dither element determination circuit. As shown in FIG. 6, the dither elements of the dither matrix corresponding to the four gradations obtained by dividing the four-magnification display gradation into four equal parts are all set to the same value. For example, the dither elements for
[0047]
The configuration will be described below together with the operation. In this embodiment, as in the first embodiment, the input image signal has 256 gradations of 8 bits, the dither matrix (n × m) of the dither processing means is n = 2, m = 2, and the display floor of the display device. It is assumed that the tone is (0, 1, 3, 7, 13, 23, 37, 56, 82, 115, 155, 202, 255) with 8 bits and 13 tones.
[0048]
The dither element used in the present embodiment is determined as follows. First, d1 of the four dither elements is all set to 0 regardless of the gradation. Next, K1, K2, and K3 (assuming that K1 <K2 <K3) are used as the three gradations inserted to divide the four-magnification display gradation into four equal parts. The display gradation is K4. d2 is the difference between the largest gradation among the three gradations and K4 (in this case, K4-K3). d3 is the difference between the second largest gradation among the three gradations and K4 (in this case, K4-K2). d4 is the difference between the smallest gradation among the above three gradations and K4 (in this case, K4-K1). For example, for
[0049]
FIG. 7 shows the result of performing dither processing using the dither element according to the present embodiment. FIG. 7A shows an arrangement of a dither matrix used in the present embodiment, which is the same as that in the first embodiment. It is assumed that the image signal C for each pixel is as shown in FIG. This is also the same as in the first embodiment. At this time, the dither element corresponding to each image signal C is determined by the table of FIG. 6 and is represented as shown in FIG. 7B. The
[0050]
With the above processing method, it is possible to display a good halftone image by using both the error diffusion process and the dither process even in a display device having a characteristic in which display gradations are discrete and gradation intervals are not equal. Become. In addition, since the process of setting the dither element based on the image signal output after the error diffusion is simplified, the circuit scale can be reduced and the memory capacity can be reduced. As a result, an image processing device capable of pseudo-halftone expression at low cost can be realized.
[0051]
In this embodiment, generally, when the input image is b bits, the dither matrix is n × m, and the number of display gradations is c, the dither coefficient is obtained as follows.
[0052]
The display gradation of the display device is {0,..., R, s,.
And At this time, the mn magnification display gradation is {0,..., (N × m) × r, (n × m) × s,.
It becomes. The gradation that divides n × m equally between (n × m) × r and (n × m) × s is (n × m) × r, (n × m) × r + (s−r) × 1 , (N × m) × r + (s−r) × 2, (n × m) × r + (s−r) × 3,..., (N × m) × r + (s−r) × (i −1),..., (N × m) × r + (s−r) × (n × m−1).
[0053]
Here, (n × m) × r + (s−r) × (i−1) is a gradation obtained by equally dividing (n × m) × r and (n × m) × s by n × m. Out of (n × m) × r is the first to i-th gradations. Using these symbols, each dither element is set as follows.
[0054]
d1 = {(n × m) × s} − {(n × m) × r + (s−r) × (n × m−0)} = 0
d2 = {(n × m) × s} − {(n × m) × r + (s−r) × (n × m−1)}
d3 = {(n × m) × s} − {(n × m) × r + (s−r) × (n × m−2)}
d4 = {(n × m) × s} − {(n × m) × r + (s−r) × (n × m−3)}
・
・
di = {(n × m) × s} − {(n × m) × r + (s−r) × (n × m− (i−1))}
・
・
d (n × m) = {(n × m) × s} − {(n × m) × r + (s−r) × (n × m− (n × m−1))}
= {(N × m) × s} − {(n × m) × r + (s−r) × 1}
For example, in the example used in the present embodiment, m = 2, n = 2, r = 13, and s = 23. At this time, the dither element for 52 (i = 1) in the gradation restriction table is
d1 = {(2 × 2) × 23} − {(2 × 2) × 13 + (23−13) × (2 × 2-0)} = 0
d2 = {(2 × 2) × 23} − {(2 × 2) × 13 + (23−13) × (2 × 2-1)} = 10
d3 = {(2 × 2) × 23} − {(2 × 2) × 13 + (23−13) × (2 × 2-2)} = 20
d4 = {(2 × 2) × 23} − {(2 × 2) × 13 + (23−13) × (2 × 2-2)} = 30
Thus, it can be seen that the result matches the table of FIG.
[0055]
【The invention's effect】
By adopting such a configuration, even a display device having display characteristics in which display grayscales are discrete and in which the intervals between the grayscales are not equal intervals is pseudo continuous grayscales. It is possible to realize an image display device capable of expressing and achieving good halftone display. Further, by simplifying the value of the dither element of the dither matrix, the memory capacity of the dither element output means and the circuit scale of the dither circuit can be reduced, so that the cost of the image processing apparatus can be reduced.
[Brief description of the drawings]
FIG. 1 is a circuit block diagram of an image processing apparatus according to
100 bit number expansion means 101 gradation limiting means 102 dither processing means 103, 804
200 inverse
Claims (3)
Log2(n×m)≦Δb (m、nは自然数)
を満たすΔb分だけ画像信号のビット数を増加させ第1の画像信号として出力するビット数拡張手段と、
前記ディスプレイ装置の表示可能な階調を(n×m)倍した階調に対して各階調間を(n×m)等分した階調に出力を制限する階調制限テーブルと、
前記第1の画像信号を前記階調制限テーブルの階調に制限して第2の画像信号として出力するとともに、制限によって生じた差分を表示誤差として誤差拡散処理を行う階調制限手段と、
前記第2の画像信号に基づいて決定したディザマトリクス(n×m)の各ディザ要素を用いて前記第2の画像信号のディザ処理を行い第3の画像信号として出力するディザ処理手段と、
前記第3の画像信号を前記ディスプレイ装置で表示可能なビット数および階調に変換するレベル変換手段と
を有する画像処理装置。At least Log2 (n × m) ≦ Δb (m and n are natural numbers) with respect to the number of bits of an image signal input to a display device having a characteristic in which a displayable gradation interval is not constant.
Bit number extending means for increasing the number of bits of the image signal by Δb that satisfies
A gradation restriction table for restricting an output to a gradation obtained by equally dividing (n × m) between each gradation with respect to a gradation obtained by multiplying a displayable gradation of the display device by (n × m);
Tone limiting means for limiting the first image signal to the tone of the tone limit table and outputting the second image signal as a second image signal, and performing an error diffusion process using a difference generated by the limitation as a display error;
Dither processing means for performing dither processing on the second image signal using each dither element of a dither matrix (n × m) determined based on the second image signal, and outputting the result as a third image signal;
An image processing apparatus comprising: a level conversion unit configured to convert the third image signal into a bit number and a gradation that can be displayed on the display device.
i=2、3、・・・、n×m
としたとき、i番目の階調が、前記表示可能な階調を(n×m)倍した階調の大きい方の値に繰り上がる確率が
(i−1)/(n×m)
であり、繰り上がらない確率が
{(n×m)−(i−1)}/(n×m)
となるようにディザマトリクスのディザ要素の値を設定したことを特徴とする請求項1に記載の画像処理装置。Smaller than (n × m-1) tones inserted to divide (n × m) equally between each of the tones which are (n × m) times the displayable tones I = 2, 3,..., N × m
, The probability that the i-th gray scale is raised to the larger value of the gray scale obtained by multiplying the displayable gray scale by (n × m) is (i−1) / (n × m)
And the probability of not moving is {(n × m) − (i−1)} / (n × m)
2. The image processing apparatus according to claim 1, wherein a value of a dither element of the dither matrix is set such that
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002246542A JP4196060B2 (en) | 2002-08-27 | 2002-08-27 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002246542A JP4196060B2 (en) | 2002-08-27 | 2002-08-27 | Image processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004088405A true JP2004088405A (en) | 2004-03-18 |
| JP4196060B2 JP4196060B2 (en) | 2008-12-17 |
Family
ID=32054416
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002246542A Expired - Fee Related JP4196060B2 (en) | 2002-08-27 | 2002-08-27 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4196060B2 (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007101854A (en) * | 2005-10-04 | 2007-04-19 | Matsushita Electric Ind Co Ltd | Image processing device |
| JP2007121541A (en) * | 2005-10-26 | 2007-05-17 | Seiko Epson Corp | Image display device and image display method |
| JP2007124195A (en) * | 2005-10-27 | 2007-05-17 | Ricoh Co Ltd | Image processing method, program, image processing apparatus, image forming apparatus, and image forming system |
| JP2008067343A (en) * | 2006-07-03 | 2008-03-21 | Seiko Instruments Inc | Color correction circuit, drive device, and display device |
| CN107426574A (en) * | 2016-05-13 | 2017-12-01 | 辛纳普蒂克斯日本合同会社 | Image compressing device, image spread device, compression of images development system and display driver |
-
2002
- 2002-08-27 JP JP2002246542A patent/JP4196060B2/en not_active Expired - Fee Related
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007101854A (en) * | 2005-10-04 | 2007-04-19 | Matsushita Electric Ind Co Ltd | Image processing device |
| JP2007121541A (en) * | 2005-10-26 | 2007-05-17 | Seiko Epson Corp | Image display device and image display method |
| JP2007124195A (en) * | 2005-10-27 | 2007-05-17 | Ricoh Co Ltd | Image processing method, program, image processing apparatus, image forming apparatus, and image forming system |
| JP2008067343A (en) * | 2006-07-03 | 2008-03-21 | Seiko Instruments Inc | Color correction circuit, drive device, and display device |
| CN107426574A (en) * | 2016-05-13 | 2017-12-01 | 辛纳普蒂克斯日本合同会社 | Image compressing device, image spread device, compression of images development system and display driver |
| CN107426574B (en) * | 2016-05-13 | 2023-01-03 | 辛纳普蒂克斯日本合同会社 | Image compression device, image expansion device, image compression expansion system, and display driver |
Also Published As
| Publication number | Publication date |
|---|---|
| JP4196060B2 (en) | 2008-12-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3354741B2 (en) | Halftone display method and halftone display device | |
| JP3357666B2 (en) | Display device and display method | |
| KR101062198B1 (en) | Display device and control method thereof | |
| CN1468006B (en) | Image processing device and method, image display device, and mobile electronic device | |
| JP3457251B2 (en) | Image display device | |
| JP4152153B2 (en) | Image display method and apparatus for plasma display panel | |
| JP3562707B2 (en) | Image display device | |
| JP4325171B2 (en) | Image display device | |
| JP4196060B2 (en) | Image processing device | |
| JP3473454B2 (en) | Video signal processing circuit and video signal processing method for matrix type display device | |
| JP2003338929A (en) | Image processing method and image processing apparatus | |
| JP3785922B2 (en) | Error diffusion processing method for display device | |
| JP4032737B2 (en) | Image processing device | |
| JP4172331B2 (en) | Error diffusion processing method for display device | |
| JP2004088404A (en) | Image processing device | |
| JP4930845B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP2003069922A (en) | Image display device | |
| JP2000165780A (en) | Video signal processing circuit for matrix type display device and its method | |
| JP3521591B2 (en) | Error diffusion processing device for display device | |
| JP2003195801A (en) | Display device and gradation display method | |
| KR100414107B1 (en) | Method for processing gray scale of a plasma display panel | |
| JP3449083B2 (en) | Display device driving method and driving circuit | |
| JP3534018B2 (en) | Error diffusion processing method for display device | |
| JP3521592B2 (en) | Error diffusion processing device for display device | |
| JP2001075521A (en) | Error spread processing method of display device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050801 |
|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20050913 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A132 Effective date: 20080408 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080602 |
|
| 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: 20080902 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080915 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111010 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111010 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121010 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131010 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |