JP2011239060A - Image data processor - Google Patents

Image data processor Download PDF

Info

Publication number
JP2011239060A
JP2011239060A JP2010107051A JP2010107051A JP2011239060A JP 2011239060 A JP2011239060 A JP 2011239060A JP 2010107051 A JP2010107051 A JP 2010107051A JP 2010107051 A JP2010107051 A JP 2010107051A JP 2011239060 A JP2011239060 A JP 2011239060A
Authority
JP
Japan
Prior art keywords
image data
color
color information
data
processing apparatus
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.)
Withdrawn
Application number
JP2010107051A
Other languages
Japanese (ja)
Inventor
Akira Okasaka
昭 岡阪
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2010107051A priority Critical patent/JP2011239060A/en
Publication of JP2011239060A publication Critical patent/JP2011239060A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image data processor capable of improving the quality of a YUV image data.SOLUTION: In this image data processor, a white balance adjustment circuit 52 outputs an RGB image data composed of a plurality of pixels each of which has color information of R, G and B. A YUV conversion circuit 54 mixes the color information of the RGB image data outputted by the white balance adjustment circuit 52 with respect to each pixel in a manner conforming to a mixture coefficient, and generates a YUV image data composed of a plurality of pixels each of which has brightness information. Integrators 60r, 60g and 60b integrate the color information of the RGB image data outputted by the white balance adjustment circuit 52 with respect to each common color, and calculate values of integral Ir, Ig and Ib corresponding to R, G and B respectively. A magnitude of the mixture coefficient referenced by the YUV conversion circuit 54 is adjusted on the basis of the rate of the calculated values of integral Ir, Ig and Ib.

Description

この発明は、画像データ処理装置に関し、特にディジタルカメラに適用され、複数の代表色の色情報を各々が有する複数の画素によって形成された画像データを処理する、画像データ処理装置に関する。   The present invention relates to an image data processing apparatus, and more particularly to an image data processing apparatus which is applied to a digital camera and processes image data formed by a plurality of pixels each having color information of a plurality of representative colors.

この種の装置の一例が、特許文献1に開示されている。この背景技術によれば、RデータはR用LUT1およびR用LUTの各々によって補正され,GデータはG用LUTによって補正され、そしてBデータはB用LUTによって補正される。判別選択回路は、Rデータ,GデータおよびBデータに基づいて算出されたC成分のレベルを判別して、R用LUT1およびR用LUTのいずれか一方を選択する。これによって、C成分のレベルを考慮したホワイトバランス調整が実現される。   An example of this type of device is disclosed in Patent Document 1. According to this background art, the R data is corrected by each of the R LUT 1 and the R LUT, the G data is corrected by the G LUT, and the B data is corrected by the B LUT. The discrimination selection circuit discriminates the level of the C component calculated based on the R data, the G data, and the B data, and selects one of the R LUT 1 and the R LUT. Thereby, white balance adjustment in consideration of the level of the C component is realized.

特開2001−285890号公報JP 2001-285890 A

しかし、背景技術では、RGBデータをYデータに変換するにあたってC成分のレベルが参照されることはなく、画質の向上に限界がある。   However, in the background art, the level of the C component is not referred to when converting RGB data into Y data, and there is a limit to the improvement in image quality.

それゆえに、この発明の主たる目的は、画質を向上させることができる、画像データ処理装置を提供することである。   Therefore, a main object of the present invention is to provide an image data processing apparatus capable of improving the image quality.

この発明に従う電子カメラ(10:実施例で相当する参照符号。以下同じ)は、複数の代表色の色情報を各々が有する複数の画素によって形成された第1画像データを作成する第1作成手段(50, 52)、第1作成手段によって作成された第1画像データの色情報を混合係数に従う態様で画素毎に混合して輝度情報を各々が有する複数の画素によって形成された第2画像データを作成する第2作成手段(54)、第1作成手段によって作成された第1画像データの色情報を代表色毎に積分して複数の代表色にそれぞれ対応する複数の積分値を算出する積分手段(60r, 60g, 60b)、および積分手段によって算出された複数の積分値の比率に基づいて混合係数の大きさを調整する調整手段(S23~S29)を備える。   An electronic camera according to the present invention (10: reference numeral corresponding to the embodiment; the same applies hereinafter) includes first creation means for creating first image data formed by a plurality of pixels each having color information of a plurality of representative colors. (50, 52), second image data formed by a plurality of pixels each having luminance information by mixing the color information of the first image data created by the first creating means for each pixel in a manner according to the mixing coefficient. A second creating means (54) for creating a color image, and integrating the color information of the first image data created by the first creating means for each representative color to calculate a plurality of integral values respectively corresponding to a plurality of representative colors. Means (60r, 60g, 60b) and adjusting means (S23 to S29) for adjusting the magnitude of the mixing coefficient based on the ratio of the plurality of integral values calculated by the integrating means.

好ましくは、第1作成手段によって作成された第1画像データに基づいて複数の代表色にそれぞれ対応する複数の輪郭強調成分を作成する第3作成手段(92~96)、第3作成手段によって作成された複数の輪郭強調成分を混合係数に従う態様で混合して輪郭強調データを作成する第4作成手段(98~104)、および第4作成手段によって作成された輪郭強調データを参照した輪郭強調処理を第2作成手段によって作成された第2画像データに対して実行する輪郭強調手段(58)がさらに備えられる。   Preferably, third creation means (92 to 96) for creating a plurality of contour emphasis components respectively corresponding to a plurality of representative colors based on the first image data created by the first creation means, created by the third creation means A plurality of contour emphasizing components mixed in a manner according to the mixing coefficient to create contour emphasizing data (98-104), and contour emphasizing processing with reference to the contour emphasizing data created by the fourth creating means Is further provided with a contour emphasizing means (58) for executing the above on the second image data created by the second creating means.

好ましくは、複数の代表色は赤色,緑色および青色を含み、調整手段は、赤色に対応する積分値を緑色に対応する積分値で割り算する第1割り算手段(S25)、および青色に対応する積分値を緑色に対応する積分値で割り算する第2割り算手段(S27)を含む。   Preferably, the plurality of representative colors include red, green, and blue, and the adjusting means includes first dividing means (S25) for dividing the integral value corresponding to red by the integral value corresponding to green, and the integral corresponding to blue Second division means (S27) for dividing the value by the integral value corresponding to green is included.

さらに好ましくは、第2作成手段は、第1割り算手段の割り算結果を赤色に対応する色情報に掛け算する第1掛け算手段(72)、および第2割り算手段の割り算結果を青色に対応する色情報に掛け算する第2掛け算手段(78)を含む。   More preferably, the second creation means includes a first multiplication means (72) for multiplying the division result of the first division means by the color information corresponding to red, and a color information corresponding to the division result of the second division means for blue. Second multiplying means (78) for multiplying.

好ましくは、複数の代表色にそれぞれ対応する複数のフィルタ要素がモザイク状に配列された色フィルタ(16)、および色フィルタによって覆われた撮像面を有し、複数の代表色のいずれか1つの色情報を各々が有する複数の画素によって形成された生画像データを出力する撮像手段(18)がさらに備えられ、第1作成手段は撮像手段から出力された生画像データに基づいて第1画像データを作成する。   Preferably, the image processing apparatus includes a color filter (16) in which a plurality of filter elements respectively corresponding to a plurality of representative colors are arranged in a mosaic pattern, and an imaging surface covered with the color filters, and any one of the plurality of representative colors. An imaging means (18) for outputting raw image data formed by a plurality of pixels each having color information is further provided, and the first creating means is configured to output the first image data based on the raw image data output from the imaging means. Create

好ましくは、第2画像データはYUV形式の画像データに相当する。   Preferably, the second image data corresponds to image data in YUV format.

この発明によれば、複数の積分値は、第1画像データの色情報を代表色毎に積分することで算出される。したがって、算出された複数の積分値の比率は、第1画像データによって表される画像の色調を反映する。第2画像データの輝度情報は、このような比率に応じて異なる大きさを示す混合係数を参照して作成される。これによって、第2画像データの品質を向上させることができる。   According to the present invention, the plurality of integral values are calculated by integrating the color information of the first image data for each representative color. Therefore, the calculated ratio of the plurality of integral values reflects the color tone of the image represented by the first image data. The luminance information of the second image data is created with reference to a mixing coefficient indicating a different size according to such a ratio. As a result, the quality of the second image data can be improved.

この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。   The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

この発明の基本的構成を示すブロック図である。It is a block diagram which shows the basic composition of this invention. この発明の一実施例の構成を示すブロック図である。It is a block diagram which shows the structure of one Example of this invention. 図2実施例に適用される原色フィルタの構成の一例を示す図解図である。It is an illustration figure which shows an example of a structure of the primary color filter applied to the FIG. 2 Example. 撮像面における評価エリアの割り当て状態の一例を示す図解図である。It is an illustration figure which shows an example of the allocation state of the evaluation area in an imaging surface. 図2実施例に適用される信号処理回路の構成の一例を示すブロック図である。FIG. 3 is a block diagram illustrating an example of a configuration of a signal processing circuit applied to the embodiment in FIG. 2. 図5実施例に適用されるYUV変換回路の構成の一部を示すブロック図である。FIG. 6 is a block diagram showing a part of a configuration of a YUV conversion circuit applied to the embodiment in FIG. 5; 図5実施例に適用されるアパーチャ信号生成回路の構成の一例を示すブロック図である。FIG. 6 is a block diagram showing an example of a configuration of an aperture signal generation circuit applied to the embodiment in FIG. 5. (A)は図7実施例に適用される2次微分フィルタへの入力の一例を示す波形図であり、(A)は図7実施例に適用される2次微分フィルタからの出力の一例を示す波形図である。(A) is a wave form diagram which shows an example of the input to the secondary differential filter applied to FIG. 7 Example, (A) is an example of the output from the secondary differential filter applied to FIG. 7 Example. FIG. 図2実施例に適用されるCPUの動作の一部を示すフロー図である。It is a flowchart which shows a part of operation | movement of CPU applied to the FIG. 2 Example. 図2実施例に適用されるCPUの動作の他の一部を示すフロー図である。It is a flowchart which shows a part of other operation | movement of CPU applied to the FIG. 2 Example.

以下、この発明の実施の形態を図面を参照しながら説明する。
[基本的構成]
Embodiments of the present invention will be described below with reference to the drawings.
[Basic configuration]

図1を参照して、この発明の画像データ処理装置は、基本的に次のように構成される。第1作成手段1は、複数の代表色の色情報を各々が有する複数の画素によって形成された第1画像データを作成する。第2作成手段2は、第1作成手段1によって作成された第1画像データの色情報を混合係数に従う態様で画素毎に混合して輝度情報を各々が有する複数の画素によって形成された第2画像データを作成する。積分手段3は、第1作成手段1によって作成された第1画像データの色情報を代表色毎に積分して複数の代表色にそれぞれ対応する複数の積分値を算出する。調整手段4は、積分手段3によって算出された複数の積分値の比率に基づいて混合係数の大きさを調整する。   Referring to FIG. 1, the image data processing apparatus of the present invention is basically configured as follows. The first creation means 1 creates first image data formed by a plurality of pixels each having color information of a plurality of representative colors. The second creating means 2 mixes color information of the first image data created by the first creating means 1 for each pixel in a manner according to the mixing coefficient, and is formed by a plurality of pixels each having luminance information. Create image data. The integrating unit 3 integrates the color information of the first image data created by the first creating unit 1 for each representative color, and calculates a plurality of integrated values respectively corresponding to a plurality of representative colors. The adjusting unit 4 adjusts the size of the mixing coefficient based on the ratio of the plurality of integral values calculated by the integrating unit 3.

複数の積分値は、第1画像データの色情報を代表色毎に積分することで算出される。したがって、算出された複数の積分値の比率は、第1画像データによって表される画像の色調を反映する。第2画像データは、このような比率に応じて異なる大きさを示す混合係数を参照して作成される。これによって、第2画像データの品質を向上させることができる。
[実施例]
The plurality of integral values are calculated by integrating the color information of the first image data for each representative color. Therefore, the calculated ratio of the plurality of integral values reflects the color tone of the image represented by the first image data. The second image data is created with reference to a mixing coefficient indicating a different size according to such a ratio. As a result, the quality of the second image data can be improved.
[Example]

図2を参照して、この実施例のディジタルカメラ10は、ドライバ20aおよび20bによってそれぞれ駆動されるフォーカスレンズ12および絞り機構14を含む。フォーカスレンズ12および絞り機構14を経た被写界の光学像は、撮像装置18の撮像面に照射される。   Referring to FIG. 2, the digital camera 10 of this embodiment includes a focus lens 12 and an aperture mechanism 14 driven by drivers 20a and 20b, respectively. The optical image of the object scene that has passed through the focus lens 12 and the diaphragm mechanism 14 is irradiated onto the imaging surface of the imaging device 18.

撮像面には複数の受光素子(=画素)が2次元状に配置され、撮像面は図3に示す原色ベイヤ配列の色フィルタ16によって覆われる。色フィルタ16は、具体的には、R(Red)のフィルタ要素,G(Green)のフィルタ要素およびB(Blue)のフィルタ要素がモザイク状に配列されたフィルタに相当する。撮像面に配置された受光素子は色フィルタ16を構成するフィルタ要素と1対1で対応し、各受光素子で生成される電荷の量はR,GまたはBの色に対応する光の強度を反映する。   A plurality of light receiving elements (= pixels) are two-dimensionally arranged on the imaging surface, and the imaging surface is covered with a primary color Bayer array color filter 16 shown in FIG. Specifically, the color filter 16 corresponds to a filter in which R (Red) filter elements, G (Green) filter elements, and B (Blue) filter elements are arranged in a mosaic pattern. The light receiving elements arranged on the imaging surface have a one-to-one correspondence with the filter elements constituting the color filter 16, and the amount of charge generated by each light receiving element indicates the intensity of light corresponding to the R, G, or B color. reflect.

電源が投入されると、CPU32は、撮像タスクの下で動画取り込み処理を実行するべく、ドライバ20cに露光動作および電荷読み出し動作の繰り返しを命令する。ドライバ20cは、図示しないSG(Signal Generator)から出力された垂直同期信号Vsyncに応答して、撮像面を露光し、かつこれによって生成された電荷をラスタ走査態様で読み出す。撮像装置18からは、読み出された電荷に基づく生画像データが周期的に出力される。出力される生画像データは、各画素がR,GおよびBのいずれか1つの色情報を有する画像データに相当する。   When the power is turned on, the CPU 32 instructs the driver 20c to repeat the exposure operation and the charge readout operation in order to execute the moving image capturing process under the imaging task. In response to a vertical synchronization signal Vsync output from an SG (Signal Generator) (not shown), the driver 20c exposes the imaging surface and reads out the charges generated thereby in a raster scanning manner. From the imaging device 18, raw image data based on the read charges is periodically output. The output raw image data corresponds to image data in which each pixel has color information of any one of R, G, and B.

信号処理回路22は、このような生画像データに色分離を施して各画素がR,GおよびBの全ての色情報を有するRGB画像データを作成し、作成されたRGB画像データに白バランス調整を施す。信号処理回路22はさらに、調整された白バランスを有するRGB画像データを各画素が輝度情報(=Y)と色差情報(UまたはV)とを有するYUV画像データに変換し、変換されたYUV画像データに輪郭強調処理を施す。強調された輪郭を有するYUV画像データは、メモリ制御回路24を通してSDRAM26に書き込まれる。   The signal processing circuit 22 performs color separation on such raw image data to create RGB image data in which each pixel has all color information of R, G, and B, and adjusts white balance to the created RGB image data. Apply. The signal processing circuit 22 further converts the RGB image data having the adjusted white balance into YUV image data in which each pixel has luminance information (= Y) and color difference information (U or V), and the converted YUV image Perform edge enhancement processing on the data. The YUV image data having the emphasized outline is written into the SDRAM 26 through the memory control circuit 24.

LCDドライバ28は、SDRAM26に格納された画像データをメモリ制御回路24を通して繰り返し読み出し、読み出された画像データに基づいてLCDモニタ30を駆動する。この結果、被写界を表す動画像(スルー画像)がモニタ画面に表示される。   The LCD driver 28 repeatedly reads out the image data stored in the SDRAM 26 through the memory control circuit 24, and drives the LCD monitor 30 based on the read image data. As a result, a moving image (through image) representing the scene is displayed on the monitor screen.

図4を参照して、撮像面の中央には評価エリアEVAが割り当てられる。評価エリアEVAは水平方向および垂直方向の各々において16分割され、256個の分割エリアが評価エリアEVAを形成する。   Referring to FIG. 4, an evaluation area EVA is assigned to the center of the imaging surface. The evaluation area EVA is divided into 16 in each of the horizontal direction and the vertical direction, and 256 divided areas form the evaluation area EVA.

信号処理回路22は、上述した処理に加えて、白バランス調整後のRGB画像データを形成するRデータ,GデータおよびBデータの各々を分割エリア毎に積分し、YUV画像データを形成するYデータを分割エリア毎に積分し、そしてYUV画像データを形成するYデータの高周波成分を分割エリア毎に積分する。この結果、256個のR評価値,256個のG評価値および256個のB評価値がRGB画像データに基づいて生成され、256個の輝度評価値がYデータに基づいて生成され、そして256個のフォーカス評価値がYデータの高周波成分に基づいて生成される。   In addition to the processing described above, the signal processing circuit 22 integrates R data, G data, and B data forming RGB image data after white balance adjustment for each divided area, and generates Y data that forms YUV image data. Is integrated for each divided area, and the high frequency component of the Y data forming the YUV image data is integrated for each divided area. As a result, 256 R evaluation values, 256 G evaluation values, and 256 B evaluation values are generated based on the RGB image data, 256 luminance evaluation values are generated based on the Y data, and 256. The focus evaluation values are generated based on the high frequency component of the Y data.

なお、積分処理はいずれも垂直同期信号Vsyncが発生する毎に実行され、R評価値,G評価値,B評価値,輝度評価値およびフォーカス評価値は垂直同期信号Vsyncに応答して信号処理回路22から出力される。   All the integration processes are executed each time the vertical synchronization signal Vsync is generated, and the R evaluation value, the G evaluation value, the B evaluation value, the luminance evaluation value, and the focus evaluation value are signal processing circuits in response to the vertical synchronization signal Vsync. 22 is output.

キー入力装置34に設けられたシャッタボタン34shが非操作状態のとき、CPU32は、信号処理回路22から出力された輝度評価値に基づいて適正EV値を算出するべく簡易AE処理を繰り返し実行し、信号処理回路22から出力されたR評価値,G評価値およびB評価値に基づいて白バランス調整用の適正ゲインを算出するべく簡易AWB処理を繰り返し実行する。   When the shutter button 34sh provided in the key input device 34 is in a non-operating state, the CPU 32 repeatedly executes a simple AE process to calculate an appropriate EV value based on the luminance evaluation value output from the signal processing circuit 22, Based on the R evaluation value, the G evaluation value, and the B evaluation value output from the signal processing circuit 22, the simple AWB process is repeatedly executed in order to calculate an appropriate gain for white balance adjustment.

簡易AE処理によって算出された適正EV値を定義する絞り量および露光時間は、ドライバ18bおよび18cにそれぞれ設定される。また、簡易AWB処理によって算出された適正ゲインは、信号処理回路22に設定される。この結果、スルー画像の明るさおよび白バランスが適度に調整される。   The aperture amount and the exposure time that define the appropriate EV value calculated by the simple AE process are set in the drivers 18b and 18c, respectively. Further, the appropriate gain calculated by the simple AWB process is set in the signal processing circuit 22. As a result, the brightness and white balance of the through image are appropriately adjusted.

シャッタボタン34shが半押しされると、CPU32は、信号処理回路22から出力された輝度評価値に基づいて最適EV値を算出するべく厳格AE処理を実行し、信号処理回路22から出力されたR評価値,G評価値およびB評価値に基づいて白バランス調整用の最適ゲインを算出するべく厳格AWB処理を実行する。   When the shutter button 34 sh is half-pressed, the CPU 32 executes a strict AE process to calculate the optimum EV value based on the luminance evaluation value output from the signal processing circuit 22, and the R output from the signal processing circuit 22. A strict AWB process is executed to calculate an optimum gain for white balance adjustment based on the evaluation value, the G evaluation value, and the B evaluation value.

上述と同様、厳格AE処理によって算出された最適EV値を定義する絞り量および露光時間は、ドライバ18bおよび18cにそれぞれ設定される。また、厳格AWB処理によって算出された最適ゲインは、信号処理回路22に設定される。この結果、スルー画像の明るさおよび白バランスが最適値に調整される。   As described above, the aperture amount and the exposure time that define the optimum EV value calculated by the strict AE process are set in the drivers 18b and 18c, respectively. In addition, the optimum gain calculated by the strict AWB process is set in the signal processing circuit 22. As a result, the brightness and white balance of the through image are adjusted to optimum values.

CPU32は続いて、AF処理を実行する。フォーカスレンズ12は光軸方向に移動され、信号処理回路22から出力されたフォーカス評価値はフォーカスレンズ12の移動処理と並列して繰り返し取り込まれる。合焦点は取り込まれたフォーカス評価値に基づいて探索され、フォーカスレンズ12は発見された合焦点に配置される。これによって、スルー画像の鮮鋭度が向上する。   Subsequently, the CPU 32 executes AF processing. The focus lens 12 is moved in the optical axis direction, and the focus evaluation value output from the signal processing circuit 22 is repeatedly captured in parallel with the movement processing of the focus lens 12. The focal point is searched based on the taken focus evaluation value, and the focus lens 12 is placed at the found focal point. This improves the sharpness of the live view image.

シャッタボタン34shが全押しされると、CPU32は、静止画取り込み処理を実行する。シャッタボタン34shが全押しされた時点の被写界を表す1フレームの画像データは、SDRAM26に設けられたワークエリア(図示せず)に退避される。静止画取り込み処理が完了すると、CPU32は記録処理のためにI/F36を起動する。I/F36は、ワークエリアに退避された画像データをメモリ制御回路24を通して読み出し、読み出された画像データをファイル形式で記録媒体38に記録する。   When the shutter button 34sh is fully pressed, the CPU 32 executes a still image capturing process. One frame of image data representing the object scene at the time when the shutter button 34 sh is fully pressed is saved in a work area (not shown) provided in the SDRAM 26. When the still image capturing process is completed, the CPU 32 activates the I / F 36 for the recording process. The I / F 36 reads the image data saved in the work area through the memory control circuit 24 and records the read image data on the recording medium 38 in a file format.

信号処理回路22は、図5に示すように構成される。色分離回路50は、撮像装置18から入力された生画像データに色分離処理を施して、各画素がR,GおよびBの全ての色情報を有するRGB画像データを作成する。作成されたRGB画像データのうち、Rデータは白バランス調整回路52を構成する増幅器52rを経てYUV変換回路54に与えられ、GデータはそのままYUV変換回路54に与えられ、そしてBデータは白バランス調整回路52を構成する増幅器52bを経てYUV変換回路54に与えられる。   The signal processing circuit 22 is configured as shown in FIG. The color separation circuit 50 performs color separation processing on the raw image data input from the imaging device 18 to create RGB image data in which each pixel has all R, G, and B color information. Among the created RGB image data, the R data is supplied to the YUV conversion circuit 54 through the amplifier 52r constituting the white balance adjustment circuit 52, the G data is supplied to the YUV conversion circuit 54 as it is, and the B data is white balance. The signal is supplied to the YUV conversion circuit 54 through the amplifier 52b constituting the adjustment circuit 52.

増幅器52rはRデータをゲインαに従って増幅し、増幅器52bはBデータをゲインβに従って増幅する。ここで、ゲインαおよびβは、簡易AWB処理によって算出された適正ゲインまたは厳格AWB処理によって算出された最適ゲインを定義するパラメータである。RGB画像データの白バランスは、簡易AWB処理によって適度に調整され、厳格AWB処理によって最適値に調整される。   The amplifier 52r amplifies the R data according to the gain α, and the amplifier 52b amplifies the B data according to the gain β. Here, the gains α and β are parameters that define an appropriate gain calculated by the simple AWB process or an optimum gain calculated by the strict AWB process. The white balance of the RGB image data is appropriately adjusted by the simple AWB process, and is adjusted to the optimum value by the strict AWB process.

YUV変換回路54は、こうして調整された白バランスを有するRGB画像データを、各画素が輝度情報(=Y)と色差情報(UまたはV)とを有するYUV画像データに変換する。変換されたYUV画像データのうち、UデータおよびVデータはそのまま出力され、Yデータは加算器58を介して出力される。   The YUV conversion circuit 54 converts the RGB image data having the white balance adjusted in this way into YUV image data in which each pixel has luminance information (= Y) and color difference information (U or V). Of the converted YUV image data, U data and V data are output as they are, and Y data is output via the adder 58.

アパーチャ信号作成回路56は、白バランス調整回路52から出力されたRGB画像データに基づいて、アパーチャデータ(輪郭強調データ)を作成する。作成されたアパーチャデータは、加算器58に与えられる。加算器58は、輪郭強調処理を実行するべく、Yデータからアパーチャデータを減算する。これによって、Yデータの輪郭が強調される。   The aperture signal creation circuit 56 creates aperture data (outline enhancement data) based on the RGB image data output from the white balance adjustment circuit 52. The created aperture data is given to the adder 58. The adder 58 subtracts the aperture data from the Y data in order to execute the contour enhancement process. As a result, the contour of the Y data is emphasized.

白バランス調整回路52から出力されたRGB画像データはまた、積分器60r,60bおよび60gに与えられる。積分器60rは、RGB画像データを形成するRデータを、垂直同期信号Vsyncに応答して分割エリア毎に積分する。積分器60gは、RGB画像データを形成するGデータを、垂直同期信号Vsyncに応答して分割エリア毎に積分する。積分器60bは、RGB画像データを形成するBデータを、垂直同期信号Vsyncに応答して分割エリア毎に積分する。   The RGB image data output from the white balance adjustment circuit 52 is also supplied to the integrators 60r, 60b, and 60g. The integrator 60r integrates the R data forming the RGB image data for each divided area in response to the vertical synchronization signal Vsync. The integrator 60g integrates the G data forming the RGB image data for each divided area in response to the vertical synchronization signal Vsync. The integrator 60b integrates the B data forming the RGB image data for each divided area in response to the vertical synchronization signal Vsync.

この結果、256個の積分値Ir,Ir,…がR評価値として積分器60rから出力され、256個の積分値Ig,Ig,…がG評価値として積分器60gから出力され、そして256個の積分値Ib,Ib,…がB評価値として積分器60bから出力される。   As a result, 256 integral values Ir, Ir,... Are output as R evaluation values from the integrator 60r, 256 integral values Ig, Ig,... Are output as G evaluation values from the integrator 60g, and 256 pieces. Are output from the integrator 60b as B evaluation values.

HPF62は加算器58から出力されたYデータの高周波成分を抽出し、積分器64は抽出された高周波成分を垂直同期信号Vsyncに応答して分割エリア毎に積分する。 また、積分器66は、加算器58から出力されたYデータを垂直同期信号Vsyncに応答して分割エリア毎に積分する。この結果、256個の積分値Ihy,Ihy,…がフォーカス評価値として積分器64から出力され、256個の積分値Iy,Iy,…が輝度評価値として積分器66から出力される。   The HPF 62 extracts the high-frequency component of the Y data output from the adder 58, and the integrator 64 integrates the extracted high-frequency component for each divided area in response to the vertical synchronization signal Vsync. The integrator 66 integrates the Y data output from the adder 58 for each divided area in response to the vertical synchronization signal Vsync. As a result, 256 integral values Ihy, Ihy,... Are output from the integrator 64 as focus evaluation values, and 256 integral values Iy, Iy,.

YUV変換回路54は、RGB画像データのYデータへの変換に関連して図6に示すように構成される。RGB画像データのうち、Rデータは掛け算器70によって3倍に増幅され、Gデータは掛け算器74によって6倍に増幅され、そしてBデータは掛け算器78によって“Kb_n”倍に増幅される。掛け算器70の出力は掛け算器72によって“Kr_n“倍に増幅され、掛け算器72の出力は加算器76によって掛け算器74の出力と加算される。また、加算器76の出力は、加算器80によって掛け算器78の出力と加算される。こうして、Yデータが加算器80から出力される。   The YUV conversion circuit 54 is configured as shown in FIG. 6 in connection with the conversion of RGB image data into Y data. Of the RGB image data, R data is amplified by a factor of three by a multiplier, G data is amplified by a factor of six by a multiplier 74, and B data is amplified by a multiplier 78 by a factor of “Kb_n”. The output of the multiplier 70 is amplified by “Kr_n” times by the multiplier 72, and the output of the multiplier 72 is added to the output of the multiplier 74 by the adder 76. The output of the adder 76 is added to the output of the multiplier 78 by the adder 80. Thus, the Y data is output from the adder 80.

アパーチャ信号作成回路56は、図7に示すように構成される。RGB画像データのうち、Rデータは2次微分フィルタ92で2次微分処理を施され、Gデータは2次微分フィルタ94で2次微分処理を施され、そしてBデータは2次微分フィルタ96で2次微分処理を施される。2次微分フィルタ92,94または96への入力が図8(A)に示すように変化するとき、2次微分フィルタ92,94または96からの出力は図8(B)に示すように変化する。   The aperture signal generation circuit 56 is configured as shown in FIG. Among the RGB image data, the R data is subjected to the second order differential processing by the second order differential filter 92, the G data is subjected to the second order differential processing by the second order differential filter 94, and the B data is processed by the second order differential filter 96. A secondary differentiation process is performed. When the input to the secondary differential filter 92, 94 or 96 changes as shown in FIG. 8A, the output from the secondary differential filter 92, 94 or 96 changes as shown in FIG. 8B. .

2次微分フィルタ92の出力は掛け算器98によって“Kr_n”倍に増幅され、掛け算器98の出力は加算器100によって2次微分フィルタ94の出力と加算される。2次微分フィルタ96の出力は掛け算器102によって“Kb_n”倍に増幅され、掛け算器102の出力は加算器104によって加算器100の出力と加算される。こうして、アパーチャ信号が加算器104から出力される。   The output of the secondary differential filter 92 is amplified “Kr_n” times by the multiplier 98, and the output of the multiplier 98 is added to the output of the secondary differential filter 94 by the adder 100. The output of the secondary differential filter 96 is amplified by “Kb_n” times by the multiplier 102, and the output of the multiplier 102 is added to the output of the adder 100 by the adder 104. Thus, the aperture signal is output from the adder 104.

“Kr_n”および“Kb_n”は混合係数に相当し、CPU32の係数調整タスクによって以下の要領で調整される。垂直同期信号Vsyncが発生すると、CPU32は、積分器60rから出力された256個のR評価値の総和を“Kr”として算出し、積分器60gから出力された256個のG評価値の総和を“Kg”として算出し、積分器60bから出力された256個のB評価値の総和を“Kb”として算出する。算出されたた総和Kr,KgおよびKbはR,GおよびBに対応付けられ、これによって被写界像の色調がRGB比率として測定される。総和KrおよびKbの各々は総和Kgを参照して正規化され、これによって混合係数Kr_nおよびKb_nが算出される。   “Kr_n” and “Kb_n” correspond to mixing coefficients, and are adjusted by the coefficient adjustment task of the CPU 32 in the following manner. When the vertical synchronization signal Vsync is generated, the CPU 32 calculates the sum of 256 R evaluation values output from the integrator 60r as “Kr”, and calculates the total of 256 G evaluation values output from the integrator 60g. It is calculated as “Kg”, and the total sum of 256 B evaluation values output from the integrator 60b is calculated as “Kb”. The calculated sums Kr, Kg, and Kb are associated with R, G, and B, whereby the color tone of the object scene image is measured as the RGB ratio. Each of the sums Kr and Kb is normalized with reference to the sum Kg, thereby calculating the mixing coefficients Kr_n and Kb_n.

CPU32は、図9に示す撮像タスクおよび図10に示す係数調整タスクを含む複数のタスクを並列的に実行する。これらのタスクに対応する制御プログラムは、フラッシュメモリ40に記憶される。   The CPU 32 executes a plurality of tasks including the imaging task shown in FIG. 9 and the coefficient adjustment task shown in FIG. 10 in parallel. Control programs corresponding to these tasks are stored in the flash memory 40.

図9を参照して、ステップS1では動画取込み処理を実行する。この結果、被写界を表すスルー画像がLCDモニタ30に表示される。ステップS3ではシャッタボタン34shが操作されたか否かを判別し、判別結果がNOであればステップS5で簡易AE処理および簡易AWB処理を繰り返し実行する。この結果、スルー画像の明るさおよび白バランスが適度に調整される。   Referring to FIG. 9, in step S1, a moving image capturing process is executed. As a result, a through image representing the scene is displayed on the LCD monitor 30. In step S3, it is determined whether or not the shutter button 34sh has been operated. If the determination result is NO, the simple AE process and the simple AWB process are repeatedly executed in step S5. As a result, the brightness and white balance of the through image are appropriately adjusted.

ステップS3の判別結果がNOからYESに更新されると、ステップS7で厳格AE処理および厳格AWB処理を実行し、ステップS9でAF処理を実行する。この結果、スルー画像の明るさおよび白バランスが厳格に調整され、スルー画像の鮮鋭度が向上する。ステップS11ではシャッタボタン34shが全押しされたか否かを判別し、ステップS13ではシャッタボタン34shの操作が解除されたか否かを判別する。   When the determination result in step S3 is updated from NO to YES, the strict AE process and the strict AWB process are executed in step S7, and the AF process is executed in step S9. As a result, the brightness and white balance of the through image are strictly adjusted, and the sharpness of the through image is improved. In step S11, it is determined whether or not the shutter button 34sh has been fully pressed. In step S13, it is determined whether or not the operation of the shutter button 34sh has been released.

ステップS11の判別結果がYESであれば、ステップS15で静止画取り込み処理を実行し、ステップS17で記録処理を実行する。これによって、シャッタボタン34shが全押しされた時点の被写界を表す画像データがファイル形式で記録媒体38に記録される。記録処理が完了すると、ステップS3に戻る。ステップS13の判別結果がYESであれば、ステップS15およびS17の処理を実行することなくステップS3に戻る。   If the decision result in the step S11 is YES, a still image capturing process is executed in a step S15, and a recording process is executed in a step S17. As a result, image data representing the object scene at the time when the shutter button 34 sh is fully pressed is recorded on the recording medium 38 in a file format. When the recording process is completed, the process returns to step S3. If the determination result of step S13 is YES, it will return to step S3, without performing the process of step S15 and S17.

図10を参照して、ステップS21では垂直同期信号Vsyncが発生したか否かを判別し、判別結果がNOからYESに更新されると、ステップS23でRGBの比率を測定する。具体的には、積分器60rから出力された256個のR評価値の総和を“Kr”として算出し、積分器60gから出力された256個のG評価値の総和を“Kg”として算出し、積分器60bから出力された256個のB評価値の総和を“Kb”として算出し、算出された総和Kr,KgおよびKbをR,GおよびBに対応付ける。   Referring to FIG. 10, in step S21, it is determined whether or not the vertical synchronization signal Vsync has been generated. If the determination result is updated from NO to YES, the RGB ratio is measured in step S23. Specifically, the sum of 256 R evaluation values output from the integrator 60r is calculated as “Kr”, and the sum of 256 G evaluation values output from the integrator 60g is calculated as “Kg”. The total of 256 B evaluation values output from the integrator 60b is calculated as “Kb”, and the calculated totals Kr, Kg, and Kb are associated with R, G, and B.

ステップS25では総和Krを総和Kgで割り算してRの比率を正規化し、ステップS27では総和Kbを総和Kgで割り算してBの比率を正規化する。ステップS25の処理によって混合係数Kr_nが算出され、ステップS27の処理によって混合係数Kb_nが算出される。ステップS29では、算出された混合係数Kr_nおよびKb_nをYUV変換回路54の掛け算器72および78にそれぞれ設定する。ステップS31では、算出された混合係数Kr_nおよびKb_nをアパーチャ信号作成回路56の掛け算器98および102にそれぞれ設定する。ステップS31の処理が完了すると、ステップS21に戻る。   In step S25, the sum Kr is divided by the sum Kg to normalize the R ratio, and in step S27, the sum Kb is divided by the sum Kg to normalize the B ratio. The mixing coefficient Kr_n is calculated by the process of step S25, and the mixing coefficient Kb_n is calculated by the process of step S27. In step S29, the calculated mixing coefficients Kr_n and Kb_n are set in the multipliers 72 and 78 of the YUV conversion circuit 54, respectively. In step S31, the calculated mixing coefficients Kr_n and Kb_n are set in the multipliers 98 and 102 of the aperture signal generation circuit 56, respectively. When the process of step S31 is completed, the process returns to step S21.

以上の説明から分かるように、白バランス調整回路52は、R,GおよびBの色情報を各々が有する複数の画素によって形成されたRGB画像データを出力する。YUV変換回路54は、白バランス調整回路52から出力されたRGB画像データの色情報を混合係数Kr_nおよびKb_nに従う態様で画素毎に混合して、輝度情報を各々が有する複数の画素によって形成されたYUV画像データを作成する。積分器60r,60gおよび60bは、白バランス調整回路52から出力されたRGB画像データの色情報を共通の色毎に積分して、256個のR評価値,256個のG評価値および256個のB評価値を算出する。CPU36は、算出されたR評価値,G評価値およびB評価値の総和を“Kr”,“Kg”および“Kb”として求め(S23)、総和Kr,KgおよびKbの比率に基づいて混合係数Kr_nおよびKb_nの大きさを調整する(S25~S27)。   As can be seen from the above description, the white balance adjustment circuit 52 outputs RGB image data formed by a plurality of pixels each having R, G, and B color information. The YUV conversion circuit 54 is formed by a plurality of pixels each having luminance information by mixing the color information of the RGB image data output from the white balance adjustment circuit 52 for each pixel in a manner according to the mixing coefficients Kr_n and Kb_n. YUV image data is created. The integrators 60r, 60g, and 60b integrate the color information of the RGB image data output from the white balance adjustment circuit 52 for each common color, 256 R evaluation values, 256 G evaluation values, and 256 pieces. B evaluation value is calculated. The CPU 36 obtains the sum of the calculated R evaluation value, G evaluation value, and B evaluation value as “Kr”, “Kg”, and “Kb” (S23), and based on the ratio of the sum Kr, Kg, and Kb, the mixing coefficient The magnitudes of Kr_n and Kb_n are adjusted (S25 to S27).

R評価値,G評価値およびB評価値は、RGB画像データの色情報を共通の色毎に積分することで算出される。したがって、総和Kr,KgおよびKbの比率は、RGB画像データによって表される画像の色調を反映する。YUV画像データは、このような比率に応じて異なる大きさを示す混合係数Kr_nおよびKb_nを参照して作成される。これによって、YUV画像データの品質を向上させることができる。   The R evaluation value, the G evaluation value, and the B evaluation value are calculated by integrating the color information of the RGB image data for each common color. Therefore, the ratio of the sums Kr, Kg, and Kb reflects the color tone of the image represented by the RGB image data. The YUV image data is created with reference to the mixing coefficients Kr_n and Kb_n indicating different sizes according to such a ratio. Thereby, the quality of the YUV image data can be improved.

なお、この実施例では、静止画像を記録するスチルカメラを想定しているが、この発明は動画像を記録するムービカメラにも適用できる。   In this embodiment, a still camera for recording a still image is assumed. However, the present invention can also be applied to a movie camera for recording a moving image.

10 …ディジタルカメラ
18 …撮像装置
22 …信号処理回路
32 …CPU
52 …白バランス調整回路
54 …YUV変換回路
56 …アパーチャ信号作成回路
60r,60b,60g …積分器
DESCRIPTION OF SYMBOLS 10 ... Digital camera 18 ... Imaging device 22 ... Signal processing circuit 32 ... CPU
52 ... White balance adjustment circuit 54 ... YUV conversion circuit 56 ... Aperture signal generation circuit 60r, 60b, 60g ... Integrator

Claims (6)

複数の代表色の色情報を各々が有する複数の画素によって形成された第1画像データを作成する第1作成手段、
前記第1作成手段によって作成された第1画像データの色情報を混合係数に従う態様で画素毎に混合して輝度情報を各々が有する複数の画素によって形成された第2画像データを作成する第2作成手段、
前記第1作成手段によって作成された第1画像データの色情報を代表色毎に積分して前記複数の代表色にそれぞれ対応する複数の積分値を算出する積分手段、および
前記積分手段によって算出された複数の積分値の比率に基づいて前記混合係数の大きさを調整する調整手段を備える、画像データ処理装置。
First creation means for creating first image data formed by a plurality of pixels each having color information of a plurality of representative colors;
A second image data formed by a plurality of pixels each having luminance information by mixing color information of the first image data generated by the first generation means for each pixel in a manner according to a mixing coefficient. Creation means,
Integration means for integrating the color information of the first image data created by the first creation means for each representative color to calculate a plurality of integral values respectively corresponding to the plurality of representative colors; and calculated by the integration means An image data processing apparatus comprising adjustment means for adjusting the size of the mixing coefficient based on a ratio of a plurality of integral values.
前記第1作成手段によって作成された第1画像データに基づいて前記複数の代表色にそれぞれ対応する複数の輪郭強調成分を作成する第3作成手段、
前記第3作成手段によって作成された複数の輪郭強調成分を前記混合係数に従う態様で混合して輪郭強調データを作成する第4作成手段、および
前記第4作成手段によって作成された輪郭強調データを参照した輪郭強調処理を前記第2作成手段によって作成された第2画像データに対して実行する輪郭強調手段をさらに備える、請求項1記載の画像データ処理装置。
Third creation means for creating a plurality of edge enhancement components respectively corresponding to the plurality of representative colors based on the first image data created by the first creation means;
A fourth creation means for creating a contour enhancement data by mixing a plurality of contour enhancement components created by the third creation means in a manner according to the mixing coefficient; and refer to the contour enhancement data created by the fourth creation means The image data processing apparatus according to claim 1, further comprising contour enhancement means for executing the contour enhancement processing performed on the second image data created by the second creation means.
前記複数の代表色は赤色,緑色および青色を含み、
前記調整手段は、前記赤色に対応する積分値を前記緑色に対応する積分値で割り算する第1割り算手段、および前記青色に対応する積分値を前記緑色に対応する積分値で割り算する第2割り算手段を含む、請求項1または2記載の画像データ処理装置。
The plurality of representative colors include red, green and blue,
The adjustment means includes first division means for dividing the integral value corresponding to the red color by the integral value corresponding to the green color, and second division for dividing the integral value corresponding to the blue color by the integral value corresponding to the green color. The image data processing apparatus according to claim 1, comprising means.
前記第2作成手段は、前記第1割り算手段の割り算結果を前記赤色に対応する色情報に掛け算する第1掛け算手段、および前記第2割り算手段の割り算結果を前記青色に対応する色情報に掛け算する第2掛け算手段を含む、請求項3記載の画像データ処理装置。   The second creating means multiplies the division result of the first division means by the color information corresponding to the red color, and the division result of the second division means is multiplied by the color information corresponding to the blue color. The image data processing apparatus according to claim 3, further comprising a second multiplying unit. 前記複数の代表色にそれぞれ対応する複数のフィルタ要素がモザイク状に配列された色フィルタ、および
前記色フィルタによって覆われた撮像面を有し、前記複数の代表色のいずれか1つの色情報を各々が有する複数の画素によって形成された生画像データを出力する撮像手段をさらに備え、
前記第1作成手段は前記撮像手段から出力された生画像データに基づいて前記第1画像データを作成する、請求項1ないし4のいずれかに記載の画像データ処理装置。
A color filter in which a plurality of filter elements respectively corresponding to the plurality of representative colors are arranged in a mosaic pattern, and an imaging surface covered by the color filter, and color information of any one of the plurality of representative colors It further comprises imaging means for outputting raw image data formed by a plurality of pixels each having,
5. The image data processing apparatus according to claim 1, wherein the first creation unit creates the first image data based on raw image data output from the imaging unit.
前記第2画像データはYUV形式の画像データに相当する、請求項1ないし5のいずれかに記載の画像データ処理装置。   6. The image data processing apparatus according to claim 1, wherein the second image data corresponds to image data in a YUV format.
JP2010107051A 2010-05-07 2010-05-07 Image data processor Withdrawn JP2011239060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010107051A JP2011239060A (en) 2010-05-07 2010-05-07 Image data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010107051A JP2011239060A (en) 2010-05-07 2010-05-07 Image data processor

Publications (1)

Publication Number Publication Date
JP2011239060A true JP2011239060A (en) 2011-11-24

Family

ID=45326589

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010107051A Withdrawn JP2011239060A (en) 2010-05-07 2010-05-07 Image data processor

Country Status (1)

Country Link
JP (1) JP2011239060A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018014376A1 (en) * 2016-07-20 2018-01-25 深圳市华星光电技术有限公司 White balance adjustment method and system for display apparatus
CN110166714A (en) * 2019-04-11 2019-08-23 深圳市朗驰欣创科技股份有限公司 Double light fusion methods of adjustment, double light fusion adjustment device and double light fusion devices
CN113436285A (en) * 2021-08-26 2021-09-24 中兴通讯股份有限公司 Color space conversion method and device, electronic equipment and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018014376A1 (en) * 2016-07-20 2018-01-25 深圳市华星光电技术有限公司 White balance adjustment method and system for display apparatus
CN110166714A (en) * 2019-04-11 2019-08-23 深圳市朗驰欣创科技股份有限公司 Double light fusion methods of adjustment, double light fusion adjustment device and double light fusion devices
CN113436285A (en) * 2021-08-26 2021-09-24 中兴通讯股份有限公司 Color space conversion method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
WO2017098897A1 (en) Imaging device, imaging control method, and program
KR101099401B1 (en) Image processing apparatus and computer-readable medium
JP6732726B2 (en) Imaging device, imaging method, and program
JP5622513B2 (en) Image processing apparatus, image processing method, and imaging apparatus
KR101352440B1 (en) Image processing apparatus, image processing method, and recording medium
JP2002290829A (en) Image processor, program, and recording medium
CN1992820A (en) Digital camera with face detection function for facilitating exposure compensation
US8085323B2 (en) Image processing apparatus, image processing method and image pickup apparatus
CN103813097A (en) Imaging apparatus and imaging method
US8786728B2 (en) Image processing apparatus, image processing method, and storage medium storing image processing program
JP2005347811A (en) White balance correction apparatus and white balance correction method, program and electronic camera apparatus
US8390693B2 (en) Image processing apparatus
JP4158029B2 (en) White balance adjustment method and electronic camera
JP2011239060A (en) Image data processor
JP6032912B2 (en) Imaging apparatus, control method thereof, and program
US7932940B2 (en) Apparatus for edge enhancement and peaking signal generation based on a target hue
JP2013085040A (en) Image processing apparatus
JP2004088408A (en) Digital camera
WO2014175273A1 (en) Image capture device and control method thereof
JP2009022044A (en) Image processing apparatus and image processing program
JP2004222160A (en) Digital camera
JP2009081526A (en) Imaging apparatus
JP2007104267A (en) Color correction processing program and electronic camera
JP2024026649A (en) Imaging apparatus and imaging method
JP2011249955A (en) Image processing device

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20130404

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20130521

A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20130806