JP4307341B2 - Image processing method and image processing apparatus - Google Patents
Image processing method and image processing apparatus Download PDFInfo
- Publication number
- JP4307341B2 JP4307341B2 JP2004194285A JP2004194285A JP4307341B2 JP 4307341 B2 JP4307341 B2 JP 4307341B2 JP 2004194285 A JP2004194285 A JP 2004194285A JP 2004194285 A JP2004194285 A JP 2004194285A JP 4307341 B2 JP4307341 B2 JP 4307341B2
- Authority
- JP
- Japan
- Prior art keywords
- luminance value
- correction
- image
- average luminance
- region
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Image Processing (AREA)
Description
本発明は、画像入力機器で撮影された画像を補正して出力する画像処理方法及び画像処理装置に関する。 The present invention relates to an image processing method and an image processing apparatus that correct and output an image captured by an image input device.
近年普及しているデジタルカメラ等の画像入力機器で撮影した画像は、モニタ等に表示する、或いは紙等に印刷することによって観察・鑑賞することができる。このとき、撮影された画像データをそのまま用いた場合、色被り、露出の不適切、或いはコントラストの不適切等といったように、撮影バランスが必ずしも良好とはいえない状態で表現されてしまうことが多い。 An image photographed by an image input device such as a digital camera that has become popular in recent years can be observed and viewed by displaying it on a monitor or printing it on paper or the like. At this time, when the photographed image data is used as it is, it is often expressed in a state where the photographing balance is not necessarily good, such as color covering, inappropriate exposure, or inappropriate contrast. .
そこで、従来から、良好な画像の定義を行い、その定義に沿ったホワイトバランス補正や露出/コントラスト補正を自動で行うアプリケーションが一般的に行われてきた。 Therefore, conventionally, an application that defines a good image and automatically performs white balance correction and exposure / contrast correction in accordance with the definition has been generally performed.
しかし、このような環境下であっても、必ずしも適正な補正ができない撮影画像が存在する場合がある。例えば、スキー場で人物を撮影した時や、青空が多く撮影されている風景で小さな目標を撮影したような場合、本来は画像中の小さな領域が関心領域であるにもかかわらず、当該注目領域の階調が他の領域の輝度の違う領域の階調のために制限されてしまうことがある。このような場合、上述した良い画像の定義を利用した従来の画像補正では的確な補正は不可能である。 However, even in such an environment, there may be a captured image that cannot always be corrected appropriately. For example, when a person is photographed at a ski resort or when a small target is photographed in a landscape where a lot of blue sky is photographed, the region of interest is originally a small region in the image, even though it is a region of interest. May be limited due to the gradation of the areas having different luminance in other areas. In such a case, accurate correction is impossible by conventional image correction using the above-described definition of a good image.
このような撮影画像を改善するために、次のような技術が提案されている。例えば、特開2002−135587(特許文献1)は、画像中から注目される人物の顔等の重要領域を抽出し、その領域の輝度が好ましくない場合は、画像全体の補正を行って、その後検出された領域のみ輝度調整したものを覆い焼きの原理によって合成するものである。 In order to improve such captured images, the following techniques have been proposed. For example, Japanese Patent Laid-Open No. 2002-135587 (patent document 1) extracts an important region such as a face of a person of interest from an image, and corrects the entire image if the luminance of the region is not preferable. The detected area is adjusted in luminance and synthesized by the principle of dodging.
また、特許第3203946号(特許文献2)は、テレビの映像信号であって、色差信号と輝度信号から肌色平均輝度レベルを検出し、全画像の輝度レベルの関連でガンマ補正回路に制御信号を加えるものである。
しかしながら、上述した従来例には、次に述べるような問題があった。 However, the conventional example described above has the following problems.
まず、特許文献1の技術は、例えば、人物の顔の領域を検出対象としたときに、顔領域が極端に暗いような場合、洋服との間に不自然な階調領域が発生してしまう。また、この画像処理を実行する場合には、合成処理や領域合成のエリア補正のために演算量やメモリ容量を多く必要とする。デジタルカメラとPCを介すことなく直接繋がるプリンタや、PCを介すことなくメモリカード用のインタフェイスを有し、メモリカードが直接装填されるプリンタ等の画像処理部をプリンタ内に有する組み込み機器等では、プリンタの価格的に演算処理能力をあげることができず、大容量メモリ高速CPUの実装が難しいという問題がある。
First, in the technique of
一方、特許文献2の技術は、色の範囲が該当する信号の輝度レベルに基づいてガンマ補正を加えるため、想定している映像中の肌色が人物の肌であって対象を人物の肌のみと考えれば実現可能である。しかし、画像中に枯れ林等の本来主被写体になり得ないような対象物が存在するような場合、そのようなものに対しても最適化してしまうことがある。さらに、映像中のすべての肌色を対象とするので、人物の肌ではない肌色の物体が映像中に存在する場合にはその影響も受けてしまい、鑑賞や印刷を対象とした補正としては精度が満足するものにならないことがある。さらにまた、S/N比が悪い輝度範囲における色範囲においても補正対象としてしまうため、補正によっても画質の向上が見込めない状況が考えられる。
On the other hand, since the technique of
また、上記補正は、主被写体についての検出を利用して主被写体そのものを希望する補正値へ展開するものである。しかし、明るい青空が多くを占める中での建物や自然を撮った風景の中での建物の画像では、本来は建物が主被写体であるにもかかわらず、建物自身の階調補正を的確に行うことは難しかった。 Further, the correction is to develop the main subject itself to a desired correction value by using detection of the main subject. However, in buildings with a lot of bright blue sky and buildings in nature, the building itself is the main subject. That was difficult.
本発明は、このような事情を考慮してなされたものであり、撮影画像中から抽出された特定領域の個別補正を行って画像全体の補正に反映することで、小さな情報処理量で良好な画像補正を実現することができる画像処理方法及び画像処理装置を提供することを目的とする。 The present invention has been made in consideration of such circumstances, and by performing individual correction of a specific area extracted from a captured image and reflecting it in the correction of the entire image, it is possible to achieve a good amount of information processing. An object is to provide an image processing method and an image processing apparatus capable of realizing image correction.
上記課題を解決するために、本発明に係る画像処理方法は、In order to solve the above problems, an image processing method according to the present invention includes:
画像を取得する取得工程と、 An acquisition process for acquiring images;
色度に基づき、前記画像中の人物の肌領域を抽出する抽出工程と、 An extraction step of extracting a human skin region in the image based on chromaticity;
前記画像の輝度値を解析して、前記画像全体の平均輝度値を算出する第1の解析工程と、 A first analysis step of analyzing the luminance value of the image and calculating an average luminance value of the entire image;
前記抽出工程によって抽出された肌領域に含まれる画素の輝度値に基づいて前記肌領域の平均輝度値を算出する第2の解析工程と、 A second analysis step of calculating an average luminance value of the skin region based on a luminance value of a pixel included in the skin region extracted by the extraction step;
前記画像全体の平均輝度値と前記肌領域の平均輝度値とに基づいて補正係数を決定し、前記肌領域の平均輝度値に前記補正係数を乗算することで前記肌領域の補正後の輝度値を算出する算出工程と、 A correction coefficient is determined based on the average luminance value of the entire image and the average luminance value of the skin area, and the luminance value after correction of the skin area is obtained by multiplying the average luminance value of the skin area by the correction coefficient. A calculation step of calculating
前記算出工程の算出結果に基づいて、前記肌領域の平均輝度値が前記肌領域の補正後の輝度値に変換される階調補正テーブルを作成するテーブル作成工程と、 Based on the calculation result of the calculation step, a table creation step of creating a gradation correction table in which an average luminance value of the skin region is converted into a luminance value after correction of the skin region;
前記作成された階調補正テーブルを使用して、前記画像の輝度を補正する補正工程と A correction step of correcting the brightness of the image using the created gradation correction table;
を有することを特徴とする。 It is characterized by having.
また、上記課題を解決するため、本発明に係る画像処理装置は、In order to solve the above problem, an image processing apparatus according to the present invention provides:
画像を取得する取得手段と、 An acquisition means for acquiring an image;
色度に基づき、前記画像中の人物の肌領域を抽出する抽出手段と、 Extraction means for extracting a skin area of a person in the image based on chromaticity;
前記画像の輝度値を解析して、前記画像全体の平均輝度値を算出する第1の解析手段と、 First analysis means for analyzing a luminance value of the image and calculating an average luminance value of the entire image;
前記抽出手段によって抽出された肌領域に含まれる画素の輝度値に基づいて前記肌領域の平均輝度値を算出する第2の解析手段と、 A second analysis unit that calculates an average luminance value of the skin region based on a luminance value of a pixel included in the skin region extracted by the extraction unit;
前記画像全体の平均輝度値と前記肌領域の平均輝度値とに基づいて補正係数を決定し、前記肌領域の平均輝度値に前記補正係数を乗算することで前記肌領域の補正後の輝度値を算出する算出手段と、 A correction coefficient is determined based on the average luminance value of the entire image and the average luminance value of the skin area, and the luminance value after correction of the skin area is obtained by multiplying the average luminance value of the skin area by the correction coefficient. Calculating means for calculating
前記算出手段の算出結果に基づいて、前記肌領域の平均輝度値が前記肌領域の補正後の輝度値に変換される階調補正テーブルを作成するテーブル作成手段と、 Table creation means for creating a gradation correction table in which an average luminance value of the skin area is converted into a luminance value after correction of the skin area based on a calculation result of the calculation means;
前記作成された階調補正テーブルを使用して前記画像の輝度を補正する補正手段と Correction means for correcting the brightness of the image using the created gradation correction table;
を備えることを特徴とする。 It is characterized by providing.
本発明は、処理の簡単化のために、階調補正用の変換テーブル方式を採用し、主被写体が特定以上暗過ぎたり明るすぎたりして、潰れやノイズの影響が大きいと思われる領域である階調補正しても改善効果が見込めない部分と判断した場合は特徴領域の行わず、一般的な画像補正を利用し、階調補正して改善効果が見込めるデータの時は特徴領域の情報より補正目標値を設定し、階調補正テーブルを作成する。 The present invention employs a conversion table method for gradation correction to simplify the processing, and in a region where the main subject is too dark or too bright above a specific level and is likely to be affected by crushing and noise. If it is determined that the improvement effect cannot be expected even after a certain gradation correction, the feature area is not used. A correction target value is set and a gradation correction table is created.
また、本発明は、人の肌や人の顔領域を主被写体領域として検出し、その特徴量を反映した階調補正テーブルの作成方法については、検出した主被写体領域以外の領域の極度な階調減少や潰れなど他の領域への負の影響が発生しないように主被写体領域の輝度平均と主被写体領域以外の領域の輝度平均値より目標設定用判定テーブルを使用して主被写体領域の輝度の補正目標値を決定する。例えば、補正目標値及び(0,0)、(255,255)の3点を通る階調補正テーブルを作成する。 Further, the present invention detects a human skin or a human face region as a main subject region, and a method for creating a gradation correction table reflecting the feature amount is described in an extreme step of a region other than the detected main subject region. Use the target setting judgment table based on the average brightness of the main subject area and the average brightness of the areas other than the main subject area so that negative effects on other areas such as tone reduction and collapse are not generated. The correction target value is determined. For example, a gradation correction table passing through the correction target value and three points (0, 0) and (255, 255) is created.
さらに、本発明は、主被写体領域の階調性を確保する手段として主被写体領域の輝度分布情報を利用して主被写体領域の階調範囲を判断し、その上限値と下限値を設定する手段を持ち、その手段により設定された領域分は階調補正テーブルを作成において入出力関係における傾き「1」を確保するようにし、作成する階調補正テーブルにおいて、上限値と下限値及び(0,0)、(255,255)の4点を通る階調補正テーブルを作成する。 Further, according to the present invention, as means for ensuring the gradation of the main subject area, means for determining the gradation range of the main subject area using the luminance distribution information of the main subject area and setting an upper limit value and a lower limit value thereof In the gradation correction table to be created, an upper limit value and a lower limit value and (0, 0) and a gradation correction table passing through four points (255, 255).
さらにまた、本発明は、主被写体と判定できる特徴領域が検出できなかった場合や主被写体を対象とした特徴領域検出を行わない場合においては、青空領域等の非主被写体領域の検出を行い、その特徴量によって画像全体における良質化に影響を与えているか影響度を検出し、必要に応じて検出領域以外の領域を最適化するための補正目標の設定を行う。 Furthermore, the present invention detects a non-main subject region such as a blue sky region when a feature region that can be determined as the main subject cannot be detected or when a feature region detection for the main subject is not performed. The degree of influence is detected by the feature amount to affect the quality improvement of the entire image, and a correction target for optimizing a region other than the detection region is set as necessary.
具体的な手段としては、青空領域を特徴領域とした検出し、検出した領域の特徴量として輝度平均値と検出領域情報を算出する。さらにまた、検出対象となった画像の輝度平均値と検出領域情報を算出し、青空領域の輝度平均値の絶対値と判定値の比較、検出対象となった画像の輝度平均値と判定値の比較、青空領域の輝度平均値と検出対象となった画像の輝度平均値の差と判定値を比較することで、青空領域の画像における影響度を判定する。 As specific means, a blue sky region is detected as a feature region, and a luminance average value and detection region information are calculated as a feature amount of the detected region. Furthermore, the average brightness value and detection area information of the image to be detected are calculated, the absolute value of the average brightness value of the blue sky area is compared with the determination value, and the average brightness value and determination value of the detection target image are compared. The degree of influence in the image of the blue sky region is determined by comparing the difference between the average luminance value of the blue sky region and the average luminance value of the detection target image and the determination value.
そして、その判定結果により、特徴領域の青空領域が他の領域の画質へ影響を与えている場合、検出対象となった画像全体から特徴領域の青空領域を削減した領域情報を作成し、その値から補正目標値を決定する。そして、補正目標値及び(0,0)、(255,255)の3点を通る階調補正テーブルを作成する。 If the blue sky area of the feature area affects the image quality of other areas based on the determination result, area information is created by reducing the blue sky area of the feature area from the entire image to be detected, and the value The correction target value is determined from Then, a gradation correction table passing through the correction target value and three points (0, 0) and (255, 255) is created.
本発明によれば、撮影画像中から抽出された特定領域の個別補正を行って画像全体の補正に反映することで、小さな情報処理量で良好な画像補正を実現することができる。 According to the present invention, it is possible to achieve good image correction with a small amount of information processing by performing individual correction of a specific area extracted from a captured image and reflecting it in the correction of the entire image.
以下、図面を参照して、本発明の一実施形態に係る画像処理装置とそれを用いた画像処理方法について説明する。 Hereinafter, an image processing apparatus and an image processing method using the same according to an embodiment of the present invention will be described with reference to the drawings.
<第1の実施形態>
図11は、本発明の第1の実施形態に係る画像処理装置のハードウェア構成を示すブロック図である。図11に示すように、本実施形態による画像処理装置は、いわゆるパーソナルコンピュータの構成をもって達成されるものである。
<First Embodiment>
FIG. 11 is a block diagram showing a hardware configuration of the image processing apparatus according to the first embodiment of the present invention. As shown in FIG. 11, the image processing apparatus according to the present embodiment is achieved with a so-called personal computer configuration.
具体的には、データが入出力される入出力ポート(I/O port)51と、ポインティングデバイスであるマウス(Mouse)52と、数値や文字等を入力するキーボード(KeyBoard)53と、種々の表示を行うためのモニタ(Monitor)54と、装置全体の動作を制御する制御部(Controller)55と、メモリカードに記録された画像データ(例えば、デジタルカメラ等で撮影された撮影画像)を読み出すメモリカードドライブ(Memory Card Drive)56と、データやプログラムを記憶するハードディスク(Hard Disk)57と、各部を接続するバス(Bus)58とを備える。
Specifically, an input / output port (I / O port) 51 for inputting / outputting data, a mouse (Mouse) 52 as a pointing device, a keyboard (KeyBoard) 53 for inputting numerical values and characters, and the like. A
モニタ54としては、例えば、液晶モニタ、CRTモニタ、ELディスプレイ、プラズマディスプレイ、或いはテレビジョン受像機等を用いることができる。また、マウス52、キーボード53及びモニタ54の各機能を備えた、いわゆるタッチパネルを用いてもよい。
As the
制御部55は、マウス52やキーボード53からの入力に基づいて、入出力ポート51、若しくは、メモリカードドライブ56において読み出された画像データに対する各種処理を行う。
The
第1の実施形態においては、画像処理装置を実現する装置としてパーソナルコンピュータを例に挙げて説明を行うが、画像データを処理可能な装置であれば、画像を扱うマルチファンクションプリンタ(MFP)やフォトダイレクトプリンタ(FDP)等のパーソナルコンピュータ以外の機器への組み込み機器等であっても同様の実施形態が考えられる。 In the first embodiment, a personal computer will be described as an example of an apparatus that implements an image processing apparatus. However, any apparatus capable of processing image data may be a multifunction printer (MFP) or photo that handles images. A similar embodiment is conceivable even for a built-in device in a device other than a personal computer such as a direct printer (FDP).
図1は、第1の実施形態に係る画像処理装置における画像処理の全体の流れを説明するためのフローチャートである。まず、図11に示される画像処理装置の入出力ポート51、メモリカードドライブ56において読み出された画像データ、或いはハードディスク57に保存されている画像データをマウス52やキーボード53からの入力操作に基づいて取得する(ステップS101)。
FIG. 1 is a flowchart for explaining the overall flow of image processing in the image processing apparatus according to the first embodiment. First, the image data read out by the input /
次に、ステップS101で取得された画像データを不図示のRAM等に展開して、取得された画像データに対する特徴領域の抽出処理を行う(ステップS102)。例えば、登録されている特徴領域の定義が画像中の主要人物肌領域である場合は、入退室管理や監視システムとして動画を含む画像の中に人物の顔領域を検出する処理方法等が知られている。そして、人物肌又は顔領域の特徴判定を行って、合致した領域を抽出し、その情報を保持すると共に、抽出した領域の特徴量を算出して保持する。ここでは、少なくとも輝度平均値や画素数を含むサイズ情報を含むものとする。 Next, the image data acquired in step S101 is developed in a RAM (not shown) or the like, and feature region extraction processing is performed on the acquired image data (step S102). For example, when the definition of the registered feature area is the main person skin area in the image, a processing method for detecting a person's face area in an image including a moving image is known as an entrance / exit management or monitoring system. ing. Then, the human skin or face area is subjected to feature determination to extract the matched area, hold the information, and calculate and hold the feature amount of the extracted area. Here, it is assumed that size information including at least the luminance average value and the number of pixels is included.
図10は、図1に示すフローチャートの特徴領域抽出処理(ステップS102)の詳細を説明するためのフローチャートである。ここでは、抽出の対象となる特徴領域として画像中の主要人物の肌領域である場合について説明する。 FIG. 10 is a flowchart for explaining details of the feature region extraction processing (step S102) of the flowchart shown in FIG. Here, a case will be described in which the feature region to be extracted is the skin region of the main person in the image.
まず、ステップS101で取得された画像データに対して、JPEG画像の圧縮単位である8×8画素を単位とした色度比率と配置組み合わせによって、主要人物の肌領域候補のグループを検出する(ステップS1001)。次に、ステップS1001の処理によって候補となるグループの検出に成功したか否かを判定する(ステップS1002)。 First, a group of candidate skin regions of the main person is detected from the image data acquired in step S101 by using a chromaticity ratio and an arrangement combination in units of 8 × 8 pixels that are JPEG image compression units (step S101). S1001). Next, it is determined whether or not the candidate group has been successfully detected by the process of step S1001 (step S1002).
その結果、検出に失敗した場合(No)は、主要人物の肌領域の検出に失敗したことを登録する(ステップS1006)。具体的には、検出結果HM=”0000”としてセットする。一方、検出に成功した場合(Yes)は、ステップS1001で検出された主要人物の肌領域候補のグループに対して、検出された領域が予め設定して保存されている空間周波数特性の範囲に適合するか否かを比較する(ステップS1003)。 As a result, if the detection fails (No), the fact that the detection of the skin area of the main person has failed is registered (step S1006). Specifically, the detection result HM is set to “0000”. On the other hand, if the detection is successful (Yes), the detected area is set in advance and stored in the range of the spatial frequency characteristics set for the main person skin area candidate group detected in step S1001. Whether or not to do so is compared (step S1003).
そして、ステップS1003での比較結果に基づいて検出が成功したか否か、すなわち、主要人物の肌領域候補のグループが主要人物の肌領域であると判定されたか否かを判定する(ステップS1004)。その判定の結果、検出不成功、すなわち主要人物の肌ではないと判定された場合(No)は、前述したステップS1006の処理に移行して、主要人物の肌領域の検出に失敗したことを登録する。また、検出成功、すなわち主要人物の肌であると判定された場合(Yes)は、主要人物の肌領域の検出に成功したことを登録する(ステップS1005)。具体的には、検出結果HM=”1111”としてセットする。さらに、検出された特徴データを保存する。 Then, based on the comparison result in step S1003, it is determined whether or not the detection is successful, that is, whether or not the group of the main person's skin area candidates is determined to be the main person's skin area (step S1004). . As a result of the determination, when it is determined that the detection is unsuccessful, that is, it is determined that the skin is not the main person's skin (No), the process proceeds to the above-described step S1006 and registration of the failure to detect the main person's skin area is registered To do. If the detection is successful, that is, if the skin of the main person is determined (Yes), the fact that the main person's skin area has been detected is registered (step S1005). Specifically, the detection result HM = “1111” is set. Further, the detected feature data is stored.
尚、上述した実施形態では、ステップS102の特徴領域の抽出処理を、主要人物の肌領域の特徴領域を検出することによって説明したが、他の人物の顔領域の検出や個人顔の認証等による検出に置き換えてもよい。 In the above-described embodiment, the feature region extraction process in step S102 has been described by detecting the feature region of the main person's skin region. It may be replaced with detection.
次に、ステップS101において取得した画像データの特徴を解析する(ステップS103)。ここでは、特徴解析によって、少なくとも輝度平均値や画素数を含むサイズ情報を求め、それらを保持する。 Next, the characteristics of the image data acquired in step S101 are analyzed (step S103). Here, size information including at least the luminance average value and the number of pixels is obtained by feature analysis, and is retained.
次いで、ステップS102における検出結果(HM)が「1111」であると判定されている時(すなわち、検出成功の場合)には、ステップS102とステップS103の処理によって算出した特徴量に基づいて、画像データから抽出した特徴領域を利用した画像の補正目標値を設定する必要があるか否かの判定を行う(ステップS104)。 Next, when it is determined that the detection result (HM) in step S102 is “1111” (that is, when the detection is successful), based on the feature amount calculated by the processing in step S102 and step S103, the image It is determined whether or not it is necessary to set a correction target value for an image using the feature region extracted from the data (step S104).
例えば、ステップS101で取得された撮影画像中に人物が存在する場合には、当該人物が主被写体である可能性が高い。そこで、本実施形態では、撮影画像より抽出した主被写体と考えられる人物の特徴領域の輝度平均値自体と、当該撮影画像の輝度平均との比較関係により判定を行う。 For example, if a person is present in the captured image acquired in step S101, it is highly likely that the person is the main subject. Therefore, in the present embodiment, the determination is performed based on the comparison relationship between the luminance average value itself of the characteristic area of the person considered as the main subject extracted from the captured image and the average luminance of the captured image.
一方、ステップS102における検出結果HMが「0000」と判定された場合には(すなわち、検出失敗の場合)、ステップS105をスキップして、ステップS106において通常の画像補正を実行する。 On the other hand, when the detection result HM in step S102 is determined to be “0000” (that is, in the case of detection failure), step S105 is skipped and normal image correction is performed in step S106.
また、ステップS105においては、ステップS104において、撮影画像から抽出した特徴領域を利用した画像補正目標値を設定する必要があると判定した場合に、特徴領域の状況を踏まえて、どの輝度レベルまで最終目標値に近付けるかを設定する。また、設定した目標値を使用して補正用テーブルを作成する。 In step S105, when it is determined in step S104 that an image correction target value using the feature area extracted from the photographed image needs to be set, the final brightness level is determined based on the situation of the feature area. Set whether to approach the target value. Also, a correction table is created using the set target value.
ステップS106においては、ステップS105において特徴領域の特徴量を利用して作成した補正用テーブルの有無を判断し、補正用テーブルが存在しない場合は特徴領域の検出結果を反映しない共通の定義に基づく画像補正を実行する。一方、補正用テーブルが存在する場合は、共通の定義に基づく画像補正ではなく、作成した補正用テーブルを利用できるように共通の定義に基づく画像補正に対して置き換えを行った後に画像補正を実行する。 In step S106, it is determined whether or not there is a correction table created using the feature amount of the feature area in step S105. If there is no correction table, an image based on a common definition that does not reflect the detection result of the feature area Perform correction. On the other hand, if a correction table exists, the image correction is performed after replacing the image correction based on the common definition so that the created correction table can be used instead of the image correction based on the common definition. To do.
ここで、共通の定義に基づく画像補正について、簡単に説明する。良い画像の定義とは、一般に次のようなことに基づいて定義される。
1)光源のホワイトバランスが良好である。
2)コントラストが良好である。
3)必要な部分の階調が確保されている。
Here, the image correction based on the common definition will be briefly described. The definition of a good image is generally defined based on the following.
1) The white balance of the light source is good.
2) Good contrast.
3) The gradation of the necessary part is secured.
そして、ステップS106の画像補正処理に先立って、上記条件を満足する画像であるか否かを撮影画像を解析して判定する。その結果、不適当である場合はステップS106の画像補正処理工程において、必要な補正項目に対するパラメータを算出して出力する。 Then, prior to the image correction processing in step S106, it is determined by analyzing the captured image whether the image satisfies the above condition. As a result, if it is inappropriate, parameters for necessary correction items are calculated and output in the image correction processing step of step S106.
まず、光源のホワイトバランスについては、画像中の最高輝度部分近辺が光源と近似すると仮定し、この領域のRGBバランスを判定する。そして、補正が必要な場合は、RGB成分ごとに変換テーブルを作成し、画像データを変換して補正する。 First, regarding the white balance of the light source, it is assumed that the vicinity of the highest luminance portion in the image approximates the light source, and the RGB balance of this region is determined. If correction is necessary, a conversion table is created for each RGB component, and the image data is converted and corrected.
また、コントラストについては、画像データの輝度範囲0〜255(8ビットの場合)の中で実データの分布を解析し、分布が一様になるように変換テーブルを作成して適用することで補正する。
Contrast is corrected by analyzing the distribution of the actual data within the
さらに、画像データにおける主要部分の階調が確保されていない場合は、階調の配分を最適化するために階調補正テーブルを作成して適用することで補正する。 Further, when the gradation of the main part in the image data is not secured, correction is performed by creating and applying a gradation correction table in order to optimize gradation distribution.
次に、露出補正テーブルの作成方法について具体的に説明する。図15は、第1の実施形態で用いられる露出補正量決定テーブルの一例を示す図である。以下では、図15に示す露出補正量決定テーブルにおいて、横軸は入力画像(撮影画像)の輝度平均(AVE)を0から255の範囲で表したものであり、縦軸は変換後の輝度平均値の目標値(NAVE)であって、その範囲は0から255で表される。 Next, a method for creating an exposure correction table will be specifically described. FIG. 15 is a diagram illustrating an example of an exposure correction amount determination table used in the first embodiment. In the following, in the exposure correction amount determination table shown in FIG. 15, the horizontal axis represents the average luminance (AVE) of the input image (captured image) in the range from 0 to 255, and the vertical axis represents the average luminance after conversion. The target value (NAVE) of the value, and its range is represented by 0 to 255.
図15における目標値(NAVE)設定テーブルは、目標輝度レベル(ここでは一例として144としている。)より低輝度の画像は、目標レベルに近付くように目標値(NAVE)を現在の状態より高くなるように設定する。一方、目標輝度レベルより高輝度の画像は、目標レベルに近付くように目標値(NAVE)を現在の状態より低くなるように設定する。 In the target value (NAVE) setting table in FIG. 15, the target value (NAVE) becomes higher than the current state so that an image having a lower luminance than the target luminance level (144 is assumed here as an example) approaches the target level. Set as follows. On the other hand, the target value (NAVE) is set to be lower than that in the current state so that an image having a higher luminance than the target luminance level approaches the target level.
そして、NAVEの値を図15に示す露出補正量決定テーブルを用いて入力画像の輝度平均(AVE)ごとに求め、その結果から図16に示すテーブルを作成する。図16は、第1の実施形態で用いられる露出補正用のルックアップテーブルの一例を示す図である。図16に示すテーブルの作成方法は、まず横軸の0から255の間に入力画像の輝度平均(AVE=A)値をプロットする。次いで縦軸の0から255の間に変換後の輝度平均値の目標値(NAVE=NA)をプロットする。そして、プロット点より垂直に互いの交点を探し出し、その点と(0,0)及び(255,255)を図16に示すように結んで変換テーブルを作成する。或いは、露出補正用のルックアップテーブルを、目標値と(0,0)と(255,255)の3点を通るガンマ階調の変換テーブルとして作成しても良い。このような変換テーブルを用いることで、画像全体の輝度値を、希望する値へ簡易に変換することができる。 Then, the value of NAVE is obtained for each luminance average (AVE) of the input image using the exposure correction amount determination table shown in FIG. 15, and the table shown in FIG. 16 is created from the result. FIG. 16 is a diagram illustrating an example of a lookup table for exposure correction used in the first embodiment. The table creation method shown in FIG. 16 first plots the average luminance (AVE = A) value of the input image between 0 and 255 on the horizontal axis. Next, the target value (NAVE = NA) of the luminance average value after conversion is plotted between 0 and 255 on the vertical axis. Then, an intersection point is found vertically from the plot point, and the conversion table is created by connecting the points (0, 0) and (255, 255) as shown in FIG. Alternatively, a lookup table for exposure correction may be created as a conversion table for gamma gradation passing through the target value and three points (0, 0) and (255, 255). By using such a conversion table, the luminance value of the entire image can be easily converted to a desired value.
ここで、画像データを白銀のゲレンデに立つ人とした場合の補正処理について説明する。そこで、画像全体の平均輝度をB(=188)とし、特徴領域検出にて検出された人物の肌の平均輝度はA(=64)とする。このような条件において、特徴領域検出処理が行われない場合は、画像補正の露出処理では全体画像の輝度を188から170へ落とす処理を行う。しかし、当該補正処理を行うことによって、本来被写体として一番見たい人物の顔は64よりもさらに暗い方向へ補正されてしまい、画像補正がかえって画像を悪くしてしまう。 Here, correction processing when the image data is a person standing on a white silver slope will be described. Therefore, the average luminance of the entire image is B (= 188), and the average luminance of the human skin detected by the feature region detection is A (= 64). Under such conditions, when the feature region detection process is not performed, the process of reducing the brightness of the entire image from 188 to 170 is performed in the image correction exposure process. However, by performing the correction process, the face of the person who wants to see most as the subject is corrected in a darker direction than 64, and the image correction is rather deteriorated.
しかしながら、特徴領域検出の出力を画像補正値に反映することで、人物肌の平均輝度値である64が露出補正の対象になるので、人物の顔を64から100へ引き上げる露出補正を実行して、画像データの見たい部分をより高品位化することが可能である。 However, by reflecting the output of the feature region detection in the image correction value, the average brightness value 64 of the human skin becomes the target of exposure correction. Therefore, exposure correction is performed to raise the person's face from 64 to 100. Therefore, it is possible to improve the quality of the portion of the image data to be viewed.
ここで、上述した露出補正方法では、補正によって画像はある程度改善するものの補正される補正量もわずかなものであり、輝度が100で撮影された人の顔は、一般的にまだ暗い状態のままである。本来、人の顔を撮影した画像をモニタ上、或いは印刷して鑑賞するような場合、好ましい輝度としては170〜220程度の範囲が要求されると考えられる。しかしながら、上述した特徴領域検出処理において検出された人物肌の平均輝度A(=64)を170へ上げる階調補正テーブルを作成して露出補正を実行した場合、背景である白銀のゲレンデはほとんど白飛びしてしまうこととなる。従って、階調補正として、上記特徴領域検出処理において検出された人物肌の平均輝度A(=64)を、単純に170へ上げる補正を実行することは好ましくない。 Here, in the exposure correction method described above, although the image is improved to some extent by the correction, the correction amount to be corrected is also small, and the face of a person photographed with a luminance of 100 is generally still dark. It is. Originally, when an image obtained by photographing a human face is viewed on a monitor or printed, it is considered that a range of about 170 to 220 is required as a preferable luminance. However, when a tone correction table is created to increase the average brightness A (= 64) of human skin detected in the above-described feature region detection processing to 170 and exposure correction is performed, the white silver slope that is the background is almost white. It will fly away. Therefore, it is not preferable to simply perform the correction for raising the average luminance A (= 64) of the human skin detected in the characteristic region detection process to 170 as the gradation correction.
図2は、第1の実施形態において使用される画像中の特徴領域に対する輝度補正目標値設定表を示す図である。図2に示す輝度補正目標設定表において、縦の行では、画像全体の輝度平均により[0〜60],[61〜120],[121〜190],[191〜255]の4クラスに分けて対象画像を分類する。また、横の列では特徴領域検出(APD検出)により算出した最終候補の特徴領域の輝度により[0〜35],[36〜80],[81〜120],[121〜255]の4クラスに分けて対象領域を分類する。そして、画像全体の輝度平均と最終候補の特徴領域輝度の該当する目標設定用係数を利用して、最終候補の特徴領域の輝度目標値を算出する。 FIG. 2 is a diagram showing a brightness correction target value setting table for the feature region in the image used in the first embodiment. In the luminance correction target setting table shown in FIG. 2, the vertical rows are divided into four classes [0-60], [61-120], [121-190], [191-255] according to the average luminance of the entire image. To classify the target image. In the horizontal column, four classes of [0 to 35], [36 to 80], [81 to 120], and [121 to 255] are used depending on the luminance of the feature area of the final candidate calculated by feature area detection (APD detection). The target area is classified into two. Then, the luminance target value of the final candidate feature region is calculated using the target setting coefficient corresponding to the luminance average of the entire image and the final candidate feature region luminance.
すなわち、輝度補正目標設定処理は、特徴領域検出処理で検出された人物の肌領域が主要被写体として設定され、全画像の画質を落とすことなく特徴領域をより良く補正することを可能にする。 In other words, the brightness correction target setting process allows the person's skin area detected by the feature area detection process to be set as the main subject, and makes it possible to better correct the feature area without degrading the image quality of all images.
そこで、図2に示す輝度補正目標値設定表において、縦の行は画像全体の輝度平均が[191〜255]の場合においては、背景の輝度が高過ぎるので特徴領域検出の結果を反映できないと判断し、特徴領域検出結果を反映した階調補正は実行されず、通常の画像補正のみの実行が指定されることなる。 Therefore, in the luminance correction target value setting table shown in FIG. 2, when the average luminance of the entire image is [191 to 255], the vertical row is too high in the background luminance and cannot reflect the result of the feature region detection. Thus, the gradation correction reflecting the characteristic region detection result is not executed, and execution of only normal image correction is designated.
また、横の列において、特徴領域検出により算出した最終候補の特徴領域の輝度が[0〜35]の場合は、特徴領域検出結果を反映した階調補正が実行されず、通常の画像補正のみの実行が指定される。これは、撮影機器の入力特性を考慮したものである。すなわち、CCD等の撮像素子への入力信号が低い時のS/N比は悪いことが知られており、さらに、主被写体が黒潰れしていることが考えられる。従って、この領域における主被写体の輝度を上げても良質な状態へ補正できないと判断したことに基づくものである。 In the horizontal row, when the brightness of the final candidate feature area calculated by the feature area detection is [0 to 35], gradation correction reflecting the feature area detection result is not executed, and only normal image correction is performed. Execution is specified. This takes into account the input characteristics of the photographic equipment. That is, it is known that the S / N ratio is low when the input signal to the image sensor such as a CCD is low, and the main subject is considered to be black. Therefore, it is based on the determination that even if the luminance of the main subject in this region is increased, it cannot be corrected to a high quality state.
さらに、特徴領域検出により算出した最終候補の特徴領域である人物肌領域の輝度が[131〜255]の場合は、ほぼ良好な輝度状態、或いは白跳びに近い状態であると判断する。そこで、特徴領域検出の結果を反映する必要性が低いと判断して、特徴領域検出結果を反映した階調補正が実行されず、通常の画像補正のみの実行が指定される。 Furthermore, when the luminance of the human skin region, which is the final candidate feature region calculated by the feature region detection, is [131 to 255], it is determined that the luminance state is almost favorable or close to whiteout. Therefore, it is determined that the necessity of reflecting the result of the characteristic area detection is low, and the gradation correction reflecting the characteristic area detection result is not executed, and execution of only normal image correction is designated.
ここで、前述した白銀のゲレンデに立つ人を撮影した画像を例に挙げると、画像全体の平均輝度はB(=188)であり特徴領域検出にて検出された人物の肌の平均輝度はA(=64)である。従って、図2に示す表より、「*1.5」となり、人物肌の平均輝度A(=64)に1.5を乗算した値が輝度目標値となる。そして、この値を用いてNAを設定し、図16に示す補正テーブルの作成に反映する。 Here, taking as an example an image obtained by photographing a person standing on the white silver slope, the average luminance of the entire image is B (= 188), and the average luminance of the human skin detected by the feature region detection is A. (= 64). Therefore, from the table shown in FIG. 2, “* 1.5” is obtained, and a value obtained by multiplying the average luminance A (= 64) of human skin by 1.5 is the luminance target value. Then, using this value, the NA is set and reflected in the creation of the correction table shown in FIG.
次に、実際の撮影画像を例に用いて、補正処理について詳細に説明する。図21、25、29、33は、それぞれ、特徴領域検出の対象として主被写体と設定する人物の肌領域を含む撮影画像のサンプル例を示す図である。 Next, the correction process will be described in detail using an actual captured image as an example. 21, 25, 29, and 33 are diagrams illustrating sample images of a captured image including a person's skin region set as a main subject as a target for feature region detection.
まず、図21に示す撮影画像の処理について説明する。図22は、図21の画像に対して人物の肌領域の最終候補として領域を検出した結果を示す図である。図21の撮影画像における人物の肌部分としては、人物の顔、両膝、手のひら等が存在するが、最も重みのある最終被写体候補として検出された領域が図22で検出された顔の部分である。 First, the processing of the captured image shown in FIG. 21 will be described. FIG. 22 is a diagram illustrating a result of detecting a region as a final candidate of the human skin region in the image of FIG. The human skin portion in the captured image of FIG. 21 includes a human face, both knees, palms, and the like. The region detected as the most weighted final subject candidate is the face portion detected in FIG. is there.
図23は、図21に示す撮影画像の全体の輝度平均及び輝度ヒストグラムを含む特徴量の一例を表示する図である。図23では、ヒストグラムの横軸について輝度を256階調で表している。すなわち、その範囲は0〜255の幅になっており、左端が0、右端が255となる。また、図23では、平均輝度が160であり、輝度分布としては、最高輝度分布の雪領域と、次の高い輝度分布領域である空領域と、かなり暗い背景の山領域とが大きく分けて存在することが確認できる。 FIG. 23 is a diagram displaying an example of the feature amount including the average luminance and the luminance histogram of the entire photographed image shown in FIG. In FIG. 23, the luminance is represented by 256 gradations on the horizontal axis of the histogram. That is, the range has a width of 0 to 255, with the left end being 0 and the right end being 255. In FIG. 23, the average luminance is 160, and the luminance distribution is roughly divided into a snow region with the highest luminance distribution, a sky region which is the next high luminance distribution region, and a mountain region with a rather dark background. It can be confirmed.
図24は、図21に示される撮影画像で検出された人物の顔領域における特徴量の一例を表示する図である。図24において、検出された領域の平均輝度は92であり、この値を中心に主に上下30の輝度範囲で検出した領域の輝度データ分布が存在していることが確認できる。 FIG. 24 is a diagram displaying an example of the feature amount in the face area of the person detected in the photographed image shown in FIG. In FIG. 24, the average luminance of the detected region is 92, and it can be confirmed that there is a luminance data distribution of the region detected mainly in the upper and lower luminance ranges around this value.
図2に示す表を用いて特徴領域に対する輝度補正目標値設定を行う場合、画像全体の平均輝度はB(=161)であって、特徴領域検出にて検出された人物の肌の平均輝度はA(=92)であることから「*1.3」が求まり、人物肌の平均輝度A(=92)に1.3を乗算した値(120)が、輝度目標値となる。この値を用いてNAを設定し、図16に示される補正テーブルの作成に反映する。 When setting the brightness correction target value for the feature area using the table shown in FIG. 2, the average brightness of the entire image is B (= 161), and the average brightness of the skin of the person detected by the feature area detection is Since A (= 92), “* 1.3” is obtained, and a value (120) obtained by multiplying the average luminance A (= 92) of human skin by 1.3 is the luminance target value. The NA is set using this value and reflected in the creation of the correction table shown in FIG.
次に、図25に示す撮影画像を用いた例について説明する。図26は、図25に示す撮影画像に対して人物肌領域の最終候補として領域を検出した結果を示す図である。尚、図25の画像における撮影された人物肌としては人物の顔のみであり、これがそのまま最終被写体候補として検出された領域が図26に示す検出された部分である。 Next, an example using the captured image shown in FIG. 25 will be described. FIG. 26 is a diagram illustrating a result of detecting a region as a final candidate for a human skin region in the captured image illustrated in FIG. Note that the human skin photographed in the image of FIG. 25 is only the face of the person, and this is the detected portion shown in FIG.
図27は、図25に示す撮影画像全体の輝度平均及び輝度ヒストグラムを含む特徴量の一例を示す図である。図27において、ヒストグラムの横軸は輝度を256階調で表して0〜255の幅で与えられており、左端が0で右端が255である。また、ヒストグラムにおいて平均輝度が111であり、輝度分布としては、全体に渡ってほぼ一様に分布して存在することが確認できる。 FIG. 27 is a diagram illustrating an example of the feature amount including the luminance average and luminance histogram of the entire captured image illustrated in FIG. In FIG. 27, the horizontal axis of the histogram represents luminance in 256 gradations and is given by a width of 0 to 255, with the left end being 0 and the right end being 255. Further, the average luminance is 111 in the histogram, and it can be confirmed that the luminance distribution is distributed almost uniformly throughout.
図28は、図25に示す撮影画像中から特徴領域として検出された人物の顔領域における特徴量を表した図である。図28に示すように、検出された領域の平均輝度は93であり、この値を中心に、主に上下30〜40の輝度範囲で検出された領域の輝度データ分布が存在していることが確認できる。 FIG. 28 is a diagram showing feature amounts in the face area of a person detected as a feature area from the captured image shown in FIG. As shown in FIG. 28, the average luminance of the detected area is 93, and there is a luminance data distribution of the detected area mainly in the luminance range of 30 to 40 above and below centering on this value. I can confirm.
ここで、図2に示す表に基づいて検出された特徴領域に対する輝度補正目標値設定を行う場合、画像全体の平均輝度はB(=111)であり、特徴領域検出にて検出された人物肌の平均輝度はA(=93)であるので表から「*1.5」が得られる。そして、人物肌の平均輝度A(=93)に1.5を乗算した値(140)が輝度目標値となる。この値を用いてNAを設定し、図16に示すような補正テーブルの作成に反映される。 Here, when setting the luminance correction target value for the feature area detected based on the table shown in FIG. 2, the average brightness of the entire image is B (= 111), and the human skin detected by the feature area detection Since the average luminance of A is A (= 93), “* 1.5” is obtained from the table. A value (140) obtained by multiplying the average luminance A (= 93) of human skin by 1.5 is the luminance target value. The NA is set using this value, and is reflected in the creation of a correction table as shown in FIG.
次に、図29に示す撮影画像を用いた例について説明する。図30は、図29に示す撮影画像に対して人物肌領域の最終候補として領域を検出した結果を示す図である。尚、図29の画像における撮影された人物肌としては、人物の顔と両腕が存在するが、最も重みのある最終被写体候補として検出された領域が図30で検出された部分である。 Next, an example using the captured image shown in FIG. 29 will be described. FIG. 30 is a diagram illustrating a result of detecting a region as a final candidate of the human skin region with respect to the captured image illustrated in FIG. The human skin photographed in the image of FIG. 29 includes a human face and both arms, but the region detected as the most weighted final subject candidate is the portion detected in FIG.
図31は、図29に示す撮影画像全体の輝度平均及び輝度ヒストグラムを含む特徴量の一例を示す図である。図31において、ヒストグラムの横軸は輝度を256階調で表して0〜255の幅で与えられており、左端が0で右端が255となる。また、ヒストグラムにおいて平均輝度は84であり、輝度分布としては、最高輝度分布の空領域と、比較的暗い背景である林領域が存在することが確認できる。 FIG. 31 is a diagram illustrating an example of a feature amount including a luminance average and a luminance histogram of the entire captured image illustrated in FIG. In FIG. 31, the horizontal axis of the histogram represents luminance in 256 gradations and is given by a width of 0 to 255, with the left end being 0 and the right end being 255. In the histogram, the average luminance is 84, and it can be confirmed that the luminance distribution includes a sky region of the highest luminance distribution and a forest region that is a relatively dark background.
図32は、図29に示す撮影画像中から特徴領域として検出された人物の顔領域における特徴量を表した図である。図32に示すように、検出された領域の平均輝度は73であり、この値を中心に主に上下30の輝度範囲で検出した領域の輝度データ分布が存在していることが確認できる。 FIG. 32 is a diagram showing feature amounts in the face area of a person detected as a feature area in the captured image shown in FIG. As shown in FIG. 32, the average luminance of the detected area is 73, and it can be confirmed that there is a luminance data distribution of the detected area mainly in the upper and lower luminance ranges around this value.
ここで、図2に示す表に基づいて検出された特徴領域に対する輝度補正目標値設定を行う場合、画像全体の平均輝度はB(=84)であり、特徴領域検出によって検出された人物肌の平均輝度はA(=73)であるので表から「*1.8」が得られる。そして、人物肌の平均輝度A(=73)に1.8を乗算した値(131)が輝度目標値となる。この値を用いてNAを設定し、図16に示すような補正テーブルの作成に反映される。 Here, when setting the luminance correction target value for the feature region detected based on the table shown in FIG. 2, the average brightness of the entire image is B (= 84), and the human skin detected by the feature region detection Since the average luminance is A (= 73), “* 1.8” is obtained from the table. A value (131) obtained by multiplying the average luminance A (= 73) of human skin by 1.8 is the luminance target value. The NA is set using this value, and is reflected in the creation of a correction table as shown in FIG.
次に、図33に示す撮影画像を用いた例について説明する。図34は、図33に示す撮影画像に対して人物肌領域の最終候補として領域を検出した結果を示す図である。尚、図33の画像における撮影された人物肌としては、人物の顔と両腕が存在するが、最も重みのある最終被写体候補として検出された領域が図34で検出された部分である。 Next, an example using the captured image shown in FIG. 33 will be described. FIG. 34 is a diagram illustrating a result of detecting a region as a final candidate of the human skin region in the captured image illustrated in FIG. The human skin photographed in the image of FIG. 33 includes a human face and both arms, but the region detected as the most weighted final subject candidate is the portion detected in FIG.
図35は、図33に示す撮影画像全体の輝度平均及び輝度ヒストグラムを含む特徴量の一例を示す図である。図35において、ヒストグラムの横軸は輝度を256階調で表して0〜255の幅で与えられており、左端が0で右端が255となる。また、ヒストグラムにおいて平均輝度は125であり、輝度分布としては、最高輝度分布の空領域と暗い背景の枯草領域が存在することが確認できる。 FIG. 35 is a diagram illustrating an example of a feature amount including a luminance average and a luminance histogram of the entire captured image illustrated in FIG. In FIG. 35, the horizontal axis of the histogram represents luminance in 256 gradations and is given by a width of 0 to 255, with the left end being 0 and the right end being 255. In the histogram, the average luminance is 125, and it can be confirmed that the luminance distribution includes a sky region with the highest luminance distribution and a hay region with a dark background.
図36は、図33に示す撮影画像中から特徴領域として検出された人物の顔領域における特徴量を表した図である。図36に示すように、検出された領域の平均輝度は80であり、この値を中心に主に上下30の輝度範囲で検出した領域の輝度データ分布が存在していることが確認できる。 FIG. 36 is a diagram showing feature amounts in the face area of a person detected as a feature area in the captured image shown in FIG. As shown in FIG. 36, the average luminance of the detected region is 80, and it can be confirmed that there is a luminance data distribution of the region detected mainly in the upper and lower luminance ranges around this value.
次に、図2に示す表に基づいて検出された特徴領域に対する輝度補正目標値設定を行う場合、画像全体の平均輝度はB(=125)であり、特徴領域検出によって検出された人物肌の平均輝度はA(=80)であるので表から「*1.5」が得られる。そして、人物肌の平均輝度A(=80)に1.5を乗算した値(131)が輝度目標値となる。この値を用いてNAを設定し、図16に示すような補正テーブルの作成に反映される。 Next, when setting the luminance correction target value for the feature region detected based on the table shown in FIG. 2, the average brightness of the entire image is B (= 125), and the human skin detected by the feature region detection Since the average luminance is A (= 80), “* 1.5” is obtained from the table. A value (131) obtained by multiplying the average brightness A (= 80) of human skin by 1.5 is the brightness target value. The NA is set using this value, and is reflected in the creation of a correction table as shown in FIG.
上述したように、図21、図25、図29、及び図33に示す撮影画像サンプルを用いて、主被写体として人物肌領域を対象としてその特徴量を抽出して反映した補正結果を示した。ここで、図21に示す人物肌領域の平均輝度が92となり、その輝度アップ量は28である。また、図25に示す人物肌領域の平均輝度が93となり、輝度アップ量は47である。さらに、図29に示す人物肌領域の平均輝度が73となり、その輝度アップ量は58である。さらにまた、図33に示す人物肌領域の平均輝度が80となり、その輝度アップ量は51となる。 As described above, using the photographed image samples shown in FIG. 21, FIG. 25, FIG. 29, and FIG. Here, the average brightness of the human skin region shown in FIG. 21 is 92, and the brightness increase amount is 28. In addition, the average luminance of the human skin region shown in FIG. 25 is 93, and the luminance increase amount is 47. Further, the average luminance of the human skin region shown in FIG. 29 is 73, and the luminance increase amount is 58. Furthermore, the average brightness of the human skin area shown in FIG. 33 is 80, and the brightness increase amount is 51.
これらの結果から、背景を含む画像全体の輝度と特徴領域として抽出した主被写体の輝度関係により、主被写体への輝度補正目標が背景を含む画像全体の状況により影響することが明らかである。従って、背景部分の階調を損ねることのない条件下において特徴領域として抽出された主被写体領域の階調補正が良好に実行することができることとなる。 From these results, it is clear that the luminance correction target for the main subject has an influence on the situation of the entire image including the background due to the luminance relationship of the entire image including the background and the luminance of the main subject extracted as the feature region. Therefore, the tone correction of the main subject region extracted as the feature region can be satisfactorily executed under the condition that the tone of the background portion is not impaired.
図7は、第1の実施形態において使用される画像中の特徴領域に対する別の輝度補正目標値設定表を示す図である。図2で示した輝度補正目標値設定表では、撮影画像全体の輝度平均及び特徴領域として抽出した主被写体の人物肌領域の輝度平均の値によってクラスを分けて対象画像を分類して目標設定を行った。しかし、この場合、クラスの境目で、目標値の設定が変わる段差が発生することとなる。そこで、これをリニアな変化にした目標値設定にしたものが図7に示す表で示されたものである。 FIG. 7 is a diagram showing another brightness correction target value setting table for the feature region in the image used in the first embodiment. In the brightness correction target value setting table shown in FIG. 2, the target image is classified by classifying the target image according to the brightness average of the entire captured image and the brightness average value of the human skin area of the main subject extracted as the feature area. went. However, in this case, a step where the setting of the target value changes occurs at the class boundary. Accordingly, the target value setting in which this is changed linearly is shown in the table shown in FIG.
図7では、全画像における平均輝度が0〜35未満、或いは180より大きい場合は、特徴領域を利用した画像補正の目標設定対象外としている。また、同じように、特徴抽出した主被写体の平均輝度が0〜35未満、或いは160より大きい場合は、特徴領域を利用した画像補正の目標設定対象外としている。 In FIG. 7, when the average luminance in all images is less than 0 to 35 or greater than 180, it is excluded from the target setting target for image correction using the feature region. Similarly, when the average luminance of the main subject whose features have been extracted is less than 0 to less than 35 or greater than 160, it is excluded from the target setting target for image correction using the feature region.
さらに、全画像における平均輝度が35〜180であり、かつ特徴抽出した主被写体の平均輝度が35〜160の条件を満たした画像は、特徴領域を利用した画像補正の目標設定対象となり、各ポイントをリニアにつないだ値による目標設定となる。 Furthermore, an image having an average luminance of 35 to 180 in all the images and satisfying the condition that the average luminance of the feature-extracted main subject is 35 to 160 is a target setting target for image correction using the feature region, and each point The target is set by a value that is connected linearly.
図5及び図6は、本発明の第1の実施形態で使用されるNAVE設定(補正目標値設定)テーブルをグラフ化した図である。図5において、横軸は画像全体の輝度平均、奥への軸は特徴領域として抽出した主被写体としての人物肌の輝度平均、縦軸は目標設定用特徴領域への乗数を示している。図5に示すように、目標設定の乗数が滑らかに変化することが確認できる。 5 and 6 are graphs showing the NAVE setting (correction target value setting) table used in the first embodiment of the present invention. In FIG. 5, the horizontal axis represents the average luminance of the entire image, the back axis represents the average luminance of human skin as the main subject extracted as the feature region, and the vertical axis represents the multiplier to the target setting feature region. As shown in FIG. 5, it can be confirmed that the target setting multiplier changes smoothly.
図47は、図29に示す撮影画像サンプルに対して本実施形態に係る補正処理を施した結果を示す図である。図47は、図29に示す撮影画像における主被写体である特徴領域の人物肌における輝度が増し、撮影画像の観察者が注目する領域を中心とした画質が向上していることがわかる。 FIG. 47 is a diagram illustrating a result of performing the correction process according to the present embodiment on the photographed image sample illustrated in FIG. FIG. 47 shows that the luminance in the human skin of the characteristic area that is the main subject in the photographed image shown in FIG. 29 is increased, and the image quality is improved centering on the area of interest of the observer of the photographed image.
また、図46は、図47に示す補正結果画像の輝度ヒストグラムを示す図である。図46では、ヒストグラムの横軸は輝度を256階調で表して0〜255の幅になっており、左端が0で右端が255となる。また、ヒストグラムにおいて平均輝度が114であり、通常の画像補正では原画像の輝度分布特性から人物肌領域の輝度を最適化できないが、本実施形態に係る補正処理によって良好な状態に補正されていることが確認できる。 FIG. 46 is a diagram showing a luminance histogram of the correction result image shown in FIG. In FIG. 46, the horizontal axis of the histogram represents luminance in 256 gradations and has a width of 0 to 255, with the left end being 0 and the right end being 255. Further, the average luminance is 114 in the histogram, and the luminance of the human skin region cannot be optimized from the luminance distribution characteristics of the original image by normal image correction, but is corrected to a good state by the correction processing according to the present embodiment. Can be confirmed.
上述したように、本実施形態では非主被写体領域より主被写体領域への画質向上化を目指した補正処理について説明した。また、第1の実施形態において、具体的には階調への反映方法を示したが、その他の補正項目であるコントラストやホワイトバランス等に関しても同様にして補正の対象と成り得る。 As described above, in the present embodiment, the correction process aimed at improving the image quality from the non-main subject region to the main subject region has been described. In the first embodiment, the reflection method to the gradation is specifically shown. However, other correction items such as contrast and white balance can be similarly corrected.
<第2の実施形態>
次に、前述した第1の実施形態と同じハードウェア構成を利用して、特徴領域への補正目標値を設定した後に階調補正用ルックアップテーブルを作成して補正を行う画像処理について説明する。尚、前述した第1の実施形態においては、特徴領域の特徴量として特徴領域の面積比率と輝度平均を用いたが、これによって補正を行った結果、輝度は良好に補正されるものの、画像によっては主被写体である人物肌領域の階調が減ってしまう可能性があった。そこで、第2の実施形態では、特徴領域に対する輝度及び階調補正を簡便に行う補正テーブルの作成方法について説明する。
<Second Embodiment>
Next, image processing that uses the same hardware configuration as that of the first embodiment described above to create a tone correction lookup table after setting a correction target value for a feature area and performs correction will be described. . In the first embodiment described above, the area ratio of the feature region and the luminance average are used as the feature amount of the feature region. However, as a result of correcting by this, the luminance is corrected well, but depending on the image. There is a possibility that the gradation of the human skin area as the main subject is reduced. Therefore, in the second embodiment, a correction table creation method for simply performing luminance and gradation correction on a feature region will be described.
図4は、本発明の一実施形態に係るLUT階調増の変換例を示す図である。図4において、横軸は特徴領域の輝度を表し、0〜255の256段階で表している。また、特徴領域の輝度データの分布を、図32の輝度ヒストグラムから上下5%等の予め設定している閾値Mを用いて、制限された範囲に入る輝度範囲を設定する。そしてその設定範囲を表したのもが「SK IN」である。「SK IN」データは、目標設定に基づいて階調補正テーブルを用いた変換が行われるが、出力へ変換した後の写像が縦軸で示される。すなわち、図4において、縦軸は変換後の輝度を表し、0〜255の256段階で表している。この特徴領域への変換出力が「SK OUT」である。 FIG. 4 is a diagram showing an example of conversion of LUT gradation increase according to an embodiment of the present invention. In FIG. 4, the horizontal axis represents the brightness of the feature region, and is represented in 256 levels from 0 to 255. Further, the luminance range that falls within the limited range is set for the distribution of the luminance data of the feature region using a preset threshold M such as 5% above and below the luminance histogram of FIG. The setting range is represented by “SK IN”. The “SK IN” data is converted using the gradation correction table based on the target setting, and the vertical axis indicates the mapping after conversion to the output. That is, in FIG. 4, the vertical axis represents the luminance after conversion, and is represented in 256 levels from 0 to 255. The conversion output to this feature area is “SK OUT”.
ここで、図4に示す画像変換例においては、「SK OUT」が「SK IN」より大きくなるので、輝度変換の目標設定及び階調範囲ともに良好に変換された例であることがわかる。尚、前述した特徴領域の輝度ヒストグラムから上下に設定している閾値Mは、画像サイズ及び特徴領域のサイズ等により設定される。 Here, in the image conversion example shown in FIG. 4, since “SK OUT” is larger than “SK IN”, it can be seen that both the target setting of the luminance conversion and the gradation range are well converted. Note that the threshold value M set up and down from the luminance histogram of the feature area described above is set according to the image size, the size of the feature area, and the like.
図3は、本発明の一実施形態に係るLUT階調減の変換例を示す図である。図3におけるグラフの構成は図4に示すグラフと同様である。ここで、特徴領域である主被写体の最終候補の人物肌領域平均輝度及び輝度分布により、「SK IN」データは、目標設定に基づいて階調補正テーブルによる変換が行われて「SK OUT」に変換される。ここで、「SK IN」が「SK OUT」より大きくなるので、輝度変換の目標設定は良好に変換されたものの、変換後の階調が減少してしまうこととなる。従って、主被写体として設定した特徴領域のデータを中心とした補正としては、輝度は良好となるが、階調が減少した分のっぺりとした感じになってしまう場合がある。 FIG. 3 is a diagram illustrating a conversion example of LUT gradation reduction according to an embodiment of the present invention. The configuration of the graph in FIG. 3 is the same as the graph shown in FIG. Here, the “SK IN” data is converted by the tone correction table based on the target setting to “SK OUT” based on the average luminance and luminance distribution of the human skin region final candidate of the main subject that is the feature region. Converted. Here, since “SK IN” becomes larger than “SK OUT”, the target setting of the luminance conversion is converted well, but the gradation after conversion is reduced. Therefore, the correction centering on the data of the characteristic area set as the main subject has a good brightness, but may have a feeling of being reduced as the gradation is reduced.
そこで、こうした現象を改善するために、図1に示すフローチャートにおける特徴量判定ステップ(ステップS104)において、ステップS102における検出結果HMが「1111」と判定されている場合は、まず、最初に、図8及び図9に示す処理を実行する。図8は、本発明の第2の実施形態における面積比率による反映値決定処理手順を説明するためのフローチャートである。また、図9は、本発明の第2の実施形態におけるLUT作成処理手順を説明するためのフローチャートである。 Therefore, in order to improve such a phenomenon, if the detection result HM in step S102 is determined to be “1111” in the feature amount determination step (step S104) in the flowchart shown in FIG. The process shown in FIG. 8 and FIG. 9 is executed. FIG. 8 is a flowchart for explaining a reflected value determination processing procedure based on an area ratio in the second embodiment of the present invention. FIG. 9 is a flowchart for explaining the LUT creation processing procedure according to the second embodiment of the present invention.
図8と図9に示す処理の目的は、特徴領域である主被写体領域に対して輝度補正用目標テーブルを作成する際に、特徴領域の階調を確保することに対応したものを作成することである。すなわち、図8及び図9に示す処理では、検出された特徴領域である主被写体領域が画像全体に占める面積比率を求め、その結果を反映して輝度補正テーブル作成において、特徴領域の階調の確保する輝度補正テーブルへの指示方法を提供する。 The purpose of the processing shown in FIG. 8 and FIG. 9 is to create an object corresponding to securing the gradation of the feature area when creating the brightness correction target table for the main subject area which is the feature area. It is. That is, in the processing shown in FIGS. 8 and 9, the ratio of the area occupied by the main subject area, which is the detected feature area, in the entire image is obtained, and the gradation of the feature area is determined in the brightness correction table creation by reflecting the result. Provided is an instruction method for a luminance correction table to be secured.
具体的には、まず、図9に示すように、検出結果HMが「1111」と判定した特徴領域データを取り込む(ステップS901)。次に、特徴領域のすべての画素データによる輝度ヒストグラムを作成する(ステップS902)。そして、階調確保の基準値として、ステップS902で作成した輝度ヒストグラムから特徴領域データの総画素数の上下に設定している比率に対する閾値Mを利用して、特徴領域における階調として確保すべき上限(A点)と下限(B点)の値を設定する(ステップS903)。ここで、本実施形態においては、閾値M=5%とした。尚、閾値Mの値は、画像サイズ、特徴領域サイズ及び両者の比率により設定を変えるようにしてもよい。 Specifically, first, as shown in FIG. 9, feature area data for which the detection result HM is determined to be “1111” is fetched (step S901). Next, a luminance histogram is created from all the pixel data in the feature area (step S902). Then, as a reference value for securing the gradation, the threshold value M for the ratio set above and below the total number of pixels of the feature area data from the luminance histogram created in step S902 should be used to secure the gradation in the feature area. The upper limit (A point) and lower limit (B point) values are set (step S903). Here, in the present embodiment, the threshold value M = 5%. The setting of the threshold value M may be changed according to the image size, the feature area size, and the ratio of both.
次いで、特徴領域の輝度平均からステップS903において算出した上限(A点)と下限(B点)の差である輝度階調数と、その平均値Cを算出する(ステップS904)。そして、補正テーブルにおける特徴領域の階調を確保する量T1を算出する(ステップS905)。ステップS905の具体的な処理は図8に示すフローチャートを用いて説明する。 Next, the number of luminance gradations, which is the difference between the upper limit (point A) and the lower limit (point B) calculated in step S903 from the luminance average of the feature region, and its average value C are calculated (step S904). Then, an amount T1 for securing the gradation of the feature area in the correction table is calculated (step S905). Specific processing in step S905 will be described with reference to the flowchart shown in FIG.
まず、画像の全領域と特徴領域として抽出した主被写体領域との面積比率を算出する(ステップS801)。次に、予め用意している面積比率による特徴領域の階調確保指示値である「S1」、「S2」を読み込む(ステップS802)。尚、「S1」は、全画像における特徴領域が占める割合が小さいか否かを判定するための閾値である。また、「S2」は、全画像における特徴領域が占める割合が大き過ぎるか否かを判定する閾値である。 First, the area ratio between the entire region of the image and the main subject region extracted as the feature region is calculated (step S801). Next, “S1” and “S2”, which are the gradation securing instruction values of the feature region based on the area ratio prepared in advance, are read (step S802). Note that “S1” is a threshold value for determining whether or not the ratio of the feature area in all the images is small. Further, “S2” is a threshold value for determining whether or not the ratio of the feature area in all the images is too large.
そして、閾値「S1」より特徴領域の占める面積比率が大きいか否かを判定する(ステップS903)。その結果、小さいと判定された場合(Yes)は、階調確保指定乗数T1に0.8をセットする(ステップS806)。尚、T1は、入力に対する出力の階調を確保する乗数である。一方、大きいと判定された場合(No)は、さらに閾値「S2」より特徴領域の占める面積比率が大きいか否かを判定する(ステップS804)。 Then, it is determined whether or not the area ratio occupied by the feature region is larger than the threshold value “S1” (step S903). As a result, if it is determined to be small (Yes), 0.8 is set to the gradation securing designated multiplier T1 (step S806). Note that T1 is a multiplier that secures the gradation of the output with respect to the input. On the other hand, if it is determined that the area is larger (No), it is further determined whether or not the area ratio occupied by the feature region is larger than the threshold “S2” (step S804).
その結果、小さいと判定された場合(No)は、階調確保指定乗数T1に1.2をセットする(ステップS805)。一方、大きいと判定された場合は、階調確保指定乗数T1に1.0をセットする(ステップS807)。 As a result, when it is determined to be small (No), 1.2 is set to the gradation securing designated multiplier T1 (step S805). On the other hand, if it is determined to be large, 1.0 is set to the gradation securing designated multiplier T1 (step S807).
上述したステップS905までの処理結果を踏まえて、階調補正用変換テーブル(LUT)を作成する(ステップS906)。尚、本実施形態では、上述したように閾値S1、S2による面積比率による階調確保のクラス分けを行ったが、面積比率から関数演算による階調確保量を算出するようにしてもよい。 Based on the processing results up to step S905 described above, a gradation correction conversion table (LUT) is created (step S906). In the present embodiment, as described above, the classification of gradation securing based on the area ratio by the thresholds S1 and S2 is performed. However, the gradation securing amount by function calculation may be calculated from the area ratio.
そして、上記処理を行った後に、前述した第1の実施形態で行った処理である下記の処理を実行する。すなわち、ステップS102とステップS103により算出した特徴量に基づいて、画像より抽出した特徴領域を利用した画像補正目標値を設定する必要があるか判定を行う。判定の結果、撮影画像において人物が存在する場合は主被写体の可能性が高い。従って、主被写体と考えられる画像より抽出した特徴領域の輝度平均値自体と撮影画像の輝度平均との比較関係により判定を行う。ステップS102における検出結果HMが「0000」と判定されている時には、ステップS105をスキップして、ステップS106において通常の画像補正を実行する。 And after performing the said process, the following process which is the process performed in 1st Embodiment mentioned above is performed. That is, based on the feature amounts calculated in step S102 and step S103, it is determined whether it is necessary to set an image correction target value using the feature region extracted from the image. As a result of the determination, if there is a person in the captured image, the possibility of being the main subject is high. Therefore, the determination is performed based on the comparison relationship between the average brightness value of the feature region extracted from the image considered as the main subject and the average brightness of the captured image. When the detection result HM in step S102 is determined to be “0000”, step S105 is skipped and normal image correction is executed in step S106.
さらに、ステップS105においては、ステップS104において画像より抽出した特徴領域を利用した画像補正目標値を設定する必要があると判定した場合に、特徴領域の状況を踏まえてどの輝度レベルまで最終目標値に近付けるかを設定し、かつ、目標値を挟んで確保する特徴領域に対応する階調範囲を設定する。また、設定した目標値を使用して補正用テーブルを作成する。 Further, in step S105, when it is determined that it is necessary to set an image correction target value using the feature region extracted from the image in step S104, to what luminance level the final target value is set based on the situation of the feature region. Whether to approach or not is set, and a gradation range corresponding to a feature area secured with a target value interposed therebetween is set. Also, a correction table is created using the set target value.
図17は、第2の実施形態における補正用テーブルの作成方法について説明するための図である。図17において、横軸は補正前の画像の輝度であり、0〜255で表す。また、縦軸は補正後の輝度であり、0〜255で表す。 FIG. 17 is a diagram for explaining a method for creating a correction table in the second embodiment. In FIG. 17, the horizontal axis represents the luminance of the image before correction and is represented by 0 to 255. The vertical axis represents the luminance after correction and is represented by 0 to 255.
まず、画像全体の輝度平均及び特徴領域として抽出した主被写体の人物肌領域の輝度平均値から、図7に示す表を利用した輝度補正目標値Cをとり、傾き1の傾斜において階調を確保すべき上限(A点)と下限(B点)の値を配置する。そして、上限値(A点)と(255,255)、下限値(B点)と(0,0)をそれぞれ直線で結ぶ。 First, the brightness correction target value C using the table shown in FIG. 7 is obtained from the brightness average of the entire image and the brightness average value of the human subject skin area extracted as the feature area, and a gradation is secured at a slope of 1 slope. The upper limit (A point) and lower limit (B point) values to be placed are arranged. Then, the upper limit value (point A) and (255, 255) and the lower limit value (point B) and (0, 0) are connected by straight lines.
この結果、目標値と(0,0)及び(255,255)、上限値(A点)、下限値(B点)との4点を通るガンマ階調の変換テーブルが作成される。この変換テーブルを用いることで、画像全体の輝度値を希望する値へ変換することができる。 As a result, a conversion table of gamma gradations that passes through the four points of the target value, (0, 0) and (255, 255), the upper limit (point A), and the lower limit (point B) is created. By using this conversion table, the luminance value of the entire image can be converted to a desired value.
<第3の実施形態>
第3の実施形態では、前述した第1、第2の実施形態と同じ構成のシステムで、画像に対する特徴領域の抽出対象をこれまでの主被写体となる人物肌や人物顔等ではなく、非主被写体として設定される青空領域とした場合について説明する。
<Third Embodiment>
In the third embodiment, in the system having the same configuration as the first and second embodiments described above, the feature region extraction target for an image is not a main skin or a human face as a main subject, but a non-main skin. A case where a blue sky region is set as a subject will be described.
実際の撮影画像の例を用いて詳細に説明する。図37及び図40は、第3の実施形態における特徴領域検出の対象として非主被写体と設定する青空領域が含まれる撮影画像サンプルを示す図である。 This will be described in detail using an example of an actual captured image. FIG. 37 and FIG. 40 are diagrams showing photographed image samples including a blue sky region set as a non-main subject as a feature region detection target in the third embodiment.
まず、図40に示す撮影画像に対する処理について説明する。図41は、図40に示す撮影画像に対して青空領域の最終候補として検出された領域例を示す図である。 First, processing for the captured image shown in FIG. 40 will be described. FIG. 41 is a diagram illustrating an example of a region detected as a final candidate of the blue sky region for the captured image illustrated in FIG.
また、図42は、図40に示す撮影画像全体の輝度平均及び輝度ヒストグラムを含む特徴量の一例を表示した図である。図40においては、ヒストグラムの横軸は輝度を256階調で表して0〜255の幅で与えられ、左端が0、右端が255となる。また、ヒストグラムの平均輝度は132であり、輝度分布としては、輝度200近辺の最高輝度分布である雲領域と、輝度分布がおおよそ75〜140の範囲である青空領域と、輝度100近辺の牧草が広がる丘領域が存在することが確認できる。
FIG. 42 is a diagram displaying an example of the feature amount including the luminance average and luminance histogram of the entire captured image shown in FIG. In FIG. 40, the horizontal axis of the histogram represents luminance in 256 gradations and is given by a width of 0 to 255, with the left end being 0 and the right end being 255. The average luminance of the histogram is 132, and the luminance distribution includes a cloud region which is the highest luminance distribution around
この中で、特徴領域として検出された青空領域は、青みの強い青空なので、平均輝度が適度に下がり、結果として画像中の他の構成要素とバランス良い輝度範囲に入っている。 Among these, the blue sky area detected as the characteristic area is a blue sky with a strong bluish color, so that the average brightness is moderately lowered, and as a result, the brightness area is well balanced with other components in the image.
次に、図37に示す撮影画像ついて説明する。図38は、図37に示す撮影画像に対して、青空領域の最終候補として検出された結果を示す図である。図38には、図37に示す撮影画像における青空部分を最終被写体候補として検出した領域が示されている。 Next, the captured image shown in FIG. 37 will be described. FIG. 38 is a diagram illustrating a result of detection as the final candidate of the blue sky region for the captured image illustrated in FIG. FIG. 38 shows a region where the blue sky portion in the captured image shown in FIG. 37 is detected as the final subject candidate.
図39は、図37に示す撮影画像全体の輝度平均及び輝度ヒストグラムを含む特徴量の一例を示す図である。図39に示すヒストグラムにおいて、横軸は輝度を256階調で表して0〜255の幅になっており、左端が0、右端が255でなる。また、ヒストグラムの平均輝度は77であり、輝度分布としては、輝度210〜225近辺の最高輝度分布である青空領域と、輝度分布がおおよそ0〜40の範囲のかなり暗い主被写体領域である寺の門が存在することが確認できる。 FIG. 39 is a diagram illustrating an example of a feature amount including a luminance average and a luminance histogram of the entire captured image illustrated in FIG. In the histogram shown in FIG. 39, the horizontal axis represents the brightness in 256 gradations and has a width of 0 to 255, with the left end being 0 and the right end being 255. The average luminance of the histogram is 77, and the luminance distribution includes a blue sky region that is the highest luminance distribution in the vicinity of luminance 210 to 225 and a temple that is a considerably dark main subject region with a luminance distribution in the range of approximately 0 to 40. It can be confirmed that the gate exists.
図37に示されるような特徴領域として検出された青空領域は、青みの薄い青空であるために平均輝度がかなり高くなり、その結果として画像中の他の構成要素が影響を受け、主被写体が黒潰れに近い状態でバランスが悪い輝度範囲に入っている。 The blue sky area detected as the characteristic area as shown in FIG. 37 has a relatively high average luminance because it is a light blue sky. As a result, other components in the image are affected, and the main subject is affected. It is in a luminance range with poor balance in a state close to black crushing.
図37に示す撮影画像から得られる図39に示す輝度ヒストグラムにおける輝度分布においては、低輝度或いは高輝度で撮影された領域のデータが多く存在するので、通常の画像補正定義においては主被写体に対して階調を割り振る画像補正を行うことができない。 In the luminance distribution in the luminance histogram shown in FIG. 39 obtained from the photographed image shown in FIG. 37, there is a lot of data of a region photographed at low luminance or high luminance. Therefore, image correction that assigns gradation cannot be performed.
そこで、本実施形態では、特徴領域として抽出した非主被写体である青空領域部分のデータの画像に対する影響度を鑑みて、その後に必要に応じて、抽出した非主被写体である青空領域部分のデータを画像全体から外し、その青空領域を外した撮影画像データに対して画像補正を行う評価を行う。そして、その値に対して、必要に応じて先の青空領域の影響度を加味した物を目標値と設定した画像補正を実行する。このようにすることで、図37に示す撮影画像に対して適正な画像補正を提供することが可能となる。 Therefore, in the present embodiment, in consideration of the degree of influence on the image of the data of the blue sky region portion that is the non-main subject extracted as the feature region, the data of the extracted blue sky region portion that is the non-main subject is extracted as necessary thereafter. Is removed from the entire image, and evaluation is performed to perform image correction on the captured image data from which the blue sky region is removed. Then, image correction is performed with the value set as a target value in consideration of the degree of influence of the previous blue sky region as necessary. In this way, it is possible to provide appropriate image correction for the captured image shown in FIG.
次に、図37や図40における2つの青空領域に含まれる画像サンプルの主被写体への撮影影響度の違いをより客観的に観察する。図18は、撮影画像サンプル数を増やして青空領域を考慮した補正を適用することが好ましい状況がどのような条件下であるのかを探索した結果を示す図である。 Next, the difference in photographing influence on the main subject of the image samples included in the two blue sky regions in FIGS. 37 and 40 is observed more objectively. FIG. 18 is a diagram illustrating a result of searching for a condition under which it is preferable to apply the correction considering the blue sky region by increasing the number of photographed image samples.
図18に示すグラフにおいて、横軸は画像全体の平均輝度を256階調で表して0〜255の幅で与えたものであり、実際の表示範囲は左端が60で、右端が200である。また、縦軸は特徴領域として抽出した青空領域の最終候補の平均輝度を256階調で表して0〜255の幅で与えたものであり、実際の表示範囲は下端が60で、上端が240である。 In the graph shown in FIG. 18, the horizontal axis represents the average brightness of the entire image in 256 gradations and is given by a width of 0 to 255, and the actual display range is 60 at the left end and 200 at the right end. The vertical axis represents the average brightness of the final candidate of the blue sky region extracted as the feature region in 256 gradations and given a width of 0 to 255. The actual display range has a lower end of 60 and an upper end of 240. It is.
図18では、各撮影画像において特徴領域として抽出された青空領域を反映した画像補正を実行した場合の効果について示されている。すなわち、図18では、特に効果が顕著な物を「○」印で示し、通常の画像補正より効果が明らかに確認できる物を「△」印で示し、通常の画像補正に対して明らかな効果が確認できない物を「□」印で示したものである。 FIG. 18 shows the effect of executing image correction reflecting the blue sky region extracted as the feature region in each captured image. That is, in FIG. 18, an object having a particularly remarkable effect is indicated by “◯”, an object whose effect can be clearly confirmed by the normal image correction is indicated by “Δ”, and an effect that is obvious with respect to the normal image correction. Items that cannot be confirmed are indicated by “□”.
図18に示すように、特徴領域として抽出した青空領域の平均輝度が160以上で、かつ、全体画像の平均輝度が140以下の領域範囲において、効果が大きいことを確認することができる。さらに、この範囲内においても特徴領域として抽出した青空領域の平均輝度と全体画像の平均輝度の差が大きいほど、効果がより大きいことを確認することができる。 As shown in FIG. 18, it can be confirmed that the effect is large in the region range in which the average luminance of the blue sky region extracted as the feature region is 160 or more and the average luminance of the entire image is 140 or less. Furthermore, even within this range, it can be confirmed that the effect is greater as the difference between the average luminance of the blue sky region extracted as the feature region and the average luminance of the entire image is larger.
また、図18に示すグラフにおいては明示されていないが、特徴領域として抽出した青空領域が全画像領域の30%を越えるような場合は影響が大きいと判断することができる。 Further, although not clearly shown in the graph shown in FIG. 18, it can be determined that the influence is large when the blue sky region extracted as the feature region exceeds 30% of the entire image region.
以下では、上述したような特性を鑑みて、特徴領域と画像全体の相関に基づく最適な補正方法について説明をする。尚、全体の処理の流れは、前述した第1の実施形態で使用した図1に示すフローチャートを用いる。但し、図1のフローチャートにおいて、ステップS102で対象となる特徴領域が主被写体となる人物肌を対象とするのではなく、非主被写体と設定される青空領域となる。 In the following, an optimum correction method based on the correlation between the feature region and the entire image will be described in view of the characteristics as described above. The overall processing flow uses the flowchart shown in FIG. 1 used in the first embodiment described above. However, in the flowchart of FIG. 1, the target feature area in step S102 is not the human skin that is the main subject, but a blue sky area that is set as a non-main subject.
図12は、第3の実施形態における特徴抽出処理手順の詳細を説明するためのフローチャートである。まず、ステップS101で取得された画像データに対して、JPEG画像の圧縮単位である8×8画素を単位とした色度比率と輝度及び面積の組み合わせによる青空領域候補のグループの検出処理を実行する(ステップS1201)。そして、ステップS1201において候補となるグループを検出できたか否かを判定する(ステップS1201)。 FIG. 12 is a flowchart for explaining details of a feature extraction processing procedure according to the third embodiment. First, a blue sky region candidate group detection process is performed on the image data acquired in step S101 by a combination of a chromaticity ratio, luminance, and area in units of 8 × 8 pixels, which are JPEG image compression units. (Step S1201). Then, it is determined whether or not a candidate group has been detected in step S1201 (step S1201).
その結果、検出に失敗した場合(No)は、青空領域の検出に失敗したことをセットする(ステップS1206)。具体的には、BS=「0000」というセットを行う。一方、検出に成功した場合(Yes)は、青空領域候補のグループに対して、予め設定して保存してある空間周波数特性の範囲に適合するか否かを判定する(ステップS1203)。そして、ステップS1203の判定処理によって青空領域候補のグループが青空領域と判断されたか否か(すなわち、検出に成功したか否か)を判定する(ステップS1204)。 As a result, if the detection fails (No), it is set that the detection of the blue sky region has failed (step S1206). Specifically, the setting BS = “0000” is performed. On the other hand, if the detection is successful (Yes), it is determined whether or not the group of blue sky region candidates matches the range of the spatial frequency characteristics set and stored in advance (step S1203). Then, it is determined whether or not the group of blue sky region candidates is determined to be a blue sky region by the determination processing in step S1203 (that is, whether or not the detection is successful) (step S1204).
そして判定の結果、青空領域でないと判定された場合(No)は、ステップS1206に移行して、青空領域の検出に失敗したことをセットする(BS=「0000」)。一方、青空領域であると判定された場合(Yes)は、青空領域の検出に成功したことをセットする(ステップS1205)。具体的には、BS=「1111」ろいうセットを行う。さらに、検出した特徴データを保存する。 As a result of the determination, if it is determined that the region is not a blue sky region (No), the process proceeds to step S1206 to set that the detection of the blue sky region has failed (BS = “0000”). On the other hand, if it is determined that the region is a blue sky region (Yes), the fact that the blue sky region has been successfully detected is set (step S1205). Specifically, a set BS = “1111” is performed. Further, the detected feature data is stored.
図13は、青空領域の検出に成功した(BS=「1111」画像を対象に行われる処理の手順を説明するためのフローチャートである。まず、BSが「1111」と判定した特徴領域データを取り込む(ステップS1301)。そして、特徴領域である青空領域データを反映した画像補正が、より効果が発揮することができる条件である全画像領域の平均輝度が140未満であるか否かを判定する(ステップS1302)。 FIG. 13 is a flowchart for explaining a procedure of processing performed on a blue sky area (BS = “1111” image as an object. First, feature area data determined by the BS as “1111” is captured. (Step S1301) Then, it is determined whether or not the average brightness of all the image areas, which is a condition that the image correction reflecting the blue sky area data as the characteristic area can be more effective, is less than 140 ( Step S1302).
その結果、全画像領域の平均輝度が140以上の場合(No)は、BSHへ「0000」をセットする(ステップS1303)。一方、全画像領域の平均輝度が140未満の場合(Yes)は、特徴領域である青空領域データを読み込む(ステップS1304)。そして、特徴領域である青空領域の平均輝度が160より大きいか否かを判定する(ステップS1305)。 As a result, when the average luminance of all the image areas is 140 or more (No), “0000” is set to BSH (step S1303). On the other hand, if the average luminance of all the image areas is less than 140 (Yes), the blue sky area data that is the characteristic area is read (step S1304). Then, it is determined whether or not the average luminance of the blue sky region that is the feature region is greater than 160 (step S1305).
その結果、上記青空領域の平均輝度が160以下の場合(No)は、ステップS1303に移行して、BSHへ「0000」をセットする。一方、青空領域の平均輝度が160より大きい場合(Yes)は、BSHへ「1000」をセットする(ステップS1306)。尚、BSH=「0000」がセットされた画像は、基本的にステップS105をスキップして、ステップS106において通常の画像補正を実行する。 As a result, when the average brightness of the blue sky area is 160 or less (No), the process proceeds to step S1303, and “0000” is set to BSH. On the other hand, when the average brightness of the blue sky region is larger than 160 (Yes), “1000” is set in BSH (step S1306). It should be noted that an image for which BSH = “0000” is set basically skips step S105 and executes normal image correction in step S106.
図14は、図13に示すフローチャートの処理でBSH=「1000」がセットされた画像を対象とした青空領域と全画像の平均輝度とを比較判定する処理を説明するためのフローチャートである。まず、特徴領域として抽出した青空領域の平均輝度と全画像の平均輝度の輝度差を算出し、その値が50を越えるか否かを判定する(ステップS1401)。その結果、算出した輝度差が50以下の場合(No)は、BSHへ「0000」をセットする(ステップS1402)。一方、算出した輝度差が50より大きいの場合(Yes)は、ステップS1403へ移行する。 FIG. 14 is a flowchart for explaining a process for comparing and determining the blue sky area and the average luminance of all the images for an image for which BSH = “1000” is set in the process of the flowchart shown in FIG. 13. First, a luminance difference between the average luminance of the blue sky region extracted as the feature region and the average luminance of all images is calculated, and it is determined whether or not the value exceeds 50 (step S1401). As a result, when the calculated luminance difference is 50 or less (No), “0000” is set in BSH (step S1402). On the other hand, if the calculated luminance difference is greater than 50 (Yes), the process proceeds to step S1403.
ステップS1403では、特徴領域として抽出した青空領域の平均輝度と全画像の平均輝度の輝度差を算出し、その値が80を越えるか否かを判定する。その結果、算出した輝度差が80以下の場合(No)は、BSHへ「1001」をセットする(ステップS1405)。一方、算出した輝度差が80より大きい場合(Yes)は、BSHへ「1010」をセットする(ステップS1404)。 In step S1403, a luminance difference between the average luminance of the blue sky region extracted as the feature region and the average luminance of all the images is calculated, and it is determined whether or not the value exceeds 80. As a result, when the calculated luminance difference is 80 or less (No), “1001” is set in the BSH (step S1405). On the other hand, if the calculated luminance difference is greater than 80 (Yes), “1010” is set in BSH (step S1404).
前述した検討結果より、特徴領域として抽出した青空領域の平均輝度と全画像の平均輝度の輝度差が大きいほど、特徴領域として抽出した青空領域を反映した画像補正が有効であることは確認済みであるため、この輝度差により補正への反映度を切り替える。 From the above examination results, it has been confirmed that the image correction reflecting the blue sky region extracted as the feature region is more effective as the difference between the average luminance of the blue sky region extracted as the feature region and the average luminance of all images increases. Therefore, the degree of reflection in the correction is switched based on this luminance difference.
その補正効果反映方法として、上述した実施形態で説明した輝度情報における階調補正テーブル作成を例に説明する。すなわち、判定結果のBSHに「1010」がセットされている場合において、補正目標値「NAVE」を設定する際に「AVE」の値として画像全体の輝度平均を用いるのではなく、全画像の中から特徴領域として抽出した青空領域を取り除いた輝度データを用いて、ここにおいての輝度平均を算出し、「AVE」へ入力する。このようにすることで、青空領域部分を取り除いた輝度特徴量を使用して目標値「NAVE」を設定する。これにより、図15に示される輝度補正目標値は、明るい方向へ補正目標を設定することができる。 As a method for reflecting the correction effect, a description will be given by taking as an example the creation of a gradation correction table in the luminance information described in the above embodiment. That is, when “1010” is set in the BSH of the determination result, the luminance average of the entire image is not used as the value of “AVE” when setting the correction target value “NAVE”, but in all the images. Using the luminance data obtained by removing the blue sky region extracted as the feature region from the image, the luminance average here is calculated and input to “AVE”. In this way, the target value “NAVE” is set using the luminance feature amount from which the blue sky region portion is removed. Thereby, the brightness correction target value shown in FIG. 15 can set the correction target in the bright direction.
また、その他の補正項目への反映としては、コントラスト補正において、全画像の中から特徴領域として抽出した青空領域を取り除いたヒストグラムを作成して、これに基づいてコントラスト補正目標値を設定する。 In addition, as a reflection to other correction items, in contrast correction, a histogram is created by removing a blue sky region extracted as a feature region from all images, and a contrast correction target value is set based on this.
すなわち、判定結果のBSHに「1001」がセットされている場合は、全画像の中から特徴領域として抽出した青空領域を取り除いた輝度データを用いて、ここにおいての輝度平均を算出し、「AVE」へ入力することで目標値「NAVE」を設定する。そして、「NAVE」と「AVE」の差分を算出し、差分に1未満の定数を乗算したものを算出した「NAVE」より減算したものを目標値「NAVE」として使用する。 That is, when “1001” is set in the BSH of the determination result, the luminance average is calculated using luminance data obtained by removing the blue sky region extracted as a feature region from all the images, and “AVE” is calculated. ”To set the target value“ NAVE ”. Then, a difference between “NAVE” and “AVE” is calculated, and a value obtained by multiplying the difference by a constant less than 1 is subtracted from the calculated “NAVE”, and the target value “NAVE” is used.
このようにして求めた輝度補正目標値「NAVE」を使用して階調補正用変換テーブルを作成し、原画像に対して画像補正を実行する。また、特徴領域として抽出した青空領域の全画像に占める面積比率による効果を重みとして乗算した補正目標を設定しても良い。 A gradation correction conversion table is created using the brightness correction target value “NAVE” obtained in this way, and image correction is performed on the original image. In addition, a correction target may be set by multiplying the effect of the area ratio of the blue sky region extracted as the feature region in the entire image as a weight.
図45は、図37に示す撮影画像に対して第3の実施形態に係る補正処理を施した結果得られる画像を示す図である。図37と図45とを比較することによって、非主被写体である特徴領域の青空の重みを軽減したことで、撮影画像の観察者が注目する領域を中心とした画質が向上していることがわかる。 FIG. 45 is a diagram illustrating an image obtained as a result of performing the correction process according to the third embodiment on the captured image illustrated in FIG. 37. By comparing FIG. 37 with FIG. 45, the weight of the blue sky in the feature area that is a non-main subject is reduced, and the image quality centered on the area that the observer of the captured image focuses is improved. Recognize.
また、図43は、図37に示す撮影画像から特徴領域として抽出した青空領域のデータを削除した後の輝度ヒストグラムを示す図である。そして、このデータに対して補正目標値を設定して補正を実行する。図44は、図37に示す撮影画像を補正した図45に示す画像の輝度ヒストグラムを示す図である。図44に示すように、ヒストグラムの横軸は輝度を256階調で表して、0〜255の幅で与えられており、左端が0で、右端が255となっている。図44に示すヒストグラムから、平均輝度が105であって、特に主被写体領域の輝度が大幅に改善したことで、本実施形態に係る補正処理によって良好な状態になっていることを確認することができる。 FIG. 43 is a diagram showing a luminance histogram after the data of the blue sky region extracted as the feature region from the photographed image shown in FIG. 37 is deleted. Then, a correction target value is set for this data and correction is executed. 44 is a diagram showing a luminance histogram of the image shown in FIG. 45 obtained by correcting the photographed image shown in FIG. As shown in FIG. 44, the horizontal axis of the histogram represents luminance in 256 gradations and is given by a width of 0 to 255, with the left end being 0 and the right end being 255. From the histogram shown in FIG. 44, it can be confirmed that the average brightness is 105, and particularly that the brightness of the main subject region has been greatly improved, so that the correction process according to the present embodiment is in a good state. it can.
上述したように、本実施形態では、非主被写体領域より主被写体領域への画質向上化を目指した補正であって階調への反映方法を示したが、その他の補正項目であるコントラストやホワイトバランス等に関しても同様にして適用することが可能である。 As described above, in the present embodiment, correction is aimed at improving the image quality from the non-main subject region to the main subject region, and the reflection method to the gradation is shown. However, other correction items such as contrast and white The same applies to balance and the like.
<第4の実施形態>
第4の実施形態では、前述した実施形態と同じハードウェア構成を用いて、画像に対する特徴領域の抽出対象を複数個設定した場合における特徴領域と全画像との相関による画像補正方法に関して説明する。
<Fourth Embodiment>
In the fourth embodiment, an image correction method based on the correlation between feature areas and all images when a plurality of feature area extraction targets for images are set using the same hardware configuration as that of the above-described embodiment will be described.
画像に対する特徴領域の抽出においては、その特徴領域に指定される対象により、画像における主被写体と非主被写体に分類することができる。ここで、特徴領域が主被写体である場合は、その検出した特徴領域をより良い画質になり得るように画像補正を行う必要がある。一方、特徴領域が非主被写体である場合は、検出した特徴領域が画像における主被写体部分の撮影状態に悪影響を与えていないか評価を行い、必要に応じて検出した特徴領域以外に対して高画質化のための補正を実行する必要がある。 In the extraction of the feature region for the image, the main subject and the non-main subject in the image can be classified according to the target specified in the feature region. Here, when the feature region is the main subject, it is necessary to perform image correction so that the detected feature region can have better image quality. On the other hand, if the feature area is a non-main subject, it is evaluated whether the detected feature area has an adverse effect on the shooting state of the main subject portion in the image. It is necessary to execute correction for improving image quality.
そこで、検出した特徴領域を判断し、主被写体か非主被写体かの判定、及び、特徴領域を反映した補正が有効であるか否かの判定を行い、その結果に伴って補正を行う。これにより、使用者が求める個別画像の最適化を行うことが可能となる。 Therefore, the detected feature area is determined, it is determined whether the subject is a main subject or a non-main subject, and whether or not the correction reflecting the feature area is effective, and correction is performed according to the result. Thereby, it is possible to optimize the individual image required by the user.
次に、本実施形態に係る補正処理について説明する。尚、ハードウェア構成が前述した実施形態と同じであるため重複する説明は省略する。図19は、第4の実施形態における人物肌領域と青空領域を検出対象とした露出補正を行う処理手順を説明するためのフローチャートである。 Next, correction processing according to the present embodiment will be described. Since the hardware configuration is the same as that of the above-described embodiment, a duplicate description is omitted. FIG. 19 is a flowchart for explaining a processing procedure for performing exposure correction with a human skin region and a blue sky region as detection targets in the fourth embodiment.
まず、原画像に対して特徴領域を主被写体である人物の肌の部分として領域の検出処理を行う(ステップS1901)。次いで、特徴領域である主被写体である人物の肌の検出に成功したか否かの判定を行う(ステップS1902)。その結果、特徴領域として人物肌の候補が検出された場合(No)は、検出された特徴領域を主被写体としてセットする(ステップS1903)。そして、第1、第2の実施形態で説明したように、特徴領域抽出した最終の人物肌候補に対して露出最適化処理を実行する(ステップS1904)。 First, a region detection process is performed on the original image using the feature region as the skin portion of the person who is the main subject (step S1901). Next, it is determined whether or not the detection of the skin of the person who is the main subject, which is the feature area, has succeeded (step S1902). As a result, when a human skin candidate is detected as the feature area (No), the detected feature area is set as the main subject (step S1903). Then, as described in the first and second embodiments, the exposure optimization process is performed on the final human skin candidate extracted from the feature region (step S1904).
一方、ステップS1902において、特徴領域として人物肌の候補が非検出の場合(No)は、原画像に対して特徴領域を非主被写体である青空とした検出処理を行う(ステップS1905)。そして、特徴領域である非主被写体である青空の検出に成功したか判定を行う(ステップS1906)。その結果、特徴領域として青空の候補が検出された場合(Yes)は、検出された特徴領域を非主被写体としてセットする(ステップS1907)。次いで、第3の実施形態で説明したように、特徴領域抽出した最終の青空候補の影響度を判定して、必要に応じて領域外部分に対して露出最適化処理を実行する(ステップS1908)。 On the other hand, if the candidate for human skin is not detected as a feature area in step S1902 (No), a detection process is performed on the original image with the feature area as a non-main subject blue sky (step S1905). Then, it is determined whether the blue sky that is the non-main subject that is the feature region has been successfully detected (step S1906). As a result, when a blue sky candidate is detected as a feature region (Yes), the detected feature region is set as a non-main subject (step S1907). Next, as described in the third embodiment, the influence degree of the final blue sky candidate extracted from the feature region is determined, and the exposure optimization process is performed on the outside region as necessary (step S1908). .
一方、ステップS1906において、特徴領域として青空の候補が非検出の場合(No)は、特徴領域データを反映しない通常の露出補正処理を含む画像補正処理を実行する(ステップS1909)。 On the other hand, if a blue sky candidate is not detected as a feature area in step S1906 (No), image correction processing including normal exposure correction processing that does not reflect feature area data is executed (step S1909).
尚、上述した実施形態においては、画像補正において露出補正について反映する方法について説明したが、これは露出補正だけに限定することではない。また、主被写体と非主被写体との特徴領域の設定がそれぞれ1個であったが、複数存在した重み付け等を行うことで成り立つものと考える。さらに、本実施形態では、検出後に主被写体と非主被写体を分けて効果補正を設定した例について説明したが、設定したすべての特徴領域を検出して、その値を反映するようにしても良い
<第5の実施形態>
第5の実施形態としては、前述した実施形態と同じハードウェア構成を用いて、画像に対する特徴領域の抽出対象が登録した個人の顔情報に対して行い、特徴領域と全画像との相関による画像補正について行われる。
In the above-described embodiment, the method of reflecting the exposure correction in the image correction has been described. However, this is not limited to the exposure correction. In addition, although there is one feature area setting for each of the main subject and the non-main subject, it is considered that this is achieved by performing a plurality of weights and the like. Furthermore, in the present embodiment, the example in which the effect correction is set separately for the main subject and the non-main subject after detection has been described. However, all the set feature regions may be detected and the values may be reflected. <Fifth Embodiment>
In the fifth embodiment, the same hardware configuration as that of the above-described embodiment is used for the personal face information registered by the extraction target of the feature region for the image, and the image is based on the correlation between the feature region and the entire image. The correction is made.
次に、本実施形態に係る補正処理について説明する。尚、ハードウェア構成が前述した実施形態と同じであるため重複する説明は省略する。図20は、第5の実施形態に係る個人登録情報を検出対象とした露出補正を行うためのフローチャートである。 Next, correction processing according to the present embodiment will be described. Since the hardware configuration is the same as that of the above-described embodiment, a duplicate description is omitted. FIG. 20 is a flowchart for performing exposure correction using the personal registration information according to the fifth embodiment as a detection target.
まず、前述した実施形態における特徴領域を人物肌とした抽出結果として、最終候補の人物肌領域が抽出できたか否かを、HMのセット値が「1111」であるか否かで判別する(ステップS2001)。その結果、HM=「1111」でない場合(No)は、特徴領域データを反映しない通常の露出補正処理を含む画像補正処理を実行する。 First, it is determined whether or not the final candidate person skin area has been extracted as an extraction result with the feature area in the above-described embodiment as human skin, based on whether or not the HM set value is “1111” (step 11). S2001). As a result, when HM = “1111” is not satisfied (No), an image correction process including a normal exposure correction process that does not reflect the feature area data is executed.
一方、HMが「1111」である場合(Yes)は、個人を特定した画像設定があるかどうかの登録状態を確認する(ステップS2002)。その結果、個人登録がない場合(No)は、第2、第4の実施形態で実施した特徴領域としての人物肌領への最適化露出補正テーブルを作成する(ステップS2006)。一方、個人登録が存在する場合(Yes)は、登録されている個人認識の情報(設定値)と、登録した個人ごとに設定されている補正目標値(目標値)とを読み込む(ステップS2003)。 On the other hand, if the HM is “1111” (Yes), the registration status as to whether or not there is an image setting specifying an individual is confirmed (step S2002). As a result, when there is no personal registration (No), an optimized exposure correction table for a human skin as a feature region implemented in the second and fourth embodiments is created (step S2006). On the other hand, if there is a personal registration (Yes), the registered personal recognition information (setting value) and the corrected target value (target value) set for each registered individual are read (step S2003). .
さらに、ステップS2003で読み込んだ個人判別登録データより画像認識を実行し、登録した個人の顔が原画像に存在するか否かの判定を行う(ステップS2004)。その結果、登録されていた個人が検出できなかった場合(No)は、ステップS2006へ移行して、第2、第4の実施形態で実施した特徴領域としての人物肌領への最適化露出補正テーブルを作成する。 Further, image recognition is executed from the individual discrimination registration data read in step S2003, and it is determined whether or not the registered individual's face exists in the original image (step S2004). As a result, when the registered individual cannot be detected (No), the process proceeds to step S2006, and the optimized exposure correction to the human skin area as the characteristic area performed in the second and fourth embodiments. Create a table.
一方、ステップS2004で、登録されていた個人が検出できた場合(Yes)は、先に読み込んだ登録した個人ごとに設定して、ある補正目標値より該当する個人目標を読み込んで露出補正テーブルを作成する(ステップS2005)。 On the other hand, if a registered individual can be detected in step S2004 (Yes), it is set for each registered individual that has been read first, and the corresponding personal target is read from a certain correction target value, and the exposure correction table is read. Create (step S2005).
そして、上述した処理手順に従って作成された露出補正テーブルを利用して、個人の好みに合わせた登録個人に対して、思考を満足させる画像補正を実行する。 Then, using the exposure correction table created in accordance with the above-described processing procedure, image correction that satisfies the thought is executed for the registered individual according to personal preference.
<その他の実施形態>
以上、実施形態例を詳述したが、本発明は、例えば、システム、装置、方法、プログラム若しくは記憶媒体(記録媒体)等としての実施態様をとることが可能であり、具体的には、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。
<Other embodiments>
Although the embodiments have been described in detail above, the present invention can take embodiments as, for example, a system, an apparatus, a method, a program, or a storage medium (recording medium). The present invention may be applied to a system composed of a single device or an apparatus composed of a single device.
尚、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラム(実施形態では図に示すフローチャートに対応したプログラム)を、システムあるいは装置に直接あるいは遠隔から供給し、そのシステムあるいは装置のコンピュータが該供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。 In the present invention, a software program (in the embodiment, a program corresponding to the flowchart shown in the figure) that realizes the functions of the above-described embodiment is directly or remotely supplied to the system or apparatus, and the computer of the system or apparatus Is also achieved by reading and executing the supplied program code.
従って、本発明の機能処理をコンピュータで実現するために、該コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。 Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等の形態であっても良い。 In that case, as long as it has the function of a program, it may be in the form of object code, a program executed by an interpreter, script data supplied to the OS, or the like.
プログラムを供給するための記録媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。 As a recording medium for supplying the program, for example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card ROM, DVD (DVD-ROM, DVD-R) and the like.
その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続し、該ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。 As another program supply method, a client computer browser is used to connect to an Internet homepage, and the computer program of the present invention itself or a compressed file including an automatic installation function is downloaded from the homepage to a recording medium such as a hard disk. Can also be supplied. It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.
また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせ、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。 In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. It is also possible to execute the encrypted program by using the key information and install the program on a computer.
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行い、その処理によっても前述した実施形態の機能が実現され得る。 In addition to the functions of the above-described embodiments being realized by the computer executing the read program, the OS running on the computer based on the instruction of the program is a part of the actual processing. Alternatively, the functions of the above-described embodiment can be realized by performing all of them and performing the processing.
さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によっても前述した実施形態の機能が実現される。 Furthermore, after the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion board or The CPU or the like provided in the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
Claims (13)
色度に基づき、前記画像中の人物の肌領域を抽出する抽出工程と、
前記画像の輝度値を解析して、前記画像全体の平均輝度値を算出する第1の解析工程と、
前記抽出工程によって抽出された肌領域に含まれる画素の輝度値に基づいて前記肌領域の平均輝度値を算出する第2の解析工程と、
前記画像全体の平均輝度値と前記肌領域の平均輝度値とに基づいて補正係数を決定し、前記肌領域の平均輝度値に前記補正係数を乗算することで前記肌領域の補正後の輝度値を算出する算出工程と、
前記算出工程の算出結果に基づいて、前記肌領域の平均輝度値が前記肌領域の補正後の輝度値に変換される階調補正テーブルを作成するテーブル作成工程と、
前記作成された階調補正テーブルを使用して、前記画像の輝度を補正する補正工程と
を有することを特徴とする画像処理方法。 An acquisition process for acquiring images;
An extraction step of extracting a human skin region in the image based on chromaticity ;
By analyzing the luminance value of the image, a first analysis step of calculating an average luminance value of the entire image,
A second analysis step of calculating an average luminance value of the skin region based on a luminance value of a pixel included in the skin region extracted by the extraction step;
A correction coefficient is determined based on the average luminance value of the entire image and the average luminance value of the skin area, and the luminance value after correction of the skin area is obtained by multiplying the average luminance value of the skin area by the correction coefficient. A calculation step of calculating
Based on the calculation result of the calculation step, a table creation step of creating a gradation correction table in which an average luminance value of the skin region is converted into a luminance value after correction of the skin region ;
And a correction step of correcting the luminance of the image using the created gradation correction table.
前記算出工程は、前記判定工程により前記肌領域の平均輝度値を利用する補正を行うと判定された場合、前記画像全体の平均輝度値と前記肌領域の平均輝度値とに基づいて前記肌領域の補正後の輝度値を算出する
ことを特徴とする請求項1に記載の画像処理方法。 A determination step of determining whether or not to perform correction using the average luminance value of the skin region as compared with a preset spatial frequency characteristic ;
The calculating step, the determination if it is determined to perform the correction using an average brightness value of the skin area by step, the skin area based on the average luminance value of the entire image and the average luminance value of the skin area The image processing method according to claim 1 , further comprising: calculating a corrected luminance value .
前記算出工程は、前記判定工程により前記肌領域の平均輝度値を利用する補正を行うと判定された場合、前記画像全体の平均輝度値と前記肌領域の平均輝度値とに基づいて前記肌領域の補正後の輝度値を算出し、かつ、前記肌領域の平均輝度値から輝度分布情報に基づいて前記肌領域における階調数を確保すべき範囲を設定し、
前記テーブル作成工程が、前記肌領域の平均輝度値が前記肌領域の補正後の輝度値に変換される階調補正テーブルであって、前記階調を確保すべき範囲内では階調数を減少させることのない特性を有する階調補正テーブルを作成する
ことを特徴とする請求項1に記載の画像処理方法。 A determination step of determining whether or not to perform correction using the average luminance value of the skin region as compared with the preset spatial frequency characteristics ;
The calculating step, the determination if it is determined to perform the correction using an average brightness value of the skin area by step, the skin area based on the average luminance value of the entire image and the average luminance value of the skin area Calculating a luminance value after correction , and setting a range in which the number of gradations in the skin region should be secured based on luminance distribution information from the average luminance value of the skin region,
The table creation step is a gradation correction table in which an average luminance value of the skin area is converted into a luminance value after correction of the skin area, and the number of gradations is reduced within a range where the gradation should be secured. The image processing method according to claim 1 , wherein a gradation correction table having characteristics that are not generated is created.
予め設定された空間周波数特性と比較して、前記背景領域の平均輝度値を利用する補正を行うか否かを判定する判定工程とをさらに有し、
前記算出工程は、前記判定工程により前記背景領域の平均輝度値を利用する補正を行うと判定された場合、前記画像全体の平均輝度値と前記背景領域の平均輝度値とに基づいて、前記画像の補正時における前記背景領域の影響度を加味した前記画像全体の補正後の輝度値を算出する
ことを特徴とする請求項1に記載の画像処理方法。 A background region extraction step of extracting a background region in the image ;
A determination step of determining whether or not to perform correction using the average luminance value of the background region as compared with a preset spatial frequency characteristic;
In the calculation step, when it is determined that the correction using the average luminance value of the background region is performed by the determination step, the image is based on the average luminance value of the entire image and the average luminance value of the background region. The image processing method according to claim 1, further comprising: calculating a corrected luminance value of the entire image in consideration of an influence degree of the background region at the time of correction.
色度に基づき、前記画像中の人物の肌領域を抽出する抽出手段と、
前記画像の輝度値を解析して、前記画像全体の平均輝度値を算出する第1の解析手段と、
前記抽出手段によって抽出された肌領域に含まれる画素の輝度値に基づいて前記肌領域の平均輝度値を算出する第2の解析手段と、
前記画像全体の平均輝度値と前記肌領域の平均輝度値とに基づいて補正係数を決定し、前記肌領域の平均輝度値に前記補正係数を乗算することで前記肌領域の補正後の輝度値を算出する算出手段と、
前記算出手段の算出結果に基づいて、前記肌領域の平均輝度値が前記肌領域の補正後の輝度値に変換される階調補正テーブルを作成するテーブル作成手段と、
前記作成された階調補正テーブルを使用して前記画像の輝度を補正する補正手段と
を備えることを特徴とする画像処理装置。 An acquisition means for acquiring an image;
Extraction means for extracting a skin area of a person in the image based on chromaticity ;
By analyzing the luminance value of the image, a first analyzing means for calculating an average luminance value of the entire image,
A second analysis unit that calculates an average luminance value of the skin region based on a luminance value of a pixel included in the skin region extracted by the extraction unit;
A correction coefficient is determined based on the average luminance value of the entire image and the average luminance value of the skin area, and the luminance value after correction of the skin area is obtained by multiplying the average luminance value of the skin area by the correction coefficient. Calculating means for calculating
Table creation means for creating a gradation correction table in which an average luminance value of the skin area is converted into a luminance value after correction of the skin area based on a calculation result of the calculation means;
The image processing apparatus characterized by using the tone correction table created in the above and a correcting means for correcting the luminance of the image.
前記算出手段は、前記判定手段により前記肌領域の平均輝度値を利用する補正を行うと判定された場合、前記画像全体の平均輝度値と前記肌領域の平均輝度値とに基づいて前記肌領域の補正後の輝度値を算出する
ことを特徴とする請求項8に記載の画像処理装置。 A determination means for determining whether or not to perform correction using the average luminance value of the skin region as compared with a preset spatial frequency characteristic ;
The calculating means, the case where it is determined that correction is performed using the average luminance value of the skin area by the determination unit, the skin area based on the average luminance value of the entire image and the average luminance value of the skin area The image processing apparatus according to claim 8, wherein the corrected luminance value is calculated .
前記算出手段は、前記判定手段により前記肌領域の平均輝度値を利用する補正を行うと判定された場合、前記画像全体の平均輝度値と前記肌領域の平均輝度値とに基づいて前記肌領域の補正後の輝度値を算出し、かつ、前記肌領域の平均輝度値から輝度分布情報に基づいて前記肌領域における階調数を確保すべき範囲を設定し、
前記テーブル作成手段が、前記補正目標値の前後で異なる特性を有する階調補正テーブルであって、前記階調を確保すべき範囲内では階調数を減少させることのない特性を有する階調補正テーブルを作成する
ことを特徴とする請求項8に記載の画像処理装置。 A determination means for determining whether or not to perform correction using the average luminance value of the skin region as compared with a preset spatial frequency characteristic ;
The calculating means, the case where it is determined that correction is performed using the average luminance value of the skin area by the determination unit, the skin area based on the average luminance value of the entire image and the average luminance value of the skin area Calculating a luminance value after correction , and setting a range in which the number of gradations in the skin region should be secured based on luminance distribution information from the average luminance value of the skin region,
The table creation means is a gradation correction table having different characteristics before and after the correction target value, and has a characteristic that does not reduce the number of gradations within a range where the gradation should be secured. The image processing apparatus according to claim 8, wherein a table is created.
予め設定された空間周波数特性と比較して、前記背景領域の平均輝度値を利用する補正を行うか否かを判定する判定手段とをさらに有し、
前記算出手段は、前記判定手段により前記背景領域の平均輝度値を利用する補正を行うと判定された場合、前記画像全体の平均輝度値と前記背景領域の平均輝度値とに基づいて、前記画像の補正時における前記背景領域の影響度を加味した前記画像全体の補正後の輝度値を算出する
ことを特徴とする請求項8に記載の画像処理装置。 Background area extraction means for extracting a background area in the image;
Determination means for determining whether or not to perform correction using the average luminance value of the background region as compared with a preset spatial frequency characteristic ;
When the determination unit determines that correction using the average luminance value of the background region is performed by the determination unit, the calculation unit calculates the image based on the average luminance value of the entire image and the average luminance value of the background region. The image processing apparatus according to claim 8, wherein a luminance value after correction of the entire image is calculated in consideration of an influence degree of the background region at the time of correction.
画像を取得する取得手段と、
色度に基づき、前記画像中の人物の肌領域を抽出する抽出手段と、
前記画像の輝度値を解析して、前記画像全体の平均輝度値を算出する第1の解析手段と、
前記抽出手段によって抽出された肌領域に含まれる画素の輝度値に基づいて前記肌領域の平均輝度値を算出する第2の解析手段と、
前記画像全体の平均輝度値と前記肌領域の平均輝度値とに基づいて補正係数を決定し、前記肌領域の平均輝度値に前記補正係数を乗算することで前記肌領域の補正後の輝度値を算出する算出手段と、
前記算出手段の算出結果に基づいて、前記肌領域の平均輝度値が前記肌領域の補正後の輝度値に変換される階調補正テーブルを作成するテーブル作成手段と、
前記作成された階調補正テーブルを使用して前記画像の輝度を補正する補正手段と
を実行させるためのプログラム。 On the computer,
An acquisition means for acquiring an image;
Extraction means for extracting a skin area of a person in the image based on chromaticity ;
By analyzing the luminance value of the image, a first analyzing means for calculating an average luminance value of the entire image,
A second analysis unit that calculates an average luminance value of the skin region based on a luminance value of a pixel included in the skin region extracted by the extraction unit;
A correction coefficient is determined based on the average luminance value of the entire image and the average luminance value of the skin area, and the luminance value after correction of the skin area is obtained by multiplying the average luminance value of the skin area by the correction coefficient. Calculating means for calculating
Table creation means for creating a gradation correction table in which an average luminance value of the skin area is converted into a luminance value after correction of the skin area based on a calculation result of the calculation means;
Program for executing a correcting means for correcting the luminance of the image by using the gradation correction table created in the above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004194285A JP4307341B2 (en) | 2004-06-30 | 2004-06-30 | Image processing method and image processing apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004194285A JP4307341B2 (en) | 2004-06-30 | 2004-06-30 | Image processing method and image processing apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006019928A JP2006019928A (en) | 2006-01-19 |
| JP4307341B2 true JP4307341B2 (en) | 2009-08-05 |
Family
ID=35793782
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2004194285A Expired - Fee Related JP4307341B2 (en) | 2004-06-30 | 2004-06-30 | Image processing method and image processing apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4307341B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3627440A4 (en) * | 2017-06-16 | 2020-03-25 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | IMAGE PROCESSING METHOD AND APPARATUS, AND TERMINAL |
Families Citing this family (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007201655A (en) * | 2006-01-25 | 2007-08-09 | Noritsu Koki Co Ltd | Image processing device |
| US7999863B2 (en) | 2006-02-01 | 2011-08-16 | Fujifilm Corporation | Image correction apparatus and method |
| JP4895839B2 (en) * | 2006-02-01 | 2012-03-14 | 富士フイルム株式会社 | Image correction apparatus and method |
| JP4752773B2 (en) * | 2006-02-22 | 2011-08-17 | 日本ビクター株式会社 | Image processing apparatus and image processing method |
| JP4788393B2 (en) * | 2006-02-24 | 2011-10-05 | セイコーエプソン株式会社 | Image processing apparatus, image processing method, and image processing program |
| JP4788394B2 (en) * | 2006-02-24 | 2011-10-05 | セイコーエプソン株式会社 | Image processing apparatus, image processing method, and image processing program |
| JP4830652B2 (en) * | 2006-06-12 | 2011-12-07 | 日産自動車株式会社 | Image processing apparatus and image processing method |
| JP4244063B2 (en) | 2006-11-06 | 2009-03-25 | ソニー株式会社 | Image processing apparatus, image processing method, and program |
| JP2008160704A (en) * | 2006-12-26 | 2008-07-10 | Noritsu Koki Co Ltd | Density correction curve generation method and density correction curve generation module |
| JP4979090B2 (en) * | 2008-08-19 | 2012-07-18 | 株式会社リコー | Image processing apparatus, image processing method, program, and recording medium |
| KR100998220B1 (en) | 2009-02-12 | 2010-12-03 | 고려대학교 산학협력단 | Adaptive image scaling |
| JP5754959B2 (en) * | 2011-02-01 | 2015-07-29 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
| US8554011B2 (en) * | 2011-06-07 | 2013-10-08 | Microsoft Corporation | Automatic exposure correction of images |
| JP7197210B2 (en) * | 2021-02-26 | 2022-12-27 | Necプラットフォームズ株式会社 | Image correction system, image correction method, and program |
-
2004
- 2004-06-30 JP JP2004194285A patent/JP4307341B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3627440A4 (en) * | 2017-06-16 | 2020-03-25 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | IMAGE PROCESSING METHOD AND APPARATUS, AND TERMINAL |
| US11151700B2 (en) | 2017-06-16 | 2021-10-19 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Image processing method, terminal, and non-transitory computer-readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2006019928A (en) | 2006-01-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4307341B2 (en) | Image processing method and image processing apparatus | |
| CN103002225B (en) | Multiple exposure high dynamic range image capture | |
| US9852499B2 (en) | Automatic selection of optimum algorithms for high dynamic range image processing based on scene classification | |
| US7358994B2 (en) | Image processing apparatus, image processing method, recording medium thereof, and program thereof | |
| CN109997351B (en) | Method and apparatus for generating high dynamic range images | |
| US8917949B2 (en) | Image processing apparatus, image processing method, and recording medium | |
| US20200057901A1 (en) | Image analysis and processing pipeline with real-time feedback and autocapture capabilities, and visualization and configuration system | |
| WO2008073854A1 (en) | Robust feature extraction for color and grayscale images | |
| KR20050074254A (en) | Image processing apparatus, image processing method and program product therefore | |
| JP5381565B2 (en) | Image processing apparatus, image processing program, and image processing method | |
| WO2008102296A2 (en) | Method for enhancing the depth sensation of an image | |
| JP6690125B2 (en) | Image processing device and program | |
| JPH10302061A (en) | Digital processing method combining color cast removal and contrast enhancement of digital color image | |
| JP2000099717A (en) | Image quality adjustment device, image quality adjustment method, and recording medium storing image adjustment program | |
| JP4018524B2 (en) | Image processing method, apparatus, and program | |
| US8761532B2 (en) | Method and system for the selective application of automatic image enhancement to digital images | |
| JP2005346474A (en) | Image processing method and apparatus, program, and storage medium | |
| JP7337557B2 (en) | Information processing device, system, information processing method and program | |
| JP4522229B2 (en) | Image processing method and apparatus | |
| JP4219577B2 (en) | Image processing apparatus, image output apparatus, image processing method, and storage medium | |
| JP6627530B2 (en) | Image processing device and program | |
| JP2006133874A (en) | Image processing method and apparatus | |
| JP4448018B2 (en) | Image processing apparatus and method, and program | |
| CN113988957A (en) | Automatic image scoring method and system based on element recognition | |
| JP4869323B2 (en) | Image processing apparatus and image processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070702 |
|
| RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20070702 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080827 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080919 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20081118 |
|
| 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: 20090417 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090428 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120515 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120515 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130515 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140515 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |