[go: up one dir, main page]

JP4752434B2 - Color correction processing program and electronic camera - Google Patents

Color correction processing program and electronic camera Download PDF

Info

Publication number
JP4752434B2
JP4752434B2 JP2005290989A JP2005290989A JP4752434B2 JP 4752434 B2 JP4752434 B2 JP 4752434B2 JP 2005290989 A JP2005290989 A JP 2005290989A JP 2005290989 A JP2005290989 A JP 2005290989A JP 4752434 B2 JP4752434 B2 JP 4752434B2
Authority
JP
Japan
Prior art keywords
color
data
correction
color data
luminance level
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.)
Expired - Fee Related
Application number
JP2005290989A
Other languages
Japanese (ja)
Other versions
JP2007104267A (en
Inventor
秋彦 高橋
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.)
Nikon Corp
Original Assignee
Nikon 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 Nikon Corp filed Critical Nikon Corp
Priority to JP2005290989A priority Critical patent/JP4752434B2/en
Publication of JP2007104267A publication Critical patent/JP2007104267A/en
Application granted granted Critical
Publication of JP4752434B2 publication Critical patent/JP4752434B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)

Description

本発明は、色補正処理プログラムおよび電子カメラに関する。
The present invention relates to a color correction processing program and an electronic camera .

色かぶり画像の色を補正する技術が知られている(たとえば、特許文献1参照)。特許文献1によれば、電子画像を構成する色成分ごとにヒストグラムが算出され、物体の平均色が本来灰色であるとの仮定に基づいてヒストグラム変換が行われる。   A technique for correcting the color of a color cast image is known (see, for example, Patent Document 1). According to Patent Document 1, a histogram is calculated for each color component constituting an electronic image, and histogram conversion is performed based on the assumption that the average color of an object is originally gray.

特開2000−348170号公報JP 2000-348170 A

特許文献1のヒストグラム変換では、たとえば水中撮影画像における赤色成分のように、退色によって輝度レベルが低下した色の信号が乗算によって大きくされるため、信号に含まれるノイズ成分が増大し、画質劣化の要因になる。   In the histogram conversion of Patent Document 1, for example, a color signal whose luminance level is reduced due to fading, such as a red component in an underwater photographed image, is enlarged by multiplication, so that a noise component included in the signal increases and image quality deterioration is caused. It becomes a factor.

請求項1に記載の色補正処理プログラムは、第1色の第1色データと、前記第1色とは異なる第2色の第2色データとを有するカラー画像データを入力する入力処理と、前記カラー画像データに基づくカラー画像の所定領域ごとに、前記第1色データの輝度分布に応じた補正係数を前記第1色データの輝度レベルに乗じた補正値を前記第2色データの輝度レベルに加算する加算処理と、前記第1色データと、前記加算処理が行なわれた前記第2色データとを有するカラー画像データを出力する出力処理とをコンピュータに実行させることを特徴とする。The color correction processing program according to claim 1, an input process for inputting color image data having first color data of a first color and second color data of a second color different from the first color; For each predetermined area of the color image based on the color image data, a correction value obtained by multiplying the luminance level of the first color data by a correction coefficient corresponding to the luminance distribution of the first color data is the luminance level of the second color data. And an output process for outputting color image data including the first color data and the second color data subjected to the addition process.
請求項2に記載の色補正処理プログラムは、第1色の第1色データと、前記第1色とは異なる第2色の第2色データとを有するカラー画像データを入力する入力処理と、前記カラー画像データに基づくカラー画像の所定領域ごとに色相を判定する判定処理と、前記判定処理により判定された色相に応じて、前記第1色データの輝度レベルに乗じる補正係数を調整する調整処理と、前記カラー画像の前記所定領域ごとに、前記調整処理により調整された前記補正係数を前記第1色データの輝度レベルに乗じた補正値を前記第2色データの輝度レベルに加算する加算処理と、前記第1色データと、前記加算処理が行なわれた前記第2色データとを有するカラー画像データを出力する出力処理とをコンピュータに実行させることを特徴とする。The color correction processing program according to claim 2, an input process for inputting color image data having first color data of a first color and second color data of a second color different from the first color; A determination process for determining a hue for each predetermined region of a color image based on the color image data, and an adjustment process for adjusting a correction coefficient to be multiplied by the luminance level of the first color data according to the hue determined by the determination process And an addition process for adding a correction value obtained by multiplying the luminance level of the first color data by the correction coefficient adjusted by the adjustment process to the luminance level of the second color data for each predetermined area of the color image. And an output process for outputting color image data having the first color data and the second color data subjected to the addition process.
請求項6に記載の電子カメラは、被写体を撮像して、第1色の第1色データと、前記第1色とは異なる第2色の第2色データとを有するカラー画像データを出力する撮像手段と、前記カラー画像データに基づくカラー画像の所定領域ごとに、前記第1色データの輝度分布に応じた補正係数を前記第1色データの輝度レベルに乗じた補正値を前記第2色データの輝度レベルに加算する加算手段と、前記第1色データと、前記加算手段により加算が行なわれた前記第2色データとを有するカラー画像データを記録媒体に記録させる記録手段とを備えることを特徴とする。The electronic camera according to claim 6 images a subject and outputs color image data having first color data of a first color and second color data of a second color different from the first color. For each predetermined region of the color image based on the imaging means and the color image data, a correction value obtained by multiplying the luminance level of the first color data by a correction coefficient corresponding to the luminance distribution of the first color data is the second color. Adding means for adding to the luminance level of data; and recording means for recording color image data having the first color data and the second color data added by the adding means on a recording medium. It is characterized by.
請求項7に記載の電子カメラは、被写体を撮像して、第1色の第1色データと、前記第1色とは異なる第2色の第2色データとを有するカラー画像データを出力する撮像手段と、前記カラー画像データに基づくカラー画像の所定領域ごとに色相を判定する判定手段と、前記判定手段により判定された色相に応じて、前記第1色データの輝度レベルに乗じる補正係数を調整する調整手段と、前記カラー画像の前記所定領域ごとに、前記調整手段により調整された前記補正係数を前記第1色データの輝度レベルに乗じた補正値を前記第2色データの輝度レベルに加算する加算手段と、前記第1色データと、前記加算手段による加算が行なわれた前記第2色データとを有するカラー画像データを記録媒体に記録させる記録手段とを備えることを特徴とする。The electronic camera according to claim 7 images a subject and outputs color image data having first color data of a first color and second color data of a second color different from the first color. An imaging unit, a determination unit that determines a hue for each predetermined region of the color image based on the color image data, and a correction coefficient that multiplies the luminance level of the first color data according to the hue determined by the determination unit. An adjustment unit for adjusting, and for each predetermined area of the color image, a correction value obtained by multiplying the luminance level of the first color data by the correction coefficient adjusted by the adjustment unit is set to the luminance level of the second color data. Adding means for adding, and recording means for recording color image data having the first color data and the second color data added by the adding means on a recording medium. To.
請求項8に記載の色補正処理プログラムは、第1色の第1色データと、前記第1色とは異なる第2色の第2色データと、前記第1色および前記第2色とは異なる第3色の第3色データとを有するカラー画像データを入力する入力処理と、前記カラー画像データに基づくカラー画像の所定領域ごとに、前記第1色データの輝度レベルに第1補正係数を乗じた第1補正値と、前記第2色データの輝度レベルに第2補正係数を乗じた第2補正値とを、前記第3色データの輝度レベルに加算する加算処理と、前記第1色データと、前記第2色データと、前記加算処理が行なわれた前記第3色データとを有するカラー画像を出力する出力処理とをコンピュータに実行させることを特徴とする。The color correction processing program according to claim 8, wherein the first color data of the first color, the second color data of the second color different from the first color, the first color and the second color are Input processing for inputting color image data having third color data of different third colors, and a first correction coefficient for the luminance level of the first color data for each predetermined region of the color image based on the color image data. An addition process of adding the first correction value multiplied by the second correction value obtained by multiplying the luminance level of the second color data by a second correction coefficient to the luminance level of the third color data; and the first color A computer is caused to execute an output process for outputting a color image having data, the second color data, and the third color data subjected to the addition process.
請求項14に記載の電子カメラは、被写体を撮像して、第1色の第1色データと、前記第1色とは異なる第2色の第2色データと、前記第1色および前記第2色とは異なる第3色の第3色データとを有するカラー画像データを出力する撮像手段と、前記カラー画像データに基づくカラー画像の所定領域ごとに、前記第1色データの輝度レベルに第1補正係数を乗じた第1補正値と、前記第2色データの輝度レベルに第2補正係数を乗じた第2補正値とを、前記第3色データの輝度レベルに加算する加算手段と、前記第1色データと、前記第2色データと、前記加算手段による加算が行なわれた前記第3色データとを有するカラー画像データを記録媒体に記録させる記録手段とを備えることを特徴とする。The electronic camera according to claim 14, picks up an image of a subject, first color data of a first color, second color data of a second color different from the first color, the first color and the first color. Imaging means for outputting color image data having third color data of a third color different from the two colors; and a luminance level of the first color data for each predetermined region of the color image based on the color image data. Adding means for adding a first correction value multiplied by one correction coefficient and a second correction value obtained by multiplying the luminance level of the second color data by a second correction coefficient to the luminance level of the third color data; And recording means for recording color image data having the first color data, the second color data, and the third color data subjected to addition by the addition means on a recording medium. .

本発明によれば、画像の画質劣化を抑えた色補正処理プログラムおよび電子カメラを提供できる。
The present invention can provide a color correction processing program Contact and electronic camera with less image quality deterioration.

以下、図面を参照して本発明を実施するための最良の形態について説明する。図1は、本発明の一実施の形態による電子カメラの要部構成を説明するブロック図である。図1において、電子カメラは、CPU-A1と、画像処理装置A2と、レリーズボタンA3および撮影シーン設定スイッチA6を含む操作部材と、撮像素子A4と、表示装置A5と、発光装置A7と、バッファメモリA8とを有し、記録媒体A9が着脱可能に構成されている。   The best mode for carrying out the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram for explaining a main configuration of an electronic camera according to an embodiment of the present invention. In FIG. 1, the electronic camera includes a CPU-A1, an image processing device A2, an operation member including a release button A3 and a shooting scene setting switch A6, an image sensor A4, a display device A5, a light emitting device A7, and a buffer. And a recording medium A9 is detachable.

撮像素子A4は、たとえば、CCDイメージセンサなどによって構成される。撮像素子A4は、撮影レンズLによって撮像面上に結像された被写体像を撮像し、各画素に対応する撮像信号(蓄積電荷信号)を出力する。撮像素子A4から出力される撮像信号は、各画素に入射される光の強さに応じてその信号レベルが異なる。撮像素子A4の撮像面には、R(赤)、G(緑)およびB(青)のフィルタがベイヤー配列されたカラーフィルタ41が、画素位置に対応するように設けられている。撮像素子A4がカラーフィルタ41を通して被写体像を撮像するため、撮像素子A4から出力される信号は1画素当たりRGBのいずれか1つの色成分の情報を有する。すなわち、R色フィルタに対応する画素からはR色の信号が出力され、G色フィルタに対応する画素からはG色の信号が出力され、B色フィルタに対応する画素からはB色の信号が出力される。   The image sensor A4 is configured by, for example, a CCD image sensor. The image sensor A4 captures a subject image formed on the imaging surface by the photographing lens L, and outputs an image signal (accumulated charge signal) corresponding to each pixel. The image signal output from the image sensor A4 differs in signal level according to the intensity of light incident on each pixel. A color filter 41 in which filters of R (red), G (green), and B (blue) are arranged in a Bayer array is provided on the imaging surface of the image sensor A4 so as to correspond to the pixel positions. Since the image pickup device A4 picks up a subject image through the color filter 41, the signal output from the image pickup device A4 has information on any one color component of RGB per pixel. That is, an R color signal is output from the pixel corresponding to the R color filter, a G color signal is output from the pixel corresponding to the G color filter, and a B color signal is output from the pixel corresponding to the B color filter. Is output.

撮像素子A4から出力されたカラー画像を構成する信号は、不図示のA/D変換器4によってディジタル信号に変換された後で画像処理装置A2に入力される。画像処理装置A2は、入力された画像信号に対してホワイトバランス調整などの信号処理を行い、さらに所定の方式(たとえば、JPEG)で圧縮処理を施し、圧縮処理後の画像データを記録媒体A9に記録する。画像処理装置A2は、記録媒体A9から読出した圧縮データを伸長する際の伸長処理も行う。記録媒体A9は、たとえば、メモリカードなどのデータストレージ部材によって構成される。   Signals constituting the color image output from the image sensor A4 are converted into digital signals by an A / D converter 4 (not shown) and then input to the image processing apparatus A2. The image processing apparatus A2 performs signal processing such as white balance adjustment on the input image signal, further performs compression processing using a predetermined method (for example, JPEG), and stores the compressed image data on the recording medium A9. Record. The image processing apparatus A2 also performs decompression processing when decompressing the compressed data read from the recording medium A9. The recording medium A9 is configured by a data storage member such as a memory card, for example.

バッファメモリA8は、信号処理中の画像信号を一時的に格納したり、信号処理の際の作業用エリアとして使用される。画像処理装置A2は、撮影画像に対する色補正処理も行う。色補正処理の詳細については後述する。   The buffer memory A8 temporarily stores an image signal being processed, and is used as a work area for signal processing. The image processing apparatus A2 also performs color correction processing on the captured image. Details of the color correction processing will be described later.

表示装置A5は、たとえば、液晶表示パネルによって構成され、上記信号処理後の撮影画像や、記録媒体A9から読出した画像データによる再生画像を表示する。   The display device A5 is constituted by, for example, a liquid crystal display panel, and displays a captured image after the signal processing and a reproduced image based on image data read from the recording medium A9.

発光装置A7は、たとえば、キセノンランプなどの発光体を有し、撮影時に閃光発光して主要被写体を照明する。発光装置A7は、CPU-A1からの発光指令を受けると閃光発光する。   The light emitting device A7 has a light emitter such as a xenon lamp, for example, and illuminates the main subject by flashing light during photographing. The light emitting device A7 flashes when receiving a light emission command from the CPU-A1.

CPU-A1は不図示の不揮発性メモリを含み、このメモリにCPU-A1が実行する制御プログラムが格納される。CPU-A1は、電子カメラの焦点検出(AF)や露出決定(AE)などの各種演算、カメラ動作のシーケンス制御、および画像処理装置A2に対する色補正処理の制御とを行う。   The CPU-A1 includes a nonvolatile memory (not shown), and a control program executed by the CPU-A1 is stored in this memory. The CPU-A1 performs various operations such as focus detection (AF) and exposure determination (AE) of the electronic camera, sequence control of camera operation, and control of color correction processing for the image processing apparatus A2.

操作部材はレリーズボタンA3や撮影シーン設定スイッチA6などを含み、各スイッチ操作に応じた操作信号をCPU-A1へ出力する。なお、撮影シーン設定スイッチA6からの操作信号は、後述する水中撮影モードに切り替える指示に対応する。   The operation member includes a release button A3, a shooting scene setting switch A6, and the like, and outputs an operation signal corresponding to each switch operation to the CPU-A1. The operation signal from the shooting scene setting switch A6 corresponds to an instruction to switch to an underwater shooting mode described later.

実施形態は、電子画像に対して画像処理装置A2が行う色補正処理に特徴を有するので、色補正処理を中心に説明する。
The present embodiment is characterized by the color correction processing performed by the image processing apparatus A2 on the electronic image, and therefore will be described focusing on the color correction processing.

(色補正処理)
本実施形態による電子カメラは、たとえば、水中撮影画像に対して以下の手順1〜手順3により色補正処理を行う。色補正処理を行う場合は、陸上での撮影時に通常行っているホワイトバランス調整を省略する。
手順1.<ヒストグラム作成>
画像処理装置A2は、色補正の対象とする画像を構成する色成分信号であるB色のデータおよびG色のデータのそれぞれについて、ヒストグラムを作成する。図2(a)および図2(b)は、ヒストグラムの一例を説明する図である。図2(a)はB色データについての輝度分布を表し、図2(b)はG色データについての輝度分布を表す。図2(a)において、横軸は画像を構成するB色データの輝度レベルB(B)を表し、8ビットデータの場合には最大値が255とされる。縦軸はデータの出現頻度、すなわち、当該輝度レベルに対応するデータ数(ピクセル数)を表す。図2(b)において、横軸は画像を構成するG色データの輝度レベルG(G)を表し、8ビットデータの場合には最大値が255とされる。縦軸はデータの出現頻度、すなわち、当該輝度レベルに対応するデータ数(ピクセル数)を表す。
(Color correction processing)
The electronic camera according to the present embodiment performs color correction processing according to the following procedure 1 to procedure 3, for example, for an underwater photographed image. When color correction processing is performed, white balance adjustment that is normally performed when shooting on land is omitted.
Procedure 1. <Create histogram>
The image processing apparatus A2 creates a histogram for each of the B color data and the G color data, which are color component signals constituting the image to be subjected to color correction. FIG. 2A and FIG. 2B are diagrams for explaining an example of a histogram. FIG. 2A shows the luminance distribution for the B color data, and FIG. 2B shows the luminance distribution for the G color data. In FIG. 2A, the horizontal axis represents the luminance level B (B) of the B color data constituting the image, and the maximum value is 255 in the case of 8-bit data. The vertical axis represents the appearance frequency of data, that is, the number of data (number of pixels) corresponding to the luminance level. In FIG. 2B, the horizontal axis represents the luminance level G (G) of the G color data constituting the image, and the maximum value is 255 in the case of 8-bit data. The vertical axis represents the appearance frequency of data, that is, the number of data (number of pixels) corresponding to the luminance level.

一般に、水中で撮影された画像は、水の分光透過率の影響によって自然光に含まれる長波長成分、とくにR(赤)色成分の比率が陸上(空気中)での光に含まれる比率に比べて低くなる。このため、水中で撮影される被写体の色は、陸上で撮影される色に比べて短波長成分、とくにB(青)色成分の比率が高くなり、青みを帯びた色として観察される。図2(a)、図2(b)によれば、B色データについての出現頻度が高く、G色データの出現頻度はB色データの出現頻度より低いことを示す。   In general, images taken underwater have a longer wavelength component, especially the ratio of the R (red) color component contained in natural light due to the influence of the spectral transmittance of water, compared to the proportion contained in light on land (in the air). Become lower. For this reason, the color of a subject photographed underwater has a higher ratio of short wavelength components, particularly B (blue) color components, compared to colors photographed on land, and is observed as a bluish color. 2A and 2B show that the appearance frequency of the B color data is high and the appearance frequency of the G color data is lower than the appearance frequency of the B color data.

本実施形態ではR色のデータについてのヒストグラム作成は行わない。本色補正処理では、水中で失われたR色の情報を補うように、B色データおよびG色データに応じた値をR色データに加える。なお、実際にヒストグラムを作成する代わりに、メモリ上で上記ヒストグラムに対応するデータを作成するだけでもよい。   In this embodiment, histogram creation is not performed for R color data. In this color correction process, values corresponding to the B color data and the G color data are added to the R color data so as to compensate for the R color information lost in water. Instead of actually creating a histogram, it is also possible to create only data corresponding to the histogram on the memory.

手順2.<仮の補正係数を求める>
画像処理装置A2は、図2(a)における最小輝度レベル(Bb)から最大値255までの範囲において、B色についての補正係数Kbを求める。補正係数Kbは、たとえば図2(a)による分布を直線近似した線形係数とする。本実施形態では、B色データの輝度レベルB(B)と補正係数Kbとの積を、分光透過率の影響が無い場合にB色データに含まれているであろうR色データとして扱う(R(B)とする)。図3(a)は、B色データの輝度レベルB(B)に応じて算出されるR色データR(B)を示す図である。
Procedure 2. <Determining temporary correction coefficient>
The image processing apparatus A2 calculates a correction coefficient Kb for the B color in the range from the minimum luminance level (Bb) to the maximum value 255 in FIG. The correction coefficient Kb is, for example, a linear coefficient obtained by linearly approximating the distribution according to FIG. In the present embodiment, the product of the luminance level B (B) of the B color data and the correction coefficient Kb is treated as R color data that would be included in the B color data when there is no influence of the spectral transmittance ( R (B)). FIG. 3A is a diagram showing R color data R (B) calculated according to the luminance level B (B) of the B color data.

また、画像処理装置A2は、図2(b)における最小輝度レベル(Gb)から最大値255までの範囲において、G色についての補正係数Kgを求める。補正係数Kgは、たとえば図2(b)による分布を直線近似した線形係数とする。本実施形態では、G色データの輝度レベルG(G)と補正係数Kgとの積を、分光透過率の影響が無い場合にG色データに含まれているであろうR色データとして扱う(R(G)とする)。図3(b)は、G色データの輝度レベルG(G)に応じて算出されるR色データR(G)を示す図である。   Further, the image processing apparatus A2 obtains the correction coefficient Kg for G color in the range from the minimum luminance level (Gb) to the maximum value 255 in FIG. For example, the correction coefficient Kg is a linear coefficient obtained by linearly approximating the distribution according to FIG. In this embodiment, the product of the luminance level G (G) of the G color data and the correction coefficient Kg is treated as R color data that would be included in the G color data when there is no influence of the spectral transmittance ( R (G)). FIG. 3B is a diagram showing R color data R (G) calculated according to the luminance level G (G) of the G color data.

手順3.<補正係数を調節する>
画像処理装置A2は、画像を所定数(たとえば、256領域)に分割し、分割後の領域ごとに、領域内に含まれるB色データの輝度レベルB(B)の積算値の平均値、領域内に含まれるG色データの輝度レベルG(G)の積算値の平均値、領域内に含まれるR色データの輝度レベルR(R)の積算値の平均値をそれぞれ、分割領域別、色別に算出する。
Procedure 3. <Adjusting the correction coefficient>
The image processing apparatus A2 divides the image into a predetermined number (for example, 256 areas), and for each area after the division, the average value and area of the integrated values of the luminance level B (B) of the B color data included in the area The average value of the integrated value of the luminance level G (G) of the G color data included in the image and the average value of the integrated value of the luminance level R (R) of the R color data included in the region are respectively classified by color. Calculate separately.

図4は、色相判定を説明する図である。画像処理装置A2は、図4において上記色別の輝度算出値によって示される色が分布する領域(色相)に応じて、以下のように上記補正係数KbおよびKgを調節する。   FIG. 4 is a diagram illustrating hue determination. The image processing apparatus A2 adjusts the correction coefficients Kb and Kg as follows according to the region (hue) in which the color indicated by the luminance calculation value for each color in FIG. 4 is distributed.

(1)撮影時に発光装置(SB)A7を発光させた画像についての色別輝度平均値による色が図4の領域3または4に含まれ、かつ、発光装置(SB)A7を発光させないで撮影した画像についての色別輝度平均値による色が図4の領域5または6に含まれる色相の場合、画像処理装置A2は、仮の補正係数KbおよびKgをそれぞれ増加させ、K1bおよびK1gを補正係数とする。 (1) A color based on a luminance average value for each color of an image emitted from the light emitting device (SB) A7 at the time of photographing is included in the region 3 or 4 in FIG. 4, and the light emitting device (SB) A7 is photographed without causing light emission When the color based on the average luminance value for each color of the image is a hue included in the region 5 or 6 in FIG. 4, the image processing apparatus A2 increases the temporary correction coefficients Kb and Kg, respectively, and sets K1b and K1g as correction coefficients. And

(2)撮影時に発光装置(SB)A7を発光させた画像についての色別輝度平均値による色と、発光装置(SB)A7を発光させないで撮影した画像についての色別輝度平均値による色が、ともに図4の領域5または6に含まれる色相の場合、画像処理装置A2は、仮の補正係数KbおよびKgをそれぞれ減少させ、K3bおよびK3gを補正係数とする。 (2) The color based on the luminance average value for each color for the image emitted from the light emitting device (SB) A7 at the time of shooting and the color based on the average luminance value for each color for the image shot without emitting the light emitting device (SB) A7. In the case of hues included in the region 5 or 6 in FIG. 4, the image processing apparatus A2 decreases the temporary correction coefficients Kb and Kg, respectively, and sets K3b and K3g as correction coefficients.

(3)上記1にも上記2にも該当しない色相の場合、画像処理装置A2は、K2bおよびK2gを補正係数とする。ただし、K1b>K2b>K3bであり、K1g>K2g>K3gである。 (3) In the case of a hue that does not correspond to 1 or 2, the image processing apparatus A2 uses K2b and K2g as correction coefficients. However, K1b> K2b> K3b and K1g> K2g> K3g.

なお、撮影時に発光装置(SB)A7を発光させた画像のデータが存在しない場合は上記手順3を省略する。この場合は、仮の補正係数KbおよびKgをそのまま補正係数として採用する。最終的に決定した各分割領域ごとの補正係数を、Kb(n)、Kg(n)で表す。ただし、nは1〜256の整数である。   Note that if there is no data of an image emitted from the light emitting device (SB) A7 at the time of shooting, the procedure 3 is omitted. In this case, temporary correction coefficients Kb and Kg are used as correction coefficients as they are. The finally determined correction coefficients for the respective divided areas are represented by Kb (n) and Kg (n). However, n is an integer of 1 to 256.

上述した色補正処理とともに電子カメラが行う撮影処理の流れについて、図5のフローチャートを参照して説明する。図5による処理は、撮影シーン設定スイッチA6からの操作信号によって電子カメラに水中撮影が指示されると起動する。図5のステップB1において、CPU-A1は、レリーズボタンA3からレリーズ操作信号が入力されるとステップB2へ進む。   A flow of photographing processing performed by the electronic camera together with the above-described color correction processing will be described with reference to a flowchart of FIG. The processing shown in FIG. 5 is activated when underwater shooting is instructed to the electronic camera by an operation signal from the shooting scene setting switch A6. In Step B1 of FIG. 5, when the release operation signal is input from the release button A3, the CPU-A1 proceeds to Step B2.

ステップB2において、CPU-A1は、レリーズ操作信号が入力後1コマ目の撮影時に発光装置A7を非発光にし、2コマ目の撮影時に発光装置A7を発光させるように制御してステップB3へ進む。   In step B2, the CPU-A1 controls the light emitting device A7 to emit no light when shooting the first frame after the release operation signal is input, and causes the light emitting device A7 to emit light when shooting the second frame, and then proceeds to step B3. .

ステップB3において、CPU-A1は撮像素子A4へ画像データの取得を指示する。具体的には、発光装置A7が非発光の状態において撮像素子A4に電荷蓄積を行わせ(この蓄積電荷信号による画像データを本画像データXとする)、続いて、撮像素子A4に再度電荷蓄積を行わせるとともに、電荷蓄積中の所定タイミングで発光装置A7を所定光量発光させる(この蓄積電荷信号による画像データを補正値算出用画像データYとする)。   In step B3, the CPU-A1 instructs the image sensor A4 to acquire image data. Specifically, charge accumulation is performed in the image sensor A4 when the light emitting device A7 is not emitting light (the image data based on this accumulated charge signal is referred to as main image data X), and then charge accumulation is performed again in the image sensor A4. And the light emitting device A7 emits a predetermined amount of light at a predetermined timing during charge accumulation (image data based on this accumulated charge signal is referred to as correction value calculation image data Y).

電荷蓄積時間(シャッター速度)の決定は、発光装置A7が非発光の場合はプログラムオート方式でも、絞り値優先方式でも、シャッター速度優先方式でもよく、電子カメラに設定されている方式で行う。また、発光装置A7が発光する場合は、所定の同調速度に決定する。   The charge accumulation time (shutter speed) is determined by the program auto method, aperture value priority method, shutter speed priority method, or the method set in the electronic camera when the light emitting device A7 does not emit light. Further, when the light emitting device A7 emits light, the predetermined tuning speed is determined.

図5のステップB4において、CPU-A1は画像処理装置A2へ指令を送り、バッファメモリA8内に格納されている本画像データXについて、上述したようにヒストグラムを作成させてステップB5へ進む。   In step B4 in FIG. 5, the CPU-A1 sends a command to the image processing apparatus A2, causes the main image data X stored in the buffer memory A8 to create a histogram as described above, and proceeds to step B5.

ステップB5において、CPU-A1は画像処理装置A2へ指令を送り、バッファメモリA8内に格納されている本画像データXおよび補正値算出用画像データY(以後画像データYとする)を用いて、上述したように分割領域ごとに色相判定を行わせ、ステップB6へ進む。   In step B5, the CPU-A1 sends a command to the image processing apparatus A2, and uses the main image data X and the correction value calculation image data Y (hereinafter referred to as image data Y) stored in the buffer memory A8. As described above, the hue determination is performed for each divided region, and the process proceeds to Step B6.

ステップB6において、CPU-A1は画像処理装置A2へ指令を送り、分割領域ごとに判定した色相に応じて補正係数Kb(n)およびKg(n)を調節・決定させてステップB7へ進む。   In step B6, the CPU-A1 sends a command to the image processing apparatus A2, adjusts and determines the correction coefficients Kb (n) and Kg (n) according to the hue determined for each divided area, and proceeds to step B7.

ステップB7において、CPU-A1は画像処理装置A2へ指令を送り、分割領域ごとにRチャンネル(R色)の補正画像データを作成させてステップB8へ進む。R補正画像データは、R(B)+R(G)=B(B)×補正係数Kb(n)+G(G)×補正係数Kg(n)である。B(B)は、本画像データXにおけるB色データの輝度レベルであり、G(G)は、本画像データXにおけるG色データの輝度レベルである。   In step B7, the CPU-A1 sends a command to the image processing apparatus A2 to generate R channel (R color) corrected image data for each divided area, and the process proceeds to step B8. The R corrected image data is R (B) + R (G) = B (B) × correction coefficient Kb (n) + G (G) × correction coefficient Kg (n). B (B) is the luminance level of the B color data in the main image data X, and G (G) is the luminance level of the G color data in the main image data X.

ステップB8において、CPU-A1は画像処理装置A2へ指令を送り、分割領域ごとの画像を合成させて色補正後のカラー画像を取得し、ステップB9へ進む。各領域についての色補正後のR色データは、R(R)+R補正画像データ=R(R)+B(B)×補正係数Kb(n)+G(G)×補正係数Kg(n)である。R(R)は、本画像データXにおけるR色データの輝度レベルである。色補正後のB色データおよびG色データは、それぞれ本画像データXにおけるB色データB(B)およびG色データG(G)をそのまま用いる。   In step B8, the CPU-A1 sends a command to the image processing apparatus A2, obtains a color image after color correction by synthesizing the images for each divided area, and proceeds to step B9. The R color data after color correction for each region is R (R) + R corrected image data = R (R) + B (B) × correction coefficient Kb (n) + G (G) × correction coefficient Kg (n). . R (R) is the luminance level of the R color data in the main image data X. As the B color data and G color data after color correction, the B color data B (B) and G color data G (G) in the main image data X are used as they are, respectively.

ステップB9において、CPU-A1は画像処理装置A2へ指令を送り、色補正処理後の画像データ(カラー画像を構成する信号)を出力して図5による処理を終了する。画像データの出力先は、たとえば、記録媒体A9である。   In step B9, the CPU-A1 sends a command to the image processing apparatus A2, outputs image data after color correction processing (signals constituting a color image), and ends the processing shown in FIG. The output destination of the image data is, for example, the recording medium A9.

以上説明した実施形態によれば、次の作用効果が得られる。
(1)水中で失われた(退色した)R色の情報を補うように、B色データB(B)に応じた値(=B(B)×補正係数Kb(n))、およびG色データG(G)に応じた値(=G(G)×補正係数Kg(n))をR色データR(R)に加えることによって色補正したので、R色データR(R)に対して大きな係数を乗算しなくてよい。また、一般に水中撮影画像におけるB色データB(B)およびG色データG(G)はR色データR(R)より大きいので、補正係数Kb(n)、補正係数Kg(n)は従来技術で用いられていたR色データR(R)に対する乗算係数より小さな値でよい。この結果、R色データR(R)に含まれるノイズの増加が抑えられ、色補正後の画質劣化を抑制できる。
According to the embodiment described above, the following operational effects can be obtained.
(1) A value corresponding to B color data B (B) (= B (B) × correction coefficient Kb (n)) and G color so as to compensate for R color information lost (discolored) in water Since color correction was performed by adding a value (= G (G) × correction coefficient Kg (n)) corresponding to the data G (G) to the R color data R (R), the R color data R (R) There is no need to multiply large coefficients. In general, the B color data B (B) and the G color data G (G) in the underwater photographed image are larger than the R color data R (R), so that the correction coefficient Kb (n) and the correction coefficient Kg (n) are the conventional techniques. The value may be smaller than the multiplication coefficient for the R color data R (R) used in FIG. As a result, an increase in noise included in the R color data R (R) can be suppressed, and deterioration in image quality after color correction can be suppressed.

(2)退色したR色の情報を補う一方で、色補正後のB色データおよびG色データは、それぞれ色補正前の画像におけるB色データ情報およびG色情報を用いるので、水中撮影画像のB色情報を維持しつつ、R色情報を補うことができる。 (2) While compensating for the faded R color information, the B color data and G color data after color correction use the B color data information and G color information in the image before color correction, respectively. The R color information can be supplemented while the B color information is maintained.

(3)補正係数Kb(n)、および補正係数Kg(n)は、それぞれB色データおよびG色データにおいて最小輝度レベル以上について求めるようにしたので、データが存在しない低輝度について考慮しないでよく、効率よくR補正画像データを得ることができる。 (3) Since the correction coefficient Kb (n) and the correction coefficient Kg (n) are obtained for the B color data and the G color data for the minimum luminance level or higher, it is not necessary to consider the low luminance where no data exists. R-corrected image data can be obtained efficiently.

(4)画像を所定数(上記例では256領域)に分割し、分割後の領域ごとに補正係数Kb(n)、補正係数Kg(n)を調節・決定するので、画像全体の色補正が一様にされることがない。なお、分割領域間で補正係数が大きく異なる場合には、領域間で補正係数を平滑化する境界処理を施すとよい。この境界処理により、色補正処理後の色が分割領域の境界を挟んで異なることによる違和感を抑えることができる。なお、所定数は上記例に限らず、さらに細かく分割してもよいし(分割数を増やす)、さらに粗く分割してもよい(分割数を減らす)。 (4) The image is divided into a predetermined number (256 areas in the above example), and the correction coefficient Kb (n) and the correction coefficient Kg (n) are adjusted and determined for each divided area. It is never made uniform. If the correction coefficient differs greatly between the divided areas, boundary processing for smoothing the correction coefficient between the areas may be performed. By this boundary processing, it is possible to suppress a sense of incongruity caused by the color after the color correction processing being different across the boundary of the divided regions. The predetermined number is not limited to the above example, and the predetermined number may be further finely divided (increase the number of divisions) or may be further coarsely divided (decrease the number of divisions).

(5)撮影時に発光装置(SB)A7による照明光を用いた画像についての色別輝度平均値と、発光装置(SB)A7による照明光を用いずに撮影した画像についての色別輝度平均値とに基づいて色相判定し、判定した色相に応じて補正係数Kb(n)、および補正係数Kg(n)を調節したので、水中で失われたR色の情報を補いやすい。つまり、発光装置(SB)A7を発光させた画像と発光させなかった画像とで色相が異なれば被写体色にR色成分が含まれる(色相がR色に近い)とみなすことができ、R色をより多く補うように補正係数を大きくする。反対に、発光装置(SB)A7を発光させた画像と発光させなかった画像とで色相が変わらなければ被写体色にR色成分が含まれていない(色相がR色から遠い)とみなすことができ、R色を必要以上に補わないように補正係数を小さくする。 (5) Brightness average value for each color for an image using illumination light from the light emitting device (SB) A7 and brightness average value for each color for an image shot without using the illumination light from the light emitting device (SB) A7 And the correction coefficient Kb (n) and the correction coefficient Kg (n) are adjusted according to the determined hue, so that it is easy to compensate for the R color information lost in water. That is, if the hue is different between the image emitted from the light emitting device (SB) A7 and the image not emitted, it can be considered that the subject color includes the R color component (the hue is close to the R color), and the R color The correction coefficient is increased so as to compensate for more. On the contrary, if the hue does not change between the image emitted from the light emitting device (SB) A7 and the image not emitted, it can be considered that the subject color does not contain the R color component (the hue is far from the R color). The correction coefficient is made small so that the R color is not compensated more than necessary.

(6)撮影時に発光装置(SB)A7を発光させた画像と発光装置(SB)A7を発光させないで撮影した画像とを得る場合、発光装置(SB)A7を発光させない撮影を先に行うので、発光装置(SB)A7からの照明光に生物などの被写体が驚いて逃げてしまうことを防止できる。 (6) When obtaining an image obtained by emitting light from the light emitting device (SB) A7 and an image taken without causing the light emitting device (SB) A7 to emit light at the time of photographing, the photographing not performed by the light emitting device (SB) A7 is performed first. It is possible to prevent a subject such as a living creature from being surprised to escape from the illumination light from the light emitting device (SB) A7.

(変形例)
R色の情報を補うように、G色データG(G)に応じた値(=G(G)×補正係数Kg(n))のみをR色データR(R)に加えることによって色補正するように構成してもよい。また、B色データB(B)に応じた値(=B(B)×補正係数Kb(n))のみをR色データR(R)に加えることによって色補正するように構成してもよい。
(Modification)
Color correction is performed by adding only a value (= G (G) × correction coefficient Kg (n)) corresponding to the G color data G (G) to the R color data R (R) so as to supplement the R color information. You may comprise as follows. Alternatively, the color correction may be performed by adding only the value (= B (B) × correction coefficient Kb (n)) corresponding to the B color data B (B) to the R color data R (R). .

上述した説明では、RGBのカラーフィルタ41を通して撮影した原色系画像データの場合を例に説明したが、補色系フィルタを通して撮影した画像データにも本発明を適用できる。この場合には、最も長い波長成分の情報を補うように、他の波長成分の情報に応じた値を加えることによって色補正すればよい。なお、フィルタの色は3色に限らず、4色のものでもよい。   In the above description, the case of primary color image data photographed through the RGB color filter 41 has been described as an example, but the present invention can also be applied to image data photographed through a complementary color filter. In this case, color correction may be performed by adding a value corresponding to information on other wavelength components so as to supplement the information on the longest wavelength component. The filter colors are not limited to three, and may be four colors.

上記手順3、すなわち、撮影時に発光装置(SB)A7を発光させた画像についての色別輝度平均値と、発光装置(SB)A7を発光させないで撮影した画像についての色別輝度平均値とに基づいて色相判定し、判定した色相に応じて補正係数Kb(n)、および補正係数Kg(n)を調節する処理を省略してもよい。この場合は、仮の補正係数KbおよびKgをそのまま補正係数として採用し、発光装置(SB)A7を発光させないで撮影した画像データXについての色補正を行う。   According to the above procedure 3, that is, the luminance average value for each color for an image emitted from the light emitting device (SB) A7 at the time of photographing and the luminance average value for each color for an image taken without causing the light emitting device (SB) A7 to emit light. The process of determining the hue based on this and adjusting the correction coefficient Kb (n) and the correction coefficient Kg (n) according to the determined hue may be omitted. In this case, the temporary correction coefficients Kb and Kg are employed as correction coefficients as they are, and color correction is performed on the image data X captured without causing the light emitting device (SB) A7 to emit light.

また、発光装置(SB)A7を発光させないで撮影した画像データXに、ヒストグラム作成に必要な所定輝度レベル以上のB色のデータおよびG色のデータが含まれていない場合に、発光装置(SB)A7を発光させて撮影する画像データYを得るようにしてもよい。   Further, when the image data X photographed without causing the light emitting device (SB) A7 to emit light does not include B color data and G color data of a predetermined luminance level or higher necessary for creating a histogram, the light emitting device (SB) ) You may make it obtain the image data Y image | photographed by making A7 light-emit.

電子画像に対して色補正処理を行う例として、水中で撮影された風景画像にR色情報を補う例を説明したが、夕焼け時に撮影された風景画像にB色情報を補うなど、画像から退色している特定の色情報を補う場合に本実施形態は好適である。
As an example of performing color correction processing on an electronic image, an example of supplementing R color information to a landscape image taken underwater has been described, but fading from an image such as supplementing B color information to a landscape image taken at sunset The present embodiment is suitable when supplementing specific color information.

電子カメラを例に説明したが、ステップB4〜ステップB8の処理を行う色補正処理プログラムを用意し、このプログラムをパーソナルコンピュータなどに取込んで色補正処理装置として使用することができる。この場合には、パーソナルコンピュータのデータストレージ装置にプログラムをローディングした上で当該プログラムを実行させることにより、色補正処理装置として使用する。プログラムのローディングは、プログラムを格納した記録媒体をパーソナルコンピュータにセットして行ってもよいし、ネットワークを経由する方法でパーソナルコンピュータなどにローディングしてもよい。   Although the electronic camera has been described as an example, a color correction processing program for performing the processing of Step B4 to Step B8 is prepared, and this program can be taken into a personal computer or the like and used as a color correction processing device. In this case, the program is loaded into a data storage device of a personal computer and then the program is executed to use as a color correction processing device. The program may be loaded by setting a recording medium storing the program in a personal computer, or may be loaded in a personal computer or the like by a method via a network.

以上の説明はあくまで一例であり、発明を解釈する上で、上記の実施形態の構成要素と本発明の構成要素との対応関係に何ら限定されるものではない。   The above description is merely an example, and the interpretation of the invention is not limited to the correspondence between the components of the above-described embodiment and the components of the present invention.

本発明の一実施の形態による電子カメラの要部構成を説明するブロック図である。It is a block diagram explaining the principal part structure of the electronic camera by one embodiment of this invention. (a)B色データについての輝度分布を表す図であり、(b)G色データについての輝度分布を表す図である。(a) It is a figure showing the luminance distribution about B color data, (b) It is a figure showing the luminance distribution about G color data. (a)B色データの輝度レベルに応じて算出されるR色データを示す図であり、(b)G色データの輝度レベルに応じて算出されるR色データを示す図である。(a) It is a figure which shows R color data calculated according to the luminance level of B color data, (b) It is a figure which shows R color data calculated according to the luminance level of G color data. 色相判定を説明する図である。It is a figure explaining hue determination. 電子カメラが行う撮影処理の流れについて説明するフローチャートである。It is a flowchart explaining the flow of the imaging | photography process which an electronic camera performs.

符号の説明Explanation of symbols

A1…CPU
A2…画像処理装置
A3…レリーズボタン
A4…撮像素子
A5…表示装置
A6…撮影シーン設定スイッチ
A7…発光装置
A8…バッファメモリ
A9…記録媒体
41…カラーフィルタ
A1 ... CPU
A2 ... Image processing device A3 ... Release button A4 ... Image sensor A5 ... Display device A6 ... Shooting scene setting switch A7 ... Light emitting device A8 ... Buffer memory A9 ... Recording medium 41 ... Color filter

Claims (14)

第1色の第1色データと、前記第1色とは異なる第2色の第2色データとを有するカラー画像データを入力する入力処理と、
前記カラー画像データに基づくカラー画像の所定領域ごとに、前記第1色データの輝度分布に応じた補正係数を前記第1色データの輝度レベルに乗じた補正値を前記第2色データの輝度レベルに加算する加算処理と、
前記第1色データと、前記加算処理が行なわれた前記第2色データとを有するカラー画像データを出力する出力処理とをコンピュータに実行させること
を特徴とする色補正処理プログラム。
Input processing for inputting color image data having first color data of a first color and second color data of a second color different from the first color;
For each predetermined area of the color image based on the color image data, a correction value obtained by multiplying the luminance level of the first color data by a correction coefficient corresponding to the luminance distribution of the first color data is the luminance level of the second color data. An addition process to add to
A color correction processing program causing a computer to execute output processing for outputting color image data having the first color data and the second color data subjected to the addition processing.
第1色の第1色データと、前記第1色とは異なる第2色の第2色データとを有するカラー画像データを入力する入力処理と、
前記カラー画像データに基づくカラー画像の所定領域ごとに色相を判定する判定処理と、
前記判定処理により判定された色相に応じて、前記第1色データの輝度レベルに乗じる補正係数を調整する調整処理と、
前記カラー画像の前記所定領域ごとに、前記調整処理により調整された前記補正係数を前記第1色データの輝度レベルに乗じた補正値を前記第2色データの輝度レベルに加算する加算処理と、
前記第1色データと、前記加算処理が行なわれた前記第2色データとを有するカラー画像データを出力する出力処理とをコンピュータに実行させること
を特徴とする色補正処理プログラム。
Input processing for inputting color image data having first color data of a first color and second color data of a second color different from the first color;
A determination process for determining a hue for each predetermined region of a color image based on the color image data;
An adjustment process for adjusting a correction coefficient by which the luminance level of the first color data is multiplied according to the hue determined by the determination process;
An addition process for adding a correction value obtained by multiplying the luminance level of the first color data by the correction coefficient adjusted by the adjustment process to the luminance level of the second color data for each predetermined area of the color image;
A color correction processing program for causing a computer to execute output processing for outputting color image data including the first color data and the second color data subjected to the addition processing.
請求項2に記載の色補正処理プログラムにおいて、
前記調整処理は、前記判定処理により判定された色相が前記第2色に近いほど前記補正係数を大きくし、前記判定処理により判定された色相が前記第2色から遠いほど前記補正係数を小さくすること
を特徴とする色補正処理プログラム。
In the color correction processing program according to claim 2,
The adjustment process increases the correction coefficient as the hue determined by the determination process is closer to the second color, and decreases the correction coefficient as the hue determined by the determination process is farther from the second color. A color correction processing program characterized by that.
請求項2または請求項3に記載の色補正処理プログラムにおいて、
前記判定処理は、発光装置による照明光を用いて撮影したカラー画像データにおける前
記第1色データの輝度レベル平均値および前記第2色データの輝度レベル平均値と、前記発光装置による照明光を用いることなく撮影したカラー画像データにおける前記第1色データの輝度レベル平均値および前記第2色データの輝度レベル平均値とに基づいて、色相を判定すること
を特徴とする色補正処理プログラム。
In the color correction processing program according to claim 2 or 3,
The determination process uses the average luminance level value of the first color data and the average luminance level value of the second color data in the color image data photographed using the illumination light from the light emitting device, and the illumination light from the light emitting device. A color correction processing program that determines a hue based on a luminance level average value of the first color data and a luminance level average value of the second color data in color image data photographed without any change.
請求項1から請求項4のいずれか一項に記載の色補正処理プログラムにおいて、
前記第1色は青色または緑色であり、前記第2色は赤色であること
を特徴とする色補正処理プログラム。
In the color correction processing program according to any one of claims 1 to 4,
The color correction processing program characterized in that the first color is blue or green and the second color is red .
被写体を撮像して、第1色の第1色データと、前記第1色とは異なる第2色の第2色データとを有するカラー画像データを出力する撮像手段と、
前記カラー画像データに基づくカラー画像の所定領域ごとに、前記第1色データの輝度分布に応じた補正係数を前記第1色データの輝度レベルに乗じた補正値を前記第2色データの輝度レベルに加算する加算手段と、
前記第1色データと、前記加算手段により加算が行なわれた前記第2色データとを有するカラー画像データを記録媒体に記録させる記録手段とを備えること
を特徴とする電子カメラ。
Imaging means for imaging a subject and outputting color image data having first color data of a first color and second color data of a second color different from the first color;
For each predetermined area of the color image based on the color image data, a correction value obtained by multiplying the luminance level of the first color data by a correction coefficient corresponding to the luminance distribution of the first color data is the luminance level of the second color data. Adding means for adding to
An electronic camera comprising: recording means for recording color image data having the first color data and the second color data added by the adding means on a recording medium.
被写体を撮像して、第1色の第1色データと、前記第1色とは異なる第2色の第2色データとを有するカラー画像データを出力する撮像手段と、
前記カラー画像データに基づくカラー画像の所定領域ごとに色相を判定する判定手段と、
前記判定手段により判定された色相に応じて、前記第1色データの輝度レベルに乗じる補正係数を調整する調整手段と、
前記カラー画像の前記所定領域ごとに、前記調整手段により調整された前記補正係数を前記第1色データの輝度レベルに乗じた補正値を前記第2色データの輝度レベルに加算する加算手段と、
前記第1色データと、前記加算手段による加算が行なわれた前記第2色データとを有するカラー画像データを記録媒体に記録させる記録手段とを備えること
を特徴とする電子カメラ。
Imaging means for imaging a subject and outputting color image data having first color data of a first color and second color data of a second color different from the first color;
Determining means for determining a hue for each predetermined region of a color image based on the color image data;
Adjusting means for adjusting a correction coefficient by which the luminance level of the first color data is multiplied according to the hue determined by the determining means;
Adding means for adding a correction value obtained by multiplying the luminance level of the first color data by the correction coefficient adjusted by the adjusting means to the luminance level of the second color data for each predetermined area of the color image;
An electronic camera comprising: recording means for recording color image data having the first color data and the second color data added by the adding means on a recording medium.
第1色の第1色データと、前記第1色とは異なる第2色の第2色データと、前記第1色および前記第2色とは異なる第3色の第3色データとを有するカラー画像データを入力する入力処理と、
前記カラー画像データに基づくカラー画像の所定領域ごとに、前記第1色データの輝度レベルに第1補正係数を乗じた第1補正値と、前記第2色データの輝度レベルに第2補正係数を乗じた第2補正値とを、前記第3色データの輝度レベルに加算する加算処理と、
前記第1色データと、前記第2色データと、前記加算処理が行なわれた前記第3色データとを有するカラー画像を出力する出力処理とをコンピュータに実行させること
を特徴とする色補正処理プログラム。
First color data of a first color, second color data of a second color different from the first color, and third color data of a third color different from the first color and the second color Input processing to input color image data;
For each predetermined area of the color image based on the color image data, a first correction value obtained by multiplying the luminance level of the first color data by the first correction coefficient, and a second correction coefficient for the luminance level of the second color data. An addition process for adding the multiplied second correction value to the luminance level of the third color data;
A color correction process that causes a computer to execute an output process that outputs a color image having the first color data, the second color data, and the third color data subjected to the addition process. program.
請求項8に記載の色補正処理プログラムにおいて、
前記第1補正係数は、前記第1色データの輝度分布に応じた係数であり、
前記第2補正係数は、前記第2色データの輝度分布に応じた係数であること
を特徴とする色補正処理プログラム。
In the color correction processing program according to claim 8,
The first correction coefficient is a coefficient corresponding to a luminance distribution of the first color data,
The color correction processing program, wherein the second correction coefficient is a coefficient corresponding to a luminance distribution of the second color data.
請求項8または請求項9に記載の色補正処理プログラムにおいて、
前記カラー画像データに基づくカラー画像の所定領域ごとに色相を判定する判定処理と、
前記判定処理により判定された色相に応じて、前記第1補正係数および前記第2補正係
数を調整する調整処理とをさらに有し、
前記加算処理は、前記カラー画像の前記所定領域ごとに、前記調整処理により調整された前記第1補正係数を前記第1色データの輝度レベルに乗じた前記第1補正値と、前記調整処理により調整された前記第2補正係数を前記第2色データの輝度レベルに乗じた前記第2補正値とを、前記第3色データの輝度レベルに加算すること
を特徴とする色補正処理プログラム。
In the color correction processing program according to claim 8 or 9,
A determination process for determining a hue for each predetermined region of a color image based on the color image data;
An adjustment process for adjusting the first correction coefficient and the second correction coefficient according to the hue determined by the determination process;
The adding process includes, for each predetermined area of the color image, the first correction value obtained by multiplying the luminance level of the first color data by the first correction coefficient adjusted by the adjusting process, and the adjusting process. A color correction processing program, wherein the second correction value obtained by multiplying the adjusted second correction coefficient by the luminance level of the second color data is added to the luminance level of the third color data.
請求項10に記載の色補正処理プログラムにおいて、
前記調整処理は、前記判定処理により判定された色相が前記第3色に近いほど前記第1補正係数および前記第2補正係数を大きくし、前記判定処理により判定された色相が前記第3色から遠いほど前記第1補正係数および前記第2補正係数を小さくすること
を特徴とする色補正処理プログラム。
In the color correction processing program according to claim 10,
The adjustment process increases the first correction coefficient and the second correction coefficient as the hue determined by the determination process is closer to the third color, and the hue determined by the determination process is changed from the third color. The color correction processing program, wherein the first correction coefficient and the second correction coefficient are decreased as the distance increases.
請求項10または請求項11に記載の色補正処理プログラムにおいて、
前記判定処理は、発光装置による照明光を用いて撮影したカラー画像データにおける前記第1色データの輝度レベル平均値、前記第2色データの輝度レベル平均値および前記第3色データの輝度レベル平均値と、前記発光装置による照明光を用いることなく撮影したカラー画像データにおける前記第1色データの輝度レベル平均値、前記第2色データの輝度レベル平均値および前記第3色データの輝度レベル平均値とに基づいて、色相を判定すること
を特徴とする色補正処理プログラム。
In the color correction processing program according to claim 10 or 11,
The determination process includes an average luminance level value of the first color data, an average luminance level value of the second color data, and an average luminance level of the third color data in color image data captured using illumination light from a light emitting device. Value and average brightness level of the first color data, average brightness level of the second color data, and average brightness level of the third color data in color image data captured without using illumination light from the light emitting device. A color correction processing program characterized by determining a hue based on a value.
請求項8から請求項12のいずれか一項に記載の色補正処理プログラムにおいて、
前記第1色は青色であり、前記第2色は緑色であり、前記第3色は赤色であること
を特徴とする色補正処理プログラム。
In the color correction processing program according to any one of claims 8 to 12,
The color correction processing program characterized in that the first color is blue, the second color is green, and the third color is red.
被写体を撮像して、第1色の第1色データと、前記第1色とは異なる第2色の第2色データと、前記第1色および前記第2色とは異なる第3色の第3色データとを有するカラー画像データを出力する撮像手段と、
前記カラー画像データに基づくカラー画像の所定領域ごとに、前記第1色データの輝度レベルに第1補正係数を乗じた第1補正値と、前記第2色データの輝度レベルに第2補正係数を乗じた第2補正値とを、前記第3色データの輝度レベルに加算する加算手段と、
前記第1色データと、前記第2色データと、前記加算手段による加算が行なわれた前記第3色データとを有するカラー画像データを記録媒体に記録させる記録手段とを備えること
を特徴とする電子カメラ。
The subject is imaged, the first color data of the first color, the second color data of the second color different from the first color, and the third color of the third color different from the first color and the second color. Imaging means for outputting color image data having three color data;
For each predetermined area of the color image based on the color image data, a first correction value obtained by multiplying the luminance level of the first color data by the first correction coefficient, and a second correction coefficient for the luminance level of the second color data. Adding means for adding the multiplied second correction value to the luminance level of the third color data;
Recording means for recording color image data having the first color data, the second color data, and the third color data added by the addition means on a recording medium. Electronic camera.
JP2005290989A 2005-10-04 2005-10-04 Color correction processing program and electronic camera Expired - Fee Related JP4752434B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005290989A JP4752434B2 (en) 2005-10-04 2005-10-04 Color correction processing program and electronic camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005290989A JP4752434B2 (en) 2005-10-04 2005-10-04 Color correction processing program and electronic camera

Publications (2)

Publication Number Publication Date
JP2007104267A JP2007104267A (en) 2007-04-19
JP4752434B2 true JP4752434B2 (en) 2011-08-17

Family

ID=38030767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005290989A Expired - Fee Related JP4752434B2 (en) 2005-10-04 2005-10-04 Color correction processing program and electronic camera

Country Status (1)

Country Link
JP (1) JP4752434B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2008156050A1 (en) * 2007-06-21 2010-08-26 株式会社ニコン Image processing method, image processing program, image processing apparatus, image processing system, electronic camera, and electronic apparatus
EP2797326A1 (en) 2013-04-22 2014-10-29 Nederlandse Organisatie voor toegepast -natuurwetenschappelijk onderzoek TNO Image color correction
JP6732440B2 (en) * 2015-12-04 2020-07-29 キヤノン株式会社 Image processing apparatus, image processing method, and program thereof

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3018914B2 (en) * 1994-08-23 2000-03-13 松下電器産業株式会社 Gradation correction device
JP3048876B2 (en) * 1995-03-30 2000-06-05 キヤノン株式会社 Image reading device
JPH11275378A (en) * 1998-03-25 1999-10-08 Fuji Photo Film Co Ltd Method and device for adjusting white balance
US6267051B1 (en) * 2000-06-01 2001-07-31 Eastman Kodak Company Method and system of implementing corrections in underwater images
JP4834938B2 (en) * 2001-08-24 2011-12-14 株式会社ニコン Two-plate image capture device
JP4197858B2 (en) * 2001-08-27 2008-12-17 富士通株式会社 Image processing program
JP2004146928A (en) * 2002-10-22 2004-05-20 Fuji Photo Film Co Ltd Underwater camera
JP4065995B2 (en) * 2003-04-24 2008-03-26 ノーリツ鋼機株式会社 Judgment method of photographic image of different color structure and photographic image processing apparatus
JP2005027092A (en) * 2003-07-03 2005-01-27 Toshiba Corp Image reader

Also Published As

Publication number Publication date
JP2007104267A (en) 2007-04-19

Similar Documents

Publication Publication Date Title
KR101388130B1 (en) Image processing apparatus and image processing method
KR100809181B1 (en) Image pickup device with brightness correcting function and method of correcting brightness of image
CN105323474B (en) Picture pick-up device and its control method
KR101352440B1 (en) Image processing apparatus, image processing method, and recording medium
JP5743696B2 (en) Image processing apparatus, image processing method, and program
US20080316354A1 (en) Method and Device for Creating High Dynamic Range Pictures from Multiple Exposures
JP5808142B2 (en) Image processing apparatus, image processing method, and program
JP2004208000A (en) Image composition method and imaging apparatus
JP7157714B2 (en) Image processing device and its control method
JP7371197B2 (en) Image processing device and its control method
JP2017022610A (en) Image processing apparatus and image processing method
JP5804856B2 (en) Image processing apparatus, image processing method, and program
JP5804857B2 (en) Image processing apparatus, image processing method, and program
JP3999321B2 (en) Electronic camera
JP5225137B2 (en) Imaging apparatus, image processing method, and program
JP4752434B2 (en) Color correction processing program and electronic camera
JP2004214836A (en) Imaging apparatus
JP2003333422A (en) Shading correction method and digital camera
JP2009022044A (en) Image processing apparatus and image processing program
JP2015122569A (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
JP2013090094A (en) Image processing device and control method for image processing device
JP2006109046A (en) Imaging device
JP6021885B2 (en) Image processing apparatus, image processing method, and program
JP6072191B2 (en) Image processing apparatus and image processing apparatus control method
JP2018056848A (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080916

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101019

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101220

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20101220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110125

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110328

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110426

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110509

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140603

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4752434

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140603

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees