JP2005218017A - Coding device and method thereof - Google Patents

Coding device and method thereof Download PDF

Info

Publication number
JP2005218017A
JP2005218017A JP2004025345A JP2004025345A JP2005218017A JP 2005218017 A JP2005218017 A JP 2005218017A JP 2004025345 A JP2004025345 A JP 2004025345A JP 2004025345 A JP2004025345 A JP 2004025345A JP 2005218017 A JP2005218017 A JP 2005218017A
Authority
JP
Japan
Prior art keywords
encoding
color
mode
code amount
shooting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2004025345A
Other languages
Japanese (ja)
Inventor
Yukiro Chiba
幸郎 千葉
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 JP2004025345A priority Critical patent/JP2005218017A/en
Publication of JP2005218017A publication Critical patent/JP2005218017A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable efficiently performing coding according to a photographing mode. <P>SOLUTION: An coding device has: a photographing mode selecting unit (115) for switching a plurality of photographing modes; a flesh color detecting processing unit (103) for detecting predetermined colors on the basis of previously set color information; coding means (105-108, 111, 112) for coding image data; and control means (114, 104) for controlling the code quantity of the image data to be coded by the coding means on the basis of a photographing mode selected by the photographing mode selecting means and of a region of predetermined color detected by the color detecting means. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は符号化装置及び方法に関し、特に符号化処理方法を変更可能な画像の符号化装置及び方法に関する。   The present invention relates to an encoding apparatus and method, and more particularly to an image encoding apparatus and method capable of changing the encoding processing method.

図5は、従来の技術を用いた画像符号化装置を表すブロック図である。図5において、501はレンズや撮像素子を含み、被写体を撮影する撮像部、502はガンマ変換、色空間変換、ラスタ−ブロック変換など一連の画像信号処理を実行する画像信号処理部、503は一連の画像処理が施された画像に対して撮影対象としての重要度が一般的に高い人物の、特に顔面部を検出するための肌色検出処理部、504はブロック・インターリーブされた入力画像を符号化して、符号量を圧縮する画像符号化処理部、505は磁気テープやメモリカードなどの記録媒体へ符号化データを記録する記録部、506は撮影者により操作され、撮影モードを設定するための撮影モード選択部である。   FIG. 5 is a block diagram showing an image encoding device using a conventional technique. In FIG. 5, reference numeral 501 includes a lens and an image sensor, and an imaging unit that captures a subject. 502 is an image signal processing unit that executes a series of image signal processing such as gamma conversion, color space conversion, and raster-block conversion. A skin color detection processing unit for detecting the face portion of a person who is generally high in importance as a subject to be photographed, and 504 encodes an input image that has been block-interleaved. An image encoding processing unit that compresses the code amount, 505 is a recording unit that records encoded data on a recording medium such as a magnetic tape or a memory card, and 506 is operated by a photographer to perform shooting for setting a shooting mode. It is a mode selection part.

画像符号化処理部504から出力される符号化データは、一般的に静止画撮影時と動画撮影時とでは符号化方式が異なる。静止画撮影時には、CD−ROMやハードディスク等の蓄積媒体に静止画像を保存・表示するための符号化方式としてISO(国際標準化機構)により標準化されたJPEG方式が広く用いられている。また、動画撮影時には、同様な蓄積媒体に保存・表示したり、通信路を介して放送、または双方向通信したりするための符号化方式としてISOにより標準化されたMPEG方式が広く用いられている。   The encoded data output from the image encoding processing unit 504 generally differs in encoding method between still image shooting and moving image shooting. At the time of still image shooting, the JPEG method standardized by ISO (International Organization for Standardization) is widely used as an encoding method for storing and displaying a still image on a storage medium such as a CD-ROM or a hard disk. In addition, the MPEG standard standardized by ISO is widely used as an encoding method for saving and displaying on a similar storage medium, broadcasting via a communication channel, or two-way communication when shooting moving images. .

撮影モード選択部506によって選択設定できる撮影モードとしては、例えば、高速で移動する被写体を撮影する場合に適したスポーツモード、暗い室内などで強い光が当てられた被写体を撮影する場合に適したスポットライトモード、日差しの強い明るい屋外などでの撮影に適したサーフ&スノーモード、人物の特に顔を撮影する場合に適したポートレートモードなどがある。   Shooting modes that can be selected and set by the shooting mode selection unit 506 include, for example, a sport mode suitable for shooting a subject moving at high speed, and a spot suitable for shooting a subject that is exposed to strong light in a dark room or the like. There are a light mode, a surf & snow mode suitable for shooting outdoors with strong sunlight, and a portrait mode suitable for shooting a person's face.

スポーツモードは、走っている人物など動きの速いスポーツシーンなどで、シャッタ速度を速くすることで、動きの速い被写体をブレなくシャープに撮影することを可能とする撮影モードである。スポットライトモードは、ステージや結婚式場などスポットライトで照明されたシーンを撮影するときに、被写体が白とびすることなく適正露出で撮影することを可能とする撮影モードである。サーフ&スノーモードは、海辺やゲレンデなど背景が明るい場所でも、被写体が暗く写るのを防ぎ、適性露出で撮影することを可能とする撮影モードである。ポートレートモードは、人物だけが浮き立つように被写体深度を浅くし、背景をぼかして撮影することを可能とする撮影モードである。   The sports mode is a shooting mode in which a fast-moving subject can be shot sharply without blurring by increasing the shutter speed in a fast-moving sports scene such as a running person. The spotlight mode is a shooting mode that enables shooting with an appropriate exposure without overexposure when shooting a scene illuminated with a spotlight such as a stage or a wedding hall. The surf & snow mode is a shooting mode that prevents a subject from appearing dark even in a bright background such as the seaside or a slope, and enables shooting with appropriate exposure. The portrait mode is a shooting mode in which it is possible to shoot with a shallow subject depth and a blurred background so that only a person stands up.

これらの撮影モードを撮影者が撮影モード選択部506で選択設定することによって、撮影の意図を画像信号処理部502から出力される画像データに反映させることが可能となる(例えば、特許文献1参照)。   When the photographer selects and sets these shooting modes with the shooting mode selection unit 506, the intention of shooting can be reflected in the image data output from the image signal processing unit 502 (see, for example, Patent Document 1). ).

特開平05−137147号公報JP 05-137147 A

しかしながら、従来の画像符号化装置においては、撮影モードを選択設定することによって撮影者の意図が画像信号処理部502から出力される画像データに反映されるが、画像符号化処理部504における符号量制御処理には反映されず、撮影モードにかかわらず静止画および動画の入力データは同じ条件で符号量制御処理されることになる。   However, in the conventional image coding apparatus, the photographer's intention is reflected in the image data output from the image signal processing unit 502 by selecting and setting the shooting mode. Regardless of the shooting mode, the input data of the still image and the moving image is subjected to the code amount control process under the same conditions without being reflected in the control process.

本発明は上記問題点を鑑みてなされたものであり、撮影モードに応じてより効率的に符号化を行えるようにすることを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to enable more efficient encoding in accordance with a shooting mode.

上記目的を達成するために、本発明の符号化装置は、複数の撮影モードを切り替える撮影モード選択手段と、予め設定された色情報に基づいて、所定色を検出する色検出手段と、画像データを符号化する符号化手段と、前記撮影モード選択手段により選択された撮影モード及び前記色検出手段により検出された所定色の領域に基づいて、前記符号化手段により符号化される前記画像データの符号量を制御する制御手段とを有する。   In order to achieve the above object, an encoding apparatus according to the present invention includes a shooting mode selection unit that switches a plurality of shooting modes, a color detection unit that detects a predetermined color based on preset color information, and image data. The image data encoded by the encoding means on the basis of the encoding mode selected by the imaging mode selection means and the area of the predetermined color detected by the color detection means. Control means for controlling the amount of code.

また、本発明の符号化方法は、複数の撮影モードを切り替える撮影モード選択工程と、予め設定された色情報に基づいて、所定色を検出する色検出工程と、画像データを符号化する符号化工程と、前記撮影モード選択工程において選択された撮影モード及び前記色検出工程において検出された所定色の領域に基づいて、前記符号化工程において符号化される前記画像データの符号量を制御する制御工程とを有する。   The encoding method of the present invention includes a shooting mode selection step for switching a plurality of shooting modes, a color detection step for detecting a predetermined color based on preset color information, and an encoding for encoding image data. And a control for controlling a code amount of the image data encoded in the encoding step based on a shooting mode selected in the shooting mode selection step and a predetermined color area detected in the color detection step Process.

上記構成によれば、撮影モードに応じてより効率的に符号化を行うことができる。   According to the above configuration, encoding can be performed more efficiently according to the shooting mode.

以下、添付図面を参照して本発明を実施するための最良の形態を詳細に説明する。   The best mode for carrying out the present invention will be described below in detail with reference to the accompanying drawings.

<第1の実施形態>
図1は、本発明の第1の実施形態における画像符号化装置の構成を示すブロック図である。図1において、101はレンズや撮像素子を含み映像を撮影する撮像部、102はガンマ変換、色空間変換、ラスタ−ブロック変換など一連の画像信号処理を実行する画像信号処理部、103は一連の画像処理が施された画像に対して撮影対象としての重要度が一般的に高い人物の、特に顔面部を検出する目的で行われる肌色検出処理部、104は撮影された画像データの任意の領域に対して選択的にその高周波成分強度を減衰させるフィルタ部、105は予測対象画像ブロックと最も一致する参照画像ブロックを予測し、動きベクトルを生成する動き補償予測部、106は離散コサイン変換などの直交変換を行う直交変換部、107は直交変換係数を量子化行列などで除算し、情報量を削減する量子化部、108はハフマン符号などで可変長符号化することにより更に情報量を削減するエントロピー符号化部、109は変動する単位時間あたりに発生する符号量を時間軸上で平滑化するバッファ部、110は磁気テープやメモリカードなどの記録媒体へ符号化データを記録する記録部、111は参照画像を再構成するために、量子化部107により量子化された直交変換係数を逆量子化する逆量子化部、112は逆量子化部111により生成された逆量子化後の直交変換係数を逆直交変換する逆直交変換部、113は撮影者により操作され撮影モードを設定するための撮影モード選択部、114はバッファ部109の占有率を監視し、符号化データがあふれたり空になったりしないように制御する制御部、115は撮影者により操作され、静止画または動画を選択する符号化モード選択部である。
<First Embodiment>
FIG. 1 is a block diagram showing a configuration of an image coding apparatus according to the first embodiment of the present invention. In FIG. 1, reference numeral 101 denotes an image pickup unit that includes a lens and an image pickup device, and shoots an image. Reference numeral 102 denotes an image signal processing unit that executes a series of image signal processing such as gamma conversion, color space conversion, and raster-block conversion. A skin color detection processing unit 104 is used for the purpose of detecting the face portion of a person who is generally highly important as a shooting target with respect to an image that has been subjected to image processing, and 104 is an arbitrary region of the shot image data Is a filter unit that selectively attenuates the high-frequency component intensity, 105 is a motion compensation prediction unit that predicts a reference image block that most closely matches the prediction target image block and generates a motion vector, and 106 is a discrete cosine transform or the like An orthogonal transform unit that performs orthogonal transform, 107 is a quantizer that divides the orthogonal transform coefficient by a quantization matrix and reduces the amount of information, and 108 is variable by a Huffman code or the like An entropy encoding unit that further reduces the amount of information by encoding, 109 is a buffer unit that smoothes the amount of code generated per unit time that fluctuates on the time axis, and 110 is a recording medium such as a magnetic tape or a memory card A recording unit 111 for recording the encoded data in the unit 111, an inverse quantization unit for inversely quantizing the orthogonal transform coefficient quantized by the quantization unit 107 in order to reconstruct the reference image, and 112, an inverse quantization unit 111 Is an inverse orthogonal transform unit that performs inverse orthogonal transform on the orthogonal transform coefficient after inverse quantization generated by, 113 is a shooting mode selection unit that is operated by the photographer to set the shooting mode, and 114 is an occupancy rate of the buffer unit 109. A control unit 115 that monitors and controls the encoded data so that it does not overflow or become empty, is operated by a photographer, and an encoding mode for selecting a still image or a moving image. A selection unit.

まず始めに、上記構成を有する画像符号化装置において、符号化モード選択部115で動画符号化モードが選択された場合に撮影された画像データが符号化データとして記録されるまでの流れについて、図1を参照して簡単に説明する。   First, in the image encoding apparatus having the above-described configuration, a flow until image data captured when the moving image encoding mode is selected by the encoding mode selection unit 115 is recorded as encoded data is illustrated in FIG. This will be briefly described with reference to FIG.

101撮像部より入力された画像データは、撮影モード選択部113kら設定された撮影モードに応じて、画像信号処理部102においてガンマ変換、色空間変換、ラスタ−ブロック変換など一連の画像信号処理が施される。そして一連の画像処理が施された画像に対して、肌色検出処理部103は撮影対象としての重要度が一般的に高い人物の、特に顔面部を検出する目的で肌色検出処理を行い、その結果を利用して制御部114は量子化部107およびフィルタ部104を制御することにより適応的に符号量制御を行うことができる。   The image data input from the image pickup unit 101 is subjected to a series of image signal processing such as gamma conversion, color space conversion, and raster-block conversion in the image signal processing unit 102 in accordance with the shooting mode set by the shooting mode selection unit 113k. Applied. Then, the skin color detection processing unit 103 performs skin color detection processing on the image subjected to a series of image processing for the purpose of detecting particularly a face portion of a person who is generally high in importance as a photographing target, and as a result. The control unit 114 can adaptively perform the code amount control by controlling the quantization unit 107 and the filter unit 104 by using.

さらに動き補償予測部105は予測対象画像ブロックと最も一致する参照画像ブロックを予測し、動きベクトルを生成する。その後、直交変換部106、量子化部107、エントロピー符号化部108により一連の符号化処理を施された後、符号化データはバッファ部109に一時蓄えられ、最終的に記憶部110により磁気テープやメモリカードなどの記録媒体へ記録される。磁気テープへの書き込みは一定のデータレートで行われる一方、エントロピー符号化部108から出力される符号化データのレートは一定ではないので、制御部114は量子化部107を制御することにより符号化データがバッファ部109からあふれたり逆に空になったりしないようにしている。   Furthermore, the motion compensation prediction unit 105 predicts a reference image block that most closely matches the prediction target image block, and generates a motion vector. Thereafter, after a series of encoding processes are performed by the orthogonal transform unit 106, the quantization unit 107, and the entropy encoding unit 108, the encoded data is temporarily stored in the buffer unit 109, and finally stored in the magnetic unit by the storage unit 110. Or a recording medium such as a memory card. While writing to the magnetic tape is performed at a constant data rate, the rate of the encoded data output from the entropy encoding unit 108 is not constant. Therefore, the control unit 114 controls the quantization unit 107 to perform encoding. Data is prevented from overflowing from the buffer unit 109 or conversely becoming empty.

一方、動き補償予測部105で用いられる再構成画像を生成するために、量子化部107により量子化された直交変換係数は逆量子化部111で逆量子化され、さらに逆直交変換部112により逆直交変換される。   On the other hand, in order to generate a reconstructed image used in the motion compensation prediction unit 105, the orthogonal transform coefficient quantized by the quantization unit 107 is inversely quantized by the inverse quantization unit 111, and further by the inverse orthogonal transform unit 112. Inverse orthogonal transform is performed.

このように、一般的に撮影対象としての重要度が高い人物の特に顔面部が肌色検出処理により認識できると、符号量制御部112は顔面部に該当する画像ブロックの量子化に際して量子化ステップ値を小さくし情報量を増加させることが可能となり、視覚心理モデルにおいて良好な結果が得られる符号化処理を行うことができるようになる。   As described above, when the face portion of a person who is generally high in importance as a photographing target can be recognized by the skin color detection process, the code amount control unit 112 performs quantization step values when quantizing the image block corresponding to the face portion. Can be reduced to increase the amount of information, and an encoding process can be performed in which a good result is obtained in the visual psychological model.

次に、通常の撮影環境下において肌色検出処理部103が行う肌色検出処理について、図2を用いて簡単に説明する。   Next, skin color detection processing performed by the skin color detection processing unit 103 under a normal shooting environment will be briefly described with reference to FIG.

図2(a)は、通常の撮影環境下において人物を撮影した動画シーケンスから抜き出した1枚の画像である。図2(b)は、図2(a)の画像に対して肌色検出処理部103が行った肌色検出処理の結果の一例を示しており、肌色と認識された領域を黒領域で示している。図2(a)の人物の顔面部が肌色として認識されており、精度の良い肌色検出結果となっている。   FIG. 2A shows one image extracted from a moving image sequence in which a person is photographed under a normal photographing environment. FIG. 2B shows an example of the result of the skin color detection process performed by the skin color detection processing unit 103 on the image of FIG. 2A, and the area recognized as the skin color is shown as a black area. . The face portion of the person in FIG. 2A is recognized as the skin color, and the skin color detection result is accurate.

次に、上記構成を有する画像符号化装置の本第1の実施形態における量子化部における符号量制御処理について、図3のフローチャートに沿って説明する。   Next, the code amount control processing in the quantization unit in the first embodiment of the image coding apparatus having the above configuration will be described with reference to the flowchart of FIG.

撮影者により撮影開始が指示されると(ステップS101)、制御部114は符号化モード選択部115に設定されている符号化モードを調べる(ステップS102)。符号化モードが動画符号化モードであった場合はステップS103に進んで撮影モード選択部113に設定されている撮影モードを調べ、動画符号化モードで無い場合は処理を終了する。   When the photographing start is instructed by the photographer (step S101), the control unit 114 checks the encoding mode set in the encoding mode selection unit 115 (step S102). When the encoding mode is the moving image encoding mode, the process proceeds to step S103, and the shooting mode set in the shooting mode selection unit 113 is checked.

ステップS103において、撮影モードがポートレートモードで無い場合は(ステップS103でNO)、処理を終了する。   In step S103, when the shooting mode is not the portrait mode (NO in step S103), the process ends.

一方、ステップS103で撮影モードがポートレートモードであった場合は(ステップS103でYES)、ステップS104に進み、肌色検出処理部103において肌色と検出された領域に該当する画像ブロックの量子化に際して量子化ステップ値を小さくするなどして符号量を増加させる。なお、この制御の加えて、肌色と検出された領域以外の領域に該当する画像ブロックの量子化に際しては量子化ステップ値を大きくするなどして符号量を低減させるように量子化部107を制御してもよい。結果的に、肌色検出処理部103において肌色と検出された領域に対する符号量をそれ以外の領域と比べて相対的に増加するように量子化部107を制御する。   On the other hand, if the shooting mode is the portrait mode in step S103 (YES in step S103), the process proceeds to step S104, and the quantization is performed when the image block corresponding to the area detected as the skin color in the skin color detection processing unit 103 is quantized. The code amount is increased by reducing the conversion step value. In addition to this control, when quantizing an image block corresponding to a region other than the region detected as skin color, the quantization unit 107 is controlled so as to reduce the code amount by increasing the quantization step value. May be. As a result, the quantization unit 107 is controlled so that the code amount for the region detected as the skin color in the skin color detection processing unit 103 is relatively increased as compared with the other regions.

上述した制御部114による符号量制御処理により、図2(b)に示す肌色の存在が検出された領域における符号量は増加し、一方それ以外の領域における符号量は低減する。ユーザが選択したポートレートモードでは、人物だけが浮き立つように被写体深度を浅くして背景をぼかして撮影するものであるため、ユーザの意図を反映しながら効果的に符号量を削減し、かつ視覚心理モデルにおいても良好な結果が得られる符号量制御処理を行うことができるようになる。   By the code amount control processing by the control unit 114 described above, the code amount in the region where the presence of the skin color shown in FIG. 2B is detected increases, while the code amount in the other regions decreases. In the portrait mode selected by the user, the depth of field is reduced and the background is blurred so that only a person can stand up. Therefore, the amount of code is effectively reduced while reflecting the user's intention, and visual Even in the psychological model, it is possible to perform a code amount control process that provides a good result.

このように、本第1の実施形態によれば、画質を向上させつつ記録される符号量を少なくすることができるので、記録媒体の容量を節約し、より多くの画像をより長い時間、記録することが可能となる。   As described above, according to the first embodiment, it is possible to reduce the amount of code to be recorded while improving the image quality, thereby saving the capacity of the recording medium and recording more images for a longer time. It becomes possible to do.

なお、本第1の実施形態では、符号化量を制御するために量子化部107で用いる量子化ステップ値を変更する場合について説明したが、本発明はこれに限るものではなく、符号化量を変更可能であれば、どのような符号化条件を制御するものであっても構わない。   In the first embodiment, the case where the quantization step value used in the quantization unit 107 is changed in order to control the coding amount has been described. However, the present invention is not limited to this, and the coding amount is not limited thereto. Any coding condition may be controlled as long as it can be changed.

<第2の実施形態>
以下、本発明の第2の実施形態について説明する。なお、本第2の実施形態における画像符号化装置の構成は、上記第1の実施形態で図1を参照して説明したものと同様であるため、説明を省略する。
<Second Embodiment>
Hereinafter, a second embodiment of the present invention will be described. Note that the configuration of the image coding apparatus according to the second embodiment is the same as that described with reference to FIG. 1 in the first embodiment, and a description thereof will be omitted.

上記構成を有する画像符号化装置の本第2の実施形態における量子化部における符号量制御処理について、図4のフローチャートに沿って説明する。図4に示す処理は、撮影モードに応じて制御部114がフィルタ部104に対して行う。   The code amount control processing in the quantization unit in the second embodiment of the image coding apparatus having the above configuration will be described with reference to the flowchart of FIG. The process shown in FIG. 4 is performed by the control unit 114 on the filter unit 104 according to the shooting mode.

撮影者により撮影開始が指示されると(ステップS201)、制御部114は符号化モード選択部115に設定されている符号化モードを調べる(ステップS202)。符号化モードが動画符号化モードであった場合はステップS203に進んで撮影モード選択部113に設定されている撮影モードを調べ、動画符号化モードで無い場合は処理を終了する。   When the start of shooting is instructed by the photographer (step S201), the control unit 114 checks the coding mode set in the coding mode selection unit 115 (step S202). When the encoding mode is the moving image encoding mode, the process proceeds to step S203 to check the shooting mode set in the shooting mode selection unit 113, and when it is not the moving image encoding mode, the process ends.

ステップS203で撮影モードがポートレートモードで無い場合には処理を終了し、ポートレートモードある場合は、肌色検出処理部103において肌色と検出された領域以外の画像入力データに対して、高周波成分強度を減衰させるようにフィルタ部104を制御する(ステップS204)。   If the photographing mode is not the portrait mode in step S203, the process is terminated. If the portrait mode is present, the high frequency component intensity is applied to the image input data other than the area detected as the skin color by the skin color detection processing unit 103. The filter unit 104 is controlled to attenuate (step S204).

上述した制御部114による符号量制御処理により、図2(b)に示す肌色の存在が検出された箇所以外の領域における符号量が低減するが、ユーザが選択したポートレートモードでは、人物だけが浮き立つように被写体深度を浅くして背景をぼかして撮影するものであるため、ユーザの意図を反映しながら効果的に符号量の削減し、かつ視覚心理モデルにおいても良好な結果が得られる符号量制御処理を行うことができるようになる。   The code amount control processing by the control unit 114 described above reduces the code amount in the region other than the portion where the presence of the flesh color shown in FIG. 2B is detected. However, in the portrait mode selected by the user, only the person is present. Since the subject depth is so shallow that the background is blurred and the background is blurred, the code amount can be effectively reduced while reflecting the user's intention, and good results can be obtained even in the visual psychological model. Control processing can be performed.

このように、本第2の実施形態によれば、画質を向上させつつ記録される符号量を少なくすることができるので、記録媒体の容量を節約し、より多くの画像をより長い時間、記録することが可能となる。   As described above, according to the second embodiment, since the amount of code to be recorded can be reduced while improving the image quality, the capacity of the recording medium can be saved, and more images can be recorded for a longer time. It becomes possible to do.

なお、上記第1及び第2の実施形態は、組み合わせて実施することが可能であることは言うまでもない。   Needless to say, the first and second embodiments can be implemented in combination.

また、上記第1及び第2の実施形態では、動画符号化モードの時にのみ、肌色検出領域を変更する処理を実行するが、本発明はこれに限るものではなく、静止画符号化モード時に実行するようにしても構わない。   In the first and second embodiments, the process for changing the skin color detection area is executed only in the moving image encoding mode. However, the present invention is not limited to this, and is executed in the still image encoding mode. You may make it.

また、本発明は肌色の領域か否かによる制御に限るものではなく、所望の色を検出し、その検出結果に基づいて符号量の制御を行うようにすることも可能である。   In addition, the present invention is not limited to the control based on whether or not the skin color region is used, but it is also possible to detect a desired color and control the code amount based on the detection result.

<他の実施形態>
なお、本発明は、複数の機器(例えばホストコンピュータ、インターフェイス機器、スキャナ、ビデオカメラなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
<Other embodiments>
Note that the present invention can be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a scanner, a video camera, etc.), or a device (for example, a copier, a facsimile device, etc.) composed of a single device. You may apply to.

また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。ここでプログラムコードを記憶する記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、ROM、RAM、磁気テープ、不揮発性のメモリカード、CD−ROM、CD−R、DVD、光ディスク、光磁気ディスク、MOなどが考えられる。また、LAN(ローカル・エリア・ネットワーク)やWAN(ワイド・エリア・ネットワーク)などのコンピュータネットワークを、プログラムコードを供給するために用いることができる。   Another object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded to a system or apparatus, and the computer (or CPU or CPU) of the system or apparatus. Needless to say, this can also be achieved by the MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included. Examples of the storage medium for storing the program code include a flexible disk, hard disk, ROM, RAM, magnetic tape, nonvolatile memory card, CD-ROM, CD-R, DVD, optical disk, magneto-optical disk, MO, and the like. Can be considered. Also, a computer network such as a LAN (Local Area Network) or a WAN (Wide Area Network) can be used to supply the program code.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Furthermore, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is determined based on the instruction of the program code. It goes without saying that the CPU or the like provided in the expansion card or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明した図3及び/または図4に示すフローチャートに対応するプログラムコードが格納されることになる。   When the present invention is applied to the above-mentioned storage medium, the program code corresponding to the flowchart shown in FIG. 3 and / or FIG. 4 described above is stored in the storage medium.

本発明の実施の形態における画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image coding apparatus in embodiment of this invention. 通常の撮影環境における肌色検出処理例を説明する図である。It is a figure explaining the skin color detection process example in a normal imaging environment. 本発明の第1の実施形態における符号量制御処理のフローチャートである。It is a flowchart of the code amount control process in the 1st Embodiment of this invention. 本発明の第2の実施形態における符号量制御処理のフローチャートである。It is a flowchart of the code amount control process in the 2nd Embodiment of this invention. 従来の技術を用いた画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image coding apparatus using a prior art.

符号の説明Explanation of symbols

101 撮像部
102 画像信号処理部
103 肌色検出処理部
104 フィルタ部
105 動き補償予測部
106 直交変換部
107 量子化部
108 エントロピー符号化部
109 バッファ部
110 記録部
111 逆量子化部
112 逆直交変換部
113 撮影モード選択部
114 制御部
115 符号化モード選択部
DESCRIPTION OF SYMBOLS 101 Image pick-up part 102 Image signal processing part 103 Skin color detection processing part 104 Filter part 105 Motion compensation prediction part 106 Orthogonal transformation part 107 Quantization part 108 Entropy encoding part 109 Buffer part 110 Recording part 111 Inverse quantization part 112 Inverse orthogonal transformation part 113 Shooting mode selection unit 114 Control unit 115 Encoding mode selection unit

Claims (20)

複数の撮影モードを切り替える撮影モード選択手段と、
予め設定された色情報に基づいて、所定色を検出する色検出手段と、
画像データを符号化する符号化手段と、
前記撮影モード選択手段により選択された撮影モード及び前記色検出手段により検出された所定色の領域に基づいて、前記符号化手段により符号化される前記画像データの符号量を制御する制御手段と
を有することを特徴とする符号化装置。
A shooting mode selection means for switching between a plurality of shooting modes;
Color detection means for detecting a predetermined color based on preset color information;
Encoding means for encoding image data;
Control means for controlling the code amount of the image data encoded by the encoding means based on the shooting mode selected by the shooting mode selection means and the predetermined color area detected by the color detection means; An encoding apparatus comprising:
前記符号化手段は予め設定された符号化条件に従って符号化を行い、前記制御手段は、前記符号化手段の前記符号化条件を変更することで符号量を制御することを特徴とする請求項1に記載の符号化装置。   2. The encoding unit according to claim 1, wherein the encoding unit performs encoding in accordance with a preset encoding condition, and the control unit controls a code amount by changing the encoding condition of the encoding unit. The encoding device described in 1. 前記制御手段は、前記所定色の領域の符号量がそれ以外の領域の符号量よりも相対的に多くなるように、前記符号化条件を変更するように制御することを特徴とする請求項2に記載の符号化装置。   3. The control unit according to claim 2, wherein the control unit performs control so as to change the encoding condition so that a code amount of the region of the predetermined color is relatively larger than a code amount of the other region. The encoding device described in 1. 前記符号化手段は量子化手段を有し、
前記符号化条件は、前記量子化手段による量子化時のステップ量であることを特徴とする請求項2または3に記載の符号化装置。
The encoding means comprises quantization means;
The encoding apparatus according to claim 2 or 3, wherein the encoding condition is a step amount at the time of quantization by the quantization means.
前記制御手段は、画像データの高周波成分を減衰させる減衰手段を有し、
前記減衰手段は、前記撮影モード選択手段により選択された撮影モード及び前記色検出手段により検出された所定色の領域に基づいて、前記所定色以外の領域の高周波成分を減衰することを特徴とする請求項1乃至4のいずれかに記載の符号化装置。
The control means includes attenuation means for attenuating high frequency components of image data,
The attenuation means attenuates high-frequency components in areas other than the predetermined color based on the shooting mode selected by the shooting mode selection means and the area of the predetermined color detected by the color detection means. The encoding device according to any one of claims 1 to 4.
前記撮影モードは、主に人物を撮影するための人物撮影モードを含み、
前記制御手段は、人物撮影モードが設定された場合に、符号量を制御することを特徴とする請求項1乃至5のいずれかに記載の符号化装置。
The shooting mode includes a person shooting mode mainly for shooting a person,
The encoding apparatus according to claim 1, wherein the control unit controls a code amount when a person photographing mode is set.
前記色情報は肌色を示す色情報であって、前記色検出手段は肌色を検出することを特徴とする請求項6に記載の符号化装置。   The encoding apparatus according to claim 6, wherein the color information is color information indicating a skin color, and the color detection unit detects a skin color. 画像を符号化するための複数の符号化モードを切り替える符号化モード選択手段を更に有し、
前記制御手段は、更に、前記符号化モード選択手段により選択された符号化モードに応じて符号量を制御することを特徴とする請求項1乃至7のいずれかに記載の符号化装置。
Further comprising encoding mode selection means for switching a plurality of encoding modes for encoding an image;
8. The encoding apparatus according to claim 1, wherein the control unit further controls a code amount in accordance with an encoding mode selected by the encoding mode selection unit.
前記複数の符号化モードは、静止画符号化モードと動画符号化モードとを含み、
前記制御手段は、前記静止画符号化モードが選択された場合に前記符号量の制御を行わず、前記動画符号化モードが選択された場合に前記符号量を制御することを特徴とする請求項8に記載の符号化装置。
The plurality of encoding modes include a still image encoding mode and a moving image encoding mode,
The control means does not control the code amount when the still image encoding mode is selected, and controls the code amount when the moving image encoding mode is selected. 8. The encoding device according to 8.
複数の撮影モードを切り替える撮影モード選択工程と、
予め設定された色情報に基づいて、所定色を検出する色検出工程と、
画像データを符号化する符号化工程と、
前記撮影モード選択工程において選択された撮影モード及び前記色検出工程において検出された所定色の領域に基づいて、前記符号化工程において符号化される前記画像データの符号量を制御する制御工程と
を有することを特徴とする符号化方法。
A shooting mode selection step for switching between multiple shooting modes;
A color detection step of detecting a predetermined color based on preset color information;
An encoding process for encoding image data;
A control step of controlling a code amount of the image data encoded in the encoding step based on the shooting mode selected in the shooting mode selection step and a predetermined color area detected in the color detection step; An encoding method comprising:
前記符号化工程では予め設定された符号化条件に従って符号化を行い、前記制御工程では、前記符号化工程で用いられる前記符号化条件を変更することで符号量を制御することを特徴とする請求項10に記載の符号化方法。   The encoding step performs encoding according to a preset encoding condition, and the control step controls the amount of code by changing the encoding condition used in the encoding step. Item 11. The encoding method according to Item 10. 前記制御工程では、前記所定色の領域の符号量がそれ以外の領域の符号量よりも相対的に多くなるように、前記符号化条件を変更することを特徴とする請求項11に記載の符号化方法。   12. The code according to claim 11, wherein, in the control step, the coding condition is changed so that a code amount of the region of the predetermined color is relatively larger than a code amount of the other region. Method. 前記符号化工程は量子化工程を有し、
前記符号化条件は、前記量子化工程における量子化時のステップ量であることを特徴とする請求項11または12に記載の符号化方法。
The encoding step includes a quantization step;
The encoding method according to claim 11 or 12, wherein the encoding condition is a step amount at the time of quantization in the quantization step.
前記制御工程は、画像データの高周波成分を減衰させる減衰工程を有し、
前記減衰工程では、前記撮影モード選択工程において選択された撮影モード及び前記色検出工程において検出された所定色の領域に基づいて、前記所定色以外の領域の高周波成分を減衰することを特徴とする請求項10乃至13のいずれかに記載の符号化方法。
The control step includes an attenuation step for attenuating high frequency components of the image data,
In the attenuating step, high frequency components in regions other than the predetermined color are attenuated based on the photographing mode selected in the photographing mode selecting step and the predetermined color region detected in the color detecting step. The encoding method according to claim 10.
前記撮影モードは、主に人物を撮影するための人物撮影モードを含み、
前記制御工程では、人物撮影モードが設定された場合に、符号量を制御することを特徴とする請求項10乃至14のいずれかに記載の符号化方法。
The shooting mode includes a person shooting mode mainly for shooting a person,
The encoding method according to any one of claims 10 to 14, wherein, in the control step, a code amount is controlled when a human photographing mode is set.
前記色情報は肌色を示す色情報であって、前記色検出工程では肌色を検出することを特徴とする請求項15に記載の符号化方法。   The encoding method according to claim 15, wherein the color information is color information indicating a skin color, and the skin color is detected in the color detection step. 画像を符号化するための複数の符号化モードを切り替える符号化モード選択工程を更に有し、
前記制御工程では、更に、前記符号化モード選択工程において選択された符号化モードに応じて符号量を制御することを特徴とする請求項10乃至16のいずれかに記載の符号化方法。
A coding mode selection step of switching a plurality of coding modes for coding an image;
The encoding method according to any one of claims 10 to 16, wherein, in the control step, a code amount is further controlled according to the encoding mode selected in the encoding mode selection step.
前記複数の符号化モードは、静止画符号化モードと動画符号化モードとを含み、
前記制御工程では、前記静止画符号化モードが選択された場合に前記符号量の制御を行わず、前記動画符号化モードが選択された場合に前記符号量を制御することを特徴とする請求項17に記載の符号化方法。
The plurality of encoding modes include a still image encoding mode and a moving image encoding mode,
The control step includes controlling the code amount when the still image encoding mode is selected, and controlling the code amount when the moving image encoding mode is selected. 18. The encoding method according to 17.
請求項10乃至18のいずれかに記載の符号化方法を実現するためのプログラムコードを有することを特徴とする情報処理装置が実行可能なプログラム。   A program executable by an information processing apparatus, comprising program code for realizing the encoding method according to claim 10. 請求項19に記載のプログラムを記憶したことを特徴とする情報処理装置が読み取り可能な記憶媒体。   20. A storage medium readable by an information processing apparatus, wherein the program according to claim 19 is stored.
JP2004025345A 2004-02-02 2004-02-02 Coding device and method thereof Withdrawn JP2005218017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004025345A JP2005218017A (en) 2004-02-02 2004-02-02 Coding device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004025345A JP2005218017A (en) 2004-02-02 2004-02-02 Coding device and method thereof

Publications (1)

Publication Number Publication Date
JP2005218017A true JP2005218017A (en) 2005-08-11

Family

ID=34907754

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004025345A Withdrawn JP2005218017A (en) 2004-02-02 2004-02-02 Coding device and method thereof

Country Status (1)

Country Link
JP (1) JP2005218017A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009170966A (en) * 2008-01-10 2009-07-30 Canon Inc Image processing apparatus, image processing method, and program
JP2012120241A (en) * 2012-02-13 2012-06-21 Canon Inc Image processing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009170966A (en) * 2008-01-10 2009-07-30 Canon Inc Image processing apparatus, image processing method, and program
JP2012120241A (en) * 2012-02-13 2012-06-21 Canon Inc Image processing apparatus

Similar Documents

Publication Publication Date Title
US7176962B2 (en) Digital camera and digital processing system for correcting motion blur using spatial frequency
US8611426B2 (en) Image-sensing apparatus
JP4794987B2 (en) Video signal processing device
JP4799438B2 (en) Image recording apparatus, image recording method, image encoding apparatus, and program
CN1212018C (en) Camera integrated video recording and reproducing apparatus, and record control method thereof
US8615140B2 (en) Compression of image data in accordance with depth information of pixels
US8035699B2 (en) Image capturing apparatus, control method therefor, and program
JP2007097145A (en) Image coding device and image coding method
US20050259160A1 (en) Imaging device, image processing method, and color area setting program
JP2006197557A (en) Image encoding apparatus, image encoding method and program thereof
JP2008113070A (en) Imaging device and imaging method
JP2005218017A (en) Coding device and method thereof
JP4356982B2 (en) Image processing apparatus and method
JP2005260467A (en) Image processor
JP2007049449A (en) Image recorder
JP5165084B2 (en) Image encoding device
JP2941913B2 (en) Image signal recording device
KR101694293B1 (en) Method for image compression using metadata of camera
JP2011029690A (en) Electronic camera and image encoding method
JP2007335933A (en) Image processing method, program for image processing method, recording medium with program for image processing method recorded thereon, image processor
JP2004289600A (en) Image encoder, image encoding method and program
Hebbalaguppe et al. An efficient multiple exposure image fusion in jpeg
JP2006166259A (en) Digital camera and digital camera system, image compression method, and image processing method, programs and computer-readable recording medium recorded with them
JP2001086510A (en) Image processor, image processing method and computer- readable storage medium
JP5025804B2 (en) Imaging device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070403