JP5693647B2 - Image processing method, image processing apparatus, and imaging apparatus - Google Patents

Image processing method, image processing apparatus, and imaging apparatus Download PDF

Info

Publication number
JP5693647B2
JP5693647B2 JP2013096521A JP2013096521A JP5693647B2 JP 5693647 B2 JP5693647 B2 JP 5693647B2 JP 2013096521 A JP2013096521 A JP 2013096521A JP 2013096521 A JP2013096521 A JP 2013096521A JP 5693647 B2 JP5693647 B2 JP 5693647B2
Authority
JP
Japan
Prior art keywords
saturation
image data
correction
image
predetermined
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.)
Active
Application number
JP2013096521A
Other languages
Japanese (ja)
Other versions
JP2013176144A (en
Inventor
長谷川 玲治
玲治 長谷川
哲也 秦
哲也 秦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2013096521A priority Critical patent/JP5693647B2/en
Publication of JP2013176144A publication Critical patent/JP2013176144A/en
Application granted granted Critical
Publication of JP5693647B2 publication Critical patent/JP5693647B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Description

本発明は、入力された画像のシーンを判別し、判別したシーンに応じた画像処理を行う画像処理方法、画像処理装置及び撮像装置に関するものである。   The present invention relates to an image processing method, an image processing apparatus, and an imaging apparatus that determine a scene of an input image and perform image processing according to the determined scene.

従来、画像のシーンや被写体の種類を判別し、判別したシーンや被写体の種類に応じた画像処理を行う画像処理装置があった。   2. Description of the Related Art Conventionally, there has been an image processing apparatus that determines the type of an image scene or subject and performs image processing in accordance with the determined scene or type of subject.

例えば、特許文献1では、入力された画像データが鮮やかなシーン(被写体)であるかを判別し、鮮やかなシーンの画像は高解像度で出力する画像出力装置が開示されている。   For example, Patent Document 1 discloses an image output apparatus that determines whether input image data is a vivid scene (subject) and outputs an image of a vivid scene with high resolution.

また、特許文献2では、入力された画像データの明るさを判別し、明るさに応じた彩度の知覚変化に合わせて画像データの彩度を補正する撮像装置が開示されている。   Patent Document 2 discloses an imaging apparatus that determines the brightness of input image data and corrects the saturation of the image data in accordance with a perceptual change in saturation according to the brightness.

特開2000−259372号公報JP 2000-259372 A 特開2007−267170号公報JP 2007-267170 A

しかし、特許文献1のような処理では、画像内の全ての色に対して一律に補正を行うので、被写体の種類によっては違和感が生じる場合があるという課題があった。例えば、人間は人の肌色などの記憶色と呼ばれる色の変化に敏感であるため、人の肌色の彩度を上述のような方法で、他の色と同じように補正してしまうと、違和感のある画像になってしまう。   However, in the process as described in Patent Document 1, since all the colors in the image are uniformly corrected, there is a problem that a sense of incongruity may occur depending on the type of subject. For example, humans are sensitive to changes in colors called memory colors, such as human skin color, so it would be uncomfortable if the saturation of human skin color was corrected in the same way as other colors using the method described above. It becomes an image with.

特許文献2では、彩度補正の際に肌色を除外しているが、画像の色相のみに基づいて、肌色であるか否かを判定しているため、人の肌色とは彩度などが異なる色に対しても影響を与える場合があった。   In Patent Document 2, skin color is excluded at the time of saturation correction. However, since it is determined whether or not the skin color is based on only the hue of the image, the saturation is different from human skin color. It may have an effect on color.

そこで、本発明の目的は、入力された画像の撮影されたシーンを判別し、判別結果に応じて画像を補正する画像処理において、記憶色の被写体が存在する場合の違和感を低減させることが可能な画像処理方法、画像処理装置及び撮像装置を提供することである。   Accordingly, an object of the present invention is to reduce a sense of incongruity when there is a subject of a memory color in image processing for determining a scene where an input image is captured and correcting the image according to the determination result. An image processing method, an image processing apparatus, and an imaging apparatus are provided.

上記目的を達成するために、本発明の画像処理方法は、請求項1に記載の通り、画像データを取得する取得ステップと、前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正ステップと、画像データの画像中の被写体を検出する検出ステップと、を有し、前記第1の補正ステップでは、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行い、前記第1の補正ステップでは、前記検出ステップで被写体が検出されたとき、前記検出ステップで被写体が検出されなかったときに比べて前記補正処理を弱く行ことを特徴とする。 In order to achieve the above object, an image processing method of the present invention, as described in claim 1, an acquisition step of acquiring image data, in accordance with the chroma information of the image data, corrects the image data A first correction step for performing a correction process, and a detection step for detecting a subject in the image of the image data, wherein the first correction step is larger than a predetermined saturation threshold in the image of the image data. When the area of the saturation is larger than a predetermined value, the correction process is performed. In the first correction step, when the subject is detected in the detection step, the subject is not detected in the detection step. characterized in that intends weakened line said correction processing as compared with.

また、本発明の画像処理方法は、請求項2に記載の通り、画像データを取得する取得ステップと、前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正ステップと、前記画像データの画像中の被写体を検出する検出ステップと、前記検出ステップで前記被写体が検出されたとき、前記第1の補正ステップで補正処理された前記画像データ中の、色相及び彩度がそれぞれ所定の領域内である画像データに対して、前記補正処理を打ち消す方向に補正する処理を行う第2の補正ステップと、を有し、前記第1の補正ステップでは、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする。 In the image processing method of the present invention, as described in claim 2, an acquisition step of acquiring image data, in accordance with the chroma information of the image data, first performing a correction process for correcting the image data A correction step, a detection step for detecting a subject in the image of the image data, and a hue in the image data corrected in the first correction step when the subject is detected in the detection step. And a second correction step for correcting the image data whose saturation is within a predetermined area in a direction that cancels the correction processing. In the first correction step, the image data The correction processing is performed when the area of a region having a saturation greater than a predetermined saturation threshold in the image of is greater than a predetermined value .

また、本発明の画像処理方法は、請求項3に記載の通り、画像データを取得する取得ステップと、前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正ステップと、画像データの画像中の被写体を検出する検出ステップと、を有し、前記第1の補正ステップでは、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行い、前記第1の補正ステップでは、画像データの画像中の、前記検出ステップで前記被写体が検出された領域以外の領域に対して、前記補正処理を行うことを特徴とする。 In the image processing method of the present invention, as described in claim 3, an acquisition step of acquiring image data, in accordance with the chroma information of the image data, first performing a correction process for correcting the image data And a detection step of detecting a subject in the image of the image data . In the first correction step, an area having a saturation greater than a predetermined saturation threshold in the image of the image data. When the area is larger than a predetermined value, the correction process is performed. In the first correction step, the correction process is performed on an area of the image data other than the area where the subject is detected in the detection step. It is characterized by performing .

また、本発明の画像処理装置は、請求項14に記載の通り、画像データを取得する取得手段と、前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、画像データの画像中の被写体を検出する検出手段と、を有し、前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行い、前記第1の補正手段は、前記検出手段で被写体が検出されたとき、前記検出手段で被写体が検出されなかったときに比べて前記補正処理を弱く行うことを特徴とする。 The image processing apparatus of the present invention, as described in claim 14, an acquisition unit for acquiring image data, in accordance with the chroma information of the image data, first performing a correction process for correcting the image data Correction means, and detection means for detecting a subject in the image of the image data, wherein the first correction means is a region having a saturation greater than a predetermined saturation threshold in the image of the image data. When the area is larger than a predetermined value, the correction process is performed, and the first correction unit performs the correction process when the subject is detected by the detection unit and when the subject is not detected by the detection unit. It is characterized by performing weakly.

また、本発明の画像処理装置は、請求項15に記載の通り、画像データを取得する取得手段と、前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、画像データの画像中の被写体を検出する検出手段と、前記検出手段で前記被写体が検出されたとき、前記第1の補正手段で補正処理された前記画像データ中の、色相及び彩度が所定の領域内である画像データに対して、前記補正処理を打ち消す方向に補正する処理を行う第2の補正手段と、を有し、前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする。 According to a fifteenth aspect of the present invention, there is provided an image processing apparatus according to a fifteenth aspect, wherein the acquisition means for acquiring the image data and the first correction processing for correcting the image data according to the saturation information of the image data. Correction means, detection means for detecting a subject in the image of the image data, and hue and saturation in the image data corrected by the first correction means when the detection means detects the subject. Second correction means for performing processing for correcting the image data whose degree is within a predetermined region in a direction to cancel the correction processing, and the first correction means The correction process is performed when the area of a region having a saturation greater than a predetermined saturation threshold is greater than a predetermined value.

また、本発明の画像処理装置は、請求項16に記載の通り、画像データを取得する取得手段と、前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、前記画像データの画像中の被写体を検出する検出手段と、前記第1の補正手段は、画像データの画像中の、前記検出手段で前記被写体が検出された領域以外の領域に対して、前記補正処理を行い、前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする。 The image processing apparatus of the present invention, as described in claim 16, an acquisition unit for acquiring image data, in accordance with the chroma information of the image data, first performing a correction process for correcting the image data The correction means, a detection means for detecting a subject in the image of the image data, and the first correction means are provided in an area other than the area in the image of the image data where the subject is detected by the detection means. On the other hand, the correction process is performed, and the first correction unit performs the correction process when an area of a region having a saturation larger than a predetermined saturation threshold in the image of the image data is larger than a predetermined value. It is characterized by.

また、本発明の撮像装置は、請求項25に記載の通り、被写体を撮像し、画像データを出力する撮像手段と、前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、画像データの画像中の被写体を検出する検出手段と、を有し、前記第1の補正手段は、前記検出手段で被写体が検出されたとき、前記検出手段で被写体が検出されなかったときに比べて前記補正処理を弱く行い、前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする。 The imaging apparatus of the present invention, as described in claim 25, images a subject, an imaging unit for outputting image data, in accordance with the chroma information of the image data, correction processing for correcting the image data And a first detecting unit that detects a subject in the image of the image data. When the first detecting unit detects the subject, the detecting unit The correction process is performed weaker than when no subject is detected, and the first correction unit has an area of a region whose saturation is greater than a predetermined saturation threshold in the image of the image data is greater than a predetermined value. In this case, the correction process is performed.

また、本発明の撮像装置は、請求項26に記載の通り、被写体を撮像し、画像データを出力する撮像手段と、前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、前記画像データの画像中の被写体を検出する検出手段と、前記検出手段で前記被写体が検出されたとき、前記第1の補正手段で補正処理された前記画像データ中の、色相及び彩度がそれぞれ所定の領域内である画像データに対して、鮮やかさを前記補正処理と逆方向に補正する処理を行う第2の補正手段と、を有し、前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする。 In addition, according to a twenty-sixth aspect of the present invention, there is provided an image pickup device for picking up an image of a subject and outputting image data, and a correction process for correcting the image data in accordance with the saturation information of the image data. First correcting means to perform, detecting means for detecting a subject in the image of the image data, and when the subject is detected by the detecting means, in the image data corrected by the first correcting means Second correction means for performing a process of correcting the vividness in a direction opposite to the correction process for image data each having a hue and saturation within a predetermined region. The correction means performs the correction process when an area of a region having a saturation larger than a predetermined saturation threshold in the image of the image data is larger than a predetermined value.

また、本発明の撮像装置は、請求項27に記載の通り、被写体を撮像し、画像データを出力する撮像手段と、前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、前記画像データの画像中の被写体を検出する検出手段と、前記第1の補正手段は、画像データの画像中の、前記検出手段で前記被写体が検出された領域以外の領域に対して、前記補正処理を行い、前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする。 The imaging apparatus of the present invention, as described in claim 27, images a subject, an imaging unit for outputting image data, in accordance with the chroma information of the image data, correction processing for correcting the image data A first correction unit that performs detection, a detection unit that detects a subject in the image of the image data, and a first correction unit that includes a region in the image data in which the subject is detected by the detection unit. The correction processing is performed on a region other than the region, and the first correction unit performs the correction when the area of a region having a saturation greater than a predetermined saturation threshold in the image of the image data is greater than a predetermined value. It is characterized by performing processing.

本発明によれば、撮影されたシーンを判別し、判別結果に応じて画像を補正する画像処理画像処理装置において、肌色等の記憶色の被写体が存在する場合でもの違和感を生じさせない、もしくは低減させすることができる。   According to the present invention, in an image processing image processing apparatus that discriminates a photographed scene and corrects an image according to the discrimination result, a sense of incongruity is not caused or reduced even when a subject having a memory color such as skin color exists. Can be.

第1の実施形態に係る撮像装置の構成を示すブロック図1 is a block diagram illustrating a configuration of an imaging apparatus according to a first embodiment. 画像信号のブロック分割を示す図Diagram showing block division of image signal 色差信号と彩度・色相の関係を示す図Diagram showing the relationship between color difference signal and saturation / hue 第1の実施形態に係るシーン判別部の処理を示すフローチャートThe flowchart which shows the process of the scene discrimination | determination part concerning 1st Embodiment. シーン判別部が行うシーン判別処理の特性を示す図The figure which shows the characteristic of the scene discrimination process which a scene discrimination | determination part performs 第1の実施形態に係る画像信号の補正処理を示すフローチャート5 is a flowchart showing image signal correction processing according to the first embodiment. 第2の実施形態に係る撮像装置の構成を示すブロック図The block diagram which shows the structure of the imaging device which concerns on 2nd Embodiment. 第2の実施形態に係る画像信号の補正処理を示すフローチャート7 is a flowchart showing image signal correction processing according to the second embodiment. 第2の実施形態に係る色相別の画像信号の補正処理を示すフローチャート10 is a flowchart showing correction processing of image signals for each hue according to the second embodiment. 第2の実施形態に係る肌色の判定方法を示す図The figure which shows the determination method of the skin color which concerns on 2nd Embodiment. 第2の実施形態に係る補正処理の特性を示す図The figure which shows the characteristic of the correction process which concerns on 2nd Embodiment

(第1の実施形態)
以下、図1〜図6を参照して、本発明の第1の実施形態による画像処理装置について説明する。
(First embodiment)
The image processing apparatus according to the first embodiment of the present invention will be described below with reference to FIGS.

図1は第1の実施形態に係るシーン判別機能を備え、シーンに応じた画像補正処理を行う画像処理装置の一例である撮像装置の構成を示すブロック図である。図1において、101は被写体の光束を結像するレンズである。102はレンズからの光束を撮像素子に導く際に絞る絞りである。103は入射された光束を光電変換して画像信号として出力する撮像素子である。104はオートゲインコントロールアンプ(AGC)であり、撮像素子103からの信号を適正レベルに増幅する。   FIG. 1 is a block diagram illustrating a configuration of an imaging apparatus that is an example of an image processing apparatus that includes the scene determination function according to the first embodiment and performs image correction processing according to a scene. In FIG. 1, reference numeral 101 denotes a lens that forms an image of a luminous flux of a subject. Reference numeral 102 denotes an aperture stop that is used to guide the light flux from the lens to the image sensor. An image sensor 103 photoelectrically converts an incident light beam and outputs it as an image signal. An auto gain control amplifier (AGC) 104 amplifies the signal from the image sensor 103 to an appropriate level.

105は輝度・色信号生成部であり、撮像素子103で生成された信号を輝度信号(Y)、及び色信号(R,G,B)に変換する。106はホワイトバランス増幅部であり、輝度・色信号生成部105から出力される色信号(R,G,B)をホワイトバランスゲインに従って増幅し、増幅色信号(R’,G’,B’)を生成する。107は色差信号生成部であり、色差信号(R’−Y,B’−Y)を生成する。108は、色差信号に対してゲインをかけるなどの補正を行う色差信号補正部、109は標準テレビ信号等に変換するエンコーダである。   A luminance / color signal generation unit 105 converts a signal generated by the image sensor 103 into a luminance signal (Y) and color signals (R, G, B). A white balance amplifying unit 106 amplifies the color signals (R, G, B) output from the luminance / color signal generation unit 105 according to the white balance gain, and amplifies the color signals (R ′, G ′, B ′). Is generated. A color difference signal generation unit 107 generates color difference signals (R′−Y, B′−Y). Reference numeral 108 denotes a color difference signal correction unit that performs correction such as applying gain to the color difference signal, and 109 denotes an encoder that converts the color difference signal into a standard television signal or the like.

110は信号分割部であり、輝度信号(Y)、色差信号(R’−Y,B’−Y)を所定の小ブロックに分割する。111は、色差信号(R’−Y,B’−Y)から彩度信号(Chroma)を算出する彩度算出部である。112は、入力画像のシーンを判別するシーン判別部である。113は撮像システム全体を制御するカメラ制御部であり、図示していないが撮像装置中の各部に指示を送り、処理を行わせることができる。114は撮影画像から人物の顔を検出する顔検出部である。   A signal dividing unit 110 divides the luminance signal (Y) and the color difference signals (R′−Y, B′−Y) into predetermined small blocks. Reference numeral 111 denotes a saturation calculation unit that calculates a saturation signal (Chroma) from the color difference signals (R′−Y, B′−Y). A scene discriminating unit 112 discriminates the scene of the input image. Reference numeral 113 denotes a camera control unit that controls the entire imaging system. Although not shown, an instruction can be sent to each unit in the imaging apparatus to perform processing. Reference numeral 114 denotes a face detection unit that detects a person's face from the photographed image.

次に、図1の撮像装置の撮影動作について説明する。レンズ101、アイリス102を通過した被写体像は撮像素子103上に結像される。撮像素子103に入射した光は、光電変換され、AGCアンプ104で適正レベルに増幅された後、輝度・色信号生成部105に出力される。輝度・色信号生成部105では、輝度信号(Y)及び色信号(R,G,B)を生成し、このうち色信号(R,G,B)をホワイトバランス増幅部106に出力し、輝度信号(Y)をエンコーダ109に出力する。   Next, the shooting operation of the image pickup apparatus in FIG. 1 will be described. The subject image that has passed through the lens 101 and the iris 102 is formed on the image sensor 103. Light incident on the image sensor 103 is photoelectrically converted, amplified to an appropriate level by the AGC amplifier 104, and then output to the luminance / color signal generation unit 105. The luminance / color signal generation unit 105 generates a luminance signal (Y) and color signals (R, G, B), and outputs the color signal (R, G, B) to the white balance amplification unit 106 for luminance. The signal (Y) is output to the encoder 109.

ホワイトバランス増幅部106では、カメラ制御部113によって算出されたホワイトバランスゲインに基づいて色信号(R,G,B)を増幅し、増幅した色信号(R’,G’,B’)を色差信号生成部107に出力する。色差信号生成部107では、色信号(R’,G’,B’)から色差信号(R’−Y,B’−Y)を生成し、色差信号補正部108及び信号分割部110に出力する。   The white balance amplification unit 106 amplifies the color signals (R, G, B) based on the white balance gain calculated by the camera control unit 113, and the amplified color signals (R ′, G ′, B ′) are color-differenced. The signal is output to the signal generator 107. The color difference signal generation unit 107 generates color difference signals (R′−Y, B′−Y) from the color signals (R ′, G ′, B ′) and outputs them to the color difference signal correction unit 108 and the signal division unit 110. .

色差信号補正部108では、色差信号(R’−Y,B’−Y)に対して、カメラ制御部113によって算出された色差ゲインG(ゲインの強度に関しては後述する)をかけ補正する。また、補正後の色差信号(R’−Y,B’−Y)をエンコーダ109に出力する。エンコーダ109では、輝度信号(Y)及び色差信号(R’−Y,B’−Y)からNTSC等の標準テレビジョン信号を生成し、不図示の記録部へ出力する。   The color difference signal correction unit 108 corrects the color difference signals (R′−Y, B′−Y) by applying the color difference gain G (the gain intensity will be described later) calculated by the camera control unit 113. Further, the corrected color difference signals (R′−Y, B′−Y) are output to the encoder 109. The encoder 109 generates a standard television signal such as NTSC from the luminance signal (Y) and the color difference signals (R′−Y, B′−Y) and outputs the standard television signal to a recording unit (not shown).

次に本発明の特徴部分である、画像データに施す、撮影シーンに応じた画像処理について説明する。本実施形態では、撮像系から取り込まれた画像データに基づいて、この画像データが撮影されたシーンが鮮やかなシーンであるか否かを判別し、判別結果に応じた画像処理を画像データに施す処理を行う。このとき、人物等、一般的に記憶色といわれる色を含む被写体が画像中に含まれている場合には、肌色等の記憶色への違和感を低減させる処理を施す。   Next, image processing according to the shooting scene, which is a characteristic part of the present invention, is described. In the present embodiment, based on the image data captured from the imaging system, it is determined whether or not the scene where the image data was captured is a vivid scene, and image processing according to the determination result is performed on the image data. Process. At this time, when an object including a color generally called a memory color, such as a person, is included in the image, processing for reducing a sense of discomfort with the memory color such as a skin color is performed.

本実施形態の特徴部分であるこれら一連の処理についてのフローチャート図を図3に示す。これらの処理はカメラ制御部113の指示によって各部で行われる。   FIG. 3 shows a flowchart of the series of processing that is a characteristic part of the present embodiment. These processes are performed in each unit according to instructions from the camera control unit 113.

ステップS301では、色差信号生成部107から画像データを取得し信号分割部110で複数のブロックに分割される。ステップS302では、画像全体の平均彩度及びブロック毎の彩度を基に、得られた画像データが鮮やかなシーンであるか否かの鮮やか判別処理が行われる。ステップS303では、ステップS302での判別結果に基づいて、画像データに対して補正処理が行われ、処理が終了する。   In step S301, image data is acquired from the color difference signal generation unit 107 and is divided into a plurality of blocks by the signal division unit 110. In step S302, a vivid determination process is performed to determine whether the obtained image data is a vivid scene based on the average saturation of the entire image and the saturation of each block. In step S303, based on the determination result in step S302, a correction process is performed on the image data, and the process ends.

ここで、本実施形態では、シーン判別結果に用いた画像データに対して、その判別結果を反映させ出力しているが、発明としては特にこれに限定されるものではない。すなわち、あるフレーム(画像データ)に対する判別結果に応じた補正処理を、その次のフレーム以降に反映させることなども当然可能である。また、複数フレーム鮮やかなシーン判別結果が続いたときに初めてシーンを特定したり、複数フレーム中、鮮やかなシーンと判別された割合が高い場合にシーンを特定したりと、複数フレームの判別結果からシーンを特定することも考えられる。このとき、判別結果に応じた補正処理は、それら複数フレームや、以降のフレームに反映させることが考えられる。   Here, in the present embodiment, the image data used for the scene discrimination result is output by reflecting the discrimination result, but the invention is not particularly limited to this. In other words, it is naturally possible to reflect the correction processing corresponding to the determination result for a certain frame (image data) in the subsequent frames. In addition, the scene is identified for the first time when a multi-frame vivid scene discrimination result continues, or the scene is identified when the ratio of vivid scenes is high in multiple frames. It is also possible to specify a scene. At this time, it is conceivable that the correction process according to the determination result is reflected in the plurality of frames and the subsequent frames.

具体的に想定される状況としては、静止画撮影が可能な撮像装置や画像データに画像処理を施すPCなどの情報処理装置において、撮影された画像データ(フレーム)に対して処理を行う状況がある。また、ライブビュー表示または動画撮影が可能な撮像装置や動画に画像処理を施すPCなどの情報処理装置において、複数フレームにまたがった上記のような処理が想定される。   The situation that is specifically assumed is a situation in which processing is performed on captured image data (frames) in an imaging apparatus capable of capturing a still image or an information processing apparatus such as a PC that performs image processing on image data. is there. In addition, in an information processing apparatus such as an imaging apparatus capable of live view display or moving image shooting or a PC that performs image processing on a moving image, the above-described processing over a plurality of frames is assumed.

次に、上述した一連の各処理についての詳細を説明する。ステップS301では、色差信号生成部107から出力される色差信号を信号分割部110に取り込む。取り込まれた画像全体は、図2に示すようなブロック(8×8ブロック)に分割し、ブロック毎の色差信号(R’−Y,B’−Y)の平均値を算出し、彩度算出部111に出力される。彩度算出部111では、ブロック毎の色差信号(R’−Y、B’−Y)から、ブロック毎の彩度(Chroma)を算出する。色差信号と彩度の関係を図5(a)に示した。なお、図中には、色差信号と色相(Hue)の関係も示した。また、色差信号から色相、彩度を算出する式を以下に示した。   Next, the details of the series of processes described above will be described. In step S <b> 301, the color difference signal output from the color difference signal generation unit 107 is taken into the signal division unit 110. The entire captured image is divided into blocks (8 × 8 blocks) as shown in FIG. 2, and an average value of color difference signals (R′−Y, B′−Y) for each block is calculated to calculate saturation. Is output to the unit 111. The saturation calculation unit 111 calculates the saturation (Chroma) for each block from the color difference signals (R′−Y, B′−Y) for each block. The relationship between the color difference signal and the saturation is shown in FIG. In the figure, the relationship between the color difference signal and the hue (Hue) is also shown. Further, equations for calculating hue and saturation from the color difference signal are shown below.

彩度算出部111は、算出したブロック毎の彩度(Chroma)をシーン判別部112へ出力する。   The saturation calculation unit 111 outputs the calculated saturation (Chroma) for each block to the scene determination unit 112.

次にステップS302で行われる鮮やか判別処理について図4のフローチャート、図5(b)を用いて詳述する。鮮やか判別処理はカメラ制御部113の指示によってシーン判別部112で行われる。図4において、ステップS401では、彩度算出部111が算出したブロック毎の彩度を、画像の全ブロックに対して平均し、平均彩度を算出する。   Next, the vividness determination process performed in step S302 will be described in detail with reference to the flowchart of FIG. 4 and FIG. The vividness determination process is performed by the scene determination unit 112 in accordance with an instruction from the camera control unit 113. In FIG. 4, in step S <b> 401, the saturation for each block calculated by the saturation calculation unit 111 is averaged over all blocks of the image to calculate the average saturation.

ステップS402では、画像の全ブロックの中で、その彩度が所定の彩度閾値以上であるブロック(高彩度ブロック)の数をカウントする。   In step S402, the number of blocks (high saturation blocks) whose saturation is greater than or equal to a predetermined saturation threshold among all the blocks of the image is counted.

ステップS403では、算出したブロック数を所定のブロック閾値と比較し、シーンの判別を行う。図5(b)は、鮮やかなシーンの判別基準を表しており、図の横軸は画像全体の平均彩度、縦軸は高彩度ブロックの数を表している。図の斜線で示した領域が鮮やかなシーンと判別する場合に相当する。   In step S403, the calculated number of blocks is compared with a predetermined block threshold value to determine a scene. FIG. 5B shows a distinction criterion for vivid scenes, where the horizontal axis represents the average saturation of the entire image, and the vertical axis represents the number of high saturation blocks. This corresponds to the case where the area indicated by the oblique lines in the figure is determined to be a vivid scene.

すなわち、ステップS401で算出した平均彩度が所定値(Th_Chroma)より高く、かつ、ステップS402で算出した高彩度ブロック数が所定のブロック閾値(Th_Area)よりも大きい場合に、現在のシーンを鮮やかなシーンであると判別する。   That is, when the average saturation calculated in step S401 is higher than a predetermined value (Th_Chroma) and the number of high saturation blocks calculated in step S402 is larger than a predetermined block threshold (Th_Area), the current scene is displayed as a vivid scene. It is determined that

シーン判別部112は、上述の判別処理を行い、判別基準が満たされる場合はステップS404へ進み、現在のシーンを鮮やかなシーンと判別する。一方、判別基準が満たされない場合はステップS405へ進み、現在のシーンを鮮やかではないシーンと判別する。   The scene determination unit 112 performs the above-described determination process, and if the determination criterion is satisfied, the process proceeds to step S404 and determines the current scene as a vivid scene. On the other hand, if the determination criterion is not satisfied, the process proceeds to step S405, where the current scene is determined as a scene that is not vivid.

ステップS406では、シーン判別部112が、シーン判別結果をカメラ制御部113へ出力する。以上が、シーン判別部112が行うシーン判別処理である。   In step S406, the scene determination unit 112 outputs the scene determination result to the camera control unit 113. The above is the scene discrimination process performed by the scene discrimination unit 112.

最後に、ステップS303で行われる鮮やか補正処理(第1の補正ステップ)について詳述する。図6は鮮やか補正処理の流れを示したフローチャートである。ここでの処理はカメラ制御部113で行われる。ステップS601では、色差信号生成部107より出力された画像データの画像中の特定の被写体を検出するための、被写体検出処理を行う。特定の被写体とは、一般的に記憶色とされている色を含む被写体を示し、本実施形態では、肌色を含む人物を特定の被写体として検出する。また、人物を検出する処理として、顔検出部114によって顔検出処理を行う。具体的には、顔検出部114は、種々の顔パターンをテンプレートとして予め用意しておき、入力された画像データとの間でパターンマッチングを行うことにより、人物の顔を検出する。なお、顔検出部114の顔検出方法はこれに限らず、顔の検出できる方法であればなんでも適用できる。顔検出部114は、画像中に人物の顔が検出されたか否かの情報を、カメラ制御部113へ出力する。   Finally, the vivid correction process (first correction step) performed in step S303 will be described in detail. FIG. 6 is a flowchart showing the flow of vivid correction processing. This process is performed by the camera control unit 113. In step S <b> 601, subject detection processing is performed to detect a specific subject in the image of the image data output from the color difference signal generation unit 107. The specific subject refers to a subject including a color that is generally regarded as a memory color. In the present embodiment, a person including a skin color is detected as the specific subject. Further, as a process for detecting a person, the face detection unit 114 performs a face detection process. Specifically, the face detection unit 114 prepares various face patterns as templates in advance, and detects a person's face by performing pattern matching with input image data. The face detection method of the face detection unit 114 is not limited to this, and any method that can detect a face can be applied. The face detection unit 114 outputs information on whether or not a human face has been detected in the image to the camera control unit 113.

ステップS602では、シーン判別部112でのシーン判別結果を用いて現在のシーンが鮮やかなシーンと判別されたか否かの判定を行う。鮮やかなシーンだと判別されている場合は、ステップS603に進み、鮮やかなシーンでないと判別されている場合は、ステップS606に進む。ステップS603では、顔検出部114の検出結果に基づいて、画像中に人物が検出されたか否かの判定処理を行う。人物が検出されている場合、ステップS604に進み、人物が検出されていない場合、ステップS605に進む。ステップS604、605、606ではこれら3つの判定結果に対応して、色差信号補正部108で彩度補正に用いられる色差ゲインGがそれぞれ設定される。ステップS604、すなわち鮮やかなシーンであり、顔が検出された場合には色差ゲインGとしてG1が設定される。ステップS605、すなわち鮮やかなシーンであり、人物が検出されていない場合には色差ゲインGとしてG2が設定される。ステップS606、すなわち鮮やかなシーンでない場合には色差ゲインGとしてG0が設定される。ここで、これら色差ゲインGの大小関係は、
G0(鮮やかでない)<G1(鮮やか・人物有り)<G2(鮮やか・人物無し)
となっている。すなわち、人物の顔が検出された場合には、色差信号の補正強度を弱めているため、人物の肌色の彩度が大きく変化することが無く、違和感が低減される。ここでは、各パラメータの値としてG0=1、G1=1.3、G2=1.5とする。
In step S602, it is determined whether or not the current scene is determined to be a vivid scene using the scene determination result in the scene determination unit 112. If it is determined that the scene is a vivid scene, the process proceeds to step S603. If it is determined that the scene is not a vivid scene, the process proceeds to step S606. In step S603, based on the detection result of the face detection unit 114, a determination process is performed to determine whether a person has been detected in the image. If a person is detected, the process proceeds to step S604. If no person is detected, the process proceeds to step S605. In steps S604, 605, and 606, the color difference gain G that is used for saturation correction by the color difference signal correction unit 108 is set corresponding to these three determination results. If the face is detected in step S604, that is, a vivid scene, G1 is set as the color difference gain G. In step S605, that is, a vivid scene and no person is detected, G2 is set as the color difference gain G. In step S606, that is, when the scene is not vivid, G0 is set as the color difference gain G. Here, the magnitude relationship between these color difference gains G is:
G0 (not vivid) <G1 (brilliant / with person) <G2 (brilliant / without person)
It has become. That is, when a person's face is detected, the correction strength of the color difference signal is weakened, so that the saturation of the person's skin color does not change greatly, and the sense of incongruity is reduced. Here, G0 = 1, G1 = 1.3, and G2 = 1.5 as the values of the parameters.

ステップS606では、色差信号補正部108が、設定された色差ゲインGで彩度補正を行う。   In step S606, the color difference signal correcting unit 108 performs saturation correction with the set color difference gain G.

以上、説明したように、本実施形態では、鮮やかなシーンか否かを判別し、判別結果に応じて画像処理を制御する際に、人物の顔の検出結果に基づいて鮮やかなシーンに対して行う画像処理を制御した。具体的には、人物の顔が検出された場合には、検出されなかった場合に比べて、色差ゲインGの値を低く設定した。これにより、画像内に人物がいても、その肌色への違和感が低減される補正を行うことが可能となる。   As described above, in the present embodiment, when determining whether or not the scene is a vivid scene, and controlling the image processing according to the discrimination result, the vivid scene is determined based on the detection result of the person's face. The image processing to be performed was controlled. Specifically, when the face of a person is detected, the value of the color difference gain G is set lower than when it is not detected. As a result, even if there is a person in the image, it is possible to perform correction that reduces the uncomfortable feeling of the skin color.

なお、上記実施形態では、信号分割部110が8×8ブロックに画像信号を分割する例を説明したが、画像の色信号に応じて鮮やかなシーンの判別を制御する構成であれば、どのような分割数であってもかまわない。また、画素単位での色信号からシーンを判別する構成であっても構わない。   In the above-described embodiment, the example in which the signal dividing unit 110 divides the image signal into 8 × 8 blocks has been described. Any number of divisions may be used. Further, the configuration may be such that the scene is discriminated from the color signal in pixel units.

また、上記実施形態では、色相・彩度を色差信号から算出したが、本発明は色相・彩度の算出方法をこれに限定するものではない。例えば、L*a*b*空間などの他の空間に一度変換してからL*a*b*空間での色相・彩度を算出してもよい。   In the above embodiment, the hue / saturation is calculated from the color difference signal, but the present invention is not limited to this method of calculating the hue / saturation. For example, the hue / saturation in the L * a * b * space may be calculated after being once converted into another space such as the L * a * b * space.

また、上記実施形態では、鮮やかなシーンであるか否かの判別を平均彩度値と高彩度ブロック数の2つの情報を元に行ったが、鮮やかなシーンの判別方法をこれに限定するものではない。平均彩度、高彩度ブロック数のいずれかを用いて判別を行っても良い。また、例えば、画像中で最も彩度が高い領域での彩度情報に基づいて鮮やかなシーンの判別を行っても良い。   In the above embodiment, whether or not the scene is vivid is determined based on the two pieces of information of the average saturation value and the number of high saturation blocks. However, the method for determining a bright scene is not limited to this. Absent. The determination may be performed using either the average saturation or the number of high saturation blocks. In addition, for example, a vivid scene may be determined based on saturation information in a region with the highest saturation in the image.

また、上記実施形態では、鮮やかなシーンであるか否かの2値で判定したが、鮮やか度合い等のように多値で算出しても構わない。この場合、平均彩度が高ければ高いほど、また、彩度が所定の彩度閾値以上のブロック数が多ければ多いほど鮮やか度合いが高くなる。ただし、もちろん本実施形態で示したG0、G1、G2の大小関係は維持されておく必要が有る。そして、算出した鮮やか度合いに基づき、色差信号補正部108の信号を補正する(鮮やか度合いが高いほど色差ゲインを高くする)。   Moreover, in the said embodiment, although it determined by the binary of whether it is a vivid scene, you may calculate by multiple values like a vivid degree. In this case, the higher the average saturation is, and the more the number of blocks whose saturation is equal to or greater than a predetermined saturation threshold is, the higher the vividness is. However, of course, the magnitude relationship between G0, G1, and G2 shown in the present embodiment needs to be maintained. Then, based on the calculated vividness, the signal of the color difference signal correcting unit 108 is corrected (the higher the vividness, the higher the color difference gain).

また、上記実施形態では、人物の顔が検出されたか否かに応じて色差ゲインGの値を設定したが、本発明は彩度ゲインの設定方法をこれに限定するものではない。例えば、人物の顔が検出された場合に、図2の枠201から算出される顔のサイズS(画像中に占める面積)に応じて色差ゲインGの値を制御するようにしても良い。ここで、顔のサイズSが大きいほど、その色の変化が目立つことになる。したがって、顔のサイズSが大きいほど、色差ゲインGの値をG0に近づけ、顔のサイズSが小さいほど、色差ゲインGの値をG2に近づけて設定すれば良い。また、顔検出の際には、その顔が横顔であるなどの状況も考えられるため、信頼度というパラメータが存在する。これを利用して、信頼度に応じて色差ゲインGの値を制御するようにしても良い。すなわち、G1<G<G2であり、顔としての信頼度が高いほど、色差ゲインGを本実施形態におけるG1に近づけていくような制御が考えられる。   In the above embodiment, the value of the color difference gain G is set according to whether or not a human face is detected. However, the present invention is not limited to this method for setting the saturation gain. For example, when a human face is detected, the value of the color difference gain G may be controlled in accordance with the face size S (area occupied in the image) calculated from the frame 201 in FIG. Here, the larger the face size S, the more noticeable the color change. Therefore, the larger the face size S is, the closer the value of the color difference gain G is to G0, and the smaller the face size S is, the closer it is to set the value of the color difference gain G closer to G2. In addition, when detecting a face, a situation where the face is a profile is also conceivable, and therefore there is a parameter called reliability. Using this, the value of the color difference gain G may be controlled according to the reliability. In other words, G1 <G <G2 is satisfied, and it is conceivable that the color difference gain G is brought closer to G1 in the present embodiment as the reliability of the face is higher.

また、上記実施形態では、鮮やかなシーンであるか否かの判定結果に基づき、色差ゲインGの値を制御する場合について説明したが、鮮やかなシーンであるか否かの判別結果と人物の顔検出結果に基づいて、画像信号を補正する制御であればこれに限らない。例えば、鮮やかなシーンである場合に、被写体の輪郭を強調する輪郭強調補正を行うようにしても良い。これにより、鮮やかな被写体をくっきり見せることで、鮮やかさを強調することができる。この場合、人物の顔に対して輪郭強調を行うと違和感が生じる画像となる。したがって、人物の顔が検出された場合には、輪郭強調補正の強度を弱めるよう制御しても良い。   In the above-described embodiment, the case where the value of the color difference gain G is controlled based on the determination result of whether or not the scene is vivid is described. The present invention is not limited to this as long as the control corrects the image signal based on the detection result. For example, in the case of a vivid scene, contour enhancement correction for enhancing the contour of the subject may be performed. Thus, the vividness can be emphasized by clearly showing a vivid subject. In this case, when contour enhancement is performed on a person's face, the image becomes uncomfortable. Therefore, when the face of a person is detected, control may be performed to reduce the strength of contour enhancement correction.

また、上記実施形態では、特定の被写体として記憶色である肌色を含む人物を検出させているが、本発明はこれに限定されるものではなく、記憶色を含む被写体に対して、エッジ抽出などを用いて被写体検出を行い、本発明を適用することもできる。   In the above embodiment, a person including a skin color that is a memory color is detected as a specific subject. However, the present invention is not limited to this. Edge extraction or the like is performed on a subject including a memory color. The present invention can also be applied by performing subject detection using.

また、本実施形態では、鮮やかなシーンであると判別された画像データに対して彩度を上げ、鮮やかさを強調する処理について述べたが、これに限らず、鮮やかなシーンに対して逆に彩度を下げ、鮮やかさを抑えるような処理にも適用することができる。この場合、例えばG2<G1<G0≦1のようにゲインを設定してやるとよい。   In the present embodiment, the processing for increasing the saturation and enhancing the vividness of the image data determined to be a vivid scene has been described. However, the present invention is not limited to this, and conversely for the vivid scene. It can also be applied to processing that reduces saturation and suppresses vividness. In this case, for example, the gain may be set such that G2 <G1 <G0 ≦ 1.

(第2の実施形態)
第1の実施形態では、シーン判別結果と人物の顔の検出結果に基づいて、鮮やかなシーンにおける画像処理を制御する場合について説明した。具体的には、人物の顔が検出されたか否かに応じて色差ゲインGの値を制御した。
(Second Embodiment)
In the first embodiment, a case has been described in which image processing in a vivid scene is controlled based on a scene determination result and a human face detection result. Specifically, the value of the color difference gain G was controlled according to whether or not a human face was detected.

以下、本発明の第2の実施形態として、シーン判別結果に応じて画像信号の彩度を補正する際に、肌色を除外して補正を行う場合について説明する。図7に本実施形態に係る撮像装置の主要な構成を示した。図1に示した構成要素と同様の構成要素には同一の符号を付し、その詳細な説明は省略する。本実施形態で新たに追加された構成要素について説明する。   Hereinafter, as a second embodiment of the present invention, a case will be described in which correction is performed by excluding skin color when correcting the saturation of an image signal according to a scene discrimination result. FIG. 7 shows a main configuration of the imaging apparatus according to the present embodiment. Constituent elements similar to those shown in FIG. 1 are denoted by the same reference numerals, and detailed description thereof is omitted. Components newly added in the present embodiment will be described.

701は、各画素の色差信号に対して色差ゲインをかけるなどの補正を行う色相別色差信号補正部である。色相別色差信号補正部701は、色相・彩度判定部703の判定結果に基づいて色差信号への補正を制御することにより、ある特定の色相・彩度範囲にある画素に対してのみ補正を行う。   Reference numeral 701 denotes a hue-specific color difference signal correction unit that performs correction such as applying a color difference gain to the color difference signal of each pixel. The hue-specific color difference signal correction unit 701 controls correction to the color difference signal based on the determination result of the hue / saturation determination unit 703, thereby correcting only the pixels in a specific hue / saturation range. Do.

702は、各画素の色差信号(R’−Y、B’−Y)から、画素毎の色相(Hue)・彩度(Chroma)を算出する色相・彩度算出部である。色差信号と色相・彩度の関係は図5(a)に示した通りである。また、色差信号から色相、彩度を算出する式を以下に示した。   Reference numeral 702 denotes a hue / saturation calculation unit that calculates the hue (Hue) / saturation (Chroma) for each pixel from the color difference signals (R′-Y, B′-Y) of each pixel. The relationship between the color difference signal and the hue / saturation is as shown in FIG. Further, equations for calculating hue and saturation from the color difference signal are shown below.

703は、各画素の色相・彩度信号が、それぞれ設定された所定の領域内にあるか否かを判定する色相・彩度判定部である。   Reference numeral 703 denotes a hue / saturation determination unit that determines whether the hue / saturation signal of each pixel is within a predetermined area.

次に本発明の特徴部分である、画像データに施す、撮影シーンに応じた画像処理について説明する。   Next, image processing according to the shooting scene, which is a characteristic part of the present invention, is described.

本実施形態における第1の実施形態との処理の違いは、図3のステップS303の鮮やか補正処理である。本実施形態では、色差信号補正部108、及び、その後段の色相別色差信号補正部701において、色差信号に対する補正(第2の補正ステップ)が行われる。以下、順に、ステップS303で行われる、色差信号補正部108における補正処理と色相別色差信号補正部701における補正処理について説明する。   The difference between the present embodiment and the first embodiment is the vivid correction process in step S303 in FIG. In the present embodiment, correction (second correction step) for the color difference signal is performed in the color difference signal correction unit 108 and the hue-specific color difference signal correction unit 701 in the subsequent stage. Hereinafter, the correction processing in the color difference signal correction unit 108 and the correction processing in the hue-specific color difference signal correction unit 701 performed in step S303 will be described in order.

図8は、色差信号補正部108における彩度の補正処理の流れを示したフローチャートである。   FIG. 8 is a flowchart showing a saturation correction process in the color difference signal correction unit 108.

図8において、ステップS801では、カメラ制御部113が、シーン判別部112によるシーン判別結果が鮮やかなシーンであるか否かを判定する。シーン判別結果が鮮やかなシーンである場合はステップS802へ進み、鮮やかでないシーンである場合はステップS803へ進む。   In FIG. 8, in step S801, the camera control unit 113 determines whether the scene determination result by the scene determination unit 112 is a vivid scene. If the scene discrimination result is a vivid scene, the process proceeds to step S802. If the scene discrimination result is not a vivid scene, the process proceeds to step S803.

ステップS802では、カメラ制御部113が、色差ゲインパラメータG2を色差ゲインGとして選択し、その値を色差信号補正部108へ設定する。   In step S <b> 802, the camera control unit 113 selects the color difference gain parameter G <b> 2 as the color difference gain G, and sets the value to the color difference signal correction unit 108.

ステップS803では、カメラ制御部113が、色差ゲインパラメータG0を色差ゲインGとして選択し、その値を色差信号補正部108へ設定する。   In step S803, the camera control unit 113 selects the color difference gain parameter G0 as the color difference gain G, and sets the value to the color difference signal correction unit 108.

ここで、これら色差ゲインGの大小関係は、G0(鮮やかでない)<G2(鮮やか)となっている。   Here, the magnitude relationship between these color difference gains G is G0 (not bright) <G2 (bright).

ステップS804では、色差信号補正部108が、設定された色差ゲインGに基づいて色差信号に対する補正を行う。以上が、色差信号補正部108における彩度の補正処理の流れである。   In step S804, the color difference signal correcting unit 108 corrects the color difference signal based on the set color difference gain G. The above is the flow of the saturation correction process in the color difference signal correction unit 108.

次に、色相別色差信号補正部701における色相別の色差信号補正について説明する。図8で説明したように、鮮やかなシーンにおいては、画像の全画素に色差ゲインGに基づいた補正が行われており、その彩度が本来の値より高い値になっている。これにより、被写体の鮮やかさを強調することが可能となるが、同時に肌色領域の彩度も高くなるため、違和感のある画像となってしまう。そこで、色相別色差信号補正部701は、肌色領域に対して、色差ゲインGの影響を打ち消す方向に、つまり逆方向に補正処理を行う。これにより、肌色領域の彩度を肌色として違和感の低減された値に戻すことができる。   Next, hue-specific color difference signal correction in the hue-specific color difference signal correction unit 701 will be described. As described with reference to FIG. 8, in a vivid scene, all pixels of the image are corrected based on the color difference gain G, and the saturation is higher than the original value. As a result, it is possible to emphasize the vividness of the subject, but at the same time, the saturation of the skin color region is increased, resulting in an uncomfortable image. Therefore, the hue-specific color difference signal correction unit 701 performs correction processing on the skin color region in a direction that cancels the influence of the color difference gain G, that is, in the reverse direction. As a result, the saturation of the skin color area can be returned to a value with a reduced sense of discomfort as the skin color.

具体的には、色相別色差信号補正部701は、設定された色相別色差ゲインKに基づいて画像信号の彩度を補正する。   Specifically, the hue-specific color difference signal correction unit 701 corrects the saturation of the image signal based on the set hue-specific color difference gain K.

以下、図9を用いて、色相別色差信号補正部701における補正処理(第2の補正ステップ)について説明する。図9は、色相別色差信号補正部701における彩度の補正処理の流れを示したフローチャートである。   Hereinafter, the correction process (second correction step) in the hue-specific color difference signal correction unit 701 will be described with reference to FIG. FIG. 9 is a flowchart showing the flow of saturation correction processing in the hue-specific color difference signal correction unit 701.

ステップS901では、カメラ制御部113が、画像の全ての画素に対して、色相別の色差信号の補正が完了したか否かを判定する。完了していなければステップS902へ進み、完了していれば補正処理を終了する。   In step S <b> 901, the camera control unit 113 determines whether or not the correction of the color difference signal for each hue has been completed for all the pixels of the image. If not completed, the process proceeds to step S902, and if completed, the correction process is terminated.

ステップS902では、カメラ制御部113が、顔検出部114において人物の顔が検出されたか否かを判定する。顔が検出されている場合はステップS903へ進み、顔が検出されていない場合はステップS906へ進む。   In step S <b> 902, the camera control unit 113 determines whether or not a human face is detected by the face detection unit 114. If a face is detected, the process proceeds to step S903, and if a face is not detected, the process proceeds to step S906.

ステップS903では、色相・彩度算出部702が、色差信号補正部108により出力された各画素の色差信号から、各画素の色相・彩度を算出し、色相・彩度判定部703へ出力する。   In step S 903, the hue / saturation calculation unit 702 calculates the hue / saturation of each pixel from the color difference signal of each pixel output by the color difference signal correction unit 108, and outputs it to the hue / saturation determination unit 703. .

ステップS904では、色相・彩度判定部703が、入力された各画素の色相・彩度信号が、肌色領域として設定された領域内にあるか否かを判定する。   In step S904, the hue / saturation determination unit 703 determines whether the input hue / saturation signal of each pixel is in the region set as the skin color region.

以下、図10を参照しながら、肌色の判定方法について説明する。図10は、肌色として抽出する画像信号の範囲を示す図であり、図の縦軸はR−Y、横軸はB−Yを表す。色相・彩度判定部703は、各画素の色相・彩度がそれぞれ所定の領域内である、図中の斜線で示した領域1001に含まれる場合、その画素は肌色であると判定する。領域1001の定義方法の一例として、本実施形態では領域1001の開始色相502を100度、終了色相503を130度、彩度の上限504を200、彩度下限505を50とする。ここで、彩度は0〜255の間で定義されているものとする。   Hereinafter, the skin color determination method will be described with reference to FIG. FIG. 10 is a diagram illustrating a range of image signals to be extracted as skin color, in which the vertical axis represents RY and the horizontal axis represents BY. The hue / saturation determination unit 703 determines that a pixel has a flesh color when the hue / saturation of each pixel is included in a region 1001 indicated by diagonal lines in the drawing. As an example of the definition method of the region 1001, in this embodiment, the start hue 502 of the region 1001 is 100 degrees, the end hue 503 is 130 degrees, the saturation upper limit 504 is 200, and the saturation lower limit 505 is 50. Here, the saturation is defined between 0 and 255.

ここで、入力された画素の画像信号が肌色領域1001に含まれると判定された場合はステップS905へ進み、含まれないと判定された場合はステップS906へ進む。   If it is determined that the image signal of the input pixel is included in the skin color area 1001, the process proceeds to step S905. If it is determined that the image signal is not included, the process proceeds to step S906.

ステップS905では、カメラ制御部113が、色相別色差信号補正部701で用いる色差ゲインである色相別色差ゲインKの値を、K=1/Gに設定する。ここで、Gとは、色差信号補正部108に設定されている色差ゲインの値である。   In step S905, the camera control unit 113 sets the value of the hue-specific color difference gain K, which is the color difference gain used in the hue-specific color difference signal correction unit 701, to K = 1 / G. Here, G is a color difference gain value set in the color difference signal correction unit 108.

ステップS906では、カメラ制御部113が、色相別色差ゲインKの値を、K=1に設定する。   In step S906, the camera control unit 113 sets the value of the hue difference color difference gain K to K = 1.

ステップS907では、色相別色差信号補正部701が、設定された色相別色差ゲインKに基づいて、入力された各画素の画像信号の彩度を補正する。   In step S907, the hue-specific color difference signal correction unit 701 corrects the saturation of the input image signal of each pixel based on the set hue-specific color difference gain K.

上述のステップS901〜ステップS907までの一連の処理は、画像中の全ての画素に対して、順次行われる。以上の処理によって、画像データ中の、色相及び彩度がそれぞれ所定の領域内である画像データに対して、鮮やかさを色差ゲインGによる補正処理と逆方向に補正する。   The series of processes from step S901 to step S907 described above are sequentially performed for all the pixels in the image. With the above processing, the vividness is corrected in the opposite direction to the correction processing by the color difference gain G with respect to the image data in which the hue and the saturation are in the predetermined areas.

図11に、各条件における色差ゲインの値をまとめて表を示した。表の上段は鮮やかなシーン、下段は鮮やかでないシーンに対応している。また、表の左から順に色差信号補正部108における色差ゲインG、色相別色差信号補正部701における色相別色差ゲインK、及び、2つのゲインを合成した色差ゲインG×色相別色差ゲインKの値を示している。肌色以外の画素に対しては、鮮やかなシーンの場合にG×K=G2となっており、被写体の鮮やかさを強調する補正がなされる。一方、肌色画素では、K=1/Gであるので、鮮やかさを抑制する抑制処理がかかり、シーンに関らずG×K=1となっており、本来の彩度が保たれることとなる。   FIG. 11 shows a table summarizing the color difference gain values under each condition. The upper part of the table corresponds to a vivid scene, and the lower part corresponds to a scene that is not vivid. Further, in order from the left of the table, the value of the color difference gain G in the color difference signal correction unit 108, the color difference gain K for each hue in the color difference signal correction unit 701 for each hue, and the value of the color difference gain G × the color difference gain K for each hue obtained by combining the two gains. Is shown. For pixels other than the skin color, G × K = G2 in the case of a vivid scene, and correction for enhancing the vividness of the subject is performed. On the other hand, since K = 1 / G in the skin color pixel, a suppression process for suppressing vividness is applied, and G × K = 1 regardless of the scene, and the original saturation is maintained. Become.

以上、説明したように、本実施形態では、鮮やかなシーンか否かを判定し、判定結果に応じて画像処理を制御する画像処理装置において、人物の顔の検出結果に応じてシーンの判定を制御した。具体的には、画像全体に対して色差ゲインを乗じる補正を行った後、肌色であると判定された画素に対して本来の彩度に戻す方向に補正を行うようにした。これにより、画像中に人物の顔などが含まれる場合でも、鮮やかな被写体の鮮やかさを強調すると同時に、人物の顔に対して違和感を低減させる補正を行うことが可能となる。   As described above, in this embodiment, in the image processing apparatus that determines whether or not the scene is vivid and controls image processing according to the determination result, the scene is determined according to the detection result of the person's face. Controlled. Specifically, after performing correction by multiplying the entire image by the color difference gain, correction is performed in a direction to return the original saturation to the pixels determined to be skin color. As a result, even when a person's face or the like is included in the image, it is possible to enhance the vividness of a vivid subject and at the same time perform a correction for reducing a sense of incongruity on the person's face.

なお、上記実施形態では、顔検出部114によって人物の顔が検出された場合にのみ、肌色領域に対する色相別色差信号補正部701での補正を行うよう制御する場合で説明したが、本発明は彩度の補正方法をこれに限定するものではない。例えば、人物の顔の検出結果に関らず、色相・彩度判定部703において肌色領域に含まれると判定された画素に対して色相別色差信号補正部701での補正を行うようにしても良い。これにより、人物が横を向いている等、顔が検出できない場合であっても、被写体人物に対しての違和感を低減させる補正を行うことが可能となる。   In the above-described embodiment, the case has been described where control is performed so that the hue-specific color difference signal correction unit 701 performs correction on the skin color area only when the face detection unit 114 detects a human face. The saturation correction method is not limited to this. For example, correction by the hue-specific color difference signal correction unit 701 may be performed on pixels that are determined to be included in the skin color region by the hue / saturation determination unit 703 regardless of the detection result of the human face. good. Thus, even when the face cannot be detected, such as when the person is facing sideways, it is possible to perform correction that reduces the sense of discomfort with the subject person.

また、上記実施形態では、色差信号補正部108の後段に色相別色差信号補正部701を設ける構成としたが、本発明は色差信号の補正方法をこれに限定するものではない。例えば、色相別色差信号補正部701を、色差信号補正部108の前段に設ける構成としても良い。この場合、色相別色差信号補正部701において、肌色画素の彩度を本来の彩度より低い彩度に補正した後、色差信号補正部108において、画像全体に対して色差ゲインを乗じて、肌色画素を本来の彩度に戻すよう補正することとなる。   In the above embodiment, the hue-specific color difference signal correction unit 701 is provided after the color difference signal correction unit 108, but the present invention is not limited to this method of correcting the color difference signal. For example, the hue-specific color difference signal correction unit 701 may be provided before the color difference signal correction unit 108. In this case, after the hue-specific color difference signal correction unit 701 corrects the saturation of the flesh color pixel to a saturation lower than the original saturation, the color difference signal correction unit 108 multiplies the entire image by the color difference gain to obtain the flesh color. The pixel is corrected so as to return to the original saturation.

また、上記実施形態では、色差信号補正部108で乗じた色差ゲインの逆数を、色相別色差信号補正部701での色差ゲインとして設定することにより、肌色領域を本来の彩度に戻すよう制御したが、本発明は彩度の制御方法をこれに限定するものではない。例えば、色差信号補正部108での色差ゲインをG、色相別色差信号補正部701での色差ゲインをKとすると、K=k/Gと設定しても良い。ここで、kは1<k<Gを満たす係数である。すなわち、肌色領域に対しての彩度の補正強度を、肌色の領域以外の領域に対する補正強度より弱めるように制御する。これにより、人物の顔などに対して違和感の生じない範囲で、鮮やかさを強調する補正を行うことが可能となる。すなわち、Kは色差ゲインの彩度に対する補正方向と逆方向に補正を行うものであれば、その値は特に限定されない。   In the above embodiment, the skin color region is controlled to return to the original saturation by setting the reciprocal of the color difference gain multiplied by the color difference signal correction unit 108 as the color difference gain in the hue-specific color difference signal correction unit 701. However, the present invention does not limit the saturation control method. For example, if the color difference gain in the color difference signal correction unit 108 is G and the color difference gain in the color difference signal correction unit 701 for each hue is K, K = k / G may be set. Here, k is a coefficient satisfying 1 <k <G. In other words, the saturation correction strength for the skin color region is controlled to be weaker than the correction strength for the region other than the skin color region. As a result, it is possible to perform correction for enhancing vividness in a range in which a sense of incongruity does not occur with respect to a person's face or the like. That is, the value of K is not particularly limited as long as correction is performed in the direction opposite to the correction direction with respect to the saturation of the color difference gain.

また、上記実施形態では、色相別色差信号補正部701において、肌色と判定された画素に対する補正を行うよう制御したが、本発明は色差信号の補正方法をこれに限定するものではない。例えば、鮮やかなシーンの場合に、色相別色差信号補正部701において、肌色でないと判定された画素に対して、色差ゲインを乗じるよう制御しても良い。これにより、色差信号補正部108を備えない構成においても、人物の顔に対しての違和感を低減させる補正を行うことができ、回路構成を単純化することが可能となる。   Further, in the above embodiment, the hue-specific color difference signal correction unit 701 is controlled to perform correction on the pixels determined to be flesh color, but the present invention is not limited to this method of correcting the color difference signal. For example, in the case of a vivid scene, the hue-specific color difference signal correction unit 701 may perform control so as to multiply a pixel determined not to be a skin color by a color difference gain. As a result, even in a configuration that does not include the color difference signal correction unit 108, it is possible to perform correction for reducing a sense of incongruity on the face of a person, and to simplify the circuit configuration.

また、上記実施形態では、肌色であると判定された画素に対してのみ、色相別色差信号補正部701において、本来の彩度に戻す方向に補正を行うよう制御したが、本発明は画像信号の補正方法をこれに限定するものではない。例えば、青空の青色や木の葉の緑色などの記憶色に対しても同様に補正を行うようにしても良い。具体的には、色相・彩度判定部703において、青空の色や木の葉の緑色に対応する領域を設定しておき、各画素のうち、その画像信号が設定した領域に含まれる画素について、本来の彩度に戻す補正を色相別色差信号補正部701において行うよう制御する。これにより、青空の青色や木の葉の緑色などの記憶色に対しての違和感を低減させる補正を行うことが可能となる。   In the above embodiment, the hue-specific color difference signal correction unit 701 performs control so that correction is performed in the direction of returning to the original saturation only for pixels determined to be skin color. However, the correction method is not limited to this. For example, the same correction may be performed for memory colors such as blue in the blue sky and green in the leaves. Specifically, in the hue / saturation determination unit 703, an area corresponding to the color of the blue sky or the green of the leaves is set, and among the pixels, the pixels included in the area set by the image signal are originally set. Control is performed so that the hue-specific color difference signal correction unit 701 performs the correction for returning to the saturation of the color. As a result, it is possible to perform correction for reducing a sense of incongruity with respect to the memory colors such as blue of the blue sky and green of the leaves of the leaves.

また、上記実施形態では、肌色領域の判定に、各画素の色相、彩度情報を用いたが、本発明は、肌色領域の判定方法をこれに限定するものではない。例えば、各画素の色相、彩度に加えて、各画素の輝度情報も用いるようにしても良い。具体的には、色相・彩度判定部703に輝度・色信号生成部105で生成した輝度信号も入力する構成とし、各画素のうち、その輝度信号が設定した範囲内に含まれるか否かを判定するようにすればよい。これにより、肌色領域の判定を、より精度良く行う事が可能となる。   In the above embodiment, the hue and saturation information of each pixel is used for the determination of the skin color area. However, the present invention does not limit the determination method of the skin color area. For example, luminance information of each pixel may be used in addition to the hue and saturation of each pixel. Specifically, the luminance signal generated by the luminance / color signal generation unit 105 is also input to the hue / saturation determination unit 703, and whether or not the luminance signal is included in the set range of each pixel. May be determined. As a result, the skin color region can be determined with higher accuracy.

また、本実施形態では、鮮やかなシーンであると判別された画像データに対して彩度を上げ、鮮やかさを強調する処理について述べたが、これに限らず、鮮やかなシーンに対して逆に彩度を下げ、鮮やかさを抑えるような処理にも適用することができる。この場合、例えばG2<G0≦1のようにゲインを設定してやるとよい。   In the present embodiment, the processing for increasing the saturation and enhancing the vividness of the image data determined to be a vivid scene has been described. However, the present invention is not limited to this, and conversely for the vivid scene. It can also be applied to processing that reduces saturation and suppresses vividness. In this case, for example, the gain may be set such that G2 <G0 ≦ 1.

(他の実施形態)
本発明の目的は以下のようにしても達成できる。すなわち、前述した各実施形態の機能を実現するための手順が記述されたソフトウェアのプログラムコードを記録した記憶媒体を、システムまたは装置に供給する。そしてそのシステムまたは装置のコンピュータ(またはCPU、MPU等)が記憶媒体に格納されたプログラムコードを読み出して実行するのである。
(Other embodiments)
The object of the present invention can also be achieved as follows. That is, a storage medium in which a program code of software in which a procedure for realizing the functions of the above-described embodiments is described is recorded is supplied to the system or apparatus. The computer (or CPU, MPU, etc.) of the system or apparatus reads out and executes the program code stored in the storage medium.

この場合、記憶媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記憶媒体およびプログラムは本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium and program storing the program code constitute the present invention.

また、プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスクなどが挙げられる。また、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD−R、磁気テープ、不揮発性のメモリカード、ROM等も用いることができる。   Examples of the storage medium for supplying the program code include a flexible disk, a hard disk, an optical disk, and a magneto-optical disk. Further, a CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-R, magnetic tape, nonvolatile memory card, ROM, or the like can also be used.

また、コンピュータが読み出したプログラムコードを実行可能とすることにより、前述した各実施形態の機能が実現される。さらに、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した各実施形態の機能が実現される場合も含まれる。   Further, by making the program code read by the computer executable, the functions of the above-described embodiments are realized. Furthermore, when the OS (operating system) running on the computer performs part or all of the actual processing based on the instruction of the program code, the functions of the above-described embodiments are realized by the processing. Is also included.

更に、以下の場合も含まれる。まず記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う。   Furthermore, the following cases are also included. First, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.

本実施形態では、本発明を適用できる画像処理装置として、撮像装置を例として説明したが、これに限らない。撮像装置の中でも、静止画、動画の撮影が行えるものどちらにも適用可能であるし、外部から画像データを取得して処理を行うプリンタなどの画像形成装置や、パーソナルコンピュータなどの情報処理装置でも、本発明は適用できる。   In the present embodiment, an imaging apparatus has been described as an example of an image processing apparatus to which the present invention can be applied, but this is not a limitation. It can be applied to both imaging devices that can shoot still images and moving images, and can be applied to image forming devices such as printers that acquire image data from the outside for processing, and information processing devices such as personal computers. The present invention is applicable.

105 輝度・色信号生成部
106 WB増幅部
107 色差信号生成部
108 色差信号補正部
109 エンコーダ
110 信号分割部
111 彩度算出部
112 シーン判別部
113 カメラ制御部
114 顔検出部
105 luminance / color signal generation unit 106 WB amplification unit 107 color difference signal generation unit 108 color difference signal correction unit 109 encoder 110 signal division unit 111 saturation calculation unit 112 scene determination unit 113 camera control unit 114 face detection unit

Claims (35)

画像データを取得する取得ステップと、
前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正ステップと、
画像データの画像中の被写体を検出する検出ステップと、を有し、
前記第1の補正ステップでは、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行い、
前記第1の補正ステップでは、前記検出ステップで被写体が検出されたとき、前記検出ステップで被写体が検出されなかったときに比べて前記補正処理を弱く行うことを特徴とする画像処理方法。
An acquisition step of acquiring image data;
A first correction step for performing a correction process for correcting the image data in accordance with the saturation information of the image data;
Detecting a subject in the image of the image data, and
In the first correction step, the correction process is performed when an area of a region having a saturation larger than a predetermined saturation threshold in the image of the image data is larger than a predetermined value,
In the first correction step, when the subject is detected in the detection step, the correction processing is performed weaker than when the subject is not detected in the detection step.
画像データを取得する取得ステップと、
前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正ステップと、
前記画像データの画像中の被写体を検出する検出ステップと、
前記検出ステップで前記被写体が検出されたとき、前記第1の補正ステップで補正処理された前記画像データ中の、色相及び彩度がそれぞれ所定の領域内である画像データに対して、前記補正処理を打ち消す方向に補正する処理を行う第2の補正ステップと、を有し、
前記第1の補正ステップでは、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする画像処理方法。
An acquisition step of acquiring image data;
A first correction step for performing a correction process for correcting the image data in accordance with the saturation information of the image data;
A detection step of detecting a subject in the image of the image data;
When the subject is detected in the detection step, the correction process is performed on the image data whose hue and saturation are within a predetermined area in the image data corrected in the first correction step. A second correction step for performing a process of correcting in a direction to cancel
In the first correction step, the correction processing is performed when an area of a region having a saturation larger than a predetermined saturation threshold in the image of the image data is larger than a predetermined value.
画像データを取得する取得ステップと、
前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正ステップと、
画像データの画像中の被写体を検出する検出ステップと、を有し、
前記第1の補正ステップでは、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行い、
前記第1の補正ステップでは、画像データの画像中の、前記検出ステップで前記被写体が検出された領域以外の領域に対して、前記補正処理を行うことを特徴とする画像処理方法。
An acquisition step of acquiring image data;
A first correction step for performing a correction process for correcting the image data in accordance with the saturation information of the image data;
Detecting a subject in the image of the image data, and
In the first correction step, the correction process is performed when an area of a region having a saturation larger than a predetermined saturation threshold in the image of the image data is larger than a predetermined value,
In the first correction step, the correction processing is performed on an area of the image data other than the area where the subject is detected in the detection step.
前記第2の補正ステップにおける色相及び彩度がそれぞれ所定の領域とは、肌色を示す領域であることを特徴とする請求項2に記載の画像処理方法。   3. The image processing method according to claim 2, wherein the predetermined areas of hue and saturation in the second correction step are areas indicating skin color. 4. 前記補正処理は、画像データの彩度を上げる処理であることを特徴とする請求項1乃至4のいずれか1つに記載の画像処理方法。   The image processing method according to claim 1, wherein the correction process is a process of increasing the saturation of image data. 前記補正処理は、画像データの画像中の輪郭を補正する処理であることを特徴とする請求項1乃至5のいずれか1つに記載の画像処理方法。   The image processing method according to claim 1, wherein the correction process is a process of correcting a contour in an image of image data. 前記第1の補正ステップでは、前記画像データの彩度が第1の彩度である場合、前記画像データの彩度が前記第1の彩度より彩度の低い第2の彩度である場合に比べて前記補正処理を強く行うことを特徴とする請求項1乃至5のいずれか1つに記載の画像処理方法。   In the first correction step, when the saturation of the image data is a first saturation, the saturation of the image data is a second saturation that is lower than the first saturation. The image processing method according to claim 1, wherein the correction processing is performed more strongly than the first processing. 前記第1の補正ステップでは、前記画像データの画像全体を複数のブロックに分割し、所定の彩度閾値より大きい彩度であるブロックの数が所定のブロック閾値より多い場合、前記所定の彩度閾値より大きい彩度であるブロックの数が前記所定のブロック閾値より少ない場合に比べて前記補正処理を強く行うことを特徴とする請求項1乃至7のいずれか1つに記載の画像処理方法。   In the first correction step, when the entire image of the image data is divided into a plurality of blocks and the number of blocks having a saturation greater than a predetermined saturation threshold is greater than a predetermined block threshold, the predetermined saturation The image processing method according to claim 1, wherein the correction processing is performed more strongly than when the number of blocks having a saturation greater than a threshold value is less than the predetermined block threshold value. 前記検出ステップでは、顔検出処理によって前記被写体の検出が行われることを特徴とする請求項1乃至7のいずれか1つに記載の画像処理方法。   The image processing method according to claim 1, wherein in the detection step, the subject is detected by face detection processing. 前記検出ステップでは、前記画像データの画像中の所定の色相及び所定の彩度を有する領域を検出することで被写体を検出することを特徴とする請求項1乃至7のいずれか1つに記載の画像処理方法。   8. The object according to claim 1, wherein in the detection step, a subject is detected by detecting a region having a predetermined hue and a predetermined saturation in the image of the image data. Image processing method. 前記検出ステップにおける所定の色相及び所定の彩度とは、肌色を示すものであることを特徴とする請求項10に記載の画像処理方法。   The image processing method according to claim 10, wherein the predetermined hue and the predetermined saturation in the detection step indicate a skin color. 請求項1乃至11のいずれか1つに記載の画像処理方法の手順が記述されたコンピュータで実行可能なプログラム。   A computer-executable program in which a procedure of the image processing method according to any one of claims 1 to 11 is described. 請求項1乃至11のいずれか1つに記載の画像処理方法の手順が記述されたプログラムが記憶されたコンピュータが読み取り可能な記憶媒体。   A computer-readable storage medium storing a program in which the procedure of the image processing method according to any one of claims 1 to 11 is described. 画像データを取得する取得手段と、
前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、
画像データの画像中の被写体を検出する検出手段と、を有し、
前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行い、
前記第1の補正手段は、前記検出手段で被写体が検出されたとき、前記検出手段で被写体が検出されなかったときに比べて前記補正処理を弱く行うことを特徴とする画像処理装置。
Acquisition means for acquiring image data;
First correction means for performing correction processing for correcting the image data according to the saturation information of the image data;
Detecting means for detecting a subject in the image of the image data,
The first correction unit performs the correction process when an area of a region having a saturation larger than a predetermined saturation threshold in the image of the image data is larger than a predetermined value,
The image processing apparatus according to claim 1, wherein the first correction unit performs the correction process more weakly when the subject is detected by the detection unit than when the subject is not detected by the detection unit.
画像データを取得する取得手段と、
前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、
画像データの画像中の被写体を検出する検出手段と、
前記検出手段で前記被写体が検出されたとき、前記第1の補正手段で補正処理された前記画像データ中の、色相及び彩度が所定の領域内である画像データに対して、前記補正処理を打ち消す方向に補正する処理を行う第2の補正手段と、を有し、
前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする画像処理装置。
Acquisition means for acquiring image data;
First correction means for performing correction processing for correcting the image data according to the saturation information of the image data;
Detecting means for detecting a subject in the image of the image data;
When the object is detected by the detection unit , the correction process is performed on the image data whose hue and saturation are within a predetermined area in the image data corrected by the first correction unit. Second correction means for performing processing for correcting in the direction of cancellation,
The image processing apparatus according to claim 1, wherein the first correction unit performs the correction process when an area of a region having a saturation greater than a predetermined saturation threshold in the image of the image data is greater than a predetermined value.
画像データを取得する取得手段と、
前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、
前記画像データの画像中の被写体を検出する検出手段と、
前記第1の補正手段は、画像データの画像中の、前記検出手段で前記被写体が検出された領域以外の領域に対して、前記補正処理を行い、
前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする画像処理装置。
Acquisition means for acquiring image data;
First correction means for performing correction processing for correcting the image data according to the saturation information of the image data;
Detecting means for detecting a subject in the image of the image data;
The first correction unit performs the correction process on a region other than a region where the subject is detected by the detection unit in an image of image data.
The image processing apparatus according to claim 1, wherein the first correction unit performs the correction process when an area of a region having a saturation greater than a predetermined saturation threshold in the image of the image data is greater than a predetermined value.
前記第2の補正手段における色相及び彩度がそれぞれ所定の領域とは、肌色を示す領域であることを特徴とする請求項15に記載の画像処理装置。   The image processing apparatus according to claim 15, wherein the predetermined areas of hue and saturation in the second correction unit are areas indicating skin color. 前記補正処理は、画像データの彩度を上げる処理であることを特徴とする請求項14乃至17のいずれか1つに記載の画像処理装置。   The image processing apparatus according to claim 14, wherein the correction process is a process of increasing the saturation of the image data. 前記補正処理は、画像データの画像中の輪郭を補正する処理であることを特徴とする請求項14乃至18のいずれか1つに記載の画像処理装置。   The image processing apparatus according to claim 14, wherein the correction process is a process of correcting a contour in an image of image data. 前記第1の補正手段では、前記画像データの彩度が第1の彩度である場合、前記画像データの彩度が前記第1の彩度より彩度の低い第2の彩度である場合に比べて前記補正処理を強く行うことを特徴とする請求項14乃至19のいずれか1つに記載の画像処理装置。   In the first correction unit, when the saturation of the image data is the first saturation, the saturation of the image data is the second saturation that is lower than the first saturation. The image processing apparatus according to claim 14, wherein the correction process is performed more strongly than the image processing apparatus. 前記第1の補正手段は、前記画像データの画像全体を複数のブロックに分割し、所定の彩度閾値より大きい彩度であるブロックの数が所定のブロック閾値より多い場合、前記所定の彩度閾値より大きい彩度であるブロックの数が前記所定のブロック閾値より少ない場合に比べて前記補正処理を強く行うことを特徴とする請求項14乃至20のいずれか1つに記載の画像処理装置。   The first correcting unit divides the entire image of the image data into a plurality of blocks, and when the number of blocks having a saturation greater than a predetermined saturation threshold is greater than a predetermined block threshold, the predetermined saturation 21. The image processing apparatus according to claim 14, wherein the correction processing is performed more strongly than a case where the number of blocks having saturation greater than a threshold value is smaller than the predetermined block threshold value. 前記検出手段では、顔検出処理によって前記被写体の検出が行われることを特徴とする請求項14乃至21のいずれか1つに記載の画像処理装置。   The image processing apparatus according to claim 14, wherein the detection unit detects the subject by face detection processing. 前記検出手段では、前記画像データの画像中の所定の色相及び所定の彩度を有する領域を検出することで被写体を検出することを特徴とする請求項14乃至22のいずれか1つに記載の画像処理装置。   23. The object according to claim 14, wherein the detection unit detects a subject by detecting a region having a predetermined hue and a predetermined saturation in the image of the image data. Image processing device. 前記検出手段における所定の色相及び所定の彩度とは、肌色を示すものであることを特徴とする請求項23に記載の画像処理装置。   24. The image processing apparatus according to claim 23, wherein the predetermined hue and the predetermined saturation in the detection unit indicate a skin color. 被写体を撮像し、画像データを出力する撮像手段と、
前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、
画像データの画像中の被写体を検出する検出手段と、を有し、
前記第1の補正手段は、前記検出手段で被写体が検出されたとき、前記検出手段で被写体が検出されなかったときに比べて前記補正処理を弱く行い、
前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする撮像装置。
Imaging means for imaging a subject and outputting image data;
First correction means for performing correction processing for correcting the image data according to the saturation information of the image data;
Detecting means for detecting a subject in the image of the image data,
The first correction unit performs the correction process weakly when the subject is detected by the detection unit as compared to when the subject is not detected by the detection unit;
The imaging apparatus according to claim 1, wherein the first correction unit performs the correction process when an area of a region having a saturation larger than a predetermined saturation threshold in the image of the image data is larger than a predetermined value.
被写体を撮像し、画像データを出力する撮像手段と、
前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、
前記画像データの画像中の被写体を検出する検出手段と、
前記検出手段で前記被写体が検出されたとき、前記第1の補正手段で補正処理された前記画像データ中の、色相及び彩度がそれぞれ所定の領域内である画像データに対して、鮮やかさを前記補正処理と逆方向に補正する処理を行う第2の補正手段と、を有し、前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする撮像装置。
Imaging means for imaging a subject and outputting image data;
First correction means for performing correction processing for correcting the image data according to the saturation information of the image data;
Detecting means for detecting a subject in the image of the image data;
When the subject is detected by the detection means, the image data corrected by the first correction means has vividness with respect to image data whose hue and saturation are within a predetermined area. Second correction means for performing a correction process in a direction opposite to the correction process, wherein the first correction means is a region having a saturation greater than a predetermined saturation threshold in the image of the image data. An image pickup apparatus that performs the correction process when the area is larger than a predetermined value.
被写体を撮像し、画像データを出力する撮像手段と、
前記画像データの彩度情報に応じて、画像データを補正する補正処理を行う第1の補正手段と、
前記画像データの画像中の被写体を検出する検出手段と、
前記第1の補正手段は、画像データの画像中の、前記検出手段で前記被写体が検出された領域以外の領域に対して、前記補正処理を行い、
前記第1の補正手段は、画像データの画像内で所定の彩度閾値より大きい彩度である領域の面積が所定値より大きい場合に前記補正処理を行うことを特徴とする撮像装置。
Imaging means for imaging a subject and outputting image data;
First correction means for performing correction processing for correcting the image data according to the saturation information of the image data;
Detecting means for detecting a subject in the image of the image data;
The first correction unit performs the correction process on a region other than a region where the subject is detected by the detection unit in an image of image data.
The imaging apparatus according to claim 1, wherein the first correction unit performs the correction process when an area of a region having a saturation larger than a predetermined saturation threshold in the image of the image data is larger than a predetermined value.
前記第2の補正手段における色相及び彩度がそれぞれ所定の領域とは、肌色を示す領域であることを特徴とする請求項26に記載の撮像装置。   27. The imaging apparatus according to claim 26, wherein the predetermined areas of hue and saturation in the second correction unit are areas indicating skin color. 前記補正処理は、画像データの彩度を上げる処理であることを特徴とする請求項25乃至28のいずれか1つに記載の撮像装置。   29. The imaging apparatus according to claim 25, wherein the correction process is a process of increasing the saturation of image data. 前記補正処理は、画像データの画像中の輪郭を補正する処理であることを特徴とする請求項25乃至29のいずれか1つに記載の撮像装置。   30. The imaging apparatus according to claim 25, wherein the correction process is a process of correcting a contour in an image of image data. 前記第1の補正手段では、前記画像データの彩度が第1の彩度である場合、前記画像データの彩度が前記第1の彩度より彩度の低い第2の彩度である場合に比べて前記補正処理を強く行うことを特徴とする請求項25乃至30のいずれか1つに記載の撮像装置。   In the first correction unit, when the saturation of the image data is the first saturation, the saturation of the image data is the second saturation that is lower than the first saturation. 31. The image pickup apparatus according to claim 25, wherein the correction process is performed more strongly than the image pickup apparatus. 前記第1の補正手段は、前記画像データの画像全体を複数のブロックに分割し、所定の彩度閾値より大きい彩度であるブロックの数が所定のブロック閾値より多い場合、前記所定の彩度閾値より大きい彩度であるブロックの数が前記所定のブロック閾値より少ない場合に比べて前記補正処理を強く行うことを特徴とする請求項25乃至31のいずれか1つに記載の撮像装置。   The first correcting unit divides the entire image of the image data into a plurality of blocks, and when the number of blocks having a saturation greater than a predetermined saturation threshold is greater than a predetermined block threshold, the predetermined saturation 32. The imaging apparatus according to claim 25, wherein the correction process is performed more strongly than in a case where the number of blocks having saturation greater than a threshold value is less than the predetermined block threshold value. 前記検出手段では、顔検出処理によって前記被写体の検出が行われることを特徴とする請求項25乃至32のいずれか1つに記載の撮像装置。   33. The imaging apparatus according to claim 25, wherein the detection unit detects the subject by face detection processing. 前記検出手段では、前記画像データの画像中の所定の色相及び所定の彩度を有する領域を検出することで被写体を検出することを特徴とする請求項25乃至33のいずれか1つに記載の撮像装置。   34. The object according to claim 25, wherein the detection unit detects a subject by detecting a region having a predetermined hue and a predetermined saturation in the image of the image data. Imaging device. 前記検出手段における所定の色相及び所定の彩度とは、肌色を示すものであることを特徴とする請求項34に記載の撮像装置。   35. The imaging apparatus according to claim 34, wherein the predetermined hue and the predetermined saturation in the detection unit indicate a skin color.
JP2013096521A 2013-05-01 2013-05-01 Image processing method, image processing apparatus, and imaging apparatus Active JP5693647B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013096521A JP5693647B2 (en) 2013-05-01 2013-05-01 Image processing method, image processing apparatus, and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013096521A JP5693647B2 (en) 2013-05-01 2013-05-01 Image processing method, image processing apparatus, and imaging apparatus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2009295435A Division JP5264695B2 (en) 2009-12-25 2009-12-25 Image processing method, image processing apparatus, and imaging apparatus

Publications (2)

Publication Number Publication Date
JP2013176144A JP2013176144A (en) 2013-09-05
JP5693647B2 true JP5693647B2 (en) 2015-04-01

Family

ID=49268577

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013096521A Active JP5693647B2 (en) 2013-05-01 2013-05-01 Image processing method, image processing apparatus, and imaging apparatus

Country Status (1)

Country Link
JP (1) JP5693647B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6415106B2 (en) * 2014-05-20 2018-10-31 キヤノン株式会社 Imaging apparatus, control method therefor, and program
KR102397201B1 (en) 2020-09-16 2022-05-12 엘지전자 주식회사 A display device and method of the same

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06124329A (en) * 1992-10-13 1994-05-06 Kyocera Corp Saturation varying circuit
JP2000224607A (en) * 1999-01-28 2000-08-11 Matsushita Electric Ind Co Ltd Image processor
JP2002218315A (en) * 2001-01-23 2002-08-02 Minolta Co Ltd Image photographing apparatus, image output device and image processing system having both
JP2007243542A (en) * 2006-03-08 2007-09-20 Konica Minolta Photo Imaging Inc Imaging apparatus, image processing apparatus, image processing method, and image processing program
JP2009042989A (en) * 2007-08-08 2009-02-26 Canon Inc Image processing apparatus

Also Published As

Publication number Publication date
JP2013176144A (en) 2013-09-05

Similar Documents

Publication Publication Date Title
US8982232B2 (en) Image processing apparatus and image processing method
KR101247646B1 (en) Image combining apparatus, image combining method and recording medium
US10861136B2 (en) Image processing apparatus, image processing method, and storage medium
JP4958969B2 (en) Image processing method, image processing apparatus, and imaging apparatus
JP6833415B2 (en) Image processing equipment, image processing methods, and programs
US9813634B2 (en) Image processing apparatus and method
US10382671B2 (en) Image processing apparatus, image processing method, and recording medium
JP2010016664A (en) Imaging apparatus
US11893716B2 (en) Image processing apparatus and image processing method, and image capturing apparatus
JP4948591B2 (en) Image processing apparatus, image processing method, and program
JP2011109373A (en) Imaging apparatus, imaging processing method and program
US11115637B2 (en) Image processing apparatus, image capturing apparatus, image processing method, and storage medium
JP2016072694A (en) Image processing system, control method of the same, program, and recording medium
US10977777B2 (en) Image processing apparatus, method for controlling the same, and recording medium
JP6702752B2 (en) Image processing device, imaging device, control method, and program
JP5159756B2 (en) Image processing method, image processing apparatus, and imaging apparatus
JP5378282B2 (en) Purple fringe correction device, control method thereof, and program for correcting purple fringe
JP5693647B2 (en) Image processing method, image processing apparatus, and imaging apparatus
JP5264695B2 (en) Image processing method, image processing apparatus, and imaging apparatus
JP5398860B2 (en) Image processing apparatus, image processing apparatus control method, program, and storage medium
JP6849351B2 (en) Image processing equipment, image processing methods, and programs
JP6616674B2 (en) Image processing apparatus and method, and imaging apparatus
JP5539428B2 (en) Image processing method, image processing apparatus, and imaging apparatus
JP2021086269A (en) Image processing device, control method of the same, and program
JP2019003694A (en) Image processing apparatus, control method of the same, and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140414

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140520

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140722

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150106

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150203

R151 Written notification of patent or utility model registration

Ref document number: 5693647

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

S802 Written request for registration of partial abandonment of right

Free format text: JAPANESE INTERMEDIATE CODE: R311802

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350