JP2005079881A - Digital camera apparatus, method for correcting image display deviation, computer program, and computer-readable recording medium - Google Patents

Digital camera apparatus, method for correcting image display deviation, computer program, and computer-readable recording medium Download PDF

Info

Publication number
JP2005079881A
JP2005079881A JP2003307557A JP2003307557A JP2005079881A JP 2005079881 A JP2005079881 A JP 2005079881A JP 2003307557 A JP2003307557 A JP 2003307557A JP 2003307557 A JP2003307557 A JP 2003307557A JP 2005079881 A JP2005079881 A JP 2005079881A
Authority
JP
Japan
Prior art keywords
image
image display
shift
input
cycle
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.)
Pending
Application number
JP2003307557A
Other languages
Japanese (ja)
Inventor
Kiyoshi Iwabuchi
清 岩渕
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 JP2003307557A priority Critical patent/JP2005079881A/en
Publication of JP2005079881A publication Critical patent/JP2005079881A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Transforming Electric Information Into Light Information (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To avoid using of an unnecessary memory for preventing a phenomenon in which images for 2 frames of different timing are mixed and displayed in the same display image due to asynchronous clocks, and to prevent the phenomenon by simple control. <P>SOLUTION: A picture input means 100 has its timing controlled based on a first clock means 107, and inputs a picture from CCD in real time. An image display means 114 has its timing controlled based on a second clock means 111 asynchronous with the first clock means 107, and displays the input image in real time. A detection means detects deviation between the period of image input by the means 100 and the period of image display by the means 114 (steps S410 and S420). When the deviation detected by the detection means exceeds a prescribed range, a deviation adjusting means suppresses the deviation by changing the period of the image input means or the image display means (steps S430, S440 and S450). <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、画像の入力タイミングと画像の表示タイミングが非同期なクロックによって制御されるデジタルカメラ装置、画像表示ズレ補正方法、コンピュータプログラム及びコンピュータ読み取り可能な記録媒体に関するものである。   The present invention relates to a digital camera device in which an image input timing and an image display timing are controlled by an asynchronous clock, an image display displacement correction method, a computer program, and a computer-readable recording medium.

非同期なクロックによって画像が入出力される装置においては、発振器のバラツキ等によって入力側と出力側の1フレーム期間が一致しない為、徐々にタイミングがずれていき、その結果、同一フレーム期間の画面の上部と下部とで異なるタイミングで撮影された画像を表示してしまうという問題点がある。この問題点を解消する為に、例えば特許文献1では、画像を一時記憶しておくバッファをトリプルバッファ構成としている。   In an apparatus in which an image is input / output by an asynchronous clock, the timing of the frame gradually shifts because the 1 frame period on the input side and the output side do not match due to variations in the oscillator. There is a problem in that images taken at different timings are displayed at the top and bottom. In order to solve this problem, for example, in Patent Document 1, a buffer for temporarily storing an image has a triple buffer configuration.

特開平6−105290号公報JP-A-6-105290

しかしながら、前記従来例では画像を一時記憶しておくバッファをトリプルバッファとして構成している為、必要なメモリサイズが大きくなるという問題点や、バッファ切り替えの制御が複雑になり、ソフトウェアの負担が大きくなるという問題点があった。   However, in the conventional example, the buffer for temporarily storing the image is configured as a triple buffer, so that a problem that the required memory size becomes large, the control of buffer switching becomes complicated, and the burden of software becomes large. There was a problem of becoming.

本発明のデジタルカメラ装置は、第1のクロック手段に基づいてタイミングを制御され、CCDからの画像をリアルタイムに入力する画像入力手段と、前記第1のクロック手段とは非同期な第2のクロック手段に基づいてタイミングを制御され、前記入力画像をリアルタイムに表示する画像表示手段と、前記画像入力手段による画像入力の周期と前記画像表示手段による画像表示周期のズレを検出する検出手段と、前記検出手段によって検出されたズレが所定の範囲を超えた場合に、前記画像入力手段または前記画像表示手段の周期を変更してズレを抑えるズレ調整手段とを有することを特徴としている。   The digital camera device of the present invention has an image input means for inputting the image from the CCD in real time and a second clock means asynchronous with the first clock means, the timing of which is controlled based on the first clock means. Based on the image display means for displaying the input image in real time, the detection means for detecting a shift in the image input period by the image input means and the image display period by the image display means, and the detection When the deviation detected by the means exceeds a predetermined range, there is provided a deviation adjusting means for changing the period of the image input means or the image display means to suppress the deviation.

本発明の画像表示ズレ補正方法は、第1のクロック手段に基づいてタイミングを制御され、CCDからの画像をリアルタイムに入力する画像入力処理と、前記第1のクロック手段とは非同期な第2のクロック手段に基づいてタイミングを制御され、前記入力画像をリアルタイムに表示する画像表示処理と、前記画像入力処理における画像入力の周期と、前記画像表示処理における画像表示の周期とのズレを検出する検出処理と、前記検出処理によって検出されたズレが所定の範囲を超えた場合に、前記画像入力処理における画像入力周期、または前記画像表示処理における画像表示周期の何れかを変更してズレを抑えるズレ調整処理とを有することを特徴としている。   According to the image display misalignment correction method of the present invention, the timing is controlled based on the first clock means, the image input processing for inputting the image from the CCD in real time, and the second clock which is asynchronous with the first clock means. Detection that detects a deviation between an image display process in which the timing is controlled based on a clock means and the input image is displayed in real time, an image input period in the image input process, and an image display period in the image display process When the deviation detected by the processing and the detection process exceeds a predetermined range, either the image input period in the image input process or the image display period in the image display process is changed to suppress the deviation. And an adjustment process.

本発明のコンピュータプログラムは、第1のクロック手段に基づいてタイミングを制御され、CCDからの画像をリアルタイムに入力する画像入力処理と、前記第1のクロック手段とは非同期な第2のクロック手段に基づいてタイミングを制御され、前記入力画像をリアルタイムに表示する画像表示処理と、前記画像入力処理における画像入力の周期と、前記画像表示処理における画像表示の周期とのズレを検出する検出処理と、
前記検出処理によって検出されたズレが所定の範囲を超えた場合に、前記画像入力処理における画像入力周期、または前記画像表示処理における画像表示周期の何れかを変更してズレを抑えるズレ調整処理とをコンピュータに実行させることを特徴としている。
According to the computer program of the present invention, the timing is controlled based on the first clock means, the image input processing for inputting the image from the CCD in real time, and the second clock means asynchronous with the first clock means. An image display process in which the timing is controlled on the basis of the input image and the input image is displayed in real time; a detection process of detecting a shift between an image input period in the image input process and an image display period in the image display process;
A shift adjustment process for suppressing a shift by changing either the image input cycle in the image input process or the image display cycle in the image display process when the shift detected by the detection process exceeds a predetermined range; It is characterized by having a computer execute.

本発明のコンピュータ読み取り可能な記録媒体は、前記に記載のコンピュータプログラムを記録したことを特徴としている。   The computer-readable recording medium of the present invention is characterized by recording the computer program described above.

以上説明したように本発明によれば、非同期なクロックに起因する入出力のフレーム期間のズレを検出し、前記検出したズレを補正する手段を設けたので、タイミングの異なる2フレーム分の画像が同一表示画像内に混ざって表示される現象を防ぐために設けていた余分なメモリを省略することができるとともに、同一フレーム期間の画面の上部と下部とで異なる画像が表示されてしまう不都合を簡易な制御で防止することができる。   As described above, according to the present invention, since the shift of the input / output frame period caused by the asynchronous clock is detected, and the means for correcting the detected shift is provided, images of two frames having different timings can be obtained. The extra memory provided to prevent the phenomenon of being mixed and displayed in the same display image can be omitted, and the disadvantage that different images are displayed on the upper and lower parts of the screen in the same frame period can be simplified. It can be prevented by control.

以下、添付図面を参照して本発明のデジタルカメラ装置、画像表示ズレ補正方法、コンピュータプログラム及びコンピュータ読み取り可能な記録媒体の好適な実施の形態を詳細に説明する。
[第1の実施の形態]
図1は、本発明の第1の実施の形態に係るデジタルカメラ装置の概略構成を示すブロック図である。
図1において、100はカメラ部でその中にはレンズ群101、CCD102、CDS103、ADC104、デジタル画像処理部105、TG(タイミングジェネレーター)106、TG用発振器107が含まれる。
Exemplary embodiments of a digital camera device, an image display misalignment correction method, a computer program, and a computer-readable recording medium according to the present invention will be described below in detail with reference to the accompanying drawings.
[First Embodiment]
FIG. 1 is a block diagram showing a schematic configuration of a digital camera apparatus according to the first embodiment of the present invention.
In FIG. 1, reference numeral 100 denotes a camera unit, which includes a lens group 101, a CCD 102, a CDS 103, an ADC 104, a digital image processing unit 105, a TG (timing generator) 106, and a TG oscillator 107.

レンズ群101から入力された光学画像は、CCD102で電気信号に変換され、CDS103で相関二重サンプリングによるノイズ除去処理された後、ADC104でアナログ信号からデジタル信号に変換され、デジタル画像処理部105においてデジタル的な画像処理を施される。前記TG106は、TG用発振器107のクロック出力を基準として、CCD102、CDS103、ADC104の処理タイミングを制御する信号を発生するタイミングジェネレーターである。   The optical image input from the lens group 101 is converted into an electrical signal by the CCD 102, subjected to noise removal processing by correlated double sampling in the CDS 103, and then converted from an analog signal to a digital signal by the ADC 104. Digital image processing is applied. The TG 106 is a timing generator that generates a signal for controlling the processing timing of the CCD 102, the CDS 103, and the ADC 104 based on the clock output of the TG oscillator 107.

110は、キーSW112からの入力に基づいて各機器をコントロールし、カメラ部100の制御やTFT液晶表示部114への表示データをコントロールするCPUである。このCPU100は、いわゆるマイクロプロセッサ以外に、プログラムメモリ116やワークメモリ115等の外部メモリをコントロールするメモリコントローラ等のロジックを内蔵するいわゆるSOC(システム・オン・チップ)といわれるものである。   A CPU 110 controls each device based on an input from the key SW 112 to control the camera unit 100 and display data on the TFT liquid crystal display unit 114. In addition to the so-called microprocessor, the CPU 100 is a so-called SOC (system on chip) in which logic such as a memory controller for controlling an external memory such as the program memory 116 and the work memory 115 is incorporated.

前記ワークメモリ115は、メモリバスで接続され、CPU110のワークエリアとして使用されるワークメモリであり、SRAMやSDRAM等からなる。プログラムメモリ116は、メモリバスで接続され、当該機器をコントロールする制御プログラムやフォントデータを格納するメモリであり、フラッシュメモリやマスクROM等からなる。117は、メモリバスを経由し専用コネクタで接続される、ストレージ手段であるところのCFカードである。   The work memory 115 is a work memory that is connected by a memory bus and used as a work area of the CPU 110, and is composed of SRAM, SDRAM, or the like. The program memory 116 is a memory that is connected by a memory bus and stores a control program for controlling the device and font data, and includes a flash memory, a mask ROM, and the like. Reference numeral 117 denotes a CF card which is a storage means connected via a memory bus with a dedicated connector.

118は、カメラ部100からリアルタイムで送られてくる画像を2フレーム分蓄え、TFT液晶表示部114へリアルタイムに表示する為のSDRAM等からなるバッファメモリである。113は、CPU110からRGB信号と同期信号を入力し、TFT液晶表示部114に画像を表示するための信号を生成・出力する表示制御回路である。   Reference numeral 118 denotes a buffer memory composed of an SDRAM or the like for storing two frames of images sent from the camera unit 100 in real time and displaying them on the TFT liquid crystal display unit 114 in real time. Reference numeral 113 denotes a display control circuit that receives RGB signals and synchronization signals from the CPU 110 and generates and outputs signals for displaying an image on the TFT liquid crystal display unit 114.

114は、VGA(video graphics array)サイズのTFT方式の液晶ディスプレイである。112は、シャッターSWやモードSWなどの各種制御用のSWを検出するキーSWである。また、111はCPU110やメモリバスや液晶表示制御回路113などの動作の基本となるクロックを発生する発振器である。   Reference numeral 114 denotes a TFT-type liquid crystal display having a VGA (video graphics array) size. Reference numeral 112 denotes a key SW for detecting various control SWs such as a shutter SW and a mode SW. Reference numeral 111 denotes an oscillator that generates a clock that is a basic operation of the CPU 110, the memory bus, the liquid crystal display control circuit 113, and the like.

図2及び図3は、本実施の形態においてカメラ部100からの画像をリアルタイムに液晶表示部114に表示する際の表示バッファ118への読み書きのタイミング例を示すタイミング説明図である。   FIG. 2 and FIG. 3 are timing explanatory diagrams showing examples of read / write timings to the display buffer 118 when an image from the camera unit 100 is displayed on the liquid crystal display unit 114 in real time in the present embodiment.

CCDVD信号は、発振器107からのクロックを元にTG106でCCD102の横方向の画素数、縦方向のライン数をカウントして生成される信号で、CCD102からの1フレーム画像の開始タイミングを制御する1/30秒周期の垂直同期信号である。CCDWRは、CCD102から取り込まれた画像がCPU110を通して表示バッファ118に書き込まれるタイミングを表したものである。   The CCDVD signal is a signal generated by counting the number of pixels in the horizontal direction and the number of lines in the vertical direction of the CCD 102 by the TG 106 based on the clock from the oscillator 107, and controls the start timing of one frame image from the CCD 102. This is a vertical synchronizing signal with a period of / 30 seconds. The CCDWR represents the timing at which the image captured from the CCD 102 is written into the display buffer 118 through the CPU 110.

連続して送られてくる画像データは、CCDVD信号に同期して、表示バッファ118の2フレームのバッファに交互に格納される。また、図2でCCDWRが変化していない部分は、CCD102のオプティカルブラックと呼ばれる部分等の無効領域で、バッファにはデータが書き込まれない期間である。   The image data sent continuously is alternately stored in the two-frame buffer of the display buffer 118 in synchronization with the CCDVD signal. In FIG. 2, a portion where the CCDWR does not change is an invalid area such as a portion called an optical black of the CCD 102, which is a period during which no data is written in the buffer.

LCDVD信号は、発振器111からのクロックを元にCPU110で生成される信号で、TFT液晶表示部114に画像を表示するタイミングを制御する1/60秒周期の垂直同期信号である。LCDRDは、表示バッファ118から液晶表示用にデータを読み出すタイミングを表したものである。本実施の形態のTFT液晶表示は、インターレス形式と呼ばれる方法で表示され、1ライン置きに2回のフィールドに分割して表示される。   The LCDVD signal is a signal generated by the CPU 110 based on the clock from the oscillator 111 and is a 1/60 second period vertical synchronization signal that controls the timing for displaying an image on the TFT liquid crystal display unit 114. LCDRD represents the timing for reading data from the display buffer 118 for liquid crystal display. The TFT liquid crystal display of this embodiment is displayed by a method called an interlaced format, and is divided into two fields every other line.

各フィールドは、LCDVD信号に同期して同じバッファからf0、f1と順に読み出されて1フレーム分の表示データが形成され、1フレーム毎に2つの表示バッファから交互に読み出される。また、図2でLCDRDが変化していない部分は、垂直帰線期間と呼ばれるもので、この期間は表示が変化せず、バッファからのデータの読み出しも行なわれない。   Each field is sequentially read from the same buffer in the order of f0 and f1 in synchronization with the LCDVD signal to form display data for one frame, and is alternately read from two display buffers for each frame. In FIG. 2, the portion in which LCDRD does not change is called a vertical blanking period. During this period, the display does not change, and data is not read from the buffer.

CCDVD信号は1/30秒周期、LCD信号は1/60秒周期であるので、完全に同期が取れているクロックで制御されていれば、CCDWRのタイミングとLCDRDのタイミングとの関係は一定に保たれ、CCDからのデータが書き込まれているバッファとは別のバッファからLCD表示データの読み出しを常に行なうことができる。   Since the CCDVD signal has a 1/30 second period and the LCD signal has a 1/60 second period, the relationship between the CCDWR timing and the LCDRD timing is kept constant as long as it is controlled by a completely synchronized clock. Therefore, the LCD display data can always be read from a buffer different from the buffer in which the data from the CCD is written.

しかしながら、CCDVD信号とLCDVD信号とが異なる発振器を元に生成されている場合は、その誤差がわずかではあっても少しずつづれていってしまう。その状態を表したのが図2及び図3であり、図2はCCDVDの周期の方が短い例、図3はCCDVDの周期の方が長い例を示している。なお、説明の都合上かなりデフォルメされた図となっており、実際のタイミングとは一致していない。   However, when the CCDVD signal and the LCDVD signal are generated based on different oscillators, even if the error is slight, it is slightly shifted. FIG. 2 and FIG. 3 show the state. FIG. 2 shows an example in which the CCDVD cycle is shorter, and FIG. 3 shows an example in which the CCDVD cycle is longer. Note that the figure is considerably deformed for the convenience of explanation, and does not coincide with the actual timing.

図2の(a)は、同期がずれたままバッファへの入出力を続けた場合に起きる不具合を説明する為の図であり、左端でCCDVDとLCDVDのタイミングが一致していたのが段々ずれていき、※印のところでCCDWRとLCDRDが同じBuf_1に対して行なわれている。   FIG. 2 (a) is a diagram for explaining a problem that occurs when input / output to the buffer is continued with out-of-synchronization, and the timings of CCDVD and LCDVD coincide with each other at the left end. CCDWR and LCDRD are performed on the same Buf_1 at the mark *.

通常、この状態ではLCDRDの読み出しをCCDWRの書き込みが追いかける状態となり、まだ不具合として表面化しないが、上下反転機能を実装している場合などの理由でバッファへ書き込む順番とバッファから読み出す順番が逆方向であると、読み出しの途中までは古いフレームデータ、途中からは新しいフレームデータとなり、画面の上下でズレが生じてしまう。また、書き込みと読み出しの方向が同じであっても、このままズレが大きくなっていくと、読み出しの途中までは新しいフレームデータ、途中からは古いフレームデータとなり、やはり画面の上下でズレが生じてしまう。   Normally, in this state, the reading of the LCDRD is followed by the writing of the CCDWR, and it still does not appear as a malfunction, but the order of writing to the buffer and the order of reading from the buffer are reversed because of the case where the upside down function is implemented. If there is, the frame data becomes old frame data until the middle of reading, and becomes new frame data from the middle, resulting in a shift at the top and bottom of the screen. Also, even if the writing and reading directions are the same, if the deviation increases as it is, new frame data will appear until the middle of reading, and old frame data will appear halfway, resulting in a deviation at the top and bottom of the screen. .

図2の(b)は、本実施の形態によって前記の不具合を解消した時のタイミング説明図である。LCDRDのf1フィールド開始時のLCDVD信号割込み(図の矢印で示したタイミング)毎に、CCDVDを生成しているTGの垂直方向のカウンタが何ライン目となっているかを読み出すことにより、ズレ量を検出する。   FIG. 2B is an explanatory diagram of timing when the above-described problem is solved by the present embodiment. For each LCDVD signal interrupt (timing indicated by the arrow in the figure) at the start of the LCDRD f1 field, the deviation amount is determined by reading the line number of the counter in the vertical direction of the TG generating the CCDVD. To detect.

この値が所定のライン数よりも大きい場合には、次のCCDVDを生成する為のラインカウント数の上限を表すレジスタを増加させることにより、次フィールドのCCDからのバッファへの書き込みタイミングを遅らせる。この所定のライン数のズレ量は、LCDの垂直帰線期間に相当する時間よりも短く設定する必要がある。   When this value is larger than the predetermined number of lines, the register for indicating the upper limit of the line count number for generating the next CCDVD is increased, thereby delaying the writing timing from the CCD in the next field to the buffer. The shift amount of the predetermined number of lines needs to be set shorter than the time corresponding to the vertical blanking period of the LCD.

図2の(b)では、3番目の矢印のタイミングでこの規定のズレより大きくなっているのが検出され、次のCCDのBuf_1への書き込みタイミングを遅らせるように制御している。   In FIG. 2B, it is detected that the deviation is larger than the prescribed deviation at the timing of the third arrow, and control is performed to delay the timing of writing the next CCD to Buf_1.

図3は、図2と逆のケースで同様に(c)はズレを補正しないまま表示を続けた時に※印のところで同一バッファに対する入出力が行なわれ、同図(d)では矢印のタイミングでCCDのライン数のカウンタが所定のライン数より小さくなっているかどうか検出し、所定のライン数より小さかった場合は、次のCCDVDを生成する為のラインカウント数の上限を表すレジスタを減少させることにより、次フィールドのCCDからのバッファへの書き込みタイミングを早める。この所定のライン数のズレ量は、CCDの無効領域に相当する時間よりも短く設定する必要がある。   FIG. 3 shows the reverse case of FIG. 2, and (c) shows that input / output to the same buffer is performed at the mark * when the display is continued without correcting the deviation, and at the timing of the arrow in FIG. 3 (d). It is detected whether the counter of the number of lines of the CCD is smaller than the predetermined number of lines, and if it is smaller than the predetermined number of lines, the register indicating the upper limit of the line count number for generating the next CCDVD is decreased. As a result, the write timing from the CCD in the next field to the buffer is advanced. The deviation amount of the predetermined number of lines needs to be set shorter than the time corresponding to the invalid area of the CCD.

図3の(d)では、2番目の矢印のタイミングでこの規定のズレより大きくなっているのが検出され、次のCCDのBuf_2への書き込みタイミングを早めるように制御している。   In FIG. 3D, it is detected that the deviation is larger than the prescribed deviation at the timing of the second arrow, and control is performed so as to advance the timing of writing the next CCD to Buf_2.

図4は、LCDVD信号発生による割込み時の処理手順を示すフローチャートである。
最初のステップS400では、f1フィールド開始のVD割り込みかf0フィールド開始のVD割り込みか判定し、f0ならそのまま何もせずに割込み処理を終了する。一方、f1ならばステップS410に進み、CCDライン数が所定のN1ラインよりも小さいかどうか判定する。この判定の結果、小さかった場合は次のVD信号の発生を遅らせる為に、ステップS430に進み、CCDのMAXライン数に標準より2ライン大きい数値をセットする。
FIG. 4 is a flowchart showing a processing procedure at the time of interruption due to generation of an LCDVD signal.
In the first step S400, it is determined whether the fD field start VD interrupt or the f0 field start VD interrupt. If it is f0, the interrupt process is terminated without doing anything. On the other hand, if it is f1, it will progress to step S410 and it will be determined whether the number of CCD lines is smaller than predetermined N1 line. If the result of this determination is negative, the process proceeds to step S430 to delay the generation of the next VD signal, and a numerical value that is 2 lines larger than the standard is set as the number of MAX lines of the CCD.

一方、ステップS400の判断の結果、CCDライン数が所定のN1ライン以上の場合は、ステップS420に進み、CCDライン数が所定のN2ラインより大きいかどうか判定し、大きかった場合は次のVD信号の発生を早める為に、ステップS450に進み、CCDのMAXライン数に標準より2ライン小さい数値をセットする。前記ステップS410、ステップS420により検出手段が構成されている。   On the other hand, if it is determined in step S400 that the number of CCD lines is equal to or greater than the predetermined N1 line, the process proceeds to step S420, where it is determined whether the number of CCD lines is greater than the predetermined N2 line. In order to speed up the occurrence of this, the process proceeds to step S450, and a numerical value smaller by 2 lines than the standard is set as the number of MAX lines of the CCD. The detection means is constituted by the steps S410 and S420.

また、ステップS42の判別の結果、CCDライン数が所定のN1ライン以上かつ所定のN2ライン以下の場合はステップS440に進み、CCDのMAXライン数に標準の数値をセットする。前記ステップS430、ステップS440、ステップS450により調整手段が構成されている。   If it is determined in step S42 that the number of CCD lines is not less than a predetermined N1 line and not more than a predetermined N2 line, the process proceeds to step S440, and a standard numerical value is set as the number of MAX lines of the CCD. Steps S430, S440, and S450 constitute an adjusting unit.

[第2の実施の形態]
前述した第1の実施の形態では、CCDVDの周期を調整することによってCCDVDとLCDVDのズレを補正するように構成されていたが、本実施の形態は、LCDVDの周期を調整することによりズレの補正を行なう。
[Second Embodiment]
In the first embodiment described above, the shift between CCDVD and LCDVD is corrected by adjusting the cycle of CCDVD. However, in the present embodiment, the shift of the shift is made by adjusting the cycle of LCDVD. Make corrections.

図5及び図6は、本実施の形態においてカメラ部100からの画像をリアルタイムに液晶表示部114に表示する際の表示バッファ118への読み書きのタイミング例を示すタイミング説明図である。図5の(e)は、第1の実施の形態の図2(a)と同じものである。(f)は本実施の形態によって図5の(e)での不具合を解消したものである。   FIG. 5 and FIG. 6 are timing explanatory diagrams showing timing examples of reading and writing to the display buffer 118 when an image from the camera unit 100 is displayed on the liquid crystal display unit 114 in real time in the present embodiment. FIG. 5E is the same as FIG. 2A of the first embodiment. (F) eliminates the problem in FIG. 5 (e) according to the present embodiment.

本実施の形態においては、図5の(f)の矢印のタイミングで、CCDVDを生成しているTGの垂直方向のカウンタが何ライン目となっているかを読み出すことにより、ズレ量を検出する。この値が所定のライン数よりも大きい場合には、次のLCDVDを生成する為のラインカウント数の上限を表すレジスタを減少させることにより、次フィールドの表示タイミングを早める。この所定のライン数のズレ量は、LCDの垂直帰線期間に相当する時間よりも短く設定する必要がある。図5の(f)では2番目の矢印のタイミングでこの規定のズレより大きくなっているのが検出され、次の表示タイミングを早めるように制御している。   In the present embodiment, the amount of deviation is detected by reading the number of the counter in the vertical direction of the TG generating the CCDVD at the timing indicated by the arrow in FIG. When this value is larger than the predetermined number of lines, the display timing of the next field is advanced by decreasing the register indicating the upper limit of the line count number for generating the next LCDVD. The shift amount of the predetermined number of lines needs to be set shorter than the time corresponding to the vertical blanking period of the LCD. In (f) of FIG. 5, it is detected that the deviation is larger than the prescribed deviation at the timing of the second arrow, and control is performed so as to advance the next display timing.

図6の(g)は、第1の実施の形態の図3(c)と同じものである。図6の(h)は本実施の形態によって(g)での不具合を解消したものである。
図6の(h)の矢印のタイミングでCCDのライン数のカウンタが所定のライン数より小さくなっているかどうか検出し、所定のライン数より小さかった場合は、次のLCDVDを生成する為のラインカウント数の上限を表すレジスタを増加させることにより、次フィールドの表示タイミングを遅くする。この所定のライン数のズレ量は、CCDの無効領域に相当する時間よりも短く設定する必要がある。
FIG. 6G is the same as FIG. 3C of the first embodiment. (H) of FIG. 6 eliminates the problem in (g) by this embodiment.
It is detected whether the CCD line number counter is smaller than the predetermined number of lines at the timing of the arrow in FIG. 6H, and if it is smaller than the predetermined number of lines, the line for generating the next LCDVD is detected. The display timing of the next field is delayed by increasing the register indicating the upper limit of the count number. The deviation amount of the predetermined number of lines needs to be set shorter than the time corresponding to the invalid area of the CCD.

図6の(h)では3番目の矢印のタイミングでこの規定のズレより大きくなっているのが検出され、次の表示タイミングを遅らせるように制御している。   In FIG. 6 (h), it is detected that the deviation is larger than the prescribed deviation at the timing of the third arrow, and the next display timing is controlled to be delayed.

[第3の実施の形態]
前述した第1の実施の形態では、LCDVDの割り込みタイミングでCCDのラインカウント数をチェックすることによりLCDとCCDの周期のズレ量を検出していったが、本実施の形態では、CCDVDの割り込みタイミングでLCDの現フィールド及びラインカウント数をチェックすることにより周期のズレ量を検出する。
[Third Embodiment]
In the first embodiment described above, the amount of shift between the LCD and CCD cycles is detected by checking the CCD line count at the LCDVD interrupt timing, but in this embodiment, the CCDVD interrupt count is detected. The period deviation is detected by checking the current field and line count number of the LCD at the timing.

図7は、CCDVD信号発生による割込み時の処理手順を示すフローチャートである。
処理が開始されると、最初のステップS700では、LCDの現在の読み込みフィールドがf0かf1かチェックする。このチェックの結果、f0ならステップS710に進み、f1ならステップS720に分岐する。
FIG. 7 is a flowchart showing a processing procedure at the time of interruption due to CCDVD signal generation.
When the process is started, in the first step S700, it is checked whether the current reading field of the LCD is f0 or f1. If the result of this check is f0, the process proceeds to step S710, and if it is f1, the process branches to step S720.

ステップS710では、現在のLCD読み込みラインカウント数をチェックし、所定のN4より大きければ次のCCDVD信号の発生タイミングを早める為にステップS750でCCDのMAXライン数に標準より2ライン小さい数値をセットする。また、所定のN4以下であれば、ステップS740でCCDのMAXライン数に標準の数値をセットする。   In step S710, the current LCD read line count is checked, and if it is greater than a predetermined N4, a numerical value that is two lines smaller than the standard is set in step S750 in order to advance the generation timing of the next CCDVD signal. . If it is equal to or less than the predetermined N4, a standard numerical value is set as the number of MAX lines of the CCD in step S740.

一方、ステップS720に分岐した場合には、現在のLCD読み込みラインカウント数をチェックし、所定のラインカウント数N3より小さければ次のCCDVD信号の発生タイミングを遅らせる為に、ステップS730で、CCDのMAXライン数に標準より2ライン大きい数値をセットする。また、所定のN3以上であれば、ステップS740でCCDのMAXライン数に標準の数値をセットする。   On the other hand, if the process branches to step S720, the current LCD read line count number is checked, and if it is smaller than the predetermined line count number N3, in order to delay the generation timing of the next CCDVD signal, in step S730, the CCD MAX Set the number of lines 2 numbers larger than the standard. If it is equal to or greater than the predetermined N3, a standard numerical value is set as the number of MAX lines of the CCD in step S740.

本発明の第1の実施の形態に係るデジタルカメラ装置の構成を示すブロック図である。It is a block diagram which shows the structure of the digital camera apparatus which concerns on the 1st Embodiment of this invention. 本発明の第1の実施の形態に係る入出力信号のタイミングを示す図である。It is a figure which shows the timing of the input-output signal which concerns on the 1st Embodiment of this invention. 本発明の第1の実施の形態に係る入出力信号のタイミングを示す図である。It is a figure which shows the timing of the input-output signal which concerns on the 1st Embodiment of this invention. 本発明の第1の実施の形態に係るLCDの垂直同期割込み時の処理を示すフローチャートである。It is a flowchart which shows the process at the time of the vertical-synchronization interruption of LCD which concerns on the 1st Embodiment of this invention. 本発明の第2の実施の形態に係るデジタルカメラ装置の入出力信号のタイミングを示す図である。It is a figure which shows the timing of the input-output signal of the digital camera apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施の形態に係るデジタルカメラ装置の入出力信号のタイミングを示す図である。It is a figure which shows the timing of the input-output signal of the digital camera apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第3の実施の形態を示し、デジタルカメラ装置におけるCCD垂直同期割込み時の処理を示すフローチャートである。12 is a flowchart illustrating processing at the time of CCD vertical synchronization interrupt in the digital camera device according to the third embodiment of the present invention.

符号の説明Explanation of symbols

100 カメラ部
106 タイミングジェネレーター
107 CCD入力タイミング用発振器
110 CPU
111 CPU動作及びLCD表示タイミング用発振器
114 TFT液晶表示部
118 表示バッファ












DESCRIPTION OF SYMBOLS 100 Camera part 106 Timing generator 107 CCD input timing oscillator 110 CPU
111 Oscillator for CPU operation and LCD display timing 114 TFT liquid crystal display 118 Display buffer












Claims (12)

第1のクロック手段に基づいてタイミングを制御され、CCDからの画像をリアルタイムに入力する画像入力手段と、
前記第1のクロック手段とは非同期な第2のクロック手段に基づいてタイミングを制御され、前記入力画像をリアルタイムに表示する画像表示手段と、
前記画像入力手段による画像入力の周期と前記画像表示手段による画像表示周期のズレを検出する検出手段と、
前記検出手段によって検出されたズレが所定の範囲を超えた場合に、前記画像入力手段または前記画像表示手段の周期を変更してズレを抑えるズレ調整手段とを有することを特徴とするデジタルカメラ装置。
Image input means for controlling the timing based on the first clock means and inputting an image from the CCD in real time;
Image display means for controlling the timing based on a second clock means asynchronous with the first clock means and displaying the input image in real time;
Detecting means for detecting a deviation between an image input period by the image input means and an image display period by the image display means;
A digital camera apparatus comprising: a shift adjustment unit that suppresses a shift by changing a cycle of the image input unit or the image display unit when the shift detected by the detection unit exceeds a predetermined range. .
前記検出手段は、前記画像表示手段の周期と同期して起動され、前記画像入力手段により入力されている画像のラインナンバーを読み取ることによって画像表示周期のズレを検出することを特徴とする請求項1に記載のデジタルカメラ装置。   The detection means is activated in synchronization with a cycle of the image display means, and detects a shift of an image display cycle by reading a line number of an image input by the image input means. The digital camera device according to 1. 前記検出手段は、前記の画像入力手段の周期と同期して起動され、前記画像表示手段によって表示されている画像のラインナンバーを読み取ることによって画像表示周期のズレを検出することを特徴とする請求項1に記載のデジタルカメラ装置。   The detection unit is activated in synchronization with a cycle of the image input unit, and detects a shift in an image display cycle by reading a line number of an image displayed by the image display unit. Item 4. The digital camera device according to Item 1. 前記調整手段は、前記画像入力手段の周期を変更することによって画像表示周期のズレを調整することを特徴とする請求項1に記載のデジタルカメラ装置。   The digital camera apparatus according to claim 1, wherein the adjustment unit adjusts a shift of an image display cycle by changing a cycle of the image input unit. 前記調整手段は、前記画像表示手段の周期を変更することによって画像表示周期のズレを調整することを特徴とする請求項1に記載のデジタルカメラ装置。   The digital camera apparatus according to claim 1, wherein the adjustment unit adjusts a shift in an image display cycle by changing a cycle of the image display unit. 第1のクロック手段に基づいてタイミングを制御され、CCDからの画像をリアルタイムに入力する画像入力処理と、
前記第1のクロック手段とは非同期な第2のクロック手段に基づいてタイミングを制御され、前記入力画像をリアルタイムに表示する画像表示処理と、
前記画像入力処理における画像入力の周期と、前記画像表示処理における画像表示の周期とのズレを検出する検出処理と、
前記検出処理によって検出されたズレが所定の範囲を超えた場合に、前記画像入力処理における画像入力周期、または前記画像表示処理における画像表示周期の何れかを変更してズレを抑えるズレ調整処理とを有することを特徴とする画像表示ズレ補正方法。
An image input process for controlling the timing based on the first clock means and inputting an image from the CCD in real time;
Image display processing in which timing is controlled based on second clock means asynchronous with the first clock means, and the input image is displayed in real time;
A detection process for detecting a shift between an image input period in the image input process and an image display period in the image display process;
A shift adjustment process for suppressing a shift by changing either the image input cycle in the image input process or the image display cycle in the image display process when the shift detected by the detection process exceeds a predetermined range; An image display misalignment correction method comprising:
前記検出処理は、前記画像表示処理における画像表示周期と同期して処理を開始し、前記画像入力処理中の画像のラインナンバーを読み取ることによって画像表示周期のズレを検出することを特徴とする請求項6に記載の画像表示ズレ補正方法。   The detection processing starts processing in synchronization with an image display cycle in the image display processing, and detects a shift in the image display cycle by reading a line number of the image during the image input processing. Item 7. The image display misalignment correction method according to Item 6. 前記検出処理は、前記の画像入力処理における画像入力周期と同期して処理を開始し、前記画像表示処理中の画像のラインナンバーを読み取ることによって画像表示周期のズレを検出することを特徴とする請求項6の画像表示ズレ補正方法。   The detection processing starts processing in synchronization with the image input cycle in the image input processing, and detects a shift in the image display cycle by reading a line number of the image during the image display processing. The image display misalignment correction method according to claim 6. 前記調整処理は、前記画像入力処理における画像入力周期を変更することによって画像表示周期のズレを調整することを特徴とする請求項6に記載の画像表示ズレ補正方法。   The image display deviation correction method according to claim 6, wherein the adjustment process adjusts a deviation of an image display period by changing an image input period in the image input process. 前記調整処理は、前記画像表示処理における画像表示周期を変更することによって画像表示周期のズレを調整することを特徴とする請求項6に記載の画像表示ズレ補正方法。   The image display deviation correction method according to claim 6, wherein the adjustment process adjusts a deviation of an image display period by changing an image display period in the image display process. 第1のクロック手段に基づいてタイミングを制御され、CCDからの画像をリアルタイムに入力する画像入力処理と、
前記第1のクロック手段とは非同期な第2のクロック手段に基づいてタイミングを制御され、前記入力画像をリアルタイムに表示する画像表示処理と、
前記画像入力処理における画像入力の周期と、前記画像表示処理における画像表示の周期とのズレを検出する検出処理と、
前記検出処理によって検出されたズレが所定の範囲を超えた場合に、前記画像入力処理における画像入力周期、または前記画像表示処理における画像表示周期の何れかを変更してズレを抑えるズレ調整処理とをコンピュータに実行させることを特徴とするコンピュータプログラム。
An image input process for controlling the timing based on the first clock means and inputting an image from the CCD in real time;
An image display process in which the timing is controlled based on a second clock means asynchronous with the first clock means, and the input image is displayed in real time;
A detection process for detecting a shift between an image input period in the image input process and an image display period in the image display process;
A shift adjustment process for suppressing a shift by changing either the image input cycle in the image input process or the image display cycle in the image display process when the shift detected by the detection process exceeds a predetermined range; A computer program for causing a computer to execute.
前記請求項11に記載のコンピュータプログラムを記録したことを特徴とするコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium having recorded thereon the computer program according to claim 11.
JP2003307557A 2003-08-29 2003-08-29 Digital camera apparatus, method for correcting image display deviation, computer program, and computer-readable recording medium Pending JP2005079881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003307557A JP2005079881A (en) 2003-08-29 2003-08-29 Digital camera apparatus, method for correcting image display deviation, computer program, and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003307557A JP2005079881A (en) 2003-08-29 2003-08-29 Digital camera apparatus, method for correcting image display deviation, computer program, and computer-readable recording medium

Publications (1)

Publication Number Publication Date
JP2005079881A true JP2005079881A (en) 2005-03-24

Family

ID=34410319

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003307557A Pending JP2005079881A (en) 2003-08-29 2003-08-29 Digital camera apparatus, method for correcting image display deviation, computer program, and computer-readable recording medium

Country Status (1)

Country Link
JP (1) JP2005079881A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007295096A (en) * 2006-04-21 2007-11-08 Olympus Imaging Corp Device and method for generating synchronization signal, and digital camera
JP2012004770A (en) * 2010-06-16 2012-01-05 Seiko Epson Corp Imaging apparatus and timing control circuit

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007295096A (en) * 2006-04-21 2007-11-08 Olympus Imaging Corp Device and method for generating synchronization signal, and digital camera
JP2012004770A (en) * 2010-06-16 2012-01-05 Seiko Epson Corp Imaging apparatus and timing control circuit
US8786724B2 (en) 2010-06-16 2014-07-22 Seiko Epson Corporation Image-capturing device for controlling a timing for generating of image-capture data and timing control circuit for controlling a timing for generating of image-capture
US9571737B2 (en) 2010-06-16 2017-02-14 Seiko Epson Corporation Image-capturing device for generating image-capture data and timing control circuit for generating image-capture data
US9813650B2 (en) 2010-06-16 2017-11-07 Seiko Epson Corporation Image-capturing device for generating image-capture data and control device for controlling area image sensor
US10412332B2 (en) 2010-06-16 2019-09-10 Seiko Epson Corporation Image-capturing device for generating image-capture data

Similar Documents

Publication Publication Date Title
US10104296B2 (en) Image-displaying device and display control circuit
TWI513321B (en) An image processing apparatus, an information processing apparatus, an information processing system, and a frame data output synchronization method
US20080165268A1 (en) Image display controlling device
JP2009159067A (en) Imaging display method and imaging display device
JP6524606B2 (en) Display control device and display device
JP6006083B2 (en) Imaging apparatus and imaging method
JP2010026394A (en) Display controller
JP2005079881A (en) Digital camera apparatus, method for correcting image display deviation, computer program, and computer-readable recording medium
JP5676924B2 (en) Projection apparatus and projection method
JP2009004947A (en) Imaging device and image processing and displaying apparatus
US11356603B2 (en) Image capturing apparatus and control method therefor
JP4984630B2 (en) Video signal converter
JP2006262035A (en) Imaging apparatus
JP2015106769A (en) Control device for imaging device
JPH1165542A (en) Image signal processor
JP2007281741A (en) Image processing using pipeline processing
US11496652B2 (en) Electronic apparatus, method for controlling same, and computer readable medium
US12002430B2 (en) Display device and display control method
JP4291618B2 (en) Synchronization control method and image display apparatus
US20220108418A1 (en) Resynchronization of a display system and gpu after panel self refresh
KR100875839B1 (en) Image output device and method capable of preventing image tearing
JP2004228821A (en) Imaging system and its signal processing method
JP4292393B2 (en) Image processing apparatus, microcomputer and electronic apparatus
JP2021101503A (en) Image processing device
JP4354291B2 (en) Electronic imaging apparatus and moving image data recording method of electronic imaging apparatus