JP2011061603A - Image processing device, and method for processing image - Google Patents

Image processing device, and method for processing image Download PDF

Info

Publication number
JP2011061603A
JP2011061603A JP2009210554A JP2009210554A JP2011061603A JP 2011061603 A JP2011061603 A JP 2011061603A JP 2009210554 A JP2009210554 A JP 2009210554A JP 2009210554 A JP2009210554 A JP 2009210554A JP 2011061603 A JP2011061603 A JP 2011061603A
Authority
JP
Japan
Prior art keywords
image
image data
address
read
memory
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
JP2009210554A
Other languages
Japanese (ja)
Other versions
JP4865021B2 (en
Inventor
Kenji Kimiyama
健二 君山
Hiroyuki Nishikawa
浩行 西川
Masaomi Yoshikawa
正臣 吉川
Nobutaka Nishimura
信孝 西村
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2009210554A priority Critical patent/JP4865021B2/en
Publication of JP2011061603A publication Critical patent/JP2011061603A/en
Application granted granted Critical
Publication of JP4865021B2 publication Critical patent/JP4865021B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Input (AREA)
  • Storing Facsimile Image Data (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing device which can reduce the number of times of access to an image memory, and to provide a method for processing an image. <P>SOLUTION: A configuration in which an image data processing section 33 that has been mounted in an image processing unit 10 is mounted in an image memory controller 30 and additionally, an address conversion section 32 and a control section 31 are mounted is used. Moreover, by defining a virtual readout address area of an image memory 20, a memory usage can be reduced and the number of times of access to a memory can be reduced. Communication speed can be improved. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像処理装置および画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method.

画像処理装置の入力画像の高解像度化に伴い、画像メモリの容量不足および画像メモリと演算処理部間の画像転送速度が遅いことなどが問題となっている。   As the resolution of the input image of the image processing apparatus increases, there are problems such as insufficient capacity of the image memory and a slow image transfer speed between the image memory and the arithmetic processing unit.

目的の画像処理結果を得る過程では、画像の拡大や縮小、畳み込み演算によるフィルタ等の変換処理を行うことが多い。その処理時には、変換を行う拡大縮小フィルタ処理部とメモリとの間で、大量のデータ転送が必要となる。更に具体的に述べると、画像処理部は画像処理を行う際に、
(1)原画像のデータを画像メモリからから読み出し、
(2)拡大縮小フィルタ部でデータ変換処理を行った後、その変換後のデータを画像メモリに書き込み、
(3)さらに画像メモリから変換後のデータを読み出して、後続する画像演算処理を実行する
という処理工程を経なければならないため、画像メモリの容量、アクセス回数が必然的に増えてしまう。
In the process of obtaining the desired image processing result, conversion processing such as enlargement or reduction of an image or a filter by convolution is often performed. During the processing, a large amount of data transfer is required between the enlargement / reduction filter processing unit that performs conversion and the memory. More specifically, when the image processing unit performs image processing,
(1) Read the original image data from the image memory,
(2) After performing the data conversion process in the enlargement / reduction filter unit, the converted data is written in the image memory,
(3) Further, since the converted data must be read from the image memory and the subsequent image calculation process is executed, the capacity of the image memory and the number of accesses are inevitably increased.

上記問題を解決する従来技術として、アドレス変換による間引きにより、画像データ量を削減する方法がある。画像データ量が少なければ、画像メモリの容量も減少し、画像転送するデータ量も減ることを利用したものである(例えば、特許文献1参照)。   As a conventional technique for solving the above problem, there is a method of reducing the amount of image data by thinning out by address conversion. If the amount of image data is small, the capacity of the image memory is reduced and the amount of data to be transferred is also reduced (see, for example, Patent Document 1).

特開平4−166992号公報JP-A-4-166922

しかしながら、特許文献1の発明では、画像データを単純に間引くため、例えば、画像データを縮小表示する際には、フィルタ処理等を行った画像と比較して画質を劣化させることになる。また、この方式によると画像データの拡大に対応できない。   However, in the invention of Patent Document 1, since the image data is simply thinned out, for example, when the image data is reduced and displayed, the image quality is deteriorated as compared with the image subjected to the filter processing or the like. Further, this method cannot cope with enlargement of image data.

本発明は、上記問題点を解決するためになされたもので、画像メモリのアクセス回数を削減することができる画像処理装置および画像処理方法を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus and an image processing method capable of reducing the number of accesses to an image memory.

上記目的を達成するために、本発明の画像処理装置は、画像データが記憶される画像メモリと、前記画像メモリに書き込まれた前記画像データを読み出す時に、前記画像メモリの実アドレスエリアとは別に設けた仮想的な読み出しアドレスを用いて前記画像メモリをアクセスする手段と、前記仮想的な読み出しアドレスを原画像データアドレスに変換するアドレス変換手段と、前記原画像データアドレスによって前記画像メモリから読み出された原画像データに対し所定の演算を実行して、前記画像データとは異なる画像データを生成して出力する画像データ処理手段と、を有することを特徴とする。   In order to achieve the above object, the image processing apparatus of the present invention separates an image memory in which image data is stored and a real address area of the image memory when reading the image data written in the image memory. Means for accessing the image memory using a provided virtual read address; address conversion means for converting the virtual read address to an original image data address; and reading from the image memory by the original image data address Image data processing means for executing a predetermined calculation on the original image data thus generated and generating and outputting image data different from the image data.

本発明の画像処理装置によれば、従来に比べ少ない回数の画像メモリへのアクセスによって処理後の画像データを読み出すことができる。仮想読み出しアドレスエリアを、画像処理部に定義することにより、画像メモリの使用容量を減らし、画像転送の高速化が図れる。   According to the image processing apparatus of the present invention, the processed image data can be read out by accessing the image memory a smaller number of times compared to the prior art. By defining the virtual read address area in the image processing unit, it is possible to reduce the used capacity of the image memory and increase the speed of image transfer.

本発明の第1の実施形態に係る画像処理装置の構成要素を示すブロック図。1 is a block diagram showing components of an image processing apparatus according to a first embodiment of the present invention. 上記実施形態に係るメモリコントローラ内に定義される仮想読み出しアドレスエリアの動作を示すアドレスマップ。The address map which shows operation | movement of the virtual read address area defined in the memory controller which concerns on the said embodiment. 上記実施形態に係る領域外画素拡張を示す図。FIG. 5 is a diagram showing out-of-region pixel extension according to the embodiment. 上記実施形態に係るブロック単位でデータを読み出す動作を示す図。The figure which shows the operation | movement which reads data per block which concerns on the said embodiment. 上記実施形態に係るブロック単位でデータを読み出す具体例を示す図。The figure which shows the specific example which reads data per block which concerns on the said embodiment.

以下、本発明の実施態様について図面を参照しながら説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の第1の実施形態に係る画像処理装置の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to the first embodiment of the present invention.

図1に示すように、この画像処理装置は、画像処理部10と、画像データを保存する画像メモリ20と、画像処理部(CPU)10と画像メモリ20とを接続する画像メモリコントローラ30から構成される。   As shown in FIG. 1, the image processing apparatus includes an image processing unit 10, an image memory 20 that stores image data, and an image memory controller 30 that connects the image processing unit (CPU) 10 and the image memory 20. Is done.

さらに、画像処理部10は、画像データ処理を行った後の画像データを格納する内部記憶部11(キャッシュメモリ)を持っている。また、画像メモリコントローラ30は、制御部31とアドレス変換部32と画像データ処理部33とを搭載して構成される。なお、内部記憶部11の代わりに、外付けの記憶装置を取り付けても良い。また、制御部31とアドレス変換部32と画像データ処理部33は、別々に構成しても良い。   Further, the image processing unit 10 has an internal storage unit 11 (cache memory) that stores image data after image data processing. The image memory controller 30 includes a control unit 31, an address conversion unit 32, and an image data processing unit 33. Note that an external storage device may be attached instead of the internal storage unit 11. The control unit 31, the address conversion unit 32, and the image data processing unit 33 may be configured separately.

画像処理部10は、画像処理プロセッサで構成される。画像処理部10は、例えば、背景差分方式による物体抽出、ステレオ方式による3次元計測、画像圧縮などの処理を行う。それらの処理を実行するために、画像メモリコントローラ30に対し各種の指令を出して、画像メモリ20をアクセスする。この時、画像処理部10は、画像処理後の仮想アドレスを内部記憶部11に出力し、画像処理された画像データの読み出しができなければ、直ちに画像メモリコントローラ30へ当該仮想アドレスを出力する。   The image processing unit 10 includes an image processing processor. For example, the image processing unit 10 performs processing such as object extraction using a background difference method, three-dimensional measurement using a stereo method, and image compression. In order to execute these processes, various commands are issued to the image memory controller 30 to access the image memory 20. At this time, the image processing unit 10 outputs the virtual address after the image processing to the internal storage unit 11, and immediately outputs the virtual address to the image memory controller 30 if the image processed image data cannot be read.

制御部31は、画像処理部10からの読み出し指令に応答して、画像処理後の仮想アドレスをアドレス変換部32に出力する。また、制御部31は、画像データ処理部33へ画像処理の指令を通知する。   In response to the read command from the image processing unit 10, the control unit 31 outputs the virtual address after the image processing to the address conversion unit 32. Further, the control unit 31 notifies the image data processing unit 33 of an image processing command.

アドレス変換部32は、制御部31から入力された仮想アドレスを実アドレスに変換して制御部31に出力する。制御部31は、実アドレスを用いて画像メモリ20から実画像データを読み出す。   The address conversion unit 32 converts the virtual address input from the control unit 31 into a real address and outputs the real address to the control unit 31. The control unit 31 reads actual image data from the image memory 20 using the actual address.

画像データ処理部33は、拡大縮小処理部、フィルタ処理部、周辺画素拡張処理部などで構成されている。画像データ処理部33は、制御部31からの画像処理指令を受けて、画像メモリ20から読み出された実画像データに対して拡大縮小処理、又はフィルタ処理、又は周辺画素拡張処理などを実行して、その結果を画像処理部10に出力する。   The image data processing unit 33 includes an enlargement / reduction processing unit, a filter processing unit, a peripheral pixel expansion processing unit, and the like. The image data processing unit 33 receives an image processing command from the control unit 31 and executes enlargement / reduction processing, filter processing, peripheral pixel expansion processing, or the like on the actual image data read from the image memory 20. The result is output to the image processing unit 10.

図2は、画像メモリ20のアドレスマッピングを示している。即ち、画像メモリ20は、実装されているメモリ領域であり、実画像データが記憶される通常読み出し/書き込みエリア20aを持っている。また、画像メモリ20は、仮想的な空間として、1/2倍縮小画像読み出しエリア20b、2倍拡大画像読み出しエリア20c、フィルタ処理画像読み出しエリア20d、ブロック単位読み出しエリア20e、および領域外画像拡張読み出しエリア20fなどを恰も持つように構成される。これらの1/2倍縮小画像読み出しエリア20b、2倍拡大画像読み出しエリア20c、フィルタ処理画像読み出しエリア20d、ブロック単位読み出しエリア20e、および領域外画像拡張読み出しエリア20fは、内部記憶部11に形成される記憶領域(キャッシュ対象領域)であるが、画像処理部10による仮想アドレスの読み出しエリアとなる。   FIG. 2 shows the address mapping of the image memory 20. That is, the image memory 20 is a mounted memory area, and has a normal read / write area 20a in which actual image data is stored. In addition, the image memory 20 is a virtual space that is a 1/2 times reduced image reading area 20b, a 2 times enlarged image reading area 20c, a filtered image reading area 20d, a block unit reading area 20e, and an out-of-region image extended reading. The area 20f is configured to have a bag. These 1 / 2-fold reduced image readout area 20b, 2-fold enlarged image readout area 20c, filtered image readout area 20d, block unit readout area 20e, and out-of-region image extension readout area 20f are formed in the internal storage unit 11. The storage area (cache target area) is a virtual address reading area by the image processing unit 10.

次に、本実施形態の動作について説明する。   Next, the operation of this embodiment will be described.

カメラ入力部など(図示しない)はDMA(Direct Memory Access)方式で画像データを取り込み、通常の動作にて、画像メモリコントローラ30を介して画像メモリ20の通常読み出し/書き込みエリア20aに対して画像データの書き込み行う。   A camera input unit (not shown) captures image data by a DMA (Direct Memory Access) method, and the image data is transferred to the normal read / write area 20a of the image memory 20 via the image memory controller 30 in a normal operation. Write.

ここで例えば、画像処理部10は、1/2倍の画像データを読み出したい場合は、画像メモリ20の1/2倍縮小画像読み出しエリア20bを示す仮想アドレス(例えば、FF1000)を生成して、画像メモリコントローラ30に対して読み出し指令を行う(1)。なお、内部記憶部11から当該仮想アドレスの読み出しが実行される場合、画像メモリコントローラ30への読み出し動作は禁止される。この場合、仮想アドレスから実アドレスの変換は、プログラム的に自動マッピングを行なうものでも、アドレス変換テーブルで変換するものでも任意である。   Here, for example, when the image processing unit 10 wants to read 1/2 times the image data, it generates a virtual address (for example, FF1000) indicating the 1/2 times reduced image reading area 20b of the image memory 20, A read command is issued to the image memory controller 30 (1). Note that when the virtual address is read from the internal storage unit 11, a read operation to the image memory controller 30 is prohibited. In this case, the conversion from the virtual address to the real address can be performed either automatically by programmatic conversion or by conversion using an address conversion table.

画像メモリコントローラ30内の制御部31は、画像処理部10からの1/2縮小画像処理指令を解析して、画像データ処理部33に対して当該指令を出力する(2.1)。また、制御部31は、画像処理部10から受信した仮想アドレス(例えば、FF1000)をアドレス変換部32に出力する(2.2)。   The control unit 31 in the image memory controller 30 analyzes the 1/2 reduced image processing command from the image processing unit 10 and outputs the command to the image data processing unit 33 (2.1). In addition, the control unit 31 outputs the virtual address (for example, FF1000) received from the image processing unit 10 to the address conversion unit 32 (2.2).

アドレス変換部32は、1/2倍縮小画像読み出しエリア20bに対する仮想アドレスを、通常読み出し/書き込みエリア20aの実アドレスへ変換する(2.3)。例えば、図示しないアドレス変換テーブルを用いて、仮想アドレスから実アドレスへ変換するが、これに限定されるものではない。そして、制御部31はアドレス変換部32で変換した実アドレスを画像メモリ20に出力する(2.4)。これにより、画像メモリ20の通常読み出し/書き込みエリア20aから原画像データが読み出される。読み出された原画像データは、画像データ処理部33に送られる(3)。   The address conversion unit 32 converts the virtual address for the 1 / 2-fold reduced image reading area 20b into the real address of the normal reading / writing area 20a (2.3). For example, a virtual address is converted to a real address using an address conversion table (not shown), but the present invention is not limited to this. Then, the control unit 31 outputs the real address converted by the address conversion unit 32 to the image memory 20 (2.4). As a result, the original image data is read from the normal read / write area 20a of the image memory 20. The read original image data is sent to the image data processing unit 33 (3).

画像データ処理部33の拡大縮小処理部(図示せず)は、原画像データから1/2縮小画像データを作成する。そして、1/2倍縮小された画像データは、画像データ処理部33から画像処理部10へ送られる(4)。画像処理部10は、1/2倍縮小された画像データを内部記憶部11の上記仮想アドレスに対応する実アドレスに記憶し、以降の画像処理に利用する。なお、2倍拡張画像処理の場合は、仮想アドレスとしてFF2000が用いられる以外は、上記と同じ原理で2倍拡張画像データが得ることができる。   An enlargement / reduction processing unit (not shown) of the image data processing unit 33 creates 1/2 reduced image data from the original image data. Then, the image data reduced by 1/2 is sent from the image data processing unit 33 to the image processing unit 10 (4). The image processing unit 10 stores the image data reduced by ½ times at a real address corresponding to the virtual address of the internal storage unit 11 and uses it for subsequent image processing. In the case of double expansion image processing, double expansion image data can be obtained on the same principle as described above except that FF2000 is used as a virtual address.

このとき、画像メモリ20内の原画像データは変更されないため、原画像データを必要とする場合は、通常読み出し/書き込みエリア20aから読み出せば良い。なお、1/2倍縮小画像読み出しエリア20bは1つに限定することはなく、画像メモリ20内に複数の縮小(拡大)画像読み出しエリアを設けても良い。画像の拡大縮小処理では、複数の縮小(拡大)画像読み出しエリアを、直近サンプル補間、リニア補間、キュービックコンボリューション補間等の方式毎に割り当てることができる。また、拡大処理では、超解像による画像復元の方式が使えるようになる。   At this time, since the original image data in the image memory 20 is not changed, when the original image data is required, it may be read from the normal read / write area 20a. Note that the ½ times reduced image reading area 20 b is not limited to one, and a plurality of reduced (enlarged) image reading areas may be provided in the image memory 20. In the image enlargement / reduction processing, a plurality of reduced (enlarged) image readout areas can be assigned for each method such as the latest sample interpolation, linear interpolation, cubic convolution interpolation, or the like. In the enlargement process, an image restoration method based on super-resolution can be used.

次に、フィルタ処理の画像読み出しについて説明する。図3は、フィルタ処理のための矩形領域を示した図である。   Next, the image reading of the filter process will be described. FIG. 3 is a diagram showing a rectangular area for filter processing.

フィルタ処理では、画像領域G1内の矩形領域G2に対して、フィルタの特性をもった行列式によって畳み込み演算処理を行うものである。画像領域G1の縁の部分(以下、画像領域外G3と称する)に対してフィルタ処理を行う場合は、例えば、図3のように画像領域外G31の画素を使用することとなる。この場合、拡張する画素値は、縁の値を使うか、フィルタ処理に適した定数を使うかを選択できるようにすれば良い。   In the filter process, a convolution calculation process is performed on the rectangular area G2 in the image area G1 by a determinant having filter characteristics. When the filtering process is performed on the edge portion of the image area G1 (hereinafter referred to as “outside image area G3”), for example, pixels outside the image area G31 are used as shown in FIG. In this case, as the pixel value to be expanded, it is only necessary to select whether to use an edge value or a constant suitable for filtering.

画像処理部10は、フィルタ処理の画像データを読み出したい場合は、画像メモリ20のフィルタ処理画像読み出しエリア20dを示す仮想アドレス(例えば、FF6000)を生成して、画像メモリコントローラ30に対して読み出し指令を行う(1)。同様に、内部記憶部11から当該仮想アドレスの読み出しが実行される場合、画像メモリコントローラ30への読み出し動作は禁止される。   When the image processing unit 10 wants to read out the image data of the filter processing, the image processing unit 10 generates a virtual address (for example, FF6000) indicating the filtered image reading area 20d of the image memory 20, and reads out the image memory controller 30 from the read command. (1). Similarly, when the virtual address is read from the internal storage unit 11, the read operation to the image memory controller 30 is prohibited.

画像メモリコントローラ30内の制御部31は、画像処理部10からのフィルタ処理指令を解析して、画像データ処理部33に対して当該指令を出力する(2.1)。また、制御部31は、画像処理部10から受信した仮想アドレス(例えば、FF6000)をアドレス変換部32に出力する(2.2)。   The control unit 31 in the image memory controller 30 analyzes the filter processing command from the image processing unit 10 and outputs the command to the image data processing unit 33 (2.1). In addition, the control unit 31 outputs the virtual address (for example, FF6000) received from the image processing unit 10 to the address conversion unit 32 (2.2).

アドレス変換部32は、フィルタ処理画像読み出しエリア20dに対する仮想アドレスを、通常読み出し/書き込みエリア20aの実アドレスへ変換する(2.3)。そして、制御部31はアドレス変換部32で変換した実アドレスを画像メモリ20に出力する(2.4)。これにより、画像メモリ20の通常読み出し/書き込みエリア20aから原画像データが読み出される。読み出された原画像データは、画像データ処理部33に送られる(3)。   The address conversion unit 32 converts the virtual address for the filtered image reading area 20d into the real address of the normal reading / writing area 20a (2.3). Then, the control unit 31 outputs the real address converted by the address conversion unit 32 to the image memory 20 (2.4). As a result, the original image data is read from the normal read / write area 20a of the image memory 20. The read original image data is sent to the image data processing unit 33 (3).

画像データ処理部33のフィルタ処理部(図示せず)は、原画像データからフィルタ処理画像データを作成する。図4のように、画像領域外G31への拡張を行う場合、周辺画素拡張処理部(図示せず)が併せて動作することになる。そして、フィルタ処理された画像データは、画像データ処理部33から画像処理部10へ送られる(4)。画像処理部10は、フィルタ処理された画像データを内部記憶部11の上記仮想アドレスに対応する実アドレスに記憶し、以降の画像処理に利用する。   A filter processing unit (not shown) of the image data processing unit 33 creates filtered image data from the original image data. As shown in FIG. 4, in the case of performing expansion outside the image area G31, a peripheral pixel expansion processing unit (not shown) operates together. The filtered image data is sent from the image data processing unit 33 to the image processing unit 10 (4). The image processing unit 10 stores the filtered image data at a real address corresponding to the virtual address in the internal storage unit 11 and uses it for subsequent image processing.

次に、ブロック単位の画像読み出し処理について説明する。図4は、ブロック単位の画像読み出しを示した図である。   Next, the block-unit image reading process will be described. FIG. 4 is a diagram illustrating image reading in units of blocks.

指定したブロック領域毎の画像データが必要な場合、例えば図4に示すように画像データは、矢印方向のアドレスで画像メモリ20上に格納されている。このため、通常読み込み/書き込みエリア20aをアクセスして、ブロック領域のデータを読み込む場合には、読み出しアドレスが不連続となり、内部記憶部11に不要なデータが読み出されて、キャッシュ機能が効果的に動作しない。画像処理部10は、上記不要なデータを取り込んだ場合当該データを削除したのち、次の処理に必要なブロックのデータを画像メモリ20から読み出し、これを繰り返すことになる。本実施形態では、これを防ぐために、ブロック領域に対して連続したアドレスでアクセスするエリアを提供する。同様に、画像メモリコントローラ30の制御部31は、アドレス変換部32を設定して画像処理部10からのブロック単位読み出し要求に対して、連続したアドレスで画像メモリ20の内容が読み込めるようにする。   When image data for each designated block area is necessary, for example, as shown in FIG. 4, the image data is stored on the image memory 20 at an address in the direction of the arrow. For this reason, when the normal read / write area 20a is accessed to read data in the block area, the read address becomes discontinuous, unnecessary data is read to the internal storage unit 11, and the cache function is effective. Does not work. When the image processing unit 10 fetches the unnecessary data, the image processing unit 10 deletes the data, reads the block data necessary for the next processing from the image memory 20, and repeats this. In this embodiment, in order to prevent this, an area for accessing the block area with continuous addresses is provided. Similarly, the control unit 31 of the image memory controller 30 sets the address conversion unit 32 so that the contents of the image memory 20 can be read at successive addresses in response to a block unit read request from the image processing unit 10.

即ち、画像処理部10は、ブロック単位の画像データを読み出したい場合は、画像メモリ20のブロック単位読み出しエリア20eを示す仮想アドレス(例えば、FF8000)を生成して、画像メモリコントローラ30に対して読み出し指令を行う(1)。同様に、内部記憶部11から当該仮想アドレスの読み出しが実行される場合、画像メモリコントローラ30への読み出し動作は禁止される。   That is, the image processing unit 10 generates a virtual address (for example, FF8000) indicating the block unit reading area 20e of the image memory 20 and reads it to the image memory controller 30 when reading the image data in block units. Command (1). Similarly, when the virtual address is read from the internal storage unit 11, the read operation to the image memory controller 30 is prohibited.

画像メモリコントローラ30内の制御部31は、画像処理部10からのブロック単位読出指令を解析して、画像データ処理部33に対して当該指令を出力する(2.1)。また、制御部31は、画像処理部10から受信した仮想アドレス(例えば、FF8000)をアドレス変換部32に出力する(2.2)。   The control unit 31 in the image memory controller 30 analyzes the block unit readout command from the image processing unit 10 and outputs the command to the image data processing unit 33 (2.1). In addition, the control unit 31 outputs the virtual address (for example, FF8000) received from the image processing unit 10 to the address conversion unit 32 (2.2).

アドレス変換部32は、ブロック単位読み出しエリア20eに対する仮想アドレスを、通常読み出し/書き込みエリア20aの実画像データ中のブロック領域を示すアドレスへ変換する(2.3)。この場合、ブロック領域の大きさ(ブロック長)に応じてアドレスが生成されることになる。そして、制御部31はアドレス変換部32で変換されたブロック領域を示すアドレスを画像メモリ20に供給して(2.4)、画像メモリ20の通常読み出し/書き込みエリア20aからブロック領域の原画像データを読み出す(3)。読み出されたブロック領域の原画像データは、画像データ処理部33を介して画像処理部10へ送られる(4)。画像処理部10は、ブロック領域の画像データを内部記憶部11の上記仮想アドレスに対応する実アドレスに記憶し、以降の画像処理に利用する。   The address conversion unit 32 converts the virtual address for the block unit read area 20e into an address indicating a block area in the actual image data in the normal read / write area 20a (2.3). In this case, an address is generated according to the size (block length) of the block area. Then, the control unit 31 supplies the address indicating the block area converted by the address conversion unit 32 to the image memory 20 (2.4), and the original image data in the block area from the normal read / write area 20a of the image memory 20 Is read (3). The read original image data of the block area is sent to the image processing unit 10 via the image data processing unit 33 (4). The image processing unit 10 stores the image data of the block area at a real address corresponding to the virtual address of the internal storage unit 11 and uses it for subsequent image processing.

図5を用いて、ブロック単位読み出しのアドレス変換について具体的に説明する。   With reference to FIG. 5, address conversion for block unit reading will be specifically described.

図5のWは実画像全体の幅、Hは実画像全体の高さ、aは読み出すブロック51の高さ、bは読み出すブロック51の幅、(X,Y)は読み出すブロック51の左上端の座標、dxは読み出すブロック51内のX座標、dyは読み出すブロック51内のY座標、それぞれを示す。 5, W is the width of the entire real image, H is the height of the entire real image, a is the height of the block 51 to be read, b is the width of the block 51 to be read, and (X, Y) is the upper left corner of the block 51 to be read. Coordinates and dx indicate the X coordinate in the block 51 to be read, and dy indicates the Y coordinate in the block 51 to be read.

ここで、read_addressを画像処理部10からの読み出しアドレス(アドレス変換の入力)、mem_addressをアドレス変換部32から得られるアドレス(アドレス変換の出力)、block_addressを左上から順番に振られるブロックのアドレスとする。このとき、アドレス変換後の出力アドレスmem_addressを入力アドレスread_addressから求める。   Here, read_address is an address read from the image processing unit 10 (input of address conversion), mem_address is an address obtained from the address conversion unit 32 (output of address conversion), and block_address is an address of a block assigned in order from the upper left. . At this time, the output address mem_address after address conversion is obtained from the input address read_address.

まず、読み出すブロック内のアドレスの座標は
dx=read_address%b………(1)
dy=(read_address%(a*b)/b………(2)
で現される。読みだされるブロックが何個目であるかは、
block_address=read_address/(a*b)………(3)
で現され、それぞれの左上端のアドレスは
X=(block_address%(W/b))*b………(4)
Y=(block_address/(W/b))*a………(5)
となる。上記(1)乃至(5)式を介することにより、出力アドレスが入力アドレス求められる。
First, the coordinates of the address in the block to be read are dx = read_address% b (1)
dy = (read_address% (a * b) / b (2)
It appears in. The number of blocks to be read is
block_address = read_address / (a * b) (3)
The upper left address of each is X = (block_address% (W / b)) * b (4)
Y = (block_address / (W / b)) * a (5)
It becomes. An output address is obtained as an input address through the above equations (1) to (5).

mem_address=(Y+dy)*W+X+dx………(6)
具体的な数値を代入して例示する。この際、W=32、H=24、a=8、b=8と設定する。これらの画像パラメータの数値は、制御部31内の設定レジスタに記憶される。ここで、読み出しアドレスread_address=339とすると、上記(1)乃至(5)に代入すると、
dx=339%8=3
dy=(339%(8*8))/8=2
block_address=339/(8*8)=5
X=(5%(32/8))*8=8
Y=(5/(32/8))*8=8
これらの値を、(6)に代入して
mem_address=(8+2)*32+8+3=331
と変換される。
mem_address = (Y + dy) * W + X + dx (6)
An example is given by substituting specific numerical values. At this time, W = 32, H = 24, a = 8, and b = 8 are set. The numerical values of these image parameters are stored in a setting register in the control unit 31. Here, assuming that the read address read_address = 339, substituting into the above (1) to (5),
dx = 339% 8 = 3
dy = (339% (8 * 8)) / 8 = 2
block_address = 339 / (8 * 8) = 5
X = (5% (32/8)) * 8 = 8
Y = (5 / (32/8)) * 8 = 8
By substituting these values into (6), mem_address = (8 + 2) * 32 + 8 + 3 = 331
Is converted.

以上、詳述した本実施形態によれば、画像メモリと画像処理部(CPU)間で、1回の読み出しで拡大又は縮小された画像が得られる。同様に、1回の読み出しで畳み込みフィルタ演算を行った画像が得られる。また、画像の矩形領域が連続アドレスで読み出せることにより画像処理部10の内部記憶部11のキャッシュ利用率が向上する。さらに、リファレンス画像とテンプレート画像の類似度を計算するテンプレートマッチングを行うときのリファレンス画像の領域外拡張処理が不要となる。よって、原画像メモリの容量を、必要以上大きくすることはない。   As described above, according to the present embodiment described in detail, an enlarged or reduced image can be obtained by one reading between the image memory and the image processing unit (CPU). Similarly, an image obtained by performing a convolution filter operation with one reading is obtained. In addition, since the rectangular area of the image can be read with a continuous address, the cache utilization rate of the internal storage unit 11 of the image processing unit 10 is improved. Furthermore, the reference image out-of-region expansion process is not required when performing template matching for calculating the similarity between the reference image and the template image. Therefore, the capacity of the original image memory is not increased more than necessary.

なお、仮想的に定義されるアドレスエリアの種類や倍率などは、求められるデータ処理によって任意に組み合わせることができる。   Note that the types and magnifications of the address areas that are virtually defined can be arbitrarily combined by the required data processing.

なお本発明は、発明の要旨を逸脱しない範囲において、上述した実施形態を適宜設計変更することが可能であり、必要に応じて実施形態を適宜組み合わせても良い。   In the present invention, the above-described embodiment can be appropriately changed in design without departing from the gist of the invention, and the embodiments may be appropriately combined as necessary.

10…画像処理部
11…内部記憶部(画像処理部のキャッシュメモリ)
20…画像メモリ
30…画像メモリコントローラ
31…制御部
32…アドレス変換部
33…画像データ処理部
50…ブロック
51…読み出すブロック
10: Image processing unit 11: Internal storage unit (cache memory of image processing unit)
20 ... Image memory 30 ... Image memory controller 31 ... Control unit 32 ... Address conversion unit 33 ... Image data processing unit 50 ... Block 51 ... Block to be read

Claims (7)

画像データが記憶される画像メモリと、
前記画像メモリに書き込まれた前記画像データを読み出す時に、前記画像メモリの実アドレスエリアとは別に設けた仮想的な読み出しアドレスを用いて前記画像メモリをアクセスする手段と、
前記仮想的な読み出しアドレスを原画像データアドレスに変換するアドレス変換手段と、
前記原画像データアドレスによって前記画像メモリから読み出された原画像データに対し所定の演算を実行して、前記画像データとは異なる画像データを生成して出力する画像データ処理手段と、
を有することを特徴とする画像処理装置。
An image memory for storing image data;
Means for accessing the image memory using a virtual read address provided separately from the real address area of the image memory when reading the image data written in the image memory;
Address conversion means for converting the virtual read address into an original image data address;
Image data processing means for executing a predetermined operation on the original image data read from the image memory by the original image data address, and generating and outputting image data different from the image data;
An image processing apparatus comprising:
前記画像データ処理手段は、拡大又は縮小するデータ処理であることを特徴とする請求項1に記載する画像処理装置。   The image processing apparatus according to claim 1, wherein the image data processing unit is a data process to be enlarged or reduced. 前記画像データ処理手段は、畳み込みフィルタ演算処理であることを特徴とする請求項1に記載する画像処理装置。   2. The image processing apparatus according to claim 1, wherein the image data processing means is a convolution filter calculation process. 前記画像データ処理手段は、画素拡張を行う画像処理であることを特徴とする請求項1に記載する画像処理装置。   The image processing apparatus according to claim 1, wherein the image data processing means is image processing for performing pixel expansion. 前記画像データ処理手段は、請求項2乃至請求項4に記載する2以上の処理手段を備えていることを特徴とする請求項1に記載する画像処理装置。   The image processing apparatus according to claim 1, wherein the image data processing means includes two or more processing means according to claims 2 to 4. 前記アドレス変換手段は、矩形領域を連続したアドレスで読み出せるように変換することを特徴とする画像処理装置。 The image processing apparatus according to claim 1, wherein the address conversion unit converts the rectangular area so that the rectangular area can be read with continuous addresses. 画像メモリに記憶された画像データを読み出す時に、前記画像メモリの実アドレスエリアとは別に設けた仮想的な読み出しアドレスを用いて前記画像メモリをアクセスし、
前記仮想的な読み出しアドレスを原画像データアドレスに変換し、
前記変換後の原画像データアドレスによって前記画像メモリから読み出された原画像データに対し所定の演算を実行して、前記画像データとは異なる画像データを生成して出力すること、
を特徴とする画像処理方法。
When reading the image data stored in the image memory, the image memory is accessed using a virtual read address provided separately from the real address area of the image memory,
Converting the virtual read address into an original image data address;
Performing a predetermined operation on the original image data read from the image memory by the converted original image data address, and generating and outputting image data different from the image data;
An image processing method characterized by the above.
JP2009210554A 2009-09-11 2009-09-11 Image processing apparatus and image processing method Expired - Fee Related JP4865021B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009210554A JP4865021B2 (en) 2009-09-11 2009-09-11 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009210554A JP4865021B2 (en) 2009-09-11 2009-09-11 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2011061603A true JP2011061603A (en) 2011-03-24
JP4865021B2 JP4865021B2 (en) 2012-02-01

Family

ID=43948710

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009210554A Expired - Fee Related JP4865021B2 (en) 2009-09-11 2009-09-11 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP4865021B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102013203600A1 (en) 2012-03-12 2013-10-24 Kabushiki Kaisha Toshiba Image processing apparatus and image processing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61240375A (en) * 1985-04-17 1986-10-25 Matsushita Electric Ind Co Ltd Image memory control device
JPH05197796A (en) * 1992-01-22 1993-08-06 Canon Inc Image memory device
JPH10215457A (en) * 1997-01-30 1998-08-11 Toshiba Corp Moving image decoding method and device
JPH11146159A (en) * 1997-11-10 1999-05-28 Ricoh Co Ltd Image forming device
JP2004038545A (en) * 2002-07-03 2004-02-05 Fuji Xerox Co Ltd Hibernation control process, hibernation controller unit, and image processor
JP2005141637A (en) * 2003-11-10 2005-06-02 Matsushita Electric Ind Co Ltd Memory management device
JP2009037581A (en) * 2007-07-09 2009-02-19 Toshiba Corp Image processing apparatus, and method and program product for detecting image updates

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61240375A (en) * 1985-04-17 1986-10-25 Matsushita Electric Ind Co Ltd Image memory control device
JPH05197796A (en) * 1992-01-22 1993-08-06 Canon Inc Image memory device
JPH10215457A (en) * 1997-01-30 1998-08-11 Toshiba Corp Moving image decoding method and device
JPH11146159A (en) * 1997-11-10 1999-05-28 Ricoh Co Ltd Image forming device
JP2004038545A (en) * 2002-07-03 2004-02-05 Fuji Xerox Co Ltd Hibernation control process, hibernation controller unit, and image processor
JP2005141637A (en) * 2003-11-10 2005-06-02 Matsushita Electric Ind Co Ltd Memory management device
JP2009037581A (en) * 2007-07-09 2009-02-19 Toshiba Corp Image processing apparatus, and method and program product for detecting image updates

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102013203600A1 (en) 2012-03-12 2013-10-24 Kabushiki Kaisha Toshiba Image processing apparatus and image processing method
US9460489B2 (en) 2012-03-12 2016-10-04 Kabushiki Kaisha Toshiba Image processing apparatus and image processing method for performing pixel alignment

Also Published As

Publication number Publication date
JP4865021B2 (en) 2012-02-01

Similar Documents

Publication Publication Date Title
JP5593060B2 (en) Image processing apparatus and method of operating image processing apparatus
JP3781634B2 (en) Image processing apparatus, image processing method, and portable video device
JP5388835B2 (en) Information processing apparatus and information processing method
JP2001189886A (en) Image pickup device, information processor, system and method for processing image and storage medium
JP2008054222A (en) Image data buffer apparatus and image transfer processing system
JP6815741B2 (en) Image processing device and image processing method
JP2016091205A (en) Image processing apparatus, control method thereof, and program
JP4865021B2 (en) Image processing apparatus and image processing method
JP6750847B2 (en) Image processing apparatus, control method thereof, and program
JP2012048402A (en) Pattern identification device and control method thereof, and program
JP2018067849A (en) Image processing apparatus, image processing method, and program
JP6524644B2 (en) Image processing apparatus and electronic device
JP4970378B2 (en) Memory controller and image processing apparatus
JP6214367B2 (en) Image composition apparatus and image composition program
KR102522566B1 (en) Electronic devices for and methods of implementing memory transfers for image warping in an electronic device
JP5040285B2 (en) Address generation circuit, buffer circuit, information processing apparatus, and imaging system
JP6440465B2 (en) Image processing apparatus, image processing method, and program
JP2013257665A (en) Movie processing apparatus and control method therefor
JP5349931B2 (en) Information processing apparatus, information processing method, and program
US10672100B2 (en) Image processing apparatus and image processing method
JP6120561B2 (en) Graphic drawing apparatus and graphic drawing program
JP5501298B2 (en) Image processing device
WO2018168506A1 (en) Image conversion assist device, image conversion device, image conversion assist method, and computer readable recording medium
JP2005227479A (en) Image processor, image processing method, and program having image processing method executed by computer
JP5777422B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110728

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110805

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110926

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111109

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

Free format text: PAYMENT UNTIL: 20141118

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20141118

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees