JP2007094917A - Image processing device, image processing method, and program - Google Patents

Image processing device, image processing method, and program Download PDF

Info

Publication number
JP2007094917A
JP2007094917A JP2005285740A JP2005285740A JP2007094917A JP 2007094917 A JP2007094917 A JP 2007094917A JP 2005285740 A JP2005285740 A JP 2005285740A JP 2005285740 A JP2005285740 A JP 2005285740A JP 2007094917 A JP2007094917 A JP 2007094917A
Authority
JP
Japan
Prior art keywords
image
image signal
luminance
correction
correction coefficient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005285740A
Other languages
Japanese (ja)
Inventor
Takeshi Kawakami
剛 川上
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2005285740A priority Critical patent/JP2007094917A/en
Publication of JP2007094917A publication Critical patent/JP2007094917A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To correct luminance unevenness with consideration given not only to the characteristics of a lens and an imaging sensor in an imaging device, but also to the characteristics and content of an object image. <P>SOLUTION: This image processing device is provided with a projection system, including a lens optical system 12 photographing the objective image for acquiring an image signal and a CCD 13; a control part 22 determining the type of image from the image signal acquired by the projection system, setting the correction coefficient for luminance unevenness, according to the determination result, and making a JPEG circuit 28 correct the luminance value of the image signal acquired by the projection system by using the correction coefficient on a pixel basis; and a built-in memory 29 or a memory card 30 storing the image signal with luminance correction. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、例えばデジタルカメラ等に好適な画像処理装置、画素処理方法及びプログラムに関する。   The present invention relates to an image processing apparatus, a pixel processing method, and a program suitable for a digital camera, for example.

従来、CCD等の固体撮像素子を用いて撮影を行なう撮像装置において、例えばCCDやレンズ等の光学系の影響により、撮影した画像に輝度ムラが発生することがあるため、撮影画像の輝度ムラを除去する技術が求められていた。   Conventionally, in an imaging apparatus that performs imaging using a solid-state imaging device such as a CCD, luminance unevenness may occur in a captured image due to the influence of an optical system such as a CCD or a lens. There was a need for technology to remove it.

そこで、予め基準となる画像を撮影した際にレンズ中心からの距離などを考慮した上で算出した補正値を記憶しておき、当該補正値に基づいて撮影画像の輝度ムラ補正を行なう技術などが考えられていた。(例えば、特許文献1)
特開2004−200888号公報
Therefore, there is a technique for storing a correction value calculated in consideration of the distance from the center of the lens when a reference image is captured in advance, and correcting luminance unevenness of the captured image based on the correction value. It was thought. (For example, Patent Document 1)
JP 2004-200908 A

上記特許文献に記載された技術は、あくまでも基準となる画像に基づいて算出した補正値を一律に適用するものであり、撮影対象となる被写体画像の内容、例えばコントラストが非常に高い白黒の文字等からなるドキュメント画像であるのか、ほぼ一様な色が全体に延在された変化に乏しい画像であるか、などによって輝度ムラにより影響を受ける度合いも異なるものと思われるが、そのような点に関しては一切考慮されていない。   The technique described in the above-mentioned patent document applies the correction value calculated based on the reference image uniformly, and the content of the subject image to be photographed, such as black and white characters with very high contrast, etc. It seems that the degree to which it is affected by uneven brightness depends on whether it is a document image consisting of or an image with little change in which a uniform color is extended throughout. Is not considered at all.

本発明は上記のような実情に鑑みてなされたもので、その目的とするところは、撮像装置におけるレンズや撮像素子の特性のみならず、対象となる画像の特性や内容等も考慮して輝度ムラ補正を行なうことが可能な画像処理装置、画素処理方法及びプログラムを提供することにある。   The present invention has been made in view of the above circumstances, and the object of the present invention is not only the characteristics of the lens and the image sensor in the imaging apparatus, but also the luminance and brightness of the target image. An object is to provide an image processing apparatus, a pixel processing method, and a program capable of performing unevenness correction.

請求項1記載の発明は、画像信号を入力する入力手段と、この入力手段で得た画像信号から画像の種類を判別する判別手段と、この判別手段で得た判別結果に応じて輝度ムラの補正係数を設定する設定手段と、上記入力手段で得た画像信号の輝度値を画素単位で上記設定手段で設定した補正係数により補正する輝度補正手段と、この輝度補正手段を経た輝度補正後の画像信号を出力する出力手段とを具備したことを特徴とする。   According to the first aspect of the present invention, the input means for inputting the image signal, the determination means for determining the type of the image from the image signal obtained by the input means, and the luminance unevenness according to the determination result obtained by the determination means Setting means for setting a correction coefficient, luminance correction means for correcting the luminance value of the image signal obtained by the input means by a correction coefficient set by the setting means in pixel units, and luminance correction after passing through the luminance correction means Output means for outputting an image signal.

請求項1記載の発明によれば、対象となる画像の種類を考慮して輝度ムラ補正を行なうことが可能となる。   According to the first aspect of the present invention, it is possible to perform luminance unevenness correction in consideration of the type of target image.

以下本発明をデジタルカメラに適用した場合の実施の一形態について図面を参照して説明する。   Hereinafter, an embodiment when the present invention is applied to a digital camera will be described with reference to the drawings.

図1は、当該デジタルカメラ10の電子回路の機能構成を示すものである。同図で、撮影モードでのモニタリング状態においては、モータ(M)11の駆動により撮影レンズを構成するレンズ光学系12中の一部のレンズ、具体的にはズームレンズ及びフォーカスレンズの位置が適宜移動される。このレンズ光学系12の撮影光軸後方の結像位置に、図示しないメカニカルシャッタを介して、固体撮像素子であるCCD13が配置される。   FIG. 1 shows a functional configuration of an electronic circuit of the digital camera 10. In the figure, in the monitoring state in the photographing mode, the positions of some lenses in the lens optical system 12 constituting the photographing lens, specifically the zoom lens and the focus lens, are appropriately set by driving the motor (M) 11. Moved. A CCD 13, which is a solid-state image sensor, is disposed via an unillustrated mechanical shutter at an imaging position behind the photographing optical axis of the lens optical system 12.

CCD13は、タイミング発生器(TG)14、CCDドライバ15によって走査駆動され、一定周期毎に結像した光像に対応する光電変換出力を1画面分出力する。   The CCD 13 is scanned and driven by a timing generator (TG) 14 and a CCD driver 15, and outputs a photoelectric conversion output corresponding to a light image formed at fixed intervals for one screen.

この光電変換出力は、アナログ値の信号の状態でRGBの各原色成分毎に適宜ゲイン調整された後に、サンプルホールド回路(S/H)16でサンプルホールドされ、A/D変換器17でデジタルデータに変換され、カラープロセス回路18で画素補間処理及びγ補正処理を含むカラープロセス処理が行なわれて、デジタル値の輝度信号Y及び色差信号Cb,Crが生成され、DMA(Direct Memory Access)コントローラ19に出力される。   The photoelectric conversion output is appropriately gain-adjusted for each primary color component of RGB in the state of an analog value signal, sampled and held by a sample hold circuit (S / H) 16, and digital data by an A / D converter 17. The color process circuit 18 performs color process processing including pixel interpolation processing and gamma correction processing in the color process circuit 18 to generate a digital luminance signal Y and color difference signals Cb, Cr, and a DMA (Direct Memory Access) controller 19. Is output.

DMAコントローラ19は、カラープロセス回路18の出力する輝度信号Y及び色差信号Cb,Crを、同じくカラープロセス回路18からの複合同期信号、メモリ書込みイネーブル信号、及びクロック信号を用いて一度DMAコントローラ19内部のバッファに書込み、DRAMインタフェース(I/F)20を介してバッファメモリとして使用されるDRAM21にDMA転送を行なう。   The DMA controller 19 once uses the luminance signal Y and the color difference signals Cb and Cr output from the color process circuit 18 by using the composite synchronization signal, the memory write enable signal, and the clock signal from the color process circuit 18 once. And the DMA transfer to the DRAM 21 used as a buffer memory through the DRAM interface (I / F) 20.

制御部22は、CPUと、後述する撮影モード時の輝度ムラ補正の処理を含む動作プログラムを固定的に記憶した不揮発性メモリ、及びワークメモリ等により構成され、このデジタルカメラ10全体の制御動作を司るもので、上記輝度及び色差信号のDRAM21へのDMA転送終了後に、この輝度及び色差信号をDRAMインタフェース20を介してDRAM21より読出し、VRAMコントローラ23を介してVRAM24に書込む。   The control unit 22 includes a CPU, a non-volatile memory in which an operation program including processing for correcting luminance unevenness in a shooting mode, which will be described later, is fixedly stored, a work memory, and the like. The control operation of the entire digital camera 10 is performed. After the DMA transfer of the luminance and color difference signals to the DRAM 21 is completed, the luminance and color difference signals are read from the DRAM 21 via the DRAM interface 20 and written to the VRAM 24 via the VRAM controller 23.

デジタルビデオエンコーダ25は、上記輝度及び色差信号をVRAMコントローラ23を介してVRAM24より定期的に読出し、これらのデータを元にビデオ信号を発生して表示部26に出力する。   The digital video encoder 25 periodically reads the luminance and color difference signals from the VRAM 24 via the VRAM controller 23, generates a video signal based on these data, and outputs the video signal to the display unit 26.

表示部26は、撮影モード時にはモニタ表示部(電子ファインダ)として機能するもので、デジタルビデオエンコーダ25からのビデオ信号に基づいた表示を行なうことで、その時点でデジタルビデオエンコーダ25から取込んでいる画像情報に基づく画像をリアルタイムに表示することとなる。   The display unit 26 functions as a monitor display unit (electronic finder) in the shooting mode, and performs display based on the video signal from the digital video encoder 25, and captures from the digital video encoder 25 at that time. An image based on the image information is displayed in real time.

このように表示部26にその時点での画像がモニタ画像としてリアルタイムに表示されている、所謂スルー画像の表示状態で、静止画撮影を行ないたいタイミングで、後述するキー入力部27を構成する一要素であるシャッタキーを操作すると、トリガ信号を発生する。   In this way, a key input unit 27 (to be described later) is configured at a timing at which still image shooting is desired in a so-called through image display state in which an image at that time is displayed in real time on the display unit 26 as a monitor image. When a shutter key that is an element is operated, a trigger signal is generated.

制御部42は、このトリガ信号に応じてその時点でCCD13から取込んでいる1画面分の輝度及び色差信号のDRAM21へのDMA転送を取り止め、あらためて適正な露出条件に従った絞り値を設定し、また設定したシャッタ速度で図示しないメカニカルシャッタ及び上記CCD13を駆動して1画面分の起動及び色差信号を得てDRAM21へ転送させ、その後にこの経路を停止し、記憶保存の状態に遷移する。   In response to the trigger signal, the control unit 42 cancels the DMA transfer of the luminance and color difference signals for one screen currently captured from the CCD 13 to the DRAM 21 and sets an aperture value according to the appropriate exposure condition again. Further, the mechanical shutter (not shown) and the CCD 13 are driven at the set shutter speed to obtain one-screen start-up and color difference signals and transfer them to the DRAM 21. Then, this path is stopped, and the state is changed to the storage and storage state.

この記憶保存の状態では、制御部22がDRAM21に書込まれている1フレーム分の輝度及び色差信号をDRAMインタフェース20を介してY,Cb,Crの各コンポーネント毎に縦8画素×横8画素の基本ブロックと呼称される単位で読出して画像処理エンジンであるJPEG(Joint Photograph coding Experts Group)回路28に書込み、このJPEG回路28でADCT(Adaptive Discrete Cosine Transform:適応離散コサイン変換)、エントロピ符号化方式であるハフマン符号化等の処理によりデータ圧縮する。   In this storage and storage state, the control unit 22 outputs the luminance and color difference signals for one frame written in the DRAM 21 through the DRAM interface 20 for each of Y, Cb, and Cr components of 8 pixels × 8 pixels horizontally. Are written in a unit called a basic block of JPEG (Joint Photographic Coding Experts Group) circuit 28, which is an image processing engine. Data compression is performed by a process such as Huffman coding.

そして、得た符号データを1画像のデータファイルとして該JPEG回路28から読出し、このデジタルカメラ10の記憶媒体である内蔵メモリ29またはこのデジタルカメラ10に着脱自在に装着されるメモリカード30に書込む。   Then, the obtained code data is read out from the JPEG circuit 28 as a data file of one image, and written into the built-in memory 29 which is a storage medium of the digital camera 10 or a memory card 30 which is detachably attached to the digital camera 10. .

そして、1フレーム分の輝度及び色差信号の圧縮処理及び内蔵メモリ29またはメモリカード30への全圧縮データの書込み終了に伴なって、制御部22はCCD13からDRAM21への経路を再び起動する。   Then, along with the compression processing of the luminance and color difference signals for one frame and the completion of writing of all the compressed data to the built-in memory 29 or the memory card 30, the control unit 22 activates the path from the CCD 13 to the DRAM 21 again.

ここで内蔵メモリ29とメモリカード30とでは、メモリカード30を優先して静止画像の画像データを始めとする各種データの書込み及び読出しを行なうものとする。すなわち、メモリカード30が取り外されて存在しない状態では内蔵メモリ29に対する書込み/読出しを行なう一方で、メモリカード30が装着されている状態ではメモリカード30に対してデータの書込み/読出しを行なうものとする。   Here, it is assumed that the internal memory 29 and the memory card 30 write and read various data including still image data with priority given to the memory card 30. That is, when the memory card 30 is removed and does not exist, writing / reading to / from the built-in memory 29 is performed, while when the memory card 30 is mounted, data writing / reading is performed to / from the memory card 30. To do.

また、制御部22には、キー入力部27、音声処理部31、及びストロボ駆動部32が接続される。   In addition, a key input unit 27, an audio processing unit 31, and a strobe driving unit 32 are connected to the control unit 22.

キー入力部27は、上述したシャッタキーの他に、電源キー、テレ/ワイドキー、撮影モードキー、再生モードキー、リングキー、セットキー、メニューキー、マクロキー、及びストロボキー等から構成され、それらのキー操作に伴なう信号は直接制御部22へ送出される。   The key input unit 27 includes a power key, a tele / wide key, a shooting mode key, a playback mode key, a ring key, a set key, a menu key, a macro key, a strobe key, and the like in addition to the shutter key described above. Signals accompanying these key operations are sent directly to the control unit 22.

音声処理部31は、PCM音源等の音源回路を備え、音声の録音時にはこのデジタルカメラ10の筐体前面に設けられるマイクロホン部(MIC)33より入力された音声信号をデジタル化し、所定の音声データファイル形式、例えばMP3(MPEG−1 audio layer 3)規格にしたがってデータ圧縮して音声データファイルを作成して上記内蔵メモリ29またはメモリカード30へ送出する一方、音声の再生時には内蔵メモリ29またはメモリカード30から送られてきた音声データファイルの圧縮を解いてアナログ化し、このデジタルカメラ10の筐体背面に設けられるスピーカ部(SP)34を駆動して、拡声放音させる。   The sound processing unit 31 includes a sound source circuit such as a PCM sound source. When recording sound, the sound processing unit 31 digitizes the sound signal input from the microphone unit (MIC) 33 provided on the front surface of the housing of the digital camera 10 to obtain predetermined sound data. In accordance with a file format, for example, MP3 (MPEG-1 audio layer 3) standard, the data is compressed to create an audio data file and sent to the internal memory 29 or the memory card 30. On the other hand, when reproducing the audio, the internal memory 29 or the memory card The audio data file sent from 30 is uncompressed and converted into an analog signal, and the speaker unit (SP) 34 provided on the back of the casing of the digital camera 10 is driven to emit a loud sound.

ストロボ駆動部32は、静止画像撮影時に図示しないストロボ用の大容量コンデンサを充電した上で、制御部22からの制御に基づいて、デジタルカメラ10の筐体前面上部に設けられたストロボ発光部35を閃光駆動する。   The strobe driving unit 32 charges a large-capacitance capacitor for strobe (not shown) at the time of still image shooting, and then, based on control from the control unit 22, a strobe light emitting unit 35 provided on the upper front of the casing of the digital camera 10. The flash drive.

しかるに、静止画像ではなく動画像の撮影が選択されている場合には、1回目のシャッタキーが操作された時点で、上述した静止画データを取得してJPEG回路28でデータ圧縮し、内蔵メモリ29またはメモリカード30へ記憶するという一連の動作を適宜フレームレート、例えば30[フレーム/秒]で連続して実行するものとして開始し、該シャッタキーが2回目に操作されるか、または所定の制限時間、例えば30秒が経過した時点でそれら一連の静止画データファイルを一括してモーションJPEGのデータファイル(AVIファイル)として設定し直す。   However, when shooting of a moving image instead of a still image is selected, the above-described still image data is acquired and compressed by the JPEG circuit 28 when the first shutter key is operated, and the built-in memory 29 or a series of operations of storing in the memory card 30 is started as a continuous execution at an appropriate frame rate, for example, 30 [frame / second], and the shutter key is operated for the second time, or a predetermined operation is performed. When a time limit, for example, 30 seconds elapses, the series of still image data files are collectively set as a motion JPEG data file (AVI file).

また、再生モード時には、制御部22が内蔵メモリ29またはメモリカード30に記憶されている画像データを選択的に読出し、JPEG回路28で撮影モード時にデータ圧縮した手順と全く逆の手順で圧縮されている画像データを伸長し、伸長した画像データをDRAMインタフェース20を介しDRAM21に保持させた上で、このDRAM21の保持内容をVRAMコントローラ23を介してVRAM24に記憶させ、このVRAM24より定期的に画像データを読出してビデオ信号を発生し、上記表示部26で再生出力させる。   In the playback mode, the control unit 22 selectively reads out the image data stored in the built-in memory 29 or the memory card 30, and is compressed by a procedure completely opposite to the procedure of data compression in the shooting mode by the JPEG circuit 28. The decompressed image data is decompressed, and the decompressed image data is held in the DRAM 21 via the DRAM interface 20, and then the content held in the DRAM 21 is stored in the VRAM 24 via the VRAM controller 23. Is read out to generate a video signal which is reproduced and output by the display unit 26.

選択した画像データが静止画像ではなく動画像であった場合、選択した動画像ファイルを構成する個々の静止画データの再生を時間的に連続して実行し、最後の静止画データの再生を終了した時点で、次に再生の指示がなされるまで先頭に位置する静止画データのみを用いて再生表示する。   If the selected image data is not a still image but a moving image, playback of the individual still image data constituting the selected moving image file is executed continuously in time, and playback of the last still image data is finished. At that time, the image is reproduced and displayed using only the still image data located at the head until the next reproduction instruction is given.

次に上記実施の形態の動作について説明する。
なお、このデジタルカメラ10においても、一般的な他のカメラと同様に、シャッタキーが2段階の操作ストロークを有し、第1段階としてフルストロークの半分程度までの操作、一般に半押しと称される操作状態で自動合焦(AF)処理と自動露光(AE)処理とを実行してそれぞれの処理値をロックし、その後、第2段階としてフルストロークの操作、一般に全押しと称される操作状態で、上記AF値及びAE値による本撮影を実行する、という動作ロジックに基づいた撮影動作を実行するものとする。
Next, the operation of the above embodiment will be described.
In this digital camera 10 as well, other shutter cameras have a two-step operation stroke, and the first step is an operation up to about half of the full stroke, generally called half-press. The automatic focusing (AF) process and the automatic exposure (AE) process are executed in the operation state to lock the respective processing values, and then the second stage is a full stroke operation, generally referred to as a full press. In this state, it is assumed that a shooting operation based on the operation logic of executing the main shooting with the AF value and the AE value is executed.

また、以下に示す撮影モードでは、予めユーザのモード設定により「輝度ムラ補正機能」及び「(矩形の)輪郭抽出機能」が共に「あり」と設定されている状態での動作について示すものであり、その動作制御については制御部22が内部の不揮発性メモリに記憶した動作プログラムに基づいて実行する。   In the following shooting modes, the operation in a state where both “brightness unevenness correction function” and “(rectangular) contour extraction function” are set to “present” by the user mode setting is shown. The operation control is executed by the control unit 22 based on an operation program stored in an internal nonvolatile memory.

図2は、撮影モードで静止画像の撮影を実行する場合に実行される処理の内容を示すもので、その当初にはその時点で所定のフレームレート、例えば30[フレーム/秒]で収まるように簡易なAF処理とAE処理を実行し、フレームレートを考慮した高速シャッタ速度によりCCD13を連続的に駆動することで、CCD13で撮像されている内容を表示部26で表示するスルー画像表示の状態を維持しながら(ステップM01)、キー入力部27のシャッタキーが半押し操作されたか否かを判断する(ステップM02)、という処理を繰返し実行することで、シャッタキーが半押し状態となるのを待機する。   FIG. 2 shows the contents of processing executed when still image shooting is performed in the shooting mode. At the beginning, the processing is performed at a predetermined frame rate, for example, 30 [frames / second]. A simple AF process and AE process are executed, and the CCD 13 is continuously driven at a high shutter speed in consideration of the frame rate, whereby the state of the through image display in which the content captured by the CCD 13 is displayed on the display unit 26 is displayed. While maintaining (step M01), it is determined whether or not the shutter key of the key input unit 27 has been half-pressed (step M02). stand by.

しかして、シャッタキーが半押し操作されるとステップM02でこれを判断し、その時点のレンズ光学系12のズームレンズ位置に応じた焦点距離でAF処理を実行して合焦位置をロックすると共に(ステップM03)、AE処理により適正な絞りとシャッタ速度とを得てこれもロックさせる(ステップM04)。   Thus, when the shutter key is half-pressed, this is determined in step M02, and AF processing is executed at a focal length corresponding to the zoom lens position of the lens optical system 12 at that time to lock the focus position. (Step M03), an appropriate aperture and shutter speed are obtained by AE processing and locked (step M04).

このAF値とAE値とをロックした状態で、シャッタキーがさらに全押し操作されたか否か(ステップM05)、まだ半押し操作されているか否か(ステップM06)を繰返し判断することで、AF値及びAE値の各状態をロックしながらシャッタキーが全押し操作されるか、あるいは半押し操作の状態が解除されるのを待機する。   With the AF value and the AE value locked, it is repeatedly determined whether the shutter key is further fully pressed (step M05) and whether it is still half-pressed (step M06). It waits until the shutter key is fully pressed or the half-pressed state is released while locking each state of the value and the AE value.

ここで、シャッタキーの半押し操作が解除された場合には、ステップM06でこれを判断し、撮影には至らなかったものとし、再び上記ステップM01からの処理に戻る。   Here, when the half-press operation of the shutter key is released, this is determined in step M06, it is assumed that the photographing has not been completed, and the process returns to step M01 again.

また、上記AF値及びAE値をロックした状態から、シャッタキーが全押し操作されると、ステップM06でこれを判断して、上記AF値及びAE値をロックしたままの状態で静止画像の撮影を実行し(ステップM07)、画像データを得てこれをDRAM21に保持する(ステップM08)。   When the shutter key is fully pressed from the state in which the AF value and the AE value are locked, this is determined in step M06, and a still image is shot with the AF value and the AE value being locked. (Step M07), image data is obtained and stored in the DRAM 21 (Step M08).

そして、このDRAM21に保持した画像データの内容により、画像の種類を判別する(ステップM09)。
図3は、この画像の種類の判別に係る詳細な処理内容のサブルーチンを示すものであり、その当初には撮影した画像中から(矩形の)輪郭を抽出する処理を実行する(ステップS01)。
Then, the type of the image is determined based on the content of the image data held in the DRAM 21 (step M09).
FIG. 3 shows a subroutine of detailed processing contents relating to the discrimination of the type of image, and at the beginning, a process of extracting a (rectangular) contour from the photographed image is executed (step S01).

これは、上述した如くユーザのモード設定により「輪郭抽出機能」が「あり」に選択されているためであり、画像中央を含む、撮影画像中の所定以上の面積を占める矩形領域を抽出すると、次にその抽出した矩形の輪郭内の画像信号の色差信号成分の変化量の総和SCD値を算出する(ステップS02)。   This is because the “contour extraction function” is selected as “present” by the user's mode setting as described above, and when a rectangular region occupying a predetermined area or more in the captured image including the center of the image is extracted, Next, a total SCD value of the amount of change of the color difference signal component of the image signal within the extracted rectangular outline is calculated (step S02).

そして、算出した色差信号成分の変化量の総和SCD値が予め設定された第1のしきい値を超えているか否かを判断する(ステップS03)。   Then, it is determined whether or not the calculated total SCD value of the change amount of the color difference signal component exceeds a preset first threshold value (step S03).

ここで色差信号成分の変化量の総和が予め設定された第1のしきい値を超えていると判断した場合には、当該輪郭内の画像は多種の色パターンが混在したカラフルな画像であるものと認識し、その認識結果を保持した上で(ステップS04)、この図3の画像の種類の判別のサブルーチンを終了し、図2のメインルーチンに戻る。   Here, when it is determined that the total amount of change of the color difference signal components exceeds a preset first threshold value, the image in the contour is a colorful image in which various color patterns are mixed. 3 is recognized and the recognition result is held (step S04). Then, the subroutine for determining the image type in FIG. 3 is terminated, and the process returns to the main routine in FIG.

図4は、カラフルな撮影画像IM1を例示するものであり、輪郭抽出を行なうために用意された斜めストライプ模様の台上に、カラフルな画像の表示のパンフレットが載置されている状態を示す。ここでは、背景の写真部分及び文字部分にそれぞれ多様な色が使用されているために色差信号成分の変化量が多く、容易にカラフルな画像であることが認識できる。   FIG. 4 exemplifies a colorful photographed image IM1, and shows a state in which a pamphlet for displaying a colorful image is placed on a table with an oblique stripe pattern prepared for contour extraction. Here, since various colors are used for the background photographic part and the character part, the amount of change in the color difference signal component is large, and it can be easily recognized that the image is colorful.

また、上記ステップS03で色差信号成分の変化量の総和SCD値が予め設定されたしきい値以下であると判断した場合には、次いで色差信号成分の総和SC値が予め設定された第2のしきい値を超えているか否かを判断する(ステップS05)。   If it is determined in step S03 that the total SCD value of the change amounts of the color difference signal components is equal to or less than a preset threshold value, then the second SC in which the total sum SC value of the color difference signal components is set in advance. It is determined whether or not the threshold value is exceeded (step S05).

ここで色差信号成分の総和SC値が予め設定された第2のしきい値以下であると判断した場合には、当該輪郭内の画像は色彩に乏しい白黒画像であるものと認識し、その認識結果を保持した上で(ステップS06)、この図3の画像の種類の判別のサブルーチンを終了し、図2のメインルーチンに戻る。   If it is determined that the total SC value of the color difference signal components is equal to or smaller than a second threshold value set in advance, the image in the contour is recognized as a monochrome image with poor color, and the recognition is performed. After holding the result (step S06), the subroutine for determining the image type in FIG. 3 is terminated, and the process returns to the main routine in FIG.

図5は、白黒の撮影画像IM2を例示するものであり、輪郭抽出を行なうために用意された斜めストライプ模様の台上に、白紙に文字、数字や罫線等が黒く印刷されたドキュメントが載置されている状態を示す。ここでは、輪郭内で色差信号の成分がほとんど算出されないことから、容易に白黒画像であることが認識できる。   FIG. 5 exemplifies a black-and-white photographed image IM2, and a document in which characters, numbers, ruled lines, etc. are printed in black on a blank sheet is placed on a table with an oblique stripe pattern prepared for contour extraction. The state that has been done. Here, since the components of the color difference signal are hardly calculated in the contour, it can be easily recognized that the image is a monochrome image.

さらに、上記ステップS05で色差信号成分の総和SC値が予め設定された第2のしきい値を超えていると判断した場合には、当該輪郭内の画像は単色画像であるものと認識し、その認識結果を保持した上で(ステップS07)、この図3の画像の種類の判別のサブルーチンを終了し、図2のメインルーチンに戻る。   Further, when it is determined in step S05 that the total SC value of the color difference signal components exceeds a preset second threshold value, the image in the contour is recognized as a single color image, After holding the recognition result (step S07), the subroutine for determining the image type in FIG. 3 is terminated, and the process returns to the main routine in FIG.

上記の例では、画像を区別するために、色差信号成分の変化量の総和SCD値、及び色差信号成分の総和SC値を用いたが、画像のコントラスト等を参照する他の方法であってもかまわない。   In the above example, the total SCD value of the change amount of the chrominance signal component and the total SC value of the chrominance signal component are used to distinguish the images, but other methods that refer to the contrast of the image or the like may be used. It doesn't matter.

図6は、単色の撮影画像IM3を例示するものであり、輪郭抽出を行なうために用意された斜めストライプ模様の台上に、無地、単色のファイル様の物体が載置されている状態を示す。ここでは、色差信号成分の総和SC値自体は一定量以上あるものの、色差信号成分の変化量の総和がほとんどないことから、容易に単色画像であることが認識できる。   FIG. 6 exemplifies a single-color photographed image IM3, and shows a state in which a solid, single-color file-like object is placed on a table with an oblique stripe pattern prepared for contour extraction. . Here, although the sum SC value of the color difference signal components is a certain amount or more, there is almost no sum of the amount of change of the color difference signal components, so that it can be easily recognized that the image is a single color image.

なお、上記ユーザのモード設定により「輪郭抽出機能」が「なし」に選択されている場合には、上記ステップS01での輪郭抽出処理は行なわず、ステップS02以下の処理も撮影画像の全域を対象に実行するため、場合によっては撮影対象の画像の種類の判別を誤ってしまう可能性も高くなる。   If “None” is selected as the “contour extraction function” by the user mode setting, the contour extraction processing in step S01 is not performed, and the processing in step S02 and subsequent steps is also performed on the entire captured image. Therefore, depending on the case, there is a high possibility that the type of image to be captured is erroneously determined.

しかして図2のメインルーチンでは、上記ステップM09での画像の種類を判別するサブルーチンの処理後、画像のきめ細かさ、すなわち解像度をその時点で設定されている画像サイズの画素数構成により判定し、その判定結果を保持しておく(ステップM10)。   Therefore, in the main routine of FIG. 2, after the processing of the subroutine for determining the image type in step M09, the fineness of the image, that is, the resolution is determined by the number of pixels of the image size set at that time, The determination result is held (step M10).

次いで、上記ステップM09での画像の種類の判別結果と上記ステップM10での画像の解像度の判定結果とを基に、輝度ムラの補正を行なう際の補正係数Aを決定する(ステップM11)。   Next, based on the image type determination result in step M09 and the image resolution determination result in step M10, a correction coefficient A for correcting luminance unevenness is determined (step M11).

ここで、該補正係数Aは乗数であり、
「白黒画像>単色画像>カラフル画像」
となるような、予め設定された値が決定される上に、特に単色画像の場合を除いて、白黒画像の場合とカラフルな画像の場合には、上記解像度の判定結果に応じて解像度が高いほど、より大きな値となるように適宜割増しされていてもよい。
Here, the correction coefficient A is a multiplier,
"Black and white image> Single color image> Colorful image"
In addition to the case of a monochrome image and a colorful image, the resolution is high according to the determination result of the above resolution. As such, it may be appropriately increased so as to have a larger value.

カラフルな画像は、あまり補正をかけてしまうと元の画像とまったく違う色合いになってしまい、あるいは模様がつぶれて不自然になってしまうことがあるので、3種の画像の中では補正係数Aを比較的低いものに設定しても良い。   A colorful image may have a completely different hue from the original image if too much correction is applied, or the pattern may be crushed and become unnatural. May be set relatively low.

単色画像もカラフルな画像と同様、色合いが変わりすぎてしまうことは良くないが、模様がないぶんだけ、カラフルな画像よりは大きい補正係数Aを設定しても良い。   Similarly to a colorful image, it is not good for a monochrome image to change its hue too much, but a correction coefficient A larger than a colorful image may be set as long as there is no pattern.

白黒画像では、使用している色が白と黒しかなく、色合いや模様などが変わってしまう心配がないので、黒い線や文字等が消えない範囲内で、補正係数Aを大きくした方が良い結果が得られるため、より大きな補正係数Aを設定しても良い。   In black and white images, the colors used are only white and black, and there is no concern that the hue or pattern will change, so it is better to increase the correction coefficient A within a range where black lines and characters do not disappear. Since a result is obtained, a larger correction coefficient A may be set.

その後、輝度ムラ補正を行なう撮影画像をJPEG回路28が読込んで複数のブロックに分割し、各ブロック毎に最大輝度値の画素を算出すると共に(ステップM12)、全部路での上記最大輝度値の平均値を算出する(ステップM13)。   Thereafter, the JPEG circuit 28 reads the photographed image to be corrected for luminance unevenness and divides it into a plurality of blocks, calculates the pixel with the maximum luminance value for each block (step M12), and sets the maximum luminance value for all the paths. An average value is calculated (step M13).

図7は、この撮影画像のブロック分割を説明するもので、ここでは撮影により得た画像データIMを、JPEGやMPEGで基本ブロックと称される縦8画素×横8画素単位で分割するものとする。   FIG. 7 illustrates block division of the photographed image. Here, the image data IM obtained by photographing is divided in units of 8 vertical pixels × 8 horizontal pixels, which are called basic blocks in JPEG and MPEG. To do.

こうして分割した各ブロック毎に最大輝度値を算出し、さらに全部路での最大輝度値の平均値を算出した状態で、輝度ムラの補正処理を実行する(ステップM14)。すなわち、各ブロックをBxy、ブロック内の各画素の輝度をKab、同最大輝度をKmax、全ブロックでの最大輝度値の平均値をKaveとして、
Bxy(Kab)′=Bxy(Kab)
−A×[Bxy(Kmax)−Kave]
…(1)
(但し、Bxy(Kmax):各ブロックの最大輝度、
Kave :全ブロックでの最大輝度値の平均値、
Bxy(Kab):各ブロックの各画素の補正前の輝度、
Bxy(Kab)′:各ブロックの各画素の補正後の輝度、
A:補正係数。)
なる演算式(1)を用いて各画素の輝度値を補正し、補正後の輝度値に書換える処理をブロック単位で実行する。
The luminance unevenness correction process is executed in a state where the maximum luminance value is calculated for each of the divided blocks and the average value of the maximum luminance values in all the roads is calculated (step M14). That is, each block is Bxy, the luminance of each pixel in the block is Kab, the maximum luminance is Kmax, and the average value of the maximum luminance values in all blocks is Kave.
Bxy (Kab) '= Bxy (Kab)
−A × [Bxy (Kmax) −Kave]
… (1)
(Bxy (Kmax): Maximum brightness of each block,
Kave: Average value of maximum luminance values in all blocks,
Bxy (Kab): luminance before correction of each pixel of each block,
Bxy (Kab) ′: luminance after correction of each pixel of each block,
A: Correction coefficient. )
A process of correcting the luminance value of each pixel using the following equation (1) and rewriting the corrected luminance value is executed in units of blocks.

この輝度ムラの補正処理により、撮影画像が上記図6に示したような単色画像である場合には、輝度の高低があまり大きくならず、輝度ムラがなくなるような調整が望まれるため、比較的小さな補正係数Aによる輝度補正処理が実行される。   When the photographed image is a single color image as shown in FIG. 6 due to the brightness unevenness correction process, adjustment is desired so that the brightness level does not increase so much and the brightness unevenness is eliminated. Luminance correction processing with a small correction coefficient A is executed.

一方、撮影画像が上記図5に示したような白黒画像である場合には、空間周波数の非常に高い細線をきれいに表現したいが、その反面、空間周波数の低い領域で表現される書面上の汚れなどは目立たないように加工することが望ましいため、上記単色画像の場合に比してより大きな補正係数Aによる輝度補正処理が実行される。   On the other hand, when the photographed image is a black and white image as shown in FIG. 5 above, it is desired to finely express a fine line having a very high spatial frequency, but on the other hand, it is a stain on the document expressed in a region having a low spatial frequency. Since it is desirable to process the image so as not to be conspicuous, the luminance correction processing with a larger correction coefficient A is executed as compared with the case of the monochromatic image.

また、撮影画像が上記図4に示したようなカラフルな画像である場合には、輝度の高低をはっきりと表現したほうがメリハリのある好ましい画像となるため、上記白黒画像の場合よりも、さらに大きな補正係数Aによる輝度補正処理が実行される。   Further, when the photographed image is a colorful image as shown in FIG. 4 above, it is preferable to clearly express the level of the brightness, so that the image is sharper and therefore larger than the case of the black and white image. A luminance correction process using the correction coefficient A is executed.

加えて、撮影画像が白黒画像である場合及びカラフルな画像である場合には、上記ステップM10で判定した解像度の結果によって、きめ細かい(=解像度が高い)画像では輝度の高低をはっきり表現した方が好ましい画像となるため、解像度が高くなるにしたがって補正係数がさらに割増設定される。   In addition, when the captured image is a black and white image or a colorful image, it is better to clearly express the brightness level in a fine (= high resolution) image according to the resolution result determined in step M10. In order to obtain a preferable image, the correction coefficient is further increased as the resolution increases.

しかるに、撮影した画像データ全体への輝度ムラの補正処理を実行した後、JPEG回路28では引き続きデータ量を圧縮して画像データをデータファイル化し(ステップM15)、ファイル化した画像データを内蔵メモリ29またはメモリカード30に記録させ(ステップM16)、以上で撮影から記録に至る一連の処理を終えたものとして、再び次の撮影に備えるべく上記ステップM01からの処理に戻る。   However, after the luminance unevenness correction process is performed on the entire captured image data, the JPEG circuit 28 continues to compress the data amount to convert the image data into a data file (step M15), and the filed image data is stored in the built-in memory 29. Alternatively, the data is recorded in the memory card 30 (step M16), and the series of processing from shooting to recording is completed as described above, and the processing returns to step M01 to prepare for the next shooting again.

このように、対象となる画像の種類を判別した上でその判別結果に応じて補正係数を決定して輝度ムラの補正を行なうため、無闇に輝度ムラの補正を行なうことで却って画像の「あら」がめだってしまうようなことがなく、常に適切な度合いでの輝度ムラの補正を行なうことが可能となる。   In this way, after determining the type of the target image and determining the correction coefficient according to the determination result to correct the brightness unevenness, the brightness unevenness correction is performed without darkness. It is possible to always correct luminance unevenness at an appropriate level.

また、上記輝度ムラの補正演算を行なうに際しては、画像全体を一纏めにして行なうのではなく、隣接する複数の画素をブロックとして分割してブロック単位での輝度ムラの補正を行なうことで、輝度補正の処理をより効率的に実行することができる。   In addition, when performing the above-described luminance unevenness correction calculation, luminance correction is performed by dividing adjacent pixels into blocks and correcting the luminance unevenness in units of blocks, instead of performing the entire image collectively. This process can be executed more efficiently.

この場合、ブロックの大きさとしてはJPEGやMPEGに代表される画像処理技術の基本単位である縦8画素×横8画素の基本ブロックに基づいた輝度ムラの補正処理を行なうことで、JPEG回路28で実行する他の画像処理工程との親和性が高く、適用範囲をより広げることが可能となる。   In this case, the block size of the JPEG circuit 28 is corrected by performing luminance unevenness correction processing based on a basic block of 8 vertical pixels × 8 horizontal pixels, which is a basic unit of image processing technology represented by JPEG and MPEG. It is highly compatible with other image processing steps to be executed in the above, and the application range can be further expanded.

さらに、画像の種類を判別するのに加えて、画像の解像度も考慮し、補正係数を調整した上で補正演算を実行するものとしたので、違和感がなく、より自然な輝度ムラの補正を行なわせることができる。   Furthermore, in addition to determining the type of image, the correction calculation is performed after adjusting the correction coefficient in consideration of the resolution of the image, so there is no sense of incongruity and more natural correction of luminance unevenness is performed. Can be made.

また、上記実施の形態では、撮影した画像中から矩形の輪郭抽出を行なった上でその抽出した矩形の輪郭内の画像に対して輝度ムラの補正を行なうものとした。   Further, in the above-described embodiment, a rectangular outline is extracted from a captured image, and luminance unevenness is corrected for an image within the extracted rectangular outline.

これにより、一般的なデジタルカメラのみならず、例えばプロジェクタ装置と接続して撮影した画像をそのまま投影表示するような書画カメラに適用し、書画台に載置されたドキュメント書類等を撮像してその画像の輝度ムラ補正を行なう場合などのように、輝度ムラの補正を行なおうとする画像範囲を的確に抽出し、より高い精度で輝度ムラの補正を実行することができる。   As a result, not only a general digital camera but also, for example, a document camera that projects and displays an image captured by connecting to a projector device, images a document document placed on a document table, and the like. As in the case of correcting the luminance unevenness of the image, the image range to be corrected for the luminance unevenness can be accurately extracted, and the luminance unevenness can be corrected with higher accuracy.

さらに、撮影した画像が、特に画像信号を構成する色差信号の変化量が多く、全体がカラフルであると思われる画像であった場合には、輝度ムラの補正演算の補正係数をより大きな値に決定することで、輝度ムラが目立たず、全体にメリハリのある画像を得ることができる。   Furthermore, if the captured image is an image that appears to be colorful as a whole because the amount of change in the color difference signal constituting the image signal is particularly large, the correction coefficient of the luminance unevenness correction calculation is set to a larger value. By determining, it is possible to obtain an image that is not noticeably uneven in brightness and that is sharp on the whole.

また、撮影した画像が、特に画像信号を構成する色差信号の変化量が一定の度合い以下であり、且つ色差信号の絶対量が一定の度合いを超えているような、全体が単色であると思われる画像であった場合には、あえて補正係数を抑えてメリハリを付けるような輝度ムラの補正を行なわないことで、自然な描写の画像とすることができる。   In addition, the entire image is assumed to be monochromatic, especially when the amount of change in the color difference signal constituting the image signal is below a certain level and the absolute amount of the color difference signal exceeds a certain level. If the image is a non-uniform image, it is possible to obtain an image with a natural depiction by not correcting the luminance unevenness by reducing the correction coefficient and adding sharpness.

さらに、撮影した画像が、特に画像信号を構成する色差信号の変化量が一定の度合い以下であり、且つ色差信号の絶対量が一定の度合い以下であるような、全体が白黒のドキュメント書類等と思われる画像であった場合には、細線を明確に表現する一方で書面上の汚れなどは減衰させるように輝度ムラの補正を行なうことで、より判読しやすい画像とすることができる。   Furthermore, the entire captured image is a monochrome document document or the like in which the change amount of the color difference signal constituting the image signal is not more than a certain degree and the absolute amount of the color difference signal is not more than a certain degree. In the case of an expected image, it is possible to obtain an image that is easier to read by correcting the luminance unevenness so that the thin lines are clearly expressed while the dirt on the document is attenuated.

なお、上記実施の形態はデジタルカメラ10に適用したものであり、画像を入力する手段として固体撮像素子であるCCD13により撮影を行なって画像を得るものとして説明したが、固体撮像素子はCCDやCMOSイメージセンサのいずれであっても良い。   Although the above embodiment is applied to the digital camera 10 and has been described as taking an image with the CCD 13 which is a solid-state image pickup device as means for inputting an image, the solid-state image pickup device is a CCD or CMOS. Any of image sensors may be used.

さらに、本実施の形態はデジタルカメラに適用した場合について説明したものであり、撮影を行なうことで画像データを入力し、入力した画像の輝度ムラの補正等を行なった後に内蔵メモリ29またはメモリカード30に記録することで画像データを出力するものであるが、本発明はこれに限らず、例えばプロジェクタ装置、カメラ機能付きの携帯電話機、メモリカードを装着してメモリカード内の画像データを大画面の液晶パネルに表示する液晶ビューワ、通信機能を有するPDA(Personal Digital Assistants:個人向け情報携帯端末)、ノートブックタイプ/デスクトップタイプを問わずパーソナルコンピュータ、画像データも取扱うことが可能なポータブル音楽プレーヤ、その他、画像データを取扱うすべての機器に適用することが可能である。   Further, the present embodiment has been described for a case where the present invention is applied to a digital camera, and image data is input by taking a picture, and after correcting luminance unevenness of the input image, the built-in memory 29 or the memory card However, the present invention is not limited to this, and for example, a projector device, a mobile phone with a camera function, and a memory card are attached, and the image data in the memory card is displayed on a large screen. Liquid crystal viewers to be displayed on LCD panels, PDAs (Personal Digital Assistants) with personal communication functions, personal computers regardless of notebook type / desktop type, portable music players that can handle image data, Other image data handling It can be applied to all devices.

また、本発明は上述した実施の形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。また、上述した実施の形態で実行される機能は可能な限り適宜組合わせて実施しても良い。上述した実施の形態には種々の段階が含まれており、開示される複数の構成要件により適宜の組合せにより種々の発明が抽出され得る。例えば、実施の形態に示される全構成要件からいくつかの構成要件が削除されても、効果が得られるのであれば、この構成要件が削除された構成が構成が発明として抽出され得る。   Further, the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the scope of the invention in the implementation stage. In addition, the functions executed in the above-described embodiments may be combined as appropriate as possible. The above-described embodiment includes various stages, and various inventions can be extracted by an appropriate combination according to a plurality of disclosed structural requirements. For example, even if several constituent requirements are deleted from all the constituent requirements shown in the embodiment, if an effect is obtained, the configuration from which the constituent requirements are deleted can be extracted as an invention.

本発明の実施の一形態に係るデジタルカメラの機能回路構成を示すブロック。1 is a block diagram showing a functional circuit configuration of a digital camera according to an embodiment of the present invention. 同実施の形態に係る撮影モード時のメインルーチンの処理内容を示すフローチャート。The flowchart which shows the processing content of the main routine at the time of the imaging | photography mode which concerns on the embodiment. 同実施の形態に係る撮影モード時の画像種類の判別に関するサブルーチンの処理内容を示すフローチャート。7 is a flowchart showing the processing contents of a subroutine related to image type discrimination in the shooting mode according to the embodiment. 同実施の形態に係る撮影画像を例示する図。The figure which illustrates the picked-up image which concerns on the same embodiment. 同実施の形態に係る撮影画像を例示する図。The figure which illustrates the picked-up image which concerns on the same embodiment. 同実施の形態に係る撮影画像を例示する図。The figure which illustrates the picked-up image which concerns on the same embodiment. 同実施の形態に係る画像のブロック化を説明するための図。The figure for demonstrating the blocking of the image which concerns on the embodiment.

符号の説明Explanation of symbols

10…デジタルカメラ、11…モータ(M)、12…レンズ光学系、13…CCD、14…タイミング発生器(TG)、15…CCDドライバ、16…サンプルホールド回路(S/H)、17…A/D変換器、18…カラープロセス回路、19…DMAコントローラ、20…DRAMインタフェース(I/F)、21…DRAM、22…制御部、23…VRAMコントローラ、24…VRAM、25…デジタルビデオエンコーダ、26…表示部、27…キー入力部、28…JPEG回路、29…内蔵メモリ、30…メモリカード、31…音声処理部、32…ストロボ駆動部、33…マイクロホン部(MIC)、34…スピーカ部(SP)、35…ストロボ発光部。   DESCRIPTION OF SYMBOLS 10 ... Digital camera, 11 ... Motor (M), 12 ... Lens optical system, 13 ... CCD, 14 ... Timing generator (TG), 15 ... CCD driver, 16 ... Sample hold circuit (S / H), 17 ... A / D converter, 18 ... color process circuit, 19 ... DMA controller, 20 ... DRAM interface (I / F), 21 ... DRAM, 22 ... control unit, 23 ... VRAM controller, 24 ... VRAM, 25 ... digital video encoder, 26 ... Display unit, 27 ... Key input unit, 28 ... JPEG circuit, 29 ... Built-in memory, 30 ... Memory card, 31 ... Audio processing unit, 32 ... Strobe drive unit, 33 ... Microphone unit (MIC), 34 ... Speaker unit (SP), 35... Strobe light emitting unit.

Claims (10)

画像信号を入力する入力手段と、
この入力手段で得た画像信号から画像の種類を判別する判別手段と、
この判別手段で得た判別結果に応じて輝度ムラの補正係数を設定する設定手段と、
上記入力手段で得た画像信号の輝度値を画素単位で上記設定手段で設定した補正係数により補正する輝度補正手段と、
この輝度補正手段を経た輝度補正後の画像信号を出力する出力手段と
を具備したことを特徴とする画像処理装置。
An input means for inputting an image signal;
Discriminating means for discriminating the type of image from the image signal obtained by the input means;
Setting means for setting a correction coefficient for luminance unevenness according to the determination result obtained by the determination means;
Luminance correction means for correcting the luminance value of the image signal obtained by the input means by a correction coefficient set by the setting means in units of pixels;
An image processing apparatus comprising: output means for outputting an image signal after brightness correction that has passed through the brightness correction means.
上記輝度補正手段は、画像信号を複数のブロックに分割し、分割した各ブロック中の画素の最大輝度値と上記最大輝度値の全ブロックでの平均値とをさらに用いて輝度値を補正することを特徴とする請求項1記載の画像処理装置。   The luminance correction means divides the image signal into a plurality of blocks, and corrects the luminance value by further using the maximum luminance value of the pixel in each divided block and the average value of the maximum luminance value in all blocks. The image processing apparatus according to claim 1. 上記画像信号を分割するブロックは、縦8画素×横8画素の基本ブロックを単位とすることを特徴とする請求項2記載の画像処理装置。   3. The image processing apparatus according to claim 2, wherein the block into which the image signal is divided has a basic block of 8 vertical pixels × 8 horizontal pixels as a unit. 上記設定手段は、上記判別手段で得た判別結果と画像信号の解像度とに応じて輝度ムラの補正係数を設定することを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the setting unit sets a correction coefficient for luminance unevenness according to the determination result obtained by the determination unit and the resolution of the image signal. 上記判別手段は、上記入力手段で得た画像信号に対して輪郭抽出処理を行ない、抽出した輪郭内の画像の種類を判別することを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the determination unit performs a contour extraction process on the image signal obtained by the input unit, and determines a type of an image in the extracted contour. 上記判別手段は、画像信号を構成する色差信号の変化量が一定の度合いを超えている場合にこれを判別し、
上記設定手段は、上記判別結果に応じて予め用意した補正係数を設定する
ことを特徴とする請求項1記載の画像処理装置。
The discrimination means discriminates this when the change amount of the color difference signal constituting the image signal exceeds a certain degree,
The image processing apparatus according to claim 1, wherein the setting unit sets a correction coefficient prepared in advance according to the determination result.
上記判別手段は、画像信号を構成する色差信号の変化量が一定の度合い以下であり、且つ色差信号の絶対量が一定の度合いを超えている場合にこれを判別し、
上記設定手段は、上記判別結果に応じて予め用意した補正係数を設定する
ことを特徴とする請求項1記載の画像処理装置。
The discrimination means discriminates when the change amount of the color difference signal constituting the image signal is equal to or less than a certain degree and the absolute amount of the color difference signal exceeds a certain degree,
The image processing apparatus according to claim 1, wherein the setting unit sets a correction coefficient prepared in advance according to the determination result.
上記判別手段は、画像信号を構成する色差信号の変化量が一定の度合い以下であり、且つ色差信号の絶対量が一定の度合い以下である場合にこれを判別し、
上記設定手段は、上記判別結果に応じて予め用意した補正係数を設定する
ことを特徴とする請求項1記載の画像処理装置。
The discrimination means discriminates this when the change amount of the color difference signal constituting the image signal is not more than a certain degree and the absolute amount of the color difference signal is not more than a certain degree,
The image processing apparatus according to claim 1, wherein the setting unit sets a correction coefficient prepared in advance according to the determination result.
画像信号を入力する入力工程と、
この入力工程で得た画像信号から画像の種類を判別する判別工程と、
この判別工程で得た判別結果に応じて輝度ムラの補正係数を設定する設定工程と、
上記入力工程で得た画像信号の輝度値を画素単位で上記設定工程で設定した補正係数により補正する輝度補正工程と、
この輝度補正工程を経た輝度補正後の画像信号を出力する出力工程と
を有したことを特徴とする画像処理方法。
An input process for inputting an image signal;
A discrimination step for discriminating the type of image from the image signal obtained in this input step;
A setting step of setting a correction coefficient for luminance unevenness according to the determination result obtained in this determination step;
A luminance correction step of correcting the luminance value of the image signal obtained in the input step by the correction coefficient set in the setting step in units of pixels;
An image processing method comprising: an output step of outputting an image signal after luminance correction after the luminance correction step.
画像信号を入力する入力ステップと、
この入力ステップで得た画像信号から画像の種類を判別する判別ステップと、
この判別ステップで得た判別結果に応じて輝度ムラの補正係数を設定する設定ステップと、
上記入力ステップで得た画像信号の輝度値を画素単位で上記設定ステップで設定した補正係数により補正する輝度補正ステップと、
この輝度補正ステップを経た輝度補正後の画像信号を出力する出力ステップと
をコンピュータに実行させることを特徴とするプログラム。
An input step for inputting an image signal;
A determination step of determining the type of image from the image signal obtained in this input step;
A setting step for setting a correction coefficient for luminance unevenness according to the determination result obtained in this determination step;
A luminance correction step for correcting the luminance value of the image signal obtained in the input step by a correction coefficient set in the setting step in units of pixels;
A program for causing a computer to execute an output step of outputting an image signal after luminance correction after the luminance correction step.
JP2005285740A 2005-09-30 2005-09-30 Image processing device, image processing method, and program Pending JP2007094917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005285740A JP2007094917A (en) 2005-09-30 2005-09-30 Image processing device, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005285740A JP2007094917A (en) 2005-09-30 2005-09-30 Image processing device, image processing method, and program

Publications (1)

Publication Number Publication Date
JP2007094917A true JP2007094917A (en) 2007-04-12

Family

ID=37980532

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005285740A Pending JP2007094917A (en) 2005-09-30 2005-09-30 Image processing device, image processing method, and program

Country Status (1)

Country Link
JP (1) JP2007094917A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003209693A (en) * 2002-01-11 2003-07-25 Canon Inc Image processor and image processing method
JP2004088408A (en) * 2002-08-27 2004-03-18 Minolta Co Ltd Digital camera
JP2005260657A (en) * 2004-03-12 2005-09-22 Casio Comput Co Ltd Photographing apparatus, image processing method and program therefor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003209693A (en) * 2002-01-11 2003-07-25 Canon Inc Image processor and image processing method
JP2004088408A (en) * 2002-08-27 2004-03-18 Minolta Co Ltd Digital camera
JP2005260657A (en) * 2004-03-12 2005-09-22 Casio Comput Co Ltd Photographing apparatus, image processing method and program therefor

Similar Documents

Publication Publication Date Title
JP4869270B2 (en) Imaging apparatus and image reproduction apparatus
KR101256326B1 (en) Image capturing apparatus, image capturing method, and storage medium storing program for image capturing
KR101626004B1 (en) Method and apparatus for selective support of the RAW format in digital imaging processor
US7830447B2 (en) Imaging apparatus including a plurality of image pickup elements
JP2005269373A (en) Video signal processing system, and electronic video apparatus
JP2006197243A (en) Imaging apparatus and method, program, and storage medium
JP4375325B2 (en) Image processing apparatus, image processing method, and program
JP2008022306A (en) Imaging device and program thereof
JP2017175319A (en) Image processing apparatus, image processing method, and program
JP2001285698A (en) Electronic camera
JP2006262071A (en) Image display control apparatus and program
JP2009065320A (en) Imaging device
JP4379921B2 (en) Imaging apparatus and program thereof
JP2009033385A (en) Image processor, image processing method, image processing program and imaging device
JP2006094031A (en) Imaging apparatus, image processing method, and program
JP2008124793A (en) Imaging apparatus, and imaging method
JP5282533B2 (en) Image processing apparatus, imaging apparatus, and program
JP2007282279A (en) Information processing apparatus and recording medium
JP2007094917A (en) Image processing device, image processing method, and program
JP5696525B2 (en) Imaging apparatus, imaging method, and program
JP4962597B2 (en) Electronic camera and program
KR101423918B1 (en) Digital image processing apparatus which display a boundary image of an object and the controlling method of the same
JP2005347885A (en) Imaging unit, photographing range adjustment method, and program
JP2003087647A (en) Digital still camera
JP4934983B2 (en) Camera device, photographing method and photographing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100928

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110426