JP7608884B2 - Signal processing device, image reading device, information processing device, and program - Google Patents

Signal processing device, image reading device, information processing device, and program Download PDF

Info

Publication number
JP7608884B2
JP7608884B2 JP2021039174A JP2021039174A JP7608884B2 JP 7608884 B2 JP7608884 B2 JP 7608884B2 JP 2021039174 A JP2021039174 A JP 2021039174A JP 2021039174 A JP2021039174 A JP 2021039174A JP 7608884 B2 JP7608884 B2 JP 7608884B2
Authority
JP
Japan
Prior art keywords
color
image information
line head
signal
circuit
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.)
Active
Application number
JP2021039174A
Other languages
Japanese (ja)
Other versions
JP2022138981A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2021039174A priority Critical patent/JP7608884B2/en
Publication of JP2022138981A publication Critical patent/JP2022138981A/en
Application granted granted Critical
Publication of JP7608884B2 publication Critical patent/JP7608884B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Facsimile Heads (AREA)

Description

本発明は、信号処理装置、画像読取装置、情報処理装置、及びプログラムに関する。 The present invention relates to a signal processing device, an image reading device, an information processing device, and a program.

特許文献1には、入出力手段が代替同期信号を後段回路に出力しない場合に比べ、後段回路に対して、画像情報に対応する色を、予め定められた色順に認識させることができる信号処理装置、画像読取装置、情報処理装置、及びプログラムが記載されている。AFEは、予め定められた複数色の色毎に生成された画像を示す画像情報を、複数色が循環する色順に第1同期信号と共に出力する。入出力回路は、AFEにより出力された第1同期信号が入力されたことに同期して、入力された第1同期信号に対応する画像情報を取得し、取得した画像情報を、第1同期信号の入力に応じて生成した第2同期信号と共に取得順に後段回路に出力する。そして、第1同期信号が入力されない場合に、第2同期信号に代替する代替同期信号を後段回路に出力する。 Patent document 1 describes a signal processing device, an image reading device, an information processing device, and a program that can cause the downstream circuit to recognize colors corresponding to image information in a predetermined color order, compared to when the input/output means does not output an alternative synchronization signal to the downstream circuit. The AFE outputs image information indicating an image generated for each of a predetermined number of colors together with a first synchronization signal in a color order in which the multiple colors circulate. The input/output circuit acquires image information corresponding to the input first synchronization signal in synchronization with the input of the first synchronization signal output by the AFE, and outputs the acquired image information to the downstream circuit in the acquisition order together with a second synchronization signal generated in response to the input of the first synchronization signal. Then, when the first synchronization signal is not input, an alternative synchronization signal that replaces the second synchronization signal is output to the downstream circuit.

特開2015-192174号公報JP 2015-192174 A

ところで、線順次で画像を転送するスキャナとスキャン回路とで色状態の同期をとる場合、スキャン回路において異常が生じたときに、色状態の同期が乱れて、正常状態に復帰できない事態が生じ得る。 However, when synchronizing the color state between a scanner that transfers images line-sequentially and a scanning circuit, if an abnormality occurs in the scanning circuit, the color state becomes out of synchronization, and it may not be possible to return to a normal state.

本発明は、スキャン回路において異常が生じ、色状態の同期が乱れた場合でも、正常状態に復帰し得る技術を提供することを目的とする。 The present invention aims to provide a technology that can restore a normal state even if an abnormality occurs in the scanning circuit and the color state becomes unsynchronized.

請求項1に記載の発明は、複数の色毎に生成され、前記複数の色が予め定められた順序で、かつ循環して出力された信号を入力して処理するプロセッサを備え、前記プロセッサは、プログラムを実行することで、前記複数の色のうちの各色の先頭のタイミングを検知して同期信号を出力し、前記信号を入力し、前記同期信号に応じて前記複数の色のうち取り込むべき色を順次更新し、更新された色と、前記同期信号を出力したタイミングで出力された色と、が一致しない場合に前記同期信号の出力を中断して前記更新を中断する、信号処理装置である。 The invention described in claim 1 is a signal processing device that includes a processor that inputs and processes signals generated for each of a plurality of colors and outputting the plurality of colors in a predetermined order and in a circular manner, and the processor executes a program to detect the timing of the start of each color among the plurality of colors and output a synchronization signal, inputs the signal, sequentially updates the color to be captured among the plurality of colors in accordance with the synchronization signal, and interrupts the output of the synchronization signal to interrupt the update if the updated color does not match the color output at the timing when the synchronization signal was output.

請求項2に記載の発明は、前記プロセッサは、更新された色の信号を取り込んで記憶部に格納し、前記同期信号の出力を再開した場合に、取り込んだ信号を前記記憶部に格納するアドレスを、前記同期信号の出力を中断したタイミングのアドレスに制御する、請求項1に記載の信号処理装置である。 The invention described in claim 2 is the signal processing device described in claim 1, in which the processor captures the updated color signal and stores it in the memory unit, and when the output of the synchronization signal is resumed, controls the address at which the captured signal is stored in the memory unit to the address at the timing when the output of the synchronization signal was interrupted.

請求項3に記載の発明は、前記複数の色が第1の色、第2の色、及び第3の色から構成され、前記第1の色、前記第2の色、及び前記第3の色の順序で交互に、かつ循環して出力され、前記プロセッサは、前記第1の色の先頭のタイミングを検知した場合に、更新された色が前記第2の色あるいは前記第3の色であるときに、前記同期信号の出力を中断する、請求項1,2のいずれかに記載の信号処理装置である。 The invention described in claim 3 is a signal processing device according to either claim 1 or claim 2, in which the multiple colors are composed of a first color, a second color, and a third color, and are output alternately and cyclically in the order of the first color, the second color, and the third color, and when the processor detects the timing of the beginning of the first color, it interrupts the output of the synchronization signal if the updated color is the second color or the third color.

請求項4に記載の発明は、前記プロセッサは、前記第1の色の先頭のタイミングを検知したタイミングが、ページの先頭でないときに前記同期信号の出力を中断する、請求項3に記載の信号処理装置である。 The invention described in claim 4 is the signal processing device described in claim 3, in which the processor interrupts output of the synchronization signal when the timing at which the beginning of the first color is detected is not the beginning of a page.

請求項5に記載の発明は、記録媒体における画像を含む画像領域に対して複数の色毎の光を前記複数の色が循環する色順に照射した際の反射された光を受光し、受光して得られた信号を出力する生成手段と、前記生成手段により生成された信号を処理の対象とした請求項1~4のいずれかに記載の信号処理装置と、を含む画像読取装置である。 The invention described in claim 5 is an image reading device that includes a generating means that receives reflected light when a light of each of a plurality of colors is irradiated to an image area including an image on a recording medium in a cyclical color order, and outputs a signal obtained by receiving the light, and a signal processing device described in any one of claims 1 to 4 that processes the signal generated by the generating means.

請求項6に記載の発明は、請求項5に記載の画像読取装置と、前記画像読取装置に含まれる前記信号処理装置により処理された信号に基づいて画像を形成する画像形成装置と、を含む情報処理装置である。 The invention described in claim 6 is an information processing device including the image reading device described in claim 5 and an image forming device that forms an image based on a signal processed by the signal processing device included in the image reading device.

請求項7に記載の発明は、コンピュータを、複数の色毎に生成され、前記複数の色が予め定められた順序で、かつ循環して出力された信号を入力し、前記複数の色のうちの各色の先頭のタイミングを検知して同期信号を出力する検知手段と、前記信号を入力し、前記検知手段からの前記同期信号に応じて前記複数の色のうち取り込むべき色を順次更新する更新手段として機能させ、かつ、前記更新手段で更新された色と、前記同期信号を出力したタイミングで出力された色と、が一致しない場合に前記同期信号の出力を中断させる、プログラムである。
The invention described in claim 7 is a program that causes a computer to function as detection means that inputs a signal generated for each of a plurality of colors, in which the plurality of colors are output in a predetermined order and in a circular manner, detects the timing of the start of each of the plurality of colors, and outputs a synchronization signal, and update means that inputs the signal and sequentially updates the color to be captured among the plurality of colors in accordance with the synchronization signal from the detection means, and interrupts the output of the synchronization signal if the color updated by the update means does not match the color output at the timing when the synchronization signal is output.

請求項1、3-7に記載の発明によれば、スキャン回路において異常が生じ、色状態の同期が乱れた場合でも、正常状態に復帰し得る。 According to the invention described in claims 1, 3-7, even if an abnormality occurs in the scanning circuit and the color state becomes out of sync, the device can be restored to a normal state.

請求項2に記載の発明によれば、さらに、異常が生じた画像情報を、正しい画像情報で上書きして記憶部に格納し得る。 According to the invention described in claim 2, image information in which an abnormality has occurred can be overwritten with correct image information and stored in the memory unit.

実施形態の情報処理装置の全体構成図である。1 is an overall configuration diagram of an information processing apparatus according to an embodiment; 実施形態の情報処理装置の機能ブロック図である。FIG. 1 is a functional block diagram of an information processing apparatus according to an embodiment. 実施形態の画像読取部の前提となる基本構成図(その1)である。FIG. 1 is a basic configuration diagram (part 1) that is the premise of an image reading unit according to an embodiment. 実施形態の画像読取部の前提となる基本構成図(その2)である。FIG. 2 is a second diagram showing the basic configuration of the image reading unit according to the embodiment; 実施形態の基本構成におけるタイミングチャートである。4 is a timing chart in the basic configuration of the embodiment. 実施形態の画像読取部の構成図(その1)である。FIG. 2 is a configuration diagram (part 1) of an image reading unit according to an embodiment. 実施形態の画像読取部の構成図(その2)である。FIG. 2 is a configuration diagram (part 2) of the image reading unit according to the embodiment. 実施形態の構成におけるタイミングチャートである。4 is a timing chart in the configuration of the embodiment. 実施形態の処理フローチャート(その1)である。1 is a process flowchart (part 1) of an embodiment. 実施形態の処理フローチャート(その2)である。13 is a second processing flowchart of the embodiment. 実施形態の処理フローチャート(その3)である。11 is a processing flowchart (part 3) of the embodiment.

以下、図面に基づき本発明の実施形態について説明する。 The following describes an embodiment of the present invention with reference to the drawings.

まず、本実施形態に係る情報処理装置の全体構成について説明する。 First, we will explain the overall configuration of the information processing device according to this embodiment.

図1に、情報処理装置100の外観斜視図を示す。情報処理装置100は、特開2015-192174号公報に記載された情報処理装置と同様に、画像読取部102、画像形成部104、用紙収容部106、及びUI(ユーザインタフェース)部108を備える。 Figure 1 shows an external perspective view of an information processing device 100. Similar to the information processing device described in JP 2015-192174 A, the information processing device 100 includes an image reading unit 102, an image forming unit 104, a paper storage unit 106, and a UI (user interface) unit 108.

画像読取部102は、原稿台110及び排出台112を備える。原稿台110の上面には一対の案内部材114A,114Bが設けられる。一対の案内部材114A,114Bは、一方が原稿台110に置かれた原稿の幅方向に手動操作で移動し、原稿台110に置かれた原稿が搬送される際に、原稿を搬送方向に案内する。画像読取部102は、原稿台110に置かれた原稿を1枚ずつ取り込み、取り込んだ原稿の画像を線順次方式で読み取り、画像情報を取得する。取得した画像情報をCPUに出力し、その後、原稿を排出台112に排出する。ここで、線順次方式とは、ラインセンサによる1回の読取動作で1ラインを読み取る毎に赤色(R)、緑色(G)、及び青色(B)の光源を切り替えて色分解する方式をいう。
用紙収容部106には、記録媒体の一例である用紙がサイズ別に収容されており、画像形成部104は、用紙収容部106から用紙を取り出し、取り出した用紙に対して、画像を形成する。画像形成部104は、画像が形成された用紙を排出台116に排出する。画像形成方式は、電子写真方式やインクジェット方式等である。
The image reading unit 102 includes a document table 110 and a discharge table 112. A pair of guide members 114A and 114B are provided on the upper surface of the document table 110. One of the pair of guide members 114A and 114B is manually moved in the width direction of the document placed on the document table 110, and guides the document in the transport direction when the document placed on the document table 110 is transported. The image reading unit 102 takes in the documents placed on the document table 110 one by one, reads the image of the taken document in a line-sequential manner, and acquires image information. The acquired image information is output to a CPU, and then the document is discharged to the discharge table 112. Here, the line-sequential manner refers to a method of color separation by switching between red (R), green (G), and blue (B) light sources every time one line is read in one reading operation by a line sensor.
The paper storage unit 106 stores paper, which is an example of a recording medium, by size, and the image forming unit 104 takes out paper from the paper storage unit 106 and forms an image on the taken-out paper. The image forming unit 104 discharges the paper on which the image has been formed to a discharge tray 116. The image forming method is an electrophotographic method, an inkjet method, or the like.

UI部108は、画像を表示するタッチパネル・ディスプレイ108A及びスイッチ108Bを備える。タッチパネル・ディスプレイ108A及びスイッチ108Bは、情報処理装置100のユーザからの各種指示を受け付ける。各種指示の一例としては、画像読取部102に対して画像の読み取りを開始させる指示(スキャン開始指示)、及び画像形成部104に対して画像の形成を開始させる指示等である。タッチパネル・ディスプレイ108Aは、受け付けた指示に応じて実行された処理の結果や警報等の各種情報を表示する。 The UI unit 108 includes a touch panel display 108A for displaying images and a switch 108B. The touch panel display 108A and the switch 108B accept various instructions from a user of the information processing device 100. Examples of various instructions include an instruction to the image reading unit 102 to start reading an image (scan start instruction), and an instruction to the image forming unit 104 to start forming an image. The touch panel display 108A displays various information such as the results of processing executed in response to the accepted instructions and warnings.

画像読取部102は、筐体及び原稿搬送装置を含み、原稿搬送装置は、原稿台及び排出台を備える。筐体は、画像読取部本体を収容し、筐体の上面には長方形状の開口が形成される。開口は、原稿が載せられるプラテンガラスによって遮蔽される。 The image reading unit 102 includes a housing and a document transport device, and the document transport device has a document tray and a discharge tray. The housing houses the image reading unit main body, and a rectangular opening is formed on the top surface of the housing. The opening is covered by a platen glass on which the document is placed.

画像読取部本体は、CIS(密着型イメージセンサ:Contact Image Sensor)、画像処理回路、及びモータを含む。CIS及び画像処理回路は、キャリッジに搭載されており、キャリッジは、モータの駆動力を受けて開口の長手方向である副走査方向に移動する。 The image reading unit main body includes a CIS (contact image sensor), an image processing circuit, and a motor. The CIS and image processing circuit are mounted on a carriage, and the carriage receives the driving force of the motor and moves in the sub-scanning direction, which is the longitudinal direction of the opening.

CISは、第1LED(Light Emitting Diode)、第2LED、及び第3LEDを備える。第1LEDは、赤色(R)の発光波長を有するLEDであり、第2LEDは、緑色(G)の発光波長を有するLEDであり、第3LEDは、青色(B)の発光波長を有するLEDである。第1LED、第2LED、及び第3LEDは、RGBの各色の光が予め定められた順で発せられるように順次駆動される。 The CIS includes a first LED (Light Emitting Diode), a second LED, and a third LED. The first LED is an LED having an emission wavelength of red (R), the second LED is an LED having an emission wavelength of green (G), and the third LED is an LED having an emission wavelength of blue (B). The first LED, second LED, and third LED are driven sequentially so that the light of each color of RGB is emitted in a predetermined order.

ここで、予め定められた順とは、RGBが循環する予め定められた色順(以下では、説明の便宜上、「循環色順」と称する)をいう。 Here, the predetermined order refers to a predetermined color order in which RGB is circulated (hereinafter, for ease of explanation, this will be referred to as the "circulating color order").

CISは、導光体、集光部、光電変換素子を備える。 The CIS includes a light guide, a light collecting section, and a photoelectric conversion element.

導光体は、主走査方向に沿って長尺状に形成される。導光体の一端には、第1~第3LEDが取り付けられており、第1~第3LEDによって照射された光をプラテンガラスを介して原稿へ導く。 The light guide is formed in an elongated shape along the main scanning direction. The first to third LEDs are attached to one end of the light guide, and the light emitted by the first to third LEDs is guided to the document via the platen glass.

集光部は、正立等倍結像型レンズ素子が主走査方向に沿って複数個配置されたレンズユニットであり、第1~第3LEDにより原稿に対して光を照射した際に原稿で反射された光を集光する。 The focusing section is a lens unit in which multiple erect life-size imaging lens elements are arranged along the main scanning direction, and focuses the light reflected by the document when the first to third LEDs irradiate the document with light.

光電変換素子は、主走査方向に沿って複数個配置されており、集光部で集光された光を受光して光電変換を行うことで、画像情報を生成して出力する。画像情報は、Rの画像を示す画像情報、Gの画像を示す画像情報、及びBの画像を示す画像情報である。 The photoelectric conversion elements are arranged in a number of pieces along the main scanning direction, and receive the light focused by the focusing section and perform photoelectric conversion to generate and output image information. The image information includes image information showing an R image, image information showing a G image, and image information showing a B image.

CISからの画像情報は、AFE(アナログフロントエンド:Analog Flont End)に供給される。 AFEは、光電変換素子から入力された画像情報を、アンプ、A/Dコンバータ、及びフィルタ等(図示省略)を用いて調整し、調整した画像情報を出力する。 Image information from the CIS is supplied to an AFE (Analog Front End). The AFE adjusts the image information input from the photoelectric conversion element using an amplifier, A/D converter, filter, etc. (not shown), and outputs the adjusted image information.

図2に、情報処理装置100の機能ブロック図を示す。情報処理装置100は、コントローラ160を備える。コントローラ160は、CPU(Central Processing Unit)162、一次記憶部164、及び二次記憶部166を備える。一次記憶部164は、各種プログラムの実行時のワークエリア等として用いられる揮発性のメモリ(例えば、RAM(Random Access Memory))である。二次記憶部166は、情報処理装置100の作動を制御する制御プログラムや各種パラメータ等を予め記憶する不揮発性のメモリ(例えば、フラッシュメモリやHDD(Hard Disk Drive)など)である。CPU162、一次記憶部164、及び二次記憶部166は、バス168を介して相互に接続されている。 FIG. 2 shows a functional block diagram of the information processing device 100. The information processing device 100 includes a controller 160. The controller 160 includes a CPU (Central Processing Unit) 162, a primary storage unit 164, and a secondary storage unit 166. The primary storage unit 164 is a volatile memory (e.g., RAM (Random Access Memory)) used as a work area during execution of various programs. The secondary storage unit 166 is a non-volatile memory (e.g., flash memory or HDD (Hard Disk Drive)) that stores in advance control programs that control the operation of the information processing device 100, various parameters, and the like. The CPU 162, the primary storage unit 164, and the secondary storage unit 166 are connected to each other via a bus 168.

情報処理装置100は、CPU162と各種の入出力デバイスとを電気的に接続してCPU162と各種の入出力デバイスとの間の各種情報の送受信を行うインプットアウトプットインタフェース(I/O)170を備える。情報処理装置100は、I/O170に接続されることで、バス168を介してCPU162と電気的に接続される入出力デバイスとして、画像読取部102、画像形成部104、及びUI部108を備える。また、情報処理装置100は、入出力デバイスとして、外部インタフェース(I/F)172及び通信I/F174を備える。 The information processing device 100 includes an input/output interface (I/O) 170 that electrically connects the CPU 162 to various input/output devices and transmits/receives various information between the CPU 162 and the various input/output devices. The information processing device 100 includes an image reading unit 102, an image forming unit 104, and a UI unit 108 as input/output devices that are electrically connected to the CPU 162 via a bus 168 by being connected to the I/O 170. The information processing device 100 also includes an external interface (I/F) 172 and a communication I/F 174 as input/output devices.

外部I/F172は、外部装置(例えば、USBメモリ)に接続され、外部装置とCPU162との間の各種情報の送受信を行う。通信I/F174は、例えば、LAN(Local Area Network)やインターネット等の通信手段に接続されており、通信手段に接続された外部装置176との間の各種情報の送受信を行う。 The external I/F 172 is connected to an external device (e.g., a USB memory) and transmits and receives various information between the external device and the CPU 162. The communication I/F 174 is connected to a communication means such as a LAN (Local Area Network) or the Internet and transmits and receives various information to and from an external device 176 connected to the communication means.

CPU162は、バス168及びI/O170を介して上記の入出力デバイスと各種情報の送受信を行うことで、入出力デバイスの動作状態の把握、及び入出力デバイスの制御等を行う。 The CPU 162 transmits and receives various information to and from the above-mentioned input/output devices via the bus 168 and the I/O 170, thereby grasping the operating status of the input/output devices and controlling the input/output devices.

ここで、再び画像読取部本体の説明に戻る。 Now, let's return to the explanation of the image reading unit itself.

CISは、LED駆動回路を備える。LED駆動回路は、第1~第3LEDの各々に接続される。AFEは、LED駆動回路に接続されており、信号線を介してI/O170に接続される。 The CIS includes an LED drive circuit. The LED drive circuit is connected to each of the first to third LEDs. The AFE is connected to the LED drive circuit and is connected to the I/O 170 via a signal line.

AFEは、UI部108で受け付けられたスキャン開始指示に応じてCPU162からI/O170及び信号線を介して入力された点灯開始信号に従ってLED駆動回路の駆動を制御する。LED駆動回路は、AFEの制御下で、第1~第3LEDを、第1LED、第2LED、及び第3LEDの順に繰り返し発光させる。すなわち、AFEは、点灯開始信号が入力された場合、第1LEDを最初に発光させ、以後、循環色順に従ってLEDを発光させるようLED駆動回路を制御する。 The AFE controls the driving of the LED drive circuit according to a lighting start signal input from the CPU 162 via the I/O 170 and a signal line in response to a scan start instruction received by the UI unit 108. The LED drive circuit, under the control of the AFE, repeatedly causes the first to third LEDs to emit light in the order of the first LED, the second LED, and the third LED. In other words, when a lighting start signal is input, the AFE controls the LED drive circuit to cause the first LED to emit light first, and thereafter to emit light in a cyclic color order.

画像処理回路は、AFEから入力された画像情報を特定色(ここでは、R)から循環色順に処理する機能として、AFEから入力された画像情報に対してシェーディング補正、及び画素の配置変換処理等の画像処理を行う機能を有する。 The image processing circuit has a function of processing the image information input from the AFE in a cyclic color order starting from a specific color (here, R), and performs image processing such as shading correction and pixel layout conversion processing on the image information input from the AFE.

図3に、CIS、AFE、及び画像処理回路の一部の構成を示す。本実施形態の前提となる基本構成図である。画像読取部本体は、CIS121、AFE122、及び画像処理回路を備えるが、CIS121及びAFE122をスキャナ、画像処理回路をスキャン回路と機能分離し得る。 Figure 3 shows the configuration of the CIS, AFE, and part of the image processing circuit. This is a basic configuration diagram that is the premise of this embodiment. The image reading unit main body includes a CIS 121, an AFE 122, and an image processing circuit, but the CIS 121 and AFE 122 can be functionally separated as a scanner, and the image processing circuit can be functionally separated as a scan circuit.

図3に示す画像処理回路は、画像情報をDDR128に格納するための主要な構成として、入出力回路123、ANF(Anti NoiseFunction)回路124、R,G,Bライン先頭検知回路125、画素取り込みFIFOメモリ126、及びDMA(Direct Memory Access)127を備える。画像処理回路の少なくとも一部は、CPU等のプロセッサで構成され得る。例えば、入出力回路123、ANF回路124、R,G,Bライン先頭検知回路125を1又は複数のCPUで構成され得る。ANF回路124とR,G,Bライン先頭検知回路125は、互いに異なるメーカにより製造され得、この場合にはANF回路124とR,G,Bライン先頭検知回路125は互いに別個のプロセッサで構成され得る。1又は複数のCPUは、プログラムメモリに記憶された制御プログラムを読み出して実行することで、各部の処理を実現する。勿論、スキャン回路の各部をハードウェアで実現してもよい。 The image processing circuit shown in FIG. 3 includes an input/output circuit 123, an ANF (Anti Noise Function) circuit 124, an R, G, B line head detection circuit 125, a pixel capture FIFO memory 126, and a DMA (Direct Memory Access) 127 as main components for storing image information in the DDR 128. At least a part of the image processing circuit may be configured with a processor such as a CPU. For example, the input/output circuit 123, the ANF circuit 124, and the R, G, B line head detection circuit 125 may be configured with one or more CPUs. The ANF circuit 124 and the R, G, B line head detection circuit 125 may be manufactured by different manufacturers, in which case the ANF circuit 124 and the R, G, B line head detection circuit 125 may be configured with separate processors. The one or more CPUs realize the processing of each part by reading and executing the control program stored in the program memory. Of course, each part of the scan circuit may be realized by hardware.

CIS121及びAFE122を備えるスキャナは、上記のように、線順次でR,G,Bの順序で画像情報を出力する。すなわち、
R画像情報→G画像情報→B画像情報→R画像情報→G画像情報→B画像情報→・・・
の順序で画像情報を出力する。Rを第1の色、Gを第2の色、Bを第3の色と適宜称する。
The scanner including the CIS 121 and the AFE 122 outputs image information in line sequence in the order of R, G, B as described above.
R image information → G image information → B image information → R image information → G image information → B image information → ...
The image information is output in the order of R, G, and B. R, G, and B are appropriately referred to as the first color, the second color, and the third color, respectively.

入出力回路123は、シリアルパラレル変換機能を有し、シリアル画像情報をパラレル画像情報に変換して出力する。 The input/output circuit 123 has a serial-to-parallel conversion function and converts serial image information into parallel image information and outputs it.

ANF回路124は、R画像情報、G画像情報、B画像情報のそれぞれのライン先頭を検知し、検知したことを示すライン先頭信号を生成してR,G,Bライン先頭検知回路に出力する。 The ANF circuit 124 detects the beginning of each line of the R image information, G image information, and B image information, generates a line beginning signal indicating the detection, and outputs it to the R, G, and B line beginning detection circuits.

R,G,Bライン先頭検知回路125は、画素取り込みFIFOメモリ126に取り込む画像情報の色状態を管理する回路であり、ライン先頭信号を検知するたびに、R,G,Bの色状態を順次更新して、画素取り込みFIFOメモリ126に取り込み開始制御信号を出力する。R,G,Bライン先頭検知回路125は、スキャナから入力した画像情報から、現在転送中の画像情報がR画像情報、G画像情報、B画像情報のいずれかであるかを判断せず、単に、ライン先頭を検知するたびに、
R→G→B→R→G→B→・・・
の順序で色状態を変化させる。言い換えれば、
第1の色→第2の色→第3の色→第1の色→第2の色→第3の色→・・・
の順序で色状態を変換させる。
The R, G, B line head detection circuit 125 is a circuit that manages the color state of the image information to be captured into the pixel capture FIFO memory 126, and each time it detects a line head signal, it updates the R, G, B color states in sequence and outputs a capture start control signal to the pixel capture FIFO memory 126. The R, G, B line head detection circuit 125 does not determine whether the image information currently being transferred is R image information, G image information, or B image information from the image information input from the scanner, but simply detects the line head each time
R→G→B→R→G→B→・・・
In other words, the color state is changed in the following order:
First color → Second color → Third color → First color → Second color → Third color → ...
The color state is converted in the following order.

より詳細には、R,G,Bライン先頭検知回路125は、ANF回路124からR画像情報のライン先頭信号を受信すると、このライン先頭信号に応答して、R画像情報を取り込むように画素取り込みFIFOメモリ126を制御する。このとき、R,G,Bライン先頭検知回路125で管理する現在の色状態は、「R色」、あるいはその前の色であるB色の処理が既に終了したことを示す「B色の終了」である。ここで、「R色」は、前の色であるB色を更新した結果としての色状態を意味する。そして、R,G,Bライン先頭検知回路125は、ライン先頭から指定数分の画素数を画素取り込みFIFOメモリ126に取り込むと、R画像情報の取り込みを終了する。このとき、色状態は、「R色の終了」となる。 More specifically, when the R, G, B line head detection circuit 125 receives a line head signal of R image information from the ANF circuit 124, it controls the pixel capture FIFO memory 126 to capture R image information in response to this line head signal. At this time, the current color state managed by the R, G, B line head detection circuit 125 is "R color" or "end of B color", which indicates that processing of the previous color, B color, has already ended. Here, "R color" means the color state resulting from updating the previous color, B color. Then, when the R, G, B line head detection circuit 125 captures a specified number of pixels from the line head into the pixel capture FIFO memory 126, it ends the capture of R image information. At this time, the color state becomes "end of R color".

次に、R,G,Bライン先頭検知回路125は、ANF回路124からG画像情報のライン先頭信号を受信すると、このライン先頭信号に応答して、G画像情報を取り込むように画素取り込みFIFOメモリ126を制御する。このとき、色状態は、更新した結果としての「G色」、あるいはその前の色であるR色の処理が既に終了したことを示す「R色の終了」である。そして、R,G,Bライン先頭検知回路125は、ライン先頭から指定数分の画素数を画素取り込みFIFOメモリ126に取り込むと、G画像情報の取り込みを終了する。 Next, when the R, G, B line head detection circuit 125 receives a line head signal of G image information from the ANF circuit 124, it controls the pixel capture FIFO memory 126 to capture G image information in response to this line head signal. At this time, the color state is either "G color" as a result of the update, or "End of R color" indicating that processing of the previous color, R color, has already ended. Then, when the R, G, B line head detection circuit 125 captures a specified number of pixels from the line head into the pixel capture FIFO memory 126, it ends the capture of G image information.

次に、R,G,Bライン先頭検知回路125は、ANF回路124からB画像情報のライン先頭信号を受信すると、このライン先頭信号に応答して、B画像情報を取り込むように画素取り込みFIFOメモリ126を制御する。このとき、色状態は、更新した結果としての「B色」、あるいはその前の色であるG色の処理が既に終了したことを示す「G色の終了」である。そして、R,G,Bライン先頭検知回路125は、ライン先頭から指定数分の画素数を画素取り込みFIFOメモリ126に取り込むと、B画像情報の取り込みを終了する。 Next, when the R, G, B line head detection circuit 125 receives a line head signal of the B image information from the ANF circuit 124, it controls the pixel capture FIFO memory 126 to capture the B image information in response to this line head signal. At this time, the color state is either "B color" as a result of the update, or "end of G color" indicating that processing of the previous color, G color, has already ended. Then, when the R, G, B line head detection circuit 125 captures a specified number of pixels from the line head into the pixel capture FIFO memory 126, it ends the capture of the B image information.

次に、R,G,Bライン先頭検知回路125は、ANF回路124から再びR画像情報のライン先頭信号を受信すると、このライン先頭信号に応答して、R画像情報を取り込むように画素取り込みFIFOメモリ126を制御する。このとき、色状態は、更新した結果としての「R色」、あるいはその前の色であるB色の処理が既に終了したことを示す「B色の終了」である。そして、R,G,Bライン先頭検知回路125は、ライン先頭から指定数分の画素数を画素取り込みFIFOメモリ126に取り込むと、R画像情報の取り込みを終了する。 Next, when the R, G, B line head detection circuit 125 receives the line head signal of the R image information again from the ANF circuit 124, it controls the pixel capture FIFO memory 126 in response to this line head signal to capture the R image information. At this time, the color state is either "R color" as a result of the update, or "End of B color" indicating that processing of the previous color, B color, has already ended. Then, when the R, G, B line head detection circuit 125 captures a specified number of pixels from the line head into the pixel capture FIFO memory 126, it ends the capture of the R image information.

画素取り込みFIFOメモリ126は、R,G,Bライン先頭検知回路125からの制御信号に応じてR画像情報、G画像情報、B画像情報を順次取り込む。 The pixel capture FIFO memory 126 sequentially captures R image information, G image information, and B image information in response to a control signal from the R, G, and B line head detection circuit 125.

DMA127は、画素取り込みFIFOメモリ126に取り込まれた画像情報を読み出してDDR(Double-Data-Rate Synchronous Dynamic Random Access Memory)128に直接転送する。 The DMA 127 reads the image information captured in the pixel capture FIFO memory 126 and transfers it directly to the DDR (Double-Data-Rate Synchronous Dynamic Random Access Memory) 128.

このように、ANF回路124は、スキャナからの画像情報に同期してライン先頭信号を生成してR,G,Bライン先頭検知回路125に出力し各色の画像情報の取り込みを制御することで、仮に、ノイズが混入することでスキャナから転送されてくる画像情報が乱れても、色状態を同期させ得る。 In this way, the ANF circuit 124 generates a line head signal in synchronization with the image information from the scanner, outputs it to the R, G, and B line head detection circuit 125, and controls the capture of image information for each color, so that even if noise is mixed in and disrupts the image information transferred from the scanner, the color state can be synchronized.

しかし、図4に示すように、何らかの異常、例えばR,G,Bライン先頭検知回路125に何らかの不具合が生じ、ANF回路124とR,G,Bライン先頭検知回路125の色状態に差異が生じた場合(図4において、両者の色状態の不一致をX印で示す)、スキャナから転送されてくるスキャン画像の色状態とANF回路124の色状態とは同期したままであるものの、ANF回路124の色状態とR,G,Bライン先頭検知回路125の色状態が同期していないため、結局、スキャナから転送されてくるスキャン画像の画像情報を正しいR,G,Bの色順で画素取り込みFIFOメモリ126、ひいてはDDR128に取り込めなくなる事態が生じ得る。その理由は、上記のように、R,G,Bライン先頭検知回路125は、スキャナから入力した画像情報から、現在転送中の画像情報がR画像情報、G画像情報、B画像情報のいずれかであるかを判断せず、単に、ライン先頭を検知するたびに、
R→G→B→R→G→B→・・・
の順序で色状態を順次変化させるからである。
However, as shown in Fig. 4, if some abnormality, for example some problem occurs in the R, G, B line head detection circuit 125, causing a difference in color state between the ANF circuit 124 and the R, G, B line head detection circuit 125 (in Fig. 4, the mismatch in color state between the two is indicated by an X), the color state of the scanned image transferred from the scanner and the color state of the ANF circuit 124 remain synchronized, but the color state of the ANF circuit 124 and the color state of the R, G, B line head detection circuit 125 are not synchronized, so that a situation may arise in which the image information of the scanned image transferred from the scanner cannot be captured in the pixel capture FIFO memory 126 and further the DDR 128 in the correct R, G, B color order. The reason for this is that, as described above, the R, G, B line head detection circuit 125 does not determine whether the image information currently being transferred is R image information, G image information, or B image information from the image information input from the scanner, but simply detects the head of a line every time it detects the head of a line.
R→G→B→R→G→B→・・・
This is because the color state is changed sequentially in the order of

図5に、スキャナとANF回路124とR,G,Bライン先頭検知回路125のタイミングチャートを示す。 Figure 5 shows a timing chart of the scanner, ANF circuit 124, and R, G, B line head detection circuit 125.

図5(a)は、スキャナから転送されてくる画像情報のタイミングチャートである。R画像情報、G画像情報、B画像情報がこの順序で転送されてくる。 Figure 5 (a) is a timing chart of image information transferred from the scanner. R image information, G image information, and B image information are transferred in that order.

図5(b)は、ANF回路124でのR画像情報、G画像情報、B画像情報のライン先頭検知のタイミングチャートである。ANF回路124は、入出力回路123からの画像情報のうち、R画像情報、G画像情報、B画像情報のライン先頭を検出すると、パルス信号としてのライン先頭信号を生成してR,G,Bライン先頭検知回路125に出力する。 Figure 5 (b) is a timing chart of the line head detection of R image information, G image information, and B image information in the ANF circuit 124. When the ANF circuit 124 detects the line head of R image information, G image information, and B image information from the image information from the input/output circuit 123, it generates a line head signal as a pulse signal and outputs it to the R, G, B line head detection circuit 125.

図5(c)は、R,G、Bライン先頭検知回路125のタイミングチャートである。R,G,Bライン先頭検知回路125は、ANF回路124からのライン先頭信号を受信すると、これに応じて、画素取り込みFIFOメモリ126の取り込み開始を指示するとともに、取り込む色の状態を順次、
R→G→B→R→G→B→・・・
と変化させて更新する。
5C is a timing chart of the R, G, B line head detection circuit 125. When the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124, it instructs the pixel capture FIFO memory 126 to start capturing, and sequentially changes the state of the colors to be captured.
R→G→B→R→G→B→・・・
and update it.

従って、正常に動作していれば、R,G,Bライン先頭検知回路125は、ANF回路124からR画像情報のライン先頭を検知するライン先頭信号を受信すると、その前の色状態であるB色からR色に色状態を更新して画素取り込みFIFOメモリ126にR画像情報を取り込むように制御する。そして、ライン先頭から指定画素数だけ画像情報を取り込むと、R画像情報の取り込みを終了する。図において、矩形パルス信号の立上がりがR画像情報の取り込み開始タイミングを示し、矩形パルス信号の立下りがR画像情報の取り込み終了タイミングを示す。 Therefore, if the circuit is operating normally, when the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124 that detects the line head of R image information, it updates the color state from the previous color state of B to R and controls the pixel capture FIFO memory 126 to capture R image information. Then, when the specified number of pixels of image information have been captured from the line head, the capture of R image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of the capture of R image information, and the falling edge of the rectangular pulse signal indicates the end timing of the capture of R image information.

次に、R,G,Bライン先頭検知回路125は、ANF回路124からG画像情報のライン先頭を検知するライン先頭信号を受信すると、その前の色状態であるR色からG色に色状態を更新して画素取り込みFIFOメモリ126にG画像情報を取り込むように制御する。そして、ライン先頭から指定画素数だけ画像情報を取り込むと、G画像情報の取り込みを終了する。図において、矩形パルス信号の立上がりがG画像情報の取り込み開始タイミングを示し、矩形パルス信号の立下りがG画像情報の取り込み終了タイミングを示す。 Next, when the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124 to detect the line head of the G image information, it updates the color state from the previous color state of R to G and controls the pixel capture FIFO memory 126 to capture the G image information. Then, when the specified number of pixels of image information have been captured from the line head, the capture of the G image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of the capture of the G image information, and the falling edge of the rectangular pulse signal indicates the end timing of the capture of the G image information.

次に、R,G,Bライン先頭検知回路125は、ANF回路124からB画像情報のライン先頭を検知するライン先頭信号を受信すると、その前の色状態であるG色からB色に色状態を更新して画素取り込みFIFOメモリ126にB画像情報を取り込むように制御する。そして、ライン先頭から指定画素数だけ画像情報を取り込むと、B画像情報の取り込みを終了する。図において、矩形パルス信号の立上がりがB画像情報の取り込み開始タイミングを示し、矩形パルス信号の立下りがB画像情報の取り込み終了タイミングを示す。 Next, when the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124 to detect the line head of the B image information, it updates the color state from the previous color state of G to B and controls the pixel capture FIFO memory 126 to capture the B image information. Then, when the specified number of pixels of image information have been captured from the line head, the capture of the B image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of the capture of the B image information, and the falling edge of the rectangular pulse signal indicates the end timing of the capture of the B image information.

正常に動作していれば、以上の処理を繰り返し実行することで、ANF回路124で検知した色状態と、スキャン回路のR,G,Bライン先頭検知回路で取り込みを制御している色状態とが一致しながら処理が進む。 If the system is operating normally, the above process is repeated, and the process proceeds while the color state detected by the ANF circuit 124 matches the color state controlled by the R, G, and B line head detection circuit of the scan circuit.

他方で、例えばR,G,Bライン先頭検知回路125に不具合が生じ、ANF回路124で検知した色状態と、R,G,Bライン先頭検知回路125で取り込みを制御している色状態とが一致しなくなる場合が生じる。例えば、ANF回路124からR画像情報のライン先頭を検知するライン先頭信号を受信し、R色に色状態を更新して画素取り込みFIFOメモリ126にR画像情報を取り込むように制御するが、何らかの異常が生じてR画像情報の取り込み状態が継続したままであるとする。 On the other hand, for example, a malfunction may occur in the R, G, B line head detection circuit 125, causing the color state detected by the ANF circuit 124 to no longer match the color state controlled by the R, G, B line head detection circuit 125 for capturing. For example, suppose that a line head signal that detects the line head of R image information is received from the ANF circuit 124, the color state is updated to R color, and control is performed to capture the R image information in the pixel capture FIFO memory 126, but some abnormality occurs and the capture state of the R image information continues.

この場合、R,G,Bライン先頭検知回路125は、ANF回路124からG画像情報のライン先頭を検知するライン先頭信号を受信しても、R色からG色に色状態を更新せずにそのまま画素取り込みFIFOメモリ126にR画像情報を取り込むように制御を維持してしまう。 In this case, even if the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124 to detect the line head of the G image information, it maintains control so that the R image information is directly captured in the pixel capture FIFO memory 126 without updating the color state from R to G.

そして、何らかの原因でR,G,Bライン先頭検知回路125が再び動作し、ANF回路124からのライン先頭信号に応答して色状態の更新が再開したとしても、ANF回路124からB画像情報のライン先頭を検知するライン先頭信号を受信すると、現在の色状態であるR色からG色に色状態を更新して画素取り込みFIFOメモリ126にG画像情報を取り込むように制御してしまう(本来であれば、B画像情報を取り込むように制御しなければならない)。 And even if for some reason the R, G, B line head detection circuit 125 operates again and resumes updating the color state in response to a line head signal from the ANF circuit 124, when it receives a line head signal from the ANF circuit 124 that detects the line head of the B image information, it updates the color state from the current color state of R to G and controls the pixel capture FIFO memory 126 to capture G image information (in reality it should be controlled to capture B image information).

さらに、このような色状態の不一致状態がそのまま継続してしまい、正常状態に復帰することができない。ここで、「正常状態に復帰」とは、ANF回路124で検知した色状態と、R,G,Bライン先頭検知回路125での色状態が不一致の状態から一致する状態に移行することをいう。 Furthermore, this mismatched color state continues, making it impossible to return to a normal state. Here, "returning to a normal state" means that the color state detected by the ANF circuit 124 and the color state detected by the R, G, B line head detection circuit 125 move from a mismatched state to a matched state.

R,G,Bライン先頭検知回路125において、現在転送中の画像情報がR画像情報、G画像情報、B画像情報のいずれかであるかを判断するように構成することで、このような不具合を解消し得るが、R,G,Bライン先頭検知回路125が他のメーカから供給されている場合等では、その構成を改変するのは容易ではない。 This problem can be eliminated by configuring the R, G, B line head detection circuit 125 to determine whether the image information currently being transferred is R image information, G image information, or B image information. However, if the R, G, B line head detection circuit 125 is supplied by another manufacturer, it is not easy to change the configuration.

そこで、本実施形態では、ANF回路124は、入出力回路123から受信したR画像情報の信号、G画像情報の信号、B画像情報の信号のライン先頭を検出した場合に、常に、ラインの先頭を示すライン先頭信号を生成してR,G,Bライン先頭検知回路125に出力するのではなく、R,G,Bライン先頭検知回路125での色状態を取得して監視し、入出力回路123から受信したR画像情報の信号、G画像情報の信号、B画像情報の信号のライン先頭に係る色と、R,G,Bライン先頭検知回路125での色状態とが不一致の場合にはライン先頭信号を出力せず、両色が一致する場合のみライン先頭信号を出力する。 Therefore, in this embodiment, when the ANF circuit 124 detects the line head of the R image information signal, G image information signal, or B image information signal received from the input/output circuit 123, it does not always generate a line head signal indicating the line head and output it to the R, G, B line head detection circuit 125, but instead acquires and monitors the color state in the R, G, B line head detection circuit 125, and does not output a line head signal if the color associated with the line head of the R image information signal, G image information signal, or B image information signal received from the input/output circuit 123 does not match the color state in the R, G, B line head detection circuit 125, and outputs a line head signal only when both colors match.

本実施形態におけるANF回路124は、
・R,G,Bライン先頭検知回路の色状態を監視して、転送されてくる画像情報の色状態と比較する機能
・色状態が不一致の場合に、ライン先頭信号の出力を中断(マスキング)する機能
を有するといえる。
The ANF circuit 124 in this embodiment is
- A function to monitor the color status of the R, G, and B line head detection circuits and compare it with the color status of the transferred image information. - A function to interrupt (mask) the output of the line head signal if the color status does not match.

図6に、本実施形態におけるANF回路124とR,G,Bライン先頭検知回路125の構成を示す。図3の構成とほぼ同様であるが、ANF回路124の機能が異なる。図6において、ANF回路124は、制御プログラムを実行するプロセッサにより実現され得る。また、ANF回路124は、検知手段として機能する。R,G,Bライン先頭検知回路125は、制御プログラムを実行する他のプロセッサにより実現され得る。また、R,G,Bライン先頭検知回路125は、色状態を更新する更新手段として機能する。 Figure 6 shows the configuration of the ANF circuit 124 and the R, G, B line head detection circuit 125 in this embodiment. It is almost the same as the configuration in Figure 3, but the function of the ANF circuit 124 is different. In Figure 6, the ANF circuit 124 can be realized by a processor that executes a control program. The ANF circuit 124 also functions as a detection means. The R, G, B line head detection circuit 125 can be realized by another processor that executes a control program. The R, G, B line head detection circuit 125 also functions as an update means that updates the color state.

ANF回路124は、入出力回路123からの画像情報を入力して、R画像情報、G画像情報、及びB画像情報のライン先頭を検出して、同期信号としてのライン先頭信号を出力する。 The ANF circuit 124 inputs image information from the input/output circuit 123, detects the line beginnings of the R image information, G image information, and B image information, and outputs a line beginning signal as a synchronization signal.

また、ANF回路124は、R,G,Bライン先頭検知回路125の色状態を取得する。R,G,Bライン先頭検知回路125は、常にその色状態、すなわち画素取り込みFIFOメモリ126に取り込んでいる画像情報の色状態をANF回路124に出力してもよく、ANF回路124からの送信要求に応じてその色状態をANF回路124に出力してもよい。後者の場合、ANF回路124は、例えばR画像情報、G画像情報、B画像情報のライン先頭を検出したタイミングで、ライン先頭信号を生成しR,G,Bライン先頭検知回路125に出力する前にR,G,Bライン先頭検知回路125に対してその色状態の送信を要求すればよい。 The ANF circuit 124 also acquires the color state of the R, G, B line head detection circuit 125. The R, G, B line head detection circuit 125 may always output its color state, i.e., the color state of the image information captured in the pixel capture FIFO memory 126, to the ANF circuit 124, or may output its color state to the ANF circuit 124 in response to a transmission request from the ANF circuit 124. In the latter case, the ANF circuit 124 may generate a line head signal at the timing when it detects the line heads of the R image information, G image information, and B image information, and request the R, G, B line head detection circuit 125 to transmit the color state before outputting the signal to the R, G, B line head detection circuit 125.

そして、ANF回路124は、入出力回路123の画像情報から検知したR画像情報、G画像情報、B画像情報のライン先頭の色状態と、R,G,Bライン先頭検知回路125の色状態とを比較し、両者が一致しているか否かを判定する。 Then, the ANF circuit 124 compares the color state of the line head of the R image information, G image information, and B image information detected from the image information of the input/output circuit 123 with the color state of the R, G, B line head detection circuit 125, and determines whether the two match.

より詳細には、ANF回路124でR画像情報のライン先頭を検出したタイミングでは、正常であればR,G,Bライン先頭検知回路125はその前の色状態であるB色の画像情報を取り込むように画素取り込みFIFOメモリ126を制御しているので、ANF回路124は、R画像情報のライン先頭を検出したタイミングにおいて、R,G,Bライン先頭検知回路125の色状態がB色の終了であるか否かを判定し、B色の終了であれば一致していると判定する。以下に、両者が一致している場合を列挙して示す。
ANF回路が検知したライン先頭の色:R,G,Bライン先頭検知回路の色状態
R :Bの終了
G :Rの終了
B :Gの終了
勿論、R,G,Bライン先頭検知回路125における色状態として、更新後の色状態、つまり次に処理すべき色状態を意味するものとすると、文字通り、両者の色状態が同一色であることをもって、両者の色状態が一致すると判定することになろう。
More specifically, at the timing when the ANF circuit 124 detects the line head of the R image information, if everything is normal, the R, G, B line head detection circuit 125 controls the pixel capture FIFO memory 126 to capture image information of B color, which is the previous color state, so the ANF circuit 124 determines whether the color state of the R, G, B line head detection circuit 125 is the end of B color at the timing when the ANF circuit 124 detects the line head of the R image information, and if it is the end of B color, determines that they match. The following are cases when the two match.
Color of the line head detected by the ANF circuit: Color state of the R, G, B line head detection circuit R: End of B G: End of R B: End of G Of course, if the color state in the R, G, B line head detection circuit 125 means the color state after updating, that is, the color state to be processed next, then it would be determined that the color states of both match just because they are the same color.

比較判定の結果、両者が一致している場合には、ANF回路124は、同期信号としてライン先頭信号を生成してR,G,Bライン先頭検知回路125に出力する。R,G,Bライン先頭検知回路125は、ANF回路124からの当該ライン先頭信号を受信し、これに応答して色状態を次の色に更新して画素取り込みFIFOメモリ126に画像情報(画素)を取り込む。すなわち、既にB色を取り込んでいたのであれば、次のR色に色状態を更新してR画像情報の画素を取り込むように制御する。また、既にR色を取り込んでいたのであれば、次のG色に色状態を更新してG画像情報の画素を取り込むように制御する。 If the comparison result shows that the two are the same, the ANF circuit 124 generates a line head signal as a synchronization signal and outputs it to the R, G, B line head detection circuit 125. The R, G, B line head detection circuit 125 receives the line head signal from the ANF circuit 124, and in response updates the color state to the next color and captures image information (pixels) into the pixel capture FIFO memory 126. In other words, if B color has already been captured, the color state is updated to the next R color and control is performed to capture the pixels of the R image information. Also, if R color has already been captured, the color state is updated to the next G color and control is performed to capture the pixels of the G image information.

他方で、比較判定の結果、両者が不一致の場合には、ANF回路124は、何らかの異常が発生したとしてライン先頭信号を生成せずR,G,Bライン先頭検知回路125に出力しない。R,G,Bライン先頭検知回路125は、ANF回路124からライン先頭信号を受信しないので、これに応答して色状態を次の色に更新することがなく、現在の色状態をそのまま維持する。 On the other hand, if the comparison result shows that the two do not match, the ANF circuit 124 determines that some abnormality has occurred and does not generate a line head signal or output it to the R, G, B line head detection circuit 125. Since the R, G, B line head detection circuit 125 does not receive a line head signal from the ANF circuit 124, it does not update the color state to the next color in response, and maintains the current color state as is.

そして、両者が不一致の状態が継続した後、再度、一致するようになった場合、ANF回路124は、再びライン先頭を検出したタイミングでライン先頭信号を生成してR,G,Bライン先頭検知回路125に出力する。R,G,Bライン先頭検知回路125は、ANF回路124からの当該ライン先頭信号を受信し、これに応答して色状態を次の色に更新して画素取り込みFIFOメモリ126に再び画像情報(画素)を取り込む。これにより、ANF回路124で検知した色状態と、R,G,Bライン先頭検知回路125での色状態とが一致した状態で画像情報の取り込みが再開され、異常状態から速やかに復帰する。 If the two continue to be inconsistent and then match again, the ANF circuit 124 generates a line head signal when it detects the line head again and outputs it to the R, G, B line head detection circuit 125. The R, G, B line head detection circuit 125 receives the line head signal from the ANF circuit 124, and in response updates the color state to the next color and captures image information (pixels) again into the pixel capture FIFO memory 126. This allows the color state detected by the ANF circuit 124 to match the color state in the R, G, B line head detection circuit 125, and the capture of image information is resumed, allowing a quick recovery from the abnormal state.

ANF回路124は、スキャナから転送されてくる画像情報に同期しており、ANF回路124とR,G,Bライン先頭検知回路125の色状態を同期させることで、結局、スキャナとスキャン回路の色状態を同期させることができる。 The ANF circuit 124 is synchronized with the image information transferred from the scanner, and by synchronizing the color state of the ANF circuit 124 with the R, G, B line head detection circuit 125, the color state of the scanner and the scan circuit can ultimately be synchronized.

画素取り込みFIFOメモリ126に取り込んだ画像情報は、DMA127にてアドレス指定して記憶部としてのDDR128に直接転送して格納するが、異常が生じた場合には当該異常時の誤った画像情報がDMA127を介してDDR128に格納されることになるから、ANF回路124は、異常が発生したラインの画像情報を、正常に復帰した後のラインの画像情報で上書きするようにDMA127のアドレスを調整することが好適である。 The image information captured in the pixel capture FIFO memory 126 is addressed by the DMA 127 and directly transferred to the DDR 128, which serves as a storage unit, for storage. However, if an abnormality occurs, erroneous image information from the abnormality will be stored in the DDR 128 via the DMA 127. Therefore, it is preferable for the ANF circuit 124 to adjust the address of the DMA 127 so that the image information of the line in which the abnormality occurred is overwritten with the image information of the line after normality has been restored.

このため、図7に示すように、ANF回路124は、異常が発生した場合に、ライン先頭信号の出力を中断するとともに、DMA127のアドレスを1ライン分戻すべく、DMA127のアドレスを指定するためのラインカウンタの値を1だけ減じる。すなわち、正常な状態であれば、ANF回路124は、ライン先頭信号を生成してR,G,Bライン先頭検知回路125に出力し、ラインカウンタの値を1だけ加算してDMA127に出力してDMA127のアドレスを1ライン分だけ進めるが、異常を検出すると、ラインカウンタの値を逆に1だけ減じてDMA127のアドレスを1ライン分だけ戻すようにDMA127に出力する。DMA127は、ANF回路124からのラインカウンタの値に応じて画素取り込みFIFOメモリ126に取り込んだ画像情報をDDR128のアドレスに書き込む。 For this reason, as shown in FIG. 7, when an abnormality occurs, the ANF circuit 124 stops outputting the line head signal and subtracts one from the line counter value for specifying the address of the DMA 127 in order to move the address of the DMA 127 back by one line. In other words, under normal conditions, the ANF circuit 124 generates a line head signal and outputs it to the R, G, and B line head detection circuit 125, adds one to the line counter value, outputs it to the DMA 127, and advances the address of the DMA 127 by one line, but when an abnormality is detected, the line counter value is subtracted by one and outputs it to the DMA 127 so as to move the address of the DMA 127 back by one line. The DMA 127 writes the image information captured in the pixel capture FIFO memory 126 to an address of the DDR 128 according to the line counter value from the ANF circuit 124.

図8に、本実施形態におけるスキャナとANF回路124とR,G,Bライン先頭検知回路125のタイミングチャートを示す。図5に対応するタイミングチャートである。 Figure 8 shows a timing chart of the scanner, ANF circuit 124, and R, G, B line head detection circuit 125 in this embodiment. This is a timing chart corresponding to Figure 5.

図8(a)は、スキャナから転送されてくる画像情報のタイミングチャートである。R画像情報、G画像情報、B画像情報がこの順序で転送されてくる。 Figure 8 (a) is a timing chart of image information transferred from the scanner. R image information, G image information, and B image information are transferred in that order.

図8(b)は、ANF回路124でのR画像情報、G画像情報、B画像情報のライン先頭検知のタイミングチャートである。ANF回路124は、基本的動作として、入出力回路からの画像情報のうち、R画像情報、G画像情報、B画像情報のライン先頭を検出すると、パルス信号としてのライン先頭信号を生成してR,G,Bライン先頭検知回路125に出力する。 Figure 8 (b) is a timing chart of the line head detection of R image information, G image information, and B image information in the ANF circuit 124. As a basic operation, when the ANF circuit 124 detects the line head of R image information, G image information, and B image information from the image information from the input/output circuit, it generates a line head signal as a pulse signal and outputs it to the R, G, B line head detection circuit 125.

図8(c)は、R,G、Bライン先頭検知回路125のタイミングチャートである。R,G,Bライン先頭検知回路125は、ANF回路124からのライン先頭信号を受信すると、これに応じて、画素取り込みFIFOメモリ126の取り込み開始を指示するとともに、取り込む色の状態を順次、
R→G→B→R→G→B→・・・
と変化させて更新する。
8C is a timing chart of the R, G, B line head detection circuit 125. When the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124, it instructs the pixel capture FIFO memory 126 to start capturing, and sequentially changes the state of the colors to be captured.
R→G→B→R→G→B→・・・
and update it.

従って、正常に動作していれば、R,G,Bライン先頭検知回路125は、ANF回路124からR画像情報のライン先頭を検知するライン先頭信号を受信すると、その前の色状態であるB色からR色に色状態を更新して画素取り込みFIFOメモリ126にR画像情報を取り込むように制御する。そして、ライン先頭から指定画素数だけ画像情報を取り込むと、R画像情報の取り込みを終了する。図において、矩形パルス信号の立上がりがR画像情報の取り込み開始タイミングを示し、矩形パルス信号の立下りがR画像情報の取り込み終了タイミングを示す。 Therefore, if the circuit is operating normally, when the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124 that detects the line head of R image information, it updates the color state from the previous color state of B to R and controls the pixel capture FIFO memory 126 to capture R image information. Then, when the specified number of pixels of image information have been captured from the line head, the capture of R image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of the capture of R image information, and the falling edge of the rectangular pulse signal indicates the end timing of the capture of R image information.

次に、R,G,Bライン先頭検知回路125は、ANF回路124からG画像情報のライン先頭を検知するライン先頭信号を受信すると、その前の色状態であるR色からG色に色状態を更新して画素取り込みFIFOメモリ126にG画像情報を取り込むように制御する。そして、ライン先頭から所定画素数だけ画像情報を取り込むと、G画像情報の取り込みを終了する。図において、矩形パルス信号の立上がりがG画像情報の取り込み開始タイミングを示し、矩形パルス信号の立下りがG画像情報の取り込み終了タイミングを示す。 Next, when the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124 to detect the line head of the G image information, it updates the color state from the previous color state of R to G and controls the pixel capture FIFO memory 126 to capture the G image information. Then, when a predetermined number of pixels of image information have been captured from the line head, the capture of the G image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of the capture of the G image information, and the falling edge of the rectangular pulse signal indicates the end timing of the capture of the G image information.

次に、R,G,Bライン先頭検知回路125は、ANF回路124からB画像情報のライン先頭を検知するライン先頭信号を受信すると、その前の色状態であるG色からB色に色状態を更新して画素取り込みFIFOメモリ126にB画像情報を取り込むように制御する。そして、ライン先頭から所定画素数だけ画像情報を取り込むと、B画像情報の取り込みを終了する。図において、矩形パルス信号の立上がりがB画像情報の取り込み開始タイミングを示し、矩形パルス信号の立下りがB画像情報の取り込み終了タイミングを示す。 Next, when the R, G, B line head detection circuit 125 receives a line head signal from the ANF circuit 124 to detect the line head of the B image information, it updates the color state from the previous color state of G to B and controls the pixel capture FIFO memory 126 to capture the B image information. Then, when a predetermined number of pixels of image information have been captured from the line head, the capture of the B image information ends. In the figure, the rising edge of the rectangular pulse signal indicates the start timing of the capture of the B image information, and the falling edge of the rectangular pulse signal indicates the end timing of the capture of the B image information.

正常に動作していれば、以上の処理を繰り返し実行することで、ANF回路124で検知した色状態と、スキャン回路のR,G,Bライン先頭検知回路125で取り込みを制御している色状態とが同期しながら処理が進む。 If the system is operating normally, the above process is repeated, and the process proceeds while synchronizing the color state detected by the ANF circuit 124 with the color state controlled by the R, G, B line head detection circuit 125 of the scan circuit.

他方で、例えばR,G,Bライン先頭検知回路125に異常が生じたとする。具体的には、R画像情報の取り込み処理中に何らかの異常が生じたとする。これ以降、ANF回路124で検知した色状態と、R,G,Bライン先頭検知回路125での色状態が不一致となる。すなわち、ANF回路124でG画像情報のライン先頭を検出したタイミングでは、正常状態ではR,G,Bライン先頭検知回路125の色状態はR色の取り込みが終了しているはずであるが、異常が発生してR色の取り込みが終了していないため、両者の色状態が不一致となる。 On the other hand, suppose an abnormality occurs in the R, G, B line head detection circuit 125. Specifically, suppose some abnormality occurs during the import process of R image information. After this, the color state detected by the ANF circuit 124 and the color state in the R, G, B line head detection circuit 125 do not match. In other words, when the ANF circuit 124 detects the line head of the G image information, under normal conditions the color state of the R, G, B line head detection circuit 125 should be that the import of R color has ended, but an abnormality has occurred and the import of R color has not ended, so the color states of the two do not match.

この場合、ANF回路124は、たとえG画像情報のライン先頭を検知していたとしても、R,G,Bライン先頭検知回路125の色状態と一致していないため、ライン先頭信号を出力しない。図8(b)において、G画像情報のライン先頭を検知してもライン先頭信号を出力しないことを破線のパルス信号として示す。ライン先頭信号が出力されないため、R,G,Bライン先頭検知回路125は、ANF回路124からライン先頭信号を受信することがなく、現在の色状態を更新せずにそのまま維持する。すなわち、R色の取り込みが終了していない状態をそのまま維持する。 In this case, even if the ANF circuit 124 detects the line head of the G image information, it does not output a line head signal because it does not match the color state of the R, G, B line head detection circuit 125. In FIG. 8(b), the dashed pulse signal indicates that the line head signal is not output even if the line head of the G image information is detected. Because the line head signal is not output, the R, G, B line head detection circuit 125 does not receive a line head signal from the ANF circuit 124 and maintains the current color state as is without updating it. In other words, the state in which the capture of R color is not completed is maintained as is.

次に、ANF回路124でB画像情報のライン先頭を検出しても、正常状態ではR,G,Bライン先頭検知回路125の色状態はG色の取り込みが終了しているはずであるが、異常が発生してR色の取り込みが終了していないため、両者の色状態が不一致となるので、ANF回路124は、たとえB画像情報のライン先頭を検知していたとしても、ライン先頭信号を出力しない。図8(b)において、B画像情報のライン先頭を検知してもライン先頭信号を出力しないことを破線のパルス信号として示す。ライン先頭信号が出力されないため、R,G,Bライン先頭検知回路125は、ANF回路124からライン先頭信号を受信することがなく、現在の色状態を更新せずにそのまま維持する。すなわち、R色の取り込みが終了していない状態をそのまま維持する。 Next, even if the ANF circuit 124 detects the line head of the B image information, the color state of the R, G, B line head detection circuit 125 should be that the G color capture is complete under normal conditions. However, because an abnormality has occurred and the R color capture is not complete, the two color states do not match, so the ANF circuit 124 does not output a line head signal even if it detects the line head of the B image information. In FIG. 8B, the dashed pulse signal indicates that the line head signal is not output even if the line head of the B image information is detected. Since the line head signal is not output, the R, G, B line head detection circuit 125 does not receive a line head signal from the ANF circuit 124 and maintains the current color state as it is without updating it. In other words, the state in which the R color capture is not complete is maintained as it is.

次に、ANF回路124でR画像情報のライン先頭を検出すると、R,G,Bライン先頭検知回路125の現在の色状態は、R画像情報の取り込みが継続している状態、すなわちその前のB色の取り込みが終了している状態であるから、両者の色状態が再び一致することになり、ANF回路124は、再びR画像情報のライン先頭の検知タイミングにおいてライン先頭信号を生成して出力する。図8(b)において、ライン先頭信号の再出力を実線のパルス信号として示す。R,G,Bライン先頭検知回路125は、当該ライン先頭信号を受信すると、画素取り込みFIFOメモリ126へのR画像情報の取り込みを再開し、ライン先頭から指定画素数だけR画像情報を取り込むと、R画像情報の取り込みを終了する。 Next, when the ANF circuit 124 detects the line head of the R image information, the current color state of the R, G, B line head detection circuit 125 is a state in which the capture of R image information is continuing, i.e., the previous capture of B color has ended, so the two color states match again, and the ANF circuit 124 generates and outputs a line head signal at the timing of detecting the line head of the R image information again. In FIG. 8(b), the re-output of the line head signal is shown as a solid pulse signal. When the R, G, B line head detection circuit 125 receives the line head signal, it resumes the capture of R image information into the pixel capture FIFO memory 126, and ends the capture of R image information when it has captured the specified number of pixels of R image information from the line head.

以後は、ANF回路124で検知した色状態と、R,G,Bライン先頭検知回路125での色状態が再び一致するため、ANF回路124は、R画像情報、G画像情報、B画像情報のライン先頭を検知する毎にライン先頭信号を生成してR,G,Bライン先頭検知回路125に出力する。 After that, the color state detected by the ANF circuit 124 and the color state in the R, G, B line head detection circuit 125 again match, so the ANF circuit 124 generates a line head signal each time it detects the head of a line of R image information, G image information, or B image information, and outputs it to the R, G, B line head detection circuit 125.

次に、本実施形態の処理を、フローチャートを用いてより詳細に説明する。 Next, the processing of this embodiment will be explained in more detail using a flowchart.

図9、図10、及び図11に、実施形態の処理フローチャートを示す。 Figures 9, 10, and 11 show processing flowcharts for the embodiment.

まず、図9において、ANF回路124は、ページ先頭のDMAアドレスを予約する(S101)。次に、異常フラグを0に初期化する(D102)。この異常フラグは、異常が発生したことを示す識別情報であり、異常なしの場合には0、異常ありの場合に1にセットされる。 First, in FIG. 9, the ANF circuit 124 reserves the DMA address at the beginning of the page (S101). Next, the abnormality flag is initialized to 0 (D102). This abnormality flag is identification information indicating that an abnormality has occurred, and is set to 0 if no abnormality has occurred and to 1 if an abnormality has occurred.

次に、ANF回路124は、入出力回路123からの画像情報のうち、R画像情報のライン先頭を検出する(S103)。R画像情報のライン先頭を検出しない場合、検出するまで当該処理を繰り返す。 Next, the ANF circuit 124 detects the line head of the R image information from the image information sent from the input/output circuit 123 (S103). If the line head of the R image information is not detected, the process is repeated until it is detected.

R画像情報のライン先頭を検出した場合(s103でYES)、ANF回路124は、この検出タイミングがページ先頭であるか、またはこの検出タイミングにおけるR,G,Bライン先頭検知回路125の色状態がB色、つまりB画像情報の終了後であるかを判定する(S104)。 When the start of a line of R image information is detected (YES in s103), the ANF circuit 124 determines whether this detection timing is the start of a page or whether the color state of the R, G, B line start detection circuit 125 at this detection timing is B color, i.e., after the end of the B image information (S104).

上述したように、R,G,Bライン先頭検知回路125は、現在転送中の画像情報がR画像情報、G画像情報、B画像情報のいずれかであるかを判断せず、単に、ライン先頭を検知するたびに、
R→G→B→R→G→B→・・・
の順序で色状態を変化させる。ANF回路124は、R,G,Bライン先頭検知回路125の現在の色状態を取得し、R,G,Bライン先頭検知回路125の色状態がB色、つまりB画像情報の終了後であるかを判定するのである。
As described above, the R, G, B line head detection circuit 125 does not determine whether the image information currently being transferred is R image information, G image information, or B image information, but simply performs the following every time it detects the head of a line:
R→G→B→R→G→B→・・・
The ANF circuit 124 obtains the current color state of the R, G, B line head detection circuit 125, and determines whether the color state of the R, G, B line head detection circuit 125 is B, that is, whether the B image information has ended.

ここで、B色の終了後は次のR色に更新されるから、更新後のR色と比較してもよい。但し、実際に更新されるのは、R,G,Bライン先頭検知回路125がANF回路124から先頭ライン信号を受信した後であるから、ライン先頭信号の受信前では、更新後の色状態は未だ実現していない点に留意すべきである。 Here, after the B color is finished, it is updated to the next R color, so it may be compared with the updated R color. However, it should be noted that the update actually occurs after the R, G, B line head detection circuit 125 receives the head line signal from the ANF circuit 124, so the updated color state has not yet been achieved before the line head signal is received.

R画像情報のライン先頭を検出したタイミングが、ページ先頭、あるいはR,G,Bライン先頭検知回路125の色状態がB画像情報の終了後である場合(S104でYES)、R,G,Bの順序で画像情報が転送されているため、このタイミングでの検知は正しいR画像情報のライン先頭であるとして、ANF回路124は、異常フラグを0のまま維持し(S105)、R画像情報のライン先頭を検知したことを示すライン先頭信号を発行してR,G,Bライン先頭検知回路125に出力する(S106)。そして、ラインカウンタを1だけ加算してインクリメントする。R,G,Bライン先頭検知回路125は、ANF回路124からライン先頭信号を受信すると、色状態をBの次の色、具体的にはR色に変化させて画素取り込みFIFOメモリ126に取り込み開始信号を出力する。 If the timing at which the line head of the R image information is detected is the top of a page, or the color state of the R, G, B line head detection circuit 125 is after the end of the B image information (YES in S104), since the image information is transferred in the order of R, G, B, the detection at this timing is the correct line head of the R image information, and the ANF circuit 124 maintains the abnormality flag at 0 (S105), issues a line head signal indicating that the line head of the R image information has been detected, and outputs it to the R, G, B line head detection circuit 125 (S106). Then, the line counter is incremented by adding 1. When the R, G, B line head detection circuit 125 receives the line head signal from the ANF circuit 124, it changes the color state to the color next to B, specifically R, and outputs an acquisition start signal to the pixel acquisition FIFO memory 126.

他方で、R画像情報のライン先頭を検知したタイミングが、ページ先頭またはB画像情報の終了後でない場合(S104でNO)、ANF回路124で検知した色状態と、R,G,Bライン先頭検知回路125での色状態が一致していないとして、異常フラグの値を確認し(S108)、異常フラグが0の場合には異常が発生したものとして異常フラグを0から1にセットする(S109)。そして、この場合、ANF回路124は、R画像情報のライン先頭を検知したにもかかわらずライン先頭信号を発行することなく(S106の処理を非実行)、ラインカウンタを1だけ減じる(S110)。R,G,Bライン先頭検知回路125は、ANF回路124からのライン先頭信号を入力しないので、色状態をRの次の色、具体的にはG色に更新することなく、現在の色状態をそのまま維持して画素取り込みFIFOメモリ126に画像情報を取り込む。 On the other hand, if the timing of detecting the line head of the R image information is not after the page head or the end of the B image information (NO in S104), the color state detected by the ANF circuit 124 and the color state in the R, G, B line head detection circuit 125 do not match, so the value of the abnormality flag is checked (S108), and if the abnormality flag is 0, an abnormality is detected and the abnormality flag is set from 0 to 1 (S109). In this case, the ANF circuit 124 does not issue a line head signal despite detecting the line head of the R image information (not executing the process of S106), and decrements the line counter by 1 (S110). Since the R, G, B line head detection circuit 125 does not input the line head signal from the ANF circuit 124, it does not update the color state to the color next to R, specifically G, and maintains the current color state as it is and captures the image information into the pixel capture FIFO memory 126.

また、異常フラグが既に1にセットされている場合には(S108でNO)、ラインカウンタの値を変更することなく、図10の処理に移行する。 Also, if the abnormality flag is already set to 1 (NO in S108), the process proceeds to the process in FIG. 10 without changing the line counter value.

ラインカウンタを1だけ加算(S107)、あるはラインカウンタを1だけ減じた後(S108)、ANF回路124は、次ラインの先頭DMAアドレスをラインカウンタに応じて予約してDMA127に出力する(S111)。そして、図10の処理に移行する。 After incrementing the line counter by 1 (S107) or decrementing the line counter by 1 (S108), the ANF circuit 124 reserves the first DMA address of the next line according to the line counter and outputs it to the DMA 127 (S111). Then, the process proceeds to the process shown in FIG. 10.

図10において、ANF回路124は、入出力回路123からの画像情報のうち、G画像情報のライン先頭を検出する(S112)。G画像情報のライン先頭を検出しない場合、検出するまで当該処理を繰り返す。 In FIG. 10, the ANF circuit 124 detects the line head of the G image information from the image information sent from the input/output circuit 123 (S112). If the line head of the G image information is not detected, the process is repeated until it is detected.

G画像情報のライン先頭を検出した場合(S112でYES)、ANF回路124は、R,G,Bライン先頭検知回路125の色状態がR色、つまりR画像情報の終了後であるかを判定する(S113)。すなわち、ANF回路124は、R,G,Bライン先頭検知回路125の現在の色状態を取得し、R,G,Bライン先頭検知回路125の色状態がR色、つまりR画像情報の終了後であるかを判定するのである。 When the line head of the G image information is detected (YES in S112), the ANF circuit 124 judges whether the color state of the R, G, B line head detection circuit 125 is R, that is, whether the R image information has ended (S113). In other words, the ANF circuit 124 obtains the current color state of the R, G, B line head detection circuit 125 and judges whether the color state of the R, G, B line head detection circuit 125 is R, that is, whether the R image information has ended.

G画像情報のライン先頭を検出したタイミングが、R,G,Bライン先頭検知回路125の色状態がR画像情報の終了後である場合(S113でYES)、このタイミングでの検知は正しいG画像情報のライン先頭であるとして、異常フラグを0にセットし(S114)、G画像情報のライン先頭を検知したことを示すライン先頭信号を発行してR,G,Bライン先頭検知回路125に出力する(S115)。そして、ラインカウンタを1だけ加算してインクリメントする(S116)。R,G,Bライン先頭検知回路125は、ANF回路124からのライン先頭信号を入力すると、色状態をRの次の色、具体的にはG色に変化させて画素取り込みFIFOメモリ126に取り込み開始信号を出力する。 If the R, G, B line head detection circuit 125 detects the line head of the G image information after the end of the R image information (YES in S113), it determines that the detection at this timing is the correct line head of the G image information, sets the abnormality flag to 0 (S114), and issues a line head signal indicating that the line head of the G image information has been detected and outputs it to the R, G, B line head detection circuit 125 (S115). Then, it increments the line counter by 1 (S116). When the R, G, B line head detection circuit 125 receives the line head signal from the ANF circuit 124, it changes the color state to the color next to R, specifically G, and outputs an acquisition start signal to the pixel acquisition FIFO memory 126.

他方で、G画像情報のライン先頭を検知したタイミングが、R画像情報の終了後でない場合(S113でNO)、ANF回路124で検知した色状態と、R,G,Bライン先頭検知回路125での色状態が一致していないとして、異常フラグの値を確認し(S117)、異常フラグが0の場合には異常が発生したものとして異常フラグを0から1にセットする(S118)。そして、この場合、ANF回路124は、G画像情報のライン先頭を検知したにもかかわらずライン先頭信号を発行することなく(S115の処理を非実行)、ラインカウンタを1だけ減じる(S119)。R,G,Bライン先頭検知回路125は、ANF回路124からのライン先頭信号を入力しないので、色状態を更新することなく、現在の色状態をそのまま維持する。 On the other hand, if the timing of detecting the line head of the G image information is not after the end of the R image information (NO in S113), the color state detected by the ANF circuit 124 and the color state in the R, G, B line head detection circuit 125 do not match, so the value of the abnormality flag is checked (S117), and if the abnormality flag is 0, an abnormality is detected and the abnormality flag is set from 0 to 1 (S118). In this case, the ANF circuit 124 does not issue a line head signal despite detecting the line head of the G image information (processing of S115 is not executed), and decrements the line counter by 1 (S119). Since the R, G, B line head detection circuit 125 does not input the line head signal from the ANF circuit 124, the color state is not updated and the current color state is maintained as it is.

また、異常フラグが既に1にセットされている場合には(S117でNO)、図11の処理に移行する。 Also, if the abnormality flag is already set to 1 (NO in S117), the process proceeds to FIG. 11.

ラインカウンタを1だけ加算、あるはラインカウンタを1だけ減じた後、ANF回路124は、次ラインの先頭DMAアドレスをラインカウンタに応じて予約する(S120)。そして、図11の処理に移行する。 After incrementing or decrementing the line counter by 1, the ANF circuit 124 reserves the first DMA address of the next line according to the line counter (S120). Then, the process proceeds to the process shown in FIG. 11.

図11において、ANF回路124は、入出力回路123からの画像情報のうち、B画像情報のライン先頭を検出する(S121)。B画像情報のライン先頭を検出しない場合、検出するまで当該処理を繰り返す。 In FIG. 11, the ANF circuit 124 detects the line head of the B image information from the image information sent from the input/output circuit 123 (S121). If the line head of the B image information is not detected, the process is repeated until it is detected.

B画像情報のライン先頭を検出した場合(S121でYES)、ANF回路124は、R,G,Bライン先頭検知回路125の色状態がG色、つまりG画像情報の終了後であるかを判定する(S122)。すなわち、ANF回路124は、R,G,Bライン先頭検知回路125の現在の色状態を取得し、R,G,Bライン先頭検知回路125の色状態がG色、つまりG画像情報の終了後であるかを判定するのである。 When the line head of the B image information is detected (YES in S121), the ANF circuit 124 judges whether the color state of the R, G, B line head detection circuit 125 is G color, that is, whether the end of the G image information has occurred (S122). In other words, the ANF circuit 124 obtains the current color state of the R, G, B line head detection circuit 125, and judges whether the color state of the R, G, B line head detection circuit 125 is G color, that is, whether the end of the G image information has occurred.

B画像情報のライン先頭を検出したタイミングが、R,G,Bライン先頭検知回路125の色状態がG画像情報の終了後である場合(S122でYES)、このタイミングでの検知は正しいB画像情報のライン先頭であるとして、異常フラグを0にセットし(S123)、B画像情報のライン先頭を検知したことを示すライン先頭信号を発行してR,G,Bライン先頭検知回路に出力する(S124)。そして、ラインカウンタを1だけ加算してインクリメントする(S125)。R,G,Bライン先頭検知回路125は、ANF回路124からのライン先頭信号を入力すると、色状態をGの次の色、具体的にはB色に変化させて画素取り込みFIFOメモリ126に取り込み開始信号を出力する。 If the R, G, B line head detection circuit 125 detects the line head of the B image information after the end of the G image information (YES in S122), it determines that the detection at this timing is the correct line head of the B image information, sets the abnormality flag to 0 (S123), and issues a line head signal indicating that the line head of the B image information has been detected and outputs it to the R, G, B line head detection circuit (S124). Then, it increments the line counter by 1 (S125). When the R, G, B line head detection circuit 125 receives the line head signal from the ANF circuit 124, it changes the color state to the color next to G, specifically B, and outputs an acquisition start signal to the pixel acquisition FIFO memory 126.

他方で、B画像情報のライン先頭を検知したタイミングが、G画像情報の終了後でない場合(S122でNO)、このタイミングでの検知は正しいB画像情報のライン先頭でない、すなわち、ANF回路124で検知した色状態と、R,G,Bライン先頭検知回路125での色状態が一致していないとして、異常フラグの値を確認し(S126)、異常フラグが0の場合には異常が発生したものとして異常フラグを0から1にセットする(S127)。そして、この場合、ANF回路124は、B画像情報のライン先頭を検知したにもかかわらずライン先頭信号を発行することなく(S124の処理を非実行)、ラインカウンタを1だけ減じる(S128)。R,G,Bライン先頭検知回路125は、ANF回路124からのライン先頭信号を入力しないので、色状態を更新することなく、現在の色状態をそのまま維持する。 On the other hand, if the timing at which the line head of the B image information is detected is not after the end of the G image information (NO in S122), the detection at this timing is not the correct line head of the B image information, that is, the color state detected by the ANF circuit 124 does not match the color state in the R, G, B line head detection circuit 125, so the value of the abnormality flag is checked (S126), and if the abnormality flag is 0, an abnormality is determined to have occurred and the abnormality flag is set from 0 to 1 (S127). In this case, the ANF circuit 124 does not issue a line head signal despite having detected the line head of the B image information (the process of S124 is not executed), and the line counter is decremented by 1 (S128). Since the R, G, B line head detection circuit 125 does not input the line head signal from the ANF circuit 124, the color state is not updated and the current color state is maintained as it is.

また、異常フラグが既に1にセットされている場合には(S126でNO)、図9のR画像情報のライン先頭検知処理(S103)に戻って図9~図11の処理を繰り返す。 Also, if the abnormality flag has already been set to 1 (NO in S126), the process returns to the process of detecting the beginning of the line for the R image information in FIG. 9 (S103) and repeats the processes in FIGS. 9 to 11.

ラインカウンタを1だけ加算、あるいはラインカウンタを1だけ減じた後、ANF回路124は、次ラインの先頭DMAアドレスをラインカウンタに応じて予約する(S129)。そして、ラインカウンタの値が設定ライン数に達したか否かを判定する(S130)。 After incrementing or decrementing the line counter by 1, the ANF circuit 124 reserves the first DMA address of the next line according to the line counter (S129). Then, it determines whether the value of the line counter has reached the set number of lines (S130).

ラインカウンタの値が設定ライン数に達した場合には処理を終了し(S130でYES)、ラインカウンタの値が設定ライン数に達していなければ(S130でNO)、図9のR画像情報のライン先頭検知処理(S103)に戻って図9~図11の処理を繰り返す。 If the line counter value has reached the set number of lines, the process ends (YES in S130), and if the line counter value has not reached the set number of lines (NO in S130), the process returns to the R image information line start detection process (S103) in FIG. 9 and repeats the processes in FIGS. 9 to 11.

以上の処理によれば、異常フラグが1にセットされた場合、ANF回路124からR,G,Bライン先頭検知回路125へのライン先頭信号の出力が中断され、R,G,Bライン先頭検知回路125での色状態の更新が中断する。そして、ANF回路124でR画像情報、G画像情報、B画像情報のいずれかのライン先頭が検出され、そのライン先頭の検出タイミングにおいて、ANF回路124で検出した色状態と、R,G,Bライン先頭検知回路125での色状態が再び一致したときに、異常フラグが1から再び0にセットされて、ANF回路124からR,G,Bライン先頭検知回路125へのライン先頭信号の出力が再開され、R,G,Bライン先頭検知回路125での色状態の更新が再開される。 According to the above process, when the abnormality flag is set to 1, the output of the line head signal from the ANF circuit 124 to the R, G, B line head detection circuit 125 is interrupted, and the update of the color state in the R, G, B line head detection circuit 125 is interrupted. Then, when the ANF circuit 124 detects the head of any of the R image information, G image information, or B image information, and the color state detected by the ANF circuit 124 and the color state in the R, G, B line head detection circuit 125 match again at the timing of the detection of the line head, the abnormality flag is set from 1 to 0 again, the output of the line head signal from the ANF circuit 124 to the R, G, B line head detection circuit 125 is resumed, and the update of the color state in the R, G, B line head detection circuit 125 is resumed.

以上のように、本実施形態では、スキャン回路のR,G,Bライン先頭検知回路125において、ANF回路124からのライン先頭信号を入力することで画素取り込みFIFOメモリ126への取り込みを制御し、色状態を
R→G→B→R→G→B→・・・
と順次進める構成とし、ANF回路124においてR,G,Bライン先頭検知回路125の色状態を取得し、ANF回路124で検出した色状態と、R,G,Bライン先頭検知回路125の色状態が一致しておらず同期していないことを検知すると、ANF回路124からR,G,Bライン先頭検知回路へのライン先頭信号の出力を中断してR,G,Bライン先頭回路125での色情報の更新を中断し、ANF回路124で検出した色状態と、R,G,Bライン先頭検知回路125での色状態が再び一致して同期したときに、ANF回路124からR,G,Bライン先頭検知回路125へのライン先頭信号の出力を再開して、R,G,Bライン先頭検知回路125での色状態の更新を再開することで、色状態を再同期できる。
As described above, in this embodiment, the R, G, B line head detection circuit 125 of the scan circuit controls the capture of pixels into the pixel capture FIFO memory 126 by inputting a line head signal from the ANF circuit 124, and changes the color state in the order of R→G→B→R→G→B→...
and so on. The ANF circuit 124 acquires the color state of the R, G, B line head detection circuit 125, and when it detects that the color state detected by the ANF circuit 124 and the color state of the R, G, B line head detection circuit 125 do not match and are out of synchronization, the output of the line head signal from the ANF circuit 124 to the R, G, B line head detection circuit is interrupted to interrupt the updating of the color information in the R, G, B line head detection circuit 125. When the color state detected by the ANF circuit 124 and the color state in the R, G, B line head detection circuit 125 match and are synchronized again, the output of the line head signal from the ANF circuit 124 to the R, G, B line head detection circuit 125 is resumed to resume the updating of the color state in the R, G, B line head detection circuit 125, thereby resynchronizing the color state.

また、本実施形態では、異常発生時にANF回路124のラインカウンタの値を1だけ減じてDMA127のアドレスを1ライン分だけ戻すことで、通常であれば1ラインずつアドレスが進んでDDR128に格納されるため、正常に復帰した後も異常時のラインの次のラインから格納されてしまうところ、異常から正常に復帰した後に、異常時のラインを正常なラインで上書きすることができるので、DDR128に格納された正しい画像情報を用いて各種処理を実行できる。 In addition, in this embodiment, when an abnormality occurs, the value of the line counter of the ANF circuit 124 is decremented by 1 and the address of the DMA 127 is moved back by one line. Normally, the address advances by one line and is stored in the DDR 128, so that even after a recovery from the abnormality, data is stored starting from the line following the abnormal line. However, after a recovery from the abnormality to normal, the abnormal line can be overwritten with the normal line, so various processes can be performed using the correct image information stored in the DDR 128.

上記実施形態において、プロセッサとは広義的なプロセッサを指し、汎用的なプロセッサ(例えば CPU Central Processing Unit 等)や、専用のプロセッサ(例えば GPU
Graphics Processing Unit 、ASIC Application Specific Integrated Circuit 、 FPGA
Field Programmable Gate Array 、プログラマブル論理デバイス、等)を含むものである。
In the above embodiment, the processor refers to a processor in a broad sense, and may be a general-purpose processor (e.g., a CPU Central Processing Unit, etc.) or a dedicated processor (e.g., a GPU
Graphics Processing Unit, ASIC Application Specific Integrated Circuit, FPGA
Field Programmable Gate Arrays, programmable logic devices, etc.

また、上記実施形態におけるプロセッサの動作は、1つのプロセッサによって成すのみでなく、物理的に離れた位置に存在する複数のプロセッサが協働してなすものであってもよい。また、プロセッサの各動作の順序は上記実施形態において記載した順序のみに限定されるものではなく、適宜変更してもよい。 In addition, the processor operations in the above embodiments may not only be performed by a single processor, but may also be performed by multiple processors located at physically separate locations working together. Furthermore, the order of the processor operations is not limited to the order described in the above embodiments, and may be changed as appropriate.

100 情報処理装置、102 画像読取部、121 CIS、122 AFE、123 入出力回路、124 ANF回路、125 R,G,Bライン先頭検知回路、126 画素取り込みFIFOメモリ、127 DMA、128 DDR。
REFERENCE SIGNS LIST 100 information processing device, 102 image reading unit, 121 CIS, 122 AFE, 123 input/output circuit, 124 ANF circuit, 125 R, G, B line head detection circuit, 126 pixel capture FIFO memory, 127 DMA, 128 DDR.

Claims (7)

複数の色毎に生成され、前記複数の色が予め定められた順序で、かつ循環して出力された信号を入力して処理するプロセッサを備え、前記プロセッサは、プログラムを実行することで、
前記複数の色のうちの各色の先頭のタイミングを検知して同期信号を出力し、
前記信号を入力し、前記同期信号に応じて前記複数の色のうち取り込むべき色を順次更新し、
更新された色と、前記同期信号を出力したタイミングで出力された色と、が一致しない場合に前記同期信号の出力を中断して前記更新を中断する、
信号処理装置。
The present invention includes a processor that receives and processes signals generated for each of a plurality of colors and output in a predetermined order and in a cyclic manner for the plurality of colors, the processor executing a program to:
Detecting the timing of the start of each color among the plurality of colors and outputting a synchronization signal;
inputting the signal, and sequentially updating the color to be captured among the plurality of colors in response to the synchronization signal;
if the updated color does not match the color output at the timing of outputting the synchronization signal, the output of the synchronization signal is interrupted to interrupt the update.
Signal processing device.
前記プロセッサは、
更新された色の信号を取り込んで記憶部に格納し、
前記同期信号の出力を再開した場合に、取り込んだ信号を前記記憶部に格納するアドレスを、前記同期信号の出力を中断したタイミングのアドレスに制御する、
請求項1に記載の信号処理装置。
The processor,
The updated color signal is captured and stored in the memory.
When the output of the synchronization signal is resumed, an address at which the captured signal is stored in the storage unit is controlled to an address at the timing when the output of the synchronization signal was interrupted.
The signal processing device according to claim 1 .
前記複数色が第1の色、第2の色、及び第3の色から構成され、前記第1の色、前記第2の色、及び前記第3の色の順序で交互に、かつ循環して出力され、
前記プロセッサは、前記第1の色の先頭のタイミングを検知した場合に、更新された色が前記第2の色あるいは前記第3の色であるときに、前記同期信号の出力を中断する、
請求項1,2のいずれかに記載の信号処理装置。
the plurality of colors are composed of a first color, a second color, and a third color, and the first color, the second color, and the third color are output alternately and cyclically in this order;
when the processor detects the timing of the beginning of the first color, and the updated color is the second color or the third color, the processor interrupts output of the synchronization signal;
3. A signal processing device according to claim 1 or 2.
前記プロセッサは、
前記第1の色の先頭のタイミングを検知したタイミングが、ページの先頭でないときに前記同期信号の出力を中断する、
請求項3に記載の信号処理装置。
The processor,
interrupting the output of the synchronization signal when the timing of the start of the first color is not the start of a page.
The signal processing device according to claim 3 .
記録媒体における画像を含む画像領域に対して複数の色毎の光を前記複数の色が循環する色順に照射した際の反射された光を受光し、受光して得られた信号を出力する生成手段と、
前記生成手段により生成された信号を処理の対象とした請求項1~4のいずれかに記載の信号処理装置と、
を含む画像読取装置。
a generating means for receiving reflected light when a light of each of a plurality of colors is irradiated onto an image area including an image on a recording medium in a cyclical color order of the plurality of colors, and outputting a signal obtained by receiving the reflected light;
A signal processing device according to any one of claims 1 to 4, which processes the signal generated by the generating means;
An image reading device comprising:
請求項5に記載の画像読取装置と、
前記画像読取装置に含まれる前記信号処理装置により処理された信号に基づいて画像を形成する画像形成装置と、
を含む情報処理装置。
The image reading device according to claim 5 ;
an image forming apparatus that forms an image based on the signal processed by the signal processing apparatus included in the image reading apparatus;
An information processing device comprising:
コンピュータを、
複数の色毎に生成され、前記複数の色が予め定められた順序で、かつ循環して出力された信号を入力し、前記複数の色のうちの各色の先頭のタイミングを検知して同期信号を出力する検知手段と、
前記信号を入力し、前記検知手段からの前記同期信号に応じて前記複数の色のうち取り込むべき色を順次更新する更新手段、
として機能させ、かつ、前記更新手段で更新された色と、前記同期信号を出力したタイミングで出力された色と、が一致しない場合に前記同期信号の出力を中断させる、
プログラム。
Computer,
a detection means for receiving a signal generated for each of a plurality of colors and outputting the plurality of colors in a predetermined order and in a cyclical manner, detecting the timing of the start of each of the plurality of colors and outputting a synchronization signal;
an update means for receiving the signal and sequentially updating the color to be captured among the plurality of colors in response to the synchronization signal from the detection means;
and interrupting the output of the synchronization signal when the color updated by the update means does not match the color output at the timing of outputting the synchronization signal.
program.
JP2021039174A 2021-03-11 2021-03-11 Signal processing device, image reading device, information processing device, and program Active JP7608884B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021039174A JP7608884B2 (en) 2021-03-11 2021-03-11 Signal processing device, image reading device, information processing device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021039174A JP7608884B2 (en) 2021-03-11 2021-03-11 Signal processing device, image reading device, information processing device, and program

Publications (2)

Publication Number Publication Date
JP2022138981A JP2022138981A (en) 2022-09-26
JP7608884B2 true JP7608884B2 (en) 2025-01-07

Family

ID=83399463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021039174A Active JP7608884B2 (en) 2021-03-11 2021-03-11 Signal processing device, image reading device, information processing device, and program

Country Status (1)

Country Link
JP (1) JP7608884B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018191201A (en) 2017-05-10 2018-11-29 富士ゼロックス株式会社 Image processing apparatus and program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018191201A (en) 2017-05-10 2018-11-29 富士ゼロックス株式会社 Image processing apparatus and program

Also Published As

Publication number Publication date
JP2022138981A (en) 2022-09-26

Similar Documents

Publication Publication Date Title
CN102396214B (en) Image reading device
JP2013157922A (en) Image reading apparatus and white reference data abnormality determination program
US20110228349A1 (en) Image reading apparatus
JP6361222B2 (en) Signal processing apparatus, image reading apparatus, information processing apparatus, and program
JP7608884B2 (en) Signal processing device, image reading device, information processing device, and program
JP6376882B2 (en) Image reading apparatus, control method therefor, program, and storage medium
US8687250B2 (en) Image reading apparatus and image control method of image reading apparatus, and storage medium
US20240283880A1 (en) Medium conveying apparatus for generating image based on pulse signal whose cycle varies according to rotation of dc motor
US9210289B2 (en) Image reading apparatus and multifunctional device
JP2023129915A (en) Image processing device, image processing method, and program
EP1793578B1 (en) Image reading method and image reading apparatus
US9485381B1 (en) Scanner interface and protocol
JP2014064073A (en) Image reading device, image forming device, image reading method, and image forming method
US10212303B2 (en) Scanner
US11212414B2 (en) Image reading apparatus and image reading method
JP6323002B2 (en) Image reading device
JP6364865B2 (en) Signal processing apparatus, image reading apparatus, information processing apparatus, and program
JP5789989B2 (en) Image reading apparatus and image reading control method
US11877046B2 (en) Endoscope, driving method, and endoscope system
JP2024104560A (en) Image reader
JP6365037B2 (en) Image reading apparatus, image forming apparatus, and program
JP4076205B2 (en) Image forming apparatus
US9030681B2 (en) Methods and devices for identifying devices coupled to a data processing apparatus
JP2016115998A (en) Image reading device, control method thereof, and program
JP2016010030A (en) Image reader and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240226

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241004

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20241015

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20241105

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241202

R150 Certificate of patent or registration of utility model

Ref document number: 7608884

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150