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

JP3784599B2 - Image reduction / enlargement device - Google Patents

Image reduction / enlargement device Download PDF

Info

Publication number
JP3784599B2
JP3784599B2 JP2000010960A JP2000010960A JP3784599B2 JP 3784599 B2 JP3784599 B2 JP 3784599B2 JP 2000010960 A JP2000010960 A JP 2000010960A JP 2000010960 A JP2000010960 A JP 2000010960A JP 3784599 B2 JP3784599 B2 JP 3784599B2
Authority
JP
Japan
Prior art keywords
image
image data
data
memory
address
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
JP2000010960A
Other languages
Japanese (ja)
Other versions
JP2001203884A (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.)
Schneider Electric Japan Holdings Ltd
Original Assignee
Digital Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digital Electronics Corp filed Critical Digital Electronics Corp
Priority to JP2000010960A priority Critical patent/JP3784599B2/en
Publication of JP2001203884A publication Critical patent/JP2001203884A/en
Application granted granted Critical
Publication of JP3784599B2 publication Critical patent/JP3784599B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Storing Facsimile Image Data (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、入力画像を縮小および拡大して同一の画面上に表示させることに係り、詳しくは、拡大画像の画質を向上させるようにした画像縮小/拡大方法およびその装置に関するものである。
【0002】
【従来の技術】
従来、ビデオキャプチャー装置などの画像合成装置においては、外部から入力されたビデオ画像を取り込んで、表示装置に表示されている表示画像上に重畳して表示する際に、ビデオ画像のデジタルデータを一旦画像メモリに蓄えた後、所定の表示タイミングで表示装置に表示された表示画像上に設けられたウインドウに表示する。このような装置において、ビデオ画像を縮小して表示する場合、図4に示すような構成が用いられる。
【0003】
この構成においては、ビデオカメラ21から出力された、例えばNTSC方式やPAL方式のビデオ信号は、ビデオデコーダ22で処理される。ここでは、ビデオ信号から同期信号と画像信号とが分離され、その画像信号がデジタル信号に変換される。そのデジタルの画像データは、水平方向縮小処理回路23で水平方向にのみ縮小処理(例えば1/3縮小)が施され、バッファとしてのFIFO(First In First out)メモリ24に一旦書き込まれた後、画像メモリ25に書き込まれる。
【0004】
画像データが画像メモリ25に書き込まれる前に水平方向にのみ縮小処理が施されるのは、次の理由による。例えば、1ラインが16ドットからなる画像データを一旦画像メモリ25に書き込んだ後、読み出してから縮小しようとすると、画像メモリ25は、1ラインについて16ドットを書き込むことができる容量と、表示のタイミングに合うような速度で動作する性能とが必要になる。しかしながら、読み出された画像データを例えば1/4に縮小すると、結果的には4ドットのみが表示に供されることになるので、画像メモリ25の性能を高めてまで多いデータ量を書き込んでも無駄になるデータが多いという不都合がある。
【0005】
一般に、画像メモリのアクセスバンド幅は、ライン当たりのドット数×動作速度で定められるので、アクセスバンド幅を大きくしないためには、ドット数または/および動作速度を制限する必要がある。そこで、通常、メモリへの書き込みの前に画像データを予め水平方向に縮小することによって、ドット数および動作速度を低下させて、アクセスバンド幅を小さくしている。
【0006】
画像メモリ25から読み出された画像データは、垂直方向縮小処理回路26で垂直方向にのみ縮小処理(例えば1/3縮小)が施された後、表示装置27の表示部27aに表示されている表示画像上に縮小画像として表示される。
【0007】
また、同一の表示画像上に、縮小画像とともに拡大画像を表示させる場合は、次のようにして処理が行われる。例えば、入力画像を2倍に拡大する場合、画像メモリ25から読み出された縮小画像(水平方向に1/3縮小)に対し、水平/垂直方向拡大処理回路28で水平方向に6倍に拡大されるとともに、垂直方向に2倍に拡大される。そして、このように拡大処理が施された拡大画像データは、垂直方向縮小処理回路26からの縮小画像データと同様に、表示画像上に拡大画像として表示される。
【0008】
【発明が解決しようとする課題】
ところが、上記の構成では、画像メモリ25に蓄えられた画像データは、入力画像に対し縮小率に比例して水平方向の情報量が少なくなっているので、これを基に得られた拡大画像(等倍画像も含む)は、入力画像に対し情報量が大幅に欠落した状態となって画質が低いという不都合がある。
【0009】
また、画像メモリ25から読み出された縮小画像データをCPUに取り込んで所望の画像処理を行う場合も、縮小画像データの情報量が少ないために、画像処理によって得られた画像の品位が低いという不都合がある。
【0010】
本発明は、上記の事情に鑑みてなされたものであって、入力画像から縮小画像とともに同一画面上に表示させる拡大画像を得る場合に、拡大画像の画質の向上を図ることを目的としている。
【0011】
【課題を解決するための手段】
本発明の画像縮小/拡大装置は、入力画像の縮小画像および拡大画像を同一の画面上に表示させるための画像縮小/拡大装置であって、入力画像のデータを予め水平方向に縮小してからメモリに書き込むとともに、該入力画像のデータをそのまま上記メモリに書き込み、該メモリに記憶された縮小画像のデータを読み出して垂直方向に縮小するとともに、上記メモリに記憶された上記入力画像のデータを読み出し水平方向および垂直方向に拡大することを基本としている。
【0012】
上記の基本構成では、水平方向に縮小された縮小画像のデータは、メモリに書き込まれて読み出された後に垂直方向に縮小されるが、拡大されない。一方、そのままメモリに書き込まれた入力画像のデータは、メモリから読み出された後に水平方向および垂直方向に拡大される。このように、拡大画像は、情報量が失われていない元の入力画像のデータを基に得られるので、その画質は、拡大率に比例して劣化するのみである。また、等倍拡大の場合は、入力画像と同じ画質維持される
【0013】
本発明の画像縮小/拡大装置は、入力画像の縮小画像および拡大画像を同一の画面上に表示させるための画像縮小/拡大装置であって、上記の課題を解決するために、画像データを記憶するメモリ手段と、上記入力画像を水平方向に縮小する第1縮小手段と、上記入力画像のデータと上記第1縮小手段によって縮小された縮小画像のデータとを上記メモリ手段の異なる領域に書き込むとともに、それらを個別に読み出す書込/読出制御手段と、上記書込/読出制御手段によって読み出された上記縮小画像のデータを垂直方向に縮小する第2縮小手段と、上記書込/読出制御手段によって読み出された上記入力画像のデータを水平方向および垂直方向に拡大する拡大手段とを備え、さらに、上記書込/読出制御手段が下記のように構成されていることを特徴としている。
【0014】
すなわち、上記書込/読出制御手段は、上記縮小画像のデータおよび上記入力画像のデータのうち一方を選択データ選択手段と、上記縮小画像のデータを上記メモリ手段に書き込むためのアドレスおよび上記入力画像のデータを上記メモリ手段に書き込むためのアドレスのうち一方を選択する書込アドレス選択手段と、該書込アドレス選択手段からのアドレスおよび上記メモリ手段からの画像データの読み出しのためのアドレスのうち一方を選択するアドレス選択手段と、上記データ選択手段および上記書込アドレス選択手段の選択動作を制御するための制御信号および上記アドレス選択手段の選択動作を制御するための制御信号を単一のクロック信号をカウントすることによって得られる複数ビットの出力値に基づいて生成する選択制御手段とを有している。
【0015】
上記の構成では、第1縮小手段によって水平方向に縮小された縮小画像のデータと、入力画像のデータとがメモリ手段に書き込まれる。メモリ手段から読み出された縮小画像のデータは、第2縮小手段で垂直方向に縮小されることによって、水平および垂直方向の双方に縮小されたデータとなる。一方、メモリ手段から読み出された入力画像のデータは、拡大手段によって水平および垂直方向に拡大される。このように、サイズが変更されないままの状態(情報量が失われていない状態)で一旦メモリ手段に書き込まれた入力画像のデータを基に拡大画像を得ているので、拡大画像の画質は、拡大率に比例して劣化するのみである。また、等倍拡大の場合は、入力画像と同じ画質が維持される。
【0016】
縮小画像のデータおよび入力画像のデータは、データ選択手段で選択されてメモリ手段に与えられる。また、縮小画像および入力画像のデータをそれぞれメモリ手段に書き込むためのアドレスは、書込アドレス選択手段で選択されたメモリ手段に与えられる。これによって、縮小画像および入力画像のデータは選択的にメモリ手段に書き込まれる。さらに、書き込みのためのアドレスおよび読み出しのためのアドレスは、アドレス選択手段で選択されてメモリ手段に与えられる。これによって、画像データの書き込みと読み出しとが選択的に行われる。
【0017】
データ選択手段および書込アドレス選択手段の選択動作を制御するための制御信号およびアドレス選択手段の選択動作を制御するための制御信号は、選択制御手段によって、単一のクロック信号をカウントすることによって得られる複数ビットの出力値に基づいて生成される。そして、このような複数ビットの信号をそのまま、または適宜論理演算して用いることによって制御信号が得られる。
【0018】
クロック信号のカウントは、例えば、3ビットバイナリカウンタで行われる。後述する表1に示すように、そのカウンタの最上位ビットの出力値(Q2 )が“0”であるときに、入力画像のデータがデータ選択手段によって選択されるとともに、そのデータを書き込むためのアドレスが書込アドレス手段によって選択される。一方、カウンタの最上位ビットの出力値が“1”であるときに、縮小画像のデータがデータ選択手段によって選択されるとともに、そのデータを書き込むためのアドレスが書込アドレス手段によって選択される。また、カウンタの最下位ビット(Q0 )と中位ビット(Q1 )との論理和否定を得ることによって、アドレス選択手段の選択動作を制御するための制御信号が得られる。
【0019】
このように、単一のクロック信号に基づいて制御信号を生成しているので、特別な信号を与える必要がなく、また、カウンタなどの一般的な回路で選択制御手段を構成することができる。
【0020】
【発明の実施の形態】
本発明の実施の一形態について図1ないし図3に基づいて説明すれば、以下の通りである。
【0021】
本実施の形態では、縮小/拡大装置がビデオキャプチャー装置に組み込まれた構成について説明する。
【0022】
本実施の形態に係るビデオキャプチャー装置は、図1に示すように、ビデオカメラ1、ビデオデコーダ2、画像メモリ3および縮小/拡大装置4を備えている。
【0023】
ビデオカメラ1としては、白黒で画像を撮影する産業用のビデオカメラが用いられる。ビデオデコーダ2は、ビデオカメラ1から出力されたアナログのNTSC方式やPAL方式といったビデオ信号(コンポジットビデオ信号)から抽出された画像信号のデジタルへの変換、ビデオ信号からの水平同期信号および垂直同期信号の分離等を行う装置である。
【0024】
メモリ(メモリ手段)としての画像メモリ3は、白黒画像のデータを蓄える半導体メモリ(ビデオRAM等)であって、画像データを後述する書込/読出制御部44による制御で書き込みおよび読み出すようになっている。また、画像メモリ3は、後述する縮小画像データと、入力画像データとを別個の領域に格納するようになっている。
【0025】
なお、以下の説明では、縮小画像データおよび入力画像データ(元画像データ)について、それらに限定されない場合は、単に画像データと称する。
【0026】
画像メモリ3への書き込みに用いられるアドレスは、1ライン分の画像データに割り当てられた下位の10ビットと、各ラインに割り当てられた上位の9ビット(このうちの1ビットは奇数フィールドと偶数フィールドとを区別するために設けられる)と、縮小画像データと元画像データとを区別するための最上位の1ビットとによって構成されている。下位の10ビットは、1ラインにおける各ドットに対応したドットクロックをカウントするカウンタによって生成される。一方、上位の9ビットのうちの8ビットは、水平同期信号をカウントするカウンタによって生成される。最上位の1ビットは、例えば、後述のカウンタ44eの出力端子Q2 からの出力値が利用される。
【0027】
画像メモリ3への読み出しに用いられるアドレスは、予め別途用意されており、後述するウインドウ制御信号WINDSPが“1”であるときに、アクセス毎にインクリメントされて画像メモリ3に与えられる。
【0028】
縮小/拡大装置4は、水平方向縮小処理回路41、FIFOメモリ42・43、書込/読出制御部44および縮小/拡大部45とを備えている。
【0029】
水平方向縮小処理回路41は、ビデオデコーダ2からの画像データを水平方向(水平走査方向)に縮小する回路である。縮小の方法としては、例えば、入力画像データを用いて、隣接する画素データに適当に重み付けされた係数を乗算した値を加算して元の画素数より少ない新たな画素データを生成する方法が挙げられる。また、水平方向縮小処理回路41は、1水平走査期間内の有効表示期間において各画素が供給されるタイミングに同期したドットクロックを出力し、FIFOメモリ42に与える。なお、このドットクロックは、水平方向縮小処理回路41の外部(例えば、ビデオデコーダ)で生成してもよい。
【0030】
FIFOメモリ42は、水平方向縮小処理回路41から出力される縮小画像データを書き込まれた順に読み出すバッファメモリである。このFIFOメモリ42は、画像メモリ3からの画像データの読み出しを優先させるために、後述の書込/読出制御部44によって、水平方向縮小処理回路41から出力される縮小画像データの画像メモリ3への読み出しのタイミングが制御される。一方、FIFOメモリ43は、ビデオデコーダ2からの入力画像データを書き込まれた順に読み出すバッファメモリであり、FIFOメモリ42と同様の目的で、書込/読出制御部44によって、入力画像データの画像メモリ3への読み出しのタイミングが制御される。
【0031】
書込/読出制御手段としての書込/読出制御部44は、画像データの画像メモリ3への書き込みおよび読み出しを制御するために設けられている。具体的には、書込/読出制御部44は、FIFOメモリ42からの縮小画像データおよびFIFOメモリ43からの入力画像データを画像メモリ3に独立したタイミングで書き込ませる一方、書き込みと独立したタイミングで上記の両画像データを読み出すようにメモリ制御を行う。書込/読出制御部44については、後にさらに詳しく説明する。
【0032】
縮小/拡大部45は、垂直方向縮小処理回路45aおよび水平垂直方向拡大処理回路45bにより構成されている。垂直方向縮小処理回路45aは、水平方向縮小処理回路41とは異なり、画像メモリ3から読み出された縮小画像データを垂直方向(垂直走査方向)に縮小する回路である。水平垂直方向拡大処理回路45bは、画像メモリ3から読み出された入力画像データを水平方向および垂直方向に同じ倍率(等倍を含む)で拡大する回路である。拡大の方法としては、例えば、入力画像データを用いて、隣接する画素データに適当に重み付けされた係数を乗算した値を加算して隣接する画素データ間に補間すべきデータを生成する方法が挙げられる。
【0033】
書込/読出制御部44は、図2に示すように、データセレクタ44a〜44d、カウンタ44e、NANDゲート44f、NORゲート44g・44h、インバータ44i、ORゲート44jおよびバッファ44kを備えている。
【0034】
書込アドレス選択手段としてのデータセレクタ44aは、縮小データ書込用アドレスおよび元画像データ書込用アドレスのうちいずれか一方を選択して出力する回路である。このデータセレクタ44aは、制御端子Sに入力される制御信号が“1”であるときに縮小画像データ書込用アドレスを出力端子Yから出力する一方、制御信号が“0”であるときに元画像データ書込用アドレスを出力端子Yから出力する。
【0035】
アドレス選択手段としてのデータセレクタ44bは、ウインドウ用(表示用)アドレスおよびデータセレクタ44aから出力された書込用アドレスのうちいずれか一方選択して出力する回路である。ウインドウ用アドレスは、縮小および拡大画像を後述するウインドウに表示するために、画像メモリ3から画像データを読み出す際の読出用アドレスである。上記のデータセレクタ44bは、制御端子Sに入力される制御信号が“1”であるときにウインドウ用アドレスを出力端子Yから出力する一方、制御信号が“0”であるときにデータセレクタ44aからの書込用アドレスを出力端子Yから出力する。
【0036】
データ選択手段としてのデータセレクタ44cは、FIFOメモリ42からの縮小画像データおよびFIFOメモリ43からの入力(元)画像データのうちいずれか一方を選択して出力する回路である。このデータセレクタ44cは、制御端子Sに入力される制御信号が“1”であるときに縮小画像データを出力端子Yから出力する一方、制御信号が“0”であるときに元画像データを出力端子Yから出力する。
【0037】
データセレクタ44dは、FIFOメモリ42の空き端子EMPTYからの空き信号と、FIFOメモリ43の空き端子EMPTYからの空き信号とを選択して出力する回路である。このデータセレクタ44dは、制御端子Sに入力される制御信号が“1”であるときにFIFOメモリ42からの空き信号を出力端子Yから出力する一方、制御信号が“0”であるときにFIFOメモリ43からの空き信号を出力端子Yから出力する。
【0038】
カウンタ44eは、3ビットバイナリカウンタであり、外部から供給されるクロックCLKカウントする。このカウンタ44eは、カウント値の最下位ビットを出力する出力端子Q0 と、カウント値の中位ビットを出力する出力端子Q1 と、カウント値の最上位ビットを出力する出力端子Q2 とを有している。出力端子Q2 からの最上位ビットは、それぞれデータセレクタ44a・44c・44dに制御信号として与えられる。出力端子Q0 からの最下位ビットおよび出力端子Q1 からの中位ビットは、NANDゲート44fに入力される。NANDゲート44fの出力は、データセレクタ44bに制御信号として与えられるとともに、ウインドウ表示のためのウインドウ制御信号WINDSPとして表示装置5(図1参照)に出力される。上記のカウンタ44eおよびNANDゲート44fは、選択制御手段を構成している。
【0039】
なお、上記のような制御信号(制御タイミング)を生成するには、カウンタが適しているが、同様な機能を有しておれば、カウンタに限らず、レジスタなどを用いてもよい。
【0040】
NANDゲート44fからの制御信号(ウインドウ制御信号WINDSP)は、表1および図3に示すように、カウント値が3および7のときに“0”となり、カウント値が0,1,2,4,5および6のときに“1”となる。したがって、カウント値が3および7のときにデータセレクタ44aからの書込用アドレスが画像メモリ3に出力される一方、カウント値がそれ以外のときにウインドウ用アドレスが画像メモリ3に出力される。したがって、期間TR でウインドウ用の画像データが画像メモリ3から出力される。
【0041】
また、カウント値が3のとき(期間TW1)、データセレクタ44a・44cに与えられる制御信号が“0”となって、元画像データが画像メモリ3に書き込まれる。一方、カウント値が7のとき(期間TW2)、データセレクタ44a・44cに与えられる制御信号が“1”となって、縮小画像データが画像メモリ3に書き込まれる。
【0042】
【表1】

Figure 0003784599
【0043】
カウンタ44eの出力端子Q2 からの出力およびNANDゲート44fからの出力は、NORゲート44hに入力される。負論理のNORゲート44hは、これらの論理和否定を出力して、FIFOメモリ43の読出制御端子RDに与える。また、カウンタ44eの出力端子Q2 からの出力は、インバータ44iで反転された後、NANDゲート44fからの出力とともにNORゲート44gに入力される。負論理のNORゲート44gは、これらの論理和否定を出力して、FIFOメモリ42の読出制御端子RDに与える。
【0044】
これにより、表1に示すように、FIFOメモリ43は、カウント値が3のときに読出制御端子RDの入力値が“1”となって書き込まれた元画像データを出力端子OUTから読み出す。一方、FIFOメモリ42は、カウント値が7のときに読出制御端子RDの入力値が“1”となって書き込まれた縮小画像データを読み出す。また、FIFOメモリ42は、水平方向縮小処理回路41によって作成された前述のドットクロックが書込制御端子WRに入力されており、そのドットクロックのタイミングで入力端子INに入力された縮小画像データを1ドットずつ書き込む。一方、FIFOメモリ43は、1水平走査期間内の有効表示期間において各画素データが供給されるタイミングに同期した前述のドットクロック(例えば、ビデオデコーダで生成される)が書込制御端子WRに入力されており、そのドットクロックのタイミングで元画像データを1ドットずつ書き込む。
【0045】
データセレクタ44dからの出力およびNANDゲート44fからの出力は、ORゲート44jに入力される。負論理のORゲート44jは、これらの論理和を画像メモリ3への書込制御信号として出力する。これにより、画像メモリ3は、書込制御端子WE* に“0”の書込制御信号が入力されると、書込アドレスで指定された番地に、データセレクタ44cからデータ入力端子DATAに入力された画像データを書き込む。データセレクタ44cとデータ入力端子DATAとの間には、3ステートのバッファ44kが設けられており、書込制御信号が“0”の期間にのみ、データセレクタ44cからの画像データを出力する。
【0046】
続いて、上記のように構成されるビデオキャプチャー装置における画像の処理動作について説明する。以下の説明では、入力画像を1/3に縮小した画像と、入力画像を2倍に拡大した画像を同一の表示画面にキャプチャー表示(ウインドウ表示)する例について説明する。
【0047】
まず、ビデオカメラ1に取り込まれた画像は、ビデオ信号としてビデオデコーダ2に出力される。ビデオデコーダ2では、ビデオ信号から画像信号が抽出されるとともにデジタル化される。その画像データは、縮小/拡大装置4に入力される。
【0048】
縮小/拡大装置4では、入力画像データすなわち元画像データが、水平方向縮小処理回路41によって水平方向に1/3倍に縮小されてFIFOメモリ42に書き込まれる一方、そのままFIFOメモリ43に書き込まれる。FIFOメモリ42に書き込まれた縮小画像データおよびFIFOメモリ43に書き込まれた元画像データは、書込/読出制御部44によって順次読み出されて、図3に示すウインドウ制御信号WINDSPが“0”であるときに画像メモリ3に書き込まれる。
【0049】
画像メモリ3に書き込まれた縮小画像データおよび元画像データは、書込/読出制御部44によって、ウインドウ制御信号WINDSPが“1”であるときに、ウインドウ用アドレスで指定された画像データが画像メモリ3から読み出されていく。読み出された画像データは、縮小/拡大部45に入力される。縮小/拡大部45では、縮小画像データが垂直方向縮小処理回路45aで垂直方向に1/3に縮小される一方、元画像データが水平垂直方向拡大処理回路45bで水平および垂直方向に2倍ずつ拡大される。
【0050】
上記の1/3縮小画像および2倍拡大画像は、ともに表示装置5に送出される。表示装置5では、表示部5aの全面に表示された画像上の予め定められた領域に設けられたウインドウに1/3縮小画像が表示される一方、同様にして異なる領域に設けられたウインドウに2倍拡大画像が表示される。
【0051】
以上のように、本実施の形態に係るビデオキャプチャー装置では、縮小/拡大装置4を備えることによって、縮小画像データだけでなく元画像データも画像メモリ3に書き込まれる。それゆえ、拡大画像が画像メモリ3から読み出された元画像データを基に得られるので、拡大画像の画質は、拡大率に比例して劣化するのみである。また、等倍拡大の場合は、入力画像と同じ画質を維持することができる。それゆえ、一部の情報量が元画像データから失われた縮小画像データを基に得られた従来の拡大画像に比べて拡大画像の画質を向上させることができる。
【0052】
また、画像メモリ3から出力された元画像データを画像処理のためにCPUに送出すれば、やはり情報量の欠けていない元画像データに基づいて画像処理が行われることになるので、高品位の処理画像を得ることができる。
【0053】
従来の構成(図4参照)では、図示しないが、縮小画像データの書込用アドレスとウインドウ用アドレスとを選択して出力するためにデータセレクタ44bが必要であるが、元画像データを書き込まないので本実施の形態で用いたデータセレクタ44a・44c・44dを必要としない。このため、データセレクタ44bを制御するには、2ビットバイナリカウンタと、NANDゲートとを備えておればよいことになる。これに対し、本実施の形態の縮小/拡大装置4においては、縮小画像データおよび元画像データのうち一方を選択して書き込むために、データセレクタ44a・44c・44dが必要となるが、これらを制御するためにはカウンタ44e(3ビットバイナリカウンタ)の最上位ビット出力が用いられる。それゆえ、データセレクタ44a・44c・44dを制御するために特別な回路や信号を用意する必要がなく、かつ共通の回路でデータセレクタ44bをも制御することができる。したがって、縮小/拡大装置4を比較的簡素に構成することができる。
【0054】
なお、本実施の形態では、1つのビデオカメラ1からの入力画像に基づいて縮小画像および拡大画像を得て同一の画面上に表示させる例について説明したが、複数のビデオカメラからの入力画像を基に得られた縮小画像および拡大画像を同一の画面上に併せて表示させてもよい。この場合、特開平11−32326号公報に開示された手法を用いて、各ビデオカメラ(チャンネル)からの画像データを切り替えて画像メモリ3に書き込む。また、縮小/拡大装置4の前に切替回路を設けることによって、各チャンネルで縮小/拡大装置4を共有化することができる。
【0055】
また、複数チャンネルからの画像データを画像メモリ3に書き込む場合、各チャンネルを区別するために、アドレスにおける前述の最上位ビットより上位に1または複数のビットを追加する必要がある。例えば、2チャンネルの場合では、1ビットを追加して、最上位の2ビットによって2チャンネルの区別と各チャンネルにおける拡大・縮小の区別とを行う。また、4チャンネルの場合では、2ビットを追加して、最上位の3ビットによって4チャンネルの区別と各チャンネルにおける拡大・縮小の区別とを行う。
【0056】
上記のようなアドレス設定で各チャンネル毎にメモリ空間を用意しておくのは、メモリ容量を多く要することになる。そこで、特定のチャンネルで縮小または拡大画像が不要である場合は、別途アドレスレジスタを用意しておき、そのアドレスレジスタでメモリ空間をどのチャンネルに割り当てるかと、アドレスの有効・無効とを自由に設定できるように構成すれば、メモリ空間を有効に利用することができる。
【0057】
【発明の効果】
以上のように、本発明の画像縮小/拡大装置は、入力画像を予め水平方向に縮小してからメモリに書き込むとともに、該入力画像をそのまま上記メモリに書き込み、該メモリに記憶された縮小画像を読み出して垂直方向に縮小するとともに、上記メモリに記憶された上記入力画像を読み出し水平方向および垂直方向に拡大することを基本としている
【0058】
これにより、情報量が失われていない入力画像を基に拡大画像を得ているので、拡大率に比例してその画質が劣化するのみであり、等倍拡大の場合では入力画像と同じ画質維持される。したがって、拡大画像の画質従来の縮小画像を基に得られた拡大画像より向上する
【0059】
本発明の画像縮小/拡大装置は、画像データを記憶するメモリ手段と、上記入力画像を水平方向に縮小する第1縮小手段と、上記入力画像のデータと上記第1縮小手段によって縮小された縮小画像のデータとを上記メモリ手段の異なる領域に書き込むとともに、それらを個別に読み出す書込/読出制御手段と、上記書込/読出制御手段によって読み出された上記縮小画像のデータを垂直方向に縮小する第2縮小手段と、上記書込/読出制御手段によって読み出された上記入力画像のデータを水平方向および垂直方向に拡大する拡大手段とを備え、さらに、上記書込/読出制御手段が下記のように構成されている。
【0060】
すなわち、上記書込/読出制御手段は、上記縮小画像のデータおよび上記入力画像のデータのうち一方を選択するデータ選択手段と、上記縮小画像のデータを上記メモリ手段に書き込むためのアドレスおよび上記入力画像のデータを上記メモリ手段に書き込むためのアドレスのうち一方を選択する書込アドレス選択手段と、該書込アドレス選択手段からのアドレスおよび上記メモリ手段からの画像データの読み出しのためのアドレスのうち一方を選択するアドレス選択手段と、上記データ選択手段および上記書込アドレス選択手段の選択動作を制御するための制御信号および上記アドレス選択手段の選択動作を制御するための制御信号を単一のクロック信号をカウントすることによって得られる複数ビットの出力値に基づいて生成する選択制御手段とを有している。
【0061】
これにより、サイズが変更されないままの状態(情報量が失われていない状態)で一旦メモリ手段に書き込まれた入力画像のデータを基に拡大画像を得ているので、拡大画像の画質は、拡大率に比例して劣化するのみであり、また、等倍拡大の場合には同じに維持される。したがって、前記のように、拡大画像の画質が従来の縮小画像を基に得られた拡大画像より向上する。
【0062】
書込/読出制御手段が上記のように構成されていることにより、単一のクロック信号に基づいて各選択手段の選択動作を制御するための制御信号を生成しているので、特別な信号を与える必要がなく、また、カウンタなどの一般的な回路で選択制御手段を構成することができる。したがって、書込/読出制御手段を簡素な構成で実現することができるという効果を奏する。
【図面の簡単な説明】
【図1】本発明の実施の一形態に係るビデオキャプチャー装置の構成を示すブロック図である。
【図2】上記ビデオキャプチャー装置における縮小/拡大装置の構成を示す論理回路図である。
【図3】上記縮小/拡大装置における画像メモリに対する画像データの書き込みおよび読み出しのタイミングを制御するウインドウ制御信号WINDSPを示す説明図である。
【図4】従来の画像縮小/拡大機能を備えたビデオキャプチャー装置の構成を示すブロック図である。
【符号の説明】
3 画像メモリ(メモリ、メモリ手段)
4 縮小/拡大装置
41 水平方向縮小処理回路(第1縮小手段)
44 書込/読出制御部(書込/読出制御手段)
44a データセレクタ(書込アドレス選択手段)
44b データセレクタ(アドレス選択手段)
44c データセレクタ(データ選択手段)
44e カウンタ(選択制御手段)
44f NANDゲート(選択制御手段)
45a 垂直方向縮小処理回路(第2縮小手段)
45b 水平垂直方向拡大処理回路(拡大手段)[0001]
BACKGROUND OF THE INVENTION
The present invention relates to reducing and enlarging an input image and displaying the same on the same screen. More specifically, the present invention relates to an image reducing / enlarging method and apparatus for improving the image quality of an enlarged image.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, in an image composition device such as a video capture device, when a video image input from the outside is captured and superimposed on a display image displayed on a display device, the digital data of the video image is temporarily stored. After being stored in the image memory, the image is displayed in a window provided on the display image displayed on the display device at a predetermined display timing. In such an apparatus, when a video image is reduced and displayed, the configuration shown in FIG. 4 is used.
[0003]
In this configuration, for example, an NTSC or PAL video signal output from the video camera 21 is processed by the video decoder 22. Here, the synchronization signal and the image signal are separated from the video signal, and the image signal is converted into a digital signal. The digital image data is subjected to reduction processing (for example, 1/3 reduction) only in the horizontal direction by the horizontal reduction processing circuit 23 and once written in a FIFO (First In First Out) memory 24 as a buffer. It is written in the image memory 25.
[0004]
The reason why the reduction process is performed only in the horizontal direction before the image data is written in the image memory 25 is as follows. For example, when image data consisting of 16 dots per line is once written in the image memory 25 and then read out and then reduced, the image memory 25 has a capacity capable of writing 16 dots per line and a display timing. To operate at a speed that fits. However, if the read image data is reduced to 1/4, for example, only 4 dots are eventually displayed, so even if a large amount of data is written even if the performance of the image memory 25 is improved. There is an inconvenience that a lot of data is wasted.
[0005]
In general, the access bandwidth of the image memory is determined by the number of dots per line × the operation speed. Therefore, in order not to increase the access bandwidth, it is necessary to limit the number of dots and / or the operation speed. Therefore, usually, the image data is previously reduced in the horizontal direction before writing to the memory, thereby reducing the number of dots and the operation speed, thereby reducing the access bandwidth.
[0006]
The image data read from the image memory 25 is displayed on the display unit 27a of the display device 27 after being subjected to reduction processing (for example, 1/3 reduction) only in the vertical direction by the vertical reduction processing circuit 26. It is displayed as a reduced image on the display image.
[0007]
When displaying an enlarged image together with a reduced image on the same display image, processing is performed as follows. For example, when the input image is enlarged twice, the reduced image read out from the image memory 25 (1/3 reduction in the horizontal direction) is enlarged six times in the horizontal direction by the horizontal / vertical direction enlargement processing circuit 28. And enlarged twice in the vertical direction. The enlarged image data subjected to the enlargement process in this way is displayed as an enlarged image on the display image, similarly to the reduced image data from the vertical direction reduction processing circuit 26.
[0008]
[Problems to be solved by the invention]
However, in the above configuration, the image data stored in the image memory 25 has a smaller amount of information in the horizontal direction in proportion to the reduction ratio with respect to the input image. Therefore, an enlarged image ( (Including the same size image) has a disadvantage in that the image quality is low because the amount of information is largely missing from the input image.
[0009]
Further, when the reduced image data read from the image memory 25 is taken into the CPU and desired image processing is performed, the quality of the image obtained by the image processing is low because the information amount of the reduced image data is small. There is an inconvenience.
[0010]
The present invention has been made in view of the above circumstances, and an object of the present invention is to improve the image quality of an enlarged image when obtaining an enlarged image to be displayed on the same screen together with the reduced image from the input image.
[0011]
[Means for Solving the Problems]
  Image reduction / enlargement of the present inventionapparatusThe image reduction / enlargement for displaying the reduced image and the enlarged image of the input image on the same screenapparatusBecause, EnterThe image data is reduced in advance in the horizontal direction and then written in the memory, the input image data is written in the memory as it is, the reduced image data stored in the memory is read out and reduced in the vertical direction, Read the input image data stored in the memoryTheTo expand horizontally and verticallyBasicIt is said.
[0012]
  aboveBasic configurationThen, the data of the reduced image reduced in the horizontal direction is reduced in the vertical direction after being written to the memory and read out, but is not enlarged. On the other hand, the input image data directly written in the memory is read out from the memory and then expanded in the horizontal direction and the vertical direction. As described above, since the enlarged image is obtained based on the data of the original input image in which the information amount is not lost, the image quality only deteriorates in proportion to the enlargement rate. For the same magnification, the same image quality as the input imageButMaintenanceBe done.
[0013]
  An image reduction / enlargement apparatus of the present invention is an image reduction / enlargement apparatus for displaying a reduced image and an enlarged image of an input image on the same screen, and stores image data in order to solve the above problem. Memory means, first reduction means for horizontally reducing the input image, writing the input image data and reduced image data reduced by the first reduction means in different areas of the memory means, Write / read control means for reading them individually; second reduction means for reducing the data of the reduced image read by the write / read control means in the vertical direction; and the write / read control means And an enlarging means for enlarging the input image data read out in the horizontal direction and the vertical direction.Further, the write / read control means is configured as follows.It is characterized by that.
[0014]
  That is, the writing / reading control means selects one of the reduced image data and the input image data as a selection data selection means, and an address for writing the reduced image data into the memory means and the input image. Write address selection means for selecting one of the addresses for writing the data to the memory means, one of the address from the write address selection means and the address for reading the image data from the memory means Address selection means for selecting the control signal, the control signal for controlling the selection operation of the data selection means and the write address selection means, and the control signal for controlling the selection operation of the address selection means as a single clock signal. Select control hand that generates based on multi-bit output value obtained by counting And it has a door.
[0015]
  In the above configuration, the reduced image data reduced in the horizontal direction by the first reduction unit and the input image data are written in the memory unit. The reduced image data read from the memory means is reduced in both the horizontal and vertical directions by being reduced in the vertical direction by the second reduction means. On the other hand, the input image data read from the memory means is enlarged in the horizontal and vertical directions by the enlargement means. Thus, since the enlarged image is obtained based on the input image data once written in the memory means in a state in which the size remains unchanged (the amount of information is not lost), the image quality of the enlarged image is It only deteriorates in proportion to the enlargement ratio. In the case of the same magnification, the same image quality as the input image is maintained.
[0016]
The reduced image data and the input image data are selected by the data selection means and supplied to the memory means. The address for writing the reduced image data and the input image data in the memory means is given to the memory means selected by the write address selecting means. Thereby, the data of the reduced image and the input image are selectively written in the memory means. Further, the address for writing and the address for reading are selected by the address selecting means and given to the memory means. Thereby, writing and reading of image data are selectively performed.
[0017]
The control signal for controlling the selection operation of the data selection means and the write address selection means and the control signal for controlling the selection operation of the address selection means are obtained by counting a single clock signal by the selection control means. It is generated based on the obtained multi-bit output value. A control signal can be obtained by using such a multi-bit signal as it is or by appropriately performing a logical operation.
[0018]
The clock signal is counted by, for example, a 3-bit binary counter. As shown in Table 1 to be described later, the output value (Q2) Is “0”, the data of the input image is selected by the data selection means, and the address for writing the data is selected by the write address means. On the other hand, when the output value of the most significant bit of the counter is “1”, the data for the reduced image is selected by the data selection means, and the address for writing the data is selected by the write address means. The least significant bit (Q0) And the middle bit (Q1), A control signal for controlling the selection operation of the address selection means is obtained.
[0019]
Thus, since the control signal is generated based on a single clock signal, it is not necessary to provide a special signal, and the selection control means can be configured by a general circuit such as a counter.
[0020]
DETAILED DESCRIPTION OF THE INVENTION
One embodiment of the present invention will be described with reference to FIGS. 1 to 3 as follows.
[0021]
In this embodiment, a configuration in which a reduction / enlargement device is incorporated in a video capture device will be described.
[0022]
As shown in FIG. 1, the video capture device according to the present embodiment includes a video camera 1, a video decoder 2, an image memory 3, and a reduction / enlargement device 4.
[0023]
As the video camera 1, an industrial video camera that captures images in black and white is used. The video decoder 2 converts an image signal extracted from a video signal (composite video signal) such as an analog NTSC system or PAL system output from the video camera 1 into a digital signal, a horizontal synchronization signal and a vertical synchronization signal from the video signal. Is a device for performing separation and the like.
[0024]
The image memory 3 as a memory (memory means) is a semiconductor memory (video RAM or the like) that stores black and white image data, and writes and reads image data under the control of a write / read control unit 44 described later. ing. The image memory 3 stores reduced image data (to be described later) and input image data in separate areas.
[0025]
In the following description, reduced image data and input image data (original image data) are simply referred to as image data unless they are limited thereto.
[0026]
The addresses used for writing to the image memory 3 are the lower 10 bits assigned to the image data for one line and the upper 9 bits assigned to each line (of which 1 bit is an odd field and an even field) And the most significant bit for distinguishing the reduced image data from the original image data. The lower 10 bits are generated by a counter that counts the dot clock corresponding to each dot in one line. On the other hand, 8 bits of the upper 9 bits are generated by a counter that counts the horizontal synchronization signal. The most significant bit is, for example, an output terminal Q of a counter 44e described later.2The output value from is used.
[0027]
An address used for reading to the image memory 3 is prepared separately in advance. When a window control signal WINDSP, which will be described later, is “1”, the address is incremented and given to the image memory 3 every access.
[0028]
The reduction / enlargement device 4 includes a horizontal reduction processing circuit 41, FIFO memories 42 and 43, a write / read control unit 44, and a reduction / enlargement unit 45.
[0029]
The horizontal direction reduction processing circuit 41 is a circuit that reduces the image data from the video decoder 2 in the horizontal direction (horizontal scanning direction). As a reduction method, for example, a method of generating new pixel data smaller than the original number of pixels by adding a value obtained by multiplying adjacent pixel data by an appropriately weighted coefficient using input image data can be given. It is done. Further, the horizontal direction reduction processing circuit 41 outputs a dot clock synchronized with the timing at which each pixel is supplied in an effective display period within one horizontal scanning period, and supplies the dot clock to the FIFO memory 42. The dot clock may be generated outside the horizontal direction reduction processing circuit 41 (for example, a video decoder).
[0030]
The FIFO memory 42 is a buffer memory that reads the reduced image data output from the horizontal direction reduction processing circuit 41 in the order of writing. In order to prioritize the reading of the image data from the image memory 3, the FIFO memory 42 supplies the reduced image data output from the horizontal reduction processing circuit 41 to the image memory 3 by a writing / reading control unit 44 described later. The read timing is controlled. On the other hand, the FIFO memory 43 is a buffer memory that reads out the input image data from the video decoder 2 in the order in which it was written. For the same purpose as the FIFO memory 42, the write / read control unit 44 uses the image memory of the input image data. 3 is controlled.
[0031]
A writing / reading control unit 44 as writing / reading control means is provided for controlling writing and reading of image data to and from the image memory 3. Specifically, the writing / reading control unit 44 causes the reduced image data from the FIFO memory 42 and the input image data from the FIFO memory 43 to be written to the image memory 3 at an independent timing, while at the timing independent from the writing. Memory control is performed so as to read both the image data. The write / read controller 44 will be described in more detail later.
[0032]
The reduction / enlargement unit 45 includes a vertical direction reduction processing circuit 45a and a horizontal / vertical direction enlargement processing circuit 45b. Unlike the horizontal reduction processing circuit 41, the vertical reduction processing circuit 45a is a circuit that reduces the reduced image data read from the image memory 3 in the vertical direction (vertical scanning direction). The horizontal / vertical direction enlargement processing circuit 45b is a circuit that enlarges the input image data read from the image memory 3 at the same magnification (including the same magnification) in the horizontal direction and the vertical direction. As an enlargement method, for example, a method of adding data obtained by multiplying adjacent pixel data by an appropriately weighted coefficient using input image data to generate data to be interpolated between adjacent pixel data can be cited. It is done.
[0033]
As shown in FIG. 2, the write / read control unit 44 includes data selectors 44a to 44d, a counter 44e, a NAND gate 44f, NOR gates 44g and 44h, an inverter 44i, an OR gate 44j, and a buffer 44k.
[0034]
The data selector 44a as a write address selection means is a circuit that selects and outputs either the reduced data write address or the original image data write address. The data selector 44a outputs the reduced image data writing address from the output terminal Y when the control signal input to the control terminal S is "1", while the original data when the control signal is "0". An address for writing image data is output from the output terminal Y.
[0035]
The data selector 44b as an address selection means is a circuit that selects and outputs either a window (display) address or a write address output from the data selector 44a. The window address is a reading address when reading image data from the image memory 3 in order to display a reduced and enlarged image in a window described later. The data selector 44b outputs the window address from the output terminal Y when the control signal input to the control terminal S is "1", while the data selector 44a outputs from the data selector 44a when the control signal is "0". Are output from the output terminal Y.
[0036]
The data selector 44c as data selection means is a circuit that selects and outputs either reduced image data from the FIFO memory 42 or input (original) image data from the FIFO memory 43. The data selector 44c outputs reduced image data from the output terminal Y when the control signal input to the control terminal S is “1”, and outputs original image data when the control signal is “0”. Output from terminal Y.
[0037]
The data selector 44 d is a circuit that selects and outputs an empty signal from the empty terminal EMPTY of the FIFO memory 42 and an empty signal from the empty terminal EMPTY of the FIFO memory 43. The data selector 44d outputs the empty signal from the FIFO memory 42 from the output terminal Y when the control signal input to the control terminal S is "1", while the FIFO when the control signal is "0". An empty signal from the memory 43 is output from the output terminal Y.
[0038]
  The counter 44e is a 3-bit binary counter, and a clock CLK supplied from the outside.TheCount. The counter 44e outputs an output terminal Q that outputs the least significant bit of the count value.0And an output terminal Q for outputting the middle bit of the count value1And an output terminal Q for outputting the most significant bit of the count value2And have. Output terminal Q2The most significant bits from are supplied to the data selectors 44a, 44c and 44d as control signals, respectively. Output terminal Q0Least significant bit from and output terminal Q1The middle bit from is input to the NAND gate 44f. The output of the NAND gate 44f is supplied as a control signal to the data selector 44b and is output to the display device 5 (see FIG. 1) as a window control signal WINDSP for window display. The counter 44e and the NAND gate 44f constitute selection control means.
[0039]
A counter is suitable for generating the control signal (control timing) as described above. However, a register or the like may be used as long as it has a similar function.
[0040]
As shown in Table 1 and FIG. 3, the control signal (window control signal WINDSP) from the NAND gate 44f becomes “0” when the count value is 3 and 7, and the count value is 0, 1, 2, 4, It becomes “1” when 5 and 6. Therefore, the write address from the data selector 44a is output to the image memory 3 when the count value is 3 and 7, while the window address is output to the image memory 3 when the count value is other than that. Therefore, the period TRThus, the image data for the window is output from the image memory 3.
[0041]
When the count value is 3 (period TW1), The control signal supplied to the data selectors 44 a and 44 c becomes “0”, and the original image data is written into the image memory 3. On the other hand, when the count value is 7 (period TW2), The control signal supplied to the data selectors 44 a and 44 c becomes “1”, and the reduced image data is written in the image memory 3.
[0042]
[Table 1]
Figure 0003784599
[0043]
Output terminal Q of counter 44e2And the output from the NAND gate 44f are input to the NOR gate 44h. The negative logic NOR gate 44 h outputs the logical sum negation and applies it to the read control terminal RD of the FIFO memory 43. The output terminal Q of the counter 44e2After being inverted by the inverter 44i, the output from is input to the NOR gate 44g together with the output from the NAND gate 44f. The negative logic NOR gate 44g outputs these logical sum negations and applies them to the read control terminal RD of the FIFO memory 42.
[0044]
As a result, as shown in Table 1, the FIFO memory 43 reads the original image data written with the input value of the read control terminal RD being “1” when the count value is 3, from the output terminal OUT. On the other hand, the FIFO memory 42 reads the reduced image data written with the input value of the read control terminal RD being “1” when the count value is 7. In the FIFO memory 42, the dot clock generated by the horizontal reduction processing circuit 41 is input to the write control terminal WR, and the reduced image data input to the input terminal IN at the timing of the dot clock. Write one dot at a time. On the other hand, in the FIFO memory 43, the dot clock (for example, generated by a video decoder) synchronized with the timing at which each pixel data is supplied in the effective display period within one horizontal scanning period is input to the write control terminal WR. The original image data is written dot by dot at the timing of the dot clock.
[0045]
The output from the data selector 44d and the output from the NAND gate 44f are input to the OR gate 44j. The negative logic OR gate 44j outputs these logical sums as a write control signal to the image memory 3. As a result, the image memory 3 stores the write control terminal WE.*When a write control signal of “0” is input to the image data, the image data input from the data selector 44c to the data input terminal DATA is written to the address specified by the write address. A three-state buffer 44k is provided between the data selector 44c and the data input terminal DATA, and image data from the data selector 44c is output only during a period when the write control signal is “0”.
[0046]
Next, an image processing operation in the video capture device configured as described above will be described. In the following description, an example in which an image obtained by reducing the input image to 1/3 and an image obtained by enlarging the input image by 2 times are captured and displayed (window display) on the same display screen will be described.
[0047]
First, an image captured by the video camera 1 is output to the video decoder 2 as a video signal. In the video decoder 2, an image signal is extracted from the video signal and digitized. The image data is input to the reduction / enlargement device 4.
[0048]
In the reduction / enlargement device 4, the input image data, that is, the original image data is reduced by 1/3 times in the horizontal direction by the horizontal direction reduction processing circuit 41 and is written in the FIFO memory 42 while being written in the FIFO memory 43 as it is. The reduced image data written in the FIFO memory 42 and the original image data written in the FIFO memory 43 are sequentially read out by the writing / reading control unit 44, and the window control signal WINDSP shown in FIG. At some time, it is written in the image memory 3.
[0049]
The reduced image data and the original image data written in the image memory 3 are stored in the image memory designated by the window address when the window control signal WINDSP is “1” by the writing / reading control unit 44. 3 is read out. The read image data is input to the reduction / enlargement unit 45. In the reduction / enlargement unit 45, the reduced image data is reduced to 1/3 in the vertical direction by the vertical reduction processing circuit 45a, while the original image data is doubled in the horizontal and vertical directions by the horizontal / vertical enlargement processing circuit 45b. Enlarged.
[0050]
Both the 1/3 reduced image and the 2 × enlarged image are sent to the display device 5. In the display device 5, while the 1/3 reduced image is displayed in a window provided in a predetermined area on the image displayed on the entire surface of the display unit 5a, the display apparatus 5 is similarly displayed in a window provided in a different area. A double magnified image is displayed.
[0051]
As described above, in the video capture device according to the present embodiment, by providing the reduction / enlargement device 4, not only reduced image data but also original image data is written in the image memory 3. Therefore, since the enlarged image is obtained based on the original image data read from the image memory 3, the image quality of the enlarged image only deteriorates in proportion to the enlargement ratio. In the case of the same magnification, the same image quality as the input image can be maintained. Therefore, the image quality of the enlarged image can be improved as compared with the conventional enlarged image obtained based on the reduced image data in which a part of the information amount is lost from the original image data.
[0052]
Also, if the original image data output from the image memory 3 is sent to the CPU for image processing, the image processing is performed based on the original image data that does not lack the amount of information. A processed image can be obtained.
[0053]
In the conventional configuration (see FIG. 4), although not shown, the data selector 44b is required to select and output the write address and window address of the reduced image data, but the original image data is not written. Therefore, the data selectors 44a, 44c, and 44d used in the present embodiment are not required. Therefore, in order to control the data selector 44b, a 2-bit binary counter and a NAND gate need only be provided. On the other hand, in the reduction / enlargement device 4 of the present embodiment, data selectors 44a, 44c, and 44d are required to select and write one of the reduced image data and the original image data. In order to control, the most significant bit output of the counter 44e (3-bit binary counter) is used. Therefore, it is not necessary to prepare a special circuit or signal for controlling the data selectors 44a, 44c, and 44d, and the data selector 44b can be controlled by a common circuit. Therefore, the reduction / enlargement device 4 can be configured relatively simply.
[0054]
In the present embodiment, an example in which a reduced image and an enlarged image are obtained based on an input image from one video camera 1 and displayed on the same screen has been described. However, input images from a plurality of video cameras are displayed. The reduced image and the enlarged image obtained based on the above may be displayed together on the same screen. In this case, the image data from each video camera (channel) is switched and written to the image memory 3 using the technique disclosed in Japanese Patent Application Laid-Open No. 11-32326. Also, by providing a switching circuit in front of the reduction / enlargement device 4, the reduction / enlargement device 4 can be shared by each channel.
[0055]
In addition, when writing image data from a plurality of channels into the image memory 3, it is necessary to add one or more bits above the most significant bit in the address in order to distinguish each channel. For example, in the case of 2 channels, 1 bit is added, and the 2 most significant bits are used to distinguish between 2 channels and to distinguish between enlargement / reduction in each channel. In the case of 4 channels, 2 bits are added, and 4 channels are distinguished from each other by enlargement / reduction in each channel by the most significant 3 bits.
[0056]
Preparing a memory space for each channel with the above address setting requires a large memory capacity. Therefore, when a reduced or enlarged image is not required for a specific channel, a separate address register is prepared, and it is possible to freely set which channel the memory space is assigned to by that address register and whether the address is valid or invalid. With this configuration, the memory space can be used effectively.
[0057]
【The invention's effect】
  As described above, image reduction / enlargement of the present inventionapparatusReduces the input image in the horizontal direction before writing it to the memory, writes the input image to the memory as it is, reads the reduced image stored in the memory, reduces it in the vertical direction, and stores it in the memory Read out the input imageTheZoom in horizontally and verticallyIs based on.
[0058]
  As a result, the enlarged image is obtained based on the input image in which the amount of information has not been lost.ButMaintenanceBe done. Therefore, the quality of the enlarged imageButImproved than the enlarged image obtained based on the conventional reduced imageDo.
[0059]
  The image reduction / enlargement apparatus of the present invention includes a memory means for storing image data, a first reduction means for reducing the input image in the horizontal direction, a reduction reduced by the input image data and the first reduction means. Write image data to different areas of the memory means, write / read control means for individually reading them, and reduce the reduced image data read by the write / read control means in the vertical direction Read by the second reduction means and the writing / reading control means.AboveAn enlargement means for enlarging the input image data in the horizontal and vertical directionsFurther, the write / read control means is configured as follows.
[0060]
  That is, the writing / reading control means includes a data selection means for selecting one of the reduced image data and the input image data, an address for writing the reduced image data to the memory means, and the input. Write address selection means for selecting one of the addresses for writing image data to the memory means, an address from the write address selection means, and an address for reading image data from the memory means An address selection means for selecting one, a control signal for controlling the selection operation of the data selection means and the write address selection means, and a control signal for controlling the selection operation of the address selection means as a single clock Selective control generated based on the output value of multiple bits obtained by counting the signal And a means.
[0061]
  Thereby, since the enlarged image is obtained based on the input image data once written in the memory means in a state where the size is not changed (a state in which the amount of information is not lost), the image quality of the enlarged image is enlarged. It only deteriorates in proportion to the rate, and remains the same in the case of the same magnification. Therefore, as described above, the image quality of the enlarged image is improved over the enlarged image obtained based on the conventional reduced image.
[0062]
  The write / read control means is configured as described above.Since a control signal for controlling the selection operation of each selection means is generated based on a single clock signal, there is no need to give a special signal, and selection control is performed by a general circuit such as a counter. Means can be configured. Therefore, the write / read control means can be realized with a simple configuration.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a video capture device according to an embodiment of the present invention.
FIG. 2 is a logic circuit diagram showing a configuration of a reduction / enlargement device in the video capture device.
FIG. 3 is an explanatory diagram showing a window control signal WINDSP for controlling the timing of writing and reading image data to and from the image memory in the reduction / enlargement apparatus.
FIG. 4 is a block diagram illustrating a configuration of a video capture device having a conventional image reduction / enlargement function.
[Explanation of symbols]
3 Image memory (memory, memory means)
4 Reduction / enlargement device
41 Horizontal reduction processing circuit (first reduction means)
44 Write / read control section (write / read control means)
44a Data selector (write address selection means)
44b Data selector (address selection means)
44c Data selector (data selection means)
44e Counter (selection control means)
44f NAND gate (selection control means)
45a Vertical reduction processing circuit (second reduction means)
45b Horizontal / vertical direction enlargement processing circuit (enlargement means)

Claims (1)

入力画像の縮小画像および拡大画像を同一の画面上に表示させるための画像縮小/拡大装置であって、
画像データを記憶するメモリ手段と、
上記入力画像を水平方向に縮小する第1縮小手段と、
上記入力画像のデータと上記第1縮小手段によって縮小された縮小画像のデータとを上記メモリ手段の異なる領域に書き込むとともに、それらを個別に読み出す書込/読出制御手段と、
上記書込/読出制御手段によって読み出された上記縮小画像のデータを垂直方向に縮小する第2縮小手段と、
上記書込/読出制御手段によって読み出された上記入力画像のデータを水平方向および垂直方向に拡大する拡大手段とを備え、
上記書込/読出制御手段が、
上記縮小画像のデータおよび上記入力画像のデータのうち一方を選択するデータ選択手段と、
上記縮小画像のデータを上記メモリ手段に書き込むためのアドレスおよび上記入力画像のデータを上記メモリ手段に書き込むためのアドレスのうち一方を選択する書込アドレス選択手段と、
該書込アドレス選択手段からのアドレスおよび上記メモリ手段からの画像データの読み出しのためのアドレスのうち一方を選択するアドレス選択手段と、
上記データ選択手段および上記書込アドレス選択手段の選択動作を制御するための制御信号および上記アドレス選択手段の選択動作を制御するための制御信号を単一のクロック信号をカウントすることによって得られる複数ビットの出力値に基づいて生成する選択制御手段とを有していることを特徴とする画像縮小/拡大装置。
An image reduction / enlargement device for displaying a reduced image and an enlarged image of an input image on the same screen,
Memory means for storing image data;
First reduction means for reducing the input image in the horizontal direction;
Write / read control means for writing the input image data and the reduced image data reduced by the first reduction means to different areas of the memory means, and reading them individually,
Second reduction means for reducing the data of the reduced image read by the writing / reading control means in the vertical direction;
Expanding means for expanding the data of the input image read by the writing / reading control means in the horizontal direction and the vertical direction;
The write / read control means is
Data selection means for selecting one of the reduced image data and the input image data;
Write address selection means for selecting one of an address for writing the reduced image data to the memory means and an address for writing the input image data to the memory means;
Address selecting means for selecting one of an address from the write address selecting means and an address for reading image data from the memory means;
A control signal for controlling the selection operation of the data selection means and the write address selection means and a control signal for controlling the selection operation of the address selection means are obtained by counting a single clock signal. An image reduction / enlargement apparatus, comprising: selection control means for generating based on an output value of a bit.
JP2000010960A 2000-01-19 2000-01-19 Image reduction / enlargement device Expired - Lifetime JP3784599B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000010960A JP3784599B2 (en) 2000-01-19 2000-01-19 Image reduction / enlargement device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000010960A JP3784599B2 (en) 2000-01-19 2000-01-19 Image reduction / enlargement device

Publications (2)

Publication Number Publication Date
JP2001203884A JP2001203884A (en) 2001-07-27
JP3784599B2 true JP3784599B2 (en) 2006-06-14

Family

ID=18538899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000010960A Expired - Lifetime JP3784599B2 (en) 2000-01-19 2000-01-19 Image reduction / enlargement device

Country Status (1)

Country Link
JP (1) JP3784599B2 (en)

Also Published As

Publication number Publication date
JP2001203884A (en) 2001-07-27

Similar Documents

Publication Publication Date Title
JP3890097B2 (en) Video format converter and method for generating a digital output signal
US7236648B2 (en) Scaling images for display
JP2880168B2 (en) Video signal processing circuit capable of enlarged display
JP2004264920A (en) Apparatus and method for creating thumbnail images and improving image quality of resized images
JP3801242B2 (en) Reduced image display device
JP3449142B2 (en) Image reduction apparatus and control method thereof
JP3784599B2 (en) Image reduction / enlargement device
EP0921495B1 (en) Picture size conversion method and device thereof
JP2510019B2 (en) Image display method and device
JPH0865639A (en) Image processing device
US5680529A (en) Image reduction conversion method
JP3630587B2 (en) Video editing method and apparatus
JP3543657B2 (en) Electronic zoom circuit
US20060072840A1 (en) Conversion device for performing a raster scan conversion between a JPEG decoder and an image memory
JPH1013710A (en) Display method and device
JP3792470B2 (en) Image transfer method and apparatus, and image processing apparatus
JPH03136480A (en) Video directing device for still picture
JP3643020B2 (en) Data transfer method and apparatus, and data processing apparatus using the apparatus
JP2005130350A (en) Image processing apparatus, image processing method, and image display apparatus
JP2000284771A (en) Video data processing device
JPH07336689A (en) Motion compensation circuit
JP2599045B2 (en) Vertical expansion circuit
JP2823433B2 (en) Interpolator for digital image zoom processing
JP2005020521A (en) IMAGING DEVICE AND PORTABLE PHONE WITH THIS IMAGING DEVICE
JPH0348584A (en) Electronic zooming device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050104

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050304

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050304

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050809

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051007

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20051107

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060314

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060315

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3784599

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090324

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100324

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20100324

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110324

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20110324

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120324

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120324

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130324

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20130324

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140324

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term