JP2016206728A - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP2016206728A
JP2016206728A JP2015083692A JP2015083692A JP2016206728A JP 2016206728 A JP2016206728 A JP 2016206728A JP 2015083692 A JP2015083692 A JP 2015083692A JP 2015083692 A JP2015083692 A JP 2015083692A JP 2016206728 A JP2016206728 A JP 2016206728A
Authority
JP
Japan
Prior art keywords
image
image processing
statistical information
unit
processing
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
Application number
JP2015083692A
Other languages
Japanese (ja)
Inventor
智志 池田
Satoshi Ikeda
智志 池田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2015083692A priority Critical patent/JP2016206728A/en
Publication of JP2016206728A publication Critical patent/JP2016206728A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To determine optimal combination of image processing parameters for multiple processes of image processing.SOLUTION: An image processing apparatus includes: image processing means (first image processing unit 143 and second image processing unit 144) which sequentially executes multiple processes of image processing on an input image Iin; estimation means which estimates results of the image processing executed by the image processing means, on the basis of statistical information which is information on statistic of the input image Iin; and setting means which sets each parameter of the image processing, on the basis of the image processing results estimated in the estimation means.SELECTED DRAWING: Figure 2

Description

本発明は、画像に対して複数の画像処理を実施する画像処理装置及び画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method for performing a plurality of image processing on an image.

近年、画像に対して実施する画像処理は複雑化しており、複数の画像処理を組み合わせた一連の処理を実施するようになっている。例えば、主な処理としては、デモザイク、ホワイトバランス調整、ノイズリダクション、色変換、エッジ強調、ガンマ補正等が挙げられる。一般に、これらの処理を実施する処理ブロックはカスケードに連結されており、画像の最終画質は、これらの処理の組み合わせによって決まる。
特許文献1には、階調補正処理を行う階調補正部と、ノイズ低減処理を行うノイズ低減部とを備える映像信号処理装置が開示されている。この映像信号処理装置では、階調補正処理を行うために用いる階調特性の傾きに応じて、ノイズ低減部にて映像信号のノイズを低減している。
In recent years, image processing performed on an image has become complicated, and a series of processing combining a plurality of image processing has been performed. For example, the main processing includes demosaic, white balance adjustment, noise reduction, color conversion, edge enhancement, gamma correction, and the like. In general, processing blocks for performing these processes are connected in cascade, and the final image quality of an image is determined by a combination of these processes.
Patent Document 1 discloses a video signal processing apparatus including a gradation correction unit that performs gradation correction processing and a noise reduction unit that performs noise reduction processing. In this video signal processing device, the noise of the video signal is reduced by the noise reduction unit in accordance with the gradient of the gradation characteristics used for performing the gradation correction processing.

特開2007−312331号公報JP 2007-31331 A

上記特許文献1に記載の技術では、先ず、入力映像に応じて階調補正処理で用いるパラメータを決定し、その結果をもとにノイズ低減処理で用いるパラメータを決定している。すなわち、この技術は、一方の画像処理が他方の画像処理に与える影響のみを考慮して画像処理パラメータを決定する技術である。しかしながら、各画像処理は相互に依存するため、一方の画像処理が他方の画像処理に与える影響のみを考慮しただけでは、最適なパラメータの組み合わせを設定することはできず、画像の最終画質を良好なものにすることはできない。
そこで、本発明は、複数の画像処理について最適な画像処理パラメータの組み合わせを設定することを目的とする。
In the technique described in Patent Document 1, first, parameters used in tone correction processing are determined according to an input video, and parameters used in noise reduction processing are determined based on the results. That is, this technique is a technique for determining image processing parameters in consideration of only the influence of one image processing on the other image processing. However, since each image process depends on each other, the optimum combination of parameters cannot be set only by considering the influence of one image process on the other image process, and the final image quality of the image is good. I can't make it.
Accordingly, an object of the present invention is to set an optimal combination of image processing parameters for a plurality of image processes.

上記課題を解決するために、本発明に係る画像処理装置の一態様は、入力画像に対して、少なくとも第1の画像処理と後続する第2の画像処理とを含む複数の画像処理を順次実施する画像処理手段と、前記入力画像の統計量に関する情報である統計情報に基づいて、前記画像処理手段において前記入力画像に対する前記第1の画像処理後に得られる第1の画像処理結果を推定し、該第1の画像処理結果を推定した結果に基づいて、前記第1の画像処理結果に対する前記第2の画像処理後に得られる第2の画像処理結果を推定する推定手段と、前記推定手段から得られる第2の画像処理結果を推定した結果に基づいて、前記第1の画像処理に用いられるパラメータおよび前記第2の画像処理に用いられるパラメータをそれぞれ設定する設定手段と、を有する。   In order to solve the above problem, an aspect of an image processing apparatus according to the present invention sequentially performs a plurality of image processing including at least first image processing and subsequent second image processing on an input image. Based on statistical information that is information relating to the statistical amount of the input image and the image processing means to estimate a first image processing result obtained after the first image processing on the input image in the image processing means, An estimation unit that estimates a second image processing result obtained after the second image processing with respect to the first image processing result based on a result of estimating the first image processing result, and obtained from the estimation unit Setting means for setting a parameter used for the first image processing and a parameter used for the second image processing based on a result of estimating the second image processing result It has a.

本発明によれば、複数の画像処理について最適な画像処理パラメータの組み合わせを決定することができる。   According to the present invention, it is possible to determine an optimal combination of image processing parameters for a plurality of image processes.

本実施形態の画像処理装置を備えるデジタルカメラの構成例である。It is a structural example of a digital camera provided with the image processing apparatus of this embodiment. 画像処理部の構成例を示すブロック図である。It is a block diagram which shows the structural example of an image process part. 画像処理部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of an image process part. 輝度ヒストグラムの一例を示す模式図である。It is a schematic diagram which shows an example of a brightness | luminance histogram. 周波数パワースペクトルのべき乗則の一例を示す模式図である。It is a schematic diagram which shows an example of the power law of a frequency power spectrum. 図3のS3の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of S3 of FIG. 第一のデータベースの構成例を表す図である。It is a figure showing the example of a structure of a 1st database. 図3のS4の動作を説明するフローチャートである。It is a flowchart explaining the operation | movement of S4 of FIG. 第二のデータベースの構成例を表す図である。It is a figure showing the example of a structure of a 2nd database. 動作例1の画質推定結果の一例である。It is an example of the image quality estimation result of the operation example 1. 動作例2の画質推定結果の一例である。It is an example of the image quality estimation result of the operation example 2. 動作例3の画質推定結果の一例である。It is an example of the image quality estimation result of the operation example 3. ガンマカーブg1の一例を表す図である。It is a figure showing an example of the gamma curve g1. ガンマカーブg2の一例を表す図である。It is a figure showing an example of the gamma curve g2. 画像処理部の別の構成例を示すブロック図である。It is a block diagram which shows another structural example of an image process part. 図15の画像処理部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the image process part of FIG.

以下、添付図面を参照して、本発明を実施するための形態について詳細に説明する。なお、以下に説明する実施の形態は、本発明の実現手段としての一例であり、本発明が適用される装置の構成や各種条件によって適宜修正又は変更されるべきものであり、本発明は以下の実施の形態に限定されるものではない。
図1は、本実施形態における画像処理装置を備える撮像装置10の構成例である。撮像装置10は、例えば、デジタルカメラである。デジタルカメラ10は、デジタルスチルカメラであってもデジタルビデオカメラであってもよい。デジタルカメラ10は、撮像部11と、A/D変換部12と、信号処理部13と、画像処理部14と、エンコーダ部15と、メディアインタフェース(メディアI/F)16と、を備える。さらに、デジタルカメラ10は、CPU17と、ROM18と、RAM19と、撮像系制御部20と、操作部21と、D/A変換部22と、表示部23と、を備える。デジタルカメラ10の上記した構成要素は、直接または間接的に、バス24により相互に接続されている。
DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the accompanying drawings. The embodiment described below is an example as means for realizing the present invention, and should be appropriately modified or changed depending on the configuration and various conditions of the apparatus to which the present invention is applied. It is not limited to the embodiment.
FIG. 1 is a configuration example of an imaging apparatus 10 including an image processing apparatus according to this embodiment. The imaging device 10 is, for example, a digital camera. The digital camera 10 may be a digital still camera or a digital video camera. The digital camera 10 includes an imaging unit 11, an A / D conversion unit 12, a signal processing unit 13, an image processing unit 14, an encoder unit 15, and a media interface (media I / F) 16. Furthermore, the digital camera 10 includes a CPU 17, a ROM 18, a RAM 19, an imaging system control unit 20, an operation unit 21, a D / A conversion unit 22, and a display unit 23. The above-described components of the digital camera 10 are connected to each other by a bus 24 directly or indirectly.

本実施形態において、画像処理部14が画像処理装置として動作する。また、撮像装置10は、デジタルカメラに限定されるものではなく、例えばスマートフォン、タブレット型端末、ゲーム機等であってもよい。
撮像部11は、ズームレンズ、フォーカスレンズ、ぶれ補正レンズ、絞り、シャッター、光学ローパスフィルタ、iR(赤外線)カットフィルタ、カラーフィルタ、CMOS素子やCCDなどのセンサなどから構成される。撮像部11は、被写体(図示せず)の光量を検知する。撮像部11は、被写体の光量を検知することにより、被写体の光学像を電気信号に変換する。この電気信号はアナログ信号であり、撮像部11は、このアナログ信号をA/D変換部12に出力する。A/D変換部12は、被写体の光量に相当する上記アナログ信号をデジタル値に変換し、これを信号処理部13に出力する。信号処理部13は、上記デジタル値にデモザイキング処理、ホワイトバランス処理、エッジ強調処理、ガンマ処理などを行い、デジタル画像を生成する。信号処理部13は、当該デジタル画像を画像処理部14に出力する。
In the present embodiment, the image processing unit 14 operates as an image processing apparatus. Moreover, the imaging device 10 is not limited to a digital camera, For example, a smart phone, a tablet-type terminal, a game machine etc. may be sufficient.
The imaging unit 11 includes a zoom lens, a focus lens, a shake correction lens, a diaphragm, a shutter, an optical low-pass filter, an iR (infrared) cut filter, a color filter, a sensor such as a CMOS element and a CCD, and the like. The imaging unit 11 detects the amount of light of a subject (not shown). The imaging unit 11 converts the optical image of the subject into an electrical signal by detecting the amount of light of the subject. The electrical signal is an analog signal, and the imaging unit 11 outputs the analog signal to the A / D conversion unit 12. The A / D converter 12 converts the analog signal corresponding to the amount of light of the subject into a digital value and outputs it to the signal processor 13. The signal processing unit 13 performs demosaicing processing, white balance processing, edge enhancement processing, gamma processing, and the like on the digital value to generate a digital image. The signal processing unit 13 outputs the digital image to the image processing unit 14.

画像処理部14は、上記デジタル画像を入力画像とし、当該入力画像に対して複数の画像処理を順次実施する。当該画像処理は、例えば、ノイズリダクション処理(NR処理)、シャープネス処理、階調変換処理などである。なお、上記画像処理は、デモザイキング処理、ホワイトバランス処理、エッジ強調処理、ガンマ処理などであってもよい。画像処理部14は、複数の画像処理について、複合的に各画像処理のパラメータを設定するパラメータ設定処理を行い、当該処理において設定したパラメータを用いて各画像処理を実施する。このパラメータ設定処理については後で詳述する。画像処理部14は、画像処理後の画像をエンコーダ部15とD/A変換部22とに出力する。
エンコーダ部15は、画像処理後のデジタル画像をJPEG等の映像圧縮フォーマットに変換し、これをメディアI/F16に出力する。メディアI/F16は、デジタルカメラ10を外部のメディア30に接続するためのインタフェースである。外部のメディア30は、例えば、ハードディスク、メモリーカード、CF(Compact Flash)カード、SDカード、USBメモリ等である。
The image processing unit 14 uses the digital image as an input image, and sequentially performs a plurality of image processes on the input image. The image processing includes, for example, noise reduction processing (NR processing), sharpness processing, gradation conversion processing, and the like. Note that the image processing may be demosaicing processing, white balance processing, edge enhancement processing, gamma processing, or the like. The image processing unit 14 performs parameter setting processing for setting the parameters of each image processing in a composite manner for a plurality of image processing, and performs each image processing using the parameters set in the processing. This parameter setting process will be described in detail later. The image processing unit 14 outputs the image after image processing to the encoder unit 15 and the D / A conversion unit 22.
The encoder unit 15 converts the digital image after image processing into a video compression format such as JPEG, and outputs this to the media I / F 16. The media I / F 16 is an interface for connecting the digital camera 10 to an external medium 30. The external medium 30 is, for example, a hard disk, a memory card, a CF (Compact Flash) card, an SD card, a USB memory, or the like.

CPU17は、システムバス25を介して、デジタルカメラ10の各構成要素の処理および動作を制御する。CPU17による制御は、例えば、CPU17がROM18に格納された命令(プログラム等)をRAM19に読み出し、当該命令を実行することにより実現され得る。また、CPU17は、デジタルカメラ10のユーザが入力する情報や指示に基づく処理も行う。ROM18は、CPU17が処理を実行するために必要な制御プログラム等を記憶する。RAM19は、CPU101の主メモリ、ワークエリア等として機能する。また、ROM18やRAM19は、CPU17が実行する処理に必要なデータ等を格納してもよい。   The CPU 17 controls processing and operation of each component of the digital camera 10 via the system bus 25. The control by the CPU 17 can be realized, for example, when the CPU 17 reads an instruction (program or the like) stored in the ROM 18 into the RAM 19 and executes the instruction. The CPU 17 also performs processing based on information and instructions input by the user of the digital camera 10. The ROM 18 stores a control program necessary for the CPU 17 to execute processing. The RAM 19 functions as a main memory and work area for the CPU 101. The ROM 18 and the RAM 19 may store data necessary for processing executed by the CPU 17.

撮像系制御部20は、CPU17からの指示に基づいて、撮像部11を制御する。例えば、撮像系制御部20は、撮像部11のレンズのフォーカスを合わせる、シャッターを開く、絞りを調節するなどの制御を行う。
操作部21は、撮像ボタン、操作ボタン、モードダイヤルなどを含む。デジタルカメラ10のユーザは、当該ボタンやダイヤルを介して、デジタルカメラ10へ指示を入力する(設定を行う)ことができる。ユーザから入力される指示は、例えば、撮像(撮影)のための設定であり、ISO感度の設定、シャッター速度の設定、F値(絞り値)の設定等を含む。操作部21から入力された撮像設定に関する情報や指示は、CPU17に送られる。このとき、CPU17は、操作部21から入力された情報や指示に基づいて処理を行い、デジタルカメラ10の撮像条件を決定する。撮像条件は、RAM19に記憶される。
D/A変換部22は、画像処理部14が出力した画像処理後のデジタル画像に対しアナログ変換を行う。D/A変換部22は、アナログ変換した画像を表示部23に出力する。
表示部23は、例えば、液晶ディスプレイであり、CPU108の制御の下で、D/A変換部22から受け取った撮像画像を表示可能である。
The imaging system control unit 20 controls the imaging unit 11 based on an instruction from the CPU 17. For example, the imaging system control unit 20 performs control such as adjusting the focus of the lens of the imaging unit 11, opening the shutter, and adjusting the aperture.
The operation unit 21 includes an imaging button, an operation button, a mode dial, and the like. A user of the digital camera 10 can input (set) an instruction to the digital camera 10 via the button or dial. The instruction input from the user is, for example, a setting for imaging (shooting), and includes an ISO sensitivity setting, a shutter speed setting, an F value (aperture value) setting, and the like. Information and instructions regarding the imaging settings input from the operation unit 21 are sent to the CPU 17. At this time, the CPU 17 performs processing based on information and instructions input from the operation unit 21 and determines the imaging condition of the digital camera 10. The imaging conditions are stored in the RAM 19.
The D / A conversion unit 22 performs analog conversion on the digital image after image processing output from the image processing unit 14. The D / A conversion unit 22 outputs the analog-converted image to the display unit 23.
The display unit 23 is a liquid crystal display, for example, and can display the captured image received from the D / A conversion unit 22 under the control of the CPU 108.

以下、画像処理部14の構成について具体的に説明する。
図2は、画像処理部14の構成例を示すブロック図である。図2に示すように、画像処理部14は、図1の信号処理部13が出力したデジタル画像を入力画像Iinとして入力する入力端子141と、画像処理後の画像を出力画像Ioutとしてエンコーダ15及びD/A変換部22に出力する出力端子142とを備える。また、画像処理部14は、第一の画像処理部143と、第二の画像処理部144と、パラメータ設定部145と、を備える。パラメータ設定部145は、統計情報取得部146と、画像処理結果推定部(以下、単に「推定部」ともいう。)147と、画像処理決定部148と、を備える。
Hereinafter, the configuration of the image processing unit 14 will be specifically described.
FIG. 2 is a block diagram illustrating a configuration example of the image processing unit 14. As shown in FIG. 2, the image processing unit 14 includes an input terminal 141 that inputs a digital image output from the signal processing unit 13 of FIG. 1 as an input image Iin, an encoder 15 that outputs an image after image processing as an output image Iout, And an output terminal 142 that outputs to the D / A converter 22. The image processing unit 14 includes a first image processing unit 143, a second image processing unit 144, and a parameter setting unit 145. The parameter setting unit 145 includes a statistical information acquisition unit 146, an image processing result estimation unit (hereinafter also simply referred to as “estimation unit”) 147, and an image processing determination unit 148.

第一の画像処理部143は、入力端子141から入力された入力画像Iinに対し、第一の画像処理を実施する。第二の画像処理部144は、第一の画像処理部143に後続して第一の画像処理部143による第一の画像処理後の画像に対し、第一の画像処理とは異なる第二の画像処理を実施する。なお、以下の説明では、第一の画像処理を施す前の画像を第一入力画像、第一の画像処理を施した後の画像(第二の画像処理を施す前の画像)を第一出力画像(第二入力画像)、第二の画像処理を施した後の画像を第二出力画像ともいう。また、本実施形態では、画像処理部14は、入力画像Iinに対して2つの画像処理を順次実施するものとし、前段の第一の画像処理をNR処理、後段の第二の画像処理をシャープネス処理として説明する。但し、第一の画像処理及び第二の画像処理は、これに限定されない。また、入力画像Iinに対して実施する画像処理の数も、これに限定されない。   The first image processing unit 143 performs first image processing on the input image Iin input from the input terminal 141. The second image processing unit 144 performs a second process different from the first image processing on the image after the first image processing unit 143 and the first image processing performed by the first image processing unit 143. Perform image processing. In the following description, the image before the first image processing is the first input image, and the image after the first image processing (the image before the second image processing) is the first output. An image (second input image) and an image after the second image processing are also referred to as a second output image. In this embodiment, the image processing unit 14 sequentially performs two image processes on the input image Iin. The first image process at the front stage is NR process, and the second image process at the rear stage is sharpness. This will be described as processing. However, the first image processing and the second image processing are not limited to this. Further, the number of image processes performed on the input image Iin is not limited to this.

パラメータ設定部145は、パラメータ設定処理を行い、第一の画像処理で用いるパラメータと、第二の画像処理で用いるパラメータとの最適な組み合わせを設定する。本実施形態では、各画像処理間の影響を複合的に考慮し、最適なパラメータの組み合わせを設定する。具体的には、パラメータ設定部145は、第一及び第二の画像処理を実施した画像処理結果として、出力端子142から出力される出力画像Ioutの画質を推定し、当該画質が最良となるパラメータの組み合わせを設定する。画像処理結果(画質)の推定に際し、パラメータ設定部145は、入力画像Iinから当該入力画像Iinの統計量に関する情報(以下、「統計情報」という。)を取得する。そして、パラメータ設定部145は、その統計情報をもとに上記の画像処理結果(画質)を推定する。   The parameter setting unit 145 performs parameter setting processing, and sets an optimal combination of parameters used in the first image processing and parameters used in the second image processing. In the present embodiment, the optimum combination of parameters is set in consideration of the influence between image processing in a complex manner. Specifically, the parameter setting unit 145 estimates the image quality of the output image Iout output from the output terminal 142 as the image processing result obtained by performing the first and second image processing, and the parameter that provides the best image quality. Set the combination. In estimating the image processing result (image quality), the parameter setting unit 145 acquires information (hereinafter referred to as “statistic information”) regarding the statistic of the input image Iin from the input image Iin. Then, the parameter setting unit 145 estimates the image processing result (image quality) based on the statistical information.

統計情報取得部146は、入力画像Iinの統計情報を取得する。本実施形態では、統計情報として、画像の輝度のヒストグラムと周波数特性(周波数パワースペクトル)のべき乗係数との2つを取得する。なお、統計情報は少なくとも1つ取得すればよく、これに限定されるものではない。例えば、画像の平均値やエッジの曲率、コントラスト比などを用いてもよい。推定部147は、統計情報取得部146で取得した入力画像Iinの統計情報を用いて、入力画像Iinに対して第一の画像処理を実施した画像処理結果を推定し、さらに第一の画像処理の推定結果に対して第二の画像処理を実施した画像処理結果を推定する。画像処理決定部148は、推定部147の推定結果に基づいて、第一及び第二の画像処理の最適なパラメータを決定する。   The statistical information acquisition unit 146 acquires statistical information of the input image Iin. In the present embodiment, two pieces of information are acquired as statistical information: a histogram of luminance of an image and a power coefficient of a frequency characteristic (frequency power spectrum). Note that at least one piece of statistical information may be acquired, and the present invention is not limited to this. For example, an average image value, edge curvature, contrast ratio, or the like may be used. The estimation unit 147 estimates the image processing result obtained by performing the first image processing on the input image Iin using the statistical information of the input image Iin acquired by the statistical information acquisition unit 146, and further performs the first image processing. The image processing result obtained by performing the second image processing on the estimation result is estimated. The image processing determination unit 148 determines optimal parameters for the first and second image processing based on the estimation result of the estimation unit 147.

次に、画像処理部14の動作について、図3を参照しながら具体的に説明する。図3の処理は、デジタルカメラ10のCPU17が、必要なプログラムを読み出して実行することにより実現される。ただし、図3の処理の一部または全部が、専用のハードウェアにより実現されてもよい。図3の処理は、例えば入力画像を入力したタイミングで開始される。なお、図3の処理の開始タイミングは、上記のタイミングに限らない。
先ずS1において、画像処理部14は、入力端子141から入力画像Iinを取得する。次にS2において、統計情報取得部146は、入力画像Iinから統計情報Iを取得する。本実施形態では、統計情報Iとして、画像の輝度のヒストグラムH及び周波数特性のべき乗係数aを取得する。輝度ヒストグラムHは、以下の式で表わされる。
Next, the operation of the image processing unit 14 will be specifically described with reference to FIG. The processing of FIG. 3 is realized by the CPU 17 of the digital camera 10 reading and executing a necessary program. However, part or all of the processing in FIG. 3 may be realized by dedicated hardware. The process of FIG. 3 is started at the timing when an input image is input, for example. The start timing of the process in FIG. 3 is not limited to the above timing.
First, in S <b> 1, the image processing unit 14 acquires an input image Iin from the input terminal 141. Next, in S2, the statistical information acquisition unit 146 acquires the statistical information I from the input image Iin. In the present embodiment, as the statistical information I, a histogram H of the luminance of the image and a power coefficient a of the frequency characteristic are acquired. The luminance histogram H is expressed by the following formula.

ここで、iは階調数を表し、例えば8bitの画像であれば0から255の数値をとる。P(x,y)は、入力画像Iinの位置(x,y)における画素値を表し、jは、入力画像Iinの画素数を表す。H[i]は、入力画像Iinにおける階調iの頻度を表し、入力画像Iinにおいて画素値が“i”である画素の数をカウントし、画素数jで割ることで得られる。輝度ヒストグラムHの例を図4に示す。図4において、横軸は階調であり、縦軸は各階調の頻度である。
次に、周波数特性のべき乗係数aの算出方法について説明する。
自然画画像の周波数パワースペクトルpは、p(f)≒kfaと近似できる。ここで、fは周波数であり、kは定数である。すなわち、図5に示すように、横軸にlog周波数、縦軸にlogパワーをとると、べき乗係数aは、破線Aで示す一次関数(log(p(f))=log(k)+a・log(f))の傾きとして表現される。周波数特性のべき乗係数aは、以下の式で求められる。
Here, i represents the number of gradations, and takes a numerical value from 0 to 255 for an 8-bit image, for example. P (x, y) represents the pixel value at the position (x, y) of the input image Iin, and j represents the number of pixels of the input image Iin. H [i] represents the frequency of the gradation i in the input image Iin, and is obtained by counting the number of pixels having a pixel value “i” in the input image Iin and dividing by the number of pixels j. An example of the luminance histogram H is shown in FIG. In FIG. 4, the horizontal axis is the gradation, and the vertical axis is the frequency of each gradation.
Next, a method for calculating the power coefficient a of the frequency characteristic will be described.
Frequency power spectrum p a natural image image can be approximated as p (f) ≒ kf a. Here, f is a frequency and k is a constant. That is, as shown in FIG. 5, when the log frequency is taken on the horizontal axis and the log power is taken on the vertical axis, the power coefficient a is a linear function (log (p (f)) = log (k) + a · log (f)). The power coefficient a of the frequency characteristic is obtained by the following equation.

図3に戻って、S3では、推定部147は、S2において取得した統計情報Iをもとに、入力画像Iinに対して第一の画像処理が実施された際に得られる出力画像(第一出力画像)の統計情報(第一の出力統計情報)I´を算出する。具体的には、統計情報Iを用いて、予めROM18等に格納している第一のデータベースを参照し、第一の出力統計情報I´を算出する。当該データベースには、第一の画像処理を施す前の第一入力画像に対応するサンプル画像の統計情報と、その第一入力画像に対して第一の画像処理を施した後の第一出力画像の統計情報とが対応付けられて複数格納されている。
推定部147は、入力画像Iinの統計情報Iとデータベース上の第一入力画像の統計情報とを比較し、両者の類似度に基づいて第一の出力統計情報I´を推定する。この推定処理は、同一の統計情報(画像統計量)を有する異なる入力画像に対して同一パラメータの画像処理を適用したとき、出力画像の統計情報(画像統計量)も同一になるという仮定に基づくものである。このS3では、図6に示す処理を実行する。
Returning to FIG. 3, in S3, the estimation unit 147 outputs an output image (first image) obtained when the first image processing is performed on the input image Iin based on the statistical information I acquired in S2. Statistical information (first output statistical information) I ′ of the output image) is calculated. Specifically, the first output statistical information I ′ is calculated using the statistical information I by referring to a first database stored in advance in the ROM 18 or the like. In the database, statistical information of the sample image corresponding to the first input image before the first image processing is performed, and the first output image after the first image processing is performed on the first input image A plurality of pieces of statistical information are stored in association with each other.
The estimation unit 147 compares the statistical information I of the input image Iin with the statistical information of the first input image on the database, and estimates the first output statistical information I ′ based on the similarity between the two. This estimation processing is based on the assumption that when image processing with the same parameter is applied to different input images having the same statistical information (image statistics), the statistical information (image statistics) of the output image is also the same. Is. In S3, the process shown in FIG. 6 is executed.

先ずS31において、推定部147は、第一の画像処理のパラメータprm1を選択する。パラメータprm1は、予め記憶されたパラメータ候補の中から1つを選択する。次にS32では、推定部147は、第一のデータベースから、第一の画像処理のパラメータがS31において選択したパラメータprm1であるときの、第一入力画像の統計情報Inと第一出力画像の統計情報In´との組み合わせを取得する。第一のデータベースの構成例を図7に示す。 First, in S31, the estimation unit 147 selects the parameter prm1 for the first image processing. The parameter prm1 is selected from parameter candidates stored in advance. Next, in S32, the estimation unit 147, from the first database, when the parameters of the first image processing is a parameter prm1 selected in S31, the statistics I n the first output image of the first input image A combination with the statistical information I n ′ is acquired. A configuration example of the first database is shown in FIG.

図7に示すように、第一のデータベースには、画像番号、画像処理パラメータ(パラメータ候補)、第一入力画像の統計情報In、及び第一出力画像の統計情報In´が格納されている。ここで、画像番号はサンプル画像の識別IDである。図7に示す例では、サンプル画像である第一入力画像は、m種類としている。また、統計情報Inは、画像番号nの第一入力画像から取得した統計情報であり、ヒストグラムHnとべき乗係数anとを含む。ヒストグラムHnはベクトル値であり、例えば8bit画像の場合、ヒストグラムのビン数は256となる(H={h(1),h(2),…h(256)})。また、べき乗係数anはスカラー値である。さらに、統計情報In´は、画像番号nの第一入力画像に対して第一の画像処理を実施した後の第一出力画像から取得した統計情報であり、ヒストグラムHn´とべき乗係数an´とを含む。 As shown in FIG. 7, in the first database, image number, image processing parameters (parameter candidate), and statistics I n the first input image, and statistical information I n the first output image 'is stored Yes. Here, the image number is an identification ID of the sample image. In the example shown in FIG. 7, there are m types of first input images that are sample images. The statistical information I n is the statistical information acquired from the first input image of the image number n, including a histogram H n and a power factor a n. The histogram H n is a vector value. For example, in the case of an 8-bit image, the number of bins in the histogram is 256 (H = {h (1), h (2),... H (256)}). Further, power factor a n is the scalar value. Further, the statistical information I n ′ is statistical information acquired from the first output image after the first image processing is performed on the first input image with the image number n, and includes the histogram H n ′ and the power coefficient a n '.

S33では、推定部147は、S32において取得した統計情報の組み合わせをもとに、入力画像Iinに対して第一の画像処理を施した際に得られる出力画像(第一出力画像)の統計情報I´を算出する。具体的には、入力画像Iinの統計情報Iとデータベースから取得した統計情報Inとの類似度を用い、データベースから取得した統計情報In´の重み付き平均をとることで、統計情報I´を算出する。すなわち、統計情報I´に含まれるヒストグラムH´とべき乗係数a´とは、次式により求められる。 In S33, the estimation unit 147 provides statistical information on the output image (first output image) obtained when the first image processing is performed on the input image Iin based on the combination of the statistical information acquired in S32. I ′ is calculated. More specifically, the input image statistics using the degree of similarity and statistics I n acquired from I and database Iin, by taking a weighted average of the statistics I n 'obtained from the database, statistics I' Is calculated. That is, the histogram H ′ and the power coefficient a ′ included in the statistical information I ′ are obtained by the following equations.

ここで、w(I,In)は、統計情報Iと統計情報Inとの類似度を表す。w(I,In)は、例えば次式により定義する。ただし、類似度の定義はこれに限定されない。 Here, w (I, I n) represents the similarity between the statistical information I n and statistics I. w (I, I n), for example defined by the following equation. However, the definition of similarity is not limited to this.

ここで、dist(I,In)は、統計情報Iと統計情報Inとの距離を表すものであり、ヒストグラムのKL(Kullback-Leibler)情報量とべき乗係数の絶対差との積で表される。また、KL情報量とは、確率分布の差異を表す尺度であり、両者の分布が等しいとき(上記(4)式では、h=hnのとき)、0をとる。
図3に戻って、S4では、推定部147は、S3において算出した統計情報I´をもとに、第二入力画像(第一出力画像)に対して第二の画像処理が実施された際の出力画像(第二出力画像)の画質Qを推定する。具体的には、統計情報I´を用いて、予めROM18等に格納している第二のデータベースを参照し、画質Qを推定する。当該データベースには、第二入力画像に対応するサンプル画像の統計情報と、その第二入力画像に対して第二の画像処理を施した後の第二出力画像の画質とが対応付けられて複数格納されている。
Here, dist (I, I n) is representative of the distance between the statistics I n and statistics I, table by the product of the absolute difference of KL (Kullback-Leibler) the amount of information and power factor of the histogram Is done. The KL information amount is a scale representing a difference in probability distribution, and takes 0 when both distributions are equal (in the above equation (4), when h = h n ).
Returning to FIG. 3, in S4, the estimation unit 147 performs the second image processing on the second input image (first output image) based on the statistical information I ′ calculated in S3. The image quality Q of the output image (second output image) is estimated. Specifically, the image quality Q is estimated using the statistical information I ′ with reference to a second database stored in advance in the ROM 18 or the like. The database associates statistical information of the sample image corresponding to the second input image with the image quality of the second output image after the second image processing is performed on the second input image. Stored.

推定部147は、S3において算出した第二入力画像(第一出力画像)の統計情報I´とデータベース上の第二入力画像の統計情報とを比較し、両者の類似度に基づいて画質Qを推定する。この推定処理は、同一の統計情報(画像統計量)を有する異なる入力画像に対して同一パラメータの画像処理を適用したとき、出力画像の画質も同一になるという仮定に基づくものである。このS4では、図8に示す処理を実行する。
先ずS41において、推定部147は、第二の画像処理のパラメータprm2を選択する。パラメータprm2は、予め記憶されたパラメータ候補の中から1つを選択する。次にS42では、推定部147は、第二のデータベースから、第二の画像処理のパラメータがS41において選択したパラメータprm2であるときの、第二入力画像の統計情報In´と第二出力画像の画質Qnとの組み合わせを取得する。第二のデータベースの構成例を図9に示す。
The estimation unit 147 compares the statistical information I ′ of the second input image (first output image) calculated in S3 with the statistical information of the second input image on the database, and determines the image quality Q based on the similarity between the two. presume. This estimation process is based on the assumption that when image processing with the same parameter is applied to different input images having the same statistical information (image statistics), the image quality of the output image is also the same. In S4, the process shown in FIG. 8 is executed.
First, in S41, the estimation unit 147 selects the parameter prm2 for the second image processing. The parameter prm2 is selected from parameter candidates stored in advance. Next, in S42, the estimation unit 147 determines, from the second database, the statistical information I n ′ of the second input image and the second output image when the second image processing parameter is the parameter prm2 selected in S41. A combination with the image quality Q n of the image is acquired. A configuration example of the second database is shown in FIG.

図9に示すように、第二のデータベースには、画像番号、画像処理パラメータ(パラメータ候補)、第二入力画像の統計情報In´、及び第二出力画像の画質Qnが格納されている。ここで、第二出力画像の画質Qnは、画素番号nの第二入力画像に対して第二の画像処理を実施した後の第二出力画像から取得した画質に関する評価値(定量値)である。本実施形態では、画質Qnは、鮮鋭性評価値Snとノイズ評価値Nnである。ここで、鮮鋭性評価値とノイズ評価値とは、PSNR(Peak Signal to Noise Ratio)などの定量評価値であってもよいし、人が目視で評価付けを行った主観評価値であってもよい。なお、画質Qnは、画像の画質を示す評価値であればよく、これらに限定されない。 As shown in FIG. 9, the second database stores image numbers, image processing parameters (parameter candidates), statistical information I n ′ of the second input image, and image quality Q n of the second output image. . Here, the image quality Q n of the second output image is an evaluation value (quantitative value) related to the image quality acquired from the second output image after the second image processing is performed on the second input image with the pixel number n. is there. In the present embodiment, the image quality Q n is a sharpness evaluation value S n and a noise evaluation value N n . Here, the sharpness evaluation value and the noise evaluation value may be a quantitative evaluation value such as a PSNR (Peak Signal to Noise Ratio) or a subjective evaluation value visually evaluated by a person. Good. The image quality Q n may be an evaluation value indicating the image quality of the image, and is not limited thereto.

S43では、推定部147は、S42において取得した統計情報の組み合わせをもとに、第二入力画像に対して第二の画像処理を施した際に得られる出力画像(第二出力画像)の画質Qを推定する。具体的には、第二入力画像の統計情報I´とデータベースから取得した統計情報In´との類似度を用い、データベースから取得した画質Qnの重み付き平均をとることで、画質Qを算出する。すなわち、画質Qに含まれる鮮鋭性評価値Sとノイズ評価値Nとは、次式により求められる。 In S43, the estimation unit 147 performs image quality of an output image (second output image) obtained when the second image processing is performed on the second input image based on the combination of statistical information acquired in S42. Q is estimated. Specifically, by using the similarity between the statistical information I ′ of the second input image and the statistical information I n ′ acquired from the database, and taking the weighted average of the image quality Q n acquired from the database, the image quality Q is obtained. calculate. That is, the sharpness evaluation value S and the noise evaluation value N included in the image quality Q are obtained by the following equations.

ここで、w(I´,In´)は、統計情報I´と統計情報In´との類似度を表す。w(I´,In´)は、例えば、上述したw(I,In)と同様に定義する。
図3に戻って、S5では、推定部147は、第一の画像処理及び第二の画像処理の全てのパラメータ候補について画像処理結果の推定を実施したか否かを判定する。そして、画像処理結果の推定が完了していない場合にはS3へ戻り、画像処理結果の推定が完了している場合にはS6に移行する。
S6では、画像処理決定部148は、第一の画像処理に対して算出した統計情報の推定量Inをもとに推定される、第二の画像処理を実施した後の最終的な画質Qの推定結果が最良となるパラメータの組み合わせを決定する。そして、画像処理決定部148は、決定したパラメータを第一の画像処理部143及び第二の画像処理部144にそれぞれ設定する。具体的には、次式をもとに画質Q(鮮鋭性評価値Sとノイズ評価値N)が最良となる画像処理パラメータの組み合わせp*を求める。
Here, w (I ′, I n ′) represents the similarity between the statistical information I ′ and the statistical information I n ′. w (I', I n ') uses, for example, w (I, I n) defined in the same manner as.
Returning to FIG. 3, in S <b> 5, the estimation unit 147 determines whether or not the estimation of the image processing result has been performed for all parameter candidates of the first image processing and the second image processing. Then, when the estimation of the image processing result is not completed, the process returns to S3, and when the estimation of the image processing result is completed, the process proceeds to S6.
In S6, the image processing determination unit 148 is estimated based on the estimated amount I n of the calculated statistical information to the first image processing, the final image quality Q after performing the second image processing The combination of parameters that gives the best estimation result is determined. Then, the image processing determination unit 148 sets the determined parameters in the first image processing unit 143 and the second image processing unit 144, respectively. Specifically, a combination p * of image processing parameters that provides the best image quality Q (sharpness evaluation value S and noise evaluation value N) is obtained based on the following equation.

ここで、Sprm1, prm2及びNprm1, prm2は、第一の画像処理のパラメータがprm1、第二の画像処理のパラメータがprm2であるときの、鮮鋭性評価値とノイズ評価値である。また、βは定数であり、ノイズ及び鮮鋭性をどの程度重視するのかを決定する係数である。なお、本実施形態では、鮮鋭性評価値Sとノイズ評価値Nとは、値が小さいほど画質が良いことを意味する評価値とし、鮮鋭性評価値Sとノイズ評価値Nとの重み付き和が最小となるパラメータprm1,prm2を、最適なパラメータの組み合わせとする。但し、最適なパラメータの組み合わせを決定する方法は、式(6)を用いた方法に限定されるものではない。例えば、画質Qが最良となるパラメータの組み合わせを対応づけたテーブルを用いて決定する方法などでもよい。また、画質Qが予め設定した基準以上の画質となるパラメータの組み合わせを、最適なパラメータの組み合わせとしてもよい。
S7では、第一の画像処理部143は、S6において設定された第一の画像処理のパラメータを用いて、入力画像Iinに対して第一の画像処理を行う。S8では、第二の画像処理部144は、S6において設定された第二の画像処理のパラメータを用いて、第一の画像処理後の画像に対して第二の画像処理を行う。
Here, S prm1, prm2 and N prm1, prm2 are the sharpness evaluation value and the noise evaluation value when the first image processing parameter is prm1 and the second image processing parameter is prm2. Β is a constant and is a coefficient that determines how much importance is placed on noise and sharpness. In the present embodiment, the sharpness evaluation value S and the noise evaluation value N are evaluation values that mean that the smaller the value, the better the image quality, and the weighted sum of the sharpness evaluation value S and the noise evaluation value N. The parameters prm1 and prm2 that minimize the value are the optimal parameter combinations. However, the method for determining the optimum parameter combination is not limited to the method using Equation (6). For example, a method of determining using a table in which a combination of parameters with the best image quality Q is associated may be used. A combination of parameters in which the image quality Q is higher than a preset reference image quality may be an optimal parameter combination.
In S7, the first image processing unit 143 performs the first image processing on the input image Iin using the first image processing parameter set in S6. In S8, the second image processing unit 144 performs second image processing on the image after the first image processing, using the second image processing parameters set in S6.

以下、本実施形態における具体的な動作例について説明する。本動作例では、第一の画像処理としてNR処理、第二の画像処理としてシャープネス処理を実施するものとする。すなわち、デジタルカメラ10内部の画像処理では、NR処理によってぼけた画像を回復させるためにシャープネス処理を実施する。
シャープネス処理は、エッジ検出などで高周波成分を抽出し、その部分の振幅を伸長させることにより、鮮鋭性を改善する画像処理である。このため、シャープネス処理の効果は、画像のヒストグラムによって異なるという性質がある。例えば、ビルなどのコントラストが高い(ヒストグラムの幅が広い)画像では、エッジを高精度に抽出できるため、鮮鋭感の改善効果が高い。一方、森などの低コントラスト(ヒストグラムの幅が狭い)のエッジを多く含む画像では、エッジ検出が困難であり、鮮鋭感の改善効果が低い。このように、後段のシャープネス処理の画質改善効果は入力画像ごとに異なる。そのため、本実施形態では、この点を考慮して前段のNR処理の最適パラメータを決定する。すなわち、入力画像に応じて、NR処理とシャープネス処理との最適なパラメータの組み合わせを決定する。
Hereinafter, a specific operation example in the present embodiment will be described. In this operation example, NR processing is performed as the first image processing, and sharpness processing is performed as the second image processing. That is, in the image processing inside the digital camera 10, sharpness processing is performed in order to recover an image blurred by NR processing.
Sharpness processing is image processing that improves sharpness by extracting a high-frequency component by edge detection or the like and expanding the amplitude of that portion. For this reason, the effect of the sharpness process is different depending on the histogram of the image. For example, in an image with a high contrast such as a building (having a wide histogram), the edge can be extracted with high accuracy, so that the sharpness improving effect is high. On the other hand, in an image including many edges with low contrast (histogram width is narrow) such as a forest, it is difficult to detect the edge, and the effect of improving sharpness is low. As described above, the image quality improvement effect of the subsequent sharpness processing differs for each input image. Therefore, in the present embodiment, the optimum parameter for the previous NR process is determined in consideration of this point. That is, an optimal combination of parameters for NR processing and sharpness processing is determined according to the input image.

図10は、ビルなどのコントラストが高い画像を入力画像Iinとした場合(動作例1)の画質Qの推定結果を示す図である。この動作例1では、説明を簡略化するためにNR処理のパラメータ候補を3つ(弱、中、強)とし、シャープネス処理のパラメータ候補を1つ(p1)とする。
画像処理部14は、入力画像Iinを取得すると(図3のS1)、先ず、入力画像Iinの統計情報I(ヒストグラムH、べき乗係数a)を取得する(S2)。次に、画像処理部14は、NR処理のパラメータ3種類それぞれに対して、NR処理後の出力画像の統計情報I´(ヒストグラムH´、べき乗係数a´)を推定する(S3)。NR処理では、ヒストグラムはほとんど変化しないため、図10に示すように、NR出力画像のヒストグラムH´はパラメータによらずほぼ一定となる。一方、NR処理の強度が変化すると、高周波成分のパワーが変化するため、図10に示すように、べき乗係数a´はNR処理パラメータによって変化する。
FIG. 10 is a diagram illustrating an estimation result of the image quality Q when an image with high contrast such as a building is the input image Iin (operation example 1). In this operation example 1, in order to simplify the description, the parameter candidates for NR processing are set to three (weak, medium, strong), and the parameter candidate for sharpness processing is set to one (p1).
When acquiring the input image Iin (S1 in FIG. 3), the image processing unit 14 first acquires the statistical information I (histogram H, power coefficient a) of the input image Iin (S2). Next, the image processing unit 14 estimates statistical information I ′ (histogram H ′, power coefficient a ′) of the output image after NR processing for each of the three types of parameters of NR processing (S3). In the NR process, since the histogram hardly changes, as shown in FIG. 10, the histogram H ′ of the NR output image is substantially constant regardless of the parameters. On the other hand, when the intensity of the NR process changes, the power of the high frequency component changes, so that the power coefficient a ′ changes depending on the NR process parameter, as shown in FIG.

画像処理部14は、NR出力画像の統計情報I´を推定すると、次に、NR処理とシャープネス処理それぞれの処理の推定結果に基づいた画質Qの推定結果を算出する。具体的には、NR出力画像の統計情報I´に基づいて、当該NR出力画像を入力としてシャープネス処理を実施した後の出力画像の画質Qを推定する(図3のS4)。この動作例1では、シャープネス処理のパラメータは1つとしているため、第一の画像処理と第二の画像処理とのパラメータ組み合わせ候補は3種類となる。したがって、この画質推定処理の結果、図10に示すように、3種類の出力画像の画質Qが推定される。ここで、各評価値は、値が小さいほど画質が良いことを意味する。   After estimating the statistical information I ′ of the NR output image, the image processing unit 14 next calculates an estimation result of the image quality Q based on the estimation results of the NR process and the sharpness process. Specifically, based on the statistical information I ′ of the NR output image, the image quality Q of the output image after performing the sharpness process using the NR output image as an input is estimated (S4 in FIG. 3). In this operation example 1, since there is one parameter for sharpness processing, there are three types of parameter combination candidates for the first image processing and the second image processing. Therefore, as a result of this image quality estimation process, the image quality Q of the three types of output images is estimated as shown in FIG. Here, each evaluation value means that the smaller the value, the better the image quality.

上述したように、画像処理対象がコントラストの高い画像である場合、シャープネス処理による鮮鋭性改善効果は高い。この動作例1では、ビルなどのコントラストが高い画像を入力画像Iinとしており、NR出力画像のコントラストは高い。そのため、動作例1では、NR処理の強度(パラメータ)によらず、シャープネス処理によって適切に鮮鋭性が回復されるため、鮮鋭性評価値は比較的小さい値(0.3)で一定となる。一方、ノイズ評価値は、NR処理の強度が強いほど、画質が良いことを意味する値をとる。鮮鋭性評価値はNR処理の強度によらず一定であるため、動作例1では、ノイズ評価値Nに基づいて画質が最良となる最適パラメータを決定することができる。すなわち、この動作例1では、ノイズ評価値Nが最小となるパラメータが最適であるとして、NR処理のパラメータを「強」とするのが最適であると判断される。
図11は、森などのコントラストが低い画像を入力画像Iinとした場合(動作例2)の画質Qの推定結果を示す図である。この動作例2でも、上記の動作例1と同様に、NR処理のパラメータ候補を3つ(弱、中、強)とし、シャープネス処理のパラメータ候補を1つ(p1)とする。
As described above, when the image processing target is an image with high contrast, the sharpness improving effect by the sharpness processing is high. In this operation example 1, an image with high contrast such as a building is used as the input image Iin, and the contrast of the NR output image is high. Therefore, in the first operation example, the sharpness process appropriately recovers the sharpness regardless of the strength (parameter) of the NR process, and thus the sharpness evaluation value is constant at a relatively small value (0.3). On the other hand, the noise evaluation value takes a value that means that the higher the strength of the NR process, the better the image quality. Since the sharpness evaluation value is constant regardless of the strength of the NR process, in the first operation example, the optimum parameter with the best image quality can be determined based on the noise evaluation value N. That is, in this operation example 1, it is determined that it is optimal to set the parameter of the NR process to “strong”, assuming that the parameter that minimizes the noise evaluation value N is optimal.
FIG. 11 is a diagram illustrating an estimation result of the image quality Q when an image with low contrast such as a forest is used as the input image Iin (operation example 2). In this operation example 2, as in the above operation example 1, the parameter candidates for NR processing are set to three (weak, medium, strong), and the parameter candidate for sharpness processing is set to one (p1).

画像処理部14は、入力画像Iinを取得すると(図3のS1)、先ず、入力画像Iinの統計情報I(ヒストグラムH、べき乗係数a)を取得する(S2)。次に、画像処理部14は、NR処理のパラメータ3種類それぞれに対して、NR処理後の出力画像の統計情報I´(ヒストグラムH´、べき乗係数a´)を推定する(S3)。NR処理では、ヒストグラムはほとんど変化しないため、図11に示すように、NR出力画像のヒストグラムH´はパラメータによらずほぼ一定となる。一方、NR処理の強度が変化すると、高周波成分のパワーが変化するため、図11に示すように、べき乗係数a´はNR処理パラメータによって変化する。   When acquiring the input image Iin (S1 in FIG. 3), the image processing unit 14 first acquires the statistical information I (histogram H, power coefficient a) of the input image Iin (S2). Next, the image processing unit 14 estimates statistical information I ′ (histogram H ′, power coefficient a ′) of the output image after NR processing for each of the three types of parameters of NR processing (S3). In the NR process, since the histogram hardly changes, as shown in FIG. 11, the histogram H ′ of the NR output image is substantially constant regardless of the parameters. On the other hand, when the intensity of the NR process changes, the power of the high frequency component changes, so that the power coefficient a ′ changes depending on the NR process parameter as shown in FIG.

画像処理部14は、NR出力画像の統計情報I´を推定すると、次に、NR処理とシャープネス処理それぞれの処理の推定結果に基づいた画質Qの推定結果を算出する。具体的には、NR出力画像の統計情報I´に基づいて、当該NR出力画像を入力としてシャープネス処理を実施した後の出力画像の画質Qを推定する(図3のS4)。
この動作例2では、コントラストが低い画像を入力画像Iinとしており、NR出力画像のコントラストは低い。そのため、動作例2では、シャープネス処理による鮮鋭性改善効果が得づらい。特に、NR処理の強度(パラメータ)が強くなるほど鮮鋭性が回復されず、鮮鋭性評価値は比較的悪い値となる。一方、ノイズ評価値は、NR処理の強度が強いほど、画質が良いことを意味する値をとる。
After estimating the statistical information I ′ of the NR output image, the image processing unit 14 next calculates an estimation result of the image quality Q based on the estimation results of the NR process and the sharpness process. Specifically, based on the statistical information I ′ of the NR output image, the image quality Q of the output image after performing the sharpness process using the NR output image as an input is estimated (S4 in FIG. 3).
In this operation example 2, an image with low contrast is used as the input image Iin, and the contrast of the NR output image is low. Therefore, in the operation example 2, it is difficult to obtain the sharpness improving effect by the sharpness processing. In particular, as the strength (parameter) of NR processing increases, the sharpness is not recovered, and the sharpness evaluation value is a relatively bad value. On the other hand, the noise evaluation value takes a value that means that the higher the strength of the NR process, the better the image quality.

この場合、上記(6)式をもとに、鮮鋭性評価値とノイズ評価値との和を用いて出力画像の総合画質を算出し、画質が最良となる最適パラメータを決定する。この動作例2では、NR処理のパラメータが「弱」のときに画質が最良となると判断される。したがって、NR処理のパラメータを「弱」とするのが最適であると判断される。
動作例1に示すように、コントラストが高い入力画像の場合、シャープネスの鮮鋭性改善効果が高いため、ノイズリダクション(NR処理)を強めにかけ、後段のシャープネス処理で鮮鋭感を改善するというパラメータの組み合わせが最適である。一方で、動作例2に示すように、コントラストが低い入力画像の場合、シャープネス処理により十分な鮮鋭性改善効果が得られない。そのため、この場合は、ノイズリダクション(NR処理)は弱めにかけておき、鮮鋭性を十分に残した後、シャープネスで若干の鮮鋭性改善効果を得るという組み合わせが最適である。
In this case, based on the above equation (6), the total image quality of the output image is calculated using the sum of the sharpness evaluation value and the noise evaluation value, and the optimum parameter that provides the best image quality is determined. In this operation example 2, it is determined that the image quality is the best when the parameter of the NR process is “weak”. Therefore, it is determined that it is optimal to set the parameter of the NR process to “weak”.
As shown in Operation Example 1, in the case of an input image with high contrast, the sharpness improvement effect is high. Therefore, a combination of parameters that enhances noise reduction (NR processing) and improves the sharpness by subsequent sharpness processing. Is the best. On the other hand, as shown in the operation example 2, in the case of an input image with low contrast, a sufficient sharpness improvement effect cannot be obtained by the sharpness processing. Therefore, in this case, the combination of obtaining a slight sharpness improvement effect with the sharpness after leaving the noise reduction (NR process) weakly, leaving sufficient sharpness, is optimal.

このように、本実施形態では、画像ごとに異なる後段処理の画質改善効果を適切に推定し、画像処理間の最適なパラメータの組み合わせを決定することができる。最適なパラメータの組み合わせが設定可能となることで、シャープネス処理によりノイズリダクション処理のボケを適切に回復することができる。
なお、上記実施形態においては、画像処理の組み合わせをNR処理とシャープネス処理との組み合わせとする場合について説明したが、これに限定されるものではない。例えば、第一の画像処理としてNR処理、第二の画像処理として階調変換処理を実施してもよい。以下、この場合を例にとり、動作例3として説明する。
As described above, according to the present embodiment, it is possible to appropriately estimate the image quality improvement effect of the subsequent processing that is different for each image, and to determine an optimal parameter combination between the image processes. Since the optimum combination of parameters can be set, the blur of the noise reduction process can be appropriately recovered by the sharpness process.
In the above-described embodiment, the case where the combination of image processing is a combination of NR processing and sharpness processing has been described. However, the present invention is not limited to this. For example, NR processing may be performed as the first image processing, and gradation conversion processing may be performed as the second image processing. Hereinafter, taking this case as an example, an operation example 3 will be described.

階調変換処理は、画像にガンマカーブ(トーンカーブ)をかけることで階調変換を行う処理である。階調変換処理は、露出アンダーで撮影された画像を適正露出に戻したり、画像のコントラストを高めたりするなど、さまざまな目的で実施される。例えば、フォトレタッチアプリケーションなど、ユーザが画像の階調特性を変更するためにガンマカーブを調整することで実施される。この際、画像に含まれるノイズ量も同時に変化するという副作用がある。すなわち、ガンマカーブの形状によっては画像内のノイズを増幅したり鮮鋭性を劣化させたりすることがあり、この副作用の影響を考慮したノイズリダクション処理が必要である。   The gradation conversion process is a process for performing gradation conversion by applying a gamma curve (tone curve) to an image. The gradation conversion process is performed for various purposes, such as returning an image shot underexposed to proper exposure or increasing the contrast of the image. For example, such as a photo retouching application, the user adjusts the gamma curve in order to change the gradation characteristics of the image. At this time, there is a side effect that the amount of noise included in the image also changes simultaneously. That is, depending on the shape of the gamma curve, noise in the image may be amplified or sharpness may be deteriorated, and noise reduction processing in consideration of the effect of this side effect is necessary.

図12は、動作例3の画質Qの推定結果を示す図である。この動作例3では、NR処理のパラメータ候補を3つ(弱、中、強)とし、階調変換処理のパラメータであるガンマカーブ候補を2つ(g1、g2)とする。ガンマカーブg1及びg2の例を、それぞれ図13及び図14に示す。
画像処理部14は、入力画像Iinを取得すると(図3のS1)、先ず、入力画像Iinの統計情報I(ヒストグラムH、べき乗係数a)を取得する(S2)。次に、画像処理部14は、NR処理のパラメータ3種類それぞれに対して、NR処理後の出力画像の統計情報I´(ヒストグラムH´、べき乗係数a´)を推定する(S3)。NR処理では、ヒストグラムはほとんど変化しないため、図12に示すように、NR出力画像のヒストグラムH´はパラメータによらずほぼ一定となる。一方、NR処理の強度が変化すると、高周波成分のパワーが変化するため、図12に示すように、べき乗係数a´はNR処理パラメータによって変化する。
FIG. 12 is a diagram illustrating an estimation result of the image quality Q in the third operation example. In this operation example 3, NR process parameter candidates are set to three (weak, medium, and strong), and gamma curve candidates that are parameters of the gradation conversion process are set to two (g1, g2). Examples of gamma curves g1 and g2 are shown in FIGS. 13 and 14, respectively.
When acquiring the input image Iin (S1 in FIG. 3), the image processing unit 14 first acquires the statistical information I (histogram H, power coefficient a) of the input image Iin (S2). Next, the image processing unit 14 estimates statistical information I ′ (histogram H ′, power coefficient a ′) of the output image after NR processing for each of the three types of parameters of NR processing (S3). In the NR process, since the histogram hardly changes, as shown in FIG. 12, the histogram H ′ of the NR output image is almost constant regardless of the parameters. On the other hand, when the intensity of the NR process changes, the power of the high frequency component changes, so that the power coefficient a ′ changes depending on the NR process parameter, as shown in FIG.

画像処理部14は、NR出力画像の統計情報I´を推定すると、次に、NR処理と階調変換処理それぞれの処理の推定結果に基づいた画質Qの推定結果を算出する。具体的には、NR出力画像の統計情報I´に基づいて、当該NR出力画像を入力として階調変換処理を実施した後の出力画像の画質Qを推定する(図3のS4)。この動作例3では、階調変換処理のガンマカーブは2つとしているため、第一の画像処理と第二の画像処理とのパラメータ組み合わせ候補は6種類となる。したがって、この画質推定処理の結果、図12に示すように、NR処理パラメータとガンマカーブとの組み合わせに対応する6種類の出力画像の画質Qが推定される。   After estimating the statistical information I ′ of the NR output image, the image processing unit 14 next calculates an estimation result of the image quality Q based on the estimation results of the NR process and the gradation conversion process. Specifically, based on the statistical information I ′ of the NR output image, the image quality Q of the output image after performing the gradation conversion process using the NR output image as an input is estimated (S4 in FIG. 3). In this operation example 3, since there are two gamma curves for gradation conversion processing, there are six types of parameter combination candidates for the first image processing and the second image processing. Therefore, as a result of this image quality estimation process, as shown in FIG. 12, the image quality Q of six types of output images corresponding to the combination of the NR processing parameter and the gamma curve is estimated.

階調変換処理では、図13に示すガンマカーブg1を適用した場合、入力画像の輝度情報をそのまま出力する。一方、図14に示すガンマカーブg2を適用した場合、出力画像のコントラストは高まる。そのため、ガンマカーブg2を適用した場合、ガンマカーブg1を適用した場合と比べてノイズ評価値は悪くなり、鮮鋭性評価値は良くなる。
図12に示す結果により、階調変換処理によりノイズが増大する場合には、予めノイズリダクションを強くかけ、ノイズ量を減らしておくことが好ましいことがわかる。また、階調変換処理によりコントラストが低下する場合には、ノイズリダクションを弱くかけておき、鮮鋭性の劣化を抑えることが好ましいことがわかる。
In the gradation conversion process, when the gamma curve g1 shown in FIG. 13 is applied, the luminance information of the input image is output as it is. On the other hand, when the gamma curve g2 shown in FIG. 14 is applied, the contrast of the output image increases. Therefore, when the gamma curve g2 is applied, the noise evaluation value becomes worse and the sharpness evaluation value becomes better than when the gamma curve g1 is applied.
From the results shown in FIG. 12, it can be seen that when noise increases due to the gradation conversion process, it is preferable to apply noise reduction in advance and reduce the amount of noise. Further, it can be seen that when the contrast is lowered by the gradation conversion process, it is preferable to reduce the noise reduction and suppress the deterioration of the sharpness.

本動作例3では、動作例2と同様に、上記(6)式をもとに、鮮鋭性評価値とノイズ評価値との和を用いて出力画像の総合画質を算出し、その総合画質が最良となる画像処理パラメータの組み合わせを選択する。この動作例3では、NR処理のパラメータが「強」で、階調変換処理のガンマカーブが「g2」のときに画質が最良となることがわかる。したがって、動作例3では、NR処理のパラメータを「強」、階調変換処理のガンマカーブを「g2」とするのが最適であると判断される。
このように、ガンマカーブの違いによる画質改善効果の変化を考慮することで、ノイズリダクション処理の最適なパラメータが設定可能である。
また、上記実施形態においては、2つの画像処理のパラメータの組み合わせを最適化する場合について説明した。しかしながら、画像処理の数は2つに限定されず、任意の数の画像処理に対応可能である。
In the third operation example, as in the second operation example, the total image quality of the output image is calculated using the sum of the sharpness evaluation value and the noise evaluation value based on the above equation (6). The best combination of image processing parameters is selected. In this operation example 3, it can be seen that the image quality is best when the parameter of the NR process is “strong” and the gamma curve of the gradation conversion process is “g2”. Therefore, in the operation example 3, it is determined that it is optimal to set the parameter of the NR process to “strong” and the gamma curve of the gradation conversion process to “g2”.
As described above, by considering the change in the image quality improvement effect due to the difference in the gamma curve, it is possible to set an optimum parameter for the noise reduction process.
In the above-described embodiment, the case has been described in which the combination of two image processing parameters is optimized. However, the number of image processing is not limited to two, and any number of image processing can be supported.

以下、例えば、画像処理の数が3つの場合について説明する。
図15は、入力画像Iinに対して3つの画像処理を順次実施する場合の画像処理部14の構成を示すブロック図である。この図15に示すように、画像処理部14は、図2に示す構成に加えて第三の画像処理部149を備える。
図16は、図15の画像処理部14における動作を示すフローチャートである。この図16の処理は、上述した図3と同様に、デジタルカメラ10のCPU17が、必要なプログラムを読み出して実行することにより実現される。ただし、図16の処理の一部または全部が、専用のハードウェアにより実現されてもよい。図16の処理は、例えば入力画像を入力したタイミングで開始される。なお、図16の処理の開始タイミングは、上記のタイミングに限らない。
Hereinafter, for example, a case where the number of image processes is three will be described.
FIG. 15 is a block diagram illustrating a configuration of the image processing unit 14 when three image processes are sequentially performed on the input image Iin. As shown in FIG. 15, the image processing unit 14 includes a third image processing unit 149 in addition to the configuration shown in FIG.
FIG. 16 is a flowchart showing the operation of the image processing unit 14 of FIG. The processing in FIG. 16 is realized by the CPU 17 of the digital camera 10 reading and executing a necessary program, as in FIG. 3 described above. However, part or all of the processing in FIG. 16 may be realized by dedicated hardware. The process of FIG. 16 is started at the timing when an input image is input, for example. Note that the start timing of the processing in FIG. 16 is not limited to the above timing.

S11及びS12は、図3のS1及びS2と同様である。S13では、推定部147は、S12において取得した入力画像Iinの統計情報Iをもとに、第一の画像処理が実施された際の出力画像(第一出力画像)の統計情報(第一の出力統計情報)I´を算出する。このS13における基本動作は、図3のS3と同様である。
S14では、推定部147は、S13において算出した出力統計情報I´をもとに、第二入力画像(第一出力画像)に対して第二の画像処理が実施された際の出力画像(第二出力画像)の統計情報(第二の出力統計情報)I″を算出する。このS14における基本動作は、図3のS3と同様である。S15では、推定部147は、S14において算出した出力統計情報I″をもとに、第三入力画像(第二出力画像)に対して第三の画像処理が実施された際の出力画像(第三出力画像)の画質Qを推定する。このS15における基本動作は、図3のS4と同様である。S16は、図3のS5と同様である。
S11 and S12 are the same as S1 and S2 in FIG. In S13, the estimation unit 147 uses the statistical information (first output image) of the output image (first output image) when the first image processing is performed based on the statistical information I of the input image Iin acquired in S12. Output statistical information) I ′ is calculated. The basic operation in S13 is the same as S3 in FIG.
In S14, the estimation unit 147 outputs an output image (first image) when the second image processing is performed on the second input image (first output image) based on the output statistical information I ′ calculated in S13. (Second output image) statistical information (second output statistical information) I ″ is calculated. The basic operation in S14 is the same as S3 in FIG. 3. In S15, the estimation unit 147 outputs the output calculated in S14. Based on the statistical information I ″, the image quality Q of the output image (third output image) when the third image processing is performed on the third input image (second output image) is estimated. The basic operation in S15 is the same as S4 in FIG. S16 is the same as S5 of FIG.

このように、入力画像Iinの統計情報Iに基づいて、最終段の画像処理の直前の画像処理(第二の画像処理)までを実施した画像の統計情報I″を推定する。そして、推定した統計情報I″に基づいて、すべての画像処理(第一の画像処理から第三の画像処理)を順次実施して得られる出力画像Ioutの画質Qを推定する。
S17では、画像処理決定部148は、第一の画像処理、第二の画像処理及び第三の画像処理を実施した後の最終的な出力画像Iout(第三出力画像)の画質Qが最良となるパラメータの組み合わせを決定する。そして、画像処理決定部148は、決定したパラメータを第一の画像処理部143、第二の画像処理部144及び第三の画像処理部149にそれぞれ設定する。このS17の基本動作は、図3のS6と同様である。S18及びS19は、図3のS7及びS8と同様である。S20では、第三の画像処理部149は、S17において設定された第三の画像処理のパラメータを用いて、第二の画像処理後の画像に対して第三の画像処理を行う。
Thus, based on the statistical information I of the input image Iin, the statistical information I ″ of the image that has been subjected to the image processing (second image processing) immediately before the final stage image processing is estimated. Based on the statistical information I ″, the image quality Q of the output image Iout obtained by sequentially performing all the image processing (from the first image processing to the third image processing) is estimated.
In S17, the image processing determination unit 148 determines that the image quality Q of the final output image Iout (third output image) after performing the first image processing, the second image processing, and the third image processing is the best. The combination of parameters is determined. Then, the image processing determination unit 148 sets the determined parameters in the first image processing unit 143, the second image processing unit 144, and the third image processing unit 149, respectively. The basic operation in S17 is the same as S6 in FIG. S18 and S19 are the same as S7 and S8 in FIG. In S20, the third image processing unit 149 performs the third image processing on the image after the second image processing, using the third image processing parameter set in S17.

なお、上記の例では、先ず入力画像Iinの統計情報Iから第一出力画像の統計情報I´を算出し、次にその統計情報I´から第二出力画像の統計情報I″を算出している。しかしながら、入力画像Iinの統計情報Iから第二出力画像の統計情報I″を直接算出することもできる。この場合、第一入力画像の統計情報Inと第二出力画像の統計情報In″との組を、第一及び第二の画像処理のパラメータの組み合わせ候補に対応付けて格納したデータベースを用いればよい。
以上のように、画像処理装置として動作する画像処理部14は、入力画像Iinの統計量に関する情報である統計情報に基づいて、入力画像Iinに対して第一の画像処理と第二の画像処理とを順に実施したときの画像処理結果を推定する。次に、画像処理部14は、推定した画像処理結果に基づいて、第一の画像処理及び第二の画像処理のパラメータをそれぞれ設定する。そして、画像処理部14は、設定したパラメータを用いて、入力画像Iinに対して上記の複数の画像処理を順次実施する。
In the above example, first, the statistical information I ′ of the first output image is calculated from the statistical information I of the input image Iin, and then the statistical information I ″ of the second output image is calculated from the statistical information I ′. However, the statistical information I ″ of the second output image can be directly calculated from the statistical information I of the input image Iin. In this case, using the database a set of the statistical information I n "Statistics I n and the second output image of the first input image, and stored in association with the combination candidate of the first and second image processing parameters That's fine.
As described above, the image processing unit 14 that operates as the image processing apparatus performs the first image processing and the second image processing on the input image Iin based on the statistical information that is information regarding the statistical amount of the input image Iin. The image processing results when these are executed in order are estimated. Next, the image processing unit 14 sets parameters for the first image processing and the second image processing based on the estimated image processing result. Then, the image processing unit 14 sequentially performs the plurality of image processes on the input image Iin using the set parameters.

これにより、前段の画像処理が後段の画像処理に与える影響のみならず、後段の画像処理が前段の画像処理に与える影響も考慮して画像処理パラメータを最適化することができる。このように、各処理単体で画像処理を最適化するのではなく、相互に依存する各処理の影響を考慮するため、全体の系として最適なパラメータの組み合わせを設定することが可能である。
ここで、上記統計情報は、画像の輝度ヒストグラムに関する情報(ヒストグラムH)や画像の周波数特性に関する情報(周波数パワースペクトルのべき乗係数a)を含むことができる。これにより、画像適応的な画像処理の影響を適切に考慮したパラメータ設定処理が可能となる。
As a result, the image processing parameters can be optimized in consideration of not only the influence of the preceding image processing on the subsequent image processing but also the influence of the following image processing on the preceding image processing. In this way, instead of optimizing image processing for each processing unit, it is possible to set an optimal combination of parameters for the entire system in order to consider the influence of each processing that depends on each other.
Here, the statistical information can include information on the luminance histogram of the image (histogram H) and information on the frequency characteristics of the image (power coefficient a of the frequency power spectrum). Thereby, it is possible to perform parameter setting processing that appropriately considers the influence of image adaptive image processing.

また、画像処理結果としては、複数の画像処理(第一及び第二の画像処理)を実施して得られる出力画像Ioutの画質に関する評価値(画質Q)を含むことができる。これにより、後段の画像処理の画質改善効果を考慮したうえで、最適なパラメータの組み合わせを設定することができる。また、画質Qは、画像の鮮鋭性に関する評価値(鮮鋭性評価値S)や画像のノイズに関する評価値(ノイズ評価値N)を含むことができる。これにより、後段の画像処理の画質改善効果を適切に推定することができる。
また、画像処理部14は、各画像処理についてそれぞれ少なくとも1つのパラメータ候補を用意しておき、これらを組み合わせた複数のパラメータ組み合わせ候補について、それぞれ画質Qを推定する。そして、画像処理部14は、推定した複数の画質Qを比較し、その比較結果に基づいて最適な画像処理パラメータを設定する。例えば、画像処理部14は、出力画像Ioutの画質が最良となるパラメータ組み合わせ候補を選出し、これを複数の画像処理のパラメータとして設定する。これにより、良好な画質を有する画像を生成可能な画像処理パラメータを設定することができる。
In addition, the image processing result can include an evaluation value (image quality Q) related to the image quality of the output image Iout obtained by performing a plurality of image processing (first and second image processing). Accordingly, it is possible to set an optimum parameter combination in consideration of the image quality improvement effect of the subsequent image processing. Further, the image quality Q can include an evaluation value (sharpness evaluation value S) regarding the sharpness of the image and an evaluation value (noise evaluation value N) regarding the noise of the image. Thereby, the image quality improvement effect of the subsequent image processing can be estimated appropriately.
The image processing unit 14 prepares at least one parameter candidate for each image processing, and estimates the image quality Q for each of a plurality of parameter combination candidates obtained by combining these. Then, the image processing unit 14 compares the estimated plurality of image quality Q, and sets an optimal image processing parameter based on the comparison result. For example, the image processing unit 14 selects a parameter combination candidate that provides the best image quality of the output image Iout, and sets these as a plurality of image processing parameters. Thereby, an image processing parameter capable of generating an image having a good image quality can be set.

さらに、画像処理部14は、出力画像Ioutの画質Qの推定に際し、入力画像Iinの統計情報Iに基づいて、第一の画像処理を実施した後の画像(第一出力画像)の統計情報I´を推定する。そして、画像処理部14は、推定した統計情報I´に基づいて画質Qを推定する。このように、画像処理部14は、画像の統計情報I´に基づいて画質Qを推定するので、画像内容に応じて異なる画像処理効果を適切に推定することができる。また、前段の画像処理の結果が後段に伝播することを考慮し、入力画像Iinに基づいて、最終段の画像処理の直前の画像処理までを実施した画像の統計情報I´を推定し、これを画質Qの推定に用いる。したがって、各画像処理間の影響を適切に考慮したパラメータ設定処理が可能である。   Further, the image processing unit 14 estimates the image quality Q of the output image Iout, based on the statistical information I of the input image Iin, the statistical information I of the image (first output image) after the first image processing is performed. ′ Is estimated. Then, the image processing unit 14 estimates the image quality Q based on the estimated statistical information I ′. Thus, since the image processing unit 14 estimates the image quality Q based on the statistical information I ′ of the image, it is possible to appropriately estimate different image processing effects depending on the image content. Considering that the result of the image processing in the previous stage is propagated to the subsequent stage, the statistical information I ′ of the image that has been subjected to the image processing immediately before the image processing in the final stage is estimated based on the input image Iin, and this Is used to estimate the image quality Q. Therefore, it is possible to perform parameter setting processing that appropriately considers the influence between image processing.

また、画像処理部14は、統計情報In´と画質Qnとの組を、第二の画像処理のパラメータ候補と対応付けて一組以上、第二のデータベースに格納しておく。このように、画像処理部14は、サンプル画像の統計情報と、当該サンプル画像に対して最終段の画像処理を実施して得られる画像の画質に関する評価値との組を、最終段の画像処理のパラメータ候補と対応付けて一組以上保持する。そして、画像処理部14は、第二のデータベースに格納された統計情報In´と、第二の画像処理部144への入力画像の統計情報I´との類似度に基づいて、出力画像Ioutの画質Qを推定する。このように、最終段の画像処理の入力前の画像の統計情報と、最終段の画像処理を実施した後の画像の統計情報との組を予め記憶(記録)しておき、その情報を用いて出力画像Ioutの画質Qを推定する。したがって、容易且つ適切に画質Qを推定することができる。 Further, the image processing unit 14 stores one or more sets of the statistical information I n ′ and the image quality Q n in association with the second image processing parameter candidate in the second database. As described above, the image processing unit 14 determines the set of the statistical information of the sample image and the evaluation value related to the image quality of the image obtained by performing the final image processing on the sample image as the final image processing. One or more sets are stored in association with the parameter candidates. Then, the image processing unit 14, and statistics I n 'stored in the second database, based on the similarity between the statistical information I'of the input image to the second image processing section 144, an output image Iout Is estimated. In this way, a set of the statistical information of the image before input of the final stage image processing and the statistical information of the image after execution of the final stage image processing is stored (recorded) in advance, and the information is used. The image quality Q of the output image Iout is estimated. Therefore, the image quality Q can be estimated easily and appropriately.

さらに、画像処理部14は、統計情報Inと統計情報In´との組を、第一の画像処理のパラメータ候補と対応付けて一組以上、第一のデータベースに格納しておく。このように、画像処理部14は、サンプル画像の統計情報と、当該サンプル画像に対して画像処理を実施して得られる画像の統計情報との組を、当該画像処理のパラメータ候補と対応付けて一組以上保持する。そして、画像処理部14は、第一のデータベースに格納された統計情報Inと、第一の画像処理部143への入力画像Iinの統計情報Iとの類似度に基づいて、第二の画像処理部144への入力画像の統計情報I´を推定する。このように、画像処理の前後の画像の統計情報の組を予め記憶(記録)しておき、その情報を用いて当該画像処理を実施した後の画像の統計情報を推定する。したがって、容易且つ適切に各画像処理後の画像の統計情報を推定することができる。
また、画像処理部14をデジタルカメラ10に搭載するので、デジタルカメラ10で撮像した画像対して施される複数の画像処理について、複合的に各画像処理の最適なパラメータを設定することができる。したがって、デジタルカメラ10は良好な画像を提示することができる。
Further, the image processing unit 14, statistical information a set of the I n and Statistics I n ', more than one set in correspondence with the parameter candidates of the first image processing, and stored in the first database. As described above, the image processing unit 14 associates a set of the statistical information of the sample image and the statistical information of the image obtained by performing the image processing on the sample image with the parameter candidate of the image processing. Hold one or more pairs. Then, the image processing unit 14, based on the similarity of the statistical information I n stored in the first database, and statistics I of the input image Iin to the first image processing section 143, a second image The statistical information I ′ of the input image to the processing unit 144 is estimated. In this way, a set of image statistical information before and after image processing is stored (recorded) in advance, and the image statistical information after the image processing is estimated using the information. Therefore, the statistical information of the image after each image processing can be estimated easily and appropriately.
In addition, since the image processing unit 14 is mounted on the digital camera 10, optimal parameters for each image processing can be set in a composite manner for a plurality of image processings performed on images captured by the digital camera 10. Therefore, the digital camera 10 can present a good image.

(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

10…撮像装置(デジタルカメラ)、11…撮像部、14…画像処理部(画像処理装置)、17…CPU、141…入力端子、142…出力端子、143…第一の画像処理部、144…第二の画像処理部、145…パラメータ設定部、146…統計情報取得部、147…画像処理結果推定部、148…画像処理決定部、149…第三の画像処理部   DESCRIPTION OF SYMBOLS 10 ... Imaging device (digital camera), 11 ... Imaging part, 14 ... Image processing part (image processing apparatus), 17 ... CPU, 141 ... Input terminal, 142 ... Output terminal, 143 ... First image processing part, 144 ... Second image processing unit, 145 ... parameter setting unit, 146 ... statistical information acquisition unit, 147 ... image processing result estimation unit, 148 ... image processing determination unit, 149 ... third image processing unit

Claims (13)

入力画像に対して、少なくとも第1の画像処理と後続する第2の画像処理とを含む複数の画像処理を順次実施する画像処理手段と、
前記入力画像の統計量に関する情報である統計情報に基づいて、前記画像処理手段において前記入力画像に対する前記第1の画像処理後に得られる第1の画像処理結果を推定し、該第1の画像処理結果を推定した結果に基づいて、前記第1の画像処理結果に対する前記第2の画像処理後に得られる第2の画像処理結果を推定する推定手段と、
前記推定手段から得られる第2の画像処理結果を推定した結果に基づいて、前記第1の画像処理に用いられるパラメータおよび前記第2の画像処理に用いられるパラメータをそれぞれ設定する設定手段と、を有することを特徴とする画像処理装置。
Image processing means for sequentially performing a plurality of image processes including at least a first image process and a subsequent second image process on an input image;
Based on statistical information that is information relating to the statistic of the input image, the image processing means estimates a first image processing result obtained after the first image processing on the input image, and the first image processing Estimating means for estimating a second image processing result obtained after the second image processing on the first image processing result based on a result of estimating the result;
Setting means for setting the parameter used for the first image processing and the parameter used for the second image processing based on the result of estimating the second image processing result obtained from the estimation means; An image processing apparatus comprising:
前記推定手段は、
前記画像処理結果として、前記画像処理手段によって前記複数の画像処理を実施して得られる出力画像の画質に関する評価値を推定する第一の推定手段を備えることを特徴とする請求項1に記載の画像処理装置。
The estimation means includes
The first estimation unit that estimates an evaluation value related to an image quality of an output image obtained by performing the plurality of image processings by the image processing unit as the image processing result. Image processing device.
前記第一の推定手段は、前記複数の画像処理の複数のパラメータ組み合わせ候補について、前記評価値をそれぞれ推定し、
前記設定手段は、前記第一の推定手段で推定した複数の評価値を用いて前記出力画像の画質を比較し、その比較結果に基づいて前記パラメータを設定することを特徴とする請求項2に記載の画像処理装置。
The first estimating means estimates the evaluation value for each of a plurality of parameter combination candidates for the plurality of image processing,
The setting means compares the image quality of the output image using a plurality of evaluation values estimated by the first estimation means, and sets the parameter based on the comparison result. The image processing apparatus described.
前記推定手段は、
前記入力画像の統計情報に基づいて、前記複数の画像処理のうち最終段の画像処理の直前の画像処理までを実施した画像の統計情報を推定する第二の推定手段をさらに備え、
前記第一の推定手段は、前記第二の推定手段で推定した統計情報に基づいて、前記評価値を推定することを特徴とする請求項2または3に記載の画像処理装置。
The estimation means includes
Based on the statistical information of the input image, further comprising second estimation means for estimating statistical information of an image that has been processed up to the image processing immediately before the final stage image processing among the plurality of image processing,
The image processing apparatus according to claim 2, wherein the first estimation unit estimates the evaluation value based on statistical information estimated by the second estimation unit.
サンプル画像の統計情報と、当該サンプル画像に対して前記最終段の画像処理を実施して得られる画像の画質に関する評価値との組を、前記最終段の画像処理のパラメータ候補と対応付けて一組以上保持する第一の保持手段をさらに備え、
前記第一の推定手段は、
前記第一の保持手段が保持する前記サンプル画像の統計情報と、前記第二の推定手段で推定した統計情報との類似度に基づいて、前記評価値を推定することを特徴とする請求項4に記載の画像処理装置。
A set of statistical information of the sample image and an evaluation value related to the image quality of the image obtained by performing the final image processing on the sample image is associated with the parameter candidate of the final image processing. A first holding means for holding more than one set;
The first estimating means includes
5. The evaluation value is estimated based on the similarity between the statistical information of the sample image held by the first holding unit and the statistical information estimated by the second estimating unit. An image processing apparatus according to 1.
サンプル画像の統計情報と、当該サンプル画像に対して前記画像処理を実施して得られる画像の統計情報との組を、当該画像処理のパラメータ候補と対応付けて一組以上保持する第二の保持手段をさらに備え、
前記第二の推定手段は、
前記第二の保持手段が保持する前記サンプル画像の統計情報と、前記入力画像の統計情報との類似度に基づいて、前記最終段の画像処理の直前の画像処理を実施した後の画像の統計情報を推定することを特徴とする請求項4または5に記載の画像処理装置。
Second holding for holding one or more sets of statistical information of sample images and statistical information of images obtained by performing the image processing on the sample images in association with parameter candidates of the image processing Further comprising means,
The second estimating means includes
Based on the similarity between the statistical information of the sample image held by the second holding unit and the statistical information of the input image, the statistical information of the image after performing the image processing immediately before the image processing of the final stage The image processing apparatus according to claim 4, wherein the information is estimated.
前記統計情報は、少なくとも画像の輝度ヒストグラムに関する情報を含むことを特徴とする請求項1〜6のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the statistical information includes at least information related to a luminance histogram of the image. 前記統計情報は、少なくとも画像の周波数特性に関する情報を含むことを特徴とする請求項1〜7のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the statistical information includes at least information related to a frequency characteristic of the image. 前記評価値は、少なくとも画像の鮮鋭性に関する評価値を含むことを特徴とする請求項2〜8のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the evaluation value includes at least an evaluation value related to image sharpness. 前記評価値は、少なくとも画像のノイズに関する評価値を含むことを特徴とする請求項2〜9のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the evaluation value includes at least an evaluation value related to image noise. 前記請求項1〜10の何れか1項に記載の画像処理装置と、
前記入力画像を撮像する撮像手段と、を備えることを特徴とする撮像装置。
The image processing apparatus according to any one of claims 1 to 10,
An imaging apparatus comprising: an imaging unit that captures the input image.
入力画像の統計量に関する情報である統計情報に基づいて、前記入力画像に対する第1の画像処理後に得られる第1の画像処理結果を推定し、該第1の画像処理結果を推定した結果に基づいて、前記第1の画像処理結果に対する第2の画像処理後に得られる第2の画像処理結果を推定するステップと、
前記第2の画像処理結果を推定した結果に基づいて、前記第1の画像処理に用いられるパラメータおよび前記第2の画像処理に用いられるパラメータをそれぞれ設定するステップと、
決定した前記パラメータを用いて、前記入力画像に対して、少なくとも前記第1の画像処理と後続する前記第2の画像処理とを含む複数の画像処理を順次実施するステップと、を含むことを特徴とする画像処理方法。
Based on statistical information that is information relating to the statistic of the input image, a first image processing result obtained after the first image processing on the input image is estimated, and based on a result of estimating the first image processing result. Estimating a second image processing result obtained after the second image processing with respect to the first image processing result;
Setting a parameter used for the first image processing and a parameter used for the second image processing based on a result of estimating the second image processing result,
Sequentially performing a plurality of image processing including at least the first image processing and the subsequent second image processing on the input image using the determined parameter. An image processing method.
コンピュータを、請求項1〜10のいずれか1項に記載の画像処理装置の各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the image processing apparatus of any one of Claims 1-10.
JP2015083692A 2015-04-15 2015-04-15 Image processing apparatus and image processing method Pending JP2016206728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015083692A JP2016206728A (en) 2015-04-15 2015-04-15 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015083692A JP2016206728A (en) 2015-04-15 2015-04-15 Image processing apparatus and image processing method

Publications (1)

Publication Number Publication Date
JP2016206728A true JP2016206728A (en) 2016-12-08

Family

ID=57489676

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015083692A Pending JP2016206728A (en) 2015-04-15 2015-04-15 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP2016206728A (en)

Similar Documents

Publication Publication Date Title
KR101643122B1 (en) Image processing device, image processing method and recording medium
CN110022469B (en) Image processing method, image processing device, storage medium and electronic equipment
EP2187620B1 (en) Digital image processing and enhancing system and method with function of removing noise
JP4772839B2 (en) Image identification method and imaging apparatus
CN107730456B (en) Image processing method and image processing apparatus
JP6720881B2 (en) Image processing apparatus and image processing method
JP4818393B2 (en) Image processing method and image processing apparatus
JP2018041380A (en) Image processing apparatus, image processing method, and program
JP5259291B2 (en) White balance correction device and signal processing program
JP2005309560A (en) Image processing method, device and program
TW201346835A (en) Image blur level estimation method and image quality evaluation method
CN114584700B (en) Focusing marking method, marking device and electronic equipment
JP2004310475A (en) Image processor, cellular phone for performing image processing, and image processing program
JP2015154102A (en) Image processing apparatus and method, image processing program, imaging device
JP2018049564A (en) Detection device and detection method
JP2007274486A (en) Image output method, device, and program
JP6514504B2 (en) IMAGE PROCESSING APPARATUS, CONTROL METHOD THEREOF, AND PROGRAM
JP5115297B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
US20180152649A1 (en) Image processing apparatus, image pickup apparatus, image processing method, and storage medium
JP6786273B2 (en) Image processing equipment, image processing methods, and programs
JP2019016893A (en) Image processing apparatus, control method therefor, and program
JP2018160024A (en) Image processing device, image processing method and program
JP6795062B2 (en) Detection device, detection method and program
JP2016206728A (en) Image processing apparatus and image processing method
JP2021047710A (en) Image processing apparatus, image processing method, image processing system, and program