JP2713400B2 - Projection information generation device - Google Patents

Projection information generation device

Info

Publication number
JP2713400B2
JP2713400B2 JP61289253A JP28925386A JP2713400B2 JP 2713400 B2 JP2713400 B2 JP 2713400B2 JP 61289253 A JP61289253 A JP 61289253A JP 28925386 A JP28925386 A JP 28925386A JP 2713400 B2 JP2713400 B2 JP 2713400B2
Authority
JP
Japan
Prior art keywords
vector
run
value
projection
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 - Fee Related
Application number
JP61289253A
Other languages
Japanese (ja)
Other versions
JPS63142479A (en
Inventor
哲 高山
桂 川上
成夫 島崎
千香 小野寺
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 JP61289253A priority Critical patent/JP2713400B2/en
Publication of JPS63142479A publication Critical patent/JPS63142479A/en
Application granted granted Critical
Publication of JP2713400B2 publication Critical patent/JP2713400B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、計算機による画像情報の拡大縮小処理を制
御する情報を算出する投影情報生成装置に関する。 従来の技術 画像の拡大縮小は、原画素{Av,w}を結果画素{Bx,
y}に変換する処理である。即ち、原画素のインデック
スであるV,Wに対応すべき結果画素のインデックスx,yを
算出し、{Av,w}の値を{Bx,y}に対応づける作業であ
る。この拡大縮小の処理において、原画素{Av,w}を直
線に写影することにより、結果画素{Bx,y}を求める方
法がある。 以下、これを説明する。説明を簡単にするため、一次
元の原画素mビットを、結果画素nビットに縮小(m≧
n)する場合を説明する。第6図はm個の原画素を、n
個の結果画素に縮小する原理を例にとって説明するため
の図である。(a1,a2,…,am)は原画素,(b1,b2
…,bn)は結果画像である。 以下、簡単のため、ベクトル(a1,a2,……,am)を
A、(b1,b2,……bnをBと記す。なお、同図ではx軸
方向に原画像Aの並びを、y軸方向に、結果画像Bの並
びを想定する。また結果画素bj-1とbjの境界の水平格子
線を、hjとする。図中の直線Lは、縮小率n/mを傾きと
し、量子化の誤差を表す値(以下、残差と称す)の初期
値roをy切片に持つ直線である。格子線間隔は説明の簡
易のために1とする。 結果画像Bは、原画像Aを直線Lを介した写像とし
て、求めることができる。原画素a1の中心を通る垂線
と、直線Lとの交点をP1とする。点P1を通る水平線が貫
く結果画素をb1とすると、iが、jに対するものとし、
a1の値をbjに転送する。 a1が、bjと対応することが予めわかっているときa1
隣接画素ai+1に対応する結果画素を求める方法は簡略化
できる。即ち、ai+1は、bjまたはbj+1のどちらかに対応
するが、そのどちらであるかは、点Piと点Pi+1との間に
水平格子線hj+1があるか否かを確めることによって決定
できる。 このように、直線Lに写影する方法で、原画素と結果
画素の対応関係を求めることが可能であるが、その対応
関係の情報をベクトルT(t1,t2,…,tm)によって表
すことができる。(以下ベクトルTを投影ベクトル、そ
の要素を投影情報と称す。) 投影ベクトルTは、その要素である投影情報t1が“1"
又は“0"のいずれかの値をとる2値ベクトルである。そ
の値は、以下の手順により定まるのとする。 投影情報t1の値が“1"となるときは、点P1が水平格子
線h1の上位に、もしくは、水平格子線h1上に存在する場
合であり、t1の値が“0"となるときは、その他の場合で
ある。 一担、a1とb1が対応していることがわかっている場
合、ai+1は、bjかあるいはbj+1のどちらかに対応する。
水平格子線hj+1が点P1とPi+1の間に存在する場合、もし
くは、水平格子線hj+1上に、点Pi+1が存在する場合、a
i+1はbj+1に対応する。このとき、ti+1の値は“1"とな
る。ti+1の値が“0"となるのは、その他の場合である。 例えば、8個の原画素を3個の結果画素に縮小する場
合を、第9図を使って、説明する。原画像をA(a1,a2
…a3),結果画像をB(b1,b2,b3)とする。図中の直
線Lの傾きは3/8である。直線Lのy切片であるR0は、
量子化の誤差を表す値の初期値である。 原画素の中心を通る垂線と直線Lとの交点をそれぞれ
左からP1,P2…,P8とする。 t1の値は、点P1が、水平格子線h1より上方に位置する
場合に“1"、その他の場合に“0"となる。第9図におい
ては、点P1は、水平格子線h1の下位に位置している。 故に t1=0 である。 次に、t2の値を求める。Tの第2番目の要素以降は、
前述したように、その1つ前の交点(この場合は、P1
ある)との間に、水平格子線が存在するか否かで、値が
きまる。 点P1と点P2の間に、水平格子線h1が存在している。 故に t2=1 である。 以上、順にt8まで、求めてゆくと投影ベクトルTは T=(01001010) となる。 以上のように算出された投影ベクトルTは、その算出
の原理から、原画像Aと結果画像Bとの対応関係を示す
もので、画像の拡大・縮小処理とは、この投影ベクトル
Tを算出することに他ならない。 例えば、投影ベクトルTの要素である投影情報のう
ち、“1"の値をもつ要素と同一のサフィックスを有する
原画素のみを結果画素に転送することにより、縮小画素
を得ることが可能である。 また、拡大の場合(n>m)は、原画像をB(b1
b2,…,bn),結果画像をA(a1,a2…,am)として対
応させる場合であり、投影ベクトルは同一である。又、
原画素が二次元の場合は、横方向の処理の後に縦方向の
処理を、又は縦方向の処理の後に横方向の処理を行えば
よい。投影ベクトルの計算は、原画素a1の中心からひい
た垂線と直線Lとの交点P1を、格子点に対応させ量子化
する計算であり、これは従来DDAアルゴリズムにより1
個の演算器を使用して、逐次処理により求めていた。実
際の計算過程を以下に説明する。 点P1のy座標の値をy1とすると、この点に於ける残差
riは、 ri=yii である。ただしiは、点Piの直下にある水平線hiの高
さである。 縮小率n/mの場合には、格子線間の長さをmとし、残
差Ri=m・ri,にnを加算した値と、mとの大小比較を
行う。(尚、以後の説明において格子線間の長さを1と
した場合の残差を小文字r,原画素倍した場合を大文字R
を用いることとする。)Ri+nがmより大きいか、又は等
しい場合、投影情報の第i+1番目であるti+1の値を1
として、次の残差Ri+1の値を、Ri+n−mとする。小さい
場合は、ti+1の値を0とし、次の残差Ri+1の値をRi+n
する。(このアルゴリズムの詳細は、K.Kawakami and
S.Simazaki.“A Special Purpose LSI Processor U sin
g The DDA Aigorithm For Lmage Transformation",(IE
EE,ComArc,llth,1984pp48〜54に詳しく述べられてあ
る。) 発明が解決しようとする問題点 さて、従来の方法では、前記投影情報の生成をプログ
ラムにより逐次的に行なっていたために、多数の演算回
数を必要とし、拡大縮小の処理の高速化を図るのが困難
であった。 本発明は上記問題点に鑑み、演算処理を簡素化して、
画情報の拡大縮小の際に必要な投影情報の高速な生成を
計るものである。 問題点を解決するための手段 本発明は、上記目的を達成するために、m個の画素か
らなる一次元の第1の画像と、n個の画素からなる一次
元の第2の画像との直線への写影を介した対応関係を表
すLビット(Lは、m,nのうち大きな数)の投影ベクト
ルを、m,n,及び、初期残差ROからQビット(Qはm,nの
うち小さな数)からなる前記投影ベクトル中における
“1",“0"の出現周期を表す2種類の連長P、P−1の
出現順序を表す連ベクトルを算出することにより、連長
単位で生成する処理を、m,n,及び初期残差ROから2種類
の連長P,P−1、及び投影ベクトルにおいて最初に“1"
の要素が現れるまでの要素数である第1番目の連l1と、
連ベクトルを算出するために必要な残差Y、及び残差の
変化量qをP=〔L/Q〕+1,q=Q−R<L/Q>,l1=P
−〔(q+RO)/Q〕,Y=R<(q+RO)/Q>(記号R<
L/Q>はLを被除数、Qを除数とした整数間の除算の剰
余を表わし、記号〔X〕はXを越えない最大の整数を表
す)により算出する第1の演算手段と、前記第1の演算
手段から入力されたq,Yに基づき、Y+q≧Qの場合、
連長P−1の出現を表す値を連ベクトルの要素とし、か
つ、Yの値をY=Y+q−nと更新し、Y+q<Qの場
合、連長Pの出現を表す値を連ベクトルの要素とし、Y
の値をY=Y+qと更新することをQ−1回繰り返すこ
とで連ベクトルを算出する第2の演算手段と、前記第2
の演算手段により算出された連ベクトルと前記第1の演
算手段により算出された2種類の連長P,P−1、及び第
1番目の連長l1から投影ベクトルを合成する第3の演算
手段で実現したものである。 作用 本発明は上記構成により、投影情報の連長をもとめる
ので、従来1ビットごとに算出していた投影情報を複数
ビット同時に算出可能となり、従来要していた算出時間
を減少させることができるものである。 実施例 既に説明したように、2次元画像の拡大縮小の処理と
は、画像{Av,w}を画像{Bx,y}に変換する作業であ
る。この処理は、倍率及び領域の大きさに関係なく、一
次元領域の縮小に帰着する。 以下、説明を簡単にするため、一次元領域の縮小を例
に説明する。ここで、いくつかの用語と記号を定義して
おく。原画素数をm、結果画素数をn、量子化の誤差を
表す残差の初期値をro、原画素と結果画素の対応関係
を、原画素を構成する画素が結果画素を構成する画素と
して出現する場合を1、出現しない場合を0で表現した
m個の要素からなるベクトルTを投影ベクトル、記号R
<m/n>はmを被除数、nを除数とした整数間の除算の
剰余を表わす関数、記号〔X〕はXを越えない最大の整
数を表す関数とする。 m=n〔m/n〕+R<m/n>なる関係から P=〔m/n〕+1 −(1) q=n−R<m/n> −(2) なるP、qを定義すると、P,qは m=nP−q −(3) を満たす。 まず、本発明の基本的な概念を説明しておく。m個の
一次元の原画素を、n個の一次元の結果画素に投影する
ための投影ベクトルTは前述の通り、m個の要素から成
る。これを、ベクトルT(t1,t2…,tm)で表す。Tの
要素の中で、“1"の値をもつものは、結果画素の個数に
等しく、n個存在する。投影ベクトルTの要素で“1"の
値を持つ要素のうち、第K番目の要素をti(K)と表す。 投影ベクトルTの中で、最初に“1"の値をとるti(1)
は、第6図で示す直線Lが、下記を満たす最小の整数X
を算出することに他ならない。即ち L=(n/m)X+ro≧1 −(4) より X≧(m/n)(1−ro)=m/n−(m/n)・ro =(nP−q)/n−(m/n)・ro =P−(q+m・ro)・n −(5) また、求めるXが最小の整数であることより、m・ro
Roとし、 i(1)=〔X〕=P−〔(q+m・ro)/n〕 =P−〔(q+Ro)/n〕 −(6) 次にti(K-1)が“1"の場合、i(K-1)は、(K≧2) (n/m)・i(K-1)+ro=α+rK-1 {但しαは整数で、rK-1は0≦rK-1<n/m} −(7) を満たす。ti(K)が“1"となるには、 X=i(K)−i(K-1) とし、 L=(n/m)・X+rK-1≧1 −(8) を満たす最小の整数Xを算出することに他ならない。即
ち、式(4)(5)より X≧P−((q+m・rK-1)/n) −(9) 式(7)より、0≦m・rK-1=RK-1<n −(10) また、式(2)より0<q≦n −(11) よって、式(10)と式(11)を加えnで割ることによ
り、 0<(q+RK-1)/n<2 −(12) Xは式(9)を満たす最小の整数であることより X=P:(0<(q+RK-1)/n<1の場合) −(13) X=P−1:(1≦(q+RK-1)/n<2の場合)−(14) 即ち、i(K)−i(K-1)はPまたはP−1 −(15) 従って、ti(K)(K≧2)の左側には、P−2個また
はP−1個の“0"が、第7図のように並んでいる。同図
のようにti(K-1)のすぐ右の0からからti(K)までの要素
の集合を“連”、“連”の要素数を連長lKと呼ぶ。 第6図は、m,nがそれぞれ37,9である場合の投影ベク
トルの例である。第6図では、Pの値は5である。図に
示す例では、左から4番目の以降要素については、連長
は5または4であることがわかる。 いずれの連長となるかは、以下のように算出すること
で決めることができる。即ち、式(13)、(14)より、
ti(K-1)を算出した際の残差RK-1を用いて q+RK-1<nならばlK=P q+RK-1≧nならばlK=P−1 −(16) また、ti(K+1)を算出する際に必要な、残差RKは、式
(3)より (i)lK=Pの場合 L=(n/m)・P+RK-1/m =(n/m)・{(m+q)/n}+RK-1/m =1+(q+RK-1)/m ∴RK=q+RK-1 (ii)lK=P−1の場合 L=(n/m)・(P−1)+RK-1/m =(n・p−q+q−n)/m+RK-1/m =m/m+(q+RK-1−n)/m ∴RK=q+RK-1−n 以上により q+RK-1<nならば、lK=PでRK=q+RK-1 −(17) q+RK-1≧nならば、lK=P−1でRK=q+RK-1−n −(18) となる。 即ち、第K番目(K≧2)の連長lKは、残差RK-1にq
を加算し、その結果をnとの大小比較を行うことによっ
て、P個の要素数となるかあるいはP−1の要素数とな
るかが決定できる。 また、l2を算出するための残差R1は次のように算出さ
れる。即ち、式(6)より L=(n/m)(P−〔(q+Ro)/n〕)+ro =(n・P−q+q−n・〔q+Ro)/n〕)/m+Ro/m =〔n・P−q)/m+〔(q+Ro−n・〔(q+Ro)/
n〕}/m =1+{q+Ro−n・〔(q+Ro)/n〕}/m ∴R1=q+Ro−n・〔(q+Ro)/n〕 =R〔(q+Ro)/n〕 −(19) 次に以下のようなベクトルG(g2,…gn)を定義し、
以下連ベクトルと称す。 即ちgkは (i)RK-1+q−n<0の時gk=0 (ii)RK-1+q−n≧0の時gk=1 −(20) このときGは要素gkの値と、連長lKには、式(17)
(18)により以下のような関係が存在する。 即ち (i)gk=0の時lK=P、RK=RK-1+q (ii)gk=1の時lK=P−1,RK=RK-1+q−n−(21) 以上により、連ベクトルの要素であるgkを1個算出す
ることにより、投影ベクトルの要素をP個またはP−1
個ごとに算出がすることが可能となる。第1の番目の連
(以下初期連と称す)の連長l1は、式(6)をもとに算
出する。 第5図は、この原理を利用して、投影ベクトルを求め
る具体的方法のフローチャートである。101ではパラメ
ータm,n,Roを入力する処理を行う。104では連長Pとq
を式(1)(2)に基づいて算出する。105では初期連
長l1を式(6)に基づいて算出する。また、投影ベクト
ルの最初の“1"の値をもつ要素での残差Yを式(19)に
基づいて算出する。106では105で算出したl1個の要素か
ら構成された初期連を出力する処理を行う。107では残
差Yに残差の変化量qを加える処理を行い、0以上n未
満の値に直す前の次の残差yをもとめる。108ではyと
nの大小比較の処理を行う。yがnに等しいか、又はn
より大きい場合は、110に於いて連長がP−1個である
連を出力する処理を行う。その他の場合は、109に於い
て連長がP個である連を出力する処理を行う。111では
P−1個の連を出力した場合は、次の連長の計算に必要
な残差をYをy−nとする。112では、投影情報がm個
求まった否かの判断を行う。以上のようにして、投影ベ
クトルTを算出する。 次に、上記本発明の概念に基づく投影ベクトル生成装
置の一実施例について説明する。第1図は本発明の一実
施例における投影ベクトル生成装置のブロック結線図で
ある。同図において、第1演算ユニット1は、連長P,P
−1、l1と後述の第2演算ユニットで必要とするパラメ
ータn,q,Yを算出する。即ち、第5図の101〜105の処理
を、行うものである。 第2演算ユニット2は、連ベクトルを算出する処理を
行う。即ち、第5図の107,108,111の処理を行うもので
ある。第3演算ユニット3は、第1演算ユニット1で算
出した連長P,P−1,l1と、第2演算ユニット2で算出し
た連ベクトルから、投影情報の連を出力する。 即ち、第5図の106,109,110,112の処理を行うもので
ある。投影情報レジスタ4は、第3演算ユニット3で出
力する32ビットの投影情報を格納するものである。 以下、第1図のさらに詳細な構成について説明する。
第2図は、第1演算ユニット1の詳細なブロック結線図
である。以下、動作を説明する。207はm,n,Roを入力に
もつ割り算器であり、以下の処理を行い、P,q,l1,Yを出
力する。 P=〔m/n〕+1 −(22) q=n−R〔m/n〕 −(23) l1=P−〔(q+Ro)/n〕 −(24) Y=R〔(q+Ro)/n〕 −(25) 減算器204は、 P−1 −(26) を出力する。 第1演算ユニットは、以上の処理を行う。算出された
Y,qは、第2演算ユニットの入力であり、P,P−1,l1は第
3演算ユニットの入力である。 第3図は、第2演算ユニット2と、第3演算ユニット
3と、投影情報格納レジスタ4のブロック図である。30
1〜306は第1演算ユニットで算出したY,q,n,P,P−1,l1
をそれぞれ格納するためのレジスタである。 310,312は加算器、311,313は減算器である。308は減
算器311の演算結果の、符号情報を格納する符号レジス
タである。309は加算器309の演算結果の桁上げ情報を格
納する桁上げレジスタである。321〜324は2入力1出力
のセレクタである。セレクタ321〜322は符号レジスタ30
8の値によって制御され、セレクタ323〜324は桁上げレ
ジスタ309の値によって制御される。333はタイミングを
制御するためのバッファである。341〜344はANDゲー
ト、345〜347はNOTゲートである。351はデコーダーであ
る。300は32ビットレジスタである。352は加算器312の
演算結果を格納するレジスタである。図中のφ1,φ2,φ
3はクロックで、第4図はこれらのクロックの位相関係
を説明するための図である。 図中のように、これらの3つクロックは、T1〜T6の期
間を構成する。以下、動作を説明する。 第1演算ユニット1での処理が終了すると、算出され
たY,q,n,P,P−1,l1は、レジスタ301〜306に格納され
る。その他のすべてのレジスタは、初期値“0"を格納す
る。 (1)処理1 (i)T1の期間でレジスタ301,306,307は、更新され
る。(最初のT1の期間では更新されず、それぞれのレジ
スタには、Y,l1,0が格納されている) (ii)T2の期間で、第2演算ユニットの加算器310での
処理、減算器311での処理、及び第3演算ユニットの加
算器312での処理が行われる。加算器310は、 Y+q −(27) を出力する。この演算結果は、セレクタ321と減算器311
にはいる。減算器311は、 (Y+q)−n −(28) を出力する。符号レジスタ308の値は、 S=1;(Y+q)−n≧0 −(29) S=0;(Y+q)−n≧0 となる。即ち、T2の期間では連ベクトルの要素を1ビッ
ト算出し、符号レジスタ308に格納する処理を行う。加
算器312は、レジスタ306の値Bとレジスタ307の値Lと
の加算、即ち B+L −(30) を出力する。演算結果が33以上になると、桁上げ情報と
して“1"を出力する。その他の場合に出力する桁上げ情
報は“0"である。減算器313は、 (B+L)−32 −(31) を出力する。 (iii)T3の期間でレジスタ309は、更新される(終) レジスタ309の値Cが1の時は、処理2が、実行さ
れ、Cが0の時は、処理3が実行される。処理2,3は、
以下に示す。 (2)処理2 (i)T4の期間でアンドゲート344を通り、レジスタ30
0,004にクロックがはいる。このクロックによりレジス
タ004は、レジスタ300の値を格納する。その後レジスタ
300はすべて“0"に設定する。 (ii)T5の期間で、レジスタ352は、更新されるが、NOT
ゲート346,ANDゲート343により、デコーダ35に、その値
Dは、入力されない。また、NOTゲート345、ANDゲート3
42により、レジスタ308には、クロックがはいらずレジ
スタ308は更新されない。 (iii)T6の期間でセレクタ323は、減算器313の出力で
ある (B+L)−32 −(32) を出力する。セレクタ324は、“0"を出力する。 (iv)T1の期間でレジスタ306,307は、更新される。NOT
ゲート347,ANDゲート341により、レジスタ301にはクロ
ックがはいらず、レジスタ301は更新されない。 (v)T2の期間で加算器312、減算器313は、処理1−
(ii)で述べた処理を行う。 (vi)T3の期間でレジスタ309は、更新される。(終) レジスタ309の値Cが“1"の場合は、上記の(i)〜
(vi)の処理が、Cの値が“0"となるまで行われる。 (3)処理3 (i)T4の期間でレジスタ300,004にクロックははいら
ないので、レジスタ300,004の間でのデータのやりとり
はない。 (ii)T5の期間でレジスタ382は更新され、値Dがデコ
ッダ351、セレクタ324にはいる。レジスタ308にクロッ
クがはいり、レジスタ308が更新される。セレクタ321,3
32は、レジスタ308の値Sが“0"の時は、それぞれY+
q、Pを出力し、Sが“1"の時は、それぞれY+q−n,
P−1を出力する。 (iii)T6の期間で、デコーダ351は、レジスタ352の値
をデコードし、“1"を出力する。レジスタ300は、デコ
ーダ351の“1"の出力を格納する。例えば、D=6の場
合、レジスタ300は、第7ビット目に、“1"を格納す
る。セレクタ323は、セレクタ322からの入力を出力し、
セレクタ324は、レジスタ352からの入力を出力する。
(終) 処理3が終了すると、処理1を実行する。 以上の処理を、投影情報がすべて算出されるまで行う
ことにより、投影情報を複数ビットずつ同時に算出する
ことができる。 発明の効果 以上のように本発明は、m個の画素からなる第1の画
像と、n個の画素からなる第2の画像との直線への写影
を介した対応関係を表すLビット(Lは、m,nのうち大
きな数)の投影ベクトルを、m,n,及び、初期残差Roから
Qビット(Qはm,mのうち小さな数)からなる前記投影
ベクトル中における“1",“0"の出現周期を表す2種類
の連長の出現順序を表す連ベクトルを算出することによ
り、従来1ビットごとに算出していた投影情報を複数ビ
ット同時に算出可能となり、従来要していた算出時間を
減少させることができる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a projection information generating apparatus that calculates information for controlling image information scaling processing by a computer. 2. Description of the Related Art To enlarge or reduce an image, an original pixel {Av, w} is converted into a result pixel {Bx,
This is the process of converting to y}. That is, this is a task of calculating the indices x, y of the result pixels that should correspond to the indices V, W of the original pixels, and associating the value of {Av, w} with {Bx, y}. In this enlargement / reduction processing, there is a method of obtaining a result pixel {Bx, y} by mapping the original pixel {Av, w} to a straight line. Hereinafter, this will be described. For simplicity of description, m bits of a one-dimensional original pixel are reduced to n bits of a result pixel (m ≧
n) will be described. FIG. 6 shows m original pixels, n
FIG. 8 is a diagram for describing an example of a principle of reducing the number of result pixels into pixels. (A 1 , a 2 ,..., A m ) is the original pixel, (b 1 , b 2 ,
.., B n ) are the result images. Hereinafter, for simplicity, the vectors (a 1 , a 2 ,..., A m ) are denoted by A, and (b 1 , b 2 ,..., B n) are denoted by B. In FIG. The arrangement of A is assumed to be the arrangement of the result image B in the y-axis direction, and the horizontal grid line at the boundary between the result pixels b j-1 and b j is assumed to be h j . the rate n / m is the slope, a value representing an error of the quantization (hereinafter referred to as residual) the initial value r o of a line having the y intercept. grid line spacing is 1 for the sake of simplicity of explanation . resulting image B is the original image a as mapping through the straight line L, passes can be obtained. a perpendicular line passing through the center of the original pixels a 1, a. point P 1 to the intersection of the straight line L and P 1 When the results pixels horizon penetrates and b 1, i is assumed for j,
transferring the value of a 1 to b j. a 1 is a method for obtaining the results pixels corresponding to neighboring pixels a i + 1 of a 1 when it is known in advance and corresponding b j can be simplified. That is, a i + 1 corresponds to either b j or b j + 1 , which is determined by a horizontal grid line h j + 1 between point P i and point P i + 1. Can be determined by ascertaining whether there is. As described above, the correspondence between the original pixel and the result pixel can be obtained by the method of mapping onto the straight line L, and the information of the correspondence is expressed by the vector T (t 1 , t 2 ,..., T m ). Can be represented by (Hereinafter projecting the vector T vector, referred to the elements and projection information.) Projection vector T is the projection information t 1 is the element "1"
Alternatively, it is a binary vector taking any value of “0”. The value is determined by the following procedure. When the value of the projection information t 1 becomes "1", the upper point P 1 is a horizontal grid line h 1, or a when present on the horizontal grid lines h 1, the value of t 1 is "0 "Is the other case. Ichi担, if a 1 and b 1 are found to correspond, a i + 1 corresponds to either of b j or b j + 1.
When the horizontal grid line h j + 1 exists between the points P 1 and P i + 1 , or when the point P i + 1 exists on the horizontal grid line h j + 1 , a
i + 1 corresponds to b j + 1 . At this time, the value of t i + 1 is “1”. The value of t i + 1 becomes “0” in other cases. For example, a case where eight original pixels are reduced to three result pixels will be described with reference to FIG. The original image is A (a 1 , a 2
... a 3), and the result image B (b 1, b 2, b 3). The inclination of the straight line L in the figure is 3/8. R 0 which is the y-intercept of the straight line L is
This is an initial value of a value representing a quantization error. The intersection of the perpendicular and the straight line L passing through the center of the original pixels P 1, P 2 ... from the left, respectively, and P 8. The value of t 1 is the point P 1 becomes "1", otherwise "0" when positioned above the horizontal grid lines h 1. In Figure 9, the point P 1 is located on the lower horizontal grid lines h 1. Therefore, t 1 = 0. Next, the value of t 2 is determined. After the second element of T,
As described above, the previous intersection (in this case, P 1 is a) between, on whether the horizontal grid lines are present, determined value. Between points P 1 and point P 2, are present horizontal grid lines h 1. Therefore, t 2 = 1. As described above, the projection vector T becomes T = (01001010) as far as t 8 is obtained. The projection vector T calculated as described above indicates the correspondence between the original image A and the result image B based on the principle of the calculation. The image enlargement / reduction process calculates the projection vector T. There is nothing else. For example, it is possible to obtain a reduced pixel by transferring only the original pixel having the same suffix as the element having the value of “1” to the result pixel among the projection information that is the element of the projection vector T. In the case of enlargement (n> m), the original image is represented by B (b 1 ,
b 2 ,..., b n ) and the resulting image as A (a 1 , a 2 ..., a m ), and the projection vectors are the same. or,
When the original pixels are two-dimensional, the processing in the vertical direction may be performed after the processing in the horizontal direction, or the processing in the horizontal direction may be performed after the processing in the vertical direction. Calculation of the projection vector, the intersection P 1 of the perpendicular and the line L drawn from the center of the original pixels a 1, a computation of quantizing to correspond to the lattice points, which the conventional DDA Algorithm 1
It has been determined by sequential processing using a plurality of arithmetic units. The actual calculation process will be described below. If the value of the y coordinate of point P 1 is y 1 , the residual at this point
r i is r i = y i −i . However i is the height of the horizontal line h i directly below the point P i. If the reduction ratio n / m is the length between the grating lines and m, the residual R i = m · r i, a value obtained by adding n to the comparison between m performed. (In the following description, the residual when the length between grid lines is set to 1 is a lowercase r, and when the original pixel is multiplied is an uppercase R.
Shall be used. ) When R i + n is greater than or equal to m, the value of t i + 1 which is the (i + 1) -th projection information is set to 1
The value of the next residual Ri + 1 is defined as Ri + n- m. If smaller, the value of t i + 1 is set to 0, and the value of the next residual R i + 1 is set to R i + n . (For details on this algorithm, see K. Kawakami and
S.Simazaki. “A Special Purpose LSI Processor U sin
g The DDA Aigorithm For Lmage Transformation ", (IE
EE, ComArc, llth, 1984 pp 48-54. Problems to be Solved by the Invention In the conventional method, since the generation of the projection information is performed sequentially by a program, a large number of calculations are required, and the speed of the enlargement / reduction processing is increased. Was difficult. In view of the above problems, the present invention simplifies arithmetic processing,
It is intended to generate projection information required at the time of enlargement / reduction of image information at high speed. Means for Solving the Problems In order to achieve the above object, the present invention provides a one-dimensional first image composed of m pixels and a one-dimensional second image composed of n pixels. L bits representing the corresponding relationship through Utsushikage to the straight line (L is, m, a large number of n) projection vector of, m, n, and, Q bits (Q from the initial residual R O is m, (a small number of n) in the projection vector, the two consecutive run lengths P and P-1 representing the appearance cycle of "1" and "0" are calculated, and the run length is calculated by calculating the run length. The processing to be generated in units is first performed by “1” in the two types of run lengths P and P−1 and the projection vector from m, n and the initial residual R O.
The first run l 1 , which is the number of elements until the element of
P = [L / Q] +1, q = Q−R <L / Q>, l 1 = P
- [(q + R O) / Q], Y = R <(q + R O) / Q> ( symbols R <
L / Q> represents the remainder of division between integers where L is the dividend and Q is the divisor, and the symbol [X] represents the largest integer that does not exceed X). In the case where Y + q ≧ Q based on q and Y input from the first calculating means,
A value representing the appearance of the run length P-1 is used as an element of the run vector, and the value of Y is updated as Y = Y + q-n. Element and Y
A second computing means for calculating a continuous vector by repeating the updating of the value of Y as Y = Y + q Q-1 times;
Third calculation that synthetic projection vector and communicating vector calculated by the calculation means and the first of the two run-length P calculated by the calculating means, P-1, and the first from the run length l 1 It is realized by means. Operation Since the present invention obtains the run length of projection information by the above configuration, it is possible to simultaneously calculate a plurality of bits of projection information which has been conventionally calculated for each bit, thereby reducing the calculation time conventionally required. It is. Embodiment As described above, the process of enlarging or reducing a two-dimensional image is an operation of converting an image {A v, w } into an image {B x, y }. This process results in a reduction of the one-dimensional area, regardless of the magnification and the size of the area. Hereinafter, for the sake of simplicity, a description will be given by taking a reduction of a one-dimensional area as an example. Here, some terms and symbols are defined. The number of original pixels is m, the number of resultant pixels is n, the initial value of the residual representing the quantization error is r o , and the correspondence between the original pixels and the resulting pixels is defined as a pixel in which the pixels constituting the original pixels constitute the resultant pixels A vector T made up of m elements, in which the case where they appear and the case where they do not appear, is represented by 1 and 0, respectively.
<M / n> is a function representing the remainder of division between integers where m is the dividend and n is the divisor, and the symbol [X] is a function representing the largest integer not exceeding X. From the relationship m = n [m / n] + R <m / n>, P = [m / n] + 1− (1) q = n−R <m / n> − (2) , P, q satisfy m = nPq- (3). First, the basic concept of the present invention will be described. As described above, the projection vector T for projecting m one-dimensional original pixels onto n one-dimensional result pixels is composed of m elements. This is represented by a vector T (t 1 , t 2 ..., T m ). Among the elements of T, those having a value of “1” are equal to the number of result pixels, and there are n elements. Among the elements of the projection vector T having the value of “1”, the K-th element is represented as t i (K) . T i (1) which first takes a value of “1” in the projection vector T
Is the minimum integer X that satisfies
Is nothing more than calculating. That L = (n / m) X + r o ≧ 1 - (4) from X ≧ (m / n) ( 1-r o) = m / n- (m / n) · r o = (nP-q) / n− (m / n) · ro = P− (q + m · ro ) · n− (5) Further, since X to be obtained is the minimum integer, m · ro =
Let Ro be i (1) = [X] = P-[(q + m.ro ) / n] = P-[(q + Ro ) / n]-(6) Then, ti (K-1) is In the case of “1”, i (K−1) is (K ≧ 2) (n / m) · i (K−1) + ro = α + rK −1 where α is an integer and rK −1 is 0 ≦ r K−1 <n / m} − (7) is satisfied. In order for t i (K) to be “1”, X = i (K) −i (K−1), and the minimum integer satisfying L = (n / m) · X + r K−1 ≧ 1− (8) It is nothing but calculating X. That is, X ≧ P − ((q + m · r K−1 ) / n) according to Equations (4) and (5) − (9) From Equation (7), 0 ≦ m · r K−1 = R K−1 < n− (10) From Expression (2), 0 <q ≦ n− (11) Therefore, by adding Expression (10) and Expression (11) and dividing by n, 0 <(q + R K−1 ) / n <2- (12) Since X is the minimum integer satisfying the expression (9), X = P: (0 <(q + RK-1 ) / n <1)-(13) X = P-1 : (1 ≦ (q + R K−1 ) / n <2) − (14) That is, i (K) −i (K−1) is P or P−1− (15) Therefore, t i (K On the left side of (K ≧ 2), P−2 or P−1 “0” s are arranged as shown in FIG. As shown in the figure, a set of elements from 0 to ti (K) immediately to the right of t i (K−1) is referred to as a “run”, and the number of elements of the “run” is referred to as a run length l K. FIG. 6 is an example of a projection vector when m and n are 37 and 9, respectively. In FIG. 6, the value of P is 5. In the example shown in the figure, it can be seen that the run length is 5 or 4 for the fourth and subsequent elements from the left. Which of the run lengths can be determined by calculating as follows. That is, from equations (13) and (14),
Using the residual RK-1 at the time of calculating t i (K-1) , if q + R K-1 <n, then l K = P q + R K-1 ≧ n, then l K = P-1 − (16 ) also, necessary for calculating the t i (K + 1), the residual R K, when the equation (3) (i) l K = P L = (n / m) · P + R K-1 / m = (n / m) · {(m + q) / n} + R K-1 / m = 1 + (q + R K-1) / m ∴R K = q + R K-1 (ii) l K = P-1 of In the case, L = (n / m) · (P−1) + R K−1 / m = (n · p−q + q−n) / m + R K−1 / m = m / m + (q + R K−1 −n) / m ∴R K = q + R K -1 q + R K-1 by more -n <if n, l K = P in R K = q + R K- 1 - (17) if q + R K-1 ≧ n , l K = At P-1, R K = q + R K−1 −n − (18) That is, the K-th (K ≧ 2) run length l K is obtained by adding q to the residual R K−1 .
Is added, and the result is compared with n to determine whether the number of elements is P or P-1. Further, the residual R 1 for calculating the l 2 are calculated as follows. That is, from equation (6), L = (n / m) (P-[(q + Ro ) / n]) + ro = (nPq + qn [q + Ro ] / n]) / m + Ro / m = [n · P−q) / m + [(q + Ro− n · [(q + Ro ) /
n]} / m = 1 + {q + R o -n · [(q + R o) / n]} / m ∴R 1 = q + R o -n · [(q + R o) / n] = R [(q + R o) / n − (19) Next, the following vector G (g 2 ,..., G n ) is defined,
Hereinafter, it is referred to as a continuous vector. That is, gk is (i) gk = 0 when RK -1 + qn <0. (Ii) gk = 1- (20) when RK -1 + qn≥0. For the value of k and the run length l K ,
According to (18), the following relationship exists. That is, (i) When g k = 0, l K = P, RK = R K-1 + q (ii) When g k = 1, l K = P-1, RK = R K-1 + q-n- (21) As described above, by calculating one g k , which is an element of a continuous vector, P elements or P−1
Calculation can be performed for each individual. The run length l1 of the first run (hereinafter, referred to as the initial run) is calculated based on Expression (6). FIG. 5 is a flowchart of a specific method for obtaining a projection vector using this principle. In step 101, processing for inputting parameters m, n, and Ro is performed. In 104, run lengths P and q
Is calculated based on the equations (1) and (2). The initial run length l 1 in 105 is calculated based on the equation (6). Further, the residual Y of the element having the first value of “1” of the projection vector is calculated based on the equation (19). At 106, a process of outputting an initial run composed of l one element calculated at 105 is performed. In 107, a process of adding the variation amount q of the residual to the residual Y is performed, and the next residual y before being changed to a value of 0 or more and less than n is obtained. At 108, a process of comparing the magnitudes of y and n is performed. y is equal to n or n
If it is larger, a process of outputting a run having a run length of P-1 at 110 is performed. In other cases, a process of outputting a run having a run length of P in step 109 is performed. In step 111, when P-1 runs are output, the residual necessary for the calculation of the next run length is defined as y-n. At 112, it is determined whether m pieces of projection information have been obtained. The projection vector T is calculated as described above. Next, an embodiment of the projection vector generation device based on the concept of the present invention will be described. FIG. 1 is a block diagram of a projection vector generating apparatus according to an embodiment of the present invention. In the figure, the first arithmetic unit 1 has run lengths P, P
-1, it is calculated parameters required in the second arithmetic unit which will be described later with l 1 n, q, and Y. That is, the processing of 101 to 105 in FIG. 5 is performed. The second arithmetic unit 2 performs a process of calculating a continuous vector. That is, the processing of steps 107, 108 and 111 in FIG. 5 is performed. Third arithmetic unit 3, run-length P calculated by the first arithmetic unit 1, and P-1, l 1, from the communication vector calculated by the second arithmetic unit 2, and outputs the continuous projection information. That is, the processing of steps 106, 109, 110, and 112 in FIG. 5 is performed. The projection information register 4 stores 32-bit projection information output by the third arithmetic unit 3. Hereinafter, a more detailed configuration of FIG. 1 will be described.
FIG. 2 is a detailed block connection diagram of the first arithmetic unit 1. Hereinafter, the operation will be described. Reference numeral 207 denotes a divider having m, n, and Ro as inputs, performs the following processing, and outputs P, q, l 1 , and Y. P = [m / n] + 1- (22) q = n-R [m / n]-(23) 11 = P-[(q + Ro ) / n]-(24) Y = R [(q + Ro ) / N] − (25) The subtractor 204 outputs P−1− (26). The first arithmetic unit performs the above processing. Calculated
Y, q is an input of the second operational unit, P, is P-1, l 1 is the input of the third arithmetic unit. FIG. 3 is a block diagram of the second operation unit 2, the third operation unit 3, and the projection information storage register 4. 30
1 to 306 are Y, q, n, P, P−1, l 1 calculated by the first arithmetic unit.
Are stored in the register. 310 and 312 are adders, and 311 and 313 are subtractors. Reference numeral 308 denotes a code register that stores code information of the operation result of the subtractor 311. A carry register 309 stores carry information of the operation result of the adder 309. Reference numerals 321 to 324 denote selectors with two inputs and one output. The selectors 321 to 322 are the sign register 30
The selector 323-324 is controlled by the value of the carry register 309. 333 is a buffer for controlling timing. Reference numerals 341 to 344 denote AND gates, and reference numerals 345 to 347 denote NOT gates. 351 is a decoder. 300 is a 32-bit register. A register 352 stores the operation result of the adder 312. Φ1, φ2, φ in the figure
3 is a clock, and FIG. 4 is a diagram for explaining the phase relationship between these clocks. As in the figure, these three clocks, constituting the period of T 1 through T 6. Hereinafter, the operation will be described. When the processing by the first operation unit 1 is completed, the calculated Y, q, n, P, P-1, l 1 is stored in the register 301 to 306. All other registers store the initial value “0”. (1) Processing 1 (i) register with a period of T 1 301,306,307 is updated. (Not updated in the period of the first T 1, the respective registers, Y, l 1, 0 is stored) (ii) a period of T 2, the process of the adder 310 of the second arithmetic unit , The processing in the subtractor 311 and the processing in the adder 312 of the third operation unit. The adder 310 outputs Y + q− (27). The result of this operation is supplied to the selector 321 and the subtractor 311.
Enter. The subtractor 311 outputs (Y + q) -n- (28). The value of the sign register 308 is as follows: S = 1; (Y + q) −n ≧ 0− (29) S = 0; (Y + q) −n ≧ 0 That is, in the period of T 2 , the process of calculating one bit of the element of the continuous vector and storing it in the code register 308 is performed. The adder 312 adds the value B of the register 306 and the value L of the register 307, that is, outputs B + L− (30). When the calculation result is 33 or more, "1" is output as carry information. In other cases, the carry information to be output is “0”. The subtractor 313 outputs (B + L) −32− (31). (Iii) T register 309 in the period of 3, when the value C of the updated (final) register 309 is 1, processing 2 is executed, when C is 0, the processing 3 is executed. Processes 2 and 3 are
It is shown below. (2) through the AND gate 344 for a period of treatment 2 (i) T 4, register 30
There is a clock at 0,004. With this clock, the register 004 stores the value of the register 300. Then register
All 300 are set to “0”. In period (ii) T 5, the register 352 is updated, NOT
The value D is not input to the decoder 35 by the gate 346 and the AND gate 343. Also, NOT gate 345, AND gate 3
According to 42, the clock does not enter the register 308 and the register 308 is not updated. The selector 323 in the period (iii) T 6 is the output of the subtracter 313 (B + L) -32 - outputs (32). The selector 324 outputs “0”. Register 306 and 307 for a period of (iv) T 1 is updated. NOT
Due to the gate 347 and the AND gate 341, no clock enters the register 301 and the register 301 is not updated. (V) an adder 312 for a period of T 2, the subtractor 313, the process 1-
Perform the processing described in (ii). Register 309 in the period (vi) T 3 is updated. (End) When the value C of the register 309 is “1”, the above (i) to
The processing of (vi) is performed until the value of C becomes “0”. (3) Since the processing 3 (i) register with a period of T 4 300,004 clocks not enter, there is no exchange of data between the registers 300,004. Register 382 in the period (ii) T 5 is updated, the value D is Dekodda 351, it enters the selector 324. The clock is input to the register 308, and the register 308 is updated. Selector 321,3
32, when the value S of the register 308 is “0”, Y +
q and P are output, and when S is "1", Y + q-n,
Outputs P-1. (Iii) for a period of T 6, the decoder 351 decodes the value of the register 352 and outputs "1". The register 300 stores the output of “1” of the decoder 351. For example, when D = 6, the register 300 stores “1” in the seventh bit. The selector 323 outputs the input from the selector 322,
The selector 324 outputs an input from the register 352.
(End) When the process 3 ends, the process 1 is executed. By performing the above processing until all the projection information is calculated, the projection information can be calculated simultaneously for each of a plurality of bits. Effect of the Invention As described above, the present invention provides an L-bit (L bit) representing a correspondence between a first image composed of m pixels and a second image composed of n pixels via a straight line projection. L is, m, the projected vector of a large number) of n, m, n, and, Q bits from the initial residual R o (Q is m, "in the projection vectors in of small number) of the m 1 By calculating a continuous vector representing the appearance order of two types of continuous lengths representing the appearance cycle of "," 0 ", it is possible to simultaneously calculate a plurality of bits of projection information which was conventionally calculated for each bit. Calculation time can be reduced.

【図面の簡単な説明】 第1図は本発明の一実施例において投影情報生成装置の
ブロック結線図、第2図は第1図の要部である第1演算
ユニットのモジュール結線図、第3図は第1図の要部で
ある第2、第3演算ユニットと投影情報格納レジスタの
モジュール結線図、第4図は同装置における要部のクロ
ックの位相関係を説明する波形図、第5図は、本発明の
基本的原理を示した動作フロー図、第6図は本発明のDD
A計算を説明する概念図、第6図は生の投影情報を示し
た図、第6図は従来の拡大縮小を説明する概念図、第7
図〜第9図は従来の拡大縮小の際に投影情報を算出する
場合の概念図である。 1…第1演算ユニット、2…第2演算ユニット、3…第
3演算ユニット、4…レジスタ、204,311,313…減算
器、310,312…加算器、207…割り算器、321〜324…セレ
クタ、004,300〜309,352,353…レジスタ、351…デコー
ダ、341〜344…ANDゲート、345〜347…NOTゲート、333
…バッファ。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a projection information generating apparatus according to an embodiment of the present invention, FIG. 2 is a module diagram of a first arithmetic unit which is a main part of FIG. 1, FIG. FIG. 5 is a module connection diagram of the second and third arithmetic units and the projection information storage register, which are main parts of FIG. 1, FIG. 4 is a waveform diagram for explaining the phase relationship of clocks of main parts in the apparatus, and FIG. Is an operation flowchart showing the basic principle of the present invention, and FIG.
FIG. 6 is a conceptual diagram for explaining the A calculation, FIG. 6 is a diagram showing raw projection information, FIG. 6 is a conceptual diagram for explaining conventional scaling, FIG.
FIG. 9 to FIG. 9 are conceptual diagrams for calculating projection information at the time of conventional enlargement / reduction. DESCRIPTION OF SYMBOLS 1 ... 1st arithmetic unit, 2 ... 2nd arithmetic unit, 3 ... 3rd arithmetic unit, 4 ... Register, 204,311,313 ... Subtractor, 310,312 ... Adder, 207 ... Divider, 321-324 ... Selector, 004,300-309,352,353 ... Register, 351… Decoder, 341-344… AND gate, 345-347… NOT gate, 333
…buffer.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 島崎 成夫 川崎市多摩区東三田3丁目10番1号 松 下技研株式会社内 (72)発明者 小野寺 千香 川崎市多摩区東三田3丁目10番1号 松 下技研株式会社内   ────────────────────────────────────────────────── ─── Continuation of front page    (72) Inventor Shigeo Shimazaki               Matsu, 3-10-1 Higashimita, Tama-ku, Kawasaki-shi               Shimogiken Co., Ltd. (72) Inventor Chika Onodera               Matsu, 3-10-1 Higashimita, Tama-ku, Kawasaki-shi               Shimogiken Co., Ltd.

Claims (1)

(57)【特許請求の範囲】 1.m個の画素からなる一次元の第1の画像と、n個の
画素からなる一次元の第2の画像との直線への写影を介
した対応関係を表すLビット(Lは、m,nのうち大きな
数)の投影ベクトルを、m,n,及び、初期残差RoからQビ
ット(Qはm,nのうち小さな数)からなる前記投影ベク
トル中における“1",“0"の出現周期を表す2種類の連
長P、P−1の出現順序を表す連ベクトルを算出するこ
とにより、連長単位で生成する処理を、 m,n,及び初期残差Roから2種類の連長P,P−1、及び投
影ベクトルにおいて最初に“1"の要素が現れるまでの要
素数である第1番目の連l1と、連ベクトルを算出するた
めに必要な残差Y、及び残差の変化量qをP=〔L/Q〕
+1,q=Q−R<L/Q>,l1=P−〔(q+Ro)/Q〕,Y=
R<(q+Ro)/Q>(記号R<L/Q>はLを被除数、Q
を除数とした整数間の除算の剰余を表わし、記号〔X〕
はXを越えない最大の整数を表す)により算出する第1
の演算手段と、 前記第1の演算手段から入力されたq,Yに基づき、Y+
q≧Qの場合、連長P−1の出現を表す値を連ベクトル
の要素とし、かつ、Yの値をY=Y+q−nと更新し、 Y+q<Qの場合、連長Pの出現を表す値を連ベクトル
の要素とし、Yの値をY=Y+qと更新することをQ−
1回繰り返すことで連ベクトルを算出する第2の演算手
段と、 前記第2の演算手段により算出された連ベクトルと前記
第1の演算手段により算出された2種類の連長P,P−
1、及び第1番目の連長l1から投影ベクトルを合成する
第3の演算手段から構成したことを特徴とする投影情報
生成装置。
(57) [Claims] L bits (L is m, m, L) representing a correspondence between a one-dimensional first image composed of m pixels and a one-dimensional second image composed of n pixels via a straight line mapping. the projection vectors of large number) of n, m, n, and, Q bits (Q is the initial residual R o m, during the projection vector of small number) of n "1", "0" two run-length P representing the occurrence period of, by calculating a continuous vector representing the order of appearance of P-1, two types of processing for generating in the continuous length unit, m, n, and the initial residual R o , And the first run l 1 , which is the number of elements until the first “1” element appears in the projection vector, and the residual Y, necessary to calculate the run vector, And the variation q of the residual is P = [L / Q]
+1, q = Q-R <L / Q>, l 1 = P-[(q + Ro ) / Q], Y =
R <(q + R o ) / Q> (symbol R <L / Q> is L for dividend, Q
Represents the remainder of the division between integers with the symbol [X]
Represents the largest integer not exceeding X)
And Y + based on q and Y inputted from the first computing means.
When q ≧ Q, the value representing the appearance of the run length P−1 is used as an element of the run vector, and the value of Y is updated as Y = Y + q−n. When Y + q <Q, the appearance of the run length P is determined. The value to be represented is taken as an element of the continuous vector, and updating the value of Y to Y = Y + q is Q-
A second calculating means for calculating a run vector by repeating once, a run vector calculated by the second calculating means, and two types of run lengths P, P- calculated by the first calculating means.
1, and projection information generating apparatus characterized by being configured from a third arithmetic means for combining the projection vector 1st from run length l 1.
JP61289253A 1986-12-04 1986-12-04 Projection information generation device Expired - Fee Related JP2713400B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61289253A JP2713400B2 (en) 1986-12-04 1986-12-04 Projection information generation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61289253A JP2713400B2 (en) 1986-12-04 1986-12-04 Projection information generation device

Publications (2)

Publication Number Publication Date
JPS63142479A JPS63142479A (en) 1988-06-14
JP2713400B2 true JP2713400B2 (en) 1998-02-16

Family

ID=17740760

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61289253A Expired - Fee Related JP2713400B2 (en) 1986-12-04 1986-12-04 Projection information generation device

Country Status (1)

Country Link
JP (1) JP2713400B2 (en)

Also Published As

Publication number Publication date
JPS63142479A (en) 1988-06-14

Similar Documents

Publication Publication Date Title
JP2921659B2 (en) Apparatus and method for resizing video image
US4635292A (en) Image processor
US7764285B2 (en) Computer graphics systems and methods for encoding subdivision triangular surfaces
JPH11175317A (en) Method and device for modular multiplication
CN112200713B (en) Business data processing method, device and equipment in federal learning
JPH0737082A (en) Method and device for rotating multilevel picture 90 degrees
JPH01124077A (en) Pixel generation method and system
JP2870756B2 (en) Spatial filter image processing device
JPS5853781B2 (en) Image scaling device
JP2713400B2 (en) Projection information generation device
JP3066596B2 (en) Address translation device
JPH05233795A (en) Image expansion/reduction device
US7107304B2 (en) Single-channel convolution in a vector processing computer system
US6256656B1 (en) Apparatus and method for extending computational precision of a computer system having a modular arithmetic processing unit
KR100665485B1 (en) Digital signal processor and digital signal processing method
JPH09231351A (en) Method for resizing picture and computer program product for the method
KR100246033B1 (en) A real-time high speed full search block matching motion estimation processor
JPH0785266A (en) Image rotating device
JPH05207268A (en) Picture element number increasing system
JP2004288198A (en) Expansion/reduction device and method of image data
JPH06214754A (en) Rounding arithmetic circuit and picture processor having it
JP2596269B2 (en) Information generation device
JP3710208B2 (en) Image processing method and apparatus
JPS63102468A (en) Converting device for resolution of picture data
JPH06274524A (en) Orthogonal transformation circuit and inverse transformation circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees