JP4453559B2 - Image data processing method and image data processing apparatus - Google Patents

Image data processing method and image data processing apparatus Download PDF

Info

Publication number
JP4453559B2
JP4453559B2 JP2005015111A JP2005015111A JP4453559B2 JP 4453559 B2 JP4453559 B2 JP 4453559B2 JP 2005015111 A JP2005015111 A JP 2005015111A JP 2005015111 A JP2005015111 A JP 2005015111A JP 4453559 B2 JP4453559 B2 JP 4453559B2
Authority
JP
Japan
Prior art keywords
image
processing
vertical
horizontal
image data
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
JP2005015111A
Other languages
Japanese (ja)
Other versions
JP2006203733A (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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2005015111A priority Critical patent/JP4453559B2/en
Publication of JP2006203733A publication Critical patent/JP2006203733A/en
Application granted granted Critical
Publication of JP4453559B2 publication Critical patent/JP4453559B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)

Description

この発明は、例えばデジタルビデオカメラの撮像画像についての画像処理に適用して好適な画像データ処理方法および画像データ処理装置に関する。   The present invention relates to an image data processing method and an image data processing apparatus suitable for application to image processing of, for example, a captured image of a digital video camera.

例えばビデオカメラなどの撮像装置には、撮影画像を一時的に記憶する画像メモリを備え、この画像メモリを用いることにより、撮像画像データを所望の解像度の出力画像データとしたり、撮像画像データに対して、電子手ぶれ補正処理をしたり、いわゆる電子ズームなどの効果処理を施したりする画像処理機能を備えているものが多い。   For example, an imaging device such as a video camera is provided with an image memory for temporarily storing captured images. By using this image memory, captured image data can be used as output image data of a desired resolution, In many cases, the image processing function includes an electronic camera shake correction process or an effect process such as a so-called electronic zoom.

従来、この種の画像メモリを用いる画像データ処理の方法の一例として、特許文献1(特許第2956527号)に記載された画像処理方法がある。この特許文献1に記載の画像データ処理方法は、所望の解像度の出力画像を得る解像度変換処理の場合を例に取ると、図43に示すようなものとなる。   Conventionally, as an example of an image data processing method using this type of image memory, there is an image processing method described in Patent Document 1 (Japanese Patent No. 2956527). The image data processing method described in Patent Document 1 is as shown in FIG. 43 when the case of resolution conversion processing for obtaining an output image having a desired resolution is taken as an example.

すなわち、図43に示すように、撮像素子からの入力撮像画像データ(A/D変換されたデジタル信号であるとする)は、制御部301からの書き込み/読み出し制御信号W/Rによる書き込み制御により、1画面分の撮像画像データが保存可能な容量を有する画像メモリ302に書き込まれる。   That is, as shown in FIG. 43, input captured image data (assumed to be an A / D converted digital signal) from the image sensor is controlled by writing control using a writing / reading control signal W / R from the control unit 301. The captured image data for one screen is written into the image memory 302 having a storable capacity.

そして、この画像メモリ302に書き込まれた撮像画像データは、制御部301からの書き込み/読み出し制御信号W/Rによる読み出し制御により、1垂直周期遅れて読み出されて、水平解像度変換部303に供給される。水平解像度変換部303では、水平方向の解像度が指定されたものとなるように、画素間引きや画素補間を行なって変換処理される。   Then, the captured image data written in the image memory 302 is read out with a delay of one vertical cycle by the read control by the write / read control signal W / R from the control unit 301 and supplied to the horizontal resolution conversion unit 303. Is done. The horizontal resolution conversion unit 303 performs conversion processing by performing pixel thinning and pixel interpolation so that the horizontal resolution is designated.

水平解像度変換部303で水平解像度変換された撮像画像データは、垂直解像度変換部304に供給される。垂直解像度変換部304では、垂直方向の解像度が指定されたものとなるようにライン間引きやライン補間を行なって垂直解像度変換処理され、所望の解像度の出力撮像画像信号を出力する。   The captured image data subjected to the horizontal resolution conversion by the horizontal resolution conversion unit 303 is supplied to the vertical resolution conversion unit 304. The vertical resolution conversion unit 304 performs line resolution conversion processing by performing line thinning and line interpolation so that the vertical resolution is designated, and outputs an output captured image signal having a desired resolution.

ここで、画像メモリ302の記憶容量は、撮像画像データの1画面分(1垂直周期分)以上の容量とされており、この画像メモリ302には、図44において実線で示すようにして、撮像画像データの書き込みがなされる。そして、図44において破線で示すように、書き込みに対して1垂直周期遅れて、当該書き込まれた撮像画像データが順次に読み出される。   Here, the storage capacity of the image memory 302 is equal to or larger than one screen of captured image data (one vertical cycle), and the image memory 302 captures images as shown by the solid line in FIG. Image data is written. Then, as indicated by a broken line in FIG. 44, the written captured image data is sequentially read out with a delay of one vertical cycle with respect to the writing.

画像メモリ302の記憶容量として、1画面分以上必要であるのは、この例では、1垂直周期遅れて画像データの読み出しが行なわれるためである。すなわち、画像メモリ302の画像データは、1垂直周期経過すると、次の垂直周期分の画像データにより上書きされてしまうので、それを回避するべく、画像データの読み出しが行なわれる前に、次の1画面分の画像データにより前の画像データが上書きされてしまわないようにするため、記憶容量として1画面分を越える分のマージンを必要とするからである。   The storage capacity of the image memory 302 is required for one screen or more because, in this example, image data is read with a delay of one vertical cycle. That is, the image data in the image memory 302 is overwritten with the image data for the next vertical cycle after one vertical cycle has elapsed. To avoid this, the next 1 is read before the image data is read. This is because, in order to prevent the previous image data from being overwritten by the image data for the screen, a margin exceeding one screen is required as the storage capacity.

このようにすることにより、画像メモリ302においては、書き込みに対して読み出しが追い越すことなく、撮像画像データの書き込みおよび読み出しがなされて、解像度変換処理が行なわれ、所望の解像度の画像データが出力される。   In this way, the image memory 302 writes and reads the captured image data without overtaking the reading with respect to the writing, performs a resolution conversion process, and outputs image data with a desired resolution. The

上記の特許文献および非特許文献は、次の通りである。
特許第2956527号公報
The above-mentioned patent documents and non-patent documents are as follows.
Japanese Patent No. 2956527

しかし、この特許文献1の画像データ処理方法では、画像メモリ302としては、撮像素子の最高解像度分の画素数(=水平方向の画素数×ライン数)に対応したメモリ容量が必要となる。例えば、HD(High Definition;高精細度)画像のデータが処理対象であって、当該HD画像データの1フィールド分の輝度信号および色差信号を、8ビット/画素で記憶すると、画像メモリ302として必要な記憶容量は約12Mビットとなる。このため、非常に大容量のメモリが必要になり、画像メモリが大型化すると共に、高価格となる。   However, in the image data processing method disclosed in Patent Document 1, the image memory 302 requires a memory capacity corresponding to the number of pixels corresponding to the highest resolution of the image sensor (= number of pixels in the horizontal direction × number of lines). For example, if HD (High Definition) image data is to be processed and the luminance signal and color difference signal for one field of the HD image data is stored at 8 bits / pixel, it is necessary as the image memory 302. The storage capacity is about 12M bits. For this reason, a very large-capacity memory is required, and the image memory becomes large and expensive.

また、撮像素子として、より多い画素数のものを用いた場合には、それに対応して、画像メモリ302の記憶容量を大きくする必要があるという問題もある。   In addition, when an image sensor having a larger number of pixels is used, there is a problem that the storage capacity of the image memory 302 needs to be increased correspondingly.

これに対して、水平解像度変換部303を、画像メモリ301の前段に設け、撮像素子からの撮像画像データを、そのまま画像メモリ302に書き込むのではなく、水平解像度変換部303により水平解像度変換して、水平方向の画像データ量を小さくした後、画像メモリ301に、1画面分の撮像画像データを書き込むようにする方法も考えられる。この場合も、画像メモリ301からは、1垂直周期分遅れたタイミングで画像データが読み出されて、垂直解像度変換部304に供給され、垂直解像度変換処理がなされて、出力画像信号とされる。   On the other hand, a horizontal resolution conversion unit 303 is provided in the preceding stage of the image memory 301, and the captured image data from the image sensor is not directly written in the image memory 302, but is converted by the horizontal resolution conversion unit 303. A method of writing the captured image data for one screen in the image memory 301 after reducing the amount of image data in the horizontal direction is also conceivable. Also in this case, image data is read from the image memory 301 at a timing delayed by one vertical cycle, supplied to the vertical resolution conversion unit 304, and subjected to vertical resolution conversion processing to be an output image signal.

この図45の例の場合には、画像メモリ302には、水平解像度変換部303で水平方向の解像度変換を行なって画素数が少なくなった1画面分の画像データが書き込まれることになる。このため、画像メモリ302の記憶容量は、水平方向の解像度変換後の1画面分の画像データ量でよいので、図43の例の構成の場合よりも画像メモリ302の記憶容量を少なくすることができる。   In the example of FIG. 45, image data for one screen with a reduced number of pixels is written in the image memory 302 by performing horizontal resolution conversion in the horizontal resolution conversion unit 303. For this reason, since the storage capacity of the image memory 302 may be the amount of image data for one screen after the resolution conversion in the horizontal direction, the storage capacity of the image memory 302 may be made smaller than in the configuration of the example of FIG. it can.

しかし、この図45の例の場合も、図43の例と同様に、1垂直周期分遅れて、画像メモリ302から画像データを読み出すようにするので、画像メモリ302の容量としては、1画面分以上である必要がある。しかも、画像メモリ302に記憶される水平方向の画像データ量を減らすことができても、撮像画像データの垂直方向の画像データ量は図43の例の場合と変わらない。   However, in the case of the example of FIG. 45 as well, the image data is read out from the image memory 302 with a delay of one vertical cycle as in the example of FIG. It is necessary to be above. Moreover, even if the amount of image data in the horizontal direction stored in the image memory 302 can be reduced, the amount of image data in the vertical direction of the captured image data is the same as in the example of FIG.

このため、撮像素子として、より多い画素数のものを用いた場合には、それに対応して、画像メモリ302の記憶容量を大きくする必要があるという問題は、図45の例の場合も回避することができない。   Therefore, when an image sensor having a larger number of pixels is used, the problem that the storage capacity of the image memory 302 needs to be increased correspondingly is avoided even in the example of FIG. I can't.

このように、従来の技術では、撮像素子からの撮像画像データのような入力画像データのデータ量(データサイズ)に増大に応じて、画像データ処理装置における画像メモリの記憶容量をも増大する必要があった。   As described above, in the conventional technique, it is necessary to increase the storage capacity of the image memory in the image data processing device in accordance with the increase in the data amount (data size) of the input image data such as the captured image data from the image sensor. was there.

この発明は、以上の点にかんがみ、入力画像データのデータ量(データサイズ)に関係なく、出力画像データとして必要なデータ量に応じた、比較的低容量の記憶容量の画像メモリを用いることができる画像データ処理方法および装置を提供することを目的とする。   In view of the above points, the present invention uses an image memory having a relatively low storage capacity in accordance with the amount of data required as output image data regardless of the data amount (data size) of the input image data. An object of the present invention is to provide a method and apparatus for processing image data.

本発明の第1の観点に係る画像処理方法は、
入力画像データに対して、画像処理手段が所定の画像処理を画像の水平方向の処理と画像の垂直方向の処理とに分けて施すことにより、出力画像データを生成する画像処理方法であって、
メモリ制御手段が、1つの画像メモリのメモリ領域を論理的に第1のメモリ領域と第2のメモリ領域とに分割する第1の工程と
前記画像処理手段の水平処理手段が前記入力画像データに対して画像の水平方向の処理を施した画像データを、前記メモリ制御手段が前記第1のメモリ領域に書き込む第2の工程と
前記画像処理手段の垂直処理手段が前記第1のメモリ領域から入力した前記水平方向の処理を施した画像データに対して画像の垂直方向の処理を施し、当該垂直方向の処理を施した像データを、前記メモリ制御手段が前記第2のメモリ領域に書き込む第3の工程と
を有し、
前記第1の工程は、
前記所定の画像処理に応じて、
前記第1のメモリ領域が、前記垂直処理手段が前記垂直方向の処理を開始することのできるデータ量に所定のマージンを含めた前記第2のメモリ領域よりも小さい記憶容量を有し、前記第2のメモリ領域が、少なくとも出力画像データの1画面分の画像データを書き込むことができる記憶容量を有するように、
前記メモリ領域の分割を行い、
前記第2の工程は、
前記メモリ制御手段が、前記第1のメモリ領域に前記垂直処理手段が処理を開始することができるデータ量の前記水平方向の処理を施された画像データが書き込まれると、当該水平方向の処理を施された画像データを読み出して前記垂直処理手段へ出力し、当該水平方向の処理を施した画像データが読み出された前記第1のメモリ領域の空き領域に、逐次前記水平処理手段から出力される水平方向の処理を施した画像データを書き込んでFIFO動作を行わせる工程を含み、
前記第3の工程は、
前記メモリ制御手段が、前記第2のメモリ領域に前記垂直方向の処理を施された画像データが1画面分書き込まれると、当該1画面分の画像データを読み出して前記出力画像データとして外部へ出力し、当該1画面分の画像データが読み出された前記第2のメモリ領域の空き領域に、逐次前記垂直処理手段から出力される垂直方向の処理を施した画像データを書き込んでFIFO動作を行わせる工程を含む。
An image processing method according to a first aspect of the present invention includes:
Input to the image data, by the image processing means performs separately predetermined image processing on the vertical processing in the horizontal direction of the process and the image of the image, an image processing method of generating an output image data,
A memory control means for logically dividing a memory area of one image memory into a first memory area and a second memory area;
And the image data subjected to the horizontal processing of the image, writing to the memory control means the first memory area write No second step horizontal processing means to the input image data of the image processing unit,
Images of vertical processing unit of the image processing means the performing vertical processing of the image with respect to the first image data to which the subjected to horizontal processing input from a memory area, subjected to the vertical processing data, and said memory control means write No third to the second memory area process,
Have
The first step includes
According to the predetermined image processing,
The first memory area has a smaller storage capacity than the second memory area including a predetermined margin in the amount of data that the vertical processing means can start the vertical processing on, and The memory area of 2 has a storage capacity capable of writing image data for at least one screen of output image data.
Dividing the memory area;
The second step includes
When the memory control unit writes image data that has been subjected to the horizontal processing in the amount of data that can be processed by the vertical processing unit into the first memory area, the horizontal processing is performed. The applied image data is read out and output to the vertical processing means, and the image data subjected to the processing in the horizontal direction is sequentially output from the horizontal processing means to the empty area of the first memory area from which the image data is read out. A step of writing image data subjected to horizontal processing and performing a FIFO operation,
The third step includes
When the image data subjected to the vertical processing is written into the second memory area for one screen, the memory control means reads out the image data for one screen and outputs it as the output image data to the outside. Then, the image data subjected to the vertical processing sequentially output from the vertical processing means is written in the empty area of the second memory area from which the image data for one screen is read, and the FIFO operation is performed. Including the step of

また、本発明の第2の観点に係る画像処理装置は、
入力画像データに対して画像の水平方向の処理を施す水平処理手段および前記画像の垂直方向の処理を施す垂直処理手段を含み、前記入力画像データに所定の画像処理を施す画像処理手段と、
メモリ領域が、理的に第1のメモリ領域と第2のメモリ領域とに分けられて用いられる画像メモリと、
前記画像メモリを制御して、前記メモリ領域を第1のメモリ領域と第2のメモリ領域とに分割し、
前記水平処理手段が前記水平方向の処理を施した画像データを前記画像メモリの第1のメモリ領域に書き込む制御を行い
前記垂直処理手段が前記垂直方向の処理を施した画像データを前記画像メモリの第2のメモリ領域に書き込む制御を行う
メモリ制御手段と、
を有し、
前記メモリ制御手段は、
前記所定の画像処理に応じて、
前記画像メモリの前記第1のメモリ領域が、前記垂直処理手段が前記垂直方向の処理を開始することができるデータ量に所定のマージンを含めた前記第2のメモリ領域よりも小さい記憶容量を有し、
前記画像メモリの前記第2のメモリ領域が、少なくとも出力画像データの1画面分の画像データを書き込むことができる記憶容量を有するように、
前記画像メモリのメモリ領域を分割し、
前記第1のメモリ領域に前記垂直処理手段が処理を開始することができるデータ量の前記水平方向の処理を施された画像データが書き込まれると、当該水平方向の処理を施された画像データを読み出して前記垂直処理手段へ出力し、
当該水平方向の処理を施した画像データが読み出された前記第1のメモリ領域の空き領域に、逐次前記水平処理手段から出力される水平方向の処理を施した画像データを書き込んでFIFO動作を行わせ、
前記第2のメモリ領域に前記垂直方向の処理を施された画像データが1画面分書き込まれると、当該1画面分の画像データを読み出して出力画像データとして外部へ出力し、
当該1画面分の画像データが読み出された前記第2のメモリ領域の空き領域に、逐次前記垂直処理手段から出力される垂直方向の処理を施した画像データを書き込んでFIFO動作を行わせる。
An image processing apparatus according to the second aspect of the present invention provides:
Image processing means for performing predetermined image processing on the input image data, including horizontal processing means for processing the input image data in the horizontal direction and vertical processing means for processing the image in the vertical direction ;
Memory area, and an image memory used is divided into a logically first memory area and a second memory area,
Controlling the image memory to divide the memory area into a first memory area and a second memory area;
The horizontal processing means performs control to write the image data subjected to the horizontal processing in the first memory area of the image memory ,
The vertical processing means performs control to write the image data subjected to the vertical processing into the second memory area of the image memory.
Memory control means;
Have
The memory control means includes
According to the predetermined image processing,
The first memory area of the image memory has a smaller storage capacity than the second memory area including a predetermined margin in the amount of data that the vertical processing means can start processing in the vertical direction. And
The second memory area of the image memory has a storage capacity capable of writing image data for at least one screen of output image data.
Dividing the memory area of the image memory;
When the image data that has been subjected to the horizontal processing in the amount of data that can be processed by the vertical processing means is written to the first memory area, the image data that has been subjected to the horizontal processing is stored. Read and output to the vertical processing means,
The image data subjected to the horizontal processing sequentially output from the horizontal processing means is written in the empty area of the first memory area from which the image data subjected to the horizontal processing has been read, and the FIFO operation is performed. Let
When the image data subjected to the vertical processing is written for one screen in the second memory area, the image data for the one screen is read and output to the outside as output image data,
The image data that has been subjected to the processing in the vertical direction sequentially output from the vertical processing means is written in the empty area of the second memory area from which the image data for one screen has been read out, and the FIFO operation is performed.

この発明によれば、第1のメモリ領域と第2のメモリ領域との合計の記憶容量は、入力画像データのデータサイズに関係なく、決められる。しかも、入力画像データの全てを記憶する容量を必要としないので、前記第1のメモリ領域と第2のメモリ領域との合計の記憶容量は、少なくて済む。   According to the present invention, the total storage capacity of the first memory area and the second memory area is determined regardless of the data size of the input image data. In addition, since the capacity for storing all of the input image data is not required, the total storage capacity of the first memory area and the second memory area can be small.

したがって、この発明によれば、入力画像データのデータ量(データサイズ)に関係なく、出力画像データとして必要なデータ量に応じた、比較的低容量の記憶容量の画像メモリを用いることができる画像データ処理方法および装置を提供することができる。     Therefore, according to the present invention, an image memory having a relatively low storage capacity according to the data amount required as output image data can be used regardless of the data amount (data size) of the input image data. A data processing method and apparatus can be provided.

[この発明の実施形態]
以下に説明するこの発明による画像処理装置の実施形態は、撮像素子としてX−Yアドレス型の固体撮像素子の代表例であるCMOS(Complementary Metal−Oxide Semiconductor)イメージャ(CMOS型の固体撮像素子)を用いる撮像装置の場合の例である。そして、この撮像装置において、画像処理として、撮像した撮像画像について、手ぶれによる撮像画像歪みと、撮像レンズの歪曲収差特性による撮像画像歪みとを、併せて補正すると共に、電子ズーム処理および所望の解像度の出力画像データを得る解像度変換処理を行なうことができる場合である。
[Embodiment of the Invention]
An embodiment of an image processing apparatus according to the present invention described below is a CMOS (Complementary Metal-Oxide Semiconductor) imager (CMOS solid-state image sensor) that is a representative example of an XY address type solid-state image sensor as an image sensor. It is an example in the case of the imaging device to be used. In this imaging apparatus, as image processing, the captured image that has been captured is corrected together with the captured image distortion due to camera shake and the captured image distortion due to the distortion aberration characteristic of the imaging lens, as well as electronic zoom processing and a desired resolution. This is a case where resolution conversion processing for obtaining the output image data can be performed.

なお、この実施形態の撮像装置は、動画像および静止画像の両方を撮像可能であり、動画像の撮像画像データを処理する場合と、静止画像の撮像画像データを処理する場合の、何れの場合にも、上述の画像処理を適用することができるものである。   Note that the imaging apparatus of this embodiment can capture both moving images and still images, and in either case of processing moving image captured image data or processing still image captured image data In addition, the above-described image processing can be applied.

この発明の実施の形態の撮像装置を説明する前に、CMOSイメージャなどのX−Yアドレス型の固体撮像素子に特有の手ぶれによる画像ひずみについて説明する。   Before describing the image pickup apparatus according to the embodiment of the present invention, image distortion caused by camera shake, which is peculiar to an XY address type solid-state image pickup device such as a CMOS imager, will be described.

例えば従来一般的に用いられているCCD(Charge Coupled Device)を用いた固体撮像素子(以下、CCDを用いた固定撮像素子をCCDイメージャという)の場合には、全画素を同時期に露光し、1フレームの画像データについては、データ取り出しタイミングが全く同一であるので、手ぶれ変位量としては、図2において矢印で示すように、1フレーム分の全画素について、1つの手ぶれ変位量Vcsを考えればよい。   For example, in the case of a solid-state imaging device using a CCD (Charge Coupled Device) generally used in the past (hereinafter, a fixed imaging device using a CCD is called a CCD imager), all pixels are exposed at the same time, Since the data extraction timing is exactly the same for one frame of image data, as the amount of camera shake displacement, if one camera shake displacement amount Vcs is considered for all pixels for one frame, as indicated by the arrows in FIG. Good.

つまり、図2において、本来、被写体は実線で示す領域FLaに蓄積されるものであったのに、手ぶれにより点線で示す領域FLbに移動した場合には、当該フレームで1つの手ぶれ変位量Vcsを検出し、当該手ぶれ変位量Vcs分だけ、読み出し画素位置(サンプリング画素位置)を補正することにより、手ぶれに起因する撮像画像歪を補正することができる。   That is, in FIG. 2, when the subject is originally accumulated in the area FLa indicated by the solid line but moved to the area FLb indicated by the dotted line due to the camera shake, the one camera shake displacement amount Vcs is reduced in the frame. By detecting and correcting the readout pixel position (sampling pixel position) by the camera shake displacement amount Vcs, it is possible to correct the captured image distortion caused by the camera shake.

なお、図2に示すように、一般に、撮像素子では、その全画素を有効画素として扱うのではなく、全画素からなる領域(以下、実効画像領域という)AFLのうちの、周辺の領域を除く、水平有効領域および垂直有効領域で定まる中央部を有効画像領域EFLとして用いているものが多い。   As shown in FIG. 2, in general, an imaging device does not treat all the pixels as effective pixels, but excludes a peripheral region in an area AFL composed of all pixels (hereinafter referred to as an effective image area). In many cases, the central portion defined by the horizontal effective area and the vertical effective area is used as the effective image area EFL.

このようなイメージャを用いた場合、手ぶれ補正により読み出し画素位置が変化しても、手ぶれ量が、実効画像領域AFLと有効画像領域EFLとの差分よりも小さい範囲では、イメージャが元々有している画素のデータを用いて歪み補正をすることができるので、補間処理などにより、手ぶれ補正に必要なデータを生成する場合に比べて、画像の劣化は少なくなる。   When such an imager is used, even if the readout pixel position changes due to camera shake correction, the imager originally has an amount of camera shake within a range smaller than the difference between the effective image area AFL and the effective image area EFL. Since distortion correction can be performed using pixel data, image degradation is reduced as compared to the case where data necessary for camera shake correction is generated by interpolation processing or the like.

これに対して、CMOS型イメージャのようなX−Yアドレス型の固体撮像素子の場合には、画面の水平方向(X方向)の位置と、垂直方向(Y方向)位置とを指定することにより、画素単位で撮像データを読み出すことが可能である。ただし、CMOSイメージャなどのX−Yアドレス型の固体撮像素子においては、実用上は、1水平ライン分の画素群単位で読み出し(サンプリング)して、撮像画像データを出力するものが一般的である。   On the other hand, in the case of an XY address type solid-state imaging device such as a CMOS type imager, by specifying the position in the horizontal direction (X direction) and the position in the vertical direction (Y direction) of the screen. The imaging data can be read out in units of pixels. However, an XY address type solid-state imaging device such as a CMOS imager generally reads (samples) and outputs captured image data in units of pixels for one horizontal line. .

このように、CMOSイメージャから撮像データを水平ライン単位で読み出す場合には、図3に示すように、各水平ラインのついての露光期間は、水平ライン単位の読み出し時間差に応じたΔtだけ、時間的なずれを生じる。なお、1画素単位で撮像画像データの読み出しがなされる場合であっても、ライン間の読み出し時間差に比べて、画素間の読み出し時間差は無視できるほど小さい。そこで、1画素単位で撮像画像データの読み出しがなされる場合であっても、同様な露光期間の時間的なずれを生じるものとすることができる。   As described above, when the imaging data is read out from the CMOS imager in units of horizontal lines, as shown in FIG. 3, the exposure period for each horizontal line is timed by Δt corresponding to the reading time difference in units of horizontal lines. A gap occurs. Even when the captured image data is read out in units of pixels, the difference in readout time between pixels is so small that it is negligible compared to the difference in readout time between lines. Therefore, even when the captured image data is read out in units of pixels, a similar time lag of the exposure period can be generated.

このため、CMOSイメージャを用いた撮像装置により、例えば走る電車の中から外の景色を撮影すると、本来は図4(A)のような画像が得られるべきものであるのに、図4(B)に示すように、本来鉛直に立っている家や木が傾いた画像が出力撮像画像となってしまう。これがCMOSイメージャ特有のフォーカルプレーン現象である。   For this reason, when an outside landscape is photographed from a running train, for example, with an imaging device using a CMOS imager, an image as shown in FIG. 4A should be obtained, but FIG. ), An image in which a house or tree originally standing vertically is inclined becomes an output captured image. This is the focal plane phenomenon unique to CMOS imagers.

図4(B)の画像例は、水平方向に移動しながら撮影したものであるため、被写体が傾いて撮像されるが、例えば垂直方向に移動しながら撮影した場合には、図示は省略するが、被写体が垂直方向に縮んだり、伸びたりするような画像となる。   Since the image example in FIG. 4B is taken while moving in the horizontal direction, the subject is imaged while being tilted. For example, when the image is taken while moving in the vertical direction, the illustration is omitted. The image is such that the subject contracts or expands in the vertical direction.

この現象が発現するのは、CMOSイメージャを使用する撮像装置を持つ撮影者が高速に移動しながら撮影したり、逆に、固定位置にいる撮影者が高速に移動する被写体を撮影したりした場合であり、撮像装置と被写体の相対速度が速い場合に顕著となる。ただし、一般的な撮影において、このような状況は稀であるといえる。   This phenomenon appears when a photographer with an imaging device using a CMOS imager takes a picture while moving at high speed, or conversely, a photographer at a fixed position takes a picture of a fast moving subject. This is remarkable when the relative speed between the imaging device and the subject is high. However, it can be said that such a situation is rare in general photography.

しかしながら、撮影者が撮像装置を手で持って撮影している場合に、撮像装置を持っている撮影者の手が、微小かつ高速に振動した場合、すなわち、手ぶれが発生した場合、上述したフォーカルプレーン現象が発現することになる。   However, when the photographer is shooting with the imaging device held by hand, when the photographer's hand holding the imaging device vibrates minutely and at high speed, that is, when camera shake occurs, the above-described focal A plain phenomenon will appear.

なぜなら、CMOSイメージャの場合の手ぶれ(以下、CMOS手ぶれという)の値は、CCDイメージャのように1フレーム内で1個の値ではなく、前述したように、1フレーム内における画素やライン毎のサンプリング時刻の違いにより、画素や水平ラインごとに異なるものとなる。このため、CMOSイメージャを用いた撮像装置においては、単に、1フレーム単位での手ぶれ量を用いた補正を行っても、前述したフォーカルプレーン現象による歪みは、補正されずに残ってしまう。   This is because the value of camera shake (hereinafter referred to as CMOS camera shake) in the case of a CMOS imager is not a single value in one frame as in a CCD imager, but sampling for each pixel or line in one frame as described above. Due to the difference in time, it differs for each pixel and horizontal line. For this reason, in an imaging apparatus using a CMOS imager, the distortion caused by the focal plane phenomenon described above remains uncorrected even if correction is performed using the amount of camera shake per frame.

この際、手ぶれの方向、大きさ、速度が、1フレーム内(1枚の撮像画像内)で一律でないことが原因となって、CMOSイメージャを用いた撮像装置で、CMOS手ぶれが生じた時の被写体の撮像画像出力は、図4(C)に示すように、グニャグニャした奇妙な画像歪みが生じたものとなる。   At this time, due to the fact that the direction, size, and speed of camera shake are not uniform within one frame (within one captured image), an image pickup device using a CMOS imager has a camera shake when a CMOS camera shake occurs. As shown in FIG. 4C, the output of the captured image of the subject is the one in which strange and distorted image distortion has occurred.

そこで、この実施の形態では、1水平ライン単位で撮像画像データがCMOSイメージャから読み出されるとき、各水平ラインについての手ぶれによる位置変位量(以下、手ぶれ量という)を検出し、当該検出した手ぶれ量分だけ、発生した手ぶれとは逆方向にずれた位置から当該水平ラインのデータを読み出すように補正するものである。   Therefore, in this embodiment, when the captured image data is read from the CMOS imager in units of one horizontal line, a positional displacement amount due to camera shake (hereinafter referred to as camera shake amount) for each horizontal line is detected, and the detected camera shake amount is detected. Accordingly, correction is performed so that the data of the horizontal line is read from a position shifted in the opposite direction to the generated camera shake.

しかし、手ぶれ量を各水平ラインについて得ることは、手ぶれを検出するセンサのサンプリング周波数などの条件から困難であることに鑑み、この実施形態においては、画面の垂直方向の複数ライン分置きの位置での手ぶれ量を、離散的に検出する。そして、手ぶれ検出を行なうライン以外の、手ぶれ量を直接的には検出しないラインに対する手ぶれ量は、検出された手ぶれ量を用いるようにする。   However, in view of the fact that it is difficult to obtain the amount of camera shake for each horizontal line due to conditions such as the sampling frequency of a sensor that detects camera shake, in this embodiment, at the positions of every other line in the vertical direction of the screen. The amount of camera shake is detected discretely. The detected amount of camera shake is used as the amount of camera shake for lines that do not directly detect the amount of camera shake other than the line that detects camera shake.

先ず、図5を用いて、この発明による撮像画像信号の歪み補正方法の実施形態における手ぶれなどによる撮像素子の位置的変化に基づくフォーカルプレーン現象を含む撮像画像歪みの補正処理の概要を説明する。   First, with reference to FIG. 5, an outline of a correction process for a captured image distortion including a focal plane phenomenon based on a positional change of the image sensor due to camera shake or the like in the embodiment of the distortion correction method for a captured image signal according to the present invention will be described.

図5の概要説明図においては、図5(A)に示すように、画像に生じるCMOS手ぶれによる歪みを判りやすく示すために、歪みの無いオリジナルの画像として多数個の長方形からなる格子縞模様の画像を想定している。したがって、CMOS手ぶれによる画像歪みは、当該格子縞模様を構成する長方形の変形歪みとして現れるものとなる。   In the schematic explanatory diagram of FIG. 5, as shown in FIG. 5A, an image having a checkered pattern composed of a large number of rectangles as an original image without distortion is shown in order to easily show distortion caused by CMOS camera shake occurring in the image. Is assumed. Therefore, the image distortion due to the CMOS camera shake appears as a deformation distortion of the rectangle constituting the checkered pattern.

なお、この実施形態においても、CMOSイメージャは、図2に示したような1画面とする水平有効領域および垂直有効領域で定まる有効画像領域EFL(1垂直周期分)よりも広い範囲の実効画像領域AFLを有するものが用いられるものである。なお、図5(A)〜(D)に示した1画面分の画像は、図2の有効画像領域EFLの大きさの画像である。   Also in this embodiment, the CMOS imager has an effective image area in a wider range than an effective image area EFL (one vertical period) determined by a horizontal effective area and a vertical effective area as one screen as shown in FIG. Those having AFL are used. Note that the image for one screen shown in FIGS. 5A to 5D is an image having the size of the effective image area EFL in FIG.

この実施形態では、水平方向の画素クロックの速度は、手ぶれの速度よりも十分に早いとし、また、撮像画像データの読み出しは、1水平ライン単位で順次に行なうものとして、手ぶれ補正は、1水平ライン単位で行なうようにする。   In this embodiment, it is assumed that the speed of the pixel clock in the horizontal direction is sufficiently faster than the speed of camera shake, and that readout of captured image data is sequentially performed in units of one horizontal line, and camera shake correction is performed in one horizontal direction. Do this in line units.

また、この実施形態では、図5(B),(C),(D)に示すように、CMOSイメージャの有効画像領域EFL分の画像区間は、垂直方向に複数に等分割し、各分割画像区間Pdivでは、同じ手ぶれ速度の手ぶれ変位を受けるものと仮定している。ここで、分割数は、手ぶれ補正したときに、必要十分な補正効果が得られる分割画像区間Pdivの大きさを考慮して定められる。以下に説明する例では、有効画像領域EFLの画像区間を垂直方向に8分割するようにする。すなわち、この例では、分割画像区間Pdivは、垂直同期信号の1周期を1/8に分割した区間となる。   In this embodiment, as shown in FIGS. 5B, 5C, and 5D, the image section for the effective image area EFL of the CMOS imager is equally divided into a plurality of parts in the vertical direction. In the section Pdiv, it is assumed that camera shake displacement at the same camera shake speed is received. Here, the number of divisions is determined in consideration of the size of the divided image section Pdiv in which a necessary and sufficient correction effect can be obtained when camera shake correction is performed. In the example described below, the image section of the effective image area EFL is divided into eight in the vertical direction. That is, in this example, the divided image section Pdiv is a section obtained by dividing one period of the vertical synchronization signal into 1/8.

1つの分割画像区間Pdivは、複数水平ライン分からなるが、この実施形態では、同じ分割画像区間Pdivに含まれる複数水平ラインは同じ手ぶれ速度の手ぶれ変位を受けるものと仮定して手ぶれ補正処理を行なうものである。   One divided image section Pdiv includes a plurality of horizontal lines. In this embodiment, the camera shake correction process is performed on the assumption that the plurality of horizontal lines included in the same divided image section Pdiv are subjected to camera shake displacement at the same camera shake speed. Is.

そして、この実施形態では、8個の分割画像区間Pdiv_0〜Pdiv_7のそれぞれの先頭の水平ラインに対する手ぶれ速度ベクトルを、図5(B)の左側の矢印に示すようなものとして、手ぶれ速度検出手段により検出する。すなわち、この例では、手ぶれ速度ベクトルは、1画面分の撮像画像について、8箇所において、離散的に検出するようにする。   In this embodiment, the camera shake speed detection unit assumes that the camera shake speed vector for the top horizontal line of each of the eight divided image sections Pdiv_0 to Pdiv_7 is as shown by the arrow on the left side of FIG. To detect. In other words, in this example, the camera shake velocity vector is discretely detected at eight locations for the captured image for one screen.

図5(B)の画像は、手ぶれ速度ベクトルが、各分割画像区間Pdivで、左側の矢印のようなものとした時に生じる手ぶれによる撮像画像の歪みを示している。この実施形態では、この手ぶれによる撮像画像の歪みを、水平方向処理と垂直方向処理とに分けて、それぞれの方向の歪みを別々に補正するようにする。   The image in FIG. 5B shows the distortion of the captured image due to camera shake that occurs when the camera shake velocity vector is as shown by the left arrow in each divided image section Pdiv. In this embodiment, the distortion of the captured image due to this camera shake is divided into horizontal processing and vertical processing, and the distortion in each direction is corrected separately.

補正処理の詳細については後述するが、この実施形態では、先ず、水平方向の歪みについて補正処理を行ない、次いで、垂直方向の歪みについての補正処理を行なう。この場合に、1画面分の撮像画像のすべてのデータについての水平方向の歪み補正処理が完了する前であっても、垂直方向の歪み補正処理が可能になった段階で、垂直方向の歪み補正処理を開始して、水平方向の歪み補正処理と並行して行なうようにすることにより、効率良く歪み補正処理を行なうようにする。   Although details of the correction processing will be described later, in this embodiment, first, correction processing for horizontal distortion is performed, and then correction processing for vertical distortion is performed. In this case, even before the horizontal distortion correction processing for all the data of the captured image for one screen is completed, the vertical distortion correction is performed when the vertical distortion correction processing is possible. By starting the processing and performing it in parallel with the horizontal distortion correction processing, the distortion correction processing is efficiently performed.

そこで、この実施形態では、先ず、手ぶれによる水平方向の画像歪みを補正するために、図5(C)の左側の矢印および図6の左側の矢印で示すように、各分割画像区間Pdiv_0〜Pdiv_7について検出した手ぶれ速度ベクトルVec(Vec_0〜Vec_7)の水平方向成分の逆符号成分(以下、この手ぶれ速度ベクトルの水平方向成分の逆符号成分を、水平補正速度成分という)X_STB(X_STB_0〜X_STB_7)を求める。   Therefore, in this embodiment, first, in order to correct horizontal image distortion due to camera shake, as shown by the left arrow in FIG. 5C and the left arrow in FIG. 6, the divided image sections Pdiv_0 to Pdiv_7. X_STB (X_STB_0 to X_STB_7) of the reverse direction component of the horizontal direction component of the camera shake velocity vector Vec (Vec_0 to Vec_7) detected with respect to Ask.

そして、各分割画像区間Pdiv_0〜Pdiv_7内においては、各水平ラインのそれぞれについての水平方向の手ぶれ量を補正するための補正量として、上述のようにして求めた水平補正速度成分X_STB_0〜X_STB_7を、それぞれの水平ラインについて時間積分(各分割画像区間Pdiv_0〜Pdiv_7の先頭の水平ライン時点を基準点とした時間で積分)して算出する。図6の右側に、その積分結果の値としての水平方向の手ぶれ補正量(以下、水平手ぶれ補正量という)SX_ADDを示す。   In each of the divided image sections Pdiv_0 to Pdiv_7, the horizontal correction speed components X_STB_0 to X_STB_7 obtained as described above are used as correction amounts for correcting the horizontal camera shake amount for each horizontal line. Each horizontal line is calculated by time integration (integration with the time of the first horizontal line of each divided image section Pdiv_0 to Pdiv_7 as a reference point). On the right side of FIG. 6, a horizontal camera shake correction amount (hereinafter referred to as a horizontal camera shake correction amount) SX_ADD as a value of the integration result is shown.

この図6から判るように、各水平ラインのそれぞれについての水平手ぶれ補正量SX_ADDは、各分割画像区間Pdiv_0〜Pdiv_7においては、一定の傾きで変化し、かつ、積分であるので、分割画像区間の境目では折れ線とはなるが、連続的なものとなり、ずれは生じない。   As can be seen from FIG. 6, the horizontal camera shake correction amount SX_ADD for each horizontal line changes at a constant slope in each divided image section Pdiv_0 to Pdiv_7 and is integral. Although it becomes a broken line at the boundary, it becomes continuous and no deviation occurs.

水平方向の歪み補正処理においては、以上のようにして求められた各ラインについての手ぶれ水平補正量SX_ADDを用いて、CMOSイメージャ上での各水平ラインの水平方向の読み出し開始位置を補正することにより、撮像画像を補正処理する。すなわち、各水平ラインの読み出し開始位置を、図5(B)における手ぶれに応じて水平方向にずれた位置からとすることにより、図5(C)の画像に示すように、水平方向の歪みが補正されることになる。   In the horizontal distortion correction process, the horizontal readout start position of each horizontal line on the CMOS imager is corrected using the camera shake horizontal correction amount SX_ADD for each line obtained as described above. Then, the captured image is corrected. That is, by setting the readout start position of each horizontal line from a position shifted in the horizontal direction in accordance with camera shake in FIG. 5B, the horizontal distortion is caused as shown in the image of FIG. It will be corrected.

この図5(C)の画像は、図5(B)の画像歪みの内の水平方向の歪みは補正されて除去されているが、垂直方向の歪みが残っている。   In the image of FIG. 5C, the horizontal distortion of the image distortion of FIG. 5B is corrected and removed, but the distortion in the vertical direction remains.

そこで、この実施形態では、手ぶれによる垂直方向の画像歪みを補正するため、図5(D)の左側の矢印に示すように、各分割画像区間Pdiv_0〜Pdiv_7について検出した手ぶれ速度ベクトルの垂直方向成分の逆符号成分(以下、この手ぶれ速度ベクトルの垂直方向成分の逆符号成分を、垂直補正速度成分という)Y_STB_0〜Y_STB_7を求める。   Therefore, in this embodiment, in order to correct vertical image distortion due to camera shake, as indicated by the arrow on the left side of FIG. 5D, the vertical component of the camera shake velocity vector detected for each of the divided image sections Pdiv_0 to Pdiv_7. Y_STB_0 to Y_STB_7 (hereinafter, the inverse sign component of the vertical direction component of the camera shake velocity vector is referred to as a vertical correction velocity component).

そして、各分割画像区間Pdiv_0〜Pdiv_7内においては、各水平ラインのそれぞれについての垂直方向の手ぶれ量を補正するための補正量として、上述のようにして求めた垂直補正速度成分Y_STB_0〜Y_STB_7を、それぞれの水平ラインについて時間積分(各分割画像区間Pdiv_0〜Pdiv_7の先頭の水平ライン時点を基準点とした時間で積分)して算出する。   In each of the divided image sections Pdiv_0 to Pdiv_7, the vertical correction speed components Y_STB_0 to Y_STB_7 obtained as described above are used as correction amounts for correcting the amount of vertical camera shake for each horizontal line. Each horizontal line is calculated by time integration (integration with the time of the first horizontal line of each divided image section Pdiv_0 to Pdiv_7 as a reference point).

この積分結果としての垂直方向の手ぶれ補正量(以下、垂直手ぶれ補正量という)SY_ADDは、ここでは、図示を省略するが、各分割画像区間Pdiv_0〜Pdiv_7においては、一定の傾きで変化し、かつ、積分であるので、分割画像区間の境目では折れ線とはなるが、連続的なものとなり、ずれは生じない。   The vertical camera shake correction amount SY_ADD (hereinafter referred to as vertical camera shake correction amount) SY_ADD as an integration result is omitted here, but changes with a constant inclination in each of the divided image sections Pdiv_0 to Pdiv_7, and Since it is integral, it becomes a broken line at the boundary of the divided image section, but it becomes continuous and no deviation occurs.

垂直方向の歪み補正処理においては、以上のようにして求められた各ラインについての垂直手ぶれ補正量SY_ADDを用いて、CMOSイメージャ上での各水平ラインの垂直方向の読み出し開始位置を補正することにより、撮像画像を補正処理する。これにより、図5(D)の画像に示すように、水平方向の場合と同様にして垂直方向の歪みが補正され、歪みの除去された撮像画像データ出力が得られる。   In the vertical distortion correction processing, by using the vertical camera shake correction amount SY_ADD for each line obtained as described above, the vertical readout start position of each horizontal line on the CMOS imager is corrected. Then, the captured image is corrected. Thereby, as shown in the image of FIG. 5D, the distortion in the vertical direction is corrected in the same manner as in the horizontal direction, and the captured image data output from which the distortion is removed is obtained.

なお、上述の説明では、手ぶれ速度ベクトルから水平成分および垂直成分を抽出するときに、その逆符号成分を算出して、補正速度成分とするようにしたが、速度成分あるいは手ぶれ量を逆符号として、補正速度成分あるいは手ぶれ補正量とするのは、撮像画像データに対する手ぶれ補正処理の実行開始前であれば、どの時点であっても良い。   In the above description, when the horizontal component and the vertical component are extracted from the camera shake velocity vector, the opposite sign component is calculated and used as the corrected velocity component. However, the velocity component or the amount of camera shake is used as the opposite sign. The correction speed component or the camera shake correction amount may be set at any time as long as the camera shake correction process for the captured image data is not started.

次に、撮像レンズの歪曲収差特性による撮像画像歪みの補正について説明する。   Next, correction of captured image distortion due to distortion aberration characteristics of the imaging lens will be described.

一般に撮像レンズは歪曲収差特性を有しており、このため、撮像画像には、例えば図7(B)に示すような歪みが生じる。高精度で高性能な撮像レンズを用いた場合には、この撮像画像歪みは目立たないが、低価格の撮像レンズを使用する場合や光学ズームレンズを使用する場合には、無視できない程度の画像歪みが生じる。   In general, the imaging lens has distortion characteristics, and for this reason, distortion as shown in FIG. When using a high-precision and high-performance imaging lens, this captured image distortion is inconspicuous, but when using a low-priced imaging lens or using an optical zoom lens, it cannot be ignored. Occurs.

すなわち、例えば図7(A)に示すような格子縞の被写体を、歪曲収差が大きい撮像レンズを用いて撮像したときには、その撮像画像は、図7(B)に示すように、格子縞を構成する縦横の直線が、湾曲するような画像歪みを生じる。この撮像レンズによる画像歪みは、撮像素子の各画素位置に応じたものであり、かつ、撮像レンズごとに特有のものであり、また、撮像素子に対する撮像レンズの位置が変化すると、その位置に応じたものとなる。   That is, for example, when an object having a checkered pattern as shown in FIG. 7A is imaged using an imaging lens having a large distortion, the captured image has a vertical and horizontal configuration that forms the checkered pattern as shown in FIG. This straight line causes distortion of the image. This image distortion due to the image pickup lens is in accordance with each pixel position of the image pickup device and is specific to each image pickup lens. Also, if the position of the image pickup lens with respect to the image pickup device changes, the image distortion depends on the position. It will be.

したがって、CMOSイメージャのようなX−Yアドレス型の撮像素子を用いて撮像する装置においては、手ぶれによる画像歪みを補正しただけでは、撮像レンズの歪曲収差特性に基づく画像歪みが残ってしまう。   Therefore, in an apparatus for imaging using an XY address type imaging device such as a CMOS imager, image distortion based on the distortion aberration characteristic of the imaging lens remains only by correcting the image distortion due to camera shake.

そこで、この実施形態では、X−Yアドレス型の撮像素子を用いた撮像装置において、手ぶれ等が原因で生じる撮像画像の歪みと共に、撮像レンズの歪曲収差特性に基づく画像歪みを併せて軽減するようにしている。   Therefore, in this embodiment, in an imaging apparatus using an XY address type imaging device, image distortion based on distortion aberration characteristics of an imaging lens is reduced together with distortion of a captured image caused by camera shake or the like. I have to.

この実施形態では、水平手ぶれ補正量および垂直手ぶれ補正量に、撮像レンズの歪曲収差特性に基づく画像歪み(以下、レンズ歪みという)の補正量を加算し、その加算した補正量により撮像画像データを補正処理することにより、手ぶれによる画像歪みと撮像レンズによる画像歪みの両方を同時に補正するようにするものである。   In this embodiment, a correction amount of image distortion (hereinafter referred to as lens distortion) based on the distortion aberration characteristic of the imaging lens is added to the horizontal camera shake correction amount and the vertical camera shake correction amount, and the captured image data is converted by the added correction amount. By performing correction processing, both image distortion caused by camera shake and image distortion caused by the imaging lens are corrected simultaneously.

この実施形態では、以上のように、手ぶれ補正を水平処理と垂直処理に分けるのに合わせて、レンズ歪みの補正も水平処理と垂直処理に分けるようにする。前述もしたように、レンズ歪みは、撮像レンズに固有のものである。そこで、撮像素子上における各画素位置におけるレンズ歪みの補正量は、予め用意することができる。   In this embodiment, as described above, the correction of lens distortion is divided into horizontal processing and vertical processing in accordance with the division of camera shake correction into horizontal processing and vertical processing. As described above, lens distortion is inherent to the imaging lens. Therefore, a correction amount of lens distortion at each pixel position on the image sensor can be prepared in advance.

この実施形態では、撮像素子上における各画素位置におけるレンズ歪みの補正量は、各画素位置に対する補正ベクトルとしてエンコードされて、撮像装置に設けられる補正量デコード部に与えられる。補正量デコード部は、各画素位置の座標(撮像素子上における絶対座標)を引数として、当該画素位置における前記補正ベクトルを得ると共に、その補正ベクトルをデコードして、当該画素位置におけるレンズ歪みの補正量の水平方向補正成分と垂直方向補正成分とを得る。   In this embodiment, the correction amount of the lens distortion at each pixel position on the image sensor is encoded as a correction vector for each pixel position, and is provided to a correction amount decoding unit provided in the imaging apparatus. The correction amount decoding unit obtains the correction vector at the pixel position using the coordinates of each pixel position (absolute coordinates on the image sensor) as an argument, and decodes the correction vector to correct the lens distortion at the pixel position. A quantity of horizontal and vertical correction components is obtained.

そして、撮像素子からの撮像画像データの各水平ラインの画素データは、上述のようにして求められた水平手ぶれ補正量SX_ADDにより、水平方向に手ぶれ速度の水平方向成分に応じた分だけシフトされた座標位置のものとされるが、当該座標位置(画素位置)におけるレンズ歪みの補正量の水平方向補正成分の分だけ、当該画素データの座標位置をさらに水平方向にシフトするように補正する。ここで、レンズ歪みの補正量の水平方向補正成分は、前記水平方向手ぶれ補正量SX_ADDにより補正された画素座標位置を引数として、上述のようにして取得される。   Then, the pixel data of each horizontal line of the captured image data from the image sensor is shifted by an amount corresponding to the horizontal component of the camera shake speed in the horizontal direction by the horizontal camera shake correction amount SX_ADD obtained as described above. Although the coordinate position is assumed, the correction is made so that the coordinate position of the pixel data is further shifted in the horizontal direction by an amount corresponding to the horizontal correction component of the correction amount of the lens distortion at the coordinate position (pixel position). Here, the horizontal direction correction component of the lens distortion correction amount is obtained as described above using the pixel coordinate position corrected by the horizontal direction camera shake correction amount SX_ADD as an argument.

また、垂直方向についても、撮像素子からの撮像画像データの各水平ラインの画素データは、上述のようにして求められた垂直手ぶれ補正量SY_ADDにより、垂直方向に手ぶれ速度の垂直方向成分に応じた分だけシフトされた座標位置のものとされるが、当該座標位置(画素位置)におけるレンズ歪みの補正量の垂直方向補正成分の分だけ、当該画素データの座標位置をさらに垂直方向にシフトするように補正する。ここで、レンズ歪みの補正量の垂直方向補正成分は、前記垂直方向手ぶれ補正量SY_ADDにより補正された画素座標位置を引数として、上述のようにして取得される。   Also in the vertical direction, the pixel data of each horizontal line of the captured image data from the image sensor corresponds to the vertical direction component of the camera shake speed in the vertical direction based on the vertical camera shake correction amount SY_ADD obtained as described above. The coordinate position of the pixel data is further shifted in the vertical direction by the amount of the vertical correction component of the correction amount of the lens distortion at the coordinate position (pixel position). To correct. Here, the vertical direction correction component of the lens distortion correction amount is obtained as described above using the pixel coordinate position corrected by the vertical direction camera shake correction amount SY_ADD as an argument.

なお、レンズ歪みは、光学ズームにより撮像レンズの光軸上の位置が変更されるときには、その光軸上の位置に応じたものとなる。このため、光学ズームを用いる場合には、撮像レンズの光軸上の位置に応じた補正ベクトルが、前記補正量デコード部に供給されるように構成される。   The lens distortion corresponds to the position on the optical axis when the position on the optical axis of the imaging lens is changed by optical zoom. For this reason, when the optical zoom is used, a correction vector corresponding to a position on the optical axis of the imaging lens is supplied to the correction amount decoding unit.

さらに、この実施形態の撮像装置では、画像処理として、上述のような手ぶれ補正や撮像レンズの歪曲収差特性に基づく画像歪みの補正のみではなく、電子ズームによる画像の拡大・縮小処理および出力撮像画像の解像度を、例えばユーザが指定した所望のものとするようにするための画像処理も行なうようにする。   Further, in the image pickup apparatus of this embodiment, not only image blur correction and image distortion correction based on the distortion aberration characteristics of the imaging lens as described above, but also image enlargement / reduction processing by electronic zoom and output captured image are performed as image processing. For example, image processing is performed so that the desired resolution specified by the user is set.

[この発明の実施形態の構成]
次に、この発明による画像処理方法および装置の実施形態を、図を参照しながら説明する。図1は、この発明による画像処理装置の実施形態が適用された撮像装置のブロック図を示すものである。
[Configuration of Embodiment of the Invention]
Next, embodiments of an image processing method and apparatus according to the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an imaging apparatus to which an embodiment of an image processing apparatus according to the present invention is applied.

図1に示すように、撮像レンズ1Lを備えるカメラ光学系1を通じた被写体からの入射光は、撮像素子2に照射されて撮像される。この例では、撮像素子2は、前述したようにX−Yアドレス型の固体撮像素子の一例であるCMOSイメージャで構成されている。   As shown in FIG. 1, incident light from a subject through a camera optical system 1 including an imaging lens 1 </ b> L is irradiated onto an imaging device 2 and imaged. In this example, the imaging device 2 is configured by a CMOS imager which is an example of an XY address type solid-state imaging device as described above.

この例では、撮像素子2からは、タイミング信号発生部4からのタイミング信号により1ライン単位が同時に取り出される(サンプリングされる)ことによりアナログ撮像信号とされて出力される。そして、出力されたアナログ撮像信号は、データ変換部3に供給される。   In this example, one line unit is simultaneously taken out (sampled) by the timing signal from the timing signal generator 4 from the image pickup device 2 and is output as an analog image pickup signal. Then, the output analog imaging signal is supplied to the data conversion unit 3.

データ変換部3は、これに入力されたアナログ撮像信号に必要な補正処理を加えた後、タイミング信号発生部4からのクロック信号に同期してデジタル撮像信号に変換する。そして、データ変換部3は、デジタル撮像信号を輝度信号成分と色差信号成分とからなる撮像画像データDinに変換し、その撮像画像データDinを信号処理部5に供給する。   The data conversion unit 3 performs necessary correction processing on the input analog imaging signal, and then converts the analog imaging signal into a digital imaging signal in synchronization with the clock signal from the timing signal generation unit 4. Then, the data conversion unit 3 converts the digital imaging signal into captured image data Din including a luminance signal component and a color difference signal component, and supplies the captured image data Din to the signal processing unit 5.

信号処理部5は、データ変換部3からの撮像画像データDinについて、これに接続されている画像メモリ6への書き込み/読み出しを制御しながら、手ぶれ補正およびレンズ歪み補正の補正処理や、撮像画像の電子ズーム処理(電子的拡大・縮小処理)を行なうとともに、指定された解像度の出力画像データDoutを生成して出力する。   The signal processing unit 5 performs correction processing for camera shake correction and lens distortion correction, and controls captured image data Din from the data conversion unit 3 while controlling writing / reading to / from the image memory 6 connected thereto. Electronic zoom processing (electronic enlargement / reduction processing) is performed, and output image data Dout having a designated resolution is generated and output.

画像メモリ6は、1個のメモリで構成されるが、信号処理部5に含まれるメモリ制御部によるアドレス管理および書き込み/読み出し制御により、第1メモリ領域61と第2メモリ領域62との2つのメモリ領域に分割されて使用される。そして、この実施形態では、図8に示すように、第1メモリ領域61と第2メモリ領域62との分割点のアドレス(セパレートアドレス)SepAdrは、対象となる画像処理に応じて、後述するように、変更される。   The image memory 6 is composed of a single memory, but the two addresses of the first memory area 61 and the second memory area 62 are controlled by address management and write / read control by the memory control section included in the signal processing section 5. Used divided into memory areas. In this embodiment, as shown in FIG. 8, the address (separate address) SepAdr of the dividing point between the first memory area 61 and the second memory area 62 will be described later according to the target image processing. Will be changed.

このセパレートアドレスSepAdrは、後述するように、制御部10から信号処理部5に与えられて、設定される。制御部10には、ユーザインターフェース9を通じて、ユーザによる出力解像度の選択入力、電子ズーム率の入力、手ぶれ補正の有無の入力、レンズ歪み補正の有無の入力などが供給されており、制御部10は、当該入力情報に基づいて、セパレートアドレスSepAdrを決定する。その決定方法については後述する。   As will be described later, the separate address SepAdr is given from the control unit 10 to the signal processing unit 5 and set. The control unit 10 is supplied through the user interface 9 with an output resolution selection input by the user, input of an electronic zoom ratio, input of presence / absence of camera shake correction, input of presence / absence of lens distortion correction, and the like. The separate address SepAdr is determined based on the input information. The determination method will be described later.

後述もするように、この実施形態では、第1メモリ領域61には、水平方向の画像処理結果の撮像画像データが書き込まれる。そして、この第1メモリ領域61に、垂直方向の画像処理が開始できるだけの容量の撮像画像データが書き込まれると、当該書き込まれた撮像画像データが、その先頭から読み出される。そして、第1メモリ領域61から読み出された撮像画像データは、垂直方向の画像処理がなされた後、その垂直方向の画像処理結果の撮像画像データが第2メモリ領域62に書き込まれる。   As will be described later, in this embodiment, captured image data as a result of image processing in the horizontal direction is written in the first memory area 61. When captured image data having a capacity sufficient to start vertical image processing is written in the first memory area 61, the written captured image data is read from the beginning. The captured image data read from the first memory area 61 is subjected to vertical image processing, and then the captured image data of the vertical image processing result is written to the second memory area 62.

第1メモリ領域61および第2メモリ領域62は、後述するように、FIFO(First−In First−Out)動作により書き込みながら読み出しを行なうように制御されて、遅延は、あるものの、撮像画像データのリアルタイム処理がなされる。この場合に、この実施形態では、第1メモリ領域61および第2メモリ領域は、リングメモリバッファとして用いるようにアドレス制御される。   As will be described later, the first memory area 61 and the second memory area 62 are controlled to perform reading while writing by a FIFO (First-In First-Out) operation. Real-time processing is performed. In this case, in this embodiment, the first memory area 61 and the second memory area are controlled to be used as ring memory buffers.

そして、第1メモリ領域61の記憶容量は、垂直方向の画像処理が開始できるだけの容量に所定のマージン分を加えたものでよいので、1画面分(1フィールドあるいは1フレーム)以下とされる。この実施形態では、第1メモリ領域61の記憶容量は、少なくとも垂直解像度変換用のデジタルフィルタのタップ数に応じた画像ライン数分の容量を必要とする。   The storage capacity of the first memory area 61 may be equal to or less than one screen (one field or one frame) since a predetermined margin may be added to the capacity capable of starting image processing in the vertical direction. In this embodiment, the storage capacity of the first memory area 61 requires at least the capacity of the number of image lines corresponding to the number of taps of the digital filter for vertical resolution conversion.

一方、第2メモリ領域62には、この実施形態では、少なくとも解像度変換後の出力画像データDoutの1画面分を記憶する記憶容量が必要である。つまり、第2メモリ領域62の記憶容量は、出力画像データDoutの1画面分(1フィールド分または1フレーム分)以上である必要がある。   On the other hand, the second memory area 62 requires a storage capacity for storing at least one screen of the output image data Dout after resolution conversion in this embodiment. That is, the storage capacity of the second memory area 62 needs to be greater than or equal to one screen (one field or one frame) of the output image data Dout.

しかし、第1メモリ領域61および第2メモリ領域62の記憶容量は、水平方向の処理結果のデータ量および出力画像データDoutのデータ量に依存するので、撮像素子2の画素数が変化しても、変化させる必要はない。もっとも、画像メモリ6全体の記憶容量は、選択できる解像度のうちで、最も高解像度の場合を想定して、決定される。当該画像メモリ6を用いた画像処理については、後でさらに詳述する。   However, since the storage capacities of the first memory area 61 and the second memory area 62 depend on the data amount of the processing result in the horizontal direction and the data amount of the output image data Dout, even if the number of pixels of the image sensor 2 changes. No need to change. However, the storage capacity of the entire image memory 6 is determined on the assumption of the highest resolution among selectable resolutions. The image processing using the image memory 6 will be described in detail later.

さらに、後述するように、第1メモリ領域61および第2メモリ領域62では、画像データの書き込みが、その前に書き込まれた画像データの読み出しを追い越さないように、信号処理部5のメモリ制御部により、アドレス制御されるものである。   Further, as will be described later, in the first memory area 61 and the second memory area 62, the memory control unit of the signal processing unit 5 prevents the writing of the image data from overtaking the reading of the previously written image data. Thus, the address is controlled.

信号処理部5には、タイミング信号発生部4から、出力画像データの水平周期に同期する信号、すなわち、水平同期信号H−SYNCと、出力画像データの垂直周期に同期する信号、すなわち、垂直同期信号V−SYNCと、1画素周期のクロック信号CLKと、それらに同期するクロックが、処理タイミング信号として供給される(図1では、これらの信号の図示は省略)。   The signal processing unit 5 receives from the timing signal generation unit 4 a signal synchronized with the horizontal period of the output image data, that is, a horizontal synchronization signal H-SYNC, and a signal synchronized with the vertical period of the output image data, that is, vertical synchronization. A signal V-SYNC, a clock signal CLK having a period of one pixel, and a clock synchronized with them are supplied as processing timing signals (in FIG. 1, these signals are not shown).

また、撮影時に撮像装置を保持している撮影者による手ぶれ速度を検出する手ぶれ速度検出部7が設けられる。この手ぶれ速度検出部7は、撮像素子2の、撮像画像の水平方向および/または垂直方向の、所定速度以上の比較的高速の位置的変化を手ぶれとして、その速度ベクトルを検出する。ここで、比較的高速の位置的変化としたのは、撮影者による撮像装置のパンニング操作(左右方向への移動)や、チルティング操作(上下方向の移動)を、手ぶれとして検出しないためである。   In addition, a camera shake speed detection unit 7 that detects a camera shake speed of a photographer holding the imaging device at the time of shooting is provided. This camera shake speed detection unit 7 detects a speed vector of a relatively high-speed positional change of the image pickup device 2 in the horizontal direction and / or vertical direction of the captured image that is equal to or higher than a predetermined speed as a camera shake. Here, the reason why the positional change is relatively high is that a panning operation (moving in the left-right direction) and a tilting operation (moving in the up-down direction) by the photographer are not detected as camera shake. .

この手ぶれ速度検出部7は、例えば撮像装置の筐体に取付けられた角速度センサにより構成される。この手ぶれ速度検出部7の検出出力は、手ぶれ速度ベクトルである。この手ぶれ速度検出部7は、角速度センサの代わりに加速度センサを用いて構成しても良い。加速度センサを用いる場合には、加速度センサ値(方向成分も含む)を積分することで、手ぶれ速度(手ぶれ速度ベクトル)を検出し、手ぶれ速度検出部7の検出出力とするようにする。   The camera shake speed detection unit 7 is configured by, for example, an angular speed sensor attached to the housing of the imaging apparatus. The detection output of the camera shake speed detection unit 7 is a camera shake speed vector. The camera shake speed detection unit 7 may be configured using an acceleration sensor instead of the angular speed sensor. When an acceleration sensor is used, the camera shake speed (camera shake speed vector) is detected by integrating the acceleration sensor value (including the direction component), and the detection output of the camera shake speed detection unit 7 is used.

この手ぶれ速度検出部7の検出出力は、手ぶれ速度検出処理部8に供給される。この手ぶれ速度検出処理部8には、タイミング信号発生部4からサンプリング信号Spが供給され、このサンプリングSpにより前記手ぶれ速度検出部7の検出出力(手ぶれ速度ベクトル)がサンプリングされて、前述した各分割画像区間Pdiv_0〜Pdiv_7についての8個の手ぶれ速度ベクトルVec_0〜Vec_7が求められる。   The detection output of the camera shake speed detection unit 7 is supplied to the camera shake speed detection processing unit 8. The camera shake speed detection processing unit 8 is supplied with a sampling signal Sp from the timing signal generation unit 4, and the detection output (camera shake speed vector) of the camera shake speed detection unit 7 is sampled by the sampling Sp, and each of the divisions described above is performed. Eight camera shake velocity vectors Vec_0 to Vec_7 for the image sections Pdiv_0 to Pdiv_7 are obtained.

そして、手ぶれ速度検出処理部8では、8個の手ぶれ速度ベクトルVec_0〜Vec_7を、その水平方向成分と、垂直方向成分とに分離し、それら水平方向成分および垂直方向成分の逆符号成分を水平補正速度成分および垂直補正速度成分として生成する。そして、生成した水平補正速度成分および垂直補正速度成分を信号処理部5に供給する。   Then, the camera shake speed detection processing unit 8 separates the eight camera shake speed vectors Vec_0 to Vec_7 into a horizontal component and a vertical component, and horizontally corrects the reverse sign component of the horizontal component and the vertical component. It is generated as a velocity component and a vertical correction velocity component. Then, the generated horizontal correction speed component and vertical correction speed component are supplied to the signal processing unit 5.

また、この例の撮像装置は、全体を制御するためのマイクロコンピュータを搭載する制御部10を備える。この制御部10には、ユーザインターフェース9が接続されている。そして、このユーザインターフェース9を通じて、ユーザからの画像拡大・縮小指示入力や、解像度指示入力、また、ズーム倍率の値の指示入力などが制御部10に与えられる。制御部10は、それらの指示入力に応じた制御信号を形成し、タイミング信号発生部4や信号処理部5に供給する。   In addition, the imaging apparatus of this example includes a control unit 10 equipped with a microcomputer for controlling the whole. A user interface 9 is connected to the control unit 10. Through the user interface 9, an image enlargement / reduction instruction input, resolution instruction input, zoom magnification value instruction input, and the like from the user are given to the control unit 10. The control unit 10 forms a control signal corresponding to those instruction inputs and supplies it to the timing signal generation unit 4 and the signal processing unit 5.

また、この実施形態では、制御部10は、ユーザインターフェース9を通じた前述の画像処理に関する入力に応じて、画像メモリ6の第1メモリ領域61と第2メモリ領域との分割点アドレスとしてのセパレートアドレスSepAdrを設定し、信号処理部5に供給するようにする。信号処理部5のメモリ制御部は、このセパレートアドレスSepAdrにより、第1メモリ領域61と第2メモリ領域62とを認識して、これらのメモリ領域に対する画像データの書き込みおよび読み出しを実行する。   In this embodiment, the control unit 10, in response to an input related to the above-described image processing through the user interface 9, separate addresses as division point addresses between the first memory area 61 and the second memory area of the image memory 6. SepAdr is set and supplied to the signal processing unit 5. The memory control unit of the signal processing unit 5 recognizes the first memory area 61 and the second memory area 62 based on the separate address SepAdr, and executes writing and reading of image data to and from these memory areas.

また、レンズ歪み補正用データ導出・エンコード部11が設けられる。この補正用データ導出・エンコード部11は、ユーザインターフェース9を通じて入力されたレンズ1Lの歪曲収差に関するデータおよび制御部10からの光学ズームの操作情報に応じた撮像レンズの光軸位置に関する情報などから、撮像素子2の全画素の撮像素子2上の各位置に応じたレンズ歪み補正ベクトルを予め計算する。そして、補正用データ導出・エンコード部11は、求めた補正ベクトルを圧縮するなどしてエンコードし、レンズ歪み補正用データデコード部12に供給する。   A lens distortion correction data derivation / encoding unit 11 is also provided. The correction data derivation / encoding unit 11 is based on the data regarding the distortion aberration of the lens 1L input through the user interface 9, the information regarding the optical axis position of the imaging lens according to the operation information of the optical zoom from the control unit 10, and the like. A lens distortion correction vector corresponding to each position on the image sensor 2 of all the pixels of the image sensor 2 is calculated in advance. Then, the correction data deriving / encoding unit 11 encodes the obtained correction vector by compressing it or the like, and supplies it to the lens distortion correction data decoding unit 12.

この補正用データ導出・エンコード部11は、非常に負荷の大きな演算が必要となるので、専用のマイクロコンピュータやDSP(Digital Signal Processor)が用いられて構成される。   The correction data derivation / encoding unit 11 is configured by using a dedicated microcomputer or a DSP (Digital Signal Processor) because a calculation with a very large load is required.

レンズ歪み補正用データデコード部12は、レンズ歪み水平補正量データデコード部121と、レンズ歪み垂直補正量データデコード部122とを備える。そして、補正用データ導出・エンコード部11からのレンズ歪み補正ベクトルから、レンズ歪み水平補正量データデコード部121は、レンズ歪み水平補正量データを生成し、レンズ歪み垂直補正量データデコード部122は、レンズ歪み垂直補正量データを生成する。   The lens distortion correction data decoding unit 12 includes a lens distortion horizontal correction amount data decoding unit 121 and a lens distortion vertical correction amount data decoding unit 122. Then, the lens distortion horizontal correction amount data decoding unit 121 generates lens distortion horizontal correction amount data from the lens distortion correction vector from the correction data derivation / encoding unit 11, and the lens distortion vertical correction amount data decoding unit 122 Lens distortion vertical correction amount data is generated.

そして、レンズ歪み水平補正量データデコード部121、レンズ歪み垂直補正量データデコード部122のそれぞれは、信号処理部5からの歪み補正対象部位としての画素位置の情報を引数として受けて、当該画素位置における水平レンズ歪み補正量データ、垂直レンズ歪み補正量データをそれぞれ信号処理部5に返す。   Then, each of the lens distortion horizontal correction amount data decoding unit 121 and the lens distortion vertical correction amount data decoding unit 122 receives information on the pixel position as the distortion correction target portion from the signal processing unit 5 as an argument, and receives the pixel position. The horizontal lens distortion correction amount data and the vertical lens distortion correction amount data are respectively returned to the signal processing unit 5.

信号処理部5では、画像メモリ6への画像データの書き込み/読み出しを制御しながら、後で詳述するようにして、手ぶれ速度検出処理部8からの水平補正速度成分と垂直補正速度成分とから、各水平ラインの水平補正変位量SX_ADDおよび垂直補正変位量SY_ADDを算出する。   The signal processing unit 5 controls the writing / reading of image data to / from the image memory 6 and uses the horizontal correction speed component and the vertical correction speed component from the camera shake speed detection processing unit 8 as described in detail later. The horizontal correction displacement amount SX_ADD and the vertical correction displacement amount SY_ADD of each horizontal line are calculated.

そして、信号処理部5では、これら算出した水平補正変位量SX_ADDおよび垂直補正変位量SY_ADDと、前記レンズ歪み補正データデコード部12からのレンズ歪み水平補正量データおよびレンズ歪み垂直補正量データとを用いて、データ変換部3からの撮像画像データDinについての手ぶれによる画像歪み補正処理およびレンズ歪みを補正処理し、出力画像データDoutを得る。   The signal processing unit 5 uses the calculated horizontal correction displacement amount SX_ADD and vertical correction displacement amount SY_ADD and the lens distortion horizontal correction amount data and lens distortion vertical correction amount data from the lens distortion correction data decoding unit 12. Thus, the image distortion correction processing and lens distortion correction processing caused by camera shake for the captured image data Din from the data conversion unit 3 are corrected to obtain output image data Dout.

なお、前述したように、信号処理部5では、上述の歪み補正処理の他、電子ズーム(画像拡大・縮小)処理を行なうと共に、標準精細度、高精細度などに応じた解像度変換処理なども行なう。   As described above, the signal processing unit 5 performs electronic zoom (image enlargement / reduction) processing in addition to the above-described distortion correction processing, and also performs resolution conversion processing according to standard definition, high definition, and the like. Do.

信号処理部5からの出力画像データDoutは、記録処理部13により例えばデータ圧縮されると共に、記録メディア14への記録に適した変調が施された後、記録メディア10に記録される。記録メディア14としては、磁気テープや磁気ディスクなどの磁気記録媒体、DVD(Digital Versatile Disc)などの光ディスク媒体、ハードディスク、カード型メモリなどを用いることができる。なお、出力撮像画像データをインターネットやワイヤレス通信手段を介して記録メディア14に記憶するようにすることもできる。   The output image data Dout from the signal processing unit 5 is, for example, data-compressed by the recording processing unit 13 and subjected to modulation suitable for recording on the recording medium 14 and then recorded on the recording medium 10. As the recording medium 14, a magnetic recording medium such as a magnetic tape or a magnetic disk, an optical disk medium such as a DVD (Digital Versatile Disc), a hard disk, a card type memory, or the like can be used. Note that the output captured image data can be stored in the recording medium 14 via the Internet or wireless communication means.

信号処理部5からの出力画像データDoutは、また、表示系処理部15を通じて表示モニターとしての、例えばLCD(Liquid Crystal Display)などのディスプレイに供給され、画像表示される。記録メディア14に記録された撮像画像データも、再生処理部16により再生され、表示系処理部15を通じて表示モニターに供給され、再生画像表示される。   The output image data Dout from the signal processing unit 5 is supplied to a display such as an LCD (Liquid Crystal Display) as a display monitor through the display system processing unit 15 and is displayed as an image. The captured image data recorded on the recording medium 14 is also reproduced by the reproduction processing unit 16 and supplied to the display monitor through the display system processing unit 15 to display the reproduced image.

次に、図1の信号処理部5、画像メモリ6、手ぶれ速度処理部8の部分の、より詳細な構成ブロック図を図9に示す。   Next, FIG. 9 shows a more detailed configuration block diagram of the signal processing unit 5, image memory 6, and camera shake speed processing unit 8 in FIG.

すなわち、手ぶれ補正およびレンズ歪み補正処理や電子ズーム処理、解像度変換処理、出力データ生成処理のために、信号処理部5は、水平処理ブロック51と、垂直処理ブロック52と、レジスタブロック53とを含んでいる。そして、水平処理ブロック51は、水平処理用手ぶれ補正量積分部511と水平画像処理部512とを備え、また、垂直処理ブロック52は、垂直処理用手ぶれ補正量積分部521と垂直画像処理部522とを備える。   That is, the signal processing unit 5 includes a horizontal processing block 51, a vertical processing block 52, and a register block 53 for camera shake correction and lens distortion correction processing, electronic zoom processing, resolution conversion processing, and output data generation processing. It is out. The horizontal processing block 51 includes a horizontal processing camera shake correction amount integration unit 511 and a horizontal image processing unit 512, and the vertical processing block 52 includes a vertical processing camera shake correction amount integration unit 521 and a vertical image processing unit 522. With.

また、水平画像処理部512に対して、レンズ歪み水平補正量データデコード部121が接続され、垂直画像処理部522に対して、レンズ歪み垂直補正量データデコード部122が接続される。   A lens distortion horizontal correction amount data decoding unit 121 is connected to the horizontal image processing unit 512, and a lens distortion vertical correction amount data decoding unit 122 is connected to the vertical image processing unit 522.

水平処理ブロック51は、データ変換部3からの撮像画像データDinに対して水平方向の処理を施す。この水平方向の処理には、水平方向の手ぶれ補正およびレンズ歪み補正処理、水平方向の画像拡大・縮小処理、水平方向の解像度変換を含む。垂直処理ブロック52は、撮像画像データDinに対して垂直方向の処理を施す。この垂直方向の処理には、垂直方向の手ぶれ補正およびレンズ歪み補正処理、垂直方向の画像拡大・縮小処理、垂直方向の解像度変換を含む。また、レジスタブロック53は、手ぶれ速度検出処理部8で検出された手ぶれ速度の情報を、水平処理ブロック51および垂直処理ブロック52に受け渡す処理を行なう。レジスタブロック53は、また、画像メモリ6のセパレートアドレスSepAdrを、垂直処理ブロック52に含まれるメモリ制御部(後述する第1メモリ領域コントローラ209および第2メモリ領域コントローラ212)に受け渡す処理も行なう。   The horizontal processing block 51 performs horizontal processing on the captured image data Din from the data conversion unit 3. This horizontal processing includes horizontal camera shake correction and lens distortion correction processing, horizontal image enlargement / reduction processing, and horizontal resolution conversion. The vertical processing block 52 performs vertical processing on the captured image data Din. This vertical processing includes vertical camera shake correction and lens distortion correction processing, vertical image enlargement / reduction processing, and vertical resolution conversion. In addition, the register block 53 performs processing for transferring the information on the camera shake speed detected by the camera shake speed detection processing unit 8 to the horizontal processing block 51 and the vertical processing block 52. The register block 53 also performs a process of transferring the separate address SepAdr of the image memory 6 to memory control units (a first memory area controller 209 and a second memory area controller 212 described later) included in the vertical processing block 52.

手ぶれ速度検出部8は、サンプリング部81と、水平補正速度成分検出部82と、垂直補正速度成分検出部83とからなる。   The camera shake speed detection unit 8 includes a sampling unit 81, a horizontal correction speed component detection unit 82, and a vertical correction speed component detection unit 83.

サンプリング部81では、手ぶれ検出部7からの手ぶれ速度検出出力(図10(A)参照)を、タイミング信号発生部4からのサンプリング信号Spによりサンプリングすることにより、各分割画像区間Pdiv_0〜Pdiv_7についての手ぶれ速度ベクトルVec_0〜Vec_7(図10(B)参照)を取得する。この例では、サンプリング部81では、前述したように、手ぶれ速度ベクトルVec_0〜Vec_7は、各分割画像区間Pdiv_0〜Pdiv_7の先頭ラインに対するものが、垂直周期の1/8の周期でサンプリングされる。   In the sampling unit 81, the camera shake speed detection output from the camera shake detection unit 7 (see FIG. 10A) is sampled by the sampling signal Sp from the timing signal generation unit 4, so that the divided image sections Pdiv_0 to Pdiv_7 are obtained. Camera shake velocity vectors Vec_0 to Vec_7 (see FIG. 10B) are acquired. In this example, as described above, in the sampling unit 81, the camera shake velocity vectors Vec_0 to Vec_7 are sampled with respect to the head line of each divided image section Pdiv_0 to Pdiv_7 at a period of 1/8 of the vertical period.

ここで、取得すべき各手ぶれ速度ベクトルの値は、撮像素子2からの撮像画像データの対応する水平ラインのサンプリング時刻の値ではない。なぜなら、前述したように、撮像素子2上の各画素には露光時間があり、撮像素子2から取り出された撮像信号(色フィルタを通過した後の輝度値)は、各ラインのサンプリング時刻から露光時間分遡った時刻までの平均値であるからである。   Here, the value of each camera shake velocity vector to be acquired is not the value of the sampling time of the corresponding horizontal line of the captured image data from the image sensor 2. This is because, as described above, each pixel on the image sensor 2 has an exposure time, and the image signal (the luminance value after passing through the color filter) taken out from the image sensor 2 is exposed from the sampling time of each line. This is because it is an average value up to a time that is back by hours.

このため、この実施形態では、手ぶれ速度ベクトルの値の検出点は、図11に示すように、各水平ラインの画像データのサンプリング時刻tsと、当該サンプリング時刻tsから露光時間分遡った時刻tbとの間の中央時刻となるように、サンプリング信号Spによるサンプリングタイミングが設定されている。   Therefore, in this embodiment, as shown in FIG. 11, the detection point of the value of the camera shake velocity vector is the sampling time ts of the image data of each horizontal line, and the time tb that goes back the exposure time from the sampling time ts. The sampling timing by the sampling signal Sp is set so as to be the central time between.

露光時間が短くなければ、水平ラインの画像データの先頭のタイミングでは、手ぶれ速度ベクトルの値を確定することができるが、露光時間が短くなった場合には、水平ラインの画像データの先頭のタイミングでは、手ぶれ速度ベクトルの値を確定することができない場合が生じる。そのような場合には、サンプリング部81では、過去の手ぶれ速度ベクトルを参照して、手ぶれ速度ベクトルの値を予測するようにする。   If the exposure time is not short, the value of the camera shake velocity vector can be determined at the start timing of the horizontal line image data, but if the exposure time is shortened, the start timing of the horizontal line image data. Then, there is a case where the value of the camera shake velocity vector cannot be determined. In such a case, the sampling unit 81 refers to the past camera shake velocity vector and predicts the value of the camera shake velocity vector.

このサンプリング部81でサンプリングされて得られる、1フレーム(1垂直周期)について、8個の手ぶれ速度ベクトルVec_0〜Vec_7は、水平補正速度成分検出部82および垂直補正速度成分検出部83に供給される。   For one frame (one vertical cycle) obtained by sampling by the sampling unit 81, eight hand movement velocity vectors Vec_0 to Vec_7 are supplied to the horizontal correction velocity component detection unit 82 and the vertical correction velocity component detection unit 83. .

水平補正速度成分検出部82では、各分割画像区間Pdiv_0〜Pdiv_7における手ぶれ速度ベクトルVec_0〜Vec_7の水平方向成分を抽出し、その逆符号成分として、水平補正速度成分X_STB_0〜X_STB_7(図10(C)参照)を求める。   The horizontal correction speed component detection unit 82 extracts the horizontal direction components of the camera shake speed vectors Vec_0 to Vec_7 in each of the divided image sections Pdiv_0 to Pdiv_7, and the horizontal correction speed components X_STB_0 to X_STB_7 (FIG. 10 (C)) Request).

また、垂直補正速度成分検出部9では、各分割画像区間Pdiv_0〜Pdiv_7における手ぶれ速度ベクトルVec_0〜Vec_7の垂直方向成分を抽出し、その逆符号成分として、垂直補正速度成分Y_STB_0〜Y_STB_7(図10(D)参照)を求める。   Further, the vertical correction speed component detection unit 9 extracts the vertical direction components of the camera shake speed vectors Vec_0 to Vec_7 in the divided image sections Pdiv_0 to Pdiv_7, and the vertical correction speed components Y_STB_0 to Y_STB_7 (FIG. 10 ( D) See).

この場合に、この実施形態では、水平補正速度成分X_STB_0〜X_STB_7および垂直補正速度成分Y_STB_0〜Y_STB_7のそれぞれの値は、1水平ライン区間の時間長当たりの手ぶれ補正量として求められる。   In this case, in this embodiment, the values of the horizontal correction speed components X_STB_0 to X_STB_7 and the vertical correction speed components Y_STB_0 to Y_STB_7 are obtained as camera shake correction amounts per time length of one horizontal line section.

すなわち、水平補正速度成分X_STB(X_STB_0〜X_STB_7)は、
X_STB=(水平手ぶれ補正量/1水平ライン区間の時間長)
とされる。
That is, the horizontal correction speed component X_STB (X_STB_0 to X_STB_7)
X_STB = (horizontal image stabilization amount / time length of one horizontal line section)
It is said.

また、垂直補正速度成分Y_STB(Y_STB_0〜Y_STB_7)は、
Y_STB=(水平手ぶれ補正量/1水平ライン区間の時間長)
とされる。
The vertical correction speed component Y_STB (Y_STB_0 to Y_STB_7)
Y_STB = (horizontal image stabilization amount / time length of one horizontal line section)
It is said.

そして、水平補正速度成分X_STB_0〜X_STB_7は、水平方向の画素ピッチ(画素の間隔)dxの倍数値(小数点以下の値を取り得る。以下同じ)、換言すれば、水平方向の画素数(小数点以下を取り得る)で表わされる。また、垂直補正速度成分Y_STB_0〜Y_STB_7は、垂直方向の画素ピッチ(画素の間隔)dyの倍数値(小数点以下を取り得る)、換言すれば、垂直方向の画素数(小数点以下を取り得る。以下同じ)で表わされる。   The horizontal correction speed components X_STB_0 to X_STB_7 are multiples of the horizontal pixel pitch (pixel interval) dx (can take values after the decimal point; the same applies hereinafter), in other words, the number of pixels in the horizontal direction (below the decimal point). Can be taken). Further, the vertical correction speed components Y_STB_0 to Y_STB_7 can be a multiple of the vertical pixel pitch (pixel interval) dy (can take a decimal point), in other words, the number of vertical pixels (below the decimal point. The same).

これは、サンプリング部81からの手ぶれ速度出力の水平方向成分と、垂直方向成分のそれぞれに対して、「速度成分の値→画素数(小数点以下の値を取り得る。以下同じ)の値」の対応テーブルを用意し、速度成分の値を入力値として、画素数の値を得るようにすることで実現される。そして、得られた画素数の値について、手ぶれの速度成分の方向とは逆方向に対応する符号を付加して、それぞれ、水平補正速度成分X_STB_0〜X_STB_7および垂直補正速度成分Y_STB_0〜Y_STB_7とするものである。   This means that for each of the horizontal direction component and the vertical direction component of the camera shake speed output from the sampling unit 81, “the value of the speed component → the number of pixels (which can take values after the decimal point; the same applies hereinafter)” This is realized by preparing a correspondence table and obtaining the value of the number of pixels using the value of the velocity component as an input value. Then, a sign corresponding to the direction opposite to the direction of the camera shake speed component is added to the obtained value of the number of pixels to obtain horizontal correction speed components X_STB_0 to X_STB_7 and vertical correction speed components Y_STB_0 to Y_STB_7, respectively. It is.

この実施形態では、このように水平補正速度成分X_STB_0〜X_STB_7および垂直補正速度成分Y_STB_0〜Y_STB_7の値を定めることにより、後述するライン単位の時間積分計算による水平手ぶれ補正量SX_ADDおよび垂直手ぶれ補正量SY_ADDを、水平補正速度成分および垂直補正速度成分の単純加算により行なえるようにしている。   In this embodiment, by determining the values of the horizontal correction speed components X_STB_0 to X_STB_7 and the vertical correction speed components Y_STB_0 to Y_STB_7 in this way, the horizontal camera shake correction amount SX_ADD and the vertical camera shake correction amount SY_ADD are calculated by the line-by-line time integration calculation described later. Can be performed by simple addition of the horizontal correction speed component and the vertical correction speed component.

そして、これら水平補正速度成分検出部82および垂直補正速度成分検出部83で算出された水平補正速度成分X_STB_0〜X_STB_7および垂直補正速度成分Y_STB_0〜Y_STB_7は、タイミング信号発生部4からのタイミング信号Stに応じたタイミングで、信号処理部5のレジスタブロック53のIF(インターフェース)レジスタ(図示は省略)に、順次取り込まれる。   The horizontal correction speed components X_STB_0 to X_STB_7 and the vertical correction speed components Y_STB_0 to Y_STB_7 calculated by the horizontal correction speed component detection unit 82 and the vertical correction speed component detection unit 83 are added to the timing signal St from the timing signal generation unit 4. At the corresponding timing, the signals are sequentially taken into IF (interface) registers (not shown) of the register block 53 of the signal processing unit 5.

そして、取り込まれた水平補正速度成分X_STB_0〜X_STB_7および垂直補正速度成分Y_STB_0〜Y_STB_7は、水平処理ブロック51および垂直処理ブロック52での処理タイミングに対応して、レジスタブロック53内の水平処理ブロック用レジスタおよび垂直処理ブロック用レジスタ(何れも図示は省略)に、前記IFレジスタから、前記取り込まれたタイミングとは別のタイミングで、転送される。   Then, the horizontal correction speed components X_STB_0 to X_STB_7 and the vertical correction speed components Y_STB_0 to Y_STB_7 that are taken in are registered in the register for horizontal processing block in the register block 53 in accordance with the processing timing in the horizontal processing block 51 and the vertical processing block 52. And transferred to the vertical processing block register (both not shown) from the IF register at a timing different from the fetched timing.

水平処理ブロック51および垂直処理ブロック52の水平処理用手ぶれ補正量積分部511および垂直処理用手ぶれ補正量積分部521は、レジスタブロック53の水平処理ブロック用レジスタおよび垂直処理ブロック用レジスタに取り込まれている各分割画像区間Pdiv_0〜Pdiv_7の水平補正速度成分X_STB_0〜X_STB_7および垂直補正速度成分Y_STB_0〜Y_STB_7を積分することにより、各分割画像区間Pdiv_0〜Pdiv_7における各水平ラインに対する水平手ぶれ補正量SX_ADDおよび垂直手ぶれ補正量SY_ADDを算出する。   The horizontal processing camera shake correction amount integration unit 511 and the vertical processing camera shake correction amount integration unit 521 of the horizontal processing block 51 and the vertical processing block 52 are taken into the horizontal processing block register and the vertical processing block register of the register block 53, respectively. By integrating the horizontal correction speed components X_STB_0 to X_STB_7 and the vertical correction speed components Y_STB_0 to Y_STB_7 of the divided image sections Pdiv_0 to Pdiv_7, the horizontal camera shake correction amount SX_ADD and the vertical camera shake for the horizontal lines in the divided image sections Pdiv_0 to Pdiv_7 are integrated. A correction amount SY_ADD is calculated.

水平処理ブロック51の水平画像処理部512では、水平処理用手ぶれ補正量積分部511で算出された水平手ぶれ補正量SX_ADDを用いて、水平方向の手ぶれ成分を補正するように、各水平ラインの画素データのx座標を、水平方向にシフトする。また、水平方向のレンズ歪みを補正するために当該画素のy座標が必要になることを考慮して、垂直処理用手ぶれ補正量積分部521で算出された垂直手ぶれ補正量SY_ADDを用いて、当該補正対象部位の画素データのy座標を、垂直方向の手ぶれ成分を補正するようにシフトしたものとして求める。   The horizontal image processing unit 512 of the horizontal processing block 51 uses the horizontal camera shake correction amount SX_ADD calculated by the horizontal processing camera shake correction amount integration unit 511 so as to correct the horizontal camera shake component. The x coordinate of the data is shifted in the horizontal direction. In consideration of the necessity of the y coordinate of the pixel to correct the lens distortion in the horizontal direction, the vertical camera shake correction amount SY_ADD calculated by the vertical processing camera shake correction amount integration unit 521 is used to The y coordinate of the pixel data of the correction target part is obtained as a value shifted so as to correct the camera shake component in the vertical direction.

そして、水平画像処理部512は、当該手ぶれに応じて水平方向および垂直方向にシフトした各画素データのx座標と、y座標とを、引数としてレンズ歪み水平補正量データデコード部121に供給し、このレンズ歪み水平補正量データデコード部121から、当該x座標およびy座標位置の画素位置に対するレンズ歪み水平補正量データ(水平方向の座標シフト量)を得る。   Then, the horizontal image processing unit 512 supplies the x-coordinate and y-coordinate of each pixel data shifted in the horizontal direction and the vertical direction according to the camera shake to the lens distortion horizontal correction amount data decoding unit 121 as arguments, The lens distortion horizontal correction amount data decoding unit 121 obtains lens distortion horizontal correction amount data (horizontal coordinate shift amount) for the pixel positions of the x and y coordinate positions.

そして、水平画像処理部512は、水平手ぶれ補正量SX_ADDを用いて補正したx座標データに、取得したレンズ歪み水平補正量データを加算して、さらにシフトする。そして、当該シフトされたx座標データを用いて、水平方向の手ぶれ成分およびレンズ歪みの水平方向成分を補正する。   Then, the horizontal image processing unit 512 adds the acquired lens distortion horizontal correction amount data to the x coordinate data corrected using the horizontal camera shake correction amount SX_ADD, and further shifts. Then, using the shifted x-coordinate data, the camera shake component in the horizontal direction and the horizontal component of lens distortion are corrected.

また、垂直処理ブロック52の垂直画像処理部522では、垂直処理用手ぶれ補正量積分部521で算出された垂直手ぶれ補正量SY_ADDを用いて、垂直方向の手ぶれ成分を補正するように、各水平ラインの画素データのy座標を、垂直方向にシフトする。また、垂直方向のレンズ歪みを補正するために当該画素のx座標が必要になることを考慮して、水平処理用手ぶれ補正量積分部511で算出された水平手ぶれ補正量SX_ADDを用いて、当該補正対象部位の画素データのx座標を、水平方向の手ぶれ成分を補正するようにシフトしたものとして求める。   In addition, the vertical image processing unit 522 of the vertical processing block 52 uses each vertical line so as to correct the vertical camera shake component using the vertical camera shake correction amount SY_ADD calculated by the vertical processing camera shake correction amount integrating unit 521. The y coordinate of the pixel data is shifted in the vertical direction. Further, considering that the x coordinate of the pixel is necessary to correct the lens distortion in the vertical direction, the horizontal image stabilization amount SX_ADD calculated by the horizontal processing image stabilization amount integration unit 511 is used to The x coordinate of the pixel data of the correction target part is obtained as a value shifted so as to correct the camera shake component in the horizontal direction.

そして、垂直画像処理部522は、当該手ぶれに応じて水平方向および垂直方向にシフトした各画素データのx座標とy座標とを、引数としてレンズ歪み垂直補正量データデコード部122に供給し、このレンズ歪み垂直補正量データデコード部122から、当該x座標およびy座標位置の画素位置に対するレンズ歪み垂直補正量データ(垂直方向の座標シフト量)を得る。   Then, the vertical image processing unit 522 supplies the x-coordinate and y-coordinate of each pixel data shifted in the horizontal direction and the vertical direction according to the camera shake as an argument to the lens distortion vertical correction amount data decoding unit 122. From the lens distortion vertical correction amount data decoding unit 122, lens distortion vertical correction amount data (vertical coordinate shift amount) for the pixel position of the x coordinate and y coordinate position is obtained.

そして、垂直画像処理部522は、垂直手ぶれ補正量SY_ADDを用いて補正したy座標データに、取得したレンズ歪み垂直補正量データを加算して、さらにシフトする。そして、当該シフトされたy座標データを用いて、垂直方向の手ぶれ成分およびレンズ歪みの垂直方向成分を補正する。   Then, the vertical image processing unit 522 adds the acquired lens distortion vertical correction amount data to the y coordinate data corrected using the vertical camera shake correction amount SY_ADD, and further shifts. Then, using the shifted y coordinate data, the camera shake component in the vertical direction and the vertical component of the lens distortion are corrected.

以上の補正処理においては、水平処理ブロック51の水平画像処理部512および垂直処理ブロック52の垂直画像処理部522では、それぞれ画像メモリ6に対して画像データの読み書きをしながら補正処理を実行するようにする。   In the above correction processing, the horizontal image processing unit 512 of the horizontal processing block 51 and the vertical image processing unit 522 of the vertical processing block 52 execute correction processing while reading / writing image data from / to the image memory 6, respectively. To.

この実施形態では、画像メモリ6は、前述したように、メモリ制御部によるアドレス管理に基づいて、第1メモリ領域61と第2のメモリ領域62とに論理的に分割されており、第1メモリ領域61には、水平処理ブロック51の水平画像処理部512で処理された結果の撮像画像データが書き込まれる。   In this embodiment, as described above, the image memory 6 is logically divided into the first memory area 61 and the second memory area 62 based on the address management by the memory control unit. In the area 61, captured image data obtained as a result of processing by the horizontal image processing unit 512 of the horizontal processing block 51 is written.

この例では、第1メモリ領域61は、後述する垂直方向の補間処理用のFIR(Finite Impulse Response)フィルタのタップ数以上のライン数分の容量を有する。この垂直方向の補間処理用のFIRフィルタは、垂直方向の手ぶれ補正用フィルタ、垂直方向のレンズ歪み補正用フィルタおよび垂直解像度変換フィルタを構成しているものである。   In this example, the first memory area 61 has a capacity corresponding to the number of lines equal to or greater than the number of taps of a FIR (Finite Impulse Response) filter for vertical interpolation processing described later. The FIR filter for vertical interpolation processing constitutes a vertical camera shake correction filter, a vertical lens distortion correction filter, and a vertical resolution conversion filter.

そして、この第1メモリ領域61に必要な記憶容量は、上記の垂直処理用のFIRフィルタのタップ数のみではなく、電子ズーム率、レンズ歪み補正率、手ぶれ補正率にしたがって変化する。   The storage capacity required for the first memory area 61 changes not only according to the number of taps of the FIR filter for vertical processing described above, but also according to the electronic zoom rate, lens distortion correction rate, and camera shake correction rate.

第1メモリ領域61に垂直画像処理を開始することができる画像データが書き込まれると、この第1メモリ領域61から画像データが読み出されて、垂直ブロック52の垂直画像処理部522で垂直方向の画像処理がなされ、その処理結果が第2メモリ領域62に書き込まれる。そして、この第2メモリ領域62から出力画像データDoutが読み出される。   When image data capable of starting the vertical image processing is written in the first memory area 61, the image data is read from the first memory area 61, and the vertical image processing unit 522 of the vertical block 52 performs the vertical image processing. Image processing is performed, and the processing result is written in the second memory area 62. Then, output image data Dout is read from the second memory area 62.

したがって、この第2メモリ領域の記憶容量としては、出力画像データDoutの1画面分(1フィールドまたは1フレーム)の容量が最低必要とされる。   Therefore, as the storage capacity of the second memory area, the capacity of one screen (one field or one frame) of the output image data Dout is required at the minimum.

水平処理ブロック51の水平画像処理部512には、後述するように、1ライン分の容量の水平処理用FIFOラインメモリが設けられ、この水平処理用FIFOラインメモリへの画像データの書き込み、読み出しを制御するFIFOメモリコントローラ(図9では図示を省略)が設けられていると共に、算出した水平手ぶれ補正量SX_ADDが小数点以下(補正後の画素位置が、水平方向の画素位置よりオフセットされた位置となる)の場合を想定し、補間処理を行なう水平方向補間処理部(図9では図示を省略)が設けられている。この水平方向補間処理部は、後述するように、この実施形態では、水平方向のデジタルFIRフィルタ(以下、水平FIRフィルタという)が用いられる。   As will be described later, the horizontal image processing unit 512 of the horizontal processing block 51 is provided with a horizontal processing FIFO line memory having a capacity for one line, and image data is written to and read from the horizontal processing FIFO line memory. A FIFO memory controller (not shown in FIG. 9) to be controlled is provided, and the calculated horizontal camera shake correction amount SX_ADD is below the decimal point (the corrected pixel position is offset from the horizontal pixel position). ), A horizontal direction interpolation processing unit (not shown in FIG. 9) for performing interpolation processing is provided. As will be described later, the horizontal direction interpolation processing unit uses a horizontal digital FIR filter (hereinafter referred to as a horizontal FIR filter) in this embodiment.

なお、1ライン分の容量の水平処理用FIFOラインメモリも、画像メモリ6の一部のメモリ領域として設定しておくようにして、使用するようにしても良い。   Note that a horizontal processing FIFO line memory having a capacity of one line may be used as a part of the memory area of the image memory 6.

また、垂直処理ブロック52の垂直画像処理部522には、第1メモリ領域61への水平画像処理後の画像データの書き込みを制御すると共に、第1メモリ領域61からの画像データの読み出しを制御する第1メモリ領域コントローラと、第2のメモリ領域62への画像データの書き込み、読み出しを制御する第2メモリ領域コントローラ(共に図9では図示を省略)が設けられていると共に、算出した垂直手ぶれ補正量SY_ADDが小数点以下(補正後の画素位置が、垂直方向の画素位置よりオフセットされた位置となる)の場合を想定し、補間処理を行なう垂直方向補間処理部(図9では図示を省略)が設けられている。   The vertical image processing unit 522 of the vertical processing block 52 controls the writing of image data after the horizontal image processing to the first memory area 61 and the reading of the image data from the first memory area 61. A first memory area controller and a second memory area controller (both not shown in FIG. 9) for controlling the writing and reading of image data to and from the second memory area 62 are provided, and the calculated vertical image stabilization A vertical direction interpolation processing unit (not shown in FIG. 9) that performs interpolation processing assumes that the amount SY_ADD is below the decimal point (the corrected pixel position is a position offset from the vertical pixel position). Is provided.

この垂直方向補間処理部は、後述するように、この実施形態では、垂直方向のデジタルFIRフィルタ(以下、垂直FIRフィルタという)が用いられるが、レンズ歪み補正のために必要なライン数および垂直解像度変換を考慮したタップ数とされる。   As will be described later, in this embodiment, the vertical direction interpolation processing unit uses a digital FIR filter in the vertical direction (hereinafter referred to as a vertical FIR filter). However, the number of lines and the vertical resolution required for lens distortion correction are used. The number of taps considering conversion.

ここで、算出した水平手ぶれ補正量SX_ADDとレンズ歪み水平補正量との加算量および垂直手ぶれ補正量SY_ADDとレンズ歪み垂直補正量との加算量が小数点以下の値を持つ場合の補間処理について説明する。   Here, an interpolation process when the calculated amount of addition of the horizontal camera shake correction amount SX_ADD and the lens distortion horizontal correction amount and the addition amount of the vertical camera shake correction amount SY_ADD and the lens distortion vertical correction amount have values after the decimal point will be described. .

まず、手ぶれ補正について説明する。例えば、手ぶれの水平方向の速度成分により、水平方向に図12に示すような画像歪みが生じた場合を想定する。すなわち、図12の例は、手ぶれが無ければ破線で示す直線上にあるべき画素G11,G21,G31・・・、G12,G22,G32・・・、G13,G23,G33・・・、が、手ぶれの水平方向の速度成分のために実線で示すような斜め位置となっている場合である。   First, camera shake correction will be described. For example, it is assumed that image distortion as shown in FIG. 12 occurs in the horizontal direction due to the horizontal velocity component of camera shake. That is, in the example of FIG. 12, pixels G11, G21, G31..., G12, G22, G32... G13, G23, G33. This is a case where the camera is in an oblique position as indicated by a solid line due to the horizontal velocity component of camera shake.

この手ぶれを補正するためには、ずれている画素位置を本来の位置にあるようにずらせばよく、そのずれ量が、図12に示すように、前述した水平手ぶれ補正量SX_ADDに相当する。この水平手ぶれ補正量SX_ADDが、画素ピッチdxの整数倍であれば、画素データを当該水平手ぶれ補正量SX_ADDに応じた画素ピッチ分だけずらして読み出すようにすることで補正することができる。   In order to correct this camera shake, it is only necessary to shift the shifted pixel position so that it is in its original position, and the shift amount corresponds to the above-described horizontal camera shake correction amount SX_ADD as shown in FIG. If the horizontal camera shake correction amount SX_ADD is an integral multiple of the pixel pitch dx, the pixel data can be corrected by being read out while being shifted by the pixel pitch corresponding to the horizontal camera shake correction amount SX_ADD.

しかしながら、水平手ぶれ補正量SX_ADDが、画素ピッチdxの整数倍ではなく、小数点以下のずれ量を含む場合には、そのずれ量に対応する位置は、画素データが存在する位置ではないので、その位置の近傍の複数個の画素データを用いた補間処理により、対応する画素位置の画素データを生成する必要がある。   However, when the horizontal camera shake correction amount SX_ADD is not an integral multiple of the pixel pitch dx and includes a shift amount below the decimal point, the position corresponding to the shift amount is not a position where pixel data exists, so that position It is necessary to generate pixel data at a corresponding pixel position by interpolation processing using a plurality of pixel data in the vicinity of.

図13は、その補間方法の一例を示すもので、求める画素データが、画素G1と画素G2との間の補間画素Gsである場合に、この補間画素Gsの位置と画素G1,G2の位置との距離k1,k2に応じた割合で、画素G1のデータと画素G2のデータとを加算することにより、補間画素Gsの画素データを生成するものである。この場合、k1:k2=W:(1−W)としたとき、
補間画素Gs=G1×W+G2×(W−1)
なる補間演算により、補間画素Gsの画素データを得る。
FIG. 13 shows an example of the interpolation method. When the pixel data to be obtained is an interpolation pixel Gs between the pixel G1 and the pixel G2, the position of the interpolation pixel Gs and the positions of the pixels G1 and G2 The pixel data of the interpolation pixel Gs is generated by adding the data of the pixel G1 and the data of the pixel G2 at a ratio corresponding to the distances k1 and k2. In this case, when k1: k2 = W: (1-W),
Interpolated pixel Gs = G1 × W + G2 × (W−1)
The pixel data of the interpolation pixel Gs is obtained by the interpolation calculation.

また、図13の例のような2個の画素データを用いるのではなく、図14の例のように2個以上(図14の例では4個)の近傍画素データを用いて、補間演算をして補間画素を求めることもできる。この場合、補間画素Gsの位置に対する画素G0,G1,G2,G3の位置との距離k0,k1,k2,k3に応じた割合となる乗算係数W0,W1,W2,W3を定めて、画素G0,G1,G2,G3のデータを加算することにより、補間画素Gsの画素データを得る。   Further, instead of using two pieces of pixel data as in the example of FIG. 13, interpolation calculation is performed using two or more (four in the example of FIG. 14) neighboring pixel data as in the example of FIG. Thus, an interpolation pixel can be obtained. In this case, multiplication coefficients W0, W1, W2, and W3 that are proportions according to distances k0, k1, k2, and k3 from the positions of the pixels G0, G1, G2, and G3 with respect to the position of the interpolation pixel Gs are determined, and the pixel G0 is determined. , G1, G2, and G3 are added to obtain pixel data of the interpolation pixel Gs.

すなわち、
補間画素Gs=G0×W0+G1×W1+G2×W2+G3×W3
なる補間演算により、補間画素Gsの画素データを得るようにする。
That is,
Interpolated pixel Gs = G0 × W0 + G1 × W1 + G2 × W2 + G3 × W3
The pixel data of the interpolation pixel Gs is obtained by the interpolation calculation.

この図14の例の場合、乗算係数W0,W1,W2,W3の値の組は、画素G1または画素G2と補間画素Gsとの距離dsに対応するものとして関連付けられたテーブルを用意しておき、距離dsを検索子として、上記乗算係数W0,W1,W2,W3の組をテーブルから読み出すようにすることで得ることができる。なお、距離dsは、水平手ぶれ補正量SX_ADDの小数部に相当するものである。   In the case of the example of FIG. 14, a table associated with the combination of the values of the multiplication coefficients W0, W1, W2, and W3 corresponding to the distance ds between the pixel G1 or the pixel G2 and the interpolation pixel Gs is prepared. By using the distance ds as a search element, the set of the multiplication coefficients W0, W1, W2, and W3 can be read from the table. The distance ds corresponds to the decimal part of the horizontal camera shake correction amount SX_ADD.

この補間処理は、この実施形態では、水平FIRフィルタを用いて行なうようにする。すなわち、水平手ぶれ補正量SX_ADDの小数部に対応する前記乗算係数の組をテーブルから読み出し、その乗算係数を水平FIRフィルタに対して供給することで上記補間処理を行なうことができる。   In this embodiment, this interpolation processing is performed using a horizontal FIR filter. That is, the interpolation processing can be performed by reading the multiplication coefficient pair corresponding to the decimal part of the horizontal camera shake correction amount SX_ADD from the table and supplying the multiplication coefficient to the horizontal FIR filter.

以上は、水平方向の手ぶれ補正の場合の補間処理であるが、垂直方向の手ぶれ補正の場合の補間処理についても、補間方向が垂直方向になるだけで、全く同様である。   The above is the interpolation processing in the case of the horizontal direction camera shake correction, but the interpolation processing in the case of the vertical direction camera shake correction is exactly the same except that the interpolation direction becomes the vertical direction.

この手ぶれ補正の場合の補間処理動作は、この実施形態では、レンズ歪みが全く無いとした場合にのみ行なわれることになる。この実施形態では、手ぶれ補正のための補正量とレンズ歪み補正のための補正量との加算量により補正された座標位置の画素データを得るように補間処理を行なうものである。この補間処理も基本的な考え方は、上述の図13、図14の場合と全く同様である。   In this embodiment, the interpolation processing operation in the case of camera shake correction is performed only when there is no lens distortion. In this embodiment, interpolation processing is performed so as to obtain pixel data at coordinate positions corrected by an addition amount of a correction amount for camera shake correction and a correction amount for lens distortion correction. The basic concept of this interpolation process is exactly the same as in the case of FIGS.

このレンズ歪みを含む場合における補間処理を、図15を参照して説明する。なお、図15においては、x方向およびy方向にそれぞれ4つ並んだ4×4=16個からなる画素データを用いて出力画像の画素データを決定する場合の例示である。なお、このレンズ歪み補正についての補間処理の方法は、特開2004−80545公報に詳細に記載されているものを適用したものであり、詳細な説明は、上記公報に譲り、ここでは要点のみを説明する。   Interpolation processing in the case of including this lens distortion will be described with reference to FIG. FIG. 15 shows an example of determining pixel data of an output image using 4 × 4 = 16 pieces of pixel data arranged in four in the x direction and y direction, respectively. Note that the interpolation processing method for the lens distortion correction is the one described in detail in Japanese Patent Application Laid-Open No. 2004-80545, and the detailed description is given in the above publication, and only the main points are described here. explain.

図15(A)は、歪みを伴う画像データを構成する点B1〜B4が、水平方向の補間により、それぞれ点B10〜B40の画像データに変換された様子を示す図である。また、図15(B)は、さらに垂直方向の補間により、点B10〜B40が、それぞれb1〜b4の画素データに変換された様子を示している。   FIG. 15A is a diagram illustrating a state in which points B1 to B4 constituting image data with distortion are converted into image data of points B10 to B40, respectively, by horizontal interpolation. FIG. 15B shows a state in which points B10 to B40 are converted into pixel data b1 to b4, respectively, by further vertical interpolation.

この場合、この実施形態では、図15(A)の左側の歪みを伴う画像データを構成する点B1〜B4は、水平方向の手ぶれ補正量が含まれたものと考えることができる。図15(A)の場合の水平方向の補間は、各点B1〜B4のそれぞれに対して、前述した例えば図の場合を適用することで行なうことができる。つまり、水平FIRフィルタを用いる1次元補間演算でよい。   In this case, in this embodiment, it can be considered that the points B1 to B4 constituting the image data with distortion on the left side of FIG. 15A include the amount of camera shake correction in the horizontal direction. The interpolation in the horizontal direction in the case of FIG. 15A can be performed by applying, for example, the case of the above-described figure to each of the points B1 to B4. That is, a one-dimensional interpolation calculation using a horizontal FIR filter may be used.

また、図15(B)の垂直方向の場合にも同様に、図15(B)で、例えば点B30に対しては、垂直方向に連続した当該点B30を跨ぐ、破線内の4つの格子点(点K20〜K23)における画像データに、前述した図13または図14と同様の考え方による乗算係数を用いて補間処理を実行することにより、点b3の画素データが算出される。したがって、垂直方向についても、垂直FIRフィルタによる1次元補間演算でよい。   Similarly, in the case of the vertical direction in FIG. 15B, in FIG. 15B, for example, for the point B30, four lattice points in the broken line straddling the point B30 continuous in the vertical direction. The pixel data of the point b3 is calculated by performing interpolation processing on the image data at (points K20 to K23) using the multiplication coefficient based on the same concept as in FIG. 13 or FIG. Accordingly, a one-dimensional interpolation operation using a vertical FIR filter may be performed in the vertical direction.

[水平処理ブロック51における処理動作]
[水平処理用手ぶれ補正量積分部511の積分処理]
図16に、水平処理用手ぶれ補正量積分部511における積分処理動作のフローチャートを示す。
[Processing Operation in Horizontal Processing Block 51]
[Integration Processing of Horizontal Processing Shake Correction Amount Integration Unit 511]
FIG. 16 shows a flowchart of the integration processing operation in the horizontal processing image stabilization amount integration unit 511.

まず、初期y座標(水平ライン位置に対応)SYに、水平同期信号H−SYNC(ここでは、水平同期信号H−SYNCは、一般的な水平走査信号のうち、有効画像領域以外をマスクしたタイミング信号を意味するものとする)毎に「step」という値を加算して行く(ステップS1)。   First, the initial y-coordinate (corresponding to the horizontal line position) SY and the horizontal synchronization signal H-SYNC (here, the horizontal synchronization signal H-SYNC is a timing at which a portion other than the effective image area in the general horizontal scanning signal is masked. A value “step” is added every time the signal is assumed (step S1).

初期y座標SYは、出力画像の最初の1水平ライン目が、CMOSイメージャ上の総画素の座標系(以後絶対座標系と呼ぶ)のどこに位置するかを表しており、一般的には「0」ではない。   The initial y-coordinate SY represents where the first horizontal line of the output image is located in the coordinate system of all pixels on the CMOS imager (hereinafter referred to as an absolute coordinate system). "is not.

これは、動画時には、通常、CMOSイメージャ上の全画素が、信号処理部5に入力されるのではなく、CMOSイメージャ内で垂直方向に平均加算されてから、後段の信号処理部5に入力されるからである。また、信号処理部5に入力されてからでも、幾つかの処理を経るため、1水平ライン目の絶対座標は「0」でないことの方が多いからである。更に、入力画像データに対して、垂直方向の部分拡大処理を行なう場合には、初期y座標SYは、画面の中ほどの水平ライン位置となるので、非常に大きい値をとることもあり得るからである。   This is because, during moving images, not all pixels on the CMOS imager are normally input to the signal processing unit 5 but are averaged in the vertical direction within the CMOS imager and then input to the signal processing unit 5 in the subsequent stage. This is because that. In addition, even after being input to the signal processing unit 5, since some processes are performed, the absolute coordinates of the first horizontal line are often not “0”. Further, when performing the partial enlargement process in the vertical direction on the input image data, the initial y coordinate SY is a horizontal line position in the middle of the screen, and can take a very large value. It is.

ステップS1で、1水平同期信号H−SYNC毎に加算する「step」という値は、ライン間隔の絶対座標系における垂直座標の増量を表わすが、上述したCMOSイメージャ内もしくは水平処理ブロックの前段における、垂直方向の複数ラインの画像データの平均加算により、1以外に2や4といった値をとる可能性がある。   In step S1, the value “step” added for each horizontal synchronization signal H-SYNC represents an increase in the vertical coordinate in the absolute coordinate system of the line interval, but in the CMOS imager or in the preceding stage of the horizontal processing block. There is a possibility of taking a value such as 2 or 4 in addition to 1 by averaging the image data of a plurality of lines in the vertical direction.

さて、ステップS1で、初期y座標値をSYとして、1水平同期信号H−SYNC毎に、値stepを加算することにより、現在処理している水平ラインの絶対座標が求まり、当該絶対座標の整数成分vp_i(ステップS2)が、水平補正速度成分X_STB_*(*は0〜7のいずれかである。すなわち、水平補正速度成分X_STB_*は、X_STB_0〜X_STB_7のいずれかを意味する。以下、同じ。)を、現時点までに積分すべき積分回数に対応する。ここで、この積分回数は、1画面内における積算値である。   In step S1, the initial y-coordinate value is set as SY, and the value step is added for each horizontal synchronization signal H-SYNC, thereby obtaining the absolute coordinate of the currently processed horizontal line. The component vp_i (step S2) is the horizontal correction speed component X_STB_ * (* is any one of 0 to 7. That is, the horizontal correction speed component X_STB_ * means any one of X_STB_0 to X_STB_7. The same applies hereinafter. ) Corresponds to the number of integrations to be integrated so far. Here, the number of integrations is an integrated value in one screen.

次に、現在処理している水平ライン(以下、現処理ラインという)の絶対座標の整数成分vp_iと、現処理ラインの1水平ライン前までに積分した回数(積分回数hstb_cnt)とを比較する。これにより、現処理ラインにおいて、あと何回積分すれば良いかが分かり、その回数分だけ、処理単位サイクル(1水平周期よりも十分に短い)毎にトリガTG1が発生する(ステップS3)。   Next, the integer component vp_i of the absolute coordinates of the currently processed horizontal line (hereinafter referred to as the current processing line) is compared with the number of integrations (integration count hstb_cnt) up to one horizontal line before the current processing line. As a result, it is understood how many times the current processing line should be integrated, and the trigger TG1 is generated every processing unit cycle (sufficiently shorter than one horizontal period) (step S3).

このトリガTG1が発生する毎に、積分回数hstb_cntは1づつインクリメントする(ステップS4、ステップS5)。   Each time this trigger TG1 is generated, the integration number hstb_cnt is incremented by 1 (steps S4 and S5).

そして、このトリガTG1ごとに、水平補正速度成分X_STB_0〜X_STB_7のうちの、現処理ラインが所在する分割画像区間についての水平補正速度成分を加算することにより、積分処理を行ない、水平手ぶれ補正量SX_ADDを得る(ステップS6)。ここで、図16のステップS6における「stb_x」は、水平補正速度成分X_STB_0〜X_STB_7のいずれかの値である。すなわち、「stb_x」は、現処理ラインが所在する分割画像区間についての水平補正速度成分の値である。   Then, for each trigger TG1, integration processing is performed by adding the horizontal correction speed components for the divided image section in which the current processing line is located among the horizontal correction speed components X_STB_0 to X_STB_7, and the horizontal camera shake correction amount SX_ADD. Is obtained (step S6). Here, “stb_x” in step S6 of FIG. 16 is any value of the horizontal correction speed components X_STB_0 to X_STB_7. That is, “stb_x” is the value of the horizontal correction speed component for the divided image section where the current processing line is located.

また、水平レンズ歪み水平補正量データを、水平レンズ歪み水平補正量データデコード部121から取得するためには、補正対象部位の画素のx座標だけではなくy座標も必要であり、かつ、当該y座標は、CMOS手ぶれの影響を受けているため、この水平処理用手ぶれ補正量積分部511においても、垂直手ぶれ補正量SY_ADDを積分して得るようにする。   In addition, in order to acquire the horizontal lens distortion horizontal correction amount data from the horizontal lens distortion horizontal correction amount data decoding unit 121, not only the x coordinate of the pixel of the correction target part but also the y coordinate are necessary, and the y Since the coordinates are affected by the CMOS camera shake, the horizontal camera shake correction amount integration unit 511 also obtains the vertical camera shake correction amount SY_ADD by integrating.

すなわち、ステップS3で発生するトリガTG1ごとに、垂直補正速度成分Y_STB_0〜Y_STB_7のうちの、現処理ラインが所在する分割画像区間についての垂直補正速度成分を加算することにより、積分処理を行ない、垂直手ぶれ補正量SY_ADDを得る(ステップS7)。ここで、図16のステップS7における「stb_y」は、垂直補正速度成分Y_STB_0〜Y_STB_7のいずれかの値である。すなわち、「stb_y」は、現処理ラインが所在する分割画像区間についての垂直補正速度成分の値である。   That is, for each trigger TG1 generated in step S3, integration processing is performed by adding the vertical correction speed components for the divided image section in which the current processing line is located, of the vertical correction speed components Y_STB_0 to Y_STB_7. A camera shake correction amount SY_ADD is obtained (step S7). Here, “stb_y” in step S7 in FIG. 16 is one of the values of the vertical correction speed components Y_STB_0 to Y_STB_7. That is, “stb_y” is the value of the vertical correction speed component for the divided image section where the current processing line is located.

ステップS1で、1水平同期信号H−SYNC毎に加算される値「step」=1であって、画像の拡大などではない通常の画像出力の場合には、トリガTG1は、1水平同期信号H−SYNC毎に発生するため、ステップS6では、1水平ライン毎に「stb_x」を加算(積分)し、ステップS7では1水平ライン毎に「stb_y」を加算(積分)するものである。   In step S1, the value “step” added for each horizontal synchronization signal H-SYNC = 1, and in the case of normal image output that is not image enlargement or the like, the trigger TG1 is set to one horizontal synchronization signal H. Since this occurs every SYNC, “stb_x” is added (integrated) for each horizontal line in step S6, and “stb_y” is added (integrated) for each horizontal line in step S7.

こうして得られる水平手ぶれ補正量SX_ADDは、前述もしたように、CMOSイメージャ上での各水平ラインの水平方向の読み出し開始位置の補正量、すなわち、水平処理ブロック51における水平方向画像歪み補正処理における各ラインの水平初期位置(水平オフセット)そのものとなる。補正対象部位としての水平ラインの各画素のx座標は、この水平手ぶれ補正量SX_ADDだけ、水平方向にシフトされたものとなる。   As described above, the horizontal camera shake correction amount SX_ADD obtained in this way is the correction amount of the horizontal readout start position of each horizontal line on the CMOS imager, that is, each horizontal image distortion correction process in the horizontal processing block 51. This is the initial horizontal position of the line (horizontal offset). The x coordinate of each pixel of the horizontal line as the correction target portion is shifted in the horizontal direction by the horizontal camera shake correction amount SX_ADD.

また、垂直手ぶれ補正量SY_ADDは、CMOSイメージャ上での各水平ラインの垂直方向の座標シフト量となる。この値は、同一水平ライン内では同じであり、したがって、補正対象部位としての水平ラインの各画素のy座標は、当該垂直手ぶれ補正量SY_ADDだけ、垂直方向にシフトされたものとなる。   The vertical camera shake correction amount SY_ADD is a vertical coordinate shift amount of each horizontal line on the CMOS imager. This value is the same in the same horizontal line. Therefore, the y coordinate of each pixel of the horizontal line as the correction target part is shifted in the vertical direction by the vertical camera shake correction amount SY_ADD.

このように、水平手ぶれ補正量SX_ADDおよび垂直手ぶれ補正量SY_ADDにより、CMOS手ぶれに応じて補正された画素位置の情報は、後述するように、当該画素位置における水平方向のレンズ歪みを取得するための情報として用いられる。   As described later, the pixel position information corrected in accordance with the CMOS camera shake by the horizontal camera shake correction amount SX_ADD and the vertical camera shake correction amount SY_ADD is used to acquire the horizontal lens distortion at the pixel position as described later. Used as information.

上述したように、ステップS6およびステップS7では、現処理ラインが、1画面分(1フレーム=1垂直同期周期)を垂直方向に8分割した分割画像区間のどこに属するかによって、水平補正速度成分X_STB_0〜X_STB_7のうちのいずれか1つ、および垂直補正速度成分Y_STB_0〜Y_STB_7のうちのいずれか1つを選択しなければならない。そのための仕組みが、図16の残りの部分の処理である。   As described above, in steps S6 and S7, the horizontal correction speed component X_STB_0 depends on where the current processing line belongs to the divided image section obtained by dividing one screen (one frame = 1 vertical synchronization cycle) into eight in the vertical direction. Any one of ~ X_STB_7 and any one of the vertical correction speed components Y_STB_0 to Y_STB_7 must be selected. The mechanism for this is the processing of the remaining part of FIG.

この例では、分割画像区間分のライン数の加算値stb_gridが定義される(ステップS8)。この加算値stb_gridの初期値は、1分割画像区間のライン数DIVである。   In this example, an added value stb_grid of the number of lines for the divided image section is defined (step S8). The initial value of the added value stb_grid is the number of lines DIV in one divided image section.

そして、この加算値stb_gridと、積分回数hstb_cntとを比較し、積分回数hstb_cntが加算値stb_gridを超える毎に、トリガTG2を発生する(ステップS9)。そして、トリガTG2が発生するごとに、加算値hstb_cntに、1分割画像区間のライン数DIVを加算する(ステップS10)。   Then, the addition value stb_grid is compared with the integration number hstb_cnt, and a trigger TG2 is generated every time the integration number hstb_cnt exceeds the addition value stb_grid (step S9). Each time the trigger TG2 is generated, the number of lines DIV in one divided image section is added to the addition value hstb_cnt (step S10).

以上の処理により、現処理ラインが次の分割画像区間に移る毎に、トリガTG2が発生する。したがって、現処理ラインが各分割画像区間Pdiv_0〜Pdiv_7の何れに存在するかの分割区間値HDIV_CNTを定義し(ステップS11)、この分割区間値HDIV_CNTを、トリガTG2が発生する毎に、1づつインクリメントする(ステップS12)。すると、分割区間値HDIV_CNTは、現処理ラインが所在する各分割画像区間Pdiv_0〜Pdiv_7のそれぞれに対応して「0」〜「7」の値を取る。すなわち、分割区間値HDIV_CNTは、水平処理の進捗度合いを示すものとなる。   With the above processing, the trigger TG2 is generated every time the current processing line moves to the next divided image section. Therefore, a divided section value HDIV_CNT that defines in which of the divided image sections Pdiv_0 to Pdiv_7 the current processing line is defined (step S11), and this divided section value HDIV_CNT is incremented by 1 every time the trigger TG2 is generated. (Step S12). Then, the divided section value HDIV_CNT takes a value of “0” to “7” corresponding to each of the divided image sections Pdiv_0 to Pdiv_7 where the current processing line is located. That is, the divided section value HDIV_CNT indicates the progress degree of the horizontal processing.

ステップS6、ステップS7では、この分割区間値HDIV_CNTを参照して、「stb_x」、「stb_y」を決定する。   In step S6 and step S7, “stb_x” and “stb_y” are determined with reference to this divided section value HDIV_CNT.

なお、この例では、分割区間値HDIV_CNT=8のときには、1フレーム分の画像データについての処理が終了したことを意味する。そして、分割区間値HDIV_CNT=8に、「1」が加わると、分割区間値HDIV_CNT=0となるように計算される。   In this example, when the divided section value HDIV_CNT = 8, this means that the processing for the image data for one frame has been completed. When “1” is added to the divided section value HDIV_CNT = 8, the divided section value HDIV_CNT = 0 is calculated.

この分割区間値HDIV_CNTは、また、垂直処理ブロック52およびレジスタブロック53に、水平処理ブロック51での現処理ラインが何れの分割画像区間に所在しているかを示すために、すなわち、水平処理の進捗状況を報知するために供給される。   This divided section value HDIV_CNT is also used to indicate in which divided image section the current processing line in the horizontal processing block 51 is located in the vertical processing block 52 and the register block 53, that is, the progress of the horizontal processing. Supplied to inform the situation.

[水平画像処理部512の処理動作]
図17は、水平画像処理部512の構成例を示すものである。この図17の例では、前述の図16のフローチャートにおける水平同期信号H−SYNC毎に値「step」を初期y座標SYに加算する加算部101が、この水平画像処理部512に含まれるものとしており、このため、この水平画像処理部512に初期y座標SYが入力される。さらに、この水平画像処理部512には初期x座標SXが入力される。これら初期y座標SYおよび初期x座標SXは、1フレームの先頭で、例えば制御部10で設定されて入力される。
[Processing Operation of Horizontal Image Processing Unit 512]
FIG. 17 shows a configuration example of the horizontal image processing unit 512. In the example of FIG. 17, it is assumed that the horizontal image processing unit 512 includes an addition unit 101 that adds the value “step” to the initial y coordinate SY for each horizontal synchronization signal H-SYNC in the flowchart of FIG. Therefore, the initial y coordinate SY is input to the horizontal image processing unit 512. Further, an initial x coordinate SX is input to the horizontal image processing unit 512. These initial y-coordinate SY and initial x-coordinate SX are set and input by the control unit 10, for example, at the head of one frame.

そして、加算部101からの、水平同期信号H−SYNC毎に値「step」が加算されたy座標値SY´は、水平処理用手ぶれ補正量積分部511に供給される。すると、この水平処理用手ぶれ補正量積分部511からは、現処理ラインの先頭のx座標のオフセット値として、水平手ぶれ補正量SX_ADDが返ってくると共に、現処理ラインのy座標のオフセット値SY_ADDが返ってくる。   Then, the y coordinate value SY ′ obtained by adding the value “step” for each horizontal synchronization signal H-SYNC from the adding unit 101 is supplied to the camera shake correction amount integrating unit 511 for horizontal processing. Then, the horizontal camera shake correction amount integration unit 511 returns the horizontal camera shake correction amount SX_ADD as the offset value of the first x coordinate of the current processing line, and the y coordinate offset value SY_ADD of the current processing line. Come back.

水平画像処理部512では、加算部102において、各水平ラインの先頭で一回だけ、水平処理用手ぶれ補正量積分部511からの水平手ぶれ補正量SX_ADDを、初期x座標SXに加算する。また、加算部103において、各水平ラインの先頭で一回だけ、水平処理用手ぶれ補正量積分部511からの垂直手ぶれ補正量SY_ADDを、初期y座標SYに加算する。   In the horizontal image processing unit 512, the addition unit 102 adds the horizontal camera shake correction amount SX_ADD from the horizontal processing camera shake correction amount integration unit 511 to the initial x coordinate SX only once at the head of each horizontal line. In addition, the adding unit 103 adds the vertical camera shake correction amount SY_ADD from the horizontal processing camera shake correction amount integrating unit 511 to the initial y coordinate SY only once at the head of each horizontal line.

そして、加算部102の出力値に対して、画素処理クロックCLKごとに、水平拡大・縮小のパラメータ並びに水平方向の解像度変換のパラメータである値「hmag」を、加算部104により加算する。この加算部104の出力値hx_addは、レンズ歪み水平補正量データデコード部121に対する引数としての座標(x、y)データのうちのx座標として供給する。   Then, the value “hmag”, which is a horizontal enlargement / reduction parameter and a horizontal resolution conversion parameter, is added to the output value of the adding unit 102 for each pixel processing clock CLK by the adding unit 104. The output value hx_add of the adding unit 104 is supplied as the x coordinate of the coordinate (x, y) data as an argument to the lens distortion horizontal correction amount data decoding unit 121.

また、加算部103の出力値hy_addは、レンズ歪み水平補正量データデコード部121に対する引数としての座標(x,y)データのうちのy座標として供給する。   Further, the output value hy_add of the adding unit 103 is supplied as the y coordinate of the coordinate (x, y) data as an argument to the lens distortion horizontal correction amount data decoding unit 121.

レンズ歪み水平補正量データデコード部121からは、これに入力された座標(x,y)の撮像素子上のレンズ歪み水平補正量データCORR_Xが出力される。このレンズ歪み水平補正量CORR_Xは、加算部104の出力値hx_addに、画素処理クロックCLKごとに加算部106で加算される。   The lens distortion horizontal correction amount data decoding unit 121 outputs lens distortion horizontal correction amount data CORR_X on the image sensor at the coordinates (x, y) input thereto. This lens distortion horizontal correction amount CORR_X is added to the output value hx_add of the adder 104 by the adder 106 for each pixel processing clock CLK.

なお、加算部104からの水平座標の補正出力値hx_addは、レンズ歪み水平補正量データデコード部121からレンズ歪み水平補正量データCORR_Xを得るときの遅延量分の遅延部105を介して加算部106に供給される。   The horizontal coordinate correction output value hx_add from the adding unit 104 is added to the adding unit 106 via the delay unit 105 corresponding to the delay amount when the lens distortion horizontal correction amount data decoding unit 121 obtains the lens distortion horizontal correction amount data CORR_X. To be supplied.

そして、加算部106からの出力値X_ADDは、比較部107および108、また、小数部抽出部109および整数部抽出部110に供給される。   Then, the output value X_ADD from the addition unit 106 is supplied to the comparison units 107 and 108, the decimal part extraction unit 109, and the integer part extraction unit 110.

比較部107は、加算部106からの出力値X_ADDを、1画素処理クロックCLKだけ前の出力値X_ADDの整数成分と比較し、差が1以上であるとき、すなわち、画素位置が1画素分以上ジャンプしたときに、そのジャンプを示す信号SKIPを出力する。この例では、このジャンプを示す信号SKIPを参照することで、次に画素処理クロックCLKのタイミングで処理すべきジャンプした画素位置を知ることができる。この信号SKIPは、FIFOメモリコントローラ111に供給される。   The comparison unit 107 compares the output value X_ADD from the addition unit 106 with the integer component of the output value X_ADD that is one pixel processing clock CLK before, and when the difference is 1 or more, that is, the pixel position is one pixel or more. When jumping, a signal SKIP indicating the jump is output. In this example, by referring to the signal SKIP indicating this jump, it is possible to know the jumped pixel position to be processed next at the timing of the pixel processing clock CLK. This signal SKIP is supplied to the FIFO memory controller 111.

また、比較部108は、加算部106からの出力値X_ADDを、1画素処理クロックCLKだけ前の出力値X_ADDの整数成分と比較し、差が1より小さいときに、その旨を示す信号HOLDを出力する。したがって、この信号HOLDを参照することで、読み出し画素を、1画素処理クロックCLKだけ前と同じであることを知ることができる。この信号HOLDは、1ライン分の容量のFIFOラインメモリ112への書き込み及び読み出しを制御するFIFOメモリコントローラ111に供給される。FIFOラインメモリ112は、前述したが、画像メモリ6のメモリ領域の一部を用いても良い。   Further, the comparison unit 108 compares the output value X_ADD from the addition unit 106 with the integer component of the output value X_ADD that is one pixel processing clock CLK before, and when the difference is smaller than 1, the signal HOLD indicating that fact is given. Output. Therefore, by referring to this signal HOLD, it is possible to know that the readout pixel is the same as before by one pixel processing clock CLK. This signal HOLD is supplied to a FIFO memory controller 111 that controls writing and reading to the FIFO line memory 112 having a capacity of one line. As described above, the FIFO line memory 112 may use a part of the memory area of the image memory 6.

小数部抽出部109は、加算部106からの出力値X_ADDの小数部を、画素処理クロックCLK毎に抽出し、抽出した小数部の値X_PHASEを出力する。この少数部の値X_PHASEは、水平FIRフィルタ113を備える水平補間処理部114に供給される。水平補間処理部114では、この小数部の値X_PHASEに基づいて乗算係数テーブルを検索し、水平FIRフィルタ113に供給する乗算係数を得るようにする。   The decimal part extraction unit 109 extracts the decimal part of the output value X_ADD from the addition unit 106 for each pixel processing clock CLK, and outputs the extracted decimal part value X_PHASE. The decimal part value X_PHASE is supplied to the horizontal interpolation processing unit 114 including the horizontal FIR filter 113. The horizontal interpolation processing unit 114 searches the multiplication coefficient table based on the decimal part value X_PHASE to obtain the multiplication coefficient to be supplied to the horizontal FIR filter 113.

整数部抽出部110は、加算部106からの出力値X_ADDの整数部を、水平同期信号H−SYNCにより各水平ラインの先頭で抽出し、抽出した整数部の値ST_POSを出力する。この整数部の値ST_POSは、現処理ラインの初期x座標としてFIFOメモリコントローラ111に供給される。   The integer part extractor 110 extracts the integer part of the output value X_ADD from the adder 106 at the head of each horizontal line by the horizontal synchronization signal H-SYNC, and outputs the extracted integer part value ST_POS. The integer part value ST_POS is supplied to the FIFO memory controller 111 as the initial x coordinate of the current processing line.

FIFOメモリコントローラ111は、入力画像データDinについて、水平処理用FIFOラインメモリ112を用いて、水平手ぶれ補正量SX_ADDとレンズ歪み水平補正量CORR_Xとの加算量の整数部に基づいた補正処理を行なうと共に、水平拡大・縮小処理および水平方向の解像度変換を行なう。ここで、水平処理用FIFOラインメモリ112が、実際に1水平ライン分相当のサイズを必要とするのは、後述するように、画像の部分拡大処理をサポートすることを考慮する場合のみである。   The FIFO memory controller 111 uses the horizontal processing FIFO line memory 112 for the input image data Din, and performs correction processing based on the integer part of the addition amount of the horizontal camera shake correction amount SX_ADD and the lens distortion horizontal correction amount CORR_X. Then, horizontal enlargement / reduction processing and horizontal resolution conversion are performed. Here, the horizontal processing FIFO line memory 112 actually requires a size corresponding to one horizontal line only when consideration is given to supporting partial enlargement processing of an image, as will be described later.

すなわち、FIFOメモリコントローラ111は、入力画像データDinについて、前記整数部の値ST_POSを用いて、出力画像データとして読み出す各水平ラインの画素データの初期x座標を決める。また、FIFOメモリコントローラ111は、信号SKIPおよび信号HOLDを画素処理クロックCLKごとに参照し、水平処理用FIFOラインメモリ112から読み出す画素データを決定するようにする。   That is, the FIFO memory controller 111 uses the integer part value ST_POS for the input image data Din to determine the initial x coordinate of the pixel data of each horizontal line to be read as output image data. The FIFO memory controller 111 determines the pixel data to be read from the horizontal processing FIFO line memory 112 by referring to the signal SKIP and the signal HOLD for each pixel processing clock CLK.

そして、FIFOメモリコントローラ111は、以上のようにして読み出した水平ラインの画素データを出力画像データDHimdとして、データイネーブル信号DATA_ENと共に、水平補間処理部114に供給する。   Then, the FIFO memory controller 111 supplies the horizontal line pixel data read out as described above to the horizontal interpolation processing unit 114 together with the data enable signal DATA_EN as output image data DHimd.

水平補間処理部114は、データイネーブル信号DATA_ENがイネーブル状態となっているときに入力される画像データを有効データとして、水平FIRフィルタ113を用いて前述したような水平方向の補間処理を実行する。前述したように、このときに水平補間処理部112に入力される小数部の値X_PHASEを用いて、水平FIRフィルタ113に供給する乗算係数が決定されている。   The horizontal interpolation processing unit 114 performs the above-described horizontal interpolation processing using the horizontal FIR filter 113 using the image data input when the data enable signal DATA_EN is in the enabled state as valid data. As described above, the multiplication coefficient to be supplied to the horizontal FIR filter 113 is determined using the decimal part value X_PHASE input to the horizontal interpolation processing unit 112 at this time.

こうして、水平補間処理部112からは、水平手ぶれ補正量SX_ADDとレンズ歪み水平補正量CORR_Xとの加算量に応じて水平方向補正処理がなされると共に、水平方向の拡大・縮小処理および水平方向の解像度変換がなされた画像データDHoutが得られる。このDHoutは、垂直処理ブロック52に供給される。   Thus, the horizontal interpolation processing unit 112 performs horizontal correction processing according to the addition amount of the horizontal camera shake correction amount SX_ADD and the lens distortion horizontal correction amount CORR_X, and also performs horizontal enlargement / reduction processing and horizontal resolution. The converted image data DHout is obtained. This DHout is supplied to the vertical processing block 52.

ところで、上述の説明では、水平処理用手ぶれ補正量積分部511の水平手ぶれ補正量SX_ADDおよび垂直手ぶれ補正量SY_ADDの積分処理と、水平画像処理部511の水平拡大・縮小画像処理、水平解像度変換処理の、互いの処理タイミングについて特に触れなかったが、水平手ぶれ補正量SX_ADDおよび垂直手ぶれ補正量SY_ADDの積分処理を、遅延無しで、水平拡大・縮小画像処理、水平解像度変換処理との単純なシーケンス処理で行なうことが好都合なのは、図18の上側の図18(A)に示すように、垂直方向の部分切り出し及び部分拡大をサポートしない場合にほぼ限られる。図18で、V−SYNCは垂直同期信号を示し、また、ST_TGは、有効走査ラインの開始時点を示している。また、図18で、網掛けを付して示した四角で囲まれた区間は、それぞれの処理区間を示している。   In the above description, the horizontal camera shake correction amount integration unit 511 performs horizontal camera shake correction amount SX_ADD and vertical camera shake correction amount SY_ADD integration processing, horizontal image processing unit 511 horizontal enlargement / reduction image processing, and horizontal resolution conversion processing. Although the mutual processing timing was not particularly mentioned, the integration processing of the horizontal camera shake correction amount SX_ADD and the vertical camera shake correction amount SY_ADD is a simple sequence process with horizontal enlargement / reduction image processing and horizontal resolution conversion processing without delay. As shown in FIG. 18A on the upper side of FIG. 18, it is almost limited to the case where vertical segmentation and partial enlargement are not supported. In FIG. 18, V-SYNC indicates a vertical synchronization signal, and ST_TG indicates the start point of an effective scanning line. Further, in FIG. 18, the sections surrounded by the squares shown with shading indicate the respective processing sections.

一方、垂直方向の部分切り出し、もしくは部分拡大をサポートする場合、初期y座標SYが非常に大きな値を取り得るため、フレーム先頭の積分処理に、相当長いサイクル数(画素処理サイクル数)を要してしまう可能性がある。図18下側の(B)のシーケンスにおける期間tmがそのための積分期間である。   On the other hand, when supporting partial cutout or partial enlargement in the vertical direction, the initial y-coordinate SY can take a very large value, so a considerably long cycle number (pixel processing cycle number) is required for integration processing at the beginning of the frame. There is a possibility that. A period tm in the sequence (B) on the lower side of FIG. 18 is an integration period for that purpose.

このようになると、図18上側の(A)のシーケンスでは、最初の拡大・縮小処理が水平同期信号H−SYNCの1周期期間をオーバーしてしまうため、次の水平同期信号H−SYNCで入力されて来る2ライン目の画像データを保持しておくためのラインメモリが必要となる。   In this case, in the sequence (A) on the upper side of FIG. 18, the first enlargement / reduction process exceeds one cycle period of the horizontal synchronization signal H-SYNC, so that the next horizontal synchronization signal H-SYNC is input. A line memory is required to hold the image data for the second line.

そこで、この実施形態では、図18下側の(B)のシーケンスに示すように、水平拡大・縮小画像処理が開始される1水平周期前から積分処理の起動を行ない、常に画像処理に対して、1水平周期だけ先行して積分処理を行なうタイミングおよびシーケンスを採用する。このため、水平処理用FIFOラインメモリ61は、1水平周期分のサイズのものがこの実施形態では用いられている。   Therefore, in this embodiment, as shown in the sequence (B) on the lower side of FIG. 18, the integration process is started one horizontal cycle before the horizontal enlargement / reduction image process is started, and the image process is always performed. The timing and sequence in which the integration process is performed in advance by one horizontal period are employed. For this reason, the horizontal processing FIFO line memory 61 has a size corresponding to one horizontal period in this embodiment.

上述した問題は、画像の部分拡大等に関わらず、水平処理は常に全入力ラインに対して処理を施す、というアーキテクチャにすれば避けられる。しかし、いずれにしても、図18上側のシーケンスを実現しようとすると、積分処理の終了信号を新たに設け、それを受けて画像処理の起動をかけなければならず、やや煩雑である。つまり、換言すれば、上述したこの実施形態で採用した手法は、既存の画像処理の回路に新たな手を加えないで済む、というメリットがあるのである。   The above-described problem can be avoided by adopting an architecture in which horizontal processing is always performed on all input lines regardless of partial enlargement of an image. However, in any case, in order to realize the sequence on the upper side of FIG. 18, it is necessary to newly provide an integration processing end signal and activate the image processing in response thereto, which is somewhat complicated. That is, in other words, the method employed in this embodiment described above has the merit that it is not necessary to add new steps to the existing image processing circuit.

なお、上述した実施形態で採用した手法は、水平同期信号H−SYNCの1周期期間内の画素処理サイクル数よりも、絶対座標系の垂直サイズが大きい場合には採用できない。その場合には、水平処理は常に全入力ラインに対して処理を施すという、上述したアーキテクチャにすれば良い。   Note that the method employed in the above-described embodiment cannot be employed when the vertical size of the absolute coordinate system is larger than the number of pixel processing cycles within one period of the horizontal synchronization signal H-SYNC. In such a case, the above-described architecture may be used in which horizontal processing is always performed on all input lines.

[垂直処理ブロック52における処理動作]
[垂直処理用手ぶれ補正量積分部521の積分処理]
次に、垂直処理用手ぶれ補正量積分部521における積分処理動作について説明する。図19は、この垂直手ぶれ補正量SY_ADDを得るための積分処理動作のフローチャートを示すものである。
[Processing Operation in Vertical Processing Block 52]
[Integration Processing of Vertical Processing Camera Shake Correction Amount Integration Unit 521]
Next, the integration processing operation in the vertical processing image stabilization amount integration unit 521 will be described. FIG. 19 shows a flowchart of the integration processing operation for obtaining the vertical camera shake correction amount SY_ADD.

この垂直処理用手ぶれ補正量積分部521の積分処理動作は、図16を用いて上述した水平処理用手ぶれ補正量積分部511の積分処理動作と類似しているが、次の点が異なる。   The integration processing operation of the vertical processing camera shake correction amount integration unit 521 is similar to the integration processing operation of the horizontal processing camera shake correction amount integration unit 511 described above with reference to FIG. 16 except for the following points.

すなわち、水平同期信号H−SYNC毎に初期y座標に加算する値が「vmag」であることと、水平処理の進捗度合いを表すHDIV_CNTを見て、ウエイト(WAIT)をかけることと、各ラインの積分処理が終了したことを表わす積分完了信号STB_RDYを生成して、垂直信号処理モジュールへ伝達すること、の以上3点である。   That is, the value to be added to the initial y coordinate for each horizontal synchronization signal H-SYNC is “vmag”, HDIV_CNT indicating the progress of horizontal processing, and weight (WAIT) is applied. The integration completion signal STB_RDY indicating the completion of the integration processing is generated and transmitted to the vertical signal processing module.

この実施形態では、垂直画像処理において垂直方向の拡大・縮小を想定しており、また、垂直解像度の変換を行なうことを想定しているので、値「vmag」は垂直拡大・縮小の倍率パラメータおよび垂直解像度変換に応じたパラメータを表わしている。したがって、垂直処理ブロック52では、水平処理ブロック51から出力される画像データを全て処理するのではなく、拡大・縮小処理および垂直解像度変換処理後に出力するラインの垂直座標を基準として処理を行なう。   In this embodiment, the vertical image processing is assumed to be enlarged / reduced in the vertical direction, and conversion of the vertical resolution is assumed. Therefore, the value “vmag” is a vertical enlargement / reduction magnification parameter and It represents parameters according to vertical resolution conversion. Therefore, the vertical processing block 52 does not process all the image data output from the horizontal processing block 51, but performs processing based on the vertical coordinates of the lines output after the enlargement / reduction processing and the vertical resolution conversion processing.

そのため、この垂直方向の積分処理においても、実際に、この垂直方向の積分処理後の垂直画像処理の対象となる座標における積分値を出力することが求められることから、垂直方向の座標増分パラメータを水平同期信号H−SYNC毎に加算するのである。なお、画像の拡大・縮小や垂直解像度変換を伴わずに、CMOS手ぶれの補正のみを行なうのであれば、vmag = 1として良い。   For this reason, even in this vertical integration process, it is actually required to output the integration value at the target coordinates of the vertical image processing after the vertical integration process. It is added for each horizontal synchronizing signal H-SYNC. Note that vmag = 1 may be used if only CMOS camera shake correction is performed without enlarging / reducing the image or converting the vertical resolution.

水平方向の積分処理とは異なる二つ目の、分割区間値HDIV_CNTを見て、水平処理の進捗度合いを観測する必要性は、水平処理を垂直処理が追い越すことがあってはならないからである。一般的な画像の垂直拡大・縮小処理、解像度変換処理においては、垂直処理が水平処理を追い越す、というのは、まだ生成されていない画像に対して処理を施すことであるため、自ずとウエイトをかける仕組みが必要となる。同様に、この垂直方向の積分処理においても、画像を直接扱う訳ではないが、水平処理を追い越さない仕掛けが必要なのである。   The necessity of observing the progress of the horizontal processing by looking at the second divided section value HDIV_CNT, which is different from the integration processing in the horizontal direction, is because the vertical processing should not overtake the horizontal processing. In general image vertical enlargement / reduction processing and resolution conversion processing, vertical processing overtakes horizontal processing because processing is performed on an image that has not yet been generated. A mechanism is required. Similarly, in this vertical integration process, an image is not directly handled, but a device that does not overtake the horizontal process is necessary.

もう少し詳細に説明する。水平および垂直方向の積分パラメータである水平補正速度成分X_STB_*(*は0〜7のいずれかであり、X_STB_*は、X_STB_0〜X_STB_7のいずれかを意味する。以下同じ)と、垂直補正速度成分Y_STB_*(*は0〜7のいずれかであり、Y_STB_0〜Y_STB_7のいずれかを意味する。以下、同じ)は、処理を行っている水平ラインのサンプリング時刻(厳密に言うと露光期間の中心時点であることは既に説明)付近の手ぶれ速度ベクトル(手ぶれの速度と方向)の、それぞれ水平成分、垂直成分の逆符号である。したがって、露光時間が極めて短い時間の場合まで考慮すると、水平補正速度成分X_STB_*と垂直補正速度成分Y_STB_*は、対応する水平ラインの画像データが入力される直前まで確定できない場合がある。   I will explain a little more in detail. Horizontal correction speed component X_STB_ * (* is any one of 0 to 7, X_STB_ * means any one of X_STB_0 to X_STB_7, and so on), which are integration parameters in the horizontal and vertical directions, and the vertical correction speed component. Y_STB_ * (* is one of 0 to 7, meaning any of Y_STB_0 to Y_STB_7. The same applies hereinafter) is the sampling time of the horizontal line being processed (strictly speaking, the central point of the exposure period) That is already explained) The camera shake velocity vectors in the vicinity (camera shake velocity and direction) are the opposite signs of the horizontal component and the vertical component, respectively. Therefore, considering the case where the exposure time is extremely short, the horizontal correction speed component X_STB_ * and the vertical correction speed component Y_STB_ * may not be determined until immediately before the image data of the corresponding horizontal line is input.

後で詳述するレジスタブロック53では、この事情を考慮し、水平方向の積分処理において現在処理しているラインが属する分割画像区間を意味する分割区間値HDIV_CNTの値を見て、水平補正速度成分X_STB_*と垂直補正速度成分Y_STB_*を、水平処理ブロック用レジスタと、垂直処理ブロック用レジスタにラッチする。したがって、水平処理ブロック51では、特別な仕組みを設けなくとも、入力された画像を順次処理して行けば良いのである。   In consideration of this situation, the register block 53, which will be described in detail later, looks at the value of the divided section value HDIV_CNT that means the divided image section to which the line currently processed in the horizontal integration process belongs, and the horizontal correction speed component X_STB_ * and vertical correction speed component Y_STB_ * are latched in the horizontal processing block register and the vertical processing block register. Therefore, in the horizontal processing block 51, it is only necessary to sequentially process input images without providing a special mechanism.

一方、垂直処理ブロック52での積分処理では、当該積分処理を行なった結果を、後段の垂直方向画像処理の初期オフセット座標とするため、水平処理からの画像が未だ入って来ていないことに後から気付いても、その時点では既にそのラインの積分処理は終わってしまっている。つまり、そのときには、未確定の垂直補正速度成分が用いられて積分がなされてしまったことになる。   On the other hand, in the integration processing in the vertical processing block 52, the result of the integration processing is used as the initial offset coordinates of the subsequent vertical image processing, so that the image from the horizontal processing has not yet entered. However, at that point, the integration process for that line has already ended. In other words, at that time, the unconfirmed vertical correction speed component is used for integration.

そのため、積分処理の段階で、処理しようとするラインに対応した積分パラメータである垂直補正速度成分Y_STB_*が、まだ確定前であることを、水平処理の進捗度合いから判断する必要があるのである。   Therefore, at the stage of integration processing, it is necessary to determine from the degree of progress of horizontal processing that the vertical correction speed component Y_STB_ *, which is an integration parameter corresponding to the line to be processed, is not yet determined.

そのための仕組みとして、図19のように、垂直処理の進捗度合いを表わす分割区間値VDIV_CNTが、水平処理の進捗度合いを表わす分割区間値HDIV_CNTを超えてしまっていれば、ウエイトを発行し、図19の左下で、垂直処理における現処理ラインが所在する分割画像区間についての垂直補正速度成分の値である「stb_y」が未確定のままの垂直補正速度成分Y_STB_*が選択された状態で、垂直手ぶれ補正量SY_ADDに加算されるのを防ぐ。   As a mechanism for this, as shown in FIG. 19, if the divided section value VDIV_CNT representing the progress degree of the vertical processing exceeds the divided section value HDIV_CNT representing the progress degree of the horizontal processing, a weight is issued, and FIG. In the lower left of the image, in the state where the vertical correction speed component Y_STB_ * in which “stb_y” that is the value of the vertical correction speed component for the divided image section in which the current processing line is located in the vertical processing is not determined is selected, It is prevented from being added to the correction amount SY_ADD.

垂直方向の積分処理(図19)が水平方向の積分(図16)と異なる、3つ目の点は、各ラインでの垂直積分が完了したことを表す積分完了信号STB_RDYの生成である。各ライン内で積分を繰り返して行なった結果、そのラインの絶対座標の整数成分vp_iと、そのフレーム内での累積積分回数vstb_cntとが一致したときに、後段の垂直画像処理モジュールに渡すべき垂直オフセットSY_ADDが求められ、それと同時に、後段の垂直画像処理の起動をかけるのが目的である。   A third point of difference between the vertical integration process (FIG. 19) and the horizontal integration (FIG. 16) is the generation of an integration completion signal STB_RDY indicating that the vertical integration in each line is completed. The vertical offset to be passed to the subsequent vertical image processing module when the integral component vp_i of the absolute coordinates of the line coincides with the cumulative integration count vstb_cnt in the frame as a result of repeated integration in each line. SY_ADD is obtained, and at the same time, the purpose is to activate the subsequent vertical image processing.

既に説明した水平方向の積分処理においては、有効画像が入力されるタイミングよりも1水平同期信号H−SYNC(1水平周期)前から積分処理を開始しておけば、有効画像に対する水平画像処理が始まるまでに積分処理を完了できることが、殆どの場合、システム的に保証可能であるが、垂直方向の積分処理では、前述のウエイトが発生する可能性があるために、直前1水平周期の時間で積分が完了することを、全ての場合において保証するのは不可能だからである。すなわち、ウエイトが発生したときには、垂直積分が完了したことを表す積分完了信号STB_RDYが発生したときに、垂直手ぶれ補正および垂直拡大・縮小処理を含む垂直画像処理を実行するようにする。   In the horizontal integration processing already described, if the integration processing is started one horizontal synchronization signal H-SYNC (one horizontal cycle) before the timing at which the effective image is input, the horizontal image processing for the effective image is performed. In most cases, it can be guaranteed systematically that the integration process can be completed by the start of the process. However, in the vertical integration process, the above-mentioned weight may be generated, so that the integration process can be completed in the time of the immediately preceding horizontal cycle. This is because it is impossible to guarantee that the integration is complete in all cases. That is, when a weight is generated, vertical image processing including vertical camera shake correction and vertical enlargement / reduction processing is executed when an integration completion signal STB_RDY indicating that vertical integration is completed is generated.

以上の機能を有する、この垂直方向の積分回路を適用した垂直方向の積分処理を図19のフローチャートを参照しながら説明する。   A vertical integration process using the vertical integration circuit having the above functions will be described with reference to the flowchart of FIG.

まず、初期y座標(水平ライン位置に対応)SYに、水平同期信号H−SYNC毎に前述した値「vmag」を加算して行く(ステップS21)。   First, the aforementioned value “vmag” is added to the initial y coordinate (corresponding to the horizontal line position) SY for each horizontal synchronization signal H-SYNC (step S21).

ステップS21で、初期y座標値をSYとして、1水平同期信号H−SYNC毎に、値vmagを加算することにより、現在処理している水平ラインの絶対座標が求まり、当該絶対座標の整数成分vp_i(ステップS22)が、垂直補正速度成分Y_STB_*(Y_STB_0〜Y_STB_7のいずれか)を、現時点までに積分すべき積分回数に対応する。ここで、この積分回数は、1画面内における積算値である。   In step S21, the initial y-coordinate value is set as SY, and the value vmag is added for each horizontal synchronization signal H-SYNC, whereby the absolute coordinate of the currently processed horizontal line is obtained, and the integer component vp_i of the absolute coordinate is obtained. (Step S22) corresponds to the number of integrations that the vertical correction speed component Y_STB_ * (any of Y_STB_0 to Y_STB_7) should be integrated up to the present time. Here, the number of integrations is an integrated value in one screen.

次に、現在処理している水平ライン、すなわち、現処理ラインの絶対座標の整数成分vp_iと、現処理ラインの1水平ライン前までに積分した回数(積分回数vstb_cnt)とを比較する。これにより、現処理ラインにおいて、あと何回積分すれば良いかが分かり、その回数分だけ、処理単位サイクル(1水平周期よりも十分に短い)毎にトリガTG3が発生する(ステップS23)。   Next, the horizontal line currently processed, that is, the integer component vp_i of the absolute coordinates of the current processing line is compared with the number of integrations (integration count vstb_cnt) one horizontal line before the current processing line. As a result, it is understood how many times the current processing line should be integrated, and the trigger TG3 is generated every processing unit cycle (which is sufficiently shorter than one horizontal period) by that number of times (step S23).

このトリガTG3が発生する毎に、積分回数vstb_cntは1づつインクリメントする(ステップS24、ステップS25)。   Each time this trigger TG3 is generated, the number of integrations vstb_cnt is incremented by 1 (steps S24 and S25).

そして、このトリガTG3ごとに、垂直補正速度成分Y_STB_0〜Y_STB_7のうちの、現処理ラインが所在する分割画像区間についての垂直補正速度成分を加算することにより、積分処理を行ない、垂直手ぶれ補正量SY_ADDを得る(ステップS26)。ここで、図19のステップS26における「stb_y」は、垂直補正速度成分Y_STB_0〜Y_STB_7のいずれかの値である。すなわち、「stb_y」は、現処理ラインが所在する分割画像区間についての垂直補正速度成分の値である。   Then, for each trigger TG3, integration processing is performed by adding the vertical correction speed components for the divided image section where the current processing line is located among the vertical correction speed components Y_STB_0 to Y_STB_7, and the vertical camera shake correction amount SY_ADD is obtained. Is obtained (step S26). Here, “stb_y” in step S <b> 26 in FIG. 19 is any one of the vertical correction speed components Y_STB_ <b> 0 to Y_STB_ <b> 7. That is, “stb_y” is the value of the vertical correction speed component for the divided image section where the current processing line is located.

また、垂直レンズ歪み水平補正量データを、垂直レンズ歪み水平補正量データデコード部122から取得するためには、補正対象部位の画素のy座標だけではなくx座標も必要であり、かつ、当該x座標は、CMOS手ぶれの影響を受けているため、この垂直処理用手ぶれ補正量積分部521においても、水平手ぶれ補正量SX_ADDを積分して得るようにする。   In addition, in order to acquire the vertical lens distortion horizontal correction amount data from the vertical lens distortion horizontal correction amount data decoding unit 122, not only the y coordinate of the pixel of the correction target part but also the x coordinate are necessary, and the x Since the coordinates are affected by the CMOS camera shake, the vertical camera shake correction amount integration unit 521 also obtains the horizontal camera shake correction amount SX_ADD by integrating.

すなわち、ステップS23で発生するトリガTG3ごとに、水平補正速度成分X_STB_0〜Y_STB_7のうちの、現処理ラインが所在する分割画像区間についての水平補正速度成分を加算することにより、積分処理を行ない、水平手ぶれ補正量SX_ADDを得る(ステップS27)。ここで、図19のステップS27における「stb_x」は、水平補正速度成分X_STB_0〜X_STB_7のいずれかの値である。すなわち、「stb_x」は、現処理ラインが所在する分割画像区間についての水平補正速度成分の値である。   That is, for each trigger TG3 generated in step S23, integration processing is performed by adding the horizontal correction speed component for the divided image section in which the current processing line is located among the horizontal correction speed components X_STB_0 to Y_STB_7, and the horizontal processing is performed. A camera shake correction amount SX_ADD is obtained (step S27). Here, “stb_x” in step S27 in FIG. 19 is one of the horizontal correction speed components X_STB_0 to X_STB_7. That is, “stb_x” is the value of the horizontal correction speed component for the divided image section where the current processing line is located.

ステップS21で、1水平同期信号H−SYNC毎に加算される値「vmag」=1であって、画像の拡大などではない通常の画像出力の場合には、トリガTG3は、1水平同期信号H−SYNC毎に発生するため、ステップS26では、1水平ライン毎に「stb_y」を加算(積分)し、ステップS27では1水平ライン毎に「stb_x」を加算(積分)するものである。   In step S21, the value “vmag” added for each horizontal synchronization signal H-SYNC = 1, and in the case of normal image output that is not image enlargement or the like, the trigger TG3 generates the horizontal synchronization signal H Since this occurs every SYNC, “stb_y” is added (integrated) for each horizontal line in step S26, and “stb_x” is added (integrated) for each horizontal line in step S27.

こうして得られる垂直手ぶれ補正量SY_ADDは、前述もしたように、CMOSイメージャ上での各水平ラインの垂直方向の読み出し開始位置の補正量、すなわち、垂直処理ブロック52における垂直方向画像歪み補正処理における各ラインの垂直位置(垂直オフセット)そのものとなる。補正対象部位としての水平ラインの各画素のy座標は、この垂直手ぶれ補正量SY_ADDだけ、垂直方向にシフトされたものとなる。   As described above, the vertical camera shake correction amount SY_ADD obtained in this way is the correction amount of the vertical readout start position of each horizontal line on the CMOS imager, that is, each vertical image distortion correction process in the vertical processing block 52. The vertical position of the line (vertical offset) itself. The y coordinate of each pixel of the horizontal line as the correction target portion is shifted in the vertical direction by this vertical camera shake correction amount SY_ADD.

また、水平手ぶれ補正量SX_ADDは、CMOSイメージャ上での各水平ラインの水平方向の座標シフト量となる。したがって、補正対象部位としての水平ラインの各画素のx座標は、当該水平手ぶれ補正量SX_ADDだけ、水平方向にシフトされたものとなる。   The horizontal camera shake correction amount SX_ADD is a horizontal coordinate shift amount of each horizontal line on the CMOS imager. Accordingly, the x coordinate of each pixel of the horizontal line as the correction target portion is shifted in the horizontal direction by the horizontal camera shake correction amount SX_ADD.

このように、水平手ぶれ補正量SX_ADDおよび垂直手ぶれ補正量SY_ADDにより、CMOS手ぶれに応じて補正された画素位置の情報は、後述するように、当該画素位置における垂直方向のレンズ歪みを取得するための情報として用いられる。   As described later, the pixel position information corrected according to the CMOS camera shake by the horizontal camera shake correction amount SX_ADD and the vertical camera shake correction amount SY_ADD is used to acquire the vertical lens distortion at the pixel position, as will be described later. Used as information.

上述したように、ステップS26およびステップS27では、現処理ラインが、1画面分(1フレーム=1垂直同期周期)を垂直方向に8分割した分割画像区間のどこに属するかによって、垂直補正速度成分Y_STB_0〜Y_STB_7のうちのいずれか1つ、および水平補正速度成分X_STB_0〜X_STB_7のうちのいずれか1つを選択しなければならない。   As described above, in step S26 and step S27, the vertical correction speed component Y_STB_0 depends on where the current processing line belongs to the divided image section obtained by dividing one screen (one frame = 1 vertical synchronization cycle) into eight in the vertical direction. Any one of -Y_STB_7 and any one of horizontal correction speed components X_STB_0-X_STB_7 must be selected.

この例では、分割画像区間分のライン数の加算値vstb_gridが定義される(ステップS28)。この加算値vstb_gridの初期値は、1分割画像区間のライン数DIVである。   In this example, an addition value vstb_grid of the number of lines for the divided image section is defined (step S28). The initial value of the added value vstb_grid is the number of lines DIV in one divided image section.

そして、この加算値vstb_gridと、積分回数vstb_cntとを比較し、積分回数vstb_cntが加算値vstb_gridを超える毎に、トリガTG4を発生する(ステップS29)。そして、トリガTG4が発生するごとに、加算値vstb_cntに、1分割画像区間のライン数DIVを加算する(ステップS30)。   Then, the addition value vstb_grid is compared with the integration count vstb_cnt, and the trigger TG4 is generated every time the integration count vstb_cnt exceeds the addition value vstb_grid (step S29). Then, every time the trigger TG4 is generated, the number of lines DIV in one divided image section is added to the addition value vstb_cnt (step S30).

以上の処理により、現処理ラインが次の分割画像区間に移る毎に、トリガTG4が発生する。したがって、現処理ラインが各分割画像区間Pdiv_0〜Pdiv_7の何れに存在するかの分割区間値VDIV_CNTを定義し(ステップS31)、この分割区間値VDIV_CNTを、トリガTG4が発生する毎に、1づつインクリメントする(ステップS32)。すると、分割区間値VDIV_CNTは、現処理ラインが所在する各分割画像区間Pdiv_0〜Pdiv_7のそれぞれに対応して「0」〜「7」の値を取る。すなわち、分割区間値VDIV_CNTは、垂直処理の進捗度合いを示すものとなる。   With the above processing, the trigger TG4 is generated every time the current processing line moves to the next divided image section. Therefore, a divided section value VDIV_CNT is defined as to which of the divided image sections Pdiv_0 to Pdiv_7 the current processing line exists (step S31), and this divided section value VDIV_CNT is incremented by 1 every time the trigger TG4 is generated. (Step S32). Then, the divided section value VDIV_CNT takes a value of “0” to “7” corresponding to each of the divided image sections Pdiv_0 to Pdiv_7 where the current processing line is located. That is, the divided section value VDIV_CNT indicates the progress degree of the vertical processing.

ステップS6、ステップS7では、この分割区間値HDIV_CNTを参照して、「stb_x」、「stb_y」を決定する。   In step S6 and step S7, “stb_x” and “stb_y” are determined with reference to this divided section value HDIV_CNT.

なお、この例では、分割区間値VDIV_CNT=8のときには、1フレーム分の画像データについての処理が終了したことを意味する。そして、分割区間値VDIV_CNT=8に、「1」が加わると、分割区間値VDIV_CNT=0となるように計算される。   In this example, when the divided section value VDIV_CNT = 8, it means that the processing for the image data for one frame is completed. When “1” is added to the divided section value VDIV_CNT = 8, the divided section value VDIV_CNT = 0 is calculated.

この分割区間値VDIV_CNTは、水平処理ブロック51からの、水平処理の進捗度合いを示す分割区間値HDIV_CNTと比較され、分割区間値VDIV_CNTが分割区間値HDIV_CNTよりも大きくなったときには、水平処理を垂直処理が追い越してしまう状態を意味するので、ウエイト(WAIT)を発生して、トリガTG3の発生を待機させる。すなわち、トリガTG3は、ウエイトが解除された後に発生するように遅延させる(ステップS33)。   This divided section value VDIV_CNT is compared with the divided section value HDIV_CNT indicating the degree of progress of horizontal processing from the horizontal processing block 51, and when the divided section value VDIV_CNT is larger than the divided section value HDIV_CNT, the horizontal processing is processed vertically. Means a state of overtaking, so that a wait (WAIT) is generated and the generation of the trigger TG3 is waited. That is, the trigger TG3 is delayed so as to occur after the weight is released (step S33).

そして、この実施形態では、ステップS22で得られるy座標の整数成分vp_iと、積分回数vstb_cntとが等しいかどうかをチェックし、等しければ現処理ラインについての垂直方向の積分が完了したことを示す積分完了信号STB_RDYを生成して出力する(ステップS34)。   In this embodiment, it is checked whether the integer component vp_i of the y coordinate obtained in step S22 is equal to the number of integrations vstb_cnt. If they are equal, the integration indicating that the vertical integration for the current processing line has been completed. A completion signal STB_RDY is generated and output (step S34).

この積分完了信号STB_RDYは、垂直画像処理部522に供給される。垂直画像処理部522では、現処理ラインについての垂直方向の手ぶれ補正処理のみを行なうのであれば、この積分完了信号STB_RDYにより、現処理ラインについての垂直方向の手ぶれ補正処理を開始してよいことを認識し、次の水平同期信号H−SYNCのタイミングで垂直画像処理を再開することができる。   The integration completion signal STB_RDY is supplied to the vertical image processing unit 522. If the vertical image processing unit 522 performs only the camera shake correction process in the vertical direction for the current processing line, the vertical camera shake correction process for the current process line may be started by the integration completion signal STB_RDY. The vertical image processing can be restarted at the timing of the next horizontal synchronization signal H-SYNC.

しかし、この実施形態では、垂直方向の手ぶれと同時に垂直方向のレンズ歪みを補正するようにしているので、ライン単位のレンズ歪み補正完了信号DIST_RDY(図示せず)を、垂直画像処理部522が発生するようにしており、積分完了信号STB_RDYと、レンズ歪み補正完了信号DIST_RDYとの両方がアクティブになった後の、次の水平同期信号H−SYNCのタイミングで垂直画像処理を再開するようにする。   However, in this embodiment, since the vertical lens distortion is corrected simultaneously with the vertical camera shake, the vertical image processing unit 522 generates a lens distortion correction completion signal DIST_RDY (not shown) for each line. The vertical image processing is restarted at the timing of the next horizontal synchronization signal H-SYNC after both the integration completion signal STB_RDY and the lens distortion correction completion signal DIST_RDY become active.

DIST_RDY信号の遅延は、レンズ歪み補正処理が扱う画像データが、水平処理ブロック51の処理ラインの画像と連動しておらず、場合によっては水平処理ブロックが数10ライン以上先行しないと生成されない画像データであるため、この水平処理の処理待ちのために発生する。   The delay of the DIST_RDY signal is not generated when the image data handled by the lens distortion correction processing is not linked to the image of the processing line of the horizontal processing block 51, and in some cases, the horizontal processing block must be preceded by several tens of lines Therefore, this occurs because of waiting for this horizontal processing.

[垂直画像処理部522の処理動作]
図20は、垂直画像処理部522の構成例を示すものである。この図20の例では、前述の図19のフローチャートにおける水平同期信号H−SYNC毎に値「vmag」を加算する加算部201が、この垂直画像処理部522に含まれるものとしており、この垂直画像処理部522に初期y座標SYが入力される。
[Processing Operation of Vertical Image Processing Unit 522]
FIG. 20 shows a configuration example of the vertical image processing unit 522. In the example of FIG. 20, the vertical image processing unit 522 includes an adding unit 201 that adds a value “vmag” for each horizontal synchronization signal H-SYNC in the flowchart of FIG. The initial y coordinate SY is input to the processing unit 522.

そして、加算部201からの、垂直同期信号H−SYNC毎に値「vmag」が加算されたy座標値SY´は、垂直処理用手ぶれ補正量積分部521に供給される。すると、この垂直処理用手ぶれ補正量積分部521からは、現処理ラインの先頭のy座標のオフセット値として、垂直手ぶれ補正量SY_ADDが返ってくると共に、現処理ラインのx座標のオフセット値SX_ADDが返ってくる。   Then, the y-coordinate value SY ′ obtained by adding the value “vmag” for each vertical synchronization signal H-SYNC from the adding unit 201 is supplied to the camera shake correction amount integrating unit 521 for vertical processing. Then, the vertical camera shake correction amount integration unit 521 returns the vertical camera shake correction amount SY_ADD as the offset value of the first y coordinate of the current processing line and the x coordinate offset value SX_ADD of the current processing line. Come back.

垂直画像処理部522では、加算部202において、各水平ラインの先頭で一回だけ、垂直処理用手ぶれ補正量積分部521からの垂直手ぶれ補正量SY_ADDを、y座標SY´に加算する。また、加算部203において、各水平ラインの先頭で一回だけ、垂直処理用手ぶれ補正量積分部521からの水平手ぶれ補正量SX_ADDを、初期x座標SXに加算する。   In the vertical image processing unit 522, the addition unit 202 adds the vertical camera shake correction amount SY_ADD from the vertical processing camera shake correction amount integration unit 521 to the y coordinate SY ′ only once at the head of each horizontal line. The adding unit 203 adds the horizontal camera shake correction amount SX_ADD from the vertical processing camera shake correction amount integrating unit 521 to the initial x coordinate SX only once at the head of each horizontal line.

そして、加算部203の出力値に対して、画素処理クロックCLKごとに、水平拡大・縮小のパラメータである値「hmag」を、加算部204により加算する。この加算部204の出力値vx_addは、レンズ歪み垂直補正量データデコード部122に対する引数としての座標(x、y)データのうちのx座標として供給する。   Then, the value “hmag”, which is a parameter for horizontal enlargement / reduction, is added to the output value of the adder 203 for each pixel processing clock CLK by the adder 204. The output value vx_add of the adding unit 204 is supplied as the x coordinate of the coordinate (x, y) data as an argument to the lens distortion vertical correction amount data decoding unit 122.

また、加算部202の出力値vy_addは、レンズ歪み垂直補正量データデコード部122に対する引数としての座標(x,y)データのうちのy座標として供給する。   Further, the output value vy_add of the adding unit 202 is supplied as the y coordinate of the coordinate (x, y) data as an argument to the lens distortion vertical correction amount data decoding unit 122.

レンズ歪み垂直補正量データデコード部122からは、これに入力された座標(x,y)の撮像素子上のレンズ歪み垂直補正量データCORR_Yが出力される。このレンズ歪み垂直補正量CORR_Yは、加算部202の出力値vy_addに、画素処理クロックCLKごとに加算部206で加算される。   The lens distortion vertical correction amount data decoding unit 122 outputs lens distortion vertical correction amount data CORR_Y on the image sensor at the coordinates (x, y) input thereto. The lens distortion vertical correction amount CORR_Y is added to the output value vy_add of the adder 202 by the adder 206 for each pixel processing clock CLK.

なお、加算部202からの垂直座標の補正出力値vy_addは、レンズ歪み垂直補正量データデコード部122からレンズ歪み垂直補正量データCORR_Yを得るときの遅延量分の遅延部205を介して加算部206に供給される。   The vertical coordinate correction output value vy_add from the addition unit 202 is added via the delay unit 205 corresponding to the delay amount when the lens distortion vertical correction amount data decoding unit 122 obtains the lens distortion vertical correction amount data CORR_Y. To be supplied.

そして、加算部206からの出力値Y_ADDは、小数部抽出部207および整数部抽出部208に供給される。   Then, the output value Y_ADD from the adding unit 206 is supplied to the decimal part extracting unit 207 and the integer part extracting unit 208.

小数部抽出部207は、加算部206からの出力値Y_ADDの小数部を、画素処理クロックCLK毎に抽出し、抽出した小数部の値Y_PHASEを出力する。この少数部の値Y_PHASEは、垂直FIRフィルタ211を備える垂直補間処理部210に供給される。   The decimal part extraction unit 207 extracts the decimal part of the output value Y_ADD from the addition unit 206 for each pixel processing clock CLK, and outputs the extracted decimal part value Y_PHASE. The decimal part value Y_PHASE is supplied to the vertical interpolation processing unit 210 including the vertical FIR filter 211.

垂直FIRフィルタ211は、垂直方向に並ぶ複数ラインの画素データを用いて補間処理を行なうもので、垂直補間処理部210では、この小数部の値Y_PHASEに基づいて乗算係数テーブルを検索し、垂直FIRフィルタ211に供給する乗算係数を得るようにする。これは、補間方向が垂直方向になるだけで、図12〜図14を用いて説明した水平FIRフィルタを用いる水平方向の補間処理とほぼ同様である。   The vertical FIR filter 211 performs interpolation processing using pixel data of a plurality of lines arranged in the vertical direction, and the vertical interpolation processing unit 210 searches the multiplication coefficient table based on the value Y_PHASE of the decimal part, and performs vertical FIR. The multiplication coefficient supplied to the filter 211 is obtained. This is almost the same as the horizontal interpolation process using the horizontal FIR filter described with reference to FIGS. 12 to 14 except that the interpolation direction is the vertical direction.

整数部抽出部208は、加算部206からの出力値Y_ADDの整数部を、画素処理クロックCLK毎に抽出し、抽出した整数部の値Y_POSを出力する。この整数部の値Y_POSは、現処理ラインの画素処理クロックCLK毎のy座標として第1メモリ領域コントローラ209に供給される。   The integer part extraction unit 208 extracts the integer part of the output value Y_ADD from the addition part 206 for each pixel processing clock CLK, and outputs the extracted integer part value Y_POS. The integer part value Y_POS is supplied to the first memory area controller 209 as the y coordinate for each pixel processing clock CLK of the current processing line.

第1メモリ領域コントローラ209は、レジスタブロック53に保持されているセパレートアドレスSepAdrを取り込み、第1メモリ領域61と、第2メモリ領域62との分割点アドレスを認識して、第1メモリ領域61のアドレス範囲(書き込み、読み出し領域)を認識し、第1メモリ領域61に対する書き込みおよび読み出しを制御する。   The first memory area controller 209 takes in the separate address SepAdr held in the register block 53, recognizes the dividing point address between the first memory area 61 and the second memory area 62, and stores the first memory area 61 in the first memory area 61. The address range (write and read areas) is recognized, and writing and reading to the first memory area 61 are controlled.

第1メモリ領域コントローラ209は、水平処理ブロック51からの画像データDHoutを、一旦、画像メモリ6の第1メモリ領域61に書き込む。そして、第1メモリ領域コントローラ209は、垂直手ぶれ補正量SY_ADDとレンズ歪み垂直補正量CORR_Yとの加算量Y_ADDの整数部Y_POSに基づいて、出力画像データDHout_0〜DHout_nとして出力する複数の水平ラインの画像データを決める。   The first memory area controller 209 once writes the image data DHout from the horizontal processing block 51 in the first memory area 61 of the image memory 6. The first memory area controller 209 then outputs a plurality of horizontal line images to be output as output image data DHout_0 to DHout_n based on the integer part Y_POS of the addition amount Y_ADD of the vertical camera shake correction amount SY_ADD and the lens distortion vertical correction amount CORR_Y. Determine the data.

そして、第1メモリ領域コントローラ209は、垂直方向の画像処理を開始することができるデータ量の画像データが第1メモリ領域61に書き込まれたら、この第1メモリ領域61から、前記整数部Y_POSに基づいて決定された出力画像データDHout_0〜DHout_nを読み出して、垂直補間処理部210に送出する。   When the first memory area controller 209 has written in the first memory area 61 the amount of image data that can start image processing in the vertical direction, the first memory area controller 209 transfers the image data from the first memory area 61 to the integer part Y_POS. The output image data DHout_0 to DHout_n determined based on the read-out data are read out and sent to the vertical interpolation processing unit 210.

垂直補間処理部210では、これに入力された画像データDHout_0〜DHout_nについて、垂直手ぶれ補正量SY_ADDとレンズ歪み垂直補正量CORR_Yとの加算量Y_ADDの少数部Y_PHASEに基づいて、垂直FIRフィルタ211を用いて垂直方向の補間処理を行なって、垂直方向の手ぶれ補正およびレンズ歪み補正処理を行なうと共に、垂直拡大・縮小処理、垂直解像度変換処理を行なう。前述したように、このときに垂直補間処理部210に入力される小数部の値Y_PHASEを用いて、垂直FIRフィルタ211に供給する乗算係数が決定されている。   The vertical interpolation processing unit 210 uses the vertical FIR filter 211 for the image data DHout_0 to DHout_n input thereto based on the decimal part Y_PHASE of the addition amount Y_ADD of the vertical camera shake correction amount SY_ADD and the lens distortion vertical correction amount CORR_Y. Then, vertical interpolation processing is performed to perform vertical camera shake correction and lens distortion correction processing, as well as vertical enlargement / reduction processing and vertical resolution conversion processing. As described above, the multiplication coefficient to be supplied to the vertical FIR filter 211 is determined using the decimal part value Y_PHASE input to the vertical interpolation processing unit 210 at this time.

こうして、垂直補間処理部210からは、垂直手ぶれ補正量SY_ADDとレンズ歪み垂直補正量CORR_Yとの加算量に応じて垂直方向補正処理がなされると共に、垂直方向の拡大・縮小処理、垂直方向の解像度変換がなされた画像データDYoutが得られる。   Thus, the vertical interpolation processing unit 210 performs vertical correction processing according to the addition amount of the vertical camera shake correction amount SY_ADD and the lens distortion vertical correction amount CORR_Y, and also performs vertical enlargement / reduction processing, vertical resolution. The converted image data DYout is obtained.

この画像データDYoutは、第2メモリ領域コントローラ212を通じて第2メモリ領域62に書き込まれる。   The image data DYout is written into the second memory area 62 through the second memory area controller 212.

この第2メモリ領域コントローラ212も、レジスタブロック53に保持されているセパレートアドレスSepAdrを取り込み、第1メモリ領域61と、第2メモリ領域62との分割点アドレスを認識して、第2メモリ領域61のアドレス範囲(書き込み、読み出し領域)を認識し、第2メモリ領域61に対する書き込みおよび読み出しを制御する。   The second memory area controller 212 also takes in the separate address SepAdr held in the register block 53, recognizes the dividing point address between the first memory area 61 and the second memory area 62, and performs the second memory area 61. Address range (write and read areas) is recognized, and writing and reading to the second memory area 61 are controlled.

そして、第2メモリ領域コントローラ212は、例えば、元の画像データのタイミングからみると、1垂直周期遅れたタイミングで、第2メモリ領域62から画像データを読み出して出力画像データDoutとして出力する。   Then, for example, when viewed from the timing of the original image data, the second memory area controller 212 reads the image data from the second memory area 62 and outputs it as output image data Dout at a timing delayed by one vertical cycle.

なお、上述の説明では、第1メモリ領域コントローラ209と、第2メモリ領域コントローラ212とは、別回路として構成するように説明したが、これら第1メモリ領域コントローラ209の機能と、第2メモリ領域コントローラ212の機能とを併せ有する1個のメモリコントローラの構成とすることもできる。   In the above description, the first memory area controller 209 and the second memory area controller 212 are described as separate circuits. However, the functions of the first memory area controller 209 and the second memory area A configuration of a single memory controller having both functions of the controller 212 may be employed.

次に、図21に、上説明した垂直方向の積分処理と、その後段の垂直画像処理のタイミング関係を示す。   Next, FIG. 21 shows a timing relationship between the vertical integration processing described above and the subsequent vertical image processing.

垂直方向の部分切り出し、垂直方向の部分拡大・縮小のいずれもサポートしない場合には、前述したウエイト(WAIT)は発生せず、現処理ラインについての垂直方向の積分回数の上限は高々数回である。このため、同一のラインに対する積分処理と画像処理の両方を、同じ1水平同期信号H−SYNC期間内でシーケンス化可能である。したがって、この場合には、わざわざ積分完了信号STB_RDYを導入する必要はない。   When neither vertical partial cutout nor vertical partial enlargement / reduction is supported, the above-mentioned wait (WAIT) does not occur, and the upper limit of the number of vertical integrations for the current processing line is several times at most. is there. Therefore, both integration processing and image processing for the same line can be sequenced within the same one horizontal synchronization signal H-SYNC period. Therefore, in this case, it is not necessary to introduce the integration completion signal STB_RDY.

一方、垂直方向の部分切り出し、もしくは垂直方向の部分拡大をサポートする場合には、1ライン目の積分処理の途中でウエイトが発生する可能性があり、縮小をサポートする場合には、どこか途中の水平ラインでウエイトが発生する可能性がある。そこで、積分完了信号STB_RDYがアクティブ(図21の例ではハイレベル)になるのを待つ必要がある。さらに、この実施形態の垂直処理ブロックでは、レンズ歪み補正も同時に行うので、レンズ歪み垂直補正完了信号DIST_RDYも、アクティブ(図21の例ではハイレベル)になるのを待って、次の水平ラインの処理のトリガとして、垂直処理用の水平同期信号H−SYNCが生成される。   On the other hand, when supporting partial cutout in the vertical direction or partial enlargement in the vertical direction, a weight may be generated in the middle of the integration process for the first line. There is a possibility that a weight is generated in the horizontal line. Therefore, it is necessary to wait for the integration completion signal STB_RDY to become active (high level in the example of FIG. 21). Further, in the vertical processing block of this embodiment, since lens distortion correction is performed at the same time, the lens distortion vertical correction completion signal DIST_RDY waits for the active (high level in the example of FIG. 21) to wait for the next horizontal line. As a processing trigger, a horizontal synchronization signal H-SYNC for vertical processing is generated.

すなわち、図21に示すように、垂直方向の部分切り出し、もしくは垂直方向の部分拡大のいずれの場合でも、同一ラインの積分処理が、ウエイトによって数水平同期信号H−SYNC区間もしくはそれ以上に渡って中断されるため、積分処理が終了したことを後段に知らせるための積分完了信号STB_RDYが必要となる。   That is, as shown in FIG. 21, in either case of vertical partial cutout or vertical partial enlargement, the integration processing of the same line is performed over several horizontal synchronization signal H-SYNC intervals or more depending on the weight. Since it is interrupted, an integration completion signal STB_RDY is required to inform the subsequent stage that the integration process has been completed.

そして、図21に示すように、レンズ歪み垂直補正処理が終了しないと次のラインの処理に移行できないため、レンズ歪み垂直補正完了信号DIST_RDYが、積分完了信号STB_RDYがアクティブになるのに加えて、アクティブになったときに、垂直処理終了信号を出し、その後の水平同期信号H−SYNCのタイミングから、垂直画像処理を次のラインの画像データの処理を行なうようにする。   Then, as shown in FIG. 21, the lens distortion vertical correction completion signal DIST_RDY is activated in addition to the integration completion signal STB_RDY being active because it is not possible to proceed to the next line processing unless the lens distortion vertical correction processing is completed. When the signal becomes active, a vertical processing end signal is issued, and the vertical image processing is performed on the image data of the next line from the timing of the horizontal synchronization signal H-SYNC thereafter.

また、同時に、あるラインの垂直画像処理が完了していない場合には、次の水平同期信号H−SYNCを、図21において点線で示すように、マスクするようにする。すなわち、垂直処理終了信号が立たない限り、水平ライン開始処理トリガとしての水平同期信号H−SYNCは、マスクされる。   At the same time, when the vertical image processing of a certain line is not completed, the next horizontal synchronization signal H-SYNC is masked as indicated by a dotted line in FIG. That is, unless the vertical processing end signal is raised, the horizontal synchronization signal H-SYNC as the horizontal line start processing trigger is masked.

[画像メモリ6の使用制御および容量]
次に、以上説明した画像処理における画像メモリに対する書き込み、読み出しの制御および画像メモリ6として必要な容量について、さらに説明する。
[Use control and capacity of image memory 6]
Next, the writing and reading control for the image memory and the capacity required for the image memory 6 in the image processing described above will be further described.

この実施形態の撮像装置は、動作モードとして、
(a)動画撮影モード
(b)モニタリングモード(静止画記録の画枠を決定する際などに、モニター用表示画面に表示される映像を生成するモード)
(c)静止画記録モード
(d)静止画再生モード
などがある。
The imaging apparatus of this embodiment has an operation mode as follows:
(A) Movie shooting mode (b) Monitoring mode (a mode for generating an image to be displayed on a monitor display screen when determining an image frame for still image recording)
(C) Still image recording mode (d) Still image reproduction mode.

動画撮影モードには、HD(High Definition;高精細度)動画撮影モードと、SD(Standard Definition)動画撮影モードとがある。   The moving image shooting mode includes an HD (High Definition) moving image shooting mode and an SD (Standard Definition) moving image shooting mode.

静止画記録モードやHD動画撮影モードの場合には、出力画像解像度が大容量となるので、画像メモリ6は、1つのメモリ領域として動作させるようにする。一方、SD動画撮影モードやモニタリングモード、さらに静止画再生モードの場合には、出力画像解像度が比較的小さくなるので、上述したように、画像メモリ6を論理的に2分割して使用するようにする。   In the still image recording mode and the HD moving image shooting mode, the output image resolution is large, so the image memory 6 is operated as one memory area. On the other hand, in the SD moving image shooting mode, the monitoring mode, and the still image playback mode, the output image resolution is relatively small, so that the image memory 6 is logically divided into two as described above. To do.

図22は、画像メモリ6を論理的に2分割して使用するようにした上述の画像処理の全体の流れを示す図である。そして、画像処理として図23に示すように、撮像素子2の全有効画素領域AFLのうちの、解像度変換用の有効画素領域FLkから、横×縦=720画素×240画素の出力画像に解像度変換する場合を想定し、この場合における、画像メモリ6の第1メモリ領域61および第2メモリ領域62における画像データの書き込み、読み出しの様子を図24に示す。   FIG. 22 is a diagram showing the overall flow of the above-described image processing in which the image memory 6 is logically divided and used. Then, as shown in FIG. 23, as the image processing, resolution conversion is performed from the effective pixel area FLk for resolution conversion in the entire effective pixel area AFL of the image sensor 2 to an output image of horizontal × vertical = 720 pixels × 240 pixels. FIG. 24 shows how image data is written to and read from the first memory area 61 and the second memory area 62 of the image memory 6 in this case.

すなわち、撮像素子2からの入力撮像画像信号は、水平画像処理部512において、上述のような水平方向の画像処理がなされた後、画像メモリ6の第1メモリ領域61に書き込まれる。   That is, the input captured image signal from the image sensor 2 is written in the first memory area 61 of the image memory 6 after the horizontal image processing unit 512 performs the above-described horizontal image processing.

このとき、第1メモリ領域61は、前述したように、垂直画像処理が開始できるだけの容量+マージン分の記憶容量を備えるもので、1画面分(1フィールド分または1フレーム分)よりも少なくてよく、垂直FIRフィルタのタップ数に応じた複数ライン分以上であれば良い。   At this time, as described above, the first memory area 61 has a capacity sufficient to start vertical image processing + a margin storage capacity, and is smaller than one screen (one field or one frame). It is sufficient that the number of lines is equal to or more than the number of lines corresponding to the number of taps of the vertical FIR filter.

したがって、入力撮像画像信号(図24(C))の1画面分は、水平方向の画像処理がなされた後、第1メモリ領域61に対して、図24(A)において実線で示すようにして、1垂直周期の間で複数回書き込まれることになる。第1メモリ領域61に書き込まれた水平処理後の画像信号は、図24(D)のように入力撮像画像信号よりも遅延したものとなる。この実施形態では、この遅延は、上述したように、1ライン分FIFOメモリ112によるものとされている。   Therefore, one screen of the input captured image signal (FIG. 24C) is subjected to image processing in the horizontal direction, and then the first memory area 61 is shown as a solid line in FIG. 24A. 1 is written a plurality of times during one vertical period. The image signal after horizontal processing written in the first memory area 61 is delayed from the input captured image signal as shown in FIG. In this embodiment, this delay is caused by the FIFO memory 112 for one line as described above.

そして、1画面分の画像データの第1メモリ領域61への初回の書き込みが終了してから、垂直方向の画像処理が開始可能なデータ量が第1メモリ領域61に書き込まれると、次の第1メモリ領域61への書き込みが始まる前に、図24(A)において太い点線で示すように、この第1メモリ領域61から、先に書き込まれた画像データの読み出しが開始される。   Then, after the initial writing of the image data for one screen to the first memory area 61 is completed, when the amount of data that can start image processing in the vertical direction is written to the first memory area 61, Before the writing to one memory area 61 starts, reading of the image data previously written from the first memory area 61 is started as shown by a thick dotted line in FIG.

そして、第1メモリ領域61から読み出された撮像画像データは、垂直画像処理部522で、垂直方向の画像処理がなされた後、図24(A)において、1点鎖線で示すようにして、第2メモリ領域62に書き込まれる。したがって、第2メモリ領域62に書き込まれた垂直処理後の画像信号は、図24(E)のように遅延したものとなる。この実施形態では、この遅延は、上述したように、垂直FIRフィルタのタップ数に応じてものとされている。   The captured image data read from the first memory area 61 is subjected to vertical image processing by the vertical image processing unit 522, and then as shown by a one-dot chain line in FIG. It is written in the second memory area 62. Therefore, the post-vertical image signal written in the second memory area 62 is delayed as shown in FIG. In this embodiment, this delay depends on the number of taps of the vertical FIR filter, as described above.

こうして、入力撮像画像信号の1画面分は、第1メモリ領域61に対して複数回読み書きされながら、垂直方向の画像処理がなされ、その垂直方向画像処理結果が、第2メモリ領域62に書き込まれてゆく。そして、1垂直周期経過すると、図24(A)において、2点鎖線で示すようにして、次の垂直同期信号(図24(B)参照)の時点から、第2メモリ領域62から前記垂直方向画像処理結果が、次の画像データの第2メモリ領域62への書き込みに先立ち、読み出される。すなわち、読み出された出力画像データは、図24(F)に示すようなタイミングで出力される。   Thus, one screen of the input captured image signal is subjected to vertical image processing while being read from and written to the first memory area 61 a plurality of times, and the vertical image processing result is written to the second memory area 62. Go. Then, when one vertical cycle elapses, as shown by a two-dot chain line in FIG. 24A, from the time of the next vertical synchronization signal (see FIG. 24B), the second memory area 62 starts the vertical direction. The image processing result is read prior to writing the next image data into the second memory area 62. That is, the read output image data is output at a timing as shown in FIG.

以下、上述の処理が、撮像画像データの1画面分単位で、順次に繰り返され、入力撮像画像データは、上述のような画像処理が施された後、1垂直周期遅れで、垂直同期信号および水平同期信号に同期した状態で出力画像データとされる。   Hereinafter, the above-described processing is sequentially repeated in units of one screen of the captured image data, and the input captured image data is subjected to the image processing as described above, and the vertical synchronization signal and The output image data is synchronized with the horizontal synchronization signal.

この場合、第1メモリ領域61は、リングバッファメモリとしてFIFO動作により読み書きがなされる。図24の例では、1画面分の画像データは、第1メモリ領域61において、2回、折り返されて書き込まれ、また、読み出されるようにされている。   In this case, the first memory area 61 is read and written as a ring buffer memory by a FIFO operation. In the example of FIG. 24, the image data for one screen is written back and written twice in the first memory area 61.

以上の説明は、垂直同期信号を跨ぐことなく、垂直同期信号区間で、画像メモリ6への書き込み、読み出しが行なわれる場合であるが、画像の部分拡大を行なう場合には、その処理区間が垂直同期信号を跨ぐことがある。しかし、出力画像信号は、1垂直周期遅れで出力されるので、出力画像信号としては同期規格を満たしており、問題とはならない。   In the above description, writing to and reading from the image memory 6 is performed in the vertical synchronization signal section without straddling the vertical synchronization signal. However, when partial enlargement of the image is performed, the processing section is vertical. It may straddle the sync signal. However, since the output image signal is output with a delay of one vertical cycle, the output image signal satisfies the synchronization standard and is not a problem.

すなわち、例えば画像処理として図25に示すように、撮像素子2の解像度変換用の有効画素領域FLkのうちの、例えばユーザにより指定された部分拡大領域を、電子ズーム処理により拡大して、横×縦=720画素×240画素の出力画像に解像度変換する場合を想定し、この場合における、画像メモリ6の第1メモリ領域61および第2メモリ領域62における画像データの書き込み、読み出しの様子を図26に示す。   That is, for example, as shown in FIG. 25 as image processing, for example, a partial enlargement region designated by the user in the effective pixel region FLk for resolution conversion of the image sensor 2 is enlarged by electronic zoom processing, and the horizontal x Assuming a case where the resolution is converted to an output image of vertical = 720 pixels × 240 pixels, the state of writing and reading image data in the first memory area 61 and the second memory area 62 of the image memory 6 in this case is shown in FIG. Shown in

この場合、撮像素子2からの入力撮像画像信号(図26(C))のうちの部分拡大領域に対応する部分の信号は、水平画像処理部512において処理された後、図26(A)において実線で示すようにして、第1メモリ領域61に書き込まれる。図26(D)の水平処理後画像信号においては、当該書き込まれた画像部分は、網点を付して示している。   In this case, the signal of the portion corresponding to the partially enlarged region in the input captured image signal (FIG. 26C) from the image sensor 2 is processed in the horizontal image processing unit 512 and then in FIG. The data is written in the first memory area 61 as indicated by the solid line. In the image signal after horizontal processing in FIG. 26D, the written image portion is shown with halftone dots.

第1メモリ領域61に、部分拡大領域の画像データが、垂直画像処理が可能なデータ量分以上書き込まれると、当該書き込まれた部分拡大領域の画像データが、図26(A)において太い点線で示すように、第1メモリ領域61から読み出されて、垂直画像処理がなされる。そして、垂直画像処理後の画像データは、図26(A)において、1点鎖線で示すようにして、第2メモリ領域62に書き込まれる。したがって、垂直処理後の画像信号は、図26(E)のように、垂直同期信号を跨いだ区間で、第2メモリ領域62に書き込まれる。   When the image data of the partially enlarged area is written in the first memory area 61 by the amount of data capable of vertical image processing, the written image data of the partially enlarged area is indicated by a thick dotted line in FIG. As shown, it is read from the first memory area 61 and subjected to vertical image processing. Then, the image data after the vertical image processing is written in the second memory area 62 as shown by a one-dot chain line in FIG. Therefore, the image signal after the vertical processing is written in the second memory area 62 in a section straddling the vertical synchronization signal as shown in FIG.

そして、図26(A)において、2点鎖線で示すようにして、当該跨いだ垂直同期信号(図26(B)参照)の時点から、第2メモリ領域62から前記垂直方向画像処理結果が、次の画像データの第2メモリ領域62への書き込みに先立ち、読み出される。すなわち、読み出された出力画像データは、図26(F)に示すようなタイミングで出力される。   Then, in FIG. 26A, as indicated by a two-dot chain line, the vertical image processing result is obtained from the second memory area 62 from the time of the straddling vertical synchronization signal (see FIG. 26B). Prior to the writing of the next image data to the second memory area 62, the image data is read out. That is, the read output image data is output at a timing as shown in FIG.

次に、画像メモリ6の第1メモリ領域に必要な容量について説明する。前述したように、第1メモリ領域61として必要な容量は、垂直解像度変換や補間処理のための垂直FIRフィルタのタップ数、電子ズーム率、レンズ歪み補正率、手ぶれ補正率に応じて変化する。   Next, the capacity required for the first memory area of the image memory 6 will be described. As described above, the capacity required for the first memory area 61 varies according to the number of taps of the vertical FIR filter for vertical resolution conversion and interpolation processing, the electronic zoom rate, the lens distortion correction rate, and the camera shake correction rate.

第1メモリ領域61の容量の決定方法を、図27のフローチャートを参照しながら説明する。この実施形態の撮像装置は、手ぶれ補正の有無、電子ズームの有無、レンズ歪み補正の有無を、ユーザが選択設定できるようにしており、それらのユーザ選択設定に応じて、第1メモリ領域61の容量が変更決定される。このフローチャートの処理は、制御部10で、ユーザインターフェース9を通じたユーザ入力された選択設定情報に基づいてなされる。   A method for determining the capacity of the first memory area 61 will be described with reference to the flowchart of FIG. The imaging apparatus according to this embodiment allows a user to select and set whether or not to correct camera shake, whether or not to use electronic zoom, and whether or not to correct lens distortion. In accordance with these user selection settings, The capacity is determined to be changed. The processing in this flowchart is performed based on selection setting information input by the user through the user interface 9 in the control unit 10.

図27においては、先ず、手ぶれ補正無しに設定されているかどうか判別する(ステップS101)。手ぶれ補正無しではなく、手ぶれ補正有りに設定されているときには、電子ズーム無しに設定されているかどうか判別する(ステップS102)。そして、このステップS102で、電子ズーム有りに設定されていると判別したときには、制御部10は、電子ズーム率(最大電子ズーム倍率)と、手ぶれ補正率(どの程度の大きさの手ぶれ補正までを補正することが可能であるかの率)とを考慮した容量MAに、第1メモリ領域61の記憶容量を設定する(ステップS103)。すなわち、第1メモリ領域61の記憶容量が、メモリ容量MAに設定されるように、セパレートアドレスSepAdrを決定し、レジスタブロック53のセパレートアドレスSepAdrを設定すべきレジスタに設定する。   In FIG. 27, first, it is determined whether or not the camera shake correction is set (step S101). If it is set not with camera shake correction but with camera shake correction, it is determined whether or not electronic zoom is set (step S102). When it is determined in step S102 that the electronic zoom is set, the control unit 10 determines the electronic zoom ratio (maximum electronic zoom magnification) and the camera shake correction ratio (how much camera shake correction is required). The storage capacity of the first memory area 61 is set to the capacity MA in consideration of the ratio of whether correction is possible (step S103). That is, the separate address SepAdr is determined so that the storage capacity of the first memory area 61 is set to the memory capacity MA, and the separate address SepAdr of the register block 53 is set to a register to be set.

このステップS103では、電子ズーム率と手ぶれ補正率とを考慮した場合において、最も容量を必要とする条件での容量を設定容量MAとすればよい。手ぶれ補正有り、電子ズーム有りというモードにおいて、最も容量を必要とする条件は、図28に示すように、「(n−1)フィールドで、手ぶれ補正範囲を含む入力画像最下段を拡大」を行ない、続いて「nフィールドで入力画像最上段を含む、第1メモリ領域61の容量を超えるライン数からの拡大」を行なうときである。   In this step S103, when the electronic zoom rate and the camera shake correction rate are taken into consideration, the capacity under the conditions that require the most capacity may be set as the set capacity MA. In the mode with camera shake correction and with electronic zoom, the condition that requires the most capacity is “enlarge the lowermost part of the input image including the camera shake correction range in the (n−1) field” as shown in FIG. Subsequently, “enlargement from the number of lines exceeding the capacity of the first memory area 61 including the uppermost stage of the input image in n fields” is performed.

(n−1)フィールドで、手ぶれ補正を含む入力画像最下段を、出力画像信号として拡大すると、入力垂直同期Vを跨いで垂直方向処理用のデータ読み出しが行なわれ、さらに入力画像の最下段の処理であることから、読み出し開始が最も遅れる。そのとき、nフィールドの垂直方向読み出し処理は待ち状態となるが、nフィールドの最上段の処理を行なう場合は、その待ち時間分の入力画像を保存しておく必要があり、必要ラインメモリが増加する。また、水平方向処理結果の画像データの書き込みが、垂直方向処理のための画像データの読み出しを追い越してはならないため、必要とされる電子ズーム率、手ぶれ補正率を満足するようにラインメモリ数に、第1メモリ領域61の容量を設定する必要があるのである。   In the (n-1) field, when the lowermost part of the input image including camera shake correction is enlarged as an output image signal, data for vertical processing is read across the input vertical synchronization V, and the lowermost part of the input image is further read. Since this is a process, the start of reading is most delayed. At that time, the vertical reading process of the n field is in a waiting state. However, when the uppermost process of the n field is performed, it is necessary to save the input image for the waiting time, and the required line memory increases. To do. In addition, since the writing of the image data of the horizontal processing result must not overtake the reading of the image data for the vertical processing, the number of line memories is set so as to satisfy the required electronic zoom rate and camera shake correction rate. The capacity of the first memory area 61 needs to be set.

この場合における、画像メモリ6の第1メモリ領域61および第2メモリ領域62における画像データの書き込み、読み出しの様子を図29に示す。   FIG. 29 shows how image data is written and read in the first memory area 61 and the second memory area 62 of the image memory 6 in this case.

この場合、撮像素子2からの入力撮像画像信号(図29(C))のうちの部分拡大領域に対応する部分の信号は、水平画像処理部512において処理された後、図29(A)において実線で示すようにして、第1メモリ領域61に書き込まれる。図29(D)の水平処理後画像信号においては、当該書き込まれた画像部分は、網点を付して示している。   In this case, the signal of the portion corresponding to the partially enlarged region of the input captured image signal (FIG. 29C) from the image sensor 2 is processed in the horizontal image processing unit 512 and then in FIG. 29A. The data is written in the first memory area 61 as indicated by the solid line. In the image signal after horizontal processing in FIG. 29D, the written image portion is shown with halftone dots.

第1メモリ領域61に、(n−1)フィールドの部分拡大領域の画像データが、垂直画像処理が可能なデータ量分以上書き込まれると、当該書き込まれた部分拡大領域の画像データが、図29(A)において太い点線で示すように、第1メモリ領域61から読み出されて、垂直画像処理がなされる。そして、垂直画像処理後の画像データは、図29(A)において、1点鎖線で示すようにして、第2メモリ領域62に書き込まれてゆく。したがって、垂直処理後の画像信号は、図29(E)のように、垂直同期信号を跨いだ区間で、第2メモリ領域62に書き込まれる。   When the image data of the partial enlarged area of the (n−1) field is written in the first memory area 61 by the amount of data that can be subjected to the vertical image processing, the written image data of the partial enlarged area is as shown in FIG. As shown by a thick dotted line in (A), the image is read from the first memory area 61 and subjected to vertical image processing. Then, the image data after the vertical image processing is written into the second memory area 62 as shown by a one-dot chain line in FIG. Therefore, the image signal after the vertical processing is written in the second memory area 62 in a section straddling the vertical synchronization signal as shown in FIG.

このため、nフィールドの部分拡大領域の画像データ部分になると、図29(A)において、実線で示すように、当該画像データの水平方向画像処理がなされ、その処理結果の第1メモリ領域61への書き込みが開始される。そして、セパレートアドレスSepAdrのところで、折り返されて、nフィールドの部分拡大領域の画像データの全てが第1メモリ領域61に書き込まれる。   For this reason, when the image data portion of the partial enlarged region of n fields is obtained, as shown by the solid line in FIG. 29A, the image data in the horizontal direction is processed, and the processing result is transferred to the first memory region 61. Writing starts. Then, it is folded at the separate address SepAdr, and all of the image data in the n field partially enlarged area is written in the first memory area 61.

このnフィールドの画像データの水平処理結果の書き込み時にも、(n−1)フィールドの部分拡大領域の水平処理結果の画像データの読み出しが行なわれるので、この読み出しを、nフィールドの部分拡大領域の水平処理結果の画像データの書き込みが追い越してしまわないようにしなければならず、そのようにするために、第1メモリ領域61の容量が設定されるものである。   Even when the horizontal processing result of the n-field image data is written, the horizontal processing result image data in the (n-1) field partial enlarged region is read out. The writing of the image data as the horizontal processing result must not be overtaken, and in order to do so, the capacity of the first memory area 61 is set.

そして、第2メモリ領域への垂直処理結果の画像データの書き込みが完了すると、図29(A)において、2点鎖線で示すようにして、第2メモリ領域62から前記垂直方向画像処理結果が、次の画像データの第2メモリ領域62への書き込みに先立ち、読み出される。すなわち、読み出された出力画像データは、図29(F)に示すようなタイミングで出力される。   Then, when the writing of the image data of the vertical processing result to the second memory area is completed, the vertical image processing result from the second memory area 62, as shown by a two-dot chain line in FIG. Prior to the writing of the next image data to the second memory area 62, the image data is read out. That is, the read output image data is output at a timing as shown in FIG.

以上のように、(n−1)フィールドで、手ぶれ補正を含む入力画像最下段を、拡大画像の出力信号にしようとすると、入力同期Vを跨いで垂直方向処理用のデータ読み出しが行われ、さらに入力画像の最下段の処理であることから、読み出し開始が最も遅れる。   As described above, in the (n-1) field, when trying to use the lowermost input image including image stabilization as an output signal of an enlarged image, data reading for vertical processing is performed across the input synchronization V, Furthermore, since it is the lowest processing of the input image, the start of reading is delayed most.

その時、次フィールドであるnフィールドの垂直方向読み出し処理は、待ち状態となるが、nフィールドの最上段の処理を行なう場合は、その待ち時間分の入力画像を保存しておく必要があり、必要ラインメモリが増加する。また、図29に示したように、水平方向処理結果の画像データの第1メモリ領域61への書き込みが、当該第1メモリ領域61からの垂直方向処理のための画像データの読み出しを追い越してはならないため、必要とされる電子ズーム率、手ぶれ補正率を満足するようなラインメモリ数分の記憶容量MAを設定する必要がある。   At that time, the vertical reading process of the next field, n field, is in a waiting state. However, when the uppermost process of the n field is performed, it is necessary to save the input image for the waiting time. Line memory increases. Further, as shown in FIG. 29, the writing of the image data of the horizontal processing result to the first memory area 61 overtakes the reading of the image data for the vertical processing from the first memory area 61. Therefore, it is necessary to set a storage capacity MA corresponding to the number of line memories that satisfies the required electronic zoom rate and camera shake correction rate.

次に、ステップS101で、手ぶれ補正なしであると判別したときには、制御部10では、電子ズームなしであるかどうか判別し(ステップS104)、電子ズーム有りであると判別したときには、手ぶれ補正無しであるので、電子ズーム率のみを考慮した容量MBを、第1メモリ領域61の容量として設定する(ステップS105)。すなわち、第1メモリ領域61の記憶容量が、メモリ容量MBに設定されるように、セパレートアドレスSepAdrを決定し、レジスタブロック53のセパレートアドレスSepAdrを設定すべきレジスタに設定する。   Next, when it is determined in step S101 that there is no camera shake correction, the control unit 10 determines whether there is no electronic zoom (step S104), and when it is determined that there is electronic zoom, there is no camera shake correction. Therefore, the capacity MB considering only the electronic zoom rate is set as the capacity of the first memory area 61 (step S105). That is, the separate address SepAdr is determined so that the storage capacity of the first memory area 61 is set to the memory capacity MB, and the separate address SepAdr of the register block 53 is set to a register to be set.

この場合の容量MBは、図30に示すように、「(n−1)フィールドの中心部分の拡大電子ズーム処理」を行ない、続いて「nフィールドで、通常の解像度変換処理」を行なうときを考慮して設定すればよい。この場合は、手ぶれ補正が行なわれないため、その分、垂直方向処理の読み出しを早く実行でき、垂直方向処理の入力垂直同期Vを跨いで処理する時間が短くなる。そのため、上述のステップS103の場合と比べて、第1メモリ領域61の容量を小さくできる。   As shown in FIG. 30, the capacity MB in this case is obtained when “enlarged electronic zoom processing of the central portion of (n−1) field” is performed, and subsequently “normal resolution conversion processing is performed with n fields”. This should be set in consideration. In this case, since the camera shake correction is not performed, the readout of the vertical direction processing can be executed earlier, and the time for processing across the input vertical synchronization V of the vertical direction processing is shortened. Therefore, the capacity of the first memory area 61 can be reduced compared to the case of step S103 described above.

この場合における、画像メモリ6の第1メモリ領域61および第2メモリ領域62における画像データの書き込み、読み出しの様子を図31に示す。   FIG. 31 shows how image data is written and read in the first memory area 61 and the second memory area 62 of the image memory 6 in this case.

この場合、撮像素子2からの入力撮像画像信号(図31(C))のうちの部分拡大領域に対応する部分の信号は、水平画像処理部512において処理された後、図31(A)において実線で示すようにして、第1メモリ領域61に書き込まれる。図31(D)の水平処理後画像信号においては、当該書き込まれた画像部分は、網点を付して示している。   In this case, the signal of the portion corresponding to the partially enlarged region of the input captured image signal (FIG. 31C) from the image sensor 2 is processed in the horizontal image processing unit 512 and then in FIG. The data is written in the first memory area 61 as indicated by the solid line. In the image signal after horizontal processing in FIG. 31D, the written image portion is shown with halftone dots.

第1メモリ領域61に、(n−1)フィールドの部分拡大領域の画像データが、垂直画像処理が可能なデータ量分以上書き込まれると、当該書き込まれた部分拡大領域の画像データが、図31(A)において太い点線で示すように、第1メモリ領域61から読み出されて、垂直画像処理がなされる。そして、垂直画像処理後の画像データは、図31(A)において、1点鎖線で示すようにして、第2メモリ領域62に書き込まれてゆく。したがって、垂直処理後の画像信号は、図31(E)のように、垂直同期信号を跨いだ区間で、第2メモリ領域62に書き込まれる。   When the image data of the partial enlarged area of the (n−1) field is written in the first memory area 61 by the amount of data capable of vertical image processing, the written image data of the partial enlarged area is as shown in FIG. As shown by a thick dotted line in (A), the image is read from the first memory area 61 and subjected to vertical image processing. Then, the image data after the vertical image processing is written into the second memory area 62 as shown by a one-dot chain line in FIG. Therefore, the image signal after the vertical processing is written in the second memory area 62 in a section straddling the vertical synchronization signal as shown in FIG.

このため、次フィールドであるnフィールドの画像データ部分になると、図31(A)において、実線で示すように、当該画像データの水平方向画像処理がなされ、その処理結果の第1メモリ領域61への書き込みが開始される。そして、セパレートアドレスSepAdrのところで、折り返されて、nフィールドの部分拡大領域の画像データの全てが第1メモリ領域61に書き込まれる。   Therefore, when the image data portion of the next field n field is reached, as shown by the solid line in FIG. 31A, the image data in the horizontal direction is processed, and the processing result is transferred to the first memory area 61. Writing starts. Then, it is folded at the separate address SepAdr, and all of the image data in the n field partially enlarged area is written in the first memory area 61.

このnフィールドの画像データの水平処理結果の書き込み時にも、(n−1)フィールドの部分拡大領域の水平処理結果の画像データの読み出しが行なわれるので、この読み出しを、nフィールドの部分拡大領域の水平処理結果の画像データの書き込みが追い越してしまわないようにしなければならず、そのようにするために、第1メモリ領域61の容量が設定されるものである。   Even when the horizontal processing result of the n-field image data is written, the horizontal processing result image data in the (n-1) field partial enlarged region is read out. The writing of the image data as the horizontal processing result must not be overtaken, and in order to do so, the capacity of the first memory area 61 is set.

そして、第2メモリ領域への垂直処理結果の画像データの書き込みが完了すると、図31(A)において、2点鎖線で示すようにして、第2メモリ領域62から前記垂直方向画像処理結果が、次の画像データの第2メモリ領域62への書き込みに先立ち、読み出される。すなわち、読み出された出力画像データは、図31(F)に示すようなタイミングで出力される。   Then, when the writing of the image data of the vertical processing result to the second memory area is completed, the vertical image processing result from the second memory area 62 as shown by a two-dot chain line in FIG. Prior to the writing of the next image data to the second memory area 62, the image data is read out. That is, the read output image data is output at a timing as shown in FIG.

次に、ステップS104で、電子ズーム有りであると判別したときには、制御部10では、レンズ歪み補正無しかどうか判別する(ステップS106)。ステップS102で、電子ズーム有りであると判別したときにも、このステップS106に進み、レンズ歪み補正無しかどうか判別する。   Next, when it is determined in step S104 that the electronic zoom is present, the control unit 10 determines whether or not lens distortion is corrected (step S106). Even when it is determined in step S102 that electronic zoom is present, the process proceeds to step S106, where it is determined whether lens distortion correction is not performed.

ステップS106で、レンズ歪み補正有りと判別したときには、制御部10は、図32に示すようなレンズ歪みの最大歪み量を見込んだライン数に対応できるメモリ容量MCに、第1メモリ領域61の記憶容量が設定されるように、セパレートアドレスSepAdrを決定し、レジスタブロック53のセパレートアドレスSepAdrを設定すべきレジスタに設定する(ステップS107)。   If it is determined in step S106 that the lens distortion is corrected, the control unit 10 stores the first memory area 61 in the memory capacity MC that can correspond to the number of lines that allows for the maximum distortion amount of the lens distortion as shown in FIG. The separate address SepAdr is determined so that the capacity is set, and the separate address SepAdr of the register block 53 is set in the register to be set (step S107).

すなわち、レンズ歪みの補正をするときには、注目するラインを処理するためには、最大歪み分のライン数のデータが確保されている必要があるからである。このステップS107では、手ぶれ補正、電子ズームを行なわないため、垂直方向処理が入力垂直同期Vを跨ぐことがないことから、上書きを考慮する必要はない。よって、最大歪み分のラインメモリで対応できる。   That is, when correcting the lens distortion, it is necessary to secure data on the number of lines corresponding to the maximum distortion in order to process the line of interest. In this step S107, camera shake correction and electronic zoom are not performed, and the vertical processing does not cross the input vertical synchronization V, so it is not necessary to consider overwriting. Therefore, it can cope with the line memory for the maximum distortion.

最後に、ステップS106で、レンズ歪み補正無しと判別したときには、制御部10は、解像度変換のみを考慮して、垂直解像度変換フィルタとしての垂直FIRフィルタのタップ数分のラインメモリ容量として、第1メモリ領域61の記憶容量MDを設定する(ステップS108)。すなわち、第1メモリ領域61の記憶容量が、メモリ容量MDに設定されるように、セパレートアドレスSepAdrを決定し、レジスタブロック53のセパレートアドレスSepAdrを設定すべきレジスタに設定する。   Finally, when it is determined in step S106 that there is no lens distortion correction, the control unit 10 considers only resolution conversion, and sets the first line memory capacity as the number of taps of the vertical FIR filter as the vertical resolution conversion filter. The storage capacity MD of the memory area 61 is set (step S108). That is, the separate address SepAdr is determined so that the storage capacity of the first memory area 61 is set to the memory capacity MD, and the separate address SepAdr of the register block 53 is set to a register to be set.

この場合、垂直解像度変換は、図33に示すように、垂直解像度変換処理前の画像の複数ラインから、垂直FIRフィルタを用いて、垂直解像度変換後の画像の1ラインの画像データを得るようにするものである。垂直解像度変換処理前の画像についての、ある要求ラインに対して、垂直解像度変換結果の1ラインを得るために垂直FIRフィルタで用いる垂直解像度変換処理前の画像の複数ラインは、垂直FIRフィルタのタップ数分である。よって、この複数ライン数分が、第1メモリ領域61に蓄積されると、垂直解像度変換を行なうことできるので、第1メモリ領域61の容量は、垂直FIRフィルタのタップ数分のライン数分である容量MDでよい。実際には、容量MDは、垂直FIRフィルタのタップ数分のライン数分の容量に、マージン分を付加した容量とする。   In this case, in the vertical resolution conversion, as shown in FIG. 33, image data of one line of the image after the vertical resolution conversion is obtained from a plurality of lines of the image before the vertical resolution conversion processing using the vertical FIR filter. To do. A plurality of lines of the image before the vertical resolution conversion processing used for the vertical FIR filter to obtain one line of the vertical resolution conversion result for a certain required line for the image before the vertical resolution conversion processing is a tap of the vertical FIR filter. A few minutes. Therefore, when the plurality of lines are accumulated in the first memory area 61, vertical resolution conversion can be performed. Therefore, the capacity of the first memory area 61 is the number of lines corresponding to the number of taps of the vertical FIR filter. A certain capacity MD is sufficient. Actually, the capacity MD is a capacity obtained by adding a margin to a capacity corresponding to the number of lines corresponding to the number of taps of the vertical FIR filter.

以上のようにして、第1メモリ領域61の容量が決定されるが、この図27のフローチャートの処理と同様にして、各モードや、手ぶれ補正の有無、レンズ歪み補正の有無、電子ズームの有無などの条件に応じて、予め、レジスタに容量MA,MB,MC,MDを記憶しておき、前記条件を制御部10が判断して、その判断結果に基づいて、適切なレジスタから第1メモリ領域61の容量を読み出して、セパレートアドレスを設定するようにしても良い。レジスタに容量MA,MB,MC,MDを記憶しておくのではなく、セパレートアドレスSepAdrの値をレジスタブロック53に予め設定しておき、それを必要に応じて読み出して、画像メモリ6のメモリ領域を分割するようにしても良い。   As described above, the capacity of the first memory area 61 is determined. Similar to the processing of the flowchart of FIG. 27, each mode, presence / absence of camera shake correction, presence / absence of lens distortion correction, presence / absence of electronic zoom The capacity MA, MB, MC, MD is stored in advance in the register according to the conditions such as, and the control unit 10 determines the condition, and based on the determination result, the appropriate memory registers the first memory. The capacity of the area 61 may be read to set a separate address. Rather than storing the capacities MA, MB, MC, MD in the register, the value of the separate address SepAdr is set in the register block 53 in advance, and it is read out as necessary, and the memory area of the image memory 6 May be divided.

なお、この実施形態では、撮像装置の制御部10がユーザの入力選択設定情報に応じて、画像メモリ6の第1メモリ領域の大きさをダイナミックに変更するようにしたが、撮像装置の設計に当たって、電子ズームを設けるか、設けるとしたらどの程度のズーム率にするか、手ぶれ補正をつけるか、つけるとしたらどのくらいの大きさの手ぶれ補正を可能とするか、レンズ歪み補正を付けるか、付けるとしたらどの程度の補正率とするか、などを考慮して、固定的にセパレートアドレスSepAdrを設定する場合にも、図27のフローチャートと同様の手順により、メモリ領域61,62の大きさを決定するようにするものである。   In this embodiment, the control unit 10 of the imaging apparatus dynamically changes the size of the first memory area of the image memory 6 according to the user input selection setting information. However, in designing the imaging apparatus. , Whether to provide an electronic zoom, how much zoom ratio to be provided, whether to add camera shake correction, how much camera shake correction to be possible, whether to add lens distortion correction, Then, considering the correction rate, etc., when the separate address SepAdr is fixedly set, the sizes of the memory areas 61 and 62 are determined by the same procedure as the flowchart of FIG. It is what you want to do.

以上は、画像メモリ6を論理的に2分割して使用する動作について説明したが、前述もしたように、この実施形態の撮像装置において、静止画記録モードやHD動画撮影モードの場合には、出力画像解像度が大容量となるので、画像メモリ6は、1つのメモリ領域として動作させるようにする。   The operation for logically dividing and using the image memory 6 has been described above. However, as described above, in the imaging device of this embodiment, in the still image recording mode and the HD moving image shooting mode, Since the output image resolution is large, the image memory 6 is operated as one memory area.

この場合に、画像メモリ6のメモリ領域61は、リングメモリとしてFIFO動作を行なう第1メモリ領域61のみとして用いるようにする。   In this case, the memory area 61 of the image memory 6 is used only as the first memory area 61 that performs the FIFO operation as a ring memory.

図34は、静止画記録モードの場合の画像処理の全体の流れを説明するための図である。また、図35は、この場合における第1メモリ領域61における画像データの書き込み、読み出しの様子を示す図である。   FIG. 34 is a diagram for explaining the overall flow of image processing in the still image recording mode. FIG. 35 is a diagram showing how image data is written to and read from the first memory area 61 in this case.

すなわち、図34に示すように、入力撮像画像信号は、水平画像処理部511で、上述したような水平方向の手ぶれ補正やレンズ歪み補正、解像度変換を伴った水平画像処理がなされた後、画像メモリ6の第1メモリ領域61に書き込まれる。このとき、第1メモリ領域61、つまり、画像メモリ6の容量は、静止画撮像データの1画面分を、全て記憶する容量は備えていないため、入力撮像画像データは、図35において、実線で示すように、この画像メモリ6の上限のアドレスで、アドレスが折り返されて、第1メモリ領域61において上書きされるようにされる。   That is, as shown in FIG. 34, the input captured image signal is subjected to horizontal image processing with horizontal camera shake correction, lens distortion correction, and resolution conversion as described above in the horizontal image processing unit 511, It is written in the first memory area 61 of the memory 6. At this time, the capacity of the first memory area 61, that is, the image memory 6 does not have a capacity to store all of the still image captured data for one screen. Therefore, the input captured image data is indicated by a solid line in FIG. As shown, the address is folded at the upper limit address of the image memory 6 and overwritten in the first memory area 61.

そして、上書きにより、前に書き込まれた画像データが消えてしまう前であって、垂直画像処理が開始できるようなデータ量の画像データが第1メモリ領域61に書き込まれると、図35において、太い点線で示すように、撮像画像データが読み出される。   Then, when the image data having a data amount that can start the vertical image processing is written in the first memory area 61 before the previously written image data is erased due to overwriting, the image data is thick in FIG. As indicated by the dotted lines, the captured image data is read out.

そして、読み出された撮像画像データは、垂直画像処理部522で、垂直方向の手ぶれ補正やレンズ歪み補正および解像度変換の処理がなされる。そして、この例では、垂直画像処理部522の出力である静止画記録画像データは、外付けのSDRAMや、カード型メモリなどの半導体メモリを用いる外付けメモリ17に記録するようにする。   The read captured image data is subjected to vertical camera shake correction, lens distortion correction, and resolution conversion processing in the vertical image processing unit 522. In this example, the still image recorded image data that is the output of the vertical image processing unit 522 is recorded in the external memory 17 that uses an external SDRAM or a semiconductor memory such as a card type memory.

このようにして、この実施形態では、静止画記録画像データも、当該画像データのデータ量よりも少ない記憶容量の画像メモリを用いて、画像処理を行なって、記録することができる。   Thus, in this embodiment, still image recording image data can also be recorded by performing image processing using an image memory having a storage capacity smaller than the data amount of the image data.

次に、この実施形態の撮像装置における画像メモリ6として必要となるメモリ容量について、全画面縮小を例に挙げて説明する。ここで、全画面縮小とは、入力画像を部分切り出しするのではなく、入力画像全範囲から、必要な解像度の出力画像信号に変換する処理である。   Next, the memory capacity required as the image memory 6 in the imaging apparatus of this embodiment will be described by taking full screen reduction as an example. Here, the full screen reduction is a process of converting the entire input image range into an output image signal having a necessary resolution instead of partially cutting out the input image.

この場合、画像の水平方向サイズをXピクセル(pixel=画素)、垂直サイズをYピクセル(pixel=画素)、1画素あたりの情報量を、Zビットとした時、保存するために必要となるメモリ容量は、
SUMmem=X×Y×Z(ビット)
となり、出力画像信号を、4:1:1の輝度信号、色差信号を持つNTSC(National Television System Committee)方式のSD画像とした場合、第2メモリ領域62で必要とする容量は、
SUMmem2=720×240×12=約2.0(メガビット)
となる。
In this case, when the horizontal size of the image is X pixels (pixel = pixel), the vertical size is Y pixel (pixel = pixel), and the amount of information per pixel is Z bits, memory required for storage is required. Capacity is
SUM mem = X × Y × Z (bit)
When the output image signal is an SD image of NTSC (National Television System Committee) system having a luminance signal and a color difference signal of 4: 1: 1, the capacity required in the second memory area 62 is
SUM mem2 = 720 × 240 × 12 = about 2.0 (megabit)
It becomes.

次に、第1メモリ領域61において必要となる容量は、上で述べたように、垂直解像度変換のタップ数、手ぶれ補正範囲、電子ズーム率、電子歪み補正率などによって変化する。最もその容量を必要とする条件は、手ぶれ補正範囲を撮像素子の全有効画素領域に指定、電子ズーム率の限界として垂直タップ数の垂直サイズから出力画像信号サイズへの拡大を網羅、電子手ぶれ補正あり、とした場合であり、この場合に、第1メモリ領域61に必要な容量は、
SUMmem1=約2.0(メガビット)(実績値)
となる。
Next, as described above, the capacity required in the first memory area 61 varies depending on the number of taps for vertical resolution conversion, the camera shake correction range, the electronic zoom rate, the electronic distortion correction rate, and the like. The conditions that require the most capacity are to specify the image stabilization range as the entire effective pixel area of the image sensor, cover the expansion of the number of vertical taps from the vertical size to the output image signal size as the limit of the electronic zoom ratio, and electronic image stabilization In this case, the capacity required for the first memory area 61 is
SUM mem1 = approximately 2.0 (megabits) (actual value)
It becomes.

したがって、必要メモリ容量の合計は
SUMall=SUMmem1+SUMmem2=2.0+2.0=約4.0(メガビット)
となる。第2メモリ領域62には、解像度変換後の全データを書き込むため、入力画像サイズに関わらず、2.0(メガビット)となる。
Therefore, the sum of the required memory capacity is SUM all = SUM mem1 + SUM mem2 = 2.0 + 2.0 = about 4.0 (megabits)
It becomes. Since all data after resolution conversion is written in the second memory area 62, it becomes 2.0 (megabits) regardless of the input image size.

一方、冒頭で説明した図43、図45の従来手法の場合は、入力画像サイズを、1152ピクセル×864ピクセル(1メガサイズ)とすると、SD画像は、それぞれ、
SUMall=1152×864×12=約11.0(メガビット)
SUMall=720×864×12=約7.0(メガビット)
となる。
On the other hand, in the case of the conventional method shown in FIGS. 43 and 45 described at the beginning, when the input image size is 1152 pixels × 864 pixels (1 mega size), the SD images are respectively
SUM all = 1152 × 864 × 12 = about 11.0 (megabit)
SUM all = 720 × 864 × 12 = about 7.0 (megabit)
It becomes.

したがって、上述したこの実施形態の場合には、従来手法に対して、画像メモリの必要メモリ容量を、それぞれ 40%、60%に削減できる。ここでは、1メガサイズの画像についてその効果を述べたが、入力サイズが増加しても、この実施形態では、必要メモリ容量が増加しないことから、入力サイズが増大するにつれて、その効果がより顕著となる。   Therefore, in the case of this embodiment described above, the required memory capacity of the image memory can be reduced to 40% and 60%, respectively, as compared with the conventional method. Here, the effect has been described for an image of 1 mega size. However, even if the input size increases, the required memory capacity does not increase in this embodiment, so that the effect becomes more significant as the input size increases. It becomes.

[画像メモリ6の読み書きタイミング制御]
上述したように、この実施形態では、第1メモリ領域61には、水平方向の画像処理結果の画像データは1画面分の全てを書き込むのではなく、第1メモリ領域61の容量を1画面分よりも少ない容量としつつ、上書きにより消去される前に、書き込んだ画像データの読み出しを開始するようにしている。すなわち、水平方向の画像処理結果の画像データに対する垂直方向の画像処理は、1垂直周期待たずに処理を開始することが可能である。このことを可能にした画像メモリ6の第1メモリ領域61に対する読み出し開始タイミング制御の方法を、以下に説明する。
[Read / Write Timing Control of Image Memory 6]
As described above, in this embodiment, the image data of the image processing result in the horizontal direction is not written in the first memory area 61 for one screen, but the capacity of the first memory area 61 is set for one screen. While the capacity is smaller than that, reading of the written image data is started before being erased by overwriting. That is, the image processing in the vertical direction with respect to the image data of the horizontal image processing result can be started without expecting one vertical circumference. A method of controlling the read start timing for the first memory area 61 of the image memory 6 that enables this will be described below.

この実施形態では、前述した4種の撮像モードに応じて、2種類の読み出し開始タイミング制御方法を用いるようにしている。   In this embodiment, two types of readout start timing control methods are used according to the above-described four types of imaging modes.

方法1.読み出し開始タイミングを予め計算しておき、有効入力画像データの開始を示す水平および垂直同期信号などに基づいて、当該読み出し開始タイミングを検出して、読み出しを開始する。   Method 1. The readout start timing is calculated in advance, the readout start timing is detected based on horizontal and vertical synchronization signals indicating the start of effective input image data, and readout is started.

方法2.第1メモリ領域コントローラ209内部で自ら開始タイミングを生成し、垂直方向処理の制御を行なう。   Method 2. The first memory area controller 209 generates its own start timing and controls vertical processing.

方法1では、手ぶれ補正、電子ズーム、電子歪み補正率などの条件により、第1メモリ領域61からの水平処理結果の画像データの読み出し開始タイミングを、予め詳細に決定しておくことは困難であるため、詳細な制御はできないが、メモリコントローラなどで詳細な制御する必要がなく、容易にタイミング制御を実現できる点と、読み出し開始タイミングの設定値によっては、処理開始以降は、回路が待ち状態になることがないような特殊な制御が可能となる点に長所がある。   In Method 1, it is difficult to determine in advance in advance the timing for starting the reading of the image data of the horizontal processing result from the first memory area 61 according to conditions such as camera shake correction, electronic zoom, and electronic distortion correction rate. Therefore, although detailed control is not possible, it is not necessary to perform detailed control with a memory controller, etc., and depending on the point that timing control can be easily realized and the setting value of the read start timing, the circuit will be in a wait state after the start of processing There is an advantage in that it is possible to perform special control that never happens.

この実施形態では、HD動画撮影モードおよび静止画記録モードでは、この方法1を用いるようにしている。   In this embodiment, the method 1 is used in the HD moving image shooting mode and the still image recording mode.

一方、方法2では、第1メモリ領域コントローラ61自身が、読み出し開始タイミングを生成するため、それに必要な情報を管理・更新する必要があるが、画像メモリ6上の画像データをリアルタイムで管理可能となり、読み出し開始タイミングの詳細な制御ができるという長所がある。そして、この方法2は、メモリ容量の制限などで、詳細な制御を行ないたい場合に効果を発揮する。この実施形態では、SD動画撮影モードおよびモニタリングモードでは、方法2を用いるようにしている。   On the other hand, in the method 2, since the first memory area controller 61 itself generates the read start timing, it is necessary to manage and update necessary information. However, the image data on the image memory 6 can be managed in real time. There is an advantage that the read start timing can be controlled in detail. This method 2 is effective when it is desired to perform detailed control due to memory capacity limitations or the like. In this embodiment, the method 2 is used in the SD moving image shooting mode and the monitoring mode.

以上の方法1および方法2の適用例は、一例であり、これに限定されるものではない。   The application example of the above method 1 and method 2 is an example, and is not limited to this.

次に、上記の方法2について、その詳細を述べる。方法2を実現するための重要ポイントは、第1メモリ領域61上に存在する当該フィールド(フレーム)の画像管理情報(メモリ領域上に存在する1フィールド(1フレーム)中での画像範囲およびその開始アドレス、終了アドレス)を常に更新、管理することである。   Next, the details of the method 2 will be described. The important point for realizing the method 2 is that the image management information of the field (frame) existing on the first memory area 61 (the image range in one field (1 frame) existing on the memory area and its start Address, end address) is constantly updated and managed.

一例として、図24の例の場合における第1メモリ領域61についてのデータ書き込み/読み出しの挙動図をクローズアップしたものを図36に示す。また、1画面分の画像データが、そのときに、第1メモリ領域61にどのように書き込まれるかを、図37に示す。図37は、入力画像データについて水平方向の処理を全て行なった後、有効画像データ部分のみを第1メモリ領域61に書き込む場合を示している。   As an example, FIG. 36 shows a close-up of the data write / read behavior diagram for the first memory area 61 in the example of FIG. FIG. 37 shows how image data for one screen is written in the first memory area 61 at that time. FIG. 37 shows a case where only the effective image data portion is written in the first memory area 61 after all the horizontal processing is performed on the input image data.

まず、図36において実線401で示すように、水平方向処理後の有効画像の書き込みが開始される。その時の書き込み開始アドレスは任意である。書き込み続けると、アドレスが第1メモリ領域61のメモリ上限に達し、折り返しが発生する。   First, as indicated by a solid line 401 in FIG. 36, writing of an effective image after horizontal processing is started. The write start address at that time is arbitrary. If writing continues, the address reaches the memory upper limit of the first memory area 61, and folding occurs.

そして、この折り返しが発生した状態で、さらに画像データを書き込み続けると、書き込みアドレスは、前に設定した書き込み開始アドレスに戻って、当該書き込み開始アドレスから、図36において実線402で示すように、第1メモリ領域61上で画像データの上書きが発生する。さらに、書き込み続けると、アドレスが、再度、第1メモリ領域61のメモリ上限に達し、折り返しが発生する。   Then, if image data continues to be written in the state where the aliasing has occurred, the write address returns to the previously set write start address, and from the write start address, as shown by the solid line 402 in FIG. Overwriting of image data occurs in one memory area 61. Furthermore, if the writing is continued, the address reaches the memory upper limit of the first memory area 61 again, and folding occurs.

この折り返しが発生した状態で、さらに画像データを書き込み続けると、書き込みアドレスは、再度、前に設定した書き込み開始アドレスに戻って、当該書き込み開始アドレスから、図36において実線403で示すように、第1メモリ領域61上で画像データの上書きが発生し、1画面分の残りの画像データが書き込まれる。   If the image data continues to be written in the state where the aliasing has occurred, the write address returns to the previously set write start address, and from the write start address, as shown by the solid line 403 in FIG. Overwriting of image data occurs in one memory area 61, and the remaining image data for one screen is written.

図36における実線401,402,403で示した書き込み区間の画像データは、1画面分の画像データとしては、図37に示すようになる。   Image data of the writing section indicated by solid lines 401, 402, and 403 in FIG. 36 is as shown in FIG. 37 as image data for one screen.

図38(A)および(B)に、このときに、第1メモリメモリ61上に存在する画像範囲の遷移を示す。なお、図38(B)では、第1メモリ領域61の容量を、説明の便宜上、100ライン分として示している。   38A and 38B show the transition of the image range existing on the first memory memory 61 at this time. In FIG. 38B, the capacity of the first memory area 61 is shown as 100 lines for convenience of explanation.

書き込みを始めてから第1メモリ領域61の記憶容量分の書き込みがなされると、図38(B)に示すように、画像データの上書きが初めて発生する。その時、保存されていた書き込み開始ラインの画像データが上書きされ、消去されるが、存在終了ラインが増加する。したがって、存在開始ラインと存在終了ラインの相対的な差分は、上書きが開始された時点から常に一定となっている。この存在開始ラインと存在終了ラインのそれぞれのライン情報およびアドレス情報を、第1メモリ領域コントローラ209で常に更新管理して、垂直方向読み出しタイミングを自動生成する。   When writing for the storage capacity of the first memory area 61 is performed after starting writing, overwriting of image data occurs for the first time as shown in FIG. At that time, the stored image data of the writing start line is overwritten and erased, but the existence end line increases. Therefore, the relative difference between the existence start line and the existence end line is always constant from the time when overwriting is started. The first memory area controller 209 always updates and manages the line information and address information of the existence start line and the existence end line, and the vertical direction read timing is automatically generated.

すなわち、この実施形態では、第1メモリ領域61上に存在する画像範囲およびその開始アドレス、終了アドレスを管理することで、垂直方向処理のための読み出し開始タイミングを早めることができ、データの上書きが発生する前に所望のデータを読み出すことで、図43、図45の従来手法よりも少ないメモリ容量でかつ任意の入力画像サイズからのビデオ信号変換を可能とする。   That is, in this embodiment, by managing the image range existing in the first memory area 61 and its start address and end address, the read start timing for the vertical processing can be advanced, and the data can be overwritten. By reading out the desired data before it occurs, it is possible to convert a video signal from an arbitrary input image size with a memory capacity smaller than that of the conventional method shown in FIGS.

さらに、この実施形態では、上述した存在開始ラインの情報をもとに、所望のラインの読み出しアドレス計算を行なうことで、従来では複雑になり得たアドレス計算を簡素化するようにしている。   Further, in this embodiment, the address calculation which has been complicated conventionally can be simplified by calculating the read address of the desired line based on the information of the existence start line.

すなわち、図43、図44に示した従来手法では、画像の読み出しアドレス計算には、図37に示した書き込み開始ラインおよびその開始アドレスをもとに計算している。つまり、従来手法では、書き込み開始ラインに対する相対アドレスを画像の読み出しのアドレス計算に利用している。その書き込み開始ラインおよびアドレス情報は、垂直ブランキング期間中に一度更新される。   That is, in the conventional method shown in FIGS. 43 and 44, the image read address is calculated based on the write start line and its start address shown in FIG. That is, in the conventional method, the relative address with respect to the writing start line is used for calculating the address for reading the image. The write start line and address information are updated once during the vertical blanking period.

図39に、従来方法の場合における垂直方向処理のための画像データの読み出し開始タイミングの計算方法を示す。すなわち、図39に示すように、垂直方向処理対象のラインが指定されて、その要求が垂直画像処理部で発生したとき、メモリコントローラは、要求されたラインを処理するために必要な画像範囲の複数ラインのアドレスを、書き込み開始ラインからの相対差分を利用して計算し、それらの必要な画像範囲の複数ラインの書き込みが終了していて、その読み出しが開始できるかどうかを判断するようにする。   FIG. 39 shows a method for calculating the read start timing of image data for vertical processing in the case of the conventional method. That is, as shown in FIG. 39, when a vertical processing target line is specified and the request is generated in the vertical image processing unit, the memory controller determines the image range necessary for processing the requested line. The address of multiple lines is calculated using the relative difference from the writing start line, and it is determined whether or not the writing of the multiple lines in the required image range has been completed and the reading can be started. .

しかし、この図39に示した垂直方向処理のための画像データの読み出し開始タイミングの計算方法として、書き込み開始アドレスを利用したアドレス計算を、この実施形態の撮像装置へ適用すると、次のような問題がある。すなわち、
1.任意の折り返しアドレスに対応するためには除算器が必要となる。
However, when the address calculation using the write start address is applied to the image pickup apparatus of this embodiment as the method for calculating the read start timing of the image data for the vertical processing shown in FIG. There is. That is,
1. In order to cope with an arbitrary return address, a divider is required.

2.折り返しアドレスが2のべき乗の場合、シフト演算などを用いることで代用できるが、汎用性に欠け、また、動的に折り返しアドレスを変化させることが困難である。   2. When the return address is a power of 2, it can be substituted by using a shift operation or the like. However, it is not versatile and it is difficult to dynamically change the return address.

という問題がある。 There is a problem.

そこで、この実施形態では、アドレス計算には図38に示した存在開始ラインおよびそのアドレスを利用することでこれらの問題を解決するようにしている。   Therefore, in this embodiment, these problems are solved by using the existence start line and its address shown in FIG. 38 for the address calculation.

図40に、この実施形態における垂直方向処理のための画像データの読み出し開始タイミングの計算方法を示す。すなわち、図40に示すように、垂直方向処理対象のラインが指定されて、その要求が垂直画像処理部で発生したとき、第1メモリ領域コントローラ209は、要求されたラインを処理するために必要な画像範囲の複数ラインの、その存在開始ラインからの相対差分を利用して計算し、それらの必要な画像範囲の複数ラインの書き込みが終了していて、垂直方向処理が開始できるかどうかを判断するようにする。   FIG. 40 shows a method for calculating the read start timing of image data for vertical processing in this embodiment. That is, as shown in FIG. 40, when a vertical processing target line is specified and the request is generated in the vertical image processing unit, the first memory area controller 209 is necessary to process the requested line. The calculation is performed using the relative difference from the start line of multiple lines in the correct image range, and it is determined whether the vertical processing can be started after the writing of the multiple lines in the required image range has been completed. To do.

この実施形態では、存在開始ラインに対する相対アドレスを、垂直方向処理のための画像データの読み出し開始タイミングを決定する際のアドレス計算に利用することで、アドレス計算の際の折り返しは高々一回となる。このことより、除算器ではなく減算器などで実現することができ、計算の簡素化できる。   In this embodiment, by using the relative address with respect to the existence start line for address calculation when determining the read start timing of image data for vertical processing, the return at the time of address calculation is at most once. . As a result, it can be realized by a subtracter or the like instead of a divider, and the calculation can be simplified.

また、任意の折り返しアドレスに対応可能となる。そして、どのような入力画像サイズの場合でも、アドレス計算の際の折り返し回数は高々一回となるため、任意の入力画像サイズの画像データからの出力画像データへの変換が容易に実現できる。   In addition, it is possible to cope with an arbitrary return address. In any input image size, since the number of times of wrapping at the time of address calculation is at most once, conversion from image data of an arbitrary input image size to output image data can be easily realized.

このときの、ブロック垂直画像処理部52の要部の構成のブロック図を図41に示す。また、この例における第1メモリ領域コントローラ209の、垂直処理のための画像データの読み出し制御動作のフローチャートを図42に示す。ただし、図42のフローチャートは、1画面分の画像データについての処理を示したもので、動画の画像データの場合には、この図42の処理が繰り返されることになる。   FIG. 41 shows a block diagram of the configuration of the main part of the block vertical image processing unit 52 at this time. Further, FIG. 42 shows a flowchart of the image data read control operation for vertical processing of the first memory area controller 209 in this example. However, the flowchart of FIG. 42 shows processing for image data for one screen. In the case of moving image data, the processing of FIG. 42 is repeated.

すなわち、この場合、図41に示すように、垂直補間処理部210は、前のラインについての垂直補間処理が終了すると、次のラインの垂直補間処理のために、第1メモリ領域コントローラ209に新たな要求ラインの情報を送る。   That is, in this case, as shown in FIG. 41, when the vertical interpolation processing for the previous line is completed, the vertical interpolation processing unit 210 adds a new memory to the first memory area controller 209 for the vertical interpolation processing of the next line. Send request line information.

第1メモリ領域コントローラ209は、この要求ラインの情報を受け取ると(ステップS201)、要求ラインを垂直方向処理するために必要な複数ラインを認識し、それら複数ラインの、存在開始ラインに対する相対アドレスに関する計算を、上述したようにして行なう(ステップS202)。   When the first memory area controller 209 receives the information on the request line (step S201), the first memory area controller 209 recognizes a plurality of lines necessary to process the request line in the vertical direction, and relates the relative addresses of the plurality of lines to the existence start line. The calculation is performed as described above (step S202).

このとき、レジスタブロック53には、制御部10から手ぶれ補正の有無、レンズ歪み補正の有無、電子ズームの有無などのモードに関する情報が保持されており、第1メモリ領域コントローラ209は、このレジスタブロック53のモードの情報から、そのときのモードにおいて、要求ラインを垂直方向処理するために必要な複数ラインを認識し、そのアドレス計算を行なう。   At this time, the register block 53 holds information about modes such as presence / absence of camera shake correction, presence / absence of lens distortion correction, presence / absence of electronic zoom from the control unit 10, and the first memory area controller 209 stores information on the register block 53. From the 53 mode information, in the mode at that time, a plurality of lines necessary to process the request line in the vertical direction are recognized, and the address is calculated.

そして、第1メモリ領域コントローラ209は、必要な複数ラインの画像データの読み出しが可能になったか否か判別し(ステップS203)、未だ、それらの画像データの書き込みが終了していない場合には、垂直補間処理部210に供給するウエイト信号wait=1として、その旨を垂直補間処理部210に通知する(ステップS204)。そして、ステップS203に戻る。   Then, the first memory area controller 209 determines whether or not necessary multiple lines of image data can be read (step S203). If the writing of these image data has not yet been completed, The weight signal wait = 1 supplied to the vertical interpolation processing unit 210 is set to 1, and this is notified to the vertical interpolation processing unit 210 (step S204). Then, the process returns to step S203.

また、ステップS203で、必要な複数ラインの画像データの読み出しが可能になったと判別したときには、第1メモリ領域コントローラ209は、垂直補間処理部210に供給するウエイト信号wait=0とすると共に、上記必要な複数ラインの画像データを読み出して、垂直補間処理部210に転送する(ステップS206)。したがって、垂直補間処理部210は、要求ラインについての垂直補間処理を開始する。   If it is determined in step S203 that the necessary plural lines of image data can be read, the first memory area controller 209 sets the wait signal wait = 0 supplied to the vertical interpolation processing unit 210 and Necessary plural lines of image data are read out and transferred to the vertical interpolation processing unit 210 (step S206). Therefore, the vertical interpolation processing unit 210 starts vertical interpolation processing for the requested line.

次に、第1メモリ領域コントローラ209は、1画面分の画像データの全てについての上記処理が終了したか否か判別し、終了してはいないと判別したときには、ステップS201に戻って、上述の処理を繰り返す。また、1画面分の画像データの全てについての上記処理が終了したと判別したときには、この処理ルーチンを終了する。   Next, the first memory area controller 209 determines whether or not the above processing for all the image data for one screen has been completed. If it is determined that the processing has not ended, the first memory area controller 209 returns to step S201 to Repeat the process. When it is determined that the above processing for all the image data for one screen has been completed, this processing routine ends.

なお、上述の実施形態の説明では、主に動画記録モードのときの撮像画像信号の場合について述べたが、静止画記録、静止画再生などの際にも、上述と同様のアドレス計算方法を適用できることは勿論である。   In the description of the above-described embodiment, the case of the captured image signal in the moving image recording mode has been mainly described. However, the same address calculation method as described above is also applied to still image recording, still image reproduction, and the like. Of course you can.

以上説明したように、この実施形態によれば、1フィールド(1フレーム)分のメモリ容量に、垂直解像度変換などの垂直方向画像処理を開始するのに必要なメモリ容量を加えるだけで、任意データサイズの入力画像信号から、出力画像信号への変換が可能となり、入力画像分のメモリ容量相当を必要とする従来システムより少ない容量で、解像度変換などの画像処理が実現できる。   As described above, according to this embodiment, arbitrary data can be obtained by adding a memory capacity necessary for starting vertical image processing such as vertical resolution conversion to a memory capacity for one field (one frame). An input image signal having a size can be converted into an output image signal, and image processing such as resolution conversion can be realized with a smaller capacity than a conventional system that requires a memory capacity corresponding to the input image.

また、レジスタ設定のセパレートアドレスによるメモリ分割を行うことで、動的に回路構成を変化させることができ、その結果、さまざまな処理モードに対応することが可能であり、シームレスなモード遷移が可能となる。   In addition, by dividing the memory using the separate address of the register setting, the circuit configuration can be changed dynamically. As a result, it is possible to support various processing modes and seamless mode transition is possible. Become.

また、メモリ上の画像管理情報をリアルタイムで管理・更新することで、読み出しの際のアドレス計算も簡素化でき、さらに、任意の折り返しアドレスに対応可能となる。   Further, by managing and updating the image management information in the memory in real time, it is possible to simplify the address calculation at the time of reading, and it is possible to cope with an arbitrary return address.

また、入力画像サイズによらず一定のメモリ容量にて解像度変換などの画像処理を実現できるため、入力画像サイズが大きくなればなるほど、従来システムに対して、その効果を、より発揮できる。さらに、動画像処理だけでなく、静止画処理に対しても適用できるため、より広い分野での利用が期待できる。   In addition, since image processing such as resolution conversion can be realized with a constant memory capacity regardless of the input image size, the larger the input image size, the more effective the conventional system. Furthermore, since it can be applied not only to moving image processing but also to still image processing, it can be expected to be used in a wider field.

また、画像処理モードに応じてメモリ構成を動的に変化させることと、垂直処理の開始タイミングを2種類の方法を用いて柔軟に設定できることから、汎用性が高く、撮像装置だけでなく、さまざまな画像処理システムに組み込むことが期待できる。   In addition, since the memory configuration is dynamically changed according to the image processing mode and the start timing of the vertical processing can be set flexibly using two methods, the versatility is high, and not only the imaging device but also various It can be expected to be incorporated into a simple image processing system.

[他の実施形態および変形例]
なお、上述の実施形態の説明は、撮像装置を操作するユーザにより生起される手ぶれによる画像歪みを補正する場合であったが、ユーザにより生起される手ぶれのみではなく、撮影時に、撮像素子に対して、その撮像画像の水平方向および/または垂直方向の位置的変化を生じるように加わった振動などの偏倚力に起因して生じる画像歪みをも補正することができることは言うまでもない。
[Other Embodiments and Modifications]
Note that the description of the above-described embodiment was a case where image distortion caused by camera shake caused by a user operating the imaging apparatus is corrected. However, not only camera shake caused by the user but also during imaging, Needless to say, image distortion caused by a biasing force such as vibration applied so as to cause a positional change in the horizontal direction and / or vertical direction of the captured image can be corrected.

また、上述の実施形態では、レンズの交換や光学ズームによるレンズの光軸上の移動を考慮するために、レンズ歪み補正用データ導出・エンコード部11を設けたが、レンズ交換を行なわず、光学ズームの機能を有しない撮像装置の場合であれば、レンズ歪み補正用ベクトルは、撮像素子の各画素位置に対して一意に定まるので、レンズ歪み補正用データデコード部の代わりに、レンズ歪み補正用データの格納部を設け、画素座標データを引数として、レンズ歪み水平方向補正量データやレンズ歪み垂直方向補正量データを読み出すようにすれば良い。   In the above-described embodiment, the lens distortion correction data deriving / encoding unit 11 is provided in order to consider lens replacement and movement on the optical axis of the lens due to optical zoom. In the case of an image pickup apparatus that does not have a zoom function, the lens distortion correction vector is uniquely determined for each pixel position of the image sensor, so that the lens distortion correction vector is used instead of the lens distortion correction data decoding unit. A data storage unit may be provided, and the lens distortion horizontal direction correction amount data and lens distortion vertical direction correction amount data may be read using pixel coordinate data as an argument.

また、上述の実施形態は、X−Yアドレス型の固体撮像素子としてCMOSイメージャを用いた場合であるが、撮像素子としてはCMOSイメージャに限定されるものでないことは勿論である。また、撮像素子は、X−Yアドレス型のものに限定されるものではなく、CCD固体撮像素子であってもよい。   Moreover, although the above-mentioned embodiment is a case where a CMOS imager is used as an XY address type solid-state image sensor, it is needless to say that the image sensor is not limited to a CMOS imager. Further, the image sensor is not limited to the XY address type, and may be a CCD solid-state image sensor.

また、この発明は、撮像装置(カメラ)にのみ適用されるものではなく、例えば携帯電話端末、情報携帯端末などに撮像素子が取付けられて、画像を撮影する場合にも適用できるものである。また、画像データは、撮像画像データに限られるものではないことは言うまでもない。   The present invention is not only applied to an image pickup apparatus (camera), but can also be applied to a case where an image pickup device is attached to, for example, a mobile phone terminal, an information mobile terminal or the like to take an image. Needless to say, the image data is not limited to the captured image data.

この発明による画像処理装置の実施形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of embodiment of the image processing apparatus by this invention. 手ぶれ補正を説明するために用いる図である。It is a figure used in order to explain camera shake correction. CMOSイメージャにおける、手ぶれによるフレーム内画像歪みの原因を説明するための図である。It is a figure for demonstrating the cause of the image distortion in a flame | frame by camera shake in a CMOS imager. CMOSイメージャにおける、手ぶれによるフレーム内画像歪みを説明するために用いる図である。It is a figure used in order to explain image distortion in a frame by camera shake in a CMOS imager. この発明による画像処理装置の実施形態における手ぶれ補正の概要を説明するための図である。It is a figure for demonstrating the outline | summary of the camera-shake correction in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における手ぶれ補正動作を説明するための図である。It is a figure for demonstrating the camera-shake correction operation | movement in embodiment of the image processing apparatus by this invention. 撮像レンズの歪曲収差特性に基づく画像歪みを説明するための図である。It is a figure for demonstrating the image distortion based on the distortion aberration characteristic of an imaging lens. この発明による画像処理装置の実施形態における画像メモリのメモリ領域を説明するための図である。It is a figure for demonstrating the memory area of the image memory in embodiment of the image processing apparatus by this invention. 図1の一部の詳細構成例を示す図である。It is a figure which shows the example of a one part detailed structure of FIG. この発明による画像処理装置の実施形態における手ぶれ補正動作を説明するための図である。It is a figure for demonstrating the camera-shake correction operation | movement in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における手ぶれ補正動作を説明するための図である。It is a figure for demonstrating the camera-shake correction operation | movement in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態において、画像歪みを補正するために用いる補間処理を説明するための図である。It is a figure for demonstrating the interpolation process used in order to correct | amend image distortion in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態において、画像歪みを補正するために用いる補間処理を説明するための図である。It is a figure for demonstrating the interpolation process used in order to correct | amend image distortion in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態において、画像歪みを補正するために用いる補間処理を説明するための図である。It is a figure for demonstrating the interpolation process used in order to correct | amend image distortion in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態において、画像歪みを補正するために用いる補間処理を説明するための図である。It is a figure for demonstrating the interpolation process used in order to correct | amend image distortion in embodiment of the image processing apparatus by this invention. 図1の実施形態の装置における水平処理用手ぶれ補正量積分部の動作の流れを説明のためのフローチャートである。6 is a flowchart for explaining the flow of operation of a horizontal processing image stabilization amount integration unit in the apparatus of the embodiment of FIG. 図1の実施形態の装置における水平画像処理部の詳細構成例を示すブロック図である。It is a block diagram which shows the detailed structural example of the horizontal image process part in the apparatus of embodiment of FIG. 図17の水平画像処理部の動作タイミングを説明するための図である。It is a figure for demonstrating the operation timing of the horizontal image process part of FIG. 図1の実施形態の装置における垂直処理用手ぶれ補正量積分部の動作の流れを説明のためのフローチャートである。6 is a flowchart for explaining the operation flow of a vertical processing image stabilization amount integration unit in the apparatus of the embodiment of FIG. 1; 図1の実施形態の装置における垂直画像処理部の詳細構成例を示すブロック図である。It is a block diagram which shows the detailed structural example of the vertical image process part in the apparatus of embodiment of FIG. 図20の垂直画像処理部の動作タイミングを説明するための図である。It is a figure for demonstrating the operation timing of the vertical image process part of FIG. この発明による画像処理装置の実施形態における画像データの処理の流れを説明するためのブロック図である。It is a block diagram for demonstrating the flow of a process of the image data in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像データの処理の一例を説明するために用いる図である。It is a figure used in order to demonstrate an example of the process of the image data in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像データの処理の一例を説明するために用いる図である。It is a figure used in order to demonstrate an example of the process of the image data in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリのうちの第1メモリ領域の容量の設定方法を説明するための図である。It is a figure for demonstrating the setting method of the capacity | capacitance of the 1st memory area of the image memory in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像データの処理の一例を説明するために用いる図である。It is a figure used in order to demonstrate an example of the process of the image data in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像データの処理の一例を説明するために用いる図である。It is a figure used in order to demonstrate an example of the process of the image data in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. 図1の実施形態の装置における画像メモリのうちの第1メモリ領域の容量を説明するために用いる図である。It is a figure used in order to demonstrate the capacity | capacitance of the 1st memory area of the image memory in the apparatus of embodiment of FIG. この発明による画像処理装置の実施形態における画像データの処理の一例を説明するために用いる図である。It is a figure used in order to explain an example of processing of image data in an embodiment of an image processing device by this invention. この発明による画像処理装置の実施形態における画像データの処理の流れを説明するためのブロック図である。It is a block diagram for demonstrating the flow of a process of the image data in embodiment of the image processing apparatus by this invention. 図34の例における画像メモリへの書き込み/読み出し動作例を説明するための図である。FIG. 35 is a diagram for explaining an example of a write / read operation to / from an image memory in the example of FIG. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. この発明による画像処理装置の実施形態における画像メモリへの書き込み/読み出し動作例を説明するための図である。It is a figure for demonstrating the example of write-in / read-out operation | movement to the image memory in embodiment of the image processing apparatus by this invention. 従来の画像処理装置を説明するためのブロック図である。It is a block diagram for demonstrating the conventional image processing apparatus. 図43の例の画像処理装置における画像メモリへの書き込み/読み出し動作を説明するための図である。FIG. 44 is a diagram for describing a write / read operation to / from an image memory in the image processing apparatus in the example of FIG. 43. 画像処理装置の他の例を説明するためのブロック図である。It is a block diagram for demonstrating the other example of an image processing apparatus.

符号の説明Explanation of symbols

2…撮像素子、5…信号処理部、6…画像メモリ、7…手ぶれ検出部、8…手ぶれ速度検出処理部、10…制御部、12…レンズ歪み補正データデコード部、51…水平処理ブロック、52…垂直処理ブロック、53…レジスタブロック、61…第1メモリ領域、62…第2のメモリ領域、209…第1メモリ領域コントローラ、210…垂直補間処理部、212…第2メモリ領域コントローラ   DESCRIPTION OF SYMBOLS 2 ... Imaging device, 5 ... Signal processing part, 6 ... Image memory, 7 ... Camera shake detection part, 8 ... Camera shake speed detection processing part, 10 ... Control part, 12 ... Lens distortion correction data decoding part, 51 ... Horizontal processing block, 52 ... Vertical processing block, 53 ... Register block, 61 ... First memory area, 62 ... Second memory area, 209 ... First memory area controller, 210 ... Vertical interpolation processing unit, 212 ... Second memory area controller

Claims (10)

入力画像データに対して、画像処理手段が所定の画像処理を画像の水平方向の処理と画像の垂直方向の処理とに分けて施すことにより、出力画像データを生成する画像処理方法であって、
メモリ制御手段が、1つの画像メモリのメモリ領域を論理的に第1のメモリ領域と第2のメモリ領域とに分割する第1の工程と
前記画像処理手段の水平処理手段が前記入力画像データに対して画像の水平方向の処理を施した画像データを、前記メモリ制御手段が前記第1のメモリ領域に書き込む第2の工程と
前記画像処理手段の垂直処理手段が前記第1のメモリ領域から入力した前記水平方向の処理を施した画像データに対して画像の垂直方向の処理を施し、当該垂直方向の処理を施した像データを、前記メモリ制御手段が前記第2のメモリ領域に書き込む第3の工程と
を有し、
前記第1の工程は、
前記所定の画像処理に応じて、
前記第1のメモリ領域が、前記垂直処理手段が前記垂直方向の処理を開始することのできるデータ量に所定のマージンを含めた前記第2のメモリ領域よりも小さい記憶容量を有し、前記第2のメモリ領域が、少なくとも出力画像データの1画面分の画像データを書き込むことができる記憶容量を有するように、
前記メモリ領域の分割を行い、
前記第2の工程は、
前記メモリ制御手段が、前記第1のメモリ領域に前記垂直処理手段が処理を開始することができるデータ量の前記水平方向の処理を施された画像データが書き込まれると、当該水平方向の処理を施された画像データを読み出して前記垂直処理手段へ出力し、当該水平方向の処理を施した画像データが読み出された前記第1のメモリ領域の空き領域に、逐次前記水平処理手段から出力される水平方向の処理を施した画像データを書き込んでFIFO動作を行わせる工程を含み、
前記第3の工程は、
前記メモリ制御手段が、前記第2のメモリ領域に前記垂直方向の処理を施された画像データが1画面分書き込まれると、当該1画面分の画像データを読み出して前記出力画像データとして外部へ出力し、当該1画面分の画像データが読み出された前記第2のメモリ領域の空き領域に、逐次前記垂直処理手段から出力される垂直方向の処理を施した画像データを書き込んでFIFO動作を行わせる工程を含む
画像処理方法。
Input to the image data, by the image processing means performs separately predetermined image processing on the vertical processing in the horizontal direction of the process and the image of the image, an image processing method of generating an output image data,
Memory control means includes a first step of dividing a memory area of an image memory and logically the first memory area and a second memory area,
And the image data subjected to the horizontal processing of the image, writing to the memory control means the first memory area write No second step horizontal processing means to the input image data of the image processing unit,
Images of vertical processing unit of the image processing means the performing vertical processing of the image with respect to the first image data to which the subjected to horizontal processing input from a memory area, subjected to the vertical processing data, and said memory control means write No third to the second memory area process,
Have
The first step includes
According to the predetermined image processing,
The first memory area has a smaller storage capacity than the second memory area including a predetermined margin in the amount of data that the vertical processing means can start the vertical processing on, and The memory area of 2 has a storage capacity capable of writing image data for at least one screen of output image data.
Dividing the memory area;
The second step includes
When the memory control unit writes image data that has been subjected to the horizontal processing in the amount of data that can be processed by the vertical processing unit into the first memory area, the horizontal processing is performed. The applied image data is read out and output to the vertical processing means, and the image data subjected to the processing in the horizontal direction is sequentially output from the horizontal processing means to the empty area of the first memory area from which the image data has been read out. A step of writing image data subjected to horizontal processing and performing a FIFO operation,
The third step includes
When the image data subjected to the vertical processing is written into the second memory area for one screen, the memory control means reads out the image data for one screen and outputs it as the output image data to the outside. Then, the image data subjected to the vertical processing sequentially output from the vertical processing means is written in the empty area of the second memory area from which the image data for one screen is read, and the FIFO operation is performed. An image processing method including the step of causing the
前記画像処理手段が行う所定の画像処理は、記入力画像データの解像度を変換する解像度変換処理を含む
請求項1記載の画像処理方法。
Predetermined image processing by the image processing means performs include resolution conversion processing for converting the resolution of the entering force image data
The image processing method according to claim 1 .
前記画像処理手段が行う所定の画像処理は、電子ズームによる画像の拡大・縮小処理を含む
請求項1または2記載の画像処理方法。
The predetermined image processing performed by the image processing means includes image enlargement / reduction processing by electronic zoom.
The image processing method according to claim 1 .
前記画像処理手段が行う所定の画像処理は、撮像時の手ぶれに基づく画像歪みを補正する手ぶれ補正処理を含む
請求項1から3のいずれか一に記載の画像処理方法。
The predetermined image processing performed by the image processing means includes a camera shake correction process for correcting image distortion based on camera shake during imaging.
The image processing method according to claim 1 .
前記画像処理手段が行う所定の画像処理は、撮像に用いたレンズに基づく画像歪みを補正するレンズ歪み補正処理を含む
請求項1から4のいずれか一に記載の画像処理方法。
The predetermined image processing performed by the image processing means includes lens distortion correction processing for correcting image distortion based on a lens used for imaging.
The image processing method according to claim 1 .
入力画像データに対して画像の水平方向の処理を施す水平処理手段および前記画像の垂直方向の処理を施す垂直処理手段を含み、前記入力画像データに所定の画像処理を施す画像処理手段と、
メモリ領域が、理的に第1のメモリ領域と第2のメモリ領域とに分けられて用いられる画像メモリと、
前記画像メモリを制御して、前記メモリ領域を第1のメモリ領域と第2のメモリ領域とに分割し、
前記水平処理手段が前記水平方向の処理を施した画像データを前記画像メモリの第1のメモリ領域に書き込む制御を行い
前記垂直処理手段が前記垂直方向の処理を施した画像データを前記画像メモリの第2のメモリ領域に書き込む制御を行う
メモリ制御手段と、
を有し、
前記メモリ制御手段は、
前記所定の画像処理に応じて、
前記画像メモリの前記第1のメモリ領域が、前記垂直処理手段が前記垂直方向の処理を開始することができるデータ量に所定のマージンを含めた前記第2のメモリ領域よりも小さい記憶容量を有し、
前記画像メモリの前記第2のメモリ領域が、少なくとも出力画像データの1画面分の画像データを書き込むことができる記憶容量を有するように、
前記画像メモリのメモリ領域を分割し、
前記第1のメモリ領域に前記垂直処理手段が処理を開始することができるデータ量の前記水平方向の処理を施された画像データが書き込まれると、当該水平方向の処理を施された画像データを読み出して前記垂直処理手段へ出力し、
当該水平方向の処理を施した画像データが読み出された前記第1のメモリ領域の空き領域に、逐次前記水平処理手段から出力される水平方向の処理を施した画像データを書き込んでFIFO動作を行わせ、
前記第2のメモリ領域に前記垂直方向の処理を施された画像データが1画面分書き込まれると、当該1画面分の画像データを読み出して出力画像データとして外部へ出力し、
当該1画面分の画像データが読み出された前記第2のメモリ領域の空き領域に、逐次前記垂直処理手段から出力される垂直方向の処理を施した画像データを書き込んでFIFO動作を行わせる
画像処理装置。
Image processing means for performing predetermined image processing on the input image data, including horizontal processing means for processing the input image data in the horizontal direction and vertical processing means for processing the image in the vertical direction ;
Memory area, and an image memory used is divided into a logically first memory area and a second memory area,
Controlling the image memory to divide the memory area into a first memory area and a second memory area;
The horizontal processing means performs control to write the image data subjected to the horizontal processing in the first memory area of the image memory ,
The vertical processing means performs control to write the image data subjected to the vertical processing into the second memory area of the image memory.
Memory control means;
Have
The memory control means includes
According to the predetermined image processing,
The first memory area of the image memory has a smaller storage capacity than the second memory area including a predetermined margin in the amount of data that the vertical processing means can start processing in the vertical direction. And
The second memory area of the image memory has a storage capacity capable of writing image data for at least one screen of output image data.
Dividing the memory area of the image memory;
When the image data that has been subjected to the horizontal processing in the amount of data that can be processed by the vertical processing means is written to the first memory area, the image data that has been subjected to the horizontal processing is stored. Read and output to the vertical processing means,
The image data subjected to the horizontal processing sequentially output from the horizontal processing means is written in the empty area of the first memory area from which the image data subjected to the horizontal processing has been read, and the FIFO operation is performed. Let
When the image data subjected to the vertical processing is written for one screen in the second memory area, the image data for the one screen is read and output to the outside as output image data,
An image for performing the FIFO operation by sequentially writing the image data that has been subjected to the vertical processing output from the vertical processing means into the empty area of the second memory area from which the image data for one screen has been read. Processing equipment.
前記画像処理手段は、
前記所定の画像処理として、前記入力画像データの解像度を変換する解像度変換処理を行うことを含む
請求項6記載の画像処理装置。
The image processing means includes
As the predetermined image processing includes performing a resolution conversion process of converting the resolution of the input image data
The image processing apparatus according to claim 6 .
前記画像処理手段は、
前記所定の画像処理として、電子ズームによる画像の拡大・縮小処理を行うことを含む
請求項6または7記載の画像処理装置。
The image processing means includes
As the predetermined image processing includes performing a scaling process of the image by electronic zooming
The image processing apparatus according to claim 6 or 7 .
前記画像処理手段は、
前記所定の画像処理として、撮像時の手ぶれに基づく画像歪みを補正する手ぶれ補正処理を行うことを含む
請求項6から8のいずれか一に記載の画像処理装置。
The image processing means includes
As the predetermined image processing includes performing camera shake correction processing to correct image distortion based on the shake during imaging
The image processing apparatus according to claim 6 .
前記画像処理手段は、
前記所定の画像処理として、撮像に用いたレンズに基づく画像歪みを補正するレンズ歪み補正処理を行うことを含む
請求項6から9のいずれか一に記載の画像処理装置。
The image processing means includes
The predetermined image processing includes performing lens distortion correction processing for correcting image distortion based on a lens used for imaging.
The image processing apparatus according to claim 6 .
JP2005015111A 2005-01-24 2005-01-24 Image data processing method and image data processing apparatus Expired - Fee Related JP4453559B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005015111A JP4453559B2 (en) 2005-01-24 2005-01-24 Image data processing method and image data processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005015111A JP4453559B2 (en) 2005-01-24 2005-01-24 Image data processing method and image data processing apparatus

Publications (2)

Publication Number Publication Date
JP2006203733A JP2006203733A (en) 2006-08-03
JP4453559B2 true JP4453559B2 (en) 2010-04-21

Family

ID=36961313

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005015111A Expired - Fee Related JP4453559B2 (en) 2005-01-24 2005-01-24 Image data processing method and image data processing apparatus

Country Status (1)

Country Link
JP (1) JP4453559B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262949A (en) * 2015-10-15 2016-01-20 浙江卓锐科技股份有限公司 Multifunctional panorama video real-time splicing method
CN113959341B (en) * 2021-10-14 2024-04-26 江苏科技大学 Optical structure displacement measuring method, system and storage medium

Also Published As

Publication number Publication date
JP2006203733A (en) 2006-08-03

Similar Documents

Publication Publication Date Title
JP4702233B2 (en) Image data processing apparatus and image data processing method
JP4310645B2 (en) Method for correcting distortion of captured image signal and distortion correction apparatus for captured image signal
JP4340915B2 (en) Captured image signal distortion correction method, captured image signal distortion correction apparatus, imaging method, and imaging apparatus
JP4389779B2 (en) Method for correcting distortion of captured image signal and distortion correction apparatus for captured image signal
US8264551B2 (en) Methods for correcting distortions of image-taking video signals and apparatus for correcting distortions of image-taking video signals
US8009337B2 (en) Image display apparatus, method, and program
KR20080013674A (en) Imaging apparatus and method
JP4406711B2 (en) Image data processing method and image data processing apparatus
KR101128167B1 (en) Image display device
JP2008167293A (en) Imaging apparatus and imaging method
JP5105844B2 (en) Imaging apparatus and method
JP4403409B2 (en) Image data processing method and image data processing apparatus
JP5820720B2 (en) Imaging device
JP5959194B2 (en) Imaging device
JP4453559B2 (en) Image data processing method and image data processing apparatus
JP2005012423A (en) Image pickup device, and signal processing apparatus
CN107615742B (en) Display control device and imaging device
KR20100061311A (en) Photographing apparatus and controlling method thereof
KR20110048250A (en) Apparatus and method for processing digital image signal
JP4239811B2 (en) Imaging device
JP2000115694A (en) Image data recording method and device thereof, image data reproducing method and device thereof information recording medium and computer-readable recording medium
JP2000115693A (en) Image data recording method and device, image data reproducing method and device, information recording medium and computer-readable recording medium
JP2001358981A (en) Image pickup device and its method and storage medium for storing its control program
JP5008380B2 (en) Image processing apparatus and image processing method
JP2003274252A (en) Camera-integrated recording and playing-back equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070601

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20090807

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090924

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090929

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20091002

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091124

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

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

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

Free format text: PAYMENT UNTIL: 20130212

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130212

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees