patents.google.com

JPH08204951A - Image reduction method - Google Patents

  • ️Fri Aug 09 1996
【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】画像出力装置の画像縮小法に関す
る。
BACKGROUND OF THE INVENTION The present invention relates to an image reduction method for an image output device.

【0002】[0002]

【従来の技術】従来の画像縮小法は、原画像から単純に
画素を間引いて縮小するため、画像が欠落するなどの画
像劣化を生じた。これを防止する方法としてCQ出版社
インターフェース '93−1にあるような平均縮小法
が知られている。この平均縮小は、例えば原画像を16
分の1に縮小するならば、原画像を4×4の16画素単
位に区切り、区切った16画素の平均値を16分の1縮
小画の1画素とする縮小法である。しかし、従来の平均
縮小法は平均値を算出する処理に時間を要し、高速な動
作を要求されるシステムにおいては採用が困難であっ
た。
2. Description of the Related Art In a conventional image reduction method, pixels are simply thinned out from an original image to reduce the size of the original image, resulting in image deterioration such as image loss. As a method for preventing this, an average reduction method as known in CQ Publishing Company Interface '93 -1 is known. This average reduction is, for example, 16
If the image is reduced to one-half, it is a reduction method in which the original image is divided into 4 × 4 16-pixel units, and the average value of the 16 divided pixels is set to 1 pixel of the 1/16 reduced image. However, the conventional average reduction method requires time to calculate the average value, and is difficult to be adopted in a system that requires high-speed operation.

【0003】[0003]

【発明が解決しようとする課題】縮小画における画像劣
化を防止する従来の平均縮小法は、縮小処理に時間を要
するため、高速な動作を要求されるシステムに適用する
ことが困難であった。
The conventional average reduction method for preventing image deterioration in a reduced image requires time for reduction processing, and thus it is difficult to apply it to a system that requires high-speed operation.

【0004】そこで、本発明の目的は、平均縮小法にお
いて平均値を算出するために必要な画素の数を、特定の
条件の下に減少さることにより縮小処理時間の短縮を図
るとともに、効果的に縮小画における画像劣化を防止す
る画像縮小法を提供することにある。
Therefore, an object of the present invention is to reduce the number of pixels required to calculate the average value in the average reduction method under a specific condition, thereby shortening the reduction processing time and being effective. Another object of the present invention is to provide an image reduction method that prevents image deterioration in a reduced image.

【0005】[0005]

【課題を解決するための手段】本発明によれば、平均縮
小法において平均値を算出するために必要な画素を、本
発明による特定の条件の下に選出し、選出した画素の平
均値を縮小画の画素とすることにより、縮小画における
画像劣化の防止と、高速な縮小処理を実現する画像縮小
法が提供される。
According to the present invention, the pixels required for calculating the average value in the average reduction method are selected under the specific conditions according to the present invention, and the average value of the selected pixels is calculated. By using the pixels of the reduced image, an image reduction method that prevents image deterioration in the reduced image and realizes high-speed reduction processing is provided.

【0006】[0006]

【作用】本発明によれば、画像を平均縮小法により縮小
する際に、平均化操作に必要な画素の数を必要最小限に
するため、縮小画における画像劣化の防止処理を、短時
間に効率良く実現することができる。
According to the present invention, when the image is reduced by the average reduction method, the number of pixels required for the averaging operation is minimized to prevent the image deterioration in the reduced image in a short time. It can be realized efficiently.

【0007】[0007]

【実施例】【Example】

(実施例1)本発明の詳細な説明を行う前に、従来技術
とその問題点を説明する。
(Example 1) Prior to the detailed description of the present invention, a conventional technique and its problems will be described.

【0008】図1に従来の画像の16分の1縮小法を示
す。図1に示す丸印は1画素を表す。従来は図1に示す
ように、原画を16画素単位に区分けし、16画素中の
1画素(図中に黒丸で示す画素101〜109)を代表
としてサンプリングしていた。そして、サンプリングし
た代表画素を再配置することによって16分の1縮小画
を実現していた。
FIG. 1 shows a conventional 1/16 reduction method of an image. Circles shown in FIG. 1 represent one pixel. Conventionally, as shown in FIG. 1, an original image is divided into units of 16 pixels, and one pixel out of 16 pixels (pixels 101 to 109 indicated by black circles in the drawing) is sampled as a representative. Then, the sampled representative pixels are rearranged to realize a 1/16 reduced image.

【0009】図2に図1で示した従来技術の問題点を示
す。図2に示す16個の丸印は、16画素単位に区分け
された原画の1単位を示す。黒丸で示す画素201は代
表画素としてサンプリングされる画素である。白丸で示
す画素202〜216はサンプリングされない画素をで
ある。
FIG. 2 shows the problems of the prior art shown in FIG. The 16 circles shown in FIG. 2 indicate one unit of the original image divided into 16 pixel units. A pixel 201 indicated by a black circle is a pixel sampled as a representative pixel. Pixels 202 to 216 indicated by white circles are pixels that are not sampled.

【0010】従来技術では、原画に存在する図2に実線
で示す直線a、直線eは、16分の1縮小画においても
直線a、直線eは再現が可能であった。しかし、原画に
存在する図2に破線で示す直線、b、c、d、f、g、
hは、16分の1縮小画では再現することが不可能であ
った。このため、図2に示す16分の1縮小法では、画
像が欠落するという問題があった。
In the prior art, the straight lines a and e shown by the solid lines in FIG. 2 existing in the original image can be reproduced even in the 1/16 reduced image. However, the straight lines, b, c, d, f, g, shown in broken lines in FIG.
h could not be reproduced with a 1/16 reduced image. Therefore, the 1/16 reduction method shown in FIG. 2 has a problem that an image is missing.

【0011】上記の16分の1縮小画に生じる画像欠落
の解決法として、図3に示す縮小法が知られている。こ
の縮小法は201〜216の16画素全てをサンプリン
グし、16画素の平均を16分の1縮小画の1画素とす
るものである。この縮小法は、a、b、c、d、e、
f、g、hの全ての直線を16分の1縮小画において再
現することが可能であり、16分の1縮小画において画
像の欠落を生じることは無い。
A reduction method shown in FIG. 3 is known as a solution for the image loss occurring in the 1/16 reduced image. In this reduction method, all 16 pixels 201 to 216 are sampled, and the average of 16 pixels is set as one pixel of a 1/16 reduced image. This reduction method uses a, b, c, d, e,
It is possible to reproduce all the straight lines of f, g, and h in the 1/16 reduced image, and there is no loss of the image in the 1/16 reduced image.

【0012】ところが、この16画素平均縮小法は、1
画素を作り出すために15回の加算処理時間が不可欠で
ある。このため、加算処理に要する時間を与えることが
困難である高速な動作を要求されるシステムにおいて
は、適用することが不可能な場合があった。
However, this 16-pixel average reduction method requires 1
Fifteen addition processing times are indispensable to create pixels. For this reason, it may not be possible to apply it to a system that requires a high-speed operation in which it is difficult to give the time required for the addition processing.

【0013】以上、説明したように、従来技術では16
分の1縮小画に画像欠落を生じ、また、画像欠落を防止
するための縮小法は加算処理に時間を要し、高速な動作
を要求されるシステムでは適用が困難であった。
As described above, in the prior art, 16
An image dropout occurs in a one-half reduced image, and a reduction method for preventing the image dropout requires a long time for addition processing, and is difficult to apply to a system that requires high-speed operation.

【0014】以下に、本発明の実施例を説明する。Examples of the present invention will be described below.

【0015】図4に本発明による原画の16分の1縮小
法を示す。図4は図2と同様に、16画素単位に区分け
された原画の1単位を示す。本発明は、16画素の中か
ら画素201、画素206、画素211、画素216の
4画素をサンプリングし、サンプリングした4画素の平
均を16分の1縮小画の1画素とするものである。サン
プリングする4画素は、垂直方向に同一直線状に存在し
ないようにし、且つ、水平方向に同一直線状に存在しな
いようする。この手順に従ってサンプリングする4画素
を決定する。これにより、図4に実線で示す直線、a、
b、c、d、e、f、g、hを全てサンプリングするこ
とができる。従って、原画に存在する直線、a、b、
c、d、e、f、g、hは16分の1縮小画においても
全て再現され、画像の欠落を防ぐことができる。また、
従来の16画素平均縮小法が15回の加算が必要であっ
たのに対し、本発明に必要な加算回数は3回であり、従
来と比較して非常に高速に処理を行うことが可能であ
る。
FIG. 4 shows the 1/16 reduction method of the original image according to the present invention. Similar to FIG. 2, FIG. 4 shows one unit of an original image divided into 16 pixel units. According to the present invention, four pixels of the pixel 201, the pixel 206, the pixel 211, and the pixel 216 are sampled from the 16 pixels, and the average of the sampled four pixels is set as one pixel of the 1/16 reduced image. The four pixels to be sampled should not exist in the same straight line in the vertical direction, and should not exist in the same straight line in the horizontal direction. Four pixels to be sampled are determined according to this procedure. As a result, the straight line indicated by the solid line in FIG.
All b, c, d, e, f, g, h can be sampled. Therefore, the straight lines a, b,
All of c, d, e, f, g, and h are reproduced even in a 1/16 reduced image, and it is possible to prevent image loss. Also,
The conventional 16-pixel average reduction method requires 15 additions, whereas the present invention requires 3 additions, which makes it possible to perform processing at an extremely high speed as compared with the conventional method. is there.

【0016】図5に本発明の実現手段を示す。以下に図
5に示す各ブロックの役割と動作を説明する。
FIG. 5 shows a means for realizing the present invention. The role and operation of each block shown in FIG. 5 will be described below.

【0017】501は原画データを記憶する原画記憶手
段である。アドレス制御信号によって指定されたアドレ
スの原画データを読み出す。
Reference numeral 501 is an original image storage means for storing original image data. The original image data at the address specified by the address control signal is read.

【0018】502は原画データから縮小画データを算
出し、算出した縮小画データを記憶する画像縮小手段で
ある。取り込み信号によって原画データを取り込み、リ
セット信号によって記憶している縮小画データを消去す
る。
Reference numeral 502 denotes an image reducing means for calculating reduced image data from original image data and storing the calculated reduced image data. The original image data is captured by the capture signal, and the reduced image data stored is erased by the reset signal.

【0019】503は縮小画データを記憶する縮小画記
憶手段である。アドレス制御信号によってアドレスを指
定し、その後、書き込み信号を入力することによって指
定アドレスに縮小画データを記憶する。
Reference numeral 503 is a reduced image storage means for storing reduced image data. An address is designated by the address control signal, and then a write signal is inputted to store the reduced image data at the designated address.

【0020】504はシステム制御手段である。スター
ト信号によって動作を開始し、原画の縮小が完了すると
動作を終了する。役割として、原画記憶手段501の原
画データの読み出し制御、画像縮小手段502の原画デ
ータの取り込み制御とリセット制御、及び縮小画記憶手
段503の縮小画データの書き込み制御を行う。
Reference numeral 504 is a system control means. The operation is started by the start signal, and when the reduction of the original image is completed, the operation ends. As a role, it controls reading of original image data from the original image storage unit 501, control of taking in and resetting original image data of the image reducing unit 502, and writing control of reduced image data of the reduced image storage unit 503.

【0021】図6は、図5に示す画像縮小手段502の
詳細である。以下に図6に示す各ブロックの役割と動作
を説明する。
FIG. 6 shows details of the image reducing means 502 shown in FIG. The role and operation of each block shown in FIG. 6 will be described below.

【0022】601は原画データの加算を行う加算手段
である。
Reference numeral 601 is an adding means for adding the original image data.

【0023】602は加算手段601の加算結果を記憶
する結果記憶手段である。取り込み信号によって加算結
果を記憶し、リセット信号によって記憶を消去し、0を
出力する。
Reference numeral 602 is result storage means for storing the addition result of the addition means 601. The addition signal is stored by the fetch signal, the storage is erased by the reset signal, and 0 is output.

【0024】603は結果記憶手段602に記憶されて
いる加算結果の平均値を算出する平均化手段である。
Reference numeral 603 is an averaging means for calculating the average value of the addition results stored in the result storage means 602.

【0025】図7は、図5に示すシステム制御手段50
4の詳細である。なお、図7は原画記憶手段501の記
憶画素数を640×480画素、縮小画記憶手段503
の記憶画素数を160×120画素とした場合の構成で
ある。以下に図7に示す各ブロックの役割と動作を説明
する。
FIG. 7 shows the system control means 50 shown in FIG.
4 are the details. In FIG. 7, the number of pixels stored in the original image storage unit 501 is 640 × 480 pixels, and the reduced image storage unit 503.
This is a configuration in which the number of storage pixels is set to 160 × 120 pixels. The role and operation of each block shown in FIG. 7 will be described below.

【0026】701はクロック発生手段である。Reference numeral 701 is a clock generating means.

【0027】702は16進カウンタである。スタート
信号によりカウント値を0にリセットすると共に、クロ
ック発生手段701が発生するクロックのカウントを開
始する。また、エンド信号によってカウントを終了す
る。
Reference numeral 702 is a hexadecimal counter. The count value is reset to 0 by the start signal, and counting of the clock generated by the clock generating means 701 is started. Also, counting is ended by the end signal.

【0028】703は取り込み制御手段である。16進
カウンタ702がカウント値1、3、5、7を示し、そ
の直後にクロック発生手段701が発生するクロックに
よって取り込み信号を発生する。
Reference numeral 703 is an intake control means. The hexadecimal counter 702 indicates the count values 1, 3, 5, and 7, and immediately after that, the fetch signal is generated by the clock generated by the clock generation means 701.

【0029】704は書き込み制御手段である。16進
カウンタ702がカウント値12を示し、その直後にク
ロック発生手段701が発生するクロックによって書き
込み信号を発生する。
Reference numeral 704 is a write control means. The hexadecimal counter 702 indicates the count value 12, and immediately after that, the write signal is generated by the clock generated by the clock generating means 701.

【0030】705は4進カウンタ動作手段である。1
6進カウンタ702がカウント値2、4、6、8を示
し、その直後にクロック発生手段701が発生するクロ
ックによってパルスを発生する。
Reference numeral 705 is a quaternary counter operating means. 1
The hexadecimal counter 702 indicates the count values 2, 4, 6, and 8, and immediately thereafter, a pulse is generated by the clock generated by the clock generating means 701.

【0031】706は4進カウンタであり、0から3ま
でのカウント値を示す。カウント値は水平及び垂直の読
み出しアドレスの下位2ビットである。4進カウンタ動
作手段704の発生するパルスによってカウント動作を
行う。カウント値はスタート信号によって0にリセット
される。
Reference numeral 706 is a quaternary counter, which indicates a count value from 0 to 3. The count value is the lower 2 bits of the horizontal and vertical read addresses. The counting operation is performed by the pulse generated by the quaternary counter operating means 704. The count value is reset to 0 by the start signal.

【0032】707は垂直カウンタ動作手段である。1
6進カウンタ702がカウント値14を示し、その直後
にクロック発生手段701が発生するクロックによって
1発のパルスを発生する。
Reference numeral 707 is a vertical counter operating means. 1
The hexadecimal counter 702 indicates the count value 14, and immediately after that, one pulse is generated by the clock generated by the clock generation means 701.

【0033】708はリセット手段である。スタート信
号及び垂直カウンタ動作手段707が発生するパルスを
リセット信号として出力する。
Reference numeral 708 is reset means. The start signal and the pulse generated by the vertical counter operating means 707 are output as a reset signal.

【0034】709は垂直アドレスカウンタであり、0
から119までのカウント値を示す。カウント値は垂直
読み出しアドレスの上位5ビットであり、また、垂直書
き込みアドレスである。垂直カウンタ動作手段707が
発生するパルスによってカウント動作を行う。カウント
値はスタート信号によって0にリセットされる。
A vertical address counter 709 has a value of 0
The count values from 1 to 119 are shown. The count value is the upper 5 bits of the vertical read address and also the vertical write address. The counting operation is performed by the pulse generated by the vertical counter operating means 707. The count value is reset to 0 by the start signal.

【0035】710は水平カウンタ動作手段である。垂
直アドレスカウンタ709がカウント値119を示し、
その直後に垂直カウンタ動作手段707が発生するパル
スによって1発のパルスを出力する。
Reference numeral 710 is a horizontal counter operating means. The vertical address counter 709 indicates the count value 119,
Immediately thereafter, one pulse is output by the pulse generated by the vertical counter operating means 707.

【0036】711は水平アドレスカウンタであり、0
から159までのカウント値を示す。カウント値は水平
読み出しアドレスの上位6ビットであり、また、水平書
き込みアドレスである。水平カウンタ動作手段710が
発生するパルスによってカウント動作を行う。カウント
値はスタート信号によって0にリセットされる。
Reference numeral 711 is a horizontal address counter, which has a value of 0.
The count values from 1 to 159 are shown. The count value is the upper 6 bits of the horizontal read address, and is also the horizontal write address. The counting operation is performed by the pulse generated by the horizontal counter operating means 710. The count value is reset to 0 by the start signal.

【0037】712は動作終了指示手段である。水平ア
ドレスカウンタ711がカウント値159を示し、その
直後に水平カウンタ動作手段710が発生するパルスに
よってエンド信号を16進カウンタ702に対し発生す
る。
Reference numeral 712 is an operation end instruction means. The horizontal address counter 711 indicates the count value 159, and immediately after that, the horizontal counter operating means 710 generates an end signal to the hexadecimal counter 702 by the pulse generated.

【0038】図5の全体の動作を以下に説明する。ただ
し、原画記憶手段501の記憶画素数を640×480
画素、縮小画記憶手段503の記憶画素数を160×1
20画素とする。従って、水平読み出しアドレスは0か
ら639、垂直読み出しアドレスは0から479、水平
書き込みアドレスは0から159、垂直書き込みアドレ
スは0から119である。
The overall operation of FIG. 5 will be described below. However, the number of storage pixels of the original image storage unit 501 is 640 × 480.
The number of pixels stored in the pixel / reduced image storage unit 503 is 160 × 1.
20 pixels. Therefore, the horizontal read addresses are 0 to 639, the vertical read addresses are 0 to 479, the horizontal write addresses are 0 to 159, and the vertical write addresses are 0 to 119.

【0039】スタート信号によってシステム制御手段5
04が出力する水平及び垂直の読み出しアドレスと、水
平及び垂直書き込みアドレスが0にリセットされる。ま
た、スタート信号によってシステム制御手段504から
画像縮小手段502に対しリセット信号が出力され、画
像縮小手段502内の結果記憶手段602の出力が0に
リセットされる。リセット終了後縮小動作に移る。
System control means 5 according to the start signal
The horizontal and vertical read addresses and the horizontal and vertical write addresses output by 04 are reset to 0. Further, a reset signal is output from the system control unit 504 to the image reduction unit 502 by the start signal, and the output of the result storage unit 602 in the image reduction unit 502 is reset to zero. After resetting, move to reduction operation.

【0040】まず初めに、画像記憶手段501は水平ア
ドレス0、垂直アドレス0に存在する原画データを読み
出す。この原画データを画像縮小手段502内の加算手
段601が画像縮小手段502内の結果記憶手段602
の出力(ただし、この時の結果記憶手段602の出力は
0である)に加算する。その直後にシステム制御手段5
04が発生する取り込み信号によって、画像縮小手段5
02内の結果記憶手段602が画像縮小手段502内の
加算手段601の加算結果を記憶する。その後、システ
ム制御手段504は、水平及び垂直の読み出しアドレス
をそれぞれ1にする。
First, the image storage means 501 reads out original image data existing at horizontal address 0 and vertical address 0. The adding means 601 in the image reducing means 502 adds the original image data to the result storing means 602 in the image reducing means 502.
(However, the output of the result storage means 602 at this time is 0). Immediately after that, the system control means 5
Image reduction means 5 according to the capture signal generated by 04.
The result storage unit 602 in 02 stores the addition result of the addition unit 601 in the image reduction unit 502. After that, the system control unit 504 sets the horizontal and vertical read addresses to 1, respectively.

【0041】次に、画像記憶手段501は水平アドレス
1、垂直アドレス1に存在する原画データを読み出す。
この原画データを画像縮小手段502内の加算手段60
1が画像縮小手段502内の結果記憶手段602の出力
に加算する。その直後にシステム制御手段504が発生
する取り込み信号によって、画像縮小手段502内の結
果記憶手段602が画像縮小手段502内の加算手段6
01の加算結果を記憶する。その後、システム制御手段
504は、水平及び垂直の読み出しアドレスをそれぞれ
2にする。
Next, the image storage means 501 reads out the original image data existing at the horizontal address 1 and the vertical address 1.
This original image data is added to the adding means 60 in the image reducing means 502.
1 is added to the output of the result storage means 602 in the image reduction means 502. Immediately thereafter, the result storage means 602 in the image reducing means 502 causes the adding means 6 in the image reducing means 502 to operate in response to the capture signal generated by the system control means 504.
The addition result of 01 is stored. After that, the system control unit 504 sets the horizontal and vertical read addresses to 2.

【0042】次に、画像記憶手段501は水平アドレス
2、垂直アドレス2に存在する原画データを読み出す。
この原画データを画像縮小手段502内の加算手段60
1が画像縮小手段502内の結果記憶手段602の出力
に加算する。その直後にシステム制御手段504が発生
する取り込み信号によって、画像縮小手段502内の結
果記憶手段602が画像縮小手段502内の加算手段6
01の加算結果を記憶する。その後、システム制御手段
504は、水平及び垂直の読み出しアドレスをそれぞれ
3にする。
Next, the image storage means 501 reads out the original image data existing at the horizontal address 2 and the vertical address 2.
This original image data is added to the adding means 60 in the image reducing means 502.
1 is added to the output of the result storage means 602 in the image reduction means 502. Immediately thereafter, the result storage means 602 in the image reducing means 502 causes the adding means 6 in the image reducing means 502 to operate in response to the capture signal generated by the system control means 504.
The addition result of 01 is stored. After that, the system control unit 504 sets the horizontal and vertical read addresses to 3, respectively.

【0043】次に、画像記憶手段501は水平アドレス
3、垂直アドレス3に存在する原画データを読み出す。
この原画データを画像縮小手段502内の加算手段60
1によって画像縮小手段502内の結果記憶手段602
の出力に加算する。その直後にシステム制御手段504
が発生する取り込み信号によって、画像縮小手段502
内の結果記憶手段602が画像縮小手段502内の加算
手段601の加算結果を記憶する。その後、システム制
御手段504は、水平及び垂直の読み出しアドレスをそ
れぞれ0にする。
Next, the image storage means 501 reads out the original image data existing at the horizontal address 3 and the vertical address 3.
This original image data is added to the adding means 60 in the image reducing means 502.
The result storing means 602 in the image reducing means 502
Add to the output of. Immediately after that, the system control means 504
Image reduction means 502 according to the capture signal generated by
The result storage unit 602 in the inside stores the addition result of the addition unit 601 in the image reduction unit 502. After that, the system control unit 504 sets the horizontal and vertical read addresses to 0, respectively.

【0044】以上の動作によって4画素の加算が完了す
る。また、この時、画像縮小手段502内の平均化手段
603は、画像縮小手段502内の結果記憶手段602
が出力している4画素の平均値を出力する。
The above operation completes the addition of 4 pixels. At this time, the averaging means 603 in the image reducing means 502 has the result storing means 602 in the image reducing means 502.
The average value of the 4 pixels output by is output.

【0045】次に、システム制御手段504が縮小画記
憶手段503に書き込み信号を出力する。これにより縮
小画記憶手段503は、画像縮小手段502が出力する
平均値を縮小画データとして水平アドレス0、垂直アド
レス0の位置に書き込む。
Next, the system control means 504 outputs a write signal to the reduced image storage means 503. As a result, the reduced image storage unit 503 writes the average value output from the image reduction unit 502 as reduced image data at the horizontal address 0 and vertical address 0 positions.

【0046】次に、システム制御手段504は、水平読
み出しアドレスを0に、垂直読み出しアドレスを4に、
水平書き込みアドレスを0に、垂直書き込みアドレスを
1にすると同じに、画像縮小手段502に対し、リセッ
ト信号を出力する。このリセット信号により、画像縮小
手段502内の結果記憶手段602は、加算結果を消去
し、出力を0にする。
Next, the system control means 504 sets the horizontal read address to 0, the vertical read address to 4, and
Similarly, when the horizontal write address is set to 0 and the vertical write address is set to 1, a reset signal is output to the image reducing means 502. By this reset signal, the result storage unit 602 in the image reduction unit 502 erases the addition result and sets the output to 0.

【0047】以上の動作によって、16分の1縮小画の
1画素目が作り出され、次の16分の1縮小画の算出の
準備が整う。
By the above operation, the first pixel of the 1/16 reduced image is created, and the preparation for the calculation of the next 1/16 reduced image is completed.

【0048】次に、画像記憶手段501は水平アドレス
0、垂直アドレス4に存在する原画データを読み出す。
この原画データを画像縮小手段502内の加算手段60
1が画像縮小手段502内の結果記憶手段602の出力
(ただし、この時の結果記憶手段602の出力は0であ
る)に加算する。その直後にシステム制御手段504が
発生する取り込み信号によって、画像縮小手段502内
の結果記憶手段602が画像縮小手段502内の加算手
段601の加算結果を記憶する。その後、システム制御
手段504は、水平読み出しアドレスを1、垂直読み出
しアドレス5にする。
Next, the image storage means 501 reads out the original image data existing at the horizontal address 0 and the vertical address 4.
This original image data is added to the adding means 60 in the image reducing means 502.
1 is added to the output of the result storage means 602 in the image reduction means 502 (however, the output of the result storage means 602 at this time is 0). Immediately after that, the result storage means 602 in the image reduction means 502 stores the addition result of the addition means 601 in the image reduction means 502 in response to the capture signal generated by the system control means 504. After that, the system control unit 504 sets the horizontal read address to 1 and the vertical read address 5.

【0049】次に、画像記憶手段501は水平アドレス
1、垂直アドレス5に存在する原画データを読み出す。
この原画データを画像縮小手段502内の加算手段60
1が画像縮小手段502内の結果記憶手段602の出力
に加算する。その直後にシステム制御手段504が発生
する取り込み信号によって、画像縮小手段502内の結
果記憶手段602が画像縮小手段502内の加算手段6
01の加算結果を記憶する。その後、システム制御手段
504は、水平読み出しアドレスを2、垂直読み出しア
ドレス6にする。
Next, the image storage means 501 reads out the original image data existing at the horizontal address 1 and the vertical address 5.
This original image data is added to the adding means 60 in the image reducing means 502.
1 is added to the output of the result storage means 602 in the image reduction means 502. Immediately thereafter, the result storage means 602 in the image reducing means 502 causes the adding means 6 in the image reducing means 502 to operate in response to the capture signal generated by the system control means 504.
The addition result of 01 is stored. After that, the system control unit 504 sets the horizontal read address to 2 and the vertical read address 6.

【0050】次に、画像記憶手段501は水平アドレス
2、垂直アドレス6に存在する原画データを読み出す。
この原画データを画像縮小手段502内の加算手段60
1が画像縮小手段502内の結果記憶手段602の出力
に加算する。その直後にシステム制御手段504が発生
する取り込み信号によって、画像縮小手段502内の結
果記憶手段602が画像縮小手段502内の加算手段6
01の加算結果を記憶する。その後、システム制御手段
504は、水平読み出しアドレスを3、垂直読み出しア
ドレス7にする。
Next, the image storage means 501 reads out the original image data existing at the horizontal address 2 and the vertical address 6.
This original image data is added to the adding means 60 in the image reducing means 502.
1 is added to the output of the result storage means 602 in the image reduction means 502. Immediately thereafter, the result storage means 602 in the image reducing means 502 causes the adding means 6 in the image reducing means 502 to operate in response to the capture signal generated by the system control means 504.
The addition result of 01 is stored. After that, the system control unit 504 sets the horizontal read address to 3 and the vertical read address 7.

【0051】次に、画像記憶手段501は水平アドレス
3、垂直アドレス7に存在する原画データを読み出す。
この原画データを画像縮小手段502内の加算手段60
1が画像縮小手段502内の結果記憶手段602の出力
に加算する。その直後にシステム制御手段504が発生
する取り込み信号によって、画像縮小手段502内の結
果記憶手段602が画像縮小手段502内の加算手段6
01の加算結果を記憶する。その後、システム制御手段
504は、水平読み出しアドレスを0、垂直読み出しア
ドレス4にする。
Next, the image storage means 501 reads out the original image data existing at the horizontal address 3 and the vertical address 7.
This original image data is added to the adding means 60 in the image reducing means 502.
1 is added to the output of the result storage means 602 in the image reduction means 502. Immediately thereafter, the result storage means 602 in the image reducing means 502 causes the adding means 6 in the image reducing means 502 to operate in response to the capture signal generated by the system control means 504.
The addition result of 01 is stored. After that, the system control unit 504 sets the horizontal read address to 0 and the vertical read address 4.

【0052】以上の動作によって4画素の加算が完了す
る。また、この時、画像縮小手段502内の平均化手段
603は同結果記憶手段602が出力している4画素の
平均値を出力する。
The above operation completes the addition of four pixels. At this time, the averaging means 603 in the image reducing means 502 outputs the average value of the four pixels output from the result storage means 602.

【0053】次に、システム制御手段504が縮小画記
憶手段503に書き込み信号を出力する。これにより縮
小画記憶手段503は、画像縮小手段502が出力する
平均値を縮小画データとして水平アドレス0、垂直アド
レス1の位置に書き込む。
Next, the system control means 504 outputs a write signal to the reduced image storage means 503. As a result, the reduced image storage unit 503 writes the average value output by the image reduction unit 502 as reduced image data at the positions of horizontal address 0 and vertical address 1.

【0054】次に、システム制御手段504は、水平読
み出しアドレスを0に、垂直読み出しアドレスを8に、
水平書き込みアドレスを0に、垂直書き込みアドレスを
2にすると同じに、画像縮小手段502に対し、リセッ
ト信号を出力する。このリセット信号により、画像縮小
手段502内の結果記憶手段602は、加算結果を消去
し、出力を0にする。
Next, the system control means 504 sets the horizontal read address to 0, the vertical read address to 8 and
Similarly, when the horizontal write address is set to 0 and the vertical write address is set to 2, a reset signal is output to the image reducing means 502. By this reset signal, the result storage unit 602 in the image reduction unit 502 erases the addition result and sets the output to 0.

【0055】以上の動作によって、16分の1縮小画の
2画素目が作り出され、次の16分の1縮小画の算出の
準備が整う。
By the above operation, the second pixel of the 1/16 reduced image is created, and the preparation for the calculation of the next 1/16 reduced image is completed.

【0056】以下、同様の動作を繰返し、最後の16分
の1縮小画素の算出まで動作を行う。
Thereafter, the same operation is repeated until the calculation of the final 1/16 reduced pixel.

【0057】最後の16分の1縮小画素、160×12
0画素目の算出動作を以下に説明する。
The final 1/16 reduced pixel, 160 × 12
The calculation operation of the 0th pixel will be described below.

【0058】画像記憶手段501は水平アドレス63
6、垂直アドレス476に存在する原画データを読み出
す。この原画データを画像縮小手段502内の加算手段
601が画像縮小手段502内の結果記憶手段602の
出力(ただし、この時の結果記憶手段602の出力は0
である)に加算する。その直後にシステム制御手段50
4が発生する取り込み信号によって、画像縮小手段50
2内の結果記憶手段602が同加算手段601の加算結
果を記憶する。その後、システム制御手段504は、水
平読み出しアドレスを637、垂直読み出しアドレス4
77にする。
The image storage means 501 has a horizontal address 63.
6. Read the original image data existing at the vertical address 476. The adding means 601 in the image reducing means 502 outputs this original image data to the result storing means 602 in the image reducing means 502 (however, the output of the result storing means 602 at this time is 0).
Is added). Immediately after that, the system control means 50
Image reduction means 50 according to the capture signal generated by
The result storage unit 602 in 2 stores the addition result of the addition unit 601. After that, the system control unit 504 sets the horizontal read address 637 and the vertical read address 4
Set to 77.

【0059】次に、画像記憶手段501は水平アドレス
637、垂直アドレス477に存在する原画データを読
み出す。この原画データを画像縮小手段502内の加算
手段601が画像縮小手段502内の結果記憶手段60
2の出力に加算する。その直後にシステム制御手段50
4が発生する取り込み信号によって、画像縮小手段50
2内の結果記憶手段602が画像縮小手段502内の加
算手段601の加算結果を記憶する。その後、システム
制御手段504は、水平読み出しアドレスを638、垂
直読み出しアドレス478にする。
Next, the image storage means 501 reads the original image data existing at the horizontal address 637 and the vertical address 477. The adding means 601 in the image reducing means 502 converts the original image data into the result storing means 60 in the image reducing means 502.
Add to the output of 2. Immediately after that, the system control means 50
Image reduction means 50 according to the capture signal generated by
The result storage unit 602 in 2 stores the addition result of the addition unit 601 in the image reduction unit 502. After that, the system control unit 504 sets the horizontal read address to 638 and the vertical read address 478.

【0060】次に、画像記憶手段501は水平アドレス
638、垂直アドレス478に存在する原画データを読
み出す。この原画データを画像縮小手段502内の加算
手段601が画像縮小手段502内の結果記憶手段60
2の出力に加算する。その直後にシステム制御手段50
4が発生する取り込み信号によって、画像縮小手段50
2内の結果記憶手段602が画像縮小手段502内の加
算手段601の加算結果を記憶する。その後、システム
制御手段504は、水平読み出しアドレスを639、垂
直読み出しアドレス479にする。
Next, the image storage means 501 reads the original image data existing at the horizontal address 638 and the vertical address 478. The adding means 601 in the image reducing means 502 converts the original image data into the result storing means 60 in the image reducing means 502.
Add to the output of 2. Immediately after that, the system control means 50
Image reduction means 50 according to the capture signal generated by
The result storage unit 602 in 2 stores the addition result of the addition unit 601 in the image reduction unit 502. After that, the system control unit 504 sets the horizontal read address to 639 and the vertical read address 479.

【0061】次に、画像記憶手段501は水平アドレス
639、垂直アドレス479に存在する原画データを読
み出す。この原画データを画像縮小手段502内の加算
手段601が画像縮小手段502内の結果記憶手段60
2の出力に加算する。その直後にシステム制御手段50
4が発生する取り込み信号によって、画像縮小手段50
2内の結果記憶手段602が画像縮小手段502内の加
算手段601の加算結果を記憶する。その後、システム
制御手段504は、水平読み出しアドレスを636、垂
直読み出しアドレス476にする。
Next, the image storage means 501 reads out the original image data existing at the horizontal address 639 and the vertical address 479. The adding means 601 in the image reducing means 502 converts the original image data into the result storing means 60 in the image reducing means 502.
Add to the output of 2. Immediately after that, the system control means 50
Image reduction means 50 according to the capture signal generated by
The result storage unit 602 in 2 stores the addition result of the addition unit 601 in the image reduction unit 502. After that, the system control unit 504 sets the horizontal read address to 636 and the vertical read address 476.

【0062】以上の動作によって4画素の加算が完了す
る。また、この時、画像縮小手段502内の平均化手段
603は同結果記憶手段602が出力している4画素の
平均値を出力する。
With the above operation, the addition of 4 pixels is completed. At this time, the averaging means 603 in the image reducing means 502 outputs the average value of the four pixels output from the result storage means 602.

【0063】次に、システム制御手段504が縮小画記
憶手段503に書き込み信号を出力する。これにより縮
小画記憶手段503は、画像縮小手段502が出力する
平均値を縮小画データとして水平アドレス159、垂直
アドレス119の位置に書き込む。
Next, the system control means 504 outputs a write signal to the reduced image storage means 503. As a result, the reduced image storage unit 503 writes the average value output by the image reduction unit 502 as reduced image data at the positions of the horizontal address 159 and the vertical address 119.

【0064】次に、システム制御手段504は、水平読
み出しアドレスを0に、垂直読み出しアドレスを0に、
水平書き込みアドレスを0に、垂直書き込みアドレスを
0にすると同じに、画像縮小手段502に対し、リセッ
ト信号を出力する。このリセット信号により、画像縮小
手段502内の結果記憶手段602は、加算結果を消去
し、出力を0にする。また、この時、システム制御手5
04段内の動作終了手段712がエンド信号を発生し、
これにより、システム制御手504段内の16進カウン
タ701が停止し、システム制御手段504の全動作が
停止する。
Next, the system control means 504 sets the horizontal read address to 0, the vertical read address to 0,
Similarly, when the horizontal write address is set to 0 and the vertical write address is set to 0, a reset signal is output to the image reducing means 502. By this reset signal, the result storage unit 602 in the image reduction unit 502 erases the addition result and sets the output to 0. At this time, the system control hand 5
The operation ending means 712 in the 04th stage generates an end signal,
As a result, the hexadecimal counter 701 in the system controller 504 is stopped, and the entire operation of the system controller 504 is stopped.

【0065】以上の動作により160×120画素の算
出が全て終了し、16分の1縮小画が完成する。
By the above operation, the calculation of 160 × 120 pixels is completed, and the 1/16 reduced image is completed.

【0066】(実施例2)図8に図4に示した本発明の
他の実現手段を示す。以下に図8に示す各ブロックの説
明をする。
(Second Embodiment) FIG. 8 shows another means for realizing the present invention shown in FIG. Each block shown in FIG. 8 will be described below.

【0067】501は、原画データを記憶す原画記憶手
段である。図5に示す原画記憶手段501と同一のもの
である。
Reference numeral 501 is an original image storage means for storing original image data. It is the same as the original image storage means 501 shown in FIG.

【0068】503は、縮小画データを記憶する縮小画
記憶手段である。図5に示す縮小画記憶手段503と同
一のものである。
Reference numeral 503 is a reduced image storage means for storing reduced image data. It is the same as the reduced image storage unit 503 shown in FIG.

【0069】801は、マイコンである。図5に示す画
像縮小手段502とシステム制御手段504の両方の役
割を果たす。原画記憶手段501の読み出し制御、縮小
画記憶手段503の書き込み制御、及び縮小画データの
算出をスタート信号により開始する。
Reference numeral 801 is a microcomputer. It plays the roles of both the image reduction unit 502 and the system control unit 504 shown in FIG. The read control of the original image storage unit 501, the write control of the reduced image storage unit 503, and the reduced image data calculation are started by a start signal.

【0070】図9に図8の動作を示す流れ図を示す。以
下に図9の説明をする。
FIG. 9 is a flow chart showing the operation of FIG. The following is a description of FIG. 9.

【0071】901においてスタート信号を受付ける。At 901, a start signal is accepted.

【0072】902に示すXoは水平読み出しアドレス
の上位8ビットであり、Yoは垂直読み出しアドレスの
上位7ビットである。902において、Xo、Yoそれ
ぞれを0にリセットする。以下、Xoを水平上位読み出
しアドレス、Yoを垂直上位読み出しアドレスと呼ぶ。
Xo indicated by 902 is the upper 8 bits of the horizontal read address, and Yo is the upper 7 bits of the vertical read address. At 902, Xo and Yo are reset to 0. Hereinafter, Xo is called a horizontal upper read address and Yo is called a vertical upper read address.

【0073】903に示すXdは水平書き込みアドレス
であり、Ydは垂直書き込みアドレスである。903に
おいてXd、Ydをそれぞれ0にリセットする。
Xd indicated by 903 is a horizontal write address, and Yd is a vertical write address. At 903, Xd and Yd are reset to 0.

【0074】904に示すRはマイコン504内のレジ
スタである。904においてRを0にリセットする。
R shown at 904 is a register in the microcomputer 504. At 904, R is reset to 0.

【0075】905に示すaは水平読み出しアドレスの
下位2ビットである。905において0にリセットす
る。以下、aを水平読み出し下位アドレスと呼ぶ。
Reference numeral a shown at 905 is the lower 2 bits of the horizontal read address. Reset to 0 at 905. Hereinafter, a is called a horizontal read lower address.

【0076】906に示すbは垂直読み出しアドレスの
下位2ビットである。以下、bを垂直下位読み出しアド
レスと呼ぶ。906において垂直下位読み出しアドレス
bを水平下位読み出しアドレスaに一致させる。
Reference numeral 906b indicates the lower 2 bits of the vertical read address. Hereinafter, b is called a vertical lower read address. At 906, the vertical lower read address b is matched with the horizontal lower read address a.

【0077】907に示すXo+aは水平読み出しアド
レスであり、Yo+bは垂直読み出しアドレスであり、
Do(Xo+a,Yo+b)は原画記憶手段501の水
平アドレスXo+a、垂直アドレスXd+bに存在する
原画データである。907において原画データの累積を
行う。
Xo + a shown in 907 is a horizontal read address, Yo + b is a vertical read address,
Do (Xo + a, Yo + b) is original image data existing at the horizontal address Xo + a and the vertical address Xd + b of the original image storage means 501. At 907, original image data is accumulated.

【0078】908においてaに1を加える。At 908, 1 is added to a.

【0079】909において、aと4を比較する。これ
により、原画記憶手段501から4画素分の原画データ
を読み出し、加算を終了したか否かを判断する。aが4
未満ならば907の処理を、aが4以上ならば910の
処理を行う。
At 909, a and 4 are compared. As a result, the original image data for four pixels is read from the original image storage unit 501 and it is determined whether or not the addition is completed. a is 4
If it is less than 907, the process of 907 is performed. If a is 4 or more, the process of 910 is performed.

【0080】910に示すDd(Xd,Yd)は、縮小
画記憶手段503の水平アドレスXd、垂直アドレスY
dの位置である。910において縮小画記憶手段503
に、4画素の平均値を書き込む。
Dd (Xd, Yd) 910 is the horizontal address Xd and vertical address Y of the reduced image storage means 503.
This is the position of d. In 910, reduced image storage means 503
In, the average value of 4 pixels is written.

【0081】911においてYoに4を加える。At 911, 4 is added to Yo.

【0082】912においてYdに1を加える。At 912, 1 is added to Yd.

【0083】913において、縮小画記憶手段503の
垂直1ラインに、120画素分の縮小画データの書き込
みを終了したか否かを判断する。終了したならば914
の処理を、終了していないならば904の処理を行う。
At 913, it is judged whether or not the writing of the reduced image data for 120 pixels has been completed in one vertical line of the reduced image storage means 503. 914 when finished
If not completed, the process of 904 is performed.

【0084】914においてXoに4を加える。At 914, 4 is added to Xo.

【0085】915においてXdに1を加える。At 915, 1 is added to Xd.

【0086】916において、160本の垂直ライン全
てに、縮小画データの書き込みを終了したか否かを判断
する。終了したならば919の処理を、終了していない
ならば917の処理を行う。
At 916, it is determined whether or not the writing of the reduced image data has been completed for all 160 vertical lines. If it is completed, the processing of 919 is performed, and if it is not completed, the processing of 917 is performed.

【0087】917においてYoを0にリセットする。At 917, Yo is reset to 0.

【0088】918においてYdを0にリセットする。At 918, Yd is reset to 0.

【0089】919において全ての処理を終了する。At 919, all the processes are completed.

【0090】以下に、図9を用いて図8の全体の動作を
説明する。
The overall operation of FIG. 8 will be described below with reference to FIG.

【0091】最初に901において、スタート信号を受
付け動作を開始する。
First, at 901, a start signal is received to start the operation.

【0092】次に902において、水平及び垂直の読み
出しアドレスを0にリセットする。
Next, at 902, the horizontal and vertical read addresses are reset to zero.

【0093】次に903において、水平及び垂直の書き
込みアドレスを0にする。
Next, at 903, the horizontal and vertical write addresses are set to 0.

【0094】次に904において、マイコン801内の
レジスタRを0にリセットする。
Next, at 904, the register R in the microcomputer 801 is reset to 0.

【0095】次に905において、水平読み出し下位ア
ドレスaを0にリセットする。
Next, at 905, the horizontal read lower address a is reset to 0.

【0096】次に906において、垂直下位読み出しア
ドレスbを水平読み出し下位アドレスaに一致させる。
これにより、垂直下位読み出しアドレスbを0にする。
Next, at 906, the vertical lower read address b is made to match the horizontal lower read address a.
As a result, the lower vertical read address b is set to 0.

【0097】次に907において、原画像記憶手段50
1の水平アドレス0、垂直アドレス0に存在する原画デ
ータをマイコン801内のレジスタRに加算する。
Next, at 907, the original image storage means 50.
The original image data existing at the horizontal address 0 and the vertical address 0 of 1 is added to the register R in the microcomputer 801.

【0098】次に908において、水平下位読み出しア
ドレスaに1を加える。これにより、水平下位読み出し
アドレスaを1にする。
Next, at 908, 1 is added to the horizontal lower read address a. As a result, the horizontal lower read address a is set to 1.

【0099】次に909において、水平下位読み出しア
ドレスaと4を比較する。a<4が成立するので906
の動作に移る。
Next, at 909, the horizontal lower read address a is compared with 4. Since a <4 holds, 906
Move on to the operation.

【0100】次に906において、垂直下位読み出しア
ドレスbを水平読み出し下位アドレスaに一致させる。
これにより、垂直下位読み出しアドレスbを1にする。
Next, at 906, the vertical lower read address b is matched with the horizontal lower read address a.
As a result, the lower vertical read address b is set to 1.

【0101】次に907において、原画記憶手段501
の水平アドレス1、垂直アドレス1に存在する原画デー
タをマイコン801内のレジスタRに加算する。
Next, at 907, the original image storage means 501.
The original image data existing at the horizontal address 1 and the vertical address 1 is added to the register R in the microcomputer 801.

【0102】次に908において、水平下位読み出しア
ドレスaに1を加える。これにより、水平下位読み出し
アドレスaを2にする。
Next, at 908, 1 is added to the horizontal lower read address a. As a result, the horizontal lower read address a is set to 2.

【0103】次に909において、水平下位読み出しア
ドレスaと4を比較する。a<4が成立するので906
の動作に移る。
Next, at 909, the horizontal lower read address a is compared with 4. Since a <4 holds, 906
Move on to the operation.

【0104】次に906において、垂直下位読み出しア
ドレスbを水平読み出し下位アドレスaに一致させる。
これにより、垂直下位読み出しアドレスbを2にする。
Next, at 906, the vertical lower read address b is matched with the horizontal lower read address a.
As a result, the lower vertical read address b is set to 2.

【0105】次に907において、原画記憶手段501
の水平アドレス2、垂直アドレス2に存在する原画デー
タをマイコン801内のレジスタRに加算する。
Next, at 907, the original image storage means 501.
The original image data existing at the horizontal address 2 and the vertical address 2 are added to the register R in the microcomputer 801.

【0106】次に908において、水平下位読み出しア
ドレスaに1を加える。これにより、水平下位読み出し
アドレスaを3にする。
Next, at 908, 1 is added to the horizontal lower read address a. As a result, the horizontal lower read address a is set to 3.

【0107】次に909において、水平下位読み出しア
ドレスaと4を比較する。a<4が成立するので906
の動作に移る。
Next, at 909, the horizontal lower read address a is compared with 4. Since a <4 holds, 906
Move on to the operation.

【0108】次に906において、垂直下位読み出しア
ドレスbを水平読み出し下位アドレスaに一致させる。
これにより、垂直下位読み出しアドレスbを3にする。
Next, at 906, the vertical lower read address b is matched with the horizontal lower read address a.
As a result, the vertical lower read address b is set to 3.

【0109】次に907におて、原画記憶手段501の
水平アドレス3、垂直アドレス3に存在する原画データ
をマイコン801内のレジスタRに加算する。
Next, at 907, the original image data existing at the horizontal address 3 and the vertical address 3 of the original image storage means 501 is added to the register R in the microcomputer 801.

【0110】次に908において、水平下位読み出しア
ドレスaに1を加える。これにより、水平下位読み出し
アドレスaを4にする。
Next, at 908, 1 is added to the horizontal lower read address a. As a result, the horizontal lower read address a is set to 4.

【0111】次に909において、水平下位読み出しア
ドレスaと4を比較する。a<4が不成立となるので9
10の動作に移る。この時点で4画素の加算が完了す
る。
Next, at 909, the horizontal lower read address a is compared with 4. 9 because a <4 is not satisfied
Move on to operation 10. At this point, the addition of 4 pixels is completed.

【0112】次に910おいて、縮小画記憶手段503
の水平アドレス0、垂直アドレス0の位置に4画素の平
均値R/4を書き込む。
Next, at 910, the reduced image storage means 503.
The average value R / 4 of 4 pixels is written at the position of horizontal address 0 and vertical address 0 of.

【0113】次に911において、垂直上位読み出しア
ドレスYoに4を加える。これにより、垂直上位読み出
しアドレスYoを4にする。
Next, at 911, 4 is added to the vertical upper read address Yo. As a result, the vertical upper read address Yo is set to 4.

【0114】次に912において、垂直書き込みアドレ
スYdに1を加える。これにより、垂直書き込みアドレ
スを1にする。
Next, at 912, 1 is added to the vertical write address Yd. As a result, the vertical write address is set to 1.

【0115】次に913において、垂直書き込みアドレ
スYdと120を比較する。Yd<120が成立するの
で904の動作に移る。この時点で、16分の1縮小画
の1画素目の生成が完了する。
Next, at 913, the vertical write address Yd is compared with 120. Since Yd <120 is established, the operation moves to 904. At this point, the generation of the first pixel of the 1/16 reduced image is completed.

【0116】次に904において、マイコン801内の
レジスタRを0にリセットする。
Next, at 904, the register R in the microcomputer 801 is reset to 0.

【0117】次に905において、水平読み出し下位ア
ドレスaを0にリセットする。
Next, at 905, the horizontal read lower address a is reset to 0.

【0118】次に906において、垂直下位読み出しア
ドレスbを水平読み出し下位アドレスaに一致させる。
これにより、垂直下位読み出しアドレスbを0にする。
Next, at 906, the vertical lower read address b is matched with the horizontal lower read address a.
As a result, the lower vertical read address b is set to 0.

【0119】次に907において、原画像記憶手段50
1の水平アドレス0、垂直アドレス4に存在する原画デ
ータをマイコン801内のレジスタRに加算する。
Next, at 907, the original image storage means 50.
The original image data existing at the horizontal address 0 and vertical address 4 of 1 is added to the register R in the microcomputer 801.

【0120】次に908において、水平下位読み出しア
ドレスaに1を加える。これにより、水平下位読み出し
アドレスaを1にする。
Next, at 908, 1 is added to the horizontal lower read address a. As a result, the horizontal lower read address a is set to 1.

【0121】次に909において、水平下位読み出しア
ドレスaと4を比較する。a<4が成立するので906
の動作に移る。
Next, at 909, the horizontal lower read address a is compared with 4. Since a <4 holds, 906
Move on to the operation.

【0122】次に906において、垂直下位読み出しア
ドレスbを水平読み出し下位アドレスaに一致させる。
これにより、垂直下位読み出しアドレスbを1にする。
Next, at 906, the vertical lower read address b is matched with the horizontal lower read address a.
As a result, the lower vertical read address b is set to 1.

【0123】次に907において、原画記憶手段501
の水平アドレス1、垂直アドレス4に存在する原画デー
タをマイコン801内のレジスタRに加算する。
Next, at 907, the original image storage means 501.
The original image data existing at the horizontal address 1 and the vertical address 4 is added to the register R in the microcomputer 801.

【0124】次に908において、水平下位読み出しア
ドレスaに1を加える。これにより、水平下位読み出し
アドレスaを2にする。
Next, at 908, 1 is added to the horizontal lower read address a. As a result, the horizontal lower read address a is set to 2.

【0125】次に909において、水平下位読み出しア
ドレスaと4を比較する。a<4が成立するので906
の動作に移る。
Next, at 909, the horizontal lower read address a is compared with 4. Since a <4 holds, 906
Move on to the operation.

【0126】次に906において、垂直下位読み出しア
ドレスbを水平読み出し下位アドレスaに一致させる。
これにより、垂直下位読み出しアドレスbを2にする。
Next, at 906, the vertical lower read address b is matched with the horizontal lower read address a.
As a result, the lower vertical read address b is set to 2.

【0127】次に907において、原画記憶手段501
の水平アドレス2、垂直アドレス6に存在する原画デー
タをマイコン801内のレジスタRに加算する。
Next, at 907, the original image storage means 501.
The original image data existing at the horizontal address 2 and the vertical address 6 is added to the register R in the microcomputer 801.

【0128】次に908において、水平下位読み出しア
ドレスaに1を加える。これにより、水平下位読み出し
アドレスaを3にする。
Next, at 908, 1 is added to the horizontal lower read address a. As a result, the horizontal lower read address a is set to 3.

【0129】次に909において、下位読み出しアドレ
スaと4を比較する。a<4が成立するので906の動
作に移る。
Next, at 909, the lower read addresses a and 4 are compared. Since a <4 is established, the operation moves to 906.

【0130】次に906において、垂直下位読み出しア
ドレスbを水平読み出し下位アドレスaに一致させる。
これにより、垂直下位読み出しアドレスbを3にする。
Next, at 906, the vertical lower read address b is made to match the horizontal lower read address a.
As a result, the vertical lower read address b is set to 3.

【0131】次に907におて、原画記憶手段501の
水平アドレス3、垂直アドレス7に存在する原画データ
をマイコン801内のレジスタRに加算する。
Next, at 907, the original image data existing at the horizontal address 3 and the vertical address 7 of the original image storage means 501 is added to the register R in the microcomputer 801.

【0132】次に908において、下位読み出しアドレ
スaに1を加える。これにより、水平下位読み出しアド
レスaを4にする。
Next, at 908, 1 is added to the lower read address a. As a result, the horizontal lower read address a is set to 4.

【0133】次に909において、下位読み出しアドレ
スaと4を比較する。a<4が不成立となるので910
の動作に移る。この時点で4画素の加算が完了する。
Next, at 909, the lower read addresses a and 4 are compared. Since a <4 is not established, 910
Move on to the operation. At this point, the addition of 4 pixels is completed.

【0134】次に910おいて、縮小画記憶手段503
の水平アドレス0、垂直アドレス1の位置に4画素の平
均値R/4を書き込む。
Next, at 910, reduced image storage means 503.
The average value R / 4 of 4 pixels is written in the positions of the horizontal address 0 and the vertical address 1.

【0135】次に911において、垂直上位読み出しア
ドレスYoに4を加える。これにより、垂直上位読み出
しアドレスYoを8にする。
Next, at 911, 4 is added to the vertical upper read address Yo. As a result, the vertical upper read address Yo is set to 8.

【0136】次に912において、垂直書き込みアドレ
スYdに1を加える。これにより、垂直書き込みアドレ
スを2にする。
Next, at 912, 1 is added to the vertical write address Yd. As a result, the vertical write address is set to 2.

【0137】次に913において、垂直書き込みアドレ
スYdと120を比較する。Yd<120が成立するの
で904の動作に移る。この時点で、16分の1縮小画
の2画素目の生成が完了する。
Next, at 913, the vertical write address Yd is compared with 120. Since Yd <120 is established, the operation moves to 904. At this point, the generation of the second pixel of the 1/16 reduced image is completed.

【0138】以上説明した904〜913の動作を繰返
し行い、16分の1縮小画の3画素目以降の画素生成を
行う。
The operations 904 to 913 described above are repeated to generate pixels for the third and subsequent pixels of the 1/16 reduced image.

【0139】以下に、910において縮小画記憶手段5
03の水平アドレス0、垂直アドレス119の位置への
120画素目の16分の1縮小画素の書き込んだものと
し、911以降の動作を説明する。
Below, at 910, the reduced image storage means 5
It is assumed that the 1/16 reduced pixel of the 120th pixel is written in the position of horizontal address 0 and vertical address 119 of 03, and the operation after 911 will be described.

【0140】911において、垂直上位読み出しアドレ
スYoに4を加える。これにより、垂直上位読み出しア
ドレスYoを480にする。
At 911, 4 is added to the vertical upper read address Yo. As a result, the vertical upper read address Yo is set to 480.

【0141】次に912において、垂直書き込みアドレ
スYdに1を加える。これにより、垂直書き込みアドレ
スYdを120にする。
Next, at 912, 1 is added to the vertical write address Yd. As a result, the vertical write address Yd is set to 120.

【0142】次に913において、垂直書き込みアドレ
スYdと120を比較する。Yd<120が不成立とな
るので913の動作に移る。
Next, at 913, the vertical write address Yd is compared with 120. Since Yd <120 is not established, the operation moves to 913.

【0143】次に914において、水平上位読み出しア
ドレスXoに4を加える。これにより、水平上位読み出
しアドレスXoを4にする。
Next, at 914, 4 is added to the horizontal upper read address Xo. As a result, the horizontal upper read address Xo is set to 4.

【0144】次に915において、水平書き込みアドレ
スXdに1を加える。これにより、水平書き込みアドレ
スXdを1にする。
Next, at 915, 1 is added to the horizontal write address Xd. As a result, the horizontal write address Xd is set to 1.

【0145】次に916において、水平書き込みアドレ
スXdと160を比較する。Xd<160が成立するの
で917の動作に移る。
Next, at 916, the horizontal write address Xd is compared with 160. Since Xd <160 holds, the operation moves to 917.

【0146】次に917において、垂直上位読み出しア
ドレスYoを0にリセットする。
Next, at 917, the vertical upper read address Yo is reset to 0.

【0147】次に918において、垂直書き込みアドレ
スYdを0にリセットする。この時点で、16分の1縮
小画の1ライン目の画素生成が完了する。
Next, at 918, the vertical write address Yd is reset to 0. At this point, pixel generation for the first line of the 1/16 reduced image is completed.

【0148】以上説明した、904〜916の動作を繰
返し行い、16分の1縮小画の2ライン目以降の画素生
成を行う。
The operations 904 to 916 described above are repeated to generate pixels for the second and subsequent lines of the 1/16 reduced image.

【0149】以下に、910において縮小画記憶手段5
03の水平アドレス159、垂直アドレス119の位置
への160×120画素目の16分の1縮小画素の書き
込みを終了したものとし、911以降の動作を説明す
る。
Below, at 910, the reduced image storage means 5
It is assumed that the writing of the 1/16 reduced pixel of the 160 × 120 pixel to the positions of the horizontal address 159 and the vertical address 119 of 03 is completed, and the operation after 911 will be described.

【0150】911において、垂直上位読み出しアドレ
スYoに4を加える。これにより、垂直上位読み出しア
ドレスYoを480にする。
At 911, 4 is added to the vertical upper read address Yo. As a result, the vertical upper read address Yo is set to 480.

【0151】次に912において、垂直書き込みアドレ
スYdに1を加える。これにより、垂直書き込みアドレ
スYdを120にする。
Next, at 912, 1 is added to the vertical write address Yd. As a result, the vertical write address Yd is set to 120.

【0152】次に913において、垂直書き込みアドレ
スYdと120を比較する。Yd<120が不成立とな
るので914の動作に移る。
Next, at 913, the vertical write address Yd is compared with 120. Since Yd <120 is not established, the operation proceeds to 914.

【0153】次に914において、水平上位読み出しア
ドレスXoに4を加える。これにより、水平上位読み出
しアドレスXoを640にする。
Next, at 914, 4 is added to the horizontal upper read address Xo. As a result, the horizontal upper read address Xo is set to 640.

【0154】次に915において、水平書き込みアドレ
スXdに1を加える。これにより、水平書き込みアドレ
スXdを160にする。
Next, at 915, 1 is added to the horizontal write address Xd. As a result, the horizontal write address Xd is set to 160.

【0155】次に916において、水平書き込みアドレ
スXdと160を比較する。Xd<160が不成立とな
るので919の動作に移る。この時点で、160×12
0画素の16分の1縮小画素の生成が完了する。
Next, at 916, the horizontal write address Xd is compared with 160. Since Xd <160 is not established, the operation moves to 919. At this point, 160 × 12
Generation of 1/16 reduced pixels of 0 pixels is completed.

【0156】次に919において、全ての動作を終了す
る。
Next, at 919, all the operations are finished.

【0157】以上に説明した図9に示す流れ図に従い図
8に示すマイコン801を制御することにより、本発明
の16分の1縮小画生成法を達成することができる。
By controlling the microcomputer 801 shown in FIG. 8 according to the flow chart shown in FIG. 9 described above, the 1/16 reduced image generation method of the present invention can be achieved.

【0158】(実施例3)図10に本発明による他の原
画の16分の1縮小法を示す。図10は図2と同様に1
6画素単位に区分けされた原画の1単位を示す。図10
は画素203、画素205、画素212、画素214の
4画素を16画素の中からサンプリングし、サンプリン
グした4画素の平均を代表画素とするものである。サン
プリングする4画素の位置は、垂直方向から見た場合に
全て重ならないようにし、且つ、水平方向から見た場合
に全て重ならないようにし、且つ、水平から45度の方
向から見た場合に全て重ならないようにする。この手順
に従ってサンプリング画素を決定することによって図1
0に示すように、水平方向、垂直方向の直線は全てサン
プリングが可能である。また、図11に示すように斜め
45度の直線に対しても効率良く画像の欠落を防止する
ことができる。
(Embodiment 3) FIG. 10 shows another 1/16 reduction method of an original image according to the present invention. 10 is the same as FIG.
One unit of an original image divided into 6 pixel units is shown. Figure 10
The four pixels 203, 205, 212, and 214 are sampled from 16 pixels, and the average of the four sampled pixels is used as the representative pixel. The positions of the 4 pixels to be sampled should be such that they do not overlap when viewed from the vertical direction, do not overlap when viewed from the horizontal direction, and do not overlap when viewed from the direction of 45 degrees from the horizontal. Avoid overlapping. By determining the sampling pixels according to this procedure, FIG.
As shown in 0, all the straight lines in the horizontal and vertical directions can be sampled. Further, as shown in FIG. 11, it is possible to efficiently prevent the loss of an image even with respect to a straight line at an angle of 45 degrees.

【0159】図10に示す縮小法は、図4に示す縮小法
と同様に図5に示す構成で実現することができる。ただ
し、システム手段501の詳細は図12に示すものとな
る。
The reduction method shown in FIG. 10 can be realized by the configuration shown in FIG. 5, like the reduction method shown in FIG. However, the details of the system means 501 are as shown in FIG.

【0160】図12は図7にカウント変換手段1201
を追加したものである。701〜712の動作説明は省
略し、以下にカウント変換手段1201の動作のみを説
明する。全体の動作に関しては実施例1を参照のこと。
FIG. 12 shows the count conversion means 1201 shown in FIG.
Is added. The description of the operations of 701 to 712 is omitted, and only the operation of the count conversion means 1201 will be described below. See Example 1 for overall operation.

【0161】カウント変換手段1201は4進カウンタ
706のカウント値が0の場合は1を、1の場合は3
を、2の場合は0を、3の場合は2を示す。カウント変
換手段1201の出力は垂直読み出しアドレスの下位2
ビットとなる。
The count conversion means 1201 outputs 1 when the count value of the quaternary counter 706 is 0 and outputs 3 when the count value is 1.
, 2 indicates 0, and 3 indicates 2. The output of the count conversion means 1201 is the lower 2 of the vertical read address.
Bit.

【0162】以上説明したように、図5に示すシステム
制御手段504を、図12に示す構成で実現することに
より、図10に示す原画の16分の1縮小法を達成する
ことができる。
As described above, by implementing the system control means 504 shown in FIG. 5 with the configuration shown in FIG. 12, the 1/16 reduction method of the original image shown in FIG. 10 can be achieved.

【0163】(実施例4)図10に示す原画の16分の
1縮小法は、図8に示す構成を用い、マイコン801を
図13に示す流れ図に従って制御しても実現することが
できる。
(Embodiment 4) The 1/16 reduction method of the original image shown in FIG. 10 can also be realized by using the configuration shown in FIG. 8 and controlling the microcomputer 801 according to the flow chart shown in FIG.

【0164】図13は、図9の906を1301に置き
換えたものである。全体の動作は省略し、以下に130
1の動作のみを説明する。
In FIG. 13, 906 in FIG. 9 is replaced with 1301. The whole operation is omitted, and the following 130
Only operation No. 1 will be described.

【0165】1301において、水平下位読み出しアド
レスaが0ならば垂直下位読み出しアドレスbを1に、
水平下位読み出しアドレスaが1ならば垂直下位読み出
しアドレスbを3に、水平下位読み出しアドレスaが2
ならば垂直下位読み出しアドレスbを0に、水平下位読
み出しアドレスaが3ならば垂直下位読み出しアドレス
bを2変換する。
In 1301, if the horizontal lower read address a is 0, the vertical lower read address b is set to 1,
If the horizontal lower read address a is 1, the vertical lower read address b is 3, and the horizontal lower read address a is 2.
If so, the vertical lower read address b is converted to 0, and if the horizontal lower read address a is 3, the vertical lower read address b is converted into 2.

【0166】なお、全体動作の詳細に関しては実施例2
を参照のこと。
The details of the overall operation will be described in the second embodiment.
checking ...

【0167】以上説明したように、図13に示す流れ図
に従って図8に示すマイコン801を制御することによ
り、図10に示す本発明による原画16分の1縮小法を
実現することができる。
As described above, by controlling the microcomputer 801 shown in FIG. 8 according to the flow chart shown in FIG. 13, the original image 1/16 reduction method according to the present invention shown in FIG. 10 can be realized.

【0168】[0168]

【発明の効果】以上説明したように本発明によれば、原
画像を平均縮小法によって縮小する際に、平均化処理に
必要な画素を特定の条件の下に選択することにより、縮
小画における画像劣化の防止処理を効率良く短時間時に
実現することができる。
As described above, according to the present invention, when the original image is reduced by the average reduction method, the pixels necessary for the averaging process are selected under a specific condition, so that the reduced image is reduced. The image deterioration preventing process can be efficiently realized in a short time.

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

【図1】従来の画像の16分の1縮小法を示す図であ
る。
FIG. 1 is a diagram showing a conventional 1/16 reduction method of an image.

【図2】従来の画像の16分の1縮小法の問題点を示す
図である。
FIG. 2 is a diagram showing a problem of a conventional image 1/16 reduction method.

【図3】16分の1縮小画において画像の欠落を防止す
る従来の平均縮小法を示す図である。
FIG. 3 is a diagram showing a conventional average reduction method for preventing loss of an image in a 1/16 reduced image.

【図4】本発明による平均縮小法を示す図である。FIG. 4 is a diagram showing an average reduction method according to the present invention.

【図5】本発明の実現手段である。FIG. 5 is a means for realizing the present invention.

【図6】本発明の画像縮小手段の詳細を示す図である。FIG. 6 is a diagram showing details of image reducing means of the present invention.

【図7】本発明のシステム制御手段の詳細を示す図であ
る。
FIG. 7 is a diagram showing details of system control means of the present invention.

【図8】本発明の他の実現手段を示す図である。FIG. 8 is a diagram showing another implementation means of the present invention.

【図9】本発明の実現手段の動作手順を示す図であ
る。。
FIG. 9 is a diagram showing an operation procedure of the realizing means of the present invention. .

【図10】本発明による他の平均縮小手段を示す図であ
る。
FIG. 10 is a diagram showing another average reduction means according to the present invention.

【図11】本発明による平均縮小の効果を示す図であ
る。
FIG. 11 is a diagram showing the effect of average reduction according to the present invention.

【図12】本発明の他のシステム制御手段の詳細を示す
図である。
FIG. 12 is a diagram showing details of another system control means of the present invention.

【図13】本発明の実現手段の他の動作手順を示す図で
ある。
FIG. 13 is a diagram showing another operation procedure of the realizing means of the present invention.

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

501…原画記憶手段、 502…画像縮小手段、 503…縮小画記憶手段、 504…システム制御手段。 Reference numeral 501 ... Original image storage means, 502 ... Image reduction means, 503 ... Reduced image storage means, 504 ... System control means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 持丸 芳明 神奈川県横浜市戸塚区吉田町292番地株式 会社日立画像情報システム内 (72)発明者 庄司 順一 茨城県ひたちなか市稲田1410番地株式会社 日立製作所パーソナルメディア機器事業部 内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yoshiaki Mochimaru, 292 Yoshida-cho, Totsuka-ku, Yokohama-shi, Kanagawa Hitachi Image Information Systems Co., Ltd. (72) Inventor Junichi Shoji 1410 Inada, Hitachinaka, Ibaraki Hitachi, Ltd. Personal Media Equipment Division