JP4608186B2 - Imaging device - Google Patents

Imaging device Download PDF

Info

Publication number
JP4608186B2
JP4608186B2 JP2003002107A JP2003002107A JP4608186B2 JP 4608186 B2 JP4608186 B2 JP 4608186B2 JP 2003002107 A JP2003002107 A JP 2003002107A JP 2003002107 A JP2003002107 A JP 2003002107A JP 4608186 B2 JP4608186 B2 JP 4608186B2
Authority
JP
Japan
Prior art keywords
data
compression
memory
sdram
read
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.)
Expired - Fee Related
Application number
JP2003002107A
Other languages
Japanese (ja)
Other versions
JP2004215156A (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2003002107A priority Critical patent/JP4608186B2/en
Publication of JP2004215156A publication Critical patent/JP2004215156A/en
Application granted granted Critical
Publication of JP4608186B2 publication Critical patent/JP4608186B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、デジタルスチルカメラ等の撮像装置に関する。
【0002】
【従来の技術】
デジタルスチルカメラにおいては、ICカード等の記録媒体に画像データを記録するために、画像データの圧縮処理が行われる。一般に用いられる圧縮方式は、JPEG(Joint Photographic Coding Experts Group)圧縮方式であり、高い圧縮率が実現できる。しかし、JPEG圧縮方式においては、原画像の内容によって圧縮後の符号量が変化してしまう。デジタルスチルカメラにおいては、被写体の内容に関係なく、一定枚数の画像を撮影および記録する必要があるため、圧縮後の符号量を一定にしなければならない。そこで、画像データを実際に圧縮する(本圧縮)前にあらかじめ予備圧縮を行い、圧縮後の符号量を所望の値にする最適な圧縮パラメータを算出してから、その圧縮パラメータを用いて本圧縮を行うというシステムが採用されている。さらに、従来の撮像装置には、画像データの記録に必要な時間を短縮するために、最初に撮影された画像についてのみ予備圧縮を行い、その際に算出された圧縮パラメータを用いて、それ以降撮影された全ての画像を圧縮するものがある(例えば、特許文献1参照。)。
【0003】
図5は、そのような撮像装置の動作を示すタイミング図である。図5の(1)は、撮像装置におけるシステム制御のタイミングを示し、図5の(2)は、撮像装置のメモリ(例えば、SDRAM)におけるデータの書き込みおよび読み出しタイミングと、SDRAMの書き込みアドレスおよび読み出しアドレスの変化を示す。図5の(1)において、「CCD」は、露光タイミング、および、CCDによるフィールド信号の出力タイミングを示し、「CCDW」、「YCP」および「JPG」は、それぞれ、CCDデータ(後述)のメモリへの書き込みタイミング、YCデータ(後述)の生成タイミングおよび圧縮処理タイミングを示す。図5の(2)において、実線の矢印は、データの書き込み時におけるSDRAMのアドレス変化を示し、破線の矢印は、データの読み出し時におけるSDRAMのアドレス変化を示す。一般に、デジタルスチルカメラにおいて、撮像素子(CCD)の出力信号は、A/D変換されて(以下、変換されたデータを「CCDデータ」という。)、SDRAMのCCD領域に書き込まれる。そして、そのCCDデータはSDRAMから読み出されて、それを用いて輝度信号(C)と色差信号(Y)とから成るYCデータが生成される。生成されたYCデータは、SDRAMのYC領域に書き込まれる。さらに、そのYCデータはSDRAMから読み出されて、圧縮処理が行われる。圧縮して得られる符号データは、SDRAMの符号領域に書き込まれる。連写の場合は、この一連の動作が繰り返される。
【0004】
図5において、レリーズボタンが押されると(連写開始)、第1の露光が開始される。CCDは、最初の撮像画像について2つのフィールド信号を順に(AフィールドおよびBフィールドの順で)出力する。それらの出力信号は、デジタル信号に変換されて、順に、SDRAMのCCD領域に(CCD領域の先頭アドレスから)書き込まれる(a)。さらに、BフィールドについてのCCDデータの書き込みが始まると同時に、CCD領域からCCDデータの読み出しが始まる(b1)。そして、読み出し(b1)と同時に、そのCCDデータを用いてYCデータが生成され、生成されたYCデータがSDRAMのYC領域に(YC領域の先頭アドレスから)書き込まれる(b2)。そのYCデータは、書き込み(b2)と同時にYC領域から読み出され、予備圧縮が行われる(c)。そして、予備圧縮(c)の結果に基づいて圧縮パラメータの算出が行われる。
【0005】
この時点で、第2の露光は既に終了し、第2のCCDデータのSDRAMへの書き込み(d)が始まっている。その後、同様に、第2のCCDデータを用いて第2のYCデータが生成され、それがSDRAMのYC領域に書き込まれる(e2)。第2のYCデータが書き込まれると同時に、YC領域から第2のYCデータが読み出され(f1)、そのYCデータの本圧縮(f)が行われる。本圧縮(f)は、予備圧縮(c)の結果に基づいて算出された圧縮パラメータを用いて行われる。本圧縮(f)によって得られた符号データ(第1の符号データ)は、SDRAMの符号領域に(符号領域の先頭アドレスから)書き込まれる(f2)。それ以降の露光によって得られた画像についても、予備圧縮(c)の結果算出された圧縮パラメータを用いて、同様に本圧縮が行われる。その後、SDRAMの符号領域に画像3枚分の符号データが書き込まれた時点で、SDRAMの符号領域の容量がなくなり、連写が終了する。
【0006】
【特許文献1】
特開平5−328183号公報(第3頁、第3図)
【0007】
【発明が解決しようとする課題】
しかし、上述の処理を行うと、レリーズボタンが押されてから、本圧縮される画像を露光するまでに時間がかかり、レリーズボタンを押した後にタイムラグがあるという課題があった。また、最初の撮像画像に適した圧縮パラメータを、それ以降に撮像された全ての画像の圧縮に用いているので、変化のある被写体を連写する場合には圧縮時に誤差が生じ、圧縮後の符号量にばらつきが生じるという課題があった。また、メモリにおいて符号データを書き込む領域が制限されているために、連写枚数が限られるという課題があった。
【0008】
本発明の目的は、変化のある被写体を連写する場合であっても圧縮後の符号量を一定に保つことができる撮像装置を提供することである。
【0009】
【課題を解決するための手段】
本発明にかかる撮像装置は、連続的に撮像される画像をリアルタイムで圧縮する撮像装置である。その撮像装置は、連続して撮像を行い、その撮像された画像を順次デジタルデータに変換して撮像データとして出力する撮像データ出力部と、前記の撮像データを記憶するメモリと、前記の撮像データ出力部から出力される撮像データを順次メモリに書き込むメモリ書き込み手段と、前記のメモリから前記の撮像データを順次読み出して、その撮像データを用いて、輝度信号と色差信号とから成るYCデータを生成し、そのYCデータを前記のメモリに書き込むYC処理手段と、前記のメモリから前記のYCデータを順次読み出して、そのYCデータを圧縮するとともに、圧縮して得られた符号データを前記のメモリに書き込み、かつ、その圧縮結果に基づいて圧縮パラメータを算出する圧縮手段とを備える。前記の圧縮手段は、最初に撮像された画像に対応する第1のYCデータを読み出した場合には、その第1のYCデータを所定の圧縮パラメータを用いて圧縮し、その圧縮結果に基づいて第1の圧縮パラメータを算出し、次に、前記のメモリから再度前記の第1のYCデータを読み出して、その読み出された第1のYCデータを前記の第1の圧縮パラメータを用いて圧縮するとともに、圧縮して得られた符号データを前記のメモリに書き込み、さらに、その圧縮結果に基づいて新たな圧縮パラメータを算出し、2番目以降に撮像された画像に対応するYCデータを読み出した場合には、そのYCデータを、直前の画像の圧縮の結果に基づいて算出した圧縮パラメータを用いて圧縮するとともに、圧縮して得られた符号データを前記のメモリに書き込み、さらに、その圧縮結果に基づいて新たな圧縮パラメータを算出し、それにより、最初に撮像された画像に対応する第1のYCデータを読み出した場合には、最終の圧縮データの生成を目的としない圧縮である予備圧縮を行った後、最終の圧縮データの生成を目的とする圧縮である本圧縮を行う一方、2番目以降に撮像された画像に対応するYCデータを読み出した場合には、予備圧縮をしないで本圧縮を行う。
【0014】
【発明の実施の形態】
以下に、図面を参照して、本発明の実施の形態について説明する。
(実施の形態1)
図1は、本実施の形態による撮像装置の構成を示すブロック図である。図1において、撮像装置2は、光学レンズ4、撮像素子6、アナログ回路8、A/D変換器10、デジタル信号処理装置12、メモリ14、タイミングパルスジェネレータ(TG)16およびマイクロコンピュータ(以下、「マイコン」という。)18を備える。撮像装置(デジタルスチルカメラ)2において、撮像素子6はCCD(電荷結合素子)であり、メモリ14はSDRAM(SincronousDynamic Random Access Memory)である。デジタル信号処理装置12は、SDRAMインタフェース20、CCD書き込みメモリコントローラ(以下、「メモコン」という。)22、YC処理メモコン24、YC処理回路26、圧縮処理メモコン28および圧縮回路30を備える。さらに、デジタル信号処理装置12は、外部記録媒体(ICカード)34に画像データを記録するコントローラ(カードコントローラ)32を備える。マイコン18は、ユーザによる外部入力信号(S1)に基づき、TG16、各種メモリコントローラ(22,24,28)、YC処理回路26、圧縮回路30およびカードコントローラ32を制御する。
【0015】
撮像装置2において、連写開始を指示する外部入力(S1)があると、マイコン18は、TG1に対し連写モード開始の指示を与える。TG1は、その指示により、CCD6を連写モードで駆動する。光学レンズ4により結像した被写体は、CCD6によって電気信号に変換され、撮像信号としてアナログ回路8に出力される。アナログ回路8は、撮像信号に所定の処理を施して、それをA/D変換器10に出力する。A/D変換器10は、アナログ信号をデジタル信号に変換し、それを、CCDデータとしてデジタル信号処理装置12に出力する。マイコン18は、デジタル信号処理装置12におけるCCD書き込みメモコン22に、A/D変換器10から出力されたCCDデータを、SDRAM14に書き込ませる。マイコン18は、SDRAM14にCCDデータが書き込まれると、YC処理メモコン24にそのCCDデータを読み出させ、それをYC処理回路26に転送させる。マイコン18は、YC処理回路26に、転送されたCCDデータを用いて、輝度信号(Y)と色差信号(C)とから成るYCデータを生成させる。マイコン18は、YC処理メモコン24に、生成されたYCデータをYC処理回路26から読み出させ、それをSDRAM14に書き込ませる。さらに、マイコン18は、SDRAM14にYCデータが書き込まれると、圧縮処理メモコン28に、そのYCデータを読み出させ、圧縮回路30に転送させる。マイコン18は、圧縮回路30に、そのYCデータにJPEG方式の圧縮処理を施させる。マイコン18は、圧縮処理メモコン28に、圧縮処理して得られる符号データを、圧縮回路30から読み出させ、それをSDRAM14に書き込ませる。SDRAM14と各種メモコン(22,24,28)との間のデータのやり取り(SDRAMへのデータの書き込み、および、SDRAMからのデータの読み出し)は、全てSDRAMインタフェース20を介して行われる。連写時には、CCDが撮像信号を出力する度に、上述の一連の動作が繰り返される。
【0016】
図2は、本実施の形態による撮像装置の動作を示すタイミング図である。図2の(1)は、マイコン18によるシステム制御のタイミングを示し、図2の(2)は、撮像装置のメモリ(例えば、SDRAM)におけるデータの書き込みおよび読み出しタイミングと、SDRAMの書き込みアドレスおよび読み出しアドレスの変化を示す。図2の(1)において、「CCD」は、露光タイミング、および、CCDによるフィールド信号の出力タイミングを示し、「CCDW」、「YCP」および「JPG」は、それぞれ、CCDデータのメモリへの書き込みタイミング、YCデータの生成タイミングおよび圧縮処理タイミングを示す。図2の(2)において、実線の矢印は、データの書き込み時におけるSDRAMのアドレス変化を示し、破線の矢印は、データの読み出し時におけるSDRAMのアドレス変化を示す。図2において、レリーズボタンが押されると、第1の露光が開始され、CCD4は、その最初の撮像画像について、2つのフィールド信号を順に(AフィールドおよびBフィールドの順で)出力する。それらの信号は、A/D変換器10によって、デジタル信号(CCDデータ)に変換され、デジタル信号処理装置12に出力される。マイコン18は、デジタル信号処理装置12のCCD書き込みメモコン2に、AフィールドおよびBフィールドについてのCCDデータを、順に、SDRAM14のCCD領域に(CCD領域の先頭アドレスから)書き込ませる(a)。さらに、マイコン18は、BフィールドのCCDデータの書き込みが始まると同時に、YC処理メモコン24に、CCD領域からCCDデータを読み出させる(b1)。マイコン18は、YC処理メモコン24にCCDデータを読み出させる(b1)と同時に、それをYC処理回路26に転送させる。マイコン18は、YC処理回路26に、CCDデータが転送されると同時にYCデータを生成させる。マイコン18は、YCデータが生成されると同時に、YC処理メモコン24に、YC処理回路26からそのYCデータを読み出させ、同時に、それをSDRAM14のYC領域に(YC領域の先頭アドレスから)書き込ませる(b2)。その後、マイコン18は、圧縮処理メモコン28に、SDRAM14からYCデータを読み出させ(c)、同時に、それを圧縮回路30に転送させる。そして、マイコン18は、圧縮回路30に、YCデータが転送されると同時に予備圧縮を行わせ、転送されたYCデータを用いた圧縮パラメータの算出を行わせる。具体的に、圧縮回路30は、転送されたYCデータを所定の圧縮パラメータで圧縮し、その圧縮結果から、符号量を所望の値にするのに最適な第1の圧縮パラメータを算出する(符号量見積もり)。さらに、マイコン18は、予備圧縮(c)が終了すると同時に、圧縮処理メモコン28に、SDRAM14から再度同じYCデータを読み出させ(d1)、同時に、それを圧縮回路30に転送させる。マイコン18は、圧縮回路30に、YCデータが転送されると同時に、予備圧縮(c)で得られた第1の圧縮パラメータを用いて、そのYCデータを圧縮させる(第1の本圧縮)。その後、マイコン18は、圧縮回路30に、その圧縮結果から、符号量を所望の値にするのに最適な第2の圧縮パラメータを算出させる。マイコン18は、圧縮処理メモコン28に、第1の本圧縮によって得られた符号データ(第1の符号データ)を、圧縮と同時に圧縮回路30から読み出させ、その読み出しと同時に、第1の符号データをSDRAMインタフェース20を介して、SDRAM14の符号領域に(符号領域の先頭アドレスから)書き込ませる(d2)。
【0017】
この時点で、第2の露光は既に終了し、2番目に撮像された画像に対応する第2のCCDデータが、CCD書き込みメモコン22によって、SDRAM14のCCD領域に(CCD領域の先頭アドレスから)書き込まれている(e)。マイコン18は、第2のCCDデータが書き込まれている途中で、YC処理メモコン24に、SDRAM14から第2のCCDデータを読み出させ(f1)、同時に、それをYC処理回路26に転送させる。第2のYCデータが生成された後、マイコン18は、YC処理メモコン24に、その第2のYCデータを読み出させ、それをSDRAM14のYC領域に(YC領域の先頭アドレスから)書き込ませる(f2)(この際、最初の画像データについては本圧縮(d)が行われている)。その後、マイコン18は、第1の本圧縮(d)の場合と同様に、圧縮処理メモコン28に、SDRAM12のYC領域から第2のYCデータを読み出させ(g1)、圧縮回路30に、そのYCデータの本圧縮(g:第2の本圧縮)を行わせる。この第2の本圧縮(g)に用いられる圧縮パラメータは、第1の本圧縮(d)の結果に基づいて算出された第2の圧縮パラメータである。また、マイコン18は、圧縮回路30に、その圧縮結果から、符号量を所望の値にするのに最適な第3の圧縮パラメータを算出させる。マイコン18は、圧縮処理メモコン28に、第2の本圧縮後の符号データ(第2の符号データ)を、SDRAM14の符号領域に(符号領域において第1の符号データが書き込まれた次のアドレスから)書き込ませる(g2)。
【0018】
この時点で、第3の露光は既に終了し、第3のCCDデータのSDRAM14への書き込み(h)が始まっている。マイコン18は、第3のCCDデータがSDRAM14のCCD領域に書き込まれている最中に、YC処理メモコン24に、CCD領域から第3のCCDデータを読み出させ(i1)、それをYC処理回路26に転送させる。第3のYCデータが生成された後、マイコン18は、YC処理メモコン2に、その第3のYCデータを、SDRAM14のYC領域に書き込ませる(i2)。同時に、圧縮処理メモコン28に、SDRAM12のYC領域から第3のYCデータを読み出させ(j1)、圧縮回路30に、第3の本圧縮を行わせる。この本圧縮(j)に用いられる圧縮パラメータは、第2の本圧縮(g)の結果に基づいて算出された第3の圧縮パラメータである。マイコン18は、圧縮処理メモコン28に、得られた符号データ(第3の符号データ)を、SDRAM14の符号領域に(符号領域において第2の符号データが書き込まれた次のアドレスから)書き込ませる(j2)。
【0019】
マイコン18は、圧縮処理メモコン28に第3の符号データを書き込ませた時点(j2)で、SDRAM14の符号領域における空き容量がなくなるため、連写を終了させる。
【0020】
本実施の形態による撮像装置において、以上に説明したように、圧縮回路は、圧縮処理を行う度に、その圧縮結果に基づいて、圧縮パラメータを算出する。その圧縮パラメータは、圧縮を行った画像について、その画像の圧縮後の符号量を所望の値にすることができる圧縮パラメータである。本実施の形態による撮像画像は、最初に撮像された画像については、そのYCデータを、一旦、所定の圧縮パラメータを用いて圧縮する。そして、その圧縮結果に基づいて圧縮パラメータを算出し、その算出した圧縮パラメータを用いて、再度そのYCデータを圧縮する。2番目以降に撮像された画像については、その画像のYCデータを、直前の画像の圧縮結果に基づいて算出した圧縮パラメータを用いて圧縮する。つまり、2番目以降に撮像された画像については、直前に撮像された画像を圧縮した結果に基づき算出された圧縮パラメータを用いて、圧縮を行う。
【0021】
本実施の形態による撮像装置によれば、レリーズボタンを押した直後に露光された画像を予備圧縮かつ本圧縮しているので、レリーズボタンが押されてから本圧縮される画像を露光するまでにタイムラグが存在するという従来の課題を解決することができる。
【0022】
また、本実施の形態による撮像装置によれば、第2および第3の露光によって得られた画像を本圧縮する際に、それぞれ、直前の露光によって得られた画像に適した圧縮パラメータを用いるので、動きのある被写体を連写する場合であっても、圧縮後の符号量のばらつきを抑えることができる。
【0023】
なお、本実施の形態による撮像装置は、画像3枚分の符号データを取得した時点で連写を終了したが、メモリの容量に応じて、連写枚数を増減できる。
【0024】
(実施の形態2)
以下に、実施の形態2による撮像装置について説明する。本実施の形態による撮像装置の構成は、実施の形態1による撮像装置の構成と同一である。よって、図1を参照しながら、本実施の形態による撮像装置の連写時の動作について説明する。実施の形態1においては、メモリにおける符号領域の容量が限られていてるため、メモリに画像3枚分の符号データしか書き込みできなかったが、本実施の形態による撮像装置によれば、より多くの画像分の符号データをメモリに書き込むことができる。結果として、撮像装置の連写枚数を多くすることができる。
【0025】
図3は、本実施の形態による撮像装置の動作を示すタイミング図である。図3の(1)は、マイコン18によるシステム制御のタイミングを示し、図3の(2)は、SDRAM14におけるデータの書き込みおよび読み出しタイミングと、SDRAM14の書き込みアドレスおよび読み出しアドレスの変化を示す。図3の(2)において、実線の矢印は、データの書き込み時におけるSDRAMのアドレス変化を示し、破線の矢印は、データの読み出し時におけるSDRAMのアドレス変化を示す。ここで、第2の露光によって得られた画像の本圧縮(g:第2の本圧縮)までは、実施の形態1による撮像装置の動作と同一であるので、説明を省略する。
【0026】
第2の本圧縮(g)が終了した時点で、第3の露光は既に終了し、第3のCCDデータのSDRAM14への書き込みが始まっている(h)。ここで、マイコン18は、CCD書き込みメモコン22に、SDRAM14の任意の領域にCCDデータを書き込ませることができる。マイコン18は、CCD書き込みメモコン22に、第3のCCDデータを、CCD領域ではなく、第2の本圧縮(g)時に第2のYCデータが読み出された(g1)直後のYC領域に書き込ませる(h)。図3を参照すると、SDRAM14のYC領域においてアドレス変化を示す矢印が重ならないため、データが上書きされていないことがわかる。
【0027】
第3のYCデータの生成および圧縮自体は、実施の形態1で説明された動作と同一である。ここで、マイコン18は、YC処理メモコン24に、生成された第3のYCデータを、SDRAM14のYC領域において第3のCCDデータがすでに読み出された、かつ、第4のCCDデータがいまだ書き込まれていない空き領域に書き込ませる(i2)。なお、本実施の形態による撮像装置において、この第3のYCデータが書き込まれる場合のSDRAM14におけるアドレス変化は、図3に示されるように、第1および第2のYCデータが書き込まれた場合のSDRAM14のアドレス変化と同じである。
【0028】
本実施の形態による撮像装置においては、第3の本圧縮(j)が行われ、第3の符号データがSDRAM14の符号領域に書き込まれた時点(j2)で、第4の露光が既に終了している。マイコン18は、CCD書き込みメモコン22に、第4のCCDデータを、第3のCCDデータと同様に、SDRAM14のYC領域に書き込ませる(k)。ここで、SDRAM14のCCD領域は、開放された状態になっている。上述の他の本圧縮と同様に第4の本圧縮(m)が行われた後、結果として得られた第4の符号データは、マイコン18の指示により、圧縮処理メモコン28によって、SDRAM14のCCD領域に書き込まれる(m2)。なお、本実施の形態による撮像装置においては、マイコン18の指示により、圧縮回路30によって、第3の本圧縮(j)の結果に基づく第4の圧縮パラメータが算出されているので、その第4の圧縮パラメータを用いて、第4の本圧縮(m)が行われる。また、第4の本圧縮(m)に基づき、第5の圧縮パラメータが算出される。
【0029】
ここで、圧縮後の符号データのデータ量は、CCDデータのデータ量よりも小さく、例えば、符号データのデータ量を、CCDデータのデータ量の約1/2とすると、SDRAM14のCCD領域にもう1つの符号データを書き込むことができる。よって、第5の露光を行い、得られた第5の画像についても、マイコン18は、第4の露光によって得られた画像と同様に処理を行った後、得られた第5の符号データをSDRAM14のCCD領域に書き込ませる(p2)ことが可能である。
【0030】
さらに、本実施の形態による撮像装置においては、第5の符号データが、SDRAM14のCCD領域に書き込まれた時点(p2)で、第6の露光が終了している。第6の撮像画像も、第3の画像等と同様の処理がなされる。ここで、マイコン18は、圧縮処理メモコン28に、第6の本圧縮(s)の結果得られた第6の符号データを、SDRAM14のYC領域に書き込ませる(s2)。マイコン18は、第6の符号データを、SDRAM14のYC領域において、第6の本圧縮(s)の際にYCデータが読み出された(s1)直後の領域(YC領域の先頭アドレス)に書き込ませる。
【0031】
マイコン18は、YC処理マイコン28に、第6の符号データをSDRAM14のYC領域に書き込ませた時点(s2)で、SDRAM14に新たな撮像画像を処理するための容量がなくなるため、連写を終了させる。
【0032】
本実施の形態による撮像装置によれば、CCDデータおよび符号データを、SDRAMの所定の領域に限らず、空いている領域に順次書き込むので、より多くの符号データをSDRAMに格納できる。従って、撮像装置の連写枚数を増やすことが可能となる。
【0033】
なお、本実施の形態による撮像装置においても、実施の形態1による撮像装置と同様の効果が得られる。
【0034】
なお、本実施の形態による撮像装置は、画像6枚分の符号データを取得した時点で連写を終了したが、メモリの容量に応じて、連写枚数を増減できる。また、本実施の形態による撮像装置において、メモリのCCD領域に画像2枚分の符号データ、符号領域に画像像3枚分の符号データを格納したが、各領域の容量、および、符号データのデータ量に応じて、各領域に格納できる符号データの数も変化させることができる。
【0035】
(実施の形態3)
以下に、実施の形態3による撮像装置の連写時の動作について説明する。本実施の形態による撮像装置の構成は、実施の形態1による撮像装置の構成と同一である。よって、図1を参照しながら、本実施の形態による撮像装置の連写時の動作について説明する。実施の形態1および実施の形態2においては、符号データを全てSDRAM14に格納したが、本実施の形態による撮像装置によれば、撮影と同時に、記録媒体への記録を行う。これにより、開放されたSDRAMの領域内に新たな符号データを書き込むことができ、結果として、連写枚数を増やすことができる。
【0036】
図4は、本実施の形態による撮像装置の連写時の動作を示すタイミング図である。本実施の形態による撮像装置において、マイコン18は、圧縮処理メモコン28に、第1の符号データをSDRAM14へ書き込ませた(d2)直後から、カードコントローラ32に、その第1の符号データをICカード34に記録させる(t)。従って、マイコン18は、圧縮処理メモコン28に、第6の露光によって得られた画像の符号データ(第6の符号データ)を、SDRAM14のYC領域ではなく、SDRAM14の符号領域であって、ICカード34に記録される前に第1の符号データが書き込まれていた領域に書き込ませる。それ以外の第6の本圧縮(s)までの動作は、実施の形態2による撮像装置の動作と同一であるので、説明を省略する。
【0037】
ここで、マイコン18は、カードコントローラ32に、SDRAM14における第1の符号データの読み出し状態を監視させる。具体的には、マイコン18は、カードコントローラ32に、第1の符号データが読み出されているSDRAM14のアドレスを取得させる。同時に、マイコン18は、圧縮処理メモコン28に、SDRAM14における第6の符号データの書き込み状態を監視させる。具体的には、マイコン18は、圧縮処理メモコン28に、第6の符号データが書き込まれているSDRAM14のアドレスを取得させる。
【0038】
マイコン16は、カードコントローラ32を介して得られるSDRAM14の読み出しアドレスと、圧縮処理メモコン28を介して得られるSDRAM14の書き込みアドレスとを比較し、第6の符号データの書き込みが第1の符号データの読み出しに追いつきそうな場合(読み出しアドレスと書き込みアドレスが一致しそうな場合)には、圧縮処理メモコン28および圧縮回路30の動作を停止させる。これにより、第1の符号データがICカード34に書き込まれる前に、SDRAM14のCCD領域に第6の符号データが書き込まれ(上書きされ)、結果として第1の符号データが破壊されることを防ぐ。
【0039】
最後に、マイコン14は、第7の露光によって得られた画像の符号データ(第7の符号データ)を、実施の形態2による第6の符号データと同様に、SDRAM14のYC領域に書き込ませる(v2)。さらに、マイコン14は、第7の符号データを、SDRAM14のYC領域において、第7の本圧縮(v)の際にYCデータが読み出された直後の領域(YC領域の先頭アドレス)に書き込ませる。
【0040】
以上のような動作により、実施の形態2では6枚であった連写枚数を7枚にすることができる。
【0041】
本実施の形態による撮像装置によれば、撮影と同時に、メモリに記憶された画像データを出力して、記録媒体に記録する。これにより、メモリに空き領域ができ、その領域に新たな符号データを書き込むことができる。結果として、撮像装置の連写枚数を増やすことができる。
【0042】
なお、本実施の形態による撮像装置においても、実施の形態1による撮像装置と同様の効果が得られる。
【0043】
なお、本実施の形態による撮像装置においても、実施の形態2による撮像装置と同様の効果が得られる。
【0044】
なお、本実施の形態による撮像装置は、画像7枚分の符号データを取得した時点で連写を終了したが、メモリの容量に応じて、連写枚数を増減できる。また、本実施の形態による撮像装置において、メモリのCCD領域に画像2枚分の符号データ、符号領域に画像像3枚分の符号データを格納したが、各領域の容量、および、符号データのデータ量に応じて、各領域に格納できる符号データの数も変化させることができる。
【0045】
また、本実施の形態による撮像装置においては、第1の符号データが読み出された後のメモリの符号領域に新しい符号データを書き込んだが、第2の符号データ以降の符号データが読み出されれば、読み出し速度に応じて、順次新しい符号データを書き込むことも可能である。
【0046】
【発明の効果】
本発明の撮像装置により、変化のある被写体を連写する場合であっても圧縮後の符号量を一定に保つことができる。
【図面の簡単な説明】
【図1】 本発明による撮像装置の構成を示すブロック図。
【図2】 実施の形態1による撮像装置の動作を示すタイミング図。
【図3】 実施の形態2による撮像装置の動作を示すタイミング図。
【図4】 実施の形態3による撮像装置の動作を示すタイミング図。
【図5】 従来の撮像装置の動作を示すタイミング図。
【符号の説明】
2 デジタルスチルカメラ
4 光学レンズ
6 CCD
8 アナログ回路
10 A/D変換器
12 デジタル信号処理装置
14 SDRAM
16 マイクロコンピュータ
18 タイミングパルスジェネレータ
20 SDRAMインタフェース
22 CCD書き込みメモコン
24 YC処理メモコン
26 YC処理回路
28 圧縮処理メモコン
30 圧縮回路
32 カードコントローラ
34 ICカード
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an imaging apparatus such as a digital still camera.
[0002]
[Prior art]
In a digital still camera, image data compression processing is performed in order to record image data on a recording medium such as an IC card. A compression method generally used is a JPEG (Joint Photographic Coding Experts Group) compression method, and a high compression rate can be realized. However, in the JPEG compression method, the amount of code after compression changes depending on the content of the original image. In a digital still camera, it is necessary to shoot and record a certain number of images regardless of the contents of the subject, so the code amount after compression must be constant. Therefore, pre-compression is performed in advance before actually compressing the image data (main compression), and an optimum compression parameter for obtaining a desired code amount after compression is calculated, and then the main compression is performed using the compression parameter. The system that performs is adopted. Furthermore, in order to reduce the time required for recording image data, the conventional imaging apparatus performs pre-compression only for the first captured image, and then uses the compression parameters calculated at that time. There is an apparatus that compresses all captured images (for example, see Patent Document 1).
[0003]
FIG. 5 is a timing chart showing the operation of such an imaging apparatus. (1) in FIG. 5 shows the timing of system control in the image pickup apparatus, and (2) in FIG. 5 shows the data write and read timings in the memory (eg, SDRAM) of the image pickup apparatus, and the write address and read out of the SDRAM. Indicates a change in address. In (1) of FIG. 5, “CCD” indicates exposure timing and field signal output timing by the CCD, and “CCDW”, “YCP”, and “JPG” are memories of CCD data (described later), respectively. Write timing, YC data (described later) generation timing, and compression processing timing. In (2) of FIG. 5, a solid arrow indicates a change in address of the SDRAM when data is written, and a broken arrow indicates a change in address of the SDRAM when data is read. In general, in a digital still camera, an output signal of an image sensor (CCD) is A / D converted (hereinafter, the converted data is referred to as “CCD data”) and written in a CCD area of the SDRAM. Then, the CCD data is read from the SDRAM, and YC data including a luminance signal (C) and a color difference signal (Y) is generated using the CCD data. The generated YC data is written in the YC area of the SDRAM. Further, the YC data is read from the SDRAM and subjected to compression processing. Code data obtained by compression is written in the code area of the SDRAM. In the case of continuous shooting, this series of operations is repeated.
[0004]
In FIG. 5, when the release button is pressed (start of continuous shooting), the first exposure is started. The CCD sequentially outputs two field signals for the first captured image (in order of A field and B field). These output signals are converted into digital signals, and are sequentially written in the CCD area of the SDRAM (from the top address of the CCD area) (a). Furthermore, reading of the CCD data from the CCD area starts simultaneously with the writing of the CCD data for the B field (b1). Simultaneously with the reading (b1), YC data is generated using the CCD data, and the generated YC data is written into the YC area of the SDRAM (from the start address of the YC area) (b2). The YC data is read from the YC area at the same time as writing (b2), and preliminary compression is performed (c). Then, compression parameters are calculated based on the result of preliminary compression (c).
[0005]
At this point, the second exposure has already been completed, and writing (d) of the second CCD data to the SDRAM has begun. Thereafter, similarly, second YC data is generated using the second CCD data, and written into the YC area of the SDRAM (e2). At the same time as the second YC data is written, the second YC data is read from the YC area (f1), and the main compression (f) of the YC data is performed. The main compression (f) is performed using a compression parameter calculated based on the result of the preliminary compression (c). Code data (first code data) obtained by the main compression (f) is written into the code area of the SDRAM (from the start address of the code area) (f2). For the image obtained by the subsequent exposure, the main compression is similarly performed using the compression parameter calculated as a result of the preliminary compression (c). Thereafter, when code data for three images is written in the code area of the SDRAM, the capacity of the code area of the SDRAM is lost, and the continuous shooting ends.
[0006]
[Patent Document 1]
Japanese Patent Laid-Open No. 5-328183 (page 3, FIG. 3)
[0007]
[Problems to be solved by the invention]
However, when the above-described processing is performed, there is a problem that it takes time until the image to be actually compressed is exposed after the release button is pressed, and there is a time lag after the release button is pressed. In addition, since the compression parameters suitable for the first captured image are used for compression of all images captured thereafter, an error occurs during compression when continuously shooting a subject with changes, and There has been a problem that the code amount varies. In addition, since the area in which the code data is written in the memory is limited, there is a problem that the number of continuous shots is limited.
[0008]
An object of the present invention is to provide an imaging apparatus capable of maintaining a constant code amount after compression even when continuously shooting a subject with changes.
[0009]
[Means for Solving the Problems]
  The imaging device according to the present invention is an imaging device that compresses continuously captured images in real time. The imaging apparatus continuously captures images, sequentially converts the captured images into digital data and outputs the image data as image data, a memory that stores the image data, and the image data Memory writing means for sequentially writing the imaging data output from the output unit to the memory, and sequentially reading the imaging data from the memory, and using the imaging data, YC data composed of a luminance signal and a color difference signal is generated. The YC processing means for writing the YC data into the memory, the YC data are sequentially read from the memory, the YC data is compressed, and the code data obtained by the compression is stored in the memory. Compression means for writing and calculating a compression parameter based on the compression result. When the first YC data corresponding to the first captured image is read, the compression means compresses the first YC data using a predetermined compression parameter, and based on the compression result A first compression parameter is calculated, and then the first YC data is read again from the memory, and the read first YC data is compressed using the first compression parameter. At the same time, the code data obtained by compression is written into the memory, and a new compression parameter is calculated based on the compression result, and YC data corresponding to the second and subsequent images is read out. In such a case, the YC data is compressed using a compression parameter calculated based on the result of compression of the immediately preceding image, and the code data obtained by the compression is written to the memory. Inclusive, further, calculates a new compression parameter based on the compression resultsThus, when the first YC data corresponding to the first captured image is read, the final compressed data is obtained after performing preliminary compression, which is compression not intended to generate the final compressed data. On the other hand, when the main compression, which is the compression intended to generate the image data, is read out when YC data corresponding to the second and subsequent images is read, the main compression is performed without performing the preliminary compression.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
(Embodiment 1)
FIG. 1 is a block diagram illustrating a configuration of an imaging apparatus according to the present embodiment. In FIG. 1, an image pickup apparatus 2 includes an optical lens 4, an image pickup element 6, an analog circuit 8, an A / D converter 10, a digital signal processing apparatus 12, a memory 14, a timing pulse generator (TG) 16, and a microcomputer (hereinafter referred to as a “computer”). (Referred to as “microcomputer”) 18. In the imaging device (digital still camera) 2, the imaging device 6 is a CCD (charge coupled device), and the memory 14 is an SDRAM (Synchronous Dynamic Random Access Memory). The digital signal processing device 12 includes an SDRAM interface 20, a CCD writing memory controller (hereinafter referred to as “memocon”) 22, a YC processing memocon 24, a YC processing circuit 26, a compression processing memocon 28, and a compression circuit 30. Further, the digital signal processing apparatus 12 includes a controller (card controller) 32 that records image data on an external recording medium (IC card) 34. The microcomputer 18 controls the TG 16, various memory controllers (22, 24, 28), the YC processing circuit 26, the compression circuit 30 and the card controller 32 based on an external input signal (S 1) from the user.
[0015]
  When there is an external input (S1) for instructing the start of continuous shooting in the imaging device 2, the microcomputer 18 causes TG16Is instructed to start continuous shooting mode. TG16In response to the instruction, the CCD 6 is driven in the continuous shooting mode. The subject imaged by the optical lens 4 is converted into an electrical signal by the CCD 6 and output to the analog circuit 8 as an imaging signal. The analog circuit 8 performs predetermined processing on the imaging signal and outputs it to the A / D converter 10. The A / D converter 10 converts an analog signal into a digital signal and outputs it to the digital signal processor 12 as CCD data. The microcomputer 18 causes the CCD write memo controller 22 in the digital signal processing device 12 to write the CCD data output from the A / D converter 10 into the SDRAM 14. When the CCD data is written in the SDRAM 14, the microcomputer 18 causes the YC processing memo controller 24 to read the CCD data and transfer it to the YC processing circuit 26. The microcomputer 18 causes the YC processing circuit 26 to generate YC data composed of the luminance signal (Y) and the color difference signal (C) using the transferred CCD data. The microcomputer 18 causes the YC processing memo control 24 to read the generated YC data from the YC processing circuit 26 and write it to the SDRAM 14. Further, when the YC data is written in the SDRAM 14, the microcomputer 18 causes the compression processing memo control 28 to read the YC data and transfer it to the compression circuit 30. The microcomputer 18 causes the compression circuit 30 to perform JPEG compression processing on the YC data. The microcomputer 18 causes the compression processing memo control 28 to read the code data obtained by the compression processing from the compression circuit 30 and write it into the SDRAM 14. Data exchange between the SDRAM 14 and the various memo controllers (22, 24, 28) (data writing to the SDRAM and data reading from the SDRAM) is all performed via the SDRAM interface 20. During continuous shooting, the above-described series of operations is repeated each time the CCD outputs an image pickup signal.
[0016]
FIG. 2 is a timing chart showing the operation of the imaging apparatus according to this embodiment. (1) in FIG. 2 shows the timing of system control by the microcomputer 18, and (2) in FIG. 2 shows the data write and read timings in the memory (for example, SDRAM) of the imaging apparatus, and the write address and read of the SDRAM. Indicates a change in address. In (1) of FIG. 2, “CCD” indicates the exposure timing and the output timing of the field signal by the CCD, and “CCDW”, “YCP”, and “JPG” respectively write the CCD data to the memory. The timing, YC data generation timing, and compression processing timing are shown. In (2) of FIG. 2, the solid line arrows indicate the SDRAM address change at the time of data writing, and the broken line arrow indicates the SDRAM address change at the time of data reading. In FIG. 2, when the release button is pressed, the first exposure is started, and the CCD 4 outputs two field signals in order (A field and B field in this order) for the first captured image. These signals are converted into digital signals (CCD data) by the A / D converter 10 and output to the digital signal processor 12. The microcomputer 18 causes the CCD write memo control 2 of the digital signal processing device 12 to sequentially write the CCD data for the A field and the B field into the CCD area of the SDRAM 14 (from the start address of the CCD area) (a). Further, the microcomputer 18 causes the YC processing memo controller 24 to read out the CCD data from the CCD area at the same time as the writing of the B field CCD data starts (b1). The microcomputer 18 causes the YC processing memocon 24 to read out the CCD data (b1) and simultaneously transfers it to the YC processing circuit 26. The microcomputer 18 causes the YC processing circuit 26 to generate YC data at the same time as the CCD data is transferred. At the same time as the YC data is generated, the microcomputer 18 causes the YC processing memo controller 24 to read the YC data from the YC processing circuit 26 and simultaneously write it into the YC area of the SDRAM 14 (from the start address of the YC area). (B2). Thereafter, the microcomputer 18 causes the compression processing memo control 28 to read the YC data from the SDRAM 14 (c) and simultaneously transfer it to the compression circuit 30. Then, the microcomputer 18 causes the compression circuit 30 to perform preliminary compression at the same time as the YC data is transferred, and to calculate a compression parameter using the transferred YC data. Specifically, the compression circuit 30 compresses the transferred YC data with a predetermined compression parameter, and calculates, from the compression result, a first compression parameter that is optimal for setting the code amount to a desired value (code Quantity estimate). Further, at the same time as the precompression (c) is completed, the microcomputer 18 causes the compression processing memo control 28 to read the same YC data from the SDRAM 14 again (d1) and simultaneously transfer it to the compression circuit 30. The microcomputer 18 compresses the YC data using the first compression parameter obtained by the preliminary compression (c) at the same time as the YC data is transferred to the compression circuit 30 (first main compression). Thereafter, the microcomputer 18 causes the compression circuit 30 to calculate a second compression parameter that is optimal for setting the code amount to a desired value from the compression result. The microcomputer 18 causes the compression processing memo control 28 to read the code data (first code data) obtained by the first main compression from the compression circuit 30 simultaneously with the compression, and simultaneously with the reading, the first code Data is written into the code area of the SDRAM 14 (from the start address of the code area) via the SDRAM interface 20 (d2).
[0017]
At this time, the second exposure has already been completed, and the second CCD data corresponding to the second captured image is written into the CCD area of the SDRAM 14 (from the start address of the CCD area) by the CCD writing memo controller 22. (E). While the second CCD data is being written, the microcomputer 18 causes the YC processing memo control 24 to read the second CCD data from the SDRAM 14 (f1) and simultaneously transfer it to the YC processing circuit 26. After the second YC data is generated, the microcomputer 18 causes the YC processing memo controller 24 to read the second YC data and write it into the YC area of the SDRAM 14 (from the start address of the YC area) ( f2) (At this time, the main compression (d) is performed for the first image data). After that, the microcomputer 18 causes the compression processing memo control 28 to read the second YC data from the YC area of the SDRAM 12 (g1) and causes the compression circuit 30 to read the same as in the case of the first main compression (d). YC data main compression (g: second main compression) is performed. The compression parameter used for the second main compression (g) is a second compression parameter calculated based on the result of the first main compression (d). Further, the microcomputer 18 causes the compression circuit 30 to calculate a third compression parameter that is optimal for setting the code amount to a desired value from the compression result. The microcomputer 18 stores the code data (second code data) after the second main compression in the compression processing memo control 28 and the code area of the SDRAM 14 (from the next address where the first code data is written in the code area). ) Write (g2).
[0018]
At this time, the third exposure has already been completed, and writing (h) of the third CCD data to the SDRAM 14 has begun. While the third CCD data is being written in the CCD area of the SDRAM 14, the microcomputer 18 causes the YC processing memo control 24 to read the third CCD data from the CCD area (i1) and to read the third CCD data from the YC processing circuit. 26. After the third YC data is generated, the microcomputer 18 causes the YC processing memo control 2 to write the third YC data in the YC area of the SDRAM 14 (i2). At the same time, the compression processing memo control 28 reads the third YC data from the YC area of the SDRAM 12 (j1), and causes the compression circuit 30 to perform the third main compression. The compression parameter used for the main compression (j) is a third compression parameter calculated based on the result of the second main compression (g). The microcomputer 18 causes the compression processing memo control 28 to write the obtained code data (third code data) in the code area of the SDRAM 14 (from the next address where the second code data is written in the code area) ( j2).
[0019]
The microcomputer 18 ends the continuous shooting because there is no free space in the code area of the SDRAM 14 when the third code data is written to the compression processing memo control 28 (j2).
[0020]
In the imaging device according to the present embodiment, as described above, the compression circuit calculates a compression parameter based on the compression result every time compression processing is performed. The compression parameter is a compression parameter that allows the code amount after compression of the image that has been compressed to be a desired value. In the captured image according to the present embodiment, the first captured image is temporarily compressed using YC data using a predetermined compression parameter. Then, a compression parameter is calculated based on the compression result, and the YC data is compressed again using the calculated compression parameter. For the second and subsequent images, the YC data of the image is compressed using a compression parameter calculated based on the compression result of the immediately preceding image. That is, the second and subsequent images are compressed using a compression parameter calculated based on the result of compressing the image captured immediately before.
[0021]
According to the imaging apparatus according to the present embodiment, since the image exposed immediately after pressing the release button is pre-compressed and main-compressed, the image that is actually compressed after the release button is pressed is exposed. The conventional problem that a time lag exists can be solved.
[0022]
In addition, according to the imaging apparatus according to the present embodiment, when the images obtained by the second and third exposures are subjected to main compression, compression parameters suitable for the image obtained by the immediately preceding exposure are used. Even in the case of continuous shooting of a moving subject, it is possible to suppress variations in the amount of code after compression.
[0023]
Note that the image capturing apparatus according to the present embodiment ends the continuous shooting when the code data for three images is acquired, but the number of continuous shooting can be increased or decreased according to the capacity of the memory.
[0024]
(Embodiment 2)
Hereinafter, an imaging apparatus according to the second embodiment will be described. The configuration of the imaging apparatus according to the present embodiment is the same as that of the imaging apparatus according to the first embodiment. Therefore, the operation at the time of continuous shooting of the imaging apparatus according to the present embodiment will be described with reference to FIG. In Embodiment 1, since the capacity of the code area in the memory is limited, only code data for three images can be written in the memory. However, according to the imaging apparatus according to the present embodiment, more data can be written. Code data for an image can be written in the memory. As a result, the number of continuous shots of the imaging apparatus can be increased.
[0025]
FIG. 3 is a timing chart showing the operation of the imaging apparatus according to the present embodiment. (1) in FIG. 3 shows the timing of system control by the microcomputer 18, and (2) in FIG. 3 shows data write and read timings in the SDRAM 14 and changes in the write address and read address of the SDRAM 14. In (2) of FIG. 3, a solid arrow indicates a change in address of the SDRAM when data is written, and a broken arrow indicates a change in address of the SDRAM when data is read. Here, since the operation until the main compression (g: second main compression) of the image obtained by the second exposure is the same as the operation of the imaging apparatus according to the first embodiment, the description thereof is omitted.
[0026]
When the second main compression (g) is finished, the third exposure is already finished, and writing of the third CCD data to the SDRAM 14 is started (h). Here, the microcomputer 18 can cause the CCD writing memo controller 22 to write the CCD data in an arbitrary area of the SDRAM 14. The microcomputer 18 writes the third CCD data in the CCD writing memo control 22 not in the CCD area but in the YC area immediately after the second YC data is read during the second main compression (g) (g1). (H). Referring to FIG. 3, it can be seen that data is not overwritten because the arrow indicating the address change does not overlap in the YC area of the SDRAM 14.
[0027]
The generation and compression itself of the third YC data is the same as the operation described in the first embodiment. Here, the microcomputer 18 writes the generated third YC data in the YC processing memo control 24, the third CCD data has already been read in the YC area of the SDRAM 14, and the fourth CCD data is still written. Write to a free area that has not been written (i2). In the imaging apparatus according to the present embodiment, the address change in the SDRAM 14 when the third YC data is written is the case where the first and second YC data are written, as shown in FIG. This is the same as the address change of the SDRAM 14.
[0028]
In the imaging apparatus according to the present embodiment, the third main compression (j) is performed, and the fourth exposure is already finished at the time (j2) when the third code data is written in the code area of the SDRAM 14. ing. The microcomputer 18 causes the CCD writing memo controller 22 to write the fourth CCD data to the YC area of the SDRAM 14 (k), similarly to the third CCD data. Here, the CCD area of the SDRAM 14 is open. After the fourth main compression (m) is performed in the same manner as the other main compressions described above, the resulting fourth code data is stored in the CCD 14 of the SDRAM 14 by the compression processing memo control 28 in accordance with an instruction from the microcomputer 18. The area is written (m2). In the imaging apparatus according to the present embodiment, the fourth compression parameter based on the result of the third main compression (j) is calculated by the compression circuit 30 according to the instruction from the microcomputer 18. The fourth main compression (m) is performed using these compression parameters. A fifth compression parameter is calculated based on the fourth main compression (m).
[0029]
Here, the data amount of the code data after compression is smaller than the data amount of the CCD data. For example, if the data amount of the code data is about ½ of the data amount of the CCD data, it is already in the CCD area of the SDRAM 14. One code data can be written. Therefore, the fifth exposure is performed, and the microcomputer 18 performs the same processing as the image obtained by the fourth exposure on the obtained fifth image, and then obtains the obtained fifth code data. It is possible to write to the CCD area of the SDRAM 14 (p2).
[0030]
Furthermore, in the imaging apparatus according to the present embodiment, the sixth exposure is completed when the fifth code data is written in the CCD area of the SDRAM 14 (p2). The sixth captured image is also processed in the same way as the third image. Here, the microcomputer 18 causes the compression processing memo control 28 to write the sixth code data obtained as a result of the sixth main compression (s) in the YC area of the SDRAM 14 (s2). The microcomputer 18 writes the sixth code data in the YC area of the SDRAM 14 in the area immediately after the YC data is read during the sixth main compression (s) (s1) (the start address of the YC area). Make it.
[0031]
The microcomputer 18 ends the continuous shooting because the capacity for processing a new captured image in the SDRAM 14 is lost when the sixth code data is written to the YC area of the SDRAM 14 by the YC processing microcomputer 28 (s2). Let
[0032]
According to the imaging apparatus according to the present embodiment, CCD data and code data are sequentially written not only in a predetermined area of the SDRAM but also in an empty area, so that more code data can be stored in the SDRAM. Therefore, it is possible to increase the number of continuous shots of the imaging apparatus.
[0033]
Note that the imaging apparatus according to the present embodiment can provide the same effects as the imaging apparatus according to the first embodiment.
[0034]
Note that the image capturing apparatus according to the present embodiment ends the continuous shooting when the code data for six images is acquired, but the number of continuous shooting can be increased or decreased according to the capacity of the memory. In the imaging apparatus according to the present embodiment, code data for two images is stored in the CCD area of the memory, and code data for three image images is stored in the code area. Depending on the amount of data, the number of code data that can be stored in each region can also be changed.
[0035]
(Embodiment 3)
The operation during continuous shooting of the imaging apparatus according to Embodiment 3 will be described below. The configuration of the imaging apparatus according to the present embodiment is the same as that of the imaging apparatus according to the first embodiment. Therefore, the operation at the time of continuous shooting of the imaging apparatus according to the present embodiment will be described with reference to FIG. In the first embodiment and the second embodiment, all the code data is stored in the SDRAM 14. However, according to the imaging apparatus according to the present embodiment, recording on a recording medium is performed simultaneously with shooting. As a result, new code data can be written in the open SDRAM area, and as a result, the number of continuous shots can be increased.
[0036]
FIG. 4 is a timing chart showing an operation during continuous shooting of the imaging apparatus according to the present embodiment. In the imaging apparatus according to the present embodiment, the microcomputer 18 causes the card controller 32 to send the first code data to the IC card immediately after the compression processing memo control 28 writes the first code data to the SDRAM 14 (d2). 34 (t). Accordingly, the microcomputer 18 sends the code data (sixth code data) of the image obtained by the sixth exposure to the compression processing memo control 28 not in the YC area of the SDRAM 14 but in the code area of the SDRAM 14 and the IC card. The first code data is written in the area where the first code data has been written before being recorded in 34. The other operations up to the sixth main compression (s) are the same as the operations of the image pickup apparatus according to the second embodiment, and a description thereof will be omitted.
[0037]
Here, the microcomputer 18 causes the card controller 32 to monitor the read state of the first code data in the SDRAM 14. Specifically, the microcomputer 18 causes the card controller 32 to acquire the address of the SDRAM 14 from which the first code data is read. At the same time, the microcomputer 18 causes the compression processing memo control 28 to monitor the writing state of the sixth code data in the SDRAM 14. Specifically, the microcomputer 18 causes the compression processing memo control 28 to acquire the address of the SDRAM 14 in which the sixth code data is written.
[0038]
The microcomputer 16 compares the read address of the SDRAM 14 obtained via the card controller 32 with the write address of the SDRAM 14 obtained via the compression processing memocon 28, and the sixth code data is written in the first code data. When it is likely to catch up with reading (when the read address and the write address are likely to match), the operations of the compression processing memo control 28 and the compression circuit 30 are stopped. Thus, before the first code data is written to the IC card 34, the sixth code data is written (overwritten) in the CCD area of the SDRAM 14, and as a result, the first code data is prevented from being destroyed. .
[0039]
Finally, the microcomputer 14 writes the code data (seventh code data) of the image obtained by the seventh exposure in the YC area of the SDRAM 14 in the same manner as the sixth code data according to the second embodiment ( v2). Further, the microcomputer 14 writes the seventh code data in the YC area of the SDRAM 14 in the area immediately after the YC data is read during the seventh main compression (v) (the start address of the YC area). .
[0040]
By the operation as described above, the number of continuous shots, which was 6 in the second embodiment, can be reduced to 7.
[0041]
According to the imaging apparatus according to the present embodiment, simultaneously with shooting, image data stored in the memory is output and recorded on a recording medium. As a result, an empty area is created in the memory, and new code data can be written in that area. As a result, the number of continuous shots of the imaging device can be increased.
[0042]
Note that the imaging apparatus according to the present embodiment can provide the same effects as the imaging apparatus according to the first embodiment.
[0043]
Note that the imaging apparatus according to the present embodiment can provide the same effects as those of the imaging apparatus according to the second embodiment.
[0044]
Note that the image capturing apparatus according to the present embodiment ends the continuous shooting when the code data for seven images is acquired, but the number of continuous shooting can be increased or decreased according to the capacity of the memory. In the imaging apparatus according to the present embodiment, code data for two images is stored in the CCD area of the memory, and code data for three image images is stored in the code area. Depending on the amount of data, the number of code data that can be stored in each region can also be changed.
[0045]
In the imaging device according to the present embodiment, new code data is written in the code area of the memory after the first code data is read, but if code data after the second code data is read, It is also possible to write new code data sequentially in accordance with the reading speed.
[0046]
【The invention's effect】
With the imaging apparatus of the present invention, the amount of code after compression can be kept constant even when a subject with changes is continuously shot.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an imaging apparatus according to the present invention.
FIG. 2 is a timing chart showing the operation of the imaging apparatus according to the first embodiment.
FIG. 3 is a timing chart showing the operation of the imaging apparatus according to the second embodiment.
4 is a timing chart showing the operation of the imaging apparatus according to Embodiment 3. FIG.
FIG. 5 is a timing chart showing the operation of a conventional imaging device.
[Explanation of symbols]
2 Digital still camera
4 Optical lenses
6 CCD
8 Analog circuit
10 A / D converter
12 Digital signal processor
14 SDRAM
16 Microcomputer
18 Timing pulse generator
20 SDRAM interface
22 CCD writing memo control
24 YC processing Memocon
26 YC processing circuit
28 Compression processing Memocon
30 Compression circuit
32 card controller
34 IC card

Claims (1)

連続的に撮像される画像をリアルタイムで圧縮する撮像装置であって、
連続して撮像を行い、その撮像された画像を順次デジタルデータに変換して撮像データとして出力する撮像データ出力部と、
前記撮像データを記憶するメモリと、
前記撮像データ出力部から出力される撮像データを順次メモリに書き込むメモリ書き込み手段と、
前記メモリから前記撮像データを順次読み出して、その撮像データを用いて、輝度信号と色差信号とから成るYCデータを生成し、そのYCデータを前記メモリに書き込むYC処理手段と、
前記メモリから前記YCデータを順次読み出して、そのYCデータを圧縮するとともに、圧縮して得られた符号データを前記メモリに書き込み、かつ、その圧縮結果に基づいて圧縮パラメータを算出する圧縮手段と
を備え、
前記圧縮手段は、
最初に撮像された画像に対応する第1のYCデータを読み出した場合には、その第1のYCデータを所定の圧縮パラメータを用いて圧縮し、その圧縮結果に基づいて第1の圧縮パラメータを算出し、次に、前記メモリから再度前記第1のYCデータを読み出して、その読み出された第1のYCデータを前記第1の圧縮パラメータを用いて圧縮するとともに、圧縮して得られた符号データを前記メモリに書き込み、さらに、その圧縮結果に基づいて新たな圧縮パラメータを算出し、
2番目以降に撮像された画像に対応するYCデータを読み出した場合には、そのYCデータを、直前の画像の圧縮の結果に基づいて算出した圧縮パラメータを用いて圧縮するとともに、圧縮して得られた符号データを前記メモリに書き込み、さらに、その圧縮結果に基づいて新たな圧縮パラメータを算出し、それにより
最初に撮像された画像に対応する第1のYCデータを読み出した場合には、最終の圧縮データの生成を目的としない圧縮である予備圧縮を行った後、最終の圧縮データの生成を目的とする圧縮である本圧縮を行う一方、
2番目以降に撮像された画像に対応するYCデータを読み出した場合には、予備圧縮をしないで本圧縮を行う、
撮像装置。
An imaging device that compresses continuously captured images in real time,
An imaging data output unit that continuously captures images, sequentially converts the captured images into digital data, and outputs the data as imaging data;
A memory for storing the imaging data;
Memory writing means for sequentially writing imaging data output from the imaging data output unit to a memory;
YC processing means for sequentially reading out the imaging data from the memory, generating YC data comprising a luminance signal and a color difference signal using the imaging data, and writing the YC data into the memory;
Compression means for sequentially reading out the YC data from the memory, compressing the YC data, writing code data obtained by the compression into the memory, and calculating a compression parameter based on the compression result; Prepared,
The compression means includes
When the first YC data corresponding to the first captured image is read, the first YC data is compressed using a predetermined compression parameter, and the first compression parameter is determined based on the compression result. Next, the first YC data is read again from the memory, and the read first YC data is compressed using the first compression parameter and obtained by compression. Write the code data to the memory, further calculate a new compression parameter based on the compression result,
When YC data corresponding to the second and subsequent images is read, the YC data is obtained by compressing the YC data using the compression parameters calculated based on the compression result of the immediately preceding image. writes are code data in said memory, further, on the basis of the compression result to calculate a new compression parameters, whereby
When the first YC data corresponding to the first captured image is read out, the purpose is to generate final compressed data after performing preliminary compression, which is compression not intended to generate final compressed data. While performing the main compression,
When the YC data corresponding to the second and subsequent images is read, the main compression is performed without performing the preliminary compression.
Imaging device.
JP2003002107A 2003-01-08 2003-01-08 Imaging device Expired - Fee Related JP4608186B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003002107A JP4608186B2 (en) 2003-01-08 2003-01-08 Imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003002107A JP4608186B2 (en) 2003-01-08 2003-01-08 Imaging device

Publications (2)

Publication Number Publication Date
JP2004215156A JP2004215156A (en) 2004-07-29
JP4608186B2 true JP4608186B2 (en) 2011-01-05

Family

ID=32819943

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003002107A Expired - Fee Related JP4608186B2 (en) 2003-01-08 2003-01-08 Imaging device

Country Status (1)

Country Link
JP (1) JP4608186B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4844094B2 (en) * 2005-11-16 2011-12-21 株式会社ニコン Digital still camera
JP4835176B2 (en) * 2006-01-31 2011-12-14 株式会社ニコン Digital still camera
JP4971807B2 (en) * 2007-01-17 2012-07-11 キヤノン株式会社 Image storage device, control method thereof, program, and digital camera

Also Published As

Publication number Publication date
JP2004215156A (en) 2004-07-29

Similar Documents

Publication Publication Date Title
US8908079B2 (en) Electronic camera for producing quickview images
US7573504B2 (en) Image recording apparatus, image recording method, and image compressing apparatus processing moving or still images
JP3311715B2 (en) Digital camera
JP4636755B2 (en) Imaging apparatus, image processing method, recording medium, and program
CN102547086B (en) Image capturing apparatus, image capturing control method, and storage medium storing program for image capturing
JP4608186B2 (en) Imaging device
JP2000092437A (en) Digital camera
JP2000092437A5 (en) Imaging device and imaging method
US20030020817A1 (en) Electronic camera and control integrated circuit for electronic camera
JP3167664B2 (en) Digital camera
JP3843016B2 (en) Digital camera and image processing method thereof
KR980010592A (en) Digital still camera with continuous shooting and selective storage
JP2007243624A (en) Digital still camera, image reproduction system and their control method
JP3273605B2 (en) Electronic still camera
JP4408478B2 (en) Video recording device
JP2002359807A (en) Digital still camera
JP3346676B2 (en) Digital electronic still camera
JP3878847B2 (en) Digital camera
JPH0837637A (en) Digital still camera
JP3416651B2 (en) Digital camera
JP5136517B2 (en) File generation apparatus, file generation method, and file generation program
JPH0654252A (en) Camera
JP3830145B2 (en) Digital camera image recording method
JP3718239B2 (en) Image signal processing device
JP2004328405A (en) Moving image recording and reproducing device, its still image compression recording method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080118

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080129

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080328

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080430

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101008

R150 Certificate of patent or registration of utility model

Ref document number: 4608186

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131015

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131015

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141015

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees