JP2012238328A - Image processing device and image processing program - Google Patents
Image processing device and image processing program Download PDFInfo
- Publication number
- JP2012238328A JP2012238328A JP2012173412A JP2012173412A JP2012238328A JP 2012238328 A JP2012238328 A JP 2012238328A JP 2012173412 A JP2012173412 A JP 2012173412A JP 2012173412 A JP2012173412 A JP 2012173412A JP 2012238328 A JP2012238328 A JP 2012238328A
- Authority
- JP
- Japan
- Prior art keywords
- image
- control point
- calculated
- pixels
- correction
- 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
- 238000012937 correction Methods 0.000 claims abstract description 126
- 238000000034 method Methods 0.000 claims description 22
- 238000003702 image correction Methods 0.000 abstract description 35
- 238000010586 diagram Methods 0.000 description 35
- 230000006870 function Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000009827 uniform distribution Methods 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
Images
Abstract
Description
この発明は、入力画像の特徴に応じて画像補正するための補正カーブの形状を指定する制御点を算出する画像処理装置に関する。 The present invention relates to an image processing apparatus that calculates control points that specify the shape of a correction curve for correcting an image in accordance with the characteristics of an input image.
従来より、動画や静止画などの画像を補正する画像補正は、入力される画像の特徴に応じて補正を行なうことで、様々なシーンに対応して綺麗で見やすい画像を出力している。例えば、デジタルカメラなどで撮影された画像において、逆光画像のような暗部の階調が見えにくい画像を補正する場合には、画像の各画素ごとに、暗い部分を明るくする補正を行なう。 2. Description of the Related Art Conventionally, image correction for correcting images such as moving images and still images is performed according to the characteristics of an input image, thereby outputting beautiful and easy-to-view images corresponding to various scenes. For example, in the case where an image taken with a digital camera or the like is used to correct an image such as a backlight image in which dark gradation is difficult to see, correction is performed to brighten the dark portion for each pixel of the image.
また、非特許文献1では、図17および図18に示すように、画像補正処理後のヒストグラムが均等分布になるように画像補正を行なう。具体的に説明すると、入力された画像から算出されるヒストグラムを明るさの度合いによって暗部、中間部および明部などの複数ビンに分割し、全体の画素数に対する各ビンの画素数の割合によって階調の拡大または階調の縮小を行なって、画像処理後のヒストグラムが均等分布になるように画像補正を行なう。なお、図17および図18は、従来技術に係る画像補正におけるヒストグラム均等化を説明するための図である。
In
そして、非特許文献1では、ヒストグラムを均等化した後、図19および図20に示すように、画像補正に用いる補正カーブを算出して画像補正を行なう。具体的に説明すると、全体の画素数に対する各ビンの画素数の割合に伴って算出された補正カーブを用いて画像補正を行なう。つまり、非特許文献1では、画像全体に対して暗い画素数の割合が大きい場合に、図19に示すように、暗部の補正量が最も大きくなり、かつ、補正方向も明るくする方向に補正される。一方、非特許文献1では、画像全体に対して明るい画素数の割合が大きい場合に、図20に示すように、明部の補正量が最も大きくなり、かつ、補正方向も暗くする方向に補正される。なお、図19および図20は、従来技術に係るヒストグラム均等化による画像補正処理を説明するための図である。
In
しかしながら、上記した従来の技術では、コストがかかるという課題があった。また、出力された画像の安定性が低いという課題があった。 However, the above-described conventional technique has a problem of cost. There is also a problem that the stability of the output image is low.
具体的には、逆光画像のような暗部の階調が見えにくい画像を補正する場合には、画素ごとに補正量を制御する必要があり、処理が多くなるために、コストがかかるという課題があった。また、非特許文献1のように画像補正後のヒストグラムを均等分布にする場合には、補正量および補正方向について制限することなく補正しているために、画像によっては暗部をさらに暗くする補正をして階調が不自然になり、出力された画像の安定性が低いという課題があった。
Specifically, when correcting an image in which the gradation of a dark part such as a backlight image is difficult to see, it is necessary to control the correction amount for each pixel, and there is a problem that the cost increases because the processing increases. there were. Moreover, when the histogram after image correction is made uniform distribution as in Non-Patent
そこで、この発明は、上記した従来技術の課題を解決するためになされたものであり、コストをかけることなく、安定して高品質に画像補正を行なうことができる補正カーブの形状を指定する制御点を算出する画像処理装置を提供することを目的とする。 Accordingly, the present invention has been made to solve the above-described problems of the prior art, and control for designating the shape of a correction curve capable of stably performing high-quality image correction without incurring costs. An object of the present invention is to provide an image processing apparatus that calculates points.
上述した課題を解決し、目的を達成するため、本願の開示する画像処理装置は、入力画像の特徴に応じて画像補正するための補正カーブの形状を指定する制御点を算出する画像処理装置であって、前記入力画像の輝度ヒストグラムを階調ごとに複数値域に分割する分割手段と、前記分割手段により分割された各値域の画素数と入力画像の画素数とをそれぞれ算出して、入力画像の画素数に対する各値域の画素数の割合を算出する割合算出手段と、前記割合算出手段により算出された各値域の割合と、制御点との関係を示す関係情報を用いて、前記割合算出手段により算出された各値域の割合から、明部と中間部の間の制御点、および、中間部と暗部の間の制御点を算出し、算出された制御点での入力を出力に補正する補正量が所定の上限値よりも大きい場合、補正量を上限値とし、補正量が所定の下限値よりも小さい場合、補正量を下限値として、明部と中間部の間の制御点、および、中間部と暗部の間の制御点を算出する制御点算出手段と、を備えたことを要件とする。 In order to solve the above-described problems and achieve the object, an image processing apparatus disclosed in the present application is an image processing apparatus that calculates control points that specify the shape of a correction curve for correcting an image according to the characteristics of an input image. A dividing unit that divides the luminance histogram of the input image into a plurality of value ranges for each gradation; and calculates the number of pixels in each range divided by the dividing unit and the number of pixels of the input image, respectively. The ratio calculation means for calculating the ratio of the number of pixels in each range with respect to the number of pixels, and the ratio calculation means using relationship information indicating the relationship between the ratio of each range calculated by the ratio calculation means and the control point The control point between the bright part and the intermediate part and the control point between the intermediate part and the dark part are calculated from the ratio of each range calculated by the above, and the correction at the calculated control point is corrected to the output. The amount is a predetermined upper limit If the correction amount is larger, the correction amount is the upper limit value, and if the correction amount is smaller than the predetermined lower limit value, the correction amount is the lower limit value, and the control point between the bright part and the intermediate part and the intermediate part and the dark part are set. It is a requirement that control point calculation means for calculating control points is provided.
本願の開示する画像処理装置によれば、輝度ヒストグラムから得られる情報のみから補正量が制限された補正カーブの形状を指定する制御点を算出することができる結果、コストをかけることなく、安定して高品質に画像補正を行なうことができる補正カーブの制御点を算出できるという効果を奏する。 According to the image processing device disclosed in the present application, it is possible to calculate a control point that specifies the shape of a correction curve whose correction amount is limited only from information obtained from a luminance histogram. Thus, it is possible to calculate a control point of a correction curve that can perform image correction with high quality.
以下に添付図面を参照して、この発明に係る画像処理装置の実施例を詳細に説明する。なお、以下では、実施例1に係る画像処理装置の概要および特徴、画像処理装置の構成および処理の流れを順に説明し、最後に本実施例による効果を説明する。なお、以下の実施例においては、補正カーブの形状を指定する制御点として、補正カーブの曲点を例に挙げて説明するが、本実施例の制御点の算出対象は補正カーブの曲点に限られるものではない。 Embodiments of an image processing apparatus according to the present invention will be described below in detail with reference to the accompanying drawings. In the following, the outline and features of the image processing apparatus according to the first embodiment, the configuration of the image processing apparatus and the flow of processing will be described in order, and finally the effects of the present embodiment will be described. In the following embodiment, the control curve designating point of the correction curve will be described as an example of the control curve designating the shape of the correction curve. It is not limited.
[画像処理装置の概要および特徴]
次に、実施例1に係る画像処理装置の概要および特徴を説明する。図1は、実施例1に係る画像処理装置の概要および特徴を示す図である。
[Outline and Features of Image Processing Device]
Next, the outline and features of the image processing apparatus according to the first embodiment will be described. FIG. 1 is a diagram illustrating an overview and features of the image processing apparatus according to the first embodiment.
一般的に、逆光画像などの画像処理は、画像の暗い部分をいかに出力するかによって、画像の画質が左右される。そして、この画像処理装置は、当該画像処理装置に接続される他の装置などから入力される動画や静止画などの画像の特徴に応じて、画像補正するための補正カーブの形状を指定する制御点を算出する。 In general, in image processing such as a backlight image, the image quality of an image depends on how the dark part of the image is output. The image processing apparatus controls the shape of a correction curve for correcting an image according to the characteristics of an image such as a moving image or a still image input from another apparatus connected to the image processing apparatus. Calculate points.
このような構成において、画像処理装置は、入力画像の特徴に応じて画像補正するための補正カーブの形状を指定する制御点を算出することを概要とし、特に、画像を補正するのに際して、コストをかけることなく、安定して高品質に画像補正を行なうことができる補正カーブの制御点を算出することが可能である点を主たる特徴とする。 In such a configuration, the image processing apparatus outlines calculating control points that specify the shape of a correction curve for image correction according to the characteristics of the input image. The main feature is that it is possible to calculate a control point of a correction curve that can perform image correction stably and with high quality without applying.
この主たる特徴について説明すると、画像処理装置は、入力画像を受け付けると、当該画像の輝度ヒストグラムを算出し(図1の(1)参照)、画像の輝度ヒストグラムを階調ごとに複数値域に分割する(図1の(2)参照)。 Explaining this main feature, when receiving an input image, the image processing apparatus calculates a luminance histogram of the image (see (1) in FIG. 1), and divides the luminance histogram of the image into a plurality of value ranges for each gradation. (See (2) in FIG. 1).
具体的に例を挙げると、画像処理装置は、入力される動画や静止画などの画像を受け付けると、当該画像を読み込んで画素ごとの輝度成分を算出して、算出された輝度成分の出現度数から画像の輝度ヒストグラムを算出する。続いて、画像処理装置は、算出された輝度ヒストグラムを暗部(例えば、0〜84階調)、中間部(例えば、85〜168階調)、明部(例えば、169〜255階調)の複数値域に分割する。 As a specific example, when an image such as a moving image or a still image is received, the image processing apparatus reads the image, calculates a luminance component for each pixel, and calculates the appearance frequency of the calculated luminance component. The luminance histogram of the image is calculated from the above. Subsequently, the image processing apparatus displays the calculated luminance histogram in a plurality of dark portions (for example, 0 to 84 gradations), intermediate portions (for example, 85 to 168 gradations), and bright portions (for example, 169 to 255 gradations). Divide into range.
そして、画像処理装置は、分割された各値域の画素数と入力画像の画素数とをそれぞれ算出して、入力画像の画素数に対する各値域の画素数の割合または大小関係を算出し、算出された各値域の割合または大小関係に基づいて画像補正するための補正カーブの形状を指定する制御点を算出する(図1の(3)参照)。 Then, the image processing device calculates the number of pixels of each divided range and the number of pixels of the input image, and calculates the ratio or magnitude relationship of the number of pixels of each range with respect to the number of pixels of the input image. Then, control points for designating the shape of the correction curve for correcting the image are calculated based on the ratio or the magnitude relationship of each value range (see (3) in FIG. 1).
上記した例で具体的に説明すると、画像処理装置は、分割された暗部、中間部、明部などの各値域の画素数をカウントする。そして、画像処理装置は、カウントされた各値域の画素数の全体画素数に対する割合または大小関係を算出する。続いて、画像処理装置は、算出された暗部、中間部、明部などの各値域の割合または大小関係を用いて、画像補正に用いる補正カーブの変化点となる曲点(制御点)を算出する。その後、画像処理装置は、算出された曲点をさらに所定の範囲内の補正量に制限した最終的な曲点を算出する。 More specifically, the image processing apparatus counts the number of pixels in each value range such as the divided dark part, intermediate part, and bright part. Then, the image processing apparatus calculates a ratio or a magnitude relationship of the counted number of pixels in each range with respect to the total number of pixels. Subsequently, the image processing apparatus calculates a curvature point (control point) that is a change point of a correction curve used for image correction, using the calculated ratio or magnitude relationship of each value range such as a dark part, an intermediate part, and a bright part. To do. Thereafter, the image processing apparatus calculates a final music point in which the calculated music point is further limited to a correction amount within a predetermined range.
続いて、画像処理装置は、算出された制御点に基づいて補正カーブを算出し、算出された補正カーブに基づいて入力画像を補正する(図1の(4)参照)。上記した例で具体的に説明すると、画像処理装置は、算出された補正量が制限された曲点に基づいて補正カーブを算出する。そして、画像処理装置は、算出された補正カーブに基づいて入力値から出力値を求めることで入力画像を補正して、補正された画像を出力する。 Subsequently, the image processing apparatus calculates a correction curve based on the calculated control point, and corrects the input image based on the calculated correction curve (see (4) in FIG. 1). Specifically, in the above example, the image processing apparatus calculates a correction curve based on the inflection point where the calculated correction amount is limited. Then, the image processing apparatus corrects the input image by obtaining an output value from the input value based on the calculated correction curve, and outputs a corrected image.
このように、実施例1に係る画像処理装置は、入力される動画や静止画などの画像の輝度ヒストグラム情報のみから、複数値域に分割した各値域の画素数の割合を用いて、階調を補正する補正カーブの曲点を算出することができる結果、コストをかけることなく、安定して高品質に画像補正を行なうことができる補正カーブの制御点を算出することが可能である。 As described above, the image processing apparatus according to the first embodiment uses the ratio of the number of pixels in each range divided only from the luminance histogram information of the input image such as a moving image or a still image, to adjust the gradation. As a result of calculating the curve point of the correction curve to be corrected, it is possible to calculate the control point of the correction curve that can stably perform high-quality image correction without cost.
[画像処理装置の構成]
次に、図2を用いて、実施例1に係る画像処理装置の構成を説明する。図2は、実施例1に係る画像処理装置の構成を示すブロック図である。図2に示すように、画像処理装置10は、I/F部11と、記憶部20と、制御部30とから構成され、入力される入力画像に応じて画像補正に用いられる補正カーブの制御点を算出する。
[Configuration of image processing apparatus]
Next, the configuration of the image processing apparatus according to the first embodiment will be described with reference to FIG. FIG. 2 is a block diagram illustrating the configuration of the image processing apparatus according to the first embodiment. As illustrated in FIG. 2, the image processing apparatus 10 includes an I / F unit 11, a
I/F部11は、画像処理装置10に接続される他の装置から入力された動画や静止画などの入力画像を受け付けて後述する輝度ヒストグラム算出部31に入力する。なお、動画や静止画は、接続される他の装置だけでなく、CD−Rなどの記憶媒体から入力されることとしてもよい。 The I / F unit 11 receives an input image such as a moving image or a still image input from another device connected to the image processing device 10 and inputs the input image to a luminance histogram calculation unit 31 described later. Note that moving images and still images may be input from a storage medium such as a CD-R as well as other connected devices.
記憶部20は、制御部30による各種処理に必要なデータや、制御部30による各種処理結果を記憶するとともに、特に本発明に密接に関連するものとしては、入力画像記憶部21と、補正カーブ記憶部22とを備える。
The
入力画像記憶部21は、画像処理装置10に入力される動画や静止画などの入力画像を記憶する。また、補正カーブ記憶部22は、後述する補正カーブ算出部34により算出される画像補正に用いられる補正カーブ(図10参照)を記憶する。なお、図10は、実施例1に係る補正カーブの例を示す図である。 The input image storage unit 21 stores input images such as moving images and still images input to the image processing apparatus 10. The correction curve storage unit 22 stores a correction curve (see FIG. 10) used for image correction calculated by a correction curve calculation unit 34 described later. FIG. 10 is a diagram illustrating an example of a correction curve according to the first embodiment.
制御部30は、制御プログラム、各種の処理手順などを想定したプログラムおよび所要データを格納するための内部メモリを有するとともに、特に本発明に密接に関連するものとしては、輝度ヒストグラム算出部31と、分割ビン度数算出部32と、制御点算出部33と、補正カーブ算出部34と、画像補正部35とを備え、これらによって種々の処理を実行する。
The
輝度ヒストグラム算出部31は、入力画像を受け付けて、当該画像の輝度ヒストグラムを算出する。具体的に例を挙げると、輝度ヒストグラム算出部31は、入力画像を受け付けると、当該画像または縮小画像を入力画像記憶部21に格納する。そして、輝度ヒストグラム算出部31は、入力画像記憶部21に格納された画像または縮小画像を読み込んでRGB成分から画素ごとのY成分(輝度成分)を「Y=0.299×R+0.587×G+0.114×B」などの変換式から算出する。続いて、輝度ヒストグラム算出部31は、算出されたY成分の度数をカウントして、各画素のY値に基づいて画像または縮小画像の輝度ヒストグラムを算出する。 The luminance histogram calculation unit 31 receives an input image and calculates a luminance histogram of the image. Specifically, when receiving an input image, the luminance histogram calculation unit 31 stores the image or the reduced image in the input image storage unit 21. Then, the luminance histogram calculation unit 31 reads an image or a reduced image stored in the input image storage unit 21 and calculates the Y component (luminance component) for each pixel from the RGB components as “Y = 0.299 × R + 0.587 × G + 0. ..114 × B ”or the like. Subsequently, the luminance histogram calculation unit 31 counts the frequency of the calculated Y component, and calculates a luminance histogram of the image or reduced image based on the Y value of each pixel.
分割ビン度数算出部32は、入力画像の輝度ヒストグラムを階調ごとに複数値域に分割して、分割された各値域の画素数と入力画像の画素数とをそれぞれ算出して、入力画像の画素数に対する各値域の画素数の割合または大小関係を算出する。上記した例で具体的に例を挙げると、分割ビン度数算出部32は、輝度ヒストグラム算出部31により算出された輝度ヒストグラムを「0〜84階調:暗部」、「85〜168階調:中間部」、「169〜255階調:明部」などの階調ごとに複数値域に分割する。そして、分割ビン度数算出部32は、分割された暗部、中間部および明部の各値域の画素数(例えば、暗部「5」、中間部「1」、明部「4」など)をカウントして、全体の画素数「10」に対する割合(例えば、暗部「5/10」、中間部「1/10」、明部「4/10」など)を算出する。
The divided bin
制御点算出部33は、算出された各値域の割合または大小関係に基づいて画像補正するための補正カーブの形状を指定する制御点を算出する。上記した例で具体的に例を挙げると、制御点算出部33は、分割ビン度数算出部32により算出された暗部、中間部および明部の各値域の割合を用いて、図3に示すような式に基づいて明部と中間部との間における曲点の縦座標「255×(1−4/(2×10))=204」を算出する。ここで、明部と中間部との間における曲点の横座標は、「Th2=168」、重みW1は、「W1=2」とする。そして、制御点算出部33は、算出された明部と中間部との間における曲点(168,204)を用いて、図4に示すような式に基づいて中間部と暗部との間における曲点の縦座標「204−255×(1/(0.5×10))=153」を算出する。ここで、中間部と暗部との間における曲点の横座標は、「Th1=84」、重みW2は、「W2=0.5」とする。
The control
つまり、制御点算出部33は、画像において明るい部分となる明部と中間部との曲点(168,204)を算出して、算出された明るい部分の曲点を用いて暗い部分となる中間部と暗部との曲点(84,153)を算出するので、逆光画像などの全体的に暗い画像の補正において、明るい部分の補正値を反映した暗い部分の補正を行なうことが可能である。なお、図3は、実施例1に係る明部と中間部との曲点の縦座標を算出するための式の例を示す図であり、図4は、実施例1に係る中間部と暗部との曲点の縦座標を算出するための式の例を示す図である。
That is, the control
また、補正カーブの形状を指定する制御点の算出は、明部、中間部および暗部の大小関係を利用した制御点(曲点)算出の一つとして、上記したように、各値域の割合から算出する場合を説明したが、予め保存された明るさの度数に基づいて制御点を算出することもできる。具体的に説明すると、制御点算出部33は、図5に示すLUT(Look−Up Table)に基づいて制御点を算出する。なお、図5は、明るさの度数の大小関係を示すLook−UpTableの例を示す図である。
In addition, the calculation of the control point that specifies the shape of the correction curve is one of the control point (curved point) calculation using the magnitude relationship between the bright part, the intermediate part, and the dark part. Although the case of calculating has been described, the control point can also be calculated based on the brightness frequency stored in advance. More specifically, the control
このLUTを用いた制御点の算出は、例えば、図6の(A)と(B)とに示す式を用いて算出することとなる。また、LUTを用いた制御点の算出式においては、図3および図4で示した曲点の算出式の例と同様に、明部と中間部との制御点を算出した後に、当該明部と中間部との制御点算出結果を用いつつ、中間部と暗部との制御点を算出する。なお、図6は、Look−UpTableに基づいて制御点を算出する際に用いる式の例を示す図である。 The calculation of the control points using the LUT is performed using, for example, the equations shown in FIGS. 6A and 6B. Further, in the control point calculation formula using the LUT, similar to the example of the curve point calculation formula shown in FIGS. The control points of the intermediate part and the dark part are calculated using the control point calculation results of the intermediate part and the intermediate part. FIG. 6 is a diagram illustrating an example of equations used when calculating control points based on the Look-UpTable.
続いて、制御点算出部33は、算出された曲点をさらに所定の範囲内に制限する。上記した例で具体的に例を挙げると、制御点算出部33は、算出された曲点(168,204)および(84,153)を、図7に示すような式に基づいて補正量「204−168=36」および「153−84=69」を算出する。また、制御点算出部33は、曲点の補正量を図8に示すような制限に基づいて算出する。
Subsequently, the control
つまり、制御点算出部33は、算出された曲点について変化範囲「36」または「69」がTh5以下である場合に補正量をTh5、変化範囲「36」または「69」がTh5とTh6との間である場合に補正量を「36」または「69」、変化範囲「36」または「69」がTh6以上である場合に補正量をTh6として、最終的な曲点(84,84+Th5)、(84,153)または(84,84+Th6)と、(168,168+Th5)、(168,204)または(168,168+Th6)とを算出する。この結果、制御点算出部33は、曲点の変化範囲が最小でも「Th5」、最大でも「Th6」に調整された明るい方向に画像補正するための曲点を算出するので、逆光画像のような暗い画像を補正する場合でも、暗部を必要以上に暗くする補正、または、明部を必要以上に明るくする補正を行なうことなく安定して高品質に画像補正を行なうための補正カーブの制御点を算出することが可能である。なお、図7は、実施例1に係る曲点の補正量を算出するための式の例を示す図であり、図8は、実施例1に係る曲点の補正量を制限する場合について説明するための図である。
That is, the control
その後、補正カーブ算出部34は、制御点算出部33により算出された曲点に基づいて補正カーブを算出する。上記した例で具体的に例を挙げると、補正カーブ算出部34は、図10に示すように、制御点算出部33により補正量が制限された明部と中間部とから算出された曲点1(x1,y1)と、中間部と暗部とから算出された曲点2(x2,y2)とに基づいて、図9の(A)に示すような式に基づいて直線で示される補正カーブ(A)を算出する。
Thereafter, the correction curve calculation unit 34 calculates a correction curve based on the music point calculated by the control
また、補正カーブ算出部34は、図10に示すように、制御点算出部33により補正量が制限された明部と中間部とから算出された曲点1(x1,y1)と、中間部と暗部とから算出された曲点2(x2,y2)とに基づいて、図9の(B)に示すような式に基づいて曲線で示される補正カーブ(B)を算出することとしてもよい。なお、図9は、実施例1に係る補正カーブを算出するための式の例を示す図であり、図10は、実施例1に係る補正カーブの例を示す図である。
Further, as shown in FIG. 10, the correction curve calculation unit 34 includes a curved point 1 (x1, y1) calculated from the bright part and the intermediate part, the correction amount of which is limited by the control
そして、画像補正部35は、補正カーブ算出部34により算出された補正カーブに基づいて入力画像を補正する。上記した例で具体的に例を挙げると、画像補正部35は、補正カーブ算出部34により算出された補正カーブ(A)や補正カーブ(B)などに基づいて、受け付けた画像または縮小画像の補正を行なう。なお、画像補正においては、画像のY成分にカーブをかけてからRGB成分に逆変換してもよいし、直接RGB成分にカーブをかけてもよい。
The
[実施例1に係る画像処理装置による処理]
次に、図11を用いて、実施例1に係る画像処理装置10による処理を説明する。図11は、実施例1に係る画像処理装置10による処理を示すフローチャートである。
[Processing by Image Processing Apparatus According to First Embodiment]
Next, processing performed by the image processing apparatus 10 according to the first embodiment will be described with reference to FIG. FIG. 11 is a flowchart illustrating processing performed by the image processing apparatus 10 according to the first embodiment.
図11に示すように、画像処理装置10は、当該画像処理装置10に画像が入力されると(ステップS101肯定)、当該画像または縮小画像を読み込んでRGB成分から画素ごとのY成分を算出し、算出されたY成分の度数をカウントして、各画素のY値に基づいて画像または縮小画像の輝度ヒストグラムを算出する(ステップS102)。 As shown in FIG. 11, when an image is input to the image processing apparatus 10 (Yes in step S101), the image processing apparatus 10 reads the image or the reduced image and calculates a Y component for each pixel from the RGB components. The frequency of the calculated Y component is counted, and a luminance histogram of the image or reduced image is calculated based on the Y value of each pixel (step S102).
そして、画像処理装置10は、算出された輝度ヒストグラムを暗部、中間部および明部などの階調ごとに複数値域に分割して(ステップS103)、分割された暗部、中間部および明部の各値域の画素数をカウントして、各値域の全体の画素数に対する割合または大小関係を算出する(ステップS104)。 Then, the image processing apparatus 10 divides the calculated luminance histogram into a plurality of value ranges for each gradation such as a dark portion, an intermediate portion, and a bright portion (step S103), and each of the divided dark portion, intermediate portion, and bright portion is divided. The number of pixels in the range is counted, and a ratio or a magnitude relationship with respect to the total number of pixels in each range is calculated (step S104).
続いて、画像処理装置10は、算出された暗部、中間部および明部の各値域の割合または大小関係を用いて、明部および中間部と中間部および暗部との曲点を、明るい部分の補正値を反映しつつそれぞれ算出するとともに、算出された曲点の変化範囲を制限した曲点を算出する(ステップS105)。 Subsequently, the image processing apparatus 10 uses the calculated ratios or magnitude relationships of the respective ranges of the dark part, the intermediate part, and the bright part to convert the inflection points of the bright part, the intermediate part, the intermediate part, and the dark part into the bright part. While calculating each while reflecting a correction value, the music point which limited the change range of the calculated music point is calculated (step S105).
その後、画像処理装置10は、算出された曲点に基づいて補正カーブを算出して(ステップS106)、算出された補正カーブに基づいて入力された画像または縮小画像の補正を行なう(ステップS107)。なお、具体的には、制御点を直線で結ぶ「折れ線」によって補正カーブを生成することとするが、「スプライン」などの曲線を用いてもかまわない。 Thereafter, the image processing apparatus 10 calculates a correction curve based on the calculated curvature point (step S106), and corrects the input image or the reduced image based on the calculated correction curve (step S107). . Specifically, the correction curve is generated by a “polyline” that connects the control points with a straight line, but a curve such as “spline” may be used.
[実施例1による効果]
このように、画像処理装置10は、入力される入力画像の輝度ヒストグラムの情報から、画像を補正するために用いる変化範囲が制限された補正カーブの形状を指定する制御点を算出することとしたので、コストをかけることなく、安定して高品質に画像補正を行なうことができる補正カーブの制御点を算出することが可能である。
[Effects of Example 1]
As described above, the image processing apparatus 10 calculates the control point for designating the shape of the correction curve with the limited change range used for correcting the image from the information of the luminance histogram of the input image to be input. Therefore, it is possible to calculate a control point of a correction curve that can stably perform high-quality image correction without incurring costs.
例えば、画像処理装置10は、入力画像の輝度ヒストグラムを算出して、当該輝度ヒストグラムを階調ごとに暗部、中間部および明部などの複数値域に分割する。そして、画像処理装置10は、分割された各値域の全体画素数に対する割合または大小関係を算出する。続いて、画像処理装置10は、算出された各値域の割合または大小関係を用いて明部および中間部と、中間部および暗部との制御点(曲点)を、補正量を制限しつつ算出する。その後、画像処理装置10は、算出された制御点を用いて補正カーブを算出し、算出された補正カーブに基づいて入力された入力画像の補正を行なう。つまり、画像処理装置10は、輝度ヒストグラムから得られる情報のみから補正量が制限された制御点を算出することができる結果、コストをかけることなく、安定して高品質に画像補正を行なうことができる補正カーブの制御点を算出することが可能である。 For example, the image processing apparatus 10 calculates a luminance histogram of the input image and divides the luminance histogram into a plurality of value ranges such as a dark portion, an intermediate portion, and a bright portion for each gradation. Then, the image processing apparatus 10 calculates a ratio or a magnitude relationship with respect to the total number of pixels in each divided value range. Subsequently, the image processing apparatus 10 calculates the control points (curvature points) between the bright part and the intermediate part and the intermediate part and the dark part while limiting the correction amount, using the calculated ratio or magnitude relationship of each range. To do. Thereafter, the image processing apparatus 10 calculates a correction curve using the calculated control points, and corrects the input image input based on the calculated correction curve. That is, the image processing apparatus 10 can calculate a control point with a limited correction amount from only information obtained from the luminance histogram, and as a result, can stably perform high-quality image correction without incurring costs. It is possible to calculate a control point of a correction curve that can be obtained.
ところで、実施例1では、「Th5」や「Th6」などの所定の固定値を用いて変化範囲が制限された曲点を算出する場合を説明したが、本発明はこれに限定されるものではなく、所定の記憶部に予め曲点補正量カーブを記憶して、当該曲点補正量カーブを用いて曲点を算出することもできる。 By the way, in the first embodiment, a case has been described in which the inflection point with a limited change range is calculated using a predetermined fixed value such as “Th5” or “Th6”, but the present invention is not limited to this. Alternatively, the music point correction amount curve may be stored in advance in a predetermined storage unit, and the music point may be calculated using the music point correction amount curve.
[実施例2に係る変化範囲が制限された曲点を算出する処理]
そこで、以下の実施例2では、図12を用いて、実施例2に係る画像処理装置10による変化範囲が制限された曲点を算出する処理について説明する。図12は、実施例2に係る変化範囲が制限された曲点を算出する処理について説明するための図である。なお、変化範囲が制限された曲点を算出する処理以外の処理は、上記した実施例1と同様の処理となるので説明を省略して、ここでは、変化範囲が制限された曲点を算出する処理について説明する。
[Process of calculating a music point with a limited change range according to the second embodiment]
Therefore, in the following second embodiment, a process for calculating the inflection point with a limited change range by the image processing apparatus 10 according to the second embodiment will be described with reference to FIG. FIG. 12 is a diagram for explaining a process of calculating a music point with a limited change range according to the second embodiment. The processing other than the process of calculating the inflection point with the limited change range is the same as that of the first embodiment, and therefore the description thereof is omitted. Here, the inflection point with the limited change range is calculated. Processing to be performed will be described.
実施例1と異なる点は、補正量に対応付けて、変化範囲が制限された補正量を示す曲点補正量カーブを記憶している点である。具体的には、図12に示すように、所定の固定値が定められていない曲点補正カーブを用いて、図7に示す式に基づいて算出された補正量の変化範囲を制限しつつ最終的な曲点を算出する。 The difference from the first embodiment is that a curvature correction amount curve indicating a correction amount with a limited change range is stored in association with the correction amount. Specifically, as shown in FIG. 12, using a curvature correction curve for which a predetermined fixed value is not defined, the range of change of the correction amount calculated based on the equation shown in FIG. A typical music point is calculated.
[実施例2による効果]
このように、画像処理装置10は、曲点の補正量に対応付けて変化範囲が制限された補正量を示す曲点補正量カーブを保持し、算出された補正量に基づいて最終的な曲点を算出することとしたので、より高精度に曲点の補正量を算出して、高品質に画像補正を行なうための補正カーブの曲点を算出することが可能である。
[Effects of Example 2]
In this way, the image processing apparatus 10 holds the curve point correction amount curve indicating the correction amount in which the change range is limited in association with the curvature point correction amount, and the final music piece is based on the calculated correction amount. Since the points are calculated, it is possible to calculate the correction amount of the curvature point with higher accuracy and to calculate the curvature point of the correction curve for performing image correction with high quality.
ところで、実施例1では、輝度ヒストグラムを階調ごとに暗部、中間部および明部に分割して曲点を算出する場合を説明したが、本発明はこれに限定されるものではなく、暗部と明部とをさらに細かく分割して曲点を算出することもできる。 By the way, in the first embodiment, the case where the brightness histogram is calculated by dividing the luminance histogram into the dark part, the intermediate part, and the bright part for each gradation has been described, but the present invention is not limited to this, and the dark part and the dark part are calculated. It is also possible to calculate the inflection point by further dividing the bright part.
[実施例3に係る分割ビン度数算出部による処理]
そこで、以下の実施例3では、図13と図14とを用いて、実施例3に係る画像処理装置10による処理について説明する。図13は、実施例3に係る暗部と明部とをさらに分割した場合の分割ビン度数算出部32による処理を説明するための図であり、図14は、実施例3に係る暗部と明部とをさらに分割した場合の制御点算出部33による処理を説明するための図である。
[Processing by Divided Bin Frequency Calculation Unit According to Third Embodiment]
Therefore, in the following third embodiment, processing performed by the image processing apparatus 10 according to the third embodiment will be described with reference to FIGS. 13 and 14. FIG. 13 is a diagram for explaining processing by the divided bin
また、図13において用いる変数「i」は、0〜255の階調を示しており、「Hist(i)」は、処理される輝度ヒストグラムの各画素の階調値を示している。また、図13において用いる所定の値「Th1〜Th4」は、例えば、「Th1=84」、「Th2=168」、「Th3=42」および「Th4=212」などの値である。なお、実施例3に係る画像処理装置10の構成や一部の機能については、実施例1と同様のものとなるのでその説明を省略して、ここでは、実施例1とは異なる分割ビン度数算出部32と制御点算出部33とによる処理について説明する。
Also, the variable “i” used in FIG. 13 indicates the gradation of 0 to 255, and “Hist (i)” indicates the gradation value of each pixel of the luminance histogram to be processed. Further, the predetermined values “Th1 to Th4” used in FIG. 13 are values such as “Th1 = 84”, “Th2 = 168”, “Th3 = 42”, and “Th4 = 212”, for example. Since the configuration and some functions of the image processing apparatus 10 according to the third embodiment are the same as those in the first embodiment, the description thereof is omitted, and here, the divided bin frequency different from that in the first embodiment. Processing by the
図13に示すように、分割ビン度数算出部32は、輝度ヒストグラム算出部31により入力画像の輝度ヒストグラムが算出されると(ステップS201肯定)、変数iを「i=0」にして(ステップS202)、輝度ヒストグラムの画素の階調値「Hist(i)」と所定値「Th1」とを比較する(ステップS203)。
As shown in FIG. 13, when the luminance histogram of the input image is calculated by the luminance histogram calculation unit 31 (Yes in step S201), the divided bin
そして、分割ビン度数算出部32は、輝度ヒストグラムの画素の階調値「Hist(i)=30」が所定値「Th1=84」よりも小さい場合に(ステップS203肯定)、当該画素を暗部度数としてカウントする(ステップS204)。
Then, when the gradation value “Hist (i) = 30” of the pixel of the luminance histogram is smaller than the predetermined value “Th1 = 84” (Yes at Step S203), the divided bin
続いて、分割ビン度数算出部32は、輝度ヒストグラムの画素の階調値「Hist(i)=30」が所定値「Th3=42」よりも小さい場合に(ステップS205肯定)、当該画素を暗部度数Aとしてカウントして(ステップS206)、輝度ヒストグラムの画素の階調値「Hist(i)=50」が所定値「Th3=42」以上である場合に(ステップS205否定)、当該画素を暗部度数Bとしてカウントする(ステップS207)。
Subsequently, when the gradation value “Hist (i) = 30” of the pixel of the luminance histogram is smaller than the predetermined value “Th3 = 42” (Yes at Step S205), the divided bin
その後、分割ビン度数算出部32は、変数iを「i=i+1」として(ステップS208)、当該変数iが「255」以上である場合に処理を終了する(ステップS209否定)。なお、分割ビン度数算出部32は、変数iが「255」より小さい場合には(ステップS209肯定)、ステップS203の処理を行なう。
Thereafter, the divided bin
また、分割ビン度数算出部32は、ステップS203において、輝度ヒストグラムの画素の階調値「Hist(i)=90」が所定値「Th1=84」以上である場合に(ステップS203否定)、輝度ヒストグラムの画素の階調値「Hist(i)」と所定値「Th2」とを比較する(ステップS210)。
Further, the divided bin
そして、分割ビン度数算出部32は、輝度ヒストグラムの画素の階調値「Hist(i)=100」が所定値「Th2=168」よりも小さい場合に(ステップS210肯定)、当該画素を中間部度数としてカウントして(ステップS211)、ステップS208の処理を行なう。
Then, when the gradation value “Hist (i) = 100” of the pixel of the luminance histogram is smaller than the predetermined value “Th2 = 168” (Yes at Step S210), the divided bin
また、分割ビン度数算出部32は、ステップS210において、輝度ヒストグラムの画素の階調値「Hist(i)=200」が所定値「Th2=168」以上である場合に(ステップS210否定)、当該画素を明部度数としてカウントする(ステップS212)。
In addition, when the gradation value “Hist (i) = 200” of the pixel of the luminance histogram is equal to or larger than the predetermined value “Th2 = 168” in Step S210 (No in Step S210), the divided bin
そして、分割ビン度数算出部32は、輝度ヒストグラムの画素の階調値「Hist(i)=200」が所定値「Th4=212」よりも小さい場合に(ステップS213肯定)、当該画素を明部度数Aとしてカウントして(ステップS214)、輝度ヒストグラムの画素の階調値「Hist(i)=230」が所定値「Th4=212」以上である場合に(ステップS213否定)、当該画素を明部度数Bとしてカウントして(ステップS215)、ステップS208の処理を行なう。
Then, when the gradation value “Hist (i) = 200” of the pixel of the luminance histogram is smaller than the predetermined value “Th4 = 212” (Yes in step S213), the divided bin
なお、分割ビン度数算出部32は、全ての画素の階調値をカウントすると、実施例1と同様の処理を行なって、入力画像の画素数に対する各値域の画素数の割合を算出する。つまり、分割ビン度数算出部32は、入力画像の画素数に対する暗部A、暗部B、中間部、明部Aおよび明部Bの画素数の割合を算出する。
The divided bin
[実施例3に係る制御点算出部による処理]
次に、実施例3に係る制御点算出部33による処理について説明する。図14に示すように、制御点算出部33は、分割ビン度数算出部32により各値域の画素数の割合が算出されると(ステップS301肯定)、実施例1と同様の処理を行なって、明部と中間部との変化範囲が制限された曲点を算出する(ステップS302、ステップS303)。
[Processing by Control Point Calculation Unit According to Embodiment 3]
Next, processing by the control
そして、制御点算出部33は、中間部と暗部との変化範囲が制限された曲点を算出する(ステップS304、ステップS305)。続いて、制御点算出部33は、暗部Aと暗部Bとの変化範囲が制限された曲点を、中間部と暗部との変化範囲が制限された曲点に基づいて算出する(ステップS306、ステップS307)。その後、制御点算出部33は、明部Aと明部Bとの変化範囲が制限された曲点を、明部と中間部との変化範囲が制限された曲点に基づいて算出する(ステップS308、ステップS309)。
Then, the control
[実施例3による効果]
このように、画像処理装置10は、入力される画素の階調値に基づいて、暗部と明部とをさらに細かく分割し、分割された各値域の入力画像の画素数に対する割合を算出して、算出された各値域の割合に基づいて変化範囲が制限された曲点を算出することとしたので、さらに高品質に画像補正を行なうための補正カーブの曲点を算出することが可能である。
[Effects of Example 3]
As described above, the image processing apparatus 10 further divides the dark portion and the bright portion based on the gradation value of the input pixel, and calculates the ratio of the divided value ranges to the number of pixels of the input image. Since the inflection point with a limited change range is calculated based on the calculated ratio of each range, it is possible to calculate the inflection point of the correction curve for performing image correction with higher quality. .
さて、これまで本発明の実施例について説明したが、本発明は上述した実施例以外にも、種々の異なる形態にて実施されてよいものである。そこで、(1)線形補間により補正量を算出、(2)システム構成、(3)プログラムに区分けして異なる実施例を説明する。 Although the embodiments of the present invention have been described so far, the present invention may be implemented in various different forms other than the embodiments described above. Accordingly, different embodiments will be described by dividing (1) calculating the correction amount by linear interpolation, (2) system configuration, and (3) program.
(1)線形補間により補正量を算出
上記実施例1〜3では、算出された曲点に基づいて補正カーブを算出し、算出された補正カーブに基づいて入力画像を補正する場合を説明したが、本発明はこれに限定されるものではなく、算出された各曲点を線形補間することにより補正量を算出することもできる。
(1) Calculation of correction amount by linear interpolation In the above first to third embodiments, a case has been described in which a correction curve is calculated based on the calculated curvature point and the input image is corrected based on the calculated correction curve. The present invention is not limited to this, and the correction amount can also be calculated by linearly interpolating the calculated music points.
例えば、画像処理装置10は、図15に示すように、曲点1(x1,y1)と曲点2(x2,y2)とが算出されると、原点(0,0)と曲点1との間に位置する点(x0,y0)や、曲点1と曲点2との間に位置する点(xn,yn)などを線形補間により、各入力値「x0」と「xn」とから各出力値「y0」と「yn」とを算出して、当該各出力値を入力画像の補正量として画像補正処理を行なう。つまり、画像処理装置10は、画像補正するための補正カーブの曲点が算出されると、画像補正するための補正カーブを算出することなく画像補正を行なうので、処理負荷を削減した画像補正処理を実施することが可能である。なお、図15は、曲点から線形補間により補正量を算出する処理を説明するための図である。
For example, as illustrated in FIG. 15, the image processing apparatus 10 calculates the origin (0, 0) and the
(2)システム構成
また、上記文書中や図面中で示した処理手順、制御手順、具体的名称、各種のデータやパラメタを含む情報(例えば、図2に示した補正カーブ記憶部22に格納される補正カーブなどの情報)については、特記する場合を除いて任意に変更することができる。
(2) System Configuration In addition, information including the processing procedure, control procedure, specific name, various data and parameters shown in the document and drawings (for example, stored in the correction curve storage unit 22 shown in FIG. 2). Information such as a correction curve) can be arbitrarily changed unless otherwise specified.
また、図示した各装置の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、例えば、輝度ヒストグラム算出部31を、入力画像を受け付けて入力画像記憶部21に格納する画像受付部と、輝度ヒストグラムを算出する輝度ヒストグラム算出部として分散するなど、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。さらに、各装置にて行われる各処理機能は、その全部または任意の一部が、CPUおよび当該CPUにて解析実行されるプログラムにて実現され、あるいは、ワイヤードロジックによるハードウェアとして実現され得る。 Further, each component of each illustrated apparatus is functionally conceptual, and does not necessarily need to be physically configured as illustrated. That is, the specific form of distribution / integration of each device is not limited to the illustrated one. For example, the luminance histogram calculation unit 31 receives an input image and stores it in the input image storage unit 21, and a luminance histogram. All or a part of the luminance histogram calculation unit to be calculated can be configured to be functionally or physically distributed / integrated in arbitrary units according to various loads or usage conditions. Furthermore, all or a part of each processing function performed in each device may be realized by a CPU and a program that is analyzed and executed by the CPU, or may be realized as hardware by wired logic.
(3)プログラム
なお、本実施例で説明した画像処理装置は、あらかじめ用意されたプログラムをパーソナルコンピュータやワークステーションなどのコンピュータで実行することによって実現することができる。そこで、以下では、図16を用いて、上記の実施例に示した画像処理装置と同様の機能を有する画像処理プログラムを実行するコンピュータの一例を説明する。図16は、画像処理プログラムを実行するコンピュータを示す図である。
(3) Program The image processing apparatus described in the present embodiment can be realized by executing a prepared program on a computer such as a personal computer or a workstation. In the following, an example of a computer that executes an image processing program having the same function as that of the image processing apparatus described in the above embodiment will be described with reference to FIG. FIG. 16 is a diagram illustrating a computer that executes an image processing program.
図16に示すように、画像処理装置としてのコンピュータ110は、HDD130、CPU140、ROM150およびRAM160をバス180などで接続して構成される。
As shown in FIG. 16, a computer 110 as an image processing apparatus is configured by connecting an
ROM150には、上記の実施例1に示した画像処理装置10と同様の機能を発揮する画像処理プログラム、つまり、図16に示すように分割プログラム150aと、割合/大小関係算出プログラム150bと、制御点算出プログラム150cとが、あらかじめ記憶されている。なお、これらのプログラム150a〜150cについては、図2に示した画像処理装置10の各構成要素と同様、適宜統合または、分散してもよい。
The
そして、CPU140がこれらのプログラム150a〜プログラム150cをROM150から読み出して実行することで、図16に示すように、プログラム150a〜プログラム150cは、分割プロセス140aと、割合/大小関係算出プロセス140bと、制御点算出プロセス140cとして機能するようになる。なお、プロセス140a〜プロセス140cは、図2に示した、輝度ヒストグラム算出部31と、分割ビン度数算出部32と、制御点算出部33とにそれぞれ対応する。
Then, the CPU 140 reads out these programs 150a to 150c from the
そして、CPU140はRAM160に記録されたデータに基づいて画像処理プログラムを実行する。
Then, the CPU 140 executes an image processing program based on the data recorded in the
なお、上記した各プログラム150a〜150cについては、必ずしも最初からROM150に記憶させておく必要はなく、例えば、コンピュータ110に挿入されるフレキシブルディスク(FD)、CD−ROM、DVDディスク、光磁気ディスク、ICカードなどの「可搬用の物理媒体」、またはコンピュータ110の内外に備えられるHDDなどの「固定用の物理媒体」、さらには公衆回線、インターネット、LAN、WANなどを介してコンピュータ110に接続される「他のコンピュータ(またはサーバ)」などに各プログラムを記憶させておき、コンピュータ110がこれから各プログラムを読み出して実行するようにしてもよい。
The above-described programs 150a to 150c are not necessarily stored in the
10 画像処理装置
11 I/F部
20 記憶部
21 入力画像記憶部
22 補正カーブ記憶部
30 制御部
31 輝度ヒストグラム算出部
32 分割ビン度数算出部
33 制御点算出部
34 補正カーブ算出部
35 画像補正部
DESCRIPTION OF SYMBOLS 10 Image processing apparatus 11 I /
Claims (2)
前記入力画像の輝度ヒストグラムを階調ごとに暗部、中間部および明部の複数値域に分割して、暗部と明部とをさらに複数値域に分割する分割手段と、
前記分割手段により分割された各値域の画素数と入力画像の画素数とをそれぞれ算出して、入力画像の画素数に対する各値域の画素数の割合を算出する割合算出手段と、
前記各値域の画素数の割合と、制御点との関係を示す関係情報を用いて、前記割合算出手段により算出された各値域の割合から、明部と中間部の間の制御点、および、中間部と暗部の間の制御点を算出し、算出された制御点での入力を出力に補正する補正量が所定の上限値よりも大きい場合、補正量を上限値とし、補正量が所定の下限値よりも小さい場合、補正量を下限値として、明部と中間部の間の制御点、および、中間部と暗部の間の制御点を算出する制御点算出手段と、
を備えたことを特徴とする画像処理装置。 An image processing device that calculates a control point for designating a shape of a correction curve for correcting an image according to a feature of an input image,
Dividing means for dividing the luminance histogram of the input image into a plurality of value ranges of dark part, intermediate part and bright part for each gradation, and further dividing the dark part and the bright part into a plurality of value ranges;
A ratio calculating unit that calculates the number of pixels in each range and the number of pixels in the input image divided by the dividing unit, and calculates the ratio of the number of pixels in each range with respect to the number of pixels in the input image;
Using the relationship information indicating the relationship between the ratio of the number of pixels in each range and the control point, from the ratio of each range calculated by the ratio calculation means, the control point between the bright part and the intermediate part, and When the control point between the intermediate part and the dark part is calculated and the correction amount for correcting the input at the calculated control point to the output is larger than the predetermined upper limit value, the correction amount is set to the upper limit value, and the correction amount is set to the predetermined amount. If it is smaller than the lower limit value, the control point calculation means for calculating the control point between the bright part and the intermediate part and the control point between the intermediate part and the dark part with the correction amount as the lower limit value;
An image processing apparatus comprising:
前記入力画像の輝度ヒストグラムを階調ごとに暗部、中間部および明部の複数値域に分割して、暗部と明部とをさらに複数値域に分割する分割手順と、
前記分割手順により分割された各値域の画素数と入力画像の画素数とをそれぞれ算出して、入力画像の画素数に対する各値域の画素数の割合を算出する割合算出手順と、
前記各値域の画素数の割合と、制御点との関係を示す関係情報を用いて、前記割合算出手順により算出された各値域の割合から、明部と中間部の間の制御点、および、中間部と暗部の間の制御点を算出し、算出された制御点での入力を出力に補正する補正量が所定の上限値よりも大きい場合、補正量を上限値とし、補正量が所定の下限値よりも小さい場合、補正量を下限値として、明部と中間部の間の制御点、および、中間部と暗部の間の制御点を算出する制御点算出手順と、
をコンピュータに実行させることを特徴とする画像処理プログラム。 An image processing program to be executed by a computer as an image processing apparatus that calculates a control point for designating a shape of a correction curve for correcting an image according to a feature of an input image,
A division procedure for dividing the luminance histogram of the input image into a plurality of value areas of a dark part, an intermediate part, and a light part for each gradation, and further dividing the dark part and the light part into a plurality of value areas;
A ratio calculation procedure for calculating the number of pixels in each range and the number of pixels in the input image, respectively, and calculating the ratio of the number of pixels in each range with respect to the number of pixels in the input image;
Using the relationship information indicating the relationship between the ratio of the number of pixels in each range and the control point, from the ratio of each range calculated by the ratio calculation procedure, the control point between the bright part and the intermediate part, and When the control point between the intermediate part and the dark part is calculated and the correction amount for correcting the input at the calculated control point to the output is larger than the predetermined upper limit value, the correction amount is set to the upper limit value, and the correction amount is set to the predetermined amount. If it is smaller than the lower limit value, the control point calculation procedure for calculating the control point between the bright part and the intermediate part and the control point between the intermediate part and the dark part with the correction amount as the lower limit value;
An image processing program for causing a computer to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012173412A JP5447614B2 (en) | 2012-08-03 | 2012-08-03 | Image processing apparatus and image processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012173412A JP5447614B2 (en) | 2012-08-03 | 2012-08-03 | Image processing apparatus and image processing program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009550403A Division JP5152203B2 (en) | 2008-01-24 | 2008-01-24 | Image processing apparatus, image processing method, image processing program, and image correction apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012238328A true JP2012238328A (en) | 2012-12-06 |
JP5447614B2 JP5447614B2 (en) | 2014-03-19 |
Family
ID=47461117
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012173412A Expired - Fee Related JP5447614B2 (en) | 2012-08-03 | 2012-08-03 | Image processing apparatus and image processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5447614B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20180002880A (en) * | 2015-08-19 | 2018-01-08 | 삼성전자주식회사 | Electronic device performing image conversion and its method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06230760A (en) * | 1993-02-04 | 1994-08-19 | Hitachi Ltd | Display device |
JP2000102033A (en) * | 1998-09-18 | 2000-04-07 | Victor Co Of Japan Ltd | Automatic gradation correction method |
JP2001343957A (en) * | 2000-03-27 | 2001-12-14 | Hitachi Ltd | Liquid crystal display device |
JP2004032427A (en) * | 2002-06-26 | 2004-01-29 | Sharp Corp | Image processing method, image processing device, image forming device provided with it, image pick-up device, computer program, and recording medium |
JP2006013742A (en) * | 2004-06-24 | 2006-01-12 | Seiko Epson Corp | Generation of conversion curve for gradation conversion |
JP2006098614A (en) * | 2004-09-29 | 2006-04-13 | Pioneer Electronic Corp | Contrast correction method, contrast correction circuit and display apparatus |
-
2012
- 2012-08-03 JP JP2012173412A patent/JP5447614B2/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06230760A (en) * | 1993-02-04 | 1994-08-19 | Hitachi Ltd | Display device |
JP2000102033A (en) * | 1998-09-18 | 2000-04-07 | Victor Co Of Japan Ltd | Automatic gradation correction method |
JP2001343957A (en) * | 2000-03-27 | 2001-12-14 | Hitachi Ltd | Liquid crystal display device |
JP2004032427A (en) * | 2002-06-26 | 2004-01-29 | Sharp Corp | Image processing method, image processing device, image forming device provided with it, image pick-up device, computer program, and recording medium |
JP2006013742A (en) * | 2004-06-24 | 2006-01-12 | Seiko Epson Corp | Generation of conversion curve for gradation conversion |
JP2006098614A (en) * | 2004-09-29 | 2006-04-13 | Pioneer Electronic Corp | Contrast correction method, contrast correction circuit and display apparatus |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20180002880A (en) * | 2015-08-19 | 2018-01-08 | 삼성전자주식회사 | Electronic device performing image conversion and its method |
KR102049481B1 (en) * | 2015-08-19 | 2019-11-27 | 삼성전자주식회사 | Electronic device for performing image conversion and method thereof |
US10885614B2 (en) | 2015-08-19 | 2021-01-05 | Samsung Electronics Co., Ltd. | Electronic device performing image conversion, and method thereof |
Also Published As
Publication number | Publication date |
---|---|
JP5447614B2 (en) | 2014-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5152203B2 (en) | Image processing apparatus, image processing method, image processing program, and image correction apparatus | |
JP3956887B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP6443857B2 (en) | Image processing apparatus, image processing method, and program | |
US7760961B2 (en) | Adaptive contrast enhancement | |
JP5870598B2 (en) | Image white balance processing method and apparatus | |
JP6485068B2 (en) | Image processing method and image processing apparatus | |
US10580122B2 (en) | Method and system for image enhancement | |
CN102202162A (en) | Image processing apparatus, image processing method and program | |
US20140348428A1 (en) | Dynamic range-adjustment apparatuses and methods | |
JP2006053887A (en) | Interpolation method for resolution conversion, image processor, image display device, program, and recording medium | |
JP2013020617A (en) | Grayscale character image normalization device and method | |
JP2015103001A (en) | Image processing apparatus, image processing method, and control program | |
JP2008282155A (en) | Image correction device | |
JP5859749B2 (en) | Contrast improvement method using Bezier curve | |
Wang et al. | A real-time image processor with combining dynamic contrast ratio enhancement and inverse gamma correction for PDP | |
JP5447614B2 (en) | Image processing apparatus and image processing program | |
JP4232831B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP6135937B2 (en) | Image processing method and image processing apparatus | |
KR101422921B1 (en) | apparatus and method of stretching histogram | |
US11032446B2 (en) | Image processing device, image processing method, and program for correcting color in an image | |
JP2003256830A (en) | Contrast emphasizing system | |
JP6575742B2 (en) | Image processing method and image processing apparatus | |
JP5499765B2 (en) | Image processing apparatus and image processing method | |
JP6126054B2 (en) | Image signal processing method and image signal processing apparatus | |
JP2010026690A (en) | Image processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130613 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130618 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130819 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130910 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20131108 |
|
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: 20131203 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131216 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |