JP2011182040A - Method of compressing data for image processing, and compressor and imaging apparatus including the same - Google Patents

Method of compressing data for image processing, and compressor and imaging apparatus including the same Download PDF

Info

Publication number
JP2011182040A
JP2011182040A JP2010041921A JP2010041921A JP2011182040A JP 2011182040 A JP2011182040 A JP 2011182040A JP 2010041921 A JP2010041921 A JP 2010041921A JP 2010041921 A JP2010041921 A JP 2010041921A JP 2011182040 A JP2011182040 A JP 2011182040A
Authority
JP
Japan
Prior art keywords
data
image
lookup
coordinate
image processing
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.)
Granted
Application number
JP2010041921A
Other languages
Japanese (ja)
Other versions
JP5521641B2 (en
Inventor
Takeshi Maruyama
剛 丸山
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 JP2010041921A priority Critical patent/JP5521641B2/en
Publication of JP2011182040A publication Critical patent/JP2011182040A/en
Application granted granted Critical
Publication of JP5521641B2 publication Critical patent/JP5521641B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To achieve sampling equal to that of a prior art by reducing a capacity of data for image processing through compression and decompression of the data for use. <P>SOLUTION: When an image deformation unit 7 outputs X-coordinates data and Y-coordinates data that are criteria for determining addresses read from an image buffer unit 4 by a raster image generation unit 5 in synchronization with a vertical synchronization signal and a horizontal synchronization signal, the image deformation unit 7 reads data recorded in a lookup table 8 and performs linear interpolation to the read vertex data, thus determining correspondence between a sensor image of the image buffer unit 4 and an output image at a pixel level. In the vertex data of the lookup table 8 used for the determination, a differential value in a horizontal direction of the vertex data, and a differential value in a vertical direction are calculated each, and lookup data compressed by calculating a difference are stored. The stored lookup data are decompressed and used, and a sampling having an interval narrower than before regardless of the same data capacity, is then achieved to improve an appearance quality of an image. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像処理を行うスチルカメラやビデオカメラ等の装置に用いられる画像処理用データに係り、特に、そのデータの圧縮方法および圧縮装置、これを備えた撮像装置に関するものである。   The present invention relates to image processing data used in devices such as a still camera and a video camera that perform image processing, and more particularly to a compression method and a compression device for the data, and an imaging device including the data compression method.

従来、車載カメラなどのカメラシステムにおいて、撮影された画像について、歪補正や回転補正や見下ろし補正やその他、必要な画像変形処理を行う場合、処理の高速化のために、画像処理用データとして予め入出力画素の座標値の対応を記憶したルックアップテーブルを用いることが行われている。   Conventionally, in a camera system such as an in-vehicle camera, when image correction is performed on a captured image, such as distortion correction, rotation correction, look-down correction, and other necessary image transformation processing, as image processing data in advance for speeding up the processing A lookup table that stores the correspondence between the coordinate values of input and output pixels is used.

そして、特許文献1には、撮像レンズを介して得られた撮像データにおける、撮像レンズに起因する画像歪みの補正、あおりもしくは俯瞰による像倒れの補正、視点変更、鏡像反転、電子ズーム処理のうちの少なくとも1つを実施した出力画像データを得る画像処理方法として、出力画像データにおける、水平走査方向(X方向)に整数a毎の、垂直走査方向(Y方向)に整数b毎のアドレスに対応する撮像データのアドレスを記憶させたルックアップテーブルを予め用意し、出力画像データのアドレスに対応する撮像データのアドレスをルックアップテーブル上に存在しない場合は第1の補間処理で算出し、この算出した撮像データアドレスまたはルックアップテーブル上の撮像データアドレスを用い、撮像データから、出力画像データのアドレスに対応する画像データを第2の補間処理によって生成して、出力画像データとすることが記載されている。   Patent Document 1 discloses correction of image distortion caused by the imaging lens, correction of image tilt due to tilting or overhead view, viewpoint change, mirror image inversion, and electronic zoom processing in imaging data obtained through the imaging lens. As an image processing method for obtaining output image data in which at least one of the above is performed, the output image data corresponds to addresses every integer a in the horizontal scanning direction (X direction) and every integer b in the vertical scanning direction (Y direction). A lookup table storing the address of the imaging data to be stored is prepared in advance, and if the address of the imaging data corresponding to the address of the output image data does not exist on the lookup table, it is calculated by the first interpolation process. The captured image data address or the image data address on the lookup table is used to calculate the output image data from the image data. Image data corresponding to the address generated by the second interpolation processing, it is described that the output image data.

また、特許文献2には、歪みを持った画像を補正し記憶手段に保存するデータ量を削減するため、各サンプリング点のデータ量を出力画像と入力画像との座標データの差分値を用いて圧縮し、この圧縮したデータを解凍することが記載されている。   Further, in Patent Document 2, in order to correct a distorted image and reduce the amount of data stored in the storage unit, the data amount of each sampling point is calculated using the difference value of the coordinate data between the output image and the input image. It describes compression and decompression of the compressed data.

特許文献1のように、撮像データのアドレスを記憶させたルックアップテーブルを用いて線形補間を行う画像処理は、演算量が非常に少なくて済むことになる。例えば、センサ画像のある部分を拡大して(デジタルズーム)表示したい場合には、図3(a)のセンサ画像に示す7×5個の灰色ドットで示す頂点の画素値をルックアップテーブルに保存しておくとともに、図3(b)に示すような出力画像の対応画素を設定しておく。そして、出力画像の生成時には、対応画素が存在する場合には、センサ画像の画素値そのままの値を、対応画素が存在しない場合は、周囲にある対応画素から線形補間をして算出することでデジタルズームに代表される、複雑な画像処理を小規模な回路で実現している。   As in Patent Document 1, image processing that performs linear interpolation using a lookup table that stores the address of imaged data requires a very small amount of computation. For example, when a certain part of the sensor image is to be enlarged (digital zoom) and displayed, the pixel values of the vertices indicated by 7 × 5 gray dots shown in the sensor image of FIG. 3A are stored in the lookup table. In addition, the corresponding pixels of the output image as shown in FIG. Then, when generating the output image, if there is a corresponding pixel, the value of the pixel value of the sensor image as it is is calculated by performing linear interpolation from the surrounding corresponding pixels if there is no corresponding pixel. Complex image processing represented by digital zoom is realized with a small circuit.

しかしこの手法は、センサ画像に対して拡大・縮小などの線形変換を行うことで出力画像を生成する場合には、誤差なく出力画像を生成することができるが、レンズの歪み補正など非線形な変換を行う場合には、出力画像を生成する際に誤差が生じる。さらに、X方向に整数a毎,Y方向に整数b毎のサンプリング間隔を小さくすればするほど画像の見た目は向上する(図3(a)に示す例では灰色ドットの数を7×5→8×6などにする)が、ルックアップテーブルのサイズが大きくなってしまうので、サンプリング間隔を小さくすることには、データ容量の面から限界がある。具体的には、サンプル数を倍にするとデータ容量は倍になるという課題がある。   However, this method can generate an output image without error when the output image is generated by performing linear conversion such as enlargement / reduction on the sensor image, but nonlinear conversion such as lens distortion correction is possible. When performing the above, an error occurs when generating the output image. Furthermore, the smaller the sampling interval for each integer a in the X direction and every integer b in the Y direction, the better the appearance of the image (in the example shown in FIG. 3A, the number of gray dots is 7 × 5 → 8). However, since the size of the lookup table becomes large, there is a limit in reducing the sampling interval in terms of data capacity. Specifically, there is a problem that when the number of samples is doubled, the data capacity is doubled.

また、最近の撮像素子は、画素数が非常に多くなっており、それに対応してルックアップテーブルの必要な記憶容量も増加の傾向にある。しかも、ルックアップテーブルは、画像変形処理毎に用意する必要があり、多種多様の画像変形処理が要求されており、ルックアップテーブルの規模増大、コスト高となっている。   Also, recent image sensors have a very large number of pixels, and the storage capacity required for the look-up table tends to increase correspondingly. In addition, it is necessary to prepare a look-up table for each image deformation process, and a wide variety of image deformation processes are required, which increases the scale and cost of the look-up table.

また、特許文献2に記載のものは、単に歪み補正を行う場合には有用であると考えられるが、車載カメラなどのように、ノーマルビュー、ハイアングルビューなど、歪み補正だけでなく、より多彩な画像変形を行う場合には、好適ではない。   Moreover, although what is described in Patent Document 2 is considered to be useful when simply performing distortion correction, a normal view, a high angle view, and the like such as an in-vehicle camera are not limited to distortion correction, but more various. This is not suitable for performing various image deformations.

本発明は、前記従来技術の課題を解決するものであり、データ記憶手段(ルックアップテーブル)に記憶する画像処理用データ(ルックアップデータ)を圧縮し、これを解凍したルックアップデータを用いることによって、同じデータ容量であっても従来よりも間隔の狭いサンプリングを実現することができ、画像の見た目を向上させることが可能となる、画像処理用データの圧縮方法および圧縮装置とこれを備えた撮像装置を提供することを目的とする。   The present invention solves the above-described problems of the prior art, by compressing image processing data (lookup data) stored in a data storage means (lookup table) and using the lookup data obtained by decompressing the data. Image processing data compression method and compression apparatus, and image pickup apparatus including the same, which can realize sampling with a narrower interval than the prior art even with the same data capacity and can improve the appearance of the image The purpose is to provide.

前記の目的を達成するために、本発明に係る請求項1に記載した画像処理用データの圧縮方法は、撮像データの水平走査方向(X方向)に整数a毎のアドレス、および垂直走査方向(Y方向)に整数b毎のアドレスに対応する撮像データのアドレスを記憶させたルックアップテーブルを予め用意し、ルックアップテーブルを参照し、複数の座標データにより補間処理を行う際に用いられるルックアップデータに関する圧縮方法であって、ルックアップデータのX方向の座標データに関しては、水平走査方向で座標データの差分をとって圧縮して記憶し、Y方向の座標データに関しては、垂直走査方向で座標データの差分をとって圧縮して記憶したことを特徴とする。   In order to achieve the above object, according to a first aspect of the present invention, there is provided a method for compressing image processing data, the address for each integer a in the horizontal scanning direction (X direction) of the imaging data, and the vertical scanning direction ( Lookup table in which the address of the imaging data corresponding to the address of each integer b is stored in advance in the Y direction), and the lookup data used when performing interpolation processing with a plurality of coordinate data with reference to the lookup table For the coordinate data in the X direction of the lookup data, the difference between the coordinate data in the horizontal scanning direction is compressed and stored, and the coordinate data in the Y direction is stored in the vertical scanning direction. It is characterized in that the difference is taken and compressed and stored.

この方法により、ルックアップテーブルに蓄えておくべきデータ量を削減することができる。   This method can reduce the amount of data to be stored in the lookup table.

また、請求項2,3に記載した発明は、請求項1記載の画像処理用データの圧縮方法であって、ルックアップデータのX方向の差分dが全てd≧0(または、全てd≦0)であること、さらに、ルックアップデータのY方向の差分dが全てd≧0(または、全てd≦0)であることを特徴とする。   The invention described in claims 2 and 3 is the image processing data compression method according to claim 1, wherein all the differences d in the X direction of the look-up data are d ≧ 0 (or all d ≦ 0). Furthermore, the difference d in the Y direction of the lookup data is all d ≧ 0 (or all d ≦ 0).

この方法により、符号ビットが一定である場合に、差分により圧縮した後の各データにおいて、符号ビット分を減少して、さらにデータ量の削減をすることができる。   According to this method, when the sign bit is constant, the data amount can be further reduced by reducing the sign bit in each data after being compressed by the difference.

また、請求項4に記載した発明は、請求項1〜3のいずれか1項記載の画像処理用データの圧縮方法であって、ルックアップデータが画像の回転変換量も同時に記憶したことを特徴とする。   According to a fourth aspect of the present invention, there is provided the image processing data compression method according to any one of the first to third aspects, wherein the lookup data stores the rotational conversion amount of the image at the same time. To do.

この方法により、車載カメラなどでサイドミラー上に鉛直下向きに設置したときに生じる、天地の方向が人間の意識と一致しないような場合に画像を回転させた変形処理もできる。   By this method, it is possible to perform a deformation process in which an image is rotated when the top-to-bottom direction does not coincide with human consciousness, which occurs when the vehicle is installed vertically on a side mirror with an in-vehicle camera or the like.

また、請求項5〜8に記載の画像処理用データの圧縮装置は、前述した請求項1〜4の圧縮方法とカテゴリーが異なっているのみであり、また請求項9〜12に記載の撮像装置は、請求項1〜4の圧縮方法が適用された請求項5〜8の圧縮装置を備えたものであって、前述しました同様の構成、作用であることから、その説明は省略する。   Further, the image processing data compression apparatus according to any one of claims 5 to 8 is different only in category from the compression method according to claims 1 to 4 described above, and the imaging apparatus according to any one of claims 9 to 12. Is provided with the compression device according to claims 5 to 8 to which the compression method according to claims 1 to 4 is applied, and since it has the same configuration and operation as described above, its description is omitted.

本発明によれば、ルックアップテーブルに蓄えておくべきルックアップデータのデータ量を削減することができ、さらに、符号ビットが一定であるとき、圧縮後の差分データの符号ビット分を減少させて、データ量の削減が可能となり、また、車載カメラなどの設置位置よって天地の方向が人間の意識と一致しない場合であっても、画像を回転変形することで一致させることもできるという効果を奏する。   According to the present invention, it is possible to reduce the amount of lookup data to be stored in the lookup table, and further, when the sign bit is constant, the code bit of the differential data after compression is reduced, The amount of data can be reduced, and even if the direction of the top and bottom does not match the human consciousness due to the installation position of the vehicle-mounted camera or the like, it is possible to match the images by rotating and deforming the images.

本発明の実施形態における画像処理用データの圧縮方法を適用した圧縮装置を備えた撮像装置の概略構成を示すブロック図1 is a block diagram illustrating a schematic configuration of an imaging apparatus including a compression apparatus to which an image processing data compression method according to an embodiment of the present invention is applied. 本実施形態における出力画像で640×480の画像サイズを160×120の16ブロックに分割し頂点番号を記した図The figure which divided | segmented the image size of 640x480 into 16 blocks of 160x120 in the output image in this embodiment, and described the vertex number 本実施形態におけるセンサ画像(a)を単に切り出して拡大した出力画像(b)を示す図The figure which shows the output image (b) which only cut out and expanded the sensor image (a) in this embodiment 本実施形態におけるセンサ画像(a)に歪み補正を行って切り出して拡大した出力画像(b)を示す図The figure which shows the output image (b) which cut and enlarged by performing distortion correction to the sensor image (a) in this embodiment 本実施形態における車載カメラのノーマルビュー(a)のセンサ画像と出力画像、ハイアングルビュー(b)のセンサ画像と出力画像を示す図The figure which shows the sensor image and output image of the normal view (a) of a vehicle-mounted camera in this embodiment, and the sensor image and output image of a high angle view (b). 本実施形態におけるセンサ画像(a)に回転変換を施した出力画像(b)を示す図The figure which shows the output image (b) which performed rotation conversion to the sensor image (a) in this embodiment 本実施形態におけるデータ圧縮に係る処理方法のフローチャートFlowchart of processing method related to data compression in this embodiment 本実施形態におけるセンサ画像(a)により生成したPicture by Pictureの出力画像(b)を示す図The figure which shows the output image (b) of Picture by Picture produced | generated by the sensor image (a) in this embodiment

以下、図面を参照して本発明における実施の形態を詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は本発明の実施形態における画像処理用データの圧縮方法を適用した圧縮装置を備えた撮像装置の概略構成を示すブロック図である。図1に示す撮像装置は、他に制御部、操作部、画像記憶部、画像表示部などを備えているが記載を省略している。   FIG. 1 is a block diagram showing a schematic configuration of an imaging apparatus including a compression apparatus to which an image processing data compression method according to an embodiment of the present invention is applied. The imaging apparatus shown in FIG. 1 includes a control unit, an operation unit, an image storage unit, an image display unit, and the like, but the description is omitted.

図1において、撮像素子1は、撮像された光学像を電気信号(画素データ)に変換するための、例えばCCDやCMOSセンサ等で構成される。この撮像素子1にはベイヤー配列の色フィルタが設けられており、ベイヤー配列のRGB画素データが順次出力される。   In FIG. 1, an image sensor 1 is constituted by, for example, a CCD or a CMOS sensor for converting a captured optical image into an electric signal (pixel data). The image sensor 1 is provided with a Bayer array color filter, and the Bayer array RGB pixel data is sequentially output.

A/D変換部2は、撮像素子1から出力されたアナログ信号としてのベイヤー配列のRGB画素データをデジタル信号に変換してベイヤー補間部3に送出する。本実施形態では、デジタル信号は、RGBそれぞれ8ビットで構成されるものとする。また、一般にA/D変換部2の前段にはAGC回路が設けられるが、ここでは記載を省略する。   The A / D converter 2 converts the RGB pixel data of the Bayer array as an analog signal output from the image sensor 1 into a digital signal and sends the digital signal to the Bayer interpolation unit 3. In this embodiment, the digital signal is assumed to be composed of 8 bits for each of RGB. In general, an AGC circuit is provided in the previous stage of the A / D converter 2, but the description thereof is omitted here.

ベイヤー補間部3は、デジタル信号に変換されたベイヤー配列のRGB画素データを入力して、RGB各色独立に、全座標位置の画素データを線形補間によって生成し、画像バッファ部4に送られる。   The Bayer interpolation unit 3 receives the RGB pixel data of the Bayer array converted into a digital signal, generates pixel data of all coordinate positions by linear interpolation independently for each RGB color, and sends the pixel data to the image buffer unit 4.

画像バッファ部4は、ベイヤー補間部3から送られてきた画像データ(センサ画像)を一定時間保管する。   The image buffer unit 4 stores the image data (sensor image) sent from the Bayer interpolation unit 3 for a predetermined time.

ラスター画像生成部5は、画像変形部7から受信したX座標およびY座標に基づいてアドレス値を算出し、画像バッファ部4から画素データを獲得する。すなわち、ラスター画像生成部5は、画像バッファ部4に蓄積されているセンサ画像と、出力画像との対応関係を画像レベルで決定する働きを担う。   The raster image generation unit 5 calculates an address value based on the X coordinate and the Y coordinate received from the image deformation unit 7 and acquires pixel data from the image buffer unit 4. That is, the raster image generation unit 5 has a function of determining the correspondence between the sensor image stored in the image buffer unit 4 and the output image at the image level.

D/A変換部6は、デジタル信号をアナログ信号に変換し、外部ディスプレイなどにNTSCなどの信号を送信する。   The D / A converter 6 converts the digital signal into an analog signal and transmits a signal such as NTSC to an external display or the like.

画像変形部7は、ラスター画像生成部5が画像バッファ部4から読み取るアドレスを決定する基となる、X座標データ、Y座標データを垂直同期信号および水平同期信号と同期させて出力する。その際に画像変形部7は、データ記憶手段のルックアップテーブル8に記録されているデータを読み込み、読み込んだ頂点データに対して線形補間を行うことで、画像バッファ部4に蓄積されているセンサ画像と、出力画像との対応関係を画素レベルで決定する働きを担う。   The image transformation unit 7 outputs X coordinate data and Y coordinate data, which are a basis for determining an address read by the raster image generation unit 5 from the image buffer unit 4, in synchronization with the vertical synchronization signal and the horizontal synchronization signal. At that time, the image transformation unit 7 reads the data recorded in the lookup table 8 of the data storage means, and performs linear interpolation on the read vertex data, so that the sensor stored in the image buffer unit 4 It is responsible for determining the correspondence between the image and the output image at the pixel level.

例えば図2のように、出力するサイズが640×480の画像をサイズが160×120の16個のブロックに分割し、各ブロックの4隅の座標データをルックアップテーブル8から読み込み、線形補間を行うことで、ブロック内部の座標データを生成する。この線形補間の方法に関しては、前述した特許文献1に記載されている画像生成方法等を用いることによって実際の画像を得ることができる。   For example, as shown in FIG. 2, an output image having a size of 640 × 480 is divided into 16 blocks having a size of 160 × 120, and the coordinate data of the four corners of each block is read from the lookup table 8 to perform linear interpolation. By doing so, the coordinate data inside the block is generated. With respect to this linear interpolation method, an actual image can be obtained by using the image generation method described in Patent Document 1 described above.

本発明は、ルックアップテーブル8に記憶する画像処理用データ(ルックアップデータ)の圧縮方法に関する発明であり、以下に、このルックアップテーブル8を用いて画像処理した例を示す。   The present invention relates to a method for compressing image processing data (lookup data) stored in the lookup table 8, and an example of image processing using the lookup table 8 will be described below.

図3は、図3(a)のセンサ画像を単に切り出して拡大し、図3(b)の出力画像とする場合の例であり、図4は、図4(a)のセンサ画像において、歪み補正を行ったうえでセンサ画像を切り出して拡大し、図4(b)の出力画像とする場合の例である。レンズ歪みは、画像中心に対して対象系で発生するので、歪み補正を行う場合は、図4(a)のセンサ画像におけるサンプル頂点が曲線を描くことになる。前述した図2は、図3(b),図4(b)の出力画像に頂点番号を記したものを示している。   FIG. 3 is an example in which the sensor image in FIG. 3A is simply cut out and enlarged to obtain the output image in FIG. 3B. FIG. 4 shows a distortion in the sensor image in FIG. This is an example in the case where the sensor image is cut out and enlarged after correction to obtain the output image of FIG. Since lens distortion occurs in the target system with respect to the center of the image, when performing distortion correction, the sample vertex in the sensor image of FIG. 4A draws a curve. FIG. 2 described above shows the output images shown in FIGS. 3B and 4B with vertex numbers.

図2に示した各頂点におけるX方向の座標データに関して、(数1)   Regarding the coordinate data in the X direction at each vertex shown in FIG.

Figure 2011182040
Figure 2011182040

が成り立つ。すなわち、X座標データに関しては水平方向に(数1)の関係が成り立つ。 Holds. That is, with respect to the X coordinate data, the relationship of (Equation 1) is established in the horizontal direction.

また、Y方向の座標データに関して、(数2)   Regarding the coordinate data in the Y direction, (Equation 2)

Figure 2011182040
Figure 2011182040

が成り立つ。すなわち、Y座標データに関しては垂直方向に(数2)の関係が成り立つ。 Holds. That is, with respect to the Y coordinate data, the relationship of (Equation 2) is established in the vertical direction.

これらの関係は、図3,図4の例に限ったものではなく、一般のノーマルビュー、ハイアングルビューにも成立する関係である(図5(a),(b)参照)。車載カメラは、魚眼レンズという複雑なレンズ系使用していること、また多様な画像変形を行っていることから煩雑な画像変形を必要とするが、人間が視認用に利用する目的から、手前が画像の下側、遠方が画像の上側となるように変形すると見やすい。また、魚眼レンズで撮影した画像は一般には、天が上側および地が下側になるように設置することから、車載カメラの画像変形においては、前述の(数1)、(数2)が成立するケースがほとんどである。   These relationships are not limited to the examples shown in FIGS. 3 and 4, but also hold in a normal normal view and a high angle view (see FIGS. 5A and 5B). The in-vehicle camera requires complicated image deformation because it uses a complex lens system called a fisheye lens, and various image deformations are performed. It is easy to see if it is deformed so that the lower side and the far side are the upper side of the image. In addition, since an image photographed with a fisheye lens is generally installed so that the sky is on the upper side and the ground is on the lower side, the above-described (Equation 1) and (Equation 2) are established in the image deformation of the in-vehicle camera. Most cases.

また、車載カメラをサイドミラーに設置して鉛直下向きに撮影を行うような場合でも、撮影画像に回転変換を施すことのみで、(数1)、(数2)を満たすような画像変形に帰着することができる(図6(a),(b))。   In addition, even when an in-vehicle camera is installed on the side mirror and the image is taken vertically downward, the image transformation that satisfies (Equation 1) and (Equation 2) can be achieved only by rotating the captured image. (FIGS. 6A and 6B).

(数1)、(数2)が成立する場合に、差分データを使って圧縮を行うと、符号データが不要となるため、各差分データのビット数に関して、1ビット分を圧縮することができる。   When (Equation 1) and (Equation 2) hold, if compression is performed using difference data, code data becomes unnecessary, and therefore one bit can be compressed with respect to the number of bits of each difference data. .

次に、本実施形態におけるデータ圧縮に係る処理方法について、図7のフローチャートを用いて説明する。   Next, a processing method related to data compression in the present embodiment will be described with reference to the flowchart of FIG.

座標位置を決定する(S1)。図2に示すように、25個の頂点に対応するセンサ画像における座標系の座標V1(x1、y1),V2(x2、y2),…V25(x25、y25)を決定する。単純に得られたセンサ画像を拡大したいだけであれば、図3(a),(b)各頂点を対応させれば良い。なお、対応付けは手動で行っても良いし、自動で行っても良い。   A coordinate position is determined (S1). As shown in FIG. 2, coordinates V1 (x1, y1), V2 (x2, y2),... V25 (x25, y25) of the coordinate system in the sensor image corresponding to the 25 vertices are determined. If it is only desired to enlarge the obtained sensor image, the vertices shown in FIGS. 3A and 3B may be associated with each other. The association may be performed manually or automatically.

回転角の算出を行う(S2)。これは前述した(数1)および(数2)を満たす回転角αを算出するためのものである。回転角αの2次元回転行列をRとし、処理S1の座標位置の決定にて算出された、座標V1〜V25に回転変換Rを施した頂点の座標V1’(x1’,y1’)〜V25’(x25’,y25’)を考える。   The rotation angle is calculated (S2). This is for calculating the rotation angle α satisfying the above-described (Equation 1) and (Equation 2). The coordinate V1 ′ (x1 ′, y1 ′) to V25 of the vertices obtained by performing the rotation transformation R on the coordinates V1 to V25 calculated by determining the coordinate position in the process S1, where R is the two-dimensional rotation matrix of the rotation angle α. Consider '(x25', y25 ').

このとき、以下の(数3)を満たす回転角αを探索する。(数3)を満たす回転角αは一般には一意には決定しないが、ある回転角αを決定できれば十分である。ただし、回転角α=0のとき、(数3)が成立するのであれば回転角α=0とするのが好ましい。   At this time, the rotation angle α satisfying the following (Equation 3) is searched. In general, the rotation angle α satisfying (Equation 3) is not uniquely determined, but it is sufficient if a certain rotation angle α can be determined. However, when (Equation 3) holds when the rotation angle α = 0, it is preferable to set the rotation angle α = 0.

Figure 2011182040
Figure 2011182040

なお、データを解凍する際には、逆回転変換(回転角−α)を施すことになる。 When decompressing the data, reverse rotation conversion (rotation angle -α) is performed.

差分データの算出を行う(S3)。処理S2の回転角の算出により決定した「x1’〜x25’」,「y1’〜y25’」を用いて差分値を計算する。
「x1’〜x25’」に関しては水平方向に差分をとり、以下の(数4)のように20個の差分情報を獲得する。
Difference data is calculated (S3). The difference value is calculated using “x1 ′ to x25 ′” and “y1 ′ to y25 ′” determined by calculating the rotation angle in the process S2.
With respect to “x1 ′ to x25 ′”, a difference is taken in the horizontal direction, and 20 pieces of difference information are acquired as in the following (Equation 4).

Figure 2011182040
Figure 2011182040

また、「y1’〜y25’」に関しては垂直方向に差分をとり、以下の(数5)のように20個の差分情報を獲得する。   Further, regarding “y1 ′ to y25 ′”, a difference is taken in the vertical direction, and 20 pieces of difference information are acquired as shown in the following (Equation 5).

Figure 2011182040
Figure 2011182040

これにより、X座標の水平差分値、Y座標の垂直差分値の各値を算出する。 Thereby, each value of the horizontal difference value of the X coordinate and the vertical difference value of the Y coordinate is calculated.

圧縮データの生成を行う(S4)。まず、図2に示す例では、開始ブロック番号(=1)、X方向ブロック数(=4)、Y方向ブロック数(=4)、回転角α、水平方向のX座標の開始点(x1’,x6’,x11’,x16’,x21’の各座標)、垂直方向のY座標の開始点(y1’,y2’,y3’,y4’,y5’の各座標)、X座標の差分値(dx1〜dx20)、Y座標の差分値(dy1〜dy20)の各値を1つのデータとして、SPI(Serial parallel Interface)などの記憶装置に書き込む。   The compressed data is generated (S4). First, in the example shown in FIG. 2, the start block number (= 1), the number of X direction blocks (= 4), the number of Y direction blocks (= 4), the rotation angle α, and the start point of the horizontal X coordinate (x1 ′) , X6 ′, x11 ′, x16 ′, x21 ′), the start point of the Y coordinate in the vertical direction (each coordinate of y1 ′, y2 ′, y3 ′, y4 ′, y5 ′), the difference value of the X coordinate Each value of (dx1 to dx20) and Y coordinate difference values (dy1 to dy20) is written as one data in a storage device such as SPI (Serial parallel Interface).

ここで開始ブロック番号とは、出力画像中(図2参照)のブロックのうちの左上に位置するブロックの番号を表し、X方向ブロック数は出力画像中の水平方向のブロック数、Y方向ブロック数は出力画像中の垂直方向のブロック数を表している。   Here, the start block number represents the number of the block located at the upper left of the blocks in the output image (see FIG. 2), and the number of X-direction blocks represents the number of horizontal blocks and the number of Y-direction blocks in the output image. Represents the number of blocks in the vertical direction in the output image.

さらに、X方向ブロック数、Y方向ブロック数と、水平方向のX座標の開始点の要素数、垂直方向のY座標の開始点の要素数と、X座標の差分値の要素数、Y座標の差分値の要素数との関係は以下
「水平方向のX座標の開始点の要素数=X方向ブロック数+1
垂直方向のY座標の開始点の要素数=Y方向ブロック数+1
X座標の差分値の要素数=(X方向ブロック数+1)×Y方向ブロック数
Y座標の差分値の要素数=(Y方向ブロック数+1)×X方向ブロック数」
のようになる。
Furthermore, the number of X direction blocks, the number of Y direction blocks, the number of elements at the start point of the X coordinate in the horizontal direction, the number of elements at the start point of the Y coordinate in the vertical direction, the number of elements of the difference value of the X coordinate, The relationship between the difference value and the number of elements is as follows: “the number of elements at the start point of the horizontal X coordinate = the number of blocks in the X direction + 1”
Number of elements at start point of Y coordinate in vertical direction = number of blocks in Y direction + 1
Number of elements of X coordinate difference value = (Number of blocks in X direction + 1) × Number of blocks in Y direction Number of elements of difference value in Y coordinate = (Number of blocks in Y direction + 1) × Number of blocks in X direction ”
become that way.

本実施形態では、本発明に関わる圧縮のみを行う方法を示したが、その他のデータ圧縮方法を利用して、さらなる圧縮をかけてもよい。例えば水平方向のX座標の開始点ごとの差分データを計算して、そのデータを記憶してもよいし、垂直方向のY座標の開始点ごとの差分データを計算して、そのデータを記憶してもよい。また、さらなるデータ圧縮処理を加えたものをSPIに書き込んでもよい。しかし、これらの処理を追加した場合には、データを解凍する回路が複雑化する。そのため回路規模とのトレードオフを検討した上で、圧縮方法を決定することが望ましい。   In the present embodiment, the method of performing only the compression related to the present invention is shown, but further compression may be performed using other data compression methods. For example, the difference data for each start point of the horizontal X coordinate may be calculated and stored, or the difference data for each start point of the Y coordinate in the vertical direction may be calculated and stored. May be. In addition, data to which further data compression processing is added may be written in the SPI. However, when these processes are added, a circuit for decompressing data becomes complicated. Therefore, it is desirable to determine the compression method after considering the trade-off with the circuit scale.

また、本実施形態では、1画面の画像を出力する方法を示したが、図8に記載されているような、Picture by Pictureの出力画像を生成することも可能である。そのためには、前述した手順に従って、図8の灰色ドットで記載された領域に関するデータを作成する。次に、黒色ドットで記載された領域に関するデータを作成する。最後に、灰色ドットのデータと黒色ドットのデータを統合してひとつのデータとして扱うことによって、Picture by Pictureを実現できる。同様にPicture in Picture用のデータも作成することができる。   In the present embodiment, a method of outputting an image of one screen has been described. However, a Picture by Picture output image as illustrated in FIG. 8 can be generated. For that purpose, the data regarding the area | region described with the gray dot of FIG. 8 is produced according to the procedure mentioned above. Next, data relating to a region described with black dots is created. Finally, Picture by Picture can be realized by integrating gray dot data and black dot data as a single piece of data. Similarly, data for Picture in Picture can be created.

以上のように、ルックアップテーブル8に記憶する画像処理に用いるルックアップデータを圧縮し、これを解凍して用いることによって、同じデータ容量であっても従来よりも間隔の狭いサンプリングを実現することができ、画像の見た目を向上させることが可能となる。   As described above, by compressing the look-up data used for image processing stored in the look-up table 8 and decompressing and using the same, it is possible to realize sampling with a narrower interval than in the past even with the same data capacity. The appearance of the image can be improved.

本発明に係る画像処理用データの圧縮方法および装置とこれを備えた撮像装置は、ルックアップテーブルに蓄えておくべきルックアップデータのデータ量を削減でき、さらに、符号ビットが一定であるときに符号ビット分を減少させてデータ量の削減を可能とし、また、カメラの設置位置よって天地の方向が人間の意識と一致しないときに画像を回転変形して一致させることもでき、画像処理に有用である。   The image processing data compression method and apparatus according to the present invention and an image pickup apparatus including the same can reduce the amount of lookup data to be stored in the lookup table, and further, when the sign bit is constant The amount of data can be reduced by reducing the amount of bits, and the image can be rotated and deformed to match when the orientation of the top and bottom does not match the human consciousness depending on the installation position of the camera, which is useful for image processing. is there.

1 撮像素子
2 A/D変換部
3 ベイヤー補間部
4 画像バッファ部
5 ラスター画像生成部
6 D/A変換部
7 画像変形部
8 ルックアップテーブル
DESCRIPTION OF SYMBOLS 1 Image pick-up element 2 A / D conversion part 3 Bayer interpolation part 4 Image buffer part 5 Raster image generation part 6 D / A conversion part 7 Image deformation part 8 Look-up table

特開2009−10730号公報JP 2009-10730 A 特許第4144292号公報Japanese Patent No. 4144292

Claims (12)

撮像データの水平走査方向(X方向)に整数a毎のアドレス、および垂直走査方向(Y方向)に整数b毎のアドレスに対応する前記撮像データのアドレスを記憶させたルックアップテーブルを予め用意し、前記ルックアップテーブルを参照し、複数の座標データにより補間処理を行う際に用いられるルックアップデータに関する圧縮方法であって、
前記ルックアップデータのX方向の座標データに関しては、水平走査方向で座標データの差分をとって圧縮して記憶し、Y方向の座標データに関しては、垂直走査方向で座標データの差分をとって圧縮して記憶したことを特徴とする画像処理用データの圧縮方法。
A lookup table is prepared in advance, which stores addresses for each integer a in the horizontal scanning direction (X direction) of the imaging data and addresses of the imaging data corresponding to addresses for each integer b in the vertical scanning direction (Y direction). , Referring to the lookup table, a compression method related to lookup data used when performing interpolation processing with a plurality of coordinate data,
The coordinate data in the X direction of the lookup data is compressed and stored in the horizontal scanning direction, and the coordinate data in the Y direction is compressed and stored in the vertical scanning direction. A method for compressing image processing data, wherein
請求項1記載の画像処理用データの圧縮方法であって、前記ルックアップデータのX方向の差分dが全てd≧0(または、全てd≦0)であることを特徴とする画像処理用データの圧縮方法。   2. The image processing data compression method according to claim 1, wherein all the differences d in the X direction of the lookup data satisfy d ≧ 0 (or all d ≦ 0). Compression method. 請求項1または2記載の画像処理用データの圧縮方法であって、前記ルックアップデータのY方向の差分dが全てd≧0(または、全てd≦0)であることを特徴とする画像処理用データの圧縮方法。   3. The method for compressing image processing data according to claim 1, wherein all the differences d in the Y direction of the lookup data are d ≧ 0 (or all d ≦ 0). The data compression method. 請求項1〜3のいずれか1項記載の画像処理用データの圧縮方法であって、前記ルックアップデータが画像の回転変換量も同時に記憶したことを特徴とする画像処理用データの圧縮方法。   The image processing data compression method according to any one of claims 1 to 3, wherein the look-up data also stores an image rotation conversion amount at the same time. 撮像データの水平走査方向(X方向)に整数a毎のアドレス、および垂直走査方向(Y方向)に整数b毎のアドレスに対応する前記撮像データのアドレスを記憶させたルックアップテーブルを予め用意し、前記ルックアップテーブルを参照し、複数の座標データにより補間処理を行う際に用いられるルックアップデータを処理する圧縮装置において、
前記ルックアップデータのXY方向の座標データに関して、X方向は水平走査方向で座標データの差分をとり圧縮するX座標水平差分値算出手段と、Y方向は垂直走査方向で座標データの差分をとり圧縮するY座標垂直差分値算出手段とを備えたことを特徴とする画像処理用データの圧縮装置。
A lookup table is prepared in advance, which stores addresses for each integer a in the horizontal scanning direction (X direction) of the imaging data and addresses of the imaging data corresponding to addresses for each integer b in the vertical scanning direction (Y direction). , Referring to the look-up table, in the compression device for processing the look-up data used when performing the interpolation process with a plurality of coordinate data,
With respect to the coordinate data in the XY directions of the lookup data, the X direction is the horizontal coordinate in the horizontal scanning direction and X coordinate horizontal difference value calculation means for compressing the coordinate data, and the Y direction is the vertical data in the vertical scanning direction to be compressed. An apparatus for compressing image processing data, comprising: Y-coordinate vertical difference value calculation means.
請求項5記載の画像処理用データの圧縮装置において、前記ルックアップデータのX方向の差分dが全てd≧0(または、全てd≦0)であることを特徴とする画像処理用データの圧縮装置。   6. The apparatus for compressing image processing data according to claim 5, wherein all the differences d in the X direction of the lookup data are d ≧ 0 (or all d ≦ 0). . 請求項5または6記載の画像処理用データの圧縮装置において、前記ルックアップデータのY方向の差分dが全てd≧0(または、全てd≦0)であることを特徴とする画像処理用データの圧縮装置。   7. The image processing data compression apparatus according to claim 5, wherein all the differences d in the Y direction of the lookup data satisfy d ≧ 0 (or all d ≦ 0). Compression device. 請求項5〜7のいずれか1項記載の画像処理用データの圧縮装置において、前記ルックアップデータが画像の回転変換量も同時に記憶したことを特徴とする画像処理用データの圧縮装置。   8. The image processing data compression apparatus according to claim 5, wherein the look-up data also stores an image rotation conversion amount at the same time. 撮像データの水平走査方向(X方向)に整数a毎のアドレス、および垂直走査方向(Y方向)に整数b毎のアドレスに対応する前記撮像データのアドレスを記憶させたルックアップテーブルを予め用意し、前記ルックアップテーブルを参照し、複数の座標データにより補間処理を行う際に用いられるルックアップデータを有する撮像装置であって、
前記ルックアップデータのXY方向の座標データに関して、X方向は水平走査方向で座標データの差分をとり、Y方向は垂直走査方向で座標データの差分をとることで圧縮されたルックアップデータを記憶したルックアップテーブルを備えたことを特徴とする撮像装置。
A lookup table is prepared in advance, which stores addresses for each integer a in the horizontal scanning direction (X direction) of the imaging data and addresses of the imaging data corresponding to addresses for each integer b in the vertical scanning direction (Y direction). , An imaging device having lookup data used when performing interpolation processing with a plurality of coordinate data with reference to the lookup table,
Regarding the coordinate data in the X and Y directions of the lookup data, the X direction takes the difference in the coordinate data in the horizontal scanning direction, and the Y direction takes the difference in the coordinate data in the vertical scanning direction to store the lookup data compressed. An imaging device comprising a table.
請求項9記載の撮像装置において、前記圧縮されたルックアップデータのX方向の差分dが全てd≧0(または、全てd≦0)であることを特徴とする撮像縮装置。   The imaging apparatus according to claim 9, wherein all the differences d in the X direction of the compressed lookup data satisfy d ≧ 0 (or all d ≦ 0). 請求項9または10記載の撮像装置において、前記圧縮されたルックアップデータのY方向の差分dが全てd≧0(または、全てd≦0)であることを特徴とする撮像装置。   11. The imaging apparatus according to claim 9, wherein all the differences d in the Y direction of the compressed lookup data satisfy d ≧ 0 (or all d ≦ 0). 請求項9〜11のいずれか1項記載の撮像装置において、前記圧縮されたルックアップデータが画像の回転変換量も含むことを特徴とする撮像装置。   The imaging apparatus according to claim 9, wherein the compressed lookup data includes an image rotation conversion amount.
JP2010041921A 2010-02-26 2010-02-26 Method and apparatus for compressing image processing data, and image pickup apparatus having the same Active JP5521641B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010041921A JP5521641B2 (en) 2010-02-26 2010-02-26 Method and apparatus for compressing image processing data, and image pickup apparatus having the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010041921A JP5521641B2 (en) 2010-02-26 2010-02-26 Method and apparatus for compressing image processing data, and image pickup apparatus having the same

Publications (2)

Publication Number Publication Date
JP2011182040A true JP2011182040A (en) 2011-09-15
JP5521641B2 JP5521641B2 (en) 2014-06-18

Family

ID=44693126

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010041921A Active JP5521641B2 (en) 2010-02-26 2010-02-26 Method and apparatus for compressing image processing data, and image pickup apparatus having the same

Country Status (1)

Country Link
JP (1) JP5521641B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013219621A (en) * 2012-04-10 2013-10-24 Canon Inc Imaging device and image processing method
JP2014082660A (en) * 2012-10-17 2014-05-08 Dainippon Printing Co Ltd Method and device to compress and expand array data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04220777A (en) * 1990-12-21 1992-08-11 Nec Software Ltd Image common linear transform device
JP2004129212A (en) * 2002-08-02 2004-04-22 Sony Corp Image projection device and image transformation method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04220777A (en) * 1990-12-21 1992-08-11 Nec Software Ltd Image common linear transform device
JP2004129212A (en) * 2002-08-02 2004-04-22 Sony Corp Image projection device and image transformation method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013219621A (en) * 2012-04-10 2013-10-24 Canon Inc Imaging device and image processing method
JP2014082660A (en) * 2012-10-17 2014-05-08 Dainippon Printing Co Ltd Method and device to compress and expand array data

Also Published As

Publication number Publication date
JP5521641B2 (en) 2014-06-18

Similar Documents

Publication Publication Date Title
JP5376313B2 (en) Image processing apparatus and image pickup apparatus
JP4509917B2 (en) Image processing apparatus and camera system
US8036482B2 (en) Image processing apparatus and method, program, and recording medium
US20090073277A1 (en) Image processing apparatus, image processing method and image pickup apparatus
JP6041651B2 (en) Image processing apparatus, image processing method, and program
US8982243B2 (en) Image processing device and image capturing device
KR101009108B1 (en) Image processing apparatus and image processing method
US8462222B2 (en) Image processing method and device, and imaging apparatus using the image processing device
JP5976315B2 (en) Imaging device
JP4608436B2 (en) Image shooting device
WO2005041124A1 (en) Image processing method, image processing device, and program
US10713757B2 (en) Image processing apparatus, control method thereof, and storage medium
JP5585885B2 (en) Image processing apparatus and image processing method
JP5521641B2 (en) Method and apparatus for compressing image processing data, and image pickup apparatus having the same
JP2007189361A (en) Image sensor and camera using the same
JP2001145012A (en) Image distorting correction device
WO2015098721A1 (en) Image processing device, image processing method, image processing program, and imaging device
JP2009060464A (en) Video resolution increasing apparatus and method
JP6440465B2 (en) Image processing apparatus, image processing method, and program
JP2010245682A (en) Image processing device, image processing method, and computer program
JP4769880B2 (en) Image processing apparatus and method
JP3934345B2 (en) Imaging device
JP4305229B2 (en) Image processing apparatus, image projection apparatus, image processing method, and program
JP2008287431A (en) Image distortion correction device
JP2009080724A (en) Image processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121206

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131021

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131029

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131227

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140324

R151 Written notification of patent or utility model registration

Ref document number: 5521641

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151