JP2006003481A - Image size conversion apparatus and image pickup apparatus - Google Patents

Image size conversion apparatus and image pickup apparatus Download PDF

Info

Publication number
JP2006003481A
JP2006003481A JP2004177781A JP2004177781A JP2006003481A JP 2006003481 A JP2006003481 A JP 2006003481A JP 2004177781 A JP2004177781 A JP 2004177781A JP 2004177781 A JP2004177781 A JP 2004177781A JP 2006003481 A JP2006003481 A JP 2006003481A
Authority
JP
Japan
Prior art keywords
image data
image size
image
output
filter
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.)
Pending
Application number
JP2004177781A
Other languages
Japanese (ja)
Inventor
Atsushi Kobayashi
篤 小林
Hiromasa Yamada
浩正 山田
Daisuke Koyanagi
大輔 小柳
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 JP2004177781A priority Critical patent/JP2006003481A/en
Publication of JP2006003481A publication Critical patent/JP2006003481A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Circuits (AREA)
  • Studio Devices (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To variously convert an image size horizontally and vertically through a simple structure, in the application to an electronic still camera for example, concerning an image size conversion apparatus and an image pickup apparatus. <P>SOLUTION: Reducing an image size horizontally is accomplished by arranging a memory circuit 5 on line memories 25A-25E and a vertical filter 9 for changing the size vertically, following a horizontal filter 8 for reducing the image size horizontally. Enlarging the image size horizontally is performed by arranging the vertical filter 9 and the horizontal filter 8 in succession after the memory circuit 5. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画サイズ変換装置及び撮像装置に関し、例えば電子スチルカメラに適用することができる。本発明は、水平方向に画サイズを縮小する場合には、水平方向の画サイズを縮小する水平フィルタに続いて、ラインメモリによるメモリ回路、垂直方向のサイズを変更する垂直フィルタを配置し、水平方向の画サイズを拡大する場合には、メモリ回路に続いて、垂直フィルタ、水平フィルタを順に配置することにより、簡易な構成により、水平方向、垂直方向に種々に画サイズを変換することができるようにする。   The present invention relates to an image size conversion device and an imaging device, and can be applied to, for example, an electronic still camera. In the present invention, in the case of reducing the image size in the horizontal direction, a horizontal circuit for reducing the image size in the horizontal direction is followed by a memory circuit using a line memory and a vertical filter for changing the size in the vertical direction. When enlarging the image size in the direction, the image size can be variously converted in the horizontal direction and the vertical direction with a simple configuration by sequentially arranging the vertical filter and the horizontal filter after the memory circuit. Like that.

従来、電子スチルカメラ等においては、画像出力対象である液晶表示パネル等に対応するように、いわゆる画サイズ変換回路により画サイズを変換して画像データを出力するようになされている。このような画像画サイズ変換回路においては、一般に、フレームメモリを介して2次元のフィルタ回路により画像データを処理することにより、画像データのサンプリングピッチを所望するサンプリングピッチに設定して画サイズを変換するようになされている。   2. Description of the Related Art Conventionally, in an electronic still camera or the like, image data is converted by a so-called image size conversion circuit and image data is output so as to correspond to a liquid crystal display panel or the like that is an image output target. In such an image size conversion circuit, generally, the image data is processed by a two-dimensional filter circuit via a frame memory, thereby setting the sampling pitch of the image data to a desired sampling pitch and converting the image size. It is made to do.

このような画サイズ変換回路に関して、例えば特開平8−223479号公報には、水平方向のみについて、画サイズを拡大縮小する方法が提案されるようになされている。すなわちこの方法においては、画像を縮小する場合には、補間回路により画像データを補間処理した後、デュアルポートのラインメモリを用いてクロック周波数を変換するようになされており、画像を拡大する場合には、補間回路及びラインメモリの接続を切り換え、ラインメモリで事前にクロック周波数を変換した後、補間回路により画像データを補間処理するようになされている。   With regard to such an image size conversion circuit, for example, Japanese Patent Application Laid-Open No. 8-223479 proposes a method for enlarging and reducing the image size only in the horizontal direction. That is, in this method, when the image is reduced, the image data is interpolated by the interpolation circuit, and then the clock frequency is converted using the dual port line memory. In this method, the connection between the interpolation circuit and the line memory is switched, the clock frequency is converted in advance in the line memory, and then the image data is interpolated by the interpolation circuit.

しかしながらデュアルポートのラインメモリにおいては、形状が大きく、これによりこの特開平8−223479号公報に開示の構成においては、全体形状が大型化する問題がある。また水平方向のみにしか画サイズを変換できない問題もある。   However, the dual port line memory has a large shape, and the configuration disclosed in Japanese Patent Laid-Open No. 8-223479 has a problem that the overall shape is increased. There is also a problem that the image size can be converted only in the horizontal direction.

しかして近年、撮像素子においては、種々の画素数のものが提供されるようになされており、また液晶表示パネル等にあっても、種々の画素数のものが提供されるようになされている。これにより水平方向、垂直方向に種々に画サイズを高画質により変換することができる簡易な構成による画サイズ変換装置が望まれる。
特開平8−223479号公報
In recent years, however, image sensors have been provided with various pixel numbers, and liquid crystal display panels have been provided with various pixel numbers. . Accordingly, an image size conversion device having a simple configuration capable of converting various image sizes with high image quality in the horizontal direction and the vertical direction is desired.
JP-A-8-223479

本発明は以上の点を考慮してなされたもので、簡易な構成により、水平方向、垂直方向に種々に画サイズを変換することができる画サイズ変換装置及び撮像装置を提案しようとするものである。   The present invention has been made in consideration of the above points, and intends to propose an image size conversion device and an imaging device capable of converting image sizes in various directions in a horizontal direction and a vertical direction with a simple configuration. is there.

かかる課題を解決するため請求項1の発明においては、入力画像データの画サイズを変換して出力画像データを出力する画サイズ変換装置に適用して、少なくとも3個以上の複数のラインメモリを有し、前記複数のラインメモリを順次循環的に選択して順次入力される画像データを前記ラインメモリに記録すると共に、前記複数のラインメモリのうちの残りのラインメモリから複数ラインの画像データを同時並列的に読み出して出力するメモリ回路と、前記メモリ回路から出力される前記複数ラインの画像データを補間演算処理することにより、前記画像データの画サイズを垂直方向に変化させる垂直フィルタと、連続する画像データを補間演算処理して出力することにより、前記画像データの画サイズを水平方向に変化させる水平フィルタと、前記水平フィルタによる画サイズの変化が、画サイズの縮小の場合、前記入力画像データを前記水平フィルタに入力し、前記水平フィルタの出力データを前記メモリ回路に入力し、前記垂直フィルタ回路の出力データを前記出力画像データとして出力し、前記水平フィルタによる画サイズの変化が、画サイズの拡大の場合、前記入力画像データを前記メモリ回路に入力し、前記垂直フィルタの出力データを前記水平フィルタに入力し、前記水平フィルタの出力データを前記出力画像データとして出力するスイッチ回路とを備えるようにする。   In order to solve this problem, the invention of claim 1 is applied to an image size conversion device that converts the image size of input image data and outputs output image data, and has at least three or more line memories. The plurality of line memories are sequentially and cyclically selected and sequentially input image data is recorded in the line memory, and a plurality of lines of image data are simultaneously received from the remaining line memories of the plurality of line memories. A memory circuit that reads out and outputs in parallel, and a vertical filter that changes the image size of the image data in the vertical direction by interpolating the image data of the plurality of lines output from the memory circuit. A horizontal filter that changes the image size of the image data in the horizontal direction by outputting the image data after interpolation processing When the change in the image size by the horizontal filter is a reduction in the image size, the input image data is input to the horizontal filter, the output data of the horizontal filter is input to the memory circuit, and the output of the vertical filter circuit When data is output as the output image data, and the change in the image size by the horizontal filter is an enlargement of the image size, the input image data is input to the memory circuit, and the output data of the vertical filter is input to the horizontal filter. A switch circuit for inputting and outputting the output data of the horizontal filter as the output image data.

また請求項6の発明においては、撮像結果を取得する撮像手段と、操作子の操作に応動して前記撮像手段により得られる入力画像データによる画サイズを変更して出力画像データを出力することにより、電子ズームに係る処理を実行する画サイズ変換回路とを有する撮像装置に適用して、画サイズ変換回路は、少なくとも3個以上の複数のラインメモリを有し、前記複数のラインメモリを順次循環的に選択して順次入力される画像データを前記ラインメモリに記録すると共に、前記複数のラインメモリのうちの残りのラインメモリから複数ラインの画像データを同時並列的に読み出して出力するメモリ回路と、前記メモリ回路から出力される前記複数ラインの画像データを補間演算処理することにより、前記画像データの画サイズを垂直方向に変化させる垂直フィルタと、連続する画像データを補間演算処理して出力することにより、前記画像データの画サイズを水平方向に変化させる水平フィルタと、前記水平フィルタによる画サイズの変化が、画サイズの縮小の場合、前記入力画像データを前記水平フィルタに入力し、前記水平フィルタの出力データを前記メモリ回路に入力し、前記垂直フィルタ回路の出力データを前記出力画像データとして出力し、前記水平フィルタによる画サイズの変化が、画サイズの拡大の場合、前記入力画像データを前記メモリ回路に入力し、前記垂直フィルタの出力データを前記水平フィルタに入力し、前記水平フィルタの出力データを前記出力画像データとして出力するスイッチ回路とを有するようにする。   According to a sixth aspect of the present invention, there is provided an imaging means for acquiring an imaging result, and changing output image data by changing an image size based on input image data obtained by the imaging means in response to an operation of an operator. The image size conversion circuit includes at least three or more line memories, and sequentially circulates the plurality of line memories. A memory circuit for recording image data selected and sequentially input in the line memory, and simultaneously reading out and outputting a plurality of lines of image data from the remaining line memories of the plurality of line memories; The image data of the plurality of lines output from the memory circuit is subjected to an interpolation calculation process, whereby the image size of the image data is set in the vertical direction. The vertical filter to be changed, the continuous image data is subjected to interpolation calculation processing and output, and the horizontal filter to change the image size of the image data in the horizontal direction, and the change in the image size by the horizontal filter In the case of reduction, the input image data is input to the horizontal filter, the output data of the horizontal filter is input to the memory circuit, the output data of the vertical filter circuit is output as the output image data, and the horizontal filter When the change in the image size is an enlargement of the image size, the input image data is input to the memory circuit, the output data of the vertical filter is input to the horizontal filter, and the output data of the horizontal filter is input to the output image data As a switching circuit.

請求項1の構成により、画サイズ変換装置に適用して、前記水平フィルタによる画サイズの変化が、画サイズの縮小の場合、前記入力画像データを前記水平フィルタに入力し、前記水平フィルタの出力データを前記メモリ回路に入力し、前記垂直フィルタ回路の出力データを前記出力画像データとして出力し、前記水平フィルタによる画サイズの変化が、画サイズの拡大の場合、前記入力画像データを前記メモリ回路に入力し、前記垂直フィルタの出力データを前記水平フィルタに入力し、前記水平フィルタの出力データを前記出力画像データとして出力するスイッチ回路を備えるようにすれば、水平方向に画サイズを縮小する場合には、画サイズの縮小によりライン当たりのサンプリング数が低減した画像データをメモリ回路に記録して垂直回路で処理し得、また画サイズを拡大する場合には、画サイズの拡大によりサンプリング数が増大する前に、メモリ回路、垂直フィルタにより垂直方法の画サイズを変更した後、水平フィルタにより処理することができ、これにより少ない容量のメモリ回路により種々に画サイズを拡大、縮小して、簡易な構成により、水平方向、垂直方向に種々に画サイズを変換することができる。   According to the configuration of claim 1, when applied to an image size conversion device and the change in image size by the horizontal filter is reduction of the image size, the input image data is input to the horizontal filter, and the output of the horizontal filter When the data is input to the memory circuit, the output data of the vertical filter circuit is output as the output image data, and the change in the image size by the horizontal filter is an enlargement of the image size, the input image data is input to the memory circuit. If the switch circuit for inputting the output data of the vertical filter to the horizontal filter and outputting the output data of the horizontal filter as the output image data is provided, the image size is reduced in the horizontal direction. In this case, the image data whose number of samplings per line has been reduced by reducing the image size is recorded in a memory circuit and dropped. When the image size can be enlarged by the circuit, the image size of the vertical method is changed by the memory circuit and the vertical filter before the number of sampling is increased by the enlargement of the image size, and then the image is processed by the horizontal filter. Thus, the image size can be variously enlarged and reduced by a memory circuit having a small capacity, and the image size can be converted variously in the horizontal and vertical directions with a simple configuration.

これにより請求項6の構成によれば、電子ズームの処理に関して、簡易な構成により、水平方向、垂直方向に種々に画サイズを変換することができる撮像装置を提供することができる。   Thus, according to the configuration of the sixth aspect of the present invention, it is possible to provide an imaging apparatus capable of variously changing the image size in the horizontal direction and the vertical direction with a simple configuration regarding the electronic zoom processing.

本発明によれば、簡易な構成により、水平方向、垂直方向に種々に画サイズを変換することができる。   According to the present invention, the image size can be variously converted in the horizontal direction and the vertical direction with a simple configuration.

以下、適宜図面を参照しながら本発明の実施例を詳述する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate.

(1)実施例の構成
図1は、本発明の実施例に係る電子スチルカメラを示すブロック図である。この電子スチルカメラ1は、CCD(Charge Coupled Device )、CMOS(Complementary Metal-Oxide Semiconductor )等の固体撮像素子であるイメージセンサ2により所望の被写体を撮像し、その撮像結果による動画及び静止画をモニタ3により表示し、また図示しない記録媒体に記録する。またこのようにして記録媒体に記録した撮像結果をモニタ3により表示する。これによりイメージセンサ2は、図示しない駆動回路の制御により順次撮像結果を出力するようになされている。
(1) Configuration of Embodiment FIG. 1 is a block diagram showing an electronic still camera according to an embodiment of the present invention. The electronic still camera 1 captures a desired subject with an image sensor 2 which is a solid-state imaging device such as a CCD (Charge Coupled Device) or CMOS (Complementary Metal-Oxide Semiconductor), and monitors a moving image and a still image based on the imaging result. 3 and recorded on a recording medium (not shown). Further, the imaging result recorded in the recording medium in this way is displayed on the monitor 3. As a result, the image sensor 2 sequentially outputs imaging results under the control of a drive circuit (not shown).

カメラ信号処理回路4は、この撮像結果をアナログディジタル変換処理してホワイトバランス調整等の処理を実行した後、輝度信号、色差信号による画像データD1に変換して画サイズ変換回路5に出力する。   The camera signal processing circuit 4 performs analog-digital conversion processing on the imaging result and executes processing such as white balance adjustment, and then converts it into image data D1 using a luminance signal and a color difference signal and outputs the image data to the image size conversion circuit 5.

モニタ3は、図示しないデータ処理回路により画サイズ変換回路5から出力される輝度信号及び色差信号による画像データD2を色信号による画像データに変換した後、液晶表示パネルを駆動し、これにより撮像結果を表示する。   The monitor 3 converts the image data D2 based on the luminance signal and the color difference signal output from the image size conversion circuit 5 by a data processing circuit (not shown) into image data based on the color signal, and then drives the liquid crystal display panel. Is displayed.

画サイズ変換回路5は、図示しないコントローラからの制御によりカメラ信号処理回路4から出力される画像データD2の画サイズを種々に変更して出力する。ここで画サイズ変換回路5は、各種の画素数によるイメージセンサ、モニタに共通に使用できるように、この画サイズの変換処理を種々に変更可能に構成され、これによりこの電子スチルカメラ1では、イメージセンサ2による画サイズをモニタ3の画素数に対応する画サイズに変更するようになされている。またこの電子スチルカメラ1では、この画サイズ変換回路5による画サイズの種々の変更機能を有効に利用して、電子ズーム、H反転の処理を実行できるようになされている。   The image size conversion circuit 5 variously changes the image size of the image data D2 output from the camera signal processing circuit 4 and outputs it under the control of a controller (not shown). Here, the image size conversion circuit 5 is configured to be able to change the image size conversion process in various ways so that it can be commonly used for image sensors and monitors with various numbers of pixels. The image size by the image sensor 2 is changed to an image size corresponding to the number of pixels of the monitor 3. In the electronic still camera 1, electronic zoom and H reversal processing can be executed by effectively utilizing various image size changing functions by the image size conversion circuit 5.

このため画サイズ変換回路5は、水平フィルタ8により水平方向に画サイズを変更し、メモリ回路7及び垂直フィルタ9により垂直方向に画サイズを変更する。またメモリ回路7の入力側に設けたスイッチ回路10、スイッチ回路11により、水平方向に画サイズを拡大する場合には、カメラ信号処理回路4から出力される画像データをメモリ回路7に直接入力し、これとは逆に、水平方向に画サイズを縮小する場合には、水平フィルタ8を介して、カメラ信号処理回路4から出力される画像データをメモリ回路7に入力する。またメモリ回路7の出力段には垂直フィルタ9が設けられ、この垂直フィルタ9の後段に設けられたスイッチ回路13により、水平方向に画サイズを縮小する場合には、垂直フィルタ9の出力データをモニタ3に出力し、これとは逆に、水平方向に画サイズを拡大する場合には、水平フィルタ8を介して、垂直フィルタ9から出力される画像データをモニタ3に出力する。   Therefore, the image size conversion circuit 5 changes the image size in the horizontal direction by the horizontal filter 8, and changes the image size in the vertical direction by the memory circuit 7 and the vertical filter 9. Further, when the image size is enlarged in the horizontal direction by the switch circuit 10 and the switch circuit 11 provided on the input side of the memory circuit 7, the image data output from the camera signal processing circuit 4 is directly input to the memory circuit 7. On the contrary, when the image size is reduced in the horizontal direction, the image data output from the camera signal processing circuit 4 is input to the memory circuit 7 via the horizontal filter 8. A vertical filter 9 is provided at the output stage of the memory circuit 7. When the image size is reduced in the horizontal direction by the switch circuit 13 provided at the subsequent stage of the vertical filter 9, the output data of the vertical filter 9 is received. In contrast, when the image size is enlarged in the horizontal direction, the image data output from the vertical filter 9 is output to the monitor 3 via the horizontal filter 8.

これらによりこの画サイズ変換回路5は、図2(A)及び(B)にそれぞれ水平方向に画サイズを縮小、拡大する場合を示すように、メモリ回路7から複数のタップ出力により画像データを垂直フィルタ9に出力して垂直方向の画サイズを変更するようにして、水平方向に画サイズを縮小する場合には、メモリ回路7の前段に水平フィルタ8を配置して、画像データのサンプリング数を水平フィルタ8により低減してメモリ回路7に入力するのに対し、水平方向に画サイズを拡大する場合には、垂直フィルタ9の後段に水平フィルタ8を配置して、画サイズの拡大によるサンプリング数が増大する前段階でメモリ回路7により画像データを処理する。これにより画サイズ変換回路5は、水平方向に画サイズを縮小する場合には、水平方向、垂直方向の順に画サイズを変換するのに対し、水平方向に画サイズを拡大する場合には、垂直方向、水平方向の順に画サイズを変換し、これらにより種々に画サイズを拡大縮小等するようにして、メモリ回路7の容量の増大を有効に回避するようになされている。なおこれらの場合において、垂直方向に画サイズを拡大する場合には、図2(A)及び(B)において破線により示すように、必要に応じてフレームメモリFを配置して、又は、イメージセンサ2にCMOSを適用して、メモリ回路7に入力する画像データD1の各ラインのタイミングを垂直フィルタ9における補間処理に対応するように、補正することが必要になる。   As a result, the image size conversion circuit 5 vertically converts the image data by a plurality of tap outputs from the memory circuit 7 as shown in FIGS. 2 (A) and 2 (B) where the image size is reduced and enlarged in the horizontal direction. When the image size is reduced in the horizontal direction by outputting to the filter 9 to change the image size in the vertical direction, the horizontal filter 8 is arranged in the preceding stage of the memory circuit 7 to set the sampling number of the image data. When the image size is reduced by the horizontal filter 8 and input to the memory circuit 7, the image size is increased in the horizontal direction. The image data is processed by the memory circuit 7 in a stage before the increase. Thereby, the image size conversion circuit 5 converts the image size in the order of the horizontal direction and the vertical direction when reducing the image size in the horizontal direction, whereas it is vertical when expanding the image size in the horizontal direction. The image size is converted in the order of the horizontal direction and the horizontal direction, and the size of the image is variously enlarged and reduced, thereby effectively avoiding an increase in the capacity of the memory circuit 7. In these cases, when the image size is enlarged in the vertical direction, a frame memory F is arranged as required or an image sensor as shown by a broken line in FIGS. 2 (A) and 2 (B). By applying CMOS to 2, it is necessary to correct the timing of each line of the image data D <b> 1 input to the memory circuit 7 so as to correspond to the interpolation processing in the vertical filter 9.

しかして水平フィルタ8は、水平方向について、この画サイズ変換回路5に入力する画像データのクロックにより動作して、順次入力される画像データを補間演算処理し、これによりこの画像データの水平方向を出力画像データD2の画サイズに変更して出力する。具体的に水平フィルタ8は、例えば図3に示すように、入力画像データのクロック周期に対応する遅延回路であるフリップフロップ回路13Aと、入力画像データ及びこのフリップフロップ回路13Aの出力データをそれぞれ重み付けする乗算回路14A、14Bと、この乗算回路14A、14Bの出力データを加算する加算回路15、この加算回路15の出力データを一時保持して出力するフリップフロップ回路16、乗算回路14A、14B、加算回路15の出力段にそれぞれ設けられたバッファ回路等による補間回路により構成される。なお水平フィルタ8は、この図3に示す2タップの直線補間による補間回路に限らず、図3との対比により図4及び図5に示すように、4タップ、8タップによる補間回路を使用する場合等、必要に応じて種々の構成に広く適用することができる。   Accordingly, the horizontal filter 8 operates in accordance with the clock of the image data input to the image size conversion circuit 5 in the horizontal direction, performs interpolation calculation processing on the sequentially input image data, and thereby changes the horizontal direction of the image data. The image size is changed to the output image data D2 and output. Specifically, for example, as shown in FIG. 3, the horizontal filter 8 weights the flip-flop circuit 13A, which is a delay circuit corresponding to the clock cycle of the input image data, and the input image data and the output data of the flip-flop circuit 13A. Multiplier circuits 14A and 14B, an adder circuit 15 that adds the output data of the multiplier circuits 14A and 14B, a flip-flop circuit 16 that temporarily holds and outputs the output data of the adder circuit 15, and multiplier circuits 14A and 14B. It is configured by an interpolation circuit such as a buffer circuit provided at the output stage of the circuit 15. The horizontal filter 8 is not limited to the interpolation circuit based on the 2-tap linear interpolation shown in FIG. 3, but uses a 4-tap or 8-tap interpolation circuit as shown in FIGS. 4 and 5 in comparison with FIG. It can be widely applied to various configurations as required.

水平フィルタ8は、水平方向への画サイズの変更に係る拡大率、縮小率に応じたサンプリング位相に応じて、図示しないコントローラにより順次乗算回路14A、14Bの重み付け係数が設定される。なお水平フィルタ8は、垂直フィルタの後段側に配置されて、水平方向に画サイズを拡大する場合には、後述するメモリ回路7からの繰り返しの画像データ出力に対応するように、フリップフロップ回路13Aの段数が切り換えられるようになされ、これにより入力画像データD1の水平方向に隣接するサンプリング点間に、複数のサンプリング点に係る画像データを生成できるようになされている。   In the horizontal filter 8, the weighting coefficients of the multiplication circuits 14A and 14B are sequentially set by a controller (not shown) according to the sampling phase corresponding to the enlargement ratio and reduction ratio related to the change in the image size in the horizontal direction. Note that the horizontal filter 8 is arranged on the rear stage side of the vertical filter, and when the image size is expanded in the horizontal direction, the flip-flop circuit 13A corresponds to repeated image data output from the memory circuit 7 described later. Thus, the image data relating to a plurality of sampling points can be generated between sampling points adjacent in the horizontal direction of the input image data D1.

これに対して垂直フィルタ9は、垂直方向について、メモリ回路7から同時並列的に出力される複数ラインの画像データを補間演算処理し、これによりこの画像データの垂直方向を出力画像データD2の画サイズに変更して出力する。具体的に垂直フィルタ9は、例えば図6に示すように、メモリ回路7からの各タップ出力をそれぞれ重み付けする乗算回路20A〜20Hと、この乗算回路20A〜20Hの出力データを加算する加算回路21、この加算回路21の出力データを一時保持して出力するフリップフロップ回路22、乗算回路20A〜20H、加算回路21の出力段にそれぞれ設けられたバッファ回路等による補間回路により構成される。なお垂直フィルタ9は、この図6に示す8タップによる補間回路に限らず、図6との対比により図7及び図8に示すように、2タップ、4タップによる補間回路を使用する場合等、必要に応じて種々の構成を広く適用することができる。   On the other hand, the vertical filter 9 interpolates a plurality of lines of image data output simultaneously and in parallel from the memory circuit 7 in the vertical direction, whereby the vertical direction of the image data is converted into an image of the output image data D2. Change to size and output. Specifically, for example, as shown in FIG. 6, the vertical filter 9 includes multiplication circuits 20A to 20H that respectively weight the tap outputs from the memory circuit 7, and an addition circuit 21 that adds the output data of the multiplication circuits 20A to 20H. The flip-flop circuit 22 that temporarily holds and outputs the output data of the adder circuit 21, the multiplier circuits 20 </ b> A to 20 </ b> H, and an interpolation circuit such as a buffer circuit provided at the output stage of the adder circuit 21. The vertical filter 9 is not limited to the 8-tap interpolation circuit shown in FIG. 6, and in contrast to FIG. 6, when using a 2-tap, 4-tap interpolation circuit as shown in FIGS. 7 and 8, etc. Various configurations can be widely applied as necessary.

なお垂直フィルタ9は、水平フィルタ8と同様に、垂直方向への画サイズの変更に係る拡大率、縮小率に応じたサンプリング位相に応じて、図示しないコントローラにより順次乗算回路20A〜20Hの重み付け係数が設定されるようになされている。   As with the horizontal filter 8, the vertical filter 9 sequentially weights the multiplication circuits 20 </ b> A to 20 </ b> H by a controller (not shown) according to the sampling phase corresponding to the enlargement ratio and reduction ratio associated with the change in the image size in the vertical direction. Is set to be set.

メモリ回路7は、カメラ信号処理回路4から出力される画像データD1の水平方向のサンプリング数に対応するメモリ容量を有し、かつこの画像データD1のクロックにより動作する複数のラインメモリ25A〜25E、入力画像データをこれらラインメモリ25A〜25Eに振り分けるセレクタ26、これらラインメモリ25A〜25Eからの出力画像データを垂直フィルタ9の各タップ入力に振り分けるセレクタ27、これらラインメモリ25A〜25E、セレクタ26、27の動作を制御するメモリコントローラ28により構成される。このメモリ回路7は、これら複数のラインメモリ25A〜25Eの1つに順次入力される画像データを記録しながら、垂直フィルタ9における垂直方向の画サイズの変更処理に係る複数ラインの画像データを残りのラインメモリ25A〜25Eより同時並列的に出力できるように、ラインメモリ25A〜25Eが3個以上設けられる。この実施例において、メモリ回路7は、5個のラインメモリ25A〜25Eが設けられ、これにより最低でも続く垂直フィルタ9において4タップの処理により画サイズを変更できるようになされている。これによりメモリ回路7は、ラインメモリ25A〜25Eを順次循環的に使用して順次入力される画像データを格納しながら、垂直フィルタ9の処理に対応する複数タップ出力により画像データを出力するようになされている。   The memory circuit 7 has a memory capacity corresponding to the number of horizontal samplings of the image data D1 output from the camera signal processing circuit 4, and a plurality of line memories 25A to 25E operated by the clock of the image data D1, A selector 26 that distributes input image data to these line memories 25A to 25E, a selector 27 that distributes output image data from these line memories 25A to 25E to each tap input of the vertical filter 9, these line memories 25A to 25E, selectors 26, 27 The memory controller 28 controls the operation of The memory circuit 7 records the image data sequentially input to one of the plurality of line memories 25A to 25E, while remaining the image data of a plurality of lines related to the vertical image size change processing in the vertical filter 9. Three or more line memories 25A to 25E are provided so that the line memories 25A to 25E can simultaneously output in parallel. In this embodiment, the memory circuit 7 is provided with five line memories 25A to 25E, whereby the image size can be changed by a 4-tap process in the vertical filter 9 that continues at least. Thus, the memory circuit 7 outputs the image data by the multi-tap output corresponding to the processing of the vertical filter 9 while storing the sequentially input image data by using the line memories 25A to 25E sequentially and cyclically. Has been made.

これらの処理において、メモリ回路7は、メモリコントローラ28の制御により、前段に水平フィルタ8を配置して水平方向に画サイズを縮小する場合には、縮小率に応じて、水平フィルタ8から出力される画像データを間引きして記録し、これによりダウンサンプリングにより画像データを記録するようになされている。これに対して水平フィルタ8を垂直フィルタ9の後段に配置して、水平方向に画サイズを拡大する場合、拡大率に応じて、画素単位で画像データを繰り返し出力し、これにより入力画像データのクロックにより補間演算処理して、入力画像データの水平方向に隣接するサンプリング点間に、画サイズの拡大に係る複数のサンプリング点を水平フィルタ8により生成できるようにする。   In these processes, the memory circuit 7 outputs from the horizontal filter 8 according to the reduction ratio when the horizontal filter 8 is arranged in the preceding stage and the image size is reduced in the horizontal direction under the control of the memory controller 28. The image data is thinned and recorded, whereby the image data is recorded by downsampling. On the other hand, when the horizontal filter 8 is disposed after the vertical filter 9 and the image size is enlarged in the horizontal direction, the image data is repeatedly output in units of pixels in accordance with the enlargement ratio. Interpolation calculation processing is performed by the clock so that the horizontal filter 8 can generate a plurality of sampling points related to the enlargement of the image size between sampling points adjacent in the horizontal direction of the input image data.

またメモリ回路7は、垂直フィルタ9により垂直方向に画サイズを縮小する場合、縮小率に応じて、ライン単位で間引きして画像データを出力し、これによりダウンサンプリングにより画像データを出力する。またこれとは逆に、垂直フィルタ9により垂直方向に画サイズを拡大する場合、拡大率に応じて、1水平走査期間の間で、ライン単位で画像データを繰り返し出力し、これにより入力画像データの垂直方向に隣接するライン間に、画サイズの拡大に係る複数ラインを垂直フィルタ9により生成できるようにする。   Further, when the image size is reduced in the vertical direction by the vertical filter 9, the memory circuit 7 outputs the image data by thinning out in units of lines according to the reduction ratio, and thereby outputs the image data by downsampling. On the other hand, when the image size is enlarged in the vertical direction by the vertical filter 9, the image data is repeatedly output in units of lines during one horizontal scanning period according to the enlargement ratio. The vertical filter 9 can generate a plurality of lines related to the enlargement of the image size between adjacent lines in the vertical direction.

これらによりメモリ回路7は、入力画像データD1のクロックによる1系統のクロックにより動作可能に構成されて、ラインメモリ25A〜25Eをシングルポートによるランダムアクセスメモリにより構成できるようになされ、その分、全体形状を小型化し、さらには全体構成を簡略化できるようになされている。   As a result, the memory circuit 7 is configured to be operable with one system clock based on the clock of the input image data D1, and the line memories 25A to 25E can be configured with a single port random access memory. Can be reduced in size, and the overall configuration can be simplified.

またこれらの処理において、メモリ回路7は、メモリコントローラ28によるアドレス制御により、画サイズの拡大が電子ズームに係る処理であって、この画サイズの拡大により水平方向の左右、垂直方向の上下に発生する表示に供さない画像データについては、記録及び出力を中止し、これにより各部における不要な処理を中止するようになされている。   In these processes, the memory circuit 7 is a process related to the electronic zoom in which the image size is enlarged by the address control by the memory controller 28, and this enlargement of the image size occurs in the horizontal direction and the vertical direction. For image data not used for display, recording and output are stopped, and unnecessary processing in each unit is thereby stopped.

またメモリ回路7は、各ラインメモリ25A〜25Eのメモリ空間を所定ブロックに区切って画像データを記録、再生し、これにより水平方向に画サイズを縮小して1ライン当たりのサンプリング数が低減した場合には、その分、多くのライン数に係る画像データを記録して垂直フィルタ9に出力するタップ出力数を増大するようになされ、これにより水平方向へのデータ量の低下を有効に利用して画質を向上させるようになされている。   The memory circuit 7 records and reproduces image data by dividing the memory space of each line memory 25A to 25E into predetermined blocks, thereby reducing the image size in the horizontal direction and reducing the number of samples per line. Therefore, the number of tap outputs to be recorded and output to the vertical filter 9 by increasing the number of lines corresponding to the number of lines is increased, thereby effectively utilizing the decrease in the amount of data in the horizontal direction. It is designed to improve image quality.

すなわち図9は、メモリコントローラ28の制御による画サイズ変更の処理に係るタイムチャートであり、水平方向及び垂直方向の双方に画サイズを縮小する場合である。なおこの図9においては、説明の簡略化のために、メモリ回路7が3個のラインメモリ25A、25B、25Cにより構成されているものとして、また垂直フィルタ9においては、図7について上述した2タップによる補間演算処理により画サイズを縮小するものとして説明する。なおこの図9において、HD1及びHD2(図9(A)及び(E))は、それぞれ画サイズ変換回路5の入出力に係る水平同期信号であり、また符号W及びRは、それぞれラインメモリへの書き込み及び読み出しの処理を示すものである。   That is, FIG. 9 is a time chart relating to the image size changing process under the control of the memory controller 28, and is a case where the image size is reduced both in the horizontal direction and in the vertical direction. In FIG. 9, for simplification of description, it is assumed that the memory circuit 7 is composed of three line memories 25A, 25B, and 25C. In the following description, it is assumed that the image size is reduced by interpolation calculation processing using taps. In FIG. 9, HD1 and HD2 (FIGS. 9A and 9E) are horizontal synchronizing signals related to the input / output of the image size conversion circuit 5, respectively, and symbols W and R are respectively sent to the line memory. The writing and reading processes are shown.

この場合、画サイズ変換回路5においては、数字1、2、3、……により入力画像データD1の各サンプルを示すように、水平フィルタ8において、順次入力される画像データ(図9(F1))と、この画像データに対して1クロック周期だけ遅延してなる画像データ(図9(F2))とが、縮小に係るサンプリング位相による重み付け係数により補間処理されて、この入力画像データD1のクロックに同期して出力される。なおこの図9においては、数字0/1、1/2、2/3により示すように、処理対象のサンプルを示す数字の組み合わせにより、補間処理結果に係る出力値Xを示す(図9(F3))。これにより画サイズ変換回路5は、水平方向に画サイズを縮小してなるサンプリング値を、入力画像データD1に同期して順次計算する。   In this case, the image size conversion circuit 5 sequentially inputs image data (FIG. 9 (F1)) in the horizontal filter 8 so that each sample of the input image data D1 is indicated by numerals 1, 2, 3,. ) And the image data (FIG. 9 (F2)) delayed by one clock cycle with respect to this image data are interpolated by the weighting coefficient based on the sampling phase for reduction, and the clock of this input image data D1 Output in sync with. In FIG. 9, as indicated by the numbers 0/1, 1/2, 2/3, the output value X related to the interpolation processing result is indicated by a combination of numbers indicating the samples to be processed (FIG. 9 (F3 )). As a result, the image size conversion circuit 5 sequentially calculates sampling values obtained by reducing the image size in the horizontal direction in synchronization with the input image data D1.

メモリコントローラ28においては、順次循環的にラインメモリ25A〜25Cを選択して、符号Wにより示すように、この水平フィルタ8から出力される画像データD3(図9(B))をラインメモリ25A〜25Cに記録する(図9(C1)〜(C3))。このときメモリコントローラ28は、図9(G1)により各ラインメモリ25A〜25Cの書き込みアドレスを示し、図9(F3)との対比により図9(G2)に書き込みに供するサンプルを示すように、縮小率に応じたダウンサンプリングにより順次入力される画像データをラインメモリ25A〜25Cに記録する。すなわちこの場合、選択的に画像データを取得するようにして、書き込みアドレスを生成するアドレスカウンタの設定により、順次入力される画像データを選択的に記録する。これにより画サイズ変換回路5は、連続する画像データの補間処理結果をダウンサンプリングすることにより、入力画像データD1のクロックに同期して入力画像データD1を処理して、水平方向のサンプリング数を大きく可変する場合にあっても、水平方向の画サイズを所望するサンプリング数による画サイズに変更できるようになされている。   In the memory controller 28, the line memories 25A to 25C are sequentially and cyclically selected, and the image data D3 (FIG. 9B) output from the horizontal filter 8 is supplied to the line memories 25A to 25A. 25C (FIG. 9 (C1) to (C3)). At this time, the memory controller 28 reduces the write address of each of the line memories 25A to 25C by FIG. 9 (G1) and the sample to be used for writing in FIG. 9 (G2) by comparison with FIG. 9 (F3). Image data sequentially input by downsampling according to the rate is recorded in the line memories 25A to 25C. That is, in this case, image data is selectively acquired, and sequentially input image data is selectively recorded by setting an address counter that generates a write address. Thereby, the image size conversion circuit 5 processes the input image data D1 in synchronization with the clock of the input image data D1 by down-sampling the interpolation processing result of the continuous image data, and increases the number of sampling in the horizontal direction. Even when it is variable, the image size in the horizontal direction can be changed to an image size based on a desired number of samplings.

またこのようにして順次画像データをラインメモリ25A〜25Cに記録して、画像データの記録を完了してなるラインメモリから連続する2ラインの画像データを垂直フィルタ9に出力し(図9(C1)〜(C3))、この垂直フィルタ9による補間処理により、垂直方向の縮小に係るサンプリング値を計算する。この読み出しの処理においても、メモリコントローラ28は、垂直方向の縮小率に応じて、ダウンサンプリングにより画像データを出力する。すなわちこの場合、読み出しアドレスを発生するアドレスカウンタの設定により、ライン単位で間引きして画像データを出力する。しかしてこの図9においては、このダウンサンプリングにより、連続する2ラインの画像データの出力が、1水平走査周期毎に間欠的に実行されるようになされている。これによっても画サイズ変換回路5は、入力画像データD1のクロックに同期して入力画像データD1を処理して、垂直方向のサンプリング数を大きく可変する場合にあっても、垂直方向の画サイズを所望するサンプリング数による画サイズに変更できるようになされている。   In addition, the image data is sequentially recorded in the line memories 25A to 25C in this way, and two continuous lines of image data are output to the vertical filter 9 from the line memory that has completed the recording of the image data (FIG. 9 (C1 ) To (C3)), the sampling value related to the reduction in the vertical direction is calculated by the interpolation processing by the vertical filter 9. Also in this reading process, the memory controller 28 outputs image data by downsampling in accordance with the reduction ratio in the vertical direction. That is, in this case, the image data is output by thinning out in units of lines according to the setting of the address counter that generates the read address. In FIG. 9, the output of two consecutive lines of image data is intermittently executed every horizontal scanning period by this downsampling. In this way, the image size conversion circuit 5 processes the input image data D1 in synchronization with the clock of the input image data D1 and sets the vertical image size even when the number of vertical samplings is greatly varied. The image size can be changed according to the desired number of samplings.

これに対して図10は、図9との対比により、水平方向及び垂直方向にそれぞれ画サイズを縮小及び拡大する場合を示すタイムチャートである。この場合、画サイズ変換回路5においては、水平方向及び垂直方向の双方に画サイズを縮小する場合と同様に画像データを処理してメモリ回路7に記録する(図10(A)、(B)、(C1)〜(C3)、(F1)〜(F3)、(G1)及び(G2))。これにより画サイズ変換回路5は、水平フィルタ8において入力画像データに同期して入力データを補間演算処理した後、メモリ回路7への書き込み時におけるダウンサンプリングにより、水平方向に画サイズを縮小するようになされている。また順次循環的にラインメモリ25A〜25Cを選択して、水平フィルタ8から出力される画像データD3(図9(B))をラインメモリ25A〜25Cに記録するようになされている。これらの処理において、画サイズ変換回路5は、垂直方向に画サイズを拡大して不要となる上下、拡大倍率に応じた所定数のラインについては、間引きによりメモリ回路7への記録を中止し、これにより不要な処理を中止するようになされている。   On the other hand, FIG. 10 is a time chart showing a case where the image size is reduced and enlarged in the horizontal direction and the vertical direction, respectively, in comparison with FIG. In this case, the image size conversion circuit 5 processes the image data and records it in the memory circuit 7 as in the case of reducing the image size in both the horizontal direction and the vertical direction (FIGS. 10A and 10B). (C1) to (C3), (F1) to (F3), (G1) and (G2)). Thus, the image size conversion circuit 5 interpolates the input data in synchronization with the input image data in the horizontal filter 8 and then reduces the image size in the horizontal direction by down-sampling when writing to the memory circuit 7. Has been made. The line memories 25A to 25C are sequentially and cyclically selected, and the image data D3 (FIG. 9B) output from the horizontal filter 8 is recorded in the line memories 25A to 25C. In these processes, the image size conversion circuit 5 cancels the recording to the memory circuit 7 by thinning out a predetermined number of lines corresponding to the vertical and enlargement magnifications that are not required by enlarging the image size in the vertical direction. As a result, unnecessary processing is stopped.

このようにしてラインメモリ25A〜25Cに画像データを記録して、メモリコントローラ28は、垂直方向の拡大率に応じて、入力画像データD1の1水平走査期間内で、ライン単位で、連続する2ラインの画像データを繰り返し垂直フィルタ9に出力する(図10(C1)〜(C3))。これにより画サイズ変換回路5は、入力画像データD1のクロックに同期した処理により、垂直方向の画サイズを所望するサンプリング数による画サイズに変更するようになされている。因みにこの場合、入力画像データD1の1水平走査期間に対して出力画像データD2の1水平走査期間が、拡大率に応じて変化することになる。   In this way, the image data is recorded in the line memories 25A to 25C, and the memory controller 28 continues 2 in units of lines within one horizontal scanning period of the input image data D1 according to the enlargement ratio in the vertical direction. The line image data is repeatedly output to the vertical filter 9 (FIG. 10 (C1) to (C3)). As a result, the image size conversion circuit 5 changes the image size in the vertical direction to the image size based on the desired number of samplings by processing synchronized with the clock of the input image data D1. In this case, one horizontal scanning period of the output image data D2 changes according to the enlargement ratio with respect to one horizontal scanning period of the input image data D1.

これに対して図11は、図9との対比により、水平方向及び垂直方向にそれぞれ画サイズを拡大及び縮小する場合を示すタイムチャートである。この場合、画サイズ変換回路5においては、カメラ信号処理回路4から出力される画像データを全てメモリ回路7に格納し(図11(A)、(B)及び(C1)〜(C3))、また垂直方向の縮小率に応じてこの記録した画像データを2タップ出力により垂直フィルタ9に出力し(図11(C1)〜(C3))、この垂直フィルタ9による補間処理により、垂直方向の縮小に係るサンプリング値を計算する。   On the other hand, FIG. 11 is a time chart showing a case where the image size is enlarged and reduced in the horizontal direction and the vertical direction, respectively, in comparison with FIG. In this case, the image size conversion circuit 5 stores all the image data output from the camera signal processing circuit 4 in the memory circuit 7 (FIGS. 11A, 11B, and C1 to C3). The recorded image data is output to the vertical filter 9 by 2-tap output in accordance with the reduction ratio in the vertical direction (FIG. 11 (C1) to (C3)), and the reduction in the vertical direction is performed by the interpolation processing by the vertical filter 9. The sampling value concerning is calculated.

この場合も水平方向及び垂直方向の双方に画サイズを縮小する場合と同様に、画サイズ変換回路5は、垂直方向の縮小率に応じたダウンサンプリングによりメモリ回路7から画像データを出力し、これにより入力画像データD1のクロックに同期して入力画像データD1を処理して、垂直方向の画サイズを所望するサンプリング数による画サイズに変更できるようになされている。   In this case, as in the case of reducing the image size both in the horizontal direction and in the vertical direction, the image size conversion circuit 5 outputs image data from the memory circuit 7 by downsampling according to the reduction ratio in the vertical direction. Thus, the input image data D1 is processed in synchronization with the clock of the input image data D1, and the image size in the vertical direction can be changed to an image size based on a desired number of samplings.

またこのようにして垂直方向に縮小してなる画像データを水平フィルタ8により水平方向に拡大するようにして、水平方向に画サイズを拡大して不要となる左右、拡大倍率に応じた所定数の画素については、水平フィルタ8への入力を中止して無駄な処理を中止する。またメモリ回路7からの画像データの出力において、水平方向への拡大率に応じてメモリ回路7から同一のサンプリング値による画像データを画素単位で繰り返し出力する(図11(G1)〜(I2))。これにより画サイズ変換回路5は、入力画像データD1のクロックに同期して入力画像データD1を処理して、入力画像データD1の水平方向に隣接するサンプリング点間に、拡大率に応じたサンプリング点に係る画像データを水平フィルタ8により生成するようになされている。   Further, the image data reduced in the vertical direction in this way is expanded in the horizontal direction by the horizontal filter 8, and the image size is expanded in the horizontal direction so that a predetermined number corresponding to the left, right, and enlargement magnification becomes unnecessary. For pixels, the input to the horizontal filter 8 is stopped and the useless processing is stopped. Further, in the output of image data from the memory circuit 7, image data with the same sampling value is repeatedly output in units of pixels from the memory circuit 7 according to the enlargement ratio in the horizontal direction (FIGS. 11 (G1) to (I2)). . Thereby, the image size conversion circuit 5 processes the input image data D1 in synchronization with the clock of the input image data D1, and between the sampling points adjacent in the horizontal direction of the input image data D1, the sampling points according to the enlargement ratio. The image data according to the above is generated by the horizontal filter 8.

これに対して図12は、水平方向及び垂直方向の双方について、画サイズを拡大する場合を示すタイムチャートである。この場合、画サイズ変換回路5は、カメラ信号処理回路4から出力される画像データをライン単位でメモリ回路7に格納し(図12(A)、(B)及び(C1)〜(C3))、また垂直方向の拡大率に応じてこの記録した画像データを2タップ出力により垂直フィルタ9に出力し(図12(C1)〜(C3))、この垂直フィルタ9による補間処理により、垂直方向の拡大に係るサンプリング値を計算する。   On the other hand, FIG. 12 is a time chart showing a case where the image size is enlarged in both the horizontal direction and the vertical direction. In this case, the image size conversion circuit 5 stores the image data output from the camera signal processing circuit 4 in the memory circuit 7 in line units (FIGS. 12A, 12B, and C1 to C3). The recorded image data is output to the vertical filter 9 by 2-tap output according to the enlargement ratio in the vertical direction (FIG. 12 (C1) to (C3)). A sampling value for enlargement is calculated.

これらの処理において、画サイズ変換回路5は、垂直方向に画サイズを拡大して不要となる上下、拡大倍率に応じた所定数のラインについては、メモリ回路7への記録を中止し、これにより不要な処理を中止する。また水平方向及び垂直方向に画サイズを縮小及び拡大する場合と同様に、1水平走査期間内で、拡大率に応じて2ラインによる画像データの垂直フィルタ9への出力をライン単位で繰り返し、また水平方向及び垂直方向に画サイズを拡大及び縮小する場合と同様に、水平方向への拡大率に応じてメモリ回路7から同一のサンプリング値による画像データを画素単位で繰り返し出力する(図12(G1)〜(I2))。これらによっても入力画像データD1のクロックにより画像データを処理して所望する画サイズによる画像データD2を出力できるようになされている。なおこの場合も、垂直方向の拡大率に応じて、入力画像データD1の1水平走査期間内に対して出力画像データD2の1水平走査期間内が変化することになる。   In these processes, the image size conversion circuit 5 increases the image size in the vertical direction and stops recording in the memory circuit 7 for a predetermined number of lines corresponding to the up and down and magnification factors. Cancel unnecessary processing. Similarly to the case where the image size is reduced and enlarged in the horizontal direction and the vertical direction, the output of the image data to the vertical filter 9 by two lines is repeated in units of lines in accordance with the enlargement ratio within one horizontal scanning period. Similar to the case of enlarging and reducing the image size in the horizontal and vertical directions, image data with the same sampling value is repeatedly output from the memory circuit 7 in units of pixels in accordance with the enlargement ratio in the horizontal direction (FIG. 12 (G1 ) To (I2)). Also by these, the image data is processed by the clock of the input image data D1, and the image data D2 having a desired image size can be output. In this case as well, the one horizontal scanning period of the output image data D2 changes with respect to the one horizontal scanning period of the input image data D1 in accordance with the enlargement ratio in the vertical direction.

これに対して図13及び図14は、それぞれ水平方向の画像拡大時及び縮小時に係るH反転処理の説明に供するタイムチャートである。メモリコントローラ28は、通常の拡大縮小時においては、順次、画像データの書き込み順にラインメモリ25A〜25Cから画像データを読み出して出力するのに対し、H反転処理においては、各ラインメモリ25A〜25Cにおいて、書き込み順とは逆の順序により画像データを読み出して出力する。   On the other hand, FIG. 13 and FIG. 14 are time charts for explaining the H inversion processing at the time of horizontal image enlargement and reduction. The memory controller 28 sequentially reads and outputs image data from the line memories 25A to 25C in the order of writing of the image data at the time of normal enlargement / reduction, whereas in the H inversion processing, each of the line memories 25A to 25C The image data is read and output in the reverse order of the writing order.

すなわち水平方向への画像拡大時においては、画像データY0、Y1、……の書き込み時(図13(A))、書き込みアドレスの発生順序を逆転させ(図13(B))、読み出し時、順次読み出しアドレスを発生させて画像データを出力し(図13(C)及び(D))、これにより書き込み順とは逆の順序により画像データを読み出して出力する。また水平方向への画像縮小時においては、同様にして、書き込みアドレスの発生順序を逆転させ(図14(A)及び(B))、読み出し時、順次読み出しアドレスを発生させて画像データを出力し(図14(C)及び(D))、これにより書き込み順とは逆の順序により画像データを読み出して出力する。なお、水平縮小時においては、この画サイズ変換回路5への入力データに対してメモリ回路7に書き込む画像データを、水平フィルタ8を用いた縮小の処理に係るダウンサンプリングの分、間欠的にメモリ回路7に記録することになる。   That is, at the time of image enlargement in the horizontal direction, when writing image data Y0, Y1,... (FIG. 13A), the generation order of the write addresses is reversed (FIG. 13B), and at the time of reading, sequentially. A read address is generated and image data is output (FIGS. 13C and 13D), whereby the image data is read and output in the reverse order of the writing order. Similarly, when the image is reduced in the horizontal direction, the generation order of the write addresses is reversed (FIGS. 14A and 14B), and at the time of reading, the read addresses are sequentially generated to output the image data. (FIGS. 14C and 14D), thereby reading out and outputting the image data in the reverse order of the writing order. At the time of horizontal reduction, the image data to be written in the memory circuit 7 with respect to the input data to the image size conversion circuit 5 is intermittently stored in memory for the downsampling related to the reduction processing using the horizontal filter 8. It is recorded in the circuit 7.

メモリコントローラ28は、このような書き込みアドレスの発生順序の逆転をライン単位で実行する。また1ライン当たりの画素数より値1を減じたアドレスより、順次、ディクリメントしてアドレスを生成してH反転の処理を実行する。   The memory controller 28 executes such a reversal of the generation order of the write address for each line. The address is generated by decrementing sequentially from the address obtained by subtracting the value 1 from the number of pixels per line, and the H inversion process is executed.

しかしてこの実施例においては、複数のラインメモリ25A〜25Eを順次循環的に使用して画像データを書き込むようにして、画像データの書き込みと読み出しとで処理を分けることができることにより、単に書き込みアドレスと読み出しアドレスとの発生順序を逆転させるだけの簡易な構成により、H反転に係る処理を実行できるようになされている。   In this embodiment, the image data is written by sequentially using a plurality of line memories 25A to 25E, and the processing can be divided into writing and reading of the image data. The processing relating to the H inversion can be executed with a simple configuration in which the generation order of the read address and the read address is reversed.

ところでこの実施例のように、水平フィルタ8により水平方向のサンプリング数を低減して水平方向に画サイズを縮小した後、垂直フィルタ9により画像データを処理する場合にあって、メモリ回路7、垂直フィルタ9を入力画像データD1のクロックにより動作させると、水平方向への縮小率が大きくなった場合、垂直フィルタ9における1ライン当たりの処理に要する時間が短くなる。すなわち図15に示すように、入力画像データD1の1水平走査期間(図15(A)及び(B))に対して、垂直フィルタ9で画像データを有効に処理している時間である有効区間が短くなり(図15(C1)及び(C2))、その分、垂直フィルタ9においては、有効区間外では無駄に動作して電力消費することになる。これによりこの画サイズ変換回路5において、この場合、垂直フィルタ9におけるクロックレートを低下させて有効区間を増大させ(図15(D1)及び(D2))、無駄な電力消費を防止する。   By the way, as in this embodiment, when the image data is processed by the vertical filter 9 after the horizontal filter 8 reduces the number of samplings in the horizontal direction to reduce the image size in the horizontal direction, the memory circuit 7, When the filter 9 is operated by the clock of the input image data D1, when the reduction ratio in the horizontal direction is increased, the time required for processing per line in the vertical filter 9 is shortened. That is, as shown in FIG. 15, an effective interval that is a time during which image data is processed effectively by the vertical filter 9 with respect to one horizontal scanning period (FIGS. 15A and 15B) of the input image data D1. Is shortened (FIG. 15 (C1) and (C2)), and accordingly, the vertical filter 9 operates wastefully outside the effective interval and consumes power. As a result, in this image size conversion circuit 5, in this case, the clock rate in the vertical filter 9 is lowered to increase the effective interval (FIGS. 15D1 and 15D2), and wasteful power consumption is prevented.

具体的に、この実施例においては、水平方向の縮小率に応じて垂直フィルタ9のクロック周波数を低下させ、またこのクロック周波数の低下に連動させてメモリ回路7から複数のクロック周期で同一の画像データを繰り返し出力する。画サイズ変換回路5においては、入力画像データD1の同期したクロックCKをタイミングジェネレータにより生成して各部に供給するようになされており、このタイミングジェネレータに設けられた分周回路により水平フィルタ8による縮小率に応じて、2のべき乗の分周比により分周比を順次段階的に可変し、この分周比によりクロックCKを分周してクロックCK1を生成するようになされている。画サイズ変換回路5は、この分周に係るクロックCK1をメモリコントローラ28の読み出しアドレス発生回路であるアドレスカウンタに供給し、この分周に係るクロックCK1により順次読み出しのアドレスを生成する。またこの分周に係るクロックCK1により垂直フィルタ9を駆動する。   Specifically, in this embodiment, the clock frequency of the vertical filter 9 is lowered according to the reduction ratio in the horizontal direction, and the same image is output from the memory circuit 7 in a plurality of clock cycles in conjunction with the reduction of the clock frequency. Output data repeatedly. In the image size conversion circuit 5, a clock CK synchronized with the input image data D1 is generated by a timing generator and supplied to each unit. Reduction by a horizontal filter 8 is performed by a frequency dividing circuit provided in the timing generator. In accordance with the rate, the frequency division ratio is sequentially changed stepwise by the power-frequency division ratio of 2, and the clock CK is divided by this frequency division ratio to generate the clock CK1. The image size conversion circuit 5 supplies the clock CK1 related to the frequency division to an address counter which is a read address generation circuit of the memory controller 28, and sequentially generates read addresses based on the clock CK1 related to the frequency division. The vertical filter 9 is driven by the clock CK1 related to this frequency division.

画サイズ変換回路5は、これにより図16に示すように、クロックCK(図16(D))に同期して順次ライトアドレスを発生させてラインメモリ25A、25Bに水平フィルタ8により縮小処理された画像データY1/YO、Y3/Y2、Y5/Y4、……を記録して(図16(A)、(B1)及び(B2))、読み出し時においては、例えばこのクロックCKの2倍のクロック周期によるクロックCK1(図16(F))に同期して、これら2つのラインメモリ25A、25Bから画像データを読み出し(図16(E1)及び(E2))、垂直フィルタ9によりこれら画像データを処理するようになされている(図16(G))。   As a result, the image size conversion circuit 5 sequentially generates write addresses in synchronization with the clock CK (FIG. 16D), and the line memories 25A and 25B are reduced by the horizontal filter 8 as shown in FIG. Image data Y1 / YO, Y3 / Y2, Y5 / Y4,... Are recorded (FIGS. 16 (A), (B1) and (B2)), and at the time of reading, for example, a clock twice this clock CK. Image data is read from these two line memories 25A and 25B (FIG. 16 (E1) and (E2)) in synchronization with the clock CK1 (FIG. 16F) according to the period, and these image data are processed by the vertical filter 9. This is done (FIG. 16G).

なお図17は、この図16との対比により、クロックCK1の分周比を値1に設定した場合を示すタイムチャートである。画サイズ変換回路5においては、縮小率が所定範囲より小さい場合には、この図17に示すように、分周比を値1に設定して分周に係るクロックCK1により読み出しアドレスに係るアドレスカウンタを駆動し、また垂直フィルタ9を駆動するようになされている。   FIG. 17 is a time chart showing a case where the frequency division ratio of the clock CK1 is set to a value 1 in comparison with FIG. In the image size conversion circuit 5, when the reduction ratio is smaller than the predetermined range, as shown in FIG. 17, the division ratio is set to a value 1, and the address counter related to the read address by the clock CK1 related to the division. And the vertical filter 9 are driven.

さらにこの実施例においてメモリコントローラ28は、水平方向への画サイズの縮小によりライン当たりのサンプリング数が低減して、ラインメモリ25A〜25Eの容量に余裕が発生した分、垂直フィルタに同時並列的に出力する画像データのライン数を増大させ、これにより垂直フィルタにおいて、多くのタップ数により補間処理して画質を向上する。   Furthermore, in this embodiment, the memory controller 28 reduces the number of samplings per line by reducing the image size in the horizontal direction, so that the capacity of the line memories 25A to 25E has a margin, and the vertical filter is simultaneously and in parallel. The number of lines of image data to be output is increased, and thereby the image quality is improved by performing interpolation processing with a large number of taps in the vertical filter.

具体的に、ラインメモリ25A〜25Eのうち3つのラインメモリは、ぞれぞれ各ラインメモリの容量の1/2の容量による2つの中ブロックを内部接続して形成されるのに対し、残り2つのラインメモリのうちの1つのラインメモリは、1つの中ブロックと、中ブロックに対して1/2の容量による2つの小ブロックとを内部接続して形成される。また残り1つのラインブロックは、4つの小ブロックを内部接続して形成され、メモリ回路5には、このようにして小ブロック及び大ブロックにより5つのラインメモリを形成して、さらに1つの小ブロックが余るようになされている。   Specifically, among the line memories 25A to 25E, three line memories are formed by internally connecting two middle blocks each having a capacity that is ½ of the capacity of each line memory, while remaining One line memory of the two line memories is formed by internally connecting one middle block and two small blocks having a capacity ½ of the middle block. The remaining one line block is formed by internally connecting four small blocks. In the memory circuit 5, five line memories are thus formed by the small block and the large block, and one small block is further formed. Has been made so that.

メモリコントローラ28は、これら各ラインメモリ25A〜25Eに画像データを格納して、各ラインメモリ25A〜25Eに0.25ライン分以上、0.5分ライン以下の空き容量が発生する場合、これらラインメモリ25A〜25Eに係る内部接続を切り換え、メモリ回路7を構成するラインメモリの数を5個から7個に増大させ、垂直フィルタ9に6タップ出力による画像データを出力する。具体的に、この場合、メモリ回路7は、各ラインメモリを1個の中ブロックと1個の小ブロックとにより形成し、これにより7個のラインメモリにより画像データを処理する。   The memory controller 28 stores the image data in each of the line memories 25A to 25E, and when the free space of 0.25 lines or more and 0.5 minutes or less is generated in each of the line memories 25A to 25E, these lines are stored. The internal connections relating to the memories 25A to 25E are switched, the number of line memories constituting the memory circuit 7 is increased from five to seven, and image data by 6 tap output is output to the vertical filter 9. Specifically, in this case, the memory circuit 7 forms each line memory by one medium block and one small block, and thereby processes the image data by the seven line memories.

これに対して5個のラインメモリ25A〜25Eに画像データを格納し、各ラインメモリ25A〜25Eに0.5ライン分以上の空き容量が発生する場合、これらラインメモリ25A〜25Eに係る内部接続を切り換え、メモリ回路7を構成するラインメモリの数を5個から9個に増大させ、垂直フィルタ9に8タップ出力による画像データを出力する。具体的に、この場合、メモリ回路7は、9個のラインメモリにのうち7個のラインメモリをそれぞれ1個の中ブロックにより形成し、残り2個のラインメモリをそれぞれ2個の小ブロックにより形成し、これにより9個のラインメモリにより画像データを処理する。   On the other hand, when image data is stored in the five line memories 25A to 25E and a free space of 0.5 lines or more is generated in each of the line memories 25A to 25E, the internal connection related to these line memories 25A to 25E , The number of line memories constituting the memory circuit 7 is increased from 5 to 9, and image data by 8 tap output is output to the vertical filter 9. Specifically, in this case, the memory circuit 7 forms seven line memories of nine line memories each by one medium block, and the remaining two line memories each by two small blocks. In this way, image data is processed by nine line memories.

これにより画サイズ変換回路5は、水平方向の縮小率に応じて図18に示すように、垂直フィルタ9のタップ数を可変して垂直方向の画サイズを変換するようになされている。なおこの場合に、各ラインメモリにおける1ライン分の画像データ量の監視により、図19に示すように、このデータ量に応じて垂直タップ数を可変するようにしてもよい。   Thereby, the image size conversion circuit 5 converts the image size in the vertical direction by changing the number of taps of the vertical filter 9 as shown in FIG. 18 in accordance with the reduction ratio in the horizontal direction. In this case, the number of vertical taps may be varied according to the amount of data as shown in FIG. 19 by monitoring the amount of image data for one line in each line memory.

(2)実施例の動作
以上の構成において、この電子スチルカメラ1では(図1)、イメージセンサ2による撮像結果が画像データに変換されてカメラ信号処理回路4により処理された後、画サイズ変換回路5を介してモニタ3に出力され、これにより撮像結果がモニタされる。この一連の処理において、撮像結果に係る画像データは、画サイズ変換回路5において、イメージセンサ2に係る水平方向及び垂直方向の画素数が、水平方向への画サイズの拡大又は縮小により、さらには垂直方向への画サイズの拡大又は縮小により、モニタ3の水平方向及び垂直方向の画素数に変換されてモニタ3に出力され、これによりイメージセンサ2とモニタ3との間で、水平方向及び垂直方向の画素数が相違する場合であっても、確実に撮像結果をモニタすることができる。
(2) Operation of Embodiment In the above configuration, in this electronic still camera 1 (FIG. 1), the image pickup result by the image sensor 2 is converted into image data and processed by the camera signal processing circuit 4, and then image size conversion is performed. The result is output to the monitor 3 via the circuit 5, and thereby the imaging result is monitored. In this series of processing, the image data relating to the imaging result is obtained by the image size conversion circuit 5 in which the number of pixels in the horizontal direction and the vertical direction related to the image sensor 2 is further increased or decreased by increasing or decreasing the image size in the horizontal direction. By the enlargement or reduction of the image size in the vertical direction, the number of pixels in the horizontal direction and the vertical direction of the monitor 3 is converted and output to the monitor 3, thereby causing the horizontal and vertical directions between the image sensor 2 and the monitor 3. Even if the number of pixels in the direction is different, the imaging result can be reliably monitored.

すなわち水平方向に画素数を減少させて水平方向の画サイズを縮小する場合、画サイズ変換回路5に入力される画像データD1は、水平フィルタ8による補間処理により水平方向の画サイズが縮小された後、メモリ回路7に入力され、ここで5個のラインメモリ25A〜25Eに順次循環的に記録される。またこのように順次循環的にラインメモリ25A〜25Eに記録して、画像データD1の記録に供していない残り4個のラインメモリより、同時並列的に画像データが読み出されて垂直フィルタ9に入力され、ここでこの4個のラインメモリからの出力データによる複数ラインの画像データの補間処理により、垂直方向に画サイズが拡大、縮小される。   That is, when the image size in the horizontal direction is reduced by reducing the number of pixels in the horizontal direction, the image data D1 input to the image size conversion circuit 5 is reduced in the horizontal image size by the interpolation processing by the horizontal filter 8. Thereafter, it is input to the memory circuit 7, where it is sequentially and cyclically recorded in the five line memories 25A to 25E. In addition, in this manner, the image data is sequentially and cyclically recorded in the line memories 25A to 25E, and the image data is read simultaneously and in parallel from the remaining four line memories that are not used for recording the image data D1, and the image data is read by the vertical filter 9. Here, the image size is enlarged or reduced in the vertical direction by interpolation processing of image data of a plurality of lines based on output data from the four line memories.

これに対して水平方向に画素数を増大させて水平方向の画サイズを拡大する場合、画サイズ変換回路5に入力される画像データD1は、メモリ回路7に入力され、ここで5個のラインメモリ25A〜25Eに順次循環的に記録される。またこのように順次循環的にラインメモリ25A〜25Eに記録して、画像データD1の記録に供していない残り4個のラインメモリより、同時並列的に画像データが読み出されて垂直フィルタ9に入力され、ここでこの4個のラインメモリからの出力データによる複数ラインの画像データの補間処理により、垂直方向に画サイズが拡大、縮小される。またこの垂直フィルタ9の出力データが水平フィルタ8に入力され、ここで水平方向の画サイズが拡大処理される。   On the other hand, when the image size in the horizontal direction is enlarged by increasing the number of pixels in the horizontal direction, the image data D1 input to the image size conversion circuit 5 is input to the memory circuit 7, where five lines The data is sequentially and cyclically recorded in the memories 25A to 25E. In addition, in this manner, the image data is sequentially and cyclically recorded in the line memories 25A to 25E, and the image data is read simultaneously and in parallel from the remaining four line memories that are not used for recording the image data D1, and the image data is read by the vertical filter 9. Here, the image size is enlarged or reduced in the vertical direction by interpolation processing of image data of a plurality of lines based on output data from the four line memories. The output data of the vertical filter 9 is input to the horizontal filter 8, where the image size in the horizontal direction is enlarged.

これらにより画サイズ変換回路5においては、水平方向及び垂直方向に画サイズ拡大、縮小する場合に適用し得、これにより水平方向、垂直方向に種々に画サイズを変換することができる。   Thus, the image size conversion circuit 5 can be applied when the image size is enlarged or reduced in the horizontal direction and the vertical direction, whereby the image size can be variously converted in the horizontal direction and the vertical direction.

これらの処理において(図2)、画サイズを縮小する場合には、水平フィルタ8より水平方向のサンプリング数を低減した後、メモリ回路7、垂直フィルタ9により垂直方向の画サイズを変換し、また画サイズを拡大する場合には、メモリ回路7、垂直フィルタ9により垂直方向の画サイズを変換した後、水平フィルタ8により水平方向のサンプリング数を増大させることにより、画サイズを種々に変更する構成において、メモリ回路7の容量を最も少なくすることができるように、水平方向に画サイズを拡大、縮小する場合で構成を切り換えることができる。これによりその分、メモリ回路7の容量を小型化して全体構成を簡略化することができる。   In these processes (FIG. 2), when the image size is reduced, the number of samplings in the horizontal direction is reduced by the horizontal filter 8, and then the vertical image size is converted by the memory circuit 7 and the vertical filter 9. In the case of enlarging the image size, the image size in the vertical direction is converted by the memory circuit 7 and the vertical filter 9 and then the number of sampling in the horizontal direction is increased by the horizontal filter 8 to change the image size in various ways. The configuration can be switched when the image size is enlarged or reduced in the horizontal direction so that the capacity of the memory circuit 7 can be minimized. As a result, the capacity of the memory circuit 7 can be reduced accordingly, and the overall configuration can be simplified.

またこのようにして画像データを処理するようにして、メモリ回路7、水平フィルタ8、垂直フィルタ9を入力画像データD1のクロックにより動作するようにして、水平方向に画サイズを縮小する場合には、水平フィルタから出力する画像データを縮小率に応じた間引きによるダウンサンプリングによりメモリ回路7に格納し、垂直方向により画サイズを縮小する場合には、縮小率に応じたライン単位の間引きによりメモリ回路7から垂直フィルタ9に画像データを出力することにより、また垂直方向に画サイズを拡大する場合には、拡大率に応じてライン単位でメモリ回路7から垂直フィルタ9に繰り返し画像データを出力し、水平方向に画サイズを拡大する場合には、拡大率に応じて画素単位でメモリ回路7から垂直フィルタ9を介して水平フィルタ8に繰り返し画像データを出力することにより、メモリ回路7を構成するラインメモリ25A〜25Eを1系統のクロックにより動作させて、画像データを処理することができる。   Further, when the image data is processed in this way and the memory circuit 7, the horizontal filter 8, and the vertical filter 9 are operated by the clock of the input image data D1 to reduce the image size in the horizontal direction. When the image data output from the horizontal filter is stored in the memory circuit 7 by down-sampling by thinning according to the reduction ratio and the image size is reduced in the vertical direction, the memory circuit is thinned by line-by-line according to the reduction ratio. 7 to output image data to the vertical filter 9 and when the image size is enlarged in the vertical direction, the image data is repeatedly output from the memory circuit 7 to the vertical filter 9 line by line in accordance with the enlargement ratio. When enlarging the image size in the horizontal direction, the memory circuit 7 passes through the vertical filter 9 in units of pixels according to the enlargement ratio. By outputting the image data repetitively in the horizontal filter 8, the line memory 25A~25E constituting the memory circuit 7 is operated by the single clock pulse, the image data can be processed.

これによりこの実施例においては、デュアルポートのラインメモリに比して、周辺回路の構成が簡略で、かつ小型のシングルポートのランダムアクセスメモリによりラインメモリ25A〜25Eを構成することができ、その分、簡易な構成により種々に画サイズを拡大、縮小することができるようになされている。   As a result, in this embodiment, the line memories 25A to 25E can be configured by a simple single-port random access memory with a simpler peripheral circuit configuration than the dual-port line memory. The image size can be enlarged and reduced in various ways with a simple configuration.

さらにこのように1系統のクロックにより動作するようにして、水平方向に画サイズを縮小する場合には、縮小率に応じて、メモリ回路7からの読み出しに係るアドレスカウンタへのクロック周波数を分周により低減し、またこの分周に係るクロックにより垂直フィルタ9を駆動し、これにより水平方向への画サイズの縮小により水平方向のサンプリング数が減少した分、垂直フィルタ9における処理速度が低減され、これより消費電力を低減することができる。   Further, when the image size is reduced in the horizontal direction by operating with one system clock in this way, the clock frequency to the address counter for reading from the memory circuit 7 is divided in accordance with the reduction ratio. In addition, the vertical filter 9 is driven by the clock related to this frequency division, and the processing speed in the vertical filter 9 is reduced by the amount of sampling in the horizontal direction due to the reduction of the image size in the horizontal direction. Thus, power consumption can be reduced.

またこのようにして水平方向に画サイズを縮小して水平方向のサンプリング数が低下する場合、この水平方向のサンプリング数の低下によるラインメモリ25A〜25Eの空き容量を利用して、4ライン以上の画像データがメモリ回路7に保持され、またこれに対応して垂直フィルタ9の補間処理に係るタップ数が増大される。これによりこの場合、タップ数を増大させて垂直方向の画サイズを変更する分、高画質により画サイズを変換することができる。   Further, when the image size is reduced in the horizontal direction and the number of samplings in the horizontal direction is reduced in this way, the free space of the line memories 25A to 25E due to the decrease in the number of samplings in the horizontal direction is used, so The image data is held in the memory circuit 7, and the number of taps related to the interpolation processing of the vertical filter 9 is correspondingly increased. Accordingly, in this case, the image size can be converted with high image quality by changing the image size in the vertical direction by increasing the number of taps.

電子スチルカメラ1では、このような画サイズ変換回路5による画サイズの変換処理が、イメージセンサ2とモニタ3との間の画素数の相違(画サイズ)の相違を補うために使用される他に、電子ズームにより撮像結果を拡大して表示する場合にも適用される。すなわちこの場合、図示しないコントローラの制御によりユーザーによる操作子の操作に応動して縮小率、拡大率が画サイズ変換回路5に指示され、この指示に係る縮小率、拡大率により水平方向及び垂直方向に画サイズが連続的に変更される。   In the electronic still camera 1, such image size conversion processing by the image size conversion circuit 5 is used to compensate for the difference in the number of pixels (image size) between the image sensor 2 and the monitor 3. In addition, the present invention is also applied to a case where an imaging result is enlarged and displayed by an electronic zoom. That is, in this case, the image size conversion circuit 5 is instructed to the reduction ratio and the enlargement ratio in response to the operation of the operation element by the user under the control of a controller (not shown), and the horizontal direction and the vertical direction are determined by the reduction ratio and the enlargement ratio according to this instruction. The image size is continuously changed.

またH反転が指示されると、メモリ回路7における書き込みアドレスの生成順序が逆転されて、ライン単位で、書き込み時とは逆の順序により画像データが出力される。この処理において、画サイズ変換回路5においては、画像縮小時、画素の間引きによりダウンサンプリングしてメモリ回路7に画像データを書き込むようにして、この書き込み側のアドレスの変更によりH反転に係る画像データを出力することにより、縮小率が変化した場合にあっても、水平方向における画像中心の位置変化を防止して、簡易な構成によりH反転に係る処理を実行することができるようになされている。   When H inversion is instructed, the generation order of the write addresses in the memory circuit 7 is reversed, and image data is output in line units in the reverse order from the writing. In this processing, the image size conversion circuit 5 performs down-sampling by pixel thinning and writing the image data to the memory circuit 7 when the image is reduced, and the image data related to the H inversion by changing the address on the writing side. Is output, even when the reduction ratio changes, the position of the center of the image in the horizontal direction can be prevented, and the processing relating to H inversion can be executed with a simple configuration. .

(3)実施例の効果
以上の構成によれば、水平方向に画サイズを縮小する場合には、水平方向の画サイズを縮小する水平フィルタに続いて、ラインメモリによるメモリ回路、垂直方向のサイズを変更する垂直フィルタを配置し、水平方向の画サイズを拡大する場合には、メモリ回路に続いて、垂直フィルタ、水平フィルタを順に配置することにより、簡易な構成により、水平方向、垂直方向に種々に画サイズを変換することができる。
(3) Effects of the embodiment According to the above configuration, when the image size is reduced in the horizontal direction, the horizontal filter for reducing the image size in the horizontal direction is followed by the memory circuit by the line memory, the size in the vertical direction. When the vertical filter to change the image size is expanded and the image size in the horizontal direction is increased, the vertical filter and the horizontal filter are arranged in this order after the memory circuit. Various image sizes can be converted.

またこの処理において、メモリ回路、水平フィルタ、垂直フィルタを入力画像データのクロックにより動作させるようにして、垂直方向に画サイズを拡大する場合には、拡大率に応じて、メモリ回路から複数ラインの画像データをライン単位で繰り返し出力し、水平方向に画サイズを拡大する場合には、拡大率に応じて、同一の画像データを画素単位で繰り返し出力し、垂直方向に画サイズを縮小する場合には、縮小率に応じて、ライン単位で間引きして垂直フィルタに画像データを出力し、水平方向に画サイズを縮小する場合には、縮小率に応じて、画素単位で間引きして画像データをメモリ回路に入力することにより、周辺回路の構成が簡略で、かつ小型のシングルポートのランダムアクセスメモリによりメモリ回路を構成することができ、その分、簡易な構成により種々に画サイズを拡大、縮小することができる。   In this processing, when the image size is enlarged in the vertical direction by operating the memory circuit, the horizontal filter, and the vertical filter by the clock of the input image data, a plurality of lines are extracted from the memory circuit according to the enlargement ratio. When repeatedly outputting image data in line units and enlarging the image size in the horizontal direction, when outputting the same image data repeatedly in pixel units and reducing the image size in the vertical direction according to the enlargement ratio In the case of reducing the image size in the horizontal direction by thinning out in units of lines according to the reduction rate, and reducing the image size in the horizontal direction, the image data is thinned out in units of pixels according to the reduction rate. By inputting to the memory circuit, the configuration of the peripheral circuit is simple, and the memory circuit can be configured with a small single-port random access memory. , That amount, variously larger image size with a simple structure, can be reduced.

また水平フィルタによる画サイズの変化が、画サイズの縮小の場合、縮小率に応じたクロックの周波数の低減により垂直フィルタの動作速度を低下させ、これに対応するように、メモリ回路の読み出しに係るアドレスの生成速度を低下させることにより、垂直フィルタにおける無駄な動作を低減して消費電力を低減することができる。   If the image size change due to the horizontal filter is a reduction in the image size, the operation speed of the vertical filter is reduced by reducing the clock frequency in accordance with the reduction ratio, and the memory circuit read-out is associated with this. By reducing the address generation speed, useless operations in the vertical filter can be reduced and power consumption can be reduced.

またメモリ回路における書き込み用のアドレス生成順序を逆転させて、ライン単位で、書き込み時とは逆の順序により画像データを出力することにより、縮小率が種々に変化す場合でも、水平方向における画像中心の位置変化を防止して、簡易な構成によりH反転に係る処理を実行することができる。   In addition, by reversing the address generation order for writing in the memory circuit and outputting image data in units of lines in the reverse order of writing, the image center in the horizontal direction can be changed even when the reduction ratio changes variously. Thus, the process related to the H inversion can be executed with a simple configuration.

また水平フィルタによる画サイズの変化が、画サイズの縮小の場合、縮小の倍率に応じて低減するライン当たりのサンプリング数に応じて、垂直フィルタに出力する画像データのライン数を増大させ、垂直フィルタの補間処理に係るタップ数を増大させることにより、画サイズの縮小により発生するメモリ回路の空き容量を有効に利用して画質を向上することができる。   If the image size change due to the horizontal filter is a reduction in the image size, the number of lines of image data output to the vertical filter is increased in accordance with the number of samplings per line to be reduced in accordance with the reduction magnification. By increasing the number of taps related to this interpolation processing, it is possible to improve the image quality by effectively using the free capacity of the memory circuit generated by the reduction of the image size.

なお上述の実施例においては、水平方向の縮小率により垂直フィルタのタップ数を3段階により切り換える場合について述べたが、本発明はこれに限らず、例えば図18及び図19との対比によりそれぞれ図20及び図21に示すように、2段階によりタップ数を切り換える場合等、タップ数の切り換えにあっては必要に応じて種々に設定することができる。   In the above-described embodiment, the case where the number of taps of the vertical filter is switched in three steps according to the reduction ratio in the horizontal direction has been described. However, the present invention is not limited to this, and for example, the comparison is made with FIG. 18 and FIG. As shown in FIG. 20 and FIG. 21, when the number of taps is switched, for example, when the number of taps is switched in two stages, various settings can be made as necessary.

また上述の実施例においては、電子スチルカメラに本発明を適用する場合について述べたが、本発明はこれに限らず、例えばビデオカメラ等の種々の撮像装置、さらには種々の映像機器に広く適用することができる。   In the above-described embodiments, the case where the present invention is applied to an electronic still camera has been described. However, the present invention is not limited to this, and is widely applied to various imaging devices such as a video camera and various video devices. can do.

本発明は、例えば電子スチルカメラに適用することができる。   The present invention can be applied to, for example, an electronic still camera.

本発明の実施例に係る電子スチルカメラを示すブロック図である。It is a block diagram which shows the electronic still camera which concerns on the Example of this invention. 図1の電子スチルカメラにおける画サイズ変換回路の説明に供するブロック図である。FIG. 2 is a block diagram for explaining an image size conversion circuit in the electronic still camera of FIG. 1. 図2の画サイズ変換回路における水平フィルタを示すブロック図である。FIG. 3 is a block diagram illustrating a horizontal filter in the image size conversion circuit of FIG. 2. 図2の画サイズ変換回路における4タップの水平フィルタの例を示すブロック図である。FIG. 3 is a block diagram illustrating an example of a 4-tap horizontal filter in the image size conversion circuit of FIG. 2. 図2の画サイズ変換回路における8タップの水平フィルタの例を示すブロック図である。FIG. 3 is a block diagram illustrating an example of an 8-tap horizontal filter in the image size conversion circuit of FIG. 2. 図2の画サイズ変換回路における垂直フィルタを示すブロック図である。FIG. 3 is a block diagram illustrating a vertical filter in the image size conversion circuit of FIG. 2. 図2の画サイズ変換回路における2タップの垂直フィルタの例を示すブロック図である。FIG. 3 is a block diagram illustrating an example of a 2-tap vertical filter in the image size conversion circuit of FIG. 2. 図2の画サイズ変換回路における4タップの垂直フィルタの例を示すブロック図である。FIG. 3 is a block diagram illustrating an example of a 4-tap vertical filter in the image size conversion circuit of FIG. 2. 図2の画サイズ変換回路において水平方向及び垂直方向の双方に画サイズを縮小する場合のタイムチャートである。3 is a time chart when the image size is reduced both in the horizontal direction and in the vertical direction in the image size conversion circuit of FIG. 2. 図2の画サイズ変換回路において水平方向及び垂直方向に画サイズを縮小及び拡大する場合のタイムチャートである。3 is a time chart when the image size is reduced and enlarged in the horizontal direction and the vertical direction in the image size conversion circuit of FIG. 2. 図2の画サイズ変換回路において水平方向及び垂直方向に画サイズを拡大及び縮小する場合のタイムチャートである。3 is a time chart when the image size is enlarged and reduced in the horizontal direction and the vertical direction in the image size conversion circuit of FIG. 2. 図2の画サイズ変換回路において水平方向及び垂直方向の双方に画サイズを拡大する場合のタイムチャートである。3 is a time chart when the image size is enlarged both in the horizontal direction and in the vertical direction in the image size conversion circuit of FIG. 2. 図2の画サイズ変換回路におけるH反転処理の説明に供するタイムチャートである。3 is a time chart for explaining H inversion processing in the image size conversion circuit of FIG. 2. 水平方向の画サイズの縮小時におけるH反転処理の説明に供するタイムチャートである。It is a time chart used for description of H inversion processing when the image size in the horizontal direction is reduced. 水平方向の画サイズの縮小時により有効区間の減少の説明に供するタイムチャートである。It is a time chart used for description of reduction of an effective section when the image size in the horizontal direction is reduced. 垂直フィルタにおける動作速度の低減の説明に供するタイムチャートである。It is a time chart with which it uses for description of the reduction | decrease of the operating speed in a vertical filter. 図16との対比により水平方向への縮小率が小さい場合におけるタイムチャートである。FIG. 17 is a time chart when the reduction ratio in the horizontal direction is small in comparison with FIG. 16. 水平方向の縮小率と垂直フィルタのタップ数の関係を示す特性曲線図である。It is a characteristic curve figure which shows the relationship between the reduction rate of a horizontal direction, and the number of taps of a vertical filter. メモリ回路における1ライン当たりの画像データ量と垂直フィルタのタップ数の関係を示す特性曲線図である。It is a characteristic curve diagram showing the relationship between the amount of image data per line and the number of taps of the vertical filter in the memory circuit. 他の実施例による水平方向の縮小率と垂直フィルタのタップ数の関係を示す特性曲線図である。It is a characteristic curve figure which shows the relationship between the reduction rate of the horizontal direction by the other Example, and the number of taps of a vertical filter. 他の実施例によるメモリ回路における1ライン当たりの画像データ量と垂直フィルタのタップ数の関係を示す特性曲線図である。It is a characteristic curve figure which shows the relationship between the image data amount per line in the memory circuit by another Example, and the number of taps of a vertical filter.

符号の説明Explanation of symbols

1……電子スチルカメラ、2……イメージセンサ、3……モニタ、5……画サイズ変換回路、7……メモリ回路、8……水平フィルタ、9……垂直フィルタ、25A〜25E……ラインメモリ、28……メモリコントローラ
DESCRIPTION OF SYMBOLS 1 ... Electronic still camera, 2 ... Image sensor, 3 ... Monitor, 5 ... Image size conversion circuit, 7 ... Memory circuit, 8 ... Horizontal filter, 9 ... Vertical filter, 25A-25E ... Line Memory, 28 ... Memory controller

Claims (6)

入力画像データの画サイズを変換して出力画像データを出力する画サイズ変換装置において、
少なくとも3個以上の複数のラインメモリを有し、前記複数のラインメモリを順次循環的に選択して順次入力される画像データを前記ラインメモリに記録すると共に、前記複数のラインメモリのうちの残りのラインメモリから複数ラインの画像データを同時並列的に読み出して出力するメモリ回路と、
前記メモリ回路から出力される前記複数ラインの画像データを補間演算処理することにより、前記画像データの画サイズを垂直方向に変化させる垂直フィルタと、
連続する画像データを補間演算処理して出力することにより、前記画像データの画サイズを水平方向に変化させる水平フィルタと、
前記水平フィルタによる画サイズの変化が、画サイズの縮小の場合、前記入力画像データを前記水平フィルタに入力し、前記水平フィルタの出力データを前記メモリ回路に入力し、前記垂直フィルタ回路の出力データを前記出力画像データとして出力し、
前記水平フィルタによる画サイズの変化が、画サイズの拡大の場合、前記入力画像データを前記メモリ回路に入力し、前記垂直フィルタの出力データを前記水平フィルタに入力し、前記水平フィルタの出力データを前記出力画像データとして出力するスイッチ回路とを備える
ことを特徴とする画サイズ変換装置。
In an image size conversion device that converts the image size of input image data and outputs output image data,
A plurality of line memories of at least three, wherein the plurality of line memories are sequentially and cyclically selected to record sequentially input image data in the line memory, and the remaining of the plurality of line memories A memory circuit for simultaneously reading out and outputting image data of a plurality of lines from the line memory;
A vertical filter that changes the image size of the image data in a vertical direction by performing interpolation calculation processing on the image data of the plurality of lines output from the memory circuit;
A horizontal filter that changes the image size of the image data in the horizontal direction by outputting the continuous image data after performing interpolation calculation processing;
When the change in the image size due to the horizontal filter is reduction of the image size, the input image data is input to the horizontal filter, the output data of the horizontal filter is input to the memory circuit, and the output data of the vertical filter circuit Is output as the output image data,
When the change in the image size by the horizontal filter is an enlargement of the image size, the input image data is input to the memory circuit, the output data of the vertical filter is input to the horizontal filter, and the output data of the horizontal filter is An image size conversion apparatus comprising: a switch circuit that outputs the output image data.
前記メモリ回路は、
前記入力画像データのクロックにより前記画像データを記録すると共に、前記画像データを出力し、
前記垂直フィルタにより垂直方向に画サイズを拡大する場合には、拡大率に応じて、前記入力画像データの1水平走査期間で、前記複数ラインの画像データをライン単位で繰り返し出力し、
前記水平フィルタにより水平方向に画サイズを拡大する場合には、拡大率に応じて、同一の画像データを画素単位で繰り返し出力し、
前記垂直フィルタにより垂直方向に画サイズを縮小する場合には、縮小率に応じて、ライン単位で間引きして前記垂直フィルタに画像データを出力し、
前記水平フィルタにより水平方向に画サイズを縮小する場合には、縮小率に応じて、画素単位で間引きして前記画像データを入力し、
前記水平フィルタ、前記垂直フィルタは、
前記入力画像データのクロックにより動作して補間演算処理を実行する
ことを特徴とする請求項1に記載の画サイズ変換装置。
The memory circuit includes:
Recording the image data with the clock of the input image data, and outputting the image data;
When the image size is enlarged in the vertical direction by the vertical filter, the image data of the plurality of lines is repeatedly output in units of lines in one horizontal scanning period of the input image data according to the enlargement ratio.
When the image size is enlarged in the horizontal direction by the horizontal filter, the same image data is repeatedly output in units of pixels according to the enlargement ratio,
When the image size is reduced in the vertical direction by the vertical filter, the image data is output to the vertical filter by thinning out in units of lines according to the reduction ratio,
When the image size is reduced in the horizontal direction by the horizontal filter, the image data is input by thinning out in units of pixels according to the reduction ratio.
The horizontal filter and the vertical filter are:
The image size conversion apparatus according to claim 1, wherein the image size conversion apparatus operates according to a clock of the input image data and executes an interpolation calculation process.
前記水平フィルタによる画サイズの変化が、画サイズの縮小の場合、
前記垂直フィルタは、
縮小率に応じたクロック周波数の低減により動作速度を低下させ、
前記メモリ回路は、
前記クロック周波数の低減に対応するように、読み出しに係るアドレスの生成速度を低下させる
ことを特徴とする請求項1に記載の画サイズ変換装置。
When the change in the image size by the horizontal filter is a reduction in the image size,
The vertical filter is
Reduce the operating speed by reducing the clock frequency according to the reduction rate,
The memory circuit includes:
The image size conversion apparatus according to claim 1, wherein an address generation speed related to reading is reduced so as to correspond to the reduction of the clock frequency.
前記メモリ回路は、
書き込み用のアドレス生成順序を逆転させて、ライン単位で、書き込み時とは逆の順序により画像データを出力する
ことを特徴とする請求項2に記載の画サイズ変換装置。
The memory circuit includes:
3. The image size conversion apparatus according to claim 2, wherein the address generation order for writing is reversed, and image data is output in line units in the order reverse to that at the time of writing.
前記メモリ回路は、
前記水平フィルタによる画サイズの変化が、画サイズの縮小の場合、前記縮小の倍率に応じて低減するライン当たりのサンプリング数に応じて、前記垂直フィルタに出力する前記複数のライン数を増大させる、
ことを特徴とする請求項1に記載の画サイズ変換装置。
The memory circuit includes:
When the change in the image size by the horizontal filter is a reduction in the image size, the number of lines to be output to the vertical filter is increased according to the number of samples per line to be reduced according to the reduction magnification.
The image size conversion apparatus according to claim 1, wherein:
撮像結果を取得する撮像手段と、
操作子の操作に応動して前記撮像手段により得られる入力画像データによる画サイズを変更して出力画像データを出力することにより、電子ズームに係る処理を実行する画サイズ変換回路とを有する撮像装置であって、
前記画サイズ変換回路は、
少なくとも3個以上の複数のラインメモリを有し、前記複数のラインメモリを順次循環的に選択して順次入力される画像データを前記ラインメモリに記録すると共に、前記複数のラインメモリのうちの残りのラインメモリから複数ラインの画像データを同時並列的に読み出して出力するメモリ回路と、
前記メモリ回路から出力される前記複数ラインの画像データを補間演算処理することにより、前記画像データの画サイズを垂直方向に変化させる垂直フィルタと、
連続する画像データを補間演算処理して出力することにより、前記画像データの画サイズを水平方向に変化させる水平フィルタと、
前記水平フィルタによる画サイズの変化が、画サイズの縮小の場合、前記入力画像データを前記水平フィルタに入力し、前記水平フィルタの出力データを前記メモリ回路に入力し、前記垂直フィルタ回路の出力データを前記出力画像データとして出力し、
前記水平フィルタによる画サイズの変化が、画サイズの拡大の場合、前記入力画像データを前記メモリ回路に入力し、前記垂直フィルタの出力データを前記水平フィルタに入力し、前記水平フィルタの出力データを前記出力画像データとして出力するスイッチ回路とを有する
ことを特徴とする撮像装置。
Imaging means for obtaining imaging results;
An image pickup apparatus having an image size conversion circuit that executes processing related to electronic zoom by changing the image size based on input image data obtained by the image pickup means in response to an operation of an operator and outputting output image data Because
The image size conversion circuit includes:
A plurality of line memories of at least three, wherein the plurality of line memories are sequentially and cyclically selected to record sequentially input image data in the line memory, and the remaining of the plurality of line memories A memory circuit for simultaneously reading out and outputting image data of a plurality of lines from the line memory;
A vertical filter that changes the image size of the image data in a vertical direction by performing interpolation calculation processing on the image data of the plurality of lines output from the memory circuit;
A horizontal filter that changes the image size of the image data in the horizontal direction by outputting the continuous image data after performing interpolation calculation processing;
When the change in the image size due to the horizontal filter is reduction of the image size, the input image data is input to the horizontal filter, the output data of the horizontal filter is input to the memory circuit, and the output data of the vertical filter circuit Is output as the output image data,
When the change in the image size by the horizontal filter is an enlargement of the image size, the input image data is input to the memory circuit, the output data of the vertical filter is input to the horizontal filter, and the output data of the horizontal filter is An image pickup apparatus comprising: a switch circuit that outputs the output image data.
JP2004177781A 2004-06-16 2004-06-16 Image size conversion apparatus and image pickup apparatus Pending JP2006003481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004177781A JP2006003481A (en) 2004-06-16 2004-06-16 Image size conversion apparatus and image pickup apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004177781A JP2006003481A (en) 2004-06-16 2004-06-16 Image size conversion apparatus and image pickup apparatus

Publications (1)

Publication Number Publication Date
JP2006003481A true JP2006003481A (en) 2006-01-05

Family

ID=35771941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004177781A Pending JP2006003481A (en) 2004-06-16 2004-06-16 Image size conversion apparatus and image pickup apparatus

Country Status (1)

Country Link
JP (1) JP2006003481A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014075623A (en) * 2012-10-02 2014-04-24 Fujitsu Semiconductor Ltd Image processor, image processing method, and imaging device
JP2015064556A (en) * 2013-08-30 2015-04-09 キヤノン株式会社 Focus detection device and control method of the same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014075623A (en) * 2012-10-02 2014-04-24 Fujitsu Semiconductor Ltd Image processor, image processing method, and imaging device
US9762776B2 (en) 2012-10-02 2017-09-12 Socionext, Inc. Device and method for resizing image, and imaging device
JP2015064556A (en) * 2013-08-30 2015-04-09 キヤノン株式会社 Focus detection device and control method of the same

Similar Documents

Publication Publication Date Title
JP4255345B2 (en) Imaging device
JP2007228019A (en) Imaging apparatus
JP3133702B2 (en) Digital still camera
JP2006003481A (en) Image size conversion apparatus and image pickup apparatus
JP4697094B2 (en) Image signal output apparatus and control method thereof
JP3912305B2 (en) Pixel density converter
JP4424097B2 (en) Electronic zoom device
JP2006157152A (en) Imaging apparatus and method
JPWO2006043483A1 (en) Video signal processing device
JP2009071616A (en) Image processor and control method thereof
US7068310B1 (en) Imaging device
JP4367193B2 (en) Scanning line converter
JPH10341415A (en) Picture processor
JP2000341585A (en) Video device having image memory function
JP2003224715A (en) Image processing circuit and image processing method
JP2007020112A (en) Image signal processing apparatus, image signal processing method and imaging device
JP2000307943A (en) Electronic zoom device
JP3237556B2 (en) Video processing device
JP2005130350A (en) Image processing device, method and image display unit therefor
JP2001160140A5 (en)
JP2008294574A (en) Image processing device and control method of image processing device
JP2001309231A (en) Image processing apparatus
JP4171319B2 (en) Image / audio processor
JP2002108701A (en) Multiport memory device
JP3152641B2 (en) Displaying the playback screen