JP2012100031A - Image processing device and control method therefor - Google Patents

Image processing device and control method therefor Download PDF

Info

Publication number
JP2012100031A
JP2012100031A JP2010245489A JP2010245489A JP2012100031A JP 2012100031 A JP2012100031 A JP 2012100031A JP 2010245489 A JP2010245489 A JP 2010245489A JP 2010245489 A JP2010245489 A JP 2010245489A JP 2012100031 A JP2012100031 A JP 2012100031A
Authority
JP
Japan
Prior art keywords
value
gradation
eye image
feature amount
bright
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
Application number
JP2010245489A
Other languages
Japanese (ja)
Other versions
JP5683214B2 (en
Inventor
Kohei Inamura
浩平 稲村
Yuki Shindo
裕紀 進藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2010245489A priority Critical patent/JP5683214B2/en
Publication of JP2012100031A publication Critical patent/JP2012100031A/en
Application granted granted Critical
Publication of JP5683214B2 publication Critical patent/JP5683214B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To perform appropriate dynamic γ correction processing using a γ correction curve with features of a left-eye image and features of a right-eye image reflected therein when correcting the stereoscopically viewable left-eye and right-eye images.SOLUTION: Histograms of stereoscopically viewable left-eye and right-eye images are created, a first dark-part feature amount as a gradation value on a low gradation side and a first bright-part feature amount as a gradation value on a high gradation side are detected from the histogram of the left-eye image, and a second dark-part feature amount as a gradation value on a low gradation side and a second bright-part feature amount as a gradation value on a high gradation side are detected from the histogram of the right-eye image. An integrated dark-part feature amount is determined using the first dark-part feature amount and the second dark-part feature amount, and an integrated bright-part feature amount is determined using the first bright-part feature amount and the second bright-part feature amount. A gradation correction parameter based on the integrated dark-part feature amount and the integrated bright-part feature amount is set, and gradations of the left-eye image and the right-eye image are corrected.

Description

本発明は、立体視可能な左眼用画像及び右眼用画像の階調を補正することができる画像処理装置及びその制御方法に関するものである。   The present invention relates to an image processing apparatus capable of correcting gradations of a left-eye image and a right-eye image that can be stereoscopically viewed, and a control method thereof.

フレームごとに、そのフレームの平均輝度値(APL)や輝度ヒストグラムなどの特徴量に基づいて階調補正パラメータ(γ補正カーブ)を設定することで、表示画像の階調を好適に補正する技術がある(特許文献1)。以後、このような階調補正処理をダイナミックγ補正処理と表記する。   A technique for suitably correcting the gradation of a display image by setting a gradation correction parameter (γ correction curve) for each frame based on a feature amount such as an average luminance value (APL) or a luminance histogram of the frame. Yes (Patent Document 1). Hereinafter, such gradation correction processing is referred to as dynamic γ correction processing.

現在、2次元の表示画面上に、両眼視差を利用した左眼用映像及び右眼用映像からなる3次元(3D)映像を表示することによって立体視を行う、立体視システムが知られている。しかし、立体視可能な1組の左眼用画像と右眼用画像とをそれぞれフレームごとにダイナミックγ補正処理したことにより、左眼用画像の階調と右眼用画像の階調とに大きな差が生じると、立体視しづらくなったり眼の疲労感が増大したりする。
そこで、左眼用画像及び右眼用画像における輝度などの特性の平均値に基づいて、左眼用画像と右眼用画像とを補正する技術が特許文献2に開示されている。
Currently, there is a known stereoscopic system that performs stereoscopic viewing by displaying a three-dimensional (3D) image including a left-eye image and a right-eye image using binocular parallax on a two-dimensional display screen. Yes. However, the dynamic γ correction processing for each pair of left-eye image and right-eye image that can be viewed stereoscopically is performed on a frame-by-frame basis, so that the gradation of the left-eye image and the gradation of the right-eye image are large. When the difference occurs, stereoscopic viewing becomes difficult and eye fatigue increases.
Therefore, Patent Document 2 discloses a technique for correcting a left-eye image and a right-eye image based on an average value of characteristics such as luminance in the left-eye image and the right-eye image.

特開平03−126377号公報Japanese Unexamined Patent Publication No. 03-126377 特開2007−151125号公報JP 2007-151125 A

しかし上記の特許文献2において、左眼用画像及び右眼用画像における輝度などの特性の平均値として、どのような値を用いるかについては具体的な記載がない。例えば、左眼用画像の輝度と右眼用画像の輝度を用いて、左眼用画像の輝度と右眼用画像の輝度の平均値を算出し、その平均値の階調を元に作成したγ補正カーブを用いて左眼用画像及び右眼用画像を補正するとする。この場合、左眼用画像及び右眼用画像の画像内で該平均値付近の輝度の領域は適正に補正されるが、該平均値以外の輝度の領域は適正に補正することができないことがある。該平均値よりも大きい輝度を持つ特殊領域が右眼用画像のみに含まれていた場合、前述の例のγ補正カーブでは該平均値の階調値に多くの階調が割りあてられて、該特殊領域の輝度の階調値には多くの階調が割りあてられていないため適正に補正できない。   However, in the above-mentioned Patent Document 2, there is no specific description as to what value is used as an average value of characteristics such as luminance in the image for the left eye and the image for the right eye. For example, using the luminance of the image for the left eye and the luminance of the image for the right eye, the average value of the luminance of the image for the left eye and the luminance of the image for the right eye is calculated, and created based on the gradation of the average value It is assumed that the image for the left eye and the image for the right eye are corrected using the γ correction curve. In this case, the luminance region in the vicinity of the average value is appropriately corrected in the left eye image and the right eye image, but the luminance region other than the average value cannot be corrected appropriately. is there. When a special region having a brightness larger than the average value is included only in the right-eye image, in the γ correction curve in the above example, many gradations are assigned to the gradation value of the average value, Since many gradations are not assigned to the gradation value of the brightness of the special area, it cannot be properly corrected.

本発明は、立体視可能な左眼用画像及び右眼用画像の補正を行う際に、左眼用画像の特徴と右眼用画像の特徴とを反映した階調補正パラメータを設定し、左眼用画像及び右眼用画像の階調を適正に補正できる画像処理装置及びその制御方法を提供することを目的とする。   The present invention sets a gradation correction parameter that reflects the characteristics of the left-eye image and the right-eye image when correcting the left-eye image and the right-eye image that can be stereoscopically viewed, It is an object of the present invention to provide an image processing apparatus and a control method thereof that can appropriately correct gradations of an eye image and a right eye image.

上記目的を達成するために、本発明は、左眼用画像及び右眼用画像を表示部に立体視可能なように表示する画像処理装置において、入力された前記左眼用画像及び右眼用画像のそれぞれのヒストグラムを作成するヒストグラム作成手段と、前記ヒストグラム作成手段で作成された前記左眼用画像のヒストグラムから、低階調側の階調値である第1暗部特徴量及び高階調側の階調値である第1明部特徴量を検出する第1検出手段と、前記ヒストグラム作成手段で作成された前記右眼用画像のヒストグラムから、低階調側の階調値である第2暗部特徴量及び高階調側の階調値である第2明部特徴量を検出する第2検出手段と、前記第1暗部特徴量及び前記第2暗部特徴量を用いて統合暗部特徴量を決定し、前記第1明部特徴量及び前記第2明部特徴量を用いて統合明部特徴量を決定する決定手段と、前記統合暗部特徴量及び前記統合明部特徴量に基づいた階調補正パラメータを設定する設定手段と、前記設定手段で設定された前記階調補正パラメータを用いて、前記左眼用画像及び右眼用画像の階調を補正する補正手段と、を有することを特徴とする。   In order to achieve the above object, the present invention provides an image processing apparatus for displaying a left-eye image and a right-eye image on a display unit so as to enable stereoscopic viewing, and the input left-eye image and right-eye image. Histogram creation means for creating respective histograms of the images, and the first dark area feature value and the high gradation side that are the gradation values on the low gradation side from the histogram of the image for the left eye created by the histogram creation means A first detection unit that detects a first bright portion feature amount that is a gradation value, and a second dark portion that is a gradation value on the low gradation side from the histogram of the right-eye image created by the histogram creation unit. The integrated dark portion feature amount is determined using a second detection unit that detects a feature amount and a second bright portion feature amount that is a gradation value on the high gradation side, and the first dark portion feature amount and the second dark portion feature amount. , The first bright part feature and the second bright part feature Determining means for determining an integrated bright part feature value using a quantity; setting means for setting a gradation correction parameter based on the integrated dark part feature quantity and the integrated bright part feature quantity; and the setting set by the setting means Correction means for correcting the gradation of the image for the left eye and the image for the right eye using a gradation correction parameter.

以上のように本発明は、立体視可能な左眼用画像及び右眼用画像の補正を行う際に、左眼用画像の特徴と右眼用画像の特徴とを反映した階調補正パラメータを設定し、左眼用画像及び右眼用画像の階調を適正に補正できる画像処理装置及びその制御方法を提供できる。   As described above, according to the present invention, when correcting the left-eye image and the right-eye image that can be stereoscopically viewed, the tone correction parameter that reflects the characteristics of the left-eye image and the right-eye image is used. It is possible to provide an image processing apparatus that can set and appropriately correct the gradation of the image for the left eye and the image for the right eye, and a control method thereof.

実施例1及び2に係る画像処理装置の機能構成を示すブロック図である。1 is a block diagram illustrating a functional configuration of an image processing apparatus according to Embodiments 1 and 2. FIG. 画像処理装置での処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process with an image processing apparatus. 分割領域を説明する概念図である。It is a conceptual diagram explaining a division area. 暗部注目階調及び明部注目階調を説明する図である。It is a figure explaining a dark part attention gradation and a bright part attention gradation. 実施例1に係る左眼用画像及び右眼用画像の各分割領域における暗部注目階調及び明部注目階調の具体例を示す図である。FIG. 6 is a diagram illustrating a specific example of a dark part attention gradation and a bright part attention gradation in each divided region of the left-eye image and the right-eye image according to the first embodiment. γ補正カーブの設定方法を示す図である。It is a figure which shows the setting method of (gamma) correction curve. 図6と異なるγ補正カーブの設定方法を示す図である。It is a figure which shows the setting method of the (gamma) correction curve different from FIG. 実施例2に係る左眼用画像及び右眼用画像における暗部注目階調及び明部注目階調の具体例を示す図である。It is a figure which shows the specific example of the dark part attention gradation and the bright part attention gradation in the image for left eyes and the image for right eyes which concerns on Example 2. FIG. 実施例3に係る画像処理装置の機能構成を示すブロック図である。FIG. 10 is a block diagram illustrating a functional configuration of an image processing apparatus according to a third embodiment. 画像処理装置での処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process with an image processing apparatus. 左眼用画像及び右眼用画像の各分割領域におけるAPL値及び差分と、ゲイン調整後のAPL値の具体例を示す図である。It is a figure which shows the specific example of the APL value and difference in each division area of the image for left eyes, and the image for right eyes, and the APL value after gain adjustment. γ補正カーブの設定方法を示す図である。It is a figure which shows the setting method of (gamma) correction curve.

以下、添付図面を参照して、本発明の実施例を説明する。   Embodiments of the present invention will be described below with reference to the accompanying drawings.

(実施例1)
本発明の実施形態に係る画像処理装置及びその制御方法の具体的な実施例について説明する。図1は本実施例に係る画像処理装置の機能構成を示すブロック図である。本実施例の画像処理装置は、左眼用画像入力端子101及び右眼用画像入力端子102と、左眼用画像ヒストグラム作成部103及び右眼用画像ヒストグラム作成部104と、左眼用画像注目階調検出部105及び右眼用画像注目階調検出部106を備える。更に、統合注目階調決定部107と、γ補正カーブ設定部108と、左眼用画像γ補正部109及び右眼用画像γ補正部110と、左眼用画像出力端子111及び右眼用画像出力端子112から構成されている。
Example 1
Specific examples of the image processing apparatus and the control method thereof according to the embodiment of the present invention will be described. FIG. 1 is a block diagram illustrating a functional configuration of the image processing apparatus according to the present embodiment. The image processing apparatus according to the present embodiment includes a left-eye image input terminal 101, a right-eye image input terminal 102, a left-eye image histogram creation unit 103, a right-eye image histogram creation unit 104, and a left-eye image attention. A gradation detection unit 105 and a right eye image attention gradation detection unit 106 are provided. Furthermore, the integrated attention gradation determination unit 107, the γ correction curve setting unit 108, the left-eye image γ correction unit 109, the right-eye image γ correction unit 110, the left-eye image output terminal 111, and the right-eye image. The output terminal 112 is configured.

画像処理装置での処理の流れについて、図2のフローチャートと共に説明する。ステップS11において、左眼用画像ヒストグラム作成部103及び右眼用画像ヒストグラム作成部104は、左眼用画像入力端子101及び右眼用画像入力端子102から入力された立体視可能な左眼用画像及び右眼用画像のそれぞれのヒストグラムを作成する。   The flow of processing in the image processing apparatus will be described with reference to the flowchart of FIG. In step S <b> 11, the left-eye image histogram creation unit 103 and the right-eye image histogram creation unit 104 are stereoscopically viewable left-eye images input from the left-eye image input terminal 101 and the right-eye image input terminal 102. And a histogram for each of the right-eye images.

次にステップS12において、左眼用画像注目階調検出部105及び右眼用画像注目階調検出部106は、左眼用画像のヒストグラムと右眼用画像のヒストグラムからそれぞれ暗部注目階調及び明部注目階調を検出する。暗部注目階調及び明部注目階調の検出方法についての説明は後述する。   Next, in step S12, the left-eye image attention gradation detection unit 105 and the right-eye image attention gradation detection unit 106 respectively obtain a dark-part attention gradation and a brightness from the left-eye image histogram and the right-eye image histogram. A partial attention gradation is detected. The method for detecting the dark part attention gradation and the bright part attention gradation will be described later.

ステップS13において、統合注目階調決定部107は、左眼用画像の暗部注目階調及び右眼用画像の暗部注目階調を用いて統合暗部注目階調を決定し、左眼用画像の明部注目階調及び右眼用画像の明部注目階調を用いて統合明部注目階調を決定する。統合暗部注目階調及び統合明部注目階調の決定方法についての説明は後述する。   In step S <b> 13, the integrated attention gradation determination unit 107 determines the integrated dark part attention gradation using the dark part attention gradation of the left eye image and the dark part attention gradation of the right eye image, and determines the brightness of the left eye image. The integrated bright part attention gradation is determined using the part attention gradation and the bright part attention gradation of the right-eye image. The method for determining the integrated dark part attention gradation and the integrated bright part attention gradation will be described later.

ステップS14において、γ補正カーブ設定部108は、統合注目階調決定部107で決定した統合暗部注目階調及び統合明部注目階調に基づいた階調補正パラメータであるγ補正カーブを設定する。そしてステップS15において、左眼用画像γ補正部109及び右眼用画像γ補正部110は、γ補正カーブ設定部108で設定されたγ補正カーブを用いて左眼用画像及び右眼用画像の階調を補正する処理を行う。そして補正された左眼用画像及び右眼用画像はそれぞれ左眼用画像出力端子111及び右眼用画像出力端子112から出力され表示部に表示される。   In step S <b> 14, the γ correction curve setting unit 108 sets a γ correction curve that is a gradation correction parameter based on the integrated dark part attention gradation and the integrated bright part attention gradation determined by the integrated attention gradation determination unit 107. In step S15, the left-eye image γ correction unit 109 and the right-eye image γ correction unit 110 use the γ correction curve set by the γ correction curve setting unit 108 to convert the left-eye image and the right-eye image. Processing for correcting gradation is performed. The corrected left-eye image and right-eye image are output from the left-eye image output terminal 111 and the right-eye image output terminal 112, respectively, and displayed on the display unit.

左眼用画像ヒストグラム作成部103及び右眼用画像ヒストグラム作成部104でのヒストグラムの作成方法について説明する。左眼用画像ヒストグラム作成部103及び右眼用画像ヒストグラム作成部104は、左眼用画像入力端子101及び右眼用画像入力端子102から入力された左眼用画像信号及び右眼用画像信号のそれぞれのヒストグラムを作成する。   A method of creating a histogram in the left-eye image histogram creation unit 103 and the right-eye image histogram creation unit 104 will be described. The left-eye image histogram creation unit 103 and the right-eye image histogram creation unit 104 receive the left-eye image signal and the right-eye image signal input from the left-eye image input terminal 101 and the right-eye image input terminal 102, respectively. Create each histogram.

本実施例では、左眼用画像ヒストグラム作成部103及び右眼用画像ヒストグラム作成部104は、入力された左眼用画像及び右眼用画像をそれぞれ複数の分割領域に分割し、各分割領域における輝度ヒストグラムを作成するものとする。例えば図3に示すように入力された画像を4×4の16の分割領域に分割する。各分割画像には図3のような識別番号d1〜d16により区別することができる。分割数は特にこれに限られず10×5や5×3等であってもよい。   In the present embodiment, the left-eye image histogram creation unit 103 and the right-eye image histogram creation unit 104 divide the input left-eye image and right-eye image into a plurality of divided regions, respectively. Assume that a luminance histogram is created. For example, as shown in FIG. 3, the input image is divided into 4 × 4 16 divided regions. Each divided image can be distinguished by identification numbers d1 to d16 as shown in FIG. The number of divisions is not particularly limited to this, and may be 10 × 5, 5 × 3, or the like.

本実施例では作成されるヒストグラムは、階調値0〜255の8bit(256階調)の輝度ヒストグラムとする。階調値は128階調や512階調でもよい。また、ヒストグラムは画像の輝度のものではなく、R(赤)画素値とG(緑)画素値とB(青)画素値の平均値の階調としたヒストグラムや、R(赤)画素値とG(緑)画素値とB(青)画素値のうちの最大値の階調としたヒストグラムであってもよい。また、横軸をG(緑)画素値の階調としたヒストグラム等、R(赤)画素値とG(緑)画素値とB(青)画素値のうちのいずれかの画素値の階調としたヒストグラムであってもよい。このような画像の特徴を表すヒストグラムであれば、本実施例を適用可能である。   In this embodiment, the created histogram is an 8-bit (256 gradation) luminance histogram having gradation values of 0 to 255. The gradation value may be 128 gradations or 512 gradations. In addition, the histogram is not for the luminance of the image, but is a histogram with a gradation of an average value of R (red) pixel value, G (green) pixel value, and B (blue) pixel value, and R (red) pixel value. It may be a histogram having the maximum gradation of the G (green) pixel value and the B (blue) pixel value. Also, the gradation of one of the pixel values of the R (red) pixel value, the G (green) pixel value, and the B (blue) pixel value, such as a histogram with the horizontal axis representing the gradation of the G (green) pixel value A histogram may be used. The present embodiment can be applied to any histogram representing such image characteristics.

次に暗部注目階調及び明部注目階調の検出方法について説明する。以下ではまず、左眼用画像における暗部注目階調及び明部注目階調の検出方法を説明する。   Next, a method for detecting a dark part attention gradation and a bright part attention gradation will be described. In the following, first, a method for detecting a dark part attention gradation and a bright part attention gradation in an image for the left eye will be described.

左眼用画像注目階調検出部105は、左眼用画像ヒストグラム作成部103で作成された左眼用画像の各単位領域における輝度ヒストグラムのそれぞれから暗部注目階調(第1暗部特徴量)及び明部注目階調(第1明部特徴量)を検出する。ここで注目階調とは、階調性を高めることが望ましい階調値である。注目階調とは輝度ヒストグラムにおいて(1)度数が所定の閾値以上かつ(2)極大値となる階調値で、かつ(3)該階調値を含む所定範囲内の度数の変動量が所定の基準より小さい階調値であり、以上(1)〜(3)の3つの条件を満たす階調値である。ここで(2)の条件での度数が極大値か否かは、例えば、注目階調か否かの対象とする階調値の度数と、その前後それぞれm個の階調値(mは1以上の整数)の度数とを比較することにより判断すればよい。比較する階調値の度数の中での最大値を極大値とする。なお、対象とする階調値の前後それぞれm個の階調値とは、対象とする階調値よりも小さなm個の階調値と、対象とする階調値よりも大きなm個の階調値を意味する。(3)の条件は、画像が同一色(同一の階調値)の領域(例えば、レターボックスや、データ放送などの図形や文字)を含む場合に局所的に度数の変動量が大きくなる階調値を除外するための条件である。(3)の条件を満たすか否かは、注目階調か否かの対象とする階調値の度数と、その階調値を除く±nの階調値(nは1以上の整数)の度数の総和に所定値を乗算した値とを比較することなどにより判断すればよい。   The left eye image attention gradation detection unit 105 includes a dark portion attention gradation (first dark portion feature amount) and a dark portion attention gradation (first dark portion feature amount) from each luminance histogram in each unit region of the left eye image created by the left eye image histogram creation unit 103. A bright part attention gradation (first bright part feature amount) is detected. Here, the target gradation is a gradation value for which it is desirable to improve gradation. The target gradation is (1) a gradation value in which the frequency is equal to or greater than a predetermined threshold and (2) a maximum value in the luminance histogram, and (3) a variation amount of the frequency within a predetermined range including the gradation value is predetermined. Is a gradation value satisfying the above three conditions (1) to (3). Here, whether or not the frequency under the condition (2) is a maximum value is, for example, the frequency of the target gradation value whether or not it is the target gradation and m gradation values before and after that (m is 1). What is necessary is just to judge by comparing with the frequency of the above integer). The maximum value among the frequencies of the gradation values to be compared is set as the maximum value. Note that m tone values before and after the target tone value are m tone values smaller than the target tone value and m levels larger than the target tone value. Means the key value. The condition (3) is that when the image includes an area of the same color (same gradation value) (for example, a letterbox or a graphic or character such as data broadcasting), the frequency variation amount is locally increased. This is a condition for excluding key values. Whether or not the condition of (3) is satisfied is determined by the frequency of the target gradation value as to whether or not it is the target gradation, and the gradation value of ± n excluding the gradation value (n is an integer of 1 or more) The determination may be made by comparing with a value obtained by multiplying the sum of frequencies by a predetermined value.

輝度ヒストグラムにおける暗部注目階調は、階調値が低階調側の注目階調である。本実施例では、輝度ヒストグラムが256階調の場合、階調値が2〜126の範囲で上記の条件を満たす注目階調の中の最小注目階調を暗部注目階調とする。階調値が2〜126の範囲に注目階調がない場合は、暗部注目階調は128とする。   The dark part attention gradation in the luminance histogram is the attention gradation on the lower gradation side. In this embodiment, when the luminance histogram is 256 gradations, the minimum attention gradation among the attention gradations satisfying the above condition in the range of gradation values from 2 to 126 is set as the dark part attention gradation. When there is no attention gradation in the range of gradation values 2 to 126, the dark part attention gradation is set to 128.

輝度ヒストグラムにおける明部注目階調は、階調値が高階調側の注目階調である。本実施例は、輝度ヒストグラムが256階調の場合、階調値が130〜253の範囲で上記の条件を満たす注目階調の中の最大注目階調を明部注目階調とする。階調値が130〜253の範囲に注目階調がない場合は、明部注目階調は128とする。階調値0、1、127、128、129、254、255は、上下それぞれ2つの階調値の度数を注目階調の検出に用いるために注目階調の範囲から除外している。   The bright part attention gradation in the luminance histogram is the attention gradation on the higher gradation side. In this embodiment, when the luminance histogram is 256 gradations, the maximum attention gradation among the attention gradations satisfying the above condition in the gradation value range of 130 to 253 is set as the bright part attention gradation. When there is no target gradation in the range of gradation values 130 to 253, the bright part attention gradation is set to 128. In the gradation values 0, 1, 127, 128, 129, 254, and 255, the frequencies of the two upper and lower gradation values are excluded from the attention gradation range in order to use the attention gradation detection.

輝度ヒストグラムから検出した低階調側の階調値である暗部注目階調(第1暗部特徴量)と高階調側の階調値である明部注目階調(第1明部特徴量)を図4に示す。以上のように左眼用画像注目階調検出部105は、左眼用画像の各分割領域におけるヒストグラムのそれぞれから暗部注目階調及び明部注目階調を検出する。同様に右眼用画像注目階調検出部106は、右眼用画像の各分割領域におけるヒストグラムのそれぞれから暗部注目階調(第2暗部特徴量)及び明部注目階調(第2明部特徴量)を検出する。   The dark part attention gradation (first dark part feature amount) which is the gradation value on the low gradation side detected from the luminance histogram and the bright part attention gradation (first light part feature amount) which is the gradation value on the high gradation side. As shown in FIG. As described above, the left-eye image attention gradation detection unit 105 detects the dark part attention gradation and the bright part attention gradation from each of the histograms in each divided region of the left-eye image. Similarly, the right-eye image attention gradation detection unit 106 determines a dark-part attention gradation (second dark-part feature amount) and a bright-part attention gradation (second bright-part feature) from each of the histograms in each divided region of the right-eye image. Amount).

次に、統合暗部注目階調及び統合明部注目階調の決定方法について説明する。統合注目階調決定部107は、左眼用画像の各分割領域における暗部注目階調(第1暗部特徴量)、及び右眼用画像の各分割領域における暗部注目階調(第2暗部特徴量)を用いて統合暗部注目階調(統合暗部特徴量)を決定する。また、左眼用画像の各分割領域における明部注目階調(第1明部特徴量)、及び右眼用画像の各分割領域における明部注目階調(第2明部特徴量)を用いて統合明部注目階調(統合明部特徴量)を決定する。   Next, a method for determining the integrated dark part attention gradation and the integrated bright part attention gradation will be described. The integrated attention gradation determination unit 107 includes a dark part attention gradation (first dark portion feature amount) in each divided region of the left eye image and a dark portion attention gradation (second dark portion feature amount) in each divided region of the right eye image. ) Is used to determine the integrated dark part attention gradation (integrated dark part feature amount). In addition, the bright portion attention gradation (first bright portion feature amount) in each divided region of the left eye image and the bright portion attention gradation (second bright portion feature amount) in each divided region of the right eye image are used. The integrated bright part attention gradation (integrated bright part feature value) is determined.

本実施例では、左眼用画像の各分割領域における暗部注目階調及び右眼用画像の各分割領域における暗部注目階調の中の最小値を統合暗部注目階調と決定する。また、左眼用画像の各分割領域における明部注目階調及び右眼用画像の各分割領域における明部注目階調の中の最小値を統合暗部注目階調と決定する。具体例を図5に示す。   In this embodiment, the minimum value of the dark part attention gradation in each divided region of the left eye image and the dark part attention gradation in each divided region of the right eye image is determined as the integrated dark part attention gradation. Further, the minimum value among the bright part attention gradation in each divided region of the left eye image and the bright part attention gradation in each divided region of the right eye image is determined as the integrated dark part attention gradation. A specific example is shown in FIG.

図5(a)は左眼用画像の各分割領域における暗部注目階調及び右眼用画像の各分割領域における暗部注目階調を示したものであり、図5(b)は左眼用画像の各分割領域における明部注目階調及び右眼用画像の各分割領域における明部注目階調を示したものである。図5(a)の暗部注目階調の中の最小値である、左眼用画像の領域d6の階調値25が統合暗部注目階調となる。図5(b)の明部注目階調の中の最大値である、右眼用画像の領域d2の階調値230が統合暗部注目階調となる。   FIG. 5A shows the dark part attention gradation in each divided area of the left eye image and the dark part attention gradation in each divided area of the right eye image, and FIG. 5B shows the left eye image. The bright part attention gradation in each division area and the bright part attention gradation in each division area of the right-eye image are shown. The gradation value 25 of the region d6 of the image for left eye, which is the minimum value among the dark part attention gradations in FIG. 5A, becomes the integrated dark part attention gradation. The gradation value 230 of the region d2 of the right-eye image, which is the maximum value among the bright part attention gradations in FIG. 5B, becomes the integrated dark part attention gradation.

上記の例では、左眼用画像及び右眼用画像のそれぞれの各分割領域における暗部注目階調の最小値を統合暗部注目階調、左眼用画像及び右眼用画像のそれぞれの各分割領域における明部注目階調の最大値を統合明部注目階調としたがこれに限られない。例えば統合暗部注目階調は、左眼用画像の各分割領域における暗部注目階調の最小値と、右眼用画像の各分割領域における暗部注目階調の最小値との平均値としてもよい。同様に統合明部注目階調を左眼用画像の各分割領域における明部注目階調の最大値と、右眼用画像の各分割領域における明部注目階調の最大値との平均値としてもよい。図5の例で、統合暗部注目階調は左眼用画像の暗部注目階調の最小値25と右眼用画像の暗部注目階調の最小値35との平均値30、統合明部注目階調は左眼用画像の明部注目階調の最大値200と右眼用画像の暗部注目階調の最大値230との平均値215となる。   In the above example, the minimum value of the dark part attention gradation in each of the divided areas of the left eye image and the right eye image is obtained by integrating each of the divided dark part attention gradation, the left eye image, and the right eye image. The maximum value of the bright part attention gradation in FIG. 4 is set as the integrated bright part attention gradation, but is not limited thereto. For example, the integrated dark part attention gradation may be an average value of the minimum value of the dark part attention gradation in each divided region of the left eye image and the minimum value of the dark part attention gradation in each divided region of the right eye image. Similarly, the integrated bright portion attention gradation is an average value of the maximum value of the bright portion attention gradation in each divided region of the image for the left eye and the maximum value of the bright portion attention gradation in each division region of the image for the right eye. Also good. In the example of FIG. 5, the integrated dark part attention gradation is the average value 30 of the minimum value 25 of the dark part attention gradation of the image for the left eye and the minimum value 35 of the dark part attention gradation of the image for the right eye. The tone is an average value 215 of the maximum value 200 of the bright part attention gradation of the image for the left eye and the maximum value 230 of the dark part attention gradation of the image for the right eye.

続いてγ補正カーブの設定方法について説明する。γ補正カーブ設定部108は、統合注目階調決定部107で決定された統合暗部注目階調及び統合明部注目階調に基づいた階調補正パラメータであるγ補正カーブを設定する。設定するγ補正カーブは、統合暗部注目階調及び統合明部注目階調の階調値周辺の階調性を高めるようなγ補正カーブである。   Next, a method for setting a γ correction curve will be described. The γ correction curve setting unit 108 sets a γ correction curve which is a gradation correction parameter based on the integrated dark part attention gradation and the integrated bright part attention gradation determined by the integrated attention gradation determination part 107. The γ correction curve to be set is a γ correction curve that enhances the gradation around the gradation values of the integrated dark part attention gradation and the integrated bright part attention gradation.

図6に統合暗部注目階調が階調値25、統合明部注目階調が階調値230の場合のγ補正カーブを示す。図6の破線は入力された画像の階調値をそのまま出力する場合のγ補正カーブである。これに対し、γ補正カーブ設定部108で設定される実線のγ補正カーブは、統合暗部注目階調が階調値25、統合明部注目階調が階調値230周辺の階調性を高めるようなγ補正カーブになっている。   FIG. 6 shows a γ correction curve when the integrated dark part attention gradation is the gradation value 25 and the integrated bright part attention gradation is the gradation value 230. The broken line in FIG. 6 is a γ correction curve when the gradation value of the input image is output as it is. On the other hand, the solid-line γ correction curve set by the γ correction curve setting unit 108 enhances the gradation around the gradation value 25 for the integrated dark portion attention gradation and the gradation value 230 for the integrated bright portion attention gradation. The γ correction curve is as follows.

また、図7に示すように、低階調データを補正する暗部カーブγB、高階調データを補正する明部カーブγWと、中間階調を補正する中間カーブγMから、γ補正カーブを設定してもよい。以下に暗部カーブγB、明部カーブγW、中間カーブγMから、γ補正カーブを設定する方法を説明する。   Further, as shown in FIG. 7, a γ correction curve is set from a dark curve γB for correcting low gradation data, a bright curve γW for correcting high gradation data, and an intermediate curve γM for correcting intermediate gradation. Also good. A method for setting a γ correction curve from the dark part curve γB, the bright part curve γW, and the intermediate curve γM will be described below.

例えば図7に示すように、暗部カーブγBは階調値0〜128の入力データをγ補正するカーブである。暗部カーブγB(i)は126種類(i:2〜126、128)用意されている。暗部カーブγB(i)は階調値i周辺の範囲の階調値における階調性を高めるγ補正カーブになっている。統合暗部注目階調に応じて126種類の暗部カーブγB(i)(i:2〜126,128)の中から一つの暗部カーブγB(i)が選択される。統合暗部注目階調は、左眼用画像の各分割領域における暗部注目階調、及び右眼用画像の各分割領域における暗部注目階調を用いて決定されるので、2〜126、128のいずれかの値をとる。統合暗部注目階調が階調値25の場合は、暗部カーブγB(25)が選択される。   For example, as shown in FIG. 7, the dark curve γB is a curve for γ-correcting input data with gradation values 0 to 128. There are 126 types (i: 2 to 126, 128) of dark part curves γB (i). The dark part curve γB (i) is a γ correction curve that enhances the gradation in the gradation values in the range around the gradation value i. One dark part curve γB (i) is selected from 126 types of dark part curves γB (i) (i: 2 to 126, 128) according to the integrated dark part attention gradation. The integrated dark part attention gradation is determined using the dark part attention gradation in each divided region of the left-eye image and the dark part attention gradation in each divided region of the right-eye image. Take the value of When the integrated dark part attention gradation is the gradation value 25, the dark part curve γB (25) is selected.

また、明部カーブγWは階調値192〜255の入力データをγ補正するカーブである。図7に示すように、明部カーブγW(i)は125種類(i:128、130〜253)用意されている。明部カーブγW(i)は階調値i周辺の範囲の階調値における階調性を高めるγ補正カーブになっている。統合明部注目階調に応じて125種類の明部カーブγW(i)(i:128、130〜253)の中から一つの明部カーブγW(i)が選択される。統合明部注目階調は、左眼用画像の各分割領域における明部注目階調、及び右眼用画像の各分割領域における明部注目階調を用いて決定されるので、128、130〜253のいずれかの値をとる。統合明部注目階調が階調値230の場合は、明部カーブγW(230)が選択される。   A bright curve γW is a curve for γ-correcting input data having gradation values of 192 to 255. As shown in FIG. 7, 125 types (i: 128, 130 to 253) of bright portion curves γW (i) are prepared. The bright part curve γW (i) is a γ correction curve that enhances the gradation in the gradation values in the range around the gradation value i. One bright portion curve γW (i) is selected from 125 types of bright portion curves γW (i) (i: 128, 130 to 253) according to the integrated bright portion attention gradation. The integrated bright portion attention gradation is determined using the bright portion attention gradation in each divided region of the left eye image and the bright portion attention gradation in each divided region of the right eye image. One of the values of 253 is taken. When the integrated bright part attention gradation is the gradation value 230, the bright part curve γW (230) is selected.

以上のようにγ補正カーブを決定することによって、統合暗部注目階調が低い場合ほど低い階調値に階調を割り付けるカーブが生成され、統合明部注目階調が高い場合ほど高い階調値に階調を割り付けるカーブが生成される。以上のように決定したγ補正カーブを用いて補正をすることで暗部と明部の視認性を上げることが可能である。   By determining the γ correction curve as described above, a curve that assigns a gradation to a lower gradation value is generated when the integrated dark part attention gradation is lower, and a higher gradation value is obtained when the integrated bright part attention gradation is higher. A curve for assigning gradations to is generated. It is possible to improve the visibility of the dark part and the bright part by performing correction using the γ correction curve determined as described above.

中間カーブγMは階調値129〜191の入力データをγ補正するカーブである。中間γカーブγMは選択された暗部カーブγB(i)と明部カーブγW(i)の間の階調を直線補間により補間した変換特性とする。以上のようにγ補正カーブ設定部108において、暗部カーブγB、明部カーブγW及び中間カーブγMによりγ補正カーブが設定される。   The intermediate curve γM is a curve for γ-correcting input data with gradation values 129 to 191. The intermediate γ curve γM has a conversion characteristic obtained by interpolating the gradation between the selected dark portion curve γB (i) and the bright portion curve γW (i) by linear interpolation. As described above, in the γ correction curve setting unit 108, the γ correction curve is set by the dark part curve γB, the bright part curve γW, and the intermediate curve γM.

左眼用画像γ補正部109及び右眼用画像γ補正部110では、上記のように設定されたγ補正カーブを用いて、左眼用画像及び右眼用画像の階調を補正する。そして補正した左眼用画像及び右眼用画像はそれぞれ、左眼用画像出力端子111及び右眼用画像出力端子112から出力され表示部で表示される。   The left-eye image γ correction unit 109 and the right-eye image γ correction unit 110 correct the gradation of the left-eye image and the right-eye image using the γ correction curve set as described above. The corrected left-eye image and right-eye image are output from the left-eye image output terminal 111 and the right-eye image output terminal 112, respectively, and displayed on the display unit.

以上のように本実施例によれば、立体視可能な左眼用画像及び右眼用画像の階調を補正するγ補正カーブが左眼用画像及び右眼用画像の両画像の特徴を反映して設定されているため、黒つぶれや白とびすることない適正なγ補正処理を行うことができる。   As described above, according to the present embodiment, the γ correction curve for correcting the gradation of the left-eye image and the right-eye image that can be viewed stereoscopically reflects the characteristics of both the left-eye image and the right-eye image. Therefore, it is possible to perform appropriate γ correction processing without causing blackout or overexposure.

(実施例2)
実施例1では、左眼用画像及び右眼用画像のそれぞれのヒストグラムを作成する際に、左眼用画像及び右眼用画像をそれぞれ複数の分割領域に分割し、各分割領域におけるヒストグラムを作成した。本実施例では、左眼用画像及び右眼用画像を分割しない場合を説明する。実施例1と同様の処理については説明を省略する。
(Example 2)
In the first embodiment, when the histograms for the left-eye image and the right-eye image are created, the left-eye image and the right-eye image are each divided into a plurality of divided areas, and a histogram in each divided area is created. did. In this embodiment, a case will be described in which the left-eye image and the right-eye image are not divided. A description of the same processing as in the first embodiment will be omitted.

左眼用画像ヒストグラム作成部103及び右眼用画像ヒストグラム作成部104は、入力された左眼用画像及び右眼用画像のそれぞれのヒストグラムを作成する。本実施例でも実施例1と同様に、作成されるヒストグラムは階調値0〜255の8bit(256階調)の輝度ヒストグラムとする。   The left-eye image histogram creation unit 103 and the right-eye image histogram creation unit 104 create respective histograms of the input left-eye image and right-eye image. In the present embodiment, as in the first embodiment, the created histogram is an 8-bit (256 gradation) luminance histogram having gradation values of 0 to 255.

左眼用画像注目階調検出部105は、左眼用画像ヒストグラム作成部103で作成された左眼用画像の輝度ヒストグラムから暗部注目階調(第1暗部特徴量)及び明部注目階調(第1明部特徴量)を検出する。ヒストグラムから暗部注目階調及び明部注目階調を検出する方法は実施例1と同様である。右眼用画像注目階調検出部106も左眼用画像注目階調検出部105と同様に、右眼用画像の輝度ヒストグラムから暗部注目階調(第2暗部特徴量)及び明部注目階調(第2明部特徴量)を検出する。左眼用画像注目階調検出部105及び右眼用画像注目階調検出部106のそれぞれで検出した、左眼用画像及び右眼用画像のそれぞれの暗部注目階調及び明部注目階調を図8に示す。   The left-eye image attention gradation detection unit 105 determines a dark-part attention gradation (first dark-part feature amount) and a bright-part attention gradation (from the luminance histogram of the left-eye image created by the left-eye image histogram creation unit 103. 1st light part feature-value) is detected. The method of detecting the dark part attention gradation and the bright part attention gradation from the histogram is the same as in the first embodiment. Similarly to the left-eye image attention gradation detection unit 105, the right-eye image attention gradation detection unit 106 also obtains the dark part attention gradation (second dark part feature amount) and the bright part attention gradation from the luminance histogram of the right-eye image. (Second bright part feature amount) is detected. The dark part attention gradation and the bright part attention gradation of the left eye image and the right eye image detected by the left eye image attention gradation detection unit 105 and the right eye image attention gradation detection unit 106, respectively. As shown in FIG.

統合注目階調決定部107は、左眼用画像注目階調検出部105及び右眼用画像注目階調検出部106のそれぞれで検出した、左眼用画像及び右眼用画像のそれぞれの暗部注目階調から統合暗部注目階調を決定する。また同様に、左眼用画像及び右眼用画像のそれぞれの明部注目階調から統合明部注目階調を決定する。   The integrated attention gradation determination unit 107 detects the dark part attention of the left eye image and the right eye image detected by the left eye image attention gradation detection unit 105 and the right eye image attention gradation detection unit 106, respectively. The integrated dark part attention gradation is determined from the gradation. Similarly, an integrated bright part attention gradation is determined from the bright part attention gradations of the left-eye image and the right-eye image.

本実施例では、統合暗部注目階調は、左眼用画像及び右眼用画像のそれぞれの暗部注目階調の最小値としてもよいし、左眼用画像及び右眼用画像のそれぞれの暗部注目階調の平均値としてもよい。図8の例において、統合暗部注目階調を左眼用画像及び右眼用画像のそれぞれの暗部注目階調の最小値とした場合は25、平均値とした場合は30となる。また、統合明部注目階調は、左眼用画像及び右眼用画像のそれぞれの明部注目階調の最大値としてもよいし、左眼用画像及び右眼用画像のそれぞれの明部注目階調の平均値としてもよい。図8の例において、統合明部注目階調を左眼用画像及び右眼用画像のそれぞれの明部注目階調の最大値とした場合は230、平均値とした場合は215となる。   In this embodiment, the integrated dark part attention gradation may be the minimum value of the dark part attention gradation of the left eye image and the right eye image, or the dark part attention of the left eye image and the right eye image. An average value of gradations may be used. In the example of FIG. 8, the integrated dark part attention gradation is 25 when the dark part attention gradation of each of the left-eye image and the right-eye image is the minimum value, and 30 when it is the average value. The integrated bright part attention gradation may be the maximum value of the bright part attention gradations of the left eye image and the right eye image, or the bright part attention of the left eye image and the right eye image. An average value of gradations may be used. In the example of FIG. 8, the integrated bright portion attention gradation is 230 when the maximum value of the bright portion attention gradation of each of the left-eye image and the right-eye image is set, and 215 when the average value is set.

以上のように決定された統合暗部注目階調及び統合明部注目階調に基づいた階調補正パラメータであるγ補正カーブを実施例1と同様にγ補正カーブ設定部108が設定し、設定されたγ補正カーブを用いて左眼用画像及び右眼用画像の階調を補正する。   The γ correction curve setting unit 108 sets and sets the γ correction curve, which is a gradation correction parameter based on the integrated dark part attention gradation and the integrated bright part attention gradation determined as described above, as in the first embodiment. The gradation of the left eye image and the right eye image is corrected using the γ correction curve.

このように本実施例においても、立体視可能な左眼用画像及び右眼用画像の階調を補正するγ補正カーブが左眼用画像及び右眼用画像の両画像の特徴を反映して設定されているため、黒つぶれや白とびすることない適正なγ補正処理を行うことができる。   As described above, also in the present embodiment, the γ correction curve for correcting the gradation of the left-eye image and the right-eye image that can be viewed stereoscopically reflects the characteristics of both the left-eye image and the right-eye image. Since it is set, it is possible to perform appropriate γ correction processing without causing blackout or overexposure.

(実施例3)
本発明の実施形態に係る画像処理装置及びその制御方法の具体的な実施例について説明する。図9は本実施例に係る画像処理装置の機能構成を示すブロック図である。実施例1及び2に係る画像処理装置の図1のブロック図と同様な処理を行うブロックについては同符号を付している。
(Example 3)
Specific examples of the image processing apparatus and the control method thereof according to the embodiment of the present invention will be described. FIG. 9 is a block diagram illustrating a functional configuration of the image processing apparatus according to the present embodiment. Blocks that perform processing similar to the block diagram of FIG. 1 of the image processing apparatus according to the first and second embodiments are denoted by the same reference numerals.

本実施例の画像処理装置は、左眼用画像入力端子101及び右眼用画像入力端子102と、左眼用画像分割APL検出部301及び右眼用画像分割APL検出部302と、ゲイン値算出部303と、統合APL決定部304を備える。更に、左眼用画像ゲイン調整部305及び右眼用画像ゲイン調整部306と、γ補正カーブ設定部307と、左眼用画像γ補正部109及び右眼用画像γ補正部110と、左眼用画像出力端子111及び右眼用画像出力端子112から構成されている。   The image processing apparatus according to the present embodiment includes a left-eye image input terminal 101 and a right-eye image input terminal 102, a left-eye image division APL detection unit 301 and a right-eye image division APL detection unit 302, and gain value calculation. Unit 303 and integrated APL determination unit 304. Furthermore, the left-eye image gain adjustment unit 305, the right-eye image gain adjustment unit 306, the γ correction curve setting unit 307, the left-eye image γ correction unit 109, the right-eye image γ correction unit 110, and the left eye Image output terminal 111 and right-eye image output terminal 112.

画像処理装置での処理の流れについて、図10のフローチャートと共に説明する。ステップS31において、左眼用画像分割APL検出部301及び右眼用画像分割APL検出部302は、左眼用画像入力端子101及び右眼用画像入力端子102から入力された左眼用画像及び右眼用画像それぞれを複数の分割領域に分割する。そして、各分割領域における平均輝度値を検出する。本実施例では左眼用画像分割APL検出部301及び右眼用画像分割APL検出部302において各分割領域における平均輝度値(APL値)を検出する。   The flow of processing in the image processing apparatus will be described with reference to the flowchart of FIG. In step S31, the left-eye image segmentation APL detection unit 301 and the right-eye image segmentation APL detection unit 302 perform the left-eye image input from the left-eye image input terminal 101 and the right-eye image input terminal 102 and the right-eye image. Each ophthalmic image is divided into a plurality of divided regions. Then, an average luminance value in each divided area is detected. In this embodiment, the left eye image division APL detection unit 301 and the right eye image division APL detection unit 302 detect an average luminance value (APL value) in each divided region.

ステップS32においてゲイン値算出部303は、ステップS31で検出した左眼用画像及び右眼用画像それぞれの各分割領域におけるAPL値を比較し、左眼用画像及び右眼用画像それぞれのゲイン値を算出する。ステップS33において左眼用画像ゲイン調整部305及び右眼用画像ゲイン調整部306は、算出されたゲイン値に基づいて、左眼用画像及び右眼用画像それぞれの各領域におけるAPL値を調整する。ゲイン値の算出方法及びゲイン値によるAPL値の調整方法の説明は後述する。   In step S32, the gain value calculation unit 303 compares the APL values in the respective divided regions of the left eye image and the right eye image detected in step S31, and calculates the gain values of the left eye image and the right eye image. calculate. In step S33, the left-eye image gain adjustment unit 305 and the right-eye image gain adjustment unit 306 adjust the APL values in the respective regions of the left-eye image and the right-eye image based on the calculated gain values. . The method for calculating the gain value and the method for adjusting the APL value based on the gain value will be described later.

ステップS34において統合APL決定部304は、ゲイン値によって補正した左眼用画像及び右眼用画像それぞれの各分割領域におけるAPL値を用いて、統合暗部APL値及び統合明部APL値を決定する。統合暗部APL値及び統合明部APL値の決定方法は後述する。   In step S34, the integrated APL determination unit 304 determines the integrated dark part APL value and the integrated bright part APL value by using the APL values in the respective divided regions of the left-eye image and the right-eye image corrected by the gain value. A method for determining the integrated dark part APL value and the integrated bright part APL value will be described later.

ステップS35においてγ補正カーブ設定部307は、統合暗部APL値及び統合明部APL値に基づいた階調補正パラメータであるγ補正カーブを設定する。γ補正カーブの設定方法は後述する。ステップS36において左眼用画像γ補正部109及び右眼用画像γ補正部110は、γ補正カーブ設定部307で設定されたγ補正カーブを用いて実施例1及び2と同様に、左眼用画像及び右眼用画像の階調を補正する処理を行う。そして補正された左眼用画像及び右眼用画像はそれぞれ左眼用画像出力端子111及び右眼用画像出力端子112から出力され表示部に表示される。   In step S35, the γ correction curve setting unit 307 sets a γ correction curve that is a gradation correction parameter based on the integrated dark part APL value and the integrated bright part APL value. A method for setting the γ correction curve will be described later. In step S36, the left-eye image γ correction unit 109 and the right-eye image γ correction unit 110 use the γ correction curve set by the γ correction curve setting unit 307 in the same manner as in the first and second embodiments. Processing for correcting the gradation of the image and the right-eye image is performed. The corrected left-eye image and right-eye image are output from the left-eye image output terminal 111 and the right-eye image output terminal 112, respectively, and displayed on the display unit.

本実施例では、左眼用画像分割APL検出部301及び右眼用画像分割APL検出部302は、左眼用画像及び右眼用画像の各画素の輝度値を検出する。本実施例では輝度値を階調値0〜255の8bit(256階調)で検出する。   In the present embodiment, the left-eye image division APL detection unit 301 and the right-eye image division APL detection unit 302 detect the luminance value of each pixel of the left-eye image and the right-eye image. In this embodiment, the luminance value is detected with 8 bits (256 gradations) of gradation values 0 to 255.

左眼用画像及び右眼用画像を例えば図3のように4×4の16の分割領域d1〜d16に分割して各分割領域のAPL値を検出するとする。また、左眼用画像分割APL検出部301及び右眼用画像分割APL検出部302は、256階調で検出された各画素の輝度値を0〜7を用いて、APL値を3bit(8階調)で検出するとする。画像の分割数は特にこれに限られず10×5や5×3等であってもよく、APL値の検出精度は例えば128階調や256階調でもよい。   Assume that the left-eye image and the right-eye image are divided into, for example, 4 × 4 16 divided areas d1 to d16 as shown in FIG. 3 and the APL value of each divided area is detected. The left-eye image division APL detection unit 301 and the right-eye image division APL detection unit 302 use 0 to 7 as the luminance value of each pixel detected in 256 gradations, and set the APL value to 3 bits (8th floor). )). The number of image divisions is not particularly limited to this, and may be 10 × 5, 5 × 3, or the like, and the detection accuracy of the APL value may be, for example, 128 gradations or 256 gradations.

図11(a)に左眼用画像及び右眼用画像それぞれの各分割領域のAPL値、及び各分割領域における左眼用画像APL値と右眼用画像APL値との差分の具体例を示す。左眼用画像及び右眼用画像それぞれの各分割領域のAPL値は、左眼用画像分割APL検出部301及び右眼用画像分割APL検出部302で検出される。また、各分割領域における左眼用画像APL値と右眼用画像APL値との差分はゲイン値算出部303にて求められる。   FIG. 11A shows a specific example of the APL value of each divided region of the left eye image and the right eye image, and the difference between the left eye image APL value and the right eye image APL value in each divided region. . The APL value of each divided region of the left eye image and the right eye image is detected by the left eye image division APL detection unit 301 and the right eye image division APL detection unit 302. The difference between the left-eye image APL value and the right-eye image APL value in each divided region is obtained by the gain value calculation unit 303.

図11(a)を用いて、ゲイン値の算出方法及びゲイン値によるAPL値の調整方法を説明する。   A gain value calculation method and an APL value adjustment method based on the gain value will be described with reference to FIG.

ゲイン値算出部303は、各分割領域における左眼用画像APL値と右眼用画像APL値とを比較する。比較して所定の閾値以上の差がある(偏りがある)分割領域において、左眼用画像APL値が右眼用画像APL値より大きい分割領域の数と、右眼用画像APL値が左眼用画像APL値より大きい分割領域の数とをカウントする。   The gain value calculation unit 303 compares the left-eye image APL value and the right-eye image APL value in each divided region. In the divided areas having a difference equal to or greater than a predetermined threshold (biased), the number of divided areas where the left-eye image APL value is larger than the right-eye image APL value, and the right-eye image APL value is the left eye The number of divided areas larger than the image APL value for use is counted.

図11(a)において所定の閾値を1とすると、左眼用画像APL値が右眼用画像APL値より大きい分割領域(左眼用画像APL値−右眼用画像APL値が正で1以上)が13個存在する。また、右眼用画像APL値が左眼用画像APL値より大きい分割領域(左眼用画像APL値−右眼用画像APL値が負で絶対値が1以上)が2個存在する。   In FIG. 11A, when the predetermined threshold value is 1, a divided region in which the left-eye image APL value is larger than the right-eye image APL value (left-eye image APL value−right-eye image APL value is positive and 1 or more). There are 13). In addition, there are two divided regions in which the right-eye image APL value is larger than the left-eye image APL value (left-eye image APL value-right-eye image APL value is negative and the absolute value is 1 or more).

このように、左眼用画像APL値が右眼用画像APL値より大きい分割領域の数と、右眼用画像APL値が左眼用画像APL値より大きい分割領域の数の差が所定値(例えば2)以上あり偏りがある場合には、左眼用画像及び右眼用画像のゲインの調整を行う。これは、3D画像において視差により、左眼用画像及び右眼用画像の特徴量に差が生じる一方で、多くの画像内の領域においてほぼ同様な被写体が映っていると考えられるため、左眼用画像及び右眼用画像の特徴量に一定以上の差は生じないと想定されるからである。   In this way, the difference between the number of divided areas where the left-eye image APL value is larger than the right-eye image APL value and the number of divided areas where the right-eye image APL value is larger than the left-eye image APL value is a predetermined value ( For example, if 2) or more exists and there is a bias, the gains of the left-eye image and the right-eye image are adjusted. This is because the difference in the feature amount between the image for the left eye and the image for the right eye is caused by the parallax in the 3D image, but it is considered that almost the same subject is reflected in a region in many images. This is because it is assumed that a certain amount of difference between the feature amounts of the image for use and the image for the right eye does not occur.

ゲイン値算出部303は、偏りがある分割領域において、左眼用画像APL値と右眼用画像APL値との差が一定範囲内である各分割領域の左眼用画像APL値の平均値と、右眼用画像APL値の平均値との比からゲイン値を算出する。図11(a)において偏りがある分割領域d1〜d9、d10〜d16の中で、左眼用画像APL値と右眼用画像APL値との差が1である各分割領域の左眼用画像APL値の平均値と、右眼用画像APL値の平均値を算出する。具体的には、左眼用画像APL値−右眼用画像APL値との差が1である分割領域d2、d4〜d8、d10〜d14、d16における左眼用画像APL値の平均値は3.83、右眼用画像APL値の平均値は2.83となる。そして、左眼用画像APL値の平均値と右眼用画像APL値の平均値との比は、(左眼用画像APL値の平均値)/(右眼用画像APL値の平均値)=1.35となる。   The gain value calculation unit 303 calculates the average value of the left-eye image APL values of the divided areas in which the difference between the left-eye image APL value and the right-eye image APL value is within a certain range in the divided divided areas. Then, the gain value is calculated from the ratio with the average value of the right-eye image APL value. In the divided areas d1 to d9 and d10 to d16 having a bias in FIG. 11A, the left eye image of each divided area in which the difference between the left eye image APL value and the right eye image APL value is 1. The average value of the APL value and the average value of the right-eye image APL value are calculated. Specifically, the average value of the left-eye image APL values in the divided regions d2, d4 to d8, d10 to d14, and d16 in which the difference between the left-eye image APL value and the right-eye image APL value is 1 is 3 .83, the average value of the right-eye image APL value is 2.83. The ratio between the average value of the left-eye image APL value and the average value of the right-eye image APL value is (average value of the left-eye image APL value) / (average value of the right-eye image APL value) = 1.35.

ゲイン値算出部303は左眼用画像ゲイン調整部305にゲイン値として1/1.35を出力し、右眼用画像ゲイン調整部306にゲイン値として1を出力する。このように設定されたゲイン値を用いて、左眼用画像及び右眼用画像それぞれのゲインを調整すると、左眼用画像及び右眼用画像の特徴量の大きな偏りが調整できる。左眼用画像ゲイン調整部305及び右眼用画像ゲイン調整部306は、ゲイン値算出部303から出力されたゲイン値を用いて左眼用画像及び右眼用画像それぞれのゲインを調整する。調整後の左眼用画像及び右眼用画像それぞれの各分割領域おける左眼用画像APL値(調整後)と右眼用画像APL値(調整後)を図11(b)に示す。   The gain value calculation unit 303 outputs 1 / 1.35 as a gain value to the left-eye image gain adjustment unit 305, and outputs 1 as a gain value to the right-eye image gain adjustment unit 306. By adjusting the gains of the left-eye image and the right-eye image using the gain value set in this way, it is possible to adjust a large bias in the feature amount of the left-eye image and the right-eye image. The left-eye image gain adjustment unit 305 and the right-eye image gain adjustment unit 306 use the gain value output from the gain value calculation unit 303 to adjust the gains of the left-eye image and the right-eye image. FIG. 11B shows the left-eye image APL value (after adjustment) and the right-eye image APL value (after adjustment) in each divided region of the adjusted left-eye image and right-eye image.

統合暗部APL値及び統合明部APL値の決定方法を説明する。統合APL決定部304には、左眼用画像分割APL検出部301及び右眼用画像分割APL検出部302から、左眼用画像及び右眼用画像それぞれの各分割領域おける左眼用画像APL値と右眼用画像APL値が出力される。更に、ゲイン値算出部303から、左眼用画像及び右眼用画像それぞれのゲイン値が出力される。   A method for determining the integrated dark part APL value and the integrated bright part APL value will be described. The integrated APL determination unit 304 includes a left-eye image APL value in each divided region of the left-eye image and the right-eye image from the left-eye image division APL detection unit 301 and the right-eye image division APL detection unit 302. And the right-eye image APL value are output. Further, the gain value calculation unit 303 outputs the gain values of the left eye image and the right eye image.

左眼用画像及び右眼用画像それぞれの各分割領域おける左眼用画像APL値と右眼用画像APL値から、左眼用画像における最小APL値(第1暗部特徴量)と最大APL値(第1明部特徴量)を決定する。また、右眼用画像における最小APL値(第2暗部特徴量)と最大APL値(第2明部特徴量)を決定する。図11(a)において、左眼用画像の各分割領域おける左眼用画像APL値の中の最大APL値は6、最小APL値は2である。右眼用画像の各分割領域おける右眼用画像APL値の中の最大APL値は7、最小APL値は2である。   From the left-eye image APL value and the right-eye image APL value in each divided region of the left-eye image and right-eye image, the minimum APL value (first dark portion feature amount) and the maximum APL value in the left-eye image ( 1st light part feature-value) is determined. Further, the minimum APL value (second dark portion feature amount) and the maximum APL value (second bright portion feature amount) in the image for the right eye are determined. In FIG. 11A, the maximum APL value is 6 and the minimum APL value is 2 among the left-eye image APL values in each divided region of the left-eye image. The maximum APL value is 7 and the minimum APL value is 2 among the right-eye image APL values in each divided region of the right-eye image.

左眼用画像及び右眼用画像それぞれにおける最大APL値及び最小APL値に、ゲイン値算出部303から出力された左眼用画像及び右眼用画像それぞれのゲイン値を用いて、ゲインを調整する。左眼用画像のゲイン値は1/1.35なので、左眼用画像の最大APL値6は、6×1/1.35=4(小数点以下四捨五入)、最小APL値2は、2×1/1.35=1と調整される。右眼用画像のゲイン値は1なので、右眼用画像の最大APL値7は、7×1=7、最小APL値2は、2×1=2と調整される(ゲイン値が1の場合はゲイン調整を行わないとの同等の値になる)。   The gain is adjusted using the gain values of the left-eye image and the right-eye image output from the gain value calculation unit 303 for the maximum APL value and the minimum APL value in the left-eye image and the right-eye image, respectively. . Since the gain value of the left-eye image is 1 / 1.35, the maximum APL value 6 of the left-eye image is 6 × 1 / 1.35 = 4 (rounded off after the decimal point), and the minimum APL value 2 is 2 × 1. /1.35=1. Since the gain value of the right-eye image is 1, the maximum APL value 7 of the right-eye image is adjusted to 7 × 1 = 7, and the minimum APL value 2 is adjusted to 2 × 1 = 2 (when the gain value is 1) Is equivalent to no gain adjustment).

ゲイン調整後の左眼用画像の最小APL値(第1暗部特徴量)及び右眼用画像の最小APL値(第2暗部特徴量)のうち小さいほうのAPL値である階調値1を、統合暗部APL値(統合暗部特徴量)とする。ゲイン調整後の左眼用画像の最大APL値(第1明部特徴量)及び右眼用画像の最大APL値(第2明部特徴量)のうち大きいほうのAPL値である階調値7を、統合明部APL値(統合明部特徴量)とする。   A gradation value 1 which is the smaller APL value of the minimum APL value (first dark portion feature amount) of the left-eye image after gain adjustment and the minimum APL value (second dark portion feature amount) of the right-eye image, The integrated dark part APL value (integrated dark part feature value) is used. The gradation value 7 which is the larger APL value of the maximum APL value (first bright portion feature amount) of the left-eye image after gain adjustment and the maximum APL value (second bright portion feature amount) of the right-eye image. Is an integrated bright part APL value (integrated bright part feature value).

統合暗部APL値及び統合明部APL値の決定の仕方は上記に限らない。例えば左眼用画像の最小APL値及び右眼用画像の最小APL値の平均値を統合暗部APL値、左眼用画像の最大APL値及び右眼用画像の最大APL値の平均値を統合明部APL値としてもよい。   The method of determining the integrated dark part APL value and the integrated bright part APL value is not limited to the above. For example, the average value of the minimum APL value of the image for the left eye and the average value of the minimum APL value of the image for the right eye is integrated and the average value of the maximum APL value of the image for the left eye and the maximum APL value of the image for the right eye is integrated and brightened. It is good also as a part APL value.

また、左眼用画像及び右眼用画像それぞれにおける最大APL値及び最小APL値に対するゲイン調整を統合APL決定部304で行わなくてもよい。その場合は、ゲイン調整後の左眼用画像及び右眼用画像それぞれの各分割領域おける左眼用画像APL値と右眼用画像APL値(図11(b)に示したもの)を、左眼用画像ゲイン調整部305及び右眼用画像ゲイン調整部306から取得する。そして取得した、ゲイン調整後の左眼用画像及び右眼用画像それぞれの各分割領域おける左眼用画像APL値と右眼用画像APL値から、各画像における最大APL値と最小APL値を決定する。   Further, the integrated APL determination unit 304 may not perform gain adjustment for the maximum APL value and the minimum APL value in the left-eye image and the right-eye image. In that case, the left-eye image APL value and the right-eye image APL value (shown in FIG. 11B) in the respective divided areas of the left-eye image and the right-eye image after gain adjustment, Obtained from the eye image gain adjustment unit 305 and the right eye image gain adjustment unit 306. Then, the maximum APL value and the minimum APL value in each image are determined from the acquired left eye image APL value and right eye image APL value in each divided region of the left eye image and right eye image after gain adjustment. To do.

統合暗部APL値及び統合明部APL値に基づいたγ補正カーブの設定方法について説明する。   A method for setting a γ correction curve based on the integrated dark part APL value and the integrated bright part APL value will be described.

本実施例のγ補正カーブは、低階調データを補正する暗部カーブγB、高階調データを補正する明部カーブγWと、中間階調を補正する中間カーブγMから成る。本実施例では画像データの階調分解能は3bit(0〜7階調)であるものとする。   The γ correction curve of this embodiment includes a dark part curve γB for correcting low gradation data, a bright part curve γW for correcting high gradation data, and an intermediate curve γM for correcting intermediate gradations. In this embodiment, it is assumed that the gradation resolution of image data is 3 bits (0 to 7 gradations).

図12に示すように、暗部カーブγBは階調値0〜128の入力データをγ補正するカーブである。暗部カーブγB(i)は8種類(i:0〜8)用意されている。暗部カーブγB(i)は階調値i周辺の範囲の階調値における階調性を高めるγ補正カーブになっている。統合暗部APL値に応じて8種類の暗部カーブγB(i)(i:0〜7)の中から一つの暗部カーブγB(i)が選択される。統合暗部APL値は、左眼用画像の最小APL値、及び右眼用画像の最小APL値を用いて決定されるので、APL値が3bitの精度で検出される場合は0〜7のいずれかの値をとる。統合暗部APL値が階調値1の場合は、暗部カーブγB(1)が選択される。   As shown in FIG. 12, the dark part curve γB is a curve for γ-correcting input data having gradation values of 0 to 128. Eight types (i: 0 to 8) of dark part curves γB (i) are prepared. The dark part curve γB (i) is a γ correction curve that enhances the gradation in the gradation values in the range around the gradation value i. One dark part curve γB (i) is selected from eight types of dark part curves γB (i) (i: 0 to 7) according to the integrated dark part APL value. Since the integrated dark portion APL value is determined using the minimum APL value of the left-eye image and the minimum APL value of the right-eye image, any one of 0 to 7 is detected when the APL value is detected with an accuracy of 3 bits. Takes the value of When the integrated dark portion APL value is the gradation value 1, the dark portion curve γB (1) is selected.

また、明部カーブγWは階調値192〜255の入力データをγ補正するカーブである。図12に示すように、明部カーブγW(i)は8種類(i:0〜7)用意される。明部カーブγW(i)は階調値i周辺の範囲の階調値における階調性を高めるγ補正カーブになっている。統合明部APL値に応じて8種類の明部カーブγW(i)(i:0〜7)の中から一つの明部カーブγW(i)が選択される。統合明部APL値は、左眼用画像の最大APL値、及び右眼用画像の最大APL値を用いて決定されるので、APL値が3bitの精度で検出される場合は0〜7のいずれかの値をとる。統合明部APL値が階調値7の場合は、明部カーブγW(7)が選択される。   A bright curve γW is a curve for γ-correcting input data having gradation values of 192 to 255. As shown in FIG. 12, eight types (i: 0 to 7) of bright portion curves γW (i) are prepared. The bright part curve γW (i) is a γ correction curve that enhances the gradation in the gradation values in the range around the gradation value i. One bright part curve γW (i) is selected from eight types of bright part curves γW (i) (i: 0 to 7) according to the integrated bright part APL value. Since the integrated bright portion APL value is determined using the maximum APL value of the left-eye image and the maximum APL value of the right-eye image, any one of 0 to 7 is detected when the APL value is detected with an accuracy of 3 bits. Take the value of When the integrated bright part APL value is the gradation value 7, the bright part curve γW (7) is selected.

中間カーブγMは階調値128〜192の入力データをγ補正するカーブである。中間γカーブγMは選択された暗部カーブγB(i)と明部カーブγW(i)の間の階調を直線補間により補間した変換特性とする。以上のようにγ補正カーブ設定部108において、暗部カーブγB、明部カーブγW及び中間カーブγMによりγ補正カーブが設定される。   The intermediate curve γM is a curve for γ-correcting input data having gradation values of 128 to 192. The intermediate γ curve γM has a conversion characteristic obtained by interpolating the gradation between the selected dark portion curve γB (i) and the bright portion curve γW (i) by linear interpolation. As described above, in the γ correction curve setting unit 108, the γ correction curve is set by the dark part curve γB, the bright part curve γW, and the intermediate curve γM.

以上のように、暗部カーブγB、明部カーブγW、中間カーブγMを設定したが、各γカーブが補正する階調値は上記に示すものに限られない。例えば、暗部カーブγBは階調値0〜3、明部カーブγWは階調値6〜7、中間カーブγMは階調値3〜6の入力データを補正するものとしてもよい。   As described above, the dark portion curve γB, the bright portion curve γW, and the intermediate curve γM are set. However, the gradation values corrected by each γ curve are not limited to those shown above. For example, the dark portion curve γB may correct input data with gradation values 0 to 3, the light portion curve γW with gradation values 6 to 7, and the intermediate curve γM with gradation values 3 to 6.

以上のようにγ補正カーブを決定することによって、統合暗部APL値が低い場合ほど低い階調値に階調を割り付けるカーブが生成され、統合暗部APL値が高い場合ほど高い階調値に階調を割り付けるカーブが生成される。以上のように決定したγ補正カーブを用いて補正をすることで暗部と明部の視認性を上げることが可能である。   By determining the γ correction curve as described above, a curve for assigning a gradation to a lower gradation value is generated as the integrated dark portion APL value is lower, and a gradation is increased to a higher gradation value as the integrated dark portion APL value is higher. A curve to assign is generated. It is possible to improve the visibility of the dark part and the bright part by performing correction using the γ correction curve determined as described above.

なお、本実施例においては、ゲイン値算出部303で左眼用画像のAPL値と右眼用画像のAPL値とを比較して所定の閾値以上の差がある場合に、ゲイン値を計算しゲインの調整をしているが、差が所定の閾値以下である場合にはゲインの調整は行わなくでもよい。   In this embodiment, the gain value calculation unit 303 compares the APL value of the left-eye image and the APL value of the right-eye image and calculates a gain value when there is a difference equal to or greater than a predetermined threshold. Although the gain is adjusted, the gain may not be adjusted when the difference is equal to or less than a predetermined threshold.

以上のように本実施例においても、立体視可能な左眼用画像及び右眼用画像の階調を補正するγ補正カーブが左眼用画像及び右眼用画像の両画像の特徴を反映して設定されているため、黒つぶれや白とびすることない適正なγ補正処理を行うことができる。左眼用画像のAPL値と右眼画像のAPL値に差がある場合でも、適正なγ補正処理を行うことができる。   As described above, also in this embodiment, the γ correction curve for correcting the gradation of the left-eye image and the right-eye image that can be viewed stereoscopically reflects the characteristics of both the left-eye image and the right-eye image. Therefore, it is possible to perform appropriate γ correction processing without causing blackout or overexposure. Even when there is a difference between the APL value of the left-eye image and the APL value of the right-eye image, an appropriate γ correction process can be performed.

105 左眼用画像注目階調検出部
106 右眼用画像注目階調検出部
107 統合注目階調決定部
108 γカーブ設定部
105 Image attention gradation detection unit for left eye 106 Image attention gradation detection unit for right eye 107 Integrated attention gradation determination unit 108 γ curve setting unit

Claims (11)

左眼用画像及び右眼用画像を表示部に立体視可能なように表示する画像処理装置において、
入力された前記左眼用画像及び右眼用画像のそれぞれのヒストグラムを作成するヒストグラム作成手段と、
前記ヒストグラム作成手段で作成された前記左眼用画像のヒストグラムから、低階調側の階調値である第1暗部特徴量及び高階調側の階調値である第1明部特徴量を検出する第1検出手段と、
前記ヒストグラム作成手段で作成された前記右眼用画像のヒストグラムから、低階調側の階調値である第2暗部特徴量及び高階調側の階調値である第2明部特徴量を検出する第2検出手段と、
前記第1暗部特徴量及び前記第2暗部特徴量を用いて統合暗部特徴量を決定し、前記第1明部特徴量及び前記第2明部特徴量を用いて統合明部特徴量を決定する決定手段と、
前記統合暗部特徴量及び前記統合明部特徴量に基づいた階調補正パラメータを設定する設定手段と、
前記設定手段で設定された前記階調補正パラメータを用いて、前記左眼用画像及び右眼用画像の階調を補正する補正手段と、を有することを特徴とする画像処理装置。
In an image processing apparatus that displays a left-eye image and a right-eye image on a display unit so as to be stereoscopically viewed,
Histogram creation means for creating respective histograms of the input left eye image and right eye image;
From the histogram of the image for the left eye created by the histogram creating means, a first dark portion feature amount that is a gradation value on a low gradation side and a first bright portion feature amount that is a gradation value on a high gradation side are detected. First detecting means for
From the histogram of the right-eye image created by the histogram creating means, the second dark portion feature amount that is the tone value on the low tone side and the second bright portion feature value that is the tone value on the high tone side are detected. Second detecting means for
An integrated dark portion feature amount is determined using the first dark portion feature amount and the second dark portion feature amount, and an integrated bright portion feature amount is determined using the first bright portion feature amount and the second bright portion feature amount. A determination means;
Setting means for setting a gradation correction parameter based on the integrated dark part feature and the integrated bright part feature;
An image processing apparatus comprising: correction means for correcting gradation of the left-eye image and right-eye image using the gradation correction parameter set by the setting means.
前記第1検出手段は、前記左眼用画像のヒストグラムから、度数が所定の閾値以上かつ極大値である階調値であって、局所的な度数の変動量が所定の基準よりも小さい階調値である注目階調を検出して、低階調側の前記注目階調の中で最も小さい階調値を前記第1暗部特徴量とし、高階調側の前記注目階調の中で最も大きい階調値を前記第1明部特徴量として検出し、
前記第2検出手段は、前記右眼用画像のヒストグラムから、度数が所定の閾値以上かつ極大値である階調値であって、局所的な度数の変動量が所定の基準よりも小さい階調値である注目階調を検出して、低階調側の前記注目階調の中で最も小さい階調値を前記第2暗部特徴量とし、高階調側の前記注目階調の中で最も大きい階調値を前記第2明部特徴量として検出することを特徴とする請求項1に記載の画像処理装置。
The first detection means is a gradation value whose frequency is equal to or greater than a predetermined threshold and has a maximum value from the histogram of the left eye image, and whose local frequency variation is smaller than a predetermined reference. The target gradation that is the value is detected, the smallest gradation value among the attention gradations on the low gradation side is set as the first dark portion feature amount, and the largest among the attention gradations on the high gradation side Detecting a gradation value as the first bright portion feature amount;
The second detection means has a gradation value whose frequency is equal to or greater than a predetermined threshold and has a maximum value from the histogram of the right eye image, and whose local frequency fluctuation amount is smaller than a predetermined reference. The target gradation that is a value is detected, and the smallest gradation value among the attention gradations on the low gradation side is set as the second dark portion feature amount, and is the largest among the attention gradations on the high gradation side. The image processing apparatus according to claim 1, wherein a gradation value is detected as the second bright portion feature amount.
前記決定手段は、前記第1暗部特徴量及び前記第2暗部特徴量の中の最小値を統合暗部特徴量とし、前記第1明部特徴量及び前記第2明部特徴量の中の最大値を統合暗部特徴量とすることを特徴とする請求項1また2に記載の画像処理装置。   The determining means uses the minimum value of the first dark part feature value and the second dark part feature value as an integrated dark part feature value, and the maximum value of the first bright part feature value and the second bright part feature value. The image processing apparatus according to claim 1, wherein an integrated dark part feature amount is used. 前記決定手段は、前記第1暗部特徴量及び前記第2暗部特徴量の平均値を統合暗部特徴量とし、前記第1明部特徴量及び前記第2明部特徴量の平均値を統合暗部特徴量とすることを特徴とする請求項1または2に記載の画像処理装置。   The determining means uses an average value of the first dark part feature value and the second dark part feature value as an integrated dark part feature value, and uses an average value of the first bright part feature value and the second bright part feature value as an integrated dark part feature. The image processing apparatus according to claim 1, wherein the image processing apparatus is an amount. 前記設定手段は、前記統合暗部特徴量の階調値周辺及び前記統合明部特徴量の階調値周辺の階調性を高める階調補正パラメータを設定することを特徴とする請求項1乃至4のいずれか一項に記載の画像処理装置。   5. The setting means sets a gradation correction parameter that enhances the gradation around the gradation value of the integrated dark portion feature amount and around the gradation value of the integrated bright portion feature amount. The image processing apparatus according to any one of the above. 左眼用画像及び右眼用画像を表示部に立体視可能なように表示する画像処理装置において、
入力された前記左眼用画像及び右眼用画像をそれぞれ複数の分割領域に分割し、各分割領域における平均輝度値を検出する平均輝度値検出手段と、
前記左眼用画像の各分割領域における平均輝度値の中の最小値及び最大値をそれぞれ第1暗部特徴量及び第1明部特徴量とし、前記右眼用画像の各分割領域における平均輝度値の中の最小値及び最大値をそれぞれ第2暗部特徴量及び第2明部特徴量として、前記第1暗部特徴量及び前記第2暗部特徴量を用いて統合暗部特徴量を決定し、前記第1明部特徴量及び前記第2明部特徴量を用いて統合明部特徴量を決定する決定手段と、
前記統合暗部特徴量及び前記統合明部特徴量に基づいた階調補正パラメータを設定する設定手段と、
前記設定手段で設定された前記階調補正パラメータを用いて、前記左眼用画像及び右眼用画像の階調を補正する補正手段と、を有することを特徴とする画像処理装置。
In an image processing apparatus that displays a left-eye image and a right-eye image on a display unit so as to be stereoscopically viewed,
Average luminance value detection means for dividing the input image for the left eye and the image for the right eye into a plurality of divided regions, and detecting an average luminance value in each divided region;
The minimum value and the maximum value among the average luminance values in each divided region of the image for the left eye are set as a first dark portion feature amount and a first bright portion feature amount, respectively, and the average luminance value in each divided region of the right eye image And determining the integrated dark part feature amount using the first dark part feature amount and the second dark part feature amount, with the minimum value and the maximum value of the second dark part feature amount and the second bright part feature amount as the second dark portion feature amount and the second bright portion feature amount, respectively. Determining means for determining an integrated bright part feature using one bright part feature and the second bright part feature;
Setting means for setting a gradation correction parameter based on the integrated dark part feature and the integrated bright part feature;
An image processing apparatus comprising: correction means for correcting gradation of the left-eye image and right-eye image using the gradation correction parameter set by the setting means.
前記決定手段は、前記第1暗部特徴量及び前記第2暗部特徴量のうち小さい値を統合暗部特徴量とし、前記第1明部特徴量及び前記第2明部特徴量のうち大きい値を統合明部特徴量とすることを特徴とする請求項6に記載の画像処理装置。   The determination unit sets a smaller value of the first dark part feature value and the second dark part feature value as an integrated dark part feature value, and integrates a larger value of the first bright part feature value and the second bright part feature value. The image processing apparatus according to claim 6, wherein the image processing apparatus uses a bright portion feature amount. 前記平均輝度値検出手段で検出された前記左眼用画像の各分割領域の平均輝度値と、前記右眼用画像の各分割領域の平均輝度値との差に基づいて、前記左眼用画像の各分割領域の平均輝度値と前記右眼用画像の各分割領域の平均輝度値とを調整する調整手段を有することを特徴とする請求項6または7に記載の画像処理装置。   Based on the difference between the average luminance value of each divided region of the left-eye image detected by the average luminance value detection means and the average luminance value of each divided region of the right-eye image, the left-eye image The image processing apparatus according to claim 6, further comprising an adjusting unit that adjusts an average luminance value of each of the divided areas and an average luminance value of each of the divided areas of the right-eye image. 前記設定手段は、前記統合暗部特徴量の階調値周辺及び前記統合明部特徴量の階調値周辺の階調性を高める階調補正パラメータを設定することを特徴とする請求項6乃至8のいずれか一項に記載の画像処理装置。   9. The setting means sets a gradation correction parameter that enhances the gradation around the gradation value of the integrated dark portion feature amount and around the gradation value of the integrated bright portion feature amount. The image processing apparatus according to any one of the above. 左眼用画像及び右眼用画像を表示部に立体視可能なように表示する画像処理装置の制御方法において、
入力された前記左眼用画像及び右眼用画像のそれぞれのヒストグラムを作成するヒストグラム作成工程と、
前記ヒストグラム作成工程で作成された前記左眼用画像のヒストグラムから、低階調側の階調値である第1暗部特徴量及び高階調側の階調値である第1明部特徴量を検出する第1検出工程と、
前記ヒストグラム作成工程で作成された前記右眼用画像のヒストグラムから、低階調側の階調値である第2暗部特徴量及び高階調側の階調値である第2明部特徴量を検出する第2検出工程と、
前記第1暗部特徴量及び前記第2暗部特徴量を用いて統合暗部特徴量を決定し、前記第1明部特徴量及び前記第2明部特徴量を用いて統合明部特徴量を決定する決定工程と、
前記統合暗部特徴量及び前記統合明部特徴量に基づいた階調補正パラメータを設定する設定工程と、
前記設定工程で設定された前記階調補正パラメータを用いて、前記左眼用画像及び右眼用画像の階調を補正する補正工程と、を有することを特徴とする画像処理装置の制御方法。
In the control method of the image processing apparatus for displaying the left-eye image and the right-eye image on the display unit so as to be stereoscopically viewed,
A histogram creating step of creating respective histograms of the input left eye image and right eye image;
From the histogram of the image for the left eye created in the histogram creation step, a first dark portion feature amount that is a gradation value on a low gradation side and a first bright portion feature amount that is a gradation value on a high gradation side are detected. A first detecting step to
From the histogram of the right-eye image created in the histogram creating step, the second dark portion feature amount that is the tone value on the low tone side and the second bright portion feature value that is the tone value on the high tone side are detected. A second detection step to
An integrated dark portion feature amount is determined using the first dark portion feature amount and the second dark portion feature amount, and an integrated bright portion feature amount is determined using the first bright portion feature amount and the second bright portion feature amount. A decision process;
A setting step for setting a gradation correction parameter based on the integrated dark portion feature amount and the integrated bright portion feature amount;
And a correction step of correcting the gradation of the left-eye image and the right-eye image using the gradation correction parameter set in the setting step.
左眼用画像及び右眼用画像を表示部に立体視可能なように表示する画像処理装置の制御方法において、
入力された前記左眼用画像及び右眼用画像をそれぞれ複数の分割領域に分割し、各分割領域における平均輝度値を検出する平均輝度値検出工程と、
前記左眼用画像の各分割領域における平均輝度値の中の最小値及び最大値をそれぞれ第1暗部特徴量及び第1明部特徴量とし、前記右眼用画像の各分割領域における平均輝度値の中の最小値及び最大値をそれぞれ第2暗部特徴量及び第2明部特徴量として、前記第1暗部特徴量及び前記第2暗部特徴量を用いて統合暗部特徴量を決定し、前記第1明部特徴量及び前記第2明部特徴量を用いて統合明部特徴量を決定する決定工程と、
前記統合暗部特徴量及び前記統合明部特徴量に基づいた階調補正パラメータを設定する設定工程と、
前記設定工程で設定された前記階調補正パラメータを用いて、前記左眼用画像及び右眼用画像の階調を補正する補正工程と、を有することを特徴とする画像処理装置の制御方法。
In the control method of the image processing apparatus for displaying the left-eye image and the right-eye image on the display unit so as to be stereoscopically viewed,
An average luminance value detecting step of dividing the input image for the left eye and the image for the right eye into a plurality of divided regions, and detecting an average luminance value in each divided region;
The minimum value and the maximum value among the average luminance values in each divided region of the image for the left eye are set as a first dark portion feature amount and a first bright portion feature amount, respectively, and the average luminance value in each divided region of the right eye image And determining the integrated dark part feature amount using the first dark part feature amount and the second dark part feature amount, with the minimum value and the maximum value of the second dark part feature amount and the second bright part feature amount as the second dark portion feature amount and the second bright portion feature amount, respectively. A determining step of determining an integrated bright part feature using one bright part feature and the second bright part feature;
A setting step for setting a gradation correction parameter based on the integrated dark portion feature amount and the integrated bright portion feature amount;
And a correction step of correcting the gradation of the left-eye image and the right-eye image using the gradation correction parameter set in the setting step.
JP2010245489A 2010-11-01 2010-11-01 Image processing apparatus and control method thereof Expired - Fee Related JP5683214B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010245489A JP5683214B2 (en) 2010-11-01 2010-11-01 Image processing apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010245489A JP5683214B2 (en) 2010-11-01 2010-11-01 Image processing apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JP2012100031A true JP2012100031A (en) 2012-05-24
JP5683214B2 JP5683214B2 (en) 2015-03-11

Family

ID=46391463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010245489A Expired - Fee Related JP5683214B2 (en) 2010-11-01 2010-11-01 Image processing apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP5683214B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005077950A (en) * 2003-09-02 2005-03-24 Fujitsu General Ltd Histogram control picture quality correcting circuit
JP2010147786A (en) * 2008-12-18 2010-07-01 Fujifilm Corp Imaging device and image processing method
JP2011250229A (en) * 2010-05-28 2011-12-08 Sony Corp Video signal processing apparatus, video signal processing method, and computer program
JP2012084961A (en) * 2010-10-07 2012-04-26 Jvc Kenwood Corp Depth signal generation device, pseudo stereoscopic image signal generation device, depth signal generation method, pseudo stereoscopic image signal generation method, depth signal generation program, and pseudo stereoscopic image signal generation program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005077950A (en) * 2003-09-02 2005-03-24 Fujitsu General Ltd Histogram control picture quality correcting circuit
JP2010147786A (en) * 2008-12-18 2010-07-01 Fujifilm Corp Imaging device and image processing method
JP2011250229A (en) * 2010-05-28 2011-12-08 Sony Corp Video signal processing apparatus, video signal processing method, and computer program
JP2012084961A (en) * 2010-10-07 2012-04-26 Jvc Kenwood Corp Depth signal generation device, pseudo stereoscopic image signal generation device, depth signal generation method, pseudo stereoscopic image signal generation method, depth signal generation program, and pseudo stereoscopic image signal generation program

Also Published As

Publication number Publication date
JP5683214B2 (en) 2015-03-11

Similar Documents

Publication Publication Date Title
US8090198B2 (en) Image processing apparatus, image display apparatus, and image display method
JP5615136B2 (en) Stereoscopic image correction method, stereoscopic display device, and stereoscopic image generation device
US7945088B2 (en) Stereoscopic image generation apparatus
JP5201038B2 (en) Video signal processing method and video signal processing apparatus
US20090304274A1 (en) Image Processing Apparatus and Image Display Apparatus
TW200305331A (en) Contrast correcting circuit
JP2015156607A (en) Image processing method, image processing apparatus, and electronic device
KR20110138733A (en) Method and apparatus for converting 2d image into 3d image
JP5669599B2 (en) Image processing apparatus and control method thereof
JP2015162718A (en) Image processing method, image processing device and electronic equipment
US10368048B2 (en) Method for the representation of a three-dimensional scene on an auto-stereoscopic monitor
JP6754759B2 (en) Processing of parallax in 3D images
JP2015095779A (en) Image processing apparatus, image processing method, and electronic equipment
JP2016110092A (en) Display device and control method therefor
JP2005130486A (en) Video signal processing apparatus
JP2017098845A (en) Image processing apparatus, image processing method, and program
JP3685712B2 (en) Dynamic gamma correction device
JP5683214B2 (en) Image processing apparatus and control method thereof
JP2013090272A (en) Video processing device, video processing method and video display device
JP5623156B2 (en) Image processing apparatus and control method thereof
KR20150037203A (en) Device for correcting depth map of three dimensional image and method for correcting the same
JP2003046807A (en) Image display device and image display method
JP2006180267A (en) Picture quality correcting circuit
JP6155119B2 (en) Image processing apparatus and image processing method
US7796832B2 (en) Circuit and method of dynamic contrast enhancement

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131029

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140304

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140624

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140731

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150113

R151 Written notification of patent or utility model registration

Ref document number: 5683214

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees