JP3758228B2 - Learning method and learning apparatus in adaptive classification processing - Google Patents
Learning method and learning apparatus in adaptive classification processing Download PDFInfo
- Publication number
- JP3758228B2 JP3758228B2 JP06912696A JP6912696A JP3758228B2 JP 3758228 B2 JP3758228 B2 JP 3758228B2 JP 06912696 A JP06912696 A JP 06912696A JP 6912696 A JP6912696 A JP 6912696A JP 3758228 B2 JP3758228 B2 JP 3758228B2
- Authority
- JP
- Japan
- Prior art keywords
- image signal
- class classification
- learning
- class
- luminance
- 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
Description
【0001】
【発明の属する技術分野】
この発明は、画像信号の輝度値をクラス分類適応処理を用いて補正するようにした輝度補正装置に記憶される最適な係数データを獲得するためのクラス分類適応処理における学習方法および学習装置に関する。
【0002】
【従来の技術】
通常、輝度補正装置において、輝度補正は、画面内の輝度値の積分値(全受光量に相当する)を求め、これに応じてアンプのゲインを変化させることで輝度補正を行っていた。従って、空間内で見るとどの画素にも一定のゲインが掛かっており、暗い部分のみを明るくしたり、明るい部分のみを暗くしたり、という細かい補正を行うことができなかった。
【0003】
【発明が解決しようとする課題】
そこで、クラス分類適応処理を導入して輝度補正の改善を図ることを提案した(特願平7−328358号参照)。しかしながら、輝度補正のための係数学習において、種々の明るさの画像、種々の被写体の画像等を用いているため、膨大なデータ量を扱う必要があった。その結果、係数データの学習が非常に繁雑でしかも時間がかかるという問題があった。また、輝度補正においてノイズ等の影響でクラスの連続性が補償できないために、輝度補正に不連続が生じたりすることがあった。
【0004】
従って、この発明の目的は、輝度分布のパターン分類に応じた輝度補正と、空間内のパターン分類および輝度値の平均値に応じた部分的な輝度補正とを行うことによりきめの細かい輝度補正を行うことができる輝度補正装置に記憶される最適な係数データを獲得するためのクラス分類適応処理における学習方法および学習装置を提供することにある。
【0005】
【課題を解決するための手段】
請求項1に記載の発明は、入力画像信号の複数の画素と演算されることによって、入力画像信号の輝度を補正するために使用される係数を予め学習によりクラス毎に求めるようにしたクラス分類適応処理における学習方法において、入力画像信号を適当な領域に分割して領域内の輝度値に基づくパターンを用いて、領域毎の第1のクラス分類情報を生成し、入力画像信号の注目画素に関するクラス分類情報として、少なくとも、注目画素が含まれる領域の第1のクラス分類情報を縮退させた第2のクラス分類情報を生成し、照明を暗から明または明から暗に徐々に変化させて撮影した複数の画像を学習用の画像信号として使用し、照明を徐々に変化させて撮影された複数の画像の中から中央付近で撮影された画像信号を教師用の画像信号として選択し、教師用の画像信号以外の画像信号を補正対象用の画像信号として使用し、教師用の画像信号と複数の補正対象用の画像信号とを第2のクラス分類情報に基づきクラス毎に分類し、クラス毎に輝度を補正するための係数を学習することを特徴とするクラス分類適応処理における学習方法である。
そして、請求項11に記載の発明は、入力画像信号の複数の画素と演算されることによって、入力画像信号の輝度を補正するために使用される係数を予め学習によりクラス毎に求めるようにしたクラス分類適応処理における学習装置において、入力画像信号を適当な領域に分割して領域内の輝度値に基づくパターンを用いて、領域毎の第1のクラス分類情報を生成する第1のクラス分類情報生成手段と、入力画像信号の注目画素に関するクラス分類情報として、少なくとも、注目画素が含まれる領域の第1のクラス分類情報を縮退させた第2のクラス分類情報を生成する第2のクラス分類情報生成手段と、照明を暗から明または明から暗に徐々に変化させて撮影した複数の画像を学習用の画像信号として使用し、照明を徐々に変化させて撮影された複数の画像の中から中央付近で撮影された画像信号を教師用の画像信号として選択する選択手段と、教師用の画像信号以外の画像信号を補正対象用の画像信号として使用し、教師用の画像信号と複数の補正対象用の画像信号とを第2のクラス分類情報に基づきクラス毎に分類するクラス分類手段と、クラス毎に輝度を補正するための係数を学習する学習手段とを有することを特徴とするクラス分類適応処理における学習装置である。
【0006】
1フィールドまた1フレーム内の輝度値の平均値および標準偏差に対して量子化を行うことにより、nビットのコードが発生し、注目画素の周辺の空間内の複数の画素、すなわちブロック化された画素に対してADRC符号化(適応的ダイナミックレンジ符号化)を行うことにより、mビットのコードが発生し、ブロック化された画素の輝度値の平均値をシフトすることによって、p(<8)ビットのコードが発生し、縮退ROMによって、(n+m+p)ビットからqビットに減少させたクラスコードが発生し、このクラスコードに応じた係数データが読み出され、その係数データを用いた線形1次結合式によって、補正された輝度値が生成される。この係数データを獲得する学習において、教師用の画像信号として照明の強度のみ変化させた60フレーム程度のフレームの中から最適と思われるフレームを使用し、この教師用の画像信号以外の画像信号を補正対象の画像信号とすることにより学習を行い、最適な係数データを獲得することができる。
【0007】
【発明の実施の形態】
以下、この発明の一実施例について図面を参照して説明する。この発明の理解を容易とするため、先に本願発明者の提案にかかる輝度補正装置のいくつかの例について説明する。この発明が適用できる輝度補正装置の第1の例を図1に示す。1で示す入力端子から供給される画像信号の内、輝度信号YがA/D変換器2によってアナログ信号からディジタル信号に変換される。このA/D変換器2では、例えば13.5MHzのクロックでサンプリングが行われた場合、画像のサイズは、1フレームあたり、横720画素×縦480ライン程度となる。ディジタル信号に変換された輝度信号は、A/D変換器2から平均値/標準偏差回路3および遅延回路5へ供給される。
【0008】
平均値/標準偏差回路3では、後述するように供給された輝度値の例えば1フィールドまたは1フレーム当りの平均値および標準偏差が求められる。平均値/標準偏差回路3において、輝度値毎の度数分布を求めるためのテーブルを持ち、1フィールド期間または1フレーム期間に乗算した度数分布から、図2に示すように輝度の平均値が算出されると共に、標準偏差も算出される。また、式(1)には、輝度の平均値を算出する計算式を示し、式(2)には、標準偏差を算出する計算式を示す。
【0009】
平均値=Σ(輝度値×度数)/全度数 (1)
標準偏差=√(Σ((輝度値−平均値)2 ×度数)/全度数) (2)
ただし、√( )は、( )内の演算結果を平方根とする。
【0010】
量子化回路4では、算出された平均値および標準偏差がそれぞれaビット、bビットで量子化されて、トータルnビット(n=a+b)のコードが発生される。このnビットのコードが量子化回路4から縮退ROM8へ供給される。さらに、このnビットのコードは、いわゆる輝度分布をパターン化したもので、これを見ることで輝度分布が暗い方か、明るい方かに偏っているかどうか、また、輝度分布が平坦か急峻かを判定することができる。
【0011】
一方、遅延回路5では、nビットのコードが生成されるまでの時間(1フィールドまたは1フレーム+α)だけ、遅延が行われ、その出力は、ブロック化回路6および遅延回路9へ供給される。ブロック化回路6では、注目画素の周辺の空間内の複数の画素が選択され、ブロック化される。そのブロック化された画素は、平均化回路7へ供給される。平均化回路7では、注目画素付近の輝度の平均値が算出され、算出された平均値は、シフトされ、p(<8)ビットに量子化され、縮退ROM8へ供給される。
【0012】
このように、ブロック化された各画素の輝度の平均値が算出され、すなわち輝度レベルをクラス分類の1つとすることで、レベル方向での補正の仕方に変化を持たせることができる。例えば、明るい部分や暗い部分のみを補正したり、γ特性を考慮した補正を行うことが可能となる。また、輝度レベルの平均化による作用は、輝度補正が過敏に利くのを防止する役割も果たす。
【0013】
以上の説明で、2種類のクラス分類コードが生成されたが、これを単純に組み合わると分類数が膨大になり、後述する係数ROMの容量が膨大になる。そこで量子化回路4からのnビットおよび平均化回路7からのpビットは、縮退ROM8へ供給され、縮退ROM8において、供給された各ビット数を縮退させる。具体的には、縮退ROM8では、クラスを縮退させるために、(n+p)ビットからqビットに減少させたクラスコード(インデックス)が発生される。
【0014】
なお、縮退の方法について、ここでは詳細を述べないが、(n+p)ビットで学習した全クラスに対応する係数組から、ベクトル量子化的手法として、係数間ノルムの小さいものをまとめて縮退させる方法などを使用するものとする。すなわち、2つの係数組の間で、対応する係数の距離(係数間ノルム)を求め、これに基づいて、係数の組をまとめる。
【0015】
このように、縮退ROM8から最終的にqビットのクラスコードが発生し、そのqビットのクラスコードは、係数ROM111 〜11N へ供給される。係数ROM111 〜11N では、供給されたクラスコードでアドレッシングされ、係数データが読み出される。読み出された係数データは、それぞれ乗算器121 〜12N へ供給される。
【0016】
遅延合わせが行われる遅延回路9の出力がブロック化回路10へ供給され、そのブロック化回路10では、注目画素の周辺の複数の画素がブロック化される。ブロック化された各画素値は、乗算器111 〜11N へ供給される。乗算器121 〜12N では、係数ROM111 〜11N からの係数データと、ブロック化された各画素値が乗算され、その乗算出力は、加算器13へ供給される。加算器13では、乗算器121 〜12N からの乗算出力が加算される。
【0017】
すなわち、乗算器121 〜12N および加算器13によって、積和演算することで、輝度補正値の予測が行われる。この予測値は、D/A変換回路14において、D/A変換され、補正後の輝度値Y´として出力端子15から取り出される。
【0018】
ここで、平均値/標準偏差回路3の一例を図3に示し説明する。入力端子21から輝度値が供給される。供給された輝度値は、輝度度数分布テーブル22へ供給され、輝度度数分布テーブル22において、例えば1フィールドまたは1フレーム内の輝度レベルの度数分布のテーブルが生成される。生成されたテーブルに基づいて、平均値算出回路23では、平均値が式(1)により算出され、算出された平均値は、標準偏差算出回路24へ供給されると共に、出力端子25から取り出される。標準偏差算出回路24では、度数分布のテーブルと平均値から標準偏差が式(2)により算出され、算出された標準偏差は、出力端子26から取り出される。取り出された標準偏差が小さいときは、度数分布の幅は狭く、標準偏差が大きいときは、度数分布の幅は広くなる。
【0019】
次に、この発明が適用できる輝度補正装置の第2の例を図4に示す。入力端子1から供給される画像信号の内、輝度信号YがA/D変換器2によってアナログ信号からディジタル信号に変換される。ディジタル信号に変換された輝度信号は、A/D変換器2から平均値/標準偏差回路3および遅延回路5へ供給される。平均値/標準偏差回路3では、供給された輝度値の例えば1フィールドまたは1フレーム当りの平均値および標準偏差が式(1)および式(2)を用いて求められる。求められた平均値および標準偏差は、平均値/標準偏差回路3から量子化回路4へ供給される。量子化回路4では、算出された平均値および標準偏差がそれぞれaビット、bビットで量子化されて、トータルnビット(n=a+b)のコードが発生される。このnビットのコードが量子化回路4から縮退ROM8へ供給される。
【0020】
一方、遅延回路5では、nビットのコードが生成されるまでの時間(1フィールドまたは1フレーム+α)だけ、遅延が行われ、その出力は、ブロック化回路6および31、さらに遅延回路9へ供給される。ブロック化回路31では、注目画素の周辺の空間内の複数の画素が選択され、ブロック化される。そのブロック化された画素は、ADRC回路32へ供給される。ADRC回路32では、後述するようにブロック化された画素から最大値および最小値が選択され、各画素が再量子化されmビットのコードが発生され、縮退ROM8へ供給される。このコードは、いわゆる空間の輝度の変化の様子をパターン化したものである。このコードによるクラス分類は、輝度補正そのものより、S/N比の改善、解像度の改善等に効果をもたらす。
【0021】
ブロック化回路6において、補正しようとする注目画素の周辺の空間内の複数の画素が選択され、ブロック化される。このブロック化回路6において実行されるブロック化と、ブロック化回路31において実行されるブロック化とは、異なっても良い。すなわち、ブロック化回路31において選択される画素と、ブロック化回路6において選択される画素とは異なっても良い。ブロック化された画素は、ブロック化回路6から平均化回路7へ供給される。平均化回路7では、注目画素付近の輝度の平均値が算出され、算出された平均値は、シフトされ、p(<8)ビットに量子化され、縮退ROM8へ供給される。
【0022】
以上の説明で、3種類のクラス分類コードが生成されたが、上述したように、これを単純に組み合わると分類数が膨大になり、後述する係数ROMの容量が膨大になる。そこで量子化回路4からのnビット、ADRC回路32からのmビットおよび平均化回路7からのpビットは、縮退ROM8へ供給され、縮退ROM8において、供給された各ビット数を縮退させる。具体的には、縮退ROM8では、クラスを縮退させるために、(n+m+p)ビットからqビットに減少させたクラスコード(インデックス)が発生される。
【0023】
以後、上述した図1に示される輝度補正装置と同様に、クラスコードに対応した係数データが係数ROM111 〜11N から読み出される。読み出された係数データは、乗算器121 〜12N および加算器13によって、ブロック化された各画素値との積和演算がなされ、輝度補正値の予測が行われる。この予測値は、D/A変換回路14において、D/A変換され、補正後の輝度値Y´として、出力端子15から取り出される。
【0024】
ここで、ADRC回路32の構成の一例を図5に示し説明する。入力端子41からブロック化されたデータが供給される。供給されたデータは、最大値検出回路42、最小値検出回路43および遅延回路45へ供給される。最大値検出回路42において、ブロック内の画素値の最大となる値が検出され、最小値検出回路43において、ブロック内の画素値の最小となる値が検出される。減算器44では、最大値から最小値が減算され、そのブロックのダイナミックレンジDRが算出される。算出されたダイナミックレンジDRは、適応再量子化回路47へ供給される。
【0025】
遅延回路45では、最大値検出回路42および最小値検出回路43がそれぞれ検出にかかる時間遅延が行われ、1画素ずつ出力される。減算器46では、ブロック化された各画素から最小値が減算され、その減算値は、適応再量子化回路47へ供給される。適応再量子化回路47では、ダイナミックレンジDRに応じた所定の量子化ステップ幅を用いて、減算値の量子化を画素毎に行う。並列化回路48では、量子化された画素がブロック単位で並列化され、出力端子49からコード化データとして出力される。
【0026】
次に、この発明が適用できる輝度補正装置の第3の例を図6に示す。入力端子1からの画像信号の内、輝度信号YがA/D変換器2によってアナログ信号からディジタル信号に変換される。ディジタル信号に変換された輝度信号は、A/D変換器2から変換ROM34および遅延回路5へ供給される。変換ROM34では、供給された輝度値と領域の対応付けが行われる。具体的には、8ビット(0〜255)からなる輝度値が入力され、この輝度値をある複数の領域、例えばs個の領域に分ける働きが変換ROM34では行われる。また、この変換ROM34によって分けられた複数の領域毎に、領域別輝度分布回路35では、例えば1フィールドまたは1フレーム内の度数の積算が行われる。その積算値は、ADRC回路36へ供給される。ADRC回路36では、上述したように領域毎に、例えばaビットの量子化が行われ、トータルnビット(n=s×a)のコードが発生する。このnビットのコードは、ADRC回路36から縮退ROM8へ供給される。
【0027】
ここで、変換ROM34、領域別輝度分布回路35およびADRC回路36の動作を図7を用いて説明する。図7Aに示すように、例えば1フィールドまたは1フレーム内の輝度値の度数分布を計数しようとする場合、本来ならば256レベル毎の度数分布を計数する。しかしながら、図7Bに示すように、輝度レベルを、例えば適当なしきい値でもってs個の領域に分割し、その領域番号と入力輝度値を対応付けるROMを挿入することで任意の領域分けを行う。この領域分けは、単純に均等分割するか、不均等分割するか、間引くかあるいは領域のオーバーラップを認めるか等、種々のバリエーションを試すことができる。
【0028】
図7Cは、ADRC回路36が1ビットのADRCを行い、このADRC回路36が6ビットのコードを出力する一例である。このコードは、いわゆる輝度の度数分布をパターン化したもので、これを見ることで輝度分布が暗い方か、明るい方かに偏っているかどうかを判定することができる。以後、上述の図4と同様にADRC回路32からのmビットおよび平均値回路7からのpビットが縮退ROM8に供給される。
【0029】
以上の説明のように、ADRC回路36からのnビット、ADRC回路32からのmビットおよび平均値回路7からのpビットが発生する。この3種類のクラス分類コードが生成されたが、上述したように、これを単純に組み合わると分類数が膨大になり、後述する係数ROMの容量が膨大になる。そこで縮退ROM8において、供給された各ビット数を縮退させる。具体的には、縮退ROM8では、クラスを縮退させるために、(n+m+p)ビットからqビットに減少させたクラスコード(インデックス)が発生される。
【0030】
上述した図1の輝度補正装置と同様に、クラスコードに対応した係数データが係数ROM111 〜11N から読み出される。読み出された係数データは、乗算器121 〜12N および加算器13によって、ブロック化された各画素値との積和演算がなされ、輝度補正値の予測が行われる。この予測値は、D/A変換回路14において、D/A変換され、補正後の輝度値Y´として、出力端子15から取り出される。
【0031】
次に、図1に示す輝度補正装置の第1の例に適用される係数データの学習について図8を用いて説明する。入力端子1から供給された輝度信号Yは、A/D変換回路2へ供給され、A/D変換回路2では、例えば13.5MHzでサンプリングされ、平均値/標準偏差算出回路3および遅延回路5へ出力される。平均値/標準偏差算出回路3では、上述したように供給された輝度値の例えば1フィールドまたは1フレーム当りの平均値および標準偏差が式(1)および式(2)を用いて求められる。
【0032】
量子化回路4では、算出された平均値および標準偏差に対してそれぞれaビット、bビットで量子化されて、トータルnビット(n=a+b)のコードを発生する。このnビットのコードは、量子化回路4から縮退ROM8へ供給される。遅延回路5では、nビットのコードが生成されるまでの時間(1フィールドまたは1フレーム+α)だけ、遅延が行われ、その出力は、ブロック化回路6および遅延回路9へ供給される。ブロック化回路6では、注目画素の周辺の空間内の複数の画素が選択され、ブロック化される。そのブロック化された画素は、平均化回路7へ供給される。平均化回路9では、注目画素付近の輝度の平均値が算出され、算出された平均値は、シフトされ、p(<8)ビットに量子化され、縮退ROM8へ供給される。
【0033】
縮退ROM8では、上述するように、クラスを縮退させるために、(n+p)ビットからqビットに減少させたクラスコード(インデックス)が発生される。このように、縮退ROM8から最終的にqビットのクラスコードが発生し、そのqビットのクラスコードは、学習回路53へ供給される。
【0034】
遅延合わせが行われる遅延回路9の出力がブロック化回路10へ供給され、そのブロック化回路10では、注目画素の周辺の複数の画素がブロック化される。ブロック化された各画素値は、学習回路53へ供給される。
【0035】
そして、入力端子51から教師用の画像信号の対応する画素の輝度信号Yが入力される。入力された教師用の輝度信号Yは、A/D変換回路52において、アナログ信号からディジタル信号へ変換され、学習回路53に供給される。学習回路53では、nタップの線形一時結合モデルを形成し、その各係数データを学習回路53で算出する。算出された各係数データは、出力端子54から取り出され、係数ROMへ格納される。また、学習回路53は、後述する最小自乗法にてクラス毎に係数データを学習するものである。学習により得られた係数データは、出力端子54を介して出力され、ROMなどの記憶媒体にクラス毎に格納される。また、学習回路53は、以下に述べる最小自乗法にてクラス毎に係数データ学習するものである。
【0036】
学習の方法として、多数の補正対象用の入力信号の画素の値と教師用の画像信号の画素の値との関係を求める最小自乗法を採用した。まず、上述した値の間に線形1次結合の関係があると仮定し、以下に線形一次結合モデルを示す。
【0037】
線形一次結合モデル:(観測方程式)
XW=Y (3)
【数1】
【0038】
最小自乗法による解法:(残差方程式)
【数2】
【0039】
式(5)から、各wi の最確値を見いだすには、
【数3】
を最小にする条件、すなわち
【0040】
【数4】
なる、N個の条件を入れてこれを満足するw1 、w2 、・・・、wN を見いだせばよい。式(5)より、
【0041】
【数5】
となり、式(6)条件をi=1,2,・・・,Nについて立てればそれぞれ、
【0042】
【数6】
が得られる。ここで、式(5)および式(8)から次式の正規方程式が得られる。
【0043】
【数7】
これは、ちょうど未知数の数N個だけある連立方程式であるから、これより最確値たる各wi を求めることができる。
【0044】
正確には、式(9)でwi にかかる
【数8】
のマトリクスが正則であれば解くことができる。(ただし、k=1,2,・・・,N、l=1,2,・・・,N)実際には、Gauss-Jordanの消去法(掃き出し法)を用いて連立方程式を解くことになる。
【0045】
次に、最小自乗法の演算を行うハードウェアのブロック図を図9に示す。図8の学習のブロック図において、補正対象の画素を中心とするブロックの画素値x1 〜xN と、その画素に対応する教師用の画素値δyが入力されると共に、クラスコード(インデックス)が入力される。最小自乗法の回路は、大きく分けて正規方程式生成回路61とCPU62からなり、その正規方程式生成回路61は、乗算器アレイ63、加算メモリ64およびデコード部65からなる。CPU62は、係数データを求めるため、例えば掃き出し法の演算を行うCPUからなる。乗算器アレイ63には、注目画素位置に対して1組のメモリ(またはレジスタ)が存在し、加算メモリ64には、クラスの数だけ組のメモリ(またはレジスタ)が存在する。また、デコード部65では、供給されるクラスコード(インデックス)がデコードされる。
【0046】
ここで、乗算器アレイ63について、図10を用いて説明する。補正対象の画素を中心としてブロックの画素値と対応する教師用の画素値δyは、正規方程式回路61の乗算器アレイ63において、図10に示すように各要素どうしの乗算が行われ、その結果が加算メモリ64へ供給される。
【0047】
そして、加算メモリ64は、図11に示すように加算器アレイ71およびメモリ(またはレジスタ)アレイ721 〜72N から構成される。加算器アレイ71には、乗算器アレイ63からの結果とメモリ(またはレジスタ)アレイ721 〜72N からの出力が供給される。その加算結果は、加算器アレイ71からメモリ(またはレジスタ)アレイ721 〜72N に出力される。このとき、どのメモリ(またはレジスタ)アレイ721 〜72N が選択されるかは、デコード部65に供給されたクラスコード(インデックス)がデコードされることで一意に決定される。つまり、インデックスによって決定されるクラス毎にメモリ(またはレジスタ)アレイ72が選択される。この選択されたメモリ(またはレジスタ)アレイ72には、積和演算の結果が更新され、記憶される。
【0048】
なお、各々のアレイの位置は、正規方程式(9)のwi にかかる
【数9】
の位置に対応する。正規方程式(9)を見てわかるように右上の項を反転すれば左下と同じものになるため、各アレイは三角形の形状をしている。
【0049】
以上のようにして、ある一定期間の間にクラス毎に積和演算が行われて画素位置毎のさらにクラス毎の正規方程式が生成される。クラス毎の正規方程式の各項の結果は、それぞれのクラスに対応するメモリ(またはレジスタ)アレイに記憶されており、次にそれらのクラス毎の正規方程式の各項が掃き出し法の計算回路に供給される。この計算はCPU62によって行われる。計算された係数データの組は、係数ROMで構成される係数テーブルに書き込まれて使用される。
【0050】
次に、図4に示す輝度補正装置の第2の例に適用される係数データの学習について図12を用いて説明する。入力端子1から供給された輝度信号Yは、A/D変換回路2へ供給され、A/D変換回路2では、例えば13.5MHzでサンプリングされ、平均値/標準偏差算出回路3および遅延回路5へ出力される。平均値/標準偏差算出回路3では、上述したように供給された輝度値の例えば1フィールドまたは1フレーム当りの平均値および標準偏差が式(1)および式(2)を用いて求められる。
【0051】
量子化回路4では、算出された平均値および標準偏差に対してそれぞれaビット、bビットで量子化されて、トータルnビット(n=a+b)のコードを発生する。このnビットのコードは、量子化回路4から縮退ROM8へ供給される。遅延回路5では、nビットのコードが生成されるまでの時間(1フィールドまたは1フレーム+α)だけ、遅延が行われ、その出力は、ブロック化回路6および31、さらに遅延回路5へ供給される。ブロック化回路31では、注目画素の周辺の空間内の複数の画素が選択され、ブロック化される。そのブロック化された画素は、ADRC回路32へ供給される。ADRC回路32では、ブロック化された画素からmビットのコードが発生され、縮退ROM8へ供給される。
【0052】
ブロック化回路6では、注目画素の周辺の空間内の複数の画素が選択され、ブロック化される。上述したように、ブロック化回路31とブロック化回路6とのブロック化とは異なっても良い。平均化回路7では、注目画素付近の輝度の平均値が算出され、算出された平均値は、シフトされ、p(<8)ビットに量子化され、縮退ROM8へ供給される。
【0053】
縮退ROM8では、上述するように、クラスを縮退させるために、(n+m+p)ビットからqビットに減少させたクラスコード(インデックス)が発生される。このように、縮退ROM8から最終的にqビットのクラスコードが発生し、そのqビットのクラスコードは、学習回路53へ供給される。
【0054】
以後、上述した図8に示される輝度補正装置の学習回路と同様に、入力端子51からの教師用の輝度信号Yは、A/D変換回路52において、A/D変換され、学習回路53に供給される。学習回路53では、縮退ROM8からのクラスコード、ブロック化回路10からの注目画素周辺の複数の画素およびA/D変換回路52からの教師用の輝度信号Yから上述した最小自乗法にて、クラス毎の係数データが学習される。学習により獲得された係数データは、出力端子54を介して、ROMなどの記憶媒体にクラス毎に格納される。
【0055】
次に、図6に示す輝度補正装置の第3の例に適用される係数データの学習について図13を用いて説明する。入力端子1から供給された輝度信号Yは、A/D変換回路2へ供給され、A/D変換回路2では、例えば13.5MHzでサンプリングされ、変換ROM34および遅延回路5へ出力される。変換ROM34では、上述したように供給された輝度値がある複数の領域、例えばs個の領域に分けられる。そして、領域別輝度分布回路35では、分けられたs個の領域毎に、例えば1フィールドまたは1フレーム内の度数の乗算が行われる。ADRC回路36では、例えばaビットの量子化が行われ、トータルnビット(n=s×a)のコードが発生する。このnビットのコードは、ADRC回路36から縮退ROM8へ供給される。
【0056】
縮退ROM8では、ADRC回路36からのnビット、さらに上述の図12と同様にADRC回路32からのmビットおよび平均化回路7からのpビットが供給され、上述したように、クラスを縮退させるために、(n+m+p)ビットからqビットに減少させたクラスコード(インデックス)が発生される。このように、縮退ROM8から最終的にqビットのクラスコードが発生し、そのqビットのクラスコードは、学習回路53へ供給される。
【0057】
以後、上述した図8および図12に示される輝度補正装置の学習回路と同様に、入力端子51からの教師用の輝度信号Yは、A/D変換回路52において、A/D変換され、学習回路53に供給される。学習回路53では、縮退ROM8からのクラスコード、ブロック化回路10からの注目画素周辺の複数の画素およびA/D変換回路52からの教師用の輝度信号Yから上述した最小自乗法にて、クラス毎の係数データが学習される。学習により獲得された係数データは、出力端子54を介して、ROMなどの記憶媒体にクラス毎に格納される。
【0058】
そして、この発明は、上述した学習時の処理において、最適な教師用の画像信号と、この教師用の画像信号に対応する補正対象入力信号の画素の値とを用いて最適な係数データを獲得するものである。この学習方法の第1の実施例をより詳細に説明すると、図14に示すように被写体81にあてる照明を、暗から明(または、明から暗)へ手動または自動で連続的に変化させる。具体的には、学習回路の制御に用いられているCUP82によって、電子ボリューム83をコントロールすることにより、ライト84が制御される。このように制御された照明により得られた画像信号がカメラ85によって、撮影される。
【0059】
例えば、暗から明へ自動で連続的に照明を変化させ、あるカットで60フレーム程度の撮影を行った場合、図15に示すように、撮影画像の輝度値が最適であると思われる中央付近のフレーム、すなわち60フレームのほぼ中ほどのフレームを教師用の画像信号として用いる。この教師用の画像信号は、学習対象および補正対象として不感帯を設定する。この最適であると思われるフレームに対して、始めの方のフレームは、ライトレベルが低いため、輝度値が最適と思われるフレームより暗く、後の方のフレームは、ライトレベルが高いため、輝度値が最適と思われるフレームより明るくなっている。この最適と思われるフレーム以外の画像信号を補正対象の画像信号とし、上述した学習回路53により最適な係数データを獲得することができる。
【0060】
また、図16を参照して、この発明による学習方法の第2の実施例を説明する。輝度値が最適であると思われる中央付近のフレームの第1の教師用の画像信号と補正対象の画像信号として注目されるフレームとの間に位置するフレームを第2の教師用の画像信号として設定する。そして、第1の教師用の画像信号は、輝度補正を施す必要がないため、第1の教師用の画像信号を中心として所定幅の不感帯を設定する。この不感帯とは、上述したように、学習対象および補正対象としない画像信号である。しかしながら、第2の教師用の画像信号は、輝度補正が必要な画像信号であるので、不感帯を設定しない。
【0061】
そして、補正対象の画像信号と第2の教師用の画像信号を使用して上述したように学習を行って係数データが獲得される。この獲得された係数データを用いて輝度補正を行い、補正対象の輝度値から第2教師用の画像信号へ補正され、さらに第2教師用の画像信号から第1教師用の画像信号へ補正される。こうして、第1の実施例により獲得された係数データを用いて補正された画像信号と、第2の実施例により獲得された係数データを用いて補正された画像信号とを比較すると、第1の実施例では、学習時の画像信号間の輝度値のゲインが大きいため、ノイズ等の影響によって生じる明るさのふらつきが第2の実施例では、学習時の画像信号間の輝度値のゲインが過大とならないので抑えることができる。
【0062】
次に、係数ROMに記憶される係数データを生成する学習回路の他の実施例を図17に示す。入力端子1から供給された輝度信号Yは、A/D変換回路2へ供給され、A/D変換回路2では、例えば13.5MHzでサンプリングされ、LPF(ローパスフィルタ)56へ供給される。LPF56では、ディジタル化された画像信号に対してフィルタ処理が施される。LPF56の出力信号は、平均値/標準偏差算出回路3および遅延回路5へ出力される。このように、A/D変換回路2の出力信号に対してフィルタ処理を施して、学習対象の画像信号の解像度を教師用の画像信号の解像度に比して意識的に低くすることによって、輝度補正時に輝度補正のみでなく、解像度を上げることができる。
【0063】
以後、上述した図12に示される輝度補正装置の学習回路と同様に量子化回路4からのnビット、ADRC回路32からのmビットおよび平均化回路7からのpビットが縮退ROM8へ供給される。縮退ROM8では、クラスを縮退させるために、(n+m+p)ビットからqビットに減少させたクラスコードが発生される。このクラスコードは、学習回路53へ供給される。
【0064】
そして、入力端子51からの教師用の輝度信号Yは、A/D変換回路52において、A/D変換され、学習回路53に供給される。学習回路53では、縮退ROM8からのクラスコード、ブロック化回路10からの注目画素周辺の複数の画素およびA/D変換回路52からの教師用の輝度信号Yから上述した最小自乗法にて、クラス毎の係数データが学習される。学習により獲得された係数データは、出力端子54を介して、ROMなどの記憶媒体にクラス毎に格納される。
【0065】
この発明は、上述した以外のクラス分類適応処理を使用した構成に使用することも可能である。
【0066】
この実施例では、すべてハードウェアで実現する方法を記載したが、ディジタル化されたデータを計算機に取り込むことでソフトウェアで計算しても良い。
【0067】
また、この実施例では、教師用の画像信号に静止画を使用したが、プロのカメラマンが撮影した画像信号、または照明条件の良い画像信号を使用することも可能である。
【0068】
【発明の効果】
この発明に依れば、輝度分布のパターン分類から全体の輝度補正を行う効果と、空間内のパターン分類および輝度値の平均値から部分的な輝度補正を行う効果を待ち合わせており、よりきめの細かい輝度補正を行うことが可能となる。
【0069】
さらに、この発明に依れば、係数データの学習において、簡単でしかも効率よく学習を行うことができる。また、補正対象となる画像信号に対してフィルタ処理を施した後に学習を行うことで、輝度補正時に輝度補正のみでなく、解像度を上げることも可能となる。
【図面の簡単な説明】
【図1】この発明が適用できる輝度補正装置の第1の例である。
【図2】この発明が適用できる第1の例の説明に用いる一例の度数分布図である。
【図3】この発明が適用された輝度補正装置に用いられている平均値/標準偏差回路の一例である。
【図4】この発明が適用できる輝度補正装置の第2の例である。
【図5】この発明が適用された輝度補正装置に用いられているADRC回路の一例である。
【図6】この発明が適用できる輝度補正装置の第3の例である。
【図7】この発明が適用された輝度補正装置に用いられている領域別輝度分布回路の一例である。
【図8】この発明が適用できる輝度補正装置の第1の例に対応する学習回路の一例である。
【図9】この発明に係る学習回路の一例を説明するためのブロック図である。
【図10】この発明に係る乗算器アレイの説明に用いる一例の略線図である。
【図11】この発明に係る加算メモリの説明に用いる一例の略線図である。
【図12】この発明が適用できる輝度補正装置の第2の例に対応する学習回路の一例である。
【図13】この発明が適用できる輝度補正装置の第3の例に対応する学習回路の一例である。
【図14】この発明を説明するための略線図である。
【図15】この発明の学習方法の第1の実施例を説明するための略線図である。
【図16】この発明の学習方法の第2の実施例を説明するための略線図である。
【図17】この発明の学習回路の他の実施例を示すブロック図である。
【符号の説明】
2、52・・・A/D変換回路、3・・・平均値/標準偏差回路、4・・・量子化回路、5、9・・・遅延回路、6、10・・・ブロック化回路、7・・・平均化回路、8・・・縮退ROM、53・・・学習回路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a learning method in a class classification adaptive process for obtaining optimum coefficient data stored in a luminance correction apparatus adapted to correct the luminance value of an image signal using the class classification adaptive process. And learning device About.
[0002]
[Prior art]
Normally, in the luminance correction apparatus, luminance correction is performed by obtaining an integral value (corresponding to the total amount of received light) of the luminance value in the screen and changing the gain of the amplifier accordingly. Accordingly, when viewed in space, a certain gain is applied to every pixel, and it has not been possible to perform fine correction such as making only a dark part brighter or making only a bright part darker.
[0003]
[Problems to be solved by the invention]
Therefore, it has been proposed to improve luminance correction by introducing class classification adaptive processing (see Japanese Patent Application No. 7-328358). However, since coefficient learning for luminance correction uses images of various brightnesses, images of various subjects, etc., it has been necessary to handle an enormous amount of data. As a result, the coefficient data Study There was a problem that learning was very complicated and time consuming. Further, since the continuity of the class cannot be compensated due to the influence of noise or the like in the luminance correction, the luminance correction may be discontinuous.
[0004]
Accordingly, an object of the present invention is to perform fine luminance correction by performing luminance correction according to the pattern classification of the luminance distribution and partial luminance correction according to the pattern classification in space and the average value of the luminance values. Learning Method in Class Classification Adaptation Processing for Obtaining Optimal Coefficient Data Stored in Luminance Correction Device That Can Be Performed And learning device Is to provide.
[0005]
[Means for Solving the Problems]
According to the first aspect of the present invention, a class classification that is calculated for each class by learning in advance by using a plurality of pixels of the input image signal to correct the luminance of the input image signal. In the learning method in the adaptive processing, the input image signal is divided into appropriate regions, the first class classification information for each region is generated using a pattern based on the luminance value in the region, and the target pixel of the input image signal is generated. Seki Do As classification information, at least, Region containing the pixel of interest of First classification information Degenerate Generating second class classification information, using a plurality of images taken by gradually changing the illumination from dark to light or from light to dark as image signals for learning; Photographed near the center from multiple images taken with gradually changing lighting The image signal is selected as the teacher image signal, the image signal other than the teacher image signal is used as the correction target image signal, and the teacher image signal and the plurality of correction target image signals are second In the classification information of Based on This is a learning method in a class classification adaptive process characterized by classifying for each class and learning a coefficient for correcting luminance for each class.
And claims 11 In the class classification adaptive processing, the coefficient used for correcting the luminance of the input image signal is calculated for each class by learning in advance by calculating with a plurality of pixels of the input image signal. In the learning apparatus, a first class classification for generating first class classification information for each area by dividing an input image signal into appropriate areas and using a pattern based on a luminance value in the area Information generation Means and the target pixel of the input image signal. Do As classification information, at least, Region containing the pixel of interest of First classification information Degenerate Second class classification for generating second class classification information Information generation And multiple images taken by gradually changing the illumination from dark to light or from light to dark as the learning image signal. , Taken near the center from multiple images taken with gradually changing lighting Selection means for selecting an image signal as a teacher image signal, and an image signal other than the teacher image signal as an image signal for correction , Classifying the teacher image signal and the plurality of correction target image signals into classes based on the second class classification information. class It has classification means and learning means for learning a coefficient for correcting luminance for each class. In the classification adaptation process It is a learning device.
[0006]
By quantizing the average value and standard deviation of luminance values in one field or frame, an n-bit code is generated, and a plurality of pixels in the space around the pixel of interest, that is, blocks are formed. By performing ADRC coding (adaptive dynamic range coding) on a pixel, an m-bit code is generated, and p (<8) by shifting the average value of the luminance values of the blocked pixels. A code of bits is generated, a degenerate ROM generates a class code reduced from (n + m + p) bits to q bits, coefficient data corresponding to the class code is read, and linear primary using the coefficient data A corrected luminance value is generated by the combination formula. In learning to acquire the coefficient data, a frame that seems to be optimal is used as a teacher image signal from about 60 frames in which only the illumination intensity is changed, and an image signal other than the teacher image signal is used. Learning is performed by using an image signal to be corrected, and optimal coefficient data can be obtained.
[0007]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In order to facilitate understanding of the present invention, several examples of the luminance correction apparatus according to the proposal of the present inventor will be described first. A first example of a luminance correction apparatus to which the present invention can be applied is shown in FIG. Among the image signals supplied from the
[0008]
In the average value /
[0009]
Average value = Σ (luminance value × frequency) / total frequency (1)
Standard deviation = √ (Σ ( (Luminance value-Average value) 2 X frequency) / all frequencies) (2)
However, √ () is the square root of the calculation result in ().
[0010]
In the
[0011]
On the other hand, in the
[0012]
In this way, the average value of the luminance of each block pixel is calculated, that is, by making the luminance level one of the class classifications, it is possible to change the way of correction in the level direction. For example, it is possible to correct only a bright part and a dark part, or to perform correction in consideration of γ characteristics. In addition, the effect of averaging the luminance level also serves to prevent the luminance correction from being overly sensitive.
[0013]
In the above description, two types of class classification codes have been generated. If these are simply combined, the number of classifications becomes enormous, and the capacity of a coefficient ROM (to be described later) becomes enormous. Therefore, the n bits from the
[0014]
Although the details of the degeneration method are not described here, a method of collectively reducing the coefficients having a small inter-coefficient norm as a vector quantization method from coefficient sets corresponding to all classes learned with (n + p) bits. Etc. shall be used. That is, the distance between the corresponding coefficients (the norm between coefficients) is obtained between the two coefficient sets, and the coefficient sets are collected based on the distance.
[0015]
In this way, a q-bit class code is finally generated from the
[0016]
The output of the delay circuit 9 to which the delay adjustment is performed is supplied to the blocking
[0017]
That is, the multiplier 12 1 ~ 12 N The
[0018]
Here, an example of the average value /
[0019]
Next, a second example of a brightness correction apparatus to which the present invention can be applied is shown in FIG. Among the image signals supplied from the
[0020]
On the other hand, in the
[0021]
In the
[0022]
In the above description, three types of class classification codes have been generated. As described above, when these are simply combined, the number of classifications becomes enormous, and the capacity of a coefficient ROM described later becomes enormous. Therefore, the n bits from the
[0023]
Thereafter, the coefficient data corresponding to the class code is stored in the coefficient ROM 11 in the same manner as the brightness correction apparatus shown in FIG. 1 ~ 11 N Read from. The read coefficient data is the multiplier 12 1 ~ 12 N Then, the
[0024]
An example of the configuration of the
[0025]
In the
[0026]
Next, FIG. 6 shows a third example of a luminance correction apparatus to which the present invention can be applied. Of the image signal from the
[0027]
Here, the operations of the
[0028]
FIG. 7C shows an example in which the
[0029]
As described above, n bits from the
[0030]
Similar to the brightness correction apparatus in FIG. 1 described above, coefficient data corresponding to the class code is stored in the coefficient ROM 11. 1 ~ 11 N Read from. The read coefficient data is the multiplier 12 1 ~ 12 N Then, the
[0031]
Next, learning of coefficient data applied to the first example of the brightness correction apparatus shown in FIG. 1 will be described with reference to FIG. The luminance signal Y supplied from the
[0032]
In the
[0033]
In the
[0034]
The output of the delay circuit 9 to which the delay adjustment is performed is supplied to the blocking
[0035]
Then, the luminance signal Y of the corresponding pixel of the teacher image signal is input from the
[0036]
As a learning method, a least square method for obtaining the relationship between the pixel values of a large number of correction target input signals and the pixel values of a teacher image signal was adopted. First, it is assumed that there is a linear linear coupling relationship between the above-described values, and a linear linear coupling model is shown below.
[0037]
Linear linear combination model: (observation equation)
XW = Y (3)
[Expression 1]
[0038]
Solving method using the method of least squares: (residual equation)
[Expression 2]
[0039]
From equation (5), each w i To find the most probable value of
[Equation 3]
Which minimizes
[0040]
[Expression 4]
W satisfying this with N conditions 1 , W 2 ... w N Find out. From equation (5)
[0041]
[Equation 5]
If the condition of formula (6) is established for i = 1, 2,..., N, respectively,
[0042]
[Formula 6]
Is obtained. Here, the following normal equation is obtained from the equations (5) and (8).
[0043]
[Expression 7]
Since this is a simultaneous equation with just N unknowns, each w is the most probable value. i Can be requested.
[0044]
To be precise, w in equation (9) i Take
[Equation 8]
If the matrix is regular, it can be solved. (Where k = 1, 2,..., N, l = 1, 2,..., N) In practice, the simultaneous equations are solved using Gauss-Jordan elimination (sweeping method). Become.
[0045]
Next, FIG. 9 shows a block diagram of hardware that performs the operation of the method of least squares. In the learning block diagram of FIG. 8, the pixel value x of the block centered on the pixel to be corrected 1 ~ X N Then, the teacher pixel value δy corresponding to the pixel is input, and the class code (index) is input. The circuit of the least square method is roughly divided into a normal
[0046]
Here, the
[0047]
The
[0048]
Note that the position of each array is the w of the normal equation (9). i Take
[Equation 9]
Corresponds to the position of. As can be seen from the normal equation (9), if the upper right term is inverted, it becomes the same as the lower left, so each array has a triangular shape.
[0049]
As described above, the product-sum operation is performed for each class during a certain period, and a normal equation for each class for each pixel position is generated. The result of each term of the normal equation for each class is stored in the memory (or register) array corresponding to each class, and then each term of the normal equation for each class is supplied to the calculation circuit of the sweep method. Is done. This calculation is performed by the
[0050]
Next, learning of coefficient data applied to the second example of the brightness correction apparatus shown in FIG. 4 will be described with reference to FIG. The luminance signal Y supplied from the
[0051]
In the
[0052]
In the
[0053]
In the
[0054]
Thereafter, the teacher luminance signal Y from the
[0055]
Next, learning of coefficient data applied to the third example of the brightness correction apparatus shown in FIG. 6 will be described with reference to FIG. The luminance signal Y supplied from the
[0056]
In the
[0057]
Thereafter, the teacher luminance signal Y from the
[0058]
According to the present invention, in the processing at the time of learning described above, optimal coefficient data is obtained using the optimal teacher image signal and the pixel value of the correction target input signal corresponding to the teacher image signal. To do. The first embodiment of this learning method will be described in more detail. As shown in FIG. 14, the illumination applied to the subject 81 is continuously changed manually or automatically from dark to bright (or from bright to dark). Specifically, the light 84 is controlled by controlling the
[0059]
For example, when the lighting is automatically and continuously changed from dark to bright, and about 60 frames are shot with a certain cut, as shown in FIG. 15, the brightness value of the shot image is considered to be optimum near the center. Frames, that is, approximately the middle of 60 frames is used as a teacher image signal. This teacher image signal sets a dead zone as a learning target and a correction target. In contrast to the frame that seems to be optimal, the first frame is darker than the frame that seems to be optimal because the light level is low, and the latter frame is bright because the light level is high. The value is brighter than the frame that seems to be optimal. An image signal other than the frame considered to be optimal is set as an image signal to be corrected, and the optimum coefficient data can be obtained by the
[0060]
A second embodiment of the learning method according to the present invention will be described with reference to FIG. A frame located between the first teacher image signal of the frame near the center where the luminance value is considered to be optimal and the frame of interest as the image signal to be corrected is used as the second teacher image signal. Set. Since the first teacher image signal does not need to be subjected to luminance correction, a dead band having a predetermined width is set around the first teacher image signal. As described above, the dead zone is an image signal that is not a learning target and a correction target. However, since the second teacher image signal is an image signal that requires luminance correction, no dead zone is set.
[0061]
Then, learning is performed as described above using the correction target image signal and the second teacher image signal, and coefficient data is obtained. Luminance correction is performed using the acquired coefficient data, the luminance value to be corrected is corrected to the second teacher image signal, and further, the second teacher image signal is corrected to the first teacher image signal. The Thus, when the image signal corrected using the coefficient data obtained by the first embodiment is compared with the image signal corrected using the coefficient data obtained by the second embodiment, the first In the embodiment, since the gain of the luminance value between the image signals at the time of learning is large, the brightness fluctuation caused by the influence of noise or the like is excessive in the second embodiment. Since it does not become, it can be suppressed.
[0062]
Next, another embodiment of a learning circuit for generating coefficient data stored in the coefficient ROM is shown in FIG. The luminance signal Y supplied from the
[0063]
Thereafter, n bits from the
[0064]
The teacher luminance signal Y from the
[0065]
The present invention can also be used for a configuration using class classification adaptation processing other than those described above.
[0066]
In this embodiment, a method for realizing all the hardware is described. However, the digitized data may be calculated by software by taking it into a computer.
[0067]
In this embodiment, a still image is used as a teacher image signal. However, an image signal photographed by a professional cameraman or an image signal with good lighting conditions can be used.
[0068]
【The invention's effect】
According to the present invention, the effect of performing the overall brightness correction from the pattern classification of the brightness distribution and the effect of performing the partial brightness correction from the average value of the pattern classification in the space and the brightness value are awaited. Fine brightness correction can be performed.
[0069]
Furthermore, according to the present invention, learning of coefficient data can be performed easily and efficiently. Further, by performing learning after performing filter processing on an image signal to be corrected, it is possible to increase not only the luminance correction but also the resolution at the time of luminance correction.
[Brief description of the drawings]
FIG. 1 is a first example of a luminance correction apparatus to which the present invention can be applied.
FIG. 2 is a frequency distribution diagram of an example used for explaining a first example to which the present invention can be applied.
FIG. 3 is an example of an average value / standard deviation circuit used in a luminance correction apparatus to which the present invention is applied;
FIG. 4 is a second example of a brightness correction apparatus to which the present invention can be applied.
FIG. 5 is an example of an ADRC circuit used in a luminance correction apparatus to which the present invention is applied.
FIG. 6 is a third example of a luminance correction apparatus to which the present invention can be applied.
FIG. 7 is an example of a region-specific luminance distribution circuit used in a luminance correction apparatus to which the present invention is applied;
FIG. 8 is an example of a learning circuit corresponding to a first example of a luminance correction apparatus to which the present invention can be applied.
FIG. 9 is a block diagram for explaining an example of a learning circuit according to the present invention.
FIG. 10 is a schematic diagram of an example used for explaining a multiplier array according to the present invention.
FIG. 11 is a schematic diagram of an example used for explaining an addition memory according to the present invention.
FIG. 12 is an example of a learning circuit corresponding to a second example of a luminance correction apparatus to which the present invention can be applied.
FIG. 13 is an example of a learning circuit corresponding to a third example of a luminance correction apparatus to which the present invention can be applied.
FIG. 14 is a schematic diagram for explaining the present invention.
FIG. 15 is a schematic diagram for explaining a first embodiment of the learning method of the present invention;
FIG. 16 is a schematic diagram for explaining a second embodiment of the learning method of the present invention.
FIG. 17 is a block diagram showing another embodiment of the learning circuit of the present invention.
[Explanation of symbols]
2, 52 ... A / D conversion circuit, 3 ... average value / standard deviation circuit, 4 ... quantization circuit, 5, 9 ... delay circuit, 6, 10 ... blocking circuit, 7 ... Averaging circuit, 8 ... Degenerate ROM, 53 ... Learning circuit
Claims (20)
上記入力画像信号を適当な領域に分割して上記領域内の輝度値に基づくパターンを用いて、上記領域毎の第1のクラス分類情報を生成し、
上記入力画像信号の注目画素に関するクラス分類情報として、少なくとも、上記注目画素が含まれる上記領域の上記第1のクラス分類情報を縮退させた第2のクラス分類情報を生成し、
照明を暗から明または明から暗に徐々に変化させて撮影した複数の画像を学習用の画像信号として使用し、
上記照明を徐々に変化させて撮影された複数の画像の中から中央付近で撮影された画像信号を教師用の画像信号として選択し、
上記教師用の画像信号以外の画像信号を補正対象用の画像信号として使用し、
上記教師用の画像信号と上記複数の補正対象用の画像信号とを上記第2のクラス分類情報に基づきクラス毎に分類し、
上記クラス毎に輝度を補正するための係数を学習することを特徴とするクラス分類適応処理における学習方法。In the learning method in the class classification adaptive process in which a coefficient used for correcting the luminance of the input image signal is calculated for each class by learning in advance by calculating with a plurality of pixels of the input image signal.
The input image signal is divided into appropriate regions and a pattern based on the luminance value in the region is used to generate first class classification information for each region,
As classification information about the target pixel of the input image signal, at least, to generate the second classification information is degenerate the first classification information of the region included the pixel of interest,
Using multiple images taken by gradually changing the lighting from dark to light or from light to dark as learning image signals,
Select an image signal photographed near the center from among a plurality of images photographed by gradually changing the illumination, as an image signal for teachers,
Using an image signal other than the teacher image signal as an image signal for correction,
Classifying the image signal for teacher and the plurality of image signals for correction based on the second class classification information for each class;
A learning method in class classification adaptive processing, wherein a coefficient for correcting luminance is learned for each class.
上記入力画像信号を適当な領域に分割して上記領域内の輝度値を平均化して、上記領域毎の第1のクラス分類情報を生成し、Dividing the input image signal into appropriate regions and averaging the luminance values in the regions to generate first class classification information for each region;
上記入力画像信号の注目画素に関するクラス分類情報として、少なくとも、上記注目画素が含まれる上記領域の上記第1のクラス分類情報を縮退させた第2のクラス分類情報を生成し、As class classification information related to the target pixel of the input image signal, at least second class classification information generated by degenerating the first class classification information of the region including the target pixel is generated,
照明を暗から明または明から暗に徐々に変化させて撮影した複数の画像を学習用の画像信号として使用し、Using multiple images taken by gradually changing the lighting from dark to light or from light to dark as learning image signals,
上記照明を徐々に変化させて撮影された複数の画像の中から中央付近で撮影された画像信号を教師用の画像信号として選択し、Select an image signal photographed near the center from among a plurality of images photographed by gradually changing the illumination, as an image signal for teachers,
上記教師用の画像信号以外の画像信号を補正対象用の画像信号として使用し、Using an image signal other than the teacher image signal as an image signal for correction,
上記教師用の画像信号と上記複数の補正対象用の画像信号とを上記第2のクラス分類情報に基づきクラス毎に分類し、Classifying the image signal for teacher and the plurality of image signals for correction based on the second class classification information for each class;
上記クラス毎に輝度を補正するための係数を学習することを特徴とするクラス分類適応処理における学習方法。A learning method in class classification adaptive processing, wherein a coefficient for correcting luminance is learned for each class.
上記入力画像信号を適当な領域に分割して上記領域内の輝度値に基づくパターンを用いて、上記領域毎の第1のクラス分類情報を生成し、The input image signal is divided into appropriate regions and a pattern based on the luminance value in the region is used to generate first class classification information for each region,
上記入力画像信号の輝度分布をパターン化して、第2のクラス分類情報を生成し、Patterning the luminance distribution of the input image signal to generate second class classification information;
照明を暗から明または明から暗に徐々に変化させて撮影した複数の画像を学習用の画像信号として使用し、Using multiple images taken by gradually changing the lighting from dark to light or from light to dark as learning image signals,
上記照明を徐々に変化させて撮影された複数の画像の中から中央付近で撮影された画像信号を教師用の画像信号として選択し、Select an image signal photographed near the center from among a plurality of images photographed by gradually changing the illumination, as an image signal for teachers,
上記教師用の画像信号以外の画像信号を補正対象用の画像信号として使用し、Using an image signal other than the teacher image signal as an image signal for correction,
上記教師用の画像信号と上記複数の補正対象用の画像信号とを少なくとも上記第1および第2のクラス分類情報に基づきクラス毎に分類し、Classifying the teacher image signal and the plurality of image signals for correction based on at least the first and second class classification information;
上記クラス毎に輝度を補正するための係数を学習することを特徴とするクラス分類適応処理における学習方法。A learning method in class classification adaptive processing, wherein a coefficient for correcting luminance is learned for each class.
上記教師用の画像信号と補正対象用の画像信号との間に位置する画像信号を第2の教師用の画像信号として設定することを特徴とするクラス分類適応処理における学習方法。In the learning method in the classification adaptation process according to claim 1 , claim 2, or claim 3 ,
A learning method in class classification adaptive processing, wherein an image signal positioned between the teacher image signal and the correction target image signal is set as a second teacher image signal.
上記教師用の画像信号に近い輝度値の画像信号を学習するための対象並びに輝度を補正するための対象から除外することを特徴とするクラス分類適応処理における学習方法。In the learning method in the classification adaptation process according to claim 1 , claim 2, or claim 3 ,
Learning method in classification adaptive processing, which comprises excluded from for correcting the target and luminance for learning image signal of the luminance values close to the image signal for the teacher.
上記入力画像信号に対して低域通過フィルタを施した信号を補正対象用の画像信号として、学習を行うことを特徴とするクラス分類適応処理における学習方法。In the learning method in the classification adaptation process according to claim 1 , claim 2, or claim 3 ,
A learning method in class classification adaptive processing, wherein learning is performed using a signal obtained by applying a low-pass filter to the input image signal as an image signal for correction.
上記第1のクラス分類情報は、上記第1のブロック毎に空間の輝度変化のパターンで分類を行うことで生成され、The first class classification information is generated by performing classification with a pattern of luminance change in space for each of the first blocks,
さらに、上記注目画素の周辺画素を含む複数個の画素を第2のブロックにブロック化し、上記ブロック内の輝度値の平均値に基づき分類を行うことで、上記注目画素に関する第3のクラス分類情報を生成し、Further, a plurality of pixels including the peripheral pixels of the pixel of interest are blocked into a second block, and classification is performed based on an average value of luminance values in the block, whereby third class classification information relating to the pixel of interest Produces
上記第1及び第3のクラス分類情報を縮退させて、上記第2のクラス分類情報を生成することを特徴とする請求項1に記載のクラス分類適応処理における学習方法。The learning method in the class classification adaptation process according to claim 1, wherein the second class classification information is generated by degenerating the first and third class classification information.
上記第1及び第4のクラス分類情報を縮退させて、上記第2のクラス分類情報を生成することを特徴とする請求項1又は請求項2に記載のクラス分類適応処理における学習方法。The learning method in the class classification adaptive processing according to claim 1 or 2, wherein the second class classification information is generated by degenerating the first and fourth class classification information.
上記教師用の画像信号と上記複数の補正対象用の画像信号とを上記第1、第2および第3のクラス分類情報に基づきクラス毎に分類することを特徴とする請求項3に記載の学習方法。4. The learning according to claim 3, wherein the teacher image signal and the plurality of correction target image signals are classified for each class based on the first, second, and third class classification information. Method.
上記入力画像信号を適当な領域に分割して上記領域内の輝度値に基づくパターンを用いて、上記領域毎の第1のクラス分類情報を生成する第1のクラス分類情報生成手段と、
上記入力画像信号の注目画素に関するクラス分類情報として、少なくとも、上記注目画素が含まれる上記領域の上記第1のクラス分類情報を縮退させた第2のクラス分類情報を生成する第2のクラス分類情報生成手段と、
照明を暗から明または明から暗に徐々に変化させて撮影した複数の画像を学習用の画像信号として使用し、上記照明を徐々に変化させて撮影された複数の画像の中から中央付近で撮影された画像信号を教師用の画像信号として選択する選択手段と、
上記教師用の画像信号以外の画像信号を補正対象用の画像信号として使用し、上記教師用の画像信号と上記複数の補正対象用の画像信号とを上記第2のクラス分類情報に基づきクラス毎に分類するクラス分類手段と、
上記クラス毎に輝度を補正するための係数を学習する学習手段とを有することを特徴とするクラス分類適応処理における学習装置。In the learning apparatus in the class classification adaptive process in which a coefficient used for correcting the luminance of the input image signal is calculated for each class by learning in advance by being calculated with a plurality of pixels of the input image signal.
First class classification information generating means for dividing the input image signal into appropriate areas and generating first class classification information for each area using a pattern based on a luminance value in the area;
As classification information about the target pixel of the input image signal, at least, a second class that generates second classification information is degenerate the first classification information of the region included the target pixel Classification information generating means;
Using multiple images implicitly captured by gradually changing the illumination from dark to bright or bright as an image signal for learning, near the center among the plurality of images photographed by gradually changing the illumination A selection means for selecting a photographed image signal as a teacher image signal;
An image signal other than the image signal for the teacher to use as an image signal for correction object, each class based an image signal and an image signal for the plurality of correction object for the teacher to the second classification information and class classification means for classifying to,
A learning apparatus in class classification adaptive processing, comprising learning means for learning a coefficient for correcting luminance for each class .
上記入力画像信号を適当な領域に分割して上記領域内の輝度値を平均化して、上記領域毎の第1のクラス分類情報を生成する第1のクラス分類情報生成手段と、First class classification information generating means for dividing the input image signal into appropriate areas, averaging the luminance values in the areas, and generating first class classification information for each area;
上記入力画像信号の注目画素に関するクラス分類情報として、少なくとも、上記注目画素が含まれる上記領域の上記第1のクラス分類情報を縮退させた第2のクラス分類情報を生成する第2のクラス分類情報生成手段と、Second class classification information for generating second class classification information obtained by degenerating the first class classification information of at least the region including the target pixel as class classification information regarding the target pixel of the input image signal Generating means;
照明を暗から明または明から暗に徐々に変化させて撮影した複数の画像を学習用の画像信号として使用し、上記照明を徐々に変化させて撮影された複数の画像の中から中央付近で撮影された画像信号を教師用の画像信号として選択する選択手段と、Using a plurality of images taken by gradually changing the illumination from dark to bright or from light to dark as the learning image signal, near the center of the images taken by gradually changing the illumination A selection means for selecting a photographed image signal as a teacher image signal;
上記教師用の画像信号以外の画像信号を補正対象用の画像信号として使用し、上記教師用の画像信号と上記複数の補正対象用の画像信号とを上記第2のクラス分類情報に基づきクラス毎に分類するクラス分類手段と、An image signal other than the teacher image signal is used as a correction target image signal, and the teacher image signal and the plurality of correction target image signals are classified for each class based on the second class classification information. Classifying means for classifying into,
上記クラス毎に輝度を補正するための係数を学習する学習手段とを有することを特徴とするクラス分類適応処理における学習装置。A learning apparatus in class classification adaptive processing, comprising learning means for learning a coefficient for correcting luminance for each class.
上記入力画像信号を適当な領域に分割して上記領域内の輝度値に基づくパターンを用いて、上記領域毎の第1のクラス分類情報を生成する第1のクラス分類情報生成手段と、First class classification information generating means for dividing the input image signal into appropriate areas and generating first class classification information for each area using a pattern based on a luminance value in the area;
上記入力画像信号の輝度分布をパターン化して、第2のクラス分類情報を生成する第2のクラス分類情報生成手段と、Patterning the luminance distribution of the input image signal to generate second class classification information;
照明を暗から明または明から暗に徐々に変化させて撮影した複数の画像を学習用の画像信号として使用し、Using multiple images taken by gradually changing the lighting from dark to light or from light to dark as learning image signals,
上記照明を徐々に変化させて撮影された複数の画像の中から中央付近で撮影された画像信号を教師用の画像信号として選択する選択手段と、Selection means for selecting an image signal photographed near the center from among a plurality of images photographed by gradually changing the illumination;
上記教師用の画像信号以外の画像信号を補正対象用の画像信号として使用し、Using an image signal other than the teacher image signal as an image signal for correction,
上記教師用の画像信号と上記複数の補正対象用の画像信号とを少なくとも上記第1および第2のクラス分類情報に基づきクラス毎に分類するクラス分類手段と、Class classification means for classifying the image signal for teacher and the plurality of image signals for correction based on at least the first and second class classification information;
上記クラス毎に輝度を補正するための係数を学習する学習手段とを特徴とするクラス分類適応処理における学習装置。A learning apparatus in class classification adaptive processing characterized by learning means for learning a coefficient for correcting luminance for each class.
上記教師用の画像信号と補正対象用の画像信号との間に位置する画像信号を第2の教師用の画像信号として設定することを特徴とするクラス分類適応処理における学習装置。A learning apparatus in class classification adaptation processing, wherein an image signal positioned between the teacher image signal and the correction target image signal is set as a second teacher image signal.
上記教師用の画像信号に近い輝度値の画像信号を学習するための対象並びに輝度を補正するための対象から除外することを特徴とするクラス分類適応処理における学習装置。A learning apparatus in a class classification adaptive process, characterized in that an image signal having a luminance value close to that of the teacher image signal is excluded from an object for learning and an object for correcting luminance.
上記入力画像信号に対して低域通過フィルタを施した信号を補正対象用の画像信号として、学習を行うことを特徴とするクラス分類適応処理における学習装置。A learning apparatus in a class classification adaptive process, wherein learning is performed using a signal obtained by performing a low-pass filter on the input image signal as an image signal for correction.
上記第1のクラス分類情報は、上記第1のブロック毎に空間の輝度変化のパターンで分類を行うことで生成され、
さらに、上記注目画素の周辺画素を含む複数個の画素を第2のブロックにブロック化し、上記ブロック内の輝度値の平均値に基づき分類を行うことで、上記注目画素に関する第3のクラス分類情報を生成する第3のクラス分類手段を備え、
上記第2のクラス分類手段では、上記第1及び第3のクラス分類情報を縮退させて、上記第2のクラス分類情報を生成することを特徴とする請求項11に記載のクラス分類適応処理における学習装置。The region is obtained by blocking a plurality of pixels including peripheral pixels of the target pixel into a first block,
The first class classification information is generated by performing classification with a pattern of luminance change in space for each of the first blocks,
Further, a plurality of pixels including the peripheral pixels of the pixel of interest are blocked into a second block, and classification is performed based on an average value of luminance values in the block, whereby third class classification information relating to the pixel of interest A third class classification means for generating
12. The class classification adaptation process according to claim 11 , wherein the second class classification means generates the second class classification information by degenerating the first and third class classification information. Learning device.
上記第2のクラス分類手段では、上記第1及び第4のクラス分類情報を縮退させて、上記第2のクラス分類情報を生成することを特徴とする請求項11又は請求項12に記載のクラス分類適応処理における学習装置。The class according to claim 11 or 12, wherein the second class classification means generates the second class classification information by degenerating the first and fourth class classification information. A learning device in classification adaptation processing.
上記教師用の画像信号と上記複数の補正対象用の画像信号とを上記第1、第2および第3のクラス分類情報に基づきクラス毎に分類することを特徴とする請求項13に記載の学習装置。14. The learning according to claim 13, wherein the teacher image signal and the plurality of correction target image signals are classified for each class based on the first, second, and third class classification information. apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP06912696A JP3758228B2 (en) | 1996-02-29 | 1996-02-29 | Learning method and learning apparatus in adaptive classification processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP06912696A JP3758228B2 (en) | 1996-02-29 | 1996-02-29 | Learning method and learning apparatus in adaptive classification processing |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005318069A Division JP4062329B2 (en) | 2005-11-01 | 2005-11-01 | Signal processing apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH09237345A JPH09237345A (en) | 1997-09-09 |
JP3758228B2 true JP3758228B2 (en) | 2006-03-22 |
Family
ID=13393644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP06912696A Expired - Fee Related JP3758228B2 (en) | 1996-02-29 | 1996-02-29 | Learning method and learning apparatus in adaptive classification processing |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3758228B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6678405B1 (en) * | 1999-06-08 | 2004-01-13 | Sony Corporation | Data processing apparatus, data processing method, learning apparatus, learning method, and medium |
KR20190003497A (en) * | 2016-05-02 | 2019-01-09 | 소니 주식회사 | Image processing apparatus and image processing method |
EP3585044A4 (en) * | 2017-02-20 | 2020-01-15 | Sony Corporation | Image processing device, image processing method, and program |
JPWO2021186961A1 (en) * | 2020-03-16 | 2021-09-23 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04271669A (en) * | 1991-02-27 | 1992-09-28 | Matsushita Electric Ind Co Ltd | Gradation corrector |
DE69227492T2 (en) * | 1991-08-30 | 1999-04-08 | Matsushita Electric Ind Co Ltd | Image processing device |
JPH05122550A (en) * | 1991-10-25 | 1993-05-18 | Matsushita Electric Ind Co Ltd | Signal processor |
US5376962A (en) * | 1993-03-31 | 1994-12-27 | Panasonic Technologies, Inc. | Neural network video image processor |
JPH06348840A (en) * | 1993-06-03 | 1994-12-22 | Konica Corp | Picture restoring method |
JP3486975B2 (en) * | 1993-08-27 | 2004-01-13 | ソニー株式会社 | Noise reduction apparatus and method |
JP3557626B2 (en) * | 1993-08-27 | 2004-08-25 | ソニー株式会社 | Image restoration apparatus and method |
JP3632993B2 (en) * | 1993-08-30 | 2005-03-30 | ソニー株式会社 | Electronic zoom device and electronic zoom method |
-
1996
- 1996-02-29 JP JP06912696A patent/JP3758228B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH09237345A (en) | 1997-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7570390B2 (en) | Image processing device and method | |
US8654221B2 (en) | Image processing device and method, and program | |
US7551794B2 (en) | Method apparatus, and recording medium for smoothing luminance of an image | |
CN100366052C (en) | Image processing device and method | |
US7672528B2 (en) | Method of processing an image to form an image pyramid | |
US8085316B2 (en) | Image-processing unit, imaging apparatus, and computer program product | |
US20080253681A1 (en) | Image Processing Method and Computer Software for Image Processing | |
JPH05225332A (en) | Method and apparatus for variable-space wave filtering | |
US6137541A (en) | Image processing method and image processing apparatus | |
JPH11505357A (en) | Apparatus and method for pixel-level brightness adjustment | |
JP2014194706A (en) | Image processor, image processing method and program | |
US7595819B2 (en) | Signal processing device and signal processing method, program, and recording medium | |
CN101686321B (en) | Method and system for reducing noise in image data | |
JPH10214339A (en) | Picture filtering method | |
US7239758B2 (en) | Signal processing device for reducing noise of image signal, signal processing program, and signal processing method | |
US7760264B2 (en) | Method of obtaining an image | |
JP3758228B2 (en) | Learning method and learning apparatus in adaptive classification processing | |
JP3378601B2 (en) | Image processing device | |
JP3360695B2 (en) | Image data quantization circuit | |
JP3791029B2 (en) | Image signal processing apparatus and method | |
JP2017223823A (en) | Image processor, image processing program, and image processing method | |
JPH1011583A (en) | Class classification adaptation processor and learning device/method for class classification adaptation processing | |
JP4062329B2 (en) | Signal processing apparatus and method | |
US7362910B2 (en) | Color image characterization, enhancement and balancing process | |
JP4353294B2 (en) | Information signal conversion apparatus and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050201 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050331 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050531 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050729 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050906 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20051101 |
|
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: 20051213 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20051226 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100113 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100113 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110113 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120113 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130113 Year of fee payment: 7 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |