JP2020198558A - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP2020198558A
JP2020198558A JP2019103979A JP2019103979A JP2020198558A JP 2020198558 A JP2020198558 A JP 2020198558A JP 2019103979 A JP2019103979 A JP 2019103979A JP 2019103979 A JP2019103979 A JP 2019103979A JP 2020198558 A JP2020198558 A JP 2020198558A
Authority
JP
Japan
Prior art keywords
image
line
abnormal
unit
image processing
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.)
Granted
Application number
JP2019103979A
Other languages
Japanese (ja)
Other versions
JP7298312B2 (en
Inventor
拓巳 秋山
Takumi Akiyama
拓巳 秋山
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2019103979A priority Critical patent/JP7298312B2/en
Publication of JP2020198558A publication Critical patent/JP2020198558A/en
Application granted granted Critical
Publication of JP7298312B2 publication Critical patent/JP7298312B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Facsimile Heads (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

To provide an image processing apparatus, an image processing method, and a program that can appropriately detect an abnormal image included in a read image transferred to the next stage due to an abnormality in a transfer clock.SOLUTION: An image processing circuit comprises: a phase synchronization circuit that generates a reference clock; and an abnormality detection unit that detects a LSYNC signal indicating line synchronization that is generated based on the reference clock and is a control signal for transferring read image data to the next stage, a lock signal that indicates the lock state of the phase synchronization circuit, a register that counts and holds the number of transferred lines, and the presence or absence of the occurrence of an abnormal image, and the image processing circuit specifies and detects a line on which the abnormal image occurs.SELECTED DRAWING: Figure 3

Description

本願は、画像処理装置、画像処理方法、及びプログラムに関する。 The present application relates to an image processing apparatus, an image processing method, and a program.

従来、読み取った原稿画像等の画像を複数のユニット間で転送する画像処理装置では、送信側ユニットで転送する画像の各ラインの先端又は後端の少なくとも一方にラベルデータを付加し、受信側ユニットでラベルデータに基づき、転送中の異常の検出や異常画像の補正を行う技術が知られている。 Conventionally, in an image processing device that transfers an image such as a scanned original image between a plurality of units, label data is added to at least one of the front end or the rear end of each line of the image to be transferred by the transmitting side unit, and the receiving side unit. There is known a technique for detecting an abnormality during transfer and correcting an abnormal image based on the label data.

また、受信画像の各ラインで抽出したスジ等の異常の候補画素情報に基づき、受信画像に含まれる異常画像を検出し、補正する技術が開示されている(例えば、特許文献1参照)。 Further, a technique for detecting and correcting an abnormal image included in a received image based on candidate pixel information of an abnormality such as a streak extracted in each line of the received image is disclosed (see, for example, Patent Document 1).

しかしながら、特許文献1の技術では、受信画像に含まれる異常画像を適切に検出できない場合があった。 However, with the technique of Patent Document 1, there are cases where an abnormal image included in a received image cannot be detected appropriately.

開示の技術は、受信画像に含まれる異常画像を適切に検出することを課題とする。 An object of the disclosed technique is to appropriately detect an abnormal image included in a received image.

開示の技術の一態様に係る画像処理装置は、位相同期回路のロック状態に基づいて、受信画像における異常ライン画像を検出する異常検出部を備える。 The image processing apparatus according to one aspect of the disclosed technique includes an abnormality detection unit that detects an abnormality line image in a received image based on a locked state of a phase-locked loop.

開示の技術によれば、受信画像に含まれる異常画像を適切に検出することができる。 According to the disclosed technique, an abnormal image included in the received image can be appropriately detected.

実施形態に係る画像処理装置の全体構成例を示すブロック図である。It is a block diagram which shows the whole structure example of the image processing apparatus which concerns on embodiment. 実施形態に係るスキャナ及び画像処理ASICの構成例を示すブロック図である。It is a block diagram which shows the structural example of the scanner and the image processing ASIC which concerns on embodiment. 第1の実施形態に係る画像処理回路の機能構成例を示すブロック図である。It is a block diagram which shows the functional structure example of the image processing circuit which concerns on 1st Embodiment. スキャナから画像処理ASICへの画像転送時の信号例を示す図であり、(a)は異常画像が発生していない場合を示す図、(b)は異常画像が発生した場合を示す図である。It is a figure which shows the signal example at the time of image transfer from a scanner to an image processing ASIC, (a) is a figure which shows the case where an abnormal image has occurred, and (b) is a figure which shows the case where an abnormal image has occurred. .. 第1の実施形態に係る異常検出処理例を示す図である。It is a figure which shows the abnormality detection processing example which concerns on 1st Embodiment. 第1の実施形態に係る異常検出処理例を示すフローチャートである。It is a flowchart which shows the abnormality detection processing example which concerns on 1st Embodiment. 第1の実施形態に係る補正処理例を示す図であり、(a)はローカルメモリに蓄積された受信画像を示す図、(b)は異常ライン画像と近傍のライン画像を示す図である。It is a figure which shows the correction processing example which concerns on 1st Embodiment, (a) is a figure which shows the received image stored in the local memory, (b) is the figure which shows the abnormal line image and the vicinity line image. 第2の実施形態に係る画像処理回路の機能構成例を示すブロック図である。It is a block diagram which shows the functional structure example of the image processing circuit which concerns on 2nd Embodiment.

以下、図面を参照して発明を実施するための形態について説明する。各図面において、同一の構成部分には同一符号を付し、重複した説明を省略する場合がある。 Hereinafter, modes for carrying out the invention will be described with reference to the drawings. In each drawing, the same components may be designated by the same reference numerals and duplicate description may be omitted.

[第1の実施形態]
<第1の実施形態に係る画像処理装置1の構成>
(画像処理装置1の全体構成)
図1は、実施形態に係る画像処理装置1の全体構成の一例を説明するブロック図である。図1に示すように、画像処理装置1は、スキャナ2と、画像処理ASIC(Application Specific Integrated Circuit)3と、記憶部であるローカルメモリ4と、コントローラASIC5と、チップセット6と、CPU(Central Processing Unit)7と、記憶部であるメインメモリ8とを備える。ここで、ローカルメモリ4は画像蓄積部の一例である。
[First Embodiment]
<Structure of image processing device 1 according to the first embodiment>
(Overall configuration of image processing device 1)
FIG. 1 is a block diagram illustrating an example of the overall configuration of the image processing device 1 according to the embodiment. As shown in FIG. 1, the image processing device 1 includes a scanner 2, an image processing ASIC (Application Specific Integrated Circuit) 3, a local memory 4 as a storage unit, a controller ASIC 5, a chipset 6, and a CPU (Central). It includes a Processing Unit) 7 and a main memory 8 which is a storage unit. Here, the local memory 4 is an example of an image storage unit.

これらのうち、スキャナ2は、原稿画像を読み取り、読み取った画像データを画像処理ASIC3に転送する。 Of these, the scanner 2 reads the original image and transfers the read image data to the image processing ASIC3.

画像処理ASIC3は、スキャナ2により読み取られ、スキャナ2から受信した画像(以下、受信画像という)に対して種々の画像処理を実行し、処理後の受信画像をコントローラASIC5に出力する。また、画像処理ASIC3は、スキャナ2が同時に読み取った原稿の表面及び裏面のそれぞれの受信画像を、コピー用画像バッファ及び符号バッファとして用いられるローカルメモリ4に展開し、蓄積させる。そして、蓄積された原稿の表面及び裏面の受信画像を順に読み出して、コントローラASIC5に転送する。 The image processing ASIC 3 executes various image processing on the image read by the scanner 2 and received from the scanner 2 (hereinafter referred to as a received image), and outputs the processed received image to the controller ASIC 5. Further, the image processing ASIC 3 expands and stores the received images on the front surface and the back surface of the document simultaneously read by the scanner 2 in the local memory 4 used as the copy image buffer and the code buffer. Then, the received images on the front surface and the back surface of the accumulated document are read out in order and transferred to the controller ASIC5.

コントローラASIC5は、チップセット6を介してメインメモリ8へ受信画像を展開する。チップセット6は、CPU7とともに用いられ、コントローラASIC5及びCPU7によるメインメモリ8へのアクセスを制御する。 The controller ASIC 5 expands the received image to the main memory 8 via the chipset 6. The chipset 6 is used together with the CPU 7 to control access to the main memory 8 by the controllers ASIC 5 and the CPU 7.

(スキャナ2及び画像処理ASIC3の構成)
次に、図2は、スキャナ2及び画像処理ASIC3の構成の一例の詳細を説明するブロック図である。図2に示すように、スキャナ2は、CCD(Charge Coupled Device)21と、A/D(Analog/Digital)変換回路22と、LVDS(Low Voltage Differential Signaling)トランスミッタ23とを備える。
(Configuration of Scanner 2 and Image Processing ASIC3)
Next, FIG. 2 is a block diagram illustrating details of an example of the configuration of the scanner 2 and the image processing ASIC3. As shown in FIG. 2, the scanner 2 includes a CCD (Charge Coupled Device) 21, an A / D (Analog / Digital) conversion circuit 22, and an LVDS (Low Voltage Differential Signaling) transmitter 23.

これらのうち、CCD21は、受光した光量に応答した電圧信号を出力する受光素子が1次元、又は2二次元に配列して構成され、各受光素子における原稿に応じたアナログ電圧信号をA/D変換回路22に出力する。 Of these, the CCD 21 is configured by arranging light-receiving elements that output voltage signals in response to the amount of light received in one-dimensional or two-dimensional arrangement, and A / D analog voltage signals corresponding to the original in each light-receiving element. Output to the conversion circuit 22.

A/D変換回路22は、CCD21から入力したアナログ電圧信号をデジタル電圧信号に変換してLVDSトランスミッタ23に出力する電気回路である。 The A / D conversion circuit 22 is an electric circuit that converts an analog voltage signal input from the CCD 21 into a digital voltage signal and outputs it to the LVDS transmitter 23.

LVDSトランスミッタ23は、A/D変換回路22から入力したデジタル電圧信号をシリアル化してエンコードしたLVDS信号を、画像処理ASIC3に出力する電子回路である。 The LVDS transmitter 23 is an electronic circuit that outputs an LVDS signal obtained by serializing and encoding a digital voltage signal input from the A / D conversion circuit 22 to an image processing ASIC3.

画像処理ASIC3は、図2に示すように、LVDSレシーバ31と、画像処理回路32と、画像転送I/F(Interface)部33とを備える。 As shown in FIG. 2, the image processing ASIC 3 includes an LVDS receiver 31, an image processing circuit 32, and an image transfer I / F (Interface) unit 33.

これらのうち、LVDSレシーバ31は、スキャナ2のLVDSトランスミッタ23から入力したLVDS信号をデコードした受信画像を、画像処理回路32に出力する電子回路である。また、LVDSレシーバ31は、LVDSトランスミッタ23からLVDS信号を受信する際に、受信処理を基準クロックに同期させるPLL(Phase Locked Loop;位相同期回路)を備え、PLLのロック状態を示すロック信号を画像処理回路32に出力する。 Of these, the LVDS receiver 31 is an electronic circuit that outputs a received image obtained by decoding an LVDS signal input from the LVDS transmitter 23 of the scanner 2 to the image processing circuit 32. Further, the LVDS receiver 31 includes a PLL (Phase Locked Loop; phase-locked loop) that synchronizes reception processing with a reference clock when receiving an LVDS signal from the LVDS transmitter 23, and images a lock signal indicating a locked state of the PLL. Output to the processing circuit 32.

ここで、PLLのロックとは、参照する基準クロックに対してPLLの出力信号が同期していることをいう。なお、以下では、PLLがロックしていない状態(同期がとれていない状態)を、「PLLロックが外れた状態」という場合がある。 Here, the lock of the PLL means that the output signal of the PLL is synchronized with the reference clock to be referred to. In the following, the state in which the PLL is not locked (the state in which the synchronization is not achieved) may be referred to as the “state in which the PLL lock is released”.

画像処理回路32は、LVDSレシーバ31から受信画像の画像データ、ロック信号等を入力し、受信画像に対して後述する各種処理を行う。そして、処理後の受信画像を、画像転送I/F33を介してコントローラASIC5に出力する電子回路である。また、画像処理回路32は、速度変換用のFIFO(First In First Out)回路を備え、FIFO回路を用いて、LVDSレシーバ31から入力した受信画像を、画像処理回路32で用いられる内部クロックに同期できるように構成されている。 The image processing circuit 32 inputs image data, a lock signal, and the like of the received image from the LVDS receiver 31, and performs various processes described later on the received image. Then, it is an electronic circuit that outputs the received image after processing to the controller ASIC5 via the image transfer I / F33. Further, the image processing circuit 32 includes a FIFO (First In First Out) circuit for speed conversion, and uses the FIFO circuit to synchronize the received image input from the LVDS receiver 31 with the internal clock used in the image processing circuit 32. It is configured so that it can be done.

<画像処理回路32の機能構成>
次に、図3は、画像処理装置1における画像処理回路32の機能構成の一例を説明するブロック図である。図3に示すように、画像処理回路32は、異常検出部321と、FIFO処理部322と画像処理部323と、ローカルメモリアクセス制御部324と、画像補正部325とを備える。
<Functional configuration of image processing circuit 32>
Next, FIG. 3 is a block diagram illustrating an example of the functional configuration of the image processing circuit 32 in the image processing device 1. As shown in FIG. 3, the image processing circuit 32 includes an abnormality detection unit 321, a FIFO processing unit 322, an image processing unit 323, a local memory access control unit 324, and an image correction unit 325.

画像処理装置1において、異常検出部321は、LVDSレシーバ31から入力したロック信号に基づいて、受信画像における異常ライン画像を検出する。ここで、異常ライン画像とは、受信画像に含まれるライン画像のうち、異常画像を含むライン画像をいう。また、異常画像とは、受信画像において、スキャナ2から画像処理ASIC3への転送エラーにより画像データが欠落した部分や、ノイズが大きくなった部分をいう。 In the image processing device 1, the abnormality detection unit 321 detects an abnormality line image in the received image based on the lock signal input from the LVDS receiver 31. Here, the abnormal line image refers to a line image including an abnormal image among the line images included in the received image. Further, the abnormal image refers to a portion of the received image in which image data is missing due to a transfer error from the scanner 2 to the image processing ASIC3 or a portion in which noise is increased.

受信画像は、異常検出部321、FIFO処理部322、画像処理部323、及びローカルメモリアクセス制御部324を介してローカルメモリ4に蓄積される。画像補正部325は、異常検出部321による異常ライン画像の検出結果に基づき、ローカルメモリ4に蓄積された受信画像における異常画像を補正し、補正後の受信画像をコントローラASIC5に出力する。以下において、各部の詳細を説明する。 The received image is stored in the local memory 4 via the abnormality detection unit 321, the FIFO processing unit 322, the image processing unit 323, and the local memory access control unit 324. The image correction unit 325 corrects the abnormal image in the received image stored in the local memory 4 based on the detection result of the abnormal line image by the abnormality detecting unit 321 and outputs the corrected received image to the controller ASIC5. The details of each part will be described below.

異常検出部321は、内部LSYNC生成部3211と、内部FGATE生成部3212と、ラインカウント部3213と、異常ライン位置検出部3214と、異常ライン位置レジスト部3215と、異常ライン数検出部3216と、異常ライン数レジスト部3217と、レジスタ切替部3218とを備える。 The abnormality detection unit 321 includes an internal LSYNC generation unit 3211, an internal FGATE generation unit 3212, a line count unit 3213, an abnormality line position detection unit 3214, an abnormality line position resist unit 3215, an abnormality line number detection unit 3216, and the like. An abnormal number of lines The resist unit 3217 and the register switching unit 3218 are provided.

これらのうち、内部LSYNC生成部3211は、画像処理回路32に入力される入力FGATE信号のアサートを基準に、予め定められた内部LSYNC間隔設定値分だけ間隔をあけてアサートする内部LSYNC信号を生成する。 Of these, the internal LSYNC generation unit 3211 generates an internal LSYNC signal that asserts at intervals of a predetermined internal LSYNC interval set value based on the assertion of the input FGATE signal input to the image processing circuit 32. To do.

内部FGATE生成部3212は、内部LSYNC生成部3211により生成された内部LSYNC信号のアサートのタイミングに同期するように、入力FGATE信号を遅延させた内部FGATE信号を生成する。 The internal FGATE generation unit 3212 generates an internal FGATE signal in which the input FGATE signal is delayed so as to synchronize with the assert timing of the internal LSYNC signal generated by the internal LSYNC generation unit 3211.

ラインカウント部3213は、1ページ分の受信画像に含まれるライン画像のうち、画像処理回路32に入力されたライン画像のライン数をカウントする。 The line counting unit 3213 counts the number of lines of the line image input to the image processing circuit 32 among the line images included in the received image for one page.

異常ライン位置検出部3214は、ロック信号の立ち下がりタイミングに基づき、異常ライン画像のライン位置を検出する。より詳しくは、異常ライン位置検出部3214は、ロック信号の立下りタイミングにおけるラインカウント値をラインカウント部3213から取得し、このラインカウント値を異常ライン画像のライン位置情報として、異常ライン位置レジスト部3215に出力して保持させる。 The abnormal line position detection unit 3214 detects the line position of the abnormal line image based on the falling timing of the lock signal. More specifically, the abnormal line position detection unit 3214 acquires the line count value at the falling timing of the lock signal from the line count unit 3213, and uses this line count value as the line position information of the abnormal line image as the abnormal line position resist unit. Output to 3215 and hold.

異常ライン位置レジスト部3215は、複数のレジスタを含んで構成され、異常ライン位置検出部3214により検出されたライン位置情報を保持する。 The abnormal line position resist unit 3215 is configured to include a plurality of registers, and holds the line position information detected by the abnormal line position detection unit 3214.

異常ライン数検出部3216は、ロック信号の立ち上がりタイミングに基づき、異常ライン位置検出部3214により検出されたライン位置を起点とした異常ライン画像のライン数を検出する。より詳しくは、異常ライン数検出部3216は、ロック信号の立ち上がりタイミングにおけるラインカウント値をラインカウント部3213から取得する。また、異常ライン数検出部3216は、異常ライン位置レジスト部3215に保持されたライン位置情報を取得する。そして、立ち上がり時のラインカウント値からライン位置情報を減算し、この減算値を異常ライン画像のライン数情報として、異常ライン数レジスト部3217に出力して保持させる。 The abnormal line number detection unit 3216 detects the number of lines in the abnormal line image starting from the line position detected by the abnormal line position detection unit 3214 based on the rising timing of the lock signal. More specifically, the abnormal line number detection unit 3216 acquires the line count value at the rising timing of the lock signal from the line count unit 3213. Further, the abnormal line number detection unit 3216 acquires the line position information held in the abnormal line position resist unit 3215. Then, the line position information is subtracted from the line count value at the time of rising, and this subtracted value is output to the abnormal line number resist unit 3217 as the line number information of the abnormal line image and held.

異常ライン数レジスト部3217は、複数のレジスタを含んで構成され、異常ライン数検出部3216により検出されたライン数情報を保持する。 The abnormal line number resist unit 3217 is configured to include a plurality of registers, and holds the line number information detected by the abnormal line number detection unit 3216.

レジスタ切替部3218は、1ページ分の受信画像で、複数回PLLロックが外れた場合に、異常ライン位置レジスト部3215に含まれる複数のレジスタのうち、既にライン位置情報が保持されたレジスタとは別のレジスタに切り替えて、次のライン位置情報を保持させる。同様に、レジスタ切替部3218は、1ページ分の受信画像で複数回PLLロックが外れた場合に、異常ライン数レジスト部3217に含まれる複数のレジスタのうち、既にライン数情報が保持されたレジスタとは別のレジスタに切り替えて、次のライン数情報を保持させる。異常ライン位置レジスト部3215及び異常ライン数レジスト部3217のそれぞれに含まれるレジスタの数を増やせば、その分だけ検出可能な異常ライン画像の数を増やすことができるため、好適である。 The register switching unit 3218 is a received image for one page, and when the PLL lock is released a plurality of times, among the plurality of registers included in the abnormal line position resist unit 3215, the register in which the line position information is already held is the register. Switch to another register to hold the next line position information. Similarly, the register switching unit 3218 is a register in which line number information is already held among a plurality of registers included in the abnormal line number resist unit 3217 when the PLL lock is released multiple times in the received image for one page. Switch to a different register to hold the next line number information. Abnormal line position If the number of registers included in each of the resist unit 3215 and the number of abnormal lines resist unit 3217 is increased, the number of abnormal line images that can be detected can be increased accordingly, which is preferable.

FIFO処理部322は、受信画像の画像処理部323への転送速度を変換することで、画像処理部323のよる処理の動作クロックに受信画像を同期させる。 The FIFO processing unit 322 synchronizes the received image with the operation clock of the processing by the image processing unit 323 by converting the transfer speed of the received image to the image processing unit 323.

画像処理部323は、スキャナ2の読取光学系やA/D変換回路22によるA/D変換に伴う画質劣化を補正するための各種画像処理を実行する。 The image processing unit 323 executes various image processing for correcting image quality deterioration due to A / D conversion by the scanning optical system of the scanner 2 and the A / D conversion circuit 22.

ローカルメモリアクセス制御部324は、受信画像の画像データをローカルメモリ4へ蓄積させる制御を行う。 The local memory access control unit 324 controls to store the image data of the received image in the local memory 4.

画像補正部325は、異常近傍画素抽出部3251と、画像補間部3252と、補正画像出力部3253とを備える。 The image correction unit 325 includes an abnormality neighborhood pixel extraction unit 3251, an image interpolation unit 3252, and a correction image output unit 3253.

これらのうち、異常近傍画素抽出部3251は、異常ライン位置レジスト部3215を参照して異常ライン画像のライン位置情報を取得し、異常ライン数レジスト部3217を参照して異常ライン画像のライン数情報を取得する。また、異常近傍画素抽出部3251は、ローカルメモリ4に蓄積された受信画像を読み出す。 Of these, the abnormal neighborhood pixel extraction unit 3251 refers to the abnormal line position resist unit 3215 to acquire line position information of the abnormal line image, and refers to the abnormal line number resist unit 3217 to obtain line number information of the abnormal line image. To get. Further, the abnormal neighborhood pixel extraction unit 3251 reads out the received image stored in the local memory 4.

異常近傍画素抽出部3251は、受信画像を読み出す際に、異常ライン画像のライン位置情報及びライン数情報に基づき、異常ライン画像の近傍の画素データを抽出し、異常ライン画像の画素データとともに画像補間部3252に出力する。 When reading the received image, the abnormal neighborhood pixel extraction unit 3251 extracts pixel data in the vicinity of the abnormal line image based on the line position information and the number of lines information of the abnormal line image, and image interpolation together with the pixel data of the abnormal line image. Output to unit 3252.

画像補間部3252は、異常ライン画像の近傍の画素データを用いた補間処理により、異常ライン画像に含まれる異常画像を補正する。そして、補正後の画像(補正画像)を補正画像出力部3253に出力する。 The image interpolation unit 3252 corrects the abnormal image included in the abnormal line image by interpolation processing using pixel data in the vicinity of the abnormal line image. Then, the corrected image (corrected image) is output to the corrected image output unit 3253.

補正画像出力部3253は、画像補間部3252から入力した補正画像を、画像転送I/F33(図2参照)を介してコントローラASIC5に出力する。 The corrected image output unit 3253 outputs the corrected image input from the image interpolation unit 3252 to the controller ASIC5 via the image transfer I / F33 (see FIG. 2).

<第1の実施形態に係る画像処理装置1による処理>
次に、画像処理装置1による処理について、図4〜図7を参照して説明する。
<Processing by the image processing device 1 according to the first embodiment>
Next, the processing by the image processing apparatus 1 will be described with reference to FIGS. 4 to 7.

図4は、スキャナ2から画像処理ASIC3への画像転送時の信号の一例を説明する図であり、(a)は異常画像が発生していない場合を説明する図、(b)は異常画像が発生した場合を説明する図である。 4A and 4B are diagrams for explaining an example of a signal at the time of image transfer from the scanner 2 to the image processing ASIC3, FIG. 4A is a diagram for explaining a case where an abnormal image is not generated, and FIG. 4B is a diagram for explaining an abnormal image. It is a figure explaining the case which occurred.

図4において、CLOCK信号は、LVDSレシーバ31でデコードされ、画像処理回路32に入力される画像の画素クロック信号であり、ロック信号は、上述したように、LVDSレシーバ31のPLLロック状態を示す信号である。また、入力LSYNC信号は、受信画像に含まれる各ライン画像の先頭を表す信号であり、WE(Write Enable)信号は、受信画像のFIFO書込みイネーブル信号であり、DATA信号は、受信画像の画素データを示す信号である。 In FIG. 4, the CLOCK signal is a pixel clock signal of an image decoded by the LVDS receiver 31 and input to the image processing circuit 32, and the lock signal is a signal indicating the PLL lock state of the LVDS receiver 31 as described above. Is. Further, the input LSYNC signal is a signal representing the beginning of each line image included in the received image, the WE (Write Enable) signal is the FIFA write enable signal of the received image, and the DATA signal is the pixel data of the received image. It is a signal indicating.

図4(a)において、スキャナ2から画像処理ASIC3への画像転送中に、PLLロックが外れずに正常に転送が行われると、異常検出部321は、入力LSYNC信号のアサートに基づき、画像処理回路32内のカウンタを回す。そして、受信画像の画素データが有効画像領域の画素に該当する場合に、異常検出部321は、WE信号をアサートし、有効画像領域の画素データをFIFO処理部322にライトする。 In FIG. 4A, during image transfer from the scanner 2 to the image processing ASIC3, if the transfer is normally performed without releasing the PLL lock, the abnormality detection unit 321 performs image processing based on the assertion of the input LSYNC signal. Turn the counter in the circuit 32. Then, when the pixel data of the received image corresponds to the pixel of the effective image area, the abnormality detection unit 321 asserts the WE signal and writes the pixel data of the effective image area to the FIFO processing unit 322.

図4(a)に示すように、WE信号がアサートされている期間のDATA信号が、有効画像としてFIFO処理部322にライトされ、格子ハッチングで示した空転送のDATA信号は、FIFO処理部322にライトされない。このようにして、画像処理回路32は、空転送のDATA信号等の異常画像を含まない画像を、出力画像として画像転送I/F33に出力できる。 As shown in FIG. 4A, the DATA signal during the period in which the WE signal is asserted is written to the FIFO processing unit 322 as a valid image, and the blank transfer DATA signal shown by the lattice hatching is the FIFO processing unit 322. Not lighted up. In this way, the image processing circuit 32 can output an image that does not include an abnormal image such as an empty transfer DATA signal to the image transfer I / F 33 as an output image.

一方、図4(b)に示すように、スキャナ2から画像処理ASIC3への画像転送中にPLLロックが外れた場合、ロック信号がネゲートされ、PLLロックが外れている期間中、CLOCK信号は停止する。これに伴い、異常検出部321は、画像処理回路32内のカウンタを停止させる。その後、再度PLLロックされ、CLOCK信号の発振が再開されると、異常検出部321は、この再開のタイミングで画像処理回路32内のカウンタを再度回し始める。その結果、格子ハッチングで示す空転送期間中の無効画像領域の画素データがFIFO処理部322にライトされ、画像処理回路32からの出力画像に無効画像領域の画素データが異常画像として含まれる。 On the other hand, as shown in FIG. 4B, when the PLL lock is released during the image transfer from the scanner 2 to the image processing ASIC3, the lock signal is negated and the CLOCK signal is stopped during the period when the PLL lock is released. To do. Along with this, the abnormality detection unit 321 stops the counter in the image processing circuit 32. After that, when the PLL is locked again and the oscillation of the CLOCK signal is restarted, the abnormality detection unit 321 starts turning the counter in the image processing circuit 32 again at the timing of this restart. As a result, the pixel data of the invalid image region during the empty transfer period indicated by the lattice hatching is written to the FIFA processing unit 322, and the pixel data of the invalid image region is included as an abnormal image in the output image from the image processing circuit 32.

本実施形態に係る画像処理装置1は、受信画像において、このようなPLLロック外れにより発生した異常画像を含む異常ライン画像を検出する。 The image processing device 1 according to the present embodiment detects an abnormal line image including an abnormal image generated by such unlocking of the PLL in the received image.

(異常ライン画像の検出処理)
図5は、画像処理回路32による異常検出処理の一例を説明する図である。以下、図3に示した画像処理回路32の機能構成のブロック図を適宜参照しながら説明する。
(Abnormal line image detection processing)
FIG. 5 is a diagram illustrating an example of abnormality detection processing by the image processing circuit 32. Hereinafter, the block diagram of the functional configuration of the image processing circuit 32 shown in FIG. 3 will be described with reference to the appropriate reference.

図5において、入力FGATE信号は、受信画像における1ページ分の有効期間を表す信号であり、入力LSYNC信号は、上述したように、受信画像に含まれる各ライン画像の先頭を表す信号である。 In FIG. 5, the input FGATE signal is a signal representing the validity period of one page in the received image, and the input LSYNC signal is a signal representing the beginning of each line image included in the received image, as described above.

PLLロックの外れるタイミングが、入力LSYNC信号のアサートタイミングを跨ぐと、LVDSレシーバ31は、入力LSYNC信号を受信できず、図5に一点鎖線の丸51で示したように1ライン分の欠落が生じる。 If the timing at which the PLL lock is released straddles the assert timing of the input LSYNC signal, the LVDS receiver 31 cannot receive the input LSYNC signal, and one line is missing as shown by the alternate long and short dash line 51 in FIG. ..

そのため、実施形態では、内部LSYNC生成部3211により内部LSYNC信号を生成し、また、内部FGATE生成部3212により内部FGATE信号を生成し、これらを受信画像の同期信号として用いることで、入力LSYNC信号の欠落の影響を受けないようにしている。 Therefore, in the embodiment, the internal LSYNC generation unit 3211 generates the internal LSYNC signal, and the internal FGATE generation unit 3212 generates the internal FGATE signal, and these are used as the synchronization signal of the received image to generate the input LSYNC signal. I try not to be affected by the omission.

図5に示すように、内部FGATE信号は、入力FGATE信号のアサートのタイミング52に対して少し遅延したタイミング52aでアサートされるように生成される。内部LSYNC信号は、入力LSYNC信号のアサートのタイミング53に対して少し遅延したタイミング53aでアサートされるように、また、内部FGATE信号に同期して生成される。図5の内部LSYNC信号において矢印で示した期間54は、予め定められた内部LSYNC信号の間隔を示し、この間隔に応じて内部LSYNC信号が生成される。 As shown in FIG. 5, the internal FGATE signal is generated so as to be asserted at a timing 52a that is slightly delayed from the timing 52 of the assertion of the input FGATE signal. The internal LSYNC signal is generated so that it is asserted at a timing 53a slightly delayed from the assert timing 53 of the input LSYNC signal, and in synchronization with the internal FGATE signal. The period 54 indicated by an arrow in the internal LSYNC signal of FIG. 5 indicates a predetermined interval of the internal LSYNC signal, and the internal LSYNC signal is generated according to this interval.

内部FGATE信号のアサートのタイミング52aで、ラインカウント部3213は、内部LSYNC信号のアサートに応答したラインカウントを開始し、ラインカウント値はインクリメントされる。そして、内部FGATE信号のネゲートのタイミング55で、ラインカウント部3213はリセットされ、ラインカウント値は0になる。 At the timing 52a of the assertion of the internal FGATE signal, the line count unit 3213 starts the line count in response to the assertion of the internal LSYNC signal, and the line count value is incremented. Then, at the timing 55 of negating the internal FGATE signal, the line count unit 3213 is reset and the line count value becomes 0.

異常ライン位置検出部3214は、内部FGATEのアサート期間中にロック信号の立ち下がりを検出すると、立ち下がりタイミングにおけるラインカウント値をラインカウント部3213から取得する。そして、取得したラインカウント値を異常ライン位置レジスト部3215に出力し、ライン位置情報として保持させる。 When the abnormal line position detection unit 3214 detects the fall of the lock signal during the assert period of the internal FGATE, the abnormal line position detection unit 3214 acquires the line count value at the fall timing from the line count unit 3213. Then, the acquired line count value is output to the abnormal line position resist unit 3215 and held as line position information.

図5の例では、異常ライン位置検出部3214は、ロック信号の立ち下がりのタイミング56で、ラインカウント値「1」を取得し、タイミング57で、異常ライン位置レジスト部3215に出力して、ライン位置情報としてラインカウント値「1」を保持させている。また、異常ライン位置検出部3214は、ロック信号の立ち下がりのタイミング58で、ラインカウント値「3」を取得し、タイミング59で、異常ライン位置レジスト部3215に出力して、ライン位置情報としてラインカウント値「3」を保持させている。 In the example of FIG. 5, the abnormal line position detection unit 3214 acquires the line count value “1” at the timing 56 of the fall of the lock signal, outputs the line count value “1” to the abnormal line position resist unit 3215 at the timing 57, and outputs the line. The line count value "1" is held as the position information. Further, the abnormal line position detection unit 3214 acquires the line count value “3” at the timing 58 of the fall of the lock signal, outputs the line count value “3” to the abnormal line position resist unit 3215 at the timing 59, and outputs the line as line position information. The count value "3" is held.

一方、異常ライン数検出部3216は、内部FGATEのアサート期間中にロック信号の立ち上がりを検出すると、立ち上がりタイミングにおけるラインカウント値をラインカウント部3213から取得し、また、異常ライン位置レジスト部3215に保持された異常ライン画像のライン位置情報を取得する。そして、取得したラインカウント値からライン位置情報を減算してライン数情報を取得し、異常ライン数レジスト部3217に出力して保持させる。 On the other hand, when the abnormal line number detection unit 3216 detects the rise of the lock signal during the assert period of the internal FGATE, the line count value at the rise timing is acquired from the line count unit 3213 and held in the abnormal line position resist unit 3215. Acquires the line position information of the abnormal line image. Then, the line position information is subtracted from the acquired line count value to acquire the line number information, which is output to the abnormal line number resist unit 3217 and held.

図5の例では、異常ライン数検出部3216は、ロック信号の立ち上がりのタイミング60で、ラインカウント値「1」を取得し、また、異常ライン位置レジスト部3215に保持された異常ライン画像のライン位置情報「1」を取得する。そして、カウント値「1」からライン位置情報「1」を減算してライン数情報「0」を取得し、タイミング61で異常ライン数レジスト部3217に出力して保持させている。 In the example of FIG. 5, the abnormal line number detection unit 3216 acquires the line count value “1” at the rising timing 60 of the lock signal, and the line of the abnormal line image held in the abnormal line position resist unit 3215. Acquire the position information "1". Then, the line position information "1" is subtracted from the count value "1" to acquire the line number information "0", which is output to the abnormal line number resist unit 3217 at the timing 61 and held.

また、異常ライン位置検出部3214は、ロック信号の立ち上がりのタイミング62で、ラインカウント値「4」を取得し、異常ライン位置レジスト部3215に保持された異常ライン画像のライン位置情報「3」を取得する。そして、カウント値「4」からライン位置情報「3」を減算してライン数情報「1」を取得し、タイミング63で異常ライン数レジスト部3217に出力して保持させている。 Further, the abnormal line position detection unit 3214 acquires the line count value “4” at the rising timing 62 of the lock signal, and obtains the line position information “3” of the abnormal line image held in the abnormal line position resist unit 3215. get. Then, the line position information "3" is subtracted from the count value "4" to acquire the line number information "1", which is output to the abnormal line number resist unit 3217 at the timing 63 and held.

異常ライン位置レジスト部3215に保持されたライン位置情報と、異常ライン数レジスト部3217に保持されたライン数情報から、受信画像におけるどの位置に何ラインに亘って異常ライン画像が発生したかを把握することができる。 Abnormal line position From the line position information held in the resist unit 3215 and the line number information held in the abnormal line number resist unit 3217, it is possible to grasp which position and how many lines the abnormal line image has occurred in the received image. can do.

次に、図6は画像処理回路32による異常検出処理の一例を示すフローチャートである。 Next, FIG. 6 is a flowchart showing an example of abnormality detection processing by the image processing circuit 32.

まず、ステップS61において、異常検出部321は、内部FGATE信号がアサートしているか否かを判定する。 First, in step S61, the abnormality detection unit 321 determines whether or not the internal FGATE signal is asserted.

ステップS61で、内部FGATE信号がアサートしていないと判定された場合(ステップS61、No)、画像処理回路32は処理を終了する。 When it is determined in step S61 that the internal FGATE signal is not asserted (step S61, No), the image processing circuit 32 ends the process.

一方、ステップS61で、内部FGATE信号がアサートしていると判定された場合(ステップS61、Yes)、ステップS62において、異常ライン位置検出部3214は、ロック信号の立ち下がりを検知する。 On the other hand, when it is determined in step S61 that the internal FGATE signal is asserted (step S61, Yes), in step S62, the abnormal line position detection unit 3214 detects the fall of the lock signal.

ステップS62で、ロック信号の立ち下がりが検知された場合(ステップS62、Yes)、ステップS63において、異常ライン位置検出部3214は、ラインカウント値をラインカウント部3213から取得し、異常ライン位置レジスト部3215に出力する。 When the falling edge of the lock signal is detected in step S62 (step S62, Yes), in step S63, the abnormal line position detection unit 3214 acquires the line count value from the line count unit 3213, and the abnormal line position resist unit. Output to 3215.

続いて、ステップS64において、異常ライン位置レジスト部3215は、入力したラインカウント値を、異常ライン画像のライン位置情報として保持する。その後、ステップS61に移行し、ステップS61以降の処理が再度実行される。 Subsequently, in step S64, the abnormal line position resist unit 3215 holds the input line count value as the line position information of the abnormal line image. After that, the process proceeds to step S61, and the processes after step S61 are executed again.

一方、ステップS62で、ロック信号の立ち下がりが検知されなかった場合(ステップS62、No)、ステップS65において、異常ライン数検出部3216は、ロック信号の立ち上がりを検知する。 On the other hand, when the falling edge of the lock signal is not detected in step S62 (step S62, No), the abnormal line number detection unit 3216 detects the rising edge of the lock signal in step S65.

ステップS65で、ロック信号の立ち上がりが検知された場合(ステップS65、Yes)、ステップS66において、異常ライン数検出部3216は、ラインカウント値をラインカウント部3213から取得する。 When the rising edge of the lock signal is detected in step S65 (step S65, Yes), in step S66, the abnormal line number detection unit 3216 acquires the line count value from the line count unit 3213.

続いて、ステップS67において、また、異常ライン数検出部3216は、異常ライン位置レジスト部3215に保持された異常ライン画像のライン位置情報を取得する。 Subsequently, in step S67, the abnormal line number detection unit 3216 acquires the line position information of the abnormal line image held by the abnormal line position resist unit 3215.

続いて、ステップS68において、異常ライン数検出部3216は、ラインカウント値からライン位置情報を減算し、減算値を異常ライン数レジスト部3217に出力する。 Subsequently, in step S68, the abnormal line number detection unit 3216 subtracts the line position information from the line count value, and outputs the subtracted value to the abnormal line number resist unit 3217.

続いて、ステップS69において、異常ライン数レジスト部3217は入力した減算値を異常ライン画像のライン数情報として保持する。 Subsequently, in step S69, the abnormal line number resist unit 3217 holds the input subtraction value as the line number information of the abnormal line image.

続いて、ステップS70において、レジスタ切替部3218は、異常ライン位置レジスト部3215に含まれるレジスタと、異常ライン位置レジスト部3215に含まれるレジスタのそれぞれを切り替える。その後、ステップS61に移行し、ステップS61以降の処理が再度実行される。 Subsequently, in step S70, the register switching unit 3218 switches between the register included in the abnormal line position resist unit 3215 and the register included in the abnormal line position resist unit 3215. After that, the process proceeds to step S61, and the processes after step S61 are executed again.

一方、ステップS65で、ロック信号の立ち上がりが検知されなかった場合(ステップS65、No)、ステップS61に移行し、ステップS61以降の処理が再度実行される。 On the other hand, if the rise of the lock signal is not detected in step S65 (step S65, No), the process proceeds to step S61, and the processes after step S61 are executed again.

このようにして、画像処理回路32は、受信画像に含まれる異常ライン画像のライン位置及びライン数を検出することができる。 In this way, the image processing circuit 32 can detect the line position and the number of lines of the abnormal line image included in the received image.

(異常ライン画像の補正処理)
次に、図7は、画像処理回路32による補正処理の一例を説明する図であり、(a)はローカルメモリ4に蓄積された受信画像を示す図、(b)は(a)における異常ライン画像100とその近傍のライン画像を示す図である。
(Correction processing of abnormal line image)
Next, FIG. 7 is a diagram illustrating an example of correction processing by the image processing circuit 32, (a) is a diagram showing a received image stored in the local memory 4, and (b) is an abnormality line in (a). It is a figure which shows the line image of image 100 and its vicinity.

図7(a)において、図中に示された各格子は受信画像における画素を示し、斜線ハッチングで示されている部分は、異常ライン画像100、101及び102を示している。異常ライン画像100及び101のそれぞれは、ライン数が「1」のものであり、異常ライン画像102は、ライン数が「2」のものである。 In FIG. 7A, each grid shown in the figure shows a pixel in the received image, and the portion shown by the shaded hatching shows the abnormal line images 100, 101 and 102. Each of the abnormal line images 100 and 101 has a number of lines of "1", and the abnormal line image 102 has a number of lines of "2".

画像補正部325における異常近傍画素抽出部3251は、異常ライン位置レジスト部3215及び異常ライン数レジスト部3217を参照して、異常ライン画像のライン位置情報及びライン数情報を取得する。そして、これらの情報に基づき、ローカルメモリ4に蓄積された受信画像における異常ライン画像100、101及び102と、その近傍の画像データを抽出し、画像補間部3252に出力する。 The abnormal neighborhood pixel extraction unit 3251 in the image correction unit 325 acquires line position information and line number information of the abnormal line image by referring to the abnormal line position resist unit 3215 and the abnormal line number resist unit 3217. Then, based on this information, the abnormal line images 100, 101 and 102 in the received image stored in the local memory 4 and the image data in the vicinity thereof are extracted and output to the image interpolation unit 3252.

図7(b)におけるライン画像103は、負の副走査方向(図7(a)参照)において異常ライン画像100に隣接するライン画像であり、ライン画像105は、正の副走査方向において異常ライン画像100に隣接するライン画像である。異常近傍画素抽出部3251は、異常ライン画像100の近傍の画像データとして、ライン画像103及び105を抽出する。 The line image 103 in FIG. 7B is a line image adjacent to the abnormal line image 100 in the negative sub-scanning direction (see FIG. 7A), and the line image 105 is an abnormal line in the positive sub-scanning direction. It is a line image adjacent to the image 100. The anomaly neighborhood pixel extraction unit 3251 extracts line images 103 and 105 as image data in the vicinity of the anomaly line image 100.

画像補間部3252は、異常ライン画像100に含まれる注目画素104の近傍画素A〜Dの画素データを用いて、バイリニア補間方式に基づき、次の(1)式を用いて、注目画素104の画素データを算出する。
Dp=(1−α)・(1−α)Da+α・(1−β)・Db
+(1−α)・β・Dc+α・β・Dd ・・・(1)
ここで、(1)式のα、βはそれぞれ重み付け係数である。
The image interpolation unit 3252 uses the pixel data of the nearby pixels A to D of the pixel of interest 104 included in the abnormal line image 100, and uses the following equation (1) based on the bilinear interpolation method to obtain the pixel of the pixel of interest 104. Calculate the data.
Dp = (1-α) ・ (1-α) Da + α ・ (1-β) ・ Db
+ (1-α) ・ β ・ Dc + α ・ β ・ Dd ・ ・ ・ (1)
Here, α and β in Eq. (1) are weighting coefficients, respectively.

画像補間部3252は、注目画素104の画素データを、(1)式で算出された画素データDpに置き換える。画像補間部3252は、このような処理を、図7(a)に示した主走査方向に沿って、受信画像の各画素に対して順番に実行することにより、異常ライン画像100に含まれる全画素の画素データを画素データDpに置き換え、異常ライン画像100を補正することができる。 The image interpolation unit 3252 replaces the pixel data of the pixel of interest 104 with the pixel data Dp calculated by the equation (1). The image interpolation unit 3252 executes such processing in order for each pixel of the received image along the main scanning direction shown in FIG. 7A, so that all of the abnormal line image 100 is included. The pixel data of the pixels can be replaced with the pixel data Dp, and the abnormal line image 100 can be corrected.

なお、上述した例ではバイリニア補間方式を説明したが、これに限定されるものではなく、スプライン補間方式等の他の方式を用いてよい。また、上述した例では、副走査方向の正及び負方向の1ラインずつのライン画像を用いた補正を説明したが、これに限定されるものではなく、副走査方向の正及び負のそれぞれの方向における1ライン以上のライン画像を用いて補間を行ってもよい。さらに、注目画素104近傍のA〜Dの4画素を用いた補間に限定されず、注目画素104近傍のさらに多くの画素データを用いてもよい。広い範囲の画素データを用いると、高精細な補間処理が可能となるため、好適である。 Although the bilinear interpolation method has been described in the above-mentioned example, the method is not limited to this, and other methods such as the spline interpolation method may be used. Further, in the above-mentioned example, the correction using the line image of one line each in the positive and negative directions in the sub-scanning direction has been described, but the correction is not limited to this, and each of the positive and negative lines in the sub-scanning direction is described. Interpolation may be performed using a line image of one or more lines in a direction. Further, the interpolation is not limited to the interpolation using four pixels A to D in the vicinity of the pixel of interest 104, and more pixel data in the vicinity of the pixel of interest 104 may be used. It is preferable to use a wide range of pixel data because high-definition interpolation processing becomes possible.

異常ライン画像102のように、2ライン以上に亘る異常ライン画像の場合でも同様に、
副走査方向の正及び負のそれぞれの方向において、異常ライン画像102に隣接する1ライン以上のライン画像の画素データを用いて、異常ライン画像102に含まれる全画素の画素データを画素データDpに置き換え、異常ライン画像102を補正することができる。
Similarly, in the case of an abnormal line image extending over two or more lines such as the abnormal line image 102, the same applies.
Using the pixel data of one or more line images adjacent to the abnormal line image 102 in each of the positive and negative directions of the sub-scanning direction, the pixel data of all the pixels included in the abnormal line image 102 is converted into pixel data Dp. It can be replaced and the abnormal line image 102 can be corrected.

<作用効果>
MFP(Multifunction Peripheral/Printer/Product)やプリンタ等の画像処理装置において、スキャナ2で原稿を読み取って画像処理ASIC3へ画像転送している際に、読み取った画像に横スジが発生する場合があった。
<Effect>
In an image processing device such as an MFP (Multifunction Peripheral / Printer / Product) or a printer, when a document is read by a scanner 2 and transferred to an image processing ASIC3, horizontal streaks may occur in the read image. ..

発明者らの解析の結果、LVDS転送される画像データを受信する側の画像処理ASIC3において、静電気等の外的要因でLVDSレシーバ31のPLLロックが外れることが原因の1つとなり、横スジが発生することが分かった。 As a result of the analysis by the inventors, one of the causes is that the PLL lock of the LVDS receiver 31 is released due to an external factor such as static electricity in the image processing ASIC3 on the side receiving the image data transferred by LVDS, resulting in horizontal streaks. It turned out to occur.

従来技術では、PLLロックが外れたタイミングによって、ライン画像の先端側または後端側の画像データが欠落するため、異常検出で用いるラベルデータを取得できず、異常検出を適切に行えなくなる場合がある。 In the conventional technique, since the image data on the front end side or the rear end side of the line image is lost depending on the timing when the PLL lock is released, the label data used for the abnormality detection cannot be acquired, and the abnormality detection may not be performed properly. ..

本実施形態では、異常検出部321は、LVDSレシーバ31から入力したロック信号に基づいて、受信画像に含まれるライン画像のうち、異常画像を含む異常ライン画像を検出する。ロック信号に基づくため、受信画像において、PLLロック外れに起因する異常ライン画像を適切に検出することができる。また、異常検出部321により検出された異常ライン画像を適切に補正することで、正常な画像を得ることができる。 In the present embodiment, the abnormality detection unit 321 detects the abnormality line image including the abnormality image among the line images included in the received image based on the lock signal input from the LVDS receiver 31. Since it is based on the lock signal, it is possible to appropriately detect an abnormal line image caused by unlocking the PLL in the received image. Further, a normal image can be obtained by appropriately correcting the abnormal line image detected by the abnormality detecting unit 321.

また、本実施形態では、異常検出部321は、ロック信号の立ち下がりタイミングに基づき、異常ライン画像の受信画像におけるライン位置を検出し、また、ライン位置を起点とした異常ライン画像のライン数を検出する。ライン位置とともにライン数を検出するため、複数ラインに跨った異常ライン画像であっても検出することができる。 Further, in the present embodiment, the abnormality detection unit 321 detects the line position in the received image of the abnormality line image based on the falling timing of the lock signal, and determines the number of lines in the abnormality line image starting from the line position. To detect. Since the number of lines is detected together with the line position, even an abnormal line image straddling a plurality of lines can be detected.

また、画像データに基づき異常ライン画像を検出すると、CRC(Cyclic Redundancy Check)確認回路や8b10b復号回路等を備えることで回路規模が大きくなる場合があるが、本実施形態では、ロック信号に基づき異常ライン画像を検出するため、検出回路の規模を小さくすることができる。 Further, when an abnormal line image is detected based on the image data, the circuit scale may be increased by providing a CRC (Cyclic Redundancy Check) confirmation circuit, an 8b10b decoding circuit, or the like, but in the present embodiment, the abnormality is based on the lock signal. Since the line image is detected, the scale of the detection circuit can be reduced.

さらに、本実施形態では、1ページ分の受信画像を蓄積するローカルメモリ4を備え、ローカルメモリ4に蓄積された1ページ分の受信画像を読み出す際に、異常ライン画像を補正する。蓄積された受信画像に対して補正処理を行うため、異常ライン画像が複数のラインに跨って発生した場合にも、異常ライン画像を補正することができる。 Further, in the present embodiment, the local memory 4 for accumulating the received image for one page is provided, and the abnormal line image is corrected when reading the received image for one page stored in the local memory 4. Since the correction processing is performed on the accumulated received image, the abnormal line image can be corrected even when the abnormal line image occurs over a plurality of lines.

また、本実施形態では、1ページ分の受信画像に複数の異常ライン画像が含まれる場合に、異常ライン位置レジスト部3215に含まれる複数のレジスタのうち、ライン位置情報が保持されたレジスタとは別のレジスタに切り替える。また、異常ライン数レジスト部3217に含まれる複数のレジスタのうち、ライン数情報が保持されたレジスタとは別のレジスタに切り替える。これにより、1ページ分の受信画像に複数の異常ライン画像が含まれる場合にも、各異常ライン画像のライン位置及びライン数情報をレジスタに保持させ、異常ライン画像の補正処理に用いることができる。 Further, in the present embodiment, when a plurality of abnormal line images are included in the received image for one page, among the plurality of registers included in the abnormal line position resist unit 3215, the register in which the line position information is held is the register. Switch to another register. Further, among the plurality of registers included in the abnormal line number register unit 3217, the register is switched to a register different from the register in which the line number information is held. As a result, even when a plurality of abnormal line images are included in the received image for one page, the line position and the number of lines information of each abnormal line image can be held in the register and used for the correction processing of the abnormal line image. ..

[第2の実施形態]
次に、第2の実施形態に係る画像処理装置について説明する。
[Second Embodiment]
Next, the image processing apparatus according to the second embodiment will be described.

第1の実施形態では、ローカルメモリ4に受信画像を一時蓄積させ、蓄積された受信画像を読み出す際に、異常ライン画像を補正する例を説明した。 In the first embodiment, an example has been described in which a received image is temporarily stored in the local memory 4 and an abnormal line image is corrected when the stored received image is read out.

本実施形態に係る画像処理装置1aは、画像処理ASIC3がラインメモリを備える。画像処理ASIC3は、受信画像における異常ライン画像の検出を行うとともに、受信画像に含まれる各ライン画像の画像データをラインメモリに蓄積する。そして、異常ライン画像が検出された場合には、ラインメモリに蓄積された異常ライン画像を読み出し、これをリアルタイムに補正する。以下に、この詳細を説明する。 In the image processing apparatus 1a according to the present embodiment, the image processing ASIC 3 includes a line memory. The image processing ASIC3 detects an abnormal line image in the received image and stores the image data of each line image included in the received image in the line memory. Then, when an abnormal line image is detected, the abnormal line image stored in the line memory is read out and corrected in real time. The details will be described below.

本実施形態に係る画像処理装置1aは、画像処理ASIC3aを備え、画像処理ASIC3aが画像処理回路32aを備える。図8は、画像処理回路32aの機能構成の一例を説明するブロック図である。 The image processing apparatus 1a according to the present embodiment includes an image processing ASIC 3a, and the image processing ASIC 3a includes an image processing circuit 32a. FIG. 8 is a block diagram illustrating an example of the functional configuration of the image processing circuit 32a.

図8に示すように、画像処理回路32aは、ラインメモリ326と、ラインメモリアクセス制御部327とを備える。 As shown in FIG. 8, the image processing circuit 32a includes a line memory 326 and a line memory access control unit 327.

ラインメモリ326は、受信画像に含まれる各ライン画像の画像データを蓄積する。ラインメモリ326は、異常ライン画像とその近傍のライン画像を少なくとも蓄積できる蓄積容量(記憶容量)を備えている。 The line memory 326 stores the image data of each line image included in the received image. The line memory 326 has a storage capacity (storage capacity) capable of storing at least an abnormal line image and a line image in the vicinity thereof.

ラインメモリアクセス制御部327は、受信画像に含まれるライン画像の画像データをラインメモリ326に蓄積させる制御を行う。 The line memory access control unit 327 controls to store the image data of the line image included in the received image in the line memory 326.

なお、上述した例では、画像処理回路32aがラインメモリ326を備える場合を説明したが、これに限定されるものではなく、画像処理ASIC3内の他の箇所にラインメモリ326が備えられてもよい。 In the above-described example, the case where the image processing circuit 32a is provided with the line memory 326 has been described, but the present invention is not limited to this, and the line memory 326 may be provided at another location in the image processing ASIC3. ..

本実施形態によれば、異常ライン画像とその近傍のライン画像を少なくとも蓄積して異常ライン画像の補正処理を行うため、補正処理を高速に行うことができる。 According to the present embodiment, since the abnormal line image and the line image in the vicinity thereof are accumulated at least and the abnormal line image is corrected, the correction processing can be performed at high speed.

なお、これ以外の効果は、第1の実施形態で説明したものと同様であるため、重複した説明を省略する。 Since the other effects are the same as those described in the first embodiment, duplicate explanations will be omitted.

以上、実施形態について説明してきたが、本発明は、具体的に開示された上記の実施形態に限定されるものではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。 Although the embodiments have been described above, the present invention is not limited to the above-described embodiments specifically disclosed, and various modifications and changes can be made without departing from the scope of claims. is there.

実施形態では、画像処理装置としてMFPやプリンタの例を示したが、画像データとともにライン同期信号及び基準クロックを転送するライン同期転送を用いる機器にも広く適用可能である。また、実施形態では、電子回路及び電気回路等のハードウェアで各機能部を実現する例を説明したが、CPUによりソフトウェアで各機能部を実現しても良い。 In the embodiment, an example of an MFP or a printer is shown as an image processing device, but it can be widely applied to a device using line synchronous transfer that transfers a line synchronous signal and a reference clock together with image data. Further, in the embodiment, an example in which each functional unit is realized by hardware such as an electronic circuit and an electric circuit has been described, but each functional unit may be realized by software by a CPU.

また、実施形態は、画像処理方法も含む。例えば、画像処理方法は、位相同期回路のロック状態を示す信号に基づいて、受信画像における異常ライン画像を検出する工程を含む。このような画像処理方法により、上述した画像処理装置と同様の効果を得ることができる。 The embodiment also includes an image processing method. For example, the image processing method includes a step of detecting an abnormal line image in a received image based on a signal indicating a locked state of a phase-locked loop. By such an image processing method, the same effect as that of the image processing apparatus described above can be obtained.

さらに、実施形態は、プログラムも含む。例えば、プログラムは、位相同期回路のロック状態を示す信号に基づいて、受信画像における異常ライン画像を検出する処理をコンピュータに実行させる。このようなプログラムにより、上述した画像処理装置と同様の効果を得ることができる。 Further, the embodiment also includes a program. For example, the program causes a computer to perform a process of detecting an abnormal line image in a received image based on a signal indicating a locked state of a phase-locked loop. With such a program, the same effect as that of the image processing apparatus described above can be obtained.

また、上記で説明した実施形態の各機能は、一又は複数の処理回路によって実現することが可能である。ここで、本明細書における「処理回路」とは、電子回路により実装されるプロセッサのようにソフトウェアによって各機能を実行するようプログラミングされたプロセッサや、上記で説明した各機能を実行するよう設計されたASIC(Application Specific Integrated Circuit)、DSP(digital signal processor)、FPGA(field programmable gate array)や従来の回路モジュール等のデバイスを含むものとする。 Further, each function of the embodiment described above can be realized by one or a plurality of processing circuits. Here, the "processing circuit" in the present specification is a processor programmed to execute each function by software such as a processor implemented by an electronic circuit, or a processor designed to execute each function described above. It shall include devices such as ASIC (Application Specific Integrated Circuit), DSP (digital signal processor), FPGA (field programmable gate array) and conventional circuit modules.

1 画像処理装置
2 スキャナ
21 CCD
22 A/D変換回路
23 LVDSトランスミッタ
3 画像処理ASIC
31 LVDSレシーバ
32 画像処理回路
321 異常検出部
3211 内部LSYNC生成部
3212 内部FGATE生成部
3213 ラインカウント部
3214 異常ライン位置検出部
3215 異常ライン位置レジスト部
3216 異常ライン数検出部
3217 異常ライン数レジスト部
3218 レジスタ切替部
322 FIFO処理部
323 画像処理部
324 ローカルメモリアクセス制御部
325 画像補正部
326 ラインメモリ
327 ラインメモリアクセス制御部
3251 異常近傍画素抽出部
3252 画像補間部
3253 補正画像出力部
33 画像転送I/F
4 ローカルメモリ
5 コントローラASIC
6 チップセット
7 CPU
8 メインメモリ
100〜102 異常ライン画像
1 Image processing device 2 Scanner 21 CCD
22 A / D conversion circuit 23 LVDS transmitter 3 Image processing ASIC
31 LVDS receiver 32 Image processing circuit 321 Abnormality detection unit 3211 Internal LSYNC generation unit 3212 Internal FIFO generation unit 3213 Line count unit 3214 Abnormal line position detection unit 3215 Abnormal line position registration unit 3216 Abnormal line number detection unit 3217 Abnormal line number registration unit 3218 Register switching unit 322 FIFO processing unit 323 Image processing unit 324 Local memory access control unit 325 Image correction unit 326 Line memory 327 Line memory access control unit 3251 Abnormal neighborhood pixel extraction unit 3252 Image interpolation unit 3253 Corrected image output unit 33 Image transfer I / F
4 local memory 5 controller ASIC
6 chipset 7 CPU
8 Main memory 100 to 102 Abnormal line image

特開2017−022469号公報Japanese Unexamined Patent Publication No. 2017-022469

Claims (9)

位相同期回路のロック状態に基づいて、受信画像における異常ライン画像を検出する異常検出部を備える
画像処理装置。
An image processing device including an abnormality detection unit that detects an abnormality line image in a received image based on a locked state of a phase-locked loop.
前記異常検出部は、
前記ロック状態を示すロック信号の立ち下がりタイミングに基づき、前記異常ライン画像の前記受信画像におけるライン位置を検出する
請求項1に記載の画像処理装置。
The abnormality detection unit
The image processing apparatus according to claim 1, wherein the line position of the abnormal line image in the received image is detected based on the falling timing of the lock signal indicating the locked state.
前記異常検出部は、
前記ロック信号の立ち上がりタイミングに基づき、前記ライン位置を起点とした前記異常ライン画像のライン数を検出する
請求項2に記載の画像処理装置。
The abnormality detection unit
The image processing apparatus according to claim 2, wherein the number of lines of the abnormal line image starting from the line position is detected based on the rising timing of the lock signal.
前記異常ライン画像のライン位置情報を保持する異常ライン位置レジスト部と、
前記異常ライン画像のライン数情報を保持する異常ライン数レジスト部と、
前記異常ライン位置レジスト部及び前記異常ライン数レジスト部のそれぞれにおけるレジスタを切り替えるレジスタ切替部と、を備え、
前記レジスタ切替部は、
1ページ分の前記受信画像に複数の前記異常ライン画像が含まれる場合、前記異常ライン位置レジスト部に含まれる複数のレジスタのうち、前記ライン位置情報が保持されたレジスタとは別のレジスタに切り替え、前記異常ライン数レジスト部に含まれる複数のレジスタのうち、前記ライン数情報が保持されたレジスタとは別のレジスタに切り替える
請求項3に記載の画像処理装置。
An abnormal line position resist unit that holds the line position information of the abnormal line image,
The abnormal line number resist unit that holds the line number information of the abnormal line image,
A register switching unit for switching registers in each of the abnormal line position resist unit and the abnormal line number resist unit is provided.
The register switching unit is
When a plurality of the abnormal line images are included in the received image for one page, the register is switched to a register different from the register holding the line position information among the plurality of registers included in the abnormal line position register unit. The image processing apparatus according to claim 3, wherein the image processing apparatus is switched to a register other than the register holding the line number information among the plurality of registers included in the abnormal line number resist unit.
前記異常検出部により検出された前記異常ライン画像の前記受信画像におけるライン位置と、前記ライン位置を起点とした前記異常ライン画像のライン数と、に基づいて、前記受信画像における前記異常ライン画像の近傍の画像データを用いて補正された補正画像を出力する補正画像出力部を備える
請求項1乃至4の何れか1項に記載の画像処理装置。
Based on the line position of the abnormal line image detected by the abnormality detecting unit in the received image and the number of lines of the abnormal line image starting from the line position, the abnormal line image in the received image The image processing apparatus according to any one of claims 1 to 4, further comprising a corrected image output unit that outputs a corrected image corrected by using image data in the vicinity.
1ページ分の前記受信画像を蓄積する画像蓄積部を備え、
前記補正画像出力部は、
1ページ分の前記受信画像における前記異常ライン画像が補正された前記補正画像を出力する
請求項5に記載の画像処理装置。
It is provided with an image storage unit that stores one page of the received image.
The corrected image output unit
The image processing apparatus according to claim 5, wherein the corrected image in which the abnormal line image in the received image for one page is corrected is output.
前記補正画像出力部は、
前記異常ライン画像の近傍の画像データを用いた補間処理により補正された前記補正画像を出力する
請求項5、又は6に記載の画像処理装置。
The corrected image output unit
The image processing apparatus according to claim 5 or 6, which outputs the corrected image corrected by interpolation processing using image data in the vicinity of the abnormal line image.
位相同期回路のロック状態に基づいて、受信画像における異常ライン画像を検出する工程を含む
画像処理方法。
An image processing method including a step of detecting an abnormal line image in a received image based on a locked state of a phase-locked loop.
位相同期回路のロック状態に基づいて、受信画像における異常ライン画像を検出する、
処理をコンピュータに実行させるプログラム。
Detects an abnormal line image in the received image based on the locked state of the phase-locked loop.
A program that causes a computer to perform processing.
JP2019103979A 2019-06-03 2019-06-03 Image processing device, image processing method, and program Active JP7298312B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019103979A JP7298312B2 (en) 2019-06-03 2019-06-03 Image processing device, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019103979A JP7298312B2 (en) 2019-06-03 2019-06-03 Image processing device, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2020198558A true JP2020198558A (en) 2020-12-10
JP7298312B2 JP7298312B2 (en) 2023-06-27

Family

ID=73649372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019103979A Active JP7298312B2 (en) 2019-06-03 2019-06-03 Image processing device, image processing method, and program

Country Status (1)

Country Link
JP (1) JP7298312B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021193613A1 (en) 2020-03-26 2021-09-30 三菱ケミカル株式会社 Copolymer, resin composition, shaped object, filmy shaped object, and method for producing copolymer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11261776A (en) * 1998-03-11 1999-09-24 Ricoh Co Ltd Image reader
JP2011119801A (en) * 2009-11-30 2011-06-16 Canon Inc Reader, control method of the same, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11261776A (en) * 1998-03-11 1999-09-24 Ricoh Co Ltd Image reader
JP2011119801A (en) * 2009-11-30 2011-06-16 Canon Inc Reader, control method of the same, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021193613A1 (en) 2020-03-26 2021-09-30 三菱ケミカル株式会社 Copolymer, resin composition, shaped object, filmy shaped object, and method for producing copolymer

Also Published As

Publication number Publication date
JP7298312B2 (en) 2023-06-27

Similar Documents

Publication Publication Date Title
JP4208892B2 (en) Solid-state imaging device
JP6882910B2 (en) Solid-state image sensor, control method of solid-state image sensor, image pickup system and moving object
JP2006203448A (en) On-vehicle stereoscopic camera device
US9519959B2 (en) Image processing apparatus, imaging apparatus, and method for processing image
US20090278951A1 (en) Apparatus and methods for multi-sensor synchronization
JP2020198558A (en) Image processing apparatus, image processing method, and program
JP2007079708A (en) Image processor and processing method
JP6565462B2 (en) Information processing apparatus and data transfer method
US20210321015A1 (en) Image processing apparatus, method for processing images and storage medium
JP2018157371A (en) Imaging apparatus and method of correcting defective pixels
US20110157401A1 (en) Method for reading out a high dynamic range image and device using the same
US8849067B2 (en) Image processing apparatus, computer-readable storage medium, and image processing method for improving image data transfer
JP6836722B2 (en) Image processing device
JP3987652B2 (en) Image processing device
JPS6089169A (en) Picture information reduction processing method
EP2752814A2 (en) Image processing apparatus
US7139941B2 (en) Method for correcting data using temporally preceding data
JP4127187B2 (en) Code information reading apparatus and program
JP3031554B2 (en) Image processing device
JP2000032348A (en) Imaging device and image pickup device
JP2008152331A (en) Film inspection device and method
JP2021090089A (en) Image processing system
JPH10126595A (en) Image data processing unit
JP6045247B2 (en) Image processing apparatus, control method thereof, and control program
JP2014045309A (en) Image reading device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220414

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230410

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230529

R151 Written notification of patent or utility model registration

Ref document number: 7298312

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151