JPH0221633B2 - - Google Patents

Info

Publication number
JPH0221633B2
JPH0221633B2 JP10214384A JP10214384A JPH0221633B2 JP H0221633 B2 JPH0221633 B2 JP H0221633B2 JP 10214384 A JP10214384 A JP 10214384A JP 10214384 A JP10214384 A JP 10214384A JP H0221633 B2 JPH0221633 B2 JP H0221633B2
Authority
JP
Japan
Prior art keywords
information
data
control signal
original image
register
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP10214384A
Other languages
Japanese (ja)
Other versions
JPS60246485A (en
Inventor
Kazufumi Suzuki
Katsura Kawakami
Shigeo Shimazaki
Takeyoshi Ochiai
Etsuko Hirogami
Hiroaki Kodera
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP10214384A priority Critical patent/JPS60246485A/en
Priority to DE84306633T priority patent/DE3486126T2/en
Priority to US06/655,690 priority patent/US4747154A/en
Priority to EP84306633A priority patent/EP0143533B1/en
Publication of JPS60246485A publication Critical patent/JPS60246485A/en
Publication of JPH0221633B2 publication Critical patent/JPH0221633B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof

Description

【発明の詳細な説明】[Detailed description of the invention]

産業上の利用分野 本発明は画像情報の拡大あるいは縮小を高速に
行なう画像の拡大縮小装置に関するものである。 従来例の構成とその問題点 近年、手書き文字、図形などのデータをコード
化せず、そのまま画像情報として扱い編集加工を
行なう装置が増えつつある。この分野では画像情
報の高速な拡大縮小などの処理に対する要求が高
まつている。 初めに従来の画像の拡大縮小法について説明す
る。なお以後の説明では画素は格子点上にのみ存
在し、格子点の座標は整数で表わされるものとす
る。 第1図に示すように格子点上に1次元的に配置
されたn個の画素x1,x2,……xoからなる画像X
を、m個のZ1,Z2,……Znからなる画像Zへ変
換する場合を考える。図の例ではm=8、m=5
で縮小の場合である。このような変換を行なうの
に以下のような方法が考えられる。 即ち第2図に示すように、原画Xから抽出すべ
き画素の位置に1、抽出しない画素の位置に0を
置いたマツピングパターン(マスクパターンとも
称する)Pを用意し、これによつて原画から必要
な画素22を抽出し、圧縮して出力画Zを得る方
法である。マツピングパターンを得るにはXiから
Zjへ変換するものとすると、例えば式 j=〔5/8(i−1/2)〕+1 ……(1) に従い、表に示すようにiを1から8まで変えた
時のjを計算し、jが変化した時1、変化しない
時0とすればよい。但し式(1)の〔α〕はαを越え
ない最大整数を表わす。一般の場合は式 j=〔m/n(i−1/2)〕+1 ……(2) に従つて計算すればよい。
INDUSTRIAL APPLICATION FIELD The present invention relates to an image enlarging/reducing device for enlarging or reducing image information at high speed. Configuration of conventional examples and their problems In recent years, there has been an increase in the number of devices that edit and process data such as handwritten characters and graphics by treating it as image information without encoding it. In this field, there is an increasing demand for processing such as high-speed scaling of image information. First, a conventional image scaling method will be explained. In the following description, it is assumed that pixels exist only on grid points, and the coordinates of the grid points are represented by integers. As shown in Figure 1, an image X consisting of n pixels x 1 , x 2 , ... x o arranged one-dimensionally on a grid point
Let us consider the case of converting into an image Z consisting of m Z 1 , Z 2 , . . . Z n . In the example shown, m=8, m=5
This is the case of reduction. The following methods can be considered to perform such conversion. That is, as shown in FIG. 2, a mapping pattern (also called a mask pattern) P is prepared in which 1 is placed at the position of pixels to be extracted from the original image X and 0 is placed at the position of pixels not to be extracted. This is a method of extracting necessary pixels 22 from the image and compressing them to obtain an output image Z. To get the mapping pattern from X i
For example, according to the formula j=[5/8(i-1/2)]+1...(1), when i is changed from 1 to 8 as shown in the table, j is converted to Z j . Calculate it and set it to 1 when j changes and 0 when it does not. However, [α] in formula (1) represents the maximum integer that does not exceed α. In general, calculation can be performed according to the formula j=[m/n(i-1/2)]+1...(2).

【表】 拡大の場合は、第3図に示すようにマツピング
パターンが1なら原画の画素Xiを更新し、0なら
Xiをくり返して並べればよい。 マツピングパターンPによる実際の拡大縮小
は、第4図に示す回路により行なうことができ
る。マツピングパターンはあらかじめ外部のプロ
セサにより計算され、データバス41を通じてシ
フトレジスタ42に格納される。このデータはク
ロツクc3により左シフトされるとともに、左端の
データが右端へ戻され循環する。原画データはバ
ス49を通じてシフトレジスタ43に格納されク
ロツクeにより左シフトする。出力データはクロ
ツクgにより左シフトするシフトレジスタ44中
に作成され、バス48を通じて外部に読み出され
る。制御信号hは拡大の時0、縮小の時1となつ
ている。 縮小の場合を説明すると、クロツクはc1,c2
c3の順に印加されこれを1サイクルとする。hが
1であるからクロツクc1はORゲート471を通
りクロツクeに現われ、シフトレジスタ43の先
頭のデータx1をバツフア50へ移し、同時にシフ
トレジスタ43を左シフトし43の左端データを
x2とする。最初クロツクbが1であるからクロツ
クc2はORゲート45,461を通過しクロツク
gに現われ、シフトレジスタ44にバツフア50
の値x1を取り込む。クロツクc3は、シフトレジス
タ42を左へ循環し、左端データを0とする。次
のサイクルではまずクロツクc1によりバツフア5
0はx2となり、シフトレジスタ43の左端はx3
なる。クロツクbが0なのでクロツクc2はクロツ
クgに現われずシフトレジスタ44は変化しな
い。クロツクc3によりシフトレジスタ42は左循
環され左端が1となる。以下同様にして8サイク
ル後には、シフトレジスタ44中には出力データ
x1,x3,x4,x6,x7が生成されるのでこれをバス
48を通じて出力して内容をクリアする。バツフ
ア50にはx8が残る。シフトレジスタ43は空に
なるのでバス49を通して新データを入力する。
シフトレジスタ42は元に戻つているので上と同
様の処理を行ない次の出力データを生成する。 拡大の場合はクロツクはc2,c1,c3の順に印加
されこれを1サイクルとする。制御信号hが0な
のでORゲート462,472が開き、gにはクロ
ツクc1か現われ、eにはマツピングパターンが1
の時だけクロツクc2が現われる。シフトレジスタ
44中にはクロツクc1毎にバツフア50のデータ
が取り込まれる。従つて8サイクル後にはシフト
レジスタ44中には出力データx1,x1,x2,x3
x3,x4,x5,x5が生成されるのでバス48を通し
て出力する。バツフア50にはx5が残りシフトレ
ジスタ49にはx6,x7,x8が残る。 しかし以上の拡大縮小方式では1画素ずつ処理
するので速度が遅いという欠点を有している。 発明の目的 本発明は画像の拡大縮小処理を高速化に実行す
ることを目的としている。 発明の構成 本発明は画像情報を蓄積する記憶装置と、縮小
に際しては抽出すべき情報の位置を示し、拡大に
際しては情報を複写すべき回数を示すマツピング
パターンを格納する第1のレジスタと、拡大縮小
処理によつて生成される画素データ列の最終画素
データを蓄積する第2のレジスタとを設けること
により、上記目的を達するものである。 実施例の説明 以下本発明の実施例について、図面によつて説
明する。 第5図は本発明の一実施例における画像の拡大
縮小装置のブロツク図である。主な構成要素は、
入力レジスタ52、制御レジスタ54、第18図
〜第22図を用いて説明する拡大縮小回路55、
補助レジスタ58、演算回路59である。原画デ
ータはバス51を通じて入力レジスタ52に格納
される。マツピングパターンはバス53を通じて
制御レジスタ54に格納される。入力レジスタ5
2内の原画データは補助レジスタ58内のデータ
とともに、制御レジスタ54内のマツピングパタ
ーンによつて制御される拡大縮小回路55によつ
て拡大又は縮小され、出力レジスタ56に格納さ
れ、バス57を通じて読み出される。補助レジス
タ58は、拡大縮小回路55で生成されるデータ
51aの最終画素データを抽出して格納する。演
算回路59は制御レジスタ54の出力データ52
aを利用して最終画素データを抽出し、レジスタ
58へセツトする。 次に各部をさらに詳しく説明する。 拡大縮小回路55の基本的な概念を第6図〜第
17図に示す。第6図〜第11図が拡大回路の例
であり、第12図〜第17図が縮小回路の例であ
る。 初めに、情報拡大方法について説明する。 まず原画像Xをx0,x1,x2,x3,x4,x5,x6
x7、また参照用マスクパターンPを1、0、1、
0、0、0、1、0とした場合を考える。 第6図に示すように縦方向をi、横方向をjな
る添字で、マトリツクスの各要素をMijで指示す
る。原画像Xが初めi=0の行に存在し、i行目
からi+1行目の方向にマトリツクス内を移動
し、拡大画像Y=x0,x0,x1,x1,x1,x1,x2
x2を得るものである。 i行目からi+1行目への移動に際し、参照マ
スクパターンPi=1であれば、i行目の全要素が
i+1行目へ移される。Pi=0であれば、j=0
からi−1の要素まではそのままi+1行目へ移
され、j=1−1から右端までの要素が右へ1要
素分シフトされi+1行目へ移される。この動作
がi=7の行に対してまで行なわれ、マトリツク
スからの出力として拡大画像Yを得る。 上記の原理に従つて実際の値をあてはめ拡大さ
れる様子をおつてみると次のようになる。 (1) i=0の行ではP0=1であるから0行目の
全要素が1行目へ移される。従つてi=1の行
は、x0,x1,x2,x3,x4,x5,x6,x7となる。 (2) i=1の行ではP1=0であるからM20へは、
M10がそのまま移され、M21〜M27へは、M10
〜M17が順に移される。従つて、i=2の行
は、x0,x0,x1,x2,x3,x4,x5,x6となる。 (3) i=2の行ではP2=1であるから2行目の
全要素が3行目へ移される。従つてi=3の行
は、x0,x0,x1,x2,x3,x4,x5,x6となる。 (4) 同様にi=3〜7の行に対して処理すること
により、マトリツクスからの出力は、Y=x0
x0,x1,x1,x1,x1,x2,x2を得ることができ
る。 次に本発明の一実施例における要部である情報
の拡大回路について説明する。 第7図は本発明の一実施例における要部である
拡大回路の結線を示すものである。 第7図において、100〜107は拡大すべき画
像情報x0〜x7を印加する情報入力端子、110
117は参照用マスクパターンP0〜P7に応じた2
値制御信号が印加される制御信号入力端子、12
〜127はインバータである。13は8行8列の
マトリツクスの要素Mj,k(但しj,kはともに整
数で1≦j≦7,j>k)の位置に設けられてい
るとともに、上方から送出されてくる情報を下方
に送出する情報伝達手段で、単に信号線であつて
もよい。14はマトリツクスの要素Ms,t(但し、
s,tはともに整数で0≦s≦7、s≦t)の位
置に設けられているとともに、制御信号入力端子
11sを介して送出されてくる参照用マスクパタ
ーンPsに対応する制御信号as,bsに応じてマトリ
ツクスの要素Ms-1,t-1に位置する情報か、マトリ
ツクスの要素Ms-1,tに位置する情報の一方を選択
する情報選択手段で、第8図に示すような論理素
子14a,14b,14c,14dにより構成さ
れている。150〜157は拡大画像Yを得る出力
端子である。 以下、第9図を参照しながら情報選択手段14
の構成についてさらに詳細に説明する。 第9図に示すように、情報選択手段14は制御
信号入力端子11sを介して送出されてくる制御
信号asが“0”制御信号bsが“1”の際、すなわ
ち(as,bs)=(0、1)の際にはマトリツクスの
Ms-1,t-1に位置する情報cを入力し、一方制御信
号asが“1”制御信号bsが“0”の際、すなわち
(as,bs)=(1、0)の際にはマトリツクスの
Ms-1,tに位置する情報dを選択的に入力する。 上記構成において、以下その動作を説明する。 なお参照マスクパターンPは1、0、1、0、
0、0、1、0とし、最終的に拡大情報x0,x0
x1,x1,x1,x1,x2,x2を得るものとする。 まず第10図aに示すように、情報入力端子1
0〜107を介して情報選択手段140〜147
原画像情報x0〜x7を送出する。その際、情報選択
手段140〜147は制御信号として制御信号入力
端子110を介して(a0,b0)=(1、0)が印加
されていることにより、情報選択手段140〜1
7は入力信号としてそれぞれ線D0〜D7側の情報
を選択するので原画像情報x0〜x7をそれぞれ入力
する。 次に第10図bに示すように、情報選択手段1
0の原画像情報x0は、情報伝達手段130に送出
される。一方情報選択手段148〜1414は制御
信号として制御信号入力端子111を介して(a1
b1)=(0、1)が印加されていることにより、そ
れぞれ線c0〜c6側の情報を選択するので原画像情
報x0〜x6を入力する。 次に第10図cに示すように、情報伝達手段1
0及び情報選択手段148の原画像情報x0は、情
報伝達手段131及び132に送出される。一方情
報選択手段1415〜1420は制御信号として制御
信号入力端子112を介して(s2,b2)=(1、0)
が印加されていることにより、それぞれ線D8
D14側の情報を選択するので原画像情報x0〜x6
入力する。 次に第10図dに示すように、情報伝達手段1
1〜132及び情報選択手段1415の原画像情報
x0,x1は、情報伝達手段133〜135に送出され
る。一方情報選択手段1421〜1425は制御信号
として制御信号入力端子113を介して(a3,b3
=(0、1)が印加されていることにより、それ
ぞれ線c7〜c11側の情報を選択するので原画像情
報x1〜x5をそれぞれ入力する。 次に第10図eに示すように、情報伝達手段1
3〜135、および情報伝達手段1421の原画像
x0,x1は、情報伝達手段136〜139に送出され
る。一方情報選択手段1426〜1429は制御信号
として制御信号入力端子114を介して(a4,b4
=(0、1)が印加されていることにより、それ
ぞれ線c12〜c15側の情報を選択するので原画像情
報x1〜x4をそれぞれ入力する。 次に第10図fに示すように、情報伝達手段1
6〜139、および情報伝達手段1426の原画像
情報x0,x1は、情報伝達手段1310〜1314にそ
れぞれ送出される。一方情報選択手段1430〜1
32は制御信号として制御信号入力端子11を介
して(a5,b5)=(0、1)が印加されていること
により、それぞれ線c16〜c18側の情報を選択する
ので原画像情報x1〜x3をそれぞれ入力する。 次に第10図gに示すように、情報伝達手段1
10〜1314及び情報伝達手段1430の原画像情
報x0,x1は、情報伝達手段1315〜1320に送出
される。一方情報選択手段1433,1434は制御
信号として制御信号入力端子116を介して(a6
b6)=(1、0)が印加されていることにより、そ
れぞれ線D15,D16側の情報を選択するので原画
像情報x2,x3をそれぞれ入力する。 そして最終的に第10図hに示すように、伝号
伝達手段1315〜1320および情報選択手段14
33の画像情報x0〜x2は、信号伝達手段1321〜1
27にそれぞれ送出される。一方情報選択手段1
4は制御信号として制御信号入力端子117を介
して(a7,b7)=(0、1)が印加されていること
により、線D19側の情報を選択するので、原画像
情報x2を入力する。そして出力端子150〜157
を介して原画像情報x0,x0,x1,x1,x1,x1
x2,x2を最終出力として取り出すことにより、拡
大情報Yを得ることができる。 以上のように情報伝達手段13及び情報選択手
段14をマトリツクス状に配置した回路構成とす
ることにより、高速な拡大が必要な場合であつて
もクロツクを必要とせず、また規則的に回路構成
であるためLSI化に適している。また制御信号入
力端子11に印加する制御信号を変えるだけで、
容易に他の拡大情報Yを得ることができる。 なお上記説明では説明の都合上、情報伝達手段
13を設けたが、前述したように情報伝達手段1
3は単なる配線でもよい為、第7図に示した回路
は第11図のようなものとしてもよい。 また上記説明では画像情報についてのみ説明し
たが、本発明に適用される情報は他のものでもよ
い。 次に情報の縮小方法について説明する。 まず原画像Xをx0,x1,x2,x3,x4,x5,x6
x7、また参照用マスクパターンPを1、0、1、
0、0、0、1、0とした場合を考える。 第12図に示すように縦方向をi、横方向をj
なる添字でマトリツクスの各要素をMi,jで指示す
る。原画像Xが初めi=7の行に存在し、i行目
からi−1行目の方向にマトリツクス内を移動
し、縮小画像Y=x0,x2,x6を得るものである。
i行目からi−1行目への移動に際し、i=jの
要素は、参照マスクパターンPiが0であれば捨て
られ、i=jより右の全ての要素が左へ1要素分
シフトされる。一方参照マスクパターンPiが1で
あれば、その時のi行目の全要素がi−1行目に
移動される。この動作がi=0の行の各要素に対
して行なわれ、マトリツクスからの出力として縮
小画像Yを得る。 上記の原理に従つて実際の値をあてはめて縮小
される様子をおつてみると、次のようになる。 (1) i=7の行ではP7=0であるから、x7は捨
てられる。この例ではM7,7より右の要素M7,8
存在しないため、M6,7は空になる。従つてi=
6の行は、x0,x1,x2,x3,x4,x5,x6とな
る。 (2) i=6の行ではP6=1であるからこの行の
全要素がi=5の行へ移され、従つてi=5の
行はx0,x1,x2,x3,x4,x5,x6となる。 (3) i=5の行ではP5=0であるからx5は捨て
られ、j=5より右の全要素が左へシフトされ
る。従つてi=4の行は、x0,x1,x2,x3
x4,x5,x6となる。 以下、同様にi=4〜0の行に対して処理する
ことにより、マトリクスからの出力はY=x0
x5,x6となる。 j=8の列に0なる要素があるものとして考え
ることにより、マトリクスの空となつた部分に0
をセツトすることができる。 次に、本発明の一実施例における要部である情
報の縮小回路について説明する。 第13図は本発明の一実施例における要部であ
る縮小回路の結線を示すものである。 第13図において、1100〜1107は縮小す
べき画像情報x0〜x7を印加する情報入力端子、1
110〜1117は参照用マスクパターンP0〜P7
応じた2値制御信号が印加される制御信号入力端
子、1120〜1127はインバータである。11
3は8行8列のマトリツクスの要素Mj,k(但し、
j,kはともに整数で1≦j≦7、>k)の位置
に設けられているとともに、上方から送出されて
くる情報を下方に送出する情報伝達手段で、単に
信号線であつてもよい。114はマトリツクスの
要素Ms,t(但し、s,tはともに整数で0≦s≦
7、s≦t)の位置に設けられているとともに、
制御信号入力端子111sを介して送出されてく
る参照用マスクパターンP5に対応する制御信号
as,bsに応じてマトリツクスの要素Ms+1,t+1に位
置する情報か、マトリツクス要素Ms+1,tに位置す
る情報の一方を選択する情報選択手段で、第14
図に示すような論理素子114a,114b,1
14c,114dにより構成されている。但し、
マトリツクスMの7列に位置する情報選択手段に
ついては画像情報x7を切り捨るか否かを選択する
のみに設けられている。1150〜1157は縮小
された画像情報Yを得る出力端子である。 以下、第15図を参照しながら情報選択手段1
14の構成についてさらに詳細に説明する。 第15図に示すように、情報選択手段114は
制御信号入力端子111sを介して送出されてく
る制御信号asが“0”制御信号bsが“1”の際す
なわち(as,bs)=(0、1)の際にはマトリツク
スのMs+1,t+1に位置する情報cを入力し、一方制
御信号asが“1”、制御信号bsが“0”の際、す
なわち(as,bs)=(1、0)の際にはマトリツク
スのMa+1,tに位置する情報dを選択的に入力す
る。 上記構成において、以下その動作を説明する。 なお参照マスクパターンPは1、0、1、0、
0、0、1、0とし、最終的に縮小情報x0,x2
x6を得るものとする。 まず第16図aに示すように、情報入力端子1
100〜1107を介して情報伝達手段1130
1136及び情報選択手段1140に原画像情報x0
〜x7を送出する。その際、情報選択手段140
制御信号として制御信号入力端子1117を介し
て(a7,b7)=(0、1)が印加されていることに
より、情報選択手段1140は入力信号として線
C側の情報を選択するので原画像情報x7は切り捨
てられる。 次に第16図bに示すように、情報伝達手段1
130〜1135までの原画像情報x0〜x5は、情報
伝達手段1137〜11312に送出される。一方
情報選択手段1141は制御信号として制御信号
入力端子1116を介して(a6,b6)=(1、0)
が印加されていることにより、線D側の情報を選
択するので原画像情報x6を入力する。 次に第16図cに示すように、情報伝達手段1
137〜11311までの原画像情報x0〜x4は、情
報伝達手段11313〜11317に送出される。一
方情報選択手段1142は制御信号として制御信
号入力端子1115を介して(a5,b5)=(0、1)
が印加されていることにより線C側の情報を選択
するので原画像情報x6を入力する。 次に第16図dに示すように、情報伝達手段1
1313〜11316までの原画像情報x0〜x3は、情
報伝達手段11317〜11320に送出される。一
方情報選択手段1143は制御信号として制御信
号入力端子1114を介して(a4,b4)=(0、1)
が印加されていることにより、線C側の情報を選
択するので原画像情報x6を入力する。 次に第16図eに示すように、情報伝達手段1
1317〜11319までの原画像情報x0〜x2は、情
報伝達手段11321〜11322に送出される。一
方情報選択手段1144は制御信号として制御信
号入力端子1113を介して(a3,b3)=(0、1)
が印加されていることにより、線C側の情報を選
択するので原画像情報x6を入力する。 次に第16図fに示すように、情報伝達手段1
1321,11322の原画像情報x0,x1は、情報伝
達手段11324,11325に送出される。一方情
報選択手段1145,1146は制御信号として制
御信号入力端子111を介して(a2,b2)=(1、
0)が印加されていることにより、それぞれ線
D1,D2側の情報を選択するので原画像情報x2
x6をそれぞれ入力する。 次に第16図gに示すように、情報伝達手段1
1324の原画像情報x0は、情報伝達手段11326
に送出される。一方情報選択手段1147,11
8は制御信号として制御信号入力端子1111
介して(a1,b1)=(0、1)が印加されているこ
とにより、それぞれ線C1,C2側の情報を選択す
るので原画像情報x2,x6をそれぞれ入力する。 そして最終的に第16図hに示すように、情報
選択手段1149,11410,11411は制御信号
として制御信号入力端子1110を介して(a0
b0)=(1、0)が印加されていることによりそれ
ぞれD1,D2,D3側の情報を選択するので、原画
像情報x0,x2,x6を入力する。そして情報選択手
段1149,11410,11411を最終出力として
取り出すことにより、縮小情報Yを得ることがで
きる。 以上のように、情報伝達手段113及び情報選
択手段114をマトリツクス状に配置した回路構
成とすることにより、高速な縮小が必要な場合で
あつてもクロツクを必要とせず、また、規即的な
回路構成であるためLSI化に適している。また制
御信号入力端子111に印加する制御信号を変え
るだけで、容易に他の縮小情報Yを得ることがで
きる。 なお上記説明では説明の都合上、情報伝達手段
113を設けたが、前述したように情報伝達手段
113は単なる配線でもよい為、第13図の回路
は第17図のようなものとしてもよい。 また上記説明では画像情報についてのみ説明し
たが、本発明に適用される情報は他のものでもよ
く、情報のサンプリング等にも利用できる。 さて上記縮小回路ではマツピングパターンが1
の所のデータx0,x2,x6だけが抽出され、その他
の原画の情報は失われる。そこで本発明はこの情
報を有効に生かすためにマツピングパターンが1
の所のデータと、その後の0の所のデータとの論
理和をとることが考えられる。即ち最終データと
して x0,1,x2,3,4,5,x6,7 を得るものである。ここでxi,j,kなどはxi,xj,xk
の論理和をとつたデータを示す。この処理を実現
するには、第13図の縮小回路の対角要素の1つ
左の要素Mi,i-1への配線を第18図のように変え
ればよい(但し、同図中のA点は論理1の信号が
入力される。)。現在はMi+1,i-1のデータがそのま
ま格納されるが、こうすることによりマツピング
パターンが0の場合にはMi+1,i-1のデータとMi+1,i
のデータとの論理和がとられる。 そこでまず補助レジスタ58について説明して
おく。 拡大あるいは縮小回路より構成される拡大縮小
回路55によれば、第2図、第3図に示したよう
に1回の処理で参照されるデータの数は、拡大の
場合にはマツピングパターンの中の1の数だけの
個数であり、縮小の場合には常に8個である。一
方1回の処理で生成されるデータの数は、拡大の
場合には常に8個であり、縮小の場合にはマツピ
ングパターンの中の1の数だけの個数である。 拡大の場合には第19図に示すように、入力レ
ジスタ52内の原画データは1回の処理毎にマツ
ピングパターンの中の1の数(以後この数をNB
で表わす)だけ左へずらせ、不足分を次の原画デ
ータから埋めるようにしている。拡大の場合には
マツピングパターンの1の所でデータが切り替わ
り、0の所では前のデータを複写する。従つて、
191のようにマツピングパターンの先頭のデー
タが0の場合には前回の処理で参照した最終デー
タx5が必要になる。このデータは前回の処理で生
成されたデータの最終画素データFBでもあるか
ら、FBを演算回路59によつて抽出し補助レジ
スタ58へ戻す。192のようにマツピングパタ
ーンの先頭が1の場合には最終画素データFBを
戻す必要がない。 縮小の場合には第20図に示すように論理和を
とる場合も含めて入力レジスタ52内の原画デー
タは1回の処理毎に常に8個ずつ参照されるの
で、毎回全て新しい原画データに入れ替える。縮
小で論理和をとる場合には、マツピングパターン
が1の所のデータに0の所のデータを論理加算し
ていく。従つてマツピングパターンの先頭が20
1のように0の場合には前回の処理で生成された
データの最終画素データFBに論理加算する必要
がある。そこでこのデータFBを演算回路59に
よつて抽出し、補助レジスタ58へ戻す。この場
合には生成されるデータの個数はマツピングパタ
ーンの中の1の数NBに1を加えた数になる。第
20図の第2回、第3回の処理では、NBは各々
4と2であり、生成されたデータの数は各々5と
3になつている。但し、例えば第20図の第2回
処理で生成された先頭のデータx781′は実は第1
回処理で生成された最後のデータFB=x78
x1′との論理和をとつたもので、x78はx781′で置き
替える必要がある。 202のようにマツピングパターンの先頭が1
の場合には、FBを戻す必要はない。 以上をまとめると、演算回路59は、マツピン
グパターンの先頭が1の場合には何もしなくてよ
く、補助レジスタ58内のデータは不定となる。
マツピングパターンの先頭が0の場合で、拡大の
場合には、前回の処理で生成されたデータの8番
目の画素データを補助レジスタ58へ戻す。マツ
ピングパターンの先頭が0で、縮小で論理和をと
る場合には、前回の処理で使用したマツピングパ
ターンの中の1の数NBを求め、前回の処理で生
成されたデータのNB+1番目の画素データを補
助レジスタ58へ戻し、今回の処理終了後前回処
理で生成されたデータの最終データを、今回生成
されたデータの先頭のデータで置き替える。 マツピングパターンの中の1の数を数えるに
は、マツピングパターンを1ビツトずつシフトし
てキヤリのセツトされる回数を数えるなどの方法
で実施することができる。 次に具体的な補助レジスタ58を利用した回路
を示す。 拡大の場合、第7図では左上の要素M00に対す
る左方からの入力は接地されているが、第21図
に示すようにこの入力211へ補助レジスタ58
の出力を接続すればよい。 縮小で論理和をとる場合には第18図の左下の
要素M00の左側に、第22図に示すように(但
し、同図中A点は論理1の信号が入力される。)、
M00と同様の回路を追加し、補助レジスタ58の
出力xMを接続する。第20図の第2回処理によ
り生成されるデータの先頭データx781′などはy0
左側のyMへ出力される。従つて出力レジスタも
左に1ビツト追加し、そこへ格納する。生成され
たデータの処理に当たつてはこのデータも含めて
処理すればよい。 発明の効果 以上説明したように本発明は拡大縮小処理によ
つて生成される画素データ列の最終画素データを
蓄積するレジスタを設けることにより、拡大処
理、縮小で論理和をとる処理を高速に実施するこ
とができ、再現性もよく、その効果は大きい。
[Table] In the case of enlargement, as shown in Figure 3, if the mapping pattern is 1, the pixel X i of the original image is updated; if it is 0, the pixel X i of the original image is updated.
All you have to do is repeat X i . Actual scaling using the mapping pattern P can be performed by the circuit shown in FIG. The mapping pattern is calculated in advance by an external processor and stored in the shift register 42 via the data bus 41. This data is shifted to the left by clock c3 , and the data at the left end is returned to the right end and circulated. The original image data is stored in the shift register 43 via the bus 49 and shifted to the left by the clock e. Output data is created in a shift register 44 that is shifted to the left by clock g, and read out via bus 48. The control signal h is 0 for enlargement and 1 for reduction. To explain the case of reduction, the clocks are c 1 , c 2 ,
C is applied in the order of 3 , and this is considered as one cycle. Since h is 1, clock c 1 passes through OR gate 471 and appears on clock e, transfers the first data x 1 of shift register 43 to buffer 50, and simultaneously shifts shift register 43 to the left and transfers the leftmost data of 43.
Let's say x 2 . Initially, since clock b is 1, clock c2 passes through OR gates 45 and 461 and appears on clock g, and buffer 50 is sent to shift register 44.
Take in the value x 1 . The clock c3 circulates to the left through the shift register 42 and sets the leftmost data to 0. In the next cycle, first the clock c1 causes a buffer of 5.
0 becomes x 2 , and the left end of the shift register 43 becomes x 3 . Since clock b is 0, clock c2 does not appear on clock g and shift register 44 does not change. The shift register 42 is rotated to the left by the clock c3 , and the left end becomes 1. Similarly, after 8 cycles, the output data is stored in the shift register 44.
Since x 1 , x 3 , x 4 , x 6 , and x 7 are generated, these are output through the bus 48 to clear the contents. Batsuhua 50 has x 8 remaining. Since the shift register 43 becomes empty, new data is input through the bus 49.
Since the shift register 42 has returned to its original state, it performs the same processing as above to generate the next output data. In the case of expansion, the clocks are applied in the order of c 2 , c 1 , and c 3 and this is considered as one cycle. Since the control signal h is 0, the OR gates 46 2 and 47 2 are opened, the clock c 1 appears on g, and the mapping pattern 1 appears on e.
Clock C 2 appears only when . Data from the buffer 50 is loaded into the shift register 44 every clock c1 . Therefore, after 8 cycles, the output data x 1 , x 1 , x 2 , x 3 ,
Since x 3 , x 4 , x 5 , and x 5 are generated, they are output through the bus 48. In the buffer 50, x 5 remains, and in the shift register 49, x 6 , x 7 , and x 8 remain. However, the above-mentioned enlargement/reduction method has the disadvantage of being slow because it processes one pixel at a time. OBJECT OF THE INVENTION An object of the present invention is to execute image enlargement/reduction processing at high speed. Structure of the Invention The present invention includes a storage device that stores image information, a first register that stores a mapping pattern that indicates the position of information to be extracted when reducing the image, and indicates the number of times that the information should be copied when enlarging the image. The above object is achieved by providing a second register that stores the final pixel data of the pixel data string generated by the scaling process. DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 5 is a block diagram of an image enlarging/reducing apparatus according to an embodiment of the present invention. The main components are:
An input register 52, a control register 54, an enlargement/reduction circuit 55 which will be explained using FIGS. 18 to 22,
They are an auxiliary register 58 and an arithmetic circuit 59. Original image data is stored in input register 52 via bus 51. The mapping pattern is stored in control register 54 via bus 53. Input register 5
The original image data in 2 is enlarged or reduced together with the data in the auxiliary register 58 by the enlargement/reduction circuit 55 controlled by the mapping pattern in the control register 54, stored in the output register 56, and transmitted via the bus 57. Read out. The auxiliary register 58 extracts and stores the final pixel data of the data 51a generated by the enlargement/reduction circuit 55. The arithmetic circuit 59 receives the output data 52 of the control register 54.
The final pixel data is extracted using a and set in the register 58. Next, each part will be explained in more detail. The basic concept of the enlargement/reduction circuit 55 is shown in FIGS. 6 to 17. 6 to 11 are examples of enlargement circuits, and FIGS. 12 to 17 are examples of reduction circuits. First, the information expansion method will be explained. First, the original image X is divided into x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6 ,
x 7 , and the reference mask pattern P is 1, 0, 1,
Consider the case of 0, 0, 0, 1, 0. As shown in FIG. 6, each element of the matrix is designated by M ij with a subscript i in the vertical direction and j in the horizontal direction. The original image X initially exists in the row i=0, moves within the matrix from the i-th row to the i+1-th row, and becomes an enlarged image Y=x 0 , x 0 , x 1 , x 1 , x 1 , x 1 , x 2 ,
x 2 . When moving from the i-th row to the i+1-th row, if the reference mask pattern P i =1, all elements of the i-th row are moved to the i+1-th row. If P i =0, then j=0
The elements from j to i-1 are directly moved to the i+1th line, and the elements from j=1-1 to the right end are shifted by one element to the right and moved to the i+1th line. This operation is performed up to the row i=7, and an enlarged image Y is obtained as an output from the matrix. If we apply the actual values according to the above principle and look at how they are expanded, we get the following. (1) In the row where i=0, P 0 =1, so all elements in the 0th row are moved to the 1st row. Therefore, the rows where i=1 are x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6 , and x 7 . (2) In the row where i=1, P 1 = 0, so to M 20 ,
M 10 is transferred as is, and M 10 is transferred to M 21 ~ M 27 .
~M 17 are transferred in order. Therefore, the row of i=2 is x 0 , x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6 . (3) Since P 2 =1 in the row where i=2, all elements in the second row are moved to the third row. Therefore, the row of i=3 is x 0 , x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6 . (4) By similarly processing the rows i=3 to 7, the output from the matrix is Y=x 0 ,
x 0 , x 1 , x 1 , x 1 , x 1 , x 2 , x 2 can be obtained. Next, an information enlarging circuit, which is a main part in an embodiment of the present invention, will be explained. FIG. 7 shows the wiring of an enlarged circuit which is a main part in an embodiment of the present invention. In FIG. 7, 100 to 107 are information input terminals to which image information x0 to x7 to be enlarged are applied, and 110 to
11 7 is 2 according to the reference mask pattern P 0 to P 7
a control signal input terminal, 12, to which a value control signal is applied;
0 to 127 are inverters. 13 is provided at the position of element M j,k (however, j and k are both integers, 1≦j≦7, j>k) of a matrix with 8 rows and 8 columns, and it also transmits information sent from above. It is a means for transmitting information downward, and may simply be a signal line. 14 is the matrix element M s,t (however,
s and t are both integers and are provided at positions where 0≦s≦7, s≦t), and a control signal corresponding to the reference mask pattern P s sent through the control signal input terminal 11 s . information selection means for selecting either the information located in the matrix element M s-1,t-1 or the information located in the matrix element M s-1,t according to a s and b s ; It is composed of logic elements 14a, 14b, 14c, and 14d as shown in the figure. 15 0 to 15 7 are output terminals from which the enlarged image Y is obtained. The information selection means 14 will be described below with reference to FIG.
The configuration will be explained in more detail. As shown in FIG. 9, when the control signal a s sent through the control signal input terminal 11 s is "0" and the control signal b s is "1", the information selection means 14 selects (a s , b s ) = (0, 1), the matrix
When the information c located at M s-1,t-1 is input, and the control signal a s is "1" and the control signal b s is "0", that is, (a s , b s ) = (1, 0 ), the matrix
Selectively input information d located at M s-1,t . The operation of the above configuration will be explained below. Note that the reference mask pattern P is 1, 0, 1, 0,
0, 0, 1, 0, and finally the enlarged information x 0 , x 0 ,
Suppose we obtain x 1 , x 1 , x 1 , x 1 , x 2 , x 2 . First, as shown in FIG. 10a, the information input terminal 1
The original image information x 0 to x 7 is sent to the information selection means 14 0 to 14 7 via signals 0 0 to 10 7 . At this time, the information selection means 14 0 to 14 7 receive (a 0 , b 0 )=(1, 0) as a control signal via the control signal input terminal 11 0 , so that the information selection means 14 0 ~1
47 selects the information on the lines D 0 to D 7 as input signals, so the original image information x 0 to x 7 is input, respectively. Next, as shown in FIG. 10b, the information selection means 1
The original image information x 0 of 4 0 is sent to the information transmission means 13 0 . On the other hand , the information selection means 14 8 to 14 14 receive (a 1 ,
Since b 1 )=(0, 1) is applied, the information on the lines c 0 to c 6 is selected, so the original image information x 0 to x 6 is input. Next, as shown in FIG. 10c, the information transmission means 1
3 0 and the original image information x 0 of the information selection means 14 8 are sent to the information transmission means 13 1 and 13 2 . On the other hand, the information selection means 14 15 to 14 20 receive (s 2 , b 2 )=(1, 0) via the control signal input terminal 11 2 as a control signal.
are applied, the lines D 8 ~
Since the information on the D14 side is selected, input the original image information x 0 to x 6 . Next, as shown in FIG. 10d, the information transmission means 1
Original image information of 3 1 to 13 2 and information selection means 14 15
x 0 and x 1 are sent to information transmission means 13 3 to 13 5 . On the other hand, the information selection means 14 21 to 14 25 receive control signals as control signal input terminals 11 3 (a 3 , b 3 ).
By applying =(0, 1), the information on the lines c 7 to c 11 is selected, so the original image information x 1 to x 5 is input, respectively. Next, as shown in FIG. 10e, the information transmission means 1
3 3 to 13 5 and original images of information transmission means 14 21
x 0 and x 1 are sent to information transmission means 13 6 to 13 9 . On the other hand, the information selection means 14 26 to 14 29 receive control signals as control signal input terminals 11 4 (a 4 , b 4 ).
By applying =(0, 1), the information on the lines c 12 to c 15 is selected, so the original image information x 1 to x 4 is input, respectively. Next, as shown in FIG. 10f, the information transmission means 1
3 6 to 13 9 and the original image information x 0 and x 1 of the information transmission means 14 26 are sent to the information transmission means 13 10 to 13 14 , respectively. On the other hand, information selection means 14 30 ~1
4 32 selects the information on the lines c 16 to c 18 by applying (a 5 , b 5 ) = (0, 1) as a control signal through the control signal input terminal 11, so the original Input image information x 1 to x 3 respectively. Next, as shown in FIG. 10g, the information transmission means 1
The original image information x 0 and x 1 of 3 10 to 13 14 and the information transmission means 14 30 are sent to the information transmission means 13 15 to 13 20 . On the other hand, the information selection means 14 33 , 14 34 receive ( a 6 ,
Since b 6 )=(1, 0) is applied, the information on the lines D 15 and D 16 is selected, so the original image information x 2 and x 3 are input, respectively. Finally, as shown in FIG. 10h, the signal transmission means 1315 to 1320 and the information selection means 14
33 image information x 0 to x 2 is transmitted to the signal transmission means 13 21 to 1
3 and 27 respectively. On the other hand, information selection means 1
4 selects the information on the line D 19 side by applying (a 7 , b 7 ) = (0, 1) as a control signal via the control signal input terminal 11 7 , so the original image information x Enter 2 . and output terminals 15 0 to 15 7
The original image information x 0 , x 0 , x 1 , x 1 , x 1 , x 1 ,
By extracting x 2 and x 2 as the final output, enlarged information Y can be obtained. By adopting the circuit configuration in which the information transmission means 13 and the information selection means 14 are arranged in a matrix as described above, a clock is not required even when high-speed enlargement is required, and the circuit configuration can be performed regularly. Therefore, it is suitable for LSI implementation. Also, by simply changing the control signal applied to the control signal input terminal 11,
Other enlarged information Y can be easily obtained. In the above description, the information transmission means 13 is provided for convenience of explanation, but as mentioned above, the information transmission means 1
Since 3 may be a simple wiring, the circuit shown in FIG. 7 may be replaced with the circuit shown in FIG. 11. Further, in the above description, only image information was explained, but other information may be applied to the present invention. Next, a method of reducing information will be explained. First, the original image X is divided into x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6 ,
x 7 , and the reference mask pattern P is 1, 0, 1,
Consider the case of 0, 0, 0, 1, 0. As shown in Figure 12, the vertical direction is i and the horizontal direction is j.
Each element of the matrix is designated by M i,j with the subscript . The original image X initially exists in the row i=7, and is moved within the matrix in the direction from the i-th row to the i-1th row to obtain reduced images Y=x 0 , x 2 , x 6 .
When moving from the i-th row to the i-1th row, the element at i=j is discarded if the reference mask pattern P i is 0, and all elements to the right of i=j are shifted to the left by one element. be done. On the other hand, if the reference mask pattern P i is 1, all elements of the i-th row at that time are moved to the i-1 row. This operation is performed for each element in the row with i=0 to obtain a reduced image Y as an output from the matrix. If we apply the actual values according to the above principle and look at the reduction, we get the following. (1) In the row where i=7, P 7 =0, so x 7 is discarded. In this example, there is no element M 7,8 to the right of M 7,7 , so M 6,7 is empty. Therefore i=
The row 6 is x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6 . (2) Since P 6 = 1 in the row with i=6, all elements of this row are moved to the row with i=5, so the row with i=5 has x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6 . (3) In the row where i=5, P 5 =0, so x 5 is discarded, and all elements to the right of j=5 are shifted to the left. Therefore, the row of i=4 is x 0 , x 1 , x 2 , x 3 ,
x 4 , x 5 , x 6 . By similarly processing the rows from i=4 to 0, the output from the matrix becomes Y=x 0 ,
x 5 and x 6 . By considering that there is an element of 0 in the column j = 8, 0 is added to the empty part of the matrix.
can be set. Next, an information reduction circuit, which is a main part in an embodiment of the present invention, will be explained. FIG. 13 shows the wiring of the reduction circuit which is the main part in one embodiment of the present invention. In FIG. 13, 110 0 to 110 7 are information input terminals to which image information x 0 to x 7 to be reduced are applied;
11 0 to 111 7 are control signal input terminals to which binary control signals corresponding to the reference mask patterns P 0 to P 7 are applied, and 112 0 to 112 7 are inverters. 11
3 is an element M j,k of a matrix with 8 rows and 8 columns (however,
Both j and k are integers and are provided at positions where 1≦j≦7, >k), and is an information transmission means that sends information sent from above downward, and may simply be a signal line. . 114 is the matrix element M s,t (where s and t are both integers and 0≦s≦
7. It is provided at a position where s≦t), and
Control signal corresponding to reference mask pattern P5 sent via control signal input terminal 111s
a fourteenth information selection means for selecting either the information located in the matrix element M s+1,t+1 or the information located in the matrix element M s+1,t according to a s and b s ;
Logic elements 114a, 114b, 1 as shown in the figure
14c and 114d. however,
The information selection means located in the 7th column of the matrix M is provided only to select whether or not to truncate image information x7 . 115 0 to 115 7 are output terminals from which reduced image information Y is obtained. Hereinafter, with reference to FIG. 15, information selection means 1
The configuration of 14 will be explained in more detail. As shown in FIG. 15, when the control signal a s sent through the control signal input terminal 111 s is "0" and the control signal b s is "1", the information selection means 114 selects (a s , b s ) = (0, 1), the information c located at M s+1,t+1 of the matrix is input, while the control signal a s is “1” and the control signal b s is “0”. In other words, when (a s , b s )=(1, 0), information d located at M a+1,t of the matrix is selectively input. The operation of the above configuration will be explained below. Note that the reference mask pattern P is 1, 0, 1, 0,
0, 0, 1, 0, and finally the reduced information x 0 , x 2 ,
Let us obtain x 6 . First, as shown in FIG. 16a, the information input terminal 1
Information transmission means 113 0 ~ via 10 0 ~ 110 7
Original image information x 0 to 113 6 and information selection means 114 0
~x sends out 7 . At this time, the information selection means 114 0 is applied with (a 7 , b 7 )=(0, 1) as a control signal via the control signal input terminal 111 7 , so that the information selection means 114 0 receives the input signal. Since the information on the line C side is selected as follows, the original image information x7 is truncated. Next, as shown in FIG. 16b, the information transmission means 1
The original image information x0 to x5 from 130 to 1135 is sent to information transmission means 1137 to 11312 . On the other hand, the information selection means 114 1 receives the control signal as a control signal via the control signal input terminal 111 6 (a 6 , b 6 )=(1, 0).
is applied, information on the line D side is selected, so original image information x6 is input. Next, as shown in FIG. 16c, the information transmission means 1
The original image information x 0 to x 4 from 13 7 to 113 11 is sent to information transmission means 113 13 to 113 17 . On the other hand, the information selection means 114 2 receives a control signal via the control signal input terminal 111 5 (a 5 , b 5 )=(0, 1).
Since information on the line C side is selected due to the fact that is applied, original image information x6 is input. Next, as shown in FIG. 16d, the information transmission means 1
The original image information x 0 to x 3 from 13 13 to 113 16 are sent to information transmission means 113 17 to 113 20 . On the other hand, the information selection means 114 3 outputs (a 4 , b 4 )=(0, 1) via the control signal input terminal 111 4 as a control signal.
is applied, information on the line C side is selected, so original image information x6 is input. Next, as shown in FIG. 16e, the information transmission means 1
The original image information x 0 to x 2 from 13 17 to 113 19 are sent to information transmission means 113 21 to 113 22 . On the other hand, the information selection means 1144 outputs (a 3 , b 3 )=(0, 1) via the control signal input terminal 111 3 as a control signal.
is applied, information on the line C side is selected, so original image information x6 is input. Next, as shown in FIG. 16f, the information transmission means 1
The original image information x 0 and x 1 of 13 21 and 113 22 are sent to information transmission means 113 24 and 113 25 . On the other hand, the information selection means 114 5 , 114 6 input (a 2 , b 2 )=(1,
0) is applied, the lines
Since the information on the D 1 and D 2 side is selected, the original image information x 2 ,
Input x 6 respectively. Next, as shown in FIG. 16g, the information transmission means 1
13 24 original image information x 0 is information transmission means 113 26
sent to. On the other hand, information selection means 114 7 , 11
4 8 selects the information on the lines C 1 and C 2 , respectively, by applying (a 1 , b 1 ) = (0, 1) as a control signal through the control signal input terminal 111 1 . Input original image information x 2 and x 6 , respectively. Finally , as shown in FIG .
By applying b 0 )=(1, 0), the information on the D 1 , D 2 , and D 3 sides is selected, so the original image information x 0 , x 2 , and x 6 is input. Then, the reduced information Y can be obtained by taking out the information selection means 114 9 , 114 10 , 114 11 as the final output. As described above, by adopting the circuit configuration in which the information transmitting means 113 and the information selecting means 114 are arranged in a matrix, a clock is not required even when high-speed reduction is required. Due to its circuit configuration, it is suitable for LSI implementation. Further, other reduction information Y can be easily obtained by simply changing the control signal applied to the control signal input terminal 111. In the above explanation, the information transmitting means 113 is provided for convenience of explanation, but as mentioned above, the information transmitting means 113 may be a simple wiring, so the circuit shown in FIG. 13 may be replaced with the circuit shown in FIG. 17. Further, in the above explanation, only image information has been explained, but other information may be applied to the present invention, and it can also be used for information sampling, etc. Now, in the above reduced circuit, the mapping pattern is 1
Only the data x 0 , x 2 , and x 6 are extracted, and other information about the original image is lost. Therefore, in the present invention, in order to make effective use of this information, the mapping pattern is
It is conceivable to logically OR the data at 0 and the data at 0 after that. That is, x 0,1 , x 2,3,4,5 and x 6,7 are obtained as final data. Here, x i, j, k, etc. are x i , x j , x k
It shows the data obtained by calculating the logical sum of . To realize this process, the wiring to the element M i,i-1 on the left side of the diagonal element of the reduced circuit shown in Fig. 13 can be changed as shown in Fig. 18 (however, A logic 1 signal is input to point A.) Currently, the data of M i+1,i-1 is stored as is, but by doing this, if the mapping pattern is 0, the data of M i+1,i-1 and the data of M i+1,i
The logical OR with the data is taken. First, the auxiliary register 58 will be explained. According to the enlarging/reducing circuit 55, which is composed of an enlarging or reducing circuit, the number of data referenced in one process as shown in FIGS. 2 and 3 depends on the mapping pattern in the case of enlarging. The number is equal to the number of 1's in the middle, and is always 8 in the case of reduction. On the other hand, the number of data generated in one process is always eight in the case of expansion, and the number of data generated in one process is equal to the number of 1s in the mapping pattern in the case of reduction. In the case of enlargement, as shown in FIG.
(represented by ) to the left, and the missing part is filled in from the next original image data. In the case of enlargement, the data is switched at 1 in the mapping pattern, and the previous data is copied at 0. Therefore,
When the first data of the mapping pattern is 0 as in 191, the final data x5 referenced in the previous process is required. Since this data is also the final pixel data FB of the data generated in the previous process, the FB is extracted by the arithmetic circuit 59 and returned to the auxiliary register 58. When the head of the mapping pattern is 1 like 192, there is no need to return the final pixel data FB. In the case of reduction, as shown in FIG. 20, the original image data in the input register 52 is always referred to in units of 8 at each processing time, including when taking a logical sum, so all of them are replaced with new original image data each time. . When performing a logical sum in reduction, the data where the mapping pattern is 1 is logically added to the data where the mapping pattern is 0. Therefore, the beginning of the mapping pattern is 20.
If it is 0 like 1, it is necessary to logically add it to the final pixel data FB of the data generated in the previous process. Therefore, this data FB is extracted by the arithmetic circuit 59 and returned to the auxiliary register 58. In this case, the number of generated data is the sum of the number NB of 1's in the mapping pattern plus 1. In the second and third processing in FIG. 20, NB is 4 and 2, respectively, and the numbers of generated data are 5 and 3, respectively. However, for example, the first data x 781 ' generated in the second process in Figure 20 is actually the first
The last data generated in the process FB = x 78 and
It is a logical sum with x 1 ′, and x 78 must be replaced with x 781 ′. The beginning of the mapping pattern is 1 like 202
In this case, there is no need to return the FB. To summarize the above, the arithmetic circuit 59 does not need to do anything when the head of the mapping pattern is 1, and the data in the auxiliary register 58 becomes undefined.
When the head of the mapping pattern is 0 and in the case of enlargement, the eighth pixel data of the data generated in the previous process is returned to the auxiliary register 58. If the beginning of the mapping pattern is 0 and you want to take a logical OR during reduction, calculate the number NB of 1 in the mapping pattern used in the previous process, and calculate the number NB of the data generated in the previous process + the first The pixel data is returned to the auxiliary register 58, and after the current processing is completed, the final data of the data generated in the previous processing is replaced with the first data of the data generated this time. Counting the number of 1's in the mapping pattern can be carried out by shifting the mapping pattern one bit at a time and counting the number of times a carry is set. Next, a specific circuit using the auxiliary register 58 will be shown. In the case of enlargement, the input from the left to the upper left element M 00 in FIG. 7 is grounded, but as shown in FIG.
Just connect the output of When taking a logical sum by reduction, as shown in FIG. 22, to the left of the element M 00 at the bottom left of FIG. 18 (however, a logic 1 signal is input to point A in the figure).
Add a circuit similar to M 00 and connect the output x M of the auxiliary register 58. The leading data x 781 ' of the data generated by the second processing in FIG. 20 is output to yM on the left side of y0 . Therefore, 1 bit is added to the left of the output register and stored there. When processing the generated data, this data may also be processed. Effects of the Invention As explained above, the present invention provides a register for storing the final pixel data of the pixel data string generated by the enlargement/reduction process, thereby quickly performing the process of calculating the logical sum in the enlargement/reduction process. It has good reproducibility and is highly effective.

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

第1図は画像の拡大縮小の概念を示す説明図、
第2図は従来考えられるマツピングパターンを利
用した画像の縮小を示す概念図、第3図は同じく
拡大を示す概念図、第4図は従来考えられる拡大
縮小回路のブロツク結線図、第5図は本発明の一
実施例における画像の拡大縮小装置のブロツク結
線図、第6図は同装置における要部の拡大回路の
概念を示す図、第7図〜第11図は同回路の具体
的結線図、第12図は同装置における要部の縮小
回路の概念を示す図、第13図〜第17図は同回
路の具体的結線図、第18図は同装置における縮
小で論理和をとる縮小回回路の結線図、第19
図、第20図は各々拡大、縮小の処理の過程を示
す概念図、第21図は拡大の場合の補助レジスタ
のデータの使用法を説明するための回路図、第2
2図は縮小で論理和をとる場合の補助レジスタの
データの使用法を説明するための回路図である。 41,48,49……バス、42,43,44
……シフトレジスタ、45,46,47……論理
積(アンド)回路、51,53,57……バス、
52……入力レジスタ、54……制御レジスタ、
55……拡大縮小回路、56……出力レジスタ、
58……補助レジスタ、59……演算回路、1
4,114……選択回路。
Figure 1 is an explanatory diagram showing the concept of image scaling;
Fig. 2 is a conceptual diagram showing image reduction using a conventional mapping pattern, Fig. 3 is a conceptual diagram also showing enlargement, Fig. 4 is a block wiring diagram of a conventional enlargement/reduction circuit, and Fig. 5. 1 is a block wiring diagram of an image enlarging/reducing device according to an embodiment of the present invention, FIG. 6 is a diagram showing the concept of the main part of the enlarging circuit in the same device, and FIGS. 7 to 11 are specific wiring diagrams of the same circuit. 12 is a diagram showing the concept of the reduction circuit of the main part in the same device, FIGS. 13 to 17 are specific wiring diagrams of the same circuit, and FIG. Connection diagram of the circuit, No. 19
20 are conceptual diagrams showing the process of enlargement and reduction, respectively.
FIG. 2 is a circuit diagram for explaining how to use the data in the auxiliary register when performing a logical sum in reduction. 41, 48, 49... bus, 42, 43, 44
...Shift register, 45,46,47...AND circuit, 51,53,57...Bus,
52...Input register, 54...Control register,
55...Enlargement/reduction circuit, 56...Output register,
58...Auxiliary register, 59...Arithmetic circuit, 1
4,114...Selection circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 画像情報を蓄積する記憶装置と、縮小に際し
ては抽出すべき情報の位置を示し、拡大に際して
は情報を複写すべき回数を示すマツピングパター
ンを格納する第1のレジスタと、拡大縮小処理に
よつて生成される画素データ列の最終画素データ
を蓄積する第2のレジスタと、前記マツピングパ
ターンを参照して、前記記憶装置内及び第2のレ
ジスタ内に蓄積された画像情報から複数の画像情
報を同時処理して拡大縮小する拡大縮小回路とを
具備する画像の拡大縮小装置。
1 A storage device that stores image information, a first register that stores a mapping pattern that indicates the location of information to be extracted when reducing the image, and a mapping pattern that indicates the number of times the information should be copied when enlarging the image, and a second register that stores the final pixel data of the pixel data string generated by the pixel data string; An image enlarging/reducing device comprising an enlarging/reducing circuit that simultaneously processes and enlarges/reduces images.
JP10214384A 1983-09-29 1984-05-21 Magnifying and reducing device of picture Granted JPS60246485A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP10214384A JPS60246485A (en) 1984-05-21 1984-05-21 Magnifying and reducing device of picture
DE84306633T DE3486126T2 (en) 1983-09-29 1984-09-28 EXPANSION AND / OR DRAWING METHOD AND DEVICE FOR IMAGE DATA.
US06/655,690 US4747154A (en) 1983-09-29 1984-09-28 Image data expanding and/or contracting method and apparatus
EP84306633A EP0143533B1 (en) 1983-09-29 1984-09-28 Image data expanding and/or contracting method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10214384A JPS60246485A (en) 1984-05-21 1984-05-21 Magnifying and reducing device of picture

Publications (2)

Publication Number Publication Date
JPS60246485A JPS60246485A (en) 1985-12-06
JPH0221633B2 true JPH0221633B2 (en) 1990-05-15

Family

ID=14319530

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10214384A Granted JPS60246485A (en) 1983-09-29 1984-05-21 Magnifying and reducing device of picture

Country Status (1)

Country Link
JP (1) JPS60246485A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61107475A (en) * 1984-10-30 1986-05-26 Fuji Xerox Co Ltd Image enlargement and reduction device
JP2007265055A (en) * 2006-03-29 2007-10-11 Nec Engineering Ltd Resolution conversion processing method of binary image

Also Published As

Publication number Publication date
JPS60246485A (en) 1985-12-06

Similar Documents

Publication Publication Date Title
JPH0535435B2 (en)
EP0143533A2 (en) Image data expanding and/or contracting method and apparatus
JPS61159686A (en) Image display unit
Arabnia et al. A transputer network for fast operations on digitised images
US4907284A (en) Image processing apparatus having function of enlargement and/or shrinkage of image
US5117468A (en) Image processing system capable of carrying out local processing for image at high speed
JPH0221633B2 (en)
US6195463B1 (en) Multiresolution image processing and storage on a single chip
JPS6057593B2 (en) Character pattern processing method
JP3726971B2 (en) Parallel processor device
JPS6360952B2 (en)
JPH0142424B2 (en)
JP3006946B2 (en) Printing equipment
JP2516611B2 (en) Parallel data processing device
JPS5947394B2 (en) Variable length two-dimensional register
JPS6134678A (en) Magnifying and reducing device of image
JPH0221632B2 (en)
JP3170044B2 (en) Printing equipment
JPH01221796A (en) Bit block transferring lsi circuit
JP3247441B2 (en) Image processing device
JP2512252B2 (en) Image scaling device
JPH0697462B2 (en) Image rotation method
JP2852050B2 (en) Image processing device
US5550648A (en) System for filling outlines by addition and subtraction according to start and end positions of the outlines
JPH0137066B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term