JP6295619B2 - Image processing apparatus and method, and electronic apparatus - Google Patents

Image processing apparatus and method, and electronic apparatus Download PDF

Info

Publication number
JP6295619B2
JP6295619B2 JP2013237738A JP2013237738A JP6295619B2 JP 6295619 B2 JP6295619 B2 JP 6295619B2 JP 2013237738 A JP2013237738 A JP 2013237738A JP 2013237738 A JP2013237738 A JP 2013237738A JP 6295619 B2 JP6295619 B2 JP 6295619B2
Authority
JP
Japan
Prior art keywords
image
image data
scanning direction
circuit
pixels
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
JP2013237738A
Other languages
Japanese (ja)
Other versions
JP2015099959A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2013237738A priority Critical patent/JP6295619B2/en
Publication of JP2015099959A publication Critical patent/JP2015099959A/en
Application granted granted Critical
Publication of JP6295619B2 publication Critical patent/JP6295619B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、入力画像データに対して所定の画像変形処理を施して出力画像データを出力する画像処理装置及び方法、並びに当該画像処理装置を備えた電子機器に関する。   The present invention relates to an image processing apparatus and method for performing predetermined image transformation processing on input image data and outputting output image data, and an electronic apparatus including the image processing apparatus.

1枚のレンズで画角の広い映像を取得できるため、テレビ会議システム、監視カメラ等の映像機器において、魚眼レンズ等の広角レンズがよく用いられている。広角のレンズでは、レンズの歪曲収差特性のため、その周辺部にいくほど歪曲率が大きく、画像の歪みが著しい。そのままでは画像の視認性が悪いため、多くの場合で、入力画像に対して、歪みを補正するための画像処理を施す。この画像処理の実現手段の1つとして、出力1画素ごとに対応する、入力画像の座標値とサブピクセル値を変形パラメータとして入力し、指定した入力画素に対してバイリニア補間、バイキュービック補間等の補間演算処理を行って、出力画素を生成していく方法が一般に用いられている。   A wide-angle lens such as a fish-eye lens is often used in video equipment such as a video conference system and a surveillance camera because an image with a wide angle of view can be obtained with a single lens. In a wide-angle lens, the distortion rate increases toward the periphery of the lens due to the distortion characteristics of the lens, and image distortion is significant. Since the visibility of the image is poor as it is, in many cases, the input image is subjected to image processing for correcting distortion. As one means for realizing this image processing, input image coordinate values and sub-pixel values corresponding to each output pixel are input as deformation parameters, and bilinear interpolation, bicubic interpolation, etc. are performed on the designated input pixels. A method of generating an output pixel by performing an interpolation calculation process is generally used.

特許文献1及び2では、魚眼レンズを通して得られた入力画像に対する画像補正処理の高速化と、魚眼レンズを使った監視システム等において動体検知を行うときに、歪み率の大きい部分と歪み率の少ない部分でマッチングの重み係数を変えることが開示されている。これにより、精度よく動体検知を行う。   In Patent Documents 1 and 2, when performing high-speed image correction processing on an input image obtained through a fisheye lens and moving object detection in a monitoring system using a fisheye lens, a portion with a high distortion rate and a portion with a low distortion rate are used. Changing the weighting factor of matching is disclosed. Thereby, a moving body detection is performed accurately.

また、特許文献3では、魚眼レンズで取り込んだ画像のような、方向によって変倍率の異なる広画角画像データのJPEC圧縮による符号化を行うことが開示されている。ここで、変倍により失われがちな特定の方向の高周波成分の情報を優先的に保存した圧縮符号データを得られるため、それを伸長することにより全体的に解像度(画質)のバランスの良い画像の再生が可能である。   Japanese Patent Application Laid-Open No. H10-228561 discloses encoding of wide-angle image data having a variable magnification according to a direction, such as an image captured with a fisheye lens, by JPEC compression. Here, since compression code data that preferentially stores high-frequency component information in a specific direction that tends to be lost due to scaling can be obtained, an image with a good balance of resolution (image quality) as a whole is obtained by decompressing it. Can be played.

しかし、レンズを通して得られた入力画像を一旦格納しておくフレームメモリには、DDR SDRAM(Double Data Rate Synchronous Dynamic Random Access Memory)を用いることが多い。しかし、出力画素に対応する入力画素をDDR SDRAMから読み出していく処理を、出力1画素ごとに順に実行しようとすると、特に任意の画像変形では、DDR SDRAMに対してのランダムアクセスとなり、膨大な処理時間を必要とするという問題があった。   However, a DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory) is often used as a frame memory that temporarily stores an input image obtained through a lens. However, if the process of reading out the input pixel corresponding to the output pixel from the DDR SDRAM is to be executed sequentially for each output pixel, the random access to the DDR SDRAM is caused especially in arbitrary image deformation, and a huge amount of processing is performed. There was a problem of requiring time.

他方、テレビ会議等での映像機器では、映像と音声との同期ずれを極力なくすため、画像入力から、画像出力までのフレーム遅延をできるだけ短くすることが求められる。上記歪み補正のための画像処理において、このフレーム遅延の低減に対処しようとすると、画像入力の開始から、画像処理の開始、補正後画像の映像表示装置への出力処理の開始のタイミングを、単純に絵が壊れないように時間で調整していく方法が考えられる。もしくは、入力画像のフレームメモリへのライト完了済みライン数、画像処理回路による補正完了ライン数がある一定の値になったところでそれぞれの処理を開始していくという方法が考えられる。しかし、上述した歪曲収差のために、それぞれの出力画像エリアで必要とする参照画像サイズが大きく異なるため、フレーム遅延の低減量を最適化(最小化)できないという問題があった。   On the other hand, in video equipment for video conferencing or the like, it is required to shorten the frame delay from image input to image output as much as possible in order to minimize synchronization deviation between video and audio. In the image processing for distortion correction, if it is attempted to deal with the reduction of the frame delay, the timing of starting the image input, starting the image processing, and starting the output processing of the corrected image to the video display device is simplified. It is possible to adjust the time so that the picture does not break. Alternatively, a method may be considered in which the respective processes are started when the number of lines that have been written to the frame memory of the input image and the number of lines that have been corrected by the image processing circuit have reached a certain value. However, because of the distortion aberration described above, the required reference image size differs greatly in each output image area, and there is a problem that the amount of reduction in frame delay cannot be optimized (minimized).

上記の特許文献1〜3においても、画像変形処理においてフレーム遅延を低減させる手法についての開示も示唆もなかった。   In the above Patent Documents 1 to 3, there is no disclosure or suggestion of a technique for reducing frame delay in image deformation processing.

本発明の目的は以上の問題点を解決し、画像変換処理においてフレーム遅延をできるだけ小さくすることができる画像処理装置を提供することにある。   An object of the present invention is to solve the above problems and provide an image processing apparatus capable of minimizing frame delay in image conversion processing.

本発明の第1の態様に係る画像変形回路は、画像メモリに記憶した入力画像データに対して所定の画像変形処理を行って出力画像データを形成する画像変形回路であって、
上記出力画像データを複数の出力画像エリアに分割し、上記各出力画像エリアを形成するために必要な入力画像データの一部を参照画像データとして読み出して画像メモリに書き込み、出力画像エリア単位で画像変形処理を行う画像変形回路において、
上記各出力画像エリアに対応した参照画像データを画像メモリから読み出すための制御情報から、参照画像データの入力画像データ全体における参照画像の副走査方向画素数を算出する算出回路と、
上記算出回路により算出された参照画像の副走査方向画素数を、上記入力画像データを上記画像メモリに対して書き込み済みのライト済み副走査方向画素数と比較する第1の比較回路と、
上記第1の比較回路により上記参照画像の副走査方向画素数が上記ライト済み副走査方向画素数よりも大きいと判断されたとき、上記画像メモリへの参照画像のリード要求信号をネゲートするためのペンディング信号をアクティブにする論理回路とを備えたことを特徴とすることを特徴とする。
An image deformation circuit according to a first aspect of the present invention is an image deformation circuit that performs predetermined image deformation processing on input image data stored in an image memory to form output image data,
The output image data is divided into a plurality of output image areas, and a part of the input image data necessary to form each output image area is read as reference image data and written to the image memory, and images are output in units of output image areas. In an image deformation circuit that performs deformation processing,
A calculation circuit for calculating the number of pixels in the sub-scanning direction of the reference image in the entire input image data of the reference image data from the control information for reading the reference image data corresponding to each output image area from the image memory;
A first comparison circuit that compares the number of pixels in the sub-scanning direction of the reference image calculated by the calculation circuit with the number of pixels in the written sub-scanning direction in which the input image data has been written to the image memory;
When the first comparison circuit determines that the number of pixels in the sub-scanning direction of the reference image is larger than the number of pixels in the written sub-scanning direction, it negates a read request signal for the reference image to the image memory. And a logic circuit for activating a pending signal.

本発明の第2の態様に係る画像変形方法は、画像メモリに記憶した入力画像データに対して所定の画像変形処理を行って出力画像データを形成する画像変形回路のための画像変形方法であって、
上記画像変形回路は、上記出力画像データを複数の出力画像エリアに分割し、上記各出力画像エリアを形成するために必要な入力画像データの一部を参照画像データとして読み出して画像メモリに書き込み、出力画像エリア単位で画像変形処理を行い、
上記画像変形方法は、
上記各出力画像エリアに対応した参照画像データを画像メモリから読み出すための制御情報から、参照画像データの入力画像データ全体における参照画像の副走査方向画素数を算出するステップと、
第1の比較回路が、上記算出された参照画像の副走査方向画素数を、上記入力画像データを上記画像メモリに対して書き込み済みのライト済み副走査方向画素数と比較するステップと、
上記参照画像の副走査方向画素数が上記ライト済み副走査方向画素数よりも大きいと判断されたとき、上記画像メモリへの参照画像のリード要求信号をネゲートするためのペンディング信号をアクティブにするステップとを含むことを特徴とする。
An image deformation method according to a second aspect of the present invention is an image deformation method for an image deformation circuit that performs predetermined image deformation processing on input image data stored in an image memory to form output image data. And
The image transformation circuit divides the output image data into a plurality of output image areas, reads a part of the input image data necessary to form each output image area as reference image data, writes the image data in an image memory, Perform image transformation processing in units of output image areas,
The above image transformation method is
Calculating the number of pixels in the sub-scanning direction of the reference image in the entire input image data of the reference image data from the control information for reading the reference image data corresponding to each output image area from the image memory;
A first comparison circuit comparing the calculated number of pixels in the sub-scanning direction of the reference image with the number of pixels in the written sub-scanning direction in which the input image data has been written to the image memory;
A step of activating a pending signal for negating a read request signal for a reference image to the image memory when it is determined that the number of pixels in the sub-scanning direction of the reference image is larger than the number of pixels in the written sub-scanning direction It is characterized by including.

本発明に第3の態様に係る電子機器は、上記画像変形回路を備えたことを特徴とする。   An electronic apparatus according to a third aspect of the present invention includes the image deformation circuit.

本発明によれば、上記参照画像の副走査方向画素数が上記ライト済み副走査方向画素数よりも大きいと判断されたとき、上記画像メモリへの参照画像のリード要求信号をネゲートするためのペンディング信号をアクティブにする。従って、画像変換処理においてフレーム遅延をできるだけ小さくすることができる。   According to the present invention, the pending for negating the read request signal of the reference image to the image memory when it is determined that the number of pixels in the sub-scanning direction of the reference image is larger than the number of pixels in the written sub-scanning direction. Activate the signal. Therefore, the frame delay can be made as small as possible in the image conversion process.

本発明の実施形態1に係る、画像変形回路10を備えた画像処理装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus including an image deformation circuit 10 according to Embodiment 1 of the present invention. 図1の画像変形回路10の構成を示すブロック図である。It is a block diagram which shows the structure of the image deformation circuit 10 of FIG. 図2の画像変形回路10において用いる変形パラメータの一例を示す図である。It is a figure which shows an example of the deformation | transformation parameter used in the image deformation | transformation circuit 10 of FIG. 図2の画像変形回路10の動作を示すシーケンス図である。FIG. 3 is a sequence diagram showing an operation of the image deformation circuit 10 in FIG. 2. 図2のシーケンサ回路12の一部の構成を示すブロック図である。FIG. 3 is a block diagram showing a partial configuration of the sequencer circuit 12 of FIG. 2. 本発明の実施形態2に係る画像変形回路10のシーケンサ回路12Aの一部の構成を示すブロック図である。It is a block diagram which shows the structure of a part of sequencer circuit 12A of the image deformation circuit 10 concerning Embodiment 2 of this invention. 本発明の実施形態3に係る画像変形回路10の動作を示す図である。It is a figure which shows operation | movement of the image deformation circuit 10 which concerns on Embodiment 3 of this invention. 本発明の実施形態4に係る画像変形回路10のシーケンサ回路12Bの一部の構成を示すブロック図である。It is a block diagram which shows the structure of a part of sequencer circuit 12B of the image deformation circuit 10 which concerns on Embodiment 4 of this invention.

以下、本発明に係る実施形態について図面を参照して説明する。なお、以下の各実施形態において、同様の構成要素については同一の符号を付している。   Hereinafter, embodiments according to the present invention will be described with reference to the drawings. In addition, in each following embodiment, the same code | symbol is attached | subjected about the same component.

実施形態1.
図1は本発明の実施形態1に係る、画像変形回路10を備えた画像処理装置の構成を示すブロック図である。実施形態1に係る画像処理装置は、上述の問題点を解決するために、出力画像を複数のエリア(以下、出力画像エリアという。)に分割し、それぞれの出力画像エリアで必要とする入力画像の一部の領域の画像(以下、参照画像という。)を切り出す。そして、参照画像のデータを、高速にリード/ライトが可能なSRAMに一旦取り込んだ後、補正演算により出力画素を生成することを特徴とする。
Embodiment 1. FIG.
FIG. 1 is a block diagram showing a configuration of an image processing apparatus including an image deformation circuit 10 according to the first embodiment of the present invention. In order to solve the above-described problems, the image processing apparatus according to the first embodiment divides an output image into a plurality of areas (hereinafter referred to as output image areas), and input images required in the respective output image areas. An image of a partial area (hereinafter referred to as a reference image) is cut out. Then, after the reference image data is once taken into an SRAM that can be read / written at high speed, an output pixel is generated by a correction calculation.

図1において、実施形態1に係る画像処理装置は、センサインターフェース回路1と、画像信号プロセッサ(以下、ISPという。)2と、ライトダイレクトメモリアクセスコントローラ(以下、ライトDMACという。)3と、インターコネクト回路4とを備える。また、画像処理装置はさらに、DDR SDRAMであるフレームメモリ5と、リードダイレクトメモリアクセスコントローラ(以下、リードDMACという。)と、画像変形回路10とを備える。   1, the image processing apparatus according to the first embodiment includes a sensor interface circuit 1, an image signal processor (hereinafter referred to as ISP) 2, a write direct memory access controller (hereinafter referred to as write DMAC) 3, and an interconnect. Circuit 4. The image processing apparatus further includes a frame memory 5 that is a DDR SDRAM, a read direct memory access controller (hereinafter referred to as a read DMAC), and an image deformation circuit 10.

センサインターフェース回路1は、例えばカメラなどのCCDセンサからの入力画像データを受信して所定の形式の入力画像データであるRAWデータに変換してISP2に出力する。ISP2は入力されるRAWデータに対して所定の画像処理(ISP処理)を行った後、処理後の画像データを、ライトDMAC3及びインターコネクト回路4を介してフレームメモリ5に出力する。当該ISP処理は、レンズなどの光学系の補正処理、イメージセンサのばらつきなどのから発生する傷補正などの画素単位での処理を主として含む。   The sensor interface circuit 1 receives input image data from, for example, a CCD sensor such as a camera, converts it into RAW data that is input image data in a predetermined format, and outputs it to the ISP 2. The ISP 2 performs predetermined image processing (ISP processing) on the input RAW data, and then outputs the processed image data to the frame memory 5 via the write DMAC 3 and the interconnect circuit 4. The ISP processing mainly includes processing in units of pixels such as correction processing of an optical system such as a lens and correction of scratches caused by variations in image sensors.

ライトDMAC3はISP2による画像処理後の画像データをフレームメモリ5に一時的に書き込むための回路である。インターコネクト回路4はフレームメモリ5に接続される各回路間の調停回路として動作し、フレームメモリ5と、画像変形回路10と、リードDMAC6とが接続される。画像変形回路10は、インターコネクト回路4からの変形パラメータ及び参照画像データに基づいて、参照画像データに対して例えば歪み補正処理などの任意の画像変形処理を行って、処理後の画像データを、インターコネクト回路4を介してフレームメモリ5に出力する。リードDMAC6は、画像変形処理後の画像データを、インターコネクト回路4を介してフレームメモリ5から読み出し、各種映像表示装置に出力する。   The write DMAC 3 is a circuit for temporarily writing image data after image processing by the ISP 2 into the frame memory 5. The interconnect circuit 4 operates as an arbitration circuit between circuits connected to the frame memory 5, and the frame memory 5, the image deformation circuit 10, and the read DMAC 6 are connected. The image deformation circuit 10 performs arbitrary image deformation processing such as distortion correction processing on the reference image data based on the deformation parameter and the reference image data from the interconnect circuit 4, and converts the processed image data into the interconnect. The data is output to the frame memory 5 via the circuit 4. The read DMAC 6 reads the image data after the image transformation process from the frame memory 5 via the interconnect circuit 4 and outputs it to various video display devices.

以上のように構成された画像処理装置では、ISP処理後の画像データと、任意変形処理後の画像データと、任意の画像変形処理のための変形パラメータを、フレームメモリ5に格納して処理するように構成されている。ISP処理後の画像データは、CCDセンサからの入力画像データに応じて毎フレーム更新される。また、画像変形処理後の画像データは、画像変形処理の結果である画像データに応じて毎フレーム更新される。ここで、任意の画像変換処理のための変形パラメータは必要に応じて更新する。なお、毎フレーム同じ変形処理を施す場合は更新の必要はない。   In the image processing apparatus configured as described above, image data after ISP processing, image data after arbitrary deformation processing, and deformation parameters for arbitrary image deformation processing are stored in the frame memory 5 and processed. It is configured as follows. The image data after the ISP processing is updated every frame according to the input image data from the CCD sensor. Further, the image data after the image deformation process is updated every frame according to the image data that is the result of the image deformation process. Here, the deformation parameters for an arbitrary image conversion process are updated as necessary. If the same deformation process is performed every frame, there is no need to update.

図2は図1の画像変形回路10の構成を示すブロック図である。図2において、画像変形回路10は、補正演算回路11と、SRAM回路21A,21B,22A,22B,23A,23Bと、シーケンサ回路12と、インターフェース回路13と、設定レジスタ回路14と、レジスタ制御回路15とを備えて構成される。   FIG. 2 is a block diagram showing a configuration of the image deformation circuit 10 of FIG. In FIG. 2, an image transformation circuit 10 includes a correction arithmetic circuit 11, SRAM circuits 21A, 21B, 22A, 22B, 23A, 23B, a sequencer circuit 12, an interface circuit 13, a setting register circuit 14, and a register control circuit. 15.

インターフェース回路13は、インターコネクト回路4を介してフレームメモリ5に接続され、変形パラメータ、参照画像データ及び補正後画像データについて、フレームメモリ5と情報のやり取りを行う。具体的には、インターフェース回路13は、フレームメモリ5から、変形パラメータ及び参照画像データを入力する一方、画像変形処理後の画像データをフレームメモリ5に出力する。レジスタ制御回路15はCPU7からの制御信号に基づいて、補正演算回路11及びシーケンサ回路12のための設定レジスタ回路14に対するリード・ライト制御を行う。シーケンサ回路12は、当該画像変形回路10の全体の動作を制御する。なお、画像変形回路10には、外部回路からクロック信号、リセット信号及び動作制御信号が供給される。補正演算回路11は、変形パラメータ及び参照画像データをSRAM回路21A,21B,22A,22Bから読み出して出力画素を生成してSRAM回路23A,23Bに出力する。   The interface circuit 13 is connected to the frame memory 5 via the interconnect circuit 4 and exchanges information with the frame memory 5 regarding the deformation parameter, the reference image data, and the corrected image data. Specifically, the interface circuit 13 inputs deformation parameters and reference image data from the frame memory 5, and outputs image data after image deformation processing to the frame memory 5. The register control circuit 15 performs read / write control on the setting register circuit 14 for the correction arithmetic circuit 11 and the sequencer circuit 12 based on a control signal from the CPU 7. The sequencer circuit 12 controls the overall operation of the image deformation circuit 10. The image transformation circuit 10 is supplied with a clock signal, a reset signal, and an operation control signal from an external circuit. The correction arithmetic circuit 11 reads the deformation parameters and the reference image data from the SRAM circuits 21A, 21B, 22A, and 22B, generates output pixels, and outputs them to the SRAM circuits 23A and 23B.

本実施形態では、画像変形回路10が内蔵するSRAM回路21A,21B,22A,22B,23A,23Bにおいて、画像データのA面とB面に対応するSRAM回路を設けている。すなわち、以下の通りである。なお、これらSRAM回路21A,21B,22A,22B,23A,23Bはシーケンサ回路12と補正演算回路11との間に設けられる。
(1)SRAM回路21Aは、A面の画像データの変形パラメータを格納するSRAM回路(図面において、RAMPIX、A面)である。
(2)SRAM回路21Bは、B面の画像データの変形パラメータを格納するSRAM回路(図面において、RAMPIX、B面)である。
(3)SRAM回路22Aは、A面の参照画像データを格納するSRAM回路(図面において、RAMREF、A面)である。
(4)SRAM回路22Bは、B面の参照画像データを格納するSRAM回路(図面において、RAMREF、B面)である。
(5)SRAM回路23Aは、A面の補正演算後の画像データを一時的に待避して格納するSRAM回路(図面において、RAMREV、A面)である。
(6)SRAM回路23Bは、B面の補正演算後の画像データを一時的に待避して格納するSRAM回路(図面において、RAMREV、B面)である。
In this embodiment, the SRAM circuits 21A, 21B, 22A, 22B, 23A, and 23B built in the image deformation circuit 10 are provided with SRAM circuits corresponding to the A and B surfaces of the image data. That is, it is as follows. These SRAM circuits 21A, 21B, 22A, 22B, 23A, and 23B are provided between the sequencer circuit 12 and the correction arithmetic circuit 11.
(1) The SRAM circuit 21A is an SRAM circuit (RAMPIX, A side in the drawing) that stores deformation parameters of image data on the A side.
(2) The SRAM circuit 21B is an SRAM circuit (RAMPIX, B side in the drawing) that stores deformation parameters of image data on the B side.
(3) The SRAM circuit 22A is an SRAM circuit (RAMREF, A surface in the drawing) that stores the reference image data of the A surface.
(4) The SRAM circuit 22B is an SRAM circuit (RAMREF, B side in the drawing) that stores reference image data for the B side.
(5) The SRAM circuit 23A is an SRAM circuit (RAMREV, A side in the drawing) that temporarily stores and stores the image data after the A side correction calculation.
(6) The SRAM circuit 23B is an SRAM circuit (RAMREV, B side in the drawing) that temporarily stores and stores the image data after the B side correction calculation.

図4は図2の画像変形回路10の動作を示すシーケンス図である。図4に示すように、A面の画像データについて(n+1)エリア目の出力画像エリア(n=1,2,3,…)の変形パラメータと参照画像データのフレームメモリ5へのリードアクセスを行っているときに、B面の画像データについて補正演算処理を行う。ここで、先にDDR SDRAMリードアクセスを行ったnエリア目の出力画像エリア(n=1,2,3,…)の補正演算処理を行う。具体的には、B面の補正後の画像データのライト、B面の変形パラメータのリード及びB面の参照画像データのリードを行っているときに、A面の補正演算を行う。一方、A面の補正後の画像データのライト、A面の変形パラメータのリード及びA面の参照画像データのリードを行っているときに、B面の補正演算を行う。以上の処理動作は、フレームメモリ5へのアクセスを間断なく行わせることで、処理性能の向上を図るためである。   FIG. 4 is a sequence diagram showing the operation of the image deformation circuit 10 of FIG. As shown in FIG. 4, the read access to the frame memory 5 of the deformation parameter of the output image area (n = 1, 2, 3,...) Of the (n + 1) th area and the reference image data is performed on the A-side image data. Correction processing is performed on the B-side image data. Here, the correction calculation processing is performed on the n-th output image area (n = 1, 2, 3,...) Where DDR SDRAM read access has been performed first. Specifically, the correction operation for the A surface is performed when the image data after the correction for the B surface is written, the deformation parameter for the B surface is read, and the reference image data for the B surface is read. On the other hand, correction of the B surface is performed while writing the image data after correction of the A surface, reading the deformation parameters of the A surface, and reading the reference image data of the A surface. The above processing operation is to improve processing performance by allowing the frame memory 5 to be accessed without interruption.

図3は図2の画像変形回路10において用いる変形パラメータの一例を示す図である。図3に示すように、変形パラメータは、入力画像データから参照画像データを切り出すための参照画像切り出しデータと、出力画像データの1画素を生成するための参照画像の座標値及びサブピクセル値を指定する参照画素指定データからなる。ここで、参照画像切り出しデータと、参照画素指定データ(群)は、出力画像エリアの1エリア単位で用意し、処理する出力画像エリアの順番に応じて記憶回路に配置する等の処理を行う。本実施形態では、パラメータを配置する記憶回路として、入出力画像データを格納するフレームメモリ5を共通して用いる。ここで、入力画像データと、補正後画像データと、変形パラメータは、それぞれアドレスオフセットを付けて、フレームメモリ5に配置する。   FIG. 3 is a diagram showing an example of deformation parameters used in the image deformation circuit 10 of FIG. As shown in FIG. 3, the transformation parameters specify reference image cutout data for cutting out reference image data from input image data, and a coordinate value and a subpixel value of a reference image for generating one pixel of output image data. It consists of reference pixel designation data. Here, the reference image cut-out data and the reference pixel designation data (group) are prepared for each area of the output image area, and processing such as arranging them in the storage circuit according to the order of the output image areas to be processed is performed. In this embodiment, the frame memory 5 for storing input / output image data is commonly used as a storage circuit for arranging parameters. Here, the input image data, the corrected image data, and the deformation parameters are arranged in the frame memory 5 with an address offset added thereto.

また、参照画像切り出しデータは、参照画像データの先頭DDR SDRAMアドレスと、参照画像データの主走査画素数、副走査画素数から構成される。ここで、参照画素指定データにおける座標値は、参照画像データを格納するSRAM回路(RAMREF)22A,22Bのアドレス値(参照画素指定アドレス)で表現する。参照画素指定データは、さらに参照画素を詳細に指定するためのサブピクセル値(Xサブピクセル、Yサブピクセル)と、本明細書では詳細説明を省略するが、補正演算後のデータに対して乗算するためのブレンド係数から構成される。   The reference image cut-out data is composed of the first DDR SDRAM address of the reference image data, the number of main scanning pixels and the number of sub-scanning pixels of the reference image data. Here, the coordinate values in the reference pixel designation data are expressed by address values (reference pixel designation addresses) of the SRAM circuits (RAMREF) 22A and 22B that store the reference image data. The reference pixel designation data further includes a subpixel value (X subpixel, Y subpixel) for designating the reference pixel in detail, and multiplication of the data after the correction calculation, although detailed description is omitted in this specification. It is composed of blending coefficients for

本実施形態では、参照画素指定データは、通常は出力1画素ずつに対して与えている。本発明はこれに限らず、出力16画素に対して1つの参照画素指定データを与え、画像変形回路10内部で出力1画素ずつに対応するように線形補間により復元してもよい。   In the present embodiment, the reference pixel designation data is normally given to each output pixel. The present invention is not limited to this, and one reference pixel designation data may be given to the output 16 pixels and restored by linear interpolation so as to correspond to each output pixel within the image deformation circuit 10.

図5は図2のシーケンサ回路12の一部の構成を示すブロック図である。図5の回路は、フレームメモリ5への参照画像リード要求信号Srrの発生回路である。当該発生回路は、レジスタ41〜44(格納回路)と、必要副走査方向画素数算出回路31と、比較回路32と、アンドゲート33とを備えて構成される。   FIG. 5 is a block diagram showing a partial configuration of the sequencer circuit 12 of FIG. The circuit in FIG. 5 is a circuit for generating a reference image read request signal Srr to the frame memory 5. The generation circuit includes registers 41 to 44 (storage circuit), a necessary sub-scanning direction pixel number calculation circuit 31, a comparison circuit 32, and an AND gate 33.

必要副走査方向画素数算出回路31は、
(1)レジスタ42に格納され、参照画像切り出しデータから得られる各出力画像エリアに対応する参照画像データの先頭DDR SDRAMアドレスAtrと、
(2)レジスタ43に格納され、参照画像切り出しデータから得られる各出力画像エリアに対応する参照画像データの副走査方向画素数Nsrと、
(3)レジスタ44に格納され、レジスタ設定等により得られる入力画像データの主走査方向画素数Nmiと
から、各出力画像エリアに対応する参照画像の入力画像データ全体において必要な副走査方向画素数(必要副走査方向画素数)Nscを算出する。具体的には、必要副走査方向画素数算出回路31は次式(1)を用いて算出する。
The necessary sub-scanning direction pixel number calculation circuit 31
(1) The first DDR SDRAM address Atr of the reference image data corresponding to each output image area stored in the register 42 and obtained from the reference image cut-out data;
(2) The number Nsr of sub-scanning direction pixels of the reference image data corresponding to each output image area stored in the register 43 and obtained from the reference image cut-out data;
(3) The number of pixels in the sub-scanning direction necessary for the entire input image data of the reference image corresponding to each output image area from the number Nmi of the main scanning direction pixels of the input image data stored in the register 44 and obtained by register setting or the like (Required number of pixels in the sub-scanning direction) Nsc is calculated. Specifically, the necessary sub-scanning direction pixel number calculation circuit 31 calculates the following equation (1).

[数1]
Nsc=(Atr/Nmi)+Nsr (1)
[Equation 1]
Nsc = (Atr / Nmi) + Nsr (1)

また、フレームメモリ5への入力画像データのライト済み副走査方向画素数NswはライトDMAC3からインターコネクト回路4を介して入力データレジスタ41に格納された後、比較回路32に出力される。比較回路32は、算出された必要副走査方向画素数Nscを、ライト済み副走査方向画素数Nswと比較し、Nsc>Nswであれば、フレームメモリ5への参照画像データのリード要求コマンド信号をネゲートするためのペンディング信号Spenをアクティブにする。ペンディング信号Spenは、アンドゲート33の反転入力端子に入力される。アンドゲート33の別の入力端子には参照画像リード要求信号Srrmが入力され、アンドゲート33の出力端子から参照画像リード要求信号Srrがフレームメモリ5に出力される。これにより、比較回路32における比較結果を画像変形回路10のシーケンス制御に利用することを特徴とする。ここで、ライト済み副走査方向画素数Nswがカウントアップされ、Nsc>Nswの状態が解消するまで画像変形処理を一時停止する。   Further, the number Nsw of pixels written in the sub-scanning direction of the input image data to the frame memory 5 is stored in the input data register 41 from the write DMAC 3 via the interconnect circuit 4 and then output to the comparison circuit 32. The comparison circuit 32 compares the calculated required number of sub-scanning direction pixels Nsc with the written number of sub-scanning direction pixels Nsw. If Nsc> Nsw, the reference circuit data read request command signal to the frame memory 5 is output. The pending signal Spen for negating is activated. The pending signal Spen is input to the inverting input terminal of the AND gate 33. The reference image read request signal Srrm is input to another input terminal of the AND gate 33, and the reference image read request signal Srr is output from the output terminal of the AND gate 33 to the frame memory 5. Thus, the comparison result in the comparison circuit 32 is used for sequence control of the image deformation circuit 10. Here, the number Nsw of pixels in the written sub-scanning direction is counted up, and the image deformation process is temporarily stopped until the state of Nsc> Nsw is resolved.

このような構成にすることで、画像変形回路10の前段のライトDMAC3の処理開始と、画像変形回路10の処理開始を同時にすることができる。また、途中の出力画像エリアで必要とする参照画像データのフレームメモリ5へのライトが行われていなければ、画像変形回路10の処理を一時停止させているので、画像変形処理の破綻なくフレーム遅延をできるだけ小さくすることが可能となる。   With this configuration, it is possible to simultaneously start the processing of the write DMAC 3 in the previous stage of the image deformation circuit 10 and the processing of the image deformation circuit 10. Further, if the reference image data required in the output image area in the middle is not written to the frame memory 5, the processing of the image deformation circuit 10 is temporarily stopped, so that the frame delay can be performed without failure of the image deformation processing. Can be made as small as possible.

実施形態2.
図6は本発明の実施形態2に係る画像変形回路10のシーケンサ回路12Aの一部の構成を示すブロック図である。実施形態2に係るシーケンサ回路12Aは、実施形態1に係るシーケンサ回路12に比較して、レジスタ45と、比較回路34と、アンドゲート35とをさらに備えたことを特徴とする。
Embodiment 2. FIG.
FIG. 6 is a block diagram showing a partial configuration of the sequencer circuit 12A of the image deformation circuit 10 according to the second embodiment of the present invention. Compared to the sequencer circuit 12 according to the first embodiment, the sequencer circuit 12A according to the second embodiment further includes a register 45, a comparison circuit 34, and an AND gate 35.

図6において、レジスタ45は、レジスタ設定等により得られる入力画像データ(全体)の副走査方向画素数Nsiを格納した後、比較回路34に出力する。比較回路34は、レジスタ41からのライト済み副走査方向画素数Nswを、入力画像データの副走査方向画素数Nsiと比較し、Nsw≧Nsiであれば、アンドゲート35により図5のペンディング信号Spenを非アクティブにすることを特徴とする。ここで、比較回路34からの出力信号はアンドゲート35の反転入力端子に入力され、比較回路32からの出力信号はアンドゲート35の別の入力端子に入力される。アンドゲート35はペンディング信号Spenを生成してアンドゲート33の反転入力端子に出力する。   In FIG. 6, the register 45 stores the number Nsi of pixels in the sub-scanning direction of the input image data (entire) obtained by register setting or the like, and then outputs it to the comparison circuit 34. The comparison circuit 34 compares the written sub-scanning direction pixel number Nsw from the register 41 with the sub-scanning direction pixel number Nsi of the input image data. If Nsw ≧ Nsi, the AND gate 35 performs the pending signal Spen in FIG. Is made inactive. Here, the output signal from the comparison circuit 34 is input to the inverting input terminal of the AND gate 35, and the output signal from the comparison circuit 32 is input to another input terminal of the AND gate 35. The AND gate 35 generates a pending signal Spen and outputs it to the inverting input terminal of the AND gate 33.

このような構成にすることで、必要副走査方向画素数算出回路31により算出される必要副走査方向画素数Nscが、入力画像データ全体の副走査方向画素数Nsiをオーバーするような場合においても、画像変形回路の破綻なくフレーム遅延をできるだけ小さくすることが可能となる。   With such a configuration, even when the necessary sub-scanning direction pixel number Nsc calculated by the necessary sub-scanning direction pixel number calculating circuit 31 exceeds the sub-scanning direction pixel number Nsi of the entire input image data. Thus, the frame delay can be made as small as possible without failure of the image deformation circuit.

実施形態3.
図7は本発明の実施形態3に係る画像変形回路10の動作を示す図である。実施形態3に係る画像変形回路10は、実施形態1又は2に係る画像変形回路10の構成に加えて、補正後画像データをフレームメモリ5にライトするときの、各出力画像エリアのライト先の先頭DDR SDRAMアドレスAtwを、次式(2)により決定することを特徴としている。
Embodiment 3. FIG.
FIG. 7 is a diagram showing the operation of the image deformation circuit 10 according to the third embodiment of the present invention. In addition to the configuration of the image deformation circuit 10 according to the first or second embodiment, the image deformation circuit 10 according to the third embodiment includes a write destination of each output image area when the corrected image data is written to the frame memory 5. The first DDR SDRAM address Atw is determined by the following equation (2).

[数2]
Atw=(補正後画像データ全体のオフセットアドレス)
+(出力画像エリアの主走査画素数)×(現エリア数−1)
+(出力画像エリアの画素数)×(現エリア数/出力画像データにおける主走査方向のエリア数) (2)
[Equation 2]
Atw = (offset address of the entire corrected image data)
+ (Number of main scanning pixels in the output image area) x (number of current areas -1)
+ (Number of pixels in the output image area) x (number of current areas / number of areas in the main scanning direction in the output image data) (2)

このような構成にすることで、各出力画像エリアのライト先の先頭DDR SDRAMアドレスAtwを、出力画像エリアの情報に基づいて式(2)を用いて計算するので、必要副走査方向画素数Nscの値が小さい出力画像エリアから順次に処理していくことができる。   With such a configuration, the write destination start DDR SDRAM address Atw of each output image area is calculated using the expression (2) based on the information of the output image area. Can be sequentially processed from an output image area having a small value.

図7は、実施形態3の構成で、必要副走査方向画素数の値が小さい出力画像エリアから順に処理していく動作を示す。ここで、図中の番号は、出力画像エリアの処理の順番を示している。   FIG. 7 shows the operation of processing in order from the output image area having the smallest number of pixels in the required sub-scanning direction in the configuration of the third embodiment. Here, the numbers in the figure indicate the order of processing of the output image area.

このような構成にすることで、必要副走査方向画素数の値が小さい出力画像エリアから順次に処理していくことができるので、実施形態1又は2に比べて、さらにフレーム遅延を小さくすることが可能となる。   By adopting such a configuration, it is possible to sequentially process from an output image area having a small number of pixels in the required sub-scanning direction, so that the frame delay can be further reduced as compared with the first or second embodiment. Is possible.

実施形態4.
図8は本発明の実施形態4に係る画像変形回路10のシーケンサ回路12Bの一部の構成を示すブロック図である。図8に示すように、実施形態4のシーケンサ回路12Bは、図6の実施形態2ニ係るシーケンサ回路12Aに比較して、以下のことが異なる。
(1)1つの入力データレジスタ41に代えて、2つの入力データレジスタ41A,41Bを備えた。
(2)入力データレジスタ41A,41Bの後段であって、比較回路32,34の前段に、選択回路36を備えた。
Embodiment 4 FIG.
FIG. 8 is a block diagram showing a partial configuration of the sequencer circuit 12B of the image deformation circuit 10 according to the fourth embodiment of the present invention. As shown in FIG. 8, the sequencer circuit 12B according to the fourth embodiment is different from the sequencer circuit 12A according to the second embodiment shown in FIG.
(1) Instead of one input data register 41, two input data registers 41A and 41B are provided.
(2) A selection circuit 36 is provided after the input data registers 41A and 41B and before the comparison circuits 32 and 34.

図8において、入力データレジスタ41A,41Bはそれぞれ、ライト済み副走査方向画素数Nsw1,Nsw2を格納した後、選択回路36に出力する。選択回路36は、ライト済み副走査方向画素数Nsw1,Nsw2のうち小さい値を選択してライト済み副走査方向画素数Nswとして比較回路32,34に出力する。   In FIG. 8, the input data registers 41A and 41B store the written sub-scanning direction pixel numbers Nsw1 and Nsw2, respectively, and then output them to the selection circuit 36. The selection circuit 36 selects a smaller value from the written sub-scanning direction pixel numbers Nsw1 and Nsw2 and outputs the selected value to the comparison circuits 32 and 34 as a written sub-scanning direction pixel number Nsw.

このような構成にすることで、例えば2つのカメラから入力するステレオ画像に対して画像変形処理を行うような場合でも、進捗の遅い方のカメラに付随するライトDMAC3に合わせて、画像変形回路10の制御を行うことができる。従って、画像変換処理の破綻なくフレーム遅延をできるだけ小さくすることが可能となる。   With this configuration, for example, even when image deformation processing is performed on a stereo image input from two cameras, the image deformation circuit 10 is matched with the light DMAC 3 attached to the camera with the slower progress. Can be controlled. Therefore, the frame delay can be made as small as possible without failure of the image conversion process.

以上の実施形態4において、2つのライト済み副走査方向画素数Nsw1,Nsw2を格納した後、選択回路36により小さい値を有する副走査方向画素数を選択している。本発明はこれに限らず、複数のライト済み副走査方向画素数を格納した後、選択回路36により小さい値を有する副走査方向画素数を選択してもよい。   In the fourth embodiment described above, after the two written sub-scanning direction pixel numbers Nsw1 and Nsw2 are stored, the selection circuit 36 selects the sub-scanning direction pixel number having a smaller value. The present invention is not limited to this, and after storing a plurality of written sub-scanning direction pixel numbers, the selection circuit 36 may select a sub-scanning direction pixel number having a smaller value.

以上の実施形態においては、フレームメモリ5を用いているが、本発明はこれに限らず、所定の画像メモリであってもよい。   In the above embodiment, the frame memory 5 is used. However, the present invention is not limited to this, and a predetermined image memory may be used.

以上の実施形態においては、アンドゲート33、35を備えているが、本発明はこれに限らず、上記参照画像リード要求信号を生成するための所定の論理回路を備えてもよい。   In the above embodiment, the AND gates 33 and 35 are provided. However, the present invention is not limited to this, and a predetermined logic circuit for generating the reference image read request signal may be provided.

以上の本実施形態については、例えばデジタルカメラ、テレビ会議システム、監視カメラなどの、魚眼レンズ等の広画角のレンズを使用した各種映像機器などの電子機器に広く適用することができる。当該電子機器において、画像入力から画像出力までのフレーム遅延を低減させることができる。   The above-described embodiment can be widely applied to electronic devices such as various video devices using a wide-angle lens such as a fisheye lens such as a digital camera, a video conference system, and a surveillance camera. In the electronic device, the frame delay from image input to image output can be reduced.

実施形態のまとめ.
本発明の第1の態様に係る画像変形回路は、画像メモリに記憶した入力画像データに対して所定の画像変形処理を行って出力画像データを形成する画像変形回路である。当該画像変形回路は、上記出力画像データを複数の出力画像エリアに分割し、上記各出力画像エリアを形成するために必要な入力画像データの一部を参照画像データとして読み出して画像メモリに書き込み、出力画像エリア単位で画像変形処理を行う。当該画像変形回路は、算出回路と、第1の比較回路と、論理回路とを備える。上記算出回路は、上記各出力画像エリアに対応した参照画像データを画像メモリから読み出すための制御情報から、参照画像データの入力画像データ全体における参照画像の副走査方向画素数を算出する。上記第1の比較回路は、上記算出回路により算出された参照画像の副走査方向画素数を、上記入力画像データを上記画像メモリに対して書き込み済みのライト済み副走査方向画素数と比較する。上記論理回路は、上記第1の比較回路により上記参照画像の副走査方向画素数が上記ライト済み副走査方向画素数よりも大きいと判断されたとき、上記画像メモリへの参照画像のリード要求信号をネゲートするためのペンディング信号をアクティブにする。
Summary of embodiments.
An image deformation circuit according to a first aspect of the present invention is an image deformation circuit that performs predetermined image deformation processing on input image data stored in an image memory to form output image data. The image transformation circuit divides the output image data into a plurality of output image areas, reads a part of the input image data necessary for forming each output image area as reference image data, writes the image data in an image memory, Image deformation processing is performed in units of output image areas. The image deformation circuit includes a calculation circuit, a first comparison circuit, and a logic circuit. The calculation circuit calculates the number of pixels in the sub-scanning direction of the reference image in the entire input image data of the reference image data from the control information for reading the reference image data corresponding to each output image area from the image memory. The first comparison circuit compares the number of pixels in the sub-scanning direction of the reference image calculated by the calculation circuit with the number of pixels in the written sub-scanning direction in which the input image data has been written in the image memory. When the first comparison circuit determines that the number of pixels in the sub-scanning direction of the reference image is larger than the number of pixels in the written sub-scanning direction, the logic circuit reads the reference image read request signal to the image memory. Activate the pending signal to negate.

本発明の第2の態様に係る画像変形回路は、第1の態様の画像変形回路において、入力画像データ全体の副走査方向画素数を、上記ライト済み副走査方向画素数と比較する第2の比較回路をさらに備える。上記論理回路は、上記第2の比較回路により上記ライト済み副走査方向画素数が、上記入力画像データ全体の副走査方向画素数以上であると判断されたとき、上記ペンディング信号を非アクティブにする。   An image deformation circuit according to a second aspect of the present invention is the image deformation circuit according to the first aspect, wherein the number of pixels in the sub-scanning direction of the entire input image data is compared with the number of pixels in the written sub-scanning direction. A comparison circuit is further provided. The logic circuit deactivates the pending signal when the second comparison circuit determines that the number of pixels in the written sub-scanning direction is equal to or greater than the number of pixels in the sub-scanning direction of the entire input image data. .

本発明の第3の態様に係る画像変形回路は、第1又は2の態様の画像変形回路において、上記画像変形処理後の画像データを上記画像メモリに書き込むときの、上記各出力画像エリアの書き込み先の先頭アドレスを次式により決定する。
各出力画像エリアのライト先の先頭アドレス
=(補正後画像データ全体のオフセットアドレス)
+(出力画像エリアの主走査画素数)×(現エリア数−1)
+(出力画像エリアの画素数)×(現エリア数/出力画像データにおける主走査方向のエリア数)
そして、上記決定された各出力画像エリアの書き込み先の先頭アドレスを用いて上記画像変形処理後の画像データを上記画像メモリに書き込む。
The image deformation circuit according to a third aspect of the present invention is the image deformation circuit according to the first or second aspect, wherein the output image area is written when the image data after the image deformation process is written into the image memory. The first head address is determined by the following equation.
Start address of the write destination of each output image area = (offset address of the entire corrected image data)
+ (Number of main scanning pixels of output image area) x (number of current areas -1)
+ (Number of pixels in the output image area) x (current area number / number of areas in the main scanning direction in the output image data)
Then, the image data after the image transformation process is written into the image memory using the determined start address of the write destination of each output image area.

本発明の第4の態様に係る画像変形回路は、第の態様の画像変形回路において、格納回路と、選択回路とをさらに備える。上記格納回路は、上記入力画像データを画像メモリに書き込み済みのライト済み副走査方向画素数を複数格納する。上記選択回路は、上記格納された複数のライト済み副走査方向画素数のうちの最小値を選択して上記ライト済み副走査方向画素数として、上記第1及び第2の比較回路に出力する。 An image deformation circuit according to a fourth aspect of the present invention is the image deformation circuit according to the second aspect, further comprising a storage circuit and a selection circuit. The storage circuit stores a plurality of written sub-scanning direction pixel numbers in which the input image data has been written to the image memory. The selection circuit selects a minimum value from the stored plurality of written sub-scanning direction pixel numbers and outputs the selected value as the written sub-scanning direction pixel number to the first and second comparison circuits.

本発明の第5の態様に係る画像変形方法は、画像メモリに記憶した入力画像データに対して所定の画像変形処理を行って出力画像データを形成する画像変形回路のための画像変形方法である。上記画像変形回路は、上記出力画像データを複数の出力画像エリアに分割し、上記各出力画像エリアを形成するために必要な入力画像データの一部を参照画像データとして読み出して画像メモリに書き込み、出力画像エリア単位で画像変形処理を行う。上記画像変形方法は、以下のステップを含む。上記各出力画像エリアに対応した参照画像データを画像メモリから読み出すための制御情報から、参照画像データの入力画像データ全体における参照画像の副走査方向画素数を算出する。第1の比較回路が、上記算出された参照画像の副走査方向画素数を、上記入力画像データを上記画像メモリに対して書き込み済みのライト済み副走査方向画素数と比較する。上記参照画像の副走査方向画素数が上記ライト済み副走査方向画素数よりも大きいと判断されたとき、上記画像メモリへの参照画像のリード要求信号をネゲートするためのペンディング信号をアクティブにする。 An image deformation method according to a fifth aspect of the present invention is an image deformation method for an image deformation circuit that performs predetermined image deformation processing on input image data stored in an image memory to form output image data. . The image transformation circuit divides the output image data into a plurality of output image areas, reads a part of the input image data necessary to form each output image area as reference image data, writes the image data in an image memory, Image deformation processing is performed in units of output image areas. The image deformation method includes the following steps. From the control information for reading out the reference image data corresponding to each output image area from the image memory, the number of reference image sub-scanning pixels in the entire input image data of the reference image data is calculated. The first comparison circuit compares the calculated number of pixels in the sub-scanning direction of the reference image with the number of pixels in the written sub-scanning direction in which the input image data has been written to the image memory. When it is determined that the number of pixels in the sub-scanning direction of the reference image is larger than the number of pixels in the written sub-scanning direction, a pending signal for negating a read request signal for the reference image to the image memory is activated.

本発明の第6の態様に係る画像変形方法は、第5の態様に係る画像変形方法において、第2の比較回路が、入力画像データ全体の副走査方向画素数を、上記ライト済み副走査方向画素数と比較するステップを含む。また、当該画像変形方法は、上記ライト済み副走査方向画素数が、上記入力画像データ全体の副走査方向画素数以上であると判断されたとき、上記ペンディング信号を非アクティブにするステップとをさらに含む。 The image deformation method according to a sixth aspect of the present invention is the image deformation method according to the fifth aspect, wherein the second comparison circuit determines the number of pixels in the sub-scanning direction of the entire input image data as the written sub-scanning direction. Comparing with the number of pixels. Further, the image transformation method further includes a step of deactivating the pending signal when the number of pixels in the written sub-scanning direction is determined to be equal to or greater than the number of pixels in the sub-scanning direction of the entire input image data. Including.

本発明の第7の態様に係る画像変形方法は、第5又は第6の態様に係る画像変形方法において、上記画像変形処理後の画像データを上記画像メモリに書き込むときの、上記各出力画像エリアの書き込み先の先頭アドレスを次式により決定する。
各出力画像エリアのライト先の先頭アドレス
=(補正後画像データ全体のオフセットアドレス)
+(出力画像エリアの主走査画素数)×(現エリア数−1)
+(出力画像エリアの画素数)×(現エリア数/出力画像データにおける主走査方向のエリア数)
そして、上記決定された各出力画像エリアの書き込み先の先頭アドレスを用いて上記画像変形処理後の画像データを上記画像メモリに書き込む。
The image deformation method according to a seventh aspect of the present invention is the image deformation method according to the fifth or sixth aspect, wherein each of the output image areas when the image data after the image deformation process is written into the image memory. Is determined by the following equation.
Start address of the write destination of each output image area = (offset address of the entire corrected image data)
+ (Number of main scanning pixels of output image area) x (number of current areas -1)
+ (Number of pixels in the output image area) x (current area number / number of areas in the main scanning direction in the output image data)
Then, the image data after the image transformation process is written into the image memory using the determined start address of the write destination of each output image area.

本発明の第8の態様に係る画像変形方法は、第の態様に係る画像変形方法において、上記入力画像データを画像メモリに書き込み済みのライト済み副走査方向画素数を複数格納するステップを含む。また、当該画像変形方法は、上記格納された複数のライト済み副走査方向画素数のうちの最小値を選択して上記ライト済み副走査方向画素数として、上記第1及び第2の比較回路に出力するステップとをさらに含む。
An image deformation method according to an eighth aspect of the present invention includes the step of storing a plurality of written sub-scanning direction pixel numbers in which the input image data has been written to the image memory in the image deformation method according to the sixth aspect. . Further, the image transformation method selects a minimum value from the stored plurality of written sub-scanning direction pixel numbers as the written sub-scanning direction pixel number to the first and second comparison circuits. A step of outputting.

本発明の第9の態様に係る電子機器は、第1〜第4の態様に係る画像変形回路を備える。   An electronic apparatus according to a ninth aspect of the present invention includes the image deformation circuit according to the first to fourth aspects.

上記第1及び第5の態様によれば、画像変形回路の前段のライトDMACの処理開始と、画像変形回路の処理開始を同時にすることができる。また、画像変形回路で必要とする参照画像データの画像メモリへのライトが行われていなければ、任意画像変形回路の処理を一時停止させているので、画像変換処理の破綻なくフレーム遅延をできるだけ小さくすることが可能となる。   According to the first and fifth aspects, it is possible to simultaneously start the processing of the write DMAC at the preceding stage of the image deformation circuit and the processing of the image deformation circuit. In addition, if the reference image data required by the image transformation circuit is not written to the image memory, the processing of the arbitrary image transformation circuit is temporarily stopped, so that the frame delay can be made as small as possible without failure of the image conversion processing. It becomes possible to do.

上記第2及び第6の態様によれば、上記第1及び第5の態様において、副走査方向画素数の算出結果が、入力画像データ全体の副走査方向画素数をオーバーするような場合においても、画像変換処理の破綻なくフレーム遅延をできるだけ小さくすることが可能となる。   According to the second and sixth aspects, in the first and fifth aspects, even when the calculation result of the number of pixels in the sub-scanning direction exceeds the number of pixels in the sub-scanning direction of the entire input image data. Thus, the frame delay can be made as small as possible without failure of the image conversion process.

上記第3及び第7の態様によれば、上記第1、第2、第5及び第6の態様において、上記副走査方向画素数の値が小さい出力画像エリアから順に処理していくことができるので、上記第1、第2、第5及び第6の態様に比べて、さらにフレーム遅延を低減させることが可能となる。   According to the third and seventh aspects, in the first, second, fifth, and sixth aspects, it is possible to process sequentially from the output image area in which the value of the number of pixels in the sub-scanning direction is small. Therefore, the frame delay can be further reduced as compared with the first, second, fifth, and sixth aspects.

上記第4及び第8の態様によれば、ステレオ画像のような、複数のカメラから取り込む入力画像に対して画像変形処理を行うような場合でも、進捗の遅い方のカメラに付随するライトDMACに合わせて画像変形回路の制御を行うことができる。従って、画像変換処理の破綻なくフレーム遅延をできるだけ小さくすることが可能となる。   According to the fourth and eighth aspects, even when image transformation processing is performed on input images captured from a plurality of cameras, such as stereo images, the light DMAC associated with the camera with the slower progress is used. In addition, the image deformation circuit can be controlled. Therefore, the frame delay can be made as small as possible without failure of the image conversion process.

1…センサインターフェース回路、
2…画像信号プロセッサ(ISP)、
3…ライトダイレクトメモリアクセスコントローラ(ライトDMAC)
4…インターコネクト回路、
5…フレームメモリ、
6…リードダイレクトメモリアクセスコントローラ(リードDMAC)
7…CPU、
10…画像変形回路、
11…補正演算回路、
12,12A,12B…シーケンサ回路
13…インターフェース回路、
14…設定レジスタ回路、
15…レジスタ制御回路、
21A,21B,22A,22B,23A.23B…SRAM回路、
31…必要副走査方向画素数算出回路、
32…比較回路、
33…アンドゲート、
34…比較回路、
35…アンドゲート、
36…選択回路、
41,41A,41B,42〜45…レジスタ。
1 ... Sensor interface circuit,
2. Image signal processor (ISP),
3. Write direct memory access controller (write DMAC)
4 ... Interconnect circuit,
5 ... Frame memory,
6 ... Read Direct Memory Access Controller (Read DMAC)
7 ... CPU,
10: Image transformation circuit,
11 ... correction arithmetic circuit,
12, 12A, 12B ... sequencer circuit 13 ... interface circuit,
14: Setting register circuit,
15: Register control circuit,
21A, 21B, 22A, 22B, 23A. 23B ... SRAM circuit,
31 ... Necessary sub-scanning direction pixel number calculating circuit,
32. Comparison circuit,
33 ... Andgate,
34. Comparison circuit,
35 ... Andgate,
36 ... selection circuit,
41, 41A, 41B, 42 to 45... Registers.

特許第4243767号公報Japanese Patent No. 4243767 特許第4268206号公報Japanese Patent No. 4268206 特許第4097130号公報Japanese Patent No. 4097130

Claims (9)

画像メモリに記憶した入力画像データに対して所定の画像変形処理を行って出力画像データを形成する画像変形回路であって、
上記出力画像データを複数の出力画像エリアに分割し、上記各出力画像エリアを形成するために必要な入力画像データの一部を参照画像データとして読み出して画像メモリに書き込み、出力画像エリア単位で画像変形処理を行う画像変形回路において、
上記各出力画像エリアに対応した参照画像データを画像メモリから読み出すための制御情報から、参照画像データの入力画像データ全体における参照画像の副走査方向画素数を算出する算出回路と、
上記算出回路により算出された参照画像の副走査方向画素数を、上記入力画像データを上記画像メモリに対して書き込み済みのライト済み副走査方向画素数と比較する第1の比較回路と、
上記第1の比較回路により上記参照画像の副走査方向画素数が上記ライト済み副走査方向画素数よりも大きいと判断されたとき、上記画像メモリへの参照画像のリード要求信号をネゲートするためのペンディング信号をアクティブにする論理回路とを備えたことを特徴とすることを特徴とする画像変形回路。
An image deformation circuit that performs predetermined image deformation processing on input image data stored in an image memory to form output image data,
The output image data is divided into a plurality of output image areas, and a part of the input image data necessary to form each output image area is read as reference image data and written to the image memory, and images are output in units of output image areas. In an image deformation circuit that performs deformation processing,
A calculation circuit for calculating the number of pixels in the sub-scanning direction of the reference image in the entire input image data of the reference image data from the control information for reading the reference image data corresponding to each output image area from the image memory;
A first comparison circuit that compares the number of pixels in the sub-scanning direction of the reference image calculated by the calculation circuit with the number of pixels in the written sub-scanning direction in which the input image data has been written to the image memory;
When the first comparison circuit determines that the number of pixels in the sub-scanning direction of the reference image is larger than the number of pixels in the written sub-scanning direction, it negates a read request signal for the reference image to the image memory. An image transformation circuit comprising a logic circuit for activating a pending signal.
入力画像データ全体の副走査方向画素数を、上記ライト済み副走査方向画素数と比較する第2の比較回路をさらに備え、
上記論理回路は、上記第2の比較回路により上記ライト済み副走査方向画素数が、上記入力画像データ全体の副走査方向画素数以上であると判断されたとき、上記ペンディング信号を非アクティブにすることを特徴とする請求項1記載の画像変形回路。
A second comparison circuit that compares the number of pixels in the sub-scanning direction of the entire input image data with the number of pixels in the written sub-scanning direction;
The logic circuit deactivates the pending signal when the second comparison circuit determines that the number of pixels in the written sub-scanning direction is equal to or greater than the number of pixels in the sub-scanning direction of the entire input image data. The image deformation circuit according to claim 1.
上記画像変形処理後の画像データを上記画像メモリに書き込むときの、上記各出力画像エリアの書き込み先の先頭アドレスを次式により決定し、
各出力画像エリアのライト先の先頭アドレス
=(補正後画像データ全体のオフセットアドレス)
+(出力画像エリアの主走査画素数)×(現エリア数−1)
+(出力画像エリアの画素数)×(現エリア数/出力画像データにおける主走査方向のエリア数)
上記決定された各出力画像エリアの書き込み先の先頭アドレスを用いて上記画像変形処理後の画像データを上記画像メモリに書き込むことを特徴とする請求項1又は2記載の画像変形回路。
When writing the image data after the image transformation process to the image memory, the start address of the write destination of each output image area is determined by the following equation:
Start address of the write destination of each output image area = (offset address of the entire corrected image data)
+ (Number of main scanning pixels in the output image area) x (number of current areas -1)
+ (Number of pixels in the output image area) x (current area number / number of areas in the main scanning direction in the output image data)
3. The image transformation circuit according to claim 1, wherein the image data after the image transformation processing is written into the image memory using the determined start address of each output image area.
上記入力画像データを画像メモリに書き込み済みのライト済み副走査方向画素数を複数格納する格納回路と、
上記格納された複数のライト済み副走査方向画素数のうちの最小値を選択して上記ライト済み副走査方向画素数として、上記第1及び第2の比較回路に出力する選択回路とをさらに備えたことを特徴とする請求項記載の画像変形回路。
A storage circuit for storing a plurality of written sub-scanning direction pixel numbers in which the input image data has been written to the image memory;
A selection circuit that selects a minimum value from the stored plurality of written sub-scanning direction pixel numbers and outputs the selected value to the first and second comparison circuits as the written sub-scanning direction pixel number; 3. The image deformation circuit according to claim 2, wherein
画像メモリに記憶した入力画像データに対して所定の画像変形処理を行って出力画像データを形成する画像変形回路のための画像変形方法であって、
上記画像変形回路は、上記出力画像データを複数の出力画像エリアに分割し、上記各出力画像エリアを形成するために必要な入力画像データの一部を参照画像データとして読み出して画像メモリに書き込み、出力画像エリア単位で画像変形処理を行い、
上記画像変形方法は、
上記各出力画像エリアに対応した参照画像データを画像メモリから読み出すための制御情報から、参照画像データの入力画像データ全体における参照画像の副走査方向画素数を算出するステップと、
第1の比較回路が、上記算出された参照画像の副走査方向画素数を、上記入力画像データを上記画像メモリに対して書き込み済みのライト済み副走査方向画素数と比較するステップと、
上記参照画像の副走査方向画素数が上記ライト済み副走査方向画素数よりも大きいと判断されたとき、上記画像メモリへの参照画像のリード要求信号をネゲートするためのペンディング信号をアクティブにするステップとを含むことを特徴とする画像変形方法。
An image deformation method for an image deformation circuit for performing predetermined image deformation processing on input image data stored in an image memory to form output image data,
The image transformation circuit divides the output image data into a plurality of output image areas, reads a part of the input image data necessary to form each output image area as reference image data, writes the image data in an image memory, Perform image transformation processing in units of output image areas,
The above image transformation method is
Calculating the number of pixels in the sub-scanning direction of the reference image in the entire input image data of the reference image data from the control information for reading the reference image data corresponding to each output image area from the image memory;
A first comparison circuit comparing the calculated number of pixels in the sub-scanning direction of the reference image with the number of pixels in the written sub-scanning direction in which the input image data has been written to the image memory;
A step of activating a pending signal for negating a read request signal for a reference image to the image memory when it is determined that the number of pixels in the sub-scanning direction of the reference image is larger than the number of pixels in the written sub-scanning direction An image transformation method characterized by comprising:
第2の比較回路が、入力画像データ全体の副走査方向画素数を、上記ライト済み副走査方向画素数と比較するステップと、
上記ライト済み副走査方向画素数が、上記入力画像データ全体の副走査方向画素数以上であると判断されたとき、上記ペンディング信号を非アクティブにするステップとをさらに含むことを特徴とする請求項5記載の画像変形方法。
A second comparison circuit comparing the number of pixels in the sub-scanning direction of the entire input image data with the number of pixels in the written sub-scanning direction;
And a step of deactivating the pending signal when it is determined that the number of pixels in the written sub-scanning direction is equal to or greater than the number of pixels in the sub-scanning direction of the entire input image data. 6. The image deformation method according to 5.
上記画像変形処理後の画像データを上記画像メモリに書き込むときの、上記各出力画像エリアの書き込み先の先頭アドレスを次式により決定し、
各出力画像エリアのライト先の先頭アドレス
=(補正後画像データ全体のオフセットアドレス)
+(出力画像エリアの主走査画素数)×(現エリア数−1)
+(出力画像エリアの画素数)×(現エリア数/出力画像データにおける主走査方向のエリア数)
上記決定された各出力画像エリアの書き込み先の先頭アドレスを用いて上記画像変形処理後の画像データを上記画像メモリに書き込むステップをさらに含むことを特徴とする請求項5又は6記載の画像変形方法。
When writing the image data after the image transformation process to the image memory, the start address of the write destination of each output image area is determined by the following equation:
Start address of the write destination of each output image area = (offset address of the entire corrected image data)
+ (Number of main scanning pixels of output image area) x (number of current areas -1)
+ (Number of pixels in the output image area) x (current area number / number of areas in the main scanning direction in the output image data)
7. The image transformation method according to claim 5, further comprising a step of writing the image data after the image transformation process into the image memory using the determined start address of each output image area. .
上記入力画像データを画像メモリに書き込み済みのライト済み副走査方向画素数を複数格納するステップと、
上記格納された複数のライト済み副走査方向画素数のうちの最小値を選択して上記ライト済み副走査方向画素数として、上記第1及び第2の比較回路に出力するステップとをさらに含むことを特徴とする請求項記載の画像変形方法。
Storing a plurality of written sub-scanning direction pixel numbers in which the input image data has been written to the image memory;
A step of selecting a minimum value from the stored plurality of written sub-scanning direction pixel numbers and outputting the selected value as the written sub-scanning direction pixel number to the first and second comparison circuits. The image transformation method according to claim 6 .
請求項1〜4のうちのいずれか1つに記載の画像変形回路を備えたことを特徴とする電子機器。   An electronic apparatus comprising the image deformation circuit according to claim 1.
JP2013237738A 2013-11-18 2013-11-18 Image processing apparatus and method, and electronic apparatus Expired - Fee Related JP6295619B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013237738A JP6295619B2 (en) 2013-11-18 2013-11-18 Image processing apparatus and method, and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013237738A JP6295619B2 (en) 2013-11-18 2013-11-18 Image processing apparatus and method, and electronic apparatus

Publications (2)

Publication Number Publication Date
JP2015099959A JP2015099959A (en) 2015-05-28
JP6295619B2 true JP6295619B2 (en) 2018-03-20

Family

ID=53376350

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013237738A Expired - Fee Related JP6295619B2 (en) 2013-11-18 2013-11-18 Image processing apparatus and method, and electronic apparatus

Country Status (1)

Country Link
JP (1) JP6295619B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018005389A (en) * 2016-06-29 2018-01-11 株式会社リコー Image deformation circuit, image processing apparatus, and image deformation method
JP6828604B2 (en) * 2017-06-12 2021-02-10 株式会社リコー Image processing equipment, image processing methods and programs

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009164674A (en) * 2007-12-28 2009-07-23 Akuseru:Kk Distortion correction device
JP2009003953A (en) * 2008-08-04 2009-01-08 Olympus Corp Image processor
JP5443844B2 (en) * 2009-06-17 2014-03-19 オリンパス株式会社 Image processing apparatus and imaging apparatus

Also Published As

Publication number Publication date
JP2015099959A (en) 2015-05-28

Similar Documents

Publication Publication Date Title
US8904069B2 (en) Data processing apparatus and image processing apparatus
US8724923B2 (en) Image processing apparatus and image processing method for correcting distorted image data
US8823842B2 (en) Image processing device
JP5154361B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
US10713757B2 (en) Image processing apparatus, control method thereof, and storage medium
JP7170478B2 (en) Image processing device, image processing method and image processing program
JP6295619B2 (en) Image processing apparatus and method, and electronic apparatus
US8412003B2 (en) Image processing methods, apparatus and computer program products using interdependent pixel interpolation operations
JP2010176547A (en) Controller included in image processor, control method and control processing program
WO2023070862A1 (en) Method and apparatus for correcting image distortion of wide-angle lens, and photographing device
WO2015098721A1 (en) Image processing device, image processing method, image processing program, and imaging device
JP6273881B2 (en) Image processing apparatus, image processing method, and program
US10529062B2 (en) Image processing device
JP6467940B2 (en) Image processing apparatus, image processing method, and program
JP2017017609A (en) Image processing device
US20150235349A1 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP6524644B2 (en) Image processing apparatus and electronic device
JP6440465B2 (en) Image processing apparatus, image processing method, and program
JP6273764B2 (en) Image processing device
US20160156852A1 (en) Image processing apparatus, electronic apparatus, and image processing method
JP2017228849A (en) Image processing apparatus, imaging device, control method and program
JP2017017672A (en) Image processing device, image processing method and image processing program
JP5278497B2 (en) Image processing apparatus and image processing method
JP2013126130A (en) Image processing system, image processing method, and image processing program
JP2006140558A (en) Image processor and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170629

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170704

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170831

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171205

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180105

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180205

R151 Written notification of patent or utility model registration

Ref document number: 6295619

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees