JP2006004124A - Picture correction apparatus and method, and picture correction program - Google Patents
Picture correction apparatus and method, and picture correction program Download PDFInfo
- Publication number
- JP2006004124A JP2006004124A JP2004179080A JP2004179080A JP2006004124A JP 2006004124 A JP2006004124 A JP 2006004124A JP 2004179080 A JP2004179080 A JP 2004179080A JP 2004179080 A JP2004179080 A JP 2004179080A JP 2006004124 A JP2006004124 A JP 2006004124A
- Authority
- JP
- Japan
- Prior art keywords
- luminance value
- noise amount
- image
- luminance
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 21
- 238000006243 chemical reaction Methods 0.000 claims description 50
- 238000003702 image correction Methods 0.000 claims description 42
- 238000005192 partition Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 5
- 238000000638 solvent extraction Methods 0.000 description 3
- 239000013598 vector Substances 0.000 description 3
- 210000000887 face Anatomy 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 241000167854 Bourreria succulenta Species 0.000 description 1
- 241000282472 Canis lupus familiaris Species 0.000 description 1
- 241000282693 Cercopithecidae Species 0.000 description 1
- 241000196324 Embryophyta Species 0.000 description 1
- 241000282326 Felis catus Species 0.000 description 1
- 241000287828 Gallus gallus Species 0.000 description 1
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 description 1
- 241000282412 Homo Species 0.000 description 1
- 241001465754 Metazoa Species 0.000 description 1
- 241000283973 Oryctolagus cuniculus Species 0.000 description 1
- 235000004789 Rosa xanthina Nutrition 0.000 description 1
- 241000109329 Rosa xanthina Species 0.000 description 1
- 241000270295 Serpentes Species 0.000 description 1
- 235000010724 Wisteria floribunda Nutrition 0.000 description 1
- 235000019693 cherries Nutrition 0.000 description 1
- 235000013330 chicken meat Nutrition 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 210000001508 eye Anatomy 0.000 description 1
- 210000004709 eyebrow Anatomy 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 210000004209 hair Anatomy 0.000 description 1
- 210000000214 mouth Anatomy 0.000 description 1
- 210000001331 nose Anatomy 0.000 description 1
- 235000021018 plums Nutrition 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
Description
この発明は,デジタル画像データに対して画像補正を施すための画像補正装置および方法,ならびに画像補正をコンピュータに実行させるためのプログラムに関する。 The present invention relates to an image correction apparatus and method for performing image correction on digital image data, and a program for causing a computer to perform image correction.
写真ネガフイルムやリバーサルフイルムに記録された画像をスキャナ等により読み取ることにより得られたデジタル画像データ,デジタルカメラにより取得されたデジタル画像データによって表される画像等をカラープリントを作成する場合において,プリント画像に含まれる人物の顔などの所望の被写体像部分の明るさ(輝度,濃度)が適切な明るさ(輝度,濃度)となるように,デジタル画像データに対して明るさ補正(輝度補正,濃度補正)が行われることがある。特許文献1では,画像に含まれる人物の顔を抽出し,顔領域平均濃度が補正目標範囲となるように,画像データに対し濃度補正を施している。
しかしながら,画像を明るく補正した場合,画像に含まれるノイズは,補正前よりも目立って視認される傾向がある。すなわち,特許文献1のように,画像に含まれる人物の顔などの所望とされる被写体像の部分の平均濃度(顔領域平均濃度)が補正目標範囲となるように,画像全体に一律に濃度補正(明るくなるような補正)を施すと,画像中の所望の被写体像部分がノイズを多く含む場合には,濃度補正によって所望の被写体像の部分が明るくなるものの,ノイズが目立つ画像になってしまう。所望の被写体像部分以外の部分がノイズを含むものであれば,その部分についてもノイズが目立ってしまう。
However, when the image is corrected brightly, the noise included in the image tends to be visually recognized more clearly than before correction. That is, as in
処理すべき画像データ中にノイズが含まれている場合,ノイズ除去フィルタ等を用いることによって,画像データ中のノイズ成分を除去することが可能である。しかしながら,完全なノイズ除去は難しい。また,解像度の大きい(表示した場合に画素数が多い)画像データに対してノイズ除去処理する場合,長い処理時間を要し,コンピュータ装置のリソースを長時間にわたって占有することになってしまう。 When image data to be processed contains noise, it is possible to remove noise components in the image data by using a noise removal filter or the like. However, complete noise removal is difficult. Further, when noise removal processing is performed on image data having a large resolution (a large number of pixels when displayed), a long processing time is required, and the resources of the computer apparatus are occupied for a long time.
そこで、本発明は上記事情に鑑みなされたものであり,たとえ,画像中の着目すべき画像部分にノイズが含まれているとしても,明るさ(濃度,輝度)補正を施した後における着目すべき画像部分のノイズが,目立ってしまうことがないようにすることを目的とする。 Therefore, the present invention has been made in view of the above circumstances. Even if noise is included in an image portion to be noticed in an image, the present invention pays attention after performing brightness (density, luminance) correction. The purpose is to prevent the noise in the power image portion from becoming noticeable.
この発明は,与えられる画像データのうちの少なくとも一部の画像データの明るさ(輝度)を補正する装置および方法を提供する。この発明では,画像の明るさを表すデータとして輝度値を用いる。輝度値は濃度値に一意に変換することができるので,この発明において輝度値は濃度値と読み替えることもできる。 The present invention provides an apparatus and a method for correcting the brightness (luminance) of at least a part of given image data. In the present invention, a luminance value is used as data representing the brightness of an image. Since the luminance value can be uniquely converted into a density value, the luminance value can be read as the density value in the present invention.
この発明による画像補正装置は、与えられる画像データによって表される画像中に含まれる特定画像における代表輝度値を算出する代表輝度値算出手段,上記特定画像を表す特定画像データに含まれるノイズ量を算出するノイズ量算出手段,上記ノイズ量算出手段によって算出されたノイズ量に応じて目標輝度値を決定する目標輝度値決定手段,上記代表輝度値算出手段によって算出された代表輝度値が,上記目標輝度値決定手段によって決定された目標輝度値に補正されるように,輝度変換直線または輝度変換曲線を表すデータを作成する手段,および作成された輝度変換直線または輝度変換曲線を表すデータに基づいて,少なくとも上記特定画像を表す特定画像データを輝度補正する輝度補正手段を備えたことを特徴とするものである。 An image correction apparatus according to the present invention includes a representative luminance value calculating means for calculating a representative luminance value in a specific image included in an image represented by given image data, and an amount of noise included in the specific image data representing the specific image. The calculated noise amount calculating means, the target luminance value determining means for determining the target luminance value according to the noise amount calculated by the noise amount calculating means, and the representative luminance value calculated by the representative luminance value calculating means are the target luminance value. Based on the data representing the luminance conversion line or the luminance conversion curve and the data representing the created luminance conversion line or the luminance conversion curve so as to be corrected to the target luminance value determined by the luminance value determining means. , And a brightness correction means for correcting the brightness of at least the specific image data representing the specific image.
この発明による画像補正方法は,与えられる画像データによって表される画像中に含まれる特定画像における代表輝度値を算出し,上記特定画像を表す特定画像データに含まれるノイズ量を算出し,算出したノイズ量に応じて目標輝度値を決定し,算出した代表輝度値が,決定した目標輝度値に補正されるように,輝度変換直線または輝度変換曲線を表すデータを作成し,作成した輝度変換直線または輝度変換曲線を表すデータに基づいて,少なくとも上記特定画像を表す特定画像データを輝度補正することを特徴とする。 The image correction method according to the present invention calculates a representative luminance value in a specific image included in an image represented by given image data, calculates a noise amount included in the specific image data representing the specific image, and calculates A target brightness value is determined according to the amount of noise, and data representing a brightness conversion line or a brightness conversion curve is created so that the calculated representative brightness value is corrected to the determined target brightness value. Alternatively, brightness correction is performed on at least specific image data representing the specific image based on data representing a luminance conversion curve.
与えられるディジタル画像データは,写真ネガフイルムやリバーサルフイルムに記録された画像をスキャナ等により読み取ることにより得られたデジタル画像データ、デジタルカメラやカメラ付き携帯電話、カメラ付きPDA 等により取得されたデジタル画像データ等を含む。スキャナ,デジタルカメラ,カメラ付き携帯電話,カメラ付きPDA 等によって得られたデジタル画像データが,画像補正装置に与えられる。 The digital image data given is digital image data obtained by reading an image recorded on a photographic negative film or a reversal film with a scanner, a digital image obtained by a digital camera, a mobile phone with a camera, a PDA with a camera, or the like. Includes data. Digital image data obtained by a scanner, digital camera, camera-equipped mobile phone, camera-equipped PDA, etc. is given to the image correction device.
特定画像は,与えられる画像データによって表される画像中に含まれる,特定の構造,形状,色等を持つ画像部分(画像領域)を意味する。特定画像は,与えられる画像データによって表される画像中に含まれる部分的な画像領域に限らず,与えられる画像データによって表される画像全体が特定画像であることを含む。特定画像としては,たとえば,人物の顔,胴体、手、足等、人物以外の動物(猫、犬、猿、鶏、蛙、蛇等)の顔、植物(桜、バラ、梅、等)における花びらや葉、背景における主要物(富士山、月、寺院等)、構造物(自動車等)などを表す画像が挙げられる。これらの特定画像は,特定の構造,形状,色等を持つので,与えられる画像データ中(全体画像を表す画像データ中)から特定画像を表す画像データ(特定画像データ)を検出する(区画する,抽出する)ことが可能である。 The specific image means an image portion (image region) having a specific structure, shape, color, etc. included in an image represented by given image data. The specific image is not limited to the partial image area included in the image represented by the given image data, but includes that the entire image represented by the given image data is the specific image. Specific images include, for example, human faces, torso, hands, feet, etc., faces of animals other than humans (cats, dogs, monkeys, chickens, rabbits, snakes, etc.), plants (cherries, roses, plums, etc.) Examples include images representing petals, leaves, main objects in the background (Mt. Fuji, moon, temples, etc.), structures (automobiles, etc.), and the like. Since these specific images have a specific structure, shape, color, etc., image data (specific image data) representing the specific image is detected (partitioned) from given image data (image data representing the entire image). , Extract).
特定画像における代表輝度値とは、特定画像における輝度値を代表する値であり,一実施態様では,特定画像を構成する複数の画素のそれぞれの輝度値の平均値を,代表輝度値として用いることができる。もちろん,中央値、最頻値を,代表輝度値として用いてもよい。 The representative luminance value in the specific image is a value representative of the luminance value in the specific image. In one embodiment, the average value of the luminance values of a plurality of pixels constituting the specific image is used as the representative luminance value. Can do. Of course, the median value and the mode value may be used as the representative luminance value.
ディジタル画像データには,カメラ内部に実装されている電子部品の影響によって生じるノイズ,写真ネガフイルムやリバーサルフイルムに記録された画像をスキャナ等により読み取る際に発生するノイズ,レンズによって捕捉されるノイズ,画像処理によって発生するノイズ等が付加されてしまうことがある。ノイズ量算出手段によって,特定画像データに含まれるノイズの量が算出される。 Digital image data includes noise caused by electronic components mounted inside the camera, noise generated when reading images recorded on photographic negative and reversal films with a scanner, noise captured by a lens, Noise or the like generated by image processing may be added. The amount of noise included in the specific image data is calculated by the noise amount calculation means.
算出された特定画像データに含まれるノイズ量に応じて,目標輝度値が決定される。すなわち,特定画像データに含まれるノイズ量に応じて,決定される目標輝度値は変動する。 A target luminance value is determined in accordance with the amount of noise included in the calculated specific image data. That is, the determined target brightness value varies according to the amount of noise included in the specific image data.
算出された代表輝度値が,決定された目標輝度値に補正されるように,輝度変換直線または輝度変換曲線を表すデータが作成され,作成された輝度変換直線または輝度変換曲線を表すデータに基づいて,少なくとも上記特定画像を表す特定画像データが輝度補正される。 Data representing a luminance conversion line or luminance conversion curve is created so that the calculated representative luminance value is corrected to the determined target luminance value, and based on the created data representing the luminance conversion line or luminance conversion curve. Thus, at least the specific image data representing the specific image is subjected to luminance correction.
輝度変換曲線または輝度変換曲線を表すデータは,代表輝度値が目標輝度値に補正されるように作成される。すなわち,作成される輝度変換直線または輝度変換曲線を表すデータに基づく輝度補正処理よって,輝度補正前の画像データに含まれる特定画像データから得られる代表輝度値を持つ画素は,目標輝度値を持つように補正される。 The luminance conversion curve or data representing the luminance conversion curve is created so that the representative luminance value is corrected to the target luminance value. That is, the pixel having the representative luminance value obtained from the specific image data included in the image data before the luminance correction has the target luminance value by the luminance correction processing based on the data representing the luminance conversion line or the luminance conversion curve to be created. It is corrected as follows.
代表輝度値以外の輝度値を持つ画素についても,作成される輝度変換直線または輝度変換曲線を表すデータに基づいて輝度補正される。輝度変換直線または輝度変換曲線は,上記代表輝度値と目標輝度値との対応関係に基づいて作成される。たとえば,入力輝度値と出力輝度値との入出力関係を表すグラフにおいて,代表輝度値(入力輝度値である)および目標輝度値(出力輝度値である)の交点と,原点(入力輝度値「0」に対応する出力輝度値が「0」)を通る輝度変換直線を作成することができる。代表輝度値と目標輝度値の交点と,原点と,最大輝度値同士の対応点(たとえば,入力輝度値「255」に対応する出力輝度値を「255」)の3点を通る輝度変換曲線を作成することもできる。いずれにしても,作成される輝度変換直線または輝度変換曲線を表すデータは,代表輝度値と目標輝度値との対応関係のみならず,他の入力輝度値と出力輝度値との対応関係も規定するものである。 For pixels having a luminance value other than the representative luminance value, the luminance is corrected based on the created luminance conversion line or data representing the luminance conversion curve. The luminance conversion line or luminance conversion curve is created based on the correspondence between the representative luminance value and the target luminance value. For example, in the graph representing the input / output relationship between the input luminance value and the output luminance value, the intersection of the representative luminance value (which is the input luminance value) and the target luminance value (which is the output luminance value) and the origin (input luminance value “ A luminance conversion straight line passing through an output luminance value corresponding to “0” (“0”) can be created. A luminance conversion curve passing through three points of the intersection of the representative luminance value and the target luminance value, the origin, and the corresponding point between the maximum luminance values (for example, the output luminance value corresponding to the input luminance value “255” is “255”). It can also be created. In any case, the created data representing the luminance conversion line or luminance conversion curve defines not only the correspondence between the representative luminance value and the target luminance value, but also the correspondence between other input luminance values and output luminance values. To do.
この発明によると,与えられる画像データによって表される画像中に含まれる特定画像における(特定画像データに含まれる)ノイズ量に応じて目標輝度値が決定され,決定された目標輝度値が,代表輝度値の補正値とされる。ノイズ量に応じて代表輝度値(補正値)が算出されるので,ノイズ量に応じた輝度値(濃度,明るさ)の補正が実現する。ノイズ量が考慮された上で輝度値が補正されるので,補正後の画像(特に特定画像)におけるノイズを目立つことがないようにして,特定画像の輝度値(濃度,明るさ)を補正することができる。 According to the present invention, the target luminance value is determined in accordance with the amount of noise in the specific image included in the image represented by the given image data (included in the specific image data). The correction value is a luminance value. Since the representative luminance value (correction value) is calculated according to the noise amount, correction of the luminance value (density and brightness) according to the noise amount is realized. Since the luminance value is corrected in consideration of the amount of noise, the luminance value (density and brightness) of the specific image is corrected so that noise in the corrected image (particularly the specific image) is not noticeable. be able to.
一実施態様では,画像補正装置は,所望の目標輝度値の入力を受付ける所望目標輝度値入力手段を備え,上記代表輝度値算出手段によって算出される代表輝度値,上記目標輝度値入力手段によって入力される所望目標輝度値および上記ノイズ量算出手段によって算出されるノイズ量に基づいて,輝度補正後の特定画像データに含まれるであろう予測ノイズ量を算出する予測ノイズ量算出手段をさらに備え,上記目標輝度値決定手段は,上記予測ノイズ量算出手段によって算出された予測ノイズ量に応じて,上記目標輝度値を決定するものである。 In one embodiment, the image correction apparatus includes desired target luminance value input means for receiving an input of a desired target luminance value, and the representative luminance value calculated by the representative luminance value calculating means is input by the target luminance value input means. A predicted noise amount calculating means for calculating a predicted noise amount that will be included in the specific image data after the brightness correction based on the desired target brightness value and the noise amount calculated by the noise amount calculating means; The target luminance value determining means determines the target luminance value according to the predicted noise amount calculated by the predicted noise amount calculating means.
与えられる画像データによって表される画像に含まれる特定画像におけるノイズ量に代えて,輝度補正したと仮定したときの特定画像におけるノイズ量(予測ノイズ量)が,目標輝度値の決定に用いられる。予測ノイズ量を用いて目標輝度値を決定し,決定した予測ノイズ量を用いた目標輝度値に基づいて輝度変換直線または輝度変換曲線を表すデータを作成することによって,特定画像中のノイズが,輝度補正後において目立たないようにすることができる。 Instead of the noise amount in the specific image included in the image represented by the given image data, the noise amount (predicted noise amount) in the specific image when the luminance correction is assumed is used to determine the target luminance value. By determining the target luminance value using the predicted noise amount and creating data representing a luminance conversion line or luminance conversion curve based on the target luminance value using the determined predicted noise amount, the noise in the specific image is It can be made inconspicuous after brightness correction.
好ましくは,上記目標輝度値決定手段は,あらかじめ設定されるまたは入力される,輝度補正後の特定画像データに含まれるであろうノイズについての許容ノイズ量と,算出されたノイズ量または算出された予測ノイズ量に基づいて,ノイズ量または予測ノイズ量が,許容ノイズ量以下になるような,目標輝度値を決定する。許容ノイズ量を設定または入力することができ,許容ノイズ量に応じて目標輝度値が決定されるので,ユーザのノイズに対する許容度に応じた輝度補正が行われる。 Preferably, the target luminance value determining means is set or inputted in advance, an allowable noise amount for noise that will be included in the specific image data after luminance correction, a calculated noise amount, or a calculated noise amount Based on the predicted noise amount, a target luminance value is determined such that the noise amount or the predicted noise amount is less than or equal to the allowable noise amount. An allowable noise amount can be set or input, and the target luminance value is determined according to the allowable noise amount, so that luminance correction is performed according to the tolerance of the user's noise.
一実施態様では,上記目標輝度値決定手段は,算出された予測ノイズ量が許容ノイズ量以下である場合には,上記所望目標輝度値入力手段から入力された所望目標輝度値を,目標輝度値として決定し,算出された予測ノイズ量が許容ノイズ量を超えている場合には,予測ノイズ量が許容ノイズ量と同値になるような新たな目標輝度値を,代表輝度値,許容ノイズ量およびノイズ量に基づいて算出し,算出した新たな目標輝度値を目標輝度値として決定するものである。算出された予測ノイズ量が許容ノイズ量以下である場合には,ユーザの希望通りの輝度補正が実現される。また,輝度補正後の特定画像は常に許容ノイズ量以下のノイズ量のノイズになるので,ユーザのノイズに対する要求も確実に満たされる。また,許容ノイズ量を超えている場合には,予測ノイズ量が許容ノイズ量と同値になるような新たな目標輝度値を,代表輝度値,許容ノイズ量およびノイズ量に基づいて算出することによって,ユーザのノイズに対する要求を確実に満たしつつも,代表輝度値をできるだけ変動させないような目標輝度値を算出することができる。 In one embodiment, the target luminance value determining means uses the desired target luminance value input from the desired target luminance value input means as the target luminance value when the calculated predicted noise amount is less than or equal to the allowable noise amount. If the calculated predicted noise amount exceeds the allowable noise amount, a new target luminance value that makes the predicted noise amount equal to the allowable noise amount is set to the representative luminance value, allowable noise amount, and Calculation is performed based on the amount of noise, and the calculated new target luminance value is determined as the target luminance value. When the calculated predicted noise amount is less than or equal to the allowable noise amount, luminance correction as desired by the user is realized. Further, since the specific image after the luminance correction always has a noise amount equal to or less than the allowable noise amount, the user's request for noise is surely satisfied. If the allowable noise amount is exceeded, a new target luminance value that makes the predicted noise amount equal to the allowable noise amount is calculated based on the representative luminance value, the allowable noise amount, and the noise amount. Thus, it is possible to calculate a target luminance value that does not change the representative luminance value as much as possible while reliably satisfying the user's request for noise.
この発明は,画像補正処理をコンピュータに実行させるためのプログラム(コンピュータを,画像補正装置として機能させるためのプログラム)も提供している。 The present invention also provides a program for causing a computer to execute image correction processing (a program for causing a computer to function as an image correction apparatus).
以下,図面を参照して本発明の実施形態について説明する。図1は第1実施例におけるデジタルプリントシステムの構成を示すブロック図である。デジタルプリントシステムは,画像補正装置1と,画像補正装置1に接続された周辺機器(入力装置2,表示装置3,記憶装置4およびプリンタ5)とによって構成される。図2は,デジタルプリントシステムの中核的な装置である画像補正装置1の詳細な電気的構成を,データの流れとともに示すブロック図である。図2において,図1に示す周辺機器のうち表示装置3およびプリンタ5の図示は省略されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the digital print system in the first embodiment. The digital print system includes an
画像補正装置1は,与えられた画像データによって表される画像中に含まれる人物の顔を表す部分(以下,顔画像部分という)の明るさ(輝度)が,設定される目標輝度値に沿う明るさ(輝度)を持つように,画像データに対して輝度補正を施すものである。後述するように,画像補正装置1は,輝度補正後の顔画像部分を表す画像データに含まれるであろう予測ノイズ量が所定のノイズ量を超える場合(超えると予想される場合)に,輝度補正後の顔画像部分を表す画像データに含まれるであろう予測ノイズ量が所定のノイズ量を超えないように,新たに,目標輝度値を決定する機能を持つ。
In the
画像補正装置1に接続された入力装置2(キーボード,マウス等)は,目標平均輝度値,許容ノイズ量等の入力に用いられる(目標平均輝度値および許容ノイズ量については,後述する)。表示装置3の表示画面には,入力装置2から入力される目標平均輝度値の設定のための画面,補正前および補正後の画像データによって画像等が表示される。記憶装置(ハードディスク,メモリ・カード,CD−ROM等)4には画像データが記憶されており,記憶装置4から読出された画像データに対して,画像補正装置1において画像補正処理が行われる。プリンタ5は,補正後の画像データによって表される画像を,印画紙等にプリントする。
An input device 2 (keyboard, mouse, etc.) connected to the
画像処理装置1は,顔領域区画回路11,ノイズ量算出回路12,平均輝度値算出回路13,目標平均輝度値調整回路14,補正係数算出回路15および画像補正回路16を備えている。
The
画像補正装置1に接続された記憶装置4から読出された画像データに対して,画像補正回路16において輝度補正が行われる。画像補正回路16において行われる輝度補正処理は,入力輝度値と出力輝度値(補正値)の対応関係を規定した補正関数にしたがう。画像補正回路16において輝度補正に用いられる補正関数の係数が,補正係数算出回路15において算出される。
The
はじめに,顔領域区画回路11,ノイズ量算出回路12および平均輝度値算出回路13の処理について説明する。顔領域区画回路11,ノイズ量算出回路12および平均輝度値算出回路13によって,顔画像部分に含まれるノイズ量の算出処理と,顔画像部分の平均輝度値の算出処理とが行われる。
First, the processing of the face
補正処理対象の画像データによって表される画像には,人物の顔を表す画像(顔画像)が含まれているものとする。顔画像が含まれる画像を表す画像データが,記憶装置4から読出される。 It is assumed that the image represented by the image data to be corrected includes an image representing a human face (face image). Image data representing an image including a face image is read from the storage device 4.
記憶装置4から読出された画像データ(以下,入力画像データという)は,顔領域区画回路11,ノイズ量算出回路12,および平均輝度算出回路13のそれぞれに入力する。
Image data read from the storage device 4 (hereinafter referred to as input image data) is input to the face
顔領域区画回路11は,入力画像データによって表される画像(以下,入力画像という)中に含まれる顔画像部分を,その他の画像部分と区画する(顔画像部分を検出する,境界を画定する)回路である。
The face
入力画像中に含まれる顔画像部分を区画する処理には,従来または新規の種々の区画(検出)手法を用いることができる。たとえば,入力画像を複数領域に分解し,分解画像ごとに得られる色相および彩度についての2次元ヒストグラムを利用して,顔画像部分を区画する(検出)する手法(特開平5−100328号公報),パターンマッチングによって顔画像部分をその他の画像部分から区画(検出)する手法(特開平8−122944号公報),入力画像中の肌候補領域を検出し,検出された肌候補領域中の主な顔特徴(目,眉,毛,鼻および口)を検出することによって顔画像部分を区画(検出)する方法(特開2002−203239号公報),入力画像内に学習枠を設定し、該学習枠により規定される画像部分を表す画像データを学習して、該学習枠を代表する1つまたは複数の代表特徴ベクトルを抽出し、同画像内に探索枠を設定するとともに、上記の代表特徴ベクトルの各々と探索枠により規定される画像部分を表す画像データから抽出された複数の特徴ベクトルとの類似度に基づき、探索枠内から顔画像部分を抽出する方法(特願2002−378989号)などである。 For the process of partitioning the face image portion included in the input image, various conventional or novel section (detection) techniques can be used. For example, a method of decomposing an input image into a plurality of regions and partitioning (detecting) a face image portion using a two-dimensional histogram of hue and saturation obtained for each decomposed image (Japanese Patent Laid-Open No. 5-100328) ), A method of segmenting (detecting) the face image portion from other image portions by pattern matching (Japanese Patent Laid-Open No. 8-122944), detecting a skin candidate region in the input image, and detecting the main in the detected skin candidate region A method of segmenting (detecting) a face image portion by detecting various facial features (eyes, eyebrows, hair, nose and mouth) (Japanese Patent Laid-Open No. 2002-203239), setting a learning frame in the input image, Learning image data representing an image portion defined by the learning frame, extracting one or more representative feature vectors representing the learning frame, setting a search frame in the image, A method for extracting a face image portion from a search frame based on the similarity between each of the representative feature vectors and a plurality of feature vectors extracted from image data representing an image portion defined by the search frame (Japanese Patent Application 2002-2000) 37889).
顔領域区画回路11は,区画(検出)した顔画像部分(顔画像領域内)に含まれる画素のそれぞれを1(または0),顔画像部分以外の画像部分(顔画像領域外)に含まれる画素のそれぞれを0(または1)とした2値データ(画素アドレスごとに,1または0が対応付けられたデータ)を出力する。図3(A) は入力画像データによって表される入力画像を,図3(B) は顔領域区画回路11によって顔画像部分が区画(検出)された様子を,図3(C) は顔画像部分に含まれる画素のそれぞれを1,顔画像部分以外の画像部分に含まれる画素のそれぞれを0とした,顔領域区画回路11から出力される2値データ(マスクデータ)を,それぞれ模式的に示している。
The face
顔領域区画回路11から出力される2値データは,入力画像に含まれる顔画像部分の位置および範囲(領域位置)を示す。以下,顔領域区画回路11から出力される2値データを,顔領域情報と呼ぶ。
The binary data output from the face
顔領域区画回路11から出力された顔領域情報は,ノイズ量算出回路12および平均輝度値算出回路13のそれぞれに入力する。
The face area information output from the face
ノイズ量算出回路12は,入力画像中に含まれる顔画像部分のノイズ量を算出する。上述したように,顔画像を含む入力画像を表す入力画像データは,記録装置4からノイズ量算出回路12に与えられる。入力画像に含まれる顔画像部分の領域位置は,顔領域区画回路12から出力される顔領域情報によって特定される。
The noise
一般に,画像のノイズは,高周波領域の成分として現れる。ノイズ量算出回路12は,顔画像部分を構成する画素のそれぞれに対してハイパスフィルタでフィルタリングし,顔画像部分を構成する画素のそれぞれの高周波領域成分を求める。たとえば,図4に示す3行3列の画素フィルタが,上記ハイパスフィルタリングに用いられる。
In general, image noise appears as a component in a high frequency region. The noise
顔画像部分を構成する画素のそれぞれについて求められた高周波領域成分が用いられて,分散値σ2が算出される。算出された分散値σ2が,入力画像中に含まれる顔画像部分のノイズ量として扱われる。 The variance value σ 2 is calculated using the high frequency region components obtained for each of the pixels constituting the face image portion. The calculated variance value σ 2 is treated as the noise amount of the face image portion included in the input image.
平均輝度値算出回路13は,入力画像中に含まれる顔画像部分を構成する画素ごとの輝度値の平均値を算出する。算出された平均値が平均輝度値(Yave)である。次に示す式1によって,平均輝度値(Yave)が算出される。
The average luminance
(ΣYi)/n ・・・式1 (ΣYi) / n (1)
ここでYiは,顔画像部分を構成する画素ごとの輝度値を,nは顔画像部分の画素数を,それぞれ表す。 Here, Yi represents the luminance value for each pixel constituting the face image portion, and n represents the number of pixels in the face image portion.
平均値に代えて,中央値または最頻値を,平均輝度値(Yave)としてもよい。 Instead of the average value, the median value or the mode value may be used as the average luminance value (Yave).
平均輝度値算出回路13に与えられる画像データが,各画素ごとのRGB値(真数値)によって表されている場合には,平均輝度値(Yave)の算出に先だって,次に示す式2によって,各画素ごとの輝度値Yが算出される。
When the image data given to the average luminance
Y=0.2126・R+0.7152・G+0.0722・B ・・・式2
Y = 0.2126 ・ R + 0.7152 ・ G + 0.0722 ・
次に,目標平均輝度値決定回路14の処理について説明する。目標平均輝度決定回路14は,補正係数算出回路15に与えるべき目標平均輝度値(以下,決定目標平均輝度値(Ytarget) という)を決定するものである。目標平均輝度値決定回路14において決定される決定目標平均輝度値(Ytarget) は,次に説明するように,ノイズ量算出回路12によって算出された顔画像部分のノイズ量σ2に応じて異なる値になる。
Next, the processing of the target average luminance
上述したように,デジタルプリントシステムの操作者によって,入力装置2が用いられて目標平均輝度値(Ytarget)および許容ノイズ量σ 2 (ノイズが含まれていると扱わない最大ノイズ量)が入力される。入力された目標平均輝度値(Ytarget) および許容ノイズ量 σ 2 が目標平均輝度値決定回路14に与えられる。さらに,目標平均輝度値決定回路14には,平均輝度値算出回路13において算出された平均輝度値(Yave)も入力する。
As described above, the operator of the digital printing system uses the
目標平均輝度値決定回路14は,次に示す式3および式4のいずれかによって,決定目標平均輝度値(Ytarget)(平均輝度値(Yave)の補正値)を算出する。
The target average luminance
決定目標平均輝度値(Ytarget)=目標平均輝度値(Ytarget)
(σ≦σ(Yave / Ytarget)のとき)・・式3
Determination target average luminance value ( Ytarget ) = target average luminance value (Ytarget)
(When σ ≤ σ (Yave / Ytarget)) ・ ・ Equation 3
決定目標平均輝度値(Ytarget)=平均輝度値(Yave)・σ/σ
(σ>σ・(Yave / Ytarget)のとき)・・式4
Determination target average luminance value ( Ytarget ) = average luminance value (Yave) · σ / σ
(when σ> σ · (Yave / Ytarget)) · · · Equation 4
ここで,σは顔画像部分のノイズ量σ2の平方根を,σは許容ノイズ量σ 2 の平方根をそれぞれ示す。顔画像部分のノイズ量σ2の平方根σおよび許容ノイズ量σ 2 の平方根σは,いずれもノイズ量の大きさを表す値として用いられる。 Here, sigma is the amount of noise sigma 2 of the square root of the face image, sigma represents the allowable amount of noise sigma 2 of the square root respectively. The amount of noise sigma 2 square root sigma and the square root of the allowable noise quantity sigma 2 sigma of the face image, both of which are used as a value representing the magnitude of the noise amount.
式3および式4において,( )内に示す不等号を含む式は,輝度補正したときの顔画像部分に含まれるであろうノイズ量が,許容されるべきノイズ量を超えているどうかの判断に用いられる。不等号を含む式について説明する。 In Expression 3 and Expression 4, the expression including the inequality sign in () is used to determine whether the amount of noise that will be included in the face image portion when the luminance is corrected exceeds the allowable noise amount. Used. An expression including an inequality sign will be described.
画像を明るく補正すると(画像データの輝度値を高い値に補正する)と補正後の画像において認識されるノイズは大きくなる。画像を暗く補正すると,補正後の画像において認識されるノイズは小さくなる。輝度補正の大きさとノイズ量の変動が比例すると考えると,輝度補正したと仮定したときの顔画像部分のノイズ量の予測値(予測ノイズ量:予測分散値)をΣ2とした場合,予測ノイズ量Σ2の平方根Σは,次に示す式5によって表される。 When the image is brightly corrected (the luminance value of the image data is corrected to a high value), the noise recognized in the corrected image becomes large. When the image is corrected to be dark, noise recognized in the corrected image is reduced. Given the variation in the size and noise of the luminance correction is proportional to the predicted value of the noise amount of the face image, assuming that the luminance correction: If the (predicted noise amount prediction variance) was sigma 2, predicted noise The square root Σ of the quantity Σ 2 is expressed by Equation 5 below.
予測ノイズ量の平方根Σ
=(目標平均輝度値(Ytarget)/平均輝度値(Yave))・顔画像部分のノイズ量の平方 根σ
・・・・式5
Square root of predicted noise Σ
= (Target average luminance value (Ytarget) / Average luminance value (Yave)) · Square root of the amount of noise in the face image part σ
.... Formula 5
輝度補正したときの顔画像部分の予測ノイズ量Σ2の平方根Σを上述の許容ノイズ量σ 2 の平方根σ以下にすることを考えると,次に示す式6の不等式が成立する。 Considering that the square root Σ of the predicted noise amount Σ 2 of the face image portion when the luminance is corrected is set to be equal to or less than the square root σ of the allowable noise amount σ 2 described above, the following inequality is established.
予測ノイズ量の平方根Σ≦許容ノイズ量σ 2 の平方根σ ・・・式6 Square root of predicted noise amount Σ ≦ square root of allowable noise amount σ 2 σ Equation 6
式5と式6を一つ式にまとめると,式3における()内の条件式が成立する。式3における()内の条件式にしたがって,式4における()内の条件式が成立する。 When Expression 5 and Expression 6 are combined into one expression, the conditional expression in parentheses in Expression 3 is established. In accordance with the conditional expression in () in Expression 3, the conditional expression in () in Expression 4 is satisfied.
単純には,ノイズ量算出回路12によって算出された顔画像部分の ノイズ量σ2(またはその平方根σ)と,設定される許容ノイズ量σ 2 ( またはその平方根σ)とを比較することによって,顔画像部分のノイズ量σ2( またはその平方根σ)が許容されるべきノイズ量σ 2 ( またはその平方根σ)を超えているどうかを判断することもできる(もちろん,そのように判断してもよい)。または,上述の顔画像部分の予測ノイズ量Σ2( またはその平方根Σ)と,設定される許容ノイズ量σ 2 ( またはその平方根σ)とを比較することによって,顔画像部分の予測ノイズ量Σ2( またはその平方根Σ)が許容されるべきノイズ量σ 2 (またはその平方根σ)を超えているどうかを判断することもできる(もちろん,そのように判断してもよい)。上述の式5および式6に基づいて成立する条件式を用いることによって,輝度補正したときの顔画像部分の予測ノイズ量Σ2 の平方根Σが,許容ノイズ量σ 2 の平方根σ以下になるような条件(式6)を,顔画像部分のノイズ量σ2の平方根σ,許容ノイズ量σ 2 の平方根σ,平均輝度値(Yave)および目標平均輝度値(Ytarget)を用いて判断することができる。輝度補正後の顔画像部分のノイズ量に着目した,比較的正確なノイズ量の判断が行われることになる。
Simply, by comparing the noise amount σ 2 (or its square root σ) of the face image portion calculated by the noise
輝度補正後において予測される顔画像部分のノイズ量が,許容されるべきノイズ量以下であることが判断されると(式3の不等式が成立),入力装置2から入力された目標平均輝度値(Ytarget)が,決定目標平均輝度値(Ytarget)とされる(式3)。決定目標平均輝度値(Ytarget)(入力された目標平均輝度値(Ytarget)と同じ輝度値)が,目標平均輝度値決定回路14から出力される。
When it is determined that the noise amount of the face image portion predicted after the luminance correction is equal to or less than the allowable noise amount (the inequality of Equation 3 is established), the target average luminance value input from the input device 2 (Ytarget) is the determined target average luminance value ( Ytarget ) (Formula 3). The determined target average luminance value ( Ytarget ) (the same luminance value as the input target average luminance value (Ytarget)) is output from the target average luminance
輝度補正後において予測される顔画像部分のノイズ量が,許容されるべきノイズ量を超えると判断されると(式4の不等式が成立),式4に基づいて,入力装置2から入力された目標平均輝度値(Ytarget)とは異なる値を持つ決定目標平均輝度値(Ytarget)が算出される。
When it is determined that the amount of noise of the face image portion predicted after luminance correction exceeds the amount of noise that should be allowed (the inequality of Equation 4 is established), the input is made from the
式4は,式5の左辺に,式6の右辺を代入して得られる数式であり,式4によって,補正後の顔画像部分におけるノイズ量が許容されるべきノイズ量と同じ値(限界ノイズ量という)になるような決定目標平均輝度値(Ytarget) が算出される。式4における()内の条件式の沿う場合に算出される決定目標平均輝度値(Ytarget) は,入力される目標平均輝度値(Ytarget)よりも小さい値になる。決定される目標平均輝度値(Ytarget)が,入力される目標平均輝度値(Ytarget) よりもどの程度小さい値になるかは,あらかじめ設定される許容ノイズ量σ 2 , およびノイズ量算出回路12によって算出される顔画像部分に含まれるノイズ量σ2に よって変動する。一般には,たとえば,顔画像部分を明るくするように補正する場合には,入力される目標平均輝度値(Ytarget) からできるだけ小さくならないような許容ノイズ量σ 2 が設定されよう。
Equation 4 is an equation obtained by substituting the right side of Equation 6 for the left side of Equation 5. According to Equation 4, the noise amount in the corrected face image portion is the same as the noise amount to be allowed (limit noise). The determined target average luminance value ( Ytarget ) is calculated. The determined target average luminance value ( Ytarget ) calculated when the conditional expression in parentheses in (4) is satisfied is smaller than the input target average luminance value (Ytarget). To what extent the determined target average luminance value ( Ytarget ) is smaller than the input target average luminance value (Ytarget) is determined by the preset allowable noise amount σ 2 and the noise
算出された輝度値が,決定目標平均輝度値(Ytarget) として,目標平均輝度値決定回路14から出力される。
The calculated luminance value is output from the target average luminance
目標平均輝度値決定回路14から出力された決定目標平均輝度値(Ytarget) は,補正係数算出回路15に与えられる。補正係数算出回路15は,次に示す式7に基づいて,入力輝度値と出力輝度値(補正輝度値)の関係式の係数(補正係数α)を算出する。
The determined target average luminance value ( Ytarget ) output from the target average luminance
補正係数α=決定目標平均輝度値(Ytarget)/平均輝度値(Yave) ・・・式7 Correction coefficient α = determined target average luminance value ( Ytarget ) / average luminance value (Yave) Equation 7
補正係数算出回路15において算出された補正係数αは,画像補正回路16に入力する。画像補正回路16は,補正係数αを用いた補正関数に基づいて,記憶装置4から読み出された画像データに対して,画素ごとに輝度補正を施す。輝度補正回路16における輝度補正に用いられる補正関数は,次に示す式8によって表される。
The correction coefficient α calculated by the correction
出力輝度値=補正係数α・入力輝度値 ・・・式8
Output luminance value = correction coefficient α / input
図5は,横軸を入力輝度値,縦軸を出力輝度値(補正値)として,式8に示す補正関数をグラフ化して示すものである。図5に示すグラフ(輝度変換直線)において,一点鎖線は,輝度変換後における顔画像部分の予測ノイズ量が許容されるべきノイズ量以下の場合(式3の場合)の補正関数を,実線は輝度変換後における顔画像部分の予測ノイズ量が許容されるべきノイズ量を超えている場合(式4の場合)の補正関数の一例を,それぞれ示す。○は,輝度変換後における顔画像部分の予測ノイズ量が許容されるべきノイズ量以下の場合の,平均輝度値(Yave)と決定目標平均輝度値(入力された目標平均輝度値(Ytarget )と同じ値)との対応点を,●は,輝度変換後における顔画像部分の予測ノイズ量が許容されるべきノイズ量を超えている場合の,平均輝度値(Yave)と決定目標平均輝度値(Ytarget) との対応点を,それぞれ示す。なお,図5に示すグラフにおいて,輝度値(入力輝度値および出力輝度値)は,8ビットのデータによって0〜255の256レベルで表されるものする。
FIG. 5 is a graph showing the correction function shown in
このように,画像補正装置1では,入力される目標平均輝度値に基づいて顔画像部分を含む画像を輝度補正した場合に予測される顔画像部分のノイズ量が,許容されるべきノイズ量を超えている場合には(式4),補正後の顔画像部分のノイズ量が許容されるべきノイズ量と同じ値となるような新たな目標平均輝度値(決定目標平均輝度値)を算出することができる。そして算出された決定目標平均輝度値にしたがう補正関数により,入力画像データが補正される。ノイズが目立たない補正後の顔画像部分を確実に得ることができる。もちろん,顔画像部分を表す画像データのノイズが少ない場合(式3の場合)には,ユーザの要求(補正後の顔画像部分を明るくするか,暗くするか)に沿う輝度補正が実現される。ノイズ量に関するユーザの要求と,輝度補正に関するユーザの要求の両方を考慮した輝度補正を行うことができる。
As described above, in the
上述した第1実施例では,目標平均輝度値(Yave)として,数値(輝度値)を入力しているが,もちろん,「明るめ」,「暗め」といった入力を入力装置2から入力させるようにしてもよい。この場合には,「明るめ」の入力に対応して,比較的数値の大きい値が目標平均輝度値(Yave)として設定され,「暗め」の入力に対応して,比較的数値の小さい値が目標平均輝度値(Yave)として設定される。設定されるべき目標平均輝度値(Yave)は,目標平均輝度値決定回路14のメモリにあらかじめ記憶させておく。また,上述の許容ノイズ量σ 2 についても,同様にして,「多め」,「少なめ」等の設定ができるようにしてもよい。このことは,後述する第2実施例においても同じである。
In the first embodiment described above, a numerical value (luminance value) is input as the target average luminance value (Yave). Of course, inputs such as “brighter” and “darker” are input from the
また,画像補正回路16に与えられる補正係数αは,上述の実施例では,記憶装置4から読出された画像データ(オリジナルの画像データ)を用いて算出されている。オリジナル画像データに代えて,オリジナル画像データを縮小した縮小画像データに基づいて,補正係数αを算出するようにしてもよい。この場合には,オリジナル画像データを縮小するための縮小回路が,画像補正装置1に設けられる。顔領域区画回路11,ノイズ量算出回路12,平均輝度算出回路13および補正係数算出回路15は,縮小画像データに基づいて,それぞれ処理を行う。画像補正回路16は,縮小画像データを用いて得られた補正係数αによって規定される補正関数にしたがって,オリジナル画像データに対して輝度補正を施す。このことは,以下に説明する第2実施例において求められる補正値(ルックアップテーブル)の算出についても同じである。
The correction coefficient α given to the
図6は,第2実施例の画像補正装置1の電気的構成を示している。図2に示す第1実施例の画像補正装置1とは,補正係数算出回路15に代えて,補正値算出回路(ルックアップテーブル作成回路)25が設けられている点が異なる。
FIG. 6 shows the electrical configuration of the
上述した第1実施例では,補正係数算出回路15において算出された補正係数αを用いた補正関数(式8)(輝度変換直線)に基づいて,入力画像データに対して輝度補正を施している(図5参照)。第2実施例では,補正係数αを用いた補正関数(式8)(輝度変換直線)に基づく輝度補正に代えて,補間処理によって,すべての入力輝度値に対する出力輝度値の対応関係(輝度変換曲線)が得られる。
In the first embodiment described above, luminance correction is performed on the input image data based on the correction function (Equation 8) (luminance conversion line) using the correction coefficient α calculated by the correction
補正値算出回路(ルックアップテーブル作成回路)25は,あらかじめ得られる複数(たとえば,3つ)の入力輝度値と出力輝度値との対応関係を利用して,それ以外の入力輝度値に対応する出力輝度値を,補間処理によって算出する(ルックアップテーブル(LUT )を作成する)回路である。上述したように目標平均輝度決定回路14において,入力輝度値の一つである平均輝度値(Yave)と,平均輝度値(Yave)に対応する出力輝度値である決定目標平均輝度値(Ytarget) の対応関係が得られる。第2実施例では,あらかじめ得ておく他の入力輝度値と出力輝度値との対応関係として,最低輝度値をそのまま最低輝度値として,かつ最高輝度値をそのまま最高輝度値とする対応関係を用いる。最低輝度値および最高輝度値は,輝度値として取り得る最低および最高の輝度値(たとえば,0〜255の256レベルの場合には0と255)であってもよいし,入力画像中の画素ごとの輝度値のうちの最低および最高の輝度値を,輝度値として取り得る最低および最高輝度値とするものであってもよい。
The correction value calculation circuit (lookup table creation circuit) 25 uses a correspondence relationship between a plurality of (for example, three) input luminance values and output luminance values obtained in advance, and handles other input luminance values. This circuit calculates an output luminance value by interpolation processing (creates a lookup table (LUT)). As described above, in the target average
補正値算出回路(ルックアップテーブル作成回路)25において,上述の3つの入力輝度値の以外の入力輝度値に対応する出力輝度値(補正値)が,補間処理によって算出される。補間処理には,スプライン補間法,ニアレスト・ネイバー法,バイ・リニア法,バイ・キュービック法等を利用することができる。図7は,2次のスプライン補間法によって得られる輝度変換曲線(階調曲線)を示す。一点鎖線は,輝度補正後の顔画像部分の予測ノイズ量が許容されるべきノイズ量以下の場合に得られる補正値(ルックアップテーブル)に基づく輝度変換曲線を,実線は輝度補正後の顔画像部分の予測ノイズ量が許容されるべきノイズ量を超えている場合に得られる補正値(ルックアップテーブル)に基づく輝度変換曲線を,それぞれ示す。 In the correction value calculation circuit (lookup table creation circuit) 25, output luminance values (correction values) corresponding to input luminance values other than the above three input luminance values are calculated by interpolation processing. For the interpolation processing, a spline interpolation method, a nearest neighbor method, a bi-linear method, a bi-cubic method, or the like can be used. FIG. 7 shows a luminance conversion curve (gradation curve) obtained by a secondary spline interpolation method. The alternate long and short dash line indicates a luminance conversion curve based on a correction value (lookup table) obtained when the predicted noise amount of the face image portion after luminance correction is equal to or less than the allowable noise amount, and the solid line indicates a face image after luminance correction. A luminance conversion curve based on a correction value (lookup table) obtained when the predicted noise amount of the portion exceeds the allowable noise amount is shown.
1 画像補正装置
2 入力装置
3 表示装置
4 記憶装置
11 顔領域区画回路
12 ノイズ量算出回路
13 平均輝度値算出回路
14 目標平均輝度値決定回路
15 補正係数算出回路
16 画像補正回路
25 補正値算出回路
1
11 Face area division circuit
12 Noise amount calculation circuit
13 Average luminance value calculation circuit
14 Target average luminance value decision circuit
15 Correction coefficient calculation circuit
16 Image correction circuit
25 Correction value calculation circuit
Claims (8)
上記特定画像を表す特定画像データに含まれるノイズ量を算出するノイズ量算出手段,
上記ノイズ量算出手段によって算出されたノイズ量に応じて,目標輝度値を決定する目標輝度値決定手段,
上記代表輝度値算出手段によって算出された代表輝度値が,上記目標輝度値決定手段によって決定された目標輝度値に補正されるように,輝度変換直線または輝度変換曲線を表すデータを作成する手段,および
作成された輝度変換直線または輝度変換曲線を表すデータに基づいて,少なくとも上記特定画像を表す特定画像データを輝度補正する輝度補正手段,
を備えた画像補正装置。 Representative luminance value calculating means for calculating a representative luminance value in a specific image included in an image represented by given image data;
A noise amount calculating means for calculating a noise amount included in the specific image data representing the specific image;
Target luminance value determining means for determining a target luminance value according to the noise amount calculated by the noise amount calculating means;
Means for creating data representing a luminance conversion line or a luminance conversion curve so that the representative luminance value calculated by the representative luminance value calculating means is corrected to the target luminance value determined by the target luminance value determining means; And luminance correction means for correcting the luminance of at least the specific image data representing the specific image based on the generated data representing the luminance conversion line or the luminance conversion curve,
An image correction apparatus comprising:
上記代表輝度値算出手段によって算出される代表輝度値,上記目標輝度値入力手段によって入力される所望目標輝度値および上記ノイズ量算出手段によって算出されるノイズ量に基づいて,輝度補正後の特定画像データに含まれるであろう予測ノイズ量を算出する予測ノイズ量算出手段をさらに備え,
上記目標輝度値決定手段は,
上記予測ノイズ量算出手段によって算出された予測ノイズ量に応じて,上記目標輝度値を決定するものである,
請求項1に記載の画像補正装置。 A desired target luminance value input means for receiving an input of a desired target luminance value;
Based on the representative luminance value calculated by the representative luminance value calculating unit, the desired target luminance value input by the target luminance value input unit, and the noise amount calculated by the noise amount calculating unit, the specific image after luminance correction A prediction noise amount calculating means for calculating a prediction noise amount that will be included in the data;
The target brightness value determining means is:
The target luminance value is determined according to the predicted noise amount calculated by the predicted noise amount calculating means.
The image correction apparatus according to claim 1.
あらかじめ設定されるまたは入力される,輝度補正後の特定画像データに含まれるであろうノイズについての許容ノイズ量と,算出されたノイズ量または算出された予測ノイズ量に基づいて,ノイズ量または予測ノイズ量が,許容ノイズ量以下になるような,目標輝度値を決定するものである,
請求項1または2に記載の画像補正装置。 The target brightness value determining means is:
Based on the allowable noise amount for noise that will be included in the specific image data after brightness correction, which is set or input in advance, and the calculated noise amount or the calculated predicted noise amount, The target luminance value is determined so that the noise amount is less than the allowable noise amount.
The image correction apparatus according to claim 1.
算出された予測ノイズ量が許容ノイズ量以下である場合には,上記所望目標輝度値入力手段から入力された所望目標輝度値を,目標輝度値として決定し,
算出された予測ノイズ量が,許容ノイズ量を超えている場合には,予測ノイズ量が許容ノイズ量と同値になるような新たな目標輝度値を,代表輝度値,許容ノイズ量およびノイズ量に基づいて算出し,算出した新たな目標輝度値を目標輝度値として決定する,
請求項3に記載の画像補正装置。 The target brightness value determining means is:
If the calculated predicted noise amount is less than or equal to the allowable noise amount, the desired target luminance value input from the desired target luminance value input means is determined as the target luminance value,
If the calculated predicted noise amount exceeds the allowable noise amount, a new target luminance value that makes the predicted noise amount equal to the allowable noise amount is changed to the representative luminance value, allowable noise amount, and noise amount. And calculating the calculated new target luminance value as the target luminance value.
The image correction apparatus according to claim 3.
上記特定画像を表す特定画像データに含まれるノイズ量を算出し,
算出したノイズ量に応じて目標輝度値を決定し,
算出した代表輝度値が,決定した目標輝度値に補正されるように,輝度変換直線または輝度変換曲線を表すデータを作成し,
作成した輝度変換直線または輝度変換曲線を表すデータに基づいて,少なくとも上記特定画像を表す特定画像データを輝度補正する,
画像補正方法。 Calculating a representative luminance value in a specific image included in an image represented by given image data;
Calculating the amount of noise included in the specific image data representing the specific image,
The target brightness value is determined according to the calculated noise amount,
Create data representing a luminance conversion line or luminance conversion curve so that the calculated representative luminance value is corrected to the determined target luminance value.
Based on the created luminance conversion line or data representing the luminance conversion curve, at least the specific image data representing the specific image is corrected for luminance,
Image correction method.
上記特定画像を表す特定画像データに含まれるノイズ量を算出する手順と,
算出されたノイズ量に応じて目標輝度値を決定する手順と,
算出された代表輝度値が,上記目標輝度値決定手段によって決定された目標輝度値に補正されるように,輝度変換直線または輝度変換曲線を表すデータを作成する手順と,
作成された輝度変換直線または輝度変換曲線を表すデータに基づいて,少なくとも上記特定画像を表す特定画像データを輝度補正する手順と,
をコンピュータに実行させるためのプログラム。 A procedure for calculating a representative luminance value in a specific image included in an image represented by given image data;
A procedure for calculating the amount of noise included in the specific image data representing the specific image;
A procedure for determining a target luminance value according to the calculated amount of noise;
A procedure for creating data representing a luminance conversion line or a luminance conversion curve so that the calculated representative luminance value is corrected to the target luminance value determined by the target luminance value determining means;
A procedure for correcting the luminance of at least the specific image data representing the specific image based on the generated luminance conversion line or data representing the luminance conversion curve;
A program that causes a computer to execute.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004179080A JP4460368B2 (en) | 2004-06-17 | 2004-06-17 | Image correction apparatus and method, and image correction program |
US11/148,314 US7508550B2 (en) | 2004-06-17 | 2005-06-09 | Image correcting apparatus and method, and image correcting program, and look-up table creating apparatus and method, and look-up table creating program |
US12/362,759 US8035871B2 (en) | 2004-06-17 | 2009-01-30 | Determining target luminance value of an image using predicted noise amount |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004179080A JP4460368B2 (en) | 2004-06-17 | 2004-06-17 | Image correction apparatus and method, and image correction program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006004124A true JP2006004124A (en) | 2006-01-05 |
JP4460368B2 JP4460368B2 (en) | 2010-05-12 |
Family
ID=35772479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004179080A Expired - Fee Related JP4460368B2 (en) | 2004-06-17 | 2004-06-17 | Image correction apparatus and method, and image correction program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4460368B2 (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008107893A (en) * | 2006-10-23 | 2008-05-08 | Mitsubishi Electric Corp | Noise reduction device and method |
JP2009188684A (en) * | 2008-02-05 | 2009-08-20 | Panasonic Electric Works Co Ltd | Imaging apparatus |
KR100923643B1 (en) | 2007-12-28 | 2009-10-28 | (주)씨앤에스 테크놀로지 | Luminance correction method for photographing image for the use of the video calling |
JP2009258284A (en) * | 2008-04-15 | 2009-11-05 | Nikon Corp | Image processing device, imaging apparatus, image processing method, and program |
JP2010103975A (en) * | 2008-09-29 | 2010-05-06 | Canon Inc | Image capturing apparatus and method of controlling the same, and program |
JP2010239600A (en) * | 2009-03-31 | 2010-10-21 | Fujitsu Ltd | Brightness correction program, brightness correction method, and brightness correction device |
WO2012144158A1 (en) * | 2011-04-22 | 2012-10-26 | パナソニック株式会社 | Image processing apparatus and image processing method |
JP2013025368A (en) * | 2011-07-15 | 2013-02-04 | Tokyo Institute Of Technology | Noise level estimation device, noise level estimation method and program |
WO2015145917A1 (en) * | 2014-03-28 | 2015-10-01 | 日本電気株式会社 | Image-correcting device, image correction method, and program-recording medium |
JP2015212938A (en) * | 2014-04-17 | 2015-11-26 | 株式会社モルフォ | Image processing apparatus, image processing method, image processing program, and recording medium |
-
2004
- 2004-06-17 JP JP2004179080A patent/JP4460368B2/en not_active Expired - Fee Related
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008107893A (en) * | 2006-10-23 | 2008-05-08 | Mitsubishi Electric Corp | Noise reduction device and method |
JP4571607B2 (en) * | 2006-10-23 | 2010-10-27 | 三菱電機株式会社 | Noise reduction apparatus and method |
KR100923643B1 (en) | 2007-12-28 | 2009-10-28 | (주)씨앤에스 테크놀로지 | Luminance correction method for photographing image for the use of the video calling |
JP2009188684A (en) * | 2008-02-05 | 2009-08-20 | Panasonic Electric Works Co Ltd | Imaging apparatus |
JP2009258284A (en) * | 2008-04-15 | 2009-11-05 | Nikon Corp | Image processing device, imaging apparatus, image processing method, and program |
JP2010103975A (en) * | 2008-09-29 | 2010-05-06 | Canon Inc | Image capturing apparatus and method of controlling the same, and program |
JP2010239600A (en) * | 2009-03-31 | 2010-10-21 | Fujitsu Ltd | Brightness correction program, brightness correction method, and brightness correction device |
JP5914843B2 (en) * | 2011-04-22 | 2016-05-11 | パナソニックIpマネジメント株式会社 | Image processing apparatus and image processing method |
US8842930B2 (en) | 2011-04-22 | 2014-09-23 | Panasonic Corporation | Image processing device and image processing method |
WO2012144158A1 (en) * | 2011-04-22 | 2012-10-26 | パナソニック株式会社 | Image processing apparatus and image processing method |
JP2013025368A (en) * | 2011-07-15 | 2013-02-04 | Tokyo Institute Of Technology | Noise level estimation device, noise level estimation method and program |
WO2015145917A1 (en) * | 2014-03-28 | 2015-10-01 | 日本電気株式会社 | Image-correcting device, image correction method, and program-recording medium |
JPWO2015145917A1 (en) * | 2014-03-28 | 2017-04-13 | 日本電気株式会社 | Image correction apparatus, image correction method, and program |
US10055824B2 (en) | 2014-03-28 | 2018-08-21 | Nec Corporation | Image correction device, image correction method and storage medium |
JP2015212938A (en) * | 2014-04-17 | 2015-11-26 | 株式会社モルフォ | Image processing apparatus, image processing method, image processing program, and recording medium |
US10043244B2 (en) | 2014-04-17 | 2018-08-07 | Morpho, Inc. | Image processing device, image processing method, image processing program, and recording medium |
Also Published As
Publication number | Publication date |
---|---|
JP4460368B2 (en) | 2010-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7508550B2 (en) | Image correcting apparatus and method, and image correcting program, and look-up table creating apparatus and method, and look-up table creating program | |
US8600105B2 (en) | Combining multiple cues in a visual object detection system | |
JP4690339B2 (en) | Image processing | |
JP3684017B2 (en) | Image processing apparatus and method | |
JPH0944670A (en) | Method and device for extracting specified image area | |
JP2002044473A (en) | Image-processing method, image-processing device, and record medium with program for executing image- processing method stored thereon | |
CN110503704B (en) | Method and device for constructing three-dimensional graph and electronic equipment | |
US20090274368A1 (en) | Image correction method and apparatus | |
JP4460368B2 (en) | Image correction apparatus and method, and image correction program | |
KR101437626B1 (en) | System and method for region-of-interest-based artifact reduction in image sequences | |
JP2006343863A (en) | Image processor and image processing method | |
JP2011065604A (en) | Image processing method and image processor | |
JP4708866B2 (en) | Lookup table creation device and method, and lookup table creation program | |
CN109727193B (en) | Image blurring method and device and electronic equipment | |
JP3473832B2 (en) | Digital image automatic correction method and system | |
JP2002281316A (en) | Discriminating method of noise component, method, device and program for processing image | |
JP3927979B2 (en) | Image processing apparatus and method | |
JP2002133414A (en) | Image processing method and its device and recording medium | |
JP2006050559A (en) | Image correcting apparatus and method, and image correction program | |
JP2012058954A (en) | Information processing unit, information processing method, and program | |
JP2008147714A (en) | Image processor and image processing method | |
JP2004148704A (en) | Image processing method and image processor | |
JP2008102589A (en) | Moving image processor, moving image processing method and moving image processing program | |
JP2006107018A (en) | Method and apparatus for image analysis, method and system for image processing, and operation program therefor | |
JP2021047653A (en) | Learning model generation device, image correction device, learning model generation program, and image correction program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20061208 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070209 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091113 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20091117 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100113 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20100202 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100212 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4460368 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130219 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140219 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |