JP2007336419A - Luminance conversion apparatus - Google Patents
Luminance conversion apparatus Download PDFInfo
- Publication number
- JP2007336419A JP2007336419A JP2006168438A JP2006168438A JP2007336419A JP 2007336419 A JP2007336419 A JP 2007336419A JP 2006168438 A JP2006168438 A JP 2006168438A JP 2006168438 A JP2006168438 A JP 2006168438A JP 2007336419 A JP2007336419 A JP 2007336419A
- Authority
- JP
- Japan
- Prior art keywords
- luminance
- edge
- histogram
- conversion
- luminance conversion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 144
- 238000004364 calculation method Methods 0.000 claims abstract description 35
- 238000000034 method Methods 0.000 claims description 14
- 238000003384 imaging method Methods 0.000 claims description 11
- 230000002708 enhancing effect Effects 0.000 abstract description 2
- 238000009825 accumulation Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 11
- 238000005286 illumination Methods 0.000 description 5
- 230000001186 cumulative effect Effects 0.000 description 4
- 230000007423 decrease Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
Images
Landscapes
- Image Processing (AREA)
- Picture Signal Circuits (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
本発明は、撮像素子より得られる画像に対して輝度変換による補正を施す輝度変換装置に関し、特に、輝度の分布に偏りがあり、コントラストが小さくなっている画像を補正する輝度変換装置に関する。 The present invention relates to a luminance conversion device that performs correction by luminance conversion on an image obtained from an image sensor, and more particularly, to a luminance conversion device that corrects an image in which the luminance distribution is biased and the contrast is small.
従来の輝度変換装置は、輝度の分布に偏りがあり、コントラストが小さくなっている画像を補正するために、ヒストグラム平滑化による手法に過補正を防止する手法を追加して、コントラスト強調を行っている。図6はその構成図であり、図7は従来の輝度変換処理の概略説明図である。 In order to correct an image where the brightness distribution is biased and the contrast is low, the conventional brightness conversion device adds a technique to prevent overcorrection to the technique by histogram smoothing, and performs contrast enhancement. Yes. FIG. 6 is a configuration diagram thereof, and FIG. 7 is a schematic explanatory diagram of a conventional luminance conversion process.
図6において、輝度ヒストグラム作成部601では、入力画像の各画素位置における輝度のヒストグラムが作成され、その結果は図7(a)に示すグラフになる。輝度変換処理の概要としては、当該ヒストグラムを累積した累積曲線が作成され、出力輝度の範囲に収まるように累積値が正規化されて、輝度変換ルックアップテーブル(輝度変換LUT)が作成され、当該輝度変換LUTを用いて入力画像の輝度変換が行われる。図7(b)は輝度変換LUTを示している。図7(a)の輝度ヒストグラムと図7(b)の輝度変換LUTを比べると、輝度ヒストグラムで高い頻度になる輝度701では、輝度変換LUT702の傾きが大きくなる。したがって、上記の処理により、コントラストを大きくする輝度変換がなされる。
In FIG. 6, the luminance
ただし、上記の輝度変換処理では、輝度が一定の画素が広範囲にあると、過剰にコントラストが強調される。そこで、従来の輝度変換装置は、輝度ヒストグラムに上限を設ける輝度ヒストグラムリミット部602によって過剰なコントラスト強調を防いでいた。図7(c)はリミットを設けた場合の輝度ヒストグラムを示している。図7(a)の輝度ヒストグラムがリミット703により制限されて、図7(c)の輝度ヒストグラム704になる。輝度変換LUT作成部603は、リミットがかけられた輝度ヒストグラムを累積して輝度変換LUTを作成し、これにより、図7(c)の輝度変換LUT705が作成される。輝度変換部604は当該輝度変換LUTにより入力画像の輝度を変換する。このようにして、過剰なコントラスト強調を防止しつつ、コントラストの改善がなされる。
However, in the above-described luminance conversion process, if a pixel having a constant luminance is in a wide range, the contrast is excessively enhanced. Therefore, the conventional luminance conversion apparatus prevents excessive contrast enhancement by the luminance
輝度ヒストグラムを用いる従来の輝度変換装置は、例えば、特許文献1に開示されている。
しかしながら、従来の輝度変換装置においては、過剰な変換を防ぐ機能を有してはいるが、輝度ヒストグラムに依存した輝度変換を行うため、輝度ヒストグラムの小さい撮影対象を処理したときにコントラストが低下する問題があった。 However, the conventional luminance conversion device has a function of preventing excessive conversion, but performs luminance conversion depending on the luminance histogram, so that the contrast is lowered when a photographing object having a small luminance histogram is processed. There was a problem.
例えば、図8(a)の画像が入力されたとする。この入力画像では、建物の壁面801に人物802が書かれている。壁面801には、輝度ヒストグラムの上限に抵触しない程度にグラデーションが掛かっているとする。このような画像が入力された場合、輝度ヒストグラムは、図8(b)に示すグラフになる。図8(b)において、符号803は人物の輝度を示し、符号804は建物の壁面部分の輝度を示している。この輝度ヒストグラムを累積して得られる輝度変換LUTは、図8(c)になる。この輝度変換LUTを用いると、建物の壁面と人物との輝度差(コントラスト)805を減少させしまうことになる。
For example, assume that the image of FIG. In this input image, a
上記の例に示されるように、従来の輝度変換装置は、輝度変化が小さく輝度が一様な建物の壁面などを背景に、輝度変化が大きく輝度が一様でない人物などが撮影された場合に、人物などのコントラストを低下させてしまうことがある。 As shown in the above example, the conventional luminance conversion device is used when a person with a large luminance change and a non-uniform luminance is photographed against the background of a building wall where the luminance change is small and the luminance is uniform. The contrast of a person or the like may be reduced.
本発明は、従来の問題を解決するためになされたもので、その目的は、上記の例のような場合に、輝度が一様な部分のコントラストを下げ、輝度が一様でない部分のコントラストを強調する好適な輝度変換を行うことができる輝度変換装置を提供することにある。 The present invention has been made in order to solve the conventional problems. The purpose of the present invention is to reduce the contrast of a portion where the luminance is uniform and reduce the contrast of a portion where the luminance is not uniform in the case of the above example. An object of the present invention is to provide a luminance conversion apparatus capable of performing suitable luminance conversion for emphasis.
本発明の輝度変換装置は、入力画像の輝度を輝度変換テーブルを用いて変換し出力画像を得る装置であって、前記入力画像の各画素位置におけるエッジ強度を算出するエッジ強度算出部と、前記エッジ強度から各画素位置がエッジであるか否かを判定するエッジ判定部と、前記エッジの数を輝度別に積算して、輝度別のエッジ数を表すエッジヒストグラムを算出する輝度別エッジ頻度算出部と、入力画像の輝度別の画素数を表す輝度ヒストグラムを算出する輝度ヒストグラム算出部と、前記エッジヒストグラムと前記輝度ヒストグラムを用いて、輝度毎にエッジ数を画素数で除算することにより、輝度別のエッジ密度を算出する輝度別エッジ密度算出部と、前記輝度別のエッジ密度を用いて輝度変換ルックアップテーブルを作成する輝度変換ルックアップテーブル作成部と、前記輝度変換ルックアップテーブル作成部により作成された前記輝度変換ルックアップテーブルを使用して入力画像の輝度を変換する輝度変換部と、を備えている。 The luminance conversion apparatus of the present invention is an apparatus that obtains an output image by converting luminance of an input image using a luminance conversion table, an edge intensity calculation unit that calculates edge intensity at each pixel position of the input image, and An edge determination unit that determines whether or not each pixel position is an edge from the edge intensity, and an edge frequency calculation unit by luminance that calculates the edge histogram representing the number of edges by luminance by integrating the number of edges by luminance A luminance histogram calculation unit for calculating a luminance histogram representing the number of pixels for each luminance of the input image, and by dividing the number of edges by the number of pixels for each luminance by using the edge histogram and the luminance histogram. Luminance-by-brightness edge density calculation unit for calculating edge density and luminance conversion for creating a luminance conversion lookup table using the edge-specific edge density Tsu comprises click and up table forming unit, and a luminance converter for converting the luminance of the input image using the luminance conversion look-up table created by the luminance conversion look-up table forming unit.
この構成により、輝度毎にエッジ数を画素数で除算することにより求められた輝度別のエッジ密度に基づいて輝度変換ルックアップテーブル(輝度変換LUT)が作成される。輝度変換LUTの作成では、エッジ密度をコントラストの評価値としてLUTが作成され、より詳細には、エッジ密度の累積曲線を輝度の出力幅に応じて正規化して輝度変換LUTが作成される。エッジ密度は、輝度が一様な部分では小さくなり、輝度が一様でない部分で高くなる。したがって、エッジ密度から作成した輝度変換LUTを用いて変換を行うと、輝度が一様な部分のコントラストが小さくなり、輝度が一様でない部分のコントラストが大きくなる。こうして、本発明によれば、従来のように輝度ヒストグラムに依存して輝度を決定する代わりに、輝度の変化量の程度を表すエッジ密度を用いることにより、輝度が一様な部分のコントラストを下げ、輝度が一様な部分のコントラストを強調する好適な輝度変換を行うことができる。 With this configuration, a luminance conversion lookup table (luminance conversion LUT) is created based on the edge density for each luminance obtained by dividing the number of edges for each luminance by the number of pixels. In creating the brightness conversion LUT, the LUT is created using the edge density as the contrast evaluation value, and more specifically, the brightness conversion LUT is created by normalizing the cumulative curve of the edge density in accordance with the output width of the brightness. The edge density decreases at a portion where the luminance is uniform and increases at a portion where the luminance is not uniform. Therefore, when conversion is performed using the luminance conversion LUT created from the edge density, the contrast of the portion with uniform luminance is reduced, and the contrast of the portion with non-uniform luminance is increased. Thus, according to the present invention, instead of determining the luminance depending on the luminance histogram as in the prior art, the edge density representing the degree of change in luminance is used to reduce the contrast of the portion where the luminance is uniform. Therefore, it is possible to perform suitable luminance conversion that enhances the contrast of a portion with uniform luminance.
また、本発明の輝度変換装置は、前記エッジ強度が所定の閾強度範囲外である画素位置をエッジから除外するエッジリミット部を備えている。 In addition, the luminance conversion apparatus of the present invention includes an edge limit unit that excludes, from the edge, pixel positions whose edge intensity is outside a predetermined threshold intensity range.
この構成により、エッジ強度の上限値が設けられ、エッジ強度が上限値を超える画素位置はエッジから除外される。この構成は、逆光などの照明条件下において、非常に明るい部分と非常に暗い部分がある画像が入力された場合に有利である。このような画像が入力されたときに、両部分の境界でエッジが検出されると、両部分間の輝度差を広げる変換がなされてしまう。しかし、本発明によれば、境界のエッジが検出されないので、境界部分の影響を抑えることができ、これにより、各部分におけるコントラストを強調する変換がなされる。したがって、逆光などの照明条件下の画像のコントラスト感が上昇し、鮮明な画像が得られる。 With this configuration, an upper limit value of edge strength is provided, and pixel positions where the edge strength exceeds the upper limit value are excluded from the edge. This configuration is advantageous when an image having a very bright part and a very dark part is input under illumination conditions such as backlight. When such an image is input, if an edge is detected at the boundary between the two parts, conversion that widens the luminance difference between the two parts is performed. However, according to the present invention, since the boundary edge is not detected, it is possible to suppress the influence of the boundary portion, thereby performing conversion for enhancing the contrast in each portion. Therefore, the contrast of the image under illumination conditions such as backlight is increased, and a clear image can be obtained.
本発明の別の態様は撮像装置であり、この撮像装置は、上述した本発明の輝度変換装置を備え、撮像素子で撮影された画像を前記輝度変換装置で処理する。この態様によっても上述の本発明の利点が得られる。 Another aspect of the present invention is an imaging device, and the imaging device includes the above-described luminance conversion device of the present invention, and processes an image photographed by the imaging element by the luminance conversion device. This aspect also provides the above-described advantages of the present invention.
本発明の別の態様は、入力画像の輝度を輝度変換テーブルを用いて変換し出力画像を得る輝度変換方法であって、前記入力画像の各画素位置におけるエッジ強度を算出し、前記エッジ強度から各画素位置がエッジであるか否かを判定し、前記エッジの数を輝度別に積算して、輝度別のエッジ数を表すエッジヒストグラムを算出し、入力画像の輝度別の画素数を表す輝度ヒストグラムを算出し、前記エッジヒストグラムと前記輝度ヒストグラムを用いて、輝度毎にエッジ数を画素数で除算することにより、輝度別のエッジ密度を算出し、前記輝度別のエッジ密度を用いて輝度変換ルックアップテーブルを作成し、前記輝度変換ルックアップテーブルを使用して入力画像の輝度を変換する。この態様によっても上述の本発明の利点が得られる。 Another aspect of the present invention is a luminance conversion method for obtaining an output image by converting the luminance of an input image using a luminance conversion table, calculating edge strength at each pixel position of the input image, and calculating from the edge strength It is determined whether or not each pixel position is an edge, the number of edges is integrated for each luminance, an edge histogram representing the number of edges for each luminance is calculated, and a luminance histogram representing the number of pixels for each luminance of the input image Using the edge histogram and the brightness histogram, the edge density for each brightness is divided by the number of pixels to calculate the edge density for each brightness, and the brightness conversion look is calculated using the edge density for each brightness. An up table is created, and the luminance of the input image is converted using the luminance conversion lookup table. This aspect also provides the above-described advantages of the present invention.
本発明は、輝度の変化量を表すエッジ密度を輝度変換LUT作成に使用することにより、輝度が一様な建物の壁面などを背景に輝度が一様でない人物などが撮影された場合に、輝度が一様な部分のコントラストを下げ、輝度が一様でない部分のコントラストを強調する好適な輝度変換を行うことができるという効果を有する輝度変換装置を提供できる。 The present invention uses the edge density representing the amount of change in luminance to create a luminance conversion LUT, so that when a person with non-uniform luminance is photographed against the background of a wall surface of a building with uniform luminance, the luminance Therefore, it is possible to provide a luminance conversion device having an effect of reducing the contrast of a uniform portion and performing suitable luminance conversion that enhances the contrast of a portion where the luminance is not uniform.
以下、本発明の実施の形態の輝度変換装置について、図面を用いて説明する。 Hereinafter, a luminance conversion apparatus according to an embodiment of the present invention will be described with reference to the drawings.
(実施の形態1)
本発明の第1の実施の形態における輝度変換装置の構成を図1に示す。図1の輝度変換装置は、撮像素子と共に撮像装置に設けられ、撮像素子からの入力画像である静止画を処理して輝度を変換するように構成される。
(Embodiment 1)
FIG. 1 shows the configuration of the luminance conversion apparatus according to the first embodiment of the present invention. The luminance conversion apparatus in FIG. 1 is provided in an image pickup apparatus together with an image pickup element, and is configured to process a still image that is an input image from the image pickup element and convert the luminance.
図1において、本実施の形態の輝度変換装置は、入力画像の各画素位置におけるエッジ強度を出力するエッジ強度算出部100と、エッジ強度からエッジを判定するエッジ判定部101と、エッジ判定部101により判定されたエッジの数を輝度別に積算してエッジヒストグラムを算出する輝度別エッジ頻度算出部102と、入力画像の輝度ヒストグラムを算出する輝度ヒストグラム算出部103と、エッジヒストグラムと輝度ヒストグラムを用いて、輝度毎にエッジ数を画素数で除算することで輝度別にエッジ密度を算出する輝度別エッジ密度算出部104と、エッジ密度をコントラスト強調の評価値とする輝度変換LUTを作成する輝度変換LUT作成部105と、その輝度変換LUTを使用して入力輝度を変換する輝度変換部106とを有する。
In FIG. 1, the luminance conversion apparatus according to the present embodiment includes an edge
上記構成において、エッジ強度算出部100は、入力画像の各画素位置における輝度と周辺画素の輝度からエッジ強度を算出する。エッジ強度は、各々の着目画素における輝度と周辺画素の輝度の差分で表される。エッジ判定部101は、所定の閾値以上のエッジ強度をエッジ強度算出部100から受け取った場合に、着目画素がエッジであると判定する(この処理おいて、エッジとは、エッジ強度が閾値以上である画素である)。輝度別エッジ頻度算出部102は、エッジと判定された画素位置の輝度からヒストグラムを作成し、これにより、輝度別のエッジ数を表すエッジヒストグラムを作成する。
In the above configuration, the edge
輝度ヒストグラム算出部103は、入力画像の輝度別に画素数を算出して、輝度ヒストグラムを作成する。
The luminance
輝度別エッジ密度算出部104は、その輝度ヒストグラムとエッジヒストグラムより、同じ輝度のエッジ数を画素数で割ることで、輝度別エッジ密度を算出する。こうして得られる輝度別エッジ密度は、面積の影響を受けることなく、各輝度における輝度変化の程度を表すパラメータである。輝度変換LUT作成部105は、輝度別エッジ密度を累積して、出力輝度の範囲に収まるように累積値を正規化し、輝度変換LUTの作成を行う。この処理では、従来の輝度ヒストグラムの代わりに輝度別エッジ密度が用いられる。輝度変換部106は、輝度変換LUT作成部105により作成された輝度変換LUTを使用して、入力輝度を変換する。
The luminance-specific edge
以上のように構成された輝度変換装置について、図2および図3を用いてその動作を説明する。図2は、輝度変換装置の動作を示すフロー図であり、図3は、輝度変換処理の概要を示している。 The operation of the luminance conversion apparatus configured as described above will be described with reference to FIGS. FIG. 2 is a flowchart showing the operation of the luminance conversion apparatus, and FIG. 3 shows an outline of the luminance conversion processing.
入力画像は、図1のエッジ強度算出部100、頻度ヒストグラム算出部103および輝度変換部106へ入力される。エッジ強度算出部100とエッジ判定部101では、以下のようにして、入力画像からエッジが検出される(図2、ステップ1)。
The input image is input to the edge
エッジ強度算出部100は、入力画像の各画素において、着目画素とその周辺8画素の輝度から、8方向のエッジ強度を算出する。図3(a)はその様子を示している。図3(a)では、中央の画素が着目画素であり、各矢印は輝度の比較を示している。本実施の形態では、エッジ強度は、着目画素の輝度と各矢印方向の画素の輝度の差分絶対値であり、図示のように着目画素から周辺8方向のエッジ強度が算出される。次に、エッジ判定部101で、8方向のエッジ強度それぞれに対して閾値処理を行い、エッジ判定が行われる。ここでは、エッジ強度が閾値以上で有れば、着目画素がエッジであると判定される。判定結果は輝度別エッジ頻度算出部102へ出力される。このようにして、エッジ強度算出部100とエッジ判定部101によりエッジが検出される。
The edge
次に、輝度別エッジ頻度算出部102、輝度ヒストグラム算出部103および輝度別エッジ密度算出部104で、輝度毎のエッジ密度が算出される(図2のステップ2)。ここでは、前述したように、輝度別のエッジ数が積算されてエッジヒストグラムが作成され、一方で輝度別の画素数が積算されてヒストグラムが作成され、そして、輝度毎にエッジ数が画素数で割られる。
Next, the edge density for each luminance is calculated by the luminance-specific edge
図3(b)〜図3(d)は、輝度別エッジ密度の算出処理を示している。図3(b)は入力画像の例である。この入力画像は、輝度の変化が激しい矩形領域301と、輝度が一様に変化している背景302をもっている。例えば、背景302は輝度変換が少ない建物の壁面であり、領域301は人物である。
FIG. 3B to FIG. 3D show the processing for calculating the edge density by luminance. FIG. 3B is an example of an input image. This input image has a
図3(c)は、図3(b)の入力画像から作成されたエッジヒストグラムである。入力画像では、輝度の変化が激しい矩形領域301よりも、輝度が一様な背景302の面積が大きい。そのため、矩形領域301に対応するエッジ頻度303よりも、背景302のエッジ頻度304が大きくなる。
FIG. 3C is an edge histogram created from the input image of FIG. In the input image, the area of the
そこで、輝度ヒストグラム算出部103より算出された輝度の頻度で、同じ輝度のエッジ頻度に対して除算が行われ、エッジ密度が算出される。これにより、図3(d)に示すように、輝度の変化が激しい矩形領域301の密度305は大きくなり、輝度が一様に変化している背景302のエッジ密度306は小さくなる。こうして、面積の影響を抑えて、輝度変化の程度を表すパラメータであるエッジ密度が得られる。
Therefore, the edge frequency of the same luminance is divided by the luminance frequency calculated by the luminance
次に、輝度変換LUT作成部105にて、輝度毎に算出したエッジ密度を使用して輝度変換LUTを作成する(図2のステップ3)。輝度変換LUT作成部105では、輝度変換LUTの作成にヒストグラム平滑化と同じ手順が適用され、輝度ヒストグラムの代わりにエッジ密度を使用して輝度変換LUTが作成される。つまり、エッジ密度を積算した累積曲線を作成して、出力輝度の範囲に収まるように累積値を正規化したものが、輝度変換LUTである。当該輝度変換LUTでは、エッジ密度の大きさに比例して輝度変換LUTの傾きが大きくなるので、出力輝度のエッジの振幅は大きくなる。
Next, the brightness conversion
図3(e)は輝度変換LUTを示したグラフである。入力画像にて輝度が一様でない矩形領域301に対応する領域307では、輝度変換LUTの傾きが大きくなる。また、入力画像にて輝度が一様な背景302に対応する領域308では、輝度変換LUTの傾きが小さくなる。
FIG. 3E is a graph showing the luminance conversion LUT. In the
そして、輝度変換部106では、上述のようにして作成された輝度変換LUTを使用して、輝度変換が行われる(図2のステップ4)。これにより、入力画像にて輝度値が一様な変化をする部分では変化量を少なくし、一様でない部分では変化量を多くする輝度変換が行われる。
Then, the
このような本発明の第1の実施の形態の輝度変換装置によれば、輝度変換LUT作成時に、平均変化量を表すエッジ密度を使用することにより、一様な変化をする部分では変化量を少なく、一様でない部分では変化量を多くさせる輝度変換LUTが作成される。作成された輝度変換LUTを使用して、入力画像の輝度を変換することで、輝度が一様でない部分のコントラストを強調する輝度変換装置を提供することができる。 According to the luminance conversion apparatus of the first embodiment of the present invention as described above, when the luminance conversion LUT is created, the edge density representing the average change amount is used, so that the change amount is uniform in the portion where the change is uniform. A luminance conversion LUT that increases the amount of change in a small and non-uniform portion is created. By using the created luminance conversion LUT to convert the luminance of the input image, it is possible to provide a luminance conversion device that enhances the contrast of a portion where the luminance is not uniform.
したがって、例えば、輝度変化が乏しい建物の壁面を背景に人物などが撮影された場合にも、人物のコントラストを好適に強調することができる。 Therefore, for example, even when a person or the like is photographed against the background of a wall surface of a building where luminance change is scarce, the contrast of the person can be favorably enhanced.
(実施の形態2)
次に、本発明の第2の実施の形態の輝度変換装置の構成を示すブロック図を図4に示す。図4において、図1と同様の構成要素には同一の参照符号が付されている。以下、第1の実施の形態と重複する事項の説明は省略する。
(Embodiment 2)
Next, FIG. 4 is a block diagram showing the configuration of the luminance conversion apparatus according to the second embodiment of the present invention. In FIG. 4, the same components as those in FIG. 1 are denoted by the same reference numerals. Hereinafter, description of matters overlapping with the first embodiment will be omitted.
第2の実施の形態の輝度変換装置は、入力画像に非常に明るい部分と、非常に暗い部分がある場合に対応するために、第1の実施の形態のエッジ判定部101の前に、エッジリミット部400を設けて、明暗境界部分のエッジを除外するものである。
In order to cope with the case where the input image includes a very bright part and a very dark part, the brightness conversion apparatus according to the second embodiment has an edge before the
逆光などの照明条件下における撮影画像は、入力画像に非常に明るい部分と、非常に暗い部分を含むことがある。このような場合において、明るい部分と暗い部分の境界では、十分に輝度差が大きいのでコントラスト強調を行う必要がない。 A captured image under an illumination condition such as backlight may include a very bright portion and a very dark portion in the input image. In such a case, the brightness difference is sufficiently large at the boundary between the bright part and the dark part, so there is no need to perform contrast enhancement.
しかし、上述の実施の形態の輝度変換装置を使用すると、境界部分でエッジが検出され、エッジを用いて輝度変換処理が行われ、その結果、非常に明るい部分と、非常に暗い部分それぞれのコントラストは低下してしまう。 However, when the luminance conversion apparatus according to the above-described embodiment is used, an edge is detected at the boundary portion, and luminance conversion processing is performed using the edge. As a result, the contrast between the very bright portion and the very dark portion is determined. Will fall.
そこで、本実施の形態では、当該コントラスト低下を防止するため、図4に示すように、エッジ判定部101の前にエッジリミット部400が設けられている。エッジリミット部400は、エッジ強度が所定の閾強度範囲外である画素位置をエッジから除外するための構成である。閾強度範囲としては上限値が設定される。上限値と下限値が設けられてもよい。
Therefore, in the present embodiment, an
図5は、エッジリミット部400の処理を示している。本実施の形態では、エッジリミット部400は、前段階で算出されるエッジ強度が所定のレベル以上(図5の上限値Th以上)であれば、エッジ強度が閾強度範囲外であるとして、画素のエッジ強度を0とする。エッジ強度を0にすることによって、エッジリミット部400は、後段のエッジ判定部101にて当該画素がエッジと判定されないようにしている。これにより、明暗部分間の輝度の差が開くのを防止することができる。また、この処理を行うことによって、明暗の境界部分では、輝度別エッジ密度算出部104で算出されるエッジ密度が下がり、その結果、コントラストが強調される部分が、非常に明るい部分と非常に暗い部分との境界以外になる。
FIG. 5 shows the processing of the
このような本発明の第2の実施の形態の輝度変換装置によれば、本発明の第1の実施の形態の輝度変換装置の作用に加えて、逆光などの照明条件下の画像においてもコントラスト感が上昇し、鮮明な画像が得られる。 According to the brightness conversion apparatus of the second embodiment of the present invention as described above, in addition to the function of the brightness conversion apparatus of the first embodiment of the present invention, contrast is also obtained in an image under illumination conditions such as backlight. The feeling increases and a clear image can be obtained.
(実施の形態3)
次に、本発明の第3の実施の形態について説明する。以下、上述の第1、第2の実施の形態と重複する事項の説明は省略する。
(Embodiment 3)
Next, a third embodiment of the present invention will be described. Hereinafter, description of matters overlapping with the above-described first and second embodiments will be omitted.
第3の実施の形態は、第1または第2の輝度変換装置を有する撮像装置であり、この撮像装置は、CCD等の撮像素子を備え、撮像素子で撮影された画像を輝度変換装置に入力して、輝度変換処理を行う。 The third embodiment is an imaging device having the first or second luminance conversion device. The imaging device includes an imaging device such as a CCD, and inputs an image captured by the imaging device to the luminance conversion device. Then, luminance conversion processing is performed.
本実施の形態においては、撮像装置は、連続して2回撮影する機能を有している。これにより、輝度変換装置は、1回目の撮影で得られた画像データにより、輝度変換LUTの作成を行う。そして、輝度変換装置は、続いて2回目の撮影で得られた画像データに対して、1回目の撮影で作成された輝度変換LUTを用いて輝度変換を行い、その結果を出力する。 In the present embodiment, the imaging device has a function of capturing images twice in succession. Thereby, the brightness conversion apparatus creates a brightness conversion LUT from the image data obtained by the first shooting. Then, the luminance conversion apparatus performs luminance conversion on the image data obtained by the second shooting using the luminance conversion LUT created by the first shooting, and outputs the result.
このような本発明の第3の実施の形態の撮像装置によれば、上述の第1、第2の実施の形態で説明した本発明の輝度変換機能を好適に提供することができる。 According to the imaging apparatus of the third embodiment of the present invention as described above, the luminance conversion function of the present invention described in the first and second embodiments can be suitably provided.
以上のように、本発明にかかる輝度変換装置は、輝度エッジの密度を輝度変換LUT作成に使用することで、輝度の変化が乏しく一様な建物の壁面などを背景にして撮影された人物などのコントラストを増加させ、また、逆光などの照明条件下においても、コントラスト感を損なうことのない輝度変換が行えるという効果を有し、撮像素子から得られる画像を処理する輝度変換装置等として有用である。 As described above, the brightness conversion apparatus according to the present invention uses the density of brightness edges to create a brightness conversion LUT, so that a person who is photographed against a background of a uniform wall or the like with little change in brightness. It is effective as a brightness conversion device that processes the image obtained from the image sensor, and has the effect of performing brightness conversion without impairing the contrast even under illumination conditions such as backlight. is there.
100 エッジ強度算出部
101 エッジ判定部
102 輝度別エッジ頻度算出部
103 輝度ヒストグラム算出部
104 輝度別エッジ密度算出部
105 輝度変換LUT作成部
106 輝度変換部
400 エッジリミット部
DESCRIPTION OF
Claims (4)
前記入力画像の各画素位置におけるエッジ強度を算出するエッジ強度算出部と、
前記エッジ強度から各画素位置がエッジであるか否かを判定するエッジ判定部と、
前記エッジの数を輝度別に積算して、輝度別のエッジ数を表すエッジヒストグラムを算出する輝度別エッジ頻度算出部と、
入力画像の輝度別の画素数を表す輝度ヒストグラムを算出する輝度ヒストグラム算出部と、
前記エッジヒストグラムと前記輝度ヒストグラムを用いて、輝度毎にエッジ数を画素数で除算することにより、輝度別のエッジ密度を算出する輝度別エッジ密度算出部と、
前記輝度別のエッジ密度を用いて輝度変換ルックアップテーブルを作成する輝度変換ルックアップテーブル作成部と、
前記輝度変換ルックアップテーブル作成部により作成された前記輝度変換ルックアップテーブルを使用して入力画像の輝度を変換する輝度変換部と、
を備えることを特徴とする輝度変換装置。 A luminance conversion device that converts the luminance of an input image using a luminance conversion table to obtain an output image,
An edge strength calculator that calculates edge strength at each pixel position of the input image;
An edge determination unit that determines whether each pixel position is an edge from the edge intensity;
An edge frequency calculation unit by luminance that calculates the edge histogram representing the number of edges by luminance by integrating the number of edges by luminance;
A luminance histogram calculation unit for calculating a luminance histogram representing the number of pixels by luminance of the input image;
Using the edge histogram and the luminance histogram, by dividing the number of edges for each luminance by the number of pixels, an edge density calculation unit by luminance for calculating edge density by luminance,
A luminance conversion lookup table creating unit that creates a luminance conversion lookup table using the edge density for each luminance; and
A luminance conversion unit that converts the luminance of the input image using the luminance conversion lookup table created by the luminance conversion lookup table creation unit;
A luminance conversion device comprising:
前記入力画像の各画素位置におけるエッジ強度を算出し、
前記エッジ強度から各画素位置がエッジであるか否かを判定し、
前記エッジの数を輝度別に積算して、輝度別のエッジ数を表すエッジヒストグラムを算出し、
入力画像の輝度別の画素数を表す輝度ヒストグラムを算出し、
前記エッジヒストグラムと前記輝度ヒストグラムを用いて、輝度毎にエッジ数を画素数で除算することにより、輝度別のエッジ密度を算出し、
前記輝度別のエッジ密度を用いて輝度変換ルックアップテーブルを作成し、
前記輝度変換ルックアップテーブルを使用して入力画像の輝度を変換することを特徴とする輝度変換方法。 A luminance conversion method for converting the luminance of an input image using a luminance conversion table to obtain an output image,
Calculating the edge strength at each pixel position of the input image;
Determine whether each pixel position is an edge from the edge intensity,
The number of edges is integrated by luminance, and an edge histogram representing the number of edges by luminance is calculated.
Calculate a luminance histogram representing the number of pixels by luminance of the input image,
Using the edge histogram and the luminance histogram, the edge density for each luminance is calculated by dividing the number of edges by the number of pixels for each luminance,
Create a brightness conversion lookup table using the edge density for each brightness,
A luminance conversion method, wherein the luminance of an input image is converted using the luminance conversion lookup table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006168438A JP4550016B2 (en) | 2006-06-19 | 2006-06-19 | Brightness converter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006168438A JP4550016B2 (en) | 2006-06-19 | 2006-06-19 | Brightness converter |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007336419A true JP2007336419A (en) | 2007-12-27 |
JP4550016B2 JP4550016B2 (en) | 2010-09-22 |
Family
ID=38935438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006168438A Active JP4550016B2 (en) | 2006-06-19 | 2006-06-19 | Brightness converter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4550016B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100940490B1 (en) | 2008-03-26 | 2010-02-04 | 삼성탈레스 주식회사 | Apparatus for improving a quality of an image |
JP2010220032A (en) * | 2009-03-18 | 2010-09-30 | Victor Co Of Japan Ltd | Video signal processing method and video signal processing apparatus |
KR101071567B1 (en) | 2009-02-27 | 2011-10-10 | 숭실대학교산학협력단 | Contrast Enhancement Using a Density based Sub-histogram Equalization Technique |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5514344B2 (en) | 2012-05-15 | 2014-06-04 | シャープ株式会社 | Video processing device, video processing method, television receiver, program, and recording medium |
JP5399578B2 (en) | 2012-05-16 | 2014-01-29 | シャープ株式会社 | Image processing apparatus, moving image processing apparatus, video processing apparatus, image processing method, video processing method, television receiver, program, and recording medium |
JP6338408B2 (en) * | 2014-03-14 | 2018-06-06 | 三菱電機株式会社 | Image encoding device, image decoding device, image encoding method, and image decoding method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000228747A (en) * | 1998-12-03 | 2000-08-15 | Olympus Optical Co Ltd | Picture processor |
JP2001245129A (en) * | 2000-02-25 | 2001-09-07 | Olympus Optical Co Ltd | Image processing unit |
JP2002223355A (en) * | 2001-01-25 | 2002-08-09 | Olympus Optical Co Ltd | Image processor and recording medium with image processing program recorded thereon |
JP2003046848A (en) * | 2001-07-27 | 2003-02-14 | Olympus Optical Co Ltd | Imaging system and program |
JP2004312387A (en) * | 2003-04-07 | 2004-11-04 | Sharp Corp | Image processing method, image processing device, image forming device, image pickup device, and computer program |
-
2006
- 2006-06-19 JP JP2006168438A patent/JP4550016B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000228747A (en) * | 1998-12-03 | 2000-08-15 | Olympus Optical Co Ltd | Picture processor |
JP2001245129A (en) * | 2000-02-25 | 2001-09-07 | Olympus Optical Co Ltd | Image processing unit |
JP2002223355A (en) * | 2001-01-25 | 2002-08-09 | Olympus Optical Co Ltd | Image processor and recording medium with image processing program recorded thereon |
JP2003046848A (en) * | 2001-07-27 | 2003-02-14 | Olympus Optical Co Ltd | Imaging system and program |
JP2004312387A (en) * | 2003-04-07 | 2004-11-04 | Sharp Corp | Image processing method, image processing device, image forming device, image pickup device, and computer program |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100940490B1 (en) | 2008-03-26 | 2010-02-04 | 삼성탈레스 주식회사 | Apparatus for improving a quality of an image |
KR101071567B1 (en) | 2009-02-27 | 2011-10-10 | 숭실대학교산학협력단 | Contrast Enhancement Using a Density based Sub-histogram Equalization Technique |
JP2010220032A (en) * | 2009-03-18 | 2010-09-30 | Victor Co Of Japan Ltd | Video signal processing method and video signal processing apparatus |
Also Published As
Publication number | Publication date |
---|---|
JP4550016B2 (en) | 2010-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6116272B2 (en) | Image processing apparatus, image processing method, program, and storage medium | |
EP2911110A2 (en) | Image signal processing apparatus, image signal processing method, and image capturing apparatus | |
JP6074254B2 (en) | Image processing apparatus and control method thereof | |
KR100901353B1 (en) | Image processing apparatus and method thereof | |
US20080252750A1 (en) | Image processing apparatus and method | |
JP4550016B2 (en) | Brightness converter | |
JP6097588B2 (en) | Image processing apparatus and image processing method | |
US10091422B2 (en) | Image processing device and recording medium | |
US9582868B2 (en) | Image processing apparatus that appropriately performs tone correction in low-illuminance environment, image processing method therefor, and storage medium | |
JP5648849B2 (en) | Image processing apparatus and image processing method | |
US7289666B2 (en) | Image processing utilizing local color correction and cumulative histograms | |
JP4851505B2 (en) | Image processing apparatus and image processing method | |
JPH1132236A (en) | Image-processing unit | |
JP2005252869A (en) | Video signal processing apparatus and method | |
JP2007336258A (en) | Video signal processor and video signal processing method | |
JP6552325B2 (en) | Imaging device, control method of imaging device, and program | |
JP6548403B2 (en) | IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM | |
JP2009296210A5 (en) | ||
JP6558935B2 (en) | Image processing apparatus, control method thereof, control program, and imaging apparatus | |
JP2011077797A (en) | Image processor, imaging device, image processing method, and program | |
JP2006277688A (en) | Apparatus and method for improving image quality, and program therefor | |
JP2006279162A (en) | Method for inputting image and device for inputting image using the same | |
JP5294595B2 (en) | Outline enhancement method | |
JP2012205031A (en) | Image signal processing apparatus | |
JP2007067985A (en) | Luminance converting apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090302 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100406 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100531 |
|
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: 20100622 |
|
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: 20100707 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4550016 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130716 Year of fee payment: 3 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |