JP2006092133A - Image processing method, image processor, imaging device and image processing program - Google Patents
Image processing method, image processor, imaging device and image processing program Download PDFInfo
- Publication number
- JP2006092133A JP2006092133A JP2004275212A JP2004275212A JP2006092133A JP 2006092133 A JP2006092133 A JP 2006092133A JP 2004275212 A JP2004275212 A JP 2004275212A JP 2004275212 A JP2004275212 A JP 2004275212A JP 2006092133 A JP2006092133 A JP 2006092133A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- calculating
- brightness
- calculated
- index
- 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.)
- Pending
Links
- 238000003384 imaging method Methods 0.000 title claims description 128
- 238000003672 processing method Methods 0.000 title claims description 49
- 238000000034 method Methods 0.000 claims abstract description 276
- 238000012545 processing Methods 0.000 claims abstract description 247
- 238000006243 chemical reaction Methods 0.000 claims abstract description 152
- 238000009826 distribution Methods 0.000 claims abstract description 61
- 238000004364 calculation method Methods 0.000 claims description 217
- 230000001186 cumulative effect Effects 0.000 claims description 44
- 230000014509 gene expression Effects 0.000 claims description 44
- 230000008569 process Effects 0.000 claims description 40
- 230000006870 function Effects 0.000 description 68
- 238000012937 correction Methods 0.000 description 38
- 238000004891 communication Methods 0.000 description 13
- 238000010606 normalization Methods 0.000 description 9
- 230000003287 optical effect Effects 0.000 description 9
- 238000012546 transfer Methods 0.000 description 9
- 239000000463 material Substances 0.000 description 8
- 238000004458 analytical method Methods 0.000 description 6
- 238000003860 storage Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 4
- 230000006835 compression Effects 0.000 description 4
- 238000007906 compression Methods 0.000 description 4
- 230000015572 biosynthetic process Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000011156 evaluation Methods 0.000 description 3
- 238000011068 loading method Methods 0.000 description 3
- 238000000611 regression analysis Methods 0.000 description 3
- 239000000428 dust Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- GGCZERPQGJTIQP-UHFFFAOYSA-N sodium;9,10-dioxoanthracene-2-sulfonic acid Chemical compound [Na+].C1=CC=C2C(=O)C3=CC(S(=O)(=O)O)=CC=C3C(=O)C2=C1 GGCZERPQGJTIQP-UHFFFAOYSA-N 0.000 description 2
- 230000001629 suppression Effects 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 241000723369 Cocculus trilobus Species 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007935 neutral effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 235000012736 patent blue V Nutrition 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000005092 sublimation method Methods 0.000 description 1
- WFKWXMTUELFFGS-UHFFFAOYSA-N tungsten Chemical compound [W] WFKWXMTUELFFGS-UHFFFAOYSA-N 0.000 description 1
- 229910052721 tungsten Inorganic materials 0.000 description 1
- 239000010937 tungsten Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/46—Colour picture communication systems
- H04N1/56—Processing of colour picture signals
- H04N1/60—Colour correction or control
- H04N1/6083—Colour correction or control controlled by factors external to the apparatus
- H04N1/6086—Colour correction or control controlled by factors external to the apparatus by scene illuminant, i.e. conditions at the time of picture capture, e.g. flash, optical filter used, evening, cloud, daylight, artificial lighting, white point measurement, colour temperature
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
- G06T5/92—Dynamic range modification of images or parts thereof based on global image properties
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
Description
本発明は、画像処理方法、画像処理装置、撮像装置及び画像処理プログラムに関する。 The present invention relates to an image processing method, an image processing apparatus, an imaging apparatus, and an image processing program.
従来、フィルムスキャン画像やデジタルカメラ画像の輝度補正は、画像全体の平均輝度をユーザが希望する値へと補正することで行われていた。また通常の撮影では、順光、逆光、ストロボ等の光源条件が様々に変動し、画像中に輝度の偏りの大きい大面積の領域が生じるため、平均輝度の補正に加えて、判別分析、重回帰分析により算出される値を用いた追加補正が必要であった。しかしながら、判別回帰分析方法では、ストロボシーン及び逆光シーンから算出されるパラメータが非常に類似しているため、撮影条件(撮影シーン)の判別が困難であるという問題があった。 Conventionally, the brightness correction of a film scan image or a digital camera image has been performed by correcting the average brightness of the entire image to a value desired by the user. In normal shooting, the light source conditions such as forward light, backlight, and strobe light fluctuate in various ways, resulting in a large area with a large luminance deviation in the image. Additional correction using values calculated by regression analysis was necessary. However, the discriminant regression analysis method has a problem that it is difficult to discriminate shooting conditions (shooting scenes) because the parameters calculated from the strobe scene and the backlight scene are very similar.
特許文献1には、判別回帰分析方法に代わる追加補正値の算出方法が開示されている。特許文献1に記載の方法は、輝度の累積画素数(頻度数)を示す輝度ヒストグラムから、高輝度領域と抵輝度領域を削除し、更に、頻度数を制限したものを用いて、輝度の平均値を算出し、この平均値と基準輝度との差分を補正値として求めるものである。
また、特許文献2には、顔領域の抽出精度を補償するために、撮影時の光源状態の判別を行う方法が記載されている。特許文献2に記載の方法は、まず、顔候補領域を抽出し、抽出した顔候補領域の平均輝度の画像全体に対する偏りを算出し、偏倚量が大きい場合、撮影条件(逆光撮影かストロボ近接撮影か)の判別を行い、顔領域としての判断基準の許容幅を調整する。特許文献2には、顔候補領域の抽出方法として、特開平6−67320号公報に記載の、色相と彩度の2次元ヒストグラムを用いる方法、特開平8−122944号公報、特開平8−184925号公報及び特開平9−138471号公報に記載のパターンマッチング、パターン検索方法などが引用されている。
また、特許文献2には、顔以外の背景領域除去方法としては、特開平8−122944号公報及び特開平8−184925号公報に記載の、直線部分の比率、線対象性、画面外縁との接触率、濃度コントラスト、濃度変化のパターンや周期性を用いて判別する方法が引用されている。撮影条件の判別には、濃度の1次元ヒストグラムを用いる方法が記載されている。この方法は、逆光の場合は顔領域が暗く背景領域が明るい、ストロボ近接撮影の場合は顔領域が明るく背景領域が暗いという経験則に基づいている。
しかしながら、特許文献1に記載の技術は、逆光シーン、ストロボシーンでの輝度の偏りの大きい領域の影響は低減されるが、人物を主要被写体とする撮影シーンでは、顔領域の明度が不適切であるという問題があった。また、特許文献2に記載の技術は、典型的な逆光やストロボ近接撮影の場合には、顔領域の特定を補償する効果を達成することができるが、典型的な構図に当てはまらないと、補償効果が得られなくなるという問題があった。
However, although the technique described in
また、デジタルカメラで撮影された画像データには、露出条件が不適切な状態で撮影されたものが多く、中でも露出不足によるアンダー画像が大半を占めている。逆光やストロボ近接撮影といった光源条件に由来する撮影条件を判別する際、アンダー画像をストロボ近接撮影、オーバー画像を逆光シーンと誤判別し、濃度補正を全く正反対の方向へと導いてしまう問題があった。 Also, many image data taken with a digital camera were taken with an inappropriate exposure condition, and most of them are under images due to underexposure. When discriminating shooting conditions derived from light source conditions such as backlighting or close-up flash photography, there is a problem that the under image is mistaken for close-up flash photography and the over image is mistaken for a backlight scene, leading to density correction in the exact opposite direction. It was.
このように、人物の顔領域を基準とした定量的な補正を実現するため、撮影条件の判別能力の向上は重要な課題である。更に、撮影条件の判別結果の信頼度を評価するなど、撮影条件の誤判定に対する対策が望まれている。 As described above, in order to realize quantitative correction based on a person's face area, improvement of the imaging condition discrimination capability is an important issue. Furthermore, countermeasures against erroneous determination of shooting conditions, such as evaluating the reliability of the determination result of shooting conditions, are desired.
本発明の課題は、撮影画像データの撮影条件(光源条件及び露出条件)を定量的に表す指標と、指標の信頼度を評価する判別マップに基づいて階調調整方法を決定することにより、被写体の明度再現性を向上させることである。 An object of the present invention is to determine a gradation adjustment method based on an index that quantitatively represents shooting conditions (light source condition and exposure condition) of captured image data and a discrimination map that evaluates the reliability of the index. It is to improve the lightness reproducibility.
上記課題を解決するため、請求項1に記載の発明は、撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出工程と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された各領域の占有率及び前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換工程と、を含むことを特徴としている。
In order to solve the above-mentioned problem, the invention described in
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
In order to specify the shooting condition by multiplying the occupation ratio of each region calculated in the occupation ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the imaging condition An index calculation process for calculating an index of
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
A gradation conversion step of performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項2に記載の発明は、撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出工程と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された各領域の占有率及び前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定工程と、
前記調整方法決定工程において決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定工程において決定された階調調整量の階調変換処理を施す階調変換工程と、を含むことを特徴としている。
According to the second aspect of the present invention, the captured image data is divided into regions each having a predetermined combination of brightness and hue, and an occupancy ratio indicating the proportion of the entire captured image data is calculated for each of the divided regions. An occupancy calculation step to perform,
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
In order to specify the shooting condition by multiplying the occupation ratio of each region calculated in the occupation ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the imaging condition An index calculation process for calculating an index of
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
An adjustment amount determining step for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion step of performing gradation conversion processing of the gradation adjustment amount determined in the adjustment amount determination step on the captured image data using the gradation adjustment method determined in the adjustment method determination step; It is characterized by including.
請求項3に記載の発明は、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出工程と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された各領域の占有率及び前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換工程と、を含むことを特徴としている。
According to a third aspect of the present invention, the captured image data is divided into a predetermined area composed of a combination of the distance from the outer edge of the screen of the captured image data and the brightness, and the captured image data is divided for each of the divided areas. An occupancy ratio calculating step for calculating an occupancy ratio indicating a ratio to the whole;
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
In order to specify the shooting condition by multiplying the occupation ratio of each region calculated in the occupation ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the imaging condition An index calculation process for calculating an index of
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
A gradation conversion step of performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項4に記載の発明は、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出工程と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された各領域の占有率及び前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定工程と、
前記調整方法決定工程において決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定工程において決定された階調調整量の階調変換処理を施す階調変換工程と、を含むことを特徴としている。
According to the fourth aspect of the present invention, the captured image data is divided into a predetermined area composed of a combination of the distance from the outer edge of the screen of the captured image data and the brightness, and the captured image data is divided for each of the divided areas. An occupancy ratio calculating step for calculating an occupancy ratio indicating a ratio to the whole;
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
In order to specify the shooting condition by multiplying the occupation ratio of each region calculated in the occupation ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the imaging condition An index calculation process for calculating an index of
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
An adjustment amount determining step for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion step of performing gradation conversion processing of the gradation adjustment amount determined in the adjustment amount determination step on the captured image data using the gradation adjustment method determined in the adjustment method determination step; It is characterized by including.
請求項5に記載の発明は、撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出工程と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された第1の占有率及び第2の占有率と、前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換工程と、を含むことを特徴としている。
According to the fifth aspect of the present invention, the captured image data is divided into regions each having a predetermined combination of brightness and hue, and the first occupation indicating the ratio of the divided regions to the entire captured image data. The ratio is calculated, and the photographed image data is divided into predetermined regions each composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and each of the divided regions occupies the entire photographed image data. An occupancy ratio calculating step of calculating a second occupancy ratio indicating a ratio;
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated in the occupancy ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the shooting condition. An index calculation step for calculating an index for specifying the shooting conditions;
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
A gradation conversion step of performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項6に記載の発明は、撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出工程と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された第1の占有率及び第2の占有率と、前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定工程と、
前記調整方法決定工程において決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定工程において決定された階調調整量の階調変換処理を施す階調変換工程と、を含むことを特徴としている。
The invention according to
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated in the occupancy ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the shooting condition. An index calculation step for calculating an index for specifying the shooting conditions;
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
An adjustment amount determining step for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion step of performing gradation conversion processing of the gradation adjustment amount determined in the adjustment amount determination step on the captured image data using the gradation adjustment method determined in the adjustment method determination step; It is characterized by including.
請求項7に記載の発明は、請求項3又は4に記載の画像処理方法において、前記撮影画像データの画面の外縁からの距離と明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する工程を含み、
前記占有率算出工程において、前記作成された2次元ヒストグラムに基づいて前記占有率が算出されることを特徴としている。
The invention according to
In the occupancy rate calculating step, the occupancy rate is calculated based on the created two-dimensional histogram.
請求項8に記載の発明は、請求項5又は6に記載の画像処理方法において、前記撮影画像データの画面の外縁からの距離と明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する工程を含み、
前記占有率算出工程において、前記作成された2次元ヒストグラムに基づいて前記第2の占有率が算出されることを特徴としている。
The invention according to
In the occupation rate calculating step, the second occupation rate is calculated based on the created two-dimensional histogram.
請求項9に記載の発明は、請求項1又は2に記載の画像処理方法において、前記撮影画像データの所定の色相、明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する工程を含み、
前記占有率算出工程において、前記作成された2次元ヒストグラムに基づいて前記占有率が算出されることを特徴としている。
According to a ninth aspect of the present invention, in the image processing method according to the first or second aspect, the step of creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the photographed image data. Including
In the occupancy rate calculating step, the occupancy rate is calculated based on the created two-dimensional histogram.
請求項10に記載の発明は、請求項5又は6に記載の画像処理方法において、前記撮影画像データの所定の色相、明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する工程を含み、
前記占有率算出工程において、前記作成された2次元ヒストグラムに基づいて前記第1の占有率が算出されることを特徴としている。
A tenth aspect of the present invention is the image processing method according to the fifth or sixth aspect, wherein a step of creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the photographed image data. Including
In the occupation rate calculating step, the first occupation rate is calculated based on the created two-dimensional histogram.
請求項11に記載の発明は、請求項1、2、5、6、8〜10の何れか一項に記載の画像処理方法において、前記指標算出工程において、所定の高明度の肌色色相領域と、当該高明度の肌色色相領域以外の色相領域とで、異なる符号の係数が用いられることを特徴としている。
The invention according to
請求項12に記載の発明は、請求項1、2、5、6、8〜11の何れか一項に記載の画像処理方法において、前記指標算出工程において、肌色色相領域の中間明度領域と、当該中間明度領域以外の明度領域とで異なる符号の係数が用いられることを特徴としている。
The image processing method according to any one of
請求項13に記載の発明は、請求項11に記載の画像処理方法において、前記高明度の肌色色相領域以外の色相領域の明度領域が、所定の高明度領域であることを特徴としている。 A thirteenth aspect of the present invention is the image processing method according to the eleventh aspect, wherein a lightness area of a hue area other than the high-brightness skin color hue area is a predetermined high-lightness area.
請求項14に記載の発明は、請求項12に記載の画像処理方法において、前記中間明度領域以外の明度領域が、肌色色相領域内の明度領域であることを特徴としている。 According to a fourteenth aspect of the present invention, in the image processing method according to the twelfth aspect, the lightness region other than the intermediate lightness region is a lightness region within a flesh-color hue region.
請求項15に記載の発明は、請求項11又は13に記載の画像処理方法において、前記高明度の肌色色相領域には、HSV表色系の明度値で170〜224の範囲の領域が含まれることを特徴としている。 According to a fifteenth aspect of the present invention, in the image processing method according to the eleventh or thirteenth aspect, the high lightness skin color hue region includes a region having a lightness value of 170 to 224 in the HSV color system. It is characterized by that.
請求項16に記載の発明は、請求項12又は14に記載の画像処理方法において、前記中間明度領域には、HSV表色系の明度値で85〜169の範囲の領域が含まれることを特徴としている。 According to a sixteenth aspect of the present invention, in the image processing method according to the twelfth or fourteenth aspect, the intermediate lightness region includes a region in the range of 85 to 169 as a lightness value of the HSV color system. It is said.
請求項17に記載の発明は、請求項11、13、15の何れか一項に記載の画像処理方法において、前記高明度の肌色色相領域以外の色相領域には、青色色相領域、緑色色相領域の少なくとも一方が含まれることを特徴としている。
The invention according to claim 17 is the image processing method according to any one of
請求項18に記載の発明は、請求項12、14、16の何れか一項に記載の画像処理方法において、前記中間明度領域以外の明度領域がシャドー領域であることを特徴としている。 According to an eighteenth aspect of the present invention, in the image processing method according to any one of the twelfth, fourteenth, and sixteenth aspects, a lightness area other than the intermediate lightness area is a shadow area.
請求項19に記載の発明は、請求項17に記載の画像処理方法において、前記青色色相領域の色相値は、HSV表色系の色相値で161〜250の範囲内にあり、前記緑色色相領域の色相値は、HSV表色系の色相値で40〜160の範囲内にあることを特徴としている。 The invention according to claim 19 is the image processing method according to claim 17, wherein a hue value of the blue hue region is in a range of 161 to 250 as a hue value of the HSV color system, and the green hue region The hue value is a hue value of the HSV color system and is in the range of 40 to 160.
請求項20に記載の発明は、請求項18に記載の画像処理方法において、前記シャドー領域の明度値は、HSV表色系の明度値で26〜84の範囲内にあることを特徴としている。 According to a twentieth aspect of the present invention, in the image processing method according to the eighteenth aspect, the lightness value of the shadow area is in the range of 26 to 84 as the lightness value of the HSV color system.
請求項21に記載の発明は、請求項11〜20の何れか一項に記載の画像処理方法において、前記肌色色相領域の色相値は、HSV表色系の色相値で0〜39及び330〜359の範囲内にあることを特徴としている。
The invention according to claim 21 is the image processing method according to any one of
請求項22に記載の発明は、請求項11〜21の何れか一項に記載の画像処理方法において、前記肌色色相領域が、明度及び彩度に基づく所定の条件式により2つの領域に分割されることを特徴としている。
The invention according to claim 22 is the image processing method according to any one of
請求項23に記載の発明は、請求項1〜22の何れか一項に記載の画像処理方法において、前記偏倚量には、撮影画像データの明るさの偏差量、当該撮影画像データの画面中央部における明るさの平均値、異なる条件で算出された明るさの差分値のうちの少なくとも一つが含まれることを特徴としている。 According to a twenty-third aspect of the present invention, in the image processing method according to any one of the first to twenty-second aspects, the deviation amount includes a deviation amount of brightness of captured image data, a center of a screen of the captured image data. It is characterized in that at least one of an average brightness value and a brightness difference value calculated under different conditions is included.
ここで、撮影画像データの明るさの偏差量とは、例えば、撮影画像データの輝度の標準偏差、分散等である。また、撮影画像データの画面中央部における明るさの平均値とは、例えば、画面中央部における平均輝度値、画面中央部における肌色領域の平均輝度値等である。また、異なる条件で算出された明るさの差分値とは、例えば、撮影画像データの最大輝度値と最小輝度値の差分値等である。 Here, the brightness deviation amount of the photographed image data is, for example, the standard deviation or variance of the brightness of the photographed image data. Further, the average brightness value of the captured image data at the center of the screen is, for example, the average brightness value at the center of the screen, the average brightness value of the skin color area at the center of the screen, or the like. The brightness difference value calculated under different conditions is, for example, the difference value between the maximum luminance value and the minimum luminance value of the captured image data.
請求項24に記載の発明は、請求項1〜23の何れか一項に記載の画像処理方法において、前記撮影条件は、撮影時の光源条件及び露出条件を示し、
前記光源条件にはストロボ撮影状態が含まれ、前記露出条件には、撮影時のシャッタースピード、絞り値に由来するアンダー撮影状態が含まれることを特徴としている。
The invention according to
The light source condition includes a flash photographing state, and the exposure condition includes an under photographing state derived from a shutter speed and an aperture value at the time of photographing.
請求項25に記載の発明は、撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、を備えることを特徴としている。
The invention described in
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項26に記載の発明は、撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、を備えることを特徴としている。
The invention described in
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means; It is characterized by having.
請求項27に記載の発明は、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、を備えることを特徴としている。
The invention described in
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項28に記載の発明は、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、を備えることを特徴としている。
The invention described in claim 28 divides the photographed image data into predetermined regions comprising a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and the photographed image data for each of the divided regions. An occupancy ratio calculating means for calculating an occupancy ratio indicating a ratio of the whole;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means; It is characterized by having.
請求項29に記載の発明は、撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された第1の占有率及び第2の占有率と、前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、を備えることを特徴としている。
According to a twenty-ninth aspect of the present invention, the photographed image data is divided into regions each having a predetermined combination of brightness and hue, and the first occupation indicating the ratio of the divided regions to the whole photographed image data. The ratio is calculated, and the photographed image data is divided into predetermined regions each composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and each of the divided regions occupies the entire photographed image data. An occupancy ratio calculating means for calculating a second occupancy ratio indicating a ratio;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the photographing condition. , An index calculating means for calculating an index for specifying the shooting conditions;
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項30に記載の発明は、撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された第1の占有率及び第2の占有率と、前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、を備えることを特徴としている。
According to a thirty-third aspect of the present invention, the photographed image data is divided into regions each having a predetermined combination of brightness and hue, and a first occupation indicating a ratio of the divided regions to the whole photographed image data. The ratio is calculated, and the photographed image data is divided into predetermined regions each composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and each of the divided regions occupies the entire photographed image data. An occupancy ratio calculating means for calculating a second occupancy ratio indicating a ratio;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the photographing condition. , An index calculating means for calculating an index for specifying the shooting conditions;
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means; It is characterized by having.
請求項31に記載の発明は、請求項27又は28に記載の画像処理装置において、前記撮影画像データの画面の外縁からの距離と明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する手段を備え、
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴としている。
The invention according to
The occupancy rate calculation means calculates the occupancy rate based on the created two-dimensional histogram.
請求項32に記載の発明は、請求項29又は30に記載の画像処理装置において、前記撮影画像データの画面の外縁からの距離と明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する手段を備え、
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記第2の占有率を算出することを特徴としている。
A thirty-second aspect of the present invention is the image processing apparatus according to the twenty-ninth or thirty-third aspect, wherein a two-dimensional histogram is created by calculating a cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data. Means to
The occupancy rate calculation means calculates the second occupancy rate based on the created two-dimensional histogram.
請求項33に記載の発明は、請求項25又は26に記載の画像処理装置において、前記撮影画像データの所定の色相、明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する手段を備え、
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴としている。
According to a thirty-third aspect of the present invention, in the image processing apparatus according to the twenty-fifth or twenty-sixth aspect, means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the photographed image data. Prepared,
The occupancy rate calculation means calculates the occupancy rate based on the created two-dimensional histogram.
請求項34に記載の発明は、請求項29又は30に記載の画像処理装置において、前記撮影画像データの所定の色相、明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する手段を備え、
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記第1の占有率を算出することを特徴としている。
According to a thirty-fourth aspect of the present invention, in the image processing apparatus according to the thirty-ninth or thirty-third aspect, means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and lightness of the photographed image data. Prepared,
The occupancy rate calculation means calculates the first occupancy rate based on the created two-dimensional histogram.
請求項35に記載の発明は、請求項25、26、29、30、32〜34の何れか一項に記載の画像処理装置において、前記指標算出手段では、所定の高明度の肌色色相領域と、当該高明度の肌色色相領域以外の色相領域とで、異なる符号の係数が用いられることを特徴としている。
The invention described in claim 35 is the image processing apparatus according to any one of
請求項36に記載の発明は、請求項25、26、29、30、32〜35の何れか一項に記載の画像処理装置において、前記指標算出手段では、肌色色相領域の中間明度領域と、当該中間明度領域以外の明度領域とで異なる符号の係数が用いられることを特徴としている。
The invention described in claim 36 is the image processing device according to any one of
請求項37に記載の発明は、請求項35に記載の画像処理装置において、前記高明度の肌色色相領域以外の色相領域の明度領域が、所定の高明度領域であることを特徴としている。 A thirty-seventh aspect of the present invention is the image processing apparatus according to the thirty-fifth aspect, characterized in that a lightness region of a hue region other than the high lightness skin color hue region is a predetermined high lightness region.
請求項38に記載の発明は、請求項36に記載の画像処理装置において、前記中間明度領域以外の明度領域が、肌色色相領域内の明度領域であることを特徴としている。 According to a thirty-eighth aspect of the present invention, in the image processing apparatus according to the thirty-sixth aspect, the lightness area other than the intermediate lightness area is a lightness area within a flesh-color hue area.
請求項39に記載の発明は、請求項35又は37に記載の画像処理装置において、前記高明度の肌色色相領域には、HSV表色系の明度値で170〜224の範囲の領域が含まれることを特徴としている。 According to a thirty-ninth aspect of the present invention, in the image processing apparatus according to the thirty-fifth or thirty-seventh aspect, the high lightness skin color hue region includes a region having a lightness value of 170 to 224 in the HSV color system. It is characterized by that.
請求項40に記載の発明は、請求項36又は38に記載の画像処理装置において、前記中間明度領域には、HSV表色系の明度値で85〜169の範囲の領域が含まれることを特徴としている。 According to a forty-second aspect of the present invention, in the image processing apparatus according to the thirty-sixth or thirty-eighth aspect, the intermediate lightness region includes a region in the range of 85 to 169 as a lightness value of the HSV color system. It is said.
請求項41に記載の発明は、請求項35、37、39の何れか一項に記載の画像処理装置において、前記高明度の肌色色相領域以外の色相領域には、青色色相領域、緑色色相領域の少なくとも一方が含まれることを特徴としている。 The invention according to claim 41 is the image processing apparatus according to any one of claims 35, 37, and 39, wherein a hue region other than the high brightness skin color hue region includes a blue hue region and a green hue region. It is characterized by including at least one of these.
請求項42に記載の発明は、請求項36、38、40の何れか一項に記載の画像処理装置において、前記中間明度領域以外の明度領域がシャドー領域であることを特徴としている。 A forty-second aspect of the present invention is the image processing apparatus according to any one of the thirty-sixth, thirty-eight and thirty-fourth aspects, wherein the brightness area other than the intermediate brightness area is a shadow area.
請求項43に記載の発明は、請求項41に記載の画像処理装置において、前記青色色相領域の色相値は、HSV表色系の色相値で161〜250の範囲内にあり、前記緑色色相領域の色相値は、HSV表色系の色相値で40〜160の範囲内にあることを特徴としている。 The invention according to claim 43 is the image processing apparatus according to claim 41, wherein a hue value of the blue hue region is in a range of 161 to 250 as a hue value of the HSV color system, and the green hue region The hue value is a hue value of the HSV color system and is in the range of 40 to 160.
請求項44に記載の発明は、請求項42に記載の画像処理装置において、前記シャドー領域の明度値は、HSV表色系の明度値で26〜84の範囲内にあることを特徴としている。 According to a 44th aspect of the present invention, in the image processing apparatus according to the 42nd aspect, the lightness value of the shadow area is in the range of 26 to 84 as the lightness value of the HSV color system.
請求項45に記載の発明は、請求項35〜44の何れか一項に記載の画像処理装置において、前記肌色色相領域の色相値は、HSV表色系の色相値で0〜39及び330〜359の範囲内にあることを特徴としている。 According to a 45th aspect of the present invention, in the image processing device according to any one of the 35th to 44th aspects, the hue value of the flesh color hue region is a hue value of HSV color system of 0 to 39 and 330 to It is characterized by being in the range of 359.
請求項46に記載の発明は、請求項35〜45の何れか一項に記載の画像処理装置において、前記肌色色相領域が、明度及び彩度に基づく所定の条件式により2つの領域に分割されることを特徴としている。 The invention according to claim 46 is the image processing apparatus according to any one of claims 35 to 45, wherein the skin color hue region is divided into two regions by a predetermined conditional expression based on brightness and saturation. It is characterized by that.
請求項47に記載の発明は、請求項25〜46の何れか一項に記載の画像処理装置において、前記偏倚量には、撮影画像データの明るさの偏差量、当該撮影画像データの画面中央部における明るさの平均値、異なる条件で算出された明るさの差分値のうちの少なくとも一つが含まれることを特徴としている。 According to a 47th aspect of the present invention, in the image processing device according to any one of the 25th to 46th aspects, the deviation amount includes a deviation amount of brightness of the captured image data, a center of the screen of the captured image data. It is characterized in that at least one of an average brightness value and a brightness difference value calculated under different conditions is included.
請求項48に記載の発明は、請求項25〜47の何れか一項に記載の画像処理装置において、前記撮影条件は、撮影時の光源条件及び露出条件を示し、
前記光源条件にはストロボ撮影状態が含まれ、前記露出条件には、撮影時のシャッタースピード、絞り値に由来するアンダー撮影状態が含まれることを特徴としている。
The invention according to claim 48 is the image processing apparatus according to any one of
The light source condition includes a flash photographing state, and the exposure condition includes an under photographing state derived from a shutter speed and an aperture value at the time of photographing.
請求項49に記載の発明は、被写体を撮影して撮影画像データを取得する撮像手段と、
前記撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、を備えることを特徴としている。
The invention according to claim 49, the imaging means for capturing the captured image data by capturing the subject,
Occupancy rate calculating means for dividing the photographed image data into regions composed of combinations of predetermined brightness and hue, and for each of the divided regions, calculating an occupation rate indicating a proportion of the entire photographed image data;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項50に記載の発明は、被写体を撮影して撮影画像データを取得する撮像手段と、
前記撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、を備えることを特徴としている。
The invention according to
Occupancy rate calculating means for dividing the photographed image data into regions composed of combinations of predetermined brightness and hue, and for each of the divided regions, calculating an occupation rate indicating a proportion of the entire photographed image data;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means; It is characterized by having.
請求項51に記載の発明は、被写体を撮影して撮影画像データを取得する撮像手段と、
前記撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、を備えることを特徴としている。
The invention according to
Dividing the photographed image data into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupancy ratio indicating a ratio of the entire photographed image data for each of the divided areas Occupancy ratio calculating means for calculating
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項52に記載の発明は、被写体を撮影して撮影画像データを取得する撮像手段と、
前記撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、を備えることを特徴としている。
The invention according to claim 52 is an imaging means for photographing a subject and obtaining photographed image data;
Dividing the photographed image data into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupancy ratio indicating a ratio of the entire photographed image data for each of the divided areas Occupancy ratio calculating means for calculating
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means; It is characterized by having.
請求項53に記載の発明は、被写体を撮影して撮影画像データを取得する撮像手段と、
前記撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された第1の占有率及び第2の占有率と、前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、を備えることを特徴としている。
The invention according to claim 53 is an imaging means for capturing a captured image data by capturing a subject;
The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupancy ratio indicating the proportion of the whole photographed image data is calculated for each of the divided regions, and the photographed image A second occupancy ratio that divides the data into a predetermined area composed of a combination of the distance from the outer edge of the screen of the captured image data and the brightness and occupies the entire captured image data for each of the divided areas Occupancy ratio calculating means for calculating
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the photographing condition. , An index calculating means for calculating an index for specifying the shooting conditions;
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項54に記載の発明は、被写体を撮影して撮影画像データを取得する撮像手段と、
前記撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された第1の占有率及び第2の占有率と、前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、を備えることを特徴としている。
The invention according to claim 54 is an imaging means for capturing a captured image data by capturing a subject;
The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupancy ratio indicating the proportion of the whole photographed image data is calculated for each of the divided regions, and the photographed image A second occupancy ratio that divides the data into a predetermined area composed of a combination of the distance from the outer edge of the screen of the captured image data and the brightness and occupies the entire captured image data for each of the divided areas Occupancy ratio calculating means for calculating
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the photographing condition. , An index calculating means for calculating an index for specifying the shooting conditions;
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means; It is characterized by having.
請求項55に記載の発明は、請求項51又は52に記載の撮像装置において、前記撮影画像データの画面の外縁からの距離と明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する手段を備え、
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴としている。
According to a 55th aspect of the present invention, in the imaging device according to the 51st or 52nd aspect, a two-dimensional histogram is created by calculating a cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data. With means,
The occupancy rate calculation means calculates the occupancy rate based on the created two-dimensional histogram.
請求項56に記載の発明は、請求項53又は54に記載の撮像装置において、前記撮影画像データの画面の外縁からの距離と明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する手段を備え、
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記第2の占有率を算出することを特徴としている。
According to a 56th aspect of the present invention, in the imaging device according to the 53rd or 54th aspect, a two-dimensional histogram is created by calculating the cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data. With means,
The occupancy rate calculation means calculates the second occupancy rate based on the created two-dimensional histogram.
請求項57に記載の発明は、請求項49又は50に記載の撮像装置において、前記撮影画像データの所定の色相、明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する手段を備え、
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴としている。
The invention according to claim 57 is the imaging device according to claim 49 or 50, further comprising means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the photographed image data. ,
The occupancy rate calculation means calculates the occupancy rate based on the created two-dimensional histogram.
請求項58に記載の発明は、請求項53又は54に記載の撮像装置において、前記撮影画像データの所定の色相、明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する手段を備え、
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記第1の占有率を算出することを特徴としている。
The invention according to claim 58 is the imaging device according to claim 53 or 54, further comprising means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the photographed image data. ,
The occupancy rate calculation means calculates the first occupancy rate based on the created two-dimensional histogram.
請求項59に記載の発明は、請求項49、50、53、54、56〜58の何れか一項に記載の撮像装置において、前記指標算出手段では、所定の高明度の肌色色相領域と、当該高明度の肌色色相領域以外の色相領域とで、異なる符号の係数が用いられることを特徴としている。 According to a 59th aspect of the present invention, in the imaging apparatus according to any one of the 49th, 50th, 53rd, 54th, and 56th to 58th aspects, the index calculating unit includes a skin color hue region having a predetermined high brightness, A different sign coefficient is used in a hue area other than the high brightness skin color hue area.
請求項60に記載の発明は、請求項49、50、53、54、56〜59の何れか一項に記載の撮像装置において、前記指標算出手段では、肌色色相領域の中間明度領域と、当該中間明度領域以外の明度領域とで異なる符号の係数が用いられることを特徴としている。
The invention according to
請求項61に記載の発明は、請求項59に記載の撮像装置において、前記高明度の肌色色相領域以外の色相領域の明度領域が、所定の高明度領域であることを特徴としている。 The invention according to claim 61 is the imaging apparatus according to claim 59, characterized in that the brightness area of the hue area other than the high brightness skin color hue area is a predetermined high brightness area.
請求項62に記載の発明は、請求項60に記載の撮像装置において、前記中間明度領域以外の明度領域が、肌色色相領域内の明度領域であることを特徴としている。 According to a 62nd aspect of the present invention, in the imaging device according to the 60th aspect, the brightness area other than the intermediate brightness area is a brightness area within a flesh-color hue area.
請求項63に記載の発明は、請求項59又は61に記載の撮像装置において、前記高明度の肌色色相領域には、HSV表色系の明度値で170〜224の範囲の領域が含まれることを特徴としている。 According to a 63rd aspect of the present invention, in the imaging device according to the 59th or 61th aspect, the high brightness skin color hue region includes a region in the range of 170 to 224 in terms of the brightness value of the HSV color system. It is characterized by.
請求項64に記載の発明は、請求項60又は62に記載の撮像装置において、前記中間明度領域には、HSV表色系の明度値で85〜169の範囲の領域が含まれることを特徴としている。 According to a 64th aspect of the present invention, in the imaging device according to the 60th or 62th aspect of the present invention, the intermediate lightness region includes a region having a lightness value in the HSV color system of 85 to 169. Yes.
請求項65に記載の発明は、請求項59、61、63の何れか一項に記載の撮像装置において、前記高明度の肌色色相領域以外の色相領域には、青色色相領域、緑色色相領域の少なくとも一方が含まれることを特徴としている。 According to a 65th aspect of the present invention, in the imaging device according to any one of the 59th, 61th, and 63th aspects, a hue region other than the high brightness skin color hue region includes a blue hue region and a green hue region. It is characterized in that at least one of them is included.
請求項66に記載の発明は、請求項60、62、64の何れか一項に記載の撮像装置において、前記中間明度領域以外の明度領域がシャドー領域であることを特徴としている。 According to a 66th aspect of the present invention, in the imaging device according to any one of the 60th, 62th, and 64th aspects, the brightness area other than the intermediate brightness area is a shadow area.
請求項67に記載の発明は、請求項65に記載の撮像装置において、前記青色色相領域の色相値は、HSV表色系の色相値で161〜250の範囲内にあり、前記緑色色相領域の色相値は、HSV表色系の色相値で40〜160の範囲内にあることを特徴としている。 According to a 67th aspect of the present invention, in the imaging device according to the 65th aspect, a hue value of the blue hue region is in a range of 161 to 250 as a hue value of an HSV color system, and the hue value of the green hue region is The hue value is a hue value in the HSV color system and is characterized by being in the range of 40 to 160.
請求項68に記載の発明は、請求項66に記載の撮像装置において、前記シャドー領域の明度値は、HSV表色系の明度値で26〜84の範囲内にあることを特徴としている。 According to a 68th aspect of the present invention, in the imaging apparatus according to the 66th aspect, the lightness value of the shadow region is in the range of 26 to 84 as the lightness value of the HSV color system.
請求項69に記載の発明は、請求項59〜68の何れか一項に記載の撮像装置において、前記肌色色相領域の色相値は、HSV表色系の色相値で0〜39及び330〜359の範囲内にあることを特徴としている。
According to a 69th aspect of the present invention, in the imaging apparatus according to any one of the 59th to 68th aspects, the hue value of the flesh color hue region is a hue value of
請求項70に記載の発明は、請求項59〜69の何れか一項に記載の撮像装置において、前記肌色色相領域が、明度及び彩度に基づく所定の条件式により2つの領域に分割されることを特徴としている。 According to a 70th aspect of the present invention, in the imaging device according to any one of the 59th to 69th aspects, the skin color hue region is divided into two regions by a predetermined conditional expression based on brightness and saturation. It is characterized by that.
請求項71に記載の発明は、請求項49〜70の何れか一項に記載の撮像装置において、前記偏倚量には、撮影画像データの明るさの偏差量、当該撮影画像データの画面中央部における明るさの平均値、異なる条件で算出された明るさの差分値のうちの少なくとも一つが含まれることを特徴としている。
The invention according to
請求項72に記載の発明は、請求項49〜71の何れか一項に記載の撮像装置において、前記撮影条件は、撮影時の光源条件及び露出条件を示し、
前記光源条件にはストロボ撮影状態が含まれ、前記露出条件には、撮影時のシャッタースピード、絞り値に由来するアンダー撮影状態が含まれることを特徴としている。
The invention according to
The light source condition includes a flash photographing state, and the exposure condition includes an under photographing state derived from a shutter speed and an aperture value at the time of photographing.
請求項73に記載の発明は、画像処理を実行するためのコンピュータに、
撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された各領域の占有率及び前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換機能と、を実現させるための画像処理プログラムである。
The invention according to claim 73 provides a computer for executing image processing,
Occupancy rate calculation function for dividing the captured image data into regions composed of combinations of predetermined brightness and hue, and for each of the divided regions, calculating an occupation rate indicating the proportion of the entire captured image data;
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupation ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the imaging condition. An index calculation function to calculate
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
An image processing program for realizing a gradation conversion function for performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項74に記載の発明は、画像処理を実行するためのコンピュータに、
撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された各領域の占有率及び前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定機能と、
前記調整方法決定機能により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定機能により決定された階調調整量の階調変換処理を施す階調変換機能と、を実現させるための画像処理プログラムである。
According to a 74th aspect of the present invention, there is provided a computer for executing image processing,
Occupancy rate calculation function for dividing the captured image data into regions composed of combinations of predetermined brightness and hue, and for each of the divided regions, calculating an occupation rate indicating the proportion of the entire captured image data;
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupation ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the imaging condition. An index calculation function to calculate
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
An adjustment amount determination function for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion function for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination function on the captured image data using the gradation adjustment method determined by the adjustment method determination function; Is an image processing program for realizing the above.
請求項75に記載の発明は、画像処理を実行するためのコンピュータに、
撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された各領域の占有率及び前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換機能と、を実現させるための画像処理プログラムである。
The invention according to claim 75 provides a computer for executing image processing,
The photographed image data is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupancy ratio indicating the ratio of the entire photographed image data for each of the divided areas. Occupancy rate calculation function to calculate,
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupation ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the imaging condition. An index calculation function to calculate
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
An image processing program for realizing a gradation conversion function for performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項76に記載の発明は、画像処理を実行するためのコンピュータに、
撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された各領域の占有率及び前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定機能と、
前記調整方法決定機能により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定機能により決定された階調調整量の階調変換処理を施す階調変換機能と、を実現させるための画像処理プログラムである。
The invention according to claim 76 provides a computer for executing image processing,
The photographed image data is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupancy ratio indicating the ratio of the entire photographed image data for each of the divided areas. Occupancy rate calculation function to calculate,
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupation ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the imaging condition. An index calculation function to calculate
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
An adjustment amount determination function for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion function for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination function on the captured image data using the gradation adjustment method determined by the adjustment method determination function; Is an image processing program for realizing the above.
請求項77に記載の発明は、画像処理を実行するためのコンピュータに、
撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された第1の占有率及び第2の占有率と、前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換機能と、を実現させるための画像処理プログラムである。
The invention according to claim 77 provides a computer for executing image processing,
The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupancy ratio indicating the proportion of the whole photographed image data is calculated for each of the divided regions, and the photographed image data Is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and a second occupancy ratio indicating the proportion of the whole photographed image data is determined for each of the divided areas. Occupancy rate calculation function to calculate,
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the shooting condition. , An index calculation function for calculating an index for specifying shooting conditions,
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
An image processing program for realizing a gradation conversion function for performing gradation conversion processing on the photographed image data using the determined gradation adjustment method.
請求項78に記載のはつめいは、画像処理を実行するためのコンピュータに、
撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された第1の占有率及び第2の占有率と、前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定機能と、
前記調整方法決定機能により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定機能により決定された階調調整量の階調変換処理を施す階調変換機能と、を実現させるための画像処理プログラムである。
According to a 78th aspect of the present invention, there is provided a computer for executing image processing.
The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupancy ratio indicating the proportion of the whole photographed image data is calculated for each of the divided regions, and the photographed image data Is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and a second occupancy ratio indicating the proportion of the whole photographed image data is determined for each of the divided areas. Occupancy rate calculation function to calculate,
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the shooting condition. , An index calculation function for calculating an index for specifying shooting conditions,
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
An adjustment amount determination function for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion function for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination function on the captured image data using the gradation adjustment method determined by the adjustment method determination function; Is an image processing program for realizing the above.
請求項79に記載の発明は、請求項75又は76に記載の画像処理プログラムにおいて、前記撮影画像データの画面の外縁からの距離と明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する機能を実現させ、
前記占有率算出機能を実現させる際に、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴としている。
The invention according to claim 79 is the image processing program according to claim 75 or 76, wherein a two-dimensional histogram is created by calculating the cumulative number of pixels for each distance and brightness from the outer edge of the screen of the photographed image data. Realize the function to
When the occupancy rate calculation function is realized, the occupancy rate is calculated based on the created two-dimensional histogram.
請求項80に記載の発明は、請求項77又は78に記載の画像処理プログラムにおいて、前記撮影画像データの画面の外縁からの距離と明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する機能を実現させ、
前記占有率算出機能を実現させる際に、前記作成された2次元ヒストグラムに基づいて前記第2の占有率を算出することを特徴としている。
The invention according to
When the occupation rate calculation function is realized, the second occupation rate is calculated based on the created two-dimensional histogram.
請求項81に記載の発明は、請求項73又は74に記載の画像処理プログラムにおいて、前記撮影画像データの所定の色相、明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する機能を実現させ、
前記占有率算出機能を実現させる際に、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴としている。
The invention according to claim 81 is the image processing program according to claim 73 or 74, wherein the two-dimensional histogram is created by calculating the cumulative number of pixels for each predetermined hue and brightness of the photographed image data. Realized,
When the occupancy rate calculation function is realized, the occupancy rate is calculated based on the created two-dimensional histogram.
請求項82に記載の発明は、請求項77又は78に記載の画像処理プログラムにおいて、前記撮影画像データの所定の色相、明度毎に累積画素数を算出することによって2次元ヒストグラムを作成する機能を実現させ、
前記占有率算出機能を実現させる際に、前記作成された2次元ヒストグラムに基づいて前記第1の占有率を算出することを特徴としている。
The invention according to claim 82 is the image processing program according to claim 77 or 78, wherein the two-dimensional histogram is created by calculating the cumulative number of pixels for each predetermined hue and lightness of the photographed image data. Realized,
When realizing the occupancy rate calculating function, the first occupancy rate is calculated based on the created two-dimensional histogram.
請求項83に記載の発明は、請求項73、74、77、78、80〜82の何れか一項に記載の画像処理プログラムにおいて、前記指標算出機能を実現させる際に、所定の高明度の肌色色相領域と、当該高明度の肌色色相領域以外の色相領域とで、異なる符号の係数が用いられることを特徴としている。 According to an 83rd aspect of the present invention, in the image processing program according to any one of the 73rd, 74th, 77th, 78th and 80th to 82nd aspects, when the index calculation function is realized, a predetermined high brightness is obtained. It is characterized in that coefficients of different signs are used in the flesh color hue area and the hue area other than the high brightness flesh color hue area.
請求項84に記載の発明は、請求項73、74、77、78、80〜83の何れか一項に記載の画像処理プログラムにおいて、前記指標算出機能を実現させる際に、肌色色相領域の中間明度領域と、当該中間明度領域以外の明度領域とで異なる符号の係数が用いられることを特徴としている。 The invention according to an 84th aspect is the image processing program according to any one of the 73rd, 74th, 77th, 78th and 80th to 83rd aspects, wherein when the index calculation function is realized, It is characterized in that coefficients of different signs are used in the brightness area and brightness areas other than the intermediate brightness area.
請求項85に記載の発明は、請求項83に記載の画像処理プログラムにおいて、前記高明度の肌色色相領域以外の色相領域の明度領域が、所定の高明度領域であることを特徴としている。 According to an 85th aspect of the present invention, in the image processing program according to the 83rd aspect, the brightness area of the hue area other than the high brightness skin color hue area is a predetermined high brightness area.
請求項86に記載の発明は、請求項84に記載の画像処理プログラムにおいて、前記中間明度領域以外の明度領域が、肌色色相領域内の明度領域であることを特徴としている。 According to an 86th aspect of the present invention, in the image processing program according to the 84th aspect, the lightness area other than the intermediate lightness area is a lightness area in a flesh-color hue area.
請求項87に記載の発明は、請求項83又は85に記載の画像処理プログラムにおいて、前記高明度の肌色色相領域には、HSV表色系の明度値で170〜224の範囲の領域が含まれることを特徴としている。 According to an 87th aspect of the present invention, in the image processing program according to the 83rd or 85th aspect, the high-brightness skin color hue region includes a region in the range of 170 to 224 in terms of the lightness value of the HSV color system. It is characterized by that.
請求項88に記載の発明は、請求項84又は86に記載の画像処理プログラムにおいて、前記中間明度領域には、HSV表色系の明度値で85〜169の範囲の領域が含まれることを特徴としている。 According to an 88th aspect of the present invention, in the image processing program according to the 84th or 86th aspect, the intermediate lightness area includes an area in the range of 85 to 169 as a lightness value of the HSV color system. It is said.
請求項89に記載の発明は、請求項83、85、87の何れか一項に記載の画像処理プログラムにおいて、前記高明度の肌色色相領域以外の色相領域には、青色色相領域、緑色色相領域の少なくとも一方が含まれることを特徴としている。 The invention according to claim 89 is the image processing program according to any one of claims 83, 85, and 87, wherein the hue area other than the high brightness skin color hue area includes a blue hue area and a green hue area. It is characterized by including at least one of these.
請求項90に記載の発明は、請求項84、86、88の何れか一項に記載の画像処理プログラムにおいて、記中間明度領域以外の明度領域がシャドー領域であることを特徴としている。 The invention described in item 90 is the image processing program according to any one of items 84, 86, 88, wherein the brightness area other than the intermediate brightness area is a shadow area.
請求項91に記載の発明は、請求項89に記載の画像処理プログラムにおいて、前記青色色相領域の色相値は、HSV表色系の色相値で161〜250の範囲内にあり、前記緑色色相領域の色相値は、HSV表色系の色相値で40〜160の範囲内にあることを特徴としている。 The invention according to claim 91 is the image processing program according to claim 89, wherein a hue value of the blue hue region is in a range of 161 to 250 as a hue value of the HSV color system, and the green hue region The hue value is a hue value of the HSV color system and is in the range of 40 to 160.
請求項92に記載の発明は、請求項90に記載の画像処理プログラムにおいて、前記シャドー領域の明度値は、HSV表色系の明度値で26〜84の範囲内にあることを特徴としている。 The invention according to claim 92 is the image processing program according to claim 90, characterized in that the brightness value of the shadow area is in the range of 26 to 84 in terms of the brightness value of the HSV color system.
請求項93に記載の発明は、請求項83〜92の何れか一項に記載の画像処理プログラムにおいて、前記肌色色相領域の色相値は、HSV表色系の色相値で0〜39及び330〜359の範囲内にあることを特徴としている。
The invention according to claim 93 is the image processing program according to any one of claims 83 to 92, wherein the hue value of the flesh color hue region is a hue value of
請求項94に記載の発明は、請求項83〜93の何れか一項に記載の画像処理プログラムにおいて、前記肌色色相領域が、明度及び彩度に基づく所定の条件式により2つの領域に分割されることを特徴としている。 The invention according to claim 94 is the image processing program according to any one of claims 83 to 93, wherein the skin color hue region is divided into two regions by a predetermined conditional expression based on lightness and saturation. It is characterized by that.
請求項95に記載の発明は、請求項73〜94の何れか一項に記載の画像処理プログラムにおいて、前記偏倚量には、撮影画像データの明るさの偏差量、当該撮影画像データの画面中央部における明るさの平均値、異なる条件で算出された明るさの差分値のうちの少なくとも一つが含まれることを特徴としている。 The invention according to claim 95 is the image processing program according to any one of claims 73 to 94, wherein the deviation amount includes a brightness deviation amount of the photographed image data, a screen center of the photographed image data. It is characterized in that at least one of an average brightness value and a brightness difference value calculated under different conditions is included.
請求項96に記載の発明は、請求項73〜95の何れか一項に記載の画像処理プログラムにおいて、前記撮影条件は、撮影時の光源条件及び露出条件を示し、
前記光源条件にはストロボ撮影状態が含まれ、前記露出条件には、撮影時のシャッタースピード、絞り値に由来するアンダー撮影状態が含まれることを特徴としている。
The invention according to
The light source condition includes a flash photographing state, and the exposure condition includes an under photographing state derived from a shutter speed and an aperture value at the time of photographing.
本発明によれば、撮影画像データの撮影条件を定量的に示す指標を算出し、その算出された指標に基づいて撮影条件を判別して、判別結果に応じて撮影画像データに対する階調調整の方法を決定することにより、被写体の明度を適切に補正することが可能となる。特に、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて撮影条件を判別することにより、判別結果の信頼度が高くなり、撮影条件に応じた適切な階調変換を行うことが可能になる。 According to the present invention, an index that quantitatively indicates the shooting condition of the captured image data is calculated, the shooting condition is determined based on the calculated index, and the gradation adjustment for the captured image data is performed according to the determination result. By determining the method, it is possible to appropriately correct the brightness of the subject. In particular, by determining the shooting conditions based on the determination map divided in advance according to the accuracy of the shooting conditions, the reliability of the determination result becomes high, and appropriate gradation conversion according to the shooting conditions can be performed. It becomes possible.
また、撮影画像データの撮影条件を定量的に示す指標を算出し、その算出された指標に基づいて撮影画像データの階調調整量を決定することにより、被写体の明度を適切に補正することが可能となる。 Further, it is possible to appropriately correct the brightness of the subject by calculating an index quantitatively indicating the shooting condition of the captured image data and determining the gradation adjustment amount of the captured image data based on the calculated index. It becomes possible.
以下、図面を参照して、本発明の実施形態を詳細に説明する。
まず、本実施形態における構成について説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
First, the configuration in the present embodiment will be described.
図1は、本発明の実施形態における画像処理装置1の外観構成を示す斜視図である。画像処理装置1は、図1に示すように、筐体2の一側面に、感光材料を装填するためのマガジン装填部3が備えられている。筐体2の内側には、感光材料に露光する露光処理部4と、露光された感光材料を現像処理して乾燥し、プリントを作成するためのプリント作成部5が備えられている。筐体2の他側面には、プリント作成部5で作成されたプリントを排出するためのトレー6が備えられている。
FIG. 1 is a perspective view showing an external configuration of an
また、筐体2の上部には、表示装置としてのCRT(Cathode Ray Tube)8、透過原稿を読み込む装置であるフィルムスキャナ部9、反射原稿入力装置10、操作部11が備えられている。このCRT8が、プリントを作成しようとする画像情報の画像を画面に表示する表示手段を構成している。更に、筐体2には、各種デジタル記録媒体に記録された画像情報を読み取り可能な画像読込部14、各種デジタル記録媒体に画像信号を書き込み(出力)可能な画像書込部15が備えられている。また、筐体2の内部には、これらの各部を集中制御する制御部7が備えられている。
In addition, a CRT (Cathode Ray Tube) 8 serving as a display device, a
画像読込部14には、PCカード用アダプタ14a、フロッピー(登録商標)ディスク用アダプタ14bが備えられ、PCカード13aやフロッピー(登録商標)ディスク13bが差し込み可能になっている。PCカード13aは、例えば、デジタルカメラで撮像された複数の駒画像データが記録されたメモリを有する。フロッピー(登録商標)ディスク13bには、例えば、デジタルカメラで撮像された複数の駒画像データが記録される。PCカード13a及びフロッピー(登録商標)ディスク13b以外に駒画像データが記録される記録媒体としては、例えば、マルチメディアカード(登録商標)、メモリースティック(登録商標)、MDデータ、CD−ROM等がある。
The
画像書込部15には、フロッピー(登録商標)ディスク用アダプタ15a、MO用アダプタ15b、光ディスク用アダプタ15cが備えられ、それぞれ、フロッピー(登録商標)ディスク16a、MO16b、光ディスク16cが差し込み可能になっている。光ディスク16cとしては、CD−R、DVD−R等がある。
The
なお、図1では、操作部11、CRT8、フィルムスキャナ部9、反射原稿入力装置10、画像読込部14が、筐体2に一体的に備えられた構造となっているが、これらの何れか1つ以上を別体として設けるようにしてもよい。
In FIG. 1, the
また、図1に示した画像処理装置1では、感光材料に露光して現像してプリントを作成するものが例示されているが、プリント作成方式はこれに限定されず、例えば、インクジェット方式、電子写真方式、感熱方式、昇華方式等の方式を用いてもよい。
Further, in the
〈画像処理装置1の主要部構成〉
図2に、画像処理装置1の主要部構成を示す。画像処理装置1は、図2に示すように、制御部7、露光処理部4、プリント生成部5、フィルムスキャナ部9、反射原稿入力装置10、画像読込部14、通信手段(入力)32、画像書込部15、データ蓄積手段71、テンプレート記憶手段72、操作部11、CRT8、通信手段(出力)33により構成される。
<Main part configuration of
FIG. 2 shows a main part configuration of the
制御部7は、マイクロコンピュータにより構成され、ROM(Read Only Memory)等の記憶部(図示略)に記憶されている各種制御プログラムと、CPU(Central Processing Unit)(図示略)との協働により、画像処理装置1を構成する各部の動作を制御する。
The
制御部7は、本発明の画像処理装置に係る画像処理部70を有し、操作部11からの入力信号(指令情報)に基づいて、フィルムスキャナ部9や反射原稿入力装置10から読み取られた画像信号、画像読込部14から読み込まれた画像信号、外部機器から通信手段32を介して入力された画像信号に対して、画像処理を施して露光用画像情報を形成し、露光処理部4に出力する。また、画像処理部70は、画像処理された画像信号に対して出力形態に応じた変換処理を施して出力する。画像処理部70の出力先としては、CRT8、画像書込部15、通信手段(出力)33等がある。
The
露光処理部4は、感光材料に画像の露光を行い、この感光材料をプリント作成部5に出力する。プリント作成部5は、露光された感光材料を現像処理して乾燥し、プリントP1、P2、P3を作成する。プリントP1は、サービスサイズ、ハイビジョンサイズ、パノラマサイズ等のプリントであり、プリントP2は、A4サイズのプリントであり、プリントP3は、名刺サイズのプリントである。
The exposure processing unit 4 exposes an image to the photosensitive material and outputs the photosensitive material to the
フィルムスキャナ部9は、アナログカメラにより撮像された現像済みのネガフィルムN、リバーサルフィルム等の透過原稿に記録された駒画像を読み取り、駒画像のデジタル画像信号を取得する。反射原稿入力装置10は、フラットベットスキャナにより、プリントP(写真プリント、書画、各種の印刷物)上の画像を読み取り、デジタル画像信号を取得する。
The
画像読込部14は、PCカード13aやフロッピー(登録商標)ディスク13bに記録された駒画像情報を読み出して制御部7に転送する。この画像読込部14は、画像転送手段30として、PCカード用アダプタ14a、フロッピー(登録商標)ディスク用アダプタ14b等を有する。画像読込部14は、PCカード用アダプタ14aに差し込まれたPCカード13aや、フロッピー(登録商標)ディスク用アダプタ14bに差し込まれたフロッピー(登録商標)ディスク13bに記録された駒画像情報を読み取り、制御部7に転送する。PCカード用アダプタ14aとしては、例えばPCカードリーダやPCカードスロット等が用いられる。
The
通信手段(入力)32は、画像処理装置1が設置された施設内の別のコンピュータや、インターネット等を介した遠方のコンピュータから、撮像画像を表す画像信号やプリント命令信号を受信する。
The communication means (input) 32 receives an image signal representing a captured image and a print command signal from another computer in the facility where the
画像書込部15は、画像搬送部31として、フロッピー(登録商標)ディスク用アダプタ15a、MO用アダプタ15b、光ディスク用アダプタ15cを備えている。画像書込部15は、制御部7から入力される書込信号に従って、フロッピー(登録商標)ディスク用アダプタ15aに差し込まれたフロッピー(登録商標)ディスク16a、MO用アダプタ15bに差し込まれたMO16b、光ディスク用アダプタ15cに差し込まれた光ディスク16cに、本発明における画像処理方法によって生成された画像信号を書き込む。
The
データ蓄積手段71は、画像情報とそれに対応する注文情報(どの駒の画像から何枚プリントを作成するかの情報、プリントサイズの情報等)とを記憶し、順次蓄積する。
The
テンプレート記憶手段72は、サンプル識別情報D1、D2、D3に対応するサンプル画像データである背景画像、イラスト画像等と合成領域を設定する少なくとも1個のテンプレートのデータを記憶している。オペレータの操作によりセットしてテンプレート記憶手段72に予め記憶された複数のテンプレートから所定のテンプレートを選択し、駒画像情報は選択されたテンプレートにより合成し、指定されるサンプル識別情報D1、D2、D3に基づいて選択されたサンプル画像データと、注文に基づく画像データ及び/又は文字データとを合成し、指定によるサンプルに基づくプリントを作成する。このテンプレートによる合成は、周知のクロマキー法によって行なわれる。 The template storage means 72 stores at least one template data for setting a synthesis area and a background image, an illustration image, and the like, which are sample image data corresponding to the sample identification information D1, D2, and D3. A predetermined template is selected from a plurality of templates that are set by the operation of the operator and stored in advance in the template storage means 72, and the frame image information is synthesized by the selected template and designated sample identification information D1, D2, D3 The sample image data selected on the basis of the image data and the image data and / or character data based on the order are combined to create a print based on the specified sample. The synthesis using this template is performed by a well-known chroma key method.
なお、プリントのサンプルを指定するサンプル識別情報D1、D2、D3は、操作部211から入力されるように構成されているが、これらのサンプル識別情報は、プリントのサンプル又は注文シートに記録されているため、OCR等の読み取り手段により読み取ることができる。或いは、オペレータのキーボード操作により入力することもできる。
Note that sample identification information D1, D2, and D3 for specifying a print sample is configured to be input from the
このようにプリントのサンプルを指定するサンプル識別情報D1に対応してサンプル画像データを記録しておき、プリントのサンプルを指定するサンプル識別情報D1を入力し、この入力されるサンプル識別情報D1に基づきサンプル画像データを選択し、この選択されたサンプル画像データと、注文に基づく画像データ及び/又は文字データとを合成し、指定によるサンプルに基づくプリントを作成するため、種々の実物大のサンプルをユーザが実際に手にしてプリントの注文ができ、幅広いユーザの多様な要求に応じることができる。 In this way, sample image data is recorded corresponding to the sample identification information D1 for designating the print sample, the sample identification information D1 for designating the print sample is input, and based on the input sample identification information D1. Select the sample image data, synthesize the selected sample image data with the image data and / or text data based on the order, and create a print based on the specified sample. Can actually place a print order and meet the diverse requirements of a wide range of users.
また、第1のサンプルを指定する第1のサンプル識別情報D2と第1のサンプルの画像データを記憶し、また、第2のサンプルを指定する第2のサンプル識別情報D3と第2のサンプルの画像データを記憶し、指定される第1及び第2のサンプル識別情報D2、D3とに基づいて選択されたサンプル画像データと、注文に基づく画像データ及び/又は文字データとを合成し、指定によるサンプルに基づくプリントを作成するため、さらに多種多様の画像を合成することができ、より一層幅広いユーザの多様な要求に応じたプリントを作成することができる。 Also, the first sample identification information D2 designating the first sample and the image data of the first sample are stored, and the second sample identification information D3 designating the second sample and the second sample The image data is stored, the sample image data selected based on the designated first and second sample identification information D2 and D3, and the image data and / or character data based on the order are synthesized, and according to the designation In order to create a print based on a sample, it is possible to synthesize a wider variety of images, and it is possible to create a print that meets a wider variety of user requirements.
操作部11は、情報入力手段12を有する。情報入力手段12は、例えば、タッチパネル等により構成されており、情報入力手段12の押下信号を入力信号として制御部7に出力する。なお、操作部11は、キーボードやマウス等を備えて構成するようにしてもよい。CRT8は、制御部7から入力された表示制御信号に従って、画像情報等を表示する。
The
通信手段(出力)33は、本発明の画像処理を施した後の撮影画像を表す画像信号と、それに付帯するオーダー情報を、画像処理装置1が設置された施設内の他のコンピュータや、インターネット等を介した遠方のコンピュータに対して送信する。
The communication means (output) 33 sends an image signal representing a photographed image after image processing of the present invention and order information attached thereto to other computers in the facility where the
図2に示すように、画像処理装置1は、各種デジタルメディアの画像及び画像原稿を分割測光して得られた画像情報を取り込む画像入力手段と、画像処理手段と、処理済の画像を表示、プリント出力、画像記録メディアに書き込む画像出力手段と、通信回線を介して施設内の別のコンピュータやインターネット等を介した遠方のコンピュータに対して画像データと付帯するオーダー情報を送信する手段と、を備える。
As shown in FIG. 2, the
<画像処理部70の内部構成>
図3に、画像処理部70の内部構成を示す。画像処理部70は、図3に示すように、画像調整処理部701、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703、画像データ書式解読処理部704、テンプレート処理部705、CRT固有処理部706、プリンタ固有処理部A707、プリンタ固有処理部B708、画像データ書式作成処理部709により構成される。
<Internal Configuration of
FIG. 3 shows an internal configuration of the
フィルムスキャンデータ処理部702は、フィルムスキャナ部9から入力された画像データに対し、フィルムスキャナ部9固有の校正操作、ネガポジ反転(ネガ原稿の場合)、ゴミキズ除去、コントラスト調整、粒状ノイズ除去、鮮鋭化強調等の処理を施し、処理済の画像データを画像調整処理部701に出力する。また、フィルムサイズ、ネガポジ種別、フィルムに光学的或いは磁気的に記録された主要被写体に関わる情報、撮影条件に関する情報(例えば、APSの記載情報内容)等も併せて画像調整処理部701に出力する。
The film scan
反射原稿スキャンデータ処理部703は、反射原稿入力装置10から入力された画像データに対し、反射原稿入力装置10固有の校正操作、ネガポジ反転(ネガ原稿の場合)、ゴミキズ除去、コントラスト調整、ノイズ除去、鮮鋭化強調等の処理を施し、処理済の画像データを画像調整処理部701に出力する。
The reflection original scan
画像データ書式解読処理部704は、画像転送手段30及び/又は通信手段(入力)32から入力された画像データに対し、その画像データのデータ書式に従って、必要に応じて圧縮符号の復元、色データの表現方法の変換等の処理を施し、画像処理部70内の演算に適したデータ形式に変換し、画像調整処理部701に出力する。また、画像データ書式解読処理部704は、操作部11、通信手段(入力)32、画像転送手段30の何れかから出力画像の大きさが指定された場合、その指定された情報を検出し、画像調整処理部701に出力する。なお、画像転送手段30により指定される出力画像の大きさについての情報は、画像転送手段30が取得した画像データのヘッダ情報、タグ情報に埋め込まれている。
The image data format
画像調整処理部701は、操作部11又は制御部7の指令に基づいて、フィルムスキャナ部9、反射原稿入力装置10、画像転送手段30、通信手段(入力)32、テンプレート処理部705から受け取った画像データに対し、後述の画像処理(図6、図7、図13及び図17参照)を施して、出力媒体上での鑑賞に最適化された画像形成用のデジタル画像データを生成し、CRT固有処理部706、プリンタ固有処理部A707、プリンタ固有処理部B708、画像データ書式作成処理部709、データ蓄積手段71に出力する。
The image
最適化処理においては、例えばsRGB規格に準拠したCRTディスプレイモニタに表示することを前提とした場合、sRGB規格の色域内で最適な色再現が得られるように処理される。銀塩印画紙への出力を前提とした場合、銀塩印画紙の色域内で最適な色再現が得られるように処理される。また前記色域の圧縮の以外にも、16bitから8bitへの階調圧縮、出力画素数の低減、及び出力デバイスの出力特性(LUT)への対応処理等も含まれる。さらにノイズ抑制、鮮鋭化、グレーバランス調整、彩度調整、或いは覆い焼き処理等の階調圧縮処理が行われることは言うまでもない。 In the optimization process, for example, when it is assumed that the image is displayed on a CRT display monitor compliant with the sRGB standard, the optimal color reproduction is performed within the sRGB standard color gamut. If output to silver salt photographic paper is assumed, processing is performed so that optimum color reproduction is obtained within the color gamut of silver salt photographic paper. In addition to the compression of the color gamut, gradation processing from 16 bits to 8 bits, reduction of the number of output pixels, processing corresponding to output characteristics (LUT) of the output device, and the like are also included. Furthermore, it goes without saying that tone compression processing such as noise suppression, sharpening, gray balance adjustment, saturation adjustment, or dodging processing is performed.
画像調整処理部701は、図3に示すように、撮影画像データの撮影条件を判別して階調調整条件(階調調整方法、階調調整量)を決定するシーン判別部710と、その決定された階調調整条件に従って階調変換処理を行う階調変換部711により構成される。
As shown in FIG. 3, the image
本実施形態において撮影条件は、光源条件と露出条件に分類される。
光源条件とは、撮影時の光源、主要被写体(主に人物)と撮影者との位置関係に由来するものである。広義の意味において、光源の種類(太陽光、ストロボ光、タングステン照明及び蛍光灯)も含まれる。逆光シーンは、主要被写体の背景に太陽が位置することに生じる。また、ストロボ(近接撮影)シーンは、主要被写体にストロボ光が強く照射されることにより生じる。両シーンは、共に撮影輝度(明暗の比)は同程度で、主要被写体の前景と背景の明るさの関係が逆転しているに過ぎない。
In the present embodiment, shooting conditions are classified into light source conditions and exposure conditions.
The light source condition is derived from the light source at the time of photographing, the positional relationship between the main subject (mainly a person) and the photographer. In a broad sense, the type of light source (sunlight, strobe light, tungsten illumination and fluorescent lamp) is also included. Backlit scenes occur when the sun is located in the background of the main subject. Further, a strobe (close-up shooting) scene is generated when strobe light is intensely applied to a main subject. Both scenes have the same shooting brightness (ratio of light and darkness), and the relationship between the foreground and background brightness of the main subject is merely reversed.
一方、露出条件とは、カメラのシャッタースピードや絞り値等の設定に由来するものであり、露出不足の状態をアンダー、適正な露出状態をノーマル、露出過多の状態をオーバーと称する。広義の意味において、所謂「白とび」や「シャドーの潰れ」も含まれる。全ての光源条件において、アンダー或いはオーバーの露出条件とすることができる。特に、ダイナミックレンジの狭いDSC(デジタルスチルカメラ)では、自動露出調整機能を用いても、白とびを抑制することを目的とした設定条件に起因して、アンダー気味の露出条件となる頻度が高い。 On the other hand, the exposure condition is derived from the settings of the camera shutter speed, aperture value, etc., and the underexposure state is referred to as under, the proper exposure state is referred to as normal, and the overexposure state is referred to as over. In a broad sense, so-called “white jump” and “shadow collapse” are also included. Under all light source conditions, under or over exposure conditions can be set. In particular, in a DSC (digital still camera) with a narrow dynamic range, even if the automatic exposure adjustment function is used, the frequency of underexposure exposure conditions is high due to setting conditions intended to suppress overexposure. .
図4(a)に、シーン判別部710の内部構成を示す。シーン判別部710は、図4(a)に示すように、割合算出部712、偏り算出部722、指標算出部713、画像処理条件算出部714により構成される。割合算出部712は、図4(b)に示すように、表色系変換部715、ヒストグラム作成部716、占有率演算部717により構成される。
FIG. 4A shows an internal configuration of the
表色系変換部715は、撮影画像データのRGB(Red, Green, Blue)値をHSV表色系に変換する。HSV表色系とは、画像データを、色相(Hue)、彩度(Saturation)、明度(Value又はBrightness)の3つの要素で表すものであり、マンセルにより提案された表色体系を元にして考案されたものである。
The color
なお、特許請求の範囲及び本実施形態において、「明度」は特に注釈を設けない限り一般に用いられる「明るさ」の意味である。以下の記載において、HSV表色系のV(0〜255)を「明度」として用いるが、他の如何なる表色系の明るさを表す単位系を用いてもよい。その際、本実施形態で記載する各種係数等の数値を、改めて算出し直すことは言うまでもない。また、本実施形形態における撮影画像データは、人物を主要被写体とする画像データであるものとする。 In the claims and this embodiment, “brightness” means “brightness” generally used unless otherwise specified. In the following description, V (0 to 255) of the HSV color system is used as “brightness”, but a unit system representing the brightness of any other color system may be used. At that time, it goes without saying that numerical values such as various coefficients described in the present embodiment are recalculated. The captured image data in the present embodiment is assumed to be image data having a person as a main subject.
ヒストグラム作成部716は、撮影画像データを、所定の色相と明度の組み合わせからなる領域に分割し、分割された領域毎に累積画素数を算出することによって2次元ヒストグラムを作成する。また、ヒストグラム作成部716は、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、分割された領域毎に累積画素数を算出することによって2次元ヒストグラムを作成する。なお、撮影画像データを、撮影画像データの画面の外縁からの距離、明度及び色相の組み合わせからなる領域に分割し、分割された領域毎に累積画素数を算出することによって3次元ヒストグラムを作成するようにしてもよい。以下では、2次元ヒストグラムを作成する方式を採用するものとする。
The
占有率演算部717は、明度と色相の組み合わせによって分割された領域毎に、ヒストグラム作成部716において算出された累積画素数の全画素数(撮影画像データ全体)に占める割合を示す第1の占有率(表1参照)を算出する。また、占有率演算部717は、撮影画像データの画面の外縁からの距離と明度の組み合わせによって分割された領域毎に、ヒストグラム作成部716において算出された累積画素数の全画素数(撮影画像データ全体)に占める割合を示す第2の占有率(表4参照)を算出する。
The
偏り算出部722は、撮影画像データの階調分布の偏りを示す偏倚量を算出する。ここでの偏倚量とは、撮影画像データの輝度値の標準偏差、輝度差分値、画面中央部の肌色平均輝度値、画面中央部の平均輝度値、肌色輝度分布値である。これらの偏倚量の算出処理については、後に図16を参照して詳細に説明する。
The
指標算出部713は、占有率演算部717において各領域毎に算出された第1の占有率に、撮影条件に応じて予め(例えば、判別分析によって)設定された第1の係数(表2参照)を乗算して和をとることにより、撮影条件を特定するための指標1を算出する。指標1は、屋内撮影度、近接撮影度、顔色高明度等のストロボ撮影時の特徴を示すもので、ストロボと判別されるべき画像を他の撮影条件から分離するためのものである。
The
指標1の算出の際、指標算出部713は、所定の高明度の肌色色相領域と、当該高明度の肌色色相領域以外の色相領域とで、異なる符号の係数を用いる。ここで、所定の高明度の肌色色相領域には、HSV表色系の明度値で170〜224の領域が含まれる。また、所定の高明度の肌色色相領域以外の色相領域には、青色色相領域(色相値161〜250)、緑色色相領域(色相値40〜160)の少なくとも一方の高明度領域が含まれる。
When calculating the
また、指標算出部713は、占有率演算部717において各領域毎に算出された第1の占有率に、撮影条件に応じて予め(例えば、判別分析によって)設定された第2の係数(表3参照)を乗算して和をとることにより、撮影条件を特定するための指標2を算出する。指標2は、屋外撮影度、空色高明度、顔色低明度等の逆光撮影時の特徴を複合的に示すもので、逆光と判別されるべき画像を他の撮影条件から分離するためのものである。
The
指標2の算出の際、指標算出部713は、肌色色相領域(色相値0〜39、330〜359)の中間明度領域と、当該中間明度領域以外の明度領域とで、異なる符号の係数を用いる。この肌色色相領域の中間明度領域には、明度値85〜169の領域が含まれる。また、当該中間明度領域以外の明度領域には、例えば、シャドー領域(明度値26〜84)が含まれる。
When calculating the
更に、指標算出部713は、占有率演算部717において各領域毎に算出された第2の占有率に、撮影条件に応じて予め(例えば、判別分析によって)設定された第3の係数(表5参照)を乗算して和をとることにより、撮影条件を特定するための指標3を算出する。指標3は、逆光とストロボ間における、撮影画像データの画面の中心と外側の明暗関係の差異を示すものであり、逆光又はストロボと判別されるべき画像のみを定量的に示すものである。指標3の算出の際、指標算出部713は、撮影画像データの画面の外縁からの距離に応じて異なる値の係数を用いる。
Further, the
また、指標算出部713は、指標1、指標3、撮影画像データの画面中央部における肌色領域の平均輝度値に、それぞれ、撮影条件に応じて予め(例えば、判別分析によって)設定された係数を乗算して和をとることにより指標4を算出する。更に、指標算出部713は、指標2、指標3、画面中央部における肌色領域の平均輝度値に、それぞれ、撮影条件に応じて予め(例えば、判別分析によって)設定された係数を乗算して和をとることにより指標5を算出する。また、指標算出部713は、偏り算出部722において算出された偏倚量に、撮影条件に応じて予め(例えば、判別分析によって)設定された第4の係数(表6参照)を乗算して和をとることにより指標6を算出する。指標算出部713における指標1〜6の具体的な算出方法は、後述の本実施形態の動作説明において詳細に説明する。
In addition, the
図4(c)に、画像処理条件算出部714の内部構成を示す。画像処理条件算出部714は、図4(c)に示すように、シーン判別部718、階調調整方法決定部719、階調調整パラメータ算出部720、階調調整量算出部721により構成される。
FIG. 4C shows the internal configuration of the image processing
シーン判別部718は、指標算出部713において算出された指標4、指標5及び指標6の値と、撮影条件の確度に応じて予め領域分けされ、指標の信頼度を評価する判別マップ(図19参照)に基づいて、撮影画像データの撮影条件を判別する。
The
階調調整方法決定部719は、シーン判別部718において判別された撮影条件に応じて、撮影画像データに対する階調調整の方法を決定する。例えば、撮影条件が順光又はストロボである場合は、図21(a)に示すように、入力された撮影画像データの画素値を平行移動(オフセット)補正する方法(階調調整方法A)が適用される。撮影条件が逆光又はアンダーである場合は、図21(b)に示すように、入力された撮影画像データの画素値をガンマ補正する方法(階調調整方法B)が適用される。また、撮影条件が逆光と順光の中間(低確度領域(1))である場合、又はストロボとアンダーの中間(低確度領域(2))である場合、図21(c)に示すように、入力された撮影画像データの画素値をガンマ補正及び平行移動(オフセット)補正する方法(階調調整方法C)が適用される。
A gradation adjustment
階調調整パラメータ算出部720は、指標算出部713において算出された指標4、指標5及び指標6の値に基づいて、階調調整に必要なパラメータ(キー補正値等)を算出する。
The tone adjustment
階調調整量算出部721は、階調調整パラメータ算出部720において算出された階調調整パラメータに基づいて、撮影画像データに対する階調調整量を算出(決定)する。具体的に、階調調整量算出部721は、階調調整方法決定部719において決定された階調調整方法に対応して予め設定された複数の階調変換曲線の中から、階調調整パラメータ算出部720において算出された階調調整パラメータに対応する階調変換曲線を選択する。なお、階調調整パラメータ算出部720において算出された階調調整パラメータに基づいて階調変換曲線(階調調整量)を算出するようにしてもよい。
The tone adjustment
シーン判別部718における撮影条件の判別方法、階調調整パラメータ算出部720における階調調整パラメータの算出方法は、後述の本実施形態の動作説明において詳細に説明する。
The method for determining the shooting condition in the
図3において階調変換部711は、階調調整量算出部721において決定された階調変換曲線に従って、撮影画像データを階調変換する。
In FIG. 3, the
テンプレート処理部705は、画像調整処理部701からの指令に基づいて、テンプレート記憶手段72から所定の画像データ(テンプレート)を読み出して、画像処理対象の画像データとテンプレートを合成するテンプレート処理を行い、テンプレート処理後の画像データを画像調整処理部701に出力する。
The template processing unit 705 reads out predetermined image data (template) from the
CRT固有処理部706は、画像調整処理部701から入力された画像データに対して、必要に応じて画素数変更やカラーマッチング等の処理を施し、制御情報等表示が必要な情報と合成した表示用の画像データをCRT8に出力する。
The CRT specific processing unit 706 performs a process such as changing the number of pixels and color matching on the image data input from the image
プリンタ固有処理部A707は、必要に応じてプリンタ固有の校正処理、カラーマッチング、画素数変更等の処理を行い、処理済の画像データを露光処理部4に出力する。 The printer-specific processing unit A707 performs printer-specific calibration processing, color matching, pixel number change processing, and the like as necessary, and outputs processed image data to the exposure processing unit 4.
本発明の画像処理装置1に、大判インクジェットプリンタ等の外部プリンタ51が接続可能な場合には、接続するプリンタ装置毎にプリンタ固有処理部B708が備えられている。このプリンタ固有処理部B708は、プリンタ固有の校正処理、カラーマッチング、画素数変更等の処理を施し、処理済の画像データを外部プリンタ51に出力する。
When an
画像データ書式作成処理部709は、画像調整処理部701から入力された画像データに対して、必要に応じてJPEG、TIFF、Exif等に代表される各種の汎用画像フォーマットへの変換を施し、処理済の画像データを画像搬送部31や通信手段(出力)33に出力する。
The image data format creation processing unit 709 converts the image data input from the image
なお、図3に示したフィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703、画像データ書式解読処理部704、画像調整処理部701、CRT固有処理部706、プリンタ固有処理部A707、プリンタ固有処理部B708、画像データ書式作成処理部709、という区分は、画像処理部70の機能の理解を助けるために設けた区分であり、必ずしも物理的に独立したデバイスとして実現される必要はなく、例えば、単一のCPUによるソフトウエア処理の種類の区分として実現されてもよい。
Note that the film scan
次に、本実施形態における動作について説明する。
まず、図5のフローチャートを参照して、画像調整処理部701において実行される処理の流れについて説明する。
Next, the operation in this embodiment will be described.
First, the flow of processing executed in the image
まず、撮影画像データのサイズが縮小される(ステップT1)。撮影画像データのサイズを縮小する方法としては、公知の方法(例えば、バイリニア法、バイキュービック法、ニアレストネ−バー法等)を用いることができる。縮小率としては特に限定はないが、処理速度の観点及び撮影条件の判別精度の観点で、元画像の1/2〜1/10程度が好ましい。 First, the size of the captured image data is reduced (step T1). As a method for reducing the size of the captured image data, a known method (for example, a bilinear method, a bicubic method, a nearest neighbor method, or the like) can be used. The reduction ratio is not particularly limited, but is preferably about 1/2 to 1/10 of the original image from the viewpoint of processing speed and shooting condition determination accuracy.
次いで、縮小された撮影画像データに対して、DSCのホワイトバランス調整の補正処理が行われ(ステップT2)、補正処理後の撮影画像データに基づいて、撮影条件を特定するための指標(指標1〜6)を算出する指標算出処理が行われる(ステップT3)。ステップT3の指標算出処理については、後に図6を参照して詳細に説明する。 Next, DSC white balance adjustment correction processing is performed on the reduced photographed image data (step T2), and an index (index 1) for specifying the photographing condition based on the photographed image data after the correction processing. ˜6) is calculated (step T3). The index calculation process in step T3 will be described in detail later with reference to FIG.
次いで、ステップT3で算出された指標と判別マップに基づいて撮影画像データの撮影条件を判別して、撮影画像データに対する階調調整条件(階調調整方法、階調調整量)を決定する階調調整条件決定処理が行われる(ステップT4)。ステップT4の階調調整条件決定処理については、後に図17を参照して詳細に説明する。 Next, the gradation that determines the shooting condition of the captured image data based on the index calculated in step T3 and the determination map, and determines the gradation adjustment condition (gradation adjustment method, gradation adjustment amount) for the captured image data Adjustment condition determination processing is performed (step T4). The gradation adjustment condition determination processing in step T4 will be described in detail later with reference to FIG.
次いで、元の撮影画像データに対し、ステップT4で決定された階調調整条件に従って階調変換処理が施される(ステップT5)。そして、階調変換処理後の撮影画像データに対し、鮮鋭性を調整する処理が施される(ステップT6)。ステップT6では、撮影条件や出力プリントサイズに応じて、処理量を調整することが好ましい。 Next, gradation conversion processing is performed on the original photographed image data in accordance with the gradation adjustment conditions determined in step T4 (step T5). Then, a process for adjusting the sharpness is performed on the captured image data after the gradation conversion process (step T6). In step T6, it is preferable to adjust the processing amount according to the photographing conditions and the output print size.
次いで、階調調整による硬調化や、鮮鋭性の強調により強調されるノイズを除去する処理が行われる(ステップT7)。次いで、撮影画像データを出力するメディアの種類に合わせて色空間を変換する色補正処理が行われ(ステップT8)、指定されたメディアに画像処理後の撮影画像データが出力される。 Next, a process for removing the noise enhanced by the gradation adjustment and the enhancement of sharpness is performed (step T7). Next, color correction processing is performed to convert the color space in accordance with the type of medium that outputs the captured image data (step T8), and the captured image data after image processing is output to the designated medium.
次に、図6のフローチャートを参照して、シーン判別部710において実行される指標算出処理(図5のステップT3)について説明する。以下の指標算出処理において「撮影画像データ」とは、図5のステップT1において縮小された画像データである。
Next, the index calculation process (step T3 in FIG. 5) executed in the
まず、割合算出部712において、撮影画像データが所定の画像領域に分割され、各分割領域が撮影画像データ全体に占める割合を示す占有率(第1の占有率、第2の占有率)を算出する占有率算出処理が行われる(ステップS1)。占有率算出処理の詳細は、後に図7、図13を参照して説明する。
First, the
次いで、偏り算出部722において、撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出処理が行われる(ステップS2)。ステップS2の偏倚量算出処理については、後に図16を参照して詳細に説明する。
Next, in the
次いで、割合算出部712において算出された占有率と、撮影条件に応じて予め設定された係数に基づいて、光源条件を特定するための指標が算出される(ステップS3)。また、割合算出部712において算出された占有率と、撮影条件に応じて予め設定された係数に基づいて、露出条件を特定するための指標が算出され(ステップS4)、本指標算出処理が終了する。ステップS3及びS4における指標の算出方法は、後に詳細に説明する。
Next, an index for specifying the light source condition is calculated based on the occupation ratio calculated by the
次に、図7のフローチャートを参照して、割合算出部712において実行される第1の占有率算出処理について詳細に説明する。
Next, the first occupancy ratio calculation process executed in the
まず、撮影画像データのRGB値がHSV表色系に変換される(ステップS10)。図8は、RGBからHSV表色系に変換することにより色相値、彩度値、明度値を得る変換プログラム(HSV変換プログラム)の一例を、プログラムコード(c言語)により示したものである。図8に示すHSV変換プログラムでは、入力画像データであるデジタル画像データの値を、InR、InG、InBと定義し、算出された色相値をOutHとし、スケールを0〜360と定義し、彩度値をOutS、明度値をOutVとし、単位を0〜255と定義している。 First, the RGB values of the photographed image data are converted into the HSV color system (step S10). FIG. 8 shows an example of a conversion program (HSV conversion program) that obtains a hue value, a saturation value, and a lightness value by converting from RGB to the HSV color system using program code (c language). In the HSV conversion program shown in FIG. 8, the values of the digital image data as input image data are defined as InR, InG, and InB, the calculated hue value is defined as OutH, the scale is defined as 0 to 360, and the saturation The value is OutS, the brightness value is OutV, and the unit is defined as 0 to 255.
次いで、撮影画像データが、所定の明度と色相の組み合わせからなる領域に分割され、分割領域毎に累積画素数を算出することにより2次元ヒストグラムが作成される(ステップS11)。以下、撮影画像データの領域分割について詳細に説明する。 Next, the photographed image data is divided into regions composed of combinations of predetermined brightness and hue, and a two-dimensional histogram is created by calculating the cumulative number of pixels for each divided region (step S11). Hereinafter, the area division of the captured image data will be described in detail.
明度(V)は、明度値が0〜25(v1)、26-50(v2)、51〜84(v3)、85〜169(v4)、170〜199(v5)、200〜224(v6)、225〜255(v7)の7つの領域に分割される。色相(H)は、色相値が0〜39、330〜359の肌色色相領域(H1及びH2)、色相値が40〜160の緑色色相領域(H3)、色相値が161〜250の青色色相領域(H4)、赤色色相領域(H5)の4つの領域に分割される。なお、赤色色相領域(H5)は、撮影条件の判別への寄与が少ないとの知見から、以下の計算では用いていない。肌色色相領域は、更に、肌色領域(H1)と、それ以外の領域(H2)に分割される。以下、肌色色相領域(H=0〜39、330〜359)のうち、下記の式(1)を満たす色相'(H)を肌色領域(H1)とし、式(1)を満たさない領域を(H2)とする。
10 < 彩度(S) <175、
色相'(H) = 色相(H) + 60 (0 ≦ 色相(H) < 300のとき)、
色相'(H) = 色相(H) - 300 (300 ≦ 色相(H) < 360のとき)、
輝度(Y) = InR × 0.30 + InG × 0.59 + InB × 0.11 (A)
として、
色相'(H)/輝度(Y) < 3.0 ×(彩度(S)/255)+0.7 (1)
従って、撮影画像データの分割領域の数は4×7=28個となる。なお、式(1)において明度(V)を用いることも可能である。
The lightness value (V) is 0-25 (v1), 26-50 (v2), 51-84 (v3), 85-169 (v4), 170-199 (v5), 200-224 (v6) , 225 to 255 (v7). Hue (H) is a skin hue hue area (H1 and H2) with a hue value of 0 to 39, 330 to 359, a green hue area (H3) with a hue value of 40 to 160, and a blue hue area with a hue value of 161 to 250 It is divided into four areas (H4) and a red hue area (H5). Note that the red hue region (H5) is not used in the following calculation because it is known that the contribution to the determination of the imaging condition is small. The flesh-color hue area is further divided into a flesh-color area (H1) and other areas (H2). Hereinafter, among the flesh color hue regions (H = 0 to 39, 330 to 359), a hue color '(H) that satisfies the following equation (1) is defined as a flesh color region (H1), and a region that does not satisfy the equation (1) is ( H2).
10 <Saturation (S) <175,
Hue '(H) = Hue (H) + 60 (when 0 ≤ Hue (H) <300),
Hue '(H) = Hue (H)-300 (when 300 ≤ Hue (H) <360),
Luminance (Y) = InR x 0.30 + InG x 0.59 + InB x 0.11 (A)
As
Hue '(H) / Luminance (Y) <3.0 × (Saturation (S) / 255) +0.7 (1)
Therefore, the number of divided areas of the captured image data is 4 × 7 = 28. In addition, it is also possible to use the brightness (V) in the formula (1).
2次元ヒストグラムが作成されると、分割領域毎に算出された累積画素数の全画素数(撮影画像全体)に占める割合を示す第1の占有率が算出され(ステップS12)、本占有率算出処理が終了する。明度領域vi、色相領域Hjの組み合わせからなる分割領域において算出された第1の占有率をRijとすると、各分割領域における第1の占有率は表1のように表される。
次に、指標1及び指標2の算出方法について説明する。
表2に、ストロボ撮影としての確度、即ち、ストロボ撮影時の顔領域の明度状態を定量的に示す指標1を算出するために必要な第1の係数を分割領域別に示す。表2に示された各分割領域の係数は、表1に示した各分割領域の第1の占有率Rijに乗算する重み係数であり、撮影条件に応じて予め設定されている。
Table 2 shows the first coefficient necessary for calculating the
図9に、明度(v)−色相(H)平面を示す。表2によると、図9において高明度の肌色色相領域に分布する領域(r1)から算出される第1の占有率には、正(+)の係数が用いられ、それ以外の色相である青色色相領域(r2)から算出される第1の占有率には、負(-)の係数が用いられる。図11は、肌色領域(H1)における第1の係数と、その他の領域(緑色色相領域(H3))における第1の係数を、明度全体に渡って連続的に変化する曲線(係数曲線)として示したものである。表2及び図11によると、高明度(V=170〜224)の領域では、肌色領域(H1)における第1の係数の符号は正(+)であり、その他の領域(例えば、緑色色相領域(H3))における第1の係数の符号は負(-)であり、両者の符号が異なっていることがわかる。 FIG. 9 shows a lightness (v) -hue (H) plane. According to Table 2, a positive (+) coefficient is used for the first occupancy calculated from the region (r1) distributed in the skin color hue region of high brightness in FIG. 9, and blue other than that is blue. A negative (−) coefficient is used for the first occupancy calculated from the hue region (r2). FIG. 11 shows a curve (coefficient curve) in which the first coefficient in the skin color area (H1) and the first coefficient in the other areas (green hue area (H3)) change continuously over the entire brightness. It is shown. According to Table 2 and FIG. 11, in the region of high brightness (V = 170 to 224), the sign of the first coefficient in the skin color region (H1) is positive (+), and other regions (for example, the green hue region) The sign of the first coefficient in (H3)) is negative (-), and it can be seen that the signs of the two are different.
明度領域vi、色相領域Hjにおける第1の係数をCijとすると、指標1を算出するためのHk領域の和は、式(2)のように定義される。
H1領域の和=R11×(-44.0)+R21×(-16.0)+(中略)...+R71×(-11.3) (2-1)
H2領域の和=R12×0.0+R22×8.6+(中略)... +R72×(-11.1) (2-2)
H3領域の和=R13×0.0+R23×(-6.3)+(中略)...+R73×(-10.0) (2-3)
H4領域の和=R14×0.0+R24×(-1.8)+(中略)...+R74×(-14.6) (2-4)
When the first coefficient in the lightness region vi and the hue region Hj is Cij, the sum of the Hk regions for calculating the
H1 area sum = R11 x (-44.0) + R21 x (-16.0) + (omitted) ... + R71 x (-11.3) (2-1)
Sum of H2 area = R12 x 0.0 + R22 x 8.6 + (omitted) ... + R72 x (-11.1) (2-2)
Sum of H3 area = R13 x 0.0 + R23 x (-6.3) + (omitted) ... + R73 x (-10.0) (2-3)
Sum of H4 area = R14 x 0.0 + R24 x (-1.8) + (omitted) ... + R74 x (-14.6) (2-4)
指標1は、式(2-1)〜(2-4)で示されたH1〜H4領域の和を用いて、式(3)のように定義される。
指標1=H1領域の和+H2領域の和+H3領域の和+H4領域の和+4.424 (3)
The
表3に、逆光撮影としての確度、即ち、逆光撮影時の顔領域の明度状態を定量的に示す指標2を算出するために必要な第2の係数を分割領域別に示す。表3に示された各分割領域の係数は、表1に示した各分割領域の第1の占有率Rijに乗算する重み係数であり、撮影条件に応じて予め設定されている。
図10に、明度(v)−色相(H)平面を示す。表3によると、図10において肌色色相領域の中間明度に分布する領域(r4)から算出される占有率には負(-)の係数が用いられ、肌色色相領域の低明度(シャドー)領域(r3)から算出される占有率には正(+)の係数が用いられる。図12は、肌色領域(H1)における第2の係数を、明度全体に渡って連続的に変化する曲線(係数曲線)として示したものである。表3及び図12によると、肌色色相領域の、明度値が85〜169(v4)の中間明度領域の第2の係数の符号は負(-)であり、明度値が26〜84(v2,v3)の低明度(シャドー)領域の第2の係数の符号は正(+)であり、両領域での係数の符号が異なっていることがわかる。 FIG. 10 shows the lightness (v) -hue (H) plane. According to Table 3, a negative (-) coefficient is used for the occupancy calculated from the region (r4) distributed in the intermediate lightness of the flesh color hue region in FIG. 10, and the low lightness (shadow) region ( A positive (+) coefficient is used for the occupation ratio calculated from r3). FIG. 12 shows the second coefficient in the skin color region (H1) as a curve (coefficient curve) that continuously changes over the entire brightness. According to Table 3 and FIG. 12, the sign of the second coefficient of the intermediate lightness region of the flesh color hue region having the lightness value of 85 to 169 (v4) is negative (−), and the lightness value is 26 to 84 (v2, It can be seen that the sign of the second coefficient in the low brightness (shadow) region of v3) is positive (+), and the sign of the coefficient in both regions is different.
明度領域vi、色相領域Hjにおける第2の係数をDijとすると、指標2を算出するためのHk領域の和は、式(4)のように定義される。
H1領域の和=R11×(-27.0)+R21×4.5+(中略)...+R71×(-24.0) (4-1)
H2領域の和=R12×0.0+R22×4.7+(中略)... +R72×(-8.5) (4-2)
H3領域の和=R13×0.0+R23×0.0+(中略)...+R73×0.0 (4-3)
H4領域の和=R14×0.0+R24×(-5.1)+(中略)...+R74×7.2 (4-4)
When the second coefficient in the lightness area vi and the hue area Hj is Dij, the sum of the Hk areas for calculating the
H1 area sum = R11 x (-27.0) + R21 x 4.5 + (omitted) ... + R71 x (-24.0) (4-1)
Sum of H2 area = R12 x 0.0 + R22 x 4.7 + (omitted) ... + R72 x (-8.5) (4-2)
Sum of H3 area = R13 x 0.0 + R23 x 0.0 + (omitted) ... + R73 x 0.0 (4-3)
H4 area sum = R14 x 0.0 + R24 x (-5.1) + (omitted) ... + R74 x 7.2 (4-4)
指標2は、式(4-1)〜(4-4)で示されたH1〜H4領域の和を用いて、式(5)のように定義される。
指標2=H1領域の和+H2領域の和+H3領域の和+H4領域の和+1.554 (5)
指標1及び指標2は、撮影画像データの明度と色相の分布量に基づいて算出されるため、撮影画像データがカラー画像である場合の撮影条件の判別に有効である。
The
Since the
次に、図13のフローチャートを参照して、指標3を算出するために割合算出部712において実行される第2の占有率算出処理について詳細に説明する。
Next, the second occupancy rate calculation process executed in the
まず、撮影画像データのRGB値がHSV表色系に変換される(ステップS20)。次いで、撮影画像データが、撮影画像画面の外縁からの距離と明度の組み合わせからなる領域に分割され、分割領域毎に累積画素数を算出することにより2次元ヒストグラムが作成される(ステップS21)。以下、撮影画像データの領域分割について詳細に説明する。 First, the RGB values of the photographed image data are converted into the HSV color system (step S20). Next, the photographed image data is divided into regions each composed of a combination of the distance from the outer edge of the photographed image screen and the brightness, and a two-dimensional histogram is created by calculating the cumulative number of pixels for each divided region (step S21). Hereinafter, the area division of the captured image data will be described in detail.
図14(a)〜(d)に、撮影画像データの画面の外縁からの距離に応じて分割された4つの領域n1〜n4を示す。図14(a)に示す領域n1が外枠であり、図14(b)に示す領域n2が、外枠の内側の領域であり、図14(c)に示す領域n3が、領域n2の更に内側の領域であり、図14(d)に示す領域n4が、撮影画像画面の中心部の領域である。また、明度は、上述のようにv1〜v7の7つの領域に分割するものとする。従って、撮影画像データを、撮影画像画面の外縁からの距離と明度の組み合わせからなる領域に分割した場合の分割領域の数は4×7=28個となる。 14A to 14D show four regions n1 to n4 that are divided according to the distance from the outer edge of the screen of the captured image data. The area n1 shown in FIG. 14A is an outer frame, the area n2 shown in FIG. 14B is an area inside the outer frame, and the area n3 shown in FIG. A region n4 shown in FIG. 14D is an inner region and is a central region of the captured image screen. Further, the lightness is divided into seven regions v1 to v7 as described above. Therefore, when the captured image data is divided into regions composed of combinations of the distance from the outer edge of the captured image screen and the brightness, the number of divided regions is 4 × 7 = 28.
2次元ヒストグラムが作成されると、分割領域毎に算出された累積画素数の全画素数(撮影画像全体)に占める割合を示す第2の占有率が算出され(ステップS22)、本占有率算出処理が終了する。明度領域vi、画面領域njの組み合わせからなる分割領域において算出された第2の占有率をQijとすると、各分割領域における第2の占有率は表4のように表される。
次に、指標3の算出方法について説明する。
表5に、指標3を算出するために必要な第3の係数を分割領域別に示す。表5に示された各分割領域の係数は、表4に示した各分割領域の第2の占有率Qijに乗算する重み係数であり、撮影条件に応じて予め設定されている。
Table 5 shows the third coefficient necessary for calculating the
明度領域vi、画面領域njにおける第3の係数をEijとすると、指標3を算出するためのnk領域(画面領域nk)の和は、式(6)のように定義される。
n1領域の和=Q11×40.1+Q21×37.0+(中略)...+Q71×22.0 (6-1)
n2領域の和=Q12×(-14.8)+Q22×(-10.5)+(中略)...+Q72×0.0 (6-2)
n3領域の和=Q13×24.6+Q23×12.1+(中略)...+Q73×10.1 (6-3)
n4領域の和=Q14×1.5+Q24×(-32.9)+(中略)...+Q74×(-52.2) (6-4)
If the third coefficient in the brightness area vi and the screen area nj is Eij, the sum of the nk area (screen area nk) for calculating the
n1 area sum = Q11 x 40.1 + Q21 x 37.0 + (omitted) ... + Q71 x 22.0 (6-1)
Sum of n2 area = Q12 x (-14.8) + Q22 x (-10.5) + (omitted) ... + Q72 x 0.0 (6-2)
n3 area sum = Q13 x 24.6 + Q23 x 12.1 + (omitted) ... + Q73 x 10.1 (6-3)
n4 area sum = Q14 x 1.5 + Q24 x (-32.9) + (omitted) ... + Q74 x (-52.2) (6-4)
指標3は、式(6-1)〜(6-4)で示されたN1〜H4領域の和を用いて、式(7)のように定義される。
指標3=n1領域の和+n2領域の和+n3領域の和+n4領域の和−12.6201 (7)
指標3は、撮影画像データの明度の分布位置による構図的な特徴(撮影画像データの画面の外縁からの距離)に基づいて算出されるため、カラー画像だけでなくモノクロ画像の撮影条件を判別するのにも有効である。
The
The
次に、図16のフローチャートを参照して、偏り算出部722において実行される偏倚量算出処理(図6のステップS2)について説明する。
Next, a bias amount calculation process (step S2 in FIG. 6) executed in the
まず、撮影画像データのRGB(Red,Green,Blue)値から、式(A)を用いて各画素の輝度Y(明るさ)が算出され、輝度の標準偏差(x1)が算出される(ステップS23)。輝度の標準偏差(x1)は、式(8)のように表される。
次いで、式(9)に示すように、輝度差分値(x2)が算出される(ステップS24)。
輝度差分値(x2)=(最大輝度値−平均輝度値)/255 (9)
式(9)において、最大輝度値とは、撮影画像データの輝度の最大値である。
Next, as shown in Expression (9), a luminance difference value (x2) is calculated (step S24).
Difference in luminance value (x2) = (maximum luminance value-average luminance value) / 255 (9)
In Equation (9), the maximum luminance value is the maximum luminance value of the captured image data.
次いで、撮影画像データの画面中央部における肌色領域の平均輝度値(x3)が算出され(ステップS25)、更に、当該画面中央部における平均輝度値(x4)が算出される(ステップS26)。ここで、画面中央部とは、例えば、図14において、領域n3及び領域n4により構成される領域である。 Next, the average luminance value (x3) of the skin color area in the center of the screen of the captured image data is calculated (step S25), and further, the average luminance value (x4) in the center of the screen is calculated (step S26). Here, the screen center portion is, for example, a region constituted by a region n3 and a region n4 in FIG.
次いで、肌色輝度分布値(x5)が算出され(ステップS27)、本偏倚量算出処理が終了する。撮影画像データの肌色領域の最大輝度値をYskin_max、肌色領域の最小輝度値をYskin_min、肌色領域の平均輝度値をYskin_aveとすると、肌色輝度分布値(x5)は、式(10)のように表される。
x5=(Yskin_max−Yskin_min)/2 −Yskin_ave (10)
Next, the flesh color luminance distribution value (x5) is calculated (step S27), and this deviation amount calculation processing is completed. Assuming that the maximum luminance value of the skin color area of the captured image data is Yskin_max, the minimum luminance value of the skin color area is Yskin_min, and the average luminance value of the skin color area is Yskin_ave, the skin color luminance distribution value (x5) is expressed as shown in Expression (10). Is done.
x5 = (Yskin_max−Yskin_min) / 2−Yskin_ave (10)
撮影画像データの画面中央部における肌色領域の平均輝度値をx6とする。ここでの画面中央部とは、例えば、図14の領域n2、領域n3及び領域n4から構成される領域である。このとき、指標4は、指標1、指標3、x6を用いて式(11)のように定義され、指標5は、指標2、指標3、x6を用いて式(12)のように定義される。
指標4=0.46×指標1+0.61×指標3+0.01×x6−0.79 (11)
指標5=0.58×指標2+0.18×指標3+(-0.03)×x6+3.34 (12)
ここで、式(11)及び式(12)において各指標に乗算される重み係数は、撮影条件に応じて予め設定されている。
Let x6 be the average luminance value of the skin color area in the center of the screen of the captured image data. Here, the center of the screen is, for example, an area composed of the area n2, the area n3, and the area n4 in FIG. At this time, the index 4 is defined as in Expression (11) using the
Index 4 = 0.46 ×
Here, the weighting coefficient by which each index is multiplied in Expression (11) and Expression (12) is set in advance according to the shooting conditions.
指標6は、偏倚量算出処理で算出された偏倚量(x1)〜(x5)に、撮影条件に応じて予め設定された第4の係数を乗算することにより得られる。表6に、各偏倚量に乗算する重み係数である第4の係数を示す。
指標6=x1×0.02+x2×1.13+x3×0.06+x4×(-0.01)+x5×0.03−6.49 (13)
この指標6は、撮影画像データの画面の構図的な特徴だけでなく、輝度ヒストグラム分布情報を持ち合わせており、特に、ストロボ撮影シーンとアンダー撮影シーンの判別に有効である。
The
This
次に、図17のフローチャートを参照して、画像処理条件算出部714において実行される階調調整条件決定処理(図5のステップT4)について説明する。
Next, the tone adjustment condition determination process (step T4 in FIG. 5) executed in the image processing
まず、指標算出部713において算出された指標(指標4〜6)と、撮影条件に応じて予め領域分けされた判別マップに基づいて、撮影画像データの撮影条件が判別される(ステップS30)。以下、撮影条件の判別方法について説明する。 First, the shooting conditions of the captured image data are determined based on the indexes calculated by the index calculation unit 713 (indexes 4 to 6) and the determination map divided in advance according to the shooting conditions (step S30). Hereinafter, a method for determining the photographing condition will be described.
図18(a)は、順光、逆光、ストロボの各撮影条件で60枚ずつ撮影し、合計180枚のデジタル画像データについて、指標4及び指標5を算出し、各撮影条件での指標4及び指標5の値をプロットしたものである。図18(b)は、ストロボ、アンダーの各撮影条件で60枚ずつ撮影し、指標4が0.5より大きい画像の指標4及び指標6の値をプロットしたものである。
In FIG. 18A, 60 images are captured under each of the following light, backlight, and strobe shooting conditions, and index 4 and
判別マップは、指標の信頼度を評価するもので、図19に示すように、順光、逆光、ストロボ、アンダーの各基本領域と、逆光と順光の中間の低確度領域(1)、ストロボとアンダーの中間の低確度領域(2)から構成される。なお、判別マップ上には、逆光とストロボの間の低確度領域等、他の低確度領域も存在するが、本実施形態では省略する。 The discriminant map is for evaluating the reliability of the index. As shown in FIG. 19, the basic areas of the following light, the backlight, the strobe and the under, and the low accuracy area (1) between the backlight and the following light, the strobe It consists of a low accuracy region (2) between the under and under. Note that other low-accuracy regions such as a low-accuracy region between backlight and strobe also exist on the discrimination map, but are omitted in this embodiment.
図18に示した各指標値のプロット図と、図19の判別マップによる撮影条件の判別内容を表7に示す。
撮影条件が判別されると、その判別された撮影条件に応じて、撮影画像データに対する階調調整の方法が決定される(ステップS31)。図20に示すように、撮影条件が順光又はストロボである場合は階調調整方法A(図21(a))が選択され、逆光又はアンダーである場合は階調調整方法B(図21(b))が選択される。また、撮影条件が逆光と順光の中間又はストロボとアンダーの中間である場合(即ち、判別マップ上の低確度領域である場合)は階調調整方法C(図21(c))が選択される。 When the shooting condition is determined, a gradation adjustment method for the shot image data is determined according to the determined shooting condition (step S31). As shown in FIG. 20, the gradation adjustment method A (FIG. 21 (a)) is selected when the photographing condition is normal light or strobe light, and the gradation adjustment method B (FIG. b)) is selected. In addition, when the shooting condition is intermediate between backlight and direct light or intermediate between strobe and under (that is, a low accuracy region on the discrimination map), the gradation adjustment method C (FIG. 21C) is selected. The
このように、撮影条件が順光である場合は、補正量が比較的少ないため、撮影画像データの画素値を平行移動(オフセット)補正する階調調整方法Aを適用することが、ガンマ変動を抑制できる観点から好ましい。また、撮影条件が逆光又はアンダーである場合は、補正量が比較的多いため、階調調整方法Aを適用すると、画像データの存在しない階調が著しく増大し、黒色の白濁化や、白色の明度の低下を招くことになる。従って、撮影条件が逆光又はアンダーである場合は、撮影画像データの画素値をガンマ補正する階調調整方法Bを適用するのが好ましい。また、判別マップ上で低確度領域にある撮影条件の場合、どの低確度領域も、隣接する一方の撮影条件に対する階調調整方法がA又はBとなるため、双方の階調調整方法を混合した階調調整方法Cを適用するのが好ましい。このように低確度領域を設定することにより、異なる階調調整方法を用いた場合でも、処理結果をスムーズに移行させることができる。また、同じ被写体を撮影した複数の写真プリント間での、濃度のばらつきを軽減することができる。なお、図21(b)に示した階調変換曲線は上向きに凸となっているが、下向きに凸の場合もある。また、図21(c)に示した階調変換曲線は下向きに凸となっているが、上向きに凸の場合もある。 Thus, since the correction amount is relatively small when the shooting condition is direct light, applying the gradation adjustment method A that translates (offsets) the pixel value of the captured image data can reduce the gamma variation. It is preferable from the viewpoint of suppression. In addition, when the shooting condition is backlight or under, the correction amount is relatively large. Therefore, when the gradation adjustment method A is applied, the gradation where the image data does not exist is remarkably increased. The brightness will be reduced. Therefore, when the shooting condition is backlight or under, it is preferable to apply the gradation adjustment method B in which the pixel value of the shot image data is gamma corrected. Also, in the case of shooting conditions in the low accuracy region on the discrimination map, the tone adjustment method for one of the adjacent shooting conditions is A or B in any low accuracy region, so both tone adjustment methods are mixed. It is preferable to apply the gradation adjustment method C. By setting the low accuracy region in this way, the processing result can be smoothly transferred even when different gradation adjustment methods are used. In addition, it is possible to reduce variations in density among a plurality of photographic prints taken of the same subject. Note that the tone conversion curve shown in FIG. 21B is convex upward, but may be convex downward. Further, the gradation conversion curve shown in FIG. 21C is convex downward, but may be convex upward.
階調調整方法が決定されると、指標算出部713において算出された指標に基づいて、階調調整に必要なパラメータが算出される(ステップS32)。以下、ステップS32において算出される階調調整パラメータの算出方法について説明する。なお、以下では、8bitの撮影画像データは16bitへと事前に変換されているものとし、撮影画像データの値の単位は16bitであるものとする。 When the gradation adjustment method is determined, parameters necessary for gradation adjustment are calculated based on the index calculated by the index calculation unit 713 (step S32). Hereinafter, the calculation method of the gradation adjustment parameter calculated in step S32 will be described. In the following description, it is assumed that the 8-bit captured image data is converted in advance to 16 bits, and the unit of the value of the captured image data is 16 bits.
階調調整に必要なパラメータ(階調調整パラメータ)として、下記のP1〜P10のパラメータが算出される。
P1:撮影画面全体の平均輝度
P2:ブロック分割平均輝度
P3:肌色領域(H1)の平均輝度
P4:輝度補正値1=P1−P2
P5:再現目標修正値=輝度再現目標値(30360)−P4
P6:オフセット値1=P5−P1
P7:キー補正値
P7':キー補正値2
P8:輝度補正値2
P9:オフセット値2=P5−P8−P1
P10:オフセット値3
As parameters necessary for gradation adjustment (gradation adjustment parameters), the following parameters P1 to P10 are calculated.
P1: Average brightness of the entire shooting screen
P2: Block division average brightness
P3: Average brightness of skin tone area (H1)
P4:
P5: Reproduction target correction value = Brightness reproduction target value (30360)-P4
P6: Offset
P7: Key correction value
P7 ':
P8:
P9: Offset
P10: Offset
ここで、図22及び図23を参照して、パラメータP2の算出方法について説明する。
まず、撮影画像データを正規化するために、CDF(累積密度関数)を作成する。次いで、得られたCDFから最大値と最小値を決定する。この最大値と最小値は、RGB毎に求める。ここで、求められたRGB毎の最大値と最小値を、それぞれ、Rmax、Rmin、Gmax、Gmin、Bmax、Bminとする。
Here, the calculation method of the parameter P2 will be described with reference to FIGS.
First, a CDF (cumulative density function) is created in order to normalize captured image data. Next, the maximum value and the minimum value are determined from the obtained CDF. The maximum value and the minimum value are obtained for each RGB. Here, the maximum value and the minimum value obtained for each RGB are Rmax, Rmin, Gmax, Gmin, Bmax, and Bmin, respectively.
次いで、撮影画像データの任意の画素(Rx,Gx,Bx)に対する正規化画像データを算出する。RプレーンにおけるRxの正規化データをRpoint、GプレーンにおけるGxの正規化データをGpoint、BプレーンにおけるBxの正規化データをBpointとすると、正規化データRpoint、Gpoint、Bpointは、それぞれ、式(14)〜式(16)のように表される。
Rpoint={(Rx−Rmin)/(Rmax−Rmin)}×65535 (14)
Gpoint={(Gx−Gmin)/(Gmax−Gmin)}×65535 (15)
Bpoint={(Bx−Bmin)/(Bmax−Bmin)}×65535 (16)
次いで、式(17)により画素(Rx,Gx,Bx)の輝度Npointを算出する。
Npoint=(Bpoint+Gpoint+Rpoint)/3 (17)
Next, normalized image data for any pixel (Rx, Gx, Bx) of the captured image data is calculated. When Rx normalization data in the R plane is R point , Gx normalization data in the G plane is G point , and Bx normalization data in the B plane is B point , the normalization data R point , G point , and B point are , Respectively, are expressed as in Expression (14) to Expression (16).
R point = {(Rx−Rmin) / (Rmax−Rmin)} × 65535 (14)
G point = {(Gx−Gmin) / (Gmax−Gmin)} × 65535 (15)
B point = {(Bx−Bmin) / (Bmax−Bmin)} × 65535 (16)
Next, the luminance N point of the pixel (Rx, Gx, Bx) is calculated by Expression (17).
N point = (B point + G point + R point ) / 3 (17)
図22(a)は、正規化する前のRGB画素の輝度の度数分布(ヒストグラム)である。図22(a)において、横軸は輝度、縦軸は画素の頻度である。このヒストグラムは、RGB毎に作成する。輝度のヒストグラムが作成されると、式(14)〜(16)により、撮影画像データに対し、プレーン毎に正規化を行う。図22(b)は、式(17)により算出された輝度のヒストグラムを示す。撮影画像データが65535で正規化されているため、各画素は、最大値が65535で最小値が0の間で任意の値をとる。
FIG. 22A shows a frequency distribution (histogram) of luminance of RGB pixels before normalization. In FIG. 22A, the horizontal axis represents luminance, and the vertical axis represents pixel frequency. This histogram is created for each RGB. When the luminance histogram is created, normalization is performed for each plane with respect to the captured image data according to equations (14) to (16). FIG. 22B shows a histogram of luminance calculated by the equation (17). Since the captured image data is normalized by 65535, each pixel takes an arbitrary value between the maximum value 65535 and the
図22(b)に示す輝度ヒストグラムを所定の範囲で区切ってブロックに分割すると、図22(c)に示すような度数分布が得られる。図22(c)において、横軸はブロック番号(輝度)、縦軸は頻度である。 When the luminance histogram shown in FIG. 22B is divided into blocks divided by a predetermined range, a frequency distribution as shown in FIG. 22C is obtained. In FIG. 22C, the horizontal axis is the block number (luminance), and the vertical axis is the frequency.
次いで、図22(c)に示された輝度ヒストグラムから、ハイライト、シャドー領域を削除する処理を行う。これは、白壁や雪上シーンでは、平均輝度が非常に高くなり、暗闇のシーンでは平均輝度は非常に低くなっているため、ハイライト、シャドー領域は、平均輝度制御に悪影響を与えてしまうことによる。そこで、図22(c)に示した輝度ヒストグラムのハイライト領域、シャドー領域を制限することによって、両領域の影響を減少させる。図23(a)(又は図22(c))に示す輝度ヒストグラムにおいて、高輝度領域(ハイライト領域)及び低輝度領域(シャドー領域)を削除すると、図23(b)のようになる。 Next, a process of deleting highlight and shadow areas is performed from the luminance histogram shown in FIG. This is because the average brightness is very high in white walls and snow scenes, and the average brightness is very low in dark scenes, so highlights and shadow areas adversely affect average brightness control. . Therefore, by limiting the highlight area and shadow area of the luminance histogram shown in FIG. 22C, the influence of both areas is reduced. If the high luminance region (highlight region) and the low luminance region (shadow region) are deleted from the luminance histogram shown in FIG. 23A (or FIG. 22C), the result is as shown in FIG.
次いで、図23(c)に示すように、輝度ヒストグラムにおいて、頻度が所定の閾値より大きい領域を削除する。これは、頻度が極端に多い部分が存在すると、この部分のデータが、撮影画像全体の平均輝度に強く影響を与えてしまうため、誤補正が生じやすいことによる。そこで、図23(c)に示すように、輝度ヒストグラムにおいて、閾値以上の画素数を制限する。図23(d)は、画素数の制限処理を行った後の輝度ヒストグラムである。 Next, as shown in FIG. 23C, in the luminance histogram, an area whose frequency is larger than a predetermined threshold is deleted. This is because if there is a part having an extremely high frequency, the data in this part strongly affects the average luminance of the entire captured image, and thus erroneous correction is likely to occur. Therefore, as shown in FIG. 23C, the number of pixels equal to or greater than the threshold is limited in the luminance histogram. FIG. 23D is a luminance histogram after the pixel number limiting process is performed.
正規化された輝度ヒストグラムから、高輝度領域及び低輝度領域を削除し、更に、累積画素数を制限することによって得られた輝度ヒストグラム(図23(d))の各ブロック番号と、それぞれの頻度に基づいて、輝度の平均値を算出したものがパラメータP2である。 Each block number of the luminance histogram (FIG. 23 (d)) obtained by deleting the high luminance region and the low luminance region from the normalized luminance histogram, and further limiting the cumulative number of pixels, and the respective frequencies The parameter P2 is obtained by calculating the average luminance based on the above.
パラメータP1は、撮影画像データ全体の輝度の平均値であり、パラメータP3は、撮影画像データのうち肌色領域(H1)の輝度の平均値である。パラメータP7のキー補正値、パラメータP7'のキー補正値2、パラメータP8の輝度補正値2は、それぞれ、式(18)、式(19)、式(20)のように定義される。
P7(キー補正値)=[P3 −((指標5 / 6)×18000)+22000)]/24.78 (18)
P7'(キー補正値2)=[P3−((指標6/ 6)×10000+30000)]/24.78 (19)
P8(輝度補正値2)=(指標4 / 6)×17500 (20)
The parameter P1 is an average value of the luminance of the entire captured image data, and the parameter P3 is an average value of the luminance of the skin color area (H1) in the captured image data. The key correction value of the parameter P7, the
P7 (key correction value) = [P3-((
P7 '(key correction value 2) = [P3-((
P8 (Luminance correction value 2) = (Indicator 4/6) x 17500 (20)
パラメータP10のオフセット値3は、判別マップ上で低確度領域(1)又は(2)に対応する撮影条件の場合の階調調整パラメータである。以下、パラメータP10の算出方法について説明する。
The offset
まず、該当する低確度領域内の指標のうち、基準となる指標が決定される。例えば、低確度領域(1)であれば、基準指標として指標5が決定され、低確度領域(2)であれば、基準指標として指標6が決定される。そして、その基準指標の値を0〜1の範囲で正規化することによって、当該基準指標が正規化指標へ変換される。正規化指標は、式(21)のように定義される。
正規化指標=(基準指標−指標最小値)/(指標最大値−指標最小値) (21)
式(21)において、指標最大値、指標最小値は、それぞれ、該当する低確度領域内の基準指標の最大値、最小値である。
First, a reference index is determined among the indexes in the corresponding low-accuracy region. For example, in the low accuracy region (1), the
Normalized index = (reference index−index minimum value) / (index maximum value−index minimum value) (21)
In Expression (21), the index maximum value and the index minimum value are the maximum value and the minimum value of the reference index in the corresponding low accuracy region, respectively.
該当する低確度領域と、当該低確度領域に隣接する2つの領域との境界における補正量をそれぞれα、βとする。この補正量α、βは、判別マップ上の各領域の境界において定義された再現目標値を用いて予め算出された固定値である。パラメータP10は、式(21)の正規化指標と、補正量α、βを用いて式(22)のように表される。
P10 =(β−α)×正規化指標+α (22)
なお、本実施形態では、正規化指標と補正量との相関を1次の線形関係としたが、補正量をさらに緩やかに移行させるべく、曲線関係としてもよい。
The correction amounts at the boundary between the corresponding low-accuracy region and two regions adjacent to the low-accuracy region are α and β, respectively. The correction amounts α and β are fixed values calculated in advance using a reproduction target value defined at the boundary of each region on the discrimination map. The parameter P10 is expressed as in Expression (22) using the normalized index of Expression (21) and the correction amounts α and β.
P10 = (β−α) × normalization index + α (22)
In this embodiment, the correlation between the normalization index and the correction amount is a linear relationship, but a curve relationship may be used so that the correction amount can be shifted more gently.
階調調整パラメータが算出されると、その算出された階調調整パラメータに基づいて、撮影画像データに対する階調調整量が決定され(ステップS33)、本階調調整条件決定処理が終了する。ステップS33では、具体的に、ステップS31において決定された階調調整方法に対応して予め設定された複数の階調変換曲線の中から、ステップS32において算出された階調調整パラメータに対応する階調変換曲線が選択(決定)される。なお、ステップS32において算出された階調調整パラメータに基づいて、階調変換曲線(階調調整量)を算出するようにしてもよい。階調変換曲線が決定されると、その決定された階調変換曲線に従って撮影画像データが階調変換される。 When the gradation adjustment parameter is calculated, the gradation adjustment amount for the captured image data is determined based on the calculated gradation adjustment parameter (step S33), and the gradation adjustment condition determination process ends. In step S33, specifically, the step corresponding to the gradation adjustment parameter calculated in step S32 is selected from a plurality of gradation conversion curves set in advance corresponding to the gradation adjustment method determined in step S31. A key conversion curve is selected (determined). Note that the gradation conversion curve (gradation adjustment amount) may be calculated based on the gradation adjustment parameter calculated in step S32. When the gradation conversion curve is determined, the photographed image data is gradation converted according to the determined gradation conversion curve.
以下、各撮影条件の階調変換曲線の決定方法について説明する。
<順光の場合>
撮影条件が順光である場合、パラメータP1をP5と一致させるオフセット補正(8bit値の平行シフト)を下記の式(23)により行う。
出力画像のRGB値=入力画像のRGB値+P6 (23)
従って、撮影条件が順光の場合、図21(a)に示す複数の階調変換曲線の中から、式(23)に対応する階調変換曲線が選択される。又は、式(23)に基づいて階調変換曲線を算出(決定)してもよい。
Hereinafter, a method for determining a gradation conversion curve for each shooting condition will be described.
<For direct light>
When the photographing condition is direct light, offset correction (parallel shift of 8-bit value) for matching the parameter P1 with P5 is performed by the following equation (23).
RGB value of output image = RGB value of input image + P6 (23)
Therefore, when the shooting condition is normal light, a gradation conversion curve corresponding to Expression (23) is selected from the plurality of gradation conversion curves shown in FIG. Alternatively, the gradation conversion curve may be calculated (determined) based on Expression (23).
<逆光の場合>
撮影条件が逆光である場合、図21(b)に示す複数の階調変換曲線の中から、式(18)に示すパラメータP7(キー補正値)に対応する階調変換曲線を選択する。図21(b)の階調変換曲線の具体例を図24に示す。パラメータP7の値と、選択される階調変換曲線の対応関係を以下に示す。
−50 < P7 < +50 の場合→L3
+50 ≦ P7 < +150 の場合→L4
+150 ≦ P7 < +250 の場合→L5
−150 < P7 ≦ −50 の場合→L2
−250 < P7 ≦ −150 の場合→L1
なお、撮影条件が逆光の場合、この階調変換処理とともに、覆い焼き処理を併せて行うことが好ましい。この場合、逆光度を示す指標5に応じて覆い焼き処理の程度も調整されることが望ましい。
<In the case of backlight>
When the photographing condition is backlight, a gradation conversion curve corresponding to the parameter P7 (key correction value) shown in Expression (18) is selected from the plurality of gradation conversion curves shown in FIG. A specific example of the gradation conversion curve of FIG. 21B is shown in FIG. The correspondence between the value of parameter P7 and the selected gradation conversion curve is shown below.
When -50 <P7 <+50 → L3
When +50 ≤ P7 <+150 → L4
When +150 ≤ P7 <+250 → L5
When -150 <P7 ≤ -50 → L2
When -250 <P7 ≤ -150 → L1
When the photographing condition is backlight, it is preferable to perform the dodging process together with the gradation conversion process. In this case, it is desirable to adjust the degree of dodging process according to the
<アンダーの場合>
撮影条件がアンダーである場合、逆光の場合と同様に、図21(b)に示す複数の階調変換曲線の中から、式(19)に示すパラメータP7'(キー補正値2)に対応する階調変換曲線が選択される。パラメータP7'の値と、図24において選択される階調変換曲線との対応関係を以下に示す。
−50 < P7'< +50 の場合→L3
+50 ≦ P7'< +150 の場合→L4
+150 ≦ P7'< +250 の場合→L5
−150 < P7'≦ −50 の場合→L2
−250 < P7'≦ −150 の場合→L1
なお、撮影条件がアンダーである場合は、逆光の場合に示したような覆い焼き処理は行わない。
<In case of under>
When the shooting condition is under, corresponding to the parameter P7 ′ (key correction value 2) shown in Expression (19) from among the plurality of gradation conversion curves shown in FIG. A tone conversion curve is selected. The correspondence between the value of the parameter P7 ′ and the gradation conversion curve selected in FIG. 24 is shown below.
When -50 <P7 '<+50 → L3
When +50 ≤ P7 '<+150 → L4
When +150 ≤ P7 '<+250 → L5
If -150 <P7 '≤ -50 → L2
-250 <P7 '≤ -150 → L1
When the shooting condition is under, dodging processing as shown in the case of backlight is not performed.
<ストロボの場合>
撮影条件がストロボである場合、オフセット補正(8bit値の平行シフト)を式(24)により行う。
出力画像のRGB値=入力画像のRGB値+P9 (24)
従って、撮影条件がストロボの場合、図21(a)に示す複数の階調変換曲線の中から、式(24)に対応する階調変換曲線が選択される。又は、式(24)に基づいて階調変換曲線を算出(決定)してもよい。
<In the case of strobe>
When the shooting condition is a strobe, offset correction (parallel shift of 8-bit value) is performed by Expression (24).
RGB value of output image = RGB value of input image + P9 (24)
Therefore, when the shooting condition is a strobe, a gradation conversion curve corresponding to Expression (24) is selected from a plurality of gradation conversion curves shown in FIG. Alternatively, the gradation conversion curve may be calculated (determined) based on Expression (24).
<低確度領域の撮影条件の場合>
低確度領域の撮影条件である場合、オフセット補正(8bit値の平行シフト)を式(25)により行う。
出力画像のRGB値=入力画像のRGB値+P10 (25)
従って、低確度領域の場合、図21(c)に示す複数の階調変換曲線の中から、式(25)に対応する階調変換曲線が選択される。又は、式(25)に基づいて階調変換曲線を算出(決定)するようにしてもよい。
<In the case of shooting conditions in the low accuracy area>
When the shooting condition is a low-accuracy region, offset correction (parallel shift of 8-bit value) is performed by Expression (25).
RGB value of output image = RGB value of input image + P10 (25)
Therefore, in the case of the low accuracy region, the gradation conversion curve corresponding to the equation (25) is selected from the plurality of gradation conversion curves shown in FIG. Alternatively, the gradation conversion curve may be calculated (determined) based on Expression (25).
なお、本実施形態では、実際に撮影画像データに対して階調変換処理を施す場合、上述の各階調調整条件を16bitから8bitへ変更するものとする。 In the present embodiment, when the gradation conversion process is actually performed on the captured image data, the above-described gradation adjustment conditions are changed from 16 bits to 8 bits.
以上のように、本実施形態の画像処理装置1によれば、撮影画像データの撮影条件を定量的に示す指標を算出し、その算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて撮影条件を判別し、判別結果に応じて撮影画像データに対する階調調整の方法を決定し、撮影画像データの階調調整量(階調変換曲線)を決定することにより、被写体の明度を適切に補正することが可能となる。特に、判別マップに基づいて撮影条件を判別することにより、判別結果の信頼度が高くなり、撮影条件に応じた適切な階調変換を行うことが可能になる。
As described above, according to the
また、ストロボ撮影としての確度を定量的に示す指標1と、逆光撮影としての確度を定量的に示す指標2に加えて、撮影画像データの構図的な要素から導出される指標3を用いて撮影条件を判別することにより、撮影条件の判別精度を向上させることができる。また、撮影画像データの構図的な要素とヒストグラムの分布情報から算出される指標6を用いることで、ストロボ撮影のシーンと、アンダー撮影のシーンとを判別でき、撮影条件の判別精度を一層向上させることができる。
Further, in addition to the
〈撮像装置に適用した例〉
上述の実施形態で示した画像処理方法は、デジタルカメラ等の撮像装置にも適用可能である。図25に、本発明の撮像装置を適用したデジタルカメラ200の構成を示す。デジタルカメラ200は、図25に示すように、CPU201、光学系202、撮像センサ部203、AF演算部204、WB演算部205、AE演算部206、レンズ制御部207、画像処理部208、表示部209、記録データ作成部210、記録メディア211、シーンモード設定キー212、色空間設定キー213、レリーズボタン214、その他操作キー215により構成される。
<Examples applied to imaging devices>
The image processing method shown in the above embodiment can be applied to an imaging apparatus such as a digital camera. FIG. 25 shows a configuration of a
CPU201は、デジタルカメラ200の動作を統括的に制御する。光学系202は、ズームレンズであり、被写体像を撮像センサ部203にあるCCD(Charge-Coupled Device)イメージセンサ上に結像させる。撮像センサ部203は、光学像をCCDイメージセンサによって光電変換し、デジタル信号に変換(A/D変換)して出力する。撮像センサ部203から出力された画像データは、AF演算部204、WB演算部205、AE演算部206、画像処理部208に入力される。
The
AF演算部204は、画面内9ヶ所に設けられたAFエリアの距離を算出して出力する。距離の判定は、画像のコントラスト判定により行われ、CPU201は、この中の最も近距離にある値を選択し、被写体距離とする。WB演算部205は、画像のホワイトバランス評価値を算出して出力する。ホワイトバランス評価値とは、撮影時の光源下で、ニュートラルな被写体のRGB出力値を一致させるために必要なゲイン値で、Gチャネルを基準としてR/G、B/Gの比として算出する。算出された評価値は、画像処理部208に入力され、画像のホワイトバランスが調整される。AE演算部206は、画像データから適正露出値を算出して出力し、CPU201は、算出された適正露出値と現在の露出値が一致するような絞り値とシャッター速度値を算出する。絞り値は、レンズ制御部207に出力され、対応する絞り径が設定される。シャッター速度値は、撮像センサ部203に出力され、対応するCCD積分時間が設定される。
The
画像処理部208は、撮影画像データに対して、ホワイトバランス処理、CCDフィルター配列の補間処理、色変換、1次階調変換、シャープネス補正等の処理を行った後に、上述の実施形態と同様に、撮影条件を特定するための指標(指標1〜6)を算出し、その算出された指標に基づいて撮影条件を判別し、判別結果に基づいて決定された階調変換処理を行うことによって好ましい画像に変換する。その後JPEG圧縮等の変換を実行する。JPEG圧縮された画像データは、表示部209と記録データ作成部210に出力される。
The
表示部209は、撮影画像データを液晶ディスプレイに表示するとともに、CPU201の指示による各種情報を表示する。記録データ作成部210は、JPEG圧縮された画像データと、CPU201から入力された各種撮影画像データをExif(Exchangeable Image File Format)ファイルにフォーマットし、記録メディア211に記録する。記録メディア211の中には、各メーカーが自由な情報を書き込めるスペースとして、メーカーノートと呼ばれる部分があり、撮影条件の判別結果や指標4、指標5及び指標6を記録するようにしてもよい。
The
デジタルカメラ200では、ユーザ設定により撮影シーンモードを切り替えることができる。即ち、撮影シーンモードとして、通常モード、ポートレートモード、風景モードシーンの3つが選択可能で、ユーザは、シーンモード設定キー212を操作して、被写体が人物である場合はポートレートモード、風景の場合は風景モードに切り替えることによって、被写体に適した1次階調変換を実施する。また、デジタルカメラ200は、選択した撮影シーンモードの情報を画像データファイルのメーカーノート部分に付加して記録する。また、デジタルカメラ200は、被写体として選択したAFエリアの位置情報を同様に画像ファイルに記録する。
In the
なお、デジタルカメラ200では、色空間設定キー213によって、出力色空間のユーザ設定が可能になっている。出力色空間としては、sRGB(IEC61966-2-1)とRawの選択が可能である。sRGBが選択された場合は、本実施形態における画像処理を実行するが、Rawが選択された場合は、本実施形態の画像処理は行わず、CCD固有の色空間で出力する。
In the
以上のように、本発明の撮像装置を適用したデジタルカメラ200によれば、上述の画像処理装置1と同様に、撮影画像データの撮影条件を定量的に示す指標を算出し、その算出された指標に基づいて撮影条件を判別し、判別結果に応じて撮影画像データに対する階調調整の方法を決定し、撮影画像データの階調調整量(階調変換曲線)を決定することにより、被写体の明度を適切に補正することが可能となる。このように、デジタルカメラ200の内部で、撮影条件に応じた適切な階調変換処理が行われることにより、デジタルカメラ200とプリンタがパーソナルコンピュータを介さずに直接接続されている場合であっても、好ましい画像を出力することができる。
As described above, according to the
なお、本実施形態における記述内容は、本発明の趣旨を逸脱しない範囲で適宜変更可能である。 Note that the description in the present embodiment can be changed as appropriate without departing from the spirit of the present invention.
例えば、撮影画像データから顔画像を検出し、検出された顔画像に基づいて撮影条件を判別し、階調調整条件を決定するようにしてもよい。また、撮影条件の判別に、Exif情報を用いるようにしてもよい。Exif情報を用いると、撮影条件の判別精度を更に向上させることが可能となる。 For example, a face image may be detected from the photographed image data, the photographing condition may be determined based on the detected face image, and the gradation adjustment condition may be determined. Further, Exif information may be used to determine the shooting condition. By using Exif information, it is possible to further improve the accuracy of determining the shooting conditions.
1 画像処理装置
2 筐体
3 マガジン装填部
4 露光処理部
5 プリント作成部
7 制御部
8 CRT
9 フィルムスキャナ部
10 反射原稿入力装置
11 操作部
12 情報入力手段
14 画像読込部
15 画像書込部
30 画像転送手段
31 画像搬送部
32 通信手段(入力)
33 通信手段(出力)
51 外部プリンタ
70 画像処理部
72 テンプレート記憶手段
701 画像調整処理部
702 フィルムスキャンデータ処理部
703 反射原稿スキャンデータ処理部
704 画像データ書式解読処理部
705 テンプレート処理部
706 CRT固有処理部
707 プリント固有処理部A
708 プリント固有処理部B
709 画像データ書式作成処理部
710 シーン判別部
711 階調変換部
712 割合算出部
713 指標算出部
714 画像処理条件算出部
715 表色系変換部
716 ヒストグラム作成部
717 占有率演算部
718 シーン判別部
719 階調調整方法決定部
720 階調調整パラメータ算出部
721 階調調整量算出部
722 偏り算出部
200 デジタルカメラ(撮像装置)
208 画像処理部
DESCRIPTION OF
DESCRIPTION OF
33 Communication means (output)
51
708 Print unique processing section B
709 Image data format
208 Image processing unit
Claims (96)
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された各領域の占有率及び前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換工程と、
を含むことを特徴とする画像処理方法。 Occupancy rate calculating step of dividing the captured image data into regions composed of combinations of predetermined brightness and hue, and calculating an occupancy ratio indicating the proportion of the entire captured image data for each of the divided regions;
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
In order to specify the shooting condition by multiplying the occupation ratio of each region calculated in the occupation ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the imaging condition An index calculation process for calculating an index of
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
A gradation conversion step of performing gradation conversion processing on the photographed image data using the determined gradation adjustment method;
An image processing method comprising:
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された各領域の占有率及び前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定工程と、
前記調整方法決定工程において決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定工程において決定された階調調整量の階調変換処理を施す階調変換工程と、
を含むことを特徴とする画像処理方法。 Occupancy rate calculating step of dividing the captured image data into regions composed of combinations of predetermined brightness and hue, and calculating an occupancy ratio indicating the proportion of the entire captured image data for each of the divided regions;
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
In order to specify the shooting condition by multiplying the occupation ratio of each region calculated in the occupation ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the imaging condition An index calculation process for calculating an index of
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
An adjustment amount determining step for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion step of performing gradation conversion processing of the gradation adjustment amount determined in the adjustment amount determination step on the captured image data using the gradation adjustment method determined in the adjustment method determination step;
An image processing method comprising:
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された各領域の占有率及び前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換工程と、
を含むことを特徴とする画像処理方法。 The photographed image data is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupancy ratio indicating the ratio of the entire photographed image data for each of the divided areas. An occupancy calculation step to calculate,
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
In order to specify the shooting condition by multiplying the occupation ratio of each region calculated in the occupation ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the imaging condition An index calculation process for calculating an index of
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
A gradation conversion step of performing gradation conversion processing on the photographed image data using the determined gradation adjustment method;
An image processing method comprising:
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された各領域の占有率及び前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定工程と、
前記調整方法決定工程において決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定工程において決定された階調調整量の階調変換処理を施す階調変換工程と、
を含むことを特徴とする画像処理方法。 The photographed image data is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupancy ratio indicating the ratio of the entire photographed image data for each of the divided areas. An occupancy calculation step to calculate,
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
In order to specify the shooting condition by multiplying the occupation ratio of each region calculated in the occupation ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the imaging condition An index calculation process for calculating an index of
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
An adjustment amount determining step for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion step of performing gradation conversion processing of the gradation adjustment amount determined in the adjustment amount determination step on the captured image data using the gradation adjustment method determined in the adjustment method determination step;
An image processing method comprising:
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された第1の占有率及び第2の占有率と、前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換工程と、
を含むことを特徴とする画像処理方法。 The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupancy ratio indicating the proportion of the whole photographed image data is calculated for each of the divided regions, and the photographed image data Is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and a second occupancy ratio indicating the proportion of the whole photographed image data is determined for each of the divided areas. An occupancy calculation step to calculate,
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated in the occupancy ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the shooting condition. An index calculation step for calculating an index for specifying the shooting conditions;
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
A gradation conversion step of performing gradation conversion processing on the photographed image data using the determined gradation adjustment method;
An image processing method comprising:
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出工程と、
前記占有率算出工程において算出された第1の占有率及び第2の占有率と、前記偏倚量算出工程において算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出工程と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別工程と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定工程と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定工程と、
前記調整方法決定工程において決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定工程において決定された階調調整量の階調変換処理を施す階調変換工程と、
を含むことを特徴とする画像処理方法。 The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupancy ratio indicating the proportion of the whole photographed image data is calculated for each of the divided regions, and the photographed image data Is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and a second occupancy ratio indicating the proportion of the whole photographed image data is determined for each of the divided areas. An occupancy calculation step to calculate,
A deviation amount calculating step of calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated in the occupancy ratio calculation step and the deviation amount calculated in the deviation amount calculation step by a coefficient set in advance according to the shooting condition. An index calculation step for calculating an index for specifying the shooting conditions;
A determination step of determining a shooting condition of the captured image data based on the calculated index and a determination map divided in advance according to the accuracy of the shooting condition;
An adjustment method determining step for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
An adjustment amount determining step for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion step of performing gradation conversion processing of the gradation adjustment amount determined in the adjustment amount determination step on the captured image data using the gradation adjustment method determined in the adjustment method determination step;
An image processing method comprising:
前記占有率算出工程において、前記作成された2次元ヒストグラムに基づいて前記占有率が算出されることを特徴とする請求項3又は4に記載の画像処理方法。 Creating a two-dimensional histogram by calculating the cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data,
The image processing method according to claim 3 or 4, wherein, in the occupancy rate calculating step, the occupancy rate is calculated based on the created two-dimensional histogram.
前記占有率算出工程において、前記作成された2次元ヒストグラムに基づいて前記第2の占有率が算出されることを特徴とする請求項5又は6に記載の画像処理方法。 Creating a two-dimensional histogram by calculating the cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data,
The image processing method according to claim 5 or 6, wherein, in the occupancy rate calculating step, the second occupancy rate is calculated based on the created two-dimensional histogram.
前記占有率算出工程において、前記作成された2次元ヒストグラムに基づいて前記占有率が算出されることを特徴とする請求項1又は2に記載の画像処理方法。 Creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the captured image data;
The image processing method according to claim 1, wherein, in the occupancy rate calculating step, the occupancy rate is calculated based on the created two-dimensional histogram.
前記占有率算出工程において、前記作成された2次元ヒストグラムに基づいて前記第1の占有率が算出されることを特徴とする請求項5又は6に記載の画像処理方法。 Creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the captured image data;
The image processing method according to claim 5 or 6, wherein, in the occupancy rate calculating step, the first occupancy rate is calculated based on the created two-dimensional histogram.
前記光源条件にはストロボ撮影状態が含まれ、前記露出条件には、撮影時のシャッタースピード、絞り値に由来するアンダー撮影状態が含まれることを特徴とする請求項1〜23の何れか一項に記載の画像処理方法。 The shooting conditions indicate light source conditions and exposure conditions during shooting,
The light source condition includes a strobe shooting state, and the exposure condition includes an under shooting state derived from a shutter speed and an aperture value at the time of shooting. An image processing method described in 1.
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、
を備えることを特徴とする画像処理装置。 Occupancy rate calculating means for dividing the captured image data into regions composed of combinations of predetermined brightness and hue, and for each of the divided regions, calculating an occupancy rate indicating the proportion of the entire captured image data;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the captured image data using the determined gradation adjustment method;
An image processing apparatus comprising:
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、
を備えることを特徴とする画像処理装置。 Occupancy rate calculating means for dividing the captured image data into regions composed of combinations of predetermined brightness and hue, and for each of the divided regions, calculating an occupancy rate indicating the proportion of the entire captured image data;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means;
An image processing apparatus comprising:
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、
を備えることを特徴とする画像処理装置。 The photographed image data is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupation ratio indicating a ratio of the whole photographed image data for each of the divided areas. Occupancy ratio calculating means for calculating;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the captured image data using the determined gradation adjustment method;
An image processing apparatus comprising:
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、
を備えることを特徴とする画像処理装置。 The photographed image data is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupation ratio indicating a ratio of the whole photographed image data for each of the divided areas. Occupancy ratio calculating means for calculating;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means;
An image processing apparatus comprising:
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された第1の占有率及び第2の占有率と、前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、
を備えることを特徴とする画像処理装置。 The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupation ratio indicating a ratio of the whole photographed image data is calculated for each of the divided regions, and the photographed image data Is divided into predetermined areas consisting of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and a second occupancy ratio indicating the proportion of the whole photographed image data for each of the divided areas is obtained. Occupancy ratio calculating means for calculating;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the photographing condition. , An index calculating means for calculating an index for specifying the shooting conditions;
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the captured image data using the determined gradation adjustment method;
An image processing apparatus comprising:
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された第1の占有率及び第2の占有率と、前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、
を備えることを特徴とする画像処理装置。 The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupation ratio indicating a ratio of the whole photographed image data is calculated for each of the divided regions, and the photographed image data Is divided into predetermined areas consisting of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and a second occupancy ratio indicating the proportion of the whole photographed image data for each of the divided areas is obtained. Occupancy ratio calculating means for calculating;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the photographing condition. , An index calculating means for calculating an index for specifying the shooting conditions;
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means;
An image processing apparatus comprising:
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴とする請求項27又は28に記載の画像処理装置。 Means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data;
The image processing apparatus according to claim 27 or 28, wherein the occupancy ratio calculating unit calculates the occupancy ratio based on the created two-dimensional histogram.
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記第2の占有率を算出することを特徴とする請求項29又は30に記載の画像処理装置。 Means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data;
31. The image processing apparatus according to claim 29, wherein the occupancy rate calculating unit calculates the second occupancy rate based on the created two-dimensional histogram.
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴とする請求項25又は26に記載の画像処理装置。 Means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the photographed image data;
27. The image processing apparatus according to claim 25, wherein the occupancy ratio calculating unit calculates the occupancy ratio based on the created two-dimensional histogram.
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記第1の占有率を算出することを特徴とする請求項29又は30に記載の画像処理装置。 Means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the photographed image data;
31. The image processing apparatus according to claim 29, wherein the occupancy rate calculating unit calculates the first occupancy rate based on the created two-dimensional histogram.
前記光源条件にはストロボ撮影状態が含まれ、前記露出条件には、撮影時のシャッタースピード、絞り値に由来するアンダー撮影状態が含まれることを特徴とする請求項25〜47の何れか一項に記載の画像処理装置。 The shooting conditions indicate light source conditions and exposure conditions during shooting,
48. The light source condition includes a strobe shooting state, and the exposure condition includes an under shooting state derived from a shutter speed and an aperture value at the time of shooting. An image processing apparatus according to 1.
前記撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、
を備えることを特徴とする撮像装置。 Imaging means for photographing a subject and obtaining photographed image data;
Occupancy rate calculating means for dividing the photographed image data into regions composed of combinations of predetermined brightness and hue, and for each of the divided regions, calculating an occupation rate indicating a proportion of the entire photographed image data;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the captured image data using the determined gradation adjustment method;
An imaging apparatus comprising:
前記撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、
を備えることを特徴とする撮像装置。 Imaging means for photographing a subject and obtaining photographed image data;
Occupancy rate calculating means for dividing the photographed image data into regions composed of combinations of predetermined brightness and hue, and for each of the divided regions, calculating an occupation rate indicating a proportion of the entire photographed image data;
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means;
An imaging apparatus comprising:
前記撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、
を備えることを特徴とする撮像装置。 Imaging means for photographing a subject and obtaining photographed image data;
Dividing the photographed image data into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupancy ratio indicating a ratio of the entire photographed image data for each of the divided areas Occupancy ratio calculating means for calculating
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the captured image data using the determined gradation adjustment method;
An imaging apparatus comprising:
前記撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された各領域の占有率及び前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、
を備えることを特徴とする撮像装置。 Imaging means for photographing a subject and obtaining photographed image data;
Dividing the photographed image data into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupancy ratio indicating a ratio of the entire photographed image data for each of the divided areas Occupancy ratio calculating means for calculating
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the shooting conditions. Index calculating means for calculating the index of
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means;
An imaging apparatus comprising:
前記撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された第1の占有率及び第2の占有率と、前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換手段と、
を備えることを特徴とする撮像装置。 Imaging means for photographing a subject and obtaining photographed image data;
The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupancy ratio indicating the proportion of the whole photographed image data is calculated for each of the divided regions, and the photographed image A second occupancy ratio that divides the data into a predetermined area composed of a combination of the distance from the outer edge of the screen of the captured image data and the brightness and occupies the entire captured image data for each of the divided areas Occupancy ratio calculating means for calculating
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the photographing condition. , An index calculating means for calculating an index for specifying the shooting conditions;
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Gradation conversion means for performing gradation conversion processing on the captured image data using the determined gradation adjustment method;
An imaging apparatus comprising:
前記撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出手段と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出手段と、
前記占有率算出手段により算出された第1の占有率及び第2の占有率と、前記偏倚量算出手段により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出手段と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別手段と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定手段と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定手段と、
前記調整方法決定手段により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定手段により決定された階調調整量の階調変換処理を施す階調変換手段と、
を備えることを特徴とする撮像装置。 Imaging means for photographing a subject and obtaining photographed image data;
The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupancy ratio indicating the proportion of the whole photographed image data is calculated for each of the divided regions, and the photographed image A second occupancy ratio that divides the data into a predetermined area composed of a combination of the distance from the outer edge of the screen of the captured image data and the brightness and occupies the entire captured image data for each of the divided areas Occupancy ratio calculating means for calculating
A deviation amount calculating means for calculating a deviation amount indicating a deviation in gradation distribution of the photographed image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculating means and the deviation amount calculated by the deviation amount calculating means by a coefficient set in advance according to the photographing condition. , An index calculating means for calculating an index for specifying the shooting conditions;
A discriminating means for discriminating a photographing condition of the photographed image data based on the calculated index and a discriminant map previously divided according to the accuracy of the photographing condition;
An adjustment method determining means for determining a method of gradation adjustment for the captured image data according to the determined imaging condition;
Adjustment amount determining means for determining a gradation adjustment amount for the captured image data based on the calculated index;
Gradation conversion means for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination means on the captured image data using the gradation adjustment method determined by the adjustment method determination means;
An imaging apparatus comprising:
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴とする請求項51又は52に記載の撮像装置。 Means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data;
53. The imaging apparatus according to claim 51, wherein the occupancy ratio calculating unit calculates the occupancy ratio based on the created two-dimensional histogram.
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記第2の占有率を算出することを特徴とする請求項53又は54に記載の撮像装置。 Means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data;
55. The imaging apparatus according to claim 53 or 54, wherein the occupancy rate calculating unit calculates the second occupancy rate based on the created two-dimensional histogram.
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴とする請求項49又は50に記載の撮像装置。 Means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the photographed image data;
51. The imaging apparatus according to claim 49, wherein the occupancy rate calculation unit calculates the occupancy rate based on the created two-dimensional histogram.
前記占有率算出手段は、前記作成された2次元ヒストグラムに基づいて前記第1の占有率を算出することを特徴とする請求項53又は54に記載の撮像装置。 Means for creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the photographed image data;
55. The imaging apparatus according to claim 53 or 54, wherein the occupancy rate calculating means calculates the first occupancy rate based on the created two-dimensional histogram.
前記光源条件にはストロボ撮影状態が含まれ、前記露出条件には、撮影時のシャッタースピード、絞り値に由来するアンダー撮影状態が含まれることを特徴とする請求項49〜71の何れか一項に記載の撮像装置。 The shooting conditions indicate light source conditions and exposure conditions during shooting,
72. The light source condition includes a strobe shooting state, and the exposure condition includes an under shooting state derived from a shutter speed and an aperture value at the time of shooting. The imaging device described in 1.
撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された各領域の占有率及び前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換機能と、
を実現させるための画像処理プログラム。 In the computer for executing image processing,
Occupancy rate calculation function for dividing the captured image data into regions composed of combinations of predetermined brightness and hue, and for each of the divided regions, calculating an occupation rate indicating the proportion of the entire captured image data;
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupation ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the imaging condition. An index calculation function to calculate
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
A gradation conversion function for performing gradation conversion processing on the captured image data using the determined gradation adjustment method;
An image processing program for realizing
撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された各領域の占有率及び前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定機能と、
前記調整方法決定機能により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定機能により決定された階調調整量の階調変換処理を施す階調変換機能と、
を実現させるための画像処理プログラム。 In the computer for executing image processing,
Occupancy rate calculation function for dividing the captured image data into regions composed of combinations of predetermined brightness and hue, and for each of the divided regions, calculating an occupation rate indicating the proportion of the entire captured image data;
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupation ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the imaging condition. An index calculation function to calculate
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
An adjustment amount determination function for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion function for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination function on the captured image data using the gradation adjustment method determined by the adjustment method determination function;
An image processing program for realizing
撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された各領域の占有率及び前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換機能と、
を実現させるための画像処理プログラム。 In the computer for executing image processing,
The photographed image data is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupancy ratio indicating the ratio of the entire photographed image data for each of the divided areas. Occupancy rate calculation function to calculate,
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupation ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the imaging condition. An index calculation function to calculate
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
A gradation conversion function for performing gradation conversion processing on the captured image data using the determined gradation adjustment method;
An image processing program for realizing
撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された各領域の占有率及び前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定機能と、
前記調整方法決定機能により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定機能により決定された階調調整量の階調変換処理を施す階調変換機能と、
を実現させるための画像処理プログラム。 In the computer for executing image processing,
The photographed image data is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and an occupancy ratio indicating the ratio of the entire photographed image data for each of the divided areas. Occupancy rate calculation function to calculate,
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
To specify the shooting condition by multiplying the occupation ratio of each area calculated by the occupation ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the imaging condition. An index calculation function to calculate
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
An adjustment amount determination function for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion function for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination function on the captured image data using the gradation adjustment method determined by the adjustment method determination function;
An image processing program for realizing
撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された第1の占有率及び第2の占有率と、前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記決定された階調調整方法を用いて、前記撮影画像データに対し階調変換処理を施す階調変換機能と、
を実現させるための画像処理プログラム。 In the computer for executing image processing,
The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupancy ratio indicating the proportion of the whole photographed image data is calculated for each of the divided regions, and the photographed image data Is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and a second occupancy ratio indicating the proportion of the whole photographed image data is determined for each of the divided areas. Occupancy rate calculation function to calculate,
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the shooting condition. , An index calculation function for calculating an index for specifying shooting conditions,
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
A gradation conversion function for performing gradation conversion processing on the captured image data using the determined gradation adjustment method;
An image processing program for realizing
撮影画像データを、所定の明度と色相の組み合わせからなる領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第1の占有率を算出するとともに、撮影画像データを、当該撮影画像データの画面の外縁からの距離と明度の組み合わせからなる所定の領域に分割し、当該分割された領域毎に、前記撮影画像データ全体に占める割合を示す第2の占有率を算出する占有率算出機能と、
前記撮影画像データの階調分布の偏りを示す偏倚量を算出する偏倚量算出機能と、
前記占有率算出機能により算出された第1の占有率及び第2の占有率と、前記偏倚量算出機能により算出された偏倚量に、撮影条件に応じて予め設定された係数を乗算することにより、撮影条件を特定するための指標を算出する指標算出機能と、
前記算出された指標と、撮影条件の確度に応じて予め領域分けされた判別マップに基づいて、前記撮影画像データの撮影条件を判別する判別機能と、
前記判別された撮影条件に応じて、前記撮影画像データに対する階調調整の方法を決定する調整方法決定機能と、
前記算出された指標に基づいて、前記撮影画像データに対する階調調整量を決定する調整量決定機能と、
前記調整方法決定機能により決定された階調調整方法を用いて、前記撮影画像データに対し、前記調整量決定機能により決定された階調調整量の階調変換処理を施す階調変換機能と、
を実現させるための画像処理プログラム。 In the computer for executing image processing,
The photographed image data is divided into regions composed of a combination of predetermined brightness and hue, and a first occupancy ratio indicating the proportion of the whole photographed image data is calculated for each of the divided regions, and the photographed image data Is divided into predetermined areas composed of a combination of the distance from the outer edge of the screen of the photographed image data and the brightness, and a second occupancy ratio indicating the proportion of the whole photographed image data is determined for each of the divided areas. Occupancy rate calculation function to calculate,
A deviation amount calculation function for calculating a deviation amount indicating a deviation in gradation distribution of the captured image data;
By multiplying the first occupancy ratio and the second occupancy ratio calculated by the occupancy ratio calculation function and the deviation amount calculated by the deviation amount calculation function by a coefficient set in advance according to the shooting condition. , An index calculation function for calculating an index for specifying shooting conditions,
A discriminating function for discriminating the photographing condition of the photographed image data based on the calculated index and a discriminant map preliminarily divided according to the accuracy of the photographing condition;
An adjustment method determining function for determining a method of gradation adjustment for the captured image data according to the determined shooting condition;
An adjustment amount determination function for determining a gradation adjustment amount for the captured image data based on the calculated index;
A gradation conversion function for performing gradation conversion processing of the gradation adjustment amount determined by the adjustment amount determination function on the captured image data using the gradation adjustment method determined by the adjustment method determination function;
An image processing program for realizing
前記占有率算出機能を実現させる際に、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴とする請求項75又は76に記載の画像処理プログラム。 Realizing the function of creating a two-dimensional histogram by calculating the cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data,
The image processing program according to claim 75 or 76, wherein the occupancy rate is calculated based on the created two-dimensional histogram when the occupancy rate calculation function is realized.
前記占有率算出機能を実現させる際に、前記作成された2次元ヒストグラムに基づいて前記第2の占有率を算出することを特徴とする請求項77又は78に記載の画像処理プログラム。 Realizing the function of creating a two-dimensional histogram by calculating the cumulative number of pixels for each distance and brightness from the outer edge of the screen of the captured image data,
The image processing program according to claim 77 or 78, wherein the second occupation ratio is calculated based on the created two-dimensional histogram when the occupation ratio calculation function is realized.
前記占有率算出機能を実現させる際に、前記作成された2次元ヒストグラムに基づいて前記占有率を算出することを特徴とする請求項73又は74に記載の画像処理プログラム。 Realizing a function of creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the captured image data;
The image processing program according to claim 73 or 74, wherein the occupancy ratio is calculated based on the created two-dimensional histogram when the occupancy ratio calculation function is realized.
前記占有率算出機能を実現させる際に、前記作成された2次元ヒストグラムに基づいて前記第1の占有率を算出することを特徴とする請求項77又は78に記載の画像処理プログラム。 Realizing a function of creating a two-dimensional histogram by calculating the cumulative number of pixels for each predetermined hue and brightness of the captured image data;
The image processing program according to claim 77 or 78, wherein when the occupancy rate calculation function is realized, the first occupancy rate is calculated based on the created two-dimensional histogram.
前記光源条件にはストロボ撮影状態が含まれ、前記露出条件には、撮影時のシャッタースピード、絞り値に由来するアンダー撮影状態が含まれることを特徴とする請求項73〜95の何れか一項に記載の画像処理プログラム。 The shooting conditions indicate light source conditions and exposure conditions during shooting,
96. The light source condition includes a strobe shooting state, and the exposure condition includes an under shooting state derived from a shutter speed and an aperture value at the time of shooting. The image processing program described in 1.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004275212A JP2006092133A (en) | 2004-09-22 | 2004-09-22 | Image processing method, image processor, imaging device and image processing program |
PCT/JP2005/016383 WO2006033235A1 (en) | 2004-09-22 | 2005-09-07 | Image processing method, image processing device, imaging device, and image processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004275212A JP2006092133A (en) | 2004-09-22 | 2004-09-22 | Image processing method, image processor, imaging device and image processing program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006092133A true JP2006092133A (en) | 2006-04-06 |
Family
ID=36089998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004275212A Pending JP2006092133A (en) | 2004-09-22 | 2004-09-22 | Image processing method, image processor, imaging device and image processing program |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2006092133A (en) |
WO (1) | WO2006033235A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006123492A1 (en) * | 2005-05-19 | 2006-11-23 | Konica Minolta Photo Imaging, Inc. | Image processing method, image processing device, imaging device and image processing program |
KR101323731B1 (en) | 2006-01-04 | 2013-10-31 | 삼성전자주식회사 | Method for display exposure area |
JP2014010686A (en) * | 2012-06-29 | 2014-01-20 | Secom Co Ltd | Face image authentication device |
KR20190063524A (en) * | 2017-11-30 | 2019-06-10 | 주식회사 룰루랩 | portable skin condition measuring device comprising polarizing film, and the diagnosis and managing system using thereof |
KR20190063525A (en) * | 2017-11-30 | 2019-06-10 | 주식회사 룰루랩 | portable skin condition measuring device, and the diagnosis and managing system using thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000148980A (en) * | 1998-11-12 | 2000-05-30 | Fuji Photo Film Co Ltd | Image processing method, image processor and recording medium |
JP2002199221A (en) * | 2000-12-27 | 2002-07-12 | Fuji Photo Film Co Ltd | Density correction curve generating device and method |
JP2002247393A (en) * | 2001-02-14 | 2002-08-30 | Konica Corp | Method of processing image |
-
2004
- 2004-09-22 JP JP2004275212A patent/JP2006092133A/en active Pending
-
2005
- 2005-09-07 WO PCT/JP2005/016383 patent/WO2006033235A1/en active Application Filing
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006123492A1 (en) * | 2005-05-19 | 2006-11-23 | Konica Minolta Photo Imaging, Inc. | Image processing method, image processing device, imaging device and image processing program |
JP2006325015A (en) * | 2005-05-19 | 2006-11-30 | Konica Minolta Photo Imaging Inc | Image processing method, image processing apparatus, imaging apparatus, and image processing program |
KR101323731B1 (en) | 2006-01-04 | 2013-10-31 | 삼성전자주식회사 | Method for display exposure area |
JP2014010686A (en) * | 2012-06-29 | 2014-01-20 | Secom Co Ltd | Face image authentication device |
KR20190063524A (en) * | 2017-11-30 | 2019-06-10 | 주식회사 룰루랩 | portable skin condition measuring device comprising polarizing film, and the diagnosis and managing system using thereof |
KR20190063525A (en) * | 2017-11-30 | 2019-06-10 | 주식회사 룰루랩 | portable skin condition measuring device, and the diagnosis and managing system using thereof |
KR102052722B1 (en) | 2017-11-30 | 2019-12-11 | 주식회사 룰루랩 | portable skin condition measuring device comprising polarizing film, and the diagnosis and managing system using thereof |
KR102052723B1 (en) | 2017-11-30 | 2019-12-13 | 주식회사 룰루랩 | portable skin condition measuring device, and the diagnosis and managing system using thereof |
Also Published As
Publication number | Publication date |
---|---|
WO2006033235A1 (en) | 2006-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2006325015A (en) | Image processing method, image processing apparatus, imaging apparatus, and image processing program | |
JP2006319714A (en) | Method, apparatus, and program for processing image | |
JP2004173010A (en) | Image pickup device, image processor, image recorder, image processing method, program and recording medium | |
JP2005190435A (en) | Image processing method, image processing apparatus and image recording apparatus | |
JPWO2005112428A1 (en) | Image processing method, image processing apparatus, image recording apparatus, and image processing program | |
JP2007184888A (en) | Imaging apparatus, image processor, image processing method, and image processing program | |
JP2006318255A (en) | Image processing method, image processor and image processing program | |
JP2005192162A (en) | Image processing method, image processing apparatus, and image recording apparatus | |
WO2006033235A1 (en) | Image processing method, image processing device, imaging device, and image processing program | |
JP2006203566A (en) | Imaging apparatus, image processing apparatus and image processing method | |
JP2007311895A (en) | Imaging apparatus, image processor, image processing method and image processing program | |
JP2007228221A (en) | Imaging apparatus, image processing apparatus, image processing method and image processing program | |
WO2006033236A1 (en) | Image processing method, image processing device, imaging device, and image processing program | |
JP2007293686A (en) | Imaging apparatus, image processing apparatus, image processing method and image processing program | |
JP2007221678A (en) | Imaging apparatus, image processor, image processing method and image processing program | |
JP2007312294A (en) | Imaging apparatus, image processor, method for processing image, and image processing program | |
JP2007243542A (en) | Imaging apparatus, image processing apparatus, image processing method, and image processing program | |
JP2006345272A (en) | Image processing method, image processing apparatus, image pickup apparatus and image processing program | |
JP2006094000A (en) | Image processing method, image processing apparatus, and image processing program | |
JP2005332054A (en) | Image processing method, image processor, image recording device and image processing program | |
JP2007312125A (en) | Image processor, image processing method, and image processing program | |
WO2006033234A1 (en) | Image processing method, image processing device, imaging device, and image processing program | |
JP2006203571A (en) | Imaging apparatus, image processing apparatus, and image recording apparatus | |
JP2006203573A (en) | Imaging apparatus, image processor, and image recording apparatus | |
JP4449619B2 (en) | Image processing method, image processing apparatus, and image processing program |