JP6921703B2 - Encoding device, its control method, and control program, and imaging device - Google Patents
Encoding device, its control method, and control program, and imaging device Download PDFInfo
- Publication number
- JP6921703B2 JP6921703B2 JP2017195259A JP2017195259A JP6921703B2 JP 6921703 B2 JP6921703 B2 JP 6921703B2 JP 2017195259 A JP2017195259 A JP 2017195259A JP 2017195259 A JP2017195259 A JP 2017195259A JP 6921703 B2 JP6921703 B2 JP 6921703B2
- Authority
- JP
- Japan
- Prior art keywords
- raw data
- depth map
- coding
- update interval
- processing unit
- 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
Links
Images
Landscapes
- Studio Devices (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Description
本発明は、符号化装置、その制御方法、および制御プログラム、並びに撮像装置に関し、特に、映像信号を符号化可能な撮像装置に関する。 The present invention relates to a coding device, a control method thereof, a control program, and an imaging device, and more particularly to an imaging device capable of encoding a video signal.
撮像装置の1つであるデジタルカメラ又はデジタルカムコーダーの普及によって、デジタル方式によって静止画像又は動画像が撮影されている。デジタル方式で得られた画像は、ソフトウェア又はファームウェアなどを用いた演算処理によって、容易に画像処理を施すことができる。画像処理の1つとして、例えば、レンズの収差補正又はダイナミックレンジの調整などが挙げられる。このような画像処理技術はコンピューテーショナルフォトグラフィーと呼ばれている。 With the widespread use of digital cameras or digital camcorders, which are one of the imaging devices, still images or moving images are taken by a digital method. The image obtained by the digital method can be easily subjected to image processing by arithmetic processing using software, firmware, or the like. As one of the image processing, for example, aberration correction of the lens or adjustment of the dynamic range can be mentioned. Such an image processing technique is called computational photography.
例えば、DFD(Depth from Defocus)法又はステレオ法などに代表される奥行推定手法によって生成された奥行情報(デプスマップと呼ぶ)を記録して、当該デプスマップに基づいて画像処理を行う撮像装置がある(特許文献1参照)。 For example, an imaging device that records depth information (called a depth map) generated by a depth estimation method represented by a DFD (Dept from Defocus) method or a stereo method, and performs image processing based on the depth map. Yes (see Patent Document 1).
ところで、デプスマップを生成する際には膨大な演算を必要とするので、静止画の連写撮影又は動画の記録の場合には、撮影画像に対してデプスマップの生成タイミングが離散的となる。 By the way, since a huge amount of calculation is required when generating a depth map, the timing of generating the depth map is discrete with respect to the captured image in the case of continuous shooting of still images or recording of moving images.
デプスマップは、撮影画像における各点に対応する奥行き情報を有する2次元データであり、画素数に比例してその情報量も増加するので圧縮して記録することが望ましい。そこで、デプスマップをモノクロ画像として扱えば画像データに用いられる圧縮技術を応用することが可能であり、撮影画像と同様の圧縮方式を適用することによって新たに符号化器を追加することなく圧縮記録することができる。 The depth map is two-dimensional data having depth information corresponding to each point in the captured image, and the amount of the information increases in proportion to the number of pixels, so it is desirable to compress and record the depth map. Therefore, if the depth map is treated as a monochrome image, the compression technology used for image data can be applied, and by applying the same compression method as the captured image, compression recording is performed without adding a new encoder. can do.
ところが、撮影画像およびデプスマップを1つの符号化器によって、時分割で符号化処理を実行すると、デプスマップの符号化処理に伴って所謂処理レイテンシが発生してしまう。この結果、撮影画像に対する符号化処理が局所的に低下してしまい、例えば、静止画の連写の際に撮影の間隔を一定に保つことが困難となる。また、動画撮影の際にはフレームレートが低下する可能性がある。 However, when the captured image and the depth map are coded in a time-division manner by one encoder, so-called processing latency occurs with the coding process of the depth map. As a result, the coding process for the captured image is locally reduced, and it becomes difficult to keep the shooting interval constant during continuous shooting of still images, for example. In addition, the frame rate may decrease when shooting a moving image.
そこで、本発明の目的は、撮影画像およびデプスマップを符号化処理する際、静止画の連写および動画のフレームレートの低下を抑制することのできる撮像装置、その制御方法、および制御プログラムを提供することにある。 Therefore, an object of the present invention is to provide an image pickup apparatus capable of suppressing continuous shooting of still images and a decrease in frame rate of moving images when encoding a captured image and a depth map, a control method thereof, and a control program. To do.
上記の目的を達成するため、本発明による符号化装置は、撮像によって得られたRAWデータと前記RAWデータの画素毎の奥行きを示すデプスマップとを符号化処理して符号化データを得る符号化装置であって、前記RAWデータの更新間隔と前記デプスマップの更新間隔との比率に基づいて前記デプスマップを複数の分割領域に分割する分割手段と、前記RAWデータと前記複数の分割領域を有するデプスマップとを時分割によって符号化処理する符号化手段と、を有することを特徴とする。 In order to achieve the above object, the coding apparatus according to the present invention encodes the RAW data obtained by imaging and the depth map indicating the depth of each pixel of the RAW data to obtain the coded data. The apparatus includes a dividing means for dividing the depth map into a plurality of divided areas based on the ratio of the update interval of the RAW data and the update interval of the depth map, and the RAW data and the plurality of divided areas. It is characterized by having a coding means for encoding a depth map by time division.
本発明によれば、静止画の連写および動画のフレームレートの低下を抑制することができる。 According to the present invention, it is possible to suppress continuous shooting of still images and a decrease in the frame rate of moving images.
以下に、本発明の実施の形態による撮像装置の一例について図面を参照して説明する。 Hereinafter, an example of the image pickup apparatus according to the embodiment of the present invention will be described with reference to the drawings.
[第1の実施形態]
図1は、本発明の第1の実施形態による撮像装置の一例についてその構成を説明するためのブロック図である。そして、図1(a)は撮像装置の構成を示すブロック図であり、図1(b)は図1(a)に示すRAWデータ符号化・復号処理部の構成を示すブロック図である。
[First Embodiment]
FIG. 1 is a block diagram for explaining the configuration of an example of the image pickup apparatus according to the first embodiment of the present invention. FIG. 1A is a block diagram showing the configuration of the image pickup apparatus, and FIG. 1B is a block diagram showing the configuration of the RAW data coding / decoding processing unit shown in FIG. 1A.
図示の撮像装置は、例えば、静止画および動画を撮影可能なデジタルカメラ(以下単にカメラと呼ぶ)100である。カメラ100は制御部101を備えており、制御部101はカメラ100全体の制御を司る。
The illustrated imaging device is, for example, a digital camera (hereinafter, simply referred to as a camera) 100 capable of capturing still images and moving images. The camera 100 includes a
撮像部102は、レンズ光学系および撮像素子を有しており、レンズ光学系は光学レンズおよび絞りを備えるととともに、フォーカス制御およびレンズ駆動部を備え、光学ズームが可能である。撮像素子は、例えば、CCDイメージセンサー又はCMOSセンサーであり、レンズ光学系を介して結像した光学像(被写体像)に応じた電気信号を生成する。そして、撮像素子は当該電気信号をデジタル信号に変換してRAWデータとしてRAWデータ符号化・復号処理部103およびデプスマップ生成部104に送る。
The
図2は、図1に示す撮像部の出力であるRAWデータの構成を示す図である。 FIG. 2 is a diagram showing a configuration of RAW data which is an output of the imaging unit shown in FIG.
図示のように、RAWデータは、ベイヤー配列のR(赤)、G1(緑)、G2(緑)、およびB(青)の4つの色要素で構成されている。 As shown, the RAW data is composed of four color elements, R (red), G1 (green), G2 (green), and B (blue) of the Bayer array.
図3は、図1に示す撮像部に備えられた撮像素子の構成についてその一例を説明するための図である。そして、図3(a)は平面図であり、図3(b)は側面から見た図である。 FIG. 3 is a diagram for explaining an example of the configuration of an image pickup device provided in the image pickup unit shown in FIG. FIG. 3A is a plan view, and FIG. 3B is a side view.
撮像素子において、画素の各々は1つのマイクロレンズ(ML)200を備えるとともに、当該ML200に対応づけられた2つの光電変換部201および202を有している。そして、撮像素子の各画素はレンズ光学系の射出瞳の異なる領域から出射する光束を受光する。ここでは、光電変換部20の出力に応じてRAWデータ(A画像と呼ぶ)が出力され、電変換部202の出力に応じてRAWデータ(B画像と呼ぶ)が出力される。
In the image sensor, each of the pixels includes one microlens (ML) 200 and two
再び図1を参照して、図1(b)に示すように、RAWデータ符号化・復号処理部103は、RAWデータ符号化処理部103aおよびRAWデータ復号処理部103bを有しており、これらは独立して符号化処理および復号処理を行う。
With reference to FIG. 1 again, as shown in FIG. 1 (b), the RAW data coding /
RAWデータ符号化処理部103aは、主に撮像部102から入力されたRAWデータおよび後述するデプスマップ生成部104によって生成されたデプスマップを符号化して得られた符号化データをメモリ105に出力する。RAWデータ復号処理部103bは、メモリ105に格納された符号化データを復号して得た復号データであるRAWデータを画像処理部107に送るとともに、復号したデプスマップをメモリ105に出力する。
The RAW data
なお、RAWデータおよびデプスマップは、後述するようにして、時分割で符号化・復号処理される。 The RAW data and the depth map are time-division-encoded / decoded as described later.
デプスマップ生成部104は、A画像およびB画像を用いて、既知のDFD法又はステレオ法などを用いて画像中における各点(画素毎)の奥行き距離を算出してデプスマップを生成する。そして、デプスマップ生成部104はデプスマップをメモリ105に出力する。
The depth
メモリ105は、カメラ100を構成する各部から出力される各種データを格納するために用いられる。メモリ105は、例えば、揮発性メモリで構成される記憶領域である。メモリI/F部106は、カメラ100の各部からのメモリ・アクセス要求を調停して、メモリ105に対する読み出しおよび書き込み制御を行う。
The
画像処理部107は、RAWデータ符号化・復号処理部103から入力されたRAWデータに対して、デモザイク処理、ノイズ除去処理、光学歪み補正処理、および色補正処理などの画像処理を行って画像データを生成する。そして、画像処理部107は、当該画像データを表示部108および画像データ符号化部109に出力する。
The
画像処理部107は、RAWデータ符号化・復号処理部103による符号化データの生成と独立したタイミングで画像処理を行う。つまり、画像処理部107は、RAWデータ符号化・復号処理部103によってメモリ105に格納された符号化データを復号して得られたRAWデータを独立したタイミングで画像処理する。また、画像処理部107は復号されたデプスマップを用いてA画像およびB画像について画像位置合わせおよび画像合成処理を行って仮想フォーカス距離に対するリフォーカス処理を実行する。
The
表示部108は、例えば、液晶ディスプレイ又は有機ELディスプレイであり、画像処理部107の出力である画像データに応じた画像を表示する。
The display unit 108 is, for example, a liquid crystal display or an organic EL display, and displays an image corresponding to the image data output from the
画像データ符号化部109aは、画像処理部107の出力である画像データに対して、静止画の場合には、例えば、JPEG、動画の場合には、例えば、MPEGの符号化方式に応じて符号化処理して得られた符号化データをメモリ105に出力する。
The image data coding unit 109a encodes the image data output from the
記録処理部110は、メモリ105に格納された符号化データなどの各種データを記録媒体111に記録する。なお、記録媒体111は、例えば、不揮発性メモリで構成される記録メディアである。
The
図4は、図1に示すRAWデータ符号化・復号処理部で行われるRAWデータおよびデプスマップの符号化処理を説明するためのフローチャートである。なお、図示のフローチャートに係る処理は制御部101の制御下で行われる。
FIG. 4 is a flowchart for explaining the RAW data and depth map coding processing performed by the RAW data coding / decoding processing unit shown in FIG. The processing related to the illustrated flowchart is performed under the control of the
また、図5は、図1に示すRAWデータ符号化・復号処理部で符号化されるRAWデータおよびデプスマップの一例を示す図である。 Further, FIG. 5 is a diagram showing an example of RAW data and depth map encoded by the RAW data coding / decoding processing unit shown in FIG.
ここでは、4096×2160画素のRAWデータを60フレーム/秒の動画として記録するものする。また、デプスマップは、RAWデータのフレームレートの4分の1である15フレーム/秒の更新間隔で生成されるものとする。なお、RAWデータは、A画像およびB画像の双方を符号化して記録することもできるが、ここでは、説明の簡略化のため1つのRAWデータを符号化するものとする。 Here, RAW data of 4096 × 2160 pixels is recorded as a moving image of 60 frames / second. Further, it is assumed that the depth map is generated at an update interval of 15 frames / second, which is a quarter of the frame rate of RAW data. The RAW data can be recorded by encoding both the A image and the B image, but here, one RAW data is encoded for simplification of the description.
符号化処理が開始されると、RAWデータ符号化・復号処理部103は、RAWデータのフレームレートに対するデプスマップの更新間隔(フレームレート)をデプスマップ生成部104から取得する(ステップS401)。なお、ここでは、更新間隔をデプスマップ生成部104から取得するものとしたが、RAWデータの記録開始から最初のデプスマップが生成される時間を測定することによって更新間隔を得るようにしてもよい。
When the coding process is started, the RAW data coding /
続いて、RAWデータ符号化・復号処理部103は、RAWデータのフレームレートとデプスマップの更新間隔との比率に基づいてデプスマップの領域分割を行う(ステップS402)。
Subsequently, the RAW data coding /
図6は、図1に示すRAWデータ符号化・復号処理部で行われるデブスマップの領域分割の一例を説明するための図である。そして、図6(a)は水平方向および垂直方向に分割した例を示す図であり、図6(b)は水平方向に分割した例を示す図である。また、図6(c)は垂直方向に分割した例を示す図である。 FIG. 6 is a diagram for explaining an example of region division of the Debs map performed by the RAW data coding / decoding processing unit shown in FIG. FIG. 6A is a diagram showing an example of division in the horizontal direction and the vertical direction, and FIG. 6B is a diagram showing an example of division in the horizontal direction. Further, FIG. 6C is a diagram showing an example of division in the vertical direction.
ここでは、4フレームのRAWデータに対して1つデプスマップが生成されるので、デプスマップは、図6に示すように4つの分割領域d[0]〜d[3]に分割される。分割する際には、図6(a)に示すように、水平・垂直方向に分割するか又は図6(b)に示すように水平方向にのみ分割する。さらには、図6(c)に示すように垂直方向にのみに分割するようにしてもよい。なお、各分割領域の面積が均一であれば、図6(a)〜図6(c)のいずれに分割してもよい。 Here, since one depth map is generated for the RAW data of four frames, the depth map is divided into four division areas d [0] to d [3] as shown in FIG. When dividing, as shown in FIG. 6 (a), it is divided in the horizontal / vertical direction, or as shown in FIG. 6 (b), it is divided only in the horizontal direction. Further, as shown in FIG. 6C, it may be divided only in the vertical direction. If the area of each divided region is uniform, it may be divided into any of FIGS. 6 (a) to 6 (c).
続いて、制御部101はRAWデータ符号化・復号処理部103による符号化データの記録が停止したか否かを判定する(ステップS403)。符号化データの記録が停止すると(ステップS403において、YES)、制御部101はRAWデータ符号化・復号処理部103による符号化処理を終了する。
Subsequently, the
一方、符号化データの記録が停止しないと(ステップS403において、NO)、制御部101はRAWデータ符号化・復号処理部103を制御して、RAWデータの符号化処理を行う(ステップS404)。そして、RAWデータ符号化・復号処理部103はRAWデータの符号化処理が完了すると、符号化対象となるデプスマップの分割領域を決定する(ステップS405)。
On the other hand, if the recording of the coded data is not stopped (NO in step S403), the
図6に示すように、分割領域の各々にはインデックス番号が付加されており、RAWデータ符号化・復号処理部103はインデックス番号をインクリメントするインデックス・カウンタを有している。RAWデータ符号化・復号処理部103はRAWデータの1フレーム毎にインデックス・カウンタをインクリメントする。また、RAWデータ符号化・復号処理部103は、インデックス番号が分割数となるとインデックス・カウンタをリセットする。そして、RAWデータ符号化・復号処理部103はインデックス・カウンタのカウント値に基づいて分割領域を決定する。
As shown in FIG. 6, an index number is added to each of the divided regions, and the RAW data coding /
デプスマップは、前述のように、メモリ105に格納されている。よって、RAWデータ符号化・復号処理部103は、ディスマップの先頭アドレス、起点座標、水平・垂直画素数などの情報を設定して当該情報に応じて、決定した分割領域のデプスマップ符号化処理を行う(ステップS406)。そして、処理はステップS403に戻る。
The depth map is stored in the
図7は、図4に示すRAWデータ符号化・復号処理部で行われる符号化処理の結果についてその一例を示す図である。 FIG. 7 is a diagram showing an example of the result of the coding process performed by the RAW data coding / decoding processing unit shown in FIG.
上述のように、RAWデータ符号化・復号処理部103はRAWデータのフレームレートとデプスマップの更新間隔との比率に基づいてデプスマップを領域分割する。これによって、1つのデプスマップを時間軸方向に分散して符号化するように制御が行われる。よって、図7に示すように、デプスマップの符号化処理を平準化してRAWデータの記録を最大限に行うことができる。
As described above, the RAW data coding /
さらに、ここでは、RAWデータのフレームレートとデプスマップの更新間隔とが固定された例について説明した。メモリ105のアクセスの混雑度などの要因によってRAWデータのフレームに対してデプスマップの更新間隔が変動することがある。この場合には、メモリ105に複数のデプスマップを一時的に格納するバッファ領域を設ければ、デプスマップの符号化タイミングの平準化を容易に調整することができる。
Further, here, an example in which the frame rate of RAW data and the update interval of the depth map are fixed has been described. The update interval of the depth map may fluctuate with respect to the frame of the RAW data due to factors such as the degree of congestion of the access of the
但し、デプスマップの更新間隔が変動して、バッファ領域がオーバーフローすることもあるので、バッファ領域における蓄積量を測定してデプスマップの符号化処理を制御することが望ましい。例えば、静止画の連写の場合には、デプスマップの記録を優先して、バッファ領域の蓄積量が所定の閾値を超えた場合には、RAWデータの更新間隔を変更する。これによって、デプスマップためのバッファ領域がオーバーフローしないようにする。 However, since the update interval of the depth map fluctuates and the buffer area may overflow, it is desirable to control the coding process of the depth map by measuring the accumulated amount in the buffer area. For example, in the case of continuous shooting of still images, priority is given to recording the depth map, and when the accumulated amount of the buffer area exceeds a predetermined threshold value, the update interval of RAW data is changed. This prevents the buffer area for the depth map from overflowing.
また、動画の場合には、RAWデータのフレームレートを変更することは望ましくないので、バッファ領域の蓄積量が所定の閾値を超えた場合には、新たに入力されるデプスマップを破棄するように制御してもよい。 Also, in the case of moving images, it is not desirable to change the frame rate of RAW data, so if the accumulated amount of the buffer area exceeds a predetermined threshold value, the newly input depth map should be discarded. You may control it.
このように、本発明の第1の実施形態では、RAWデータのフレームレートとデプスマップの更新間隔との比率に基づいてデプスマップを領域分割して、デプスマップを符号化処理する。これによって、デプスマップに係る符号化負荷を平準化して、静止画の連写および動画のフレームレートの低下を抑制することができる。 As described above, in the first embodiment of the present invention, the depth map is divided into regions based on the ratio of the frame rate of the RAW data and the update interval of the depth map, and the depth map is encoded. As a result, the coding load related to the depth map can be leveled, and continuous shooting of still images and a decrease in the frame rate of moving images can be suppressed.
[第2の実施形態]
続いて、本発明の第2の実施形態によるカメラについて説明する。なお、第2の実施形態によるカメラの構成は図1に示すカメラと同様であるが、RAWデータ符号化・復号処理部103の構成が異なる。
[Second Embodiment]
Subsequently, the camera according to the second embodiment of the present invention will be described. The configuration of the camera according to the second embodiment is the same as that of the camera shown in FIG. 1, but the configuration of the RAW data coding /
図8は、本発明の第2の実施形態によるカメラで用いられるRAWデータ符号化・復号処理部の構成についてその一例を示すブロック図である。 FIG. 8 is a block diagram showing an example of the configuration of the RAW data coding / decoding processing unit used in the camera according to the second embodiment of the present invention.
図示のRAWデータ符号化・復号処理部800はRAWデータ符号化処理部800aおよびRAWデータ復号処理部800bを有している。RAWデータ符号化処理部800aおよびRAWデータ復号処理部800bの各々はRAWデータにおける色要素(R、G1、G2、およびB)を並列処理可能な4コア構成を有している。これによって、デプスマップを処理する際には、デブスマップの分割領域を並列処理する。
The illustrated RAW data coding / decoding processing unit 800 includes a RAW data
図示のように、RAWデータ符号化処理部800aはプレーン分離部801および第1〜第4の符号化処理コア802〜805を有している。また、RAWデータ復号処理部800bはプレーン合成部810および第1〜第4の復号処理コア812〜815を有している。
As shown, the RAW data
プレーン分離部801はRAWデータを色要素R、G1、G2、およびBに分離して、それぞれ第1〜第4の符号化処理コア802〜805に送る。第1、第2、第3、および第4の符号化処理コア802、803、804、および805はそれぞれ色要素R、G1、G2、およびBについて符号化処理を行う。
The
第1、第2、第3、および第4の復号処理コア812、813、814、および815は符号化データを受けてそれぞれ色要素R、G1、G2、およびBについて復号処理を行う。そして、プレーン合成部811は復号処理された色要素R、G1、G2、およびBについて合成処理を行う。
The first, second, third, and fourth
図9は、本発明の第2の実施形態によるカメラに備えられたRAWデータ符号化・復号処理部で行われるRAWデータおよびデプスマップの符号化処理を説明するためのフローチャートである。 FIG. 9 is a flowchart for explaining the RAW data and depth map coding processing performed by the RAW data coding / decoding processing unit provided in the camera according to the second embodiment of the present invention.
なお、図示のフローチャートに係る処理は制御部101の制御下で行われる。図9において、図4に示すフローチャートのステップと同一のステップについては同一の参照符号を付して説明を省略する。また、ここでは、第1の実施形態と同様に、4096×2160画素のRAWデータを60フレーム/秒の動画として記録するものする。また、デプスマップは、RAWデータのフレームレートの4分の1である15フレーム/秒の更新間隔で生成されるものとする。
The processing related to the illustrated flowchart is performed under the control of the
ステップS402において、RAWデータ符号化・復号処理部800はデプスマップを、例えば、図6(a)に示すように4つの領域に分割する。 In step S402, the RAW data coding / decoding processing unit 800 divides the depth map into four regions, for example, as shown in FIG. 6A.
ステップS405の処理の後、4並列で符号化処理を行うため、RAWデータ符号化・復号処理部800は、ステップS402で領域分割されたディスマップをさらに再分割する(ステップS906)。 After the process of step S405, the RAW data coding / decoding processing unit 800 further subdivides the area-divided dismap in step S402 in order to perform the coding process in four parallels (step S906).
図10は、本発明の第2の実施形態によるカメラに備えられたRAWデータ符号化・復号処理部で行われるデブスマップの再領域分割の一例を示す図である。 FIG. 10 is a diagram showing an example of redomain division of the Debs map performed by the RAW data coding / decoding processing unit provided in the camera according to the second embodiment of the present invention.
ステップS906の処理では、分割領域d[0]〜d[3]の各々がさらに4つの部分領域に分割される。図示の例では、分割領域d[0]は部分領域d[00]〜d[03]に分割され、分割領域d[1]は部分領域d[10]〜d[13]に分割される。また、分割領域d[2]は部分領域d[20]〜d[23]に分割され、分割領域d[3]は部分領域d[30]〜d[33]に分割される。 In the process of step S906, each of the divided regions d [0] to d [3] is further divided into four subregions. In the illustrated example, the divided area d [0] is divided into partial areas d [00] to d [03], and the divided area d [1] is divided into partial areas d [10] to d [13]. Further, the divided area d [2] is divided into partial areas d [20] to d [23], and the divided area d [3] is divided into partial areas d [30] to d [33].
前述のように、デプスマップは、メモリ105に格納されている。よって、RAWデータ符号化・復号処理部800は、ディスマップの先頭アドレス、起点座標、水平・垂直画素数などの情報を4つの分割領域分纏めて設定して当該情報に応じて、決定した分割領域のデプスマップ符号化処理を行う(ステップS907)。そして、処理はステップS403に戻る。
As described above, the depth map is stored in the
図11は、図9に示すRAWデータ符号化・復号処理部で行われる符号化処理の結果についてその一例を示す図である。 FIG. 11 is a diagram showing an example of the result of the coding process performed by the RAW data coding / decoding processing unit shown in FIG.
上述のように、RAWデータ符号化・復号処理部800はRAWデータのフレームレートとデプスマップの更新間隔との比率に基づいてデプスマップを領域分割する。さらに、RAWデータ符号化・復号処理部800は、符号化処理の並列処理数に基づいて分割領域を再分割する。これによって、1つのデプスマップを時間軸方向に分散して、かつ並列符号化処理を行う制御が行われる。よって、図11に示すように、第1の実施形態よりもさらにデプスマップの符号化処理を平準化してRAWデータの記録を最大限に行うことができる。 As described above, the RAW data coding / decoding processing unit 800 divides the depth map into regions based on the ratio of the frame rate of the RAW data and the update interval of the depth map. Further, the RAW data coding / decoding processing unit 800 subdivides the division area based on the number of parallel processes of the coding processing. As a result, one depth map is distributed in the time axis direction, and control is performed to perform parallel coding processing. Therefore, as shown in FIG. 11, the RAW data can be recorded to the maximum by leveling the depth map coding process as compared with the first embodiment.
ここでは、RAWデータ符号化・復号処理部800の並列処理数に合わせて分割領域を図10に示すように再分割した。一方、図10に示す4つの分割領域d[0]〜d[3]を有するデプスマップを再配置するようにしてもよい。 Here, the division area was subdivided as shown in FIG. 10 according to the number of parallel processes of the RAW data coding / decoding processing unit 800. On the other hand, the depth map having the four divided regions d [0] to d [3] shown in FIG. 10 may be rearranged.
図12は、図10に示す部分領域を再配置した一例を示す図である。 FIG. 12 is a diagram showing an example in which the partial region shown in FIG. 10 is rearranged.
図12に示すように、ベイヤー配列におけるR、G1、G2、およびBの位置に画素単位に部分領域をインターリーブして再配置したデプスマップを生成する。これによって、4つの部分領域を意識することなく、RAWデータのように見せかけて並列符号化処理を行うことができる。 As shown in FIG. 12, a depth map is generated in which partial regions are interleaved and rearranged in pixel units at positions R, G1, G2, and B in the Bayer array. As a result, the parallel coding process can be performed by pretending to be RAW data without being aware of the four subregions.
このように、本発明の第2の実施形態では、RAWデータのフレームレートとデプスマップの更新間隔との比率に応じてデプスマップを領域分割し、さらに符号化処理の並列処理数に基づいて分割領域を再分割してデプスマップを符号化処理する。これによって、デプスマップに係る符号化負荷を平準化して、静止画の連写および動画のフレームレートの低下を抑制することができる。 As described above, in the second embodiment of the present invention, the depth map is divided into regions according to the ratio of the frame rate of the RAW data and the update interval of the depth map, and further divided based on the number of parallel processes of the coding process. The region is subdivided and the depth map is encoded. As a result, the coding load related to the depth map can be leveled, and continuous shooting of still images and a decrease in the frame rate of moving images can be suppressed.
以上、本発明について実施の形態に基づいて説明したが、本発明は、これらの実施の形態に限定されるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。 Although the present invention has been described above based on the embodiments, the present invention is not limited to these embodiments, and various embodiments within the scope of the gist of the present invention are also included in the present invention. ..
例えば、上記の実施の形態の機能を制御方法として、この制御方法を符号化装置に実行させるようにすればよい。また、上述の実施の形態の機能を有するプログラムを制御プログラムとして、当該制御プログラムを符号化装置が備えるコンピュータに実行させるようにしてもよい。なお、制御プログラムは、例えば、コンピュータに読み取り可能な記録媒体に記録される。 For example, the function of the above-described embodiment may be used as a control method, and the encoding device may be made to execute this control method. Further, a program having the functions of the above-described embodiment may be used as a control program, and the control program may be executed by a computer provided in the encoding device. The control program is recorded on, for example, a computer-readable recording medium.
[その他の実施形態]
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
[Other Embodiments]
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
101 制御部
102 撮像部
103,800 RAWデータ符号化・復号処理部
104 デプスマップ生成部
105 メモリ
106 メモリI/F部
107 画像処理部
108 表示部
110 記録処理部
111 記録媒体
Claims (11)
前記RAWデータの更新間隔と前記デプスマップの更新間隔との比率に基づいて前記デプスマップを複数の分割領域に分割する分割手段と、
前記RAWデータと前記複数の分割領域を有するデプスマップとを時分割によって符号化処理する符号化手段と、
を有することを特徴とする符号化装置。 A coding device that obtains coded data by coding the RAW data obtained by imaging and the depth map showing the depth of each pixel of the RAW data.
A partitioning means for dividing the depth map into a plurality of partition areas based on the ratio of the update interval of the RAW data to the update interval of the depth map.
A coding means for coding the RAW data and the depth map having the plurality of divided regions by time division, and
A coding device characterized by having.
前記符号化手段は前記複数の部分領域を有するデブスマップを色要素の各々について並列して符号化処理を行うことを特徴とする請求項1又は2に記載の符号化装置。 The dividing means further divides the divided area into a plurality of subregions.
The coding apparatus according to claim 1 or 2, wherein the coding means performs coding processing in parallel for each of the color elements of a fat map having the plurality of partial regions.
前記RAWデータに基づいてデプスマップを生成する生成手段と、
請求項1乃至7のいずれか1項に記載の符号化装置と、
前記符号化装置によって得られた符号化データを記録媒体に記録する記録手段と、
を有することを特徴とする撮像装置。 An imaging means that captures a subject and obtains RAW data,
A generation means for generating a depth map based on the RAW data, and
The coding apparatus according to any one of claims 1 to 7.
A recording means for recording the coded data obtained by the coding apparatus on a recording medium, and
An imaging device characterized by having.
前記RAWデータの更新間隔と前記デプスマップの更新間隔との比率に基づいて前記デプスマップを複数の分割領域に分割する分割ステップと、
前記RAWデータと前記複数の分割領域を有するデプスマップとを時分割によって符号化処理する符号化ステップと、
を有することを特徴とする制御方法。 It is a control method of a coding apparatus that obtains coded data by coding a RAW data obtained by imaging and a depth map showing the depth of each pixel of the RAW data.
A division step of dividing the depth map into a plurality of division areas based on the ratio of the update interval of the RAW data and the update interval of the depth map, and
A coding step in which the RAW data and the depth map having the plurality of divided regions are coded by time division, and
A control method characterized by having.
前記符号化装置が備えるコンピュータに、
前記RAWデータの更新間隔と前記デプスマップの更新間隔との比率に基づいて前記デプスマップを複数の分割領域に分割する分割ステップと、
前記RAWデータと前記複数の分割領域を有するデプスマップとを時分割によって符号化処理する符号化ステップと、
を実行させることを特徴とする制御プログラム。 A control program used in a coding device that obtains coded data by coding a RAW data obtained by imaging and a depth map indicating the depth of each pixel of the RAW data.
In the computer provided in the encoding device,
A division step of dividing the depth map into a plurality of division areas based on the ratio of the update interval of the RAW data and the update interval of the depth map, and
A coding step in which the RAW data and the depth map having the plurality of divided regions are coded by time division, and
A control program characterized by executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017195259A JP6921703B2 (en) | 2017-10-05 | 2017-10-05 | Encoding device, its control method, and control program, and imaging device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017195259A JP6921703B2 (en) | 2017-10-05 | 2017-10-05 | Encoding device, its control method, and control program, and imaging device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019068386A JP2019068386A (en) | 2019-04-25 |
JP6921703B2 true JP6921703B2 (en) | 2021-08-18 |
Family
ID=66340770
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017195259A Active JP6921703B2 (en) | 2017-10-05 | 2017-10-05 | Encoding device, its control method, and control program, and imaging device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6921703B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7431549B2 (en) * | 2019-10-01 | 2024-02-15 | キヤノン株式会社 | Encoding device, imaging device, control method, and program |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004356857A (en) * | 2003-05-28 | 2004-12-16 | Victor Co Of Japan Ltd | Image data encoder |
JP2010147508A (en) * | 2007-04-13 | 2010-07-01 | Panasonic Corp | Image capturing apparatus and reproduction apparatus |
JP2015233270A (en) * | 2014-05-13 | 2015-12-24 | キヤノン株式会社 | Imaging apparatus and control method of the same |
JP6556022B2 (en) * | 2015-10-30 | 2019-08-07 | キヤノン株式会社 | Image processing apparatus and image processing method |
JP6494587B2 (en) * | 2016-01-13 | 2019-04-03 | キヤノン株式会社 | Image processing apparatus, image processing apparatus control method, imaging apparatus, and program |
-
2017
- 2017-10-05 JP JP2017195259A patent/JP6921703B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019068386A (en) | 2019-04-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101313686B1 (en) | Image processing apparatus and method of controlling the same | |
US8018520B2 (en) | Imaging device, imaging method, display control device, display control method, and program | |
US9843735B2 (en) | Image processing apparatus, imaging apparatus comprising the same, and image processing method | |
US9961272B2 (en) | Image capturing apparatus and method of controlling the same | |
CN111225135B (en) | Image sensor, imaging device, electronic equipment, image processing system and signal processing method | |
JP6678504B2 (en) | Imaging device, control method therefor, program, and storage medium | |
JP2008252461A (en) | Imaging device | |
JP2008193530A (en) | Image recorder, image recording method and program | |
JP2008193458A (en) | Camera image compression processor and compression processing method | |
JP2015049402A (en) | Defocus-amount detection device, and control method of the same, and imaging device | |
US20190020851A1 (en) | Image encoding apparatus, and control method thereof | |
US10511779B1 (en) | Image capturing apparatus, method of controlling same, and storage medium | |
JP6921703B2 (en) | Encoding device, its control method, and control program, and imaging device | |
JP6595797B2 (en) | Imaging apparatus and control method thereof | |
KR20160137289A (en) | Photographing apparatus and method for controlling the same | |
JP6557451B2 (en) | Imaging apparatus, control method therefor, and program | |
JP2015152742A (en) | Imaging device and control method thereof | |
JP5869839B2 (en) | Image processing apparatus and control method thereof | |
JP2014123846A (en) | Imaging apparatus and imaging method | |
JP2018046324A (en) | Imaging sensor, control method therefor, and imaging apparatus | |
JP5161939B2 (en) | Image processing apparatus, imaging system, and control method of image processing apparatus | |
JP6465570B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
US10748305B2 (en) | Image capturing apparatus that can reduce amount of data that is to be recorded, method for controlling the image capturing apparatus, and storage medium | |
JP7307837B2 (en) | IMAGING DEVICE AND CONTROL METHOD THEREOF, PROGRAM, STORAGE MEDIUM | |
JP6318894B2 (en) | Image processing apparatus, image processing method, and imaging apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200904 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210617 |
|
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: 20210629 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210728 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6921703 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |