JP2006050390A - Image processing device, imaging device, recording medium and image processing program - Google Patents

Image processing device, imaging device, recording medium and image processing program Download PDF

Info

Publication number
JP2006050390A
JP2006050390A JP2004230541A JP2004230541A JP2006050390A JP 2006050390 A JP2006050390 A JP 2006050390A JP 2004230541 A JP2004230541 A JP 2004230541A JP 2004230541 A JP2004230541 A JP 2004230541A JP 2006050390 A JP2006050390 A JP 2006050390A
Authority
JP
Japan
Prior art keywords
image
unit
image processing
target value
parameter
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
JP2004230541A
Other languages
Japanese (ja)
Inventor
Masao Sanhongi
將夫 三本木
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.)
Olympus Corp
Original Assignee
Olympus Corp
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 Olympus Corp filed Critical Olympus Corp
Priority to JP2004230541A priority Critical patent/JP2006050390A/en
Publication of JP2006050390A publication Critical patent/JP2006050390A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing device with structure for calculating an optimum image processing parameter, an imaging device, a recording medium and an image processing program. <P>SOLUTION: A proofreading image is stored in a memory unit 100, and a feature amount calculating unit 102 calculates the feature amount from the proofreading image transmitted from the memory unit 100 by the control of a control unit 105. In a target value setting unit 101, a target value is set through an exterior I/F 106 by the control of the control unit 105. In a parameter calculating unit 103, a parameter for image processing is calculated by the control of the control unit 105 by using the feature amount calculated by the feature amount calculating unit 102 and the target value set by the target value setting unit 101, and the calculated parameter is transferred to an output unit 104. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、校正用画像を用いて画像処理パラメータを決定する画像処理装置等に関し、より詳細には校正用画像を用いて、ノイズ量、周波数特性、色情報および色差を算出し、画像処理パラメータを決定することが可能な、画像処理装置と撮像装置、記録媒体および画像処理プログラムに関するものである。   The present invention relates to an image processing apparatus that determines an image processing parameter using a calibration image, and more specifically, calculates a noise amount, frequency characteristics, color information, and a color difference using a calibration image, and the image processing parameter The present invention relates to an image processing apparatus, an imaging apparatus, a recording medium, and an image processing program.

従来から、画像処理装置や撮像装置における個体差を取り除くため、校正用画像を用いて補正を行う方法が提案されている。特許文献1には、デジタルカメラ、ビデオカメラ等デジタル方式の画像入力装置において、結像光学系の諸収差、色収差、イメージセンサーの色彩再現性、画素欠陥等を改善する方法が開示されている。また、特許文献2には、互いに反射率の異なる3 種類以上のグレーチャートを含む校正用画像を撮像素子により撮像して、その結果得られる信号を用いてノイズの関数情報を算出する方法が開示されている。   Conventionally, a method of performing correction using a calibration image has been proposed in order to remove individual differences in an image processing apparatus and an imaging apparatus. Patent Document 1 discloses a method for improving various aberrations, chromatic aberration, image sensor color reproducibility, pixel defects and the like of an imaging optical system in a digital image input device such as a digital camera or a video camera. Japanese Patent Application Laid-Open No. H10-228688 discloses a method of calculating calibration function information using a signal obtained by capturing a calibration image including three or more types of gray charts having different reflectivities from each other using an image sensor. Has been.

特開平11-205652号公報Japanese Patent Laid-Open No. 11-205652 特開2004-128985号公報JP 2004-128985 A

特許文献1では、校正用画像の他に,予め望ましい画像を記憶しておく必要があり、メモリ量が膨大になるという問題があった。また、特許文献2では、ノイズ以外の情報については対応することができない、という問題があった。   In Patent Document 1, it is necessary to store a desired image in advance in addition to the calibration image, and there is a problem that the amount of memory becomes enormous. Further, Patent Document 2 has a problem that information other than noise cannot be dealt with.

本発明は上記問題点に鑑み、予め画質の目標値を設定しておき、前記目標値と校正用画像を用いることで、最適な画像処理パラメータを算出することのできる画像処理装置と撮像装置、記録媒体および画像処理プログラムを提供することを目的とする。   In view of the above problems, the present invention sets an image quality target value in advance, and uses the target value and a calibration image to calculate an optimal image processing parameter, an image processing apparatus and an imaging apparatus, It is an object to provide a recording medium and an image processing program.

(1)上記目的を達成するために、本発明の第1の実施形態にかかる画像処理装置は、
デジタル化された画像を処理する画像処理装置において、校正用画像を前記画像処理装置に記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値および前記特徴量の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを出力する出力手段と、を有することを特徴とする。
(1) In order to achieve the above object, an image processing apparatus according to the first embodiment of the present invention includes:
In an image processing apparatus for processing a digitized image, a storage means for storing a calibration image in the image processing apparatus, a target value setting means for setting a target value, and a feature quantity for obtaining a feature quantity from the calibration image The image processing apparatus includes: a calculation unit; a parameter calculation unit that calculates an image processing parameter using the target value and the feature amount information; and an output unit that outputs the parameter.

この発明に関する実施の形態は、図1〜図5に示される第1 の実施形態例が対応する。前記構成の記憶手段は図1および図4に示される記憶部100 が、目標値設定手段は第1 図および第4 図に示される目標値設定部101 が、特徴量算出手段は図1、図2および図4に示される特徴量算出部102 が、パラメータ算出手段は図1、図3および図4に示されるパラメータ算出部103 が、出力手段は図1および図4に示される出力部104 がそれぞれ該当する。   The embodiment relating to the present invention corresponds to the first embodiment shown in FIGS. 1 and FIG. 4 is the storage means configured as described above, the target value setting means is the target value setting section 101 shown in FIG. 1 and FIG. 4, and the feature amount calculation means is the FIG. 2 and 4, the parameter calculation means is the parameter calculation section 103 shown in FIGS. 1, 3 and 4, and the output means is the output section 104 shown in FIGS. 1 and 4. Each is applicable.

この発明の好ましい適用例は、図1に示される記憶部100 にて校正用画像を記憶し、目標値設定部101 にて目標値を設定し、特徴量算出部102 にて前記校正用画像の特徴量を算出し、パラメータ算出部103 にて目標値設定部101 と特徴量算出部102 の情報を用いてパラメータの算出を行い、出力部104 にて上記パラメータを出力する画像処理装置である。   In a preferred application example of the present invention, the calibration image is stored in the storage unit 100 shown in FIG. 1, the target value is set in the target value setting unit 101, and the calibration image is stored in the feature amount calculation unit 102. This is an image processing apparatus that calculates feature amounts, calculates parameters using information of the target value setting unit 101 and the feature amount calculation unit 102 in the parameter calculation unit 103, and outputs the parameters in the output unit 104.

本発明の第1の実施形態にかかる画像処理装置は、校正用画像と目標値を用いて画像処理のパラメータを出力するものである。このため、目標値を満足するような画像処理パラメータを得る事ができる。   The image processing apparatus according to the first embodiment of the present invention outputs image processing parameters using a calibration image and a target value. For this reason, an image processing parameter that satisfies the target value can be obtained.

(2) また、本発明の第1の実施形態にかかる画像処理装置は、前記特徴量算出手段は、前記校正用画像の輝度値を算出する輝度値算出手段と、前記輝度値に対して周波数変換を行い周波数成分を算出する周波数算出手段と、を有することを特徴とする。この発明に関する実施の形態は、図1〜図5に示される第1 の実施形態例が対応する。前記構成の輝度値算出手段は図2に示される輝度信号算出部200 が、周波数算出手段は図2に示されるDCT 部201 がそれぞれ該当する。この発明の好ましい適用例は、図2に示される輝度信号算出部200 にて輝度値を算出し,DCT 部201 にて上記輝度値に対して周波数変換を行う画像処理装置である。この発明は、校正用画像の周波数特性を算出するものである。このため、校正用画像の特徴量として周波数特性を用いることができる。   (2) In the image processing apparatus according to the first embodiment of the present invention, the feature amount calculating unit includes a luminance value calculating unit that calculates a luminance value of the calibration image, and a frequency with respect to the luminance value. Frequency calculating means for converting and calculating a frequency component. The embodiment relating to the present invention corresponds to the first embodiment shown in FIGS. The luminance value calculating means having the above configuration corresponds to the luminance signal calculating section 200 shown in FIG. 2, and the frequency calculating means corresponds to the DCT section 201 shown in FIG. A preferred application example of the present invention is an image processing apparatus that calculates a luminance value by a luminance signal calculation unit 200 shown in FIG. 2 and performs frequency conversion on the luminance value by a DCT unit 201. The present invention calculates the frequency characteristics of a calibration image. For this reason, a frequency characteristic can be used as the feature amount of the calibration image.

(3) また、本発明の第1の実施形態にかかる画像処理装置は、前記特徴量算出手段は、前記校正用画像に含まれる複数のチャート部分を抽出するチャート抽出手段と、前記各チャートから色情報を算出する色情報算出手段と、を有することを特徴とする。この発明に関する実施の形態は、図1〜図5に示される第1 の実施形態例が対応する。前記構成のチャート抽出手段は図2に示されるチャート抽出部300 が、色情報算出手段は図2に示される色情報算出部302 がそれぞれ該当する.この発明の好ましい適用例は、図2に示されるチャート抽出部300にて校正用画像のチャートの抽出を行い、色情報算出部302 にて前記チャートの色情報を算出する画像処理装置である。この発明は、校正用画像のチャート部の色情報を算出するものである。このため、校正用画像の特徴量として色情報を用いることができる。   (3) Further, in the image processing apparatus according to the first embodiment of the present invention, the feature amount calculating means includes a chart extracting means for extracting a plurality of chart portions included in the calibration image, and each chart. And color information calculation means for calculating color information. The embodiment relating to the present invention corresponds to the first embodiment shown in FIGS. The chart extracting unit having the above-described configuration corresponds to the chart extracting unit 300 shown in FIG. 2, and the color information calculating unit corresponds to the color information calculating unit 302 shown in FIG. A preferred application example of the present invention is an image processing apparatus in which a chart extraction unit 300 shown in FIG. 2 extracts a calibration image chart and a color information calculation unit 302 calculates color information of the chart. The present invention calculates color information of the chart portion of the calibration image. For this reason, color information can be used as the feature amount of the calibration image.

(4) また、本発明の第1の実施形態にかかる画像処理装置は、前記パラメータ算出手段は、前記目標値設定手段および前記特徴量算出手段の情報を用いて演算を行う演算手段と、前記演算手段から得られた情報を用いてエッジ強調処理に用いるフィルタを算出するフィルタ算出手段と、を有することを特徴とする。この発明に関する実施の形態は、図1〜図5に示される第1 の実施形態例が対応する。前記構成の演算手段は図3に示される演算部400 が、フィルタ算出手段は第3 図に示されるフィルタ係数算出部401 がそれぞれ該当する。この発明の好ましい適用例は、図4に示される演算部400 にて目標値設定部101 および特徴量算出部102 の情報を用いてフィルタ算出に用いる情報を算出し、フィルタ係数算出部401 にてエッジ強調処理に用いるフィルタ係数を算出する画像処理装置である。この発明は、エッジ強調処理に用いるフィルタを算出するものである。このため、特徴量と目標値からエッジ強調フィルタを算出でき、高品位なエッジ強調フィルタを算出することができる。   (4) Further, in the image processing apparatus according to the first embodiment of the present invention, the parameter calculation unit includes a calculation unit that performs calculation using information of the target value setting unit and the feature amount calculation unit, And filter calculation means for calculating a filter used for edge enhancement processing using information obtained from the calculation means. The embodiment relating to the present invention corresponds to the first embodiment shown in FIGS. The calculation means having the above configuration corresponds to the calculation section 400 shown in FIG. 3, and the filter calculation means corresponds to the filter coefficient calculation section 401 shown in FIG. In a preferred application example of the present invention, the calculation unit 400 shown in FIG. 4 calculates information used for filter calculation using the information of the target value setting unit 101 and the feature amount calculation unit 102, and the filter coefficient calculation unit 401 An image processing apparatus that calculates filter coefficients used in edge enhancement processing. The present invention calculates a filter used for edge enhancement processing. Therefore, the edge enhancement filter can be calculated from the feature amount and the target value, and a high-quality edge enhancement filter can be calculated.

(5) また、本発明の第1の実施形態にかかる画像処理装置は、前記パラメータ算出手段は、色変換に用いる変換マトリクスを算出する変換マトリクス算出手段を有することを特徴とする。この発明に関する実施の形態は、図1〜図5に示される第1 の実施形態例が対応する。前記構成の変換マトリクス算出手段は図3に示されるマトリクス係数算出部501 が該当する。この発明の好ましい適用例は、図3に示されるXYZ 計算部500 にて目標値設定部101 の情報を用いてXYZ 色度値を算出し、マトリクス係数算出部501 にてXYZ 計算部500 と特徴量算出部102 の情報を用いてマトリクス係数を算出する画像処理装置である。この発明は、色変換に用いるマトリクスを算出するものである。このため、校正用画像の色情報を用いて高精度な色変換マトリクスを算出することができる.   (5) Further, the image processing apparatus according to the first embodiment of the present invention is characterized in that the parameter calculation means includes conversion matrix calculation means for calculating a conversion matrix used for color conversion. The embodiment relating to the present invention corresponds to the first embodiment shown in FIGS. The conversion matrix calculation means having the above configuration corresponds to the matrix coefficient calculation unit 501 shown in FIG. A preferred application example of the present invention is to calculate the XYZ chromaticity value using the information of the target value setting unit 101 in the XYZ calculation unit 500 shown in FIG. This is an image processing apparatus that calculates matrix coefficients using information of the quantity calculation unit 102. The present invention calculates a matrix used for color conversion. Therefore, a highly accurate color conversion matrix can be calculated using the color information of the calibration image.

(6) 本発明の第2の実施形態にかかる画像形成装置は、
デジタル化された画像を処理する画像処理装置において、校正用画像を前記画像処理装置に記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値と前記特徴量を比較する比較手段と、前記比較手段の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを出力する出力手段と、前記パラメータを前記特徴量算出手段へ転送するか前記出力手段へ転送するかを判断する判断手段と、を有することを特徴とする。
(6) An image forming apparatus according to the second embodiment of the present invention includes:
In an image processing apparatus for processing a digitized image, a storage means for storing a calibration image in the image processing apparatus, a target value setting means for setting a target value, and a feature quantity for obtaining a feature quantity from the calibration image A calculation unit; a comparison unit that compares the target value with the feature quantity; a parameter calculation unit that calculates an image processing parameter using information of the comparison unit; an output unit that outputs the parameter; and the parameter And determining means for determining whether to transfer to the feature quantity calculating means or to the output means.

この発明に関する実施の形態は、図6〜図9に示される第2 の実施形態例が対応する。前記構成の記憶手段は図6に示される記憶部100 が、目標値設定手段は第6 図に示される目標値設定部101が、特徴量算出手段は図6および図7に示される特徴量算出部1002 が、比較手段は図6に示される比較部150 が、パラメータ算出手段は図6および図8に示されるパラメータ算出部1003 が、出力手段は図6に示される出力部104 が、判断手段は図6に示される制御部105 がそれぞれ該当する。この発明の好ましい適用例は、図6に示される記憶部100 にて校正用画像を記憶し、目標値設定部101 にて目標値を設定し,特徴量算出部1002 にて前記校正用画像の特徴量を算出し、比較部150 にて前記目標値と前記特徴量の比較を行い、パラメータ算出部1003 にて比較部150 の情報を用いてパラメータの算出を行い、制御部105 にてパラメータ算出部1003 にて算出されたパラメータを特徴量算出部1002 へ転送するか判断し,出力部104 にて上記パラメータを出力する画像処理装置である。   The embodiment relating to the present invention corresponds to the second embodiment shown in FIGS. The storage means configured as described above is the storage section 100 shown in FIG. 6, the target value setting means is the target value setting section 101 shown in FIG. 6, and the feature quantity calculation means is the feature quantity calculation shown in FIGS. 6 is a comparison unit 150 shown in FIG. 6, a parameter calculation unit is a parameter calculation unit 1003 shown in FIGS. 6 and 8, and an output unit is an output unit 104 shown in FIG. Corresponds to the control unit 105 shown in FIG. In a preferred application example of the present invention, the calibration image is stored in the storage unit 100 shown in FIG. 6, the target value is set in the target value setting unit 101, and the calibration image is stored in the feature amount calculation unit 1002. The feature value is calculated, the comparison unit 150 compares the target value with the feature value, the parameter calculation unit 1003 calculates the parameter using the information of the comparison unit 150, and the control unit 105 calculates the parameter. The image processing apparatus determines whether to transfer the parameter calculated by the unit 1003 to the feature amount calculation unit 1002 and outputs the parameter by the output unit 104.

本発明の第2の実施形態にかかる画像形成装置は、特徴量と目標値を比較することによって画像処理のパラメータを出力するものである。このように、特徴量と目標値を比較し、目標値を満足するまで画像処理パラメータの算出を行うため、目標値を満たす画像処理パラメータを得る事ができる。   The image forming apparatus according to the second embodiment of the present invention outputs image processing parameters by comparing feature amounts with target values. In this way, since the feature amount and the target value are compared and the image processing parameter is calculated until the target value is satisfied, an image processing parameter that satisfies the target value can be obtained.

(7) また、本発明の第2の実施形態にかかる画像形成装置において、前記特徴量算出手段は、前記校正用画像に含まれる複数のチャート部分を抽出するチャート抽出手段と、前記各チャートから色情報を抽出する色情報抽出手段と、各チャートの色情報の真値を設定する色情報真値設定手段と、前記色情報と前記真値との差を算出する色差算出手段と、を有することを特徴とする。この発明に関する実施の形態は、図6〜図9に示される第2 の実施形態例が対応する。前記構成のチャート抽出手段は図7に示されるチャート抽出部600 が、色情報抽出手段は図7に示されるチャートLab 算出部602 が、色情報真値設定手段は図7に示されるLab 設定部604 が、色差算出手段は図7に示される色差算出部603 がそれぞれ該当する。この発明の好ましい適用例は、図7に示されるチャート抽出部600 にて校正用画像のチャート部を抽出し、チャートLab 算出部602にてチャート部の色情報を算出し、Lab 設定部604 にてチャート部の色情報の真値を設定し、色差算出部603 にて上記チャート部の算出された色情報と真値との差を求める画像処理装置である。この発明は、色情報と真値との差から色差を算出するものである。このため、校正用画像の特徴量として色差を用いることができる。   (7) Further, in the image forming apparatus according to the second embodiment of the present invention, the feature amount calculating means includes a chart extracting means for extracting a plurality of chart portions included in the calibration image, and each chart Color information extracting means for extracting color information, color information true value setting means for setting the true value of color information of each chart, and color difference calculating means for calculating a difference between the color information and the true value It is characterized by that. The embodiment relating to the present invention corresponds to the second embodiment shown in FIGS. The chart extracting unit configured as described above is the chart extracting unit 600 shown in FIG. 7, the color information extracting unit is the chart Lab calculating unit 602 shown in FIG. 7, and the color information true value setting unit is the Lab setting unit shown in FIG. Reference numeral 604 denotes the color difference calculation means, which corresponds to the color difference calculation unit 603 shown in FIG. A preferred application example of the present invention is that the chart extraction unit 600 shown in FIG. 7 extracts the chart portion of the calibration image, the chart Lab calculation unit 602 calculates the color information of the chart unit, and the Lab setting unit 604 In this image processing apparatus, the true value of the color information in the chart part is set, and the difference between the color information calculated in the chart part and the true value is obtained by the color difference calculating part 603. The present invention calculates the color difference from the difference between the color information and the true value. For this reason, the color difference can be used as the feature amount of the calibration image.

(8) また、本発明の第2の実施形態にかかる画像形成装置において、前記パラメータ算出手段は、色変換に用いる変換マトリクスを算出する変換マトリクス算出手段と、変換マトリクスの次数を設定するマトリクス次数設定手段と、を有することを特徴とする。この発明に関する実施の形態は、図6〜図9に示される第2 の実施形態例が対応する。前記構成のマトリクス次数設定手段は図8に示されるマトリクス次数設定部700 が該当する.この発明の好ましい適用例は、図8に示されるマトリクス次数設定部700 にて比較部150 の情報を用いて色変換マトリクスの次数を設定する画像処理装置である。この発明は、色変換に用いるマトリクスの次数を設定するものである。このため、色変換マトリクスの次数を大きくすることにより,変換精度が高まる。   (8) In the image forming apparatus according to the second embodiment of the present invention, the parameter calculation unit includes a conversion matrix calculation unit that calculates a conversion matrix used for color conversion, and a matrix order that sets the order of the conversion matrix. And setting means. The embodiment relating to the present invention corresponds to the second embodiment shown in FIGS. The matrix order setting means having the above configuration corresponds to the matrix order setting unit 700 shown in FIG. A preferred application example of the present invention is an image processing apparatus in which the order of the color conversion matrix is set using the information of the comparison unit 150 in the matrix order setting unit 700 shown in FIG. In the present invention, the order of a matrix used for color conversion is set. For this reason, the conversion accuracy is increased by increasing the order of the color conversion matrix.

(9) 本発明の第3の実施形態にかかる画像形成装置は、
デジタル化された画像を処理する画像処理装置において、校正用画像を前記画像処理装置に記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値と前記特徴量を比較する比較手段と、前記比較手段の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを用いて画像処理を行う画像処理手段と、前記パラメータを出力する出力手段と、前記画像処理手段で処理された画像を前記特徴量算出手段へ転送するか前記パラメータ算出手段で算出された前記パラメータを前記出力手段へ転送するか判断する判断手段と、を有することを特徴とする。
(9) An image forming apparatus according to the third embodiment of the present invention includes:
In an image processing apparatus for processing a digitized image, a storage means for storing a calibration image in the image processing apparatus, a target value setting means for setting a target value, and a feature quantity for obtaining a feature quantity from the calibration image A calculation unit; a comparison unit that compares the target value with the feature quantity; a parameter calculation unit that calculates an image processing parameter using information of the comparison unit; and an image processing unit that performs image processing using the parameter And an output means for outputting the parameter, and whether to transfer the image processed by the image processing means to the feature quantity calculating means or to transfer the parameter calculated by the parameter calculating means to the output means And a judging means.

この発明に関する実施の形態は、図10〜図14に示される第3 の実施形態例が対応する。前記構成の記憶手段は図10に示される記憶部100 が、目標値設定手段は図10に示される目標値設定部101 が、特徴量算出手段は図10および図11に示される特徴量算出部1102 が、比較手段は図10に示される比較部150 が、パラメータ算出手段は図10および図12に示される画像処理部151 が、画像処理手段は図10および図12に示される画像処理部151 が、出力手段は図10に示される出力部104 が、判断手段は図10に示される制御部105 がそれぞれ該当する。この発明の好ましい適用例は,図10に示される記憶部100 にて校正用画像を記憶し、目標値設定部101 にて目標値を設定し、特徴量算出部1102 にて前記校正用画像の特徴量を算出し、比較部150 にて前記目標値と前記特徴量の比較を行い、画像処理部151 にて比較部150 の情報を用いてパラメータの算出を行い、画像処理部151 にて校正用画像の画像処理を行い、制御部105 にて画像処理部151 にて処理された画像を特徴量算出部1102 へ転送するか否かを判断し、出力部104 にて上記パラメータを出力する画像処理装置である。   The embodiment relating to the present invention corresponds to the third embodiment shown in FIGS. The storage means configured as described above is the storage section 100 shown in FIG. 10, the target value setting means is the target value setting section 101 shown in FIG. 10, and the feature quantity calculation means is the feature quantity calculation section shown in FIGS. 1102 is the comparison means 150 shown in FIG. 10, the parameter calculation means is the image processing section 151 shown in FIGS. 10 and 12, and the image processing means is the image processing section 151 shown in FIGS. However, the output means corresponds to the output section 104 shown in FIG. 10, and the judgment means corresponds to the control section 105 shown in FIG. In a preferred application example of the present invention, the calibration image is stored in the storage unit 100 shown in FIG. 10, the target value is set in the target value setting unit 101, and the calibration image is stored in the feature amount calculation unit 1102. The feature value is calculated, the comparison unit 150 compares the target value and the feature value, the image processing unit 151 calculates the parameter using the information of the comparison unit 150, and the image processing unit 151 calibrates the feature value. An image for performing image processing on the image for use, determining whether to transfer the image processed by the image processing unit 151 to the feature amount calculation unit 1102 by the control unit 105, and outputting the above parameters by the output unit 104 It is a processing device.

本発明の第3の実施形態にかかる画像形成装置は、特徴量と目標値を比較することによって画像処理のパラメータを出力するものである。このように、特徴量と目標値を比較し、目標値を満足するまで画像処理パラメータの算出を行うので、目標値を満たす画像処理部パラメータを得る事ができる。   The image forming apparatus according to the third embodiment of the present invention outputs image processing parameters by comparing feature amounts with target values. As described above, the feature amount is compared with the target value, and the image processing parameter is calculated until the target value is satisfied. Therefore, an image processing unit parameter satisfying the target value can be obtained.

(10) また、本発明の第3の実施形態にかかる画像形成装置において、前記特徴量算出手段は、前記校正用画像に含まれる複数のチャート部分を抽出するチャート抽出手段と、前記各チャートからノイズ量を算出するノイズ量算出手段と、を有することを特徴とする。この発明に関する実施の形態は、図10〜図14に示される第3 の実施形態例が対応する。前記構成のチャート抽出手段は図11に示されるチャート抽出部800 が、ノイズ量算出手段は図11に示されるノイズ算出部802 が、それぞれ該当する。この発明の好ましい適用例は、図11に示されるチャート抽出部800 にて校正用画像のチャート部を抽出し、ノイズ算出部802 にて上記チャート部のノイズ量を算出する画像処理装置である。この発明は、校正用画像のノイズ量を算出するものである。このため、校正用画像の特徴量としてノイズ量を用いることができる。   (10) In the image forming apparatus according to the third embodiment of the present invention, the feature amount calculation unit includes a chart extraction unit that extracts a plurality of chart portions included in the calibration image, and a chart extraction unit. Noise amount calculating means for calculating the noise amount. The embodiment relating to the present invention corresponds to the third embodiment shown in FIGS. The chart extracting unit having the above configuration corresponds to the chart extracting unit 800 shown in FIG. 11, and the noise amount calculating unit corresponds to the noise calculating unit 802 shown in FIG. A preferred application example of the present invention is an image processing apparatus in which a chart extraction unit 800 shown in FIG. 11 extracts a chart portion of a calibration image, and a noise calculation unit 802 calculates a noise amount of the chart unit. The present invention calculates the noise amount of the calibration image. For this reason, the noise amount can be used as the feature amount of the calibration image.

(11) また、本発明の第3の実施形態にかかる画像形成装置において、画像処理手段は、画像の注目画素を中心とする局所領域を抽出する局所領域抽出手段と、前記注目画素に対するノイズ量を算出するノイズ量算出手段と、前記ノイズ量に対するゲインを設定するゲイン設定手段と、前記ノイズ量および前記ゲインの情報を用いて前記局所領域に対してノイズ低減処理を行うノイズ低減手段と、を有することを特徴とする。この発明に関する実施の形態は、図10〜図14に示される第3 の実施形態例が対応する。前記構成の局所領域抽出手段は図12に示される局所領域抽出部900 が、ノイズ量算出手段は図12に示されるノイズ量算出部904 が、ゲイン設定手段は図12に示されるゲイン設定部906 が、ノイズ低減手段は図12に示されるノイズ低減部903 がそれぞれ該当する。この発明の好ましい適用例は、図12に示される局所領域抽出部900 にて画像の局所領域を抽出し、ノイズ量算出部904 にて注目画素のノイズ量を算出し、ゲイン設定部906 にてノイズ低減に用いるゲインを設定し、ノイズ低減部903 にてノイズ低減処理を行う画像処理装置である。この発明は、注目画素のノイズ量を算出し、前記ノイズ量と設定されたゲインを用いてノイズ低減を行うものである。このため、算出されたノイズ量をもとにノイズ低減を行うため,高品位な画像が得られる。また、ノイズ低減のゲインを設定できるため,ノイズ低減の強さを変えることができる。   (11) In the image forming apparatus according to the third embodiment of the present invention, the image processing unit includes a local region extracting unit that extracts a local region centered on the target pixel of the image, and a noise amount with respect to the target pixel. A noise amount calculating means for calculating the noise amount, a gain setting means for setting a gain for the noise amount, and a noise reducing means for performing noise reduction processing on the local region using the information on the noise amount and the gain. It is characterized by having. The embodiment relating to the present invention corresponds to the third embodiment shown in FIGS. The local region extracting unit configured as described above is a local region extracting unit 900 shown in FIG. 12, the noise amount calculating unit is a noise amount calculating unit 904 shown in FIG. 12, and the gain setting unit is a gain setting unit 906 shown in FIG. However, the noise reduction means corresponds to the noise reduction unit 903 shown in FIG. In a preferred application example of the present invention, a local region of an image is extracted by a local region extraction unit 900 shown in FIG. 12, a noise amount of a target pixel is calculated by a noise amount calculation unit 904, and a gain setting unit 906 The image processing apparatus sets a gain used for noise reduction and performs noise reduction processing in a noise reduction unit 903. The present invention calculates the noise amount of the target pixel and performs noise reduction using the noise amount and a set gain. For this reason, since noise reduction is performed based on the calculated amount of noise, a high-quality image can be obtained. Further, since the noise reduction gain can be set, the strength of noise reduction can be changed.

(12) また、本発明の第1〜第3の実施形態にかかる画像形成装置において、前記記憶手段は、前記画像処理装置に着脱可能な外部記憶手段を有することを特徴とする。この発明に関する実施の形態は、図1、図6、図10に示される第1〜第3 の実施形態例が対応する。前記構成の外部記憶手段は、図1、図6、図10に示される記憶部100 が該当する。この発明の好ましい適用例は、図1、図6、図10に示される記憶部100 にて校正用画像を記憶する画像処理装置である。この発明は、記憶部を取り外すことができる。このため、校正用画像が記憶された記憶部を取り外すことにより、他の画像処理装置においても同じ校正用画像を用いることができる。   (12) In the image forming apparatuses according to the first to third embodiments of the present invention, the storage unit includes an external storage unit that can be attached to and detached from the image processing apparatus. The first to third embodiments shown in FIGS. 1, 6, and 10 correspond to the embodiments relating to the present invention. The external storage means configured as described above corresponds to the storage unit 100 shown in FIGS. A preferred application example of the present invention is an image processing apparatus that stores a calibration image in the storage unit 100 shown in FIGS. In the present invention, the storage unit can be removed. For this reason, the same calibration image can be used in other image processing apparatuses by removing the storage unit in which the calibration image is stored.

(13) 本発明の第1の実施形態にかかる撮像装置は、
画像を撮影する撮影手段と、前記撮影された画像信号をデジタル信号に変換する前処理手段と、前記デジタル信号に対する信号処理手段と、前記信号処理手段の出力信号が転送される出力手段とからなる撮影モード設定部、および、
前記撮影手段で撮影された校正用画像を記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値および前記特徴量の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを出力する前記出力手段とからなる画像処理パラメータモード設定部とを有し、前記パラメータ算出手段は、撮影用に変換した画像処理のパラメータを前記信号処理手段に転送することを特徴とする。
(13) The imaging apparatus according to the first embodiment of the present invention includes:
An imaging means for taking an image, a preprocessing means for converting the taken image signal into a digital signal, a signal processing means for the digital signal, and an output means for transferring an output signal of the signal processing means Shooting mode setting section, and
Storage means for storing a calibration image photographed by the photographing means, target value setting means for setting a target value, feature quantity calculation means for obtaining a feature quantity from the calibration image, the target value and the feature quantity An image processing parameter mode setting unit including a parameter calculation unit that calculates image processing parameters using the information and an output unit that outputs the parameters, and the parameter calculation unit converts the parameters for shooting Image processing parameters are transferred to the signal processing means.

この発明に関する実施の形態は、図4に示される第1 の実施形態例が対応する。前記構成の画像を撮影する撮影手段は、レンズ系111、CCD112が、前処理手段は前処理部113が、信号処理手段は信号処理部114が、出力手段は出力部104がそれぞれ該当する。この発明の好ましい適用例は、図4に示された撮影モード設定部と画像処理パラメータモード設定部とを有する撮像装置である。この発明は、撮像装置の内部に、校正用画像と目標値を用いて画像処理のパラメータを出力する手段を設けるものである。このため、撮像装置において目標値を満足するような画像処理パラメータを得る事ができる。また、校正用画像を撮影しているので、撮像装置の経時的な変化に対応することができ、高精度な画像処理パラメータの算出が行える。   The embodiment relating to the present invention corresponds to the first embodiment shown in FIG. The photographing means for photographing the image having the above-described configuration corresponds to the lens system 111 and the CCD 112, the preprocessing means corresponds to the preprocessing section 113, the signal processing means corresponds to the signal processing section 114, and the output means corresponds to the output section 104. A preferred application example of the present invention is an image pickup apparatus having a shooting mode setting unit and an image processing parameter mode setting unit shown in FIG. According to the present invention, means for outputting image processing parameters using a calibration image and a target value is provided in the imaging apparatus. For this reason, it is possible to obtain an image processing parameter that satisfies the target value in the imaging apparatus. In addition, since the calibration image is taken, it is possible to cope with a change with time of the imaging apparatus and to calculate the image processing parameter with high accuracy.

(14)本発明の第2の実施形態にかかる撮像装置は、画像を撮影する撮影手段と、前記撮影された画像信号をデジタル信号に変換する前処理手段と、前記デジタル信号に対する信号処理手段と、前記信号処理手段の出力信号が転送される出力手段とからなる撮影モード設定部、および、
前記撮影手段で撮影された校正用画像を記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値と前記特徴量を比較する比較手段と、前記比較手段の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを出力する出力手段と、前記パラメータを前記特徴量算出手段へ転送するか前記出力手段へ転送するかを判断する判断手段とからなる画像処理パラメータモード設定部とを有し、前記パラメータ算出手段は、撮影用に変換した画像処理のパラメータを前記信号処理手段に転送することを特徴とする。
(14) An imaging apparatus according to a second embodiment of the present invention includes an imaging unit that captures an image, a preprocessing unit that converts the captured image signal into a digital signal, and a signal processing unit that processes the digital signal. An imaging mode setting unit comprising output means to which an output signal of the signal processing means is transferred, and
Storage means for storing a calibration image photographed by the photographing means; target value setting means for setting a target value; feature quantity calculating means for obtaining a feature quantity from the calibration image; the target value and the feature quantity Comparing means, parameter calculating means for calculating parameters of image processing using information of the comparing means, output means for outputting the parameters, and transferring the parameters to the feature amount calculating means or the output And an image processing parameter mode setting unit configured to determine whether to transfer to the means, wherein the parameter calculation means transfers the image processing parameters converted for photographing to the signal processing means. And

この発明に関する実施の形態は、図4に示される第1 の実施形態例の撮影モード設定部と、図6に示された画像処理パラメータモード設定部の構成が対応する。この発明は、特徴量と目標値を比較し、目標値を満足するまで画像処理パラメータの算出を行うため、撮像装置において目標値を満たす画像処理パラメータを得る事ができる。また、校正用画像を撮影しているので、撮像装置の経時的な変化に対応することができ、高精度な画像処理パラメータの算出が行える。   The embodiment of the present invention corresponds to the configuration of the shooting mode setting unit of the first embodiment shown in FIG. 4 and the image processing parameter mode setting unit shown in FIG. According to the present invention, since the image processing parameter is calculated until the feature value is compared with the target value and the target value is satisfied, the image processing parameter satisfying the target value can be obtained in the imaging apparatus. In addition, since the calibration image is taken, it is possible to cope with a change with time of the imaging apparatus and to calculate the image processing parameter with high accuracy.

(15)本発明の第3の実施形態にかかる撮像装置は、画像を撮影する撮影手段と、前記撮影された画像信号をデジタル信号に変換する前処理手段と、前記デジタル信号に対する信号処理手段と、前記信号処理手段の出力信号が転送される出力手段とからなる撮影モード設定部、および、
前記撮影手段で撮影された校正用画像を記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値と前記特徴量を比較する比較手段と、前記比較手段の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを用いて画像処理を行う画像処理手段と、前記パラメータを出力する出力手段と、前記画像処理手段で処理された画像を前記特徴量算出手段へ転送するか前記パラメータ算出手段で算出された前記パラメータを前記出力手段へ転送するかを判断する判断手段とからなる画像処理パラメータモード設定部とを有し、前記パラメータ算出手段は、撮影用に変換した画像処理のパラメータを前記信号処理手段に転送することを特徴とする。
(15) An imaging apparatus according to a third embodiment of the present invention includes an imaging unit that captures an image, a preprocessing unit that converts the captured image signal into a digital signal, and a signal processing unit that processes the digital signal. An imaging mode setting unit comprising output means to which an output signal of the signal processing means is transferred, and
Storage means for storing a calibration image photographed by the photographing means; target value setting means for setting a target value; feature quantity calculating means for obtaining a feature quantity from the calibration image; the target value and the feature quantity Comparing means, parameter calculating means for calculating image processing parameters using information of the comparing means, image processing means for performing image processing using the parameters, output means for outputting the parameters, Image processing parameter mode setting comprising: determination means for determining whether to transfer the image processed by the image processing means to the feature amount calculation means or to transfer the parameter calculated by the parameter calculation means to the output means The parameter calculation means transfers the image processing parameters converted for photographing to the signal processing means.

この発明に関する実施の形態は、図4に示される第1 の実施形態例の撮影モード設定部と、図10に示された第3 の実施形態例の画像処理パラメータモード設定部の構成が対応する。この発明は、特徴量と目標値を比較し、目標値を満足するまで画像処理パラメータの算出を行うので、撮像装置において、目標値を満たす画像処理パラメータを得る事ができる。また、校正用画像を撮影しているので、撮像装置の経時的な変化に対応することができ、高精度な画像処理パラメータの算出が行える。   The embodiment of the present invention corresponds to the configuration of the shooting mode setting unit of the first embodiment shown in FIG. 4 and the image processing parameter mode setting unit of the third embodiment shown in FIG. . According to the present invention, the feature amount is compared with the target value, and the image processing parameter is calculated until the target value is satisfied. Therefore, the image processing parameter that satisfies the target value can be obtained in the imaging apparatus. In addition, since the calibration image is taken, it is possible to cope with a change with time of the imaging apparatus and to calculate the image processing parameter with high accuracy.

(16)本発明の第1の実施形態にかかる記録媒体は、予め設定された画質の目標値と校正用画像により最適な画像処理パラメータの画像信号データが記録される記録媒体において、校正用画像を記憶する記憶処理と、目標値を設定する目標値設定処理と、前記校正用画像から特徴量を求める特徴量算出処理と、前記目標値および前記特徴量の情報を用いて画像処理のパラメータを算出するパラメータ算出処理とがなされた画像信号データを保持する手段が設けられていることを特徴とする。   (16) A recording medium according to the first embodiment of the present invention is a recording medium in which image signal data of an optimal image processing parameter is recorded by a preset target value of image quality and a calibration image. Storage processing, target value setting processing for setting a target value, feature amount calculation processing for obtaining a feature amount from the calibration image, and image processing parameters using information on the target value and the feature amount. Means is provided for holding image signal data that has been subjected to parameter calculation processing to be calculated.

この発明に関する実施の形態は、図1に示される第1 の実施形態例が対応する。前記構成の校正用画像を記憶する記憶処理は記憶部100の処理が、目標値を設定する目標値設定処理は目標値設定部101の処理が、前記校正用画像から特徴量を求める特徴量算出処理は特徴量算出部102の処理が、前記目標値および前記特徴量の情報を用いて画像処理のパラメータを算出するパラメータ算出処理はパラメータ算出部103の処理が、記録媒体は出力部104がそれぞれ対応する。この発明は、校正用画像と目標値を用いて画像処理のパラメータ算出処理がなされた画像信号データを記録媒体に保持させている。このため、当該記録媒体を用いてPC(Personal Computer)などの情報処理機器による画像処理を行うことができる。   The embodiment relating to the present invention corresponds to the first embodiment shown in FIG. The storage processing for storing the calibration image having the above-described configuration is the processing of the storage unit 100, the target value setting processing for setting the target value is the processing of the target value setting unit 101, and the feature amount is calculated from the calibration image. The processing is performed by the feature amount calculation unit 102, the parameter calculation processing for calculating the image processing parameters using the target value and the feature amount information is performed by the parameter calculation unit 103, and the recording medium is performed by the output unit 104. Correspond. According to the present invention, image signal data subjected to image processing parameter calculation processing using a calibration image and a target value is held in a recording medium. Therefore, image processing by an information processing device such as a PC (Personal Computer) can be performed using the recording medium.

(17)本発明の第2の実施形態にかかる記録媒体は、予め設定された画質の目標値と校正用画像により最適な画像処理パラメータの画像信号データが記録される記録媒体において、校正用画像を前記画像処理装置に記憶する記憶処理と、目標値を設定する目標値設定処理と、前記校正用画像から特徴量を求める特徴量算出処理と、前記目標値と前記特徴量を比較する比較処理と、前記比較処理の情報を用いて画像処理のパラメータを算出するパラメータ算出処理と、前記パラメータを出力する出力処理と、前記パラメータを前記特徴量算出処理へ転送するか前記出力処理へ転送するかを判断する判断処理とがなされた画像信号データを保持する手段が設けられていることを特徴とする。   (17) A recording medium according to the second embodiment of the present invention is a recording medium in which image signal data of an optimal image processing parameter is recorded based on a preset image quality target value and a calibration image. Are stored in the image processing apparatus, target value setting processing for setting a target value, feature amount calculation processing for obtaining a feature amount from the calibration image, and comparison processing for comparing the target value with the feature amount A parameter calculation process that calculates image processing parameters using the information of the comparison process, an output process that outputs the parameters, and whether the parameters are transferred to the feature quantity calculation process or the output process Means is provided for holding image signal data that has been subjected to determination processing.

この発明に関する実施の形態は、図6に示される第2 の実施形態例が対応する。前記構成の校正用画像を記憶する記憶処理は記憶部100の処理が、目標値を設定する目標値設定処理は目標値設定部101の処理が、前記校正用画像から特徴量を求める特徴量算出処理は特徴量算出部1002の処理が、前記目標値および前記特徴量の情報を用いて画像処理のパラメータを算出するパラメータ算出処理はパラメータ算出部1003の処理が、前記パラメータを特徴量算出処理へ転送するか出力処理へ転送するかを判断する判断処理は制御部105の処理がそれぞれ該当する。この発明は、特徴量と目標値を比較し、目標値を満足するまで画像処理パラメータの算出を行ない、算出処理がなされた画像信号データを記録媒体に保持させている。このため、目標値を満たす画像処理パラメータを保持する記録媒体を得る事ができる。したがって、当該記録媒体を用いてPCなどの情報処理機器による画像処理を行うことができる。   The embodiment relating to the present invention corresponds to the second embodiment shown in FIG. The storage processing for storing the calibration image having the above-described configuration is the processing of the storage unit 100, the target value setting processing for setting the target value is the processing of the target value setting unit 101, and the feature amount is calculated from the calibration image. The processing is performed by the feature amount calculation unit 1002, and the parameter calculation processing for calculating the image processing parameters using the target value and the feature amount information is performed by the parameter calculation unit 1003, and the parameters are converted into the feature amount calculation processing. The determination processing for determining whether to transfer or to output processing corresponds to the processing of the control unit 105. According to the present invention, the feature amount is compared with the target value, the image processing parameter is calculated until the target value is satisfied, and the image signal data subjected to the calculation process is held in the recording medium. Therefore, it is possible to obtain a recording medium that holds image processing parameters that satisfy the target value. Therefore, image processing by an information processing device such as a PC can be performed using the recording medium.

(18)本発明の第3の実施形態にかかる記録媒体は、予め設定された画質の目標値と校正用画像により最適な画像処理パラメータの画像信号データが記録される記録媒体において、校正用画像を前記画像処理装置に記憶する記憶処理と、目標値を設定する目標値設定処理と、前記校正用画像から特徴量を求める特徴量算出処理と、前記目標値と前記特徴量を比較する比較処理と、前記比較処理の情報を用いて画像処理のパラメータを算出するパラメータ算出処理と、前記パラメータを用いた画像処理と、前記パラメータを出力する出力処理と、前記画像処理で処理された画像を前記特徴量算出処理へ転送するか前記パラメータ算出処理で算出された前記パラメータを前記出力処理へ転送するかを判断する判断処理とがなされた画像信号データを保持する手段が設けられていることを特徴とする。   (18) A recording medium according to the third embodiment of the present invention is a recording medium in which image signal data of an optimal image processing parameter is recorded by a preset target value of image quality and a calibration image. Are stored in the image processing apparatus, target value setting processing for setting a target value, feature amount calculation processing for obtaining a feature amount from the calibration image, and comparison processing for comparing the target value with the feature amount A parameter calculation process for calculating image processing parameters using the information of the comparison process, an image process using the parameters, an output process for outputting the parameters, and an image processed by the image process. The image signal data that has been subjected to determination processing for determining whether to transfer to the feature amount calculation processing or to transfer the parameter calculated in the parameter calculation processing to the output processing. Wherein the means for lifting are provided.

この発明に関する実施の形態は、図10に示される第3 の実施形態例が対応する。前記構成の校正用画像を記憶する記憶処理は記憶部100の処理が、目標値を設定する目標値設定処理は目標値設定部101の処理が、前記校正用画像から特徴量を求める特徴量算出処理は特徴量算出部1102の処理が、前記目標値と前記特徴量を比較する比較処理は比較部150の処理が、前記比較処理の情報を用いて画像処理のパラメータを算出するパラメータ算出処理は画像処理部151の処理が、前記パラメータを用いた画像処理は画像処理部151の処理が、前記パラメータを特徴量算出処理へ転送するか出力処理へ転送するかを判断する判断処理は制御部105の処理がそれぞれ該当する。この発明は、特徴量と目標値を比較し、目標値を満足するまで画像処理パラメータの算出を行うので、目標値を満たす画像処理パラメータを保持する記録媒体を得る事ができる。したがって、当該記録媒体を用いてPCなどの情報処理機器による画像処理を行うことができる。   The embodiment relating to the present invention corresponds to the third embodiment shown in FIG. The storage processing for storing the calibration image having the above-described configuration is the processing of the storage unit 100, the target value setting processing for setting the target value is the processing of the target value setting unit 101, and the feature amount is calculated from the calibration image. The processing is a feature amount calculation unit 1102, the comparison process for comparing the target value and the feature amount is a comparison unit 150 processing, and the parameter calculation processing for calculating image processing parameters using the information of the comparison processing is The process of the image processing unit 151 is an image process using the parameter, and the process of the image processing unit 151 determines whether the process transfers the parameter to the feature amount calculation process or the output process. These processes correspond to each. According to the present invention, the feature amount is compared with the target value, and the image processing parameter is calculated until the target value is satisfied. Therefore, it is possible to obtain a recording medium that holds the image processing parameter that satisfies the target value. Therefore, image processing by an information processing device such as a PC can be performed using the recording medium.

(19)本発明の第1の実施形態にかかる画像処理プログラムは、コンピュータに、校正用画像を読み込む手順と、前記校正用画像の特徴量を算出する手順と、設定された目標値と前記算出された特徴量を用いて画像処理のパラメータを算出する手順と、前記パラメータの算出結果を出力する手順とを実行させることを特徴とする。   (19) An image processing program according to the first embodiment of the present invention includes a procedure for reading a calibration image into a computer, a procedure for calculating a feature amount of the calibration image, a set target value, and the calculation The method is characterized in that a procedure for calculating a parameter for image processing using the feature amount thus obtained and a procedure for outputting a calculation result of the parameter are executed.

この発明に関する実施の形態は、図5に示される第1 の実施形態例が対応する。
校正用画像を読み込む手順は図5のS1が、前記校正用画像の特徴量を算出する手順はS2が、目標値の設定はS4が、目標値と前記算出された特徴量を用いて画像処理のパラメータを算出する手順はS3が、前記パラメータの算出結果を出力する手順はS5がそれぞれ該当する。
The embodiment relating to the present invention corresponds to the first embodiment shown in FIG.
The procedure for reading the calibration image is S1 in FIG. 5, the procedure for calculating the feature value of the calibration image is S2, the target value setting is S4, and the target value and the calculated feature value are used for image processing. The procedure for calculating the parameters corresponds to S3, and the procedure for outputting the parameter calculation results corresponds to S5.

(20)本発明の第2の実施形態にかかる画像処理プログラムは、コンピュータに、校正用画像を読み込む手順と、前記校正用画像の特徴量を算出する手順と、設定された目標値と前記算出された特徴量の比較を行う手順と、前記算出された特徴量が目標値に満たなければ画像処理のパラメータを算出する手順と、前記パラメータを前記特徴量算出の処理に帰還させる手順と、前記算出された特徴量が目標値を満たせば前記パラメータを出力する手順とを実行させることを特徴とする。   (20) An image processing program according to the second embodiment of the present invention includes a procedure for reading a calibration image into a computer, a procedure for calculating a feature amount of the calibration image, a set target value, and the calculation A procedure for comparing the calculated feature values, a procedure for calculating an image processing parameter if the calculated feature value does not satisfy a target value, a procedure for feeding back the parameter to the feature value calculation process, And a step of outputting the parameter when the calculated feature amount satisfies a target value.

この発明に関する実施の形態は、図9に示される第2 の実施形態例が対応する。校正用画像を読み込む手順はS1が、前記校正用画像の特徴量を算出する手順はS10が、目標値の設定はS4が、設定された目標値と前記算出された特徴量の比較を行う手順はS12が、前記算出された特徴量が目標値に満たなければ画像処理のパラメータを算出する手順はS11が、前記パラメータを前記特徴量算出の処理に帰還させる手順はS11、S10が、前記算出された特徴量が目標値を満たせば前記パラメータを出力する手順はS5がそれぞれ該当する。   The embodiment relating to the present invention corresponds to the second embodiment shown in FIG. The procedure for reading the calibration image is S1, the procedure for calculating the feature value of the calibration image is S10, the target value setting is S4, and the set target value is compared with the calculated feature value Is S12, S11 is the procedure for calculating the image processing parameters if the calculated feature quantity does not satisfy the target value, and S11 and S10 are the procedures for returning the parameters to the feature quantity calculation process. S5 corresponds to the procedure for outputting the parameter if the calculated feature value satisfies the target value.

(21)本発明の第3の実施形態にかかる画像処理プログラムは、コンピュータに、校正用画像を読み込む手順と、前記校正用画像に対して所定の画像処理を行う手順と、前記画像処理後の校正用画像の特徴量を算出する手順と、設定された目標値と前記算出された校正用画像の特徴量の比較を行う手順と、前記算出された特徴量が目標値に満たなければ前記画像処理に帰還させる手順と、前記算出された特徴量が目標値を満たせば前記パラメータを出力する手順とを実行させることを特徴とする。   (21) An image processing program according to the third embodiment of the present invention includes: a procedure for reading a calibration image into a computer; a procedure for performing predetermined image processing on the calibration image; A procedure for calculating the feature value of the calibration image, a procedure for comparing the set target value with the calculated feature value of the calibration image, and if the calculated feature value does not satisfy the target value, the image A procedure for returning to the processing and a procedure for outputting the parameter if the calculated feature value satisfies a target value are executed.

この発明に関する実施の形態は、図14に示される第3 の実施形態例が対応する。校正用画像を読み込む手順はS1が、前記校正用画像に対して所定の画像処理を行う手順はS20 が、前記画像処理後の校正用画像の特徴量を算出する手順はS21が、目標値の設定はS4が、前記目標値と算出された校正用画像の特徴量の比較を行う手順はS12が、前記算出された特徴量が目標値に満たなければ前記画像処理に帰還させる手順はS12、S20が、前記算出された特徴量が目標値を満たせば前記パラメータを出力する手順はS5がそれぞれ該当する。   The embodiment relating to the present invention corresponds to the third embodiment shown in FIG. The procedure for reading the calibration image is S1, the procedure for performing predetermined image processing on the calibration image is S20, the procedure for calculating the feature value of the calibration image after the image processing is S21, The setting is S4, the procedure for comparing the target value with the calculated feature value of the calibration image is S12, and the procedure for returning to the image processing if the calculated feature value does not satisfy the target value is S12, The procedure for outputting the parameter if S20 satisfies the calculated feature value satisfies the target value corresponds to S5.

(19)〜(21)の実施形態にかかる発明は、画像信号処理を画像処理プログラムによりコンピュータで実現させるものである。このため、迅速にしかも正確で高精度な画像信号処理を実現させることが可能となる。   In the inventions according to the embodiments (19) to (21), image signal processing is realized by a computer using an image processing program. For this reason, it is possible to realize image signal processing that is quick and accurate and highly accurate.

本発明においては、予め画質の目標値を設定しておき、前記目標値と校正用画像を用いることにより、最適な画像処理パラメータを算出することができる構成の画像処理装置と撮像装置、記録媒体および画像処理プログラムが得られる。   In the present invention, an image processing apparatus, an imaging apparatus, and a recording medium having a configuration capable of calculating an optimum image processing parameter by setting a target value of image quality in advance and using the target value and a calibration image. And an image processing program is obtained.

以下、本発明の実施の形態について図を参照して説明する。図1〜図5は、本発明の第1の実施形態例を示すものである。図1は第1の実施形態例の構成図、図2は特徴量算出部102 の構成図、図3はパラメータ算出部103 の構成図、図4は第1 の実施例の別の構成図、図5は第1 の実施形態例のソフトウェアに関するフローチャートである。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. 1 to 5 show a first embodiment of the present invention. FIG. 1 is a configuration diagram of the first embodiment, FIG. 2 is a configuration diagram of the feature quantity calculation unit 102, FIG. 3 is a configuration diagram of the parameter calculation unit 103, FIG. 4 is another configuration diagram of the first embodiment, FIG. 5 is a flowchart relating to the software of the first embodiment.

図1により、第1 の実施形態例の構成を説明する。記憶部100 には予め校正用画像が記憶されている。記憶部100 は特徴量算出部102 へ接続されており、特徴量算出部102 はパラメータ算出部103 へ接続されている。目標値設定部101 はパラメータ算出部103 へ接続されており、パラメータ算出部103 は出力部104 へ接続されている。マイクロコンピュータ等の制御部105 は、記憶部100 、目標値設定部101 、特徴量算出部102 、パラメータ算出部103および出力部104 に双方向で接続されている。さらに、目標値設定部101 における目標値の設定等を行うためのインターフェースを備えた外部I/F 部106 も、制御部105 に双方向で接続されている。   The configuration of the first embodiment will be described with reference to FIG. The storage unit 100 stores a calibration image in advance. The storage unit 100 is connected to the feature amount calculation unit 102, and the feature amount calculation unit 102 is connected to the parameter calculation unit 103. The target value setting unit 101 is connected to the parameter calculation unit 103, and the parameter calculation unit 103 is connected to the output unit 104. A control unit 105 such as a microcomputer is bidirectionally connected to the storage unit 100, the target value setting unit 101, the feature amount calculation unit 102, the parameter calculation unit 103, and the output unit 104. Further, an external I / F unit 106 having an interface for setting a target value in the target value setting unit 101 is also connected to the control unit 105 in both directions.

次に、図1における信号の流れを説明する。記憶部100 には、マクベスチャート等の校正用画像が記憶されている。この校正用画像は、画像処理装置内部に存在するROM に記憶されているか、あるいは着脱可能な外部メモリーカードに記憶されている。特徴量算出部102 は、制御部105 の制御に基づき記憶部100 から転送された校正用画像から特徴量を算出する。これら特徴量の算出方法については後述する。   Next, the signal flow in FIG. 1 will be described. The storage unit 100 stores a calibration image such as a Macbeth chart. This calibration image is stored in a ROM existing in the image processing apparatus or stored in a removable external memory card. The feature amount calculation unit 102 calculates a feature amount from the calibration image transferred from the storage unit 100 based on the control of the control unit 105. A method for calculating these feature values will be described later.

目標値設定部101 は、制御部105の制御に基づき外部I/F106 を通じて目標値の設定を行う。パラメータ算出部103 は、制御部105 の制御に基づき、特徴量算出部102 から算出された特徴量と目標値設定部101 で設定された目標値を用いて画像処理のパラメータを算出し、算出したパラメータを出力部104 へ転送する。出力部104 は、画像処理のパラメータをメモリーカード等へ記録保存する。   The target value setting unit 101 sets a target value through the external I / F 106 based on the control of the control unit 105. Based on the control of the control unit 105, the parameter calculation unit 103 calculates image processing parameters using the feature amount calculated from the feature amount calculation unit 102 and the target value set by the target value setting unit 101. The parameter is transferred to the output unit 104. The output unit 104 records and stores the image processing parameters in a memory card or the like.

メモリーカード等の記録媒体には、各種データを保持するフォルダやファイルが設定されている。この場合の記録媒体は、予め設定された画質の目標値と校正用画像により最適な画像処理パラメータの画像信号データが保持されるものである。記録媒体の保持手段には、図1の記憶部100でなされる校正用画像を記憶する記憶処理と、目標値設定部101でなされる目標値を設定する目標値設定処理と、特徴量算出部102でなされる前記校正用画像から特徴量を求める特徴量算出処理と、パラメータ算出部103でなされる前記目標値および前記特徴量の情報を用いて画像処理のパラメータを算出するパラメータ算出処理と、がなされた画像信号データが保持される。   Folders and files for holding various data are set on a recording medium such as a memory card. In this case, the recording medium holds image signal data of an optimal image processing parameter by a preset target value of image quality and a calibration image. The storage means for the recording medium includes a storage process for storing a calibration image performed by the storage unit 100 in FIG. 1, a target value setting process for setting a target value performed by the target value setting unit 101, and a feature amount calculating unit. A feature amount calculation process for obtaining a feature amount from the calibration image performed in 102, a parameter calculation process for calculating a parameter for image processing using the target value and the information on the feature amount, performed by a parameter calculation unit 103, The image signal data subjected to is held.

図2は、特徴量算出部102 の構成の一例を示すものである。特徴量算出部102は、輝度信号算出部200 、DCT 部201 、チャート抽出部300 、バッファ301 および色情報算出部302 からなるものである。記憶部100 は、輝度信号算出部200 およびチャート抽出部300 に接続されている。輝度信号算出部200 は、DCT 部201 に接続しており、DCT 部201 はパラメータ算出部103 に接続されている。チャート抽出部300 はバッファ301 に接続されている。   FIG. 2 shows an example of the configuration of the feature quantity calculation unit 102. The feature quantity calculation unit 102 includes a luminance signal calculation unit 200, a DCT unit 201, a chart extraction unit 300, a buffer 301, and a color information calculation unit 302. The storage unit 100 is connected to the luminance signal calculation unit 200 and the chart extraction unit 300. The luminance signal calculation unit 200 is connected to the DCT unit 201, and the DCT unit 201 is connected to the parameter calculation unit 103. The chart extraction unit 300 is connected to the buffer 301.

バッファ301 は、色情報算出部302 に接続されており、色情報算出部302 はパラメータ算出部103 に接続されている。制御部105 は、輝度信号算出部200 、DCT 部201 、チャート抽出部300 および色情報算出部302 と双方向で接続されている。輝度信号算出部200 からDCT 部201 までの構成で周波数情報を算出し、チャート抽出部300 から色情報算出部302 までの構成で色情報を算出する機能を有している。   The buffer 301 is connected to the color information calculation unit 302, and the color information calculation unit 302 is connected to the parameter calculation unit 103. The control unit 105 is bi-directionally connected to the luminance signal calculation unit 200, the DCT unit 201, the chart extraction unit 300, and the color information calculation unit 302. The frequency information is calculated by the configuration from the luminance signal calculation unit 200 to the DCT unit 201, and the color information is calculated by the configuration from the chart extraction unit 300 to the color information calculation unit 302.

制御部105 の制御に基づき、記憶部100 に記憶された校正用画像の周波数情報、色情報の一方、もしくは両方を算出することができる。記憶部100 に記憶された校正用画像は制御部105 の制御に基づき、輝度信号算出部200 、チャート抽出部300 の一方、もしくは両方に転送される。ここで、記憶部100 に記憶されている校正用画像は三板のRGB 画像とする。輝度信号算出部200 は制御部105 の制御に基づき記憶部100 から転送された校正用画像の輝度信号を算出する。輝度信号算出部200 は(1)式に示す変換式に基づきRGB 信号を輝度信号Y に変換する。
Y =0 .29900 R +0 .58700 G +0 .11400 B (1)
(1)式において、R,G,B はそれぞれR,G,B の信号値を表す。次に、算出された輝度信号Y はDCT 部201 へ転送される。
Based on the control of the control unit 105, one or both of the frequency information and the color information of the calibration image stored in the storage unit 100 can be calculated. The calibration image stored in the storage unit 100 is transferred to one or both of the luminance signal calculation unit 200 and the chart extraction unit 300 based on the control of the control unit 105. Here, the calibration image stored in the storage unit 100 is a three-plate RGB image. The luminance signal calculation unit 200 calculates the luminance signal of the calibration image transferred from the storage unit 100 based on the control of the control unit 105. The luminance signal calculation unit 200 converts the RGB signal into the luminance signal Y based on the conversion equation shown in equation (1).
Y = 0.29900 R +0 .58700 G +0.11400 B (1)
In equation (1), R, G, and B represent R, G, and B signal values, respectively. Next, the calculated luminance signal Y is transferred to the DCT unit 201.

ここで、校正用画像が単板画像である場合は、例えば、G 信号を上記の輝度信号Y としてもよい。DCT 部201 は、公知のDCT(Discrete Cosine Transform)変換により、校正用画像のY 信号を周波数空間へ変換する。上記周波数空間へ変換された信号は制御部105 の制御に基づきパラメータ算出部103 に転送される。チャート抽出部300 は、制御部105 の制御に基づき記憶部100 から転送された校正用画像に存在する各チャートを分離し、各チャートより一回り小さい所定サイズのブロック領域としてバッファ301 へ転送する。上記分離作業は、校正用画像が画像全体に写っており、かつチャートの配置状況が既知であるなら自動的に行うことができる。色情報算出部302 は、制御部105 の制御に基づきバッファ301 から転送されたブロック領域のRGB 値をチャート毎に平均し、パラメータ算出部103 へ転送する。   Here, when the calibration image is a single plate image, for example, the G signal may be the luminance signal Y. The DCT unit 201 converts the Y signal of the calibration image into a frequency space by a known DCT (Discrete Cosine Transform) conversion. The signal converted into the frequency space is transferred to the parameter calculation unit 103 based on the control of the control unit 105. The chart extraction unit 300 separates each chart existing in the calibration image transferred from the storage unit 100 based on the control of the control unit 105, and transfers it to the buffer 301 as a block area of a predetermined size that is slightly smaller than each chart. The separation operation can be automatically performed if the calibration image is shown in the entire image and the arrangement state of the chart is known. The color information calculation unit 302 averages the RGB values of the block area transferred from the buffer 301 based on the control of the control unit 105 for each chart, and transfers the average to the parameter calculation unit 103.

図3は、パラメータ算出部103 の構成の一例を示すものである。パラメータ算出部103は、演算部400 、フィルタ係数算出部401 、XYZ 計算部500 およびマトリクス係数算出部501 からなるものである。目標値設定部101 は、演算部400 およびXYZ 計算部500 に接続されている。特徴量算出部102 は、演算部400 およびマトリクス係数算出部501 に接続されている。演算部400 は、フィルタ係数算出部401 に接続されており、フィルタ係数算出部401 は出力部104 に接続されている。XYZ 計算部500 はマトリクス係数算出部501 へ接続されており、マトリクス係数算出部501 は出力部104 へ接続されている。   FIG. 3 shows an example of the configuration of the parameter calculation unit 103. The parameter calculation unit 103 includes a calculation unit 400, a filter coefficient calculation unit 401, an XYZ calculation unit 500, and a matrix coefficient calculation unit 501. Target value setting unit 101 is connected to calculation unit 400 and XYZ calculation unit 500. The feature quantity calculation unit 102 is connected to the calculation unit 400 and the matrix coefficient calculation unit 501. The calculation unit 400 is connected to the filter coefficient calculation unit 401, and the filter coefficient calculation unit 401 is connected to the output unit 104. The XYZ calculation unit 500 is connected to the matrix coefficient calculation unit 501, and the matrix coefficient calculation unit 501 is connected to the output unit 104.

制御部105は、演算部400 、フィルタ係数算出部401 、XYZ 計算部500 およびマトリクス係数算出部501 と双方向で接続されている。特徴量算出部102 にて算出された特徴量、および目標値設定部101 で設定された目標値が周波数情報の場合には、特徴量算出部102 および目標値設定部101 の情報は演算部400 に転送される。特徴量算出部102 にて算出された特徴量、および目標値設定部101 で設定された目標値が色情報の場合には、特徴量算出部102の情報はマトリクス係数算出部501へ、目標値設定部101の情報は、XYZ 計算部500 に転送される。   The control unit 105 is bidirectionally connected to the calculation unit 400, the filter coefficient calculation unit 401, the XYZ calculation unit 500, and the matrix coefficient calculation unit 501. When the feature amount calculated by the feature amount calculation unit 102 and the target value set by the target value setting unit 101 are frequency information, the information of the feature amount calculation unit 102 and the target value setting unit 101 is stored in the calculation unit 400. Forwarded to When the feature amount calculated by the feature amount calculation unit 102 and the target value set by the target value setting unit 101 are color information, the information of the feature amount calculation unit 102 is sent to the matrix coefficient calculation unit 501. Information of the setting unit 101 is transferred to the XYZ calculation unit 500.

最初に演算部400 およびフィルタ係数算出部401 について説明する。校正用画像の画素値i (x,y )に所定のフィルタf (x,y )を作用させて得られた変換画像をg (x,y )とすると、(2)式のようなコンボリューションで表すことができる。
f (x,y ) *i (x,y )=g (x,y ) (2)
ただし、 *はコンボリューション演算を表し、x,y は画像内の座標を表す。
First, the calculation unit 400 and the filter coefficient calculation unit 401 will be described. If the converted image obtained by applying a predetermined filter f (x, y) to the pixel value i (x, y) of the calibration image is g (x, y), a convolution like equation (2) Can be expressed as
f (x, y) * i (x, y) = g (x, y) (2)
However, * represents convolution operation, and x and y represent coordinates in the image.

(2)式の両辺に対してDCT 処理を行うと、(3)、(4)式
F (u,v ) ×I (u,v )=G (u,v ) (3)
F (u,v )=G (u,v )/I (u,v ) (4)
が得られる。ここで,F (u,v ),I (u,v ),G (u,v )はそれぞれf (x,y ),i (x,y ),g (x,y )をDCT 変換したもので、u,v は周波数空間内の座標を表す。
When DCT processing is performed on both sides of equation (2), equations (3) and (4)
F (u, v) × I (u, v) = G (u, v) (3)
F (u, v) = G (u, v) / I (u, v) (4)
Is obtained. Where F (u, v), I (u, v), G (u, v) are DCT transforms of f (x, y), i (x, y), g (x, y), respectively. And u, v represent coordinates in the frequency space.

演算部400 は、特徴量算出部102 から転送される校正用画像の周波数特性I (u,v )と、目標値設定部101 から転送される目標周波数特性G (u,v )を用いて(4)式の演算を行い、F (u,v )を算出する。次に、フィルタ係数算出部401 は、演算部400 から算出された周波数特性F (u,v )を用いて、逆DCT あるいは公知の窓関数法等を用いてフィルタ係数f (x,y )を算出する。算出されたフィルタ係数は出力部104 へ転送される。   The calculation unit 400 uses the frequency characteristic I (u, v) of the calibration image transferred from the feature amount calculation unit 102 and the target frequency characteristic G (u, v) transferred from the target value setting unit 101 ( 4) Calculate F (u, v) using the formula. Next, the filter coefficient calculation unit 401 uses the frequency characteristic F (u, v) calculated from the calculation unit 400 to calculate the filter coefficient f (x, y) using inverse DCT or a known window function method. calculate. The calculated filter coefficient is transferred to the output unit 104.

次にXYZ 計算部500 およびマトリクス係数算出部501 について説明する。目標値設定部101 には、外部I/F 部106 を介して設定された校正用画像の各チャートに対応する分光反射率が設定されており、各チャートの分光反射率はXYZ 計算部500 に転送される。次にXYZ 計算部500 は(5)式に基づき、チャートi の分光反射率oi (λ)からXYZ 信号値を算出する。 Next, the XYZ calculation unit 500 and the matrix coefficient calculation unit 501 will be described. The target value setting unit 101 is set with the spectral reflectance corresponding to each chart of the calibration image set via the external I / F unit 106, and the spectral reflectance of each chart is sent to the XYZ calculation unit 500. Transferred. Next, the XYZ calculation unit 500 calculates an XYZ signal value from the spectral reflectance o i (λ) of the chart i based on the equation (5).

Figure 2006050390
Figure 2006050390

ここで、λ は波長であり、K は定数,E (λ )は照明光, ̄x (λ ), ̄y (λ ), ̄z (λ )はそれぞれXYZ の等色関数を表し、X i ,Y i ,Z i はチャートi のXYZ 信号値を表す。 Where λ is a wavelength, K is a constant, E (λ) is illumination light,  ̄x (λ),  ̄y (λ), and  ̄z (λ) are XYZ color matching functions, and X i , Y i , Z i represent XYZ signal values of chart i.

マトリクス係数算出部501 は、特徴量算出部102 から転送された各チャートのRGB 信号値と、XYZ 計算部500 から転送された各チャートのXYZ 信号値を用いてRGB 信号からXYZ信号への変換マトリクスを作成する。ここでは、最小2 乗推定を用いた変換マトリクスの作成方法を説明する。チャートの個数をN 個とすると、あるk 番目のチャートのRGB 信号R k G k B k およびXYZ 信号X k Y k Z k に対して変換式は(6)式のようになる。 The matrix coefficient calculation unit 501 uses the RGB signal value of each chart transferred from the feature amount calculation unit 102 and the XYZ signal value of each chart transferred from the XYZ calculation unit 500 to convert the RGB signal into the XYZ signal. Create Here, a method for creating a transformation matrix using least square estimation will be described. Assuming that the number of charts is N, the conversion equation for the RGB signal R k G k B k and the XYZ signal X k Y k Z k of a certain k-th chart is as shown in equation (6).

Figure 2006050390
Figure 2006050390

(6)式を変形し、すべての信号について表記すると、(7)式で表される。   If equation (6) is modified and expressed for all signals, it is expressed by equation (7).

Figure 2006050390
Figure 2006050390

(7)式の行列を左からA、p、bとおくと、
Ap =b (8)
となる。
(7) If the matrix of the expression is A, p, b from the left,
Ap = b (8)
It becomes.

最小2 乗推定を用いてp を推定すると、(9)式のようになる
p=[ATA]-1ATb (9)
従って、(9)式を用いることによって、変換マトリクス係数を求めることができる。ここでは、RGB 信号からXYZ信号への変換は(6)式のようにRGB の1 次式を用いているが、2 次式,3 次式あるいはそれ以上の次数でもよい。例えば2 次式のときには(10)式のように表される。
Estimating p using least squares estimation gives
p = [A T A] -1 A T b (9)
Therefore, the conversion matrix coefficient can be obtained by using the equation (9). Here, the RGB signal is converted to the XYZ signal using the RGB primary equation as shown in Equation (6), but it may be a quadratic equation, a cubic equation or a higher order. For example, the quadratic expression is expressed as (10).

Figure 2006050390
Figure 2006050390

図4は、第1 の実施形態例の別の構成の一例を示すものである。図1とは、校正用画像110、レンズ系111 、CCD112 、前処理部113 、信号処理部114 および圧縮部115 が追加されている点が異なる。この構成図は、カメラ装置内に画像処理パラメータを算出する機能が追加されているものを想定している。第1 の実施形態例と同一の構成には同一の名称と番号を割り当てている。以下第1 の実施形態例と異なる個所のみ説明する。校正用画像110 はレンズ系111 、CCD112 を介して撮影される。撮影された画像は、Gain 増幅やA/D 変換およびAF 、AE 制御等の処理を行う前処理部113 を経てデジタル信号へ変換される。前処理部113 は記憶部100 および信号処理部114 へ接続している。   FIG. 4 shows an example of another configuration of the first embodiment. 1 differs from FIG. 1 in that a calibration image 110, a lens system 111, a CCD 112, a preprocessing unit 113, a signal processing unit 114, and a compression unit 115 are added. This configuration diagram assumes that a function for calculating image processing parameters is added to the camera device. The same names and numbers are assigned to the same components as those in the first embodiment. Only the points different from the first embodiment will be described below. The calibration image 110 is taken through the lens system 111 and the CCD 112. The captured image is converted into a digital signal through a preprocessing unit 113 that performs processing such as Gain amplification, A / D conversion, AF and AE control. The preprocessing unit 113 is connected to the storage unit 100 and the signal processing unit 114.

信号処理部114 は圧縮部115 へ接続しており、圧縮部115 は出力部104 へ接続している。信号処理部114 は前処理部113 から転送された画像に対して、エッジ強調および色変換処理等を行い、圧縮部115 へ転送する。この際、信号処理部114 は、パラメータ算出部103 にて算出されたエッジ強調のフィルタ係数や色変換マトリクスの情報を用いて、前処理部113 から転送された画像に対して信号処理を行うこともできる。   The signal processing unit 114 is connected to the compression unit 115, and the compression unit 115 is connected to the output unit 104. The signal processing unit 114 performs edge enhancement, color conversion processing, and the like on the image transferred from the preprocessing unit 113 and transfers the image to the compression unit 115. At this time, the signal processing unit 114 performs signal processing on the image transferred from the preprocessing unit 113 by using the edge enhancement filter coefficient and the color conversion matrix information calculated by the parameter calculation unit 103. You can also.

圧縮部115 は転送された画像に対して公知のJPEG 等の圧縮を行い、メモリーカード等の出力部104 へ転送する。外部I/F 部106 の設定により、画像処理パラメータ算出モードの時には前処理部113 から記憶部100 を経由し、出力部104 に至る処理が行われ、通常の撮影モードの時には前処理部113 から信号処理部114 を経由し出力部104 にいたる処理が行われる。パラメータ算出部103 から出力部104 へ転送される画像処理パラメータは、PC 等のソフト処理においても使用できるよう汎用的な形で転送されるが、信号処理部114 へ転送されるパラメータはカメラ装置に適した形に変換されて転送される。このように、図4の構成は、レンズ系111 、CCD112 、前処理部113 、信号処理部114 および圧縮部115、出力部104からなる撮影モード設定部と、記憶部100 、目標値設定部101 、特徴量算出部102 、パラメータ算出部103および出力部104、制御部105からなる画像処理パラメータモード設定部とを有する撮像装置として機能する。   The compression unit 115 compresses the transferred image by publicly known JPEG or the like, and transfers the compressed image to the output unit 104 such as a memory card. Depending on the setting of the external I / F unit 106, processing from the preprocessing unit 113 via the storage unit 100 to the output unit 104 is performed in the image processing parameter calculation mode, and from the preprocessing unit 113 in the normal shooting mode. Processing from the signal processing unit 114 to the output unit 104 is performed. The image processing parameters transferred from the parameter calculation unit 103 to the output unit 104 are transferred in a general-purpose form so that they can be used in software processing such as a PC, but the parameters transferred to the signal processing unit 114 are transferred to the camera device. It is converted into a suitable form and transferred. As described above, the configuration shown in FIG. 4 includes a lens system 111, a CCD 112, a preprocessing unit 113, a signal processing unit 114 and a compression unit 115, an output unit 104, a storage unit 100, a target value setting unit 101. It functions as an imaging apparatus having an image processing parameter mode setting unit including a feature amount calculation unit 102, a parameter calculation unit 103, an output unit 104, and a control unit 105.

上記構成により、校正用画像および目標値を用いて画像処理パラメータを算出するため、目標値を満足する高精度な画像処理パラメータの算出が行える。また、画像処理パラメータはPC 等の後処理にて使用することを想定しているため、カメラシステムに依存しない汎用的なパラメータの算出が行える。また、校正用画像を撮影し、画像処理パラメータを算出するため、経時変化やシステムの変更に柔軟に対応することが可能となる。   With the above configuration, since the image processing parameter is calculated using the calibration image and the target value, it is possible to calculate a highly accurate image processing parameter that satisfies the target value. In addition, since image processing parameters are assumed to be used in post-processing such as a PC, general-purpose parameters that do not depend on the camera system can be calculated. In addition, since a calibration image is taken and image processing parameters are calculated, it is possible to flexibly cope with changes over time and system changes.

なお、上記実施形態例では、ハードウェアによる処理を前提としていたが、このような構成に限定される必要はない。別途ソフトウェアにて処理する構成も可能である。図5は、第1 の実施形態例のソフトウェアに関するフローチャートを示す。図5のフローチャートについて、図1における処理と対応させて説明する。記憶部100 に相当するS1 にて校正用画像を読み込み、特徴量算出部102 に相当するS2 にて校正用画像の特徴量を算出する。次に、パラメータ算出部103 に相当するS3 にて、目標値設定部101 に相当するS4 にて設定された目標値と、S2 にて算出された前記特徴量を用いてパラメータの算出を行う。パラメータの算出結果は、出力部104 に相当するS5 にてパラメータの出力を行う。   In the above-described embodiment, processing by hardware is assumed, but it is not necessary to be limited to such a configuration. A configuration in which processing is performed separately by software is also possible. FIG. 5 shows a flowchart relating to the software of the first embodiment. The flowchart in FIG. 5 will be described in correspondence with the processing in FIG. The calibration image is read in S1 corresponding to the storage unit 100, and the feature amount of the calibration image is calculated in S2 corresponding to the feature amount calculation unit 102. Next, in S3 corresponding to the parameter calculation unit 103, the parameter is calculated using the target value set in S4 corresponding to the target value setting unit 101 and the feature amount calculated in S2. The parameter calculation result is output in S5 corresponding to the output unit 104.

図6〜図9は、本発明の第2 の実施形態例に対応する。図6は第2 の実施形態例の構成図、図7は特徴量算出部の第2 の構成図、図8はパラメータ算出部の第2 の構成図、図9は第2 の実施形態例のソフトウェアに関するフローチャートである。   6 to 9 correspond to the second embodiment of the present invention. 6 is a configuration diagram of the second embodiment example, FIG. 7 is a second configuration diagram of the feature amount calculation unit, FIG. 8 is a second configuration diagram of the parameter calculation unit, and FIG. 9 is an example of the second embodiment example. It is a flowchart regarding software.

第2 の実施形態例について、図6の構成図で説明する。図1の第1 の実施形態例とは、特徴量算出部102 およびパラメータ算出部103 が、それぞれ特徴量算出部1002 およびパラメータ算出部1003 に変更されている。また、比較部150 が追加されている点が異なる。第1 の実施形態例と同一の構成には同一の名称と番号を割り当てている。以下第1 の実施形態例と異なる個所のみ説明する。記憶部100 は特徴量算出部1002 に接続されている。特徴量算出部1002 および目標値設定部101 は、比較部150 に接続されており、比較部150 はパラメータ算出部1003 に接続されている。パラメータ算出部1003 は、特徴量算出部1002 および出力部104 に接続されている。   A second embodiment will be described with reference to the block diagram of FIG. In the first embodiment shown in FIG. 1, the feature quantity calculation unit 102 and the parameter calculation unit 103 are changed to a feature quantity calculation unit 1002 and a parameter calculation unit 1003, respectively. Further, the difference is that a comparison unit 150 is added. The same names and numbers are assigned to the same components as those in the first embodiment. Only the points different from the first embodiment will be described below. The storage unit 100 is connected to the feature amount calculation unit 1002. The feature amount calculation unit 1002 and the target value setting unit 101 are connected to the comparison unit 150, and the comparison unit 150 is connected to the parameter calculation unit 1003. The parameter calculation unit 1003 is connected to the feature amount calculation unit 1002 and the output unit 104.

比較部150 は、制御部105 の制御に基づき特徴量算出部1002 から転送された特徴量と、目標値設定部101 から転送された目標値を比較し、比較結果をパラメータ算出部1003 へ転送する。その後,比較部150 の情報を用いて、制御部105 はパラメータ算出部1003 の制御を行い、算出された画像処理のパラメータを特徴量算出部1002 に転送するか、あるいは出力部104 に転送するかを判断する。   Based on the control of the control unit 105, the comparison unit 150 compares the feature amount transferred from the feature amount calculation unit 1002 with the target value transferred from the target value setting unit 101, and transfers the comparison result to the parameter calculation unit 1003. . Thereafter, using the information of the comparison unit 150, the control unit 105 controls the parameter calculation unit 1003 to transfer the calculated image processing parameter to the feature amount calculation unit 1002 or to the output unit 104. Judging.

出力部104は、画像処理のパラメータをメモリーカード等の記録媒体へ記録保存する。記録媒体の保持手段には、図6の記憶部100でなされる校正用画像を記憶する記憶処理と、目標値設定部101でなされる目標値を設定する目標値設定処理と、特徴量算出部102でなされる前記校正用画像から特徴量を求める特徴量算出処理と、パラメータ算出部103でなされる前記目標値および前記特徴量の情報を用いて画像処理のパラメータを算出するパラメータ算出処理と、制御部105でなされる前記パラメータを前記特徴量算出処理へ転送するか出力処理へ転送するかを判断する判断処理とがなされた画像信号データが保持される。   The output unit 104 records and saves the image processing parameters in a recording medium such as a memory card. The storage means for the recording medium includes a storage process for storing a calibration image performed by the storage unit 100 in FIG. 6, a target value setting process for setting a target value performed by the target value setting unit 101, and a feature amount calculation unit. A feature amount calculation process for obtaining a feature amount from the calibration image performed in 102, a parameter calculation process for calculating a parameter for image processing using the target value and the information on the feature amount, performed by a parameter calculation unit 103, Image signal data that has been subjected to a determination process for determining whether to transfer the parameter to the feature amount calculation process or the output process performed by the control unit 105 is held.

図7は、特徴量算出部1002 の構成の一例を示すものである。特徴量算出部1002は、チャート抽出部600、マトリクス計算部601 、チャートLab 算出部602 、色差算出部603 およびLab 設定部604 から構成されている。記憶部100 はチャート抽出部600 に接続されている。パラメータ算出部1003 は、マトリクス計算部601 に接続されている。チャート抽出部600 は、マトリクス計算部601 に接続されている。   FIG. 7 shows an example of the configuration of the feature quantity calculation unit 1002. The feature amount calculation unit 1002 includes a chart extraction unit 600, a matrix calculation unit 601, a chart Lab calculation unit 602, a color difference calculation unit 603, and a Lab setting unit 604. The storage unit 100 is connected to the chart extraction unit 600. The parameter calculation unit 1003 is connected to the matrix calculation unit 601. The chart extraction unit 600 is connected to the matrix calculation unit 601.

マトリクス計算部601 は、チャートLab 算出部602 に接続されている。チャートLab 算出部602 、およびLab 設定部604 は色差算出部603 に接続されており、色差算出部603 は比較部150 に接続されている。制御部105 は、チャート抽出部600 、マトリクス計算部601 、チャートLab 算出部602 、色差算出部603 およびLab 設定部604 と双方向で接続されている。記憶部100 には、何種類かの異なる分光反射率を有するチャートからなる校正用画像が記憶されている。   The matrix calculation unit 601 is connected to the chart Lab calculation unit 602. The chart Lab calculation unit 602 and the Lab setting unit 604 are connected to the color difference calculation unit 603, and the color difference calculation unit 603 is connected to the comparison unit 150. The control unit 105 is bi-directionally connected to the chart extraction unit 600, matrix calculation unit 601, chart Lab calculation unit 602, color difference calculation unit 603, and Lab setting unit 604. The storage unit 100 stores calibration images made up of charts having several different spectral reflectances.

本実施形態例において、校正用画像はRGB 画像であるとする。チャート抽出部600は、制御部105 の制御に基づき記憶部100 から転送された校正用画像を用いて各チャートを分離し、各チャートより一回り小さい所定サイズのブロック領域を抽出する。抽出された各ブロック領域の信号は平均されて、順次マトリクス計算部601 へ転送される。マトリクス計算部601 は、制御部105 の制御に基づきチャート抽出部600 から転送された各チャートのRGB の平均信号に対してパラメータ算出部1003 から転送されるマトリクス係数a 〜i を用いて(11)式で示されるXYZ 信号への変換を行う。   In this embodiment, it is assumed that the calibration image is an RGB image. Based on the control of the control unit 105, the chart extraction unit 600 separates each chart using the calibration image transferred from the storage unit 100, and extracts a block region having a predetermined size that is slightly smaller than each chart. The extracted signals of the respective block areas are averaged and sequentially transferred to the matrix calculation unit 601. The matrix calculation unit 601 uses the matrix coefficients a to i transferred from the parameter calculation unit 1003 for the RGB average signal of each chart transferred from the chart extraction unit 600 based on the control of the control unit 105 (11). Performs conversion to the XYZ signal indicated by the equation.

Figure 2006050390
Figure 2006050390

最初の処理において、パラメータ算出部1003 からの出力はないので、マトリクス係数の初期値は外部I/F 部106を介してユーザーが任意に設定することができ、その情報は制御部105 を通じてマトリクス計算部601 へ転送される。算出されたXYZ 信号は、チャートLab 算出部602 へ転送される。チャートLab 算出部602 は、制御部105 の制御に基づきマトリクス計算部601 から転送された各チャートのXYZ 信号値に対して,(12)式で表されるL *a *b *信号への変換を行う。 Since there is no output from the parameter calculation unit 1003 in the first processing, the initial value of the matrix coefficient can be arbitrarily set by the user via the external I / F unit 106, and the information is calculated by the matrix calculation through the control unit 105. Transferred to part 601. The calculated XYZ signal is transferred to the chart Lab calculation unit 602. The chart Lab calculation unit 602 converts the XYZ signal value of each chart transferred from the matrix calculation unit 601 based on the control of the control unit 105 into an L * a * b * signal expressed by equation (12). I do.

Figure 2006050390
Figure 2006050390

ただし、X 0 、Y 0 、Z 0 は標準光源下における完全拡散白色面での値、関数f は、例えばf (X/X 0) で(13)式の通りである。 However, X 0 , Y 0 , Z 0 are values on a completely diffusing white surface under a standard light source, and the function f is, for example, f (X / X 0 ) as shown in Equation (13).

Figure 2006050390
Figure 2006050390

算出されたチャートのL *a *b *信号値は、色差算出部603 へ転送される。Lab 設定部604 には、外部I/F 部106 を介して校正用画像の各チャートの真のL *a *b *が設定されている。色差算出部603 は、制御部105 の制御に基づきチャートLab 算出部602 から転送される各チャートのL *a *b *信号値と、Lab 設定部604 から転送される真のL *a *b *信号値から、色差ΔE (L *a *b *)を算出する。算出された色差は、比較部150 へ転送される。また,各チャートの平均RGB 値も比較部150 へ転送される。 The L * a * b * signal value of the calculated chart is transferred to the color difference calculation unit 603. In the Lab setting unit 604, the true L * a * b * of each chart of the calibration image is set via the external I / F unit 106. The color difference calculation unit 603 controls the L * a * b * signal value of each chart transferred from the chart Lab calculation unit 602 based on the control of the control unit 105 and the true L * a * b transferred from the Lab setting unit 604. * Color difference ΔE (L * a * b * ) is calculated from the signal value. The calculated color difference is transferred to the comparison unit 150. The average RGB value of each chart is also transferred to the comparison unit 150.

図8はパラメータ算出部1003 の構成の一例を示すものである。パラメータ算出部1003は、マトリクス次数設定部700 、マトリクス係数算出部701 およびXYZ 設定部702 から構成される。比較部150 はマトリクス係数算出部701 に接続されている。マトリクス次数設定部700 およびXYZ 設定部702 は、マトリクス係数算出部701 に接続されており、マトリクス係数算出部701 は、特徴量算出部1002 および出力部104 に接続されている。制御部105 は、比較部150 、マトリクス次数設定部700 、マトリクス係数算出部701 およびXYZ 設定部702 と双方向で接続されている。   FIG. 8 shows an example of the configuration of the parameter calculation unit 1003. The parameter calculation unit 1003 includes a matrix order setting unit 700, a matrix coefficient calculation unit 701, and an XYZ setting unit 702. The comparison unit 150 is connected to the matrix coefficient calculation unit 701. The matrix order setting unit 700 and the XYZ setting unit 702 are connected to the matrix coefficient calculation unit 701, and the matrix coefficient calculation unit 701 is connected to the feature amount calculation unit 1002 and the output unit 104. The control unit 105 is bidirectionally connected to the comparison unit 150, the matrix order setting unit 700, the matrix coefficient calculation unit 701, and the XYZ setting unit 702.

比較部150 は、特徴量算出部1002 で算出された校正用画像の色差と、目標値設定部101 から転送された目標色差を比較する。比較部150の最初の比較において、校正用画像の色差が目標色差より大きければ、制御部105 の制御に基づいてマトリクス次数設定部700 を制御し,マトリクスの次数を1 次と設定して、その情報をマトリクス係数算出部701 へ転送する。校正用画像の色差が目標色差より小さければ、制御部105 の制御に基づいて初期値のマトリクス係数が出力部104 へ転送される。校正用画像の各チャートの平均RGB 値は、比較部150 からマトリクス係数算出部701 へ転送される。   The comparison unit 150 compares the color difference of the calibration image calculated by the feature amount calculation unit 1002 with the target color difference transferred from the target value setting unit 101. In the first comparison of the comparison unit 150, if the color difference of the calibration image is larger than the target color difference, the matrix order setting unit 700 is controlled based on the control of the control unit 105, and the matrix order is set to the first order. The information is transferred to the matrix coefficient calculation unit 701. If the color difference of the calibration image is smaller than the target color difference, the initial matrix coefficient is transferred to the output unit 104 based on the control of the control unit 105. The average RGB value of each chart of the calibration image is transferred from the comparison unit 150 to the matrix coefficient calculation unit 701.

XYZ 設定部702 には、外部I/F 部106 を介して校正用画像のチャートの真のXYZ 値が設定されている。マトリクス係数算出部701 は、制御部105 の制御に基づき比較部150 から転送される校正用画像の各チャートのRGB 値と、XYZ 設定部702 から転送される各チャートのXYZ 値を用いて、(9)式のように変換マトリクス係数を算出する。算出された変換マトリクス係数は、特徴量算出部1002 へ転送される。   In the XYZ setting unit 702, the true XYZ value of the calibration image chart is set via the external I / F unit 106. Based on the control of the control unit 105, the matrix coefficient calculation unit 701 uses the RGB value of each chart of the calibration image transferred from the comparison unit 150 and the XYZ value of each chart transferred from the XYZ setting unit 702, 9) The conversion matrix coefficient is calculated as shown in equation (9). The calculated conversion matrix coefficient is transferred to the feature amount calculation unit 1002.

比較部150 は、再度特徴量算出部1002 で算出された校正用画像の色差と、目標値設定部101 から転送された目標色差を比較する。校正用画像の色差が目標色差より大きければ,制御部105 の制御に基づいて、マトリクス次数設定部700 を制御し、マトリクスの次数を2 次と設定して、その情報をマトリクス係数算出部701 へ転送する。校正用画像の色差が目標色差より小さければ、制御部105 の制御に基づいてマトリクス係数算出部701 で算出されたマトリクス係数が出力部104 へ転送される。マトリクス次数設定部700 は、上記のように比較部150 の比較結果により順次マトリクスの次数を増大させていく。   The comparison unit 150 compares the color difference of the calibration image calculated by the feature amount calculation unit 1002 again with the target color difference transferred from the target value setting unit 101. If the color difference of the calibration image is larger than the target color difference, based on the control of the control unit 105, the matrix order setting unit 700 is controlled, the matrix order is set to secondary, and the information is sent to the matrix coefficient calculation unit 701. Forward. If the color difference of the calibration image is smaller than the target color difference, the matrix coefficient calculated by the matrix coefficient calculation unit 701 based on the control of the control unit 105 is transferred to the output unit 104. The matrix order setting unit 700 sequentially increases the order of the matrix according to the comparison result of the comparison unit 150 as described above.

図6の構成においても、図4で示したような、カメラ装置内に画像処理パラメータを算出する機能を設けることができる。この場合には、校正用画像を撮影するレンズ系、CCD 、撮影された画像をGain 増幅やA/D 変換およびAF 、AE 制御等の処理を行う前処理部、画像に対してエッジ強調および色変換処理等を行う信号処理部、および転送された画像に対して公知のJPEG 等の圧縮を行う圧縮部が設けられる。   In the configuration of FIG. 6 as well, a function for calculating image processing parameters can be provided in the camera apparatus as shown in FIG. In this case, a lens system for capturing a calibration image, a CCD, a preprocessing unit that performs processing such as Gain amplification, A / D conversion, AF, and AE control on the captured image, edge enhancement and color for the image A signal processing unit that performs conversion processing and the like, and a compression unit that performs compression such as publicly known JPEG on the transferred image are provided.

上記構成により、校正用画像から算出される特徴量と、設定した目標値を比較し、画像処理パラメータを順次更新していくため、目標値の条件を満たすような画像処理パラメータの算出が行える。なお、上記実施例では、ハードウェアによる処理を前提としていたが,このような構成に限定される必要はない。図9に第2 の実施例のソフトウェアに関するフローチャートを示す。   With the above configuration, the feature amount calculated from the calibration image is compared with the set target value, and the image processing parameter is sequentially updated. Therefore, the image processing parameter that satisfies the target value condition can be calculated. In the above embodiment, processing by hardware is assumed, but it is not necessary to be limited to such a configuration. FIG. 9 shows a flowchart relating to the software of the second embodiment.

図9のフローチャートについて、図6における処理と対応させて説明する。記憶部100 に相当するS1 にて校正用画像を読み込み、特徴量算出部1002 に相当するS10 にて校正用画像の特徴量を算出する。次に、比較部150 に相当するS12 にて、目標値設定部101 に相当するS4 にて設定された目標値と、S10 にて算出された特徴量の比較を行う。算出された特徴量が目標値に満たなければ、パラメータ算出部1003 に相当するS11 にて画像処理のパラメータを算出し、S10 の特徴量算出の処理に戻る。算出された特徴量が目標値を満たせば、出力部104 に相当するS5 にてパラメータの出力を行う。   The flowchart in FIG. 9 will be described in correspondence with the processing in FIG. The calibration image is read in S1 corresponding to the storage unit 100, and the feature amount of the calibration image is calculated in S10 corresponding to the feature amount calculation unit 1002. Next, in S12 corresponding to the comparison unit 150, the target value set in S4 corresponding to the target value setting unit 101 is compared with the feature amount calculated in S10. If the calculated feature value does not satisfy the target value, the image processing parameter is calculated in S11 corresponding to the parameter calculation unit 1003, and the process returns to the feature value calculation process in S10. If the calculated feature value satisfies the target value, the parameter is output in S5 corresponding to the output unit 104.

図10〜図14は、第3 の実施形態例を示す図である。図10は第3 の実施例の構成図、図11は特徴量算出部の第3 の構成図、図12は画像処理部の構成図、図13はノイズ量の関数化に関する説明図、図14は第3の実施形態例のソフトウェアに関するフローチャートである。   10 to 14 are diagrams showing a third embodiment. FIG. 10 is a configuration diagram of the third embodiment, FIG. 11 is a third configuration diagram of the feature amount calculation unit, FIG. 12 is a configuration diagram of the image processing unit, FIG. 13 is an explanatory diagram regarding the functionalization of the noise amount, These are the flowcharts regarding the software of the third embodiment.

第3 の実施の形態例について、図10の構成図により説明する。第1 図とは特徴量算出部102 およびパラメータ算出部103 がそれぞれ特徴量算出部1102 および画像処理部151 に変更されている点が異なる。第1 の実施形態例および第2の実施形態例と同一の構成には同一の名称と番号を割り当てている。以下異なる個所のみ説明する。記憶部100は特徴量算出部1102 および画像処理部151 に接続している。画像処理部151 は特徴量算出部1102 および出力部104 に接続している。   A third embodiment will be described with reference to the block diagram of FIG. 1 differs from FIG. 1 in that the feature quantity calculation unit 102 and the parameter calculation unit 103 are changed to a feature quantity calculation unit 1102 and an image processing unit 151, respectively. The same names and numbers are assigned to the same configurations as those in the first embodiment and the second embodiment. Only different points will be described below. The storage unit 100 is connected to the feature amount calculation unit 1102 and the image processing unit 151. The image processing unit 151 is connected to the feature amount calculation unit 1102 and the output unit 104.

図10の図1および図6と異なる個所のみ説明する。画像処理部151 は、制御部105 の制御に基づき記憶部から転送された校正用画像に対し、比較部150 の情報を用いて所定の画像処理を行い、処理結果の画像を特徴量算出部1102へ転送する。比較部150 は、制御部105 の制御に基づき特徴量算出部1102 から転送された特徴量と、目標値設定部101 から転送された目標値を比較し、比較結果を画像処理部151 へ転送する。その後、比較部150 の情報を用いて、制御部105 は画像処理部151 の制御を行い、所定の画像処理が行われた画像を特徴量算出部1002 に再転送するか、あるいは画像処理のパラメータを出力部104 に転送するかを判断する。   Only portions different from FIG. 1 and FIG. 6 in FIG. 10 will be described. The image processing unit 151 performs predetermined image processing on the calibration image transferred from the storage unit based on the control of the control unit 105, using the information of the comparison unit 150, and the image of the processing result is the feature amount calculation unit 1102. Forward to. Based on the control of the control unit 105, the comparison unit 150 compares the feature amount transferred from the feature amount calculation unit 1102 with the target value transferred from the target value setting unit 101, and transfers the comparison result to the image processing unit 151. . Thereafter, using the information of the comparison unit 150, the control unit 105 controls the image processing unit 151 to retransfer the image on which the predetermined image processing has been performed to the feature amount calculation unit 1002, or to perform image processing parameters. Is transferred to the output unit 104.

出力部104は、画像処理のパラメータをメモリーカード等の記録媒体へ記録保存する。記録媒体の保持手段には、図10の記憶部100でなされる校正用画像を記憶する記憶処理と、目標値設定部101でなされる目標値を設定する目標値設定処理と、特徴量算出部1102でなされる前記校正用画像から特徴量を求める特徴量算出処理と、比較部105でなされる前記目標値と前記特徴量を比較する比較処理と、画像処理部151でなされる前記比較処理の情報を用いて画像処理のパラメータを算出するパラメータ算出処理と、画像処理部151でなされる前記パラメータを用いた画像処理と、制御部105でなされる前記画像処理された画像を前記特徴量算出処理へ転送するか前記パラメータ算出処理で算出された前記パラメータを前記出力処理へ転送するかを判断する判断処理とがなされた画像信号データが保持される。   The output unit 104 records and saves the image processing parameters in a recording medium such as a memory card. The storage means for the recording medium includes a storage process for storing a calibration image performed by the storage unit 100 in FIG. 10, a target value setting process for setting a target value performed by the target value setting unit 101, and a feature amount calculating unit. A feature amount calculation process for obtaining a feature amount from the calibration image performed at 1102, a comparison process for comparing the target value with the target amount performed by the comparison unit 105, and a comparison process performed by the image processing unit 151. A parameter calculation process for calculating image processing parameters using information; an image process using the parameters performed by the image processing unit 151; and a feature amount calculation process for the image processed image performed by the control unit 105 The image signal data subjected to the determination process for determining whether to transfer to the output process or the parameter calculated in the parameter calculation process is held.

図11は、特徴量算出部1102 の構成の一例を示すものである。特徴量算出部1102は、チャート抽出部800 、平均分散算出部801 およびノイズ算出部802 から構成される。記憶部100 および画像処理部151 は、チャート抽出部800 に接続されている。チャート抽出部800 は、平均分散算出部801 に接続されている。平均分散算出部801 は、ノイズ算出部802 に接続されている。ノイズ算出部802 は、比較部150 に接続されている。制御部105 は、チャート抽出部800 、平均分散算出部801 およびノイズ算出部802 と双方向で接続されている。記憶部100 には、何種類かの異なる分光反射率を有するチャートからなる校正用画像が記憶されている。この画像は、RGB 画像あるいはモノクロ画像でもよい。   FIG. 11 shows an example of the configuration of the feature quantity calculation unit 1102. The feature amount calculation unit 1102 includes a chart extraction unit 800, an average variance calculation unit 801, and a noise calculation unit 802. The storage unit 100 and the image processing unit 151 are connected to the chart extraction unit 800. The chart extraction unit 800 is connected to the average variance calculation unit 801. The average variance calculation unit 801 is connected to the noise calculation unit 802. The noise calculation unit 802 is connected to the comparison unit 150. The control unit 105 is bidirectionally connected to the chart extraction unit 800, the average variance calculation unit 801, and the noise calculation unit 802. The storage unit 100 stores calibration images made up of charts having several different spectral reflectances. This image may be an RGB image or a monochrome image.

チャート抽出部800 は、制御部105 の制御に基づき記憶部100 から転送された校正用画像に存在する各チャートを分離し、各チャートより一回り小さい所定サイズのブロック領域として順次平均分散算出部801 へ転送する。上記分離作業は、校正用画像が画像全体に写っており、かつチャートの配置状況が既知であるなら自動的に行うことができる。ここで、チャート抽出部800 から転送されるブロック領域の信号値は、RGB 信号でもよいし、前記(1)式に従い変換した輝度信号でもよい。   The chart extraction unit 800 separates each chart existing in the calibration image transferred from the storage unit 100 based on the control of the control unit 105, and sequentially calculates an average variance calculation unit 801 as a block region of a predetermined size that is slightly smaller than each chart. Forward to. The separation operation can be automatically performed if the calibration image is shown in the entire image and the arrangement state of the chart is known. Here, the signal value of the block area transferred from the chart extraction unit 800 may be an RGB signal or a luminance signal converted according to the above equation (1).

平均分散算出部801 は、制御部105 の制御に基づきチャート抽出部800 から転送されたブロック領域の信号の平均と分散を算出する。算出された分散から、ノイズ量として標準偏差を算出し、順次ノイズ算出部802 へ転送する。ノイズ算出部802 は、制御部105 の制御に基づき、転送された各チャートの標準偏差、すなわちノイズ量を平均し、校正用画像の全体のノイズ量として算出する。算出された校正用画像のノイズ量は、比較部150 へ転送される。   The average variance calculation unit 801 calculates the average and variance of the block area signals transferred from the chart extraction unit 800 based on the control of the control unit 105. A standard deviation is calculated as a noise amount from the calculated variance, and is sequentially transferred to the noise calculation unit 802. Based on the control of the control unit 105, the noise calculation unit 802 averages the standard deviation of each transferred chart, that is, the noise amount, and calculates the average noise amount of the calibration image. The calculated noise amount of the calibration image is transferred to the comparison unit 150.

図12は画像処理部151 の構成の一例を示すものである。画像処理部151は、局所領域抽出部900、バッファ901、平均輝度算出部902 、ノイズ低減部903 、ノイズ量算出部904 、パラメータ用ROM905 およびゲイン設定部906 から構成される。記憶部100は、局所領域抽出部900 に接続されている。局所領域抽出部900 は、バッファ901 に接続されている。バッファ901 は、平均輝度算出部902 に接続されている。   FIG. 12 shows an example of the configuration of the image processing unit 151. The image processing unit 151 includes a local area extraction unit 900, a buffer 901, an average luminance calculation unit 902, a noise reduction unit 903, a noise amount calculation unit 904, a parameter ROM 905, and a gain setting unit 906. The storage unit 100 is connected to the local region extraction unit 900. The local area extraction unit 900 is connected to the buffer 901. The buffer 901 is connected to the average luminance calculation unit 902.

平均輝度算出部902 は、ノイズ低減部903 およびノイズ量算出部904 に接続されている。またパラメータ用ROM905 もノイズ量算出部904に接続されている。ノイズ量算出部904 およびゲイン設定部906 は、ノイズ低減部903 に接続されており、ノイズ低減部903 は特徴量算出部1102 に接続されている。ゲイン設定部906は出力部104に接続されている。制御部105は、局所領域抽出部900、平均輝度算出部902 、ノイズ低減部903 、ノイズ量算出部904 およびゲイン設定部906 と双方向で接続されている。   The average luminance calculation unit 902 is connected to the noise reduction unit 903 and the noise amount calculation unit 904. The parameter ROM 905 is also connected to the noise amount calculation unit 904. The noise amount calculation unit 904 and the gain setting unit 906 are connected to the noise reduction unit 903, and the noise reduction unit 903 is connected to the feature amount calculation unit 1102. The gain setting unit 906 is connected to the output unit 104. The control unit 105 is bidirectionally connected to the local region extraction unit 900, the average luminance calculation unit 902, the noise reduction unit 903, the noise amount calculation unit 904, and the gain setting unit 906.

局所領域抽出部900 は、制御部105 の制御に基づき記憶部100 から転送される校正用画像の所定の注目画素を中心とする局所領域、例えば5 ×5 の領域を抽出し、バッファ901 へ転送する。平均輝度算出部902 は、バッファ901 から転送された局所領域に対して(1)式に基づいて輝度信号に変換し、局所領域の平均輝度信号を算出する。算出された平均輝度信号はノイズ量算出部904 およびノイズ低減部903 へ転送される。ノイズ低減部903 へはバッファ901 にある局所領域の信号も転送される。ノイズ量算出部904 は、制御部105 の制御に基づきパラメータ用ROM905 からノイズ量算出に用いる関数情報を求める。   The local region extraction unit 900 extracts a local region centered on a predetermined target pixel of the calibration image transferred from the storage unit 100 based on the control of the control unit 105, for example, a 5 × 5 region, and transfers the extracted region to the buffer 901. To do. The average luminance calculation unit 902 converts the local area transferred from the buffer 901 into a luminance signal based on the equation (1), and calculates the average luminance signal of the local area. The calculated average luminance signal is transferred to the noise amount calculation unit 904 and the noise reduction unit 903. The local region signal in the buffer 901 is also transferred to the noise reduction unit 903. The noise amount calculation unit 904 obtains function information used for noise amount calculation from the parameter ROM 905 based on the control of the control unit 105.

ノイズ量N の関数は、例えば、第13 図のような輝度値Y に対してべき乗の形態で増加するものが考えられる。これは(14)式のような形態となる。
N =αYβ+γ (14)
ここで、α、β、γは定数である.さらに,ノイズ量は校正用画像のISO 感度によっても増減する。
As the function of the noise amount N, for example, a function that increases in the form of a power to the luminance value Y as shown in FIG. 13 can be considered. This is in the form of equation (14).
N = αY β + γ (14)
Here, α, β, and γ are constants. In addition, the amount of noise increases and decreases depending on the ISO sensitivity of the calibration image.

(14)式を拡張すると(15)式
N =αiYβi + γi (15)
のようになる。ここで、i は増幅率を示すパラメータである。パラメータ用ROM905 にはαi、βi、γiの定数項が記録される。ノイズ量算出部904 は、増幅率に基づきパラメータ用ROM604 から上記αi、βi、γiの定数項を読み出す。
When formula (14) is expanded, formula (15)
N = αiY βi + γi (15 )
become that way. Here, i is a parameter indicating the amplification factor. The parameter ROM 905 records constant terms αi, βi, and γi. The noise amount calculation unit 904 reads the constant terms of αi, βi, and γi from the parameter ROM 604 based on the amplification factor.

ノイズ量算出部904 は、平均輝度算出部902 から転送された平均輝度から(15)式に基づきノイズ量を算出する。上記ノイズ量は局所領域抽出部900 で抽出された領域の中心画素のノイズ量と仮定される。算出されたノイズ量は、ノイズ低減部903 へ転送される。ノイズ低減部903 は平均輝度算出部902 から転送された局所領域の中心画素I 、ノイズ量算出部904 から転送されたノイズ量N 、およびゲイン設定部906 から転送されたゲイン値μを用いて、(16)式に基づき局所領域における中心画素がノイズであるかどうかを判定する。   The noise amount calculation unit 904 calculates the noise amount based on the equation (15) from the average luminance transferred from the average luminance calculation unit 902. The noise amount is assumed to be the noise amount of the central pixel of the region extracted by the local region extraction unit 900. The calculated noise amount is transferred to the noise reduction unit 903. The noise reduction unit 903 uses the central pixel I of the local area transferred from the average luminance calculation unit 902, the noise amount N transferred from the noise amount calculation unit 904, and the gain value μ transferred from the gain setting unit 906, It is determined whether the central pixel in the local area is noise based on the equation (16).

Figure 2006050390
Figure 2006050390

ここで、 ̄I は局所領域の平均画素を表す。ノイズであると判断された場合は、中心画素は局所領域の平均値で置き換えられ、それ以外の場合はエッジやテクスチャなどの構造であると判断され、中心画素に対する処理は行われない。ゲインμの値が大きくなるほどノイズであると判定される個所が増え、ノイズ低減処理の効果が大きくなる。比較部150 は、目標値設定部101 で設定された目標ノイズ量と特徴量算出部1102 で算出された校正用画像のノイズ量を比較し、目標ノイズ量に満たない場合はゲインμの値を順次大きくしていく。校正用画像のノイズ量が目標ノイズ量以下である場合、ゲイン設定部906 で設定されたゲインμが出力部104 へ転送される。   Here,  ̄I represents an average pixel in the local region. If it is determined to be noise, the center pixel is replaced with the average value of the local area, otherwise it is determined to have a structure such as an edge or texture, and the process for the center pixel is not performed. As the value of the gain μ increases, the number of portions determined to be noise increases, and the effect of noise reduction processing increases. The comparison unit 150 compares the target noise amount set by the target value setting unit 101 with the noise amount of the calibration image calculated by the feature amount calculation unit 1102, and if the target noise amount is not satisfied, the value of the gain μ is compared. Increase it gradually. When the noise amount of the calibration image is less than or equal to the target noise amount, the gain μ set by the gain setting unit 906 is transferred to the output unit 104.

図10の構成においても、図4で示したような、カメラ装置内に画像処理パラメータを算出する機能を設けることができる。この場合には、校正用画像を撮影するレンズ系、CCD 、撮影された画像をGain 増幅やA/D 変換およびAF 、AE 制御等の処理を行う前処理部、画像に対してエッジ強調および色変換処理等を行う信号処理部、および転送された画像に対して公知のJPEG 等の圧縮を行う圧縮部が設けられる。   Also in the configuration of FIG. 10, a function for calculating image processing parameters can be provided in the camera apparatus as shown in FIG. In this case, a lens system for capturing a calibration image, a CCD, a preprocessing unit that performs processing such as Gain amplification, A / D conversion, AF, and AE control on the captured image, edge enhancement and color for the image A signal processing unit that performs conversion processing and the like, and a compression unit that performs compression such as publicly known JPEG on the transferred image are provided.

上記構成により、校正用画像から算出される特徴量と設定した目標値を比較し、画像処理パラメータを順次更新していくため、目標値の条件を満たすような画像処理パラメータの算出が行える。なお、上記実施例では、ハードウェアによる処理を前提としていたが、このような構成に限定される必要はない。図14に第3 の実施形態例のソフトウェアに関するフローチャートを示す。   With the above configuration, the feature amount calculated from the calibration image is compared with the set target value, and the image processing parameter is sequentially updated. Therefore, the image processing parameter that satisfies the target value condition can be calculated. In the above embodiment, processing by hardware is assumed, but it is not necessary to be limited to such a configuration. FIG. 14 shows a flowchart regarding the software of the third embodiment.

図14のフローチャートについて、図10における処理と対応させて説明する。記憶部100 に相当するS1 にて校正用画像を読み込み、画像処理部151 に相当するS20 にて校正用画像に対して所定の画像処理を行う。次に、特徴量算出部1102 に相当するS21 にて、画像処理後の校正用画像の特徴量を算出し、比較部150 に相当に相当するS12 にて、目標値設定部101 に相当するS4 にて設定された目標値と、S21 にて算出された特徴量の比較を行い、算出された特徴量が目標値に満たなければ、S20 にて再び画像処理が行われる。算出された特徴量が目標値を満たせば、出力部104 に相当するS5 にてパラメータの出力を行う。   The flowchart in FIG. 14 will be described in correspondence with the processing in FIG. A calibration image is read in S1 corresponding to the storage unit 100, and predetermined image processing is performed on the calibration image in S20 corresponding to the image processing unit 151. Next, in S21 corresponding to the feature amount calculation unit 1102, the feature amount of the calibration image after image processing is calculated, and in S12 corresponding to the comparison unit 150, S4 corresponding to the target value setting unit 101 The target value set in step S2 is compared with the feature amount calculated in step S21. If the calculated feature amount does not satisfy the target value, image processing is performed again in step S20. If the calculated feature value satisfies the target value, the parameter is output in S5 corresponding to the output unit 104.

以上説明したように、本発明によれば、ノイズ量、周波数特性、色情報および色差を算出し、画像処理パラメータを決定することが可能な、画像処理装置と撮像装置、記録媒体および画像処理プログラムを提供することができる。   As described above, according to the present invention, an image processing device, an imaging device, a recording medium, and an image processing program capable of calculating noise amounts, frequency characteristics, color information, and color differences and determining image processing parameters. Can be provided.

第1 の実施形態例の構成図である。1 is a configuration diagram of a first embodiment example. FIG. 特徴量算出部の構成図である。It is a block diagram of the feature-value calculation part. パラメータ算出部の構成図である。It is a block diagram of a parameter calculation part. 第1 の実施形態例の別の構成図である。FIG. 5 is another configuration diagram of the first embodiment. 第1 の実施形態例のソフトウェアに関するフローチャートである。3 is a flowchart relating to software of the first embodiment. 第2 の実施形態例の構成図である。FIG. 6 is a configuration diagram of a second exemplary embodiment. 特徴量算出部の第2 の構成図である。FIG. 6 is a second block diagram of the feature quantity calculation unit. パラメータ算出部の第2 の構成図である。FIG. 6 is a second block diagram of the parameter calculation unit. 第2 の実施形態例のソフトウェアに関するフローチャートである。10 is a flowchart relating to software of a second exemplary embodiment. 第3 の実施形態例の構成図である。FIG. 10 is a configuration diagram of a third exemplary embodiment. 特徴量算出部の第3 の構成図である。FIG. 10 is a third block diagram of the feature quantity calculation unit. 画像処理部の構成図である。It is a block diagram of an image processing part. ノイズ量の関数化に関する説明図である。It is explanatory drawing regarding functionalization of the amount of noise. 第3 の実施形態例のソフトウェアに関するフローチャートである。12 is a flowchart relating to software of the third embodiment.

符号の説明Explanation of symbols

100・・・記憶部、101・・・目標値設定部、102・・・特徴量算出部、103・・・パラメータ算出部、104・・・出力部、105・・・制御部、106・・・外部I/F 部、110・・・校正用画像、111・・・レンズ系、112・・・CCD、113・・・前処理部、114・・・信号処理部、115・・・圧縮部、150・・・比較部、151・・・画像処理部   DESCRIPTION OF SYMBOLS 100 ... Memory | storage part, 101 ... Target value setting part, 102 ... Feature-value calculation part, 103 ... Parameter calculation part, 104 ... Output part, 105 ... Control part, 106 ... External I / F unit, 110 ... calibration image, 111 ... lens system, 112 ... CCD, 113 ... pre-processing unit, 114 ... signal processing unit, 115 ... compression unit , 150 ... comparison unit, 151 ... image processing unit

Claims (21)

デジタル化された画像を処理する画像処理装置において、校正用画像を前記画像処理装置に記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値および前記特徴量の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを出力する出力手段と、を有することを特徴とする画像処理装置。 In an image processing apparatus for processing a digitized image, a storage means for storing a calibration image in the image processing apparatus, a target value setting means for setting a target value, and a feature quantity for obtaining a feature quantity from the calibration image An image processing apparatus comprising: a calculation unit; a parameter calculation unit that calculates an image processing parameter using the target value and the feature amount information; and an output unit that outputs the parameter. 前記特徴量算出手段は、前記校正用画像の輝度値を算出する輝度値算出手段と、前記輝度値に対して周波数変換を行い周波数成分を算出する周波数算出手段と、を有することを特徴とする請求項1 に記載の画像処理装置。 The feature amount calculating unit includes: a luminance value calculating unit that calculates a luminance value of the calibration image; and a frequency calculating unit that performs frequency conversion on the luminance value to calculate a frequency component. The image processing apparatus according to claim 1. 前記特徴量算出手段は、前記校正用画像に含まれる複数のチャート部分を抽出するチャート抽出手段と、前記各チャートから色情報を算出する色情報算出手段と、を有することを特徴とする請求項1 に記載の画像処理装置。 The feature amount calculating means includes a chart extracting means for extracting a plurality of chart portions included in the calibration image, and a color information calculating means for calculating color information from each chart. The image processing apparatus according to 1. 前記パラメータ算出手段は、前記目標値設定手段および前記特徴量算出手段の情報を用いて演算を行う演算手段と、前記演算手段から得られた情報を用いてエッジ強調処理に用いるフィルタを算出するフィルタ算出手段と、を有することを特徴とする請求項1 に記載の画像処理装置。 The parameter calculation means includes a calculation means for calculating using information of the target value setting means and the feature amount calculation means, and a filter for calculating a filter used for edge enhancement processing using information obtained from the calculation means 2. The image processing apparatus according to claim 1, further comprising a calculation unit. 前記パラメータ算出手段は、色変換に用いる変換マトリクスを算出する変換マトリクス算出手段を有することを特徴とする請求項1 に記載の画像処理装置。 2. The image processing apparatus according to claim 1, wherein the parameter calculation means includes conversion matrix calculation means for calculating a conversion matrix used for color conversion. デジタル化された画像を処理する画像処理装置において、校正用画像を前記画像処理装置に記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値と前記特徴量を比較する比較手段と、前記比較手段の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを出力する出力手段と、前記パラメータを前記特徴量算出手段へ転送するか前記出力手段へ転送するかを判断する判断手段と、を有することを特徴とする画像処理装置。 In an image processing apparatus for processing a digitized image, a storage means for storing a calibration image in the image processing apparatus, a target value setting means for setting a target value, and a feature quantity for obtaining a feature quantity from the calibration image A calculation unit; a comparison unit that compares the target value with the feature quantity; a parameter calculation unit that calculates an image processing parameter using information of the comparison unit; an output unit that outputs the parameter; and the parameter An image processing apparatus comprising: a determination unit that determines whether to transfer to the feature amount calculation unit or to the output unit. 前記特徴量算出手段は、前記校正用画像に含まれる複数のチャート部分を抽出するチャート抽出手段と、前記各チャートから色情報を抽出する色情報抽出手段と、各チャートの色情報の真値を設定する色情報真値設定手段と、前記色情報と前記真値との差を算出する色差算出手段と、を有することを特徴とする請求項6 に記載の画像処理装置。 The feature amount calculating means includes a chart extracting means for extracting a plurality of chart portions included in the calibration image, a color information extracting means for extracting color information from each chart, and a true value of the color information of each chart. The image processing apparatus according to claim 6, comprising color information true value setting means for setting, and color difference calculation means for calculating a difference between the color information and the true value. 前記パラメータ算出手段は、色変換に用いる変換マトリクスを算出する変換マトリクス算出手段と、変換マトリクスの次数を設定するマトリクス次数設定手段とを有することを特徴とする請求項6 に記載の画像処理装置。 The image processing apparatus according to claim 6, wherein the parameter calculation unit includes a conversion matrix calculation unit that calculates a conversion matrix used for color conversion, and a matrix order setting unit that sets the order of the conversion matrix. デジタル化された画像を処理する画像処理装置において、校正用画像を前記画像処理装置に記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値と前記特徴量を比較する比較手段と、前記比較手段の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを用いて画像処理を行う画像処理手段と、前記パラメータを出力する出力手段と、前記画像処理手段で処理された画像を前記特徴量算出手段へ転送するか前記パラメータ算出手段で算出された前記パラメータを前記出力手段へ転送するかを判断する判断手段と、を有することを特徴とする画像処理装置。 In an image processing apparatus for processing a digitized image, a storage means for storing a calibration image in the image processing apparatus, a target value setting means for setting a target value, and a feature quantity for obtaining a feature quantity from the calibration image A calculation unit; a comparison unit that compares the target value with the feature quantity; a parameter calculation unit that calculates an image processing parameter using information of the comparison unit; and an image processing unit that performs image processing using the parameter And determining whether to transfer the image processed by the image processing unit to the feature amount calculating unit or to transfer the parameter calculated by the parameter calculating unit to the output unit. And an image processing apparatus. 前記特徴量算出手段は、前記校正用画像に含まれる複数のチャート部分を抽出するチャート抽出手段と、前記各チャートからノイズ量を算出するノイズ量算出手段と、を有することを特徴とする請求項9 に記載の画像処理装置。 The feature amount calculating unit includes a chart extracting unit that extracts a plurality of chart portions included in the calibration image, and a noise amount calculating unit that calculates a noise amount from each chart. The image processing device according to claim 9. 前記画像処理手段は、画像の注目画素を中心とする局所領域を抽出する局所領域抽出手段と、前記注目画素に対するノイズ量を算出するノイズ量算出手段と、前記ノイズ量に対するゲインを設定するゲイン設定手段と、前記ノイズ量および前記ゲインの情報を用いて前記局所領域に対してノイズ低減処理を行うノイズ低減手段と、を有することを特徴とする請求項9 に記載の画像処理装置。 The image processing means includes a local area extracting means for extracting a local area centered on a target pixel of an image, a noise amount calculating means for calculating a noise amount for the target pixel, and a gain setting for setting a gain for the noise amount. The image processing apparatus according to claim 9, further comprising: means; and noise reduction means for performing noise reduction processing on the local region using the noise amount and the gain information. 前記記憶手段は、前記画像処理装置に着脱可能な外部記憶手段を有することを特徴とする、請求項1ないし請求項11のいずれかに記載の画像処理装置。 The image processing apparatus according to claim 1, wherein the storage unit includes an external storage unit that can be attached to and detached from the image processing apparatus. 画像を撮影する撮影手段と、前記撮影された画像信号をデジタル信号に変換する前処理手段と、前記デジタル信号に対する信号処理手段と、前記信号処理手段の出力信号が転送される出力手段とからなる撮影モード設定部、および、
前記撮影手段で撮影された校正用画像を記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値および前記特徴量の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを出力する前記出力手段とからなる画像処理パラメータモード設定部とを有し、前記パラメータ算出手段は、撮影用に変換した画像処理のパラメータを前記信号処理手段に転送することを特徴とする撮像装置。
An imaging means for taking an image, a preprocessing means for converting the taken image signal into a digital signal, a signal processing means for the digital signal, and an output means for transferring an output signal of the signal processing means Shooting mode setting section, and
Storage means for storing a calibration image photographed by the photographing means, target value setting means for setting a target value, feature quantity calculation means for obtaining a feature quantity from the calibration image, the target value and the feature quantity An image processing parameter mode setting unit including a parameter calculation unit that calculates image processing parameters using the information and an output unit that outputs the parameters, and the parameter calculation unit converts the parameters for shooting An image pickup apparatus for transferring image processing parameters to the signal processing means.
画像を撮影する撮影手段と、前記撮影された画像信号をデジタル信号に変換する前処理手段と、前記デジタル信号に対する信号処理手段と、前記信号処理手段の出力信号が転送される出力手段とからなる撮影モード設定部、および、
前記撮影手段で撮影された校正用画像を記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値と前記特徴量を比較する比較手段と、前記比較手段の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを出力する出力手段と、前記パラメータを前記特徴量算出手段へ転送するか前記出力手段へ転送するかを判断する判断手段とからなる画像処理パラメータモード設定部とを有し、前記パラメータ算出手段は、撮影用に変換した画像処理のパラメータを前記信号処理手段に転送することを特徴とする撮像装置。
An imaging means for taking an image, a preprocessing means for converting the taken image signal into a digital signal, a signal processing means for the digital signal, and an output means for transferring an output signal of the signal processing means Shooting mode setting section, and
Storage means for storing a calibration image photographed by the photographing means; target value setting means for setting a target value; feature quantity calculating means for obtaining a feature quantity from the calibration image; the target value and the feature quantity Comparing means, parameter calculating means for calculating parameters of image processing using information of the comparing means, output means for outputting the parameters, and transferring the parameters to the feature amount calculating means or the output And an image processing parameter mode setting unit configured to determine whether to transfer to the means, wherein the parameter calculation means transfers the image processing parameters converted for photographing to the signal processing means. An imaging device.
画像を撮影する撮影手段と、前記撮影された画像信号をデジタル信号に変換する前処理手段と、前記デジタル信号に対する信号処理手段と、前記信号処理手段の出力信号が転送される出力手段とからなる撮影モード設定部、および、
前記撮影手段で撮影された校正用画像を記憶する記憶手段と、目標値を設定する目標値設定手段と、前記校正用画像から特徴量を求める特徴量算出手段と、前記目標値と前記特徴量を比較する比較手段と、前記比較手段の情報を用いて画像処理のパラメータを算出するパラメータ算出手段と、前記パラメータを用いて画像処理を行う画像処理手段と、前記パラメータを出力する出力手段と、前記画像処理手段で処理された画像を前記特徴量算出手段へ転送するか前記パラメータ算出手段で算出された前記パラメータを前記出力手段へ転送するかを判断する判断手段とからなる画像処理パラメータモード設定部とを有し、前記パラメータ算出手段は、撮影用に変換した画像処理のパラメータを前記信号処理手段に転送することを特徴とする撮像装置。
An imaging means for taking an image, a preprocessing means for converting the taken image signal into a digital signal, a signal processing means for the digital signal, and an output means for transferring an output signal of the signal processing means Shooting mode setting section, and
Storage means for storing a calibration image photographed by the photographing means; target value setting means for setting a target value; feature quantity calculating means for obtaining a feature quantity from the calibration image; the target value and the feature quantity Comparing means, parameter calculating means for calculating image processing parameters using information of the comparing means, image processing means for performing image processing using the parameters, output means for outputting the parameters, Image processing parameter mode setting comprising: determination means for determining whether to transfer the image processed by the image processing means to the feature amount calculation means or to transfer the parameter calculated by the parameter calculation means to the output means And the parameter calculation means transfers the image processing parameters converted for photographing to the signal processing means. Location.
予め設定された画質の目標値と校正用画像により最適な画像処理パラメータの画像信号データが記録される記録媒体において、
校正用画像を記憶する記憶処理と、目標値を設定する目標値設定処理と、前記校正用画像から特徴量を求める特徴量算出処理と、前記目標値および前記特徴量の情報を用いて画像処理のパラメータを算出するパラメータ算出処理とがなされた画像信号データを保持する手段が設けられていることを特徴とする記録媒体。
In a recording medium on which image signal data of an optimal image processing parameter is recorded by a preset image quality target value and a calibration image,
Storage processing for storing a calibration image, target value setting processing for setting a target value, feature amount calculation processing for obtaining a feature amount from the calibration image, and image processing using information on the target value and the feature amount A recording medium comprising: means for holding image signal data that has been subjected to parameter calculation processing for calculating the parameters of
予め設定された画質の目標値と校正用画像により最適な画像処理パラメータの画像信号データが記録される記録媒体において、
校正用画像を前記画像処理装置に記憶する記憶処理と、目標値を設定する目標値設定処理と、前記校正用画像から特徴量を求める特徴量算出処理と、前記目標値と前記特徴量を比較する比較処理と、前記比較処理の情報を用いて画像処理のパラメータを算出するパラメータ算出処理と、前記パラメータを出力する出力処理と、前記パラメータを前記特徴量算出処理へ転送するか前記出力処理へ転送するかを判断する判断処理とがなされた画像信号データを保持する手段が設けられていることを特徴とする記録媒体。
In a recording medium on which image signal data of an optimal image processing parameter is recorded by a preset image quality target value and a calibration image,
A storage process for storing a calibration image in the image processing apparatus, a target value setting process for setting a target value, a feature quantity calculation process for obtaining a feature quantity from the calibration image, and a comparison between the target value and the feature quantity Comparison processing, parameter calculation processing for calculating image processing parameters using the information of the comparison processing, output processing for outputting the parameters, and transfer of the parameters to the feature amount calculation processing or to the output processing A recording medium comprising: means for holding image signal data subjected to a determination process for determining whether to transfer.
予め設定された画質の目標値と校正用画像により最適な画像処理パラメータの画像信号データが記録される記録媒体において、
校正用画像を記憶する記憶処理と、目標値を設定する目標値設定処理と、前記校正用画像から特徴量を求める特徴量算出処理と、前記目標値と前記特徴量を比較する比較処理と、前記比較処理の情報を用いて画像処理のパラメータを算出するパラメータ算出処理と、前記パラメータを用いた画像処理と、前記画像処理された画像を前記特徴量算出処理へ転送するか前記パラメータ算出処理で算出された前記パラメータを前記出力処理へ転送するかを判断する判断処理とがなされた画像信号データを保持する手段が設けられていることを特徴とする記録媒体。
In a recording medium on which image signal data of an optimal image processing parameter is recorded by a preset image quality target value and a calibration image,
A storage process for storing a calibration image, a target value setting process for setting a target value, a feature quantity calculation process for obtaining a feature quantity from the calibration image, a comparison process for comparing the target value and the feature quantity, A parameter calculation process that calculates image processing parameters using the information of the comparison process; an image process that uses the parameters; and the image processed image is transferred to the feature amount calculation process or the parameter calculation process A recording medium, comprising: means for holding image signal data subjected to a determination process for determining whether to transfer the calculated parameter to the output process.
コンピュータに、校正用画像を読み込む手順と、前記校正用画像の特徴量を算出する手順と、設定された目標値と前記算出された特徴量を用いて画像処理のパラメータを算出する手順と、前記パラメータの算出結果を出力する手順とを実行させるための画像処理プログラム。 A procedure for reading a calibration image into a computer; a procedure for calculating a feature quantity of the calibration image; a procedure for calculating a parameter for image processing using the set target value and the calculated feature quantity; An image processing program for executing a procedure for outputting a parameter calculation result. コンピュータに、校正用画像を読み込む手順と、前記校正用画像の特徴量を算出する手順と、設定された目標値と前記算出された特徴量の比較を行う手順と、前記算出された特徴量が目標値に満たなければ画像処理のパラメータを算出する手順と、前記パラメータを前記特徴量算出の処理に帰還させる手順と、前記算出された特徴量が目標値を満たせば前記パラメータを出力する手順とを実行させるための画像処理プログラム。 A procedure for reading a calibration image into a computer, a procedure for calculating a feature quantity of the calibration image, a procedure for comparing a set target value with the calculated feature quantity, and the calculated feature quantity A procedure for calculating an image processing parameter if it does not satisfy the target value, a procedure for feeding back the parameter to the feature amount calculation processing, and a procedure for outputting the parameter if the calculated feature amount satisfies the target value; An image processing program for executing コンピュータに、校正用画像を読み込む手順と、前記校正用画像に対して所定の画像処理を行う手順と、前記画像処理後の校正用画像の特徴量を算出する手順と、設定された目標値と前記算出された校正用画像の特徴量の比較を行う手順と、前記算出された特徴量が目標値に満たなければ前記画像処理に帰還させる手順と、前記算出された特徴量が目標値を満たせば前記パラメータを出力する手順とを実行させるための画像処理プログラム。 A procedure for reading a calibration image into a computer, a procedure for performing predetermined image processing on the calibration image, a procedure for calculating a feature amount of the calibration image after the image processing, a set target value, A procedure for comparing the calculated feature values of the calibration image, a procedure for returning to the image processing if the calculated feature value does not satisfy the target value, and the calculated feature value not satisfying the target value. An image processing program for executing the procedure for outputting the parameter.
JP2004230541A 2004-08-06 2004-08-06 Image processing device, imaging device, recording medium and image processing program Pending JP2006050390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004230541A JP2006050390A (en) 2004-08-06 2004-08-06 Image processing device, imaging device, recording medium and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004230541A JP2006050390A (en) 2004-08-06 2004-08-06 Image processing device, imaging device, recording medium and image processing program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2008263835A Division JP2009022046A (en) 2008-10-10 2008-10-10 Image processing device, imaging apparatus, recording medium and image processing program

Publications (1)

Publication Number Publication Date
JP2006050390A true JP2006050390A (en) 2006-02-16

Family

ID=36028400

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004230541A Pending JP2006050390A (en) 2004-08-06 2004-08-06 Image processing device, imaging device, recording medium and image processing program

Country Status (1)

Country Link
JP (1) JP2006050390A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011119268A2 (en) * 2010-03-26 2011-09-29 Sony Corporation Optimal raw rgb determination for color calibration

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011119268A2 (en) * 2010-03-26 2011-09-29 Sony Corporation Optimal raw rgb determination for color calibration
WO2011119268A3 (en) * 2010-03-26 2011-11-17 Sony Corporation Optimal raw rgb determination for color calibration
US8284260B2 (en) 2010-03-26 2012-10-09 Sony Corporation Optimal raw RGB determination for color calibration

Similar Documents

Publication Publication Date Title
JP3893099B2 (en) Imaging system and imaging program
US7620259B2 (en) History adding device for generating history-added image file, electronic camera, and image processing program for processing history-added image file
US8115833B2 (en) Image-acquisition apparatus
WO2007077730A1 (en) Imaging system and image processing program
JP5163392B2 (en) Image processing apparatus and program
JP2005354372A (en) Apparatus and method for image recording device, method and system for image processing
WO2005099356A2 (en) Imaging device
US20090041364A1 (en) Image Processor, Imaging Apparatus and Image Processing Program
JP2007329619A (en) Video signal processor, video signal processing method and video signal processing program
US20020085750A1 (en) Image processing device
JP5552795B2 (en) Imaging apparatus, image processing apparatus, and program
US8351695B2 (en) Image processing apparatus, image processing program, and image processing method
JP4665731B2 (en) Camera and image management program
JP4006590B2 (en) Image processing apparatus, scene determination apparatus, image processing method, scene determination method, and program
JP2009022046A (en) Image processing device, imaging apparatus, recording medium and image processing program
JP2006050390A (en) Image processing device, imaging device, recording medium and image processing program
JP4767525B2 (en) Imaging system and imaging processing program
JP4529210B2 (en) Colorimetric conversion coefficient calculation method and colorimetric image conversion method, colorimetric conversion coefficient calculation apparatus and colorimetric image conversion apparatus, and computer-readable information recording a colorimetric conversion coefficient calculation program or colorimetric imaging program recoding media
JP4074323B2 (en) Playback system and playback program
JP4879508B2 (en) Conversion parameter calculation method, conversion parameter calculation program, and image processing apparatus
JP2006203430A (en) Image processing apparatus and its method
JP2001298750A (en) Image input device, image input method and recording medium using them
JP2004159087A (en) Scanner system and image processing program
JP2009004893A (en) Image processor and imaging system equipped with same
JP2005150907A (en) Method and device for enhancing saturation, electronic camera, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060823

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080813

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081010

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090415