Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH06259540A - Picture reducing device - Google Patents
[go: Go Back, main page]

JPH06259540A - Picture reducing device - Google Patents

Picture reducing device

Info

Publication number
JPH06259540A
JPH06259540A JP5043831A JP4383193A JPH06259540A JP H06259540 A JPH06259540 A JP H06259540A JP 5043831 A JP5043831 A JP 5043831A JP 4383193 A JP4383193 A JP 4383193A JP H06259540 A JPH06259540 A JP H06259540A
Authority
JP
Japan
Prior art keywords
address
image data
image
cpu
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP5043831A
Other languages
Japanese (ja)
Inventor
Masahito Suzuki
雅人 鈴木
Hiroyuki Omoto
浩之 大本
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.)
Maxell Ltd
Original Assignee
Hitachi Maxell 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 Hitachi Maxell Ltd filed Critical Hitachi Maxell Ltd
Priority to JP5043831A priority Critical patent/JPH06259540A/en
Publication of JPH06259540A publication Critical patent/JPH06259540A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

(57)【要約】 【目的】 CPUの処理負担を軽減することで、画像縮
小装置の画像縮小処理速度を高速化する。 【構成】 制御線6を介して、CPU1がアドレス変換
回路31、ラッチ回路32、セレクタ回路33に所望の
縮小画像データを得るに必要なパラメータを設定する。
CPUから目的とする縮小率に縮小された画像データに
対するアドレスを出力する。アドレス変換回路が実際に
画像メモリに記憶されている画像データに対するアドレ
スに変換し、この変換されたアドレスから画像データの
縮小率に応じた回数だけ連続してアドレスを順に出力す
る。ラッチ回路に読みだされた画像データを一時記憶
し、セレクタ回路がラッチ回路から所望の縮小率で間引
かれた縮小画像データを取り出す。
(57) [Abstract] [Purpose] To speed up the image reduction processing speed of the image reduction apparatus by reducing the processing load on the CPU. The CPU 1 sets parameters necessary for obtaining desired reduced image data in the address conversion circuit 31, the latch circuit 32, and the selector circuit 33 via the control line 6.
The CPU outputs the address for the image data reduced to the desired reduction ratio. The address conversion circuit converts the address to the image data actually stored in the image memory, and sequentially outputs the addresses from the converted address the number of times corresponding to the reduction rate of the image data. The read image data is temporarily stored in the latch circuit, and the selector circuit extracts the reduced image data thinned out at a desired reduction rate from the latch circuit.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、二次元画像情報の縮小
処理を行う画像縮小装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reducing device for reducing two-dimensional image information.

【0002】[0002]

【従来の技術】一般に、画像メモリに記憶されている二
次元画像データを縮小する場合には、縦方向の縮小に関
して、画像データの縦方向のアドレスを得るための演算
処理が必要であり、横方向に関して、アドレス演算処理
に加えて、読み出した画像データに対する画素ごとの演
算処理が必要である。また、この画素ごとの演算処理
は、パラレル−シリアル変換回路などを用いて画像デー
タを1画素ずつ取り出して行う方法が一般的である。
2. Description of the Related Art Generally, when two-dimensional image data stored in an image memory is reduced, an arithmetic process for obtaining a vertical address of image data is required for vertical reduction, and Regarding the direction, in addition to the address calculation processing, calculation processing for each pixel with respect to the read image data is necessary. Further, the calculation processing for each pixel is generally performed by extracting image data pixel by pixel using a parallel-serial conversion circuit or the like.

【0003】図4に、従来より知られているこの種の画
像縮小方法をとる画像縮小装置の一例を示す。図4に示
す本例の画像縮小装置は、画像データの処理などを行う
CPU(中央演算処理装置)11と、画像データを記憶
するための画像メモリ12と、画像データの目的とする
部分を選択するための複数本のアドレスバス14と、画
像データを読み出すためのデータバス15とから構成さ
れており、さらに、データ表示装置として、データバス
15から画素データを得て1画素ずつ取り出すパラレル
−シリアル変換回路131と、取り出した1画素ずつの
画素データを適当な画素ごとに選択して出力するカウン
タ回路132と、縮小した画像を表示するための表示制
御回路17及びディスプレイ18を備えている。
FIG. 4 shows an example of an image reducing apparatus which adopts a conventionally known image reducing method of this type. The image reducing apparatus of this example shown in FIG. 4 selects a CPU (Central Processing Unit) 11 for processing image data, an image memory 12 for storing image data, and a target portion of the image data. And a data bus 15 for reading out image data. Further, as a data display device, a parallel-serial device for obtaining pixel data from the data bus 15 and taking out pixel by pixel. It includes a conversion circuit 131, a counter circuit 132 that selects and outputs the extracted pixel data of each pixel for each appropriate pixel, a display control circuit 17 and a display 18 for displaying a reduced image.

【0004】CPU11は、8画素を1つの単位(以
下、1バイトとする)としてデータを処理するように構
成されている。一方、画像メモリ12は、図5に示すよ
うなメモリ構成及びアドレス配置を有し、該画像メモリ
12には、1枚分の二次元画像データが、CPU11か
ら出力された1つのアドレスに対して1バイトごとに出
力されるように記憶されている。すなわち、本例で取り
扱う画像データは、大きさが横x画素、縦y画素であ
り、画像の最初(左上)を示す1バイト分を選択するた
めのアドレスが0番地、その1バイト隣を示すアドレス
が1番地、1画素下を示すアドレスがx/8番地、画像
の右上を示すデータのアドレスがx/8−1番地という
ように画像メモリ内に配置されている。
The CPU 11 is configured to process data in units of 8 pixels as one unit (hereinafter referred to as 1 byte). On the other hand, the image memory 12 has a memory configuration and address arrangement as shown in FIG. 5, and the two-dimensional image data for one image is stored in the image memory 12 for one address output from the CPU 11. It is stored so as to be output for each byte. That is, the image data handled in this example has a size of horizontal x pixels and vertical y pixels, and an address for selecting 1 byte indicating the beginning (upper left) of the image is address 0 and indicates the next 1 byte. The address is arranged in the image memory such that the address is 1 address, the address indicating one pixel below is x / 8 address, and the address of the data indicating the upper right corner of the image is x / 8-1 address.

【0005】以下、画像メモリ12に記憶された二次元
画像データを図6及び図7で示す間引き率及び間引き方
式で縮小する場合を例にとって、前記従来例に係る画像
縮小装置の動作を図8にしたがって説明する。なお、本
例における画像データの間引き率及び間引き方式は、横
方向に関しては図6に示すように、3画素ごとに2画素
間引くことによって横方向の画素数を1/3に縮小し、
縦方向に関しては図7に示すように、4ラインごとに3
ライン間引くことによって縦方向の画素数を1/4に縮
小するというものである。従って、本例においては、縮
小画像の大きさは横x/3画素、縦y/4画素となる。
Hereinafter, the operation of the image reducing apparatus according to the conventional example will be described with reference to FIG. 8 in which the two-dimensional image data stored in the image memory 12 is reduced by the thinning rate and the thinning method shown in FIGS. 6 and 7. Follow the instructions below. In the thinning rate and the thinning method of the image data in this example, as shown in FIG. 6 in the horizontal direction, the number of pixels in the horizontal direction is reduced to 1/3 by thinning out two pixels every three pixels.
As for the vertical direction, as shown in Fig. 7, 3 for every 4 lines
By thinning out lines, the number of pixels in the vertical direction is reduced to 1/4. Therefore, in this example, the size of the reduced image is horizontal x / 3 pixels and vertical y / 4 pixels.

【0006】まず最初に、図8のステップs1で、CP
U11が画像の左上を原点として、1バイト分の画素デ
ータを示す二次元座標のための変数x1,y1を準備
し、初期化する。ここでは画像の左上から縮小処理を実
行するとしてx1=0,y1=0とする。さらにステッ
プs2でCPU11が、この座標x1,y1から図4に
示したような画像データに対するアドレスを求める。画
像の横方向の大きさはx/8バイトであるから、アドレ
スa1はa1=x1+y1+(x/8)となる。このア
ドレスa1をアドレスバス14に出力する。ステップs
3では、画像メモリ12がアドレスa1に従って、1バ
イト分の画素データをデータバス15に出力する。ステ
ップs4でCPU11が得られた画素データを用いて実
際に横方向の縮小処理を行う。ここでは横方向1/3に
縮小するのだから、図6に示したように、1バイト(8
画素)の中から1番目、4番目、7番目の画素を順に選
択し、最初の3画素とする。ステップs5で次の画素デ
ータにアクセスするために座標x1を右側に更新し(x
1=x1+1)、アドレスa1を求める。ここでa1を
1番地分増やす方法もあるが後に述べるように1ライン
分の処理の終了判定で座標x1が必要になる。このa1
をs3と同様にアドレスバス14に出力する。ステップ
s6では、画像メモリ12が画素データを出力する。次
にステップs7でs4と同様に間引きを行うが、図6の
ように選択する画素は、2番目、5番目、及び8番目の
画素になる。これを前の3画素と合わせて6画素とす
る。さらにステップs8でx1,a1を求め、アドレス
a1を出力する。ステップs9で画像メモリ12が画素
データを出力する。ステップs10で同様に3番目と6
番目の画素を選択し、ここで前の画素と合わせて1バイ
ト分の縮小画像の画素データを得ることができる。次に
ステップs11で座標x1が画像の右端を示しているか
どうかを判定し、右端でない場合はステップs12でx
1を更新し、ステップs2に戻る。右端であった場合
は、ステップs13でy1が画像の最後ラインを示して
いるかどうか判定する。最後を示した場合は、以上で画
像1枚分の縮小処理が終了したことになる。y1が最後
のラインでない場合はステップs14で、次のラインを
示すy1を求める。つまり縦方向には図7に示したよう
に1/4に縮小するのであるから、4ラインごとに1ラ
インを選択するためにy1=y1+4とする。さらにx
1の初期化(x1=0)を行い、ステップs2に戻って
以上を繰り返す。以上のステップで、1枚の画像データ
を横1/3,縦1/4に縮小することができる。
First, at step s1 in FIG.
U11 prepares and initializes variables x1 and y1 for two-dimensional coordinates indicating one byte of pixel data with the upper left corner of the image as the origin. Here, it is assumed that x1 = 0 and y1 = 0 assuming that the reduction processing is executed from the upper left of the image. Further, in step s2, the CPU 11 obtains the address for the image data as shown in FIG. 4 from the coordinates x1, y1. Since the horizontal size of the image is x / 8 bytes, the address a1 is a1 = x1 + y1 + (x / 8). The address a1 is output to the address bus 14. Step s
In 3, the image memory 12 outputs 1-byte pixel data to the data bus 15 according to the address a1. In step s4, the CPU 11 actually performs the reduction processing in the horizontal direction using the pixel data obtained. Since it is reduced to 1/3 in the horizontal direction, 1 byte (8
Pixels), the first, fourth, and seventh pixels are sequentially selected to be the first three pixels. In step s5, the coordinate x1 is updated to the right to access the next pixel data (x
1 = x1 + 1), and the address a1 is obtained. There is also a method of increasing a1 by one address here, but as will be described later, the coordinate x1 is required to determine the end of processing for one line. This a1
Is output to the address bus 14 similarly to s3. In step s6, the image memory 12 outputs pixel data. Next, in step s7, thinning is performed in the same manner as s4, but the pixels to be selected are the second, fifth, and eighth pixels as shown in FIG. This is 6 pixels including the previous 3 pixels. Further, in step s8, x1 and a1 are obtained, and the address a1 is output. In step s9, the image memory 12 outputs pixel data. Similarly, in step s10, the third and sixth
The th pixel can be selected and the pixel data of the reduced image for 1 byte can be obtained here by combining with the previous pixel. Next, in step s11, it is determined whether the coordinate x1 indicates the right edge of the image. If it is not the right edge, x is determined in step s12.
1 is updated, and the process returns to step s2. If it is at the right end, it is determined in step s13 whether y1 indicates the last line of the image. When the end is indicated, the reduction processing for one image is completed as described above. If y1 is not the last line, then in step s14 y1 indicating the next line is obtained. That is, since it is reduced to 1/4 in the vertical direction as shown in FIG. 7, y1 = y1 + 4 is set in order to select one line every four lines. Further x
1 is initialized (x1 = 0), the process returns to step s2 and the above is repeated. With the above steps, one image data can be reduced to horizontal 1/3 and vertical 1/4.

【0007】次に、従来装置におけるディスプレイ18
への縮小画像の表示方法の一例について説明する。な
お、表示する縮小画像の縮小率も同様に、横1/3、縦
1/4であるとする。CPU11は、図7に示すように
縦方向に1/4に縮小するために、まず最初に、4ライ
ンごとに1ラインを選択し、その先頭の1バイト分の画
素のアドレスを求める。CPU11はこのアドレスから
連続的に1ライン分のアドレスをアドレスバス14に出
力する。画像メモリ12はこのアドレスに対応した1ラ
イン分の画素データをデータバス15に出力する。パラ
レル−シリアル変換回路131は1バイトずつデータバ
ス15から得て、8画素分のデータの先頭から1画素ず
つ取り出し、カウンタ回路132に送る。カウンタ回路
132は、得られた1画素ずつのデータを、最初の1画
素は選択して表示制御回路17に送り、次の2画素は無
視するというような周期的な動作を繰り返す。このカウ
ンタ回路132の動作によって横方向が1/3に縮小さ
れ、表示制御回路17が得られた1画素ずつの縮小画像
データをディスプレイ18に表示する。
Next, the display 18 in the conventional device
An example of a method of displaying the reduced image on the screen will be described. Similarly, the reduction ratio of the reduced image to be displayed is also 1/3 in the horizontal direction and 1/4 in the vertical direction. In order to reduce the size to 1/4 in the vertical direction as shown in FIG. 7, the CPU 11 first selects one line out of every four lines, and obtains the address of the first 1-byte pixel. The CPU 11 continuously outputs addresses for one line from this address to the address bus 14. The image memory 12 outputs the pixel data for one line corresponding to this address to the data bus 15. The parallel-serial conversion circuit 131 obtains 1 byte at a time from the data bus 15, takes out 1 pixel at a time from the beginning of the data for 8 pixels, and sends it to the counter circuit 132. The counter circuit 132 repeats a cyclic operation such that the first one pixel of the obtained data for each pixel is selected and sent to the display control circuit 17, and the next two pixels are ignored. By the operation of the counter circuit 132, the horizontal direction is reduced to 1/3, and the display control circuit 17 displays the reduced image data for each pixel obtained on the display 18.

【0008】[0008]

【発明が解決しようとする課題】前記したように従来の
画像縮小装置においては、図8に示した縮小画像データ
を得るための一連の動作の中で、ステップs3,s6,
及びs9以外は、すべてCPU11の演算処理によって
実行しなければならないため、CPUの処理負担が多
く、縮小処理を高速に行うことがむずかしい。特に本例
の場合には、1バイトより小さい単位(1画素ずつ)の
処理が多いために、CPU11にとって大きな処理の負
担となる。加えて、縮小画像データをディスプレイ18
に表示するに際しても、CPU11が縦方向に画像デー
タを縮小して適切なラインを選択し、アドレスを求めな
ければならないために、CPUの処理負担が一層増加す
る。またこれらの演算処理は、一般にソフトウェアによ
って制御されるが、このソフトウェアが非常に複雑にな
るために、ソフトウェアの開発が困難になる。さらに、
図8のステップs4,s7,s10のように、画素デー
タのアドレスによって間引きする画素が異なるため、ラ
ンダムなアドレスからの縮小処理を実行できず、従って
縮小画像の一部分だけを任意に得ることはむずかしい。
したがって、かかる不都合を解消するためには、CPU
の処理負担を軽減できるシステム構成の開発が不可欠で
ある。
As described above, in the conventional image reducing apparatus, steps s3, s6, and s6 are performed in the series of operations for obtaining the reduced image data shown in FIG.
Except for s9 and s9, all must be executed by the arithmetic processing of the CPU 11, so that the processing load on the CPU is heavy and it is difficult to perform the reduction processing at high speed. In particular, in the case of this example, since there are many units of processing (one pixel at a time) smaller than 1 byte, a large processing load is imposed on the CPU 11. In addition, the reduced image data is displayed on the display 18.
Even when the image is displayed on the screen, the CPU 11 has to reduce the image data in the vertical direction to select an appropriate line and obtain an address, which further increases the processing load on the CPU. Further, these arithmetic processes are generally controlled by software, but the software becomes very complicated, which makes it difficult to develop the software. further,
As in steps s4, s7, and s10 in FIG. 8, since the pixels to be thinned out differ depending on the address of the pixel data, the reduction processing cannot be executed from a random address, and therefore it is difficult to arbitrarily obtain only a part of the reduced image. .
Therefore, in order to eliminate such inconvenience, the CPU
It is indispensable to develop a system configuration that can reduce the processing load.

【0009】本発明は、かかる技術的な課題を解決する
ためになされたものであって、画像縮小処理速度が速
く、制御ソフトウェアの開発が容易で、しかも縮小画像
データの目的とする部分のデータをランダムに得ること
のできる画像縮小装置を提供することを目的とする。
The present invention has been made in order to solve the above technical problems, and has a high image reduction processing speed, easy development of control software, and data of a target portion of reduced image data. It is an object of the present invention to provide an image reducing device capable of randomly obtaining the image.

【0010】[0010]

【課題を解決するための手段】本発明は、前記の目的を
達成するために、画像縮小装置を、縦、横がそれぞれ
任意の画素数で構成された二次元画像データを、連続し
た複数画素分を一つの単位としてアクセスできるように
記憶した画像メモリと、前記画像データの選択、読み
出し、及び演算処理を行うCPUと、該CPUから出
力された目的とする縮小率に縮小された画像データに対
するアドレスを、該CPUの制御に従って、実際に前記
画像メモリに記憶されている画像データに対するアドレ
スに変換し、この変換されたアドレスから画像データの
縮小率に応じた回数だけ連続してアドレスを順に出力す
るアドレス変換回路と、 該アドレス変換回路からの
アドレスによって選択された画像データを一時記憶する
ラッチ回路と、該ラッチ回路に記憶された画像データ
から、前記目的とする縮小率に応じた間引き率で間引か
れたデータを取り出すセレクタ回路と、 前記アドレ
ス変換回路、ラッチ回路、及びセレクタ回路に前記CP
Uがパラメータを設定するための制御線とを含んで構成
した。
In order to achieve the above-mentioned object, the present invention provides an image reducing device which comprises a plurality of consecutive two-dimensional image data, each of which is made up of two-dimensional image data having an arbitrary number of pixels in the vertical and horizontal directions. The image memory that stores the minute as one unit, the CPU that performs the selection, reading, and arithmetic processing of the image data, and the image data that has been reduced to the target reduction ratio output from the CPU Under the control of the CPU, the address is converted into an address for the image data actually stored in the image memory, and the converted address is successively output the number of times corresponding to the reduction rate of the image data. Address conversion circuit, a latch circuit for temporarily storing image data selected by an address from the address conversion circuit, and the latch circuit A selector circuit for extracting data thinned out at a thinning rate according to the target reduction rate from the image data stored in the address conversion circuit, the latch circuit, and the selector circuit.
U includes a control line for setting parameters.

【0011】もちろん、前記画像縮小装置にて縮小され
た画像データを表示するために、上記構成の装置に、前
記CPUと前記アドレス変換回路とを接続するアドレス
バスに画像データの任意の部分を選択するためのアドレ
スを出力でき、かつ前記セレクタ回路から出力されたデ
ータを1画素ずつのデータに変換するパラレル−シリア
ル変換回路と、画像表示制御装置と、ディスプレイ等と
を付加することもできる。
Of course, in order to display the image data reduced by the image reduction device, an arbitrary portion of the image data is selected in the address bus connecting the CPU and the address conversion circuit to the device having the above-mentioned configuration. It is also possible to add a parallel-serial conversion circuit that can output an address for performing the conversion and that converts the data output from the selector circuit into data for each pixel, an image display control device, a display, and the like.

【0012】[0012]

【作用】前記手段によると、制御線を介して、予めCP
Uがアドレス変換回路、ラッチ回路、及びセレクタ回路
に所望の縮小画像データを得るに必要なパラメータを設
定しておき、CPUから目的とする縮小率に縮小された
画像データに対するアドレスを出力することによって、
CPUが画像データをアクセスするためのアドレス演算
処理や、得られたデータに対する演算処理を行うことな
く、セレクタ回路から所望の縮小画像データを取り出す
ことができる。したがって、画像メモリ内の画像データ
の縮小画像データを、高速に得ることができると共に、
アドレス変換回路、ラッチ回路、及びセレクタ回路に与
えるパラメータを任意に変更できることから、画像メモ
リ内の画像データの任意の部分を、ランダムに得ること
ができる。また、CPUを制御するためのソフトウェア
を簡単にすることができるため、ソフトウェアの開発が
容易になる。さらには、アドレス変換回路、ラッチ回
路、及びセレクタ回路にパラメータを設定しておけば、
ディスプレイ等に縮小された画像データを表示できるこ
とから、本発明の画像縮小装置にディスプレイ等を追設
してもCPUの処理負担が増加することがなく、画像メ
モリ内の画像データの縮小画像データを、高速にディス
プレイ等に表示できる。
According to the above-mentioned means, the CP is previously set through the control line.
U sets the parameters necessary for obtaining desired reduced image data in the address conversion circuit, the latch circuit, and the selector circuit, and outputs the address for the image data reduced to the target reduction rate from the CPU. ,
The desired reduced image data can be taken out from the selector circuit without the CPU performing the address arithmetic processing for accessing the image data and the arithmetic processing for the obtained data. Therefore, reduced image data of the image data in the image memory can be obtained at high speed, and
Since the parameters given to the address conversion circuit, the latch circuit, and the selector circuit can be arbitrarily changed, an arbitrary portion of the image data in the image memory can be randomly obtained. Moreover, since the software for controlling the CPU can be simplified, the software can be easily developed. Furthermore, if parameters are set in the address conversion circuit, the latch circuit, and the selector circuit,
Since the reduced image data can be displayed on the display or the like, even if a display or the like is additionally provided in the image reducing apparatus of the present invention, the processing load of the CPU does not increase, and the reduced image data of the image data in the image memory can be displayed. , Can be displayed on the display etc. at high speed.

【0013】[0013]

【実施例】図1に本発明に係る画像縮小装置の一例を示
す。図1に示す本実施例の画像縮小装置は、画像データ
の選択、読み出し、及び演算処理を行うCPU1と、画
像データを記憶するための画像メモリ2と、画像メモリ
内の目的とする部分のデータを選択するアドレスのため
の複数本のアドレスバス41と、CPU1が出力するア
ドレスのための複数本のアドレスバス42と、アドレス
バス42から得られるアドレスをCPU1の制御に従っ
て適当なアドレスに変換し、そのアドレスから適当な回
数だけ連続してアドレスを順に前記アドレスバス1に出
力するためのアドレス変換回路と、画像メモリから出力
される1バイト分の画素データのためのデータバス51
と、CPU1に入力される1バイト分の画素データのた
めのデータバス52と、データバス51から得られる複
数バイト分の画素データのためのデータバス51と、C
PU1に入力される1バイト分の画素データを一時記憶
するためのラッチ回路32と、ラッチ回路32に記憶さ
れた画素データを適当な間引き率で間引いた1バイト分
の画素データをデータバス52に出力するためのセレク
タ回路33と、前記アドレス変換回路31、ラッチ回路
32、及びセレクタ回路33にCPU1がパラメータを
設定するための制御線6で構成されている。さらに、本
例においては、縮小画像をディスプレイ8に表示するた
めに、データバス52から得られた1バイトずつの画素
データを1画素ずつ取り出して表示制御回路7に送るた
めのパラレルシリアル変換回路34と、得られた1画素
ずつの画素データの表示を制御するための表示制御回路
7とが備えられている。
FIG. 1 shows an example of an image reducing apparatus according to the present invention. The image reducing apparatus of the present embodiment shown in FIG. 1 includes a CPU 1 for selecting, reading, and calculating image data, an image memory 2 for storing image data, and data of a target portion in the image memory. A plurality of address buses 41 for selecting addresses, a plurality of address buses 42 for addresses output by the CPU 1, and an address obtained from the address bus 42 are converted into appropriate addresses under the control of the CPU 1, An address conversion circuit for sequentially outputting addresses to the address bus 1 a proper number of times from the address, and a data bus 51 for 1-byte pixel data output from the image memory.
A data bus 52 for one byte of pixel data input to the CPU 1, a data bus 51 for a plurality of bytes of pixel data obtained from the data bus 51, and C
A latch circuit 32 for temporarily storing 1-byte pixel data input to PU1, and 1-byte pixel data obtained by thinning out the pixel data stored in the latch circuit 32 at an appropriate thinning rate are output to the data bus 52. A selector circuit 33 for outputting, an address conversion circuit 31, a latch circuit 32, and a control line 6 for the CPU 1 to set parameters in the selector circuit 33. Further, in the present example, in order to display the reduced image on the display 8, the parallel-to-serial conversion circuit 34 for extracting the pixel data of each byte obtained from the data bus 52 pixel by pixel and sending the pixel data to the display control circuit 7. And a display control circuit 7 for controlling the display of the obtained pixel data for each pixel.

【0014】CPU1は、従来装置におけるCPU11
と同様に、1バイトごとにデータを処理するように構成
されており、画像メモリ2は、従来装置における画像メ
モリ12と同様に、図5に示すようなメモリ構成及びア
ドレス配置を有し、該画像メモリ2には、1枚分の二次
元画像データが、1つのアドレスに対して1バイトごと
に出力されるように記憶されている。
The CPU 1 is a CPU 11 in the conventional device.
Like the image memory 12 in the conventional apparatus, the image memory 2 has a memory configuration and address arrangement as shown in FIG. The image memory 2 stores one-dimensional two-dimensional image data so as to be output byte by byte for one address.

【0015】以下、従来装置における場合と同様に、画
像メモリ2に記憶された二次元画像データを図6及び図
7で示す間引き率及び間引き方式で縮小する場合を例に
とって、前記従来例に係る画像縮小装置の動作を図2に
したがって説明する。まずステップs1で、CPU1が
アドレス変換回路31にパラメータを設定する。このパ
ラメータは縦横の縮小率と、画像の横方向の画素数であ
る。同様にステップs2及びステップs3で、ラッチ回
路32及びセレクタ回路33にパラメータ(横方向の縮
小率)を設定する。次にステップs4で画像メモリ2を
アクセスするためのアドレスa2を初期化する。このア
ドレスは、目的とする縮小率に縮小された画像データに
対するアドレスとする。すなわち、このアドレスa2
は、図3に示すように、縮小前の画像の横方向の画素数
はx画素(図5参照)であるから、縮小画像の横方向は
画像メモリ内で、縮小画像の最初(左上)の1バイト分
の画素データを示すアドレスを0番地とすると、次の画
素データは1番地、右上の画素データを示すアドレスは
(x/3/8)−1=(x/24)−1番地、というよ
うになる。このアドレスa2をステップs5でアドレス
バス42に出力する。ステップs6では、アドレス変換
回路31が設定されたパラメータに従ってアドレスを変
換する。このアドレス変換回路31は乗除算回路とカウ
ンタ回路によって構成することができる。つまり、アド
レスa2と設定された横方向の画素数xを用いて、縮小
画像に対するアドレスa2の示す画素データの横方向と
縦方向の座標を得る。この座標と縦横の縮小率を用い
て、実際に画像メモリ2に記憶されている画像データに
対するアドレスに変換される。さらにカウンタ回路を用
いてこのアドレスから連続したアドレスを、縮小率に従
った回数(この場合は3回)アドレスバス41に順次出
力する。ステップs7で画像メモリ2が、この連続した
3バイト分のアドレスに対するデータをデータバス51
に出力する。ステップs8でラッチ回路32がこの3バ
イト分の画素データを順次記憶して、3バイト(24画
素)分を並列にセレクタ回路33に送る。ステップs9
でこの画素データをセレクタ回路33が3画素につき2
画素を間引きして、8画素(1バイト)得てデータバス
52に出力する。ステップs10で縮小された1バイト
のデータをCPU1が得る。以下、ステップs11で縮
小画像1枚分の処理が終わっているか否かが判断され、
終っていなければステップs12にいってアドレスa2
を更新し、ステップs5からのステップを繰り返す。
As in the case of the conventional apparatus, the conventional example will be described below by taking the case where the two-dimensional image data stored in the image memory 2 is reduced by the thinning rate and the thinning method shown in FIGS. 6 and 7. The operation of the image reducing device will be described with reference to FIG. First, in step s1, the CPU 1 sets parameters in the address conversion circuit 31. This parameter is the vertical and horizontal reduction ratio and the number of pixels in the horizontal direction of the image. Similarly, in steps s2 and s3, parameters (horizontal reduction ratio) are set in the latch circuit 32 and the selector circuit 33. Next, in step s4, the address a2 for accessing the image memory 2 is initialized. This address is an address for image data reduced to a desired reduction ratio. That is, this address a2
As shown in FIG. 3, since the number of pixels in the horizontal direction of the image before reduction is x pixels (see FIG. 5), the horizontal direction of the reduced image is in the image memory, and the first (upper left) If the address indicating pixel data for 1 byte is address 0, the next pixel data is address 1, and the address indicating the pixel data on the upper right is (x / 3/8) -1 = (x / 24) -1 address, And so on. This address a2 is output to the address bus 42 in step s5. In step s6, the address conversion circuit 31 converts the address according to the set parameters. The address conversion circuit 31 can be composed of a multiplication / division circuit and a counter circuit. That is, using the address a2 and the set horizontal pixel number x, the horizontal and vertical coordinates of the pixel data indicated by the address a2 for the reduced image are obtained. The coordinates and the vertical and horizontal reduction ratios are used to convert the addresses into the image data actually stored in the image memory 2. Further, using the counter circuit, consecutive addresses from this address are sequentially output to the address bus 41 the number of times (three times in this case) according to the reduction rate. In step s7, the image memory 2 transfers the data for the continuous 3 bytes of addresses to the data bus 51.
Output to. In step s8, the latch circuit 32 sequentially stores the pixel data of 3 bytes, and sends 3 bytes (24 pixels) in parallel to the selector circuit 33. Step s9
Then, the selector circuit 33 outputs this pixel data to 2 for 3 pixels.
Pixels are thinned out to obtain 8 pixels (1 byte) and output to the data bus 52. The CPU 1 obtains the 1-byte data reduced in step s10. Hereinafter, in step s11, it is determined whether or not the processing for one reduced image is completed,
If not, go to step s12 and address a2
Is updated and the steps from step s5 are repeated.

【0016】以上のように、本実施例の画像縮小装置に
あっては、アドレスバスに出力するアドレスの演算処
理、及び得られた画素データに対する演算処理をCPU
1で行うことなく縮小画像データが得られるため、縮小
画像を非常に高速に得ることができる。また、これらの
演算処理のためのソフトウェアが必要なくなることか
ら、CPUを制御するためのソフトウェアの開発が容易
になる。
As described above, in the image reducing apparatus of this embodiment, the CPU performs the arithmetic processing of the address output to the address bus and the arithmetic processing of the obtained pixel data.
Since the reduced image data can be obtained without performing step 1, the reduced image can be obtained at an extremely high speed. Further, since software for these arithmetic processes is not required, development of software for controlling the CPU becomes easy.

【0017】以上の方法は、画像メモリ2に記憶された
画像データ全体の縮小画像を得るための方法であるが、
アドレス変換回路31、ラッチ回路32、及びセレクタ
回路33に設定されるパラメータを適宜変更することに
よって、CPU1は画像メモリ内にはすでに縮小された
画像データが記憶されているとして、縮小画像データに
対するアドレスを用いて縮小画像データを得ることがで
きる。すなわち、縮小画像データの任意の一部分だけを
得る場合でも、その部分に対するアドレスを用いてアク
セスすることによって、一部分だけの縮小画像を得るこ
とができる。さらに、縮小画像を得るために出力するア
ドレスは、連続している必要はなく、ランダムに縮小画
像を得ることもできる。
The above method is a method for obtaining a reduced image of the entire image data stored in the image memory 2.
By appropriately changing the parameters set in the address conversion circuit 31, the latch circuit 32, and the selector circuit 33, the CPU 1 determines that the reduced image data is already stored in the image memory, and determines the address for the reduced image data. Can be used to obtain reduced image data. That is, even when only an arbitrary part of the reduced image data is obtained, it is possible to obtain a reduced image of only a part by accessing using the address for the part. Further, the addresses output to obtain the reduced image do not have to be consecutive, and the reduced image can be obtained randomly.

【0018】ディスプレイ8に縮小画像を表示する処理
も、CPU1によって、アドレス変換回路31、ラッチ
回路32、及びセレクタ回路33に設定されるパラメー
タを適宜変更するだけで行える。すなわち、図2のステ
ップs1,s2,s3のようにしてアドレス変換回路3
1、ラッチ回路32、及びセレクタ回路33に対するパ
ラメータの設定を行うと、表示制御装置7が縮小画像に
対するアドレスを連続的にアドレスバス42に出力する
ことによって縮小された画像が1バイトずつデータバス
52から得られるので、パラレル−シリアル変換回路3
4がこの1バイトの画素データから1画素ずつ取り出
し、表示制御回路7がこの画素データをディスプレイ8
に表示することによって、縮小画像データをディスプレ
イ8に表示できる。この場合もCPU1は、画像データ
をアクセスするためのアドレスの演算処理、及び画素デ
ータに対する処理を行う必要がないので、縮小画像デー
タを高速に表示できる。
The process of displaying the reduced image on the display 8 can be performed by the CPU 1 by only appropriately changing the parameters set in the address conversion circuit 31, the latch circuit 32, and the selector circuit 33. That is, as in steps s1, s2 and s3 of FIG.
1, the parameters are set for the latch circuit 32 and the selector circuit 33, and the display controller 7 continuously outputs the addresses for the reduced image to the address bus 42 so that the reduced image is transferred to the data bus 52 byte by byte. Is obtained from the parallel-serial conversion circuit 3
4 picks up pixel by pixel from the 1-byte pixel data, and the display control circuit 7 displays this pixel data on the display 8
, The reduced image data can be displayed on the display 8. Also in this case, the CPU 1 does not need to perform the arithmetic processing of the address for accessing the image data and the processing for the pixel data, so that the reduced image data can be displayed at high speed.

【0019】なお、前記実施例においては、CPU1と
して、1バイトごとにデータを処理するように構成され
たものを用い、画像メモリ2として、1枚分の二次元画
像データが1つのアドレスに対して1バイトごとに出力
されるように記憶されるものを用いた場合を例にとって
説明したが、本発明の要旨は、これに限定されるもので
はなく、任意の処理能力あるいはデータ転送能力を有す
るCPU及び画像メモリを適用できることは勿論であ
る。
In the above embodiment, the CPU 1 is configured to process data byte by byte, and the image memory 2 has two-dimensional image data for one sheet for one address. However, the gist of the present invention is not limited to this, and has any processing capability or data transfer capability. Of course, a CPU and an image memory can be applied.

【0020】[0020]

【発明の効果】以上説明したように、本発明によると、
画像データをアクセスするためのアドレス演算処理や、
得られたデータに対する演算処理をCPUで行わせるこ
となく所望の縮小率の縮小画像データを得られるので、
CPUの処理負担が軽減され、画像メモリ内の画像デー
タの縮小画像データを高速に得ることができる。また、
アドレス変換回路、ラッチ回路、及びセレクタ回路に対
するパラメータの設定を任意に行うことができるので、
画像メモリ内の画像データの任意の部分の縮小画像デー
タをランダムに得ることができる。また、CPUを制御
するためのソフトウェアを簡単にすることができること
から、ソフトウェアの開発が容易になる。また、縮小画
像データを表示するためのディスプレイ等を付設した場
合にも、CPUの処理負担が増加しないので、縮小画像
データを高速にディスプレイ等に表示できる。
As described above, according to the present invention,
Address calculation processing to access image data,
Since reduced image data having a desired reduction ratio can be obtained without causing the CPU to perform arithmetic processing on the obtained data,
The processing load on the CPU is reduced, and reduced image data of the image data in the image memory can be obtained at high speed. Also,
Since the parameters for the address conversion circuit, the latch circuit, and the selector circuit can be arbitrarily set,
It is possible to randomly obtain reduced image data of an arbitrary part of the image data in the image memory. Further, the software for controlling the CPU can be simplified, which facilitates the development of the software. Even when a display or the like for displaying the reduced image data is attached, the processing load on the CPU does not increase, so that the reduced image data can be displayed on the display or the like at high speed.

【図面の簡単な説明】[Brief description of drawings]

【図1】実施例に係る画像縮小装置の構成図である。FIG. 1 is a configuration diagram of an image reducing apparatus according to an embodiment.

【図2】実施例に係る画像縮小装置を用いた画像縮小方
法を示す流れ図である。
FIG. 2 is a flowchart showing an image reducing method using the image reducing apparatus according to the embodiment.

【図3】横1/3、縦1/4に縮小した画像データを、
画像メモリに記憶した際のアドレス配置例を示す説明図
である。
FIG. 3 shows image data reduced to a horizontal 1/3 and a vertical 1/4,
It is explanatory drawing which shows the example of an address arrangement at the time of storing in an image memory.

【図4】従来例に係る画像縮小装置の構成図である。FIG. 4 is a configuration diagram of an image reduction device according to a conventional example.

【図5】画像メモリにおける画像データのアドレス配置
例を示す説明図である。
FIG. 5 is an explanatory diagram showing an example of an address arrangement of image data in an image memory.

【図6】画像データを横方向に1/3に縮小する場合
の、横方向の間引き方法を示す説明図である。
FIG. 6 is an explanatory diagram showing a horizontal thinning method when image data is reduced to 1/3 in the horizontal direction.

【図7】画像データを縦方向に1/4に縮小する場合
の、縦方向の間引き方法を示す説明図である。
FIG. 7 is an explanatory diagram showing a vertical thinning method when image data is reduced to 1/4 in the vertical direction.

【図8】従来例に係る画像縮小装置を用いた画像縮小方
法を示す流れ図である。
FIG. 8 is a flowchart showing an image reduction method using an image reduction device according to a conventional example.

【符号の説明】[Explanation of symbols]

1 CPU 2 画像メモリ 6 制御線 7 表示制御回路 8 ディスプレイ 31 アドレス変換回路 32 ラッチ回路 33 セレクタ回路 34 パラレル−シリアル変換回路 41 アドレス変換回路より出力されるアドレスバス 42 CPUより出力されるアドレスバス 51 画像メモリより出力されるアドレスバス 52 CPUに入力されるデータバス 1 CPU 2 image memory 6 control line 7 display control circuit 8 display 31 address conversion circuit 32 latch circuit 33 selector circuit 34 parallel-serial conversion circuit 41 address bus output from address conversion circuit 42 address bus output from CPU 51 image Address bus output from memory 52 Data bus input to CPU

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 縦、横がそれぞれ任意の画素数で構成さ
れた二次元画像データを、連続した複数画素分を一つの
単位としてアクセスできるように記憶した画像メモリ
と、 前記画像データの選択、読み出し、及び演算処理を行う
CPUと、 該CPUから出力された目的とする縮小率に縮小された
画像データに対するアドレスを、該CPUの制御に従っ
て、実際に前記画像メモリに記憶されている画像データ
に対するアドレスに変換し、この変換されたアドレスか
ら画像データの縮小率に応じた回数だけ連続してアドレ
スを順に出力するアドレス変換回路と、 該アドレス変換回路からのアドレスによって選択された
画像データを一時記憶するラッチ回路と、 該ラッチ回路に記憶された画像データから、前記目的と
する縮小率に応じた間引き率で間引かれたデータを取り
出すセレクタ回路と、 前記アドレス変換回路、ラッチ回路、及びセレクタ回路
に前記CPUがパラメータを設定するための制御線とを
含んで構成されていることを特徴とする画像縮小装置。
1. An image memory in which two-dimensional image data, each of which is composed of an arbitrary number of pixels in the vertical and horizontal directions, is stored so that a plurality of consecutive pixels can be accessed as one unit, and selection of the image data, A CPU that performs reading and arithmetic processing, and an address for the image data reduced to a target reduction ratio output from the CPU, according to the control of the CPU, for the image data actually stored in the image memory. An address conversion circuit that converts the address into addresses and sequentially outputs the addresses from the converted addresses the number of times corresponding to the reduction rate of the image data, and temporarily stores the image data selected by the address from the address conversion circuit. Latch circuit and the image data stored in the latch circuit at a thinning rate according to the target reduction rate. A selector circuit for taking out the drawn data, the address conversion circuit, a latch circuit, and an image reduction apparatus, wherein the CPU to the selector circuit is configured to include a control line for setting the parameters.
【請求項2】 請求項1の装置に、前記CPUと前記ア
ドレス変換回路とを接続するアドレスバスに画像データ
の任意の部分を選択するためのアドレスを出力でき、か
つ前記セレクタ回路から出力されたデータを1画素ずつ
のデータに変換するパラレル−シリアル変換回路と、画
像表示制御装置と、ディスプレイとを付加したことを特
徴とする画像縮小装置。
2. The apparatus according to claim 1, which can output an address for selecting an arbitrary portion of image data to an address bus connecting the CPU and the address conversion circuit, and which is output from the selector circuit. An image reduction device, comprising: a parallel-serial conversion circuit for converting data into data for each pixel, an image display control device, and a display.
JP5043831A 1993-03-04 1993-03-04 Picture reducing device Withdrawn JPH06259540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5043831A JPH06259540A (en) 1993-03-04 1993-03-04 Picture reducing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5043831A JPH06259540A (en) 1993-03-04 1993-03-04 Picture reducing device

Publications (1)

Publication Number Publication Date
JPH06259540A true JPH06259540A (en) 1994-09-16

Family

ID=12674703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5043831A Withdrawn JPH06259540A (en) 1993-03-04 1993-03-04 Picture reducing device

Country Status (1)

Country Link
JP (1) JPH06259540A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006048601A (en) * 2004-08-09 2006-02-16 Namco Ltd Program, information storage medium, and image generation system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006048601A (en) * 2004-08-09 2006-02-16 Namco Ltd Program, information storage medium, and image generation system

Similar Documents

Publication Publication Date Title
EP1847965A1 (en) Plotting device and plotting method
CN115103233B (en) Spliced wall system with built-in image processing in display area and control method and device thereof
US5563995A (en) Method and system for directly drawing a convex polygon having a given number of vertices with high speed
CN108230454B (en) Panorama picture cutting method and device and storage medium
JPH06259540A (en) Picture reducing device
JPH0934411A (en) Image display device and liquid crystal display controller
JP3024622B2 (en) Image processing device
JP2522070B2 (en) Segment data registration display method
JPH0652300A (en) Image processing device
JP2820068B2 (en) Image data synthesis display device
JPS638693A (en) Multi-processor for line drawing display
JPH07141325A (en) Signal processor
JP3517982B2 (en) Drawing device
JPH0329059A (en) Method and equipment for processing image
JPH0764524A (en) Image display device
KR0171156B1 (en) Three-dimensional image data arithmetic unit
JPH09146522A (en) Character display method, character display device, and terminal device of computer system
JPH083842B2 (en) Image processing method
JPS63316279A (en) Image processor
JPH0268672A (en) Address generating part for picture processing processor
JP2001211331A (en) Image compression equipment
JPS63311868A (en) Picture processing device
JPH06282252A (en) Drawing processor
JP2002182635A (en) Subtractive color conversion method for image data, display method for subtractive color image, and storage medium for realizing these method
JP2001126071A (en) Pipeline image processing apparatus and method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000509