JP2020182163A - Image processing apparatus, image processing method, and program - Google Patents
Image processing apparatus, image processing method, and program Download PDFInfo
- Publication number
- JP2020182163A JP2020182163A JP2019085416A JP2019085416A JP2020182163A JP 2020182163 A JP2020182163 A JP 2020182163A JP 2019085416 A JP2019085416 A JP 2019085416A JP 2019085416 A JP2019085416 A JP 2019085416A JP 2020182163 A JP2020182163 A JP 2020182163A
- Authority
- JP
- Japan
- Prior art keywords
- gain map
- infrared
- luminance
- gain
- signal
- 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
Images
Abstract
Description
本発明は、特に、局所的に画像のコントラストを向上させるために用いて好適な画像処理装置、画像処理方法およびプログラムに関する。 The present invention relates in particular to image processing devices, image processing methods and programs suitable for use in locally improving image contrast.
従来、部分毎に異なるゲインをかけて局所的に画像のコントラストを向上させるローカルトーンマッピングという技術が知られている。このような技術として、特許文献1には、入力画像の画素値に対して解像度変換を繰り返すことによって複数段階の画素値を生成し、入力画像の画素値と段階毎の画素値との差分に基づき、段階毎に入力画像の画素値を補正する技術が開示されている。この技術によれば、その補正された画素値を有する段階毎の解像度の画像データの、各解像度に応じた高周波成分を利用して、入力画像の画素値が強調された画像を生成することができるとしている。
Conventionally, there is known a technique called local tone mapping that locally improves the contrast of an image by applying a different gain to each part. As such a technique, in
また、特許文献2には、デジタル画像を生成するように働く画素と、主に前記デジタル画像の少なくとも1つの領域上の少なくとも2つの色の間の相対鮮鋭度を測定するように働く他の画素とを利用して、画像の鮮鋭度を向上させる技術が開示されている。 Further, Patent Document 2 describes a pixel that works to generate a digital image and another pixel that mainly works to measure the relative sharpness between at least two colors on at least one region of the digital image. A technique for improving the sharpness of an image by utilizing and is disclosed.
しかし、特許文献1に記載の処理は、入力画像の波長を考慮した処理を行っていないため、例えば針葉樹の葉のように可視光領域の信号が少ない被写体の場合には十分なコントラスト向上効果を与えることができないことがある。また、人の肌におけるシミのような特定領域のみのコントラストを低下する美肌処理に応用すると、シミ以外の被写体に美肌処理が適用されるため、シミ以外の部分がぼやける副作用が発生することがある。
However, since the process described in
特許文献2に記載の処理は、デジタル画像を生成するために働く画素の少なくとも2つの色の相対鮮鋭度の差が小さい場合、つまり2つの色の焦点位置の差が小さい場合は、画像の鮮鋭度を向上することができない。 The process described in Patent Document 2 is that when the difference in relative sharpness of at least two colors of the pixels working to generate a digital image is small, that is, when the difference in the focal positions of the two colors is small, the sharpness of the image is small. The degree cannot be improved.
本発明は前述の問題点に鑑み、シーンに応じて、適切かつ高いコントラスト補正効果を得ることができるようにすることを目的としている。 In view of the above-mentioned problems, it is an object of the present invention to make it possible to obtain an appropriate and high contrast correction effect according to the scene.
本発明に係る画像処理装置は、画像データに係る輝度信号および赤外信号を取得する取得手段と、前記輝度信号から第一の輝度ゲインマップを生成するとともに、前記輝度信号を縮小した輝度縮小信号から第二の輝度ゲインマップを生成する第一の生成手段と、前記赤外信号から第一の赤外ゲインマップを生成するとともに、前記赤外信号を縮小した赤外縮小信号から第二の赤外ゲインマップを生成する第二の生成手段と、前記画像データの被写体情報に基づいて、前記第一の輝度ゲインマップと前記第二の輝度ゲインマップとの第一の合成比率、および前記第一の赤外ゲインマップと前記第二の赤外ゲインマップとの第二の合成比率を算出する算出手段と、前記算出手段によって算出された第一及び第二の合成比率に基づき、前記画像データに対してゲイン処理を行うためのゲインマップを生成する第三の生成手段と、を備えることを特徴とする。 The image processing apparatus according to the present invention includes an acquisition means for acquiring a brightness signal and an infrared signal related to image data, a brightness reduction signal obtained by generating a first brightness gain map from the brightness signal, and reducing the brightness signal. A first generation means for generating a second brightness gain map from, and a second red from an infrared reduced signal obtained by generating a first infrared gain map from the infrared signal and reducing the infrared signal. A second generation means for generating an outer gain map, a first composite ratio of the first brightness gain map and the second brightness gain map based on the subject information of the image data, and the first Based on the calculation means for calculating the second composite ratio of the infrared gain map of the above and the second infrared gain map, and the first and second composite ratios calculated by the calculation means, the image data is obtained. On the other hand, it is characterized by including a third generation means for generating a gain map for performing gain processing.
本発明によれば、シーンに応じて、適切かつ高いコントラスト補正効果を得ることができる。 According to the present invention, an appropriate and high contrast correction effect can be obtained depending on the scene.
以下、本発明の好適な実施形態について説明する。 Hereinafter, preferred embodiments of the present invention will be described.
(画像処理装置100の基本構成)
図1は、本実施形態における画像処理装置100の内部構成例を示すブロック図である。本実施形態では、画像処理装置の一例としてデジタルカメラに適用する例について説明する。
画像処理装置100において、絞り、レンズ等の光学系101により撮像素子102上に被写体光が結像され、光電変換されて電気信号となって撮像素子102から出力される。撮像素子102は、例えば、一般的な原色カラーフィルタに加えて赤外信号用フィルタを備える単板カラー撮像素子とする。原色カラーフィルタは、各々650nm、550nm、450nm近傍に透過主波長帯を持つ3種類の色フィルタからなり、各々R(赤)、G(緑)、B(青)、の各バンドに対応する色プレーンを撮影する。赤外信号用フィルタは850nm近傍に透過主波長帯を持ち、IR(赤外)のバンドに対応する色プレーンを撮影する。
(Basic configuration of image processing device 100)
FIG. 1 is a block diagram showing an example of the internal configuration of the
In the
単板カラー撮像素子では、この色フィルタと赤外信号用フィルタとが画素毎にモザイク状に空間的に配列されており、各画素が単一の色プレーンにおける強度を得るので、撮像素子102からは色モザイク画像が出力されることになる。A/D変換部103は、撮像素子102により得られた電気信号をデジタル形式の画像データに変換し、現像処理部104に出力する。本実施形態では、この時点で12bitの画像データが画素毎に生成される。
In the single-plate color image sensor, the color filter and the infrared signal filter are spatially arranged in a mosaic pattern for each pixel, and each pixel obtains the intensity in a single color plane. Therefore, the
現像処理部104は、画像データに対して、画素補間処理、輝度信号処理、及び色信号処理などの一連の現像処理を行う。本実施形態では、画素補間処理によって、画像データの各画素に対するR、G、B、IRの情報が取得される。赤外受光画素を有した撮像素子からR、G、B、IRの情報を取得する方法については、例えば特許文献3に記載されているような公知の技術を用いる。現像処理部104は、R、G、Bの色空間を8bitの輝度(Y)データ、色差(U、V)データの色空間に変換し、YUVデータとして出力する。また、IRについては8bitに変換し、赤外信号として出力する。
The
赤外情報取得部112は、画像データの各画素に対する赤外情報(赤外信号)を取得する。本実施形態では、赤外情報取得部112は、現像処理部104から出力される被写体の赤外信号を赤外情報として取得する。但し、本実施形態はこれに限定されるものではなく、例えば、撮影画像を取得するための撮像素子とは別に赤外素子を設け、その赤外素子を利用するなどにより、A/D変換部103から出力される画像データを用いずに赤外信号を取得しても構わない。
The infrared
ローカルコントラスト調整部105は、現像処理部104から出力される画像データに対して、後述するローカルコントラスト調整処理を施す。なお、ローカルコントラスト調整部105の詳細な構成については後述する。
The local
信号処理部106は、ローカルコントラスト調整処理がなされた画像データに対して、リサイズ処理などを行い、出力部107へ供給する。出力部107は、画像データをHDMI(登録商標)などの出力インタフェースへ出力したり、半導体メモリカードなどの記録メディアへ記録したり、画像処理装置100の表示装置(図示せず)へ出力したりする。
The
UI部109は、スイッチ、ボタン、表示装置(図示せず)に設けられたタッチパネルなどの入力機器であり、ユーザによる指示などの外部からの操作は、UI部109を介して画像処理装置100へ入力される。
The
制御部110は、バス108を介して各部を制御し、また適宜必要な演算処理を行う。また、制御部110は、UI部109を介した入力信号を受けて演算を行ったり、各部を制御したりする。
The
メモリ111は、各処理部で用いられる画像データや、絞り値、シャッタースピード、撮影モード、ISO感度、ホワイトバランスゲイン値、s−RGBなどの色域の設定などの撮影時情報を記憶する。記憶されている撮影時情報は、制御部110の指示によって適宜読み出され、被写体情報として使用される。図1に示す各構成要素は、バス108を介して互いに通信可能に接続されている。
The
(ローカルコントラスト調整処理の詳細)
以下、図2を参照して、本実施形態に係る画像処理装置100においてローカルコントラスト調整処理を行うための詳細な構成について説明する。本実施形態では、画像データを用いて生成したゲインマップと赤外信号を用いて生成した赤外ゲインマップとを被写体情報に応じて補正することで、副作用なく高いコントラスト補正効果を画像データに与えるゲインマップを生成する。ここで、ゲインマップとは、図4に示すように、画面の位置に応じて適用するゲインが決められた画像を指す。
(Details of local contrast adjustment processing)
Hereinafter, a detailed configuration for performing the local contrast adjustment processing in the
本実施形態のローカルコントラスト調整部105は、入力された画像データに対しゲイン処理を行い、処理後の画像データを出力する。なお、本実施形態のローカルコントラスト調整処理で入出力する画像データは輝度信号によって構成される。
The local
図2は、ローカルコントラスト調整部105の詳細な構成例を示すブロック図である。
縮小画像生成部202は、入力信号(輝度信号)に対して縮小処理を行って低周波成分の輝度縮小信号を生成する。赤外縮小画像生成部206は、赤外情報取得部112から入力された赤外信号に対して縮小処理を行って低周波成分の赤外縮小信号を生成する。縮小処理の方法については、バイリニア法を用いた縮小処理など一般的な方法を用いる。
FIG. 2 is a block diagram showing a detailed configuration example of the local
The reduced
第一のゲイン変換部201は、輝度信号に対して第一の階調特性を適用することで第一の輝度ゲインマップを生成する。第二のゲイン変換部203は、輝度縮小信号に対して第一の階調特性を適用することで第二の輝度ゲインマップを生成する。第一の赤外ゲイン変換部205は、赤外信号に対して第一の階調特性を適用することで第一の赤外ゲインマップを生成する。第二の赤外ゲイン変換部207は、赤外縮小信号に対して第一の階調特性を適用することで第二の赤外ゲインマップを生成する。入力信号からゲインマップを生成する方法については、特許文献4に記載のような、本来階調処理で適用したい特性に対し、単調増加となっている部分を一律単調減少に変換した第一の階調特性を適用する公知の手法を用いる。
The first
階層ゲインマップ合成部204は、第一の輝度ゲインマップと第二の輝度ゲインマップとを合成することで輝度合成ゲインマップを生成する。赤外階層ゲインマップ合成部208は、第一の赤外ゲインマップと第二の赤外ゲインマップとを合成することで赤外合成ゲインマップを生成する。合成ゲインマップの生成方法については、例えば特許文献5に記載のような、画像サイズの大きいゲインマップのゲイン信号と画像サイズの小さいゲインマップのゲイン信号とをゲインの信号差に応じて加重加算する公知の手法を用いる。
The hierarchical gain
コントラスト補正判定部211は、制御部110から入力された被写体情報を用いて第一の輝度ゲインマップと第二の輝度ゲインマップとの合成比率を算出し、階層ゲインマップ合成部204に出力する。また、コントラスト補正判定部211は、第一の赤外ゲインマップと第二の赤外ゲインマップとの合成比率も算出し、赤外階層ゲインマップ合成部208に出力する。さらに、コントラスト補正判定部211は、ゲインマップ補正比率を算出し、ゲインマップ補正部209に出力する。
The contrast
ゲインマップ補正部209は、コントラスト補正判定部211からゲインマップ補正比率、赤外階層ゲインマップ合成部208から赤外合成ゲインマップ、階層ゲインマップ合成部204から輝度合成ゲインマップを入力する。そして、ゲインマップ補正部209は、ゲインマップ補正比率および赤外合成ゲインマップを用いて、輝度合成ゲインマップを補正する。
ゲイン処理部210は、補正された輝度合成ゲインマップを用いて、入力された画像データに対してゲイン処理を行い、画像データを出力する。
The gain
The
次に、本実施形態のゲインマップの補正処理について、図3のフローチャートを用いて説明する。
図3は、ゲインマップの補正処理の詳細な手順の一例を示すフローチャートである。なお、本フローチャートの各動作は、制御部110、あるいは制御部110の指示により各部で行われる。
ステップS301では、階層ゲインマップ合成部204は、第一の輝度ゲインマップと第二の輝度ゲインマップとをそれぞれ第一のゲイン変換部201、第二のゲイン変換部203から入力する。
Next, the gain map correction process of the present embodiment will be described with reference to the flowchart of FIG.
FIG. 3 is a flowchart showing an example of a detailed procedure of the gain map correction process. Each operation of this flowchart is performed by each unit according to the instruction of the
In step S301, the hierarchical gain
ステップS302では、赤外階層ゲインマップ合成部208は、第一の赤外ゲインマップと第二の赤外ゲインマップとをそれぞれ第一の赤外ゲイン変換部205、第二の赤外ゲイン変換部207から入力する。
ステップS303では、コントラスト補正判定部211は、制御部110から被写体情報を入力する。本実施形態では、例えば、被写体情報として、撮影時のカメラの撮影モードの情報を用いる。
In step S302, the infrared layer gain
In step S303, the contrast
ステップS304では、コントラスト補正判定部211は、被写体情報を用いて美肌処理の要否を判定する。例えば、カメラの撮影モードがポートレートモードなどの人物撮影を目的としたモードである場合は、美肌処理が必要であると判定し、ステップS305に進む。一方、美肌処理が不要である場合には、ステップS306に進む。
In step S304, the contrast
ステップS305では、まず、コントラスト補正判定部211は、美肌処理用のゲインマップを生成するために必要な情報を生成する。本実施形態における美肌処理の目的は人の肌に生じたシミの低減である。ここで、シミには2つの特徴がある。以下、シミに関する2つの特徴に基づき、ステップS305でゲインマップを生成する手順について説明する。
In step S305, first, the contrast
1つ目の特徴は、ポートレート画像における美肌処理で低減すべきシミは、低周波成分を多く含むことである。撮影画角に占める人物の顔を小さくすれば、その人物の肌のシミは撮像素子の数画素に収まり、シミが高周波成分のみで構成される場合はある。ところが、この場合は画角に対する顔やシミが小さいため、シミが気になる可能性はなく、そもそもシミの低減処理を行う必要がない。 The first feature is that the spots that should be reduced by the skin-beautifying treatment in the portrait image contain a lot of low-frequency components. If the face of a person occupying the shooting angle of view is made smaller, the stains on the skin of the person may be contained in a few pixels of the image sensor, and the stains may be composed of only high-frequency components. However, in this case, since the face and the stains with respect to the angle of view are small, there is no possibility that the stains are anxious, and it is not necessary to perform the stain reduction treatment in the first place.
したがって、ローカルコントラスト調整によってシミを低減するためには、輝度縮小画像から生成された第二の輝度ゲインマップを用いれば良い。つまり、コントラスト補正判定部211は、第一の輝度ゲインマップの加算比率を0、第二の輝度ゲインマップの加算比率を美肌強度×αとする合成比率を算出する。なお、本実施形態における美肌強度は、ボートレートモードなら3(弱め)、美肌モードまたは自撮りモードなら5(強め)と撮影モードによって決定されるが、例えばユーザがUI部109から設定できるようにしても良い。一方で係数αは、撮像素子102から入力された画像信号の特性や現像処理部104の内容に応じて美肌処理を調整するための調整係数である。
Therefore, in order to reduce the stain by adjusting the local contrast, a second luminance gain map generated from the luminance reduced image may be used. That is, the contrast
ステップS305においては、さらに階層ゲインマップ合成部204は、コントラスト補正判定部211から合成比率を入力し、入力された合成比率に従って輝度合成ゲインマップを生成し、ゲインマップ補正部209に出力する。また、コントラスト補正判定部211は、輝度合成ゲインマップの符号を反転するような制御信号をゲインマップ補正部209に出力する。
In step S305, the hierarchical gain
2つ目の特徴は、波長の長い赤外信号は、肌の表面近くにあるシミを撮像しにくいため、赤外信号にシミの成分がほとんど含まれないことである。輝度信号の低周波成分にはシミ以外の信号も含まれているため、輝度合成ゲインマップの符号を反転したゲインマップを用いてローカルコントラスト補正を行うと、シミと一緒に目・鼻・口など被写体の顔の特徴を示す信号のコントラストも失われてしまう。一方、赤外信号の低周波成分にはシミを除いた被写体の顔の特徴を示す信号だけが存在する。 The second feature is that an infrared signal with a long wavelength makes it difficult to image a stain near the surface of the skin, so that the infrared signal contains almost no stain component. Since the low-frequency components of the luminance signal include signals other than stains, if local contrast correction is performed using a gain map in which the sign of the luminance composite gain map is inverted, the eyes, nose, mouth, etc., along with the stains, etc. The contrast of the signal indicating the facial features of the subject is also lost. On the other hand, in the low frequency component of the infrared signal, there is only a signal showing the facial features of the subject excluding stains.
そこで、本実施形態では、輝度合成ゲインマップを反転させたゲインマップによって低下する被写体の顔の特徴を示す信号のコントラストを、赤外信号を用いて向上させるようにする。具体的に、コントラスト補正判定部211は、第一の赤外ゲインマップの加算比率を0、第二の赤外ゲインマップの加算比率を美肌強度×βとする合成比率を算出する。ここで、係数βは撮像素子102から入力された画像信号の特性、赤外信号の特性、および現像処理部104の内容に応じて美肌処理を調整するための調整係数である。
Therefore, in the present embodiment, the contrast of the signal indicating the facial features of the subject, which is lowered by the gain map obtained by reversing the luminance composite gain map, is improved by using the infrared signal. Specifically, the contrast
ステップS305においては、さらに赤外階層ゲインマップ合成部208は、コントラスト補正判定部211から合成比率を入力し、入力された合成比率に従って赤外合成ゲインマップを生成し、ゲインマップ補正部209に出力する。コントラスト補正判定部211は、赤外合成ゲインマップを輝度合成ゲインマップに加算するような制御信号をゲインマップ補正部209に出力する。ゲインマップ補正部209は、制御信号に従って輝度合成ゲインマップを赤外合成ゲインマップで補正したゲインマップを生成する。
In step S305, the infrared layer gain
以上のようにステップS305で生成されたゲインマップを用いてゲイン処理を行うことで、目・鼻・口など被写体の特徴を示す信号のコントラストを低下させることなく、肌のシミを低減することができる。 By performing the gain processing using the gain map generated in step S305 as described above, it is possible to reduce skin spots without lowering the contrast of signals indicating the characteristics of the subject such as eyes, nose, and mouth. it can.
ステップS306では、コントラスト補正判定部211は、被写体情報を用いて針葉樹処理の要否を判定する。例えば、カメラの撮影モードが風景モードなどの風景撮影を目的としたモードである場合は、針葉樹処理が必要であると判定し、ステップS307に進む。一方、針葉樹処理が不要である場合には、ステップS308に進む。
In step S306, the contrast
ステップS307では、まず、コントラスト補正判定部211は、針葉樹処理用のゲインマップを生成するために必要な情報を生成する。本実施形態における針葉樹処理の目的は針葉樹の解像感を向上することである。ここで、針葉樹には2つの特徴があり、1つ目は、針葉樹は高周波成分を多く含むことであり、2つ目は、針葉樹は暗い緑であるため出力される輝度信号が小さいが、赤外成分を多く反射するため、出力される赤外信号は大きいことである。
In step S307, first, the contrast
したがって、ローカルコントラスト調整によって針葉樹の解像感を向上するためには、赤外信号から生成された第一の赤外ゲインマップを用いれば良い。つまり、コントラスト補正判定部211は、第一の赤外ゲインマップの加算比率をγ、第二の赤外ゲインマップの加算比率を0とする合成比率を算出する。ここで、係数γは撮像素子102から入力された画像信号の特性、赤外信号の特性、および現像処理部104の内容に応じて針葉樹処理を調整するための調整係数である。
Therefore, in order to improve the resolution of coniferous trees by adjusting the local contrast, the first infrared gain map generated from the infrared signal may be used. That is, the contrast
ステップS307においては、さらに赤外階層ゲインマップ合成部208は、コントラスト補正判定部211から合成比率を入力し、入力された合成比率に従って赤外合成ゲインマップを生成し、ゲインマップ補正部209に出力する。
In step S307, the infrared layer gain
また、風景撮影を目的としたモードが選択されているため、針葉樹以外の被写体についても高周波成分のコントラストを向上させる必要がある。したがって、輝度信号から生成された第一の輝度ゲインマップを用いれば良い。つまり、コントラスト補正判定部211は、第一の輝度ゲインマップの加算比率をθ、第二の輝度ゲインマップの加算比率を0とする合成比率を算出する。ここで、係数θは撮像素子102から入力された画像信号の特性と現像処理部104の内容とに応じて風景用のローカルコントラスト処理を調整するための調整係数である。
In addition, since the mode for landscape photography is selected, it is necessary to improve the contrast of high-frequency components for subjects other than coniferous trees. Therefore, the first luminance gain map generated from the luminance signal may be used. That is, the contrast
ステップS307においては、さらに階層ゲインマップ合成部204は、コントラスト補正判定部211から合成比率を入力し、入力された合成比率に従って輝度合成ゲインマップを生成し、ゲインマップ補正部209に出力する。コントラスト補正判定部211は、赤外合成ゲインマップを輝度合成ゲインマップに加算するような制御信号をゲインマップ補正部209に出力する。ゲインマップ補正部209は、制御信号に従って輝度合成ゲインマップを赤外合成ゲインマップで補正したゲインマップを生成する。
In step S307, the hierarchical gain
以上のようにステップS307で生成されたゲインマップを用いてゲイン処理を行うことで、針葉樹の解像感を向上させることができる。 By performing the gain processing using the gain map generated in step S307 as described above, the resolution of the coniferous tree can be improved.
ステップS308では、人物撮影を目的としたモードおよび風景撮影を目的としたモード以外のモードであり、美肌処理および針葉樹処理のいずれも必要としない。そのため、コントラスト補正判定部211は、幅広いシーンに適した汎用的なゲインマップを生成するために必要な情報を生成する。この場合は赤外情報を用いる必要がないため、コントラスト補正判定部211は、第一の赤外ゲインマップの加算比率および第二の赤外ゲインマップの加算比率をいずれも0とする合成比率を生成する。一方で、輝度階層ゲインマップの合成比率については任意の値を算出する。
In step S308, the mode is other than the mode for portrait photography and the mode for landscape photography, and neither skin beautification treatment nor coniferous tree treatment is required. Therefore, the contrast
階層ゲインマップ合成部204は、コントラスト補正判定部211から合成比率を入力し、入力された合成比率に従って輝度合成ゲインマップを生成し、ゲインマップ補正部209に出力する。コントラスト補正判定部211は、赤外合成ゲインマップを加算しないような制御信号をゲインマップ補正部209に出力する。ゲインマップ補正部209は、制御信号に従って輝度合成ゲインマップをそのままゲインマップとして採用する。
The hierarchical gain
以上のようにステップS308で生成されたゲインマップを用いてゲイン処理を行うことで、幅広いシーンに適したローカルコントラスト補正を行うことができる。 By performing the gain processing using the gain map generated in step S308 as described above, local contrast correction suitable for a wide range of scenes can be performed.
ステップS309では、ゲインマップ補正部209は、生成したゲインマップを、ゲイン処理部210に出力する。
In step S309, the gain
以上のように本実施形態によれば、被写体情報に応じて、輝度信号と赤外信号とをそれぞれ周波数帯域ごとに制御し、ローカルコントラスト調整を行うようにした。これにより、輝度信号だけを用いたコントラスト補正処理では得られないコントラスト補正効果が得られる。また、輝度信号だけを用いたコントラスト補正処理よりも副作用を抑えたコントラスト補正を行うことができる。
本実施形態でローカルコントラスト調整の方法としてゲインマップを生成、合成する方法を用いたが、領域ごとの階調補正量が特定できれば、必ずしもゲインマップを用いる必要はない。
As described above, according to the present embodiment, the luminance signal and the infrared signal are controlled for each frequency band according to the subject information, and the local contrast is adjusted. As a result, a contrast correction effect that cannot be obtained by the contrast correction process using only the luminance signal can be obtained. In addition, it is possible to perform contrast correction with less side effects than contrast correction processing using only the luminance signal.
In the present embodiment, a method of generating and synthesizing a gain map is used as a method of adjusting the local contrast, but it is not always necessary to use the gain map if the gradation correction amount for each region can be specified.
本実施形態でローカルコントラスト調整部105の各構成についても説明したが、各ブロックの動作は専用の回路を用いて実現してもよく、ソフトウェアで実現するようにしてもよい。つまり、ローカルコントラスト調整部105の各動作の一部あるいは全部がソフトウェア処理で実装されていても良い。また、図1に示す画像処理装置100におけるその他のブロックについても、同様にその一部あるいは全部がソフトウェア処理で実装されていても良い。
Although each configuration of the local
(その他の実施形態)
前述の実施形態では、画像処理装置の一例としてデジタルカメラについて説明した。一方で、スキャナ等の撮像系を有する画像処理装置であってもよく、画像データを処理できる画像処理装置であれば特に実施の形態は限定されない。すなわち、画像処理装置としては、パーソナルコンピュータ等の情報処理装置であってもよいし、携帯型の情報端末、プリンタ等の画像形成装置などでもよい。
(Other embodiments)
In the above-described embodiment, the digital camera has been described as an example of the image processing device. On the other hand, an image processing device having an image pickup system such as a scanner may be used, and the embodiment is not particularly limited as long as it is an image processing device capable of processing image data. That is, the image processing device may be an information processing device such as a personal computer, or an image forming device such as a portable information terminal or a printer.
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
104 現像処理部
112 赤外情報取得部
201 第一のゲイン変換部
203 第二のゲイン変換部
205 第一の赤外ゲイン変換部
207 第二の赤外ゲイン変換部
209 ゲインマップ補正部
211 コントラスト補正判定部
104
Claims (9)
前記輝度信号から第一の輝度ゲインマップを生成するとともに、前記輝度信号を縮小した輝度縮小信号から第二の輝度ゲインマップを生成する第一の生成手段と、
前記赤外信号から第一の赤外ゲインマップを生成するとともに、前記赤外信号を縮小した赤外縮小信号から第二の赤外ゲインマップを生成する第二の生成手段と、
前記画像データの被写体情報に基づいて、前記第一の輝度ゲインマップと前記第二の輝度ゲインマップとの第一の合成比率、および前記第一の赤外ゲインマップと前記第二の赤外ゲインマップとの第二の合成比率を算出する算出手段と、
前記算出手段によって算出された第一及び第二の合成比率に基づき、前記画像データに対してゲイン処理を行うためのゲインマップを生成する第三の生成手段と、
を備えることを特徴とする画像処理装置。 An acquisition means for acquiring a luminance signal and an infrared signal related to image data,
A first generation means for generating a first luminance gain map from the luminance signal and a second luminance gain map from the luminance reduction signal obtained by reducing the luminance signal.
A second generation means for generating a first infrared gain map from the infrared signal and a second infrared gain map from an infrared reduced signal obtained by reducing the infrared signal.
Based on the subject information of the image data, the first composite ratio of the first brightness gain map and the second brightness gain map, and the first infrared gain map and the second infrared gain A calculation method for calculating the second composite ratio with the map,
A third generation means for generating a gain map for performing gain processing on the image data based on the first and second composite ratios calculated by the calculation means.
An image processing device characterized by comprising.
前記第三の生成手段は、前記第一の合成比率で合成されたゲインマップの符号を反転することによって前記ゲイン処理を行うためのゲインマップを生成することを特徴とする請求項2に記載の画像処理装置。 When the shooting mode is a mode intended for portrait photography, the calculation means calculates the first composite ratio so as to increase the composite ratio of the second luminance gain map, and also calculates the second composite ratio. The second composite ratio was calculated so as to increase the composite ratio of the infrared gain map.
The third generation means according to claim 2, wherein the gain map for performing the gain processing is generated by inverting the sign of the gain map synthesized at the first synthesis ratio. Image processing device.
前記輝度信号から第一の輝度ゲインマップを生成するとともに、前記輝度信号を縮小した輝度縮小信号から第二の輝度ゲインマップを生成する第一の生成工程と、
前記赤外信号から第一の赤外ゲインマップを生成するとともに、前記赤外信号を縮小した赤外縮小信号から第二の赤外ゲインマップを生成する第二の生成工程と、
前記画像データの被写体情報に基づいて、前記第一の輝度ゲインマップと前記第二の輝度ゲインマップとの第一の合成比率、および前記第一の赤外ゲインマップと前記第二の赤外ゲインマップとの第二の合成比率を算出する算出工程と、
前記算出工程において算出された第一及び第二の合成比率に基づき、前記画像データに対してゲイン処理を行うためのゲインマップを生成する第三の生成工程と、
を備えることを特徴とする画像処理方法。 The acquisition process for acquiring the luminance signal and infrared signal related to the image data,
A first generation step of generating a first luminance gain map from the luminance signal and generating a second luminance gain map from the luminance reduced signal obtained by reducing the luminance signal.
A second generation step of generating a first infrared gain map from the infrared signal and generating a second infrared gain map from an infrared reduced signal obtained by reducing the infrared signal.
Based on the subject information of the image data, the first composite ratio of the first brightness gain map and the second brightness gain map, and the first infrared gain map and the second infrared gain The calculation process to calculate the second composite ratio with the map,
A third generation step of generating a gain map for performing gain processing on the image data based on the first and second composite ratios calculated in the calculation step, and a third generation step.
An image processing method characterized by comprising.
前記輝度信号から第一の輝度ゲインマップを生成するとともに、前記輝度信号を縮小した輝度縮小信号から第二の輝度ゲインマップを生成する第一の生成工程と、
前記赤外信号から第一の赤外ゲインマップを生成するとともに、前記赤外信号を縮小した赤外縮小信号から第二の赤外ゲインマップを生成する第二の生成工程と、
前記画像データの被写体情報に基づいて、前記第一の輝度ゲインマップと前記第二の輝度ゲインマップとの第一の合成比率、および前記第一の赤外ゲインマップと前記第二の赤外ゲインマップとの第二の合成比率を算出する算出工程と、
前記算出工程において算出された第一及び第二の合成比率に基づき、前記画像データに対してゲイン処理を行うためのゲインマップを生成する第三の生成工程と、
をコンピュータに実行させるためのプログラム。 The acquisition process for acquiring the luminance signal and infrared signal related to the image data,
A first generation step of generating a first luminance gain map from the luminance signal and generating a second luminance gain map from the luminance reduced signal obtained by reducing the luminance signal.
A second generation step of generating a first infrared gain map from the infrared signal and generating a second infrared gain map from an infrared reduced signal obtained by reducing the infrared signal.
Based on the subject information of the image data, the first composite ratio of the first brightness gain map and the second brightness gain map, and the first infrared gain map and the second infrared gain The calculation process to calculate the second composite ratio with the map,
A third generation step of generating a gain map for performing gain processing on the image data based on the first and second composite ratios calculated in the calculation step, and a third generation step.
A program that lets your computer run.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019085416A JP2020182163A (en) | 2019-04-26 | 2019-04-26 | Image processing apparatus, image processing method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019085416A JP2020182163A (en) | 2019-04-26 | 2019-04-26 | Image processing apparatus, image processing method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2020182163A true JP2020182163A (en) | 2020-11-05 |
Family
ID=73023495
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019085416A Pending JP2020182163A (en) | 2019-04-26 | 2019-04-26 | Image processing apparatus, image processing method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2020182163A (en) |
-
2019
- 2019-04-26 JP JP2019085416A patent/JP2020182163A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2426928B1 (en) | Image processing apparatus, image processing method and program | |
KR101099401B1 (en) | Image processing apparatus and computer-readable medium | |
JP5343726B2 (en) | Image processing apparatus and image processing program | |
JP2010039758A (en) | Image processor and image processing method | |
JP2010103740A (en) | Digital camera | |
JP6004757B2 (en) | Image processing apparatus and image processing method | |
JP4479527B2 (en) | Image processing method, image processing apparatus, image processing program, and electronic camera | |
JP2007228451A (en) | Imaging apparatus | |
JP2011228807A (en) | Image processing program, image processing apparatus, and image processing method | |
JP2018014646A (en) | Image processing apparatus and image processing method | |
JP5076650B2 (en) | Imaging apparatus and image processing program | |
JP2004246644A (en) | Apparatus, method, and program for image processing | |
JP2006114006A (en) | Gradation conversion apparatus, program, electronic camera, and method therefor | |
JP2020145553A (en) | Image processing apparatus, image processing method and program | |
JP2020004007A (en) | Image processing device, image processing method, and program | |
JP5284183B2 (en) | Image processing apparatus and method | |
JP2020182163A (en) | Image processing apparatus, image processing method, and program | |
JP5810593B2 (en) | Image processing apparatus, imaging apparatus, and program | |
JP2007267170A (en) | Electronic camera with chroma saturation regulating function and image processing program | |
JP2016040870A (en) | Image processing apparatus, image forming method and program | |
JP2020123138A (en) | Image processing system, image processing method, program, and storage medium | |
JP2013127804A (en) | Image processing program, image processing device and image processing method | |
JP4377733B2 (en) | Color adjustment module, image pickup apparatus, and program for realizing color adjustment | |
JP2023090493A (en) | Image processing device, control method for the same, program, and storage medium | |
TWI636686B (en) | High dynamic range imaging |