JP2000209590A - Image encoder, image encoding method, storage medium and image pickup device - Google Patents

Image encoder, image encoding method, storage medium and image pickup device

Info

Publication number
JP2000209590A
JP2000209590A JP410999A JP410999A JP2000209590A JP 2000209590 A JP2000209590 A JP 2000209590A JP 410999 A JP410999 A JP 410999A JP 410999 A JP410999 A JP 410999A JP 2000209590 A JP2000209590 A JP 2000209590A
Authority
JP
Japan
Prior art keywords
image
information
detection target
encoding
focus detection
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
JP410999A
Other languages
Japanese (ja)
Inventor
Kiyoshi Umeda
清 梅田
Tsuneyoshi Takagi
常好 高木
Takashi Kobayashi
崇史 小林
Yoshiki Ishii
芳季 石井
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 JP410999A priority Critical patent/JP2000209590A/en
Publication of JP2000209590A publication Critical patent/JP2000209590A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To attain encoding of an image at a compression rate different between a focused area and a nonfocused area. SOLUTION: A video capture device 46 captures a video signal outputted from a camera and writes the signal to a memory secured in a RAM 36. A computer 30 reads information denoting a position, its size of a focus detection object area of a captured video frame and a distance D up to an object from the camera via a bus interface 50. The computer 30 describes focus area information and a quantization table for a focus area and a nonfocused area to a header. A picture is divided into N square blocks of light pixels, and they are DCT-transformed. A focus area quantization table is applied to blocks in the focal area and the nonfocused area quantization table is applied to the nonfocused area for quantization. Huffman coding is applied to coefficients after quantization. The computer 30 stores the image that is compression coded to a secondary storage device 33 and/or distributed to the network via a network interface 48.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像符号化装置及
び方法、記憶媒体並びに撮像装置に関し、より具体的に
は、撮影画像を圧縮符号化する画像符号化装置及び方
法、その方法のプログラム・ソフトウエアを記憶する記
憶媒体、並びに撮像装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding apparatus and method, a storage medium, and an imaging apparatus. The present invention relates to a storage medium for storing software and an imaging device.

【0002】[0002]

【従来の技術】撮像手段によって撮影された映像をディ
ジタル記録する方法が多数開発されている。通常、画像
データはデータ量が膨大になるので、圧縮符号化して記
録される。代表的な画像圧縮符号化方法は、変換符号化
を使用するJPEG方式及びMPEG方式である。これ
らの符号化方式では、画像が本来持っている近隣画素間
の相関を除去するために離散コサイン変換(DCT)等
の直交変換を行なった後、得られた変換係数を量子化
し、ハフマン符号化などの可変長符号化を適用するもの
である。
2. Description of the Related Art Numerous methods have been developed for digitally recording images taken by image pickup means. Normally, image data has a huge amount of data, and is recorded by compression encoding. Typical image compression coding methods are the JPEG method and the MPEG method using transform coding. In these coding methods, after performing orthogonal transform such as discrete cosine transform (DCT) in order to remove the correlation between neighboring pixels inherent in an image, the obtained transform coefficients are quantized, and Huffman coding is performed. And other variable length coding.

【0003】[0003]

【発明が解決しようとする課題】従来例では、被写体付
近の合焦領域と、ピントの合っていない背景部分の領域
(非合焦領域)に対して同じ圧縮率で符号化を行ってい
た。通常、ユーザの所望する情報の多くが合焦領域にあ
ると考えられるので、この方法は適切ではなく、合焦領
域には非合焦領域に比べ、より多くの情報量を持たせる
べきである。
In the conventional example, coding is performed at the same compression ratio for a focused area near the subject and a background area (unfocused area) that is out of focus. Usually, most of the information desired by the user is considered to be in the in-focus area, so this method is not appropriate, and the in-focus area should have a larger amount of information than the out-of-focus area. .

【0004】画像処理で合焦領域を抽出しようとする
と、一度、周波数領域に画像を変換し、高周波成分の有
無にを判別しなければならない。その計算量を考慮する
と、この方法は、フルフレーム・レート(30フレーム
/sec)で撮影される動画像には適用できない。
In order to extract a focused area by image processing, it is necessary to convert an image into a frequency domain once and determine whether or not there is a high frequency component. Considering the calculation amount, this method cannot be applied to a moving image captured at a full frame rate (30 frames / sec).

【0005】コンピュータとの親和性が強く、コンピュ
ータと接続することで、撮像装置内の様々なパラメータ
(合焦検出対象領域、ズーム倍率値など)を読み出した
り、制御することが可能なインタラクティブカメラが知
られている。
An interactive camera which has a high affinity with a computer and can read and control various parameters (focus detection target area, zoom magnification value, etc.) in the image pickup apparatus by connecting to the computer. Are known.

【0006】本発明は、合焦領域と非合焦領域を異なる
圧縮率で符号化する画像符号化装置及び方法、記憶媒体
並びに撮像装置を提示することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide an image encoding apparatus and method for encoding an in-focus area and an out-of-focus area at different compression rates, a storage medium, and an imaging apparatus.

【0007】[0007]

【課題を解決するための手段】本発明に係る画像符号化
装置は、画像情報並びにその合焦検出対象領域及び被写
体距離の情報の入力手段と、当該被写体距離情報に応じ
て、当該合焦領域情報の示す合焦検出対象領域とそれ以
外の領域とで異なる圧縮率で画像情報を圧縮符号化する
符号化手段と、当該合焦検出対象領域及び被写体距離情
報をヘッダとして、当該符号化手段で圧縮符号化された
画像情報を出力する出力手段とからなることを特徴とす
る。
According to the present invention, there is provided an image coding apparatus comprising: an input unit for inputting image information and information on a focus detection target area and a subject distance; and a focus area based on the subject distance information. An encoding unit that compresses and encodes the image information at a different compression ratio between the focus detection target region indicated by the information and the other region, and the encoding unit using the focus detection target region and the subject distance information as a header. Output means for outputting compression-encoded image information.

【0008】本発明に係る画像符号化方法は、画像情報
並びにその合焦検出対象領域及び被写体距離の情報を取
り込む取り込みステップと、当該被写体距離情報に応じ
て、当該合焦領域情報の示す合焦検出対象領域とそれ以
外の領域とで異なる圧縮率で画像情報を圧縮符号化する
符号化ステップと、当該合焦検出対象領域及び被写体距
離情報をヘッダとして、当該符号化ステップで圧縮符号
化された画像情報を出力する出力ステップとからなるこ
とを特徴とする。
An image encoding method according to the present invention includes a capturing step of capturing image information and information of a focus detection target area and a subject distance, and a focusing step indicated by the focus area information in accordance with the subject distance information. An encoding step of compressing and encoding image information at a different compression ratio between the detection target area and the other areas, and the in-focus detection target area and the subject distance information as headers, which are compression-encoded in the encoding step. And outputting an image information.

【0009】本発明に係る記憶媒体には、上述の画像符
号化方法を実行するプロラグム・ソフトウエアが格納さ
れる。
A storage medium according to the present invention stores program software for executing the above-described image encoding method.

【0010】本発明に係る撮像装置は、撮影画像情報並
びにその合焦検出対象領域及び被写体距離の情報を出力
する撮像手段と、当該被写体距離情報に応じて、当該合
焦領域情報の示す合焦検出対象領域とそれ以外の領域と
で異なる圧縮率で当該撮影画像情報を圧縮符号化する符
号化手段と、当該合焦検出対象領域及び被写体距離情報
をヘッダとして、当該符号化手段で圧縮符号化された撮
影画像情報を出力する出力手段とからなることを特徴と
する。
An image pickup apparatus according to the present invention comprises: an image pickup means for outputting photographed image information and information on a focus detection target area and a subject distance; and a focus indicated by the focus area information in accordance with the subject distance information. An encoding unit for compressing and encoding the captured image information at a different compression ratio between the detection target region and the other region; and a compression encoding by the encoding unit using the focus detection target region and the subject distance information as a header. And output means for outputting the obtained photographic image information.

【0011】[0011]

【実施例】以下、図面を参照して、本発明の実施例を詳
細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0012】先ず、本発明で使用するインタラクティブ
・カメラの構成を説明する。図1は、その概略構成ブロ
ック図を示す。カメラ10の撮影レンズ12は、ズーミ
ングレンズ12aと合焦のためのフォーカシングレンズ
12bを具備する。撮像レンズ12は、被写体の光学像
をCCD等の撮像素子14の撮像面に結合する。撮像素
子14は、撮像面上の光学像を電気信号に変換し、カメ
ラプロセス回路16に出力する。カメラプロセス回路1
6は、撮像素子14の出力に周知の処理(ゲイン補正、
γ補正及び色バランス調整など)を施し、所定形式の映
像信号を出力する。カメラ・プロセス回路16から出力
される映像信号は、カメラ10内の合焦制御回路18と
動体検出回路22に供給されると共に、外部のコンピュ
ータ30にも供給される。
First, the configuration of the interactive camera used in the present invention will be described. FIG. 1 shows a schematic block diagram of the configuration. The taking lens 12 of the camera 10 includes a zooming lens 12a and a focusing lens 12b for focusing. The imaging lens 12 couples an optical image of a subject to an imaging surface of an imaging device 14 such as a CCD. The imaging device 14 converts an optical image on the imaging surface into an electric signal and outputs the electric signal to the camera process circuit 16. Camera process circuit 1
6 is a well-known process (gain correction,
γ correction and color balance adjustment), and outputs a video signal of a predetermined format. The video signal output from the camera / process circuit 16 is supplied to a focus control circuit 18 and a moving object detection circuit 22 in the camera 10 and also to an external computer 30.

【0013】合焦制御回路18は、合焦検出対象領域内
の被写体に合焦するようにフォーカシング・レンズ12
bを制御する。図2は、撮像画面内における合焦検出対
象領域の一例を示す。合焦検出対象領域の位置は、ユー
ザの指定に応じて全体制御回路20が合焦制御回路18
に設定する場合と、周知の動物体検出法(背景差分又は
色識別など)による動体検出回路22の検出結果に応じ
て、全体制御回路20が合焦制御回路18に設定する場
合とがある。動物体を追尾する場合には、後者が利用さ
れる。合焦制御回路18は、カメラプロセス回路16か
らの映像信号中の、合焦検出対象領域内の映像信号に含
まれる高周波成分が極大となるように、フォーカシング
レンズ12bの位置を図示しないフォーカシングレンズ
モータ(ステッピングモータ)を駆動して光軸方向に移
動・調整する。これにより、合焦検出対象領域内の被写
体に自動的に合焦する。距離計測回路23は、被写体ま
での距離を周知の方法(ステッピングモータの駆動情報
を基に算出する。)により計測する。
The focusing control circuit 18 controls the focusing lens 12 so as to focus on an object in the focus detection target area.
control b. FIG. 2 shows an example of the focus detection target area in the imaging screen. The position of the focus detection target area is determined by the overall control circuit 20 according to the user's designation.
In some cases, the overall control circuit 20 sets the focus control circuit 18 according to the detection result of the moving object detection circuit 22 using a known moving object detection method (such as background difference or color identification). When tracking a moving object, the latter is used. The focusing control circuit 18 adjusts the position of the focusing lens 12b (not shown) so that the high-frequency component contained in the video signal in the focus detection target region in the video signal from the camera process circuit 16 is maximized. (Stepping motor) to move and adjust in the optical axis direction. Thereby, the subject in the focus detection target area is automatically focused. The distance measurement circuit 23 measures the distance to the subject by a known method (calculated based on driving information of the stepping motor).

