JP3566687B2 - Data array conversion device, image processing system, and image input device - Google Patents

Data array conversion device, image processing system, and image input device Download PDF

Info

Publication number
JP3566687B2
JP3566687B2 JP2001335353A JP2001335353A JP3566687B2 JP 3566687 B2 JP3566687 B2 JP 3566687B2 JP 2001335353 A JP2001335353 A JP 2001335353A JP 2001335353 A JP2001335353 A JP 2001335353A JP 3566687 B2 JP3566687 B2 JP 3566687B2
Authority
JP
Japan
Prior art keywords
data
input
block
array
image
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
JP2001335353A
Other languages
Japanese (ja)
Other versions
JP2003140637A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2001335353A priority Critical patent/JP3566687B2/en
Publication of JP2003140637A publication Critical patent/JP2003140637A/en
Application granted granted Critical
Publication of JP3566687B2 publication Critical patent/JP3566687B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Color Television Systems (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Studio Devices (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、書画等の撮影対象物を撮像してその撮影像を外部表示装置に表示可能とする画像入力装置等に好適なデータ配列変換装置に関するものである。
【0002】
【従来の技術】
書画等の撮影対象物を撮像し、プロジェクタ等を用いてその撮影像を外部モニタやスクリーンに表示させる画像入力装置においては、撮像データにホワイトバランス、色補正等の画像処理を施した後、撮像データを輝度(Y)信号および色差(UV)信号に分離する。
【0003】
そして、分離されたY信号およびUV信号のそれぞれについて、1水平(H)期間内にodd,evenの2水平ライン分の画素データが交互に点順次に配列されたデータを、解像度変換手段などの外部接続された表示装置の画角に適合させる手段に受け渡すために、YUV422に代表されるデータ配列形式に変換する装置が用いられている。
【0004】
また、被写体を1枚の鏡で反射させてからCCD等の撮像素子に取り込む画像入力装置においては、一度鏡で左右反転した画像を、左右線対称のデータに変換して表示装置に送信する必要がある。
【0005】
このため、上記データ配列変換装置から読み出す1水平ライン分の出力データを、データ入力保存時とは逆から読み出すことによって、左右線対称のデータを得る方法が提案されている。
【0006】
【発明が解決しようとする課題】
しかしながら、上記従来例において、1枚の鏡により左右反転した像を撮像して得られた画素データであって、さらにodd,evenの2水平ライン分の画素データが点順次等、規則的に配列されているものをodd,evenを分離し、さらに1ラインごとに左右対称の配列変換を行うには、従来、4ライン分以上のメモリ容量を必要としている。
【0007】
このため、メモリ一体型のASIC(application spesified IC)化を図る場合など、ICサイズが内蔵メモリの容量に大きく左右されてしまい、コスト的、サイズ的に有利といわれている省サイズASICを実現することが難しい。
【0008】
そこで、本発明は、データ配列変換に用いるメモリ容量を削減することが可能なデータ配列変換装置を提供することを目的としている。
【0009】
【課題を解決するための手段】
上記目的を達成するために本発明のデータ配列変換装置では、1水平期間内にodd(奇数)およびeven(偶数)の2水平ライン分の画素データが規則的に配列されたデータが入力される入力ポートと、この入力ポートに入力されたデータを保存するメモリ部とを設け、メモリ部を、それぞれ1水平ライン分の入力データの保存容量を持つ第1、第2および第3のブロックで構成し、第1のブロックにodd画素データおよびeven画素データのうちの一方の入力データを1水平ライン分ごとに保存し、第2および第3のブロックに、他方の入力データを1水平ライン分ごとに交互に保存するとともに、第1、第2および第3のブロックから保存データを読み出してデータ配列を変換する配列変換手段を設けている。
そして、配列変換手段は、第1のブロックに対し、1水平期間ごとの第n期間における上記一方の入力データを正方向から書き込んだ後、このデータを逆方向から読み出し、かつ第n期間に続く第n+1期間における上記一方のデータを逆方向から書き込んだ後、このデータを正方向から読み出し、第2のブロックに対し、第n期間における上記他方の入力データを正方向に書き込んだ後、このデータを逆方向に読み出し、第3のブロックに対し、第n+1期間における上記他方の入力データを正方向に書き込んだ後、このデータを逆方向に読み出す。
【0010】
れにより、1水平期間内にoddおよびevenの2水平ライン分の画素データが規則的に配列されたデータの1水平ラインごとの左右対称配列変換を3水平ライン分のメモリ容量を用いて行うことが可能となる。このため、メモリ一体型のICの小型化に有効である。
【0011】
なお、輝度信号のデータと色差信号のデータとを処理する画像処理システムには、上記データ配列変換装置を2つ設けてこれらを同時に動作させ、一方のデータ配列変換装置により輝度信号の配列変換を行い、他方のデータ配列変換装置により色差信号の配列変換を行うようにするとよい。
【0012】
そして、反射部材によって左右反転された像を撮像する画像入力装置に上記データ配列変換装置を用いることにより、左右が正しく補正された表示画像を得ることが可能となる。
【0013】
【発明の実施の形態】
(第1実施形態)
図1には、本発明の実施形態である画像入力装置としての書画カメラを示している。また、図2には、上記書画カメラに備えられた画像入力システムの構成を示している。
【0014】
図1において、1は書画カメラであり、2は原稿台である。この原稿台2上には、書類100等の撮影対象物が載置される。
【0015】
5は原稿台2の上方に配置された鏡(反射部材)であり、3は撮像部である。この撮像部3には、図示しない撮影光学ユニットおよびCCD等の撮像素子が収納されている。また、撮像部3は、撮影光学ユニットのAE、AF制御等を行う撮影制御部を有する。
【0016】
4は原稿台2の左右上方に配置された照明部であり、原稿台2に載置された撮影対象物を照明する。20は各種操作スイッチが設けられた操作部である。
【0017】
このように構成された書画カメラ1においては、撮影対象物からの光束が鏡5によって左右反転されて撮像部3に入射する。撮像部3に入射した光束は撮像素子上に結像し、左右が反転した撮影対象物の像が撮像される。
【0018】
図10において、10は画像処理部であり、撮像部3によって撮像(光電変換)された画像信号を取り込み、その画像信号の振幅、ホワイトバランス、周波数特性に関する処理を行い、デジタル化した画像信号Aとして出力する。
【0019】
15は配列変換部であり、上記画像信号Aはこの配列変換部15で後述するデータ配列変換処理を受け、メモリ(RAM)14に一時保管される。なお、配列変換部15は、図には1つのみ記載しているが、実際には、輝度信号用と色差信号用の2つが設けられている。
【0020】
12はROM13に格納されたプログラムに基づいて各処理を実行するCPUである。CPU12は、システムバス21に接続された各デバイスを統括的に制御する。
【0021】
11はRAMであり、CPU12の主メモリ、ワークエリア等として機能する。22は照明制御部であり、CPU12からの制御命令を受けて照明部4のON、OFF制御を行う。
【0022】
また、16は入力された予め規定されたサイズおよび予め規定された速さ(例えば15フレーム/秒)の画像を、図示しないモニターやプロジェクタ等の出力装置に入力可能なサイズおよび速さ(例えば60フレーム/秒)で出力を可能にする、解像度、速度変換IC等のスキャンコンバータに代表される解像度変換部である。
【0023】
19は解像度変換部16から出力されたデータをモニタやプロジェクタ等の画像表示装置に出力する出力部インターフェースである。
【0024】
さらに、17は操作部20に設けられたスイッチ等からの信号に応じてシステムバス21に接続された各デバイスに信号を送る操作部コントローラである。
【0025】
次に、配列変換部15(メモリ14を含む)のより詳細な構成について、図5を用いて説明する。図5は輝度(Y)信号用の配列変換部15とメモリ14の構成を示すブロック図であり、図示しないが、色差(UV:Cr、Cb)信号用の配列変換部15も同じ構成となっている。
【0026】
図5において、30はメモリコントローラであり、メモリ14内のブロックとしてのデュアルポートメモリA(31)、デュアルポートメモリB(32)およびデュアルポートメモリC(33)のアドレス、チップセレクト等の制御信号をコントロールして、各メモリ31〜33へのデータの入出力コントロールを行う。
【0027】
34はセレクタであり、各メモリ31〜33からのデータの読み出しを、図6に示すデータ出力タイミングに適合するように選択的に行わせる。
【0028】
図3には、配列変換部15に対する画像処理部10からの入力データの配列をタイミングチャートとして示している。また、図4には、配列変換部15から出力されるデータの配列(ここでは、YUV422フォーマットの配列)をタイミングチャートとして示している。なお、図3および図4中の「Y1odd,Y1even,Y2odd,Y2even…」,「Cr12odd,Cr12even,Cb12odd,Cb12even…」はそれぞれ、1画素分の輝度データおよび色差データを示している。
【0029】
次に、配列変換部15のデータ配列変換動作について図6および図7を用いて説明する。図6は輝度(Y)信号用の配列変換部15でのデータ書き込みと読み出し動作を表すタイミングチャートであり、図示しないが、色差(UV)信号用の配列変換部15も同じ動作を行う。なお、図6中の「Y1odd,Y1even,Y2odd,Y2even…」はそれぞれ、1水平ライン分の画素(輝度)データを示し、以下これらをnライン目のYodd画素データ,Yeven画素データと称する(nは1水平期間の順番に対応する)。また、図7はデータ配列変換動作のうちメモリA〜C(31〜33)へのデータ書き込みシーケンスを示すフローチャートであり、図8はメモリA〜C(31〜33)からのデータ読み出しシーケンスを示すフローチャートである。なお、色差(UV)信号用の配列変換部15でも同じ動作が、輝度(Y)信号用の配列変換部15の動作と同時に行われる。
【0030】
まず、図7に示したメモリA〜C(31〜33)へのデータ書き込みシーケンスを説明する。
【0031】
図7のステップ(図ではSと略す)0で書き込みシーケンスをスタートすると、ステップ1で垂直同期信号を検知する。
【0032】
次に、ステップ2で水平同期信号を検知するのを待ち、検知したときはステップ3に進む。
【0033】
ステップ3,4では、データ書き込みタイミングまでの時間をカウントし、ステップ4でカウンタ値Cが規定値LastKに達したときはステップ5に進む。
【0034】
ステップS5では、上記カウンタの値Cをリセットするとともに、メモリ書き込みアドレスの初期値を設定する。
【0035】
そして、ステップ6では、図6に示すように、Yodd画素のデータをメモリA(31)に書き込む。また、これと同時にステップ7では、Yeven画素のデータをメモリB(32)に書き込む。このとき、両データはそれぞれ、メモリA(31),B(32)に正方向(アドレスのカウント値ADが増加していく方向)に書き込まれる。
【0036】
ステップ8では、ステップ6,7を実行するごとにメモリ書き込みアドレスのカウント値ADをアップする。
【0037】
そして、ステップ9でメモリ書き込みアドレスが最終画素のアドレスLastADに達したか否かを判定し、最終画素のアドレスに達していないときはステップ6に戻り、最終画素のアドレスに達するとステップ10に進む。図6においては、スタートからここまででメモリA(31),B(32)への1ライン目のYodd,Yeven画素データ(Y1odd,Y1even)の書き込みが終了する。
【0038】
ステップ10では、所定のブランキング期間をカウントするためのカウンタ値Bを初期値(0)に設定する。
【0039】
次に、ステップ11では、ブランキング期間カウント用のカウンタ値Bをアップする。そして、ステップ12で、ブランキング期間カウンタ値Bが規定値LastBに達したか否かを判定し、達していないときはステップ11に戻ってカウントを続行し、達したときはステップ13に進む。
【0040】
ステップ13では、メモリ書き込みアドレスの初期値設定と規定値LastADの設定を行う。そして、S14では、次のラインのYodd画素データをメモリA(31)に最終アドレス側から(すなわち、逆方向から)順に書き込む。これは、画像データを左右反転させるために、後述する読み出しシーケンスにおいてメモリA(31)に書き込まれたデータを最終アドレス側から読み出して空きアドレスとするからである。
【0041】
ステップ15では、メモリA(31)の書き込みアドレスのカウント値AD_Aをダウンする。
【0042】
また、ステップ13と同時に、ステップ16では、次のラインのYeven画素データをメモリC(33)に正方向に書き込む。そして、ステップ17では、メモリC(33)の書き込みアドレスのカウント値ADをアップする。
【0043】
そして、ステップ18では、メモリC(33)の書き込みアドレスが最終画素のアドレスLastADに達した(メモリAの書き込みアドレスが最初の画素のアドレスに達した)か否かを判定し、達していないときはステップ14に戻り、達したときはステップ19に進む。図6においては、最初のブランキング期間後からここまででメモリA(31),C(33)への2ライン目のYodd,Yeven画素データ(Y2odd,Y2even)の書き込みが終了する。
【0044】
次に、ステップ19で、ブランキング期間のカウント値Bを初期値設定し、ステップ20でブランキング期間のカウント値Bをアップする。
【0045】
次に、ステップ21では、垂直同期信号を検知したか否かを判定し、検知していないときはステップ22に進んで、ブランキング期間のカウンタ値Bが規定値LastBに達したか(ブランキング期間が終了したか)否かを判定する。終了しなければステップ20に戻り、終了していればステップ2に戻って、次の2ライン分のデータ書き込みを行う。
【0046】
以上の書き込みシーケンスを繰り返すことにより、撮像素子の全水平ラインの画素データのメモリA〜C(31〜33)への書き込みが順次行われる。
【0047】
次に、図8に示したメモリA〜C(31〜33)からのデータ読み出しシーケンスを説明する。
【0048】
図8のステップ100で読み出しシーケンスをスタートすると、ステップ101で垂直同期信号を検知する。
【0049】
次に、ステップ102で、メモリA(31)への1ライン分のデータ書き込みが終了したことを検知するまで待ってステップ103に進む。
【0050】
ステップ103では、メモリ読み出しアドレスのカウンタ値ADを初期設定するとともに、規定値LastADを設定する。
【0051】
次に、ステップ104では、メモリA(31)から、最終アドレス側から(逆方向に)データを読み出す。このように書き込みシーケンスで正方向に書き込まれたデータを、逆方向から読み出すことにより、左右反転した画像データが得られることになる。図6においては、1ライン目のYodd画素データ(Y1odd)がメモリA(31)に書き込まれた後、この1ライン目のYodd画素データが逆方向に読み出される。
【0052】
そして、ステップ105では、メモリA(31)の読み出しアドレスのカウント値ADをダウンし、次のステップ106では、カウンタ値が最初画素のアドレスに達したか否かを判定して、達していないときはステップ104に戻り、達したときはステップ107に進む。図6においては、メモリA(31)からの1ライン目のYodd画素データの読み出し開始後、ここまでで同画素データの読み出しが終了する。
【0053】
ステップ107では、ブランキング期間をカウントするためのカウンタ値BLの初期値設定を行い、次のステップ108ではカウンタ値BLをアップする。
【0054】
そして、ステップ109では、カウンタ値BLが規定値LastBLに達したか否かを判定し、達していなければステップ108に戻り、達していればステップ110に進む。
【0055】
ステップ110では、メモリ読み出しアドレスのカウンタ値ADを初期設定するとともに、規定値LastADを設定する。
【0056】
次に、ステップ111では、メモリB(32)から、最終アドレス側から(逆方向に)データを読み出す。図6においては、1ライン目のYodd画素データ(Y1odd)の読み出し終了後、ブランキング期間を経て、1ライン目のYeven画素データ(Y1even)がメモリB(32)から逆方向に読み出される。
【0057】
そして、ステップ112では、メモリB(32)の読み出しアドレスのカウント値ADをダウンし、次のステップ113では、カウンタ値が最初の画素のアドレスに達したか否かを判定して、達していないときはステップ111に戻り、達したときはステップ114に進む。図6においては、メモリB(32)からの1ライン目のYeven画素データの読み出し開始後、ここまでで同画素データの読み出しが終了する。
【0058】
ステップ114では、ブランキング期間をカウントするためのカウンタ値BLの初期値設定を行い、次のステップ115ではカウンタ値BLをアップする。
【0059】
そして、ステップ116では、カウンタ値BLが規定値LastBLに達したか否かを判定し、達していなければステップ115に戻り、達していればステップ117に進む。
【0060】
ステップ117では、メモリ読み出しアドレスのカウンタ値ADを初期設定するとともに、規定値LastADを設定する。
【0061】
次に、ステップ118では、メモリA(31)から、最初のアドレス側から(正方向に)データを読み出す。これは、上述した書き込みシーケンスのステップ14において、逆方向に書き込まれたデータを、正方向から読み出すためである。図6においては、2ライン目のYodd画素データ(Y2odd)がメモリA(31)に書き込まれた後(1ライン目のYeven画素データ(Y1even)がメモリB(32)から読み出された後)、この2ライン目のYodd画素データが正方向に読み出される。
【0062】
そして、ステップ119では、メモリA(31)の読み出しアドレスのカウント値ADをアップし、次のステップ120では、カウンタ値が最終画素のアドレスLastADに達したか否かを判定して、達していないときはステップ118に戻り、達したときはステップ121に進む。図6においては、メモリA(31)からの2ライン目のYodd画素データの読み出し開始後、ここまでで同画素データの読み出しが終了する。
【0063】
ステップ121では、ブランキング期間をカウントするためのカウンタ値BLの初期値設定を行い、次のステップ122ではカウンタ値BLをアップする。
【0064】
そして、ステップ123では、カウンタ値BLが規定値LastBLに達したか否かを判定し、達していなければステップ122に戻り、達していればステップ124に進む。
【0065】
ステップ124では、メモリ読み出しアドレスのカウンタ値ADを初期設定するとともに、規定値LastADを設定する。
【0066】
次に、ステップ125では、メモリC(33)から、最終アドレス側から(逆方向に)データを読み出す。図6においては、2ライン目のYodd画素データ(Y2odd)の読み出し終了後、ブランキング期間を経て、2ライン目のYeven画素データ(Y2even)がメモリC(33)から逆方向に読み出される。
【0067】
そして、ステップ126では、メモリC(33)の読み出しアドレスのカウント値ADをダウンし、次のステップ127では、カウンタ値が最初の画素のアドレスに達したか否かを判定して、達していないときはステップ125に戻り、達したときはステップ102に戻る。図6においては、メモリC(33)からの2ライン目のYeven画素データの読み出し開始後、ここまでで同画素データの読み出しが終了する。
【0068】
以上の読み出しシーケンスを繰り返すことにより、撮像素子の全水平ラインの画素データのメモリA〜C(31〜33)からの読み出しが順次行われる。
【0069】
こうしてodd、even、odd、even…の順で1水平ライン分ごとに読み出された画素データは、3つのメモリへのデータ書き込みと読み出しをメモリコントローラ30で前述のように行うことによって図4に示すように配列される。
【0070】
【発明の効果】
以上説明したように、本発明によれば、1水平期間内にoddおよびevenの2水平ライン分の画素データが規則的に配列されたデータの1水平ラインごとの左右対称配列変換を3水平ライン分のメモリ容量を用いて行うことができる。このため、メモリ一体型のICの小型化に有効である。
【0071】
そして、反射部材によって左右反転された像を撮像する画像入力装置に本発明のデータ配列変換装置を用いれば、左右が正しく補正された表示画像を得ることができる。
【図面の簡単な説明】
【図1】本発明の実施形態である書画カメラ(画像入力装置)を示す外観図。
【図2】上記画像入力装置の電気的構成を示すブロック図。
【図3】上記配列変換部における入力データの配列を示したタイミングチャート。
【図4】上記配列変換部における出力データの配列を示したタイミングチャート。
【図5】上記配列変換部の構成を示すブロック図である。
【図6】上記配列変換部におけるデータの書き込み・読み出し動作を表すタイミングチャート。
【図7】上記配列変換部におけるデータの書き込み動作を表すフローチャート。
【図8】上記配列変換部におけるデータの読み出し動作を表すフローチャート。
【符号の説明】
1 書画カメラ
2 原稿台
3 撮像部
4 照明部
5 鏡
10 画像処理部
11 RAM
12 CPU
13 ROM
14 メモリ
15 配列変換部
16 解像度変換部
17 操作部コントローラ
19 出力部I/F
20 操作部
22 照明制御部
100 書類
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a data array conversion device suitable for an image input device or the like which captures an object to be captured such as a document and displays the captured image on an external display device.
[0002]
[Prior art]
2. Description of the Related Art In an image input device that captures an image of an object to be captured such as a document, and displays the captured image on an external monitor or a screen using a projector or the like, the image data is subjected to image processing such as white balance and color correction, and then captured. The data is separated into a luminance (Y) signal and a color difference (UV) signal.
[0003]
Then, for each of the separated Y signal and UV signal, data in which pixel data of two horizontal lines of odd and even are alternately arranged in a point-sequential manner within one horizontal (H) period is converted into resolution conversion means or the like. In order to transfer the data to a means adapted to the angle of view of an externally connected display device, a device that converts the data into a data array format represented by YUV422 is used.
[0004]
Also, in an image input device in which an object is reflected by a single mirror and taken into an image pickup device such as a CCD, it is necessary to convert an image, which has been once inverted left and right by a mirror, into data which is symmetrical to the left and right and transmit the data to a display device. There is.
[0005]
For this reason, a method has been proposed in which output data for one horizontal line read from the data array conversion device is read from the reverse of the data input and saved, thereby obtaining left-right symmetrical data.
[0006]
[Problems to be solved by the invention]
However, in the above-described conventional example, pixel data obtained by capturing a left-right inverted image with one mirror, and pixel data for two horizontal lines of odd and even are regularly arranged in a dot-sequential manner. Conventionally, a memory capacity of four lines or more is required to separate odds and evens from each other and to perform symmetric arrangement conversion for each line.
[0007]
For this reason, the size of the IC is greatly influenced by the capacity of the built-in memory, for example, when a memory-integrated ASIC (application specific IC) is to be realized, and a small-sized ASIC that is said to be advantageous in terms of cost and size is realized. It is difficult.
[0008]
Therefore, an object of the present invention is to provide a data array conversion device capable of reducing a memory capacity used for data array conversion.
[0009]
[Means for Solving the Problems]
In order to achieve the above object, in the data array conversion device of the present invention, data in which pixel data of two horizontal lines of odd (odd number) and even (even number) are regularly arranged within one horizontal period is input. An input port and a memory unit for storing data input to the input port are provided, and the memory unit includes first, second, and third blocks each having a storage capacity for input data for one horizontal line. and, the first block to save the one input data of the odd pixel data and even pixel data for each horizontal line, the second and third block, the other input data per one horizontal line And array conversion means for reading stored data from the first, second and third blocks and converting the data array.
Then, the array conversion unit writes the one input data in the n-th period of each one horizontal period from the positive direction to the first block, reads the data in the reverse direction, and continues the n-th period. After writing the one data in the (n + 1) th period in the reverse direction, read this data in the positive direction, and after writing the other input data in the nth period in the positive direction to the second block, Is written in the reverse direction, the other input data in the (n + 1) th period is written in the positive direction to the third block, and then this data is read in the reverse direction.
[0010]
This ensures performed using 3 horizontal line memory capacity of a symmetrical array conversion per horizontal line of the second data that horizontal line of pixel data are regularly arranged in the odd and even within one horizontal period It becomes possible. For this reason, it is effective for miniaturization of a memory integrated type IC.
[0011]
In the image processing system for processing the data of the luminance signal and the data of the chrominance signal, two data arrangement converters are provided to operate them simultaneously, and one of the data arrangement converters converts the arrangement of the luminance signal. It is preferable that the other data array conversion device performs array conversion of color difference signals.
[0012]
Then, by using the data array conversion device as an image input device that captures an image that is inverted left and right by the reflection member, it is possible to obtain a display image in which the left and right are correctly corrected.
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
(1st Embodiment)
FIG. 1 shows a document camera as an image input device according to an embodiment of the present invention. FIG. 2 shows the configuration of an image input system provided in the document camera.
[0014]
In FIG. 1, reference numeral 1 denotes a document camera, and 2 denotes a document table. An object to be photographed such as a document 100 is placed on the document table 2.
[0015]
Reference numeral 5 denotes a mirror (reflection member) disposed above the document table 2, and reference numeral 3 denotes an imaging unit. The imaging unit 3 houses an imaging optical unit (not shown) and an imaging element such as a CCD. Further, the imaging unit 3 includes a photographing control unit that performs AE, AF control, and the like of the photographing optical unit.
[0016]
Reference numeral 4 denotes an illuminating unit disposed on the right and left upper sides of the original table 2, and illuminates a photographing object placed on the original table 2. Reference numeral 20 denotes an operation unit provided with various operation switches.
[0017]
In the document camera 1 configured as described above, the light beam from the object to be photographed is inverted left and right by the mirror 5 and enters the image pickup unit 3. The light beam incident on the imaging unit 3 forms an image on the image sensor, and an image of the object to be photographed whose right and left are reversed is captured.
[0018]
In FIG. 10, reference numeral 10 denotes an image processing unit which takes in an image signal captured (photoelectrically converted) by the imaging unit 3, performs processing relating to the amplitude, white balance, and frequency characteristics of the image signal, and digitizes the image signal A. Is output as
[0019]
Reference numeral 15 denotes an array conversion unit. The image signal A undergoes a data array conversion process described later in the array conversion unit 15 and is temporarily stored in a memory (RAM) 14. Although only one arrangement conversion unit 15 is shown in the drawing, two arrangement conversion units 15 are actually provided for a luminance signal and a color difference signal.
[0020]
Reference numeral 12 denotes a CPU that executes various processes based on a program stored in the ROM 13. The CPU 12 controls each device connected to the system bus 21 as a whole.
[0021]
Reference numeral 11 denotes a RAM, which functions as a main memory of the CPU 12, a work area, and the like. Reference numeral 22 denotes an illumination control unit, which performs ON / OFF control of the illumination unit 4 in response to a control command from the CPU 12.
[0022]
Reference numeral 16 denotes a size and a speed (for example, 60) at which an input image having a predetermined size and a predetermined speed (for example, 15 frames / second) can be input to an output device such as a monitor or a projector (not shown). This is a resolution converter typified by a scan converter such as a resolution / speed conversion IC that can output at (frames / second).
[0023]
An output unit interface 19 outputs data output from the resolution conversion unit 16 to an image display device such as a monitor or a projector.
[0024]
Reference numeral 17 denotes an operation unit controller that sends a signal to each device connected to the system bus 21 in response to a signal from a switch or the like provided on the operation unit 20.
[0025]
Next, a more detailed configuration of the array converter 15 (including the memory 14) will be described with reference to FIG. FIG. 5 is a block diagram showing the arrangement of the arrangement converter 15 for the luminance (Y) signal and the memory 14. Although not shown, the arrangement converter 15 for the color difference (UV: Cr, Cb) signal has the same configuration. ing.
[0026]
In FIG. 5, reference numeral 30 denotes a memory controller, which is a control signal such as an address of a dual port memory A (31), a dual port memory B (32), and a dual port memory C (33) as blocks in the memory 14, and a chip select. To control the input and output of data to and from the memories 31 to 33.
[0027]
Reference numeral 34 denotes a selector which selectively reads data from the memories 31 to 33 so as to conform to the data output timing shown in FIG.
[0028]
FIG. 3 shows, as a timing chart, an arrangement of input data from the image processing unit 10 to the arrangement conversion unit 15. FIG. 4 is a timing chart showing an array of data output from the array converter 15 (here, an array in the YUV422 format). Note that “Y1odd, Y1even, Y2odd, Y2even...” And “Cr12odd, Cr12even, Cb12odd, Cb12even...” In FIG. 3 and FIG. 4 respectively indicate luminance data and color difference data for one pixel.
[0029]
Next, the data array conversion operation of the array converter 15 will be described with reference to FIGS. FIG. 6 is a timing chart showing the data write and read operations in the array converter 15 for the luminance (Y) signal. Although not shown, the array converter 15 for the color difference (UV) signal performs the same operation. Note that “Y1odd, Y1even, Y2odd, Y2even...” In FIG. 6 respectively indicate pixel (luminance) data of one horizontal line, and these are hereinafter referred to as n-th line Yod pixel data and Yeven pixel data (n Corresponds to the order of one horizontal period). FIG. 7 is a flowchart showing a data write sequence to the memories A to C (31 to 33) in the data array conversion operation, and FIG. 8 shows a data read sequence to the memories A to C (31 to 33). It is a flowchart. Note that the same operation is performed simultaneously with the operation of the arrangement conversion unit 15 for the luminance (Y) signal in the arrangement conversion unit 15 for the color difference (UV) signal.
[0030]
First, a data write sequence to the memories A to C (31 to 33) shown in FIG. 7 will be described.
[0031]
When the write sequence is started in step (abbreviated as S in FIG. 7) 0 in FIG. 7, a vertical synchronization signal is detected in step 1.
[0032]
Next, it waits for detection of a horizontal synchronizing signal in step 2, and when detected, proceeds to step 3.
[0033]
In steps 3 and 4, the time until the data write timing is counted. When the counter value C reaches the specified value LastK in step 4, the process proceeds to step 5.
[0034]
In step S5, the value C of the counter is reset and the initial value of the memory write address is set.
[0035]
Then, in step 6, as shown in FIG. 6, the data of the Yod pixel is written into the memory A (31). At the same time, in step 7, the data of the Even pixel is written to the memory B (32). At this time, both data are written in the memories A (31) and B (32) in the forward direction (the direction in which the address count value AD increases).
[0036]
In step 8, the count value AD of the memory write address is incremented every time steps 6 and 7 are executed.
[0037]
Then, in step 9, it is determined whether or not the memory write address has reached the address of the last pixel LastAD. If the address has not reached the address of the last pixel, the process returns to step 6, and if the address of the last pixel has been reached, the process proceeds to step 10. . In FIG. 6, the writing of the first line Yodd and Yeven pixel data (Y1odd, Y1even) to the memories A (31) and B (32) is completed from the start to this point.
[0038]
In step 10, a counter value B for counting a predetermined blanking period is set to an initial value (0).
[0039]
Next, at step 11, the counter value B for counting the blanking period is incremented. Then, in step 12, it is determined whether or not the blanking period counter value B has reached the specified value LastB. If not, the process returns to step 11 to continue counting, and if it has reached, the process proceeds to step 13.
[0040]
In step 13, the initial value of the memory write address is set and the specified value LastAD is set. Then, in S14, the Yod pixel data of the next line is sequentially written into the memory A (31) from the last address side (that is, from the reverse direction). This is because the data written in the memory A (31) in the read sequence described later is read from the last address side and used as an empty address in order to invert the image data from side to side.
[0041]
In step 15, the count value AD_A of the write address of the memory A (31) is decreased.
[0042]
At the same time as step 13, in step 16, the Even pixel data of the next line is written in the memory C (33) in the forward direction. Then, in step 17, the count value AD of the write address of the memory C (33) is increased.
[0043]
In step 18, it is determined whether or not the write address of the memory C (33) has reached the address LastAD of the last pixel (the write address of the memory A has reached the address of the first pixel). Returns to step 14, and when reached, proceeds to step 19. In FIG. 6, the writing of the Yodd and Yeven pixel data (Y2odd, Y2even) on the second line to the memories A (31) and C (33) is completed after the first blanking period.
[0044]
Next, in step 19, the count value B of the blanking period is set to an initial value, and in step 20, the count value B of the blanking period is increased.
[0045]
Next, in step 21, it is determined whether or not the vertical synchronization signal has been detected. If not, the process proceeds to step 22, in which the counter value B during the blanking period has reached the specified value LastB (blanking). Period has expired). If not, the process returns to step 20, and if completed, the process returns to step 2 to write data for the next two lines.
[0046]
By repeating the above-described writing sequence, writing of pixel data of all horizontal lines of the image sensor to the memories A to C (31 to 33) is sequentially performed.
[0047]
Next, a data read sequence from the memories A to C (31 to 33) shown in FIG. 8 will be described.
[0048]
When the reading sequence is started in step 100 of FIG. 8, a vertical synchronizing signal is detected in step 101.
[0049]
Next, in step 102, the process waits until it is detected that writing of one line of data to the memory A (31) has been completed, and then proceeds to step 103.
[0050]
In step 103, the counter value AD of the memory read address is initialized, and the specified value LastAD is set.
[0051]
Next, in step 104, data is read from the memory A (31) from the last address side (in the reverse direction). By reading the data written in the forward direction in the write sequence in the reverse direction, image data that is horizontally inverted is obtained. In FIG. 6, after the Yod pixel data (Y1odd) on the first line is written to the memory A (31), the Yod pixel data on the first line is read in the reverse direction.
[0052]
Then, in step 105, the count value AD of the read address of the memory A (31) is decreased. In the next step 106, it is determined whether or not the counter value has reached the address of the first pixel. Returns to step 104, and if reached, proceeds to step 107. In FIG. 6, after the reading of the first line of the Yod pixel data from the memory A (31) starts, the reading of the same pixel data ends here.
[0053]
In step 107, the initial value of the counter value BL for counting the blanking period is set, and in the next step 108, the counter value BL is incremented.
[0054]
Then, in step 109, it is determined whether or not the counter value BL has reached the specified value LastBL. If not, the process returns to step 108, and if so, the process proceeds to step 110.
[0055]
In step 110, the counter value AD of the memory read address is initialized, and the specified value LastAD is set.
[0056]
Next, in step 111, data is read from the memory B (32) from the last address side (in the reverse direction). In FIG. 6, after reading of the first line of Ydd pixel data (Y1odd) is completed, after a blanking period, the first line of Yeven pixel data (Y1even) is read from the memory B (32) in the reverse direction.
[0057]
Then, in step 112, the count value AD of the read address of the memory B (32) is reduced, and in the next step 113, it is determined whether or not the counter value has reached the address of the first pixel. Returns to step 111, and when reached, proceeds to step 114. In FIG. 6, after the reading of the first line of Even pixel data from the memory B (32) starts, the reading of the same pixel data ends here.
[0058]
In step 114, the initial value of the counter value BL for counting the blanking period is set, and in the next step 115, the counter value BL is incremented.
[0059]
Then, in step 116, it is determined whether or not the counter value BL has reached the specified value LastBL. If not, the process returns to step 115, and if so, the process proceeds to step 117.
[0060]
In step 117, the counter value AD of the memory read address is initialized, and the specified value LastAD is set.
[0061]
Next, in step 118, data is read from the first address side (in the forward direction) from the memory A (31). This is because the data written in the reverse direction in step 14 of the write sequence described above is read from the normal direction. In FIG. 6, after the Ydd pixel data (Y2odd) of the second line is written to the memory A (31) (after the Yeven pixel data (Y1even) of the first line is read from the memory B (32)). The Yod pixel data of the second line is read in the forward direction.
[0062]
Then, in step 119, the count value AD of the read address of the memory A (31) is increased, and in the next step 120, it is determined whether or not the counter value has reached the address LastAD of the last pixel. Returns to step 118, and when reached, proceeds to step 121. In FIG. 6, after the reading of the Yod pixel data of the second line from the memory A (31) starts, the reading of the same pixel data ends here.
[0063]
In step 121, the initial value of the counter value BL for counting the blanking period is set, and in the next step 122, the counter value BL is incremented.
[0064]
Then, in step 123, it is determined whether or not the counter value BL has reached the specified value LastBL. If not, the process returns to step 122, and if so, the process proceeds to step 124.
[0065]
In step 124, the counter value AD of the memory read address is initialized, and the specified value LastAD is set.
[0066]
Next, in step 125, data is read from the memory C (33) from the last address side (in the reverse direction). In FIG. 6, after the reading of the Ydd pixel data (Y2odd) of the second line is completed, the Yeven pixel data of the second line (Y2even) is read from the memory C (33) in the reverse direction after a blanking period.
[0067]
Then, in step 126, the count value AD of the read address of the memory C (33) is reduced, and in the next step 127, it is determined whether or not the counter value has reached the address of the first pixel. Returns to step 125 and returns to step 102 when it reaches. In FIG. 6, after the start of reading the Even pixel data of the second line from the memory C (33), the reading of the same pixel data is completed up to this point.
[0068]
By repeating the above read sequence, the pixel data of all the horizontal lines of the image sensor are sequentially read from the memories A to C (31 to 33).
[0069]
Thus odd, even, odd, even ... the pixel data read out for each horizontal line in the order of FIG. 4 by performing as described above the data writing and reading from the three memories in the memory controller 30 Are arranged as shown in FIG.
[0070]
【The invention's effect】
As described above, according to the present invention, the left-right symmetric arrangement conversion for each horizontal line of data in which pixel data of two horizontal lines of odd and even are regularly arranged within one horizontal period is performed for three horizontal lines. It can be performed using a memory capacity of one minute. For this reason, it is effective for miniaturization of a memory integrated type IC.
[0071]
If the data array conversion device of the present invention is used for an image input device that captures an image that has been inverted left and right by the reflection member, a display image in which the left and right sides have been correctly corrected can be obtained.
[Brief description of the drawings]
FIG. 1 is an external view showing a document camera (image input device) according to an embodiment of the present invention.
FIG. 2 is a block diagram showing an electrical configuration of the image input device.
FIG. 3 is a timing chart showing an array of input data in the array converter.
FIG. 4 is a timing chart showing an array of output data in the array converter.
FIG. 5 is a block diagram illustrating a configuration of the array conversion unit.
FIG. 6 is a timing chart showing a data write / read operation in the array conversion unit.
FIG. 7 is a flowchart showing a data write operation in the array conversion unit.
FIG. 8 is a flowchart showing a data read operation in the array conversion unit.
[Explanation of symbols]
REFERENCE SIGNS LIST 1 document camera 2 platen 3 imaging unit 4 illumination unit 5 mirror 10 image processing unit 11 RAM
12 CPU
13 ROM
14 Memory 15 Array conversion unit 16 Resolution conversion unit 17 Operation unit controller 19 Output unit I / F
20 operation unit 22 lighting control unit 100 documents

Claims (5)

1水平期間内にoddおよびevenの2水平ライン分の画素データが規則的に配列されたデータが入力される入力ポートと、この入力ポートに入力されたデータを保存するメモリ部とを備え、
前記メモリ部は、それぞれ1水平ライン分の入力データの保存容量を持つ第1、第2および第3のブロックで構成されており、
前記第1のブロックにodd画素データおよびeven画素データのうちの一方の入力データを1水平ライン分ごとに保存し、前記第2および第3のブロックに、他方の入力データを1水平ライン分ごとに交互に保存するとともに、前記第1、第2および第3のブロックから保存データを読み出してデータ配列を変換する配列変換手段を有し、
前記配列変換手段は、前記第1のブロックに対し、前記1水平期間ごとの第n期間における前記一方の入力データを正方向から書き込んだ後、このデータを逆方向から読み出し、かつ前記第n期間に続く第n+1期間における前記一方のデータを逆方向から書き込んだ後、このデータを正方向から読み出し、
前記第2のブロックに対し、前記第n期間における前記他方の入力データを正方向に書き込んだ後、このデータを逆方向に読み出し、
前記第3のブロックに対し、前記第n+1期間における前記他方の入力データを正方向に書き込んだ後、このデータを逆方向に読み出すことを特徴とするデータ配列変換装置。
An input port to which data in which pixel data of two horizontal lines of odd and even are regularly arranged within one horizontal period is input, and a memory unit for storing the data input to the input port,
The memory unit includes first, second, and third blocks each having a storage capacity for input data for one horizontal line,
Save the one input data of the odd pixel data and even pixel data in the first block for every one horizontal line, the second and third block, the other input data per one horizontal line to thereby store alternately, have a sequence conversion means for converting said first data array reads stored data from the second and third blocks,
The array conversion means writes the one input data in the n-th period of each one horizontal period from the positive direction to the first block, reads the data in the reverse direction, and reads the data in the n-th period. After writing the one data in the (n + 1) th period following the reverse direction, read the data from the forward direction,
After writing the other input data in the n-th period in the positive direction to the second block, read the data in the reverse direction,
A data array conversion device , wherein after writing the other input data in the (n + 1) th period in the positive direction in the third block, the data is read in the reverse direction .
前記配列変換手段は、前記第1、第2および第3のブロックに書き込まれたデータを、前記第1のブロックに書き込まれたデータ、前記第2のブロックに書き込まれたデータ、前記第1のブロックに書き込まれたデータ、前記第3のブロックに書き込まれたデータの順で読み出すことを特徴とする請求項1に記載のデータ配列変換装置。 The array conversion unit may convert the data written in the first, second, and third blocks into data written in the first block, data written in the second block, 2. The data array conversion device according to claim 1 , wherein the data is read in the order of the data written in the block and the data written in the third block . 請求項1又は2に記載のデータ配列変換装置を2つ備えるとともにこれらデータ配列変換装置を同時に動作させ、
一方のデータ配列変換装置により、入力された画像データのうち輝度信号の配列変換を行い、他方のデータ配列変換装置により色差信号の配列変換を行うことを特徴とする画像処理システム。
Claims 1 or 2, comprising two data array converters and simultaneously operating these data array converters,
An image processing system, wherein one data array conversion device performs an array conversion of a luminance signal in input image data, and the other data array conversion device performs an array conversion of a color difference signal.
請求項3に記載の画像処理システムを備えたことを特徴とする画像入力装置。An image input apparatus comprising the image processing system according to claim 3. 撮影対象物からの光束を反射する反射部材と、この反射部材により左右反転された像を撮像して画像データを出力する撮像手段とを有することを特徴とする請求項4に記載の画像入力装置。5. The image input device according to claim 4, further comprising: a reflecting member for reflecting a light beam from the object to be photographed; .
JP2001335353A 2001-10-31 2001-10-31 Data array conversion device, image processing system, and image input device Expired - Fee Related JP3566687B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001335353A JP3566687B2 (en) 2001-10-31 2001-10-31 Data array conversion device, image processing system, and image input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001335353A JP3566687B2 (en) 2001-10-31 2001-10-31 Data array conversion device, image processing system, and image input device

Publications (2)

Publication Number Publication Date
JP2003140637A JP2003140637A (en) 2003-05-16
JP3566687B2 true JP3566687B2 (en) 2004-09-15

Family

ID=19150348

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001335353A Expired - Fee Related JP3566687B2 (en) 2001-10-31 2001-10-31 Data array conversion device, image processing system, and image input device

Country Status (1)

Country Link
JP (1) JP3566687B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018142625A1 (en) * 2017-02-06 2018-08-09 株式会社Pfu Image reading assist device and image reading device

Also Published As

Publication number Publication date
JP2003140637A (en) 2003-05-16

Similar Documents

Publication Publication Date Title
JPH10210367A (en) Electronic image-pickup device
JPH1118097A (en) Device and method for picking up image and recording medium recording the same method
JPH05130399A (en) Original reader
JP2007124295A (en) Imaging means driving apparatus, imaging means driving method and signal processing apparatus
JP5262047B2 (en) Solid-state imaging device and imaging device
JP2000224604A (en) Image processor
US20090103146A1 (en) Image reading apparatus and image reading method
JP3902525B2 (en) Image signal processing device
JP3566687B2 (en) Data array conversion device, image processing system, and image input device
JP7004851B2 (en) Image pickup device, image data processing method of image pickup device, and program
JP4531294B2 (en) Symbol information reader
JP2000341592A (en) Image input device
US20090102750A1 (en) Image display control apparatus, method for controlling the same, and program
JP3304685B2 (en) Digital camera
JPH1042244A (en) Picture processor
JPH07193690A (en) Image reader
JPH11308560A (en) Electronic camera
JP4250511B2 (en) Imaging device
JP4211572B2 (en) Imaging device
JP4310177B2 (en) Imaging apparatus and imaging method
JP4677581B2 (en) Data transfer control device and data transfer method
JP4016473B2 (en) Imaging method and imaging apparatus
JP2004153710A (en) Control method of imaging apparatus, and imaging apparatus
JPH07184102A (en) Image pickup device
JPH11285015A (en) Image pickup device, image processing method, and storage medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20031208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20031216

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040216

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: 20040608

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040610

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees