Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7204441B2 - IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF - Google Patents
[go: Go Back, main page]

JP7204441B2 - IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF - Google Patents

IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF Download PDF

Info

Publication number
JP7204441B2
JP7204441B2 JP2018218487A JP2018218487A JP7204441B2 JP 7204441 B2 JP7204441 B2 JP 7204441B2 JP 2018218487 A JP2018218487 A JP 2018218487A JP 2018218487 A JP2018218487 A JP 2018218487A JP 7204441 B2 JP7204441 B2 JP 7204441B2
Authority
JP
Japan
Prior art keywords
subband
buffer memory
imaging
encoded data
continuous 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.)
Active
Application number
JP2018218487A
Other languages
Japanese (ja)
Other versions
JP2020088537A (en
Inventor
克彦 東
成記 望月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2018218487A priority Critical patent/JP7204441B2/en
Publication of JP2020088537A publication Critical patent/JP2020088537A/en
Application granted granted Critical
Publication of JP7204441B2 publication Critical patent/JP7204441B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、撮像装置及びその制御方法及びプログラムに関するものである。 The present invention relates to an imaging apparatus, its control method, and program.

デジタルカメラに代表される撮像装置は、画像センサにより取得された生の画像情報(RAWデータ)に対して現像処理を行うことで、視聴用の画像データを生成する。ここで、現像処理とは、デベイヤー処理(デモザイク処理)し、輝度と色差から成る信号に変換した後、各信号についてノイズ除去、光学的な歪補正をする一連の処理を指す。 2. Description of the Related Art Imaging apparatuses typified by digital cameras generate image data for viewing by performing development processing on raw image information (RAW data) acquired by an image sensor. Here, the development process refers to a series of processes in which debayer processing (demosaicing) is performed to convert the signals into signals composed of luminance and color difference, and then noise removal and optical distortion correction are performed on each signal.

静止画を連写する際には、複数枚のRAWデータを一度に格納できるサイズの領域をバッファメモリに確保し、バッファメモリに格納されたRAWデータを順々に現像処理する。 When continuously shooting still images, an area having a size capable of storing a plurality of RAW data at one time is secured in the buffer memory, and the RAW data stored in the buffer memory are sequentially developed.

また、RAWデータが現像処理されることによりできたバッファメモリの空きに対して、新たに取得されたRAWデータが格納される。 In addition, newly acquired RAW data is stored in the empty space of the buffer memory created by developing the RAW data.

静止画の撮影において、画像センサからRAWデータを取得する際の信号処理に対して、現像処理は多くの時間を要する。このため、連写を続けると、現像処理を待つRAWデータが次第に増えて、バッファメモリに空きが無くなり、ついには連写が中断されることになる。 In photographing a still image, development processing takes much time as compared to signal processing when acquiring RAW data from an image sensor. Therefore, if continuous shooting is continued, the amount of RAW data waiting for development processing will gradually increase, and the buffer memory will run out of space.

近年の6Kや8Kなどの多画素化の流れにより、1枚当たりのRAWデータのデータサイズが肥大化し、現像処理に係る時間もこれまでよりも多くの時間を要する。そのため、バッファメモリの空きが出づらくなり、早々に連写が中断されてしまい、それに従って連写枚数も少なくなってしまう。 Due to the recent trend toward higher pixel counts such as 6K and 8K, the data size of RAW data per sheet has increased, and the time required for development processing has also increased. As a result, it becomes difficult for the buffer memory to become free, and continuous shooting is interrupted prematurely.

近年、RAWデータそのものを圧縮することで、RAWデータのデータサイズを小さくする技術も出てきている。例えば、特許文献1に記載の技術は、RAWデータをR、G1、B、G2のプレーンに分類する。そして、特許文献1によれば、各色プレーンは離散ウェーブレット変換を用いて周波数成分に変換され、図1に示すような複数のサブバンドが生成される。この後、サブバンドごとに符号化をすることで、効率的にRAWデータを圧縮している。 In recent years, there has also been developed a technique for reducing the data size of RAW data by compressing the RAW data itself. For example, the technique described in Patent Document 1 classifies RAW data into R, G1, B, and G2 planes. Then, according to Patent Document 1, each color plane is transformed into frequency components using a discrete wavelet transform to generate a plurality of subbands as shown in FIG. After that, encoding is performed for each subband, thereby efficiently compressing the RAW data.

ウェーブレット変換を1回行うと、LL、HL,LH,HHの4つのサブバンドが生成される。ここで、Lが低域、Hが高域を表す。L、Hの前の数字が分解レベルを表す。例えば、1HLは、水平方向が高域成分で、垂直方向が低域成分である分解レベル=1のサブバンド画像を表す。なお、ウェーブレット変換の回数に制限はない。また、2回目以降のウェーブレット変換は、直前のウェーブレット変換で得られたサブバンドLLに対して再帰的に行うことになる。それ故、予定した回数のウェーブレット変換を行った際のサブバンドLLは1つしか存在しない。図1は、ウェーブレット変換を2回行った例であるので、7つのサブバンドが生成されることになる。 A single wavelet transform produces four subbands LL, HL, LH, and HH. Here, L represents a low frequency range and H represents a high frequency range. The numbers before L and H represent decomposition levels. For example, 1HL represents a subband image of decomposition level=1, in which the horizontal direction is the high frequency component and the vertical direction is the low frequency component. Note that there is no limit to the number of wavelet transforms. Further, the second and subsequent wavelet transforms are recursively performed on the subband LL obtained by the previous wavelet transform. Therefore, there is only one sub-band LL when the wavelet transform is performed the planned number of times. Since FIG. 1 is an example in which wavelet transform is performed twice, seven subbands are generated.

上記の技術などを用いてRAWデータを圧縮してデータサイズを小さくすることで、連写の際にバッファメモリにより多くのRAWデータを格納できるようになり、多画素のRAWデータ撮影においても、連写枚数を増やすことが可能となる。 By compressing the RAW data using the above technology to reduce the data size, more RAW data can be stored in the buffer memory during continuous shooting. It is possible to increase the number of photographs.

特開2017-85319号公報JP 2017-85319 A

しかしながら、特許文献1に記載されるようなサブバンド符号化を利用した圧縮の場合、各サブバンドへのバッファメモリの割り当てに留意する必要がある。 However, in the case of compression using subband coding as described in Patent Document 1, it is necessary to pay attention to allocation of buffer memory to each subband.

各サブバンドへのバッファメモリの割り当てを行うにあたり、RAWデータを符号化した場合の各サブバンドの符号量を参照することが望ましい。しかし、符号化データの記憶先となるメモリアドレスを指定した後に撮影を開始するという撮像装置の制御の都合上、符号化をした後にバッファメモリの割り当てを決定することが難しい。そのため、撮像装置にプリセットされた値、例えば予め大量の画像データから統計的に求めた各サブバンドの符号化データの比率、を各サブバンドのバッファメモリの割り当てに用いることが考えられる。 When allocating buffer memory to each subband, it is desirable to refer to the code amount of each subband when RAW data is encoded. However, it is difficult to determine buffer memory allocation after encoding due to the control of the imaging apparatus, which starts shooting after specifying a memory address where encoded data is to be stored. Therefore, it is conceivable to use a value preset in the imaging device, for example, a ratio of coded data of each subband statistically obtained in advance from a large amount of image data, to allocate the buffer memory of each subband.

ここで、連写時の符号化データのバッファメモリへの格納について、図2(A)乃至(C)を用いて説明する。 Storing encoded data in the buffer memory during continuous shooting will now be described with reference to FIGS.

図2(A)は連写時に5枚分のRAWデータを取得したこと、同図(B)及び(C)はウェーブレット変換、エントロピー符号化して生成した符号化データをバッファメモリに格納する例を示している。 FIG. 2A shows five RAW data obtained during continuous shooting, and FIG. 2B and FIG. showing.

図2(B),(C)は、5枚分の符号化データを格納できるようにメモリ上に確保されたバッファメモリをサブバンドごとに割り当てている様子を表している。また、図2(B),(C)は図3に示したR、G1、B、G2の4プレーンの内、1プレーンに対してウェーブレット変換を2回実行して符号化したデータを格納している。 FIGS. 2B and 2C show how buffer memories secured on the memory so as to store encoded data for five frames are assigned to each subband. FIGS. 2B and 2C store encoded data obtained by performing wavelet transform twice on one of the four planes R, G1, B, and G2 shown in FIG. ing.

撮像して得られた画像データについての各サブバンドの符号化データの比率がプリセット値に近似している場合は、図2(B)で示すように、各サブバンドに割り当てたバッファメモリを効率的に使用できる。しかし、撮像で得られた画像データの各サブバンドの符号化データの比率に偏りが生じ、プリセット値から乖離する場合はバッファメモリを効率的に使用できなくなる。図2(C)は、1HLサブバンドの符号化データのサイズがプリセット値より多くなるケースを示している。図2(C)では4枚目の画像データの符号化時に1HLサブバンドの符号化データが割り当てられたバッファメモリを超過してしまっていることを示している。図示のごとく、4枚目の符号化の時点で、他のサブバンドの符号化データはバッファメモリに格納できたのにも関わらず、1HLサブバンドの符号化データがバッファメモリを超過してしまう。このため、4枚目の符号化データは再生できる符号化データとして記録できなくなる。また、4枚目の画像データ取得の時点で連写が止まってしまうため、5枚目の撮影もできなくなる。 When the ratio of the encoded data of each subband in the image data obtained by imaging is close to the preset value, as shown in FIG. can be used as intended. However, if the ratio of coded data in each subband of image data obtained by imaging is biased and deviates from the preset value, the buffer memory cannot be used efficiently. FIG. 2(C) shows a case where the size of encoded data of 1HL subband is larger than the preset value. FIG. 2(C) shows that the encoded data of the 1HL subband exceeds the allocated buffer memory when encoding the fourth image data. As shown in the figure, at the time of encoding the fourth image, the encoded data of the 1HL subband exceeds the buffer memory although the encoded data of the other subbands could be stored in the buffer memory. . Therefore, the encoded data for the fourth sheet cannot be recorded as reproducible encoded data. In addition, since the continuous shooting stops at the time when the image data for the fourth image is obtained, the fifth image cannot be shot.

本発明は上記の問題点に鑑み、連写時におけるバッファメモリをこれまでよりも効率よく利用可能とする技術を提供しようとするものである。 SUMMARY OF THE INVENTION An object of the present invention is to provide a technique that enables more efficient use of the buffer memory during continuous shooting than ever before.

この課題を解決するため、例えば本発明の撮像装置は以下の構成を備える。すなわち、
撮像手段より得た画像データを記録媒体に記録する撮像装置であって、
撮像して得た画像データを、周波数変換して複数のサブバンドを得て、各サブバンドを量子化、エントロピー符号化することでサブバンド毎の符号化データを生成する符号化手段と、
該符号化手段で得た符号化データを前記記録媒体に格納するためのバッファとして機能するメモリと、
前記符号化手段で得られた符号化データを、前記メモリを介在して、前記記録媒体に記録する制御手段とを有し、
前記制御手段は、連写モードにおいては、最初から所定数の第1の画像群の符号化データを一時的に格納する第1のバッファメモリと、前記第1の画像群に後続して撮像される第2の画像群の符号化データを一時的に格納するための第2のバッファメモリとを前記メモリに確保し、
前記第1のバッファメモリには、予め設定された比率に応じたサイズの領域をサブバンド毎に割り当て、当該領域それぞれに前記第1の画像群から得た各サブバンドの符号化データを一時的に格納し、
前記第2のバッファメモリには、前記第1の画像群の各サブバンドの符号量の比率に応じたサイズの領域をサブバンド毎に割り当て、当該領域それぞれに前記第2の画像群から得た各サブバンドの符号化データを一時的に格納することを特徴とする。
In order to solve this problem, for example, the imaging device of the present invention has the following configuration. i.e.
An imaging device for recording image data obtained from imaging means on a recording medium,
an encoding means for generating encoded data for each subband by frequency-converting image data obtained by imaging to obtain a plurality of subbands, and quantizing and entropy-encoding each subband;
a memory functioning as a buffer for storing the encoded data obtained by the encoding means in the recording medium;
a control means for recording the encoded data obtained by the encoding means on the recording medium through the memory;
In the continuous shooting mode, the control means comprises: a first buffer memory for temporarily storing a predetermined number of coded data of the first image group from the beginning; securing in the memory a second buffer memory for temporarily storing encoded data of a second image group;
In the first buffer memory, an area having a size corresponding to a preset ratio is assigned to each subband, and encoded data of each subband obtained from the first image group is temporarily stored in each of the areas. store in
In the second buffer memory, an area having a size corresponding to the code amount ratio of each subband of the first image group is allocated to each subband, and each of the areas is obtained from the second image group. It is characterized by temporarily storing encoded data of each subband.

本発明によれば、連写時において、効率的なバッファメモリの使用が可能となる。 According to the present invention, it is possible to efficiently use the buffer memory during continuous shooting.

ウェーブレット変換によるサブバンド生成の例を示す図。The figure which shows the example of subband generation by wavelet transform. バッファメモリと符号化データの格納についての例を示す図。FIG. 4 is a diagram showing an example of buffer memory and storage of encoded data; RAWデータからプレーン画像に分離する例を示す図。FIG. 4 is a diagram showing an example of separating RAW data into plain images; 第1の実施形態における撮像装置のブロック構成図。1 is a block configuration diagram of an imaging device according to a first embodiment; FIG. 量子化ステップサイズの設定についての一例を示す図。FIG. 5 is a diagram showing an example of setting a quantization step size; 第1の実施形態における撮像装置のバッファメモリの利用例を示す図。4A and 4B are diagrams showing a usage example of a buffer memory of the imaging apparatus according to the first embodiment; FIG. 第1の実施形態における撮像装置の処理手順を示すフローチャート。4 is a flow chart showing a processing procedure of the imaging device according to the first embodiment; 第2の実施形態における撮像装置のバッファメモリの利用例を示す図。FIG. 10 is a diagram showing a usage example of a buffer memory of an imaging device according to the second embodiment; 第2の実施形態における撮像装置のブロック構成図。FIG. 2 is a block configuration diagram of an imaging device according to a second embodiment; 第2の実施形態における撮像装置の処理手順を示すフローチャート。9 is a flow chart showing the processing procedure of the imaging device according to the second embodiment.

以下、添付図面に従って本発明に係る実施形態を詳細に説明する。なお、以下に示す実施形態における構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。 Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Note that the configurations in the embodiments shown below are merely examples, and the present invention is not limited to the illustrated configurations.

[第1の実施形態]
図4は、第1の実施形態における撮像装置400のブロック構成図である。撮像装置400は、CPU401、光学部402、撮像部403、プレーン変換部404、離散ウェーブレット変換部405、量子化部406、エントロピー符号化部407、アドレス設定部408.メモリI/F409、メモリ410、記録処理部411、記録媒体412を有する。
[First embodiment]
FIG. 4 is a block configuration diagram of an imaging device 400 according to the first embodiment. The imaging apparatus 400 includes a CPU 401, an optical unit 402, an imaging unit 403, a plane transform unit 404, a discrete wavelet transform unit 405, a quantization unit 406, an entropy coding unit 407, an address setting unit 408, . It has a memory I/F 409 , a memory 410 , a recording processing unit 411 and a recording medium 412 .

CPU401は、当該CPUが実行する制御プログラムを格納する不図示のメモリを持ち、撮像装置400の各構成要素を制御する。 The CPU 401 has a memory (not shown) that stores control programs executed by the CPU, and controls each component of the imaging apparatus 400 .

光学部402は、光学レンズ、絞り、フォーカス制御及びレンズ駆動部を含む光学ズームが可能なレンズ光学系で構成されており、このレンズ光学系を通過した光を撮像部403の撮像面に結像する。撮像部403は、その表面にR,G,Bの各色成分のフィルタを配置した撮像センサを有し、各色成分のフィルタを介して入射した光量に応じた電気信号を生成する。また、撮像部403は、撮像センサから電信号をデジタルデータに変換するA/Dコンバータを有し、得られたデジタルデータをプレーン変換部404に供給する。なお、撮像センサは、CCDイメージセンサ、又は、CMOSセンサなどの撮像素子である。また、撮像センサの表面に配置される各色成分のフィルタはベイヤ配列となっているものとする。したがって、撮像部403から出力されるデジタルデータもベイヤ配列の画像データとなり、各色成分の画素データは現像処理前の配列となっている。よって、以降、このベイヤ配列の画素データで表される画像データをRAWデータという。 The optical unit 402 is composed of a lens optical system capable of optical zoom including an optical lens, an aperture, a focus control unit, and a lens driving unit. do. The imaging unit 403 has an imaging sensor having filters for each of the R, G, and B color components arranged on its surface, and generates an electric signal corresponding to the amount of light incident through the filter for each color component. The imaging unit 403 also has an A/D converter that converts an electrical signal from the imaging sensor into digital data, and supplies the obtained digital data to the plane conversion unit 404 . Note that the imaging sensor is an imaging element such as a CCD image sensor or a CMOS sensor. It is also assumed that the filters for each color component arranged on the surface of the imaging sensor have a Bayer array. Therefore, the digital data output from the imaging unit 403 is also Bayer array image data, and the pixel data of each color component is arrayed before development processing. Therefore, hereinafter, image data represented by pixel data in the Bayer array is referred to as RAW data.

プレーン変換部404は、撮像部403からのRAWデータから、それぞれが単一成分のデータで構成される複数のプレーンに変換する。具体的には、プレーン変換部404は、RAWデータを、R成分の画素のみで構成されるRプレーン、B成分の画素のみで構成されるBプレーン、G1成分のみの画素で構成されるG1プレーン、及び、G2成分のみの画素で構成されるG2プレーンの4プレーンに変換する。そして、プレーン変換部404は、変換して得たRプレーン、Bプレーン、G1プレーン、及びG2プレーンを更に複数のプレーンに変換した上で、離散ウェーブレット部405に供給する。例えば、プレーン変換部404は、Rプレーン、Bプレーン、G1プレーン、及びG2プレーンから、次式に従って、輝度を示すYプレーン、3つの色差を示すCo、Cg、Dgプレーンを生成する。
Y={R+B+G1+G2}/4
Co=R-B
Cg={G0+G1}/2-{R+B}/2
Dg=G0-G1
なお、プレーン変換部404は、RAWデータから得たRプレーン、Bプレーン、G1プレーン、G2プレーンを離散ウェーブレット部405に供給するようにしても良い。また、プレーン変換部404は、複数の計算式を実行する機能もしくは回路を実装しておき、CPU401が使用する計算式を選択するようにしてもよい。
A plane conversion unit 404 converts the RAW data from the imaging unit 403 into a plurality of planes, each of which is composed of data of a single component. Specifically, the plane conversion unit 404 converts the RAW data into an R plane consisting of only R component pixels, a B plane consisting of only B component pixels, and a G1 plane consisting of only G1 component pixels. , and G2 planes composed of only G2 component pixels. Then, the plane transformation unit 404 further transforms the R plane, B plane, G1 plane, and G2 plane obtained by transformation into a plurality of planes, and supplies them to the discrete wavelet unit 405 . For example, the plane conversion unit 404 generates a Y plane representing luminance and Co, Cg, and Dg planes representing three color differences from the R plane, B plane, G1 plane, and G2 plane according to the following equations.
Y={R+B+G1+G2}/4
Co = RB
Cg={G0+G1}/2-{R+B}/2
Dg=G0-G1
Note that the plane conversion unit 404 may supply the R plane, B plane, G1 plane, and G2 plane obtained from the RAW data to the discrete wavelet unit 405 . Also, the plane conversion unit 404 may be equipped with a function or circuit for executing a plurality of calculation formulas, and the CPU 401 may select the calculation formula to be used.

離散ウェーブレット変換部405は、プレーン変換部404により供給されたプレーンそれぞれを単一色成分(モノクロ)の多値画像データとして入力し、周波数変換の1つである離散ウェーブレット変換を実施し、複数のサブバンドを生成する。そして離散ウェーブレット変換部405は、生成した複数のサブバンドを予め設定された順に量子化部406に供給する。なお、離散ウェーブレット変換部405による分解数(離散ウェーブレット変換の実行回数)はCPU401によって設定される。 The discrete wavelet transform unit 405 receives each of the planes supplied from the plane transform unit 404 as multi-valued image data of a single color component (monochrome), performs discrete wavelet transform, which is one of frequency transforms, and converts the planes into a plurality of sub-pixels. generate a band. Then, the discrete wavelet transform unit 405 supplies the generated multiple subbands to the quantization unit 406 in a preset order. Note that the CPU 401 sets the number of decompositions (number of discrete wavelet transform executions) by the discrete wavelet transform unit 405 .

量子化部406は、離散ウェーブレット変換部405より送られた各プレーンのサブバンドを構成する変換係数を、所定の量子化ステップサイズに基づいてそれぞれを量子化する。ここで、所定の量子化ステップサイズは、例えば図5で示すように、CPU401が各サブバンドで設定してよい。 The quantization unit 406 quantizes the transform coefficients forming the subbands of each plane sent from the discrete wavelet transform unit 405 based on a predetermined quantization step size. Here, the predetermined quantization step size may be set for each subband by the CPU 401 as shown in FIG. 5, for example.

尚、図5は、Y、Co、Cg,Dgプレーンがあるものと仮定した図であり、各プレーンに対してウェーブレット変換を1回実施した例を示すものである。 FIG. 5 is a diagram assuming that there are Y, Co, Cg, and Dg planes, and shows an example in which wavelet transform is performed once for each plane.

図5は、CPU401がベースとなる量子化ステップサイズ“4”を量子化部406に設定する例を示している。量子化部406は、Y、Co,Cg,Dgの各プレーンのサブバンドごとの、予め設定されている重み係数を有し、量子化ステップサイズとその重み係数とを乗算をすることで、各プレーンのサブバンド毎の実際に使用する量子化ステップサイズを算出する。なお、CPU401は、量子化部406で用いられる量子化ステップサイズを個別に設定してもよい。 FIG. 5 shows an example in which the CPU 401 sets a base quantization step size of “4” to the quantization section 406 . The quantization unit 406 has a preset weighting factor for each subband of each plane of Y, Co, Cg, and Dg, and multiplies the quantization step size by the weighting factor to obtain each Calculate the actually used quantization step size for each subband of the plane. Note that the CPU 401 may individually set the quantization step size used in the quantization section 406 .

エントロピー符号化部407は、量子化部406による各サブバンドの量子化後の変換係数に対してハフマン符号や算術符号等を用いたエントロピー符号化を行い、各サブバンドの符号化データを生成する。 The entropy coding unit 407 performs entropy coding using a Huffman code, an arithmetic code, or the like on the transform coefficients after quantization of each subband by the quantization unit 406, and generates coded data of each subband. .

また、エントロピー符号化部407は、各サブバンドの符号化データのそれぞれのサイズ(符号量)を後述のアドレス設定部408に通知する。 The entropy coding unit 407 also notifies the address setting unit 408, which will be described later, of the size (code amount) of the coded data of each subband.

また、エントロピー符号化部407は、後述のアドレス設定部408によって指定されたアドレスに基づき、各サブバンドの符号化データを、メモリ410に記憶する。このメモリ410の一部は、記録媒体412に格納する符号化データを一時的に記憶するバッファとして利用される。 Also, the entropy coding unit 407 stores the coded data of each subband in the memory 410 based on the address specified by the address setting unit 408 which will be described later. A part of this memory 410 is used as a buffer for temporarily storing encoded data to be stored in the recording medium 412 .

アドレス設定部408は、エントロピー符号化部407が各サブバンドの符号化データをメモリ410に書き込む際に参照するアドレスを設定する。 The address setting unit 408 sets an address that the entropy coding unit 407 refers to when writing the coded data of each subband to the memory 410 .

なお、本実施形態で、アドレス設定部408は、後述の第1のバッファメモリの設定において、プリセットされた情報、例えば予め大量の画像データから統計的に求めた各サブバンドの符号化データの比率、に基づいてアドレスを設定する。 In the present embodiment, the address setting unit 408 uses preset information, such as the ratio of encoded data of each subband statistically obtained from a large amount of image data in advance, in the setting of the first buffer memory, which will be described later. , to set the address based on.

また、本実施形態で、アドレス設定部408は、後述の第2のバッファメモリの設定において、エントロピー符号化部407から送られた各サブバンドの符号化データのサイズに基づいてアドレスを設定する。また、アドレス設定部408は、CPU401の制御プログラムの機能の内の1つとして組み込んでも良い。尚、アドレス設定の詳細については後述する。 Also, in this embodiment, the address setting unit 408 sets an address based on the size of the encoded data of each subband sent from the entropy encoding unit 407 in setting the second buffer memory, which will be described later. Also, the address setting unit 408 may be incorporated as one of the functions of the control program of the CPU 401 . Details of address setting will be described later.

メモリI/F409は、エントロピー符号化部407を含めた、各処理部からのメモリ410に対するアクセス要求の調停、すなわち、メモリ410に対する読み出し/書き込み制御を行う。 The memory I/F 409 arbitrates access requests to the memory 410 from each processing unit including the entropy coding unit 407 , that is, performs read/write control for the memory 410 .

メモリ410は、エントロピー符号化部407から送られた各サブバンドの符号化データを含めた、各種データを格納するための揮発性メモリで構成される記憶領域である。 The memory 410 is a storage area composed of a volatile memory for storing various data including the coded data of each subband sent from the entropy coding section 407 .

記録処理部411は、CPU401からの記録命令に従い、メモリ410へ格納された符号化データを記録媒体412へ記録する。記録媒体412は、不揮発性メモリで構成される記録メディアであり、典型的には、SDカードに代表される、脱着可能なメモリカードである。 The recording processing unit 411 records the encoded data stored in the memory 410 onto the recording medium 412 according to the recording command from the CPU 401 . A recording medium 412 is a recording medium configured with a non-volatile memory, and is typically a removable memory card typified by an SD card.

続いて、アドレス設定部408による、メモリ410上のバッファメモリの割り当てについて図6を用いて説明する。 Next, allocation of buffer memory on the memory 410 by the address setting unit 408 will be described with reference to FIG.

図6は、メモリ410上のバッファメモリの確保と、各サブバンドへの割り当てについて表す。 FIG. 6 shows allocation of buffer memory in memory 410 and allocation to each subband.

本実施形態において、連写時の先頭の1枚のRAWデータを格納するための第1のバッファメモリと、2枚目以降のRAWデータ(図6の例では5枚の連写であるので2~5枚目のRAWデータ)を格納するための第2のバッファメモリを、それぞれメモリ410上に確保する。なお、連写する際の上限枚数は、予め設定されたメニュー画面より設定されるものとする。 In this embodiment, a first buffer memory for storing the RAW data of the first image during continuous shooting, and RAW data for the second and subsequent images (in the example of FIG. A second buffer memory for storing the RAW data of the first to fifth sheets) is secured on the memory 410, respectively. It is assumed that the maximum number of images for continuous shooting is set from a preset menu screen.

尚、ここでは1枚あたりの符号化データサイズを、一律で4000KBであるものとする。 Here, it is assumed that the encoded data size per sheet is uniformly 4000 KB.

また、説明の簡素化のために、RAWデータから分離した4つのプレーンの内の1つについてのサブバンドへの割り当てを説明する。本実施形態では、上記の4000KBを、4つのプレーンに均等で割り当てるものとし、4000KB÷4=1000KBを1枚当たりの符号化データサイズとして、以下の説明を行う。 Also, to simplify the explanation, allocation to subbands for one of the four planes separated from the RAW data will be explained. In this embodiment, the above 4000 KB is evenly allocated to four planes, and the encoded data size per sheet is 4000 KB/4=1000 KB.

本実施形態において第1のバッファメモリは、ここでは各サブバンドの面積比に基づいて、バッファ領域を割り当てるものとする。 In this embodiment, the first buffer memory allocates the buffer area based on the area ratio of each subband.

離散ウェーブレット変換によるサブバンド分割は、分解レベルが1レベル上がるごとに水平および垂直の係数が半分になるため、面積としては4分の1となる。そのため、1HL/1LH/1HHの各々のサイズに対して、2LL/2HL/2LH/2HHの各々のサイズが4分の1の関係となる。 Subband division by the discrete wavelet transform halves the horizontal and vertical coefficients each time the decomposition level increases by one level, so the area is reduced to 1/4. Therefore, each size of 2LL/2HL/2LH/2HH has a relationship of 1/4 with respect to each size of 1HL/1LH/1HH.

本実施形態においては、実際に発生する符号化データサイズに基づいて各サブバンドへの割り当てを実施していないため、第1のバッファメモリの全体サイズとしては1枚分のRAWデータの符号化サイズに対してマージンを持つことが望ましい。マージンを持つことで符号化データを確実に格納することができる。 In the present embodiment, allocation to each subband is not performed based on the size of the encoded data that is actually generated. It is desirable to have a margin against Encoded data can be stored reliably by having a margin.

本実施形態においては第1のバッファメモリのサイズは、1000KBに対して、2割のマージンを持つこととし、1200KBを確保するものとする。 In this embodiment, the size of the first buffer memory has a margin of 20% with respect to 1000 KB, and 1200 KB is secured.

以上より、各サブバンドへの第1のバッファメモリの割り当ては、下記のように行われる。 Based on the above, allocation of the first buffer memory to each subband is performed as follows.

<第1のバッファメモリの割り当てにおける、各サブバンドの比率>
2LL:2HL:2LH:2HH:1HL:1LH:1HH
=1:1:1:1:4:4:4
<第1のバッファメモリの割り当て>
2LLサブバンド:1200KB×1÷(1+1+1+1+4+4+4)=
1200KB×1÷16=75KB
2HLサブバンド:1200KB×1÷16=75KB
2LHサブバンド:1200KB×1÷16=75KB
2HHサブバンド:1200KB×1÷16=75KB
1HLサブバンド:1200KB×4÷16=300KB
1LHサブバンド:1200KB×4÷16=300KB
1HHサブバンド:1200KB×4÷16=300KB
<Proportion of each subband in allocation of the first buffer memory>
2LL: 2HL: 2LH: 2HH: 1HL: 1LH: 1HH
= 1:1:1:1:4:4:4
<Allocation of first buffer memory>
2LL subband: 1200 KB x 1 ÷ (1 + 1 + 1 + 1 + 4 + 4 + 4) =
1200KB x 1/16 = 75KB
2HL subband: 1200KB x 1/16 = 75KB
2 LH sub-band: 1200 KB x 1/16 = 75 KB
2HH subband: 1200KB x 1/16 = 75KB
1HL subband: 1200KB x 4/16 = 300KB
1 LH subband: 1200 KB x 4 ÷ 16 = 300 KB
1HH subband: 1200KB x 4/16 = 300KB

また、本実施形態を実施する上で、第1のバッファメモリの割り当てを行う際に、各サブバンドの面積比ではなく、予め大量の画像データから統計的に求めた各サブバンドの符号化データの比率に基づいても良い。また、実施形態では、第1バッファを、RAWデータから生成される4プレーンそれぞれ均等に割り振る例をしめしたが、Y,Co,Cg,Dgを統計的に求めた符号化データの比率に従って、割り振っても構わない。 Further, in carrying out the present embodiment, when allocating the first buffer memory, the coded data of each subband obtained statistically in advance from a large amount of image data is used instead of the area ratio of each subband. It may be based on the ratio of Further, in the embodiment, an example has been given in which the first buffer is evenly allocated to each of the four planes generated from RAW data. I don't mind.

第2のバッファメモリは、第1のバッファメモリに格納された、連写時の先頭の1枚のRAWデータから生成した符号化データに基づいて、各サブバンドに割り当てられる。これは、2枚目以降のRAWデータから得られる符号量の傾向は、先頭の1枚のRAW画像データと同じ傾向になることに着目した結果である。 The second buffer memory is assigned to each subband based on the encoded data generated from the first piece of RAW data during continuous shooting stored in the first buffer memory. This is the result of focusing on the fact that the tendency of the amount of code obtained from the RAW data of the second and subsequent sheets is the same as that of the first sheet of RAW image data.

図6の例において、第1のバッファメモリに格納された各サブバンドの符号化データサイズは下記の通りであるものとする。 In the example of FIG. 6, the coded data size of each subband stored in the first buffer memory is as follows.

<先頭のRAWデータの符号量>
2LLサブバンド:65KB
2HLサブバンド:70KB
2LHサブバンド:65KB
2HHサブバンド:50KB
1HLサブバンド:280KB
1LHサブバンド:240KB
1HHサブバンド:230KB
<Code amount of leading RAW data>
2LL sub-band: 65KB
2HL subband: 70KB
2LH subband: 65KB
2HH subband: 50KB
1HL subband: 280KB
1LH subband: 240KB
1HH subband: 230KB

上記の各サブバンドの符号化データのサイズを比率に換算すると下記の通りである。尚、ここでは各サブバンドの符号化データサイズを、上記各サブバンドの符号化データのサイズの最小値である50KBで除算するものとする。 When the size of the encoded data of each subband is converted into a ratio, it is as follows. Here, the coded data size of each subband is divided by 50 KB, which is the minimum value of the coded data size of each subband.

<先頭のRAWデータにおける、各サブバンドの符号量の比率>
2LL:2HL:2LH:2HH:1HL:1LH:1HH
=1.3:1.4:1.3:1.0:5.6:4.8:4.6
ここでの説明において、第2のバッファメモリは5枚連写する中での2~5枚目の4枚分のRAWデータを格納できるサイズを確保するので、第2のバッファメモリの全体のサイズは1000KB×4枚=4000KBとなる。
<Ratio of Code Amount of Each Subband in Leading RAW Data>
2LL: 2HL: 2LH: 2HH: 1HL: 1LH: 1HH
=1.3:1.4:1.3:1.0:5.6:4.8:4.6
In the explanation here, the second buffer memory secures a size that can store RAW data for four shots of the second to fifth shots in continuous shooting of five shots, so the overall size of the second buffer memory is is 1000 KB×4 sheets=4000 KB.

それに加えて、4枚分のRAWデータを確実に格納するため、第1のバッファメモリと同様にマージンを持たせる。ここでは、第1のバッファメモリと同じく2割のマージンを持つこととすると、第2のバッファメモリの全体のサイズは4000KB×1.2=4800KBとなる。各サブバンドへの割り当ては、上記の比率と併せて次の通りになる。 In addition, in order to reliably store RAW data for four sheets, a margin is provided as in the first buffer memory. Here, assuming that the second buffer memory has a 20% margin like the first buffer memory, the overall size of the second buffer memory is 4000 KB×1.2=4800 KB. The allocation to each subband, together with the above ratios, is as follows.

<先頭の1枚に基づいた、第2のバッファメモリの割り当て>
2LLサブバンド:4800KB×1.3÷(1.3+1.4+1.3+1.0+5.6+4.8+4.6)=4800KB×1.3÷20=312KB
2HLサブバンド:4800KB×1.4÷20=336KB
2LHサブバンド:4800KB×1.3÷20=312KB
2HHサブバンド:4800KB×1.0÷20=240KB
1HLサブバンド:4800KB×5.6÷20=1344KB
1LHサブバンド:4800KB×4.8÷20=1152KB
1HHサブバンド:4800KB×4.6÷20=1104KB
<Second buffer memory allocation based on first sheet>
2LL subband: 4800 KB x 1.3 ÷ (1.3 + 1.4 + 1.3 + 1.0 + 5.6 + 4.8 + 4.6) = 4800 KB x 1.3 ÷ 20 = 312 KB
2HL subband: 4800 KB x 1.4 ÷ 20 = 336 KB
2 LH sub-band: 4800 KB x 1.3 ÷ 20 = 312 KB
2HH subband: 4800 KB x 1.0 ÷ 20 = 240 KB
1HL subband: 4800 KB x 5.6 ÷ 20 = 1344 KB
1 LH subband: 4800 KB x 4.8 ÷ 20 = 1152 KB
1HH subband: 4800 KB x 4.6 ÷ 20 = 1104 KB

静止画の連写において、時間的に隣接した画像の相関が高いことから、各サブバンドの符号化データのサイズは、時間的に隣接したRAWデータの間で近い可能性が高い。そのため、図6で示すように、複数枚のRAWデータを格納するためのバッファメモリの割り当ての際に、先頭の1枚の符号化結果を参照することで、無駄なくバッファメモリを使用することが可能となる。 In continuous shooting of still images, temporally adjacent images have a high correlation, so there is a high possibility that the size of coded data of each subband is close between temporally adjacent RAW data. Therefore, as shown in FIG. 6, when allocating a buffer memory for storing a plurality of pieces of RAW data, referring to the encoding result of the first piece makes it possible to use the buffer memory without waste. It becomes possible.

続いて、本第1の実施形態である撮像装置400の動作の詳細を図7に示すフローチャートを基づき説明する。 Next, details of the operation of the imaging device 400 according to the first embodiment will be described with reference to the flowchart shown in FIG.

尚、ここでの動作として、符号化したRAWデータのメモリ410上のバッファメモリへの格納と、既にバッファメモリに格納されている符号化されたRAWデータの記録媒体412への記録が同時に実行されているものとする。以下に説明する処理は、前者の格納処理の主要部分である。 As an operation here, storing the encoded RAW data in the buffer memory of the memory 410 and recording the encoded RAW data already stored in the buffer memory on the recording medium 412 are executed simultaneously. shall be The processing described below is the main portion of the former storage processing.

また、符号化データを格納する際に、既に格納されている符号化データを上書きする可能性がある場合、その分の符号データは出力しないものとする。 Also, when storing encoded data, if there is a possibility that the already stored encoded data will be overwritten, the encoded data corresponding to that will not be output.

まず、始めにCPU401は、第1のバッファメモリおよび第2のバッファメモリをメモリ410上に確保する(S701)。 First, the CPU 401 secures a first buffer memory and a second buffer memory on the memory 410 (S701).

続いて、S702にて、CPU401は、アドレス設定部408を制御し、サブバンドの面積比に基づいて第1のバッファメモリ内に、各サブバンドに割り当て、エントロピー符号化部407の出力先として設定する。 Subsequently, in S702, the CPU 401 controls the address setting unit 408, assigns each subband to the first buffer memory based on the area ratio of the subband, and sets it as the output destination of the entropy coding unit 407. do.

次に、S703にて、CPU401は、撮像部403による先頭の1枚のRAWデータを取得し、プレーン変換部404、離散ウェーブレット変換部405、量子化部406、エントロピー符号化部407を制御し、各プレーンの複数のサブバンドごとの符号化データを生成させ、第1のバッファメモリに書き込む。なお、エントロピー符号化部407が第1のバッファメモリに格納する際の先頭アドレスは、アドレス設定部408により設定されているアドレスとなる。 Next, in S703, the CPU 401 acquires the first RAW data from the imaging unit 403, controls the plane transform unit 404, the discrete wavelet transform unit 405, the quantization unit 406, and the entropy coding unit 407, Encoded data for each of a plurality of subbands of each plane is generated and written to the first buffer memory. Note that the top address when the entropy encoding unit 407 stores in the first buffer memory is the address set by the address setting unit 408 .

続いて、S704にて、CPU401は、アドレス設定部408を制御し、エントロピー符号化部407から送られた各サブバンドの符号量(符号化データのサイズ)に基づき、2枚目以降のRAWデータの符号化データを格納先である第2のバッファメモリを、各サブバンドに割り当てる。アドレス設定部408は、割り当てた各サブバンドのアドレスを出力先として、エントロピー符号化部407に設定する。 Subsequently, in S704, the CPU 401 controls the address setting unit 408, and based on the code amount (encoded data size) of each subband sent from the entropy encoding unit 407, the RAW data of the second and subsequent sheets. A second buffer memory in which the coded data of is stored is allocated to each subband. The address setting unit 408 sets the assigned address of each subband to the entropy encoding unit 407 as an output destination.

次に、S705にて、CPU401は、撮像部403による再度RAWデータ(2枚目以降のRAWデータ)の取得を行わせ、プレーン変換部404、離散ウェーブレット変換部405、量子化部406、エントロピー符号化部407による複数のサブバンドごとの符号化データの生成と格納を開始させる。 Next, in step S705, the CPU 401 causes the imaging unit 403 to acquire RAW data (raw data of the second and subsequent frames) again, and converts the plane transform unit 404, the discrete wavelet transform unit 405, the quantization unit 406, and the entropy code. It causes the encoding unit 407 to start generating and storing encoded data for each of a plurality of subbands.

また、それと同時に、S706にて、CPU401は、第1あるいは第2のバッファ内の符号化データの記録媒体412への書き出しを開始する。 At the same time, the CPU 401 starts writing the encoded data in the first or second buffer to the recording medium 412 in S706.

続く、S707にて、CPU401は、S705で生成した符号化データが、既に符号化済み、かつ記録媒体412への書き出しが行われていない第2のバッファメモリに記録されている符号化データを上書きするか否かを判定する。 Subsequently, in S707, the CPU 401 causes the encoded data generated in S705 to overwrite the encoded data recorded in the second buffer memory that has already been encoded and has not been written to the recording medium 412. determine whether or not to

上書きすると判定した場合、S708にて、CPU401は、符号化データのバッファへの出力を一旦中断し、第2のバッファメモリに記録されている符号化データが記録媒体に書き出されたのを確認した上でRAWの符号化データの書き出しを再開させる。 If overwriting is determined, in S708 the CPU 401 suspends the output of the encoded data to the buffer, and confirms that the encoded data recorded in the second buffer memory has been written to the recording medium. After that, the writing of the RAW encoded data is restarted.

S707で符号化データの上書きとはならないと判定された場合、または、格納する空き領域がある場合、CPU401は処理をS709に進める。このS709にて、CPU401は、エントロピー符号化部407からの符号化データの第2のバッファメモリへの格納を行わせる。 If it is determined in S707 that the encoded data will not be overwritten, or if there is a free space for storage, the CPU 401 advances the process to S709. In S709, the CPU 401 causes the encoded data from the entropy encoding unit 407 to be stored in the second buffer memory.

S710にて、CPU401は、連写が継続中か否かを判定する。継続中とは、ユーザがレリーズボタンを押下状態で、且つ、連写の上限枚数(実施形態では5枚)に到達しないとする。連写の枚数が上限枚数に到達した場合には、仮に、レリーズボタンが押下状態であっても、連写処理を終了する。連写継続中であると判定した場合、CPU401は、続いて取得したRAWデータの符号化を開始するため、処理をS705に戻す。 In S710, the CPU 401 determines whether continuous shooting is continuing. Continuing means that the user is pressing the release button and the maximum number of continuous shots (five in the embodiment) has not been reached. When the number of continuous shots reaches the upper limit, the continuous shooting process is terminated even if the release button is pressed. If it is determined that continuous shooting is being continued, the CPU 401 subsequently returns the process to S705 in order to start encoding the acquired RAW data.

一方、連写が終了したと判定した場合、CPU401は、処理をS711に進め、記録媒体412へ未出力の、バッファメモリ内の符号化データをすべて記録媒体412に書き込み、処理を終了する。 On the other hand, if it is determined that continuous shooting has ended, the CPU 401 advances the process to S711, writes all the encoded data in the buffer memory that has not been output to the recording medium 412, and ends the process.

上記第1の実施形態によれば、連写時において、符号化データを一時的に格納するバッファメモリを介在して記録媒体に記録する際、サブバンドの発生符号量に偏りが生じた場合においても、効率的なバッファメモリの利用な可能となる。 According to the first embodiment described above, during continuous shooting, when the encoded data is recorded on the recording medium via the buffer memory for temporarily storing the encoded data, even if the generated code amount of the sub-band is uneven, also allows for efficient buffer memory utilization.

なお、上記実施形態では、連写する際の上限枚数を予め設定するものとして説明したが、上限枚数は必ずしも設定しなくても良い。上記実施形態のごとく、連写中にバッファメモリに符号化データの格納を行いながら記録媒体412への書き込みを行っている場合には、その書き込みによって空きエリアがバッファメモリに発生する。そこで、次のRAWデータの取得を行う際に、1枚分のRAWデータの全サブバンドの符号量を格納する空き領域が存在する限り、レリーズボタンの押下による連写を継続可としても良い。この場合、第2のバッファメモリに確保する各サブバンドのサイズは、上記の通り、1枚目のRAWデータの各サブバンドの符号量の比率に従って決定すればよい。そして、S710では、レリーズボタンが押下状態であり、且つ、次のRAWデータの全サブバンドの推定される「符号量+マージン」が存在するか否かを判定する。そして、両条件を満たす場合には、CPU401は処理をS705に戻せばよい。 In the above embodiment, the upper limit of the number of images for continuous shooting is set in advance, but the upper limit of the number of images may not necessarily be set. As in the above-described embodiment, when data is written to the recording medium 412 while storing encoded data in the buffer memory during continuous shooting, an empty area is generated in the buffer memory due to the writing. Therefore, when acquiring the next RAW data, as long as there is an empty area for storing the code amounts of all subbands of the RAW data for one frame, it is possible to continue continuous shooting by pressing the release button. In this case, the size of each subband secured in the second buffer memory may be determined according to the code amount ratio of each subband of the first RAW data, as described above. Then, in S710, it is determined whether or not the release button is pressed and the estimated "code amount+margin" of all subbands of the next RAW data exists. Then, if both conditions are satisfied, the CPU 401 may return the processing to S705.

尚、本第1の実施形態である撮像装置400において、第2のバッファメモリの割り当ての際に、最も低い分解レベルのHL/LH/HHサブバンドの符号化データのサイズを、高い分解レベルのHL/LH/HHサブバンドのバッファメモリの割り当てに用いてもよい。 In the imaging apparatus 400 according to the first embodiment, when allocating the second buffer memory, the size of the encoded data of the HL/LH/HH subbands of the lowest resolution level is changed to that of the high resolution level. It may be used to allocate buffer memory for the HL/LH/HH sub-bands.

この場合、1HL/1LH/1HHの符号量から、下記のように面積比を用いて2HL/2LH/2HHの符号量に相当する値を計算した上で、バッファ設定に用いる。 In this case, from the code amount of 1HL/1LH/1HH, a value corresponding to the code amount of 2HL/2LH/2HH is calculated using the area ratio as described below, and is used for buffer setting.

<分解レベル=1のサブバンドの符号量>
1HLサブバンド:280KB
1LHサブバンド:240KB
1HHサブバンド:230KB
<分解レベル=2のサブバンドの符号量に相当する値>
2HLサブバンド:1HLサブバンドのサイズ÷4=280KB÷4=70KB
2LHサブバンド:1LHサブバンドのサイズ÷4=240KB÷4=60KB
2HHサブバンド:1HHサブバンドのサイズ÷4=230KB÷4=57.5KB
<Code amount of sub-band with decomposition level = 1>
1HL subband: 280KB
1LH subband: 240KB
1HH subband: 230KB
<Value corresponding to code amount of sub-band with decomposition level = 2>
2 HL sub-bands: size of 1 HL sub-band ÷ 4 = 280 KB ÷ 4 = 70 KB
2 LH sub-bands: Size of 1 LH sub-band ÷ 4 = 240 KB ÷ 4 = 60 KB
2HH subband: Size of 1HH subband/4=230KB/4=57.5KB

また、本実施形態の第1および第2のバッファメモリの全体のサイズにおいて、1枚あたりの符号化データサイズを、4つのプレーンで均等に割って確保するものとしたが、下記の計算のように、予め大量の画像データから統計的に求めるなどして決めたプレーンごとの符号化データサイズの比率に基づいてもよい。 In addition, in the overall size of the first and second buffer memories of the present embodiment, the encoded data size per sheet is equally divided by four planes to secure it. Alternatively, it may be based on the coded data size ratio for each plane, which is determined in advance by statistically obtaining from a large amount of image data.

尚、この場合において、プレーン変換部404は、Rプレーン、Bプレーン、G1プレーン、及びG2プレーンを、例えば特許文献1の様に1つの輝度プレーンと、3つの色差プレーンに変換することを想定している。 In this case, it is assumed that the plane conversion unit 404 converts the R plane, B plane, G1 plane, and G2 plane into one luminance plane and three chrominance planes as in Patent Document 1, for example. ing.

下記において輝度プレーンは、色差プレーンと比べて画像への影響が大きいため、色差プレーンよりも大きな比率でバッファを割り当てている。 In the following, since the luminance plane has a greater influence on the image than the chrominance plane, buffers are allocated at a larger ratio than the chrominance plane.

<プレーンのデータサイズの比率>
プレーン0:プレーン1:プレーン2:プレーン3
=2:1:1:1
<プレーンごとのバッファメモリの割り当て>
プレーン0:4800KB×2÷(2+1+1+1)=1920KB
プレーン1:4800KB×1÷(2+1+1+1)=960KB
プレーン2:4800KB×1÷(2+1+1+1)=960KB
プレーン3:4800KB×1÷(2+1+1+1)=960KB
また、本実施形態において第1のバッファメモリには先頭の1枚の画像のみを記録したが、複数枚を記録できる領域を確保し、その符号量の平均あるいは最後の一枚の画像の符号量を第2のバッファメモリのサブバンド間のメモリ領域の割り振りに使用してもよい。
<Ratio of plane data size>
Plane 0: Plane 1: Plane 2: Plane 3
= 2:1:1:1
<Buffer memory allocation for each plane>
Plane 0: 4800 KB x 2 ÷ (2 + 1 + 1 + 1) = 1920 KB
Plane 1: 4800 KB x 1 ÷ (2 + 1 + 1 + 1) = 960 KB
Plane 2: 4800 KB x 1 ÷ (2 + 1 + 1 + 1) = 960 KB
Plane 3: 4800 KB x 1 ÷ (2 + 1 + 1 + 1) = 960 KB
In this embodiment, only the first image is recorded in the first buffer memory. may be used to allocate memory areas between sub-bands of the second buffer memory.

以上説明したように本実施形態によれば、メモリ410に確保される第2のバッファメモリ内に割り当てられる各サブバンドの領域のサイズを、第1のバッファメモリに実際に格納された各サブバンドの符号量の比率に従って決定することで、第2のバッファメモリを無駄なく利用でき、これまでよりも連写が中断されることを抑制できる。 As described above, according to this embodiment, the size of the area of each subband allocated in the second buffer memory secured in the memory 410 is set to the size of each subband actually stored in the first buffer memory. , the second buffer memory can be used without waste, and continuous shooting can be prevented from being interrupted more than before.

なお、上記実施形態では、第1のバッファメモリは、連写モードにおける最初の1枚目の画像のためにメモリ410に確保され、第2のバッファメモリは後続して撮像される2枚目以降用の画像のためにメモリ410に確保される例を示した。しかし、第1のバッファメモリを連写モードにおける先頭から所定数の第1の画像群用に確保し、第2のバッファメモリを第1の画像群に後続して撮像されることになる第2の画像群用に確保するようにしても良い。第1のバッファメモリを複数の画像用に確保することで、実際の各バンドの符号量の比率はその枚数分に応じた平均値の比率と同じ意味を持つことになり、第2のバッファメモリ内に割り当てる領域のサイズをより高い精度で推定することが可能になり、メモリ410の無駄領域をより小さなものとすることができる。 Note that in the above embodiment, the first buffer memory is reserved in the memory 410 for the first image in the continuous shooting mode, and the second buffer memory is reserved for the second and subsequent images that are subsequently captured. An example is shown in which the memory 410 is reserved for an image for . However, the first buffer memory is reserved for the first group of images of a predetermined number from the beginning in the continuous shooting mode, and the second buffer memory is reserved for the second group of images to be captured subsequent to the first group of images. may be reserved for the group of images. By securing the first buffer memory for a plurality of images, the ratio of the actual code amount of each band has the same meaning as the ratio of the average value corresponding to the number of images, and the second buffer memory is used. It is possible to estimate the size of the area to be allocated in the memory 410 with higher accuracy, and the waste area of the memory 410 can be made smaller.

[第2の実施形態]
第2の実施形態について説明する。本第2の実施形態における撮像装置は、撮像パラメタが変化し、絵柄が変化することを想定している。ここで、撮像パラメタとは露出値、F値、ISO値などを示す。
[Second embodiment]
A second embodiment will be described. The imaging apparatus according to the second embodiment assumes that the imaging parameters change and the pattern changes. Here, the imaging parameter indicates an exposure value, an F value, an ISO value, and the like.

F値が連写時に随時変化する場合、被写体の解像の度合いが変化し、結果として時間的に隣り合った画像で絵柄が変わってしまうことが考えられる。F値が連写時に変化するケースとしてはシャッター優先モードで連写する場合などが想定される。 If the F-number changes at any time during continuous shooting, the degree of resolution of the subject changes, and as a result, it is conceivable that the patterns of temporally adjacent images will change. A case in which the F value changes during continuous shooting is assumed to be continuous shooting in the shutter priority mode.

また、露出値が連写時に随時変化する場合、時間的に隣り合った画像で明るさが変わるため、結果として時間的に隣り合った画像で絵柄が変わってしまうことが考えられる。露出値が連写時に変化するケースとしては露出ブラケット撮影モードで連写する場合などが想定される。 Also, if the exposure value changes as needed during continuous shooting, the brightness of temporally adjacent images may change, and as a result, the patterns of temporally adjacent images may change. A case in which the exposure value changes during continuous shooting is assumed to be continuous shooting in the exposure bracket shooting mode.

また、ISO値が連写時に随時変化する場合、時間的に隣り合った画像でノイズ量が変化してしまい、結果として時間的に隣り合った画像で絵柄が変わってしまうことが考えられる。ISO値が連写時に変化するケースとしてはISOブラケット撮影モードで連写する場合などが想定される。 Also, if the ISO value changes at any time during continuous shooting, the amount of noise in temporally adjacent images may change, and as a result, the pattern may change in temporally adjacent images. A case in which the ISO value changes during continuous shooting is assumed to be continuous shooting in the ISO bracket shooting mode.

上記のごとく、露出値、F値、ISO値といった撮像パラメタが連写中に変化すると、時間的に隣り合った画像間の絵柄が変わる蓋然性が高くなり、画像間の相関が失われてしまう。このため、隣り合う画像間のサブバンドごとの符号データのサイズ比率も変化してしまう。 As described above, if the imaging parameters such as the exposure value, F value, and ISO value change during continuous shooting, there is a high probability that the pattern between temporally adjacent images will change, and the correlation between the images will be lost. Therefore, the size ratio of code data for each subband between adjacent images also changes.

したがって、第1の実施形態で説明したような時間的に隣り合った画像で絵柄の相関の高いのを利用し、先頭の1枚の符号化結果に基づいて各サブバンドへの割り当てを効率的に行う、といった前提が正立しにくくなる。つまり、連写時に露出値、F値、ISO値といった撮像パラメタが変化するケースにおいて、第1の実施形態の撮像装置で説明したようにバッファメモリの割り当てを行った場合、図8(A)で示すように逆に連写枚数が減少してしまうことが考えられる。 Therefore, by utilizing the fact that temporally adjacent images have a high degree of pattern correlation as described in the first embodiment, allocation to each subband can be efficiently performed based on the encoding result of the first image. It becomes difficult to establish the premise of doing so. In other words, in the case where the imaging parameters such as the exposure value, the F value, and the ISO value change during continuous shooting, if the buffer memory is allocated as described in the imaging apparatus of the first embodiment, then in FIG. Conversely, as shown, the number of continuous shots may decrease.

図8(A)の例は、先頭の1枚のRAWデータの各サブバンドの符号化データの内、1HLサブバンドに大きなサイズの符号化データが生成されたのに対し、2枚目以降のRAWデータでは1LHサブバンドに大きなサイズの符号化データが生成された例を表す。 In the example of FIG. 8A, among the encoded data of each subband of the first piece of RAW data, large size encoded data is generated in the 1HL subband, whereas the second and subsequent pieces of RAW data RAW data represents an example in which large-sized encoded data is generated in one LH subband.

ここで、図8(A)の例における第2のバッファメモリの割り当てについては、本発明の第1の実施形態の撮像装置の説明で用いたものと同様のものを用いる。 Here, allocation of the second buffer memory in the example of FIG. 8A is the same as that used in the description of the imaging apparatus of the first embodiment of the present invention.

<先頭の1枚に基づいた、第2のバッファメモリの割り当て>
2LLサブバンド:312KB
2HLサブバンド:336KB
2LHサブバンド:312KB
2HHサブバンド:240KB
1HLサブバンド:1344KB
1LHサブバンド:1152KB
1HHサブバンド:1104KB
<Second buffer memory allocation based on first sheet>
2LL subband: 312KB
2HL subband: 336KB
2LH subband: 312KB
2HH subband: 240KB
1HL subband: 1344KB
1LH subband: 1152KB
1HH subband: 1104KB

図8(A)の例では、先頭の1枚の符号化結果に従い、1HLサブバンドに多めに割り当てているが、2枚目以降において1LHサブバンドの符号化データが大きくなってしまったため、4枚目の時点で1LHサブバンドが割り当てられたバッファメモリを超過してしまう。 In the example of FIG. 8(A), according to the encoding result of the first sheet, more than 1 HL sub-band is allocated, but since the encoded data of 1 LH sub-band becomes large in the second and subsequent sheets, 4 At the time of the first sheet, the buffer memory to which 1 LH subband is allocated is exceeded.

ここで、図8(B)で示すように、第1のバッファメモリと同様の割り当てを第2のバッファメモリに行うことで、連写枚数の減少を抑えることが出来る。 Here, as shown in FIG. 8B, by assigning the second buffer memory in the same manner as the first buffer memory, it is possible to suppress the decrease in the number of continuous shots.

図8(B)の例では、第1のバッファメモリと同様の比率で第2のバッファメモリの割り当てを行うことで、先頭の1枚の符号化結果に従い割り当てていた場合では4枚目の記録が出来なくなるのに対し、4枚目の記録が可能となっていることを示す。 In the example of FIG. 8B, by allocating the second buffer memory at the same ratio as that of the first buffer memory, if the allocation is made according to the encoding result of the first one, the recording of the fourth sheet is performed. This indicates that recording on the fourth sheet is possible, whereas recording on the fourth sheet is not possible.

尚、第1のバッファメモリと同様の比率で第2のバッファメモリの割り当てを行う場合の設定については、下記の通りである。 The setting for allocating the second buffer memory at the same ratio as the first buffer memory is as follows.

また、下記の説明で用いる数値は、迫の第1の実施形態の撮像装置の説明で用いたものと同様のものを用いる。
<第2のバッファメモリの割り当てにおける、各サブバンドの比率>
2LL:2HL:2LH:2HH:1HL:1LH:1HH
=1:1:1:1:4:4:4
<第2のバッファメモリの割り当て>
2LLサブバンド:4800KB×1÷(1+1+1+1+4+4+4)=
4800KB×1÷16=300KB
2HLサブバンド:4800KB×1÷16=300KB
2LHサブバンド:4800KB×1÷16=300KB
2HHサブバンド:4800KB×1÷16=300KB
1HLサブバンド:4800KB×4÷16=1200KB
1LHサブバンド:4800KB×4÷16=1200KB
1HHサブバンド:4800KB×4÷16=1200KB
Numerical values used in the following description are the same as those used in the description of the imaging apparatus of the first embodiment.
<Proportion of each subband in second buffer memory allocation>
2LL: 2HL: 2LH: 2HH: 1HL: 1LH: 1HH
= 1:1:1:1:4:4:4
<Allocation of second buffer memory>
2LL subband: 4800 KB x 1 ÷ (1 + 1 + 1 + 1 + 4 + 4 + 4) =
4800KB x 1/16 = 300KB
2HL subband: 4800KB x 1/16 = 300KB
2LH sub-band: 4800KB x 1/16 = 300KB
2HH subband: 4800KB x 1/16 = 300KB
1HL subband: 4800KB x 4/16 = 1200KB
1 LH subband: 4800 KB x 4/16 = 1200 KB
1HH subband: 4800KB x 4/16 = 1200KB

本第2の実施形態である撮像装置の構成について、図9のブロック図を参照しながら説明を行う。 The configuration of the imaging apparatus according to the second embodiment will be described with reference to the block diagram of FIG.

尚、第2の実施形態である撮像装置900の構成において、第1の実施形態の撮像装置400と同様のものについては、同じ参照符号を付し、その説明は省略する。 In addition, in the configuration of the imaging device 900 of the second embodiment, the same reference numerals are given to the same components as those of the imaging device 400 of the first embodiment, and the description thereof will be omitted.

ユーザー設定部901は、ユーザーによって後述する時間的に隣り合った画像の取得の際に監視する撮影パラメタを設定する。本第2の実施形態においては、連写時のモードの設定を通じて、監視する撮影パラメタを設定する。連写時のモードは、前述したシャッター優先モード、露出ブラケット撮影モード、ISOブラケット撮影モードなどがある。 A user setting unit 901 allows the user to set imaging parameters to be monitored when acquiring temporally adjacent images, which will be described later. In the second embodiment, the shooting parameters to be monitored are set through the setting of the continuous shooting mode. Modes for continuous shooting include the aforementioned shutter priority mode, exposure bracket shooting mode, ISO bracket shooting mode, and the like.

ユーザー設定部901でシャッター優先モードを設定する場合、F値が連写時に変化することが想定されるため、監視する撮影パラメタはF値とする。また、ユーザー設定部901で露出ブラケット撮影モードを設定する場合、露出値が連写時に変化することが想定されるため、監視する撮影パラメタは露出値とする。また、ユーザー設定部901でISOブラケット撮影モードを設定する場合、ISO値が連写時に変化することが想定されるため、監視する撮影パラメタをISO値とする。 When the shutter priority mode is set by the user setting unit 901, the F number is assumed to change during continuous shooting, so the shooting parameter to be monitored is the F number. Also, when the user setting unit 901 sets the exposure bracket shooting mode, the exposure value is assumed to change during continuous shooting, so the shooting parameter to be monitored is the exposure value. Also, when the ISO bracket shooting mode is set in the user setting unit 901, the ISO value is set as the shooting parameter to be monitored because it is assumed that the ISO value will change during continuous shooting.

ユーザー設定部901によって設定された連写モードは、CPU401に通知される。ユーザー設定部901は、例えばタッチパネルや、押しボタン、ダイアルなどで実現することが出来る。 The continuous shooting mode set by the user setting unit 901 is notified to the CPU 401 . The user setting unit 901 can be realized by, for example, a touch panel, push buttons, dials, or the like.

撮像部902は、光学部402から送られた光情報を電気信号に変換するCCDイメージセンサ又は、CMOSセンサなどの撮像素子を含み、撮像素子により得られた電気信号をデジタル信号へ変換したRAWデータをプレーン変換部404に送る。 The imaging unit 902 includes an imaging element such as a CCD image sensor or a CMOS sensor that converts optical information sent from the optical unit 402 into an electrical signal, and converts the electrical signal obtained by the imaging element into a digital signal to obtain RAW data. is sent to the plane conversion unit 404 .

また、撮像部902は、ユーザー設定部901からCPU401を経由して通知された撮影パラメタを連写中に監視して、アドレス設定部903に撮影パラメタが変化したか否かの情報を送る。 The imaging unit 902 also monitors the shooting parameters notified from the user setting unit 901 via the CPU 401 during continuous shooting, and sends information as to whether the shooting parameters have changed to the address setting unit 903 .

アドレス設定部903は、エントロピー符号化部407が各サブバンドの符号化データをメモリ410に書き込む際のアドレスを設定する。 The address setting unit 903 sets addresses when the entropy coding unit 407 writes the coded data of each subband to the memory 410 .

なお、本実施形態で、アドレス設定部903は、第1のバッファメモリの設定において、プリセットされた情報、例えば予め大量の画像データから統計的に求めた各サブバンドの符号化データの比率、に基づいてアドレスを設定する。 In this embodiment, the address setting unit 903 uses preset information, such as the ratio of coded data of each subband statistically obtained in advance from a large amount of image data, in the setting of the first buffer memory. set the address based on

また、本実施形態で、アドレス設定部903は、CPU401の制御の下で、後述の第2のバッファメモリの設定において、撮像部902よる連写中の撮影パラメタの変化の有無の通知に基づいて、次のようにアドレスを設定する。 In this embodiment, under the control of the CPU 401, the address setting unit 903 sets the second buffer memory (to be described later) based on the notification of whether or not there is a change in shooting parameters during continuous shooting by the imaging unit 902. , and set the address as follows:

連写中に撮影パラメタの変化が無いことを撮像部902から通知された場合、アドレス設定部903は、エントロピー符号化部407から送られた最初のRAWデータの各サブバンドの符号化データのサイズに基づいて、第2のバッファメモリの格納アドレスを設定する。つまり、第1の実施形態と同様である。 When the imaging unit 902 notifies that there is no change in shooting parameters during continuous shooting, the address setting unit 903 sets the size of the encoded data of each subband of the initial RAW data sent from the entropy encoding unit 407. , the storage address of the second buffer memory is set. That is, it is the same as the first embodiment.

また、連写中に撮影パラメタの変化が有ることを撮像部902から通知された場合において、アドレス設定部903は、第2のバッファメモリに対し、プリセットされた情報に基づいてアドレスを設定する。なお、アドレス設定部903は、CPU401の制御プログラムの機能の内の1つとして組み込んでも良い。 Also, when the imaging unit 902 notifies that there is a change in shooting parameters during continuous shooting, the address setting unit 903 sets an address for the second buffer memory based on preset information. Note that the address setting unit 903 may be incorporated as one of the functions of the control program of the CPU 401 .

続いて、本第2の実施形態である撮像装置900の動作の詳細を図10に示すフローチャートに基づき説明する。尚、本第2の実施形態である撮像装置900の動作において、第1の実施形態の撮像装置と同様のものについては、同じ参照符号を付した上で説明を簡素化する。 Next, the details of the operation of the imaging device 900 according to the second embodiment will be described based on the flowchart shown in FIG. In the operation of the imaging apparatus 900 according to the second embodiment, the same reference numerals are given to the same parts as those of the imaging apparatus according to the first embodiment, and the explanation will be simplified.

まず、S1001にて、CPU401は、ユーザー設定部901を介して入力された連写モードに基づき、連写中に監視する撮影パラメタを決定する。続く、S701乃至S703にて、CPU401は、メモリ410に、第1のバッファメモリ、および第2のバッファメモリを確保し、アドレス設定部903に対して、第1のバッファメモリ内の各サブバンドの領域を予め設定されたサイズに割り当てる。そして、先頭の1枚のRAWデータを符号化して第1のバッファメモリに格納させる。 First, in S<b>1001 , the CPU 401 determines shooting parameters to be monitored during continuous shooting based on the continuous shooting mode input via the user setting unit 901 . Subsequently, in S701 to S703, the CPU 401 secures a first buffer memory and a second buffer memory in the memory 410, and instructs the address setting unit 903 to specify each sub-band in the first buffer memory. Allocate a region with a preset size. Then, the first RAW data is encoded and stored in the first buffer memory.

次に、S1002にて、CPU401は、撮像部902による2枚目(以降)のRAWデータを取得させる。そして、続く、S1003にて、CPU401は、2枚目のRAWデータ取得時の撮影パラメタが、先頭のRAWデータ取得時の撮影パラメタから変化したか否かを判定する。 Next, in S<b>1002 , the CPU 401 acquires the RAW data of the second (or subsequent) image captured by the imaging unit 902 . Then, in subsequent S1003, the CPU 401 determines whether or not the shooting parameters when acquiring the RAW data of the second frame have changed from the shooting parameters when acquiring the first RAW data.

撮影パラメタが変化していると判定した場合、CPU401は処理をS1004に分岐する。そして、このS1004にて、CPU401は、第2のバッファメモリを、第1のバッファメモリと同様の比率に従って各サブバンドの格納領域(サイズ)を割り当て、アドレス設定部903に対して、各サブバンドの符号化データの格納先アドレスを、割り当てた領域の先頭アドレスとなるように設定する。 When determining that the shooting parameters have changed, the CPU 401 branches the process to S1004. In S1004, CPU 401 allocates the storage area (size) of each subband to the second buffer memory according to the same ratio as that of the first buffer memory, and instructs address setting section 903 to store each subband. The storage destination address of the encoded data is set to be the start address of the allocated area.

また、撮影パラメタが変化しない(固定である)と判断した場合、CPU401は、処理をS1003からS704に分岐させる。このS704は第1の実施形態と同じである。つまり、CPU401は、アドレス設定部903を制御し、エントロピー符号化部407から送られた最初のRAWデータの各サブバンドの符号量(符号化データのサイズ)に基づき、第2のバッファメモリ内に、2枚目以降のRAWデータの各サブバンドの符号化データを格納するサイズの領域を割り当てる。そして、CPU401は、アドレス設定部903に対して、各サブバンドの符号化データの格納先アドレスを、割り当てた領域の先頭アドレスとなるように設定する。 If it is determined that the shooting parameters do not change (fixed), the CPU 401 branches the process from S1003 to S704. This S704 is the same as in the first embodiment. That is, the CPU 401 controls the address setting unit 903, and based on the code amount (coded data size) of each subband of the first RAW data sent from the entropy coding unit 407, , an area having a size for storing the encoded data of each subband of the second and subsequent RAW data. Then, CPU 401 sets the storage destination address of the encoded data of each sub-band to address setting section 903 so as to be the head address of the allocated area.

続く、S705乃至711にて、CPU401は、連写期間中のRAWデータの取得に対し、複数のサブバンドごとの符号化データを生成とともに、第1、第2のバッファメモリにある符号化データの記録媒体412への移動(書き込み)を行う。 Subsequently, in steps S705 to S711, the CPU 401 generates coded data for each of a plurality of subbands and stores coded data in the first and second buffer memories for acquisition of RAW data during continuous shooting. Move (write) to the recording medium 412 .

本第2の実施形態である撮像装置を用いることで、絵柄が変化しやすいモードで連写する場合において、先頭の1枚に基づいてバッファメモリを設定することによる連写枚数の減少を抑制することが出来る。また、本実施形態において、連写中の撮影パラメタの変化を見て、第2のバッファメモリの設定を変えているが、連写時のモードの設定そのものに基づいて変えてもよい。この場合、連写モードがシャッター優先モード、露出ブラケット撮影モード、ISOブラケット撮影モードの何れかで設定された場合、第2のバッファメモリは統計値で設定され、そうでない場合は先頭のRAWデータの符号化結果に基づいて設定される。 By using the imaging apparatus according to the second embodiment, in the case of continuous shooting in a mode in which the pattern is likely to change, the decrease in the number of continuous shots due to setting the buffer memory based on the first one is suppressed. can do Further, in the present embodiment, the setting of the second buffer memory is changed according to changes in shooting parameters during continuous shooting, but it may be changed based on the setting of the mode during continuous shooting. In this case, when the continuous shooting mode is set in any of the shutter priority mode, exposure bracket shooting mode, and ISO bracket shooting mode, the second buffer memory is set with statistical values, otherwise the first RAW data is stored. It is set based on the encoding result.

(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or device via a network or a 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 processing to It can also be implemented by a circuit (for example, ASIC) that implements one or more functions.

401…CPU、402…光学部、403…撮像部、404…プレーン変換部、405…離散ウェーブレット変換部、406…量子化部、407…エントロピー符号化部、408、903…アドレス設定部、409…メモリI/F、410…メモリ、411…記録処理部、413…記録媒体、901…ユーザ設定部 401 CPU 402 optical unit 403 imaging unit 404 plane transform unit 405 discrete wavelet transform unit 406 quantization unit 407 entropy coding unit 408, 903 address setting unit 409 Memory I/F 410 Memory 411 Recording processing unit 413 Recording medium 901 User setting unit

Claims (10)

撮像手段より得た画像データを記録媒体に記録する撮像装置であって、
撮像して得た画像データを、周波数変換して複数のサブバンドを得て、各サブバンドを量子化、エントロピー符号化することでサブバンド毎の符号化データを生成する符号化手段と、
該符号化手段で得た符号化データを前記記録媒体に格納するためのバッファとして機能するメモリと、
前記符号化手段で得られた符号化データを、前記メモリを介在して、前記記録媒体に記録する制御手段とを有し、
前記制御手段は、連写モードにおいては、最初から所定数の第1の画像群の符号化データを一時的に格納する第1のバッファメモリと、前記第1の画像群に後続して撮像される第2の画像群の符号化データを一時的に格納するための第2のバッファメモリとを前記メモリに確保し、
前記第1のバッファメモリには、予め設定された比率に応じたサイズの領域をサブバンド毎に割り当て、当該領域それぞれに前記第1の画像群から得た各サブバンドの符号化データを一時的に格納し、
前記第2のバッファメモリには、前記第1の画像群の各サブバンドの符号量の比率に応じたサイズの領域をサブバンド毎に割り当て、当該領域それぞれに前記第2の画像群から得た各サブバンドの符号化データを一時的に格納する
ことを特徴とする撮像装置。
An imaging device for recording image data obtained from imaging means on a recording medium,
an encoding means for generating encoded data for each subband by frequency-converting image data obtained by imaging to obtain a plurality of subbands, and quantizing and entropy-encoding each subband;
a memory functioning as a buffer for storing the encoded data obtained by the encoding means in the recording medium;
a control means for recording the encoded data obtained by the encoding means on the recording medium through the memory;
In the continuous shooting mode, the control means comprises: a first buffer memory for temporarily storing a predetermined number of coded data of the first image group from the beginning; securing in the memory a second buffer memory for temporarily storing encoded data of a second image group;
In the first buffer memory, an area having a size corresponding to a preset ratio is assigned to each subband, and encoded data of each subband obtained from the first image group is temporarily stored in each of the areas. store in
In the second buffer memory, an area having a size corresponding to the code amount ratio of each subband of the first image group is allocated to each subband, and each of the areas is obtained from the second image group. An imaging device characterized by temporarily storing coded data of each subband.
前記第1の画像群は連写モードにおける最初の画像であり、第2の画像群は連写モードにおける2枚目以降の画像であることを特徴する請求項1に記載の撮像装置。 2. The imaging apparatus according to claim 1, wherein the first image group is the first image in the continuous shooting mode, and the second image group is the second and subsequent images in the continuous shooting mode. 前記撮像手段より得たベイヤ配列のRAWデータを、それぞれが単一成分で構成される4枚のプレーンに変換する変換手段を備え、
前記符号化手段は、前記変換手段で得た各プレーンを符号化する
ことを特徴とする請求項1又は2に記載の撮像装置。
conversion means for converting the Bayer array RAW data obtained from the imaging means into four planes, each of which is composed of a single component;
3. The imaging apparatus according to claim 1, wherein the encoding means encodes each plane obtained by the transforming means.
前記符号化手段における前記周波数変換は離散ウェーブレット変換であって、
前記第1のバッファメモリにおける各サブバンドの領域のサイズは、サブバンドの面積に基づいて決定される
ことを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置。
The frequency transform in the encoding means is a discrete wavelet transform,
4. The imaging apparatus according to any one of claims 1 to 3, wherein the size of each subband region in the first buffer memory is determined based on the area of the subband.
前記制御手段は、
撮影パラメタが固定の第1の連写モード、撮像される度に撮影パラメタが変化する第2の連写モードのいずれが設定されたかを判定する判定手段を有し、
前記第1の連写モードが設定されたと判定した場合には、前記第2のバッファメモリには、前記第1の画像群の各サブバンドの符号量の比率に応じたサイズの領域をサブバンド毎に割り当て、当該領域それぞれに前記第2の画像群から得た各サブバンドの符号化データを一時的に格納し、
前記第2の連写モードが設定されたと判定した場合には、前記第2のバッファメモリには、前記第1のバッファメモリと同じ比率に従ったサイズの領域をサブバンド毎に割り当て、当該領域それぞれに前記第2の画像群から得た各サブバンドの符号化データを一時的に格納する
ことを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置。
The control means is
determining means for determining which of a first continuous shooting mode in which shooting parameters are fixed and a second continuous shooting mode in which shooting parameters change each time an image is taken is set;
When it is determined that the first continuous shooting mode has been set, the second buffer memory stores an area having a size corresponding to the code amount ratio of each subband of the first image group. temporarily storing the encoded data of each subband obtained from the second image group in each of the regions,
When it is determined that the second continuous shooting mode is set, an area having a size according to the same ratio as that of the first buffer memory is allocated to each subband in the second buffer memory, and 4. The imaging apparatus according to any one of claims 1 to 3, wherein the encoded data of each subband obtained from the second image group is temporarily stored in each.
前記第2の連写モードにおける撮像するたびに変化する撮影パラメタはF値である
ことを特徴とする請求項5に記載の撮像装置。
6. The imaging apparatus according to claim 5, wherein the imaging parameter that changes each time imaging is performed in the second continuous shooting mode is an F-number.
前記第2の連写モードにおける撮像するたびに変化する撮影パラメタは露出値である
ことを特徴とする請求項5に記載の撮像装置。
6. The imaging apparatus according to claim 5, wherein the imaging parameter that changes each time imaging is performed in the second continuous shooting mode is an exposure value.
前記第2の連写モードにおける撮像するたびに変化する撮影パラメタはISO値である
ことを特徴とする請求項5に記載の撮像装置。
6. The imaging apparatus according to claim 5, wherein the imaging parameter that changes each time imaging is performed in the second continuous shooting mode is an ISO value.
撮像手段より得た画像データを記録媒体に記録する撮像装置の制御方法であって、
撮像して得た画像データを、周波数変換して複数のサブバンドを得て、各サブバンドを量子化、エントロピー符号化することでサブバンド毎の符号化データを生成する符号化工程と、
該符号化工程で得た符号化データを前記記録媒体に格納するためのバッファとして機能するメモリと、
前記符号化工程で得られた符号化データを、前記メモリを介在して、前記記録媒体に記録する制御工程とを有し、
前記制御工程では、連写モードにおいては、最初から所定数の第1の画像群の符号化データを一時的に格納する第1のバッファメモリと、前記第1の画像群に後続して撮像される第2の画像群の符号化データを一時的に格納するための第2のバッファメモリとを前記メモリに確保し、
前記第1のバッファメモリには、予め設定された比率に応じたサイズの領域をサブバンド毎に割り当て、当該領域それぞれに前記第1の画像群から得た各サブバンドの符号化データを一時的に格納し、
前記第2のバッファメモリには、前記第1の画像群の各サブバンドの符号量の比率に応じたサイズの領域をサブバンド毎に割り当て、当該領域それぞれに前記第2の画像群から得た各サブバンドの符号化データを一時的に格納する
ことを特徴とする撮像装置の制御方法。
A control method for an imaging device for recording image data obtained from imaging means on a recording medium, comprising:
an encoding step of generating encoded data for each subband by frequency-converting image data obtained by imaging to obtain a plurality of subbands, and quantizing and entropy-encoding each subband;
a memory functioning as a buffer for storing encoded data obtained in the encoding step in the recording medium;
a control step of recording the encoded data obtained in the encoding step on the recording medium via the memory;
In the control step, in the continuous shooting mode, a first buffer memory for temporarily storing a predetermined number of coded data of the first image group from the beginning; securing in the memory a second buffer memory for temporarily storing encoded data of a second image group;
In the first buffer memory, an area having a size corresponding to a preset ratio is assigned to each subband, and encoded data of each subband obtained from the first image group is temporarily stored in each of the areas. store in
In the second buffer memory, an area having a size corresponding to the code amount ratio of each subband of the first image group is allocated to each subband, and each of the areas is obtained from the second image group. A control method for an imaging device characterized by temporarily storing coded data of each subband.
コンピュータが読み込み実行することで、前記コンピュータに、請求項9に記載の方法の各工程を実行させるためのプログラム。 A program that is read and executed by a computer to cause the computer to perform each step of the method according to claim 9.
JP2018218487A 2018-11-21 2018-11-21 IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF Active JP7204441B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018218487A JP7204441B2 (en) 2018-11-21 2018-11-21 IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018218487A JP7204441B2 (en) 2018-11-21 2018-11-21 IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF

Publications (2)

Publication Number Publication Date
JP2020088537A JP2020088537A (en) 2020-06-04
JP7204441B2 true JP7204441B2 (en) 2023-01-16

Family

ID=70909068

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018218487A Active JP7204441B2 (en) 2018-11-21 2018-11-21 IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF

Country Status (1)

Country Link
JP (1) JP7204441B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015094852A (en) 2013-11-12 2015-05-18 カシオ計算機株式会社 Imaging apparatus, imaging method, and program
US20170118476A1 (en) 2015-10-27 2017-04-27 Canon Kabushiki Kaisha Image encoding apparatus, control method thereof, and storage medium
JP2018011120A (en) 2016-07-11 2018-01-18 キヤノン株式会社 Imaging apparatus, control method for imaging apparatus, and program
JP2018050263A (en) 2016-09-23 2018-03-29 キヤノン株式会社 Encoder, control method of encoder, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015094852A (en) 2013-11-12 2015-05-18 カシオ計算機株式会社 Imaging apparatus, imaging method, and program
US20170118476A1 (en) 2015-10-27 2017-04-27 Canon Kabushiki Kaisha Image encoding apparatus, control method thereof, and storage medium
JP2017085319A (en) 2015-10-27 2017-05-18 キヤノン株式会社 Image processing apparatus and control method of the same, computer program, and storage medium
JP2018011120A (en) 2016-07-11 2018-01-18 キヤノン株式会社 Imaging apparatus, control method for imaging apparatus, and program
JP2018050263A (en) 2016-09-23 2018-03-29 キヤノン株式会社 Encoder, control method of encoder, and program

Also Published As

Publication number Publication date
JP2020088537A (en) 2020-06-04

Similar Documents

Publication Publication Date Title
JP3085465B2 (en) Image data encoding apparatus and encoding method
US8615140B2 (en) Compression of image data in accordance with depth information of pixels
JP6663201B2 (en) Image encoding apparatus and control method thereof, and computer program and storage medium
JP2004112760A (en) Image recording apparatus and image data selection method
JP6986868B2 (en) Image coding device, image decoding device, image coding method, image decoding method, program
JP2006014121A (en) Image encoding method, image encoding apparatus, and imaging apparatus
JP2002176359A (en) Information processing apparatus and control method therefor, information processing system, computer readable memory
JP3789836B2 (en) Image coding apparatus and method
JP6857973B2 (en) Image coding device and its control method
JP7129326B2 (en) IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF
JPH02100487A (en) Image data compressing device
JP6849359B2 (en) Coding device, coding device control method, and program
JP6806466B2 (en) Image coding device and its control method
JP2017216630A (en) Image coding apparatus and control method thereof
US11140392B2 (en) Image encoding apparatus, image decoding apparatus, control methods thereof, and non- transitory computer-readable storage medium
JP7204441B2 (en) IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF
TW548979B (en) Method and apparatus for quantitizing an image, and an image encoding device that can use such method and apparatus
JP6775339B2 (en) Image coding device and its control method
JP4375662B2 (en) Image processing apparatus, image processing method, program, information recording medium, and imaging apparatus
JP6465570B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JPH07312751A (en) Method and device for compressing and coding image data
JP7465073B2 (en) Image encoding device, control method and program thereof
JP7321237B2 (en) Image encoding device, image encoding method, program
JP2018011120A (en) Imaging apparatus, control method for imaging apparatus, and program
US20070092148A1 (en) Method and apparatus for digital image rudundancy removal by selective quantization

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20210103

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210113

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211025

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221021

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: 20221202

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221228

R151 Written notification of patent or utility model registration

Ref document number: 7204441

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151