【0014】合焦検出対象領域の位置及びサイズ並びに
被写体までの距離の情報は、バスインターフェース24
を介してコンピュータ30に出力される。
Information on the position and size of the focus detection target area and the distance to the subject is stored in a bus interface 24.
Is output to the computer 30 via the.

【0015】変倍設定回路26は、全体制御回路20か
ら指示された変倍率をズーム制御回路28に設定する。
ズーム制御回路28は、設定された変倍率になるよう
に、ズーミング・レンズ12aを光軸方向に駆動する。
The magnification setting circuit 26 sets the magnification specified by the overall control circuit 20 in the zoom control circuit 28.
The zoom control circuit 28 drives the zooming lens 12a in the direction of the optical axis so that the set magnification is achieved.

【0016】コンピュータ30は、実際には、カメラ1
0により撮影された映像信号を圧縮記録する画像記録装
置として機能する。図3は、その概略構成ブロック図を
示す。本実施例では圧縮符号化方式として、JPEG方
式を使用する。32はCPU、34はROM、36は主
記憶であるRAM、38はハードディスク等の2次記憶
装置、40は映像を表示するモニタ、42はマウス、4
4はキーボード、46はカメラ10のカメラプロセス回
路16から出力される映像信号を取り込む映像キャプチ
ャ装置、48はコンピュータ30をネットワークに接続
するネットワークインターフェース、50はカメラ10
との間で種々の情報(例えば、合焦検出対象領域の位置
情報など)をやりとするバス・インターフェースであ
る。
The computer 30 is actually a camera 1
0 functions as an image recording apparatus for compressing and recording a video signal captured. FIG. 3 shows a schematic block diagram of the configuration. In this embodiment, the JPEG method is used as the compression encoding method. 32 is a CPU, 34 is a ROM, 36 is a RAM as a main memory, 38 is a secondary storage device such as a hard disk, 40 is a monitor for displaying images, 42 is a mouse,
Reference numeral 4 denotes a keyboard; 46, a video capture device for capturing a video signal output from the camera process circuit 16 of the camera 10; 48, a network interface for connecting the computer 30 to a network;
And a bus interface for exchanging various kinds of information (for example, position information of a focus detection target area, etc.) between them.

【0017】図4は、本実施例における画像圧縮符号化
のアルゴリズムを示すフローチャートである。コンピュ
ータ30は、カメラ10(のカメラプロセス回路16)
から出力される映像信号を映像キャプチャ装置46によ
り取り込み、RAM36上に確保したメモリ(以下、フ
レームメモリと呼ぶ。)に書き込む(S1)。この後、
又は同時に、コンピュータ30は、カメラ10から、直
前又は現在、取り込んでいる映像フレームの合焦検出対
象領域の位置及びサイズ並びに被写体までの距離Dの情
報をバスインターフェース50を介して読み込む(S
2)。図5は、合焦検出対象領域を特定するパラメータ
の一例を示す。本実施例では、合焦検出対象領域は、撮
像画面内での左上の座標(Xp,Yp)とそのサイズ
(Xf,Yf)の4つのパラメータにより特定される。
コンピュータ30は、現在、取得した映像フレーム上
で、これらのパラメータで特定されている領域を、フォ
ーカスの合っている合焦領域とする。
FIG. 4 is a flowchart showing an algorithm of image compression encoding in the present embodiment. The computer 30 includes the camera 10 (the camera process circuit 16 thereof).
The video signal output from is captured by the video capture device 46 and written into a memory (hereinafter, referred to as a frame memory) secured on the RAM 36 (S1). After this,
Alternatively, at the same time, the computer 30 reads, via the bus interface 50, information on the position and size of the focus detection target area of the video frame immediately before or currently captured and the distance D to the subject from the camera 10 (S
2). FIG. 5 shows an example of a parameter for specifying the focus detection target area. In this embodiment, the focus detection target area is specified by four parameters of the upper left coordinates (Xp, Yp) and its size (Xf, Yf) in the imaging screen.
The computer 30 sets an area specified by these parameters on the currently acquired video frame as an in-focus area.

【0018】次に、コンピュータ30はヘッダを作成す
る。第1に、JPEGのコメントセグメント(マーカ・
コード0xFFFE以降)を利用してカメラ10から得
た情報をヘッダに記述し、第2に、合焦領域用及び非合
焦領域用の量子化テーブルを作成し、ヘッダに記述す
る。
Next, the computer 30 creates a header. First, JPEG comment segments (markers,
Second, information obtained from the camera 10 using the code 0xFFFE) is described in the header, and second, a quantization table for the in-focus area and a quantization table for the non-focus area are created and described in the header.

【0019】図6は、コメントセグメントの構造及びデ
ータ配置例を示す。コメントセグメントは、セグメント
の開始を示すコード及びセグメント長に続いて、上述し
た合焦領域に関する情報、及び被写体までの距離情報が
記述される。
FIG. 6 shows an example of the structure and data arrangement of a comment segment. In the comment segment, following the code indicating the start of the segment and the segment length, information on the above-described in-focus area and information on the distance to the subject are described.

【0020】図7(a)は、非合焦領域の量子化テーブ
ルの一例を示し、同(b)は、合焦領域の量子化テーブ
ルの一例を示す。但し、ここでは、輝度成分用の量子化
テーブルのみを示した。JPEG方式では、人間の視覚
特性を考慮した、高周波成分の量子化幅が低周波に比べ
て大きい量子化テーブル(以下、推奨テーブルとい
う。)を使用している。図7(a)は、この推奨テーブ
ルを示しており、本実施例では、非合焦領域に推奨テー
ブルを使用する。一方、合焦領域では、図7(b)に示
すような量子化テーブルを使用する。図7(b)に示す
量子化テーブルでは、量子化幅を全てのDCT係数に対
して同じ値としたので、推奨テーブルに比べて高周波成
分を保存できる。全ての値を非合焦領域よりも小さくし
たので、非合焦領域よりも圧縮率が小さくなり、画質が
良くなる。
FIG. 7A shows an example of a quantization table for an out-of-focus area, and FIG. 7B shows an example of a quantization table for an in-focus area. However, here, only the quantization table for the luminance component is shown. The JPEG method uses a quantization table (hereinafter referred to as a recommended table) in which the quantization width of a high-frequency component is larger than that of a low-frequency component in consideration of human visual characteristics. FIG. 7A shows this recommendation table. In the present embodiment, the recommendation table is used for an out-of-focus area. On the other hand, in the focusing area, a quantization table as shown in FIG. 7B is used. In the quantization table shown in FIG. 7B, since the quantization width is set to the same value for all DCT coefficients, high frequency components can be stored as compared with the recommended table. Since all the values are smaller than the out-of-focus area, the compression ratio is lower than in the out-of-focus area, and the image quality is improved.

【0021】実際には、これらの量子化テーブルは、ユ
ーザの求める品質に応じて、以下のようにスケーリング
されて使用される。即ち、 Q’a=Q・Ta〔i,j〕 (1) Q’b=Q・Tb〔i,j〕・D (2) 但し、D<1.0 式(1)及び(2)はそれぞれ、非合焦領域及び合焦領
域に対して実際に使用される最子化テーブルQ’a,
Q’bを示す。Ta〔i,j〕,Tb〔i,j〕は、図
7(a)及び(b)に図示した量子化テーブル、Qはユ
ーザが所望の品質の画像を得るために設定するスケーリ
ングファクタである。式(2)では、合焦領域の量子化
幅が被写体までの距離Dに比例して大きくなり、圧縮率
が高くなる。但し、距離Dは、背景までの距離が1とな
るようにスケーリングされなければならない。
In practice, these quantization tables are scaled and used as follows according to the quality required by the user. That is, Q′a = Q · Ta [i, j] (1) Q′b = Q · Tb [i, j] · D (2) where D <1.0 Equations (1) and (2) In each of the defocusing tables Q′a, Q′a,
Q′b. Ta [i, j] and Tb [i, j] are quantization tables shown in FIGS. 7A and 7B, and Q is a scaling factor set by the user to obtain an image of desired quality. . In Expression (2), the quantization width of the in-focus area increases in proportion to the distance D to the subject, and the compression ratio increases. However, the distance D must be scaled so that the distance to the background is 1.

【0022】図8は、以上の処理の結果から得られたヘ
ッダ部分のフォーマットを示す。
FIG. 8 shows the format of the header obtained from the above processing.

【0023】ヘッダの記述が終了すると、次に符号化が
開始される(S4以降)。本実施例では、先ず、画像を
N個の8画素正方ブロックに分割し(S4)、符号化対
象ブロックを示す変数nを1で初期化し(S5)、DC
T(離散コサイン変換)を施す(S6)。そのブロック
#nが合焦領域内に存在するかどうかを判定する(S
7)。判定方法としては、ブロック内の画素のうちどち
らの領域に含まれる画素数が多いかどうかを基準とす
る。判定結果に応じて合焦領域用又は非合焦領域用の量
子化テーブルを用いて量子化を行い(S8,S9)、量
子化後の係数をハフマン符号化する(S10)。
When the description of the header is completed, encoding is started next (S4 and subsequent steps). In the present embodiment, first, the image is divided into N eight-pixel square blocks (S4), a variable n indicating the encoding target block is initialized to 1 (S5), and DC
T (discrete cosine transform) is performed (S6). It is determined whether or not the block #n exists in the focus area (S
7). The determination method is based on which of the pixels in the block contains a large number of pixels. The quantization is performed using the quantization table for the in-focus area or the out-of-focus area according to the determination result (S8, S9), and the quantized coefficient is Huffman-coded (S10).

【0024】nをインクリメントし、1画面の全ブロッ
クを符号化するまで(S12)、S6以降を繰り返す。
Step S6 and subsequent steps are repeated until n is incremented and all the blocks of one screen are encoded (S12).

【0025】コンピュータ30は、このようにして圧縮
符号化した画像を、2次記憶装置38に記憶するか、及
び/又はネットワークインタフェース48を介してネッ
トワーク上に配信する。
The computer 30 stores the image thus compressed and encoded in the secondary storage device 38 and / or distributes the image on the network via the network interface 48.

【0026】図9は、このように符号化した画像データ
を復号化するプロセスのフローチャートを示す。コメン
トセグメントを参照し、合焦領域に関する情報を得る
(S21)。次に8画素正方ブロック単位でハフマン復
号化し(S23)、注目ブロックが合焦領域内に属する
場合には、合焦領域用量子化テーブルで逆量子化し(S
25)、非合焦領域に属する場合には非合焦領域用量子
化テーブルで逆量子化する(S26)。次に逆DCT変
換する(S27)。これを対象画面の全ブロックについ
て実行する(S29)。
FIG. 9 shows a flowchart of a process for decoding the image data thus encoded. By referring to the comment segment, information on the focused area is obtained (S21). Next, Huffman decoding is performed in units of 8-pixel square blocks (S23). If the target block belongs to the in-focus area, inverse quantization is performed using the in-focus area quantization table (S23).
25) If it belongs to the out-of-focus area, inverse quantization is performed using the out-of-focus area quantization table (S26). Next, inverse DCT is performed (S27). This is executed for all blocks of the target screen (S29).

【0027】上記実施例では、非合焦領域の圧縮率を通
常程度としつつ、合焦領域の圧縮率を低くした。この場
合、符号量が増加するので、低レートの符号化には適さ
ない。低レートの符号化が要求される場合、例えば、逆
に合焦領域の圧縮率を上げることで全体の符号量を平滑
化し、従来法(合焦領域を区別しない符号化法)に比べ
情報量を削減してもよい。即ち、合焦領域の量子化テー
ブルの値を非合点領域のそれよりも大きな値に設定す
る。上記実施例の場合と同様に、これらの量子化テーブ
ルは、ユーザの求める品質に応じてスケーリングして使
用される。スケーリング方法は、被写体までの距離に依
存した方式などをユーザが自由に採用できるが、合焦領
域の量子化幅は、非合焦領域のそれに比べ必ず大きいも
のでなくてはならない。
In the above embodiment, the compression ratio in the in-focus area is reduced while the compression rate in the out-of-focus area is set to a normal level. In this case, since the code amount increases, it is not suitable for low-rate coding. When low-rate coding is required, for example, conversely, the overall code amount is smoothed by increasing the compression ratio of the focus area, and the information amount is reduced as compared with the conventional method (an encoding method that does not distinguish the focus area). May be reduced. That is, the value of the quantization table in the in-focus area is set to a value larger than that in the non-focus area. As in the case of the above embodiment, these quantization tables are scaled and used according to the quality required by the user. As the scaling method, the user can freely adopt a method depending on the distance to the subject or the like, but the quantization width of the focused area must be always larger than that of the non-focused area.

【0028】図10は、カメラ10とコンピュータ30
を一体化した装置の概略構成ブロック図を示す。全体制
御回路20に対応する全体制御回路20aが、コンピュ
ータ30に対応する画像記録装置30aを制御する。画
像記録装置30aは、カメラ・プロセス回路16から出
力される映像信号を取り込む映像キャプチャ装置60、
映像キャプチャ装置60により取り込まれた映像情報を
圧縮符号化する画像圧縮符号化装置62、画像圧縮符号
化装置62により圧縮された映像情報を記録媒体に記録
する記録装置64からなる。画像記録装置30aの動作
は、実質的に、コンピュータ30と同じである。
FIG. 10 shows the camera 10 and the computer 30.
FIG. 1 shows a schematic block diagram of a device in which is integrated. An overall control circuit 20a corresponding to the overall control circuit 20 controls the image recording device 30a corresponding to the computer 30. The image recording device 30a includes a video capture device 60 that captures a video signal output from the camera / process circuit 16,
An image compression encoding device 62 for compressing and encoding the video information captured by the video capture device 60, and a recording device 64 for recording the video information compressed by the image compression and encoding device 62 on a recording medium. The operation of the image recording device 30a is substantially the same as that of the computer 30.

【0029】画像圧縮符号化方式として静止画に適した
JPEG方式を使用する実施例を説明したが、本発明
は、MPEG方式に代表される動画像圧縮符号化方式を
使用する場合にも適用できる。良く知られているよう
に、MPEG方式では、まず任意に選択したフレームA
を静止画としてJPEG方式とほぼ同様のアルゴリズム
によりフレーム内符号化し、以後の一定数又は一定期間
内のフレームを、このフレーム内符号化フレーム(イン
トラ・フレーム)を基準として、動き補償フレーム間予
測符号化する。
Although the embodiment in which the JPEG system suitable for a still image is used as the image compression encoding system has been described, the present invention can be applied to a case where a moving image compression encoding system represented by the MPEG system is used. . As is well known, in the MPEG system, an arbitrarily selected frame A is first selected.
As a still image, and intra-frame encoding is performed using substantially the same algorithm as the JPEG system. Become

【0030】イントラフレームは、動画像ストリーム中
の任意の場所にユーザが設定できるが、通常はシーンチ
ェンジ等の激しい変化がフレーム間に生じた場合に、シ
ーンチェンジが起こった直後のフレームをイントラフレ
ームとする。本発明を適用する場合、このイントラフレ
ームの符号化に上述の各実施例を適用し、合焦領域と非
合焦領域とで異なる量子化テーブルを使用する。
An intra frame can be set by a user at an arbitrary position in a moving image stream. Usually, when a severe change such as a scene change occurs between frames, a frame immediately after the scene change occurs is regarded as an intra frame. And When the present invention is applied, each of the above-described embodiments is applied to the coding of the intra frame, and different quantization tables are used for the in-focus area and the out-of-focus area.

【0031】本発明は、上述の実施例の機能を実現する
ソフトウエアのプログラムコードを記録した記憶媒体
を、システム又は装置に供給し、そのシステム又は装置
のコンピュータ(CPU又はMPU)が記憶媒体に格納
されたプログラムコードを読み出し実行することによっ
ても、達成できる。この場合、記憶媒体から読み出され
たプログラムコード自体が上述した実施例の機能を実現
することになり、そのプログラムコードを記憶した記憶
媒体は、本発明を構成する。
According to the present invention, a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to a system or an apparatus, and a computer (CPU or MPU) of the system or the apparatus stores the storage medium in the storage medium. This can also be achieved by reading and executing the stored program code. In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0032】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピーディスク、ハードディ
スク、光ディスク、光磁気ディスク、CD−ROM、C
D−R、磁気テープ、不揮発性のメモリカード及びRO
M等がある。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM,
DR, magnetic tape, nonvolatile memory card and RO
M etc.

【0033】また、コンピュータが読み出したプログラ
ムコードを実行することにより、上述した実施例の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼動しているオペレーティ
ングシステムなどが実際の処理の一部または全部を行
い、その処理によって上述した実施例の機能が実現され
る場合も含まれる。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the operating system running on the computer based on the instruction of the program code. This also includes a case where some or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.

【0034】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された拡張ボード又
は機能拡張ユニットに備わるメモリに書き込まれた後、
そのプログラムコードの指示に基づき、その機能拡張ボ
ード又は機能拡張ユニットに備わるCPU等が実際の処
理の一部又は全部を行ない、その処理によって上述した
実施例の機能が実現される場合も、本発明の範囲に含ま
れる。
Further, after the program code read from the storage medium is written into a memory provided on an expansion board or a function expansion unit inserted in the computer,
The present invention is also applicable to the case where the CPU or the like provided in the function expansion board or the function expansion unit performs part or all of the actual processing based on the instructions of the program code, and the processing realizes the functions of the above-described embodiments. Included in the range.

【0035】[0035]

【発明の効果】以上の説明から容易に理解できるよう
に、本発明によれば、カメラ内部から得た合焦検出対象
領域情報及び被写体までの距離情報を利用して、合焦領
域の符号化パラメータを他の領域とは異なるものにす
る。合焦領域の圧縮率を下げることにより、注目領域を
より鮮明に記録・伝送することができるようになる。逆
に、合焦領域の圧縮率を非合焦領域に対して相対的に上
げることにより、情報量の少ない背景部分を保存しつ
つ、低レートでの圧縮符号化が可能となる。
As can be easily understood from the above description, according to the present invention, the in-focus area is encoded using the information on the in-focus detection target area and the distance to the subject obtained from inside the camera. Make the parameters different from other areas. By reducing the compression ratio of the in-focus area, the attention area can be recorded and transmitted more clearly. Conversely, by increasing the compression ratio of the in-focus area relative to the out-of-focus area, it is possible to perform compression encoding at a low rate while preserving a background portion having a small amount of information.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の第1実施例の概略構成ブロック図で
ある。
FIG. 1 is a schematic block diagram of a first embodiment of the present invention.

【図2】 合焦検出対象領域の例を示す図である。FIG. 2 is a diagram illustrating an example of a focus detection target area.

【図3】 コンピュータ30の概略構成を示す図であ
る。
FIG. 3 is a diagram showing a schematic configuration of a computer 30.

【図4】 本実施例の圧縮符号化のフローチャートであ
る。
FIG. 4 is a flowchart of compression encoding according to the present embodiment.

【図5】 合焦検出対象領域のパラメータ化の一例を示
す図である。
FIG. 5 is a diagram showing an example of parameterization of a focus detection target area.

【図6】 合焦領域情報のヘッダ記述方法の一例を示す
図である。
FIG. 6 is a diagram illustrating an example of a header description method of focus area information.

【図7】 第1実施例における量子化テーブルの一例を
示す図である。
FIG. 7 is a diagram illustrating an example of a quantization table according to the first embodiment.

【図8】 第1実施例におけるヘッダ部分の構造の一例
である。
FIG. 8 is an example of the structure of a header portion in the first embodiment.

【図9】 本実施例で圧縮した映像情報を復号化する処
理のフローチャートである。
FIG. 9 is a flowchart of a process for decoding video information compressed in the present embodiment.

【図10】 本発明の第2実施例の概略構成ブロック図
である。
FIG. 10 is a schematic configuration block diagram of a second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

10:インタラクティブ・カメラ 12:撮影レンズ 12a:ズーミングレンズ 12b:フォーカシングレンズ 14:撮像素子 16:カメラプロセス回路 18:合焦制御回路 20:全体制御回路 20a:全体制御回路 22:動体検出回路 23:距離計測回路 24:バスインターフェース 26:変倍設定回路 28:ズーム制御回路 30:コンピュータ 30a:画像記録装置 32:CPU 34:ROM 36:RAM 38:2次記憶装置 40:モニタ 42:マウス 44:キーボード 46:映像キャプチャ装置 48:ネットワークインターフェース 50:バス・インターフェース 60:映像キャプチャ装置 62:画像圧縮符号化装置 64:記録装置 10: Interactive camera 12: Photographing lens 12a: Zooming lens 12b: Focusing lens 14: Image sensor 16: Camera process circuit 18: Focus control circuit 20: Overall control circuit 20a: Overall control circuit 22: Moving object detection circuit 23: Distance Measurement circuit 24: Bus interface 26: Magnification setting circuit 28: Zoom control circuit 30: Computer 30a: Image recording device 32: CPU 34: ROM 36: RAM 38: Secondary storage device 40: Monitor 42: Mouse 44: Keyboard 46 : Video capture device 48: Network interface 50: Bus interface 60: Video capture device 62: Image compression encoding device 64: Recording device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 小林 崇史 東京都大田区下丸子3丁目30番2号キヤノ ン株式会社内 (72)発明者 石井 芳季 東京都大田区下丸子3丁目30番2号キヤノ ン株式会社内 Fターム(参考) 5C052 AA17 AB02 DD02 GA02 GA08 GA09 GB06 GC05 5C059 KK00 MA00 MA23 MC14 ME02 PP01 PP14 RC12 RC14 SS15 SS20 TA47 TB04 TC00 TD05 UA02 UA40 5C078 AA04 CA02 DA00 DA01 DA11 DB07 9A001 EE04 EE05 HH27 JJ28 KK42 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Takashi Kobayashi 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Canon Inc. (72) Inventor Yoshiki Ishii 3-30-2 Shimomaruko, Ota-ku, Tokyo 5C052 AA17 AB02 DD02 GA02 GA08 GA09 GB06 GC05 5C059 KK00 MA00 MA23 MC14 ME02 PP01 PP14 RC12 RC14 SS15 SS20 TA47 TB04 TC00 TD05 UA02 UA40 5C078 AA04 CA02 DA00 DA01 DA11 DB07 9A001 EK04 EE04

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 画像情報並びにその合焦検出対象領域及
び被写体距離の情報の入力手段と、 当該被写体距離情報に応じて、当該合焦領域情報の示す
合焦検出対象領域とそれ以外の領域とで異なる圧縮率で
画像情報を圧縮符号化する符号化手段と、 当該合焦検出対象領域及び被写体距離情報をヘッダとし
て、当該符号化手段で圧縮符号化された画像情報を出力
する出力手段とからなることを特徴とする画像符号化装
置。
An input unit for inputting image information and information on a focus detection target area and a subject distance thereof; and a focus detection target area indicated by the focus area information and another area according to the subject distance information. Encoding means for compressing and encoding the image information at different compression rates, and output means for outputting the image information compressed and encoded by the encoding means using the focus detection target area and the subject distance information as a header. An image encoding device, comprising:
【請求項2】 当該圧縮符号化手段は量子化手段を具備
し、合焦検出対象領域とそれ以外の領域とで異なる量子
化テーブルを使用する請求項1に記載の画像符号化装
置。
2. The image encoding apparatus according to claim 1, wherein the compression encoding unit includes a quantization unit, and uses different quantization tables for the focus detection target area and other areas.
【請求項3】 当該圧縮符号化手段は、合焦検出対象領
域に対してそれ以外の領域よりも高周波成分を保存する
量子化テーブルを使用する請求項2に記載の画像符号化
装置。
3. The image encoding apparatus according to claim 2, wherein said compression encoding means uses a quantization table for storing a high-frequency component in the focus detection target area as compared with other areas.
【請求項4】 当該ヘッダは、合焦検出対象領域の画面
上での位置およびサイズ並びに被写体距離の情報を含む
請求項1に記載の画像符号化装置。
4. The image encoding apparatus according to claim 1, wherein the header includes information on a position and a size of a focus detection target area on a screen and a subject distance.
【請求項5】 画像情報並びにその合焦検出対象領域及
び被写体距離の情報を取り込む取り込みステップと、 当該被写体距離情報に応じて、当該合焦領域情報の示す
合焦検出対象領域とそれ以外の領域とで異なる圧縮率で
画像情報を圧縮符号化する符号化ステップと、 当該合焦検出対象領域及び被写体距離情報をヘッダとし
て、当該符号化ステップで圧縮符号化された画像情報を
出力する出力ステップとからなることを特徴とする画像
符号化方法。
5. A capturing step for capturing image information and information on a focus detection target area and a subject distance, and a focus detection target area indicated by the focus area information and other areas according to the subject distance information. An encoding step of compressing and encoding the image information at different compression ratios, and an output step of outputting the image information compressed and encoded in the encoding step using the focus detection target area and the subject distance information as a header. An image encoding method comprising:
【請求項6】 当該圧縮符号化ステップは量子化ステッ
プを具備し、合焦検出対象領域とそれ以外の領域とで異
なる量子化テーブルを使用する請求項5に記載の画像符
号化方法。
6. The image encoding method according to claim 5, wherein the compression encoding step includes a quantization step, and different quantization tables are used for the focus detection target area and other areas.
【請求項7】 当該圧縮符号化ステップは、合焦検出対
象領域に対してそれ以外の領域よりも高周波成分を保存
する量子化テーブルを使用する請求項6に記載の画像符
号化方法。
7. The image encoding method according to claim 6, wherein the compression encoding step uses a quantization table for storing a higher frequency component in the focus detection target area than in other areas.
【請求項8】 当該ヘッダは、合焦検出対象領域の画面
上での位置およびサイズ並びに被写体距離の情報を含む
請求項5に記載の画像符号化方法。
8. The image encoding method according to claim 5, wherein the header includes information on a position and a size of a focus detection target area on a screen and a subject distance.
【請求項9】 請求項5に記載の画像符号化方法を実行
するプロラグム・ソフトウエアを記憶することを特徴と
する記憶媒体。
9. A storage medium storing program software for executing the image coding method according to claim 5.
【請求項10】 撮影画像情報並びにその合焦検出対象
領域及び被写体距離の情報を出力する撮像手段と、 当該被写体距離情報に応じて、当該合焦領域情報の示す
合焦検出対象領域とそれ以外の領域とで異なる圧縮率で
当該撮影画像情報を圧縮符号化する符号化手段と、 当該合焦検出対象領域及び被写体距離情報をヘッダとし
て、当該符号化手段で圧縮符号化された撮影画像情報を
出力する出力手段とからなることを特徴とする撮像装
置。
10. An imaging means for outputting photographed image information and information on a focus detection target area and a subject distance, and a focus detection target area indicated by the focus area information according to the subject distance information. Encoding means for compressing and encoding the photographed image information at a different compression ratio in the area of; and, using the focus detection target area and the subject distance information as a header, the photographed image information compressed and encoded by the encoding means. An image pickup apparatus comprising: an output unit that outputs an image.
【請求項11】 当該圧縮符号化手段は量子化手段を具
備し、合焦検出対象領域とそれ以外の領域とで異なる量
子化テーブルを使用する請求項10に記載の撮像装置。
11. The imaging apparatus according to claim 10, wherein the compression encoding unit includes a quantization unit, and uses different quantization tables for the focus detection target area and other areas.
【請求項12】 当該圧縮符号化手段は、合焦検出対象
領域に対してそれ以外の領域よりも高周波成分を保存す
る量子化テーブルを使用する請求項11に記載の撮像装
置。
12. The imaging apparatus according to claim 11, wherein the compression encoding unit uses a quantization table for storing a high-frequency component in the focus detection target area as compared with other areas.
【請求項13】 当該ヘッダは、合焦検出対象領域の画
面上での位置およびサイズ並びに被写体距離の情報を含
む請求項10に記載の撮像装置。
13. The imaging apparatus according to claim 10, wherein the header includes information on a position and a size of a focus detection target area on a screen and a subject distance.
JP410999A 1999-01-11 1999-01-11 Image encoder, image encoding method, storage medium and image pickup device Withdrawn JP2000209590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP410999A JP2000209590A (en) 1999-01-11 1999-01-11 Image encoder, image encoding method, storage medium and image pickup device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP410999A JP2000209590A (en) 1999-01-11 1999-01-11 Image encoder, image encoding method, storage medium and image pickup device

Publications (1)

Publication Number Publication Date
JP2000209590A true JP2000209590A (en) 2000-07-28

Family

ID=11575632

Family Applications (1)

Application Number Title Priority Date Filing Date
JP410999A Withdrawn JP2000209590A (en) 1999-01-11 1999-01-11 Image encoder, image encoding method, storage medium and image pickup device

Country Status (1)

Country Link
JP (1) JP2000209590A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002176650A (en) * 2000-12-08 2002-06-21 Nikon Corp Image encoder, electronic camera, and recording medium for image encoding program
JP2004072655A (en) * 2002-08-09 2004-03-04 Ricoh Co Ltd Roi region setting device, electronic camera device, roi region setting method, program, and recording medium
JP2007318307A (en) * 2006-05-24 2007-12-06 Fujifilm Corp Image processing method, photographing apparatus, and image processor
JP2009027564A (en) * 2007-07-20 2009-02-05 Fujifilm Corp Image processor, image processing method, and program
JP2011254393A (en) * 2010-06-03 2011-12-15 Canon Inc Encoding apparatus, encoding method and program
WO2014045913A1 (en) * 2012-09-18 2014-03-27 富士フイルム株式会社 Still image display device, system, and imaging device
WO2018041244A1 (en) * 2016-09-02 2018-03-08 Mediatek Inc. Incremental quality delivery and compositing processing
WO2020110771A1 (en) * 2018-11-29 2020-06-04 ソニー株式会社 Image processing device and method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002176650A (en) * 2000-12-08 2002-06-21 Nikon Corp Image encoder, electronic camera, and recording medium for image encoding program
JP4686854B2 (en) * 2000-12-08 2011-05-25 株式会社ニコン Image encoding device, electronic camera, and recording medium for image encoding program
JP2004072655A (en) * 2002-08-09 2004-03-04 Ricoh Co Ltd Roi region setting device, electronic camera device, roi region setting method, program, and recording medium
JP2007318307A (en) * 2006-05-24 2007-12-06 Fujifilm Corp Image processing method, photographing apparatus, and image processor
JP2009027564A (en) * 2007-07-20 2009-02-05 Fujifilm Corp Image processor, image processing method, and program
JP2011254393A (en) * 2010-06-03 2011-12-15 Canon Inc Encoding apparatus, encoding method and program
WO2014045913A1 (en) * 2012-09-18 2014-03-27 富士フイルム株式会社 Still image display device, system, and imaging device
JP5789341B2 (en) * 2012-09-18 2015-10-07 富士フイルム株式会社 Still image display device and system, and imaging device
US9754346B2 (en) 2012-09-18 2017-09-05 Fujifilm Corporation Still image generation device for providing a first and second mixture of an in-focus image and an out-of-focus image
WO2018041244A1 (en) * 2016-09-02 2018-03-08 Mediatek Inc. Incremental quality delivery and compositing processing
CN109716759A (en) * 2016-09-02 2019-05-03 联发科技股份有限公司 Promote quality delivery and synthesis processing
US10951874B2 (en) 2016-09-02 2021-03-16 Mediatek Inc. Incremental quality delivery and compositing processing
WO2020110771A1 (en) * 2018-11-29 2020-06-04 ソニー株式会社 Image processing device and method

Similar Documents

Publication Publication Date Title
JP2876258B2 (en) Digital electronic still camera
JP4693522B2 (en) Imaging device
US20100214445A1 (en) Image capturing method, image capturing apparatus, and computer program
JP4350809B2 (en) Digital camera
US7369611B2 (en) Image coding apparatus and method of the same
KR100893419B1 (en) Imaging apparatus and imaging method
JP2008193530A (en) Image recorder, image recording method and program
JP2000209590A (en) Image encoder, image encoding method, storage medium and image pickup device
US6771823B2 (en) Coding and decoding of moving pictures based on sprite coding
JP2006074114A (en) Image processing apparatus and imaging apparatus
JP3151244B2 (en) Image recording device
JP3115912B2 (en) Image recording device
JP4375662B2 (en) Image processing apparatus, image processing method, program, information recording medium, and imaging apparatus
JP3037961B2 (en) Electronic camera device and image data encoding device
JP4430731B2 (en) Digital camera and photographing method
JP4700992B2 (en) Image processing device
JP2006254333A (en) Coding device, coding method, and digital camera
JP2004180345A (en) Photographed image recording apparatus
JP2011023928A (en) Imaging apparatus, image processing apparatus and image processing method
JP2004032105A (en) Image processing apparatus, image processing system, image processing method, storage medium, and program
JP2007081744A (en) Device and method for encoding moving image
JP2007335933A (en) Image processing method, program for image processing method, recording medium with program for image processing method recorded thereon, image processor
JP2000228770A (en) Variable rate moving picture coding method and moving picture edit system
JP2994437B2 (en) Digital electronic still camera and image attribute determination method
JP5025804B2 (en) Imaging device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060404