JP4207259B2 - Video signal processing device - Google Patents

Video signal processing device Download PDF

Info

Publication number
JP4207259B2
JP4207259B2 JP24664098A JP24664098A JP4207259B2 JP 4207259 B2 JP4207259 B2 JP 4207259B2 JP 24664098 A JP24664098 A JP 24664098A JP 24664098 A JP24664098 A JP 24664098A JP 4207259 B2 JP4207259 B2 JP 4207259B2
Authority
JP
Japan
Prior art keywords
video signal
compression
luminance level
luminance
circuit
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
JP24664098A
Other languages
Japanese (ja)
Other versions
JP2000078437A (en
JP2000078437A5 (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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP24664098A priority Critical patent/JP4207259B2/en
Publication of JP2000078437A publication Critical patent/JP2000078437A/en
Publication of JP2000078437A5 publication Critical patent/JP2000078437A5/ja
Application granted granted Critical
Publication of JP4207259B2 publication Critical patent/JP4207259B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、映像信号処理装置に関し、特に高輝度部分での階調表現を改善した映像信号処理装置に関する。
【0002】
【従来の技術】
カメラ一体型ビデオテープレコーダやスチルビデオカメラなどのビデオカメラ部として、撮像装置が広く用いられている。撮像装置としては撮像管や固体撮像装置が一般的に用いられているが、これらの撮像装置は従来の銀塩写真装置のダイナミックレンジに比べてダイナミックレンジが狭いという問題がある。さらに、ビデオ信号のNTSCやPALといった映像信号規格では、黒レベルと白レベルが決まっており、規格上の最大白レベルより明るい部分を表示することはできない。
したがってダイナミックレンジの広い映像信号を処理するためには、高輝度部分を映像信号規格内に収めるための通常ニー(knee)と呼ばれる輝度圧縮を行っている。一般的には、白レベルを100%とすると、最大白レベルは105〜110%と決まっているので、例えばCCDなどの固体撮像装置から得られた200%の信号を110%に収めるために、95%〜200%の信号をレベル方向に圧縮して110%に収めるようにしていた。
【0003】
白黒の映像信号を扱う場合の撮像装置の内部構成の例を図1に示す。図1で、1はレンズ、3は撮像素子、5は輪郭強調回路、6は輝度圧縮回路、7はガンマ補正回路、8はホワイトクリップおよびブラッククリップ回路、10は加算器である。
被写体からの反射光は、レンズ1を通って撮像素子3に結像する。この撮像画像は電気信号に変換され、変換された電気信号は輪郭強調回路5、輝度圧縮回路6、ガンマ補正回路7、ホワイトクリップおよびブラッククリップ回路8でそれぞれ処理され、加算器10で同期信号が付加されて、映像信号規格に適った信号に変換される。
【0004】
輝度圧縮回路6で、輝度圧縮前の信号をY、輝度圧縮後の信号をY´、圧縮率(傾き)をKs、圧縮点(knee point)をKpとすると、輝度圧縮回路6の動作は以下の式で表される。
【0005】
Y≦Kpの時、
Y´=Y …(1)
Y>Kpの時、
Y´=Ks(Y−Kp)+Kp …(2)
【0006】
この圧縮率Ksや圧縮点Kpの定数を絵柄によって最適化する方法が従来から知られており、自動ニー(auto knee)と呼ばれている。これは入力映像信号のピークレベルがある一定値Y´pを越えたとき、回路出力の映像信号のピーク値がY´pになるように、KsもしくはKpを制御するものである。例えば、Kpを変数、Ksを固定値として自動ニーを動作させる方式では、自動ニー回路の入力映像信号のピーク値をYpとすると、図8に示すように、KpはYpの値から以下の式で表される。
【0007】
式(2)より、
Y´p=Ks(Yp−Kp)+Kp …(3)
これから
Kp=(Y´p−Yp・Ks)/(1−Ks) …(4)
【0008】
このような一折れ線のニー(single line knee)に対して、出現頻度の高い映像レベルにより多くの出力ダイナミックレンジが割りあたるように複数の折れ線で表現する適応型自動ニー(adaptive auto knee)という方式が特開平8−181887号公報で提案されている。
この方法では、圧縮点Kp以上の傾きを適応的に制御して限られた出力ダイナミックレンジを有効利用できるようにする。
【0009】
この方法での折れ線の設定方法を簡単に説明する。ここでは、圧縮点Kp以上を入力映像信号のピーク値Yp迄をk等分し、各等分のポイントをKp1、Kp2、Kp3、……、Kp(k+1)とする。図9にこの設定方法による折れ線のk=8の場合の例を示す。ここで、各折れ線の傾きをa1、a2、a3、……、akとする。このとき原点から圧縮点Kp迄の傾きa0=1とすると、出力映像信号のダイナミックレンジすなわち回路出力の映像信号ピーク値Y´pに対して、
【0010】
【数1】
…(5)

Figure 0004207259
【0011】
が得られる。そうしてこの式(5)を変形すれば傾きの合計値をΣaiを式(6)のように既知の値で表すことができる。
【0012】
【数2】
…(6)
Figure 0004207259
【0013】
圧縮点Kp以上の各部に割り当てられる傾きを、各傾きに相当する部分のヒストグラム値に比例するように割り振る。すなわち、i番目の傾きaiに相当する部分のヒストグラムの値をhiとすると、各傾きaiは式(7)で表される。
【0014】
【数3】
…(7)
Figure 0004207259
【0015】
式(7)を式(6)に代入すれば式(8)のように傾きaiを設定することができる。
【0016】
【数4】
…(8)
Figure 0004207259
【0017】
また、各折れ線のy切片biは式(9)によって再帰的に求まる。
b0=0
bi=Kpi・(a(i−1)−ai)+b(i−1) …(9)
【0018】
しかし、このような方式では、入力映像信号のピーク値Ypがホワイトクリップ以下かつ折れ線よりも大きい時が考慮されていないので、このような場合には効果をオフにする必要があるが、YpがY´p付近の値を前後すると効果のオン/オフの変わり目で映像信号が急激に変化してしまうことがある。また、効果を十分に得ようとすると、一番下のKp1は通常用いられる圧縮点Kpより低く設定する必要が有るが逆にさほど入力映像信号のピーク値Ypが高くないときにも動作してしまうという欠点があって余り好ましくない。
【0019】
図5にカラー信号を扱う撮像装置の内部構成の一例を示す。
図5において、1ははレンズ、2は分光プリズム、3−1、3−2、3−3は分光プリズムでRGBに分光された光をそれぞれ結像して電気信号に変換する撮像素子、4はホワイトバランス回路、5−1、5−2、5−3は輪郭強調回路、6は輝度圧縮回路、7−1、7−2、7−3はガンマ補正回路、8−1、8−2、8−3はホワイトクリップおよびブラッククリップ回路、9はエンコーダ回路である。
【0020】
本回路が先にあげた図1の白黒撮像装置との相違点は、像を光の3原色であるRGBに分けるための色分解プリズム2がレンズ1の後に置かれ、各色に対応した撮像素子3−1、3−2、3−3とそれぞれの回路が用意されている点および、被写体の色温度補整用のホワイトバランス回路4、及びカラー映像信号を得るためのエンコーダー回路9が用意されている点である。
【0021】
図10に、図5の輝度圧縮回路6に相当する部分の詳細図を示す。図10において、RGBの各入力から、NTSC等の規格に乗っ取りYマトリックス11を組むことにより、次の式(10)に基づいて輝度信号Yを算出する。
【0022】
Y=0.3R+0.59G+0.11B …(10)
【0023】
こうして求めたYのピーク値をピーク検出回路12で検出して得られたYpとあらかじめ設定値13−2として決められた輝度圧縮後のピーク値Y´pと圧縮率(傾き)Ksから、処理回路13の計算回路13−1で、式(4)によりKpを求めることができる。このKpとKsからRGBの各入力に演算処理部15−1〜15−3にて式(1)および式(2)の処理を加えることにより入力映像信号を圧縮することができる。処理回路13の演算は主にソフトウェアによる制御である。
【0024】
【発明が解決しようとする課題】
上述のごとく、従来の輝度圧縮用の映像信号処理装置では、入力映像信号のピーク値Ypが所定値Y´pの付近で変動した場合などに映像信号が急激に変化してしまうという欠点があった。
【0025】
本発明はこの点を解決して、比較的簡単な方法で、入力映像信号のピーク値の変動が映像信号に影響することなく、限られた出力ダイナミックレンジを有効を利用することができ、優れた階調表現を示す輝度圧縮用の映像信号処理装置の実現を課題とする。
【0026】
【課題を解決するための手段】
上記課題を達成するため、本発明は、入力映像信号の高輝度部分のダイナミックレンジを適応的に圧縮して出力する映像信号処理装置であって、(1)入力映像信号の輝度レベルのピーク値を検出するピーク値検出手段と、(2)出力輝度レベルの最大値を指定する最大出力輝度レベル設定手段と、(3)ダイナミックレンジの圧縮率を指定する圧縮率設定手段と、(4)入力映像信号の輝度レベルのピーク値、出力輝度レベルの最大値及びダイナミックレンジの圧縮率に基づいて、ダイナミックレンジの圧縮を開始する輝度レベルを算出する圧縮開始輝度レベル算出手段と、(5)圧縮開始輝度レベル以上の高輝度部分について、入力映像信号の輝度分布に対するヒストグラムを検出するヒストグラム検出手段と、(6)ヒストグラム検出手段の検出結果に基づいて、出現頻度の高い輝度レベルに多くの出力ダイナミックレンジを割り当てる変換グラフ生成手段と、(7)生成された変換グラフを用い、入力映像信号の高輝度部分を圧縮する階調変換手段とを有することを特徴とする。
【0027】
【発明の実施の形態】
以下、本発明にかかる映像信号処理装置を添付図面を参照にして詳細に説明する。
本発明が実施される白黒の撮像装置の内部構成を図1に示す。図1で、1はレンズ、3は撮像素子、5は輪郭強調回路、6は輝度圧縮回路、7はガンマ補正回路、8はホワイトクリップおよびブラッククリップ回路、10は加算器である。
被写体からの反射光は、レンズ1を通って撮像素子3に結像する。この撮像画像は電気信号に変換され、変換された電気信号は輪郭強調回路5、輝度圧縮回路6、ガンマ補正回路7、ホワイトクリップおよびブラッククリップ回路8でそれぞれ処理され、加算器10で同期信号が付加されて、映像信号規格に適った信号に変換される。
【0028】
本発明で述べる映像信号処理装置は、この回路の輝度圧縮回路6にあたる。
本発明の、輝度圧縮回路6は入出力応答特性の改善を目的にしている。
【0029】
図9の一番下のニーポイントKp1を決める際に、あらかじめ圧縮率(傾き)Ksをある1より小さい傾きに設定し、式(4)を用いて求めたKpをKp1にする。このようにすると、入力映像信号のピークレベルYpがY´pを越えなければニーがかからないので、YpがY´p付近の値を前後しても輝度圧縮がスムーズに移り、映像信号が急激に変化してしまうということがない。
【0030】
図2に、本発明の映像信号処理装置の一実施の形態である白黒映像信号に対する輝度圧縮回路6の詳細図を示す。
入力映像信号からピーク検出回路12で入力映像信号のピーク値Ypが検出される。このピーク値Ypは処理回路13に入力され、処理回路13内のKp算出回路13−bで設定値13−aの出力映像信号のピーク値Y´pおよび圧縮率Ksから式(4)によって圧縮点Kpが算出される。このKpとYpの間を高輝度部分の分割数nでn等分してKp2〜Kpk算出回路13−cでKp2、Kp3、……、Kpkが求められる。
【0031】
一方、ヒストグラム検出回路14はKp2〜Kpk算出回路13−cからKp1〜Kp(k+1)の値と入力映像信号Yから輝度分布に対するヒストグラムh1〜hkを求める。そうしてこのヒストグラムh1〜hkをもとに各部傾き演算回路13−dで式(7)に基づいて各部の傾きa1〜akを演算する。さらに、式(9)に基づいて、y切片算出回路13−eでy切片b1〜bkを演算する。
このようにして、図9に示したような折れ線の変換グラフを構成し、演算処理分でこの折れ線の変換グラフに基づいた変換を入力映像信号に働かせて出力映像信号Y´を求める。
【0032】
しかし、このようにニーポイントKp1を決めると、入力映像信号のピークレベルYpや圧縮率(傾き)KsによってはKp1が0やマイナスの値になるおそれがある。
この輝度圧縮回路6の目的は高輝度部分を圧縮することであり、Kp1が0やマイナスの値になるとこの目的を離れて単にレンズの絞りを絞ったと同じ効果になってしまう。
これを防ぐために、本発明の他の実施の形態では、以上の方法で式(4)で決めたKpがあらかじめ決められたKpの最小値Kpminよりも小さい時には、図3に示すように、式(4)でKpをその決められた値KpminとおいてKpを固定値、Ksを変数としてKsを求め、その値にKsの傾きを下げれば(圧縮率を上げれば)、ニーポイントKp1が必要以上に下がることはない。
【0033】
式(4)を書き直した圧縮率(傾き)Ksを固定値Kpminから求める式を式(11)に示す。
Ks´=(Y´p−Kpmin)/(Yp−Kpmin) …(11)
【0034】
図4に、本実施の形態での白黒映像信号に対する輝度圧縮回路6の詳細図を示す。この回路が図2と異なる点は、Kp、Ks補正回路13−fが設けられたことである。Kp、Ks補正回路13−fはKp算出回路13−bで算出されたKpとKpminを比較し、Kp<Kpminの場合には、KpをKpminに置き換え、また、Ksを式(11)で示されるKs´に置き換えて以後の処理を行うようにする。
これにより必要以上に最初のニーポイントKp1が下がって高輝度部分だけを圧縮するという目的から外れるおそれがなくなる。
【0035】
図5にカラー信号を扱う撮像装置の内部構成の一例を示す。
図5において、1ははレンズ、2は分光プリズム、3−1、3−2、3−3は分光プリズムでRGBに分光された光をそれぞれ結像して電気信号に変換する撮像素子、4はホワイトバランス回路、5−1、5−2、5−3は輪郭強調回路、6は輝度圧縮回路、7−1、7−2、7−3はガンマ補正回路、8−1、8−2、8−3はホワイトクリップおよびブラッククリップ回路、9はエンコーダ回路である。
本回路が先にあげた図1の白黒撮像装置との相違点は、像を光の3原色であるRGBに分けるための色分解プリズム2がレンズ1の後に置かれ、各色に対応した撮像素子3−1、3−2、3−3とそれぞれの回路が用意されている点および、被写体の色温度補整用のホワイトバランス回路4、及びカラー映像信号を得るためのエンコーダー回路9が用意されている点である。
【0036】
図6に、本発明によるカラー信号の輝度圧縮回路6の一実施の形態のブロック図を示す。RGBの各入力からNTSC等の規格に乗っ取りYマトリックス11を組むことにより、式(10)に基づいて輝度信号Yを算出する。
こうして求めたYのピーク値としてピーク検出回路12で検出して得られたYpとあらかじめ設定値13−2として決められた輝度圧縮後のピーク値Y´pと圧縮率(傾き)Ksから、処理回路13のKp算出回路13−bで、式(3)によりKpを求めることができる。
【0037】
一方、各Kp算出回路13−cでKpとYpの間を高輝度部分の分割数nでn等分してKp2、Kp3、……、Kpnが求められ、ヒストグラム検出部14では信号が各Kpiの間の各部にどれだけ出現するかを検出する。このヒストグラムの値をh1〜hnとする。
傾き算出部13−dでは式(8)によりそれぞれのヒストグラムh1〜hnに応じてそれぞれの傾きa1〜anを決める。ヒストグラムの大きな所は傾きが小さく(圧縮率が大きく)、ヒストグラムの少ないところでは傾きが大きく(圧縮率が大きく)なる。
【0038】
このKp1〜Kpnとa1〜anから先に図9の様なグラフを得ることができる。各折れ線はY´=ai・Y+biの形で示すことができる。a1〜anはすでに求められているのでY切片算出部13−eにてb1〜bnを求める。このb1〜bnとa1〜anから演算処理部15−1〜15−3にてRGBのそれぞれについて図9に示したような折れ線変換を行い各信号が圧縮される。
【0039】
図7に、本発明によるカラー信号の輝度圧縮回路6の他の実施の形態を示す。この回路は白黒の場合の図4に対応するもので、図6と異なる点は、Kp、Ks補正回路13−fが設けられたことである。Kp、Ks補正回路13−fはKp算出回路13−bで算出されたKpとKpminを比較し、Kp<Kpminの場合には、KpをKpminに置き換え、また、Ksを式(11)で示されるKs´に置き換えて以後の処理を行うようにする。
これにより、必要以上に最初のニーポイントKp1が下がって高輝度部分だけを圧縮するという目的から外れるおそれがなくなる。
【0040】
【発明の効果】
以上説明したように本発明の請求項1の発明は、入力映像信号の高輝度部分のダイナミックレンジを適応的に圧縮して出力する映像信号処理装置であって、入力映像信号の輝度レベルのピーク値を検出するピーク値検出手段と、出力輝度レベルの最大値を指定する最大出力輝度レベル設定手段と、ダイナミックレンジの圧縮率を指定する圧縮率設定手段と、入力映像信号の輝度レベルのピーク値、出力輝度レベルの最大値及びダイナミックレンジの圧縮率に基づいて、ダイナミックレンジの圧縮を開始する輝度レベルを算出する圧縮開始輝度レベル算出手段と、圧縮開始輝度レベル以上の高輝度部分について、入力映像信号の輝度分布に対するヒストグラムを検出するヒストグラム検出手段と、ヒストグラム検出手段の検出結果に基づいて、出現頻度の高い輝度レベルに多くの出力ダイナミックレンジを割り当てる変換グラフ生成手段と、生成された変換グラフを用い、入力映像信号の高輝度部分を圧縮する階調変換手段とを有することを特徴とする。
これにより、比較的簡単な方法で、入力映像信号のピーク値の変動が映像信号に影響することなく、限られた出力ダイナミックレンジを有効を利用することができ、優れた階調表現を示す輝度圧縮用の映像信号処理装置を実現することができ、かつ変換設定の処理を自動的に行うことができる。
【0041】
本発明の請求項2の発明は、前記圧縮開始輝度レベルの最小値を指定する最小圧縮開始輝度レベル設定手段を有し、圧縮開始輝度レベル算出手段で算出された圧縮開始輝度レベルが、最小圧縮開始輝度レベル設定手段で指定される最小値よりも低い場合、圧縮開始輝度レベル算出手段は、圧縮開始輝度レベルを最小値に置換すると共に、置換後の条件を満たすように前記ダイナミックレンジの圧縮率を補正することを特徴とする。
これにより、必要以上に圧縮点が下がって高輝度部分だけを圧縮するという目的から外れ、輝度を全体に下げてしまうような虞を防止することができる。
【図面の簡単な説明】
【図1】白黒の映像信号を扱う場合の撮像装置の内部構成を示すブロック図。
【図2】本発明の映像信号処理装置の一実施の形態である白黒映像信号に対する輝度圧縮回路の詳細ブロック図。
【図3】本発明による圧縮点の設定方法を示す説明図。
【図4】本発明の映像信号処理装置の他の実施の形態である白黒映像信号に対する輝度圧縮回路の詳細ブロック図。
【図5】カラー信号を扱う撮像装置の内部構成を示すブロック図。
【図6】本発明によるカラー信号の輝度圧縮回路の一実施の形態のブロック図。
【図7】本発明によるカラー信号の輝度圧縮回路の他の実施の形態のブロック図。
【図8】従来の圧縮点の設定方法を示す説明図。
【図9】複数の折れ線による入出力応答特性図。
【図10】従来のカラー信号の輝度圧縮回路のブロック図。
【符号の説明】
1…レンズ、2…分光プリズム、3、3−1、3−2、3−3…撮像素子、4…ホワイトバランス回路、5、5−1、5−2、5−3…輪郭強調回路、6…輝度圧縮回路、7、7−1、7−2、7−3…ガンマ補正回路、8、8−1、8−2、8−3…ホワイトクリップおよびブラッククリップ回路、9…エンコーダ回路、10…加算器、11…Yマトリックス、12…ピーク検出回路、13…処理回路、13−a…設定値、13−b…Kp算出回路、13−c…各Kp算出回路、13−d…各部傾き算出回路、13−e…y切片算出回路、13−f…Kp、Ks補正回路、14…ヒストグラム検出回路、15、15−1、15−2、15−3…演算処理部。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a video signal processing device, and more particularly, to a video signal processing device with improved gradation expression in a high luminance part.
[0002]
[Prior art]
Imaging devices are widely used as video camera units such as camera-integrated video tape recorders and still video cameras. An image pickup tube or a solid-state image pickup device is generally used as the image pickup device. However, these image pickup devices have a problem that the dynamic range is narrower than the dynamic range of a conventional silver halide photographic device. Further, in the video signal standards such as NTSC and PAL of the video signal, the black level and the white level are determined, and a portion brighter than the maximum white level in the standard cannot be displayed.
Therefore, in order to process a video signal with a wide dynamic range, luminance compression called “knee” is usually performed to keep the high luminance portion within the video signal standard. Generally, assuming that the white level is 100%, the maximum white level is determined to be 105 to 110%. For example, in order to keep a signal of 200% obtained from a solid-state imaging device such as a CCD at 110%, The signal of 95% to 200% was compressed in the level direction so as to be within 110%.
[0003]
FIG. 1 shows an example of the internal configuration of the imaging apparatus when handling a black and white video signal. In FIG. 1, 1 is a lens, 3 is an image sensor, 5 is a contour emphasis circuit, 6 is a luminance compression circuit, 7 is a gamma correction circuit, 8 is a white clip and black clip circuit, and 10 is an adder.
Reflected light from the subject passes through the lens 1 and forms an image on the image sensor 3. The captured image is converted into an electric signal, and the converted electric signal is processed by the contour emphasis circuit 5, the luminance compression circuit 6, the gamma correction circuit 7, the white clip and the black clip circuit 8, respectively, and the adder 10 generates a synchronization signal. In addition, it is converted into a signal suitable for the video signal standard.
[0004]
In the luminance compression circuit 6, assuming that the signal before luminance compression is Y, the signal after luminance compression is Y ′, the compression rate (slope) is Ks, and the compression point (knee point) is Kp, the operation of the luminance compression circuit 6 is as follows. It is expressed by the following formula.
[0005]
When Y ≦ Kp,
Y ′ = Y (1)
When Y> Kp,
Y ′ = Ks (Y−Kp) + Kp (2)
[0006]
A method for optimizing the constants of the compression rate Ks and the compression point Kp according to a pattern has been conventionally known, and is called an automatic knee. This controls Ks or Kp so that when the peak level of the input video signal exceeds a certain value Y′p, the peak value of the video signal output from the circuit becomes Y′p. For example, in the method of operating automatic knee with Kp as a variable and Ks as a fixed value, if the peak value of the input video signal of the automatic knee circuit is Yp, as shown in FIG. It is represented by
[0007]
From equation (2)
Y′p = Ks (Yp−Kp) + Kp (3)
Kp = (Y′p−Yp · Ks) / (1−Ks) (4)
[0008]
In contrast to such a single line knee, a method called an adaptive auto knee that is expressed by a plurality of broken lines so that a larger output dynamic range is assigned to a video level having a high appearance frequency. Is proposed in Japanese Patent Laid-Open No. 8-181887.
In this method, the limited output dynamic range can be effectively used by adaptively controlling the slope above the compression point Kp.
[0009]
A method for setting a broken line by this method will be briefly described. Here, the compression point Kp or higher is equally divided into k up to the peak value Yp of the input video signal, and the points are divided into Kp1, Kp2, Kp3,..., Kp (k + 1). FIG. 9 shows an example in the case of k = 8 of the broken line by this setting method. Here, the inclination of each broken line is a1, a2, a3,..., Ak. At this time, assuming that the slope a0 = 1 from the origin to the compression point Kp, with respect to the dynamic range of the output video signal, that is, the video signal peak value Y′p of the circuit output,
[0010]
[Expression 1]
... (5)
Figure 0004207259
[0011]
Is obtained. Then, if this equation (5) is modified, the total value of the slopes can be expressed as a known value as shown in equation (6).
[0012]
[Expression 2]
... (6)
Figure 0004207259
[0013]
The gradients assigned to the respective portions above the compression point Kp are allocated so as to be proportional to the histogram values of the portions corresponding to the respective gradients. That is, assuming that the value of the histogram corresponding to the i-th inclination ai is hi, each inclination ai is expressed by Expression (7).
[0014]
[Equation 3]
... (7)
Figure 0004207259
[0015]
By substituting equation (7) into equation (6), the slope ai can be set as in equation (8).
[0016]
[Expression 4]
(8)
Figure 0004207259
[0017]
Further, the y-intercept bi of each broken line is obtained recursively by the equation (9).
b0 = 0
bi = Kpi · (a (i−1) −ai) + b (i−1) (9)
[0018]
However, in such a method, the case where the peak value Yp of the input video signal is less than the white clip and larger than the broken line is not taken into consideration. In such a case, the effect needs to be turned off. If the value in the vicinity of Y′p is changed, the video signal may change abruptly at the turning point of the effect. In order to obtain a sufficient effect, the lowermost Kp1 needs to be set lower than the compression point Kp that is normally used, but on the contrary, it operates even when the peak value Yp of the input video signal is not high. This is not preferable.
[0019]
FIG. 5 shows an example of the internal configuration of an imaging apparatus that handles color signals.
In FIG. 5, 1 is a lens, 2 is a spectral prism, 3-1, 3-2, and 3-3 are imaging elements that respectively image light split into RGB by the spectral prism and convert it into an electrical signal. Are white balance circuits, 5-1, 5-2, and 5-3 are contour enhancement circuits, 6 is a luminance compression circuit, 7-1, 7-2, and 7-3 are gamma correction circuits, and 8-1 and 8-2. 8-3 are white clip and black clip circuits, and 9 is an encoder circuit.
[0020]
This circuit is different from the black-and-white imaging device shown in FIG. 1 described above in that a color separation prism 2 for separating an image into RGB, which is the three primary colors of light, is placed after the lens 1 and imaging elements corresponding to the respective colors. 3-1, 3-2 and 3-3 are prepared, a white balance circuit 4 for correcting the color temperature of the subject, and an encoder circuit 9 for obtaining a color video signal. It is a point.
[0021]
FIG. 10 shows a detailed view of a portion corresponding to the luminance compression circuit 6 of FIG. In FIG. 10, the luminance signal Y is calculated based on the following equation (10) by assembling a takeover Y matrix 11 from the RGB inputs according to a standard such as NTSC.
[0022]
Y = 0.3R + 0.59G + 0.11B (10)
[0023]
From Yp obtained by detecting the peak value of Y obtained in this way by the peak detection circuit 12, the peak value Y′p after luminance compression determined as the preset value 13-2, and the compression rate (slope) Ks, processing is performed. In the calculation circuit 13-1 of the circuit 13, Kp can be obtained by Expression (4) . The input video signal can be compressed by applying the processing of Equations (1) and (2) to the RGB inputs from Kp and Ks by the arithmetic processing units 15-1 to 15-3. The calculation of the processing circuit 13 is mainly controlled by software.
[0024]
[Problems to be solved by the invention]
As described above, the conventional video signal processing device for luminance compression has a drawback that the video signal changes suddenly when the peak value Yp of the input video signal fluctuates in the vicinity of the predetermined value Y′p. It was.
[0025]
The present invention solves this point, and can use a limited output dynamic range effectively by a relatively simple method, without fluctuation of the peak value of the input video signal affecting the video signal. It is an object of the present invention to realize a video signal processing apparatus for luminance compression that shows a gradation expression.
[0026]
[Means for Solving the Problems]
In order to achieve the above object, the present invention is a video signal processing apparatus that adaptively compresses and outputs a dynamic range of a high-luminance portion of an input video signal, and (1) a peak value of a luminance level of the input video signal Peak value detecting means for detecting (2) maximum output luminance level setting means for specifying the maximum value of the output luminance level, (3) compression ratio setting means for specifying the compression ratio of the dynamic range, and (4) input. (5) compression start luminance level calculating means for calculating a luminance level for starting compression of the dynamic range based on the peak value of the luminance level of the video signal, the maximum value of the output luminance level, and the compression ratio of the dynamic range; (6) Histogram detection means for detecting a histogram for the luminance distribution of the input video signal for a high-luminance portion above the luminance level; Conversion graph generation means for allocating a large output dynamic range to a luminance level having a high appearance frequency based on the detection result of the stage; and (7) a step of compressing a high luminance portion of the input video signal using the generated conversion graph. And a tone conversion means.
[0027]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, a video signal processing apparatus according to the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 shows the internal configuration of a black and white imaging apparatus in which the present invention is implemented. In FIG. 1, 1 is a lens, 3 is an image sensor, 5 is a contour emphasis circuit, 6 is a luminance compression circuit, 7 is a gamma correction circuit, 8 is a white clip and black clip circuit, and 10 is an adder.
Reflected light from the subject passes through the lens 1 and forms an image on the image sensor 3. The captured image is converted into an electric signal, and the converted electric signal is processed by the contour emphasis circuit 5, the luminance compression circuit 6, the gamma correction circuit 7, the white clip and the black clip circuit 8, respectively, and the adder 10 generates a synchronization signal. In addition, it is converted into a signal suitable for the video signal standard.
[0028]
The video signal processing apparatus described in the present invention corresponds to the luminance compression circuit 6 of this circuit.
The luminance compression circuit 6 of the present invention aims to improve input / output response characteristics.
[0029]
When determining the knee point Kp1 at the bottom of FIG. 9, the compression rate (slope) Ks is set to a slope smaller than 1 in advance, and Kp obtained using the equation (4) is set to Kp1. In this way, since the knee does not occur unless the peak level Yp of the input video signal exceeds Y′p, the luminance compression moves smoothly even if Yp fluctuates around Y′p, and the video signal sharply changes. There will be no change.
[0030]
FIG. 2 shows a detailed view of the luminance compression circuit 6 for a monochrome video signal which is an embodiment of the video signal processing apparatus of the present invention.
The peak value Yp of the input video signal is detected from the input video signal by the peak detection circuit 12. This peak value Yp is input to the processing circuit 13 and compressed by the Kp calculation circuit 13-b in the processing circuit 13 from the peak value Y′p of the output video signal of the set value 13-a and the compression rate Ks by the equation (4). A point Kp is calculated. Kp and Yp are divided into n equal parts by the division number n of the high luminance part, and Kp2, Kp3,..., Kpk are obtained by the Kp2 to Kpk calculation circuit 13-c.
[0031]
On the other hand, the histogram detection circuit 14 obtains histograms h1 to hk for the luminance distribution from the values Kp1 to Kp (k + 1) and the input video signal Y from the Kp2 to Kpk calculation circuit 13-c. Then, the inclinations a1 to ak of the respective parts are calculated based on the histograms h1 to hk by the respective inclination calculation circuits 13-d based on the equation (7). Further, based on the equation (9), y intercepts b1 to bk are calculated by the y intercept calculating circuit 13-e.
In this way, a polygonal line conversion graph as shown in FIG. 9 is constructed, and an output video signal Y ′ is obtained by applying the conversion based on the polygonal line conversion graph to the input video signal for the calculation processing.
[0032]
However, when the knee point Kp1 is determined in this way, Kp1 may become 0 or a negative value depending on the peak level Yp of the input video signal and the compression rate (slope) Ks.
The purpose of the luminance compression circuit 6 is to compress the high luminance portion. When Kp1 becomes 0 or a negative value, the effect is the same as when the lens aperture is simply reduced away from this purpose.
In order to prevent this, in another embodiment of the present invention, when the Kp determined by the equation (4) by the above method is smaller than the minimum value Kpmin of the predetermined Kp, as shown in FIG. In (4), Kp is set to the predetermined value Kpmin, Ks is obtained with Kp as a fixed value, Ks as a variable, and if the slope of Ks is lowered to that value (if the compression ratio is increased), knee point Kp1 is more than necessary. Never go down.
[0033]
Expression (11) shows an expression for obtaining the compression rate (slope) Ks obtained by rewriting Expression (4) from the fixed value Kpmin.
Ks ′ = (Y′p−Kpmin) / (Yp−Kpmin) (11)
[0034]
FIG. 4 shows a detailed diagram of the luminance compression circuit 6 for the monochrome video signal in the present embodiment. This circuit differs from FIG. 2 in that a Kp / Ks correction circuit 13-f is provided. The Kp and Ks correction circuit 13-f compares Kp and Kpmin calculated by the Kp calculation circuit 13-b. If Kp <Kpmin, Kp is replaced with Kpmin, and Ks is expressed by the equation (11). Subsequent processing is performed in place of Ks ′.
As a result, there is no possibility that the first knee point Kp1 is lowered more than necessary to deviate from the purpose of compressing only the high luminance portion.
[0035]
FIG. 5 shows an example of the internal configuration of an imaging apparatus that handles color signals.
In FIG. 5, 1 is a lens, 2 is a spectral prism, 3-1, 3-2, and 3-3 are imaging elements that respectively image light split into RGB by the spectral prism and convert it into an electrical signal. Are white balance circuits, 5-1, 5-2, and 5-3 are contour enhancement circuits, 6 is a luminance compression circuit, 7-1, 7-2, and 7-3 are gamma correction circuits, and 8-1 and 8-2. 8-3 are white clip and black clip circuits, and 9 is an encoder circuit.
This circuit is different from the black-and-white imaging device shown in FIG. 1 described above in that a color separation prism 2 for separating an image into RGB, which is the three primary colors of light, is placed after the lens 1 and imaging elements corresponding to the respective colors. 3-1, 3-2 and 3-3 are prepared, a white balance circuit 4 for correcting the color temperature of the subject, and an encoder circuit 9 for obtaining a color video signal. It is a point.
[0036]
FIG. 6 shows a block diagram of an embodiment of a color signal luminance compression circuit 6 according to the present invention. The luminance signal Y is calculated based on the equation (10) by assembling the takeover Y matrix 11 from each RGB input to a standard such as NTSC.
From the Yp detected by the peak detection circuit 12 as the Y peak value obtained in this way, the peak value Y′p after luminance compression determined as the preset value 13-2, and the compression rate (slope) Ks, processing is performed. In the Kp calculation circuit 13-b of the circuit 13, Kp can be obtained by Expression (3).
[0037]
On the other hand, each Kp calculation circuit 13-c equally divides between Kp and Yp by the number n of high-brightness parts n to obtain Kp2, Kp3,..., Kpn, and the histogram detection unit 14 sends the signal to each Kpi. Detect how much appears in each part between. The values of this histogram are h1 to hn.
In the inclination calculation unit 13-d, the respective inclinations a1 to an are determined according to the respective histograms h1 to hn according to the equation (8). Where the histogram is large, the slope is small (the compression ratio is large), and when the histogram is small, the slope is large (the compression ratio is large).
[0038]
A graph as shown in FIG. 9 can be obtained from Kp1 to Kpn and a1 to an. Each broken line can be shown in the form of Y ′ = ai · Y + bi. Since a1 to an have already been obtained, b1 to bn are obtained by the Y intercept calculating unit 13-e. From these b1 to bn and a1 to an, the arithmetic processing units 15-1 to 15-3 perform polygonal line conversion as shown in FIG. 9 for each of RGB to compress each signal.
[0039]
FIG. 7 shows another embodiment of the color signal luminance compression circuit 6 according to the present invention. This circuit corresponds to FIG. 4 in the case of black and white, and is different from FIG. 6 in that a Kp and Ks correction circuit 13-f is provided. The Kp and Ks correction circuit 13-f compares Kp and Kpmin calculated by the Kp calculation circuit 13-b. If Kp <Kpmin, Kp is replaced with Kpmin, and Ks is expressed by the equation (11). Subsequent processing is performed in place of Ks ′.
This eliminates the possibility that the first knee point Kp1 is lowered more than necessary and deviates from the purpose of compressing only the high luminance portion.
[0040]
【The invention's effect】
As described above, the invention of claim 1 of the present invention is a video signal processing apparatus that adaptively compresses and outputs the dynamic range of the high-luminance portion of the input video signal, and has a peak luminance level of the input video signal. Peak value detecting means for detecting a value, maximum output brightness level setting means for specifying the maximum value of the output brightness level, compression ratio setting means for specifying the compression ratio of the dynamic range, and a peak value of the brightness level of the input video signal A compression start luminance level calculating means for calculating a luminance level for starting compression of the dynamic range based on the maximum value of the output luminance level and the compression ratio of the dynamic range, and an input video for a high luminance portion equal to or higher than the compression start luminance level. Based on the detection result of the histogram detection means for detecting the histogram for the luminance distribution of the signal and the histogram detection means, A conversion graph generation unit that allocates a large output dynamic range to a luminance level having a high current frequency, and a gradation conversion unit that compresses a high luminance portion of an input video signal using the generated conversion graph. .
This makes it possible to use the limited output dynamic range effectively without affecting the video signal by fluctuations in the peak value of the input video signal in a relatively simple manner. A video signal processing apparatus for compression can be realized, and conversion setting processing can be performed automatically.
[0041]
According to a second aspect of the present invention, there is provided minimum compression start luminance level setting means for designating a minimum value of the compression start luminance level, and the compression start luminance level calculated by the compression start luminance level calculation means is the minimum compression. When it is lower than the minimum value designated by the start luminance level setting means, the compression start luminance level calculation means replaces the compression start luminance level with the minimum value, and compresses the dynamic range so as to satisfy the condition after replacement. It is characterized by correcting.
Accordingly, it is possible to prevent the possibility that the compression point is lowered more than necessary and the purpose of compressing only the high-luminance portion is lost, and the luminance is lowered to the whole.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating an internal configuration of an imaging apparatus when handling a black and white video signal.
FIG. 2 is a detailed block diagram of a luminance compression circuit for a black and white video signal according to an embodiment of the video signal processing apparatus of the present invention.
FIG. 3 is an explanatory diagram showing a compression point setting method according to the present invention.
FIG. 4 is a detailed block diagram of a luminance compression circuit for a black and white video signal according to another embodiment of the video signal processing apparatus of the present invention.
FIG. 5 is a block diagram illustrating an internal configuration of an imaging apparatus that handles color signals.
FIG. 6 is a block diagram of an embodiment of a color signal luminance compression circuit according to the present invention.
FIG. 7 is a block diagram of another embodiment of a luminance compression circuit for a color signal according to the present invention.
FIG. 8 is an explanatory diagram showing a conventional compression point setting method.
FIG. 9 is an input / output response characteristic diagram with a plurality of broken lines.
FIG. 10 is a block diagram of a conventional color signal luminance compression circuit.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Lens, 2 ... Spectral prism, 3-1, 3-1, 3-2, 3-3 ... Image pick-up element, 4 ... White balance circuit, 5, 5-1, 5-2, 5-3 ... Outline emphasis circuit, 6 ... Luminance compression circuit, 7, 7-1, 7-2, 7-3 ... Gamma correction circuit, 8, 8-1, 8-2, 8-3 ... White clip and black clip circuit, 9 ... Encoder circuit, DESCRIPTION OF SYMBOLS 10 ... Adder, 11 ... Y matrix, 12 ... Peak detection circuit, 13 ... Processing circuit, 13-a ... Setting value, 13-b ... Kp calculation circuit, 13-c ... Each Kp calculation circuit, 13-d ... Each part Inclination calculation circuit, 13-e... Y intercept calculation circuit, 13-f... Kp, Ks correction circuit, 14... Histogram detection circuit, 15, 15-1, 15-2, 15-3.

Claims (2)

入力映像信号の高輝度部分のダイナミックレンジを適応的に圧縮して出力する映像信号処理装置であって、
前記入力映像信号の輝度レベルのピーク値を検出するピーク値検出手段と、
出力輝度レベルの最大値を指定する最大出力輝度レベル設定手段と、
圧縮開始輝度レベルの最小値を指定する最小圧縮開始輝度レベル設定手段と、
ダイナミックレンジの圧縮率を指定する圧縮率設定手段と、
入力映像信号の輝度レベルのピーク値、前記出力輝度レベルの最大値及び前記ダイナミックレンジの圧縮率に基づいて、ダイナミックレンジの圧縮を開始する輝度レベルを算出する圧縮開始輝度レベル算出手段であって、算出された圧縮開始輝度レベルが、前記最小圧縮開始輝度レベル設定手段で指定される最小値よりも低い場合、前記圧縮開始輝度レベルを前記最小値に置換すると共に、置換後の条件を満たすように前記ダイナミックレンジの圧縮率を補正する圧縮開始輝度レベル算出手段と、
前記圧縮開始輝度レベルより大きい輝度レベルを有する映像信号を、補正後の圧縮率に基づいて圧縮する階調変換手段と
を有することを特徴とする映像信号処理装置。
A video signal processing apparatus that adaptively compresses and outputs a dynamic range of a high-luminance portion of an input video signal,
Peak value detection means for detecting a peak value of the luminance level of the input video signal;
A maximum output brightness level setting means for specifying the maximum output brightness level;
And the minimum compression start luminance level setting means for specifying a minimum value of the compression start luminance level,
Compression rate setting means for specifying the compression rate of the dynamic range;
Compression start luminance level calculating means for calculating a luminance level for starting compression of a dynamic range based on a peak value of a luminance level of an input video signal, a maximum value of the output luminance level and a compression ratio of the dynamic range; When the calculated compression start luminance level is lower than the minimum value specified by the minimum compression start luminance level setting means, the compression start luminance level is replaced with the minimum value and the replacement condition is satisfied. Compression start luminance level calculating means for correcting the compression ratio of the dynamic range;
A video signal processing apparatus, comprising: gradation conversion means for compressing a video signal having a luminance level greater than the compression start luminance level based on a corrected compression rate.
請求項1に記載の映像信号処理装置は、
圧縮開始輝度レベル以上の高輝度部分について、入力映像信号の輝度分布に対するヒストグラムを検出するヒストグラム検出手段と、
ヒストグラム検出手段の検出結果に基づいて、出現頻度の高い輝度レベルに多くの出力ダイナミックレンジを割り当てる変換グラフ生成手段と
を更に有し、
前記階調変換手段は、前記変換グラフ生成手段で生成された変換グラフを用い、前記入力映像信号の高輝度部分を圧縮する
ことを特徴とする映像信号処理装置。
The video signal processing apparatus according to claim 1 is provided.
Histogram detection means for detecting a histogram with respect to the luminance distribution of the input video signal for a high luminance portion equal to or higher than the compression start luminance level;
Conversion graph generation means for allocating a large output dynamic range to a luminance level having a high appearance frequency based on the detection result of the histogram detection means;
The video signal processing apparatus, wherein the gradation conversion unit compresses a high-luminance portion of the input video signal using the conversion graph generated by the conversion graph generation unit.
JP24664098A 1998-09-01 1998-09-01 Video signal processing device Expired - Fee Related JP4207259B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24664098A JP4207259B2 (en) 1998-09-01 1998-09-01 Video signal processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24664098A JP4207259B2 (en) 1998-09-01 1998-09-01 Video signal processing device

Publications (3)

Publication Number Publication Date
JP2000078437A JP2000078437A (en) 2000-03-14
JP2000078437A5 JP2000078437A5 (en) 2005-10-27
JP4207259B2 true JP4207259B2 (en) 2009-01-14

Family

ID=17151426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24664098A Expired - Fee Related JP4207259B2 (en) 1998-09-01 1998-09-01 Video signal processing device

Country Status (1)

Country Link
JP (1) JP4207259B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100601967B1 (en) 2004-10-08 2006-07-18 삼성전자주식회사 Apparatus and method for compressing dynamic range of image
JP5111310B2 (en) * 2008-09-09 2013-01-09 キヤノン株式会社 Image processing method and image processing apparatus
JP5159647B2 (en) * 2009-01-07 2013-03-06 キヤノン株式会社 Image processing apparatus and image processing method
JP5005731B2 (en) * 2009-05-25 2012-08-22 パナソニック株式会社 Camera apparatus and exposure control method

Also Published As

Publication number Publication date
JP2000078437A (en) 2000-03-14

Similar Documents

Publication Publication Date Title
JP4677753B2 (en) Moving image processing apparatus and method
US7102669B2 (en) Digital color image pre-processing
JP5018770B2 (en) Image signal processing apparatus and image signal processing method
US8199227B2 (en) Image-signal processing apparatus for performing space-variant image-signal processing
US9438875B2 (en) Image processing apparatus, image processing method, and program
US7358988B1 (en) Image signal processor for performing image processing appropriate for an output device and method therefor
US8009201B2 (en) Sensitivity-settable image capture apparatus
US8724898B2 (en) Signal processor and storage medium storing signal processing program
US20060215908A1 (en) Image pickup apparatus and image processing method
JP2009159496A (en) White balance control device, imaging apparatus using the same, and white balance control method
US8280162B2 (en) Image processing apparatus and recording medium recording image processing program
KR100925629B1 (en) METHOD FOR AUTO WHITE BALANCE IN YCbCr COLOR SPACE
US8890973B2 (en) Image processing apparatus, image processing method, and storage medium
US20100295977A1 (en) Image processor and recording medium
EP1998552B1 (en) Imaging apparatus and image processing program
US20040246350A1 (en) Image pickup apparatus capable of reducing noise in image signal and method for reducing noise in image signal
JP4637812B2 (en) Image signal processing apparatus, image signal processing program, and image signal processing method
US20070211165A1 (en) Imaging device, method for controlling imaging device, program of method for controlling imaging device, recording medium in which program of method for controlling imaging device is recorded
JP4207259B2 (en) Video signal processing device
JP2012134651A (en) Image processing device, method, and program
JPH10322592A (en) Method and device for controlling electronic camera
JP5743456B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP2000201277A (en) Image correcting method
JP2929983B2 (en) Color image processing equipment
JP2000165906A (en) Method and device for automatic white balance control

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050720

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050720

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050720

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071120

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080729

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080813

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

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

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

Free format text: PAYMENT UNTIL: 20111031

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121031

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20131031

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees