Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5299334B2 - Image processing apparatus, image processing method, and program - Google Patents
[go: Go Back, main page]

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

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

Info

Publication number
JP5299334B2
JP5299334B2 JP2010069146A JP2010069146A JP5299334B2 JP 5299334 B2 JP5299334 B2 JP 5299334B2 JP 2010069146 A JP2010069146 A JP 2010069146A JP 2010069146 A JP2010069146 A JP 2010069146A JP 5299334 B2 JP5299334 B2 JP 5299334B2
Authority
JP
Japan
Prior art keywords
pixel
color
gradation value
target
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010069146A
Other languages
Japanese (ja)
Other versions
JP2011205271A (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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2010069146A priority Critical patent/JP5299334B2/en
Publication of JP2011205271A publication Critical patent/JP2011205271A/en
Application granted granted Critical
Publication of JP5299334B2 publication Critical patent/JP5299334B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

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

ライン走査方式の画像読取装置は、主走査方向に並ぶ多数の受光素子からなる1次元のイメージセンサを有し、イメージセンサ又はこれに走査光を導く光学系を原稿に対して副走査方向に相対的に移動させることによって原稿を画素に細分化して読み取る。   The line scanning type image reading apparatus has a one-dimensional image sensor composed of a large number of light receiving elements arranged in the main scanning direction, and the image sensor or an optical system that guides scanning light to the image sensor is relative to the document in the sub scanning direction. The original is subdivided into pixels and read by moving the target.

従来より、この種の画像読取装置において、複数のイメージセンサを副走査方向に互いに離して平行に配置したものが知られている。すなわち、フルカラーを含む多色原稿の読み取りや色判別を行うものでは、R(赤色)、G(緑色)、B(青色)の各色のイメージセンサを1チップ化した3色一体型センサが用いられている。  2. Description of the Related Art Conventionally, in this type of image reading apparatus, a plurality of image sensors are arranged parallel to each other in the sub-scanning direction. That is, in a multi-color original reading and color discrimination including a full color, a three-color integrated sensor in which image sensors of each color of R (red), G (green), and B (blue) are integrated into one chip is used. ing.

このように副走査方向に複数のイメージセンサを配列した場合、各イメージセンサ間の距離(ギャップ)に依存する読取りの時間差が生じる。つまり、配列方向の一端側のイメージセンサが他端側のイメージセンサに対して先行して原稿を読み取ることになり、各イメージセンサの同一時点での原稿の読取位置が相違する。
そのため、各イメージセンサによって読み取った原稿内の同一ラインの画像データ(イメージセンサの光電変換出力を量子化した信号)を同時に出力するためには、読取位置の相違に対応した補正を行う必要がある。
When a plurality of image sensors are arranged in the sub-scanning direction as described above, a reading time difference depending on a distance (gap) between the image sensors is generated. That is, the image sensor on one end side in the arrangement direction reads the document in advance of the image sensor on the other end side, and the reading position of the document at the same time of each image sensor is different.
Therefore, in order to simultaneously output image data of the same line in the document read by each image sensor (a signal obtained by quantizing the photoelectric conversion output of the image sensor), it is necessary to perform correction corresponding to the difference in reading position. .

従来の画像読取装置では、ライン間補正と呼ばれる、先行して原稿を読み取るイメージセンサに対応した画像データの伝送を遅延メモリ(FIFOなど)によってライン単位で遅延させる処理が行われている。
すなわち、イメージセンサ間のギャップをgとし、光学系の倍率(原稿の投影倍率)をFとし、原稿上での副走査方向の読取り画素密度(ライン数/単位長)をDyとすると、イメージセンサ間には式(1)で表されるライン数nに相当する読取位置のズレが生じる。
n=(g/F)×Dy …(1)
そこで、従来の画像読取装置は、先行して原稿を読み取るイメージセンサのnライン分の画像データを、遅延メモリに一旦格納した後に順に読み出すように構成されていた。
In a conventional image reading apparatus, a process called line-to-line correction is performed in which transmission of image data corresponding to an image sensor that reads a document in advance is delayed in line units by a delay memory (FIFO or the like).
That is, if the gap between the image sensors is g, the magnification of the optical system (document projection magnification) is F, and the read pixel density (number of lines / unit length) in the sub-scanning direction on the document is Dy, the image sensor. There is a gap in the reading position corresponding to the number n of lines represented by the formula (1).
n = (g / F) × Dy (1)
Therefore, the conventional image reading apparatus is configured to sequentially read image data for n lines of an image sensor that reads an original document in advance after it is temporarily stored in a delay memory.

さて、例えば複写機に組み込まれる画像読取装置では、複写倍率に応じて読取倍率Mが変更される。すなわち、副走査方向の読取画素密度Dyは、読取倍率が「1」(100%)のときの基準の読取り画素密度Dsに読取倍率Mを乗じた値(Dy=Ds×M)に変更される。なお、読取画素密度の変更方法としては、読取周期(イメージセンサの駆動タイミング)を一定とし、センサモジュール(イメージセンサ又は光学系)と原稿との相対移動速度(副走査速度)を基準速度の1/Mの速度に変更する方法が一般的である。
通常、基準の読取り画素密度Ds及び光学系の倍率Fは、読取位置のズレに相当するライン数(以下、相違ライン数という)nが整数になるように設定される。したがって、読取倍率Mが整数(ただし、0を除く)の場合には、相違ライン数nも整数になるので、原理的には上述のようにnラインの走査に対応した期間の遅延を行うことにより、各イメージセンサ間のギャップに起因する不都合は完全に解消される。
For example, in an image reading apparatus incorporated in a copying machine, the reading magnification M is changed according to the copying magnification. That is, the reading pixel density Dy in the sub-scanning direction is changed to a value (Dy = Ds × M) obtained by multiplying the reference reading pixel density Ds when the reading magnification is “1” (100%) by the reading magnification M. . As a method for changing the reading pixel density, the reading cycle (image sensor driving timing) is fixed, and the relative movement speed (sub-scanning speed) between the sensor module (image sensor or optical system) and the original is set to 1 of the reference speed. A method of changing to a speed of / M is common.
Usually, the reference reading pixel density Ds and the magnification F of the optical system are set so that the number of lines n (hereinafter referred to as the number of different lines) corresponding to the deviation of the reading position becomes an integer. Therefore, when the reading magnification M is an integer (excluding 0), the number of different lines n is also an integer. Therefore, in principle, the period corresponding to the n-line scanning is delayed as described above. Thus, the inconvenience due to the gap between the image sensors is completely eliminated.

しかし、実際には、機械的振動やセンサモジュールの搬送ムラ(目標速度と実速度との相違)が生じ、そのために相違ライン数nが小数になるおそれがある。これは、各イメージセンサの読み取るラインについて、読取りの時間的なズレに加えて、原稿上での場所的(位置的)なズレが生じることを意味する。読み取り時にセンサを静止状態とし、原稿を搬送させるタイプの自動原稿読取装置においては、原稿が複数のローラ間を通過したり、原稿の面質状態により摩擦が一定でないなど、搬送速度のムラが発生しやすい。   However, in actuality, mechanical vibrations or unevenness in conveyance of the sensor module (difference between the target speed and the actual speed) occurs, which may cause the number n of different lines to be reduced. This means that a positional deviation on the document occurs in addition to the temporal deviation of the reading for each image sensor reading line. In an automatic document reader of the type that keeps the sensor stationary at the time of reading and conveys the document, unevenness in the conveyance speed occurs such as the document passes between multiple rollers or the friction is not constant due to the surface condition of the document It's easy to do.

そのため、この種のカラー画像読取装置においては、3ラインカラーセンサの各読み取り位置が僅かにずれていることや機械の振動などに起因して、カラー原稿画像を読み取った時に、R(赤)、G(緑)、B(青)の画像データのエッジ部などにおいて本来の色とは異なる色データが出力されて色ずれを生じることがある。
また、副走査方向だけではなく、色収差などが原因で主走査方向にも、色ずれが発生することも課題となっている。
Therefore, in this type of color image reading apparatus, when a color original image is read due to a slight shift of each reading position of the three-line color sensor or mechanical vibration, R (red), Color data different from the original color may be output at an edge portion of G (green) and B (blue) image data, and color misregistration may occur.
Another problem is that color misregistration occurs not only in the sub-scanning direction but also in the main scanning direction due to chromatic aberration and the like.

そこで、このような色ずれ補正を目的として、例えば、特許文献1、2に記載のように、読み取った原稿の画像データからR,G,Bの各センサ間の色ずれ量を検出して副走査方向の色ずれを補正する技術が提案されている。
また、特許文献3に記載のように、原稿外の部分に基準チャートを配して、機械の振動などに起因した、R,G,Bの各センサの読み取り位置ずれによる色ずれを検知して副走査方向の色ずれを補正する補正技術や、特許文献4に記載のように、原稿の搬送速度を検知し、所定速度からのずれを求めて、そのずれに基づいてセンサの読み取り速度を一定にするように読み取り用のシリンドリカルレンズの位置を可変制御し、読み取り速度むらなどによる色ずれ補正技術が提案されている。
また、特許文献5に記載のように、センサ出力の変化より白黒エッジ部を検出し、中央に配置されているセンサのデータに3色を揃えるものがある。
更に、特許文献6には、エッジ部を検出し、エッジ部のR、Bの値をGの値に近づけることにより、機械振動や色収差によって発生する色ずれを補正する技術が記載されている。
Therefore, for the purpose of such color misregistration correction, for example, as described in Patent Documents 1 and 2, the amount of color misregistration between the R, G, and B sensors is detected from the image data of the read document, and the subordinates are detected. Techniques for correcting color misregistration in the scanning direction have been proposed.
In addition, as described in Patent Document 3, a reference chart is arranged outside the original to detect color misregistration due to misalignment of reading positions of the R, G, and B sensors caused by mechanical vibrations. As described in Japanese Patent Application Laid-Open No. 2004-26853, a correction technique for correcting color misregistration in the sub-scanning direction, and a document conveying speed is detected, a deviation from a predetermined speed is obtained, and a sensor reading speed is constant based on the deviation. As described above, there has been proposed a color misregistration correction technique that variably controls the position of a reading cylindrical lens so that the reading speed is uneven.
Further, as described in Patent Document 5, there is a technique in which a monochrome edge portion is detected from a change in sensor output and three colors are aligned with the data of the sensor arranged at the center.
Further, Patent Document 6 describes a technique for correcting a color shift caused by mechanical vibration or chromatic aberration by detecting an edge portion and bringing the R and B values of the edge portion close to the G value.

特開平6−334814公報JP-A-6-334814 特開平8−139949公報JP-A-8-139949 特開平9−98256公報JP-A-9-98256 特開平8−107472公報JP-A-8-107472 特開平10−215381公報Japanese Patent Laid-Open No. 10-215381 特開2001−203900公報JP 2001-203900 A

しかしながら、上述したような従来の色ずれ補正技術においては、例えば、特許文献1や特許文献3の技術では、R,G,Bセンサの副走査方向の機械の振動などに起因して、読み取り時に副走査方向に時々刻々変化するような色ずれを原稿画像や原稿外の基準画像から求めて補正するものであるので、主走査1ライン内の色ずれには対応できないという問題がある。
また、特許文献2に記載の技術では、原稿データから色ずれ量を検出するために、各R,G,Bについて補間データや相関関数を求めるので、処理が繁雑になり、回路も複雑になる上に、副走査方向の色ずれしか補正しないという問題がある。
また、特許文献4に記載の技術では、読取速度の変化量から色ずれを補正するので、振動や収差といったものに起因する主走査方向の色ずれは補正できないという問題がある。
また、特許文献5に記載の技術では、白黒以外の色のエッジに対しては、センサ検出値が白黒エッジ部の検出を行うためのしきい値を越えないことになり、補正がかからないという問題がある。
However, in the conventional color misregistration correction technique as described above, for example, in the techniques of Patent Document 1 and Patent Document 3, due to the vibration of the machine in the sub-scanning direction of the R, G, B sensor, etc. Since the color shift that changes every moment in the sub-scanning direction is obtained and corrected from the original image or the reference image outside the original, there is a problem that the color shift in one main scanning line cannot be handled.
In the technique described in Patent Document 2, interpolation data and correlation functions are obtained for each of R, G, and B in order to detect a color misregistration amount from document data, so that the processing becomes complicated and the circuit becomes complicated. Another problem is that only the color shift in the sub-scanning direction is corrected.
In addition, the technique described in Patent Document 4 has a problem in that color misregistration in the main scanning direction due to vibrations and aberrations cannot be corrected because color misregistration is corrected from the amount of change in reading speed.
Further, with the technique described in Patent Document 5, the sensor detection value does not exceed the threshold value for detecting the black-and-white edge portion for edges of colors other than black and white, and correction is not performed. There is.

また、特許文献6に記載の技術では、主走査方向の補正だけで、RH1〜RH15(Rの補間画素),BH1〜BH15(Bの補間画素)と、RとB各15点もの補間点(内各1点は入力画素)と、Gn(注目画素のG入力値)との比較を行っているので、主走査方向のほかに副走査方向も合わせて行うとすると、回路規模が大きくなるという問題がある。また、RとGの補間点はGnと一致するとは限らず、通常はGnとは多少の差がある。そのため、色ずれの補正性能を上げるには補間点を増やす必要があり、回路規模の肥大化につながる。更に、特許文献6に記載の技術では、検出されたエッジ部に対して色ずれ補正を行っており、エッジの強度によって色ずれ補正がかかりにくいとう問題がある。   In the technique described in Patent Document 6, only RH1 to RH15 (R interpolation pixels), BH1 to BH15 (B interpolation pixels), and 15 interpolation points (R and B) are obtained only by correction in the main scanning direction. Since each of the points is an input pixel) and Gn (G input value of the target pixel), if the sub-scanning direction is performed in addition to the main scanning direction, the circuit scale is increased. There's a problem. In addition, the interpolation points of R and G do not always coincide with Gn, and there is usually a slight difference from Gn. For this reason, in order to improve the color misregistration correction performance, it is necessary to increase the number of interpolation points, leading to an increase in circuit scale. Furthermore, in the technique described in Patent Document 6, color misregistration correction is performed on the detected edge portion, and there is a problem that the color misregistration correction is difficult to be performed depending on the strength of the edge.

本発明は、上述した問題点を解決するためになされたものであり、色収差や機械振動等に起因して生じる、主走査方向および副走査方向の黒文字周辺部の色ずれ補正を、単純な処理によって実現できるようにすることである。   The present invention has been made in order to solve the above-described problems, and performs simple processing for correcting color misregistration in the vicinity of black characters in the main scanning direction and the sub-scanning direction caused by chromatic aberration, mechanical vibration, and the like. It is to be realized by.

上記課題を解決するため、請求項1に記載の発明は、
互いに平行に配列された複数のイメージセンサを用いて原稿を読み取る読取装置により取得された、複数色に色分解された画像に画像処理を施す画像処理装置であって、
前記色分解されたうちの1色を基準色とし、その他の少なくとも1色を補正対象色とし、前記補正対象色の注目画素とこれに隣接する隣接画素との間に仮想画素を設定し、前記注目画素の階調値及び前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出し、前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合に、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換する色ずれ補正部を備える。
In order to solve the above-mentioned problem, the invention described in claim 1
An image processing apparatus that performs image processing on an image obtained by reading a document using a plurality of image sensors arranged in parallel to each other and separated into a plurality of colors,
One of the color-separated colors is set as a reference color, the other at least one color is set as a correction target color, a virtual pixel is set between a target pixel of the correction target color and an adjacent pixel adjacent thereto, The gradation value of the virtual pixel is calculated based on the gradation value of the target pixel and the gradation value of the adjacent pixel, and the reference pixel gradation value of the target pixel is the target pixel of the correction target color and the virtual pixel. A color misregistration correction unit that converts the gradation value of the target pixel of the correction target color into the gradation value of the reference color when the gradation value of the virtual pixel group consisting of

請求項2に記載の発明は、請求項1に記載の発明において、
前記色ずれ補正部は、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最大値を超える場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最大値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最小値未満の場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最小値に変換する。
The invention according to claim 2 is the invention according to claim 1,
When the gradation value of the reference color of the pixel of interest exceeds the maximum value of the gradation value of the virtual pixel group, the color misregistration correction unit determines the gradation value of the pixel of interest of the correction target color as the virtual pixel group. When the gradation value of the reference color of the target pixel is less than the minimum value of the virtual pixel group, the gradation value of the target pixel of the correction target color is The value is converted into the minimum gradation value of the virtual pixel group.

請求項3に記載の発明は、請求項1又は2に記載の発明において、
前記注目画素と前記仮想画素との間隔は、主走査方向と副走査方向とで異なる値に設定可能である。
The invention according to claim 3 is the invention according to claim 1 or 2,
The interval between the target pixel and the virtual pixel can be set to different values in the main scanning direction and the sub-scanning direction.

請求項4に記載の発明は、請求項1〜3の何れか一項に記載の発明において、
前記注目画素と前記仮想画素との間隔を主走査方向と副走査方向のそれぞれについて設定するための操作部を備える。
The invention according to claim 4 is the invention according to any one of claims 1 to 3,
An operation unit is provided for setting an interval between the target pixel and the virtual pixel in each of the main scanning direction and the sub-scanning direction.

請求項5に記載の発明は、請求項1〜3の何れか一項に記載の発明において、
前記注目画素と前記仮想画素との間隔は、前記読取装置において前記原稿を静止状態にして読み取ったか又は前記原稿を移動させて読み取ったかに応じて異なる値が設定される。
The invention according to claim 5 is the invention according to any one of claims 1 to 3,
The interval between the pixel of interest and the virtual pixel is set to a different value depending on whether the reading device reads the document in a stationary state or moves and moves the document.

請求項6に記載の発明は、請求項1〜5の何れか一項に記載の発明において、
前記色ずれ補正部は、前記注目画素及び当該注目画素から予め定められた範囲内に存在する周辺画素について、黒画素であるか色画素であるかの判別を行い、黒画素と判別された画素の数が予め定められた閾値を超える場合にのみ前記補正対象色の注目画素の階調値の変換を行う。
The invention according to claim 6 is the invention according to any one of claims 1 to 5,
The color misregistration correction unit determines whether the pixel of interest and the surrounding pixels existing within a predetermined range from the pixel of interest are black pixels or color pixels, and the pixels determined to be black pixels The gradation value of the target pixel of the color to be corrected is converted only when the number of pixels exceeds a predetermined threshold.

請求項7に記載の発明は、請求項1〜5の何れか一項に記載の発明において、
前記注目画素及び前記周辺画素には、前記注目画素との位置関係に応じて重み係数が対応付けられており、前記色ずれ補正部は、前記黒画素と判別された画素に前記重み係数を掛けて積算した値が予め定められた閾値を超える場合にのみ前記補正対象色の注目画素の階調値の変換を行う。
The invention according to claim 7 is the invention according to any one of claims 1 to 5,
A weighting factor is associated with the target pixel and the peripheral pixel according to a positional relationship with the target pixel, and the color misregistration correction unit multiplies the pixel determined to be the black pixel with the weighting factor. Only when the integrated value exceeds a predetermined threshold value, the gradation value of the target pixel of the correction target color is converted.

請求項8に記載の発明は、請求項6又は7に記載の発明において、
前記色ずれ補正部は、前記注目画素及び前記周辺画素の彩度と明度に基づいて、前記注目画素及び前記周辺画素のそれぞれが黒画素であるか色画素であるかの判別を行う。
The invention according to claim 8 is the invention according to claim 6 or 7,
The color misregistration correction unit determines whether each of the target pixel and the peripheral pixel is a black pixel or a color pixel based on the saturation and brightness of the target pixel and the peripheral pixel.

請求項9に記載の発明は、
互いに平行に配列された複数のイメージセンサを用いて原稿を読み取る読取装置により取得された、複数色に色分解された画像に画像処理を施す画像処理方法であって、
前記色分解されたうちの1色を基準色とし、その他の少なくとも1色を補正対象色として、前記補正対象色の注目画素とこれに隣接する隣接画素との間に仮想画素を設定し、前記注目画素の階調値及び前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出し、前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合に、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換する工程を含む。
The invention according to claim 9 is:
An image processing method for performing image processing on an image obtained by reading a document using a plurality of image sensors arranged in parallel to each other and separated into a plurality of colors,
A virtual pixel is set between a target pixel of the correction target color and an adjacent pixel adjacent to the target pixel of the correction target color, with one of the color-separated colors as a reference color and at least one other color as a correction target color, The gradation value of the virtual pixel is calculated based on the gradation value of the target pixel and the gradation value of the adjacent pixel, and the reference pixel gradation value of the target pixel is the target pixel of the correction target color and the virtual pixel. Converting the gradation value of the target pixel of the color to be corrected into the gradation value of the reference color when the gradation value of the virtual pixel group consisting of is not less than the minimum value and not more than the maximum value.

請求項10に記載の発明のプログラムは、
互いに平行に配列された複数のイメージセンサを用いて原稿を読み取る読取装置により取得された、複数色に色分解された画像に画像処理を施す画像処理装置に用いられるコンピュータを、
前記色分解されたうちの1色を基準色とし、その他の少なくとも1色を補正対象色とし、前記補正対象色の注目画素とこれに隣接する隣接画素との間に仮想画素を設定し、前記注目画素の階調値及び前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出し、前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合に、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換する色ずれ補正部、
として機能させる。
The program of the invention according to claim 10 is:
A computer used in an image processing apparatus that performs image processing on an image obtained by reading a document using a plurality of image sensors arranged in parallel to each other and separated into a plurality of colors,
One of the color-separated colors is set as a reference color, the other at least one color is set as a correction target color, a virtual pixel is set between a target pixel of the correction target color and an adjacent pixel adjacent thereto, The gradation value of the virtual pixel is calculated based on the gradation value of the target pixel and the gradation value of the adjacent pixel, and the reference pixel gradation value of the target pixel is the target pixel of the correction target color and the virtual pixel. A color misregistration correction unit that converts a gradation value of a pixel of interest of the correction target color into a gradation value of the reference color when the gradation value of the virtual pixel group consisting of
To function as.

本発明によれば、色収差や機械振動などに起因して生じる、主走査方向および副走査方向の黒文字周辺部の色ずれ補正を、単純な処理によって実現することが可能となる。   According to the present invention, it is possible to realize color misregistration correction around the black character in the main scanning direction and the sub-scanning direction caused by chromatic aberration, mechanical vibration, and the like by a simple process.

本実施の形態における画像読取装置の機能的構成を示すブロック部である。3 is a block diagram illustrating a functional configuration of the image reading apparatus according to the present embodiment. 図1の読取装置の主要構成を示す図である。It is a figure which shows the main structures of the reader of FIG. 図1の読取装置が有するイメージセンサの概略構成示す図である。It is a figure which shows schematic structure of the image sensor which the reader of FIG. 1 has. 図3Aに示すイメージセンサの部分拡大図である。It is the elements on larger scale of the image sensor shown to FIG. 3A. イメージセンサで読み取られたR、G、Bの画像信号を処理する画像処理回路を示すブロック図である。It is a block diagram which shows the image processing circuit which processes the image signal of R, G, and B read with the image sensor. 図1の画像処理装置の他の構成例を示す図である。It is a figure which shows the other structural example of the image processing apparatus of FIG. 無彩色の画素において色ずれが発生した状態を示す図である。It is a figure which shows the state which color misregistration generate | occur | produced in the achromatic pixel. 第1の実施の形態において図4の色ずれ補正部において実行される色ずれ補正処理Aを示すフローチャートである。5 is a flowchart showing a color misregistration correction process A executed in the color misregistration correction unit in FIG. 4 in the first embodiment. 図7のステップS1において実行されるR−色ずれ補正処理を示すフローチャートである。It is a flowchart which shows the R-color-shift correction process performed in step S1 of FIG. 主走査方向及び副走査方向の色ずれ補正を行うための隣接画素ウィンドウの一例を示す図である。It is a figure which shows an example of the adjacent pixel window for performing color shift correction | amendment of the main scanning direction and a subscanning direction. 主走査方向のみの色ずれ補正を行うための隣接画素ウィンドウの一例を示す図である。It is a figure which shows an example of the adjacent pixel window for performing color misregistration correction only in the main scanning direction. 副走査方向のみの色ずれ補正を行うための隣接画素ウィンドウの一例を示す図である。It is a figure which shows an example of the adjacent pixel window for performing color misregistration correction only in the sub-scanning direction. 仮想画素を説明するための図である。It is a figure for demonstrating a virtual pixel. Rmax≧G(X,Y)≧Rmin、かつBmax≧G(X,Y)≧Bminである場合の色ずれ補正処理の結果を模式的に示す図である。It is a figure which shows typically the result of the color misregistration correction process in the case of Rmax ≧ G (X, Y) ≧ Rmin and Bmax ≧ G (X, Y) ≧ Bmin. Rmax <G(X,Y)である場合の色ずれ補正処理の結果を模式的に示す図である。It is a figure which shows typically the result of the color shift correction process in the case of Rmax <G (X, Y). Rmin>G(X,Y)である場合の色ずれ補正処理の結果を模式的に示す図である。It is a figure which shows typically the result of the color shift correction process in the case of Rmin> G (X, Y). 第2の実施の形態において図4の色ずれ補正部において実行される色ずれ補正処理Bを示すフローチャートである。6 is a flowchart showing a color misregistration correction process B executed in a color misregistration correction unit in FIG. 4 in the second embodiment. 図12のステップS11において実行される黒領域判定処理を示すフローチャートである。It is a flowchart which shows the black area determination process performed in FIG.12 S11. 黒領域判定ウィンドウの一例を示す図である。It is a figure which shows an example of a black area | region determination window. 黒領域判定ウィンドウの他の例を示す図である。It is a figure which shows the other example of a black area | region determination window. 黒領域判定ウィンドウの他の例を示す図である。It is a figure which shows the other example of a black area | region determination window. 図13のステップS205において実行される黒画素/色画素判別処理を示すフローチャートである。It is a flowchart which shows the black pixel / color pixel discrimination | determination process performed in step S205 of FIG. 彩度リファレンスWref(V)の一例を示す図である。It is a figure which shows an example of saturation reference Wref (V). 図14Aに示す黒領域判定ウィンドウの重み付けフィルタの一例を示す図である。It is a figure which shows an example of the weighting filter of the black area | region determination window shown to FIG. 14A. 第2の実施の形態における変形例の黒領域判定処理Bを示すフローチャートである。It is a flowchart which shows the black area determination process B of the modification in 2nd Embodiment. 第3の実施の形態において図1の制御部により実行されるスキャン制御処理を示すフローチャートである。12 is a flowchart illustrating a scan control process executed by the control unit of FIG. 1 in the third embodiment.

〔第1の実施の形態〕
以下、図を参照して本発明の第1の実施の形態の例を詳細に説明する。
図1に、本実施の形態における画像読取装置1の機能構成例を示す。画像読取装置1は、図1に示すように、制御部10、読取装置20、画像処理装置30、通信I/F40、操作部50、表示部60等により構成され、各部はバス70により接続されている。
[First Embodiment]
Hereinafter, an example of the first embodiment of the present invention will be described in detail with reference to the drawings.
FIG. 1 shows a functional configuration example of the image reading apparatus 1 according to the present embodiment. As shown in FIG. 1, the image reading apparatus 1 includes a control unit 10, a reading device 20, an image processing device 30, a communication I / F 40, an operation unit 50, a display unit 60, and the like. ing.

制御部10は、CPU(Central Processing Unit)、RAM(Random Access Memory)ROM(Read Only Memory)を備えて構成される。制御部10のCPUは、操作部50の操作等に応じて、ROMに格納されているシステムプログラム、全体制御プログラム、各種処理プログラムを読み出してRAM内に展開し、展開されたプログラムに従って、画像読取装置1の各部の動作を集中制御する。   The controller 10 includes a CPU (Central Processing Unit), a RAM (Random Access Memory), and a ROM (Read Only Memory). The CPU of the control unit 10 reads out the system program, the overall control program, and various processing programs stored in the ROM in accordance with the operation of the operation unit 50 and the like, expands them in the RAM, and performs image reading according to the expanded programs. The operation of each part of the apparatus 1 is centrally controlled.

読取装置20は、図2に示すように、ADF(Auto Document Feeder)部20a、読取部20bを備えて構成される。
ADF部20aは、自動原稿送り装置である。ADF部20aは、図2に示すように、原稿載置トレイ21に積載される原稿を最上部から順に搬送する給紙ローラ22と、原稿の読取個所であるプラテンガラス201に原稿を密着させながら通過させるための密着ローラ23と、給紙ローラ22により搬送された原稿を密着ローラ23に沿って案内する案内ローラ24とを備え、原稿載置トレイ21に積載された原稿をプラテンガラス201の読取箇所に一枚ずつ搬送する。また、ADF部20aは、プラテンガラス201を通過した原稿の進行方向を切り替える切替爪25と、原稿の表裏を反転させるための反転ローラ26と、読み取りが完了した原稿が排出される排紙トレイ27とを備え、原稿が両面原稿の場合に、原稿の片面読み取り後に原稿の表裏を反転して再びプラテンガラス201の読取箇所へ原稿を搬送する。
As illustrated in FIG. 2, the reading device 20 includes an ADF (Auto Document Feeder) unit 20 a and a reading unit 20 b.
The ADF unit 20a is an automatic document feeder. As shown in FIG. 2, the ADF unit 20 a is configured to bring a document into close contact with a sheet feeding roller 22 that sequentially conveys documents stacked on the document placing tray 21 from the top and a platen glass 201 that is a document reading portion. A contact roller 23 for passing the paper and a guide roller 24 for guiding the document conveyed by the paper feed roller 22 along the contact roller 23, and reading the document loaded on the document placement tray 21 on the platen glass 201. Convey one sheet at a time. The ADF unit 20a also includes a switching claw 25 for switching the advancing direction of the document that has passed through the platen glass 201, a reversing roller 26 for reversing the front and back of the document, and a discharge tray 27 for discharging the document that has been read. When the document is a double-sided document, the front and back sides of the document are reversed after one side of the document is read, and the document is conveyed again to the reading position of the platen glass 201.

ADF部20aの原稿載置トレイ21には、図示しない原稿有無検知センサが設けられている。原稿有無検知センサは、原稿載置トレイ21上の原稿の有無を検出し、当該検出信号を制御部10に出力する。また、ADF部20aの原稿カバー28のプラテンガラス201側の面には、図示しない開閉センサが設けられている。開閉センサは、原稿カバー28の開閉状態を検出し、当該検出信号を制御部10に出力する。   The document placement tray 21 of the ADF unit 20a is provided with a document presence / absence detection sensor (not shown). The document presence / absence detection sensor detects the presence / absence of a document on the document placing tray 21 and outputs the detection signal to the control unit 10. An opening / closing sensor (not shown) is provided on the surface of the document cover 28 of the ADF unit 20a on the platen glass 201 side. The open / close sensor detects the open / close state of the document cover 28 and outputs the detection signal to the control unit 10.

読取部20bは、光源及びミラーを備えた露光走査部、イメージセンサ202に走査光を導く光学系、原稿からの反射光を受光しその光強度に応じた電気信号(画像信号)を出力するイメージセンサ202を含んで構成されるセンサモジュールを備えている。   The reading unit 20b is an exposure scanning unit including a light source and a mirror, an optical system that guides scanning light to the image sensor 202, and an image that receives reflected light from a document and outputs an electrical signal (image signal) corresponding to the light intensity. A sensor module including the sensor 202 is provided.

図3Aは、イメージセンサ202の構成を模式的に示す図である。図3Bは、図3Aの一部の部分拡大図である。イメージセンサ202は、図3A、図3Bに示すように、原稿走査の主走査方向に複数の受光素子が配列された3ラインのCCDアレイ(Rセンサ202R、Gセンサ202G、Bセンサ202B)を基板内に一体形成したラインイメージセンサである。Rセンサ202R、Gセンサ202G、Bセンサ202Bは、互いに主走査方向と直交する方向(副走査方向)に整数ラインnd(nは整数)分の間隔を隔てて平行して配列されている。Rセンサ202R、Gセンサ202G、Bセンサ202Bの受光面には、原稿画像をR(赤)、G(緑)、B(青)の3原色に色分解して読み取るために、それぞれR、G、Bの光を透過する分光フィルタが設けられている。   FIG. 3A is a diagram schematically illustrating the configuration of the image sensor 202. FIG. 3B is a partial enlarged view of a part of FIG. 3A. As shown in FIGS. 3A and 3B, the image sensor 202 is a substrate of a three-line CCD array (R sensor 202R, G sensor 202G, B sensor 202B) in which a plurality of light receiving elements are arranged in the main scanning direction of document scanning. This is a line image sensor integrally formed therein. The R sensor 202R, the G sensor 202G, and the B sensor 202B are arranged in parallel in the direction orthogonal to the main scanning direction (sub scanning direction) with an interval of integer lines nd (n is an integer). On the light receiving surfaces of the R sensor 202R, the G sensor 202G, and the B sensor 202B, the original image is separated into three primary colors R (red), G (green), and B (blue), and read in order to read the original image. A spectral filter that transmits the B light is provided.

読取部20bは、制御部10からのスキャン指示に従って、プラテンガラス201の読取箇所に搬送又は載置された原稿とセンサモジュールとを主走査方向と直交する副走査方向に相対的に移動させることによって原稿を読み取り、読み取ったR、G、Bの画像信号をアナログ処理部203、A/D変換器204を介して画像データに変換して画像処理装置30に出力する。画像データは、例えば、各色画素の階調値を0〜255で表す。   In accordance with a scan instruction from the control unit 10, the reading unit 20 b relatively moves the document transported or placed on the reading position of the platen glass 201 and the sensor module in the sub-scanning direction orthogonal to the main scanning direction. The original is read, and the read R, G, and B image signals are converted into image data via the analog processing unit 203 and the A / D converter 204 and output to the image processing apparatus 30. In the image data, for example, the gradation value of each color pixel is represented by 0 to 255.

読取部20bにおいては、ADF原稿読取方式と、FB原稿読取方式の二種類の読取方式で原稿の読み取りを行うことができる。ADF原稿読取方式では、ADF部20aから搬送された原稿を読み取る。この場合、読取部20bのセンサモジュールを静止状態とし、原稿をセンサモジュールに対して副走査方向に移動させる。FB原稿読取方式では、原稿カバー28を開いてプラテンガラス201に載置された状態の原稿を読み取る。この場合、原稿を静止状態とし、読取部20bのセンサモジュールを原稿に対して副走査方向に移動させる。   The reading unit 20b can read an original by two types of reading methods, an ADF original reading method and an FB original reading method. In the ADF document reading method, a document conveyed from the ADF unit 20a is read. In this case, the sensor module of the reading unit 20b is kept stationary, and the document is moved in the sub-scanning direction with respect to the sensor module. In the FB document reading system, the document cover 28 is opened and the document placed on the platen glass 201 is read. In this case, the document is kept stationary, and the sensor module of the reading unit 20b is moved in the sub-scanning direction with respect to the document.

画像処理装置30は、読取装置20から出力されたR、G、Bの画像データのそれぞれに各種画像処理を施して通信I/F40に出力する。
図4は、イメージセンサ202で読み取られたR、G、Bの画像信号を処理する処理回路を示すブロック図である。図4に示すように、画像処理装置30は、シェーディング補正部31、γ補正部32、ライン間補正部33、色ずれ補正部34、拡大・縮小処理部35、色変換処理部36、画像補正部37、像域識別処理部38等を備えて構成されている。
The image processing apparatus 30 performs various image processing on each of the R, G, and B image data output from the reading apparatus 20 and outputs the processed image data to the communication I / F 40.
FIG. 4 is a block diagram illustrating a processing circuit that processes R, G, and B image signals read by the image sensor 202. As shown in FIG. 4, the image processing apparatus 30 includes a shading correction unit 31, a γ correction unit 32, an interline correction unit 33, a color misregistration correction unit 34, an enlargement / reduction processing unit 35, a color conversion processing unit 36, and an image correction. A unit 37, an image area identification processing unit 38, and the like.

シェーディング補正部31は、光源系の光量不均一や、イメージセンサ202の各画素の出力特性のばらつきを補正し、主走査方向の均一性を確保する。
γ補正部32は、階調特性を以後の画像処理に適するように調整したり、また、機器の個体差を吸収したりするために、RGB別に独立したルックアップテーブル(LUT)によって階調値の変換を行う。
The shading correction unit 31 corrects non-uniform light quantity of the light source system and variation in output characteristics of each pixel of the image sensor 202, and ensures uniformity in the main scanning direction.
The γ correction unit 32 adjusts the gradation characteristics so as to be suitable for the subsequent image processing, and absorbs individual differences between devices by using a look-up table (LUT) independent for each RGB. Perform the conversion.

ライン間補正部33は、イメージセンサ202の各色ライン間の物理的な間隔(たとえば8ラインずつ)によって生じる、読み取り位置の距離の違いを吸収するための補正を行う。例えば、FIFOなどの遅延メモリで補正を行う。   The inter-line correction unit 33 performs correction to absorb a difference in reading position distance caused by a physical interval (e.g., 8 lines) between the color lines of the image sensor 202. For example, correction is performed using a delay memory such as a FIFO.

色ずれ補正部34は、機械的振動、搬送ムラ(原稿の搬送ムラ、読取部20bにおけるセンサモジュールの搬送ムラ)、色収差、イメージセンサ202の各色の製造誤差等に起因する主走査方向及び副走査方向の色ずれを補正する。詳細は後述する。   The color misregistration correction unit 34 performs main scanning direction and sub-scanning caused by mechanical vibration, conveyance unevenness (original conveyance unevenness, sensor module conveyance unevenness in the reading unit 20b), chromatic aberration, manufacturing error of each color of the image sensor 202, and the like. Correct the color shift in the direction. Details will be described later.

拡大・縮小処理部35は、読取画像と出力解像度の変換が必要な場合に、補間処理などで画像の拡大・縮小処理を行う。
色変換処理部36は、出力装置の要求する、色チャネルの構成に合わせた画像データに変換を行う。例えば、色材としてCMYKのトナーを使用している複写機の画像出力装置に画像を出力する場合には、RGBからCMYKに変換を行う。また、パーソナルコンピュータなどのカラーモニタに表示する画像を出力する場合には、sRGBなどのモニタの特性に合わせた色変換処理を行う。
The enlargement / reduction processing unit 35 performs image enlargement / reduction processing by interpolation processing or the like when conversion of the read image and the output resolution is necessary.
The color conversion processing unit 36 performs conversion into image data that matches the configuration of the color channel requested by the output device. For example, when an image is output to an image output device of a copying machine using CMYK toner as a color material, conversion from RGB to CMYK is performed. In addition, when outputting an image to be displayed on a color monitor such as a personal computer, color conversion processing that matches the characteristics of the monitor such as sRGB is performed.

画像補正部37は、読取部で生じるMTF(Modulation Transfer Function)の劣化の補正や、文字領域、網点など、画像の特徴に最適な画像の補正を行う。
像域識別処理部38は、画素ごとの特徴を解析し、エッジ領域、色画素/黒画素、網点などの、画像補正部37の補正に必要な各種の属性を識別して出力する。
The image correction unit 37 corrects deterioration of MTF (Modulation Transfer Function) generated in the reading unit, and corrects an image optimal for image characteristics such as a character region and a halftone dot.
The image area identification processing unit 38 analyzes the characteristics of each pixel, and identifies and outputs various attributes necessary for correction of the image correction unit 37, such as edge regions, color pixels / black pixels, and halftone dots.

上記画像処理装置30の各部は、それぞれ専用の電気回路(ハードウェア)により構成されることとするが、図5に示すように、画像処理装置30がCPU、RAM、各部の処理を実行するためのプログラム(シェーディング補正プログラムP1、γ補正プログラムP2、ライン間補正プログラムP3、色ずれ補正処理プログラムP4、・・・)が記憶されたROMを備え、CPUとROMに記憶されたプログラムとの協働によるソフトウェア処理により各部の機能を実現する構成とすることもできる。この場合、例えば、色ずれ補正処理プログラムP4には、後述する色ずれ補正処理A(図7、8参照)を実行するためのプログラムが含まれる。   Each unit of the image processing device 30 is configured by a dedicated electric circuit (hardware). However, as shown in FIG. 5, the image processing device 30 executes processing of the CPU, RAM, and each unit. Are stored in the ROM (shading correction program P1, γ correction program P2, inter-line correction program P3, color misregistration correction processing program P4,...), And the cooperation between the CPU and the program stored in the ROM is provided. It is also possible to adopt a configuration in which the function of each unit is realized by software processing according to the above. In this case, for example, the color misregistration correction processing program P4 includes a program for executing a color misregistration correction processing A (see FIGS. 7 and 8) described later.

通信I/F40は、プリンタやモニタ(画像表示装置)等の画像出力装置に画像処理済みの画像データを送信するための通信インターフェースである。   The communication I / F 40 is a communication interface for transmitting image processed image data to an image output device such as a printer or a monitor (image display device).

操作部50は、タッチパネル、ハードキー等を備えて構成される。
タッチパネルは、表示部60のLCD(Liquid Crystal Display)の上面を覆うように透明電極を格子状に配置した感圧式(抵抗膜圧式)のタッチパネルであり、手指やタッチペン等で押下された力点のXY座標を電圧値で検出し、検出された位置信号を操作信号として制御部10に出力する。なお、タッチパネルは、感圧式に限らず、他の静電式、光式等であってもよい。
ハードキーは、数字ボタン、スキャン開始を指示するためのスタートボタン(図示せず)等の各種操作ボタンを備え、ボタン操作による操作信号を制御部10に出力する。
The operation unit 50 includes a touch panel, hard keys, and the like.
The touch panel is a pressure-sensitive (resistive film pressure type) touch panel in which transparent electrodes are arranged in a grid pattern so as to cover the upper surface of an LCD (Liquid Crystal Display) of the display unit 60. The coordinates are detected by a voltage value, and the detected position signal is output to the control unit 10 as an operation signal. Note that the touch panel is not limited to a pressure-sensitive type, and may be another electrostatic type, an optical type, or the like.
The hard key includes various operation buttons such as a numeric button and a start button (not shown) for instructing start of scanning, and outputs an operation signal generated by the button operation to the control unit 10.

表示部60は、LCD等により構成され、制御部10から入力される表示信号の指示に従って表示画面上に各種操作ボタンや装置の状態表示、各機能の動作状況等の表示を行う。   The display unit 60 is configured by an LCD or the like, and displays various operation buttons, the status of the apparatus, the operation status of each function, and the like on the display screen in accordance with an instruction of a display signal input from the control unit 10.

次に、色ずれ補正部34の動作について詳細に説明する。
図6は、原稿の無彩色のエッジ部をイメージセンサ202で読み取ったときに色ずれが発生した状態を示す図である。図6の縦軸は、入力画素の階調値(信号値)、横軸は、副走査方向の画素位置を示す。無彩色のエッジ部を読み取った場合、本来ならば、Rの階調値=Gの階調値=Bの階調値となるはずである。しかしながら、機械振動、搬送ムラ、各色センサの製造誤差等により同じ画素位置であるはずのR、G、Bの3色間の読取位置がずれると、図6に示す注目画素のように、R、G、Bの階調値が異なる値となってしまう。つまり、本来の原稿の色とは異なる色で出力されてしまう、色ずれと呼ばれる品質上の問題が生じる。特に、黒文字の場合、輪郭に色がつくと視覚的に非常に目立つため、品質上の問題となりやすい。
そこで、色ずれ補正部34では、機械振動、搬送ムラ、各色センサの製造誤差、色収差等に起因して生じる、主走査方向及び副走査方向の黒文字周辺部の色ずれ補正を効率的に精度よく行う。
Next, the operation of the color misregistration correction unit 34 will be described in detail.
FIG. 6 is a diagram illustrating a state in which color misregistration has occurred when an achromatic edge portion of a document is read by the image sensor 202. The vertical axis in FIG. 6 indicates the gradation value (signal value) of the input pixel, and the horizontal axis indicates the pixel position in the sub-scanning direction. When an achromatic edge portion is read, the gradation value of R should be equal to the gradation value of G = the gradation value of B. However, if the reading position between the three colors R, G, and B, which should be the same pixel position, is shifted due to mechanical vibration, conveyance unevenness, manufacturing error of each color sensor, etc., as shown in FIG. The gradation values of G and B are different values. That is, a quality problem called color misregistration occurs in which a color different from the original color is output. In particular, in the case of a black character, if the outline is colored, it is visually noticeable, so it tends to be a quality problem.
Therefore, the color misregistration correction unit 34 efficiently and accurately corrects the color misregistration in the peripheral portion of the black character in the main scanning direction and the sub scanning direction caused by mechanical vibration, conveyance unevenness, manufacturing error of each color sensor, chromatic aberration, and the like. Do.

以後の説明では、補正対象とする注目画素の座標を(X,Y)で表す。ここで、Xは主走査方向の座標、Yは副走査方向の座標を表す。
また、注目画素における補正前のRの階調値(Rセンサ202Rに入力された輝度の物理量に相関する)及びRの入力画像における注目画素の座標をR(X,Y)で表す。同様に、注目画素における補正前のGの階調値及びGの入力画像における注目画素の座標をG(X,Y)で表し、注目画素における補正前のBの階調値及びBの入力画像における注目画素の座標をB(X,Y)で表す。
また、注目画素における色ずれ補正部34の出力結果を、Rout(X,Y),Gout(X,Y),Bout(X,Y)と表す。
In the following description, the coordinates of the target pixel to be corrected are represented by (X, Y). Here, X represents coordinates in the main scanning direction, and Y represents coordinates in the sub-scanning direction.
Further, the R gradation value before correction in the target pixel (correlated with the physical quantity of luminance input to the R sensor 202R) and the coordinate of the target pixel in the R input image are represented by R (X, Y). Similarly, the G tone value before correction at the target pixel and the coordinate of the target pixel in the G input image are represented by G (X, Y), and the B tone value before correction at the target pixel and the B input image are corrected. The coordinates of the pixel of interest in are represented by B (X, Y).
The output result of the color misregistration correction unit 34 at the target pixel is represented as Rout (X, Y), Gout (X, Y), and Bout (X, Y).

本実施の形態では、Gを基準色、R、Bを補正対象色とし、ライン間補正部33から入力されたGの入力画像を基準として、Rの入力画像及びBの入力画像を補正する場合について説明するが、Rの入力画像を基準として、Gの入力画像とBの入力画像を補正してもよいし、Bの入力画像を基準として、Rの入力画像とGの入力画像を補正することとしてもよい。   In this embodiment, G is a reference color, R and B are correction target colors, and an R input image and a B input image are corrected using a G input image input from the interline correction unit 33 as a reference. The G input image and the B input image may be corrected using the R input image as a reference, or the R input image and the G input image are corrected using the B input image as a reference. It is good as well.

図7に、色ずれ補正部34により実行される色ずれ補正処理Aのフローチャートを示す。色ずれ補正部34においては、R、G、Bの各入力画像のそれぞれについて、注目画素(X,Y)を順次移動させながら各画素に対して図7に示す色ずれ補正処理Aが行われる。
図7に示すように、色ずれ補正処理Aでは、Rの各画素についてR−色ずれ補正処理が実行され(ステップS1)、Gの各画素については、補正を行わずにそのままGout(X,Y)←G(X,Y)として出力する処理が行われ(ステップS2)、Bの各画素についてB−色ずれ補正処理が実行される(ステップS3)。
FIG. 7 shows a flowchart of the color misregistration correction process A executed by the color misregistration correction unit 34. In the color misregistration correction unit 34, for each of the R, G, and B input images, the color misregistration correction processing A shown in FIG. 7 is performed on each pixel while sequentially moving the target pixel (X, Y). .
As shown in FIG. 7, in color misregistration correction processing A, R-color misregistration correction processing is executed for each pixel of R (step S1), and Gout (X, A process of outputting as Y) ← G (X, Y) is performed (step S2), and a B-color misregistration correction process is executed for each pixel of B (step S3).

図8に、R−色ずれ補正処理のフローチャートを示す。
R−色ずれ補正処理では、まず、隣接画素ウィンドウが生成される(ステップS101)。
図9Aに、隣接画素ウィンドウの一例(Rの例)を示す。図8のステップS101では、図9Aに示すように、注目画素R(X,Y)と、これと隣接する8画素(隣接画素R(X-1,Y-1)〜R(X+1,Y+1)を合わせた9画素からなる隣接画素ウィンドウが生成される。なお、図9Aにおける縦方向は主走査方向であり、横方向は副走査方向である(図9B、図9C、図10、図14A〜図14C、図17においても同様である)。
FIG. 8 shows a flowchart of the R-color misregistration correction process.
In the R-color misregistration correction process, first, an adjacent pixel window is generated (step S101).
FIG. 9A shows an example (R example) of the adjacent pixel window. In step S101 of FIG. 8, as shown in FIG. 9A, the target pixel R (X, Y) and the eight pixels adjacent thereto (adjacent pixels R (X−1, Y−1) to R (X + 1, An adjacent pixel window consisting of 9 pixels with Y + 1) is generated, where the vertical direction in Fig. 9A is the main scanning direction and the horizontal direction is the sub-scanning direction (Figs. 9B, 9C, and 10). The same applies to FIGS. 14A to 14C and FIG.

次いで、注目画素と隣接画素の間に仮想画素が設けられ、その階調値が算出される(ステップ102)。
ここで、図10を用いて仮想画素について説明する。前述している要因により色ずれが発生した場合は、イメージセンサ202のRセンサ202RはGセンサ202Gに対して相対的にずれた位置を読み取っていることになる。色ずれが1画素以内の範囲であるとすると、色ずれが生じていない場合の画素は、注目画素と隣接画素との間に存在することになる。そこで、注目画素を1画素以内の周囲に仮想的にずらした位置に仮想画素を設け、この仮想画素の階調値を算出し、この仮想画素及び注目画素からなる仮想画素群の階調値に基づいて色ずれ補正を行う。
Next, a virtual pixel is provided between the target pixel and the adjacent pixel, and the gradation value is calculated (step 102).
Here, the virtual pixel will be described with reference to FIG. When color misregistration occurs due to the above-described factors, the R sensor 202R of the image sensor 202 reads a position that is deviated relative to the G sensor 202G. Assuming that the color misregistration is within a range of one pixel, the pixel when no color misregistration is present exists between the target pixel and the adjacent pixel. Therefore, a virtual pixel is provided at a position where the target pixel is virtually shifted around one pixel, a gradation value of the virtual pixel is calculated, and the gradation value of the virtual pixel group including the virtual pixel and the target pixel is calculated. Based on this, color misregistration correction is performed.

具体的には、図10に示すように、注目画素R(X,Y)=r22から主走査方向にKh、副走査方向にKvの距離を隔てた位置(8箇所)を仮想画素の位置とし、8点の仮想画素の階調値r11,r12,r13,r21,r23,r31,r32,r33を、その周囲にある隣接画素ウィンドウ内の画素の階調値に基づいて算出する。そして、8点の仮想画素に注目画素を加えた9画素を仮想画素群とする。   Specifically, as shown in FIG. 10, positions (eight locations) separated from the target pixel R (X, Y) = r22 by a distance Kh in the main scanning direction and Kv in the sub-scanning direction are set as virtual pixel positions. The gradation values r11, r12, r13, r21, r23, r31, r32, r33 of the eight virtual pixels are calculated based on the gradation values of the pixels in the neighboring pixel window around the eight virtual pixels. Then, 9 pixels obtained by adding the target pixel to 8 virtual pixels are set as a virtual pixel group.

仮想画素の階調値の算出方法としては、単純で安定した性能が得られることから、注目画素及び隣接画素の階調値に基づくbi-Linear補間を用いることができる。下記に補間式を示す。
Kh’ = 256×Kh、および、Kv’ = 256×Kvと、2のべき乗の積とし、固定小数点演算に置き換えることにより、演算を容易に実装できる。
下記の補間式において、全体を256または65536で除す部分は、シフト演算に置き換えることにより、コストのかかる除算演算を取り除いている。
As a method for calculating the gradation value of the virtual pixel, since simple and stable performance can be obtained, bi-linear interpolation based on the gradation values of the pixel of interest and the adjacent pixels can be used. The interpolation formula is shown below.
The operation can be easily implemented by replacing Kh ′ = 256 × Kh and Kv ′ = 256 × Kv with a power of 2 and replacing it with a fixed-point operation.
In the following interpolation formula, the portion divided by 256 or 65536 is replaced with a shift operation, thereby eliminating a costly division operation.

(補間式)
r11 = { Kh’×Kv’×R(X-1,Y-1) + (256-Kh’)×Kv’×R(X,Y-1) +
Kh’×(256-Kv’)×R(X-1,Y) + (256-Kh’)×(256-Kv’)×R(X,Y) } / 65536
r12 = { Kv’×R(X,Y-1) +(256-Kv’)×R(X,Y) } / 256

r13 = { Kh’×Kv’×R(X+1,Y-1) +(256-Kh’)×Kv’×R(X,Y-1) +
Kh’×(256-Kv’)×R(X+1,Y) +(256-Kh’)×(256-Kv’)×R(X,Y) } / 65536
r21 = { Kh’×R(X-1,Y) +(256-Kh’)×R(X,Y) } / 256
r22 = R(X,Y)

r23 = { Kh’×R(X+1,Y) +(256-Kh’)×R(X,Y) } / 256

r31 = { Kh’×Kv’×R(X-1,Y+1) +(256-Kh’)×Kv’×R(X,Y+1) +
Kh’×(256-Kv’)×R(X-1,Y) +(256-Kh’)×(256-Kv’)×R(X,Y) } / 65536

r32 = ( Kv’×R(X,Y+1) +(256-Kv’)×R(X,Y) ) / 256

r33 = { Kh’×Kv’×R(X+1,Y+1) +(256-Kh’)×Kv’×R(X,Y+1) +
Kh’×(256-Kv’)×R(X+1,Y) +(256-Kh’)×(256-Kv’)×R(X,Y) } / 65536
(Interpolation formula)
r11 = (Kh '× Kv' × R (X-1, Y-1) + (256-Kh ') × Kv' × R (X, Y-1) +
Kh '× (256-Kv') × R (X-1, Y) + (256-Kh ') × (256-Kv') × R (X, Y)} / 65536
r12 = {Kv '× R (X, Y-1) + (256-Kv') × R (X, Y)} / 256

r13 = (Kh '× Kv' × R (X + 1, Y-1) + (256-Kh ') × Kv' × R (X, Y-1) +
Kh '× (256-Kv') × R (X + 1, Y) + (256-Kh ') × (256-Kv') × R (X, Y)} / 65536
r21 = {Kh '× R (X-1, Y) + (256-Kh') × R (X, Y)} / 256
r22 = R (X, Y)

r23 = {Kh '× R (X + 1, Y) + (256-Kh') × R (X, Y)} / 256

r31 = (Kh '× Kv' × R (X-1, Y + 1) + (256-Kh ') × Kv' × R (X, Y + 1) +
Kh '× (256-Kv') × R (X-1, Y) + (256-Kh ') × (256-Kv') × R (X, Y)} / 65536

r32 = (Kv '× R (X, Y + 1) + (256-Kv') × R (X, Y)) / 256

r33 = (Kh '× Kv' × R (X + 1, Y + 1) + (256-Kh ') × Kv' × R (X, Y + 1) +
Kh '× (256-Kv') × R (X + 1, Y) + (256-Kh ') × (256-Kv') × R (X, Y)} / 65536

上記の例では、256倍にして固定小数点演算を行っているが、より精度が必要な場合は、例えば512倍や1024倍で行えばよいし、回路規模を減らしたければ、128倍や64倍などとすればよい。
256倍の場合、1画素の0.00390625 = 1/2256の距離の精度で、Kh、Kvの位置の調整ができることになる。
また、仮想画素の算出方法は、bi-linear補間に以外の、公知補間方法を用いることが可能である。
In the above example, fixed-point arithmetic is performed at 256 times. However, if more precision is required, for example, 512 times or 1024 times may be used. If the circuit scale is to be reduced, 128 times or 64 times is used. And so on.
In the case of 256 times, the position of Kh and Kv can be adjusted with an accuracy of a distance of 0.00390625 = 1/256 of one pixel.
As a method for calculating the virtual pixel, a known interpolation method other than bi-linear interpolation can be used.

上記の注目画素から仮想画素までの距離Kv、Khの値としては、画像読取装置1の個々の搬送ムラ、機械振動、色収差等に基づいて、実験的経験的に相応しい値をレジスタに設定すればよい。搬送ムラ、機械振動、色収差等に起因する色ずれ量は、主走査方向と副走査方向とで異なるため、注目画素と仮想画素との主走査方向の間隔Khの値、注目画素と仮想画素との副走査方向の間隔Kvの値は異なる値に設定することが可能となっている。また、搬送ムラ、機械振動、色収差等に起因する色ずれ量は、読取解像度、搬送速度、装置の消耗度合い等によっても変わってくる。よって、Kv、Khの値は、操作部50からの操作により個々に設定可能である。   As the values of the distances Kv and Kh from the target pixel to the virtual pixel, values that are appropriate experimentally and empirically based on individual conveyance unevenness, mechanical vibration, chromatic aberration, and the like of the image reading apparatus 1 may be set. Good. Since the amount of color misregistration caused by conveyance unevenness, mechanical vibration, chromatic aberration, etc. differs between the main scanning direction and the sub scanning direction, the value of the interval Kh between the target pixel and the virtual pixel in the main scanning direction, the target pixel and the virtual pixel The value of the interval Kv in the sub-scanning direction can be set to a different value. In addition, the amount of color misregistration caused by conveyance unevenness, mechanical vibration, chromatic aberration, and the like varies depending on the reading resolution, the conveyance speed, the degree of wear of the apparatus, and the like. Therefore, the values of Kv and Kh can be individually set by an operation from the operation unit 50.

また、Kv、Khの値を操作部50から入力するのではなく、自動的に設定する構成としてもよい。例えば、Kh の値を画素間隔の範囲内で変えながら、順次イメージセンサ202のライン方向(主走査方向)に複数の黒線が入った原稿を読み取り、色画素(有彩色画素)の数を積算し、色画素の総数が最小となるKh のうち、なるべくKhの値が大きくなる値を自動的にKhの値として設定するようにしてもよい(例えば、特開2000−022964号公報、特開2000−022965号公報、特開2000−022966号公報、特開2000−022967号公報、特開2000−022968号公報、2005−184156号公報参照)。Kvの値については、Kv の値を画素間隔の範囲内で変えながら、イメージセンサ202のライン方向と垂直方向に複数の黒線が入った原稿を読み取り、色画素の数を積算し、色画素の総数が最小となるKv のうち、なるべくKv の値が大きくなる値を自動的にKvの値として設定することができる。
なお、RとBとでは色ずれ量が異なることが想定されるため、Kv、Khの値は、R、Bについて別個に設定できることが好ましい。
Alternatively, the values of Kv and Kh may be automatically set instead of being input from the operation unit 50. For example, while changing the value of Kh within the range of the pixel interval, sequentially read a document containing a plurality of black lines in the line direction (main scanning direction) of the image sensor 202 and integrate the number of color pixels (chromatic color pixels). However, among the Kh that minimizes the total number of color pixels, a value that increases the Kh value as much as possible may be automatically set as the Kh value (for example, JP 2000-022964, JP 2000-022965, JP 2000-022966, JP 2000-022967, JP 2000-022968, 2005-184156). As for the value of Kv, while changing the value of Kv within the range of the pixel interval, a document containing a plurality of black lines in the direction perpendicular to the line direction of the image sensor 202 is read, the number of color pixels is added, and the color pixels Of the Kvs with the smallest total number, the value with the largest Kv value can be automatically set as the Kv value.
Since it is assumed that the color misregistration amounts are different between R and B, it is preferable that the values of Kv and Kh can be set separately for R and B.

仮想画素の階調値の算出が終了すると、図8のステップS103には、Rの仮想画素群の階調値(r11〜r33)の最大値Rmaxが算出される(ステップS103)。そして、算出された最大値Rmaxが注目画素のGの階調値G(X,Y)と比較される(ステップS104)。   When the calculation of the gradation value of the virtual pixel is completed, the maximum value Rmax of the gradation values (r11 to r33) of the R virtual pixel group is calculated in step S103 of FIG. 8 (step S103). Then, the calculated maximum value Rmax is compared with the G gradation value G (X, Y) of the target pixel (step S104).

比較の結果、Rmax <G(X,Y)であると判断されると(ステップS104;Yes)、仮想画素の中で最もG(X,Y)に近い値である、RmaxがRの補正結果(Rout)として出力される(ステップS105)。(すなわち、Rout(X,Y)=Rmaxとなる。)
一方、Rmax<G(X,Y)ではない、即ち、Rmax≧G(X,Y)であると判断されると(ステップS104;No)、処理はステップS106に移行する。
If it is determined that Rmax <G (X, Y) as a result of the comparison (step S104; Yes), Rmax is the correction result of R, which is the value closest to G (X, Y) among the virtual pixels. (Rout) is output (step S105). (That is, Rout (X, Y) = Rmax.)
On the other hand, if it is determined that Rmax <G (X, Y) is not satisfied, that is, Rmax ≧ G (X, Y) (step S104; No), the process proceeds to step S106.

ステップS106においては、Rの仮想画素群の階調値(r11〜r33)の最小値Rminが算出される(ステップS106)。そして、算出された最小値Rminが注目画素のGの階調値G(X,Y)と比較される(ステップS107)。   In step S106, the minimum value Rmin of the gradation values (r11 to r33) of the R virtual pixel group is calculated (step S106). Then, the calculated minimum value Rmin is compared with the G gradation value G (X, Y) of the target pixel (step S107).

比較の結果、Rmin>G(X,Y)であると判断されると判断されると(ステップS107;Yes)、仮想画素のなかで最もG(X,Y)に近い値である、RminがRの補正結果(Rout)として出力される(ステップS108)。(すなわち、Rout(X,Y)=Rminとなる。)   If it is determined that Rmin> G (X, Y) as a result of the comparison (step S107; Yes), Rmin, which is the value closest to G (X, Y) among the virtual pixels, is determined. The correction result (Rout) of R is output (step S108). (In other words, Rout (X, Y) = Rmin.)

一方、比較の結果、Rmin>G(X,Y)ではない、即ち、Rmax≧G(X,Y)≧Rminであると判断されると判断されると(ステップS107;No)、G(X,Y)がRの補正結果(Rout)として出力される(ステップS109)。(すなわち、Rout(X,Y)=G(X,Y)となる。)   On the other hand, if it is determined as a result of the comparison that Rmin> G (X, Y) is not satisfied, that is, Rmax ≧ G (X, Y) ≧ Rmin (step S107; No), G (X , Y) is output as an R correction result (Rout) (step S109). (That is, Rout (X, Y) = G (X, Y).)

B−色ずれ補正処理は、R−色ずれ補正処理と同様の処理であるため、説明を援用する。即ち、B−色ずれ補正処理においては、Bの入力画像の各画素を注目画素B(X,Y)として、上記説明したステップS101〜109と同様の処理が行われ、Bout(X,Y)が出力される。   Since the B-color misregistration correction process is the same as the R-color misregistration correction process, the description is cited. In other words, in the B-color misregistration correction process, each pixel of the B input image is set as the target pixel B (X, Y), and the same process as in steps S101 to S109 described above is performed, and Bout (X, Y). Is output.

図11Aに、Rmax≧G(X,Y)≧Rmin、かつBmax≧G(X,Y)≧Bminである場合の色ずれ補正処理の結果を模式的に示す。図11Aにおいて、縦軸は階調値を示している。グラフの左側は、注目画素R(X,Y)に対する仮想画素群の階調値r11,r12,r13,r21,r22(R(X,Y)),r23,r31,r32,r33を示している。グラフ中央は、Gout(X,Y)、Rout(X,Y)、Bout(X,Y)を示している。グラフの右側は、注目画素B(X,Y)に対する仮想画素群の階調値b11,b12,b13,b21,b22(B(X,Y)),b23,b31,b32,b33を示している。
図11Aに示すように、色ずれ補正前はR(X,Y)≠G(X,Y)≠B(X,Y)であり、色がついている状態であったが、上述の色ずれ補正の結果、R(X,Y)=G(X,Y)=B(X,Y)となり、色ずれが完全に補正されている。
FIG. 11A schematically shows the result of the color misregistration correction processing when Rmax ≧ G (X, Y) ≧ Rmin and Bmax ≧ G (X, Y) ≧ Bmin. In FIG. 11A, the vertical axis indicates the gradation value. The left side of the graph shows the gradation values r11, r12, r13, r21, r22 (R (X, Y)), r23, r31, r32, r33 of the virtual pixel group for the target pixel R (X, Y). . The center of the graph shows Gout (X, Y), Rout (X, Y), and Bout (X, Y). The right side of the graph shows the gradation values b11, b12, b13, b21, b22 (B (X, Y)), b23, b31, b32, b33 of the virtual pixel group for the target pixel B (X, Y). .
As shown in FIG. 11A, R (X, Y) .noteq.G (X, Y) .noteq.B (X, Y) before color misregistration correction is in a state of being colored. As a result, R (X, Y) = G (X, Y) = B (X, Y), and color misregistration is completely corrected.

ここで、従来技術における特開2001−203900号公報においても、色ずれ補正の手法が開示されているが、この技術では、主走査方向の補正だけで、RH1〜RH15(Rの補間画素),BH1〜BH15(Bの補間画素)と、RとB各15点もの補間点(内各1点は入力画素)とGn(注目画素のG入力値)との比較を行っている。Gnに最も近い値として、RH10,BH5が選択されているが、これらがGnと一致するとは限らず、通常はGnとは多少の差がある。そのため、色ずれの補正性能を上げるには、補間点を増やす必要があり、副走査方向も合わせて行うとすると、より多くの補間点を算出する必要がある。
これに対し、上記の色ずれ補正処理Aでは、RとBそれぞれについて、入力画素と8点の補間演算、最大値及び最小値のG(X,Y)との比較演算、を行えば済むため、回路の構成が単純で、より優れた色ずれ補正の結果が得られる。また、エッジ検出を行うことなく色ずれ補正を行うので、黒文字などの無彩色部のエッジ部分の色ずれによる色づきを抑制するだけでなく、黒文字の内部の黒再現にも優れた補正効果を得ることができる。
Here, Japanese Patent Application Laid-Open No. 2001-203900 also discloses a color misregistration correction method. However, in this technique, only RH1 to RH15 (R interpolation pixels), Comparison is made between BH1 to BH15 (B interpolation pixels), R and B interpolation points (of which one is an input pixel) and Gn (G input value of the pixel of interest). RH10 and BH5 are selected as the closest values to Gn, but these do not always coincide with Gn, and there is usually a slight difference from Gn. Therefore, in order to improve the color misregistration correction performance, it is necessary to increase the number of interpolation points. If the sub-scanning direction is also performed, it is necessary to calculate more interpolation points.
In contrast, in the color misregistration correction process A described above, for each of R and B, it is only necessary to perform an interpolation calculation of the input pixel and 8 points, and a comparison operation between the maximum value and the minimum value G (X, Y). The circuit configuration is simple, and a better color misregistration correction result can be obtained. In addition, since color misregistration correction is performed without performing edge detection, not only coloring due to color misregistration at the edge of achromatic parts such as black characters is suppressed, but also excellent correction effects are obtained for black reproduction inside black characters. be able to.

図11Bに、Rmax <G(X,Y)である場合の色ずれ補正処理の結果を模式的に示す。図11Bにおいて、縦軸は階調値を示している。グラフの左側は、注目画素R(X,Y)に対する仮想画素群の階調値r11,r12,r13,r21,r22(R(X,Y)),r23,r31,r32,r33を示している。グラフ右側は、補正前の階調値R(X,Y)、G(X,Y)、補正後の階調値Rout(X,Y) 、Gout(X,Y)を示している。
図11Bに示すように、Rmax <G(X,Y)の場合、上述の色ずれ補正処理の結果、R(X,Y)の値が仮想画素中G(X,Y)に最も近いRmax に補正される。Bについても同様である。
FIG. 11B schematically shows the result of color misregistration correction processing when Rmax <G (X, Y). In FIG. 11B, the vertical axis indicates the gradation value. The left side of the graph shows the gradation values r11, r12, r13, r21, r22 (R (X, Y)), r23, r31, r32, r33 of the virtual pixel group for the target pixel R (X, Y). . The right side of the graph shows gradation values R (X, Y) and G (X, Y) before correction, and gradation values Rout (X, Y) and Gout (X, Y) after correction.
As shown in FIG. 11B, in the case of Rmax <G (X, Y), as a result of the above-described color misregistration correction processing, the value of R (X, Y) becomes Rmax closest to G (X, Y) in the virtual pixel. It is corrected. The same applies to B.

図11CにRmin>G(X,Y)である場合の色ずれ補正処理の結果を模式的に示す。図11Cにおいて、縦軸は階調値を示している。グラフの左側は、注目画素R(X,Y)に対する仮想画素群の階調値r11,r12,r13,r21,r22(R(X,Y)),r23,r31,r32,r33を示している。グラフ右側は、補正前の階調値R(X,Y)、G(X,Y)、補正後の階調値Rout(X,Y) 、Gout(X,Y)を示している。
図11Cに示すように、Rmin>G(X,Y)の場合、上述の色ずれ補正処理の結果、R(X,Y)の値が仮想画素群中G(X,Y)に最も近いRmin に補正される。Bについても同様である。
FIG. 11C schematically shows the result of color misregistration correction processing when Rmin> G (X, Y). In FIG. 11C, the vertical axis indicates the gradation value. The left side of the graph shows the gradation values r11, r12, r13, r21, r22 (R (X, Y)), r23, r31, r32, r33 of the virtual pixel group for the target pixel R (X, Y). . The right side of the graph shows gradation values R (X, Y) and G (X, Y) before correction, and gradation values Rout (X, Y) and Gout (X, Y) after correction.
As shown in FIG. 11C, when Rmin> G (X, Y), the value of R (X, Y) is the closest to R (X, Y) in the virtual pixel group as a result of the color misregistration correction process described above. It is corrected to. The same applies to B.

なお、上記色ずれ補正処理Aでは、主走査方向、副走査方向の双方向について色ずれ補正を行う場合を例にとり説明したが、何れか一方の方向の色ずれのみを補正することもできる。例えば、図8のステップS101で作成する隣接画素ウィンドウを、図9Bに示すように注目画素及びこれと主走査方向に隣接する3画素とし、ステップS102で設定する仮想画素を注目画素から主走査方向にKh隔てた位置(2箇所)に設けることとすれば、主走査方向のみの色ずれ補正を行うことができる。また、図8のステップS101で作成する隣接画素ウィンドウを、図9Cに示すように注目画素及びこれと副走査方向に隣接する3画素とし、ステップS102で設定する仮想画素を注目画素から副走査方向にKv隔てた位置(2箇所)に設けることとすれば、副走査方向のみの色ずれ補正を行うことができる。   In the color misregistration correction process A, the case where the color misregistration correction is performed in both directions of the main scanning direction and the sub scanning direction has been described as an example. However, only the color misregistration in any one direction can be corrected. For example, as shown in FIG. 9B, the adjacent pixel window created in step S101 in FIG. 8 is the target pixel and three pixels adjacent thereto in the main scanning direction, and the virtual pixel set in step S102 is changed from the target pixel to the main scanning direction. If it is provided at positions (two places) separated by Kh, color misregistration correction can be performed only in the main scanning direction. Further, as shown in FIG. 9C, the adjacent pixel window created in step S101 in FIG. 8 is set as the target pixel and three pixels adjacent to the target pixel in the sub scanning direction, and the virtual pixel set in step S102 is changed from the target pixel to the sub scanning direction. If it is provided at positions (two locations) separated by Kv, color misregistration correction only in the sub-scanning direction can be performed.

〔第2の実施の形態〕
次に、本発明の第2の実施の形態について説明する。
黒文字等の原稿の無彩色部の色ずれは、無彩色部の周辺部に現れる特徴がある。一方、カラー原稿のC、M、Yなどの色網点など、原稿の無彩色部以外の領域に色ずれ補正を行うと、有彩色のエッジ部の彩度が低下する現象が生じる場合がある。そこで、第2の実施の形態においては、黒画素(無彩色画素)が周囲にある領域に限定して色ずれ補正を行うことで、無彩色の色づきを抑制した良好な黒文字再現性と、色周辺部彩度低下を抑制した色ずれ補正を実現する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described.
The color shift of the achromatic portion of the original such as black characters has a feature that appears in the peripheral portion of the achromatic portion. On the other hand, when color misregistration correction is performed on an area other than the achromatic portion of the original, such as color halftone dots such as C, M, and Y of a color original, a phenomenon may occur in which the saturation of the edge portion of the chromatic color is lowered. . Therefore, in the second embodiment, by performing color misregistration correction only in a region where black pixels (achromatic pixels) are in the vicinity, good black character reproducibility with suppressed achromatic coloring and color Color misregistration correction that suppresses peripheral saturation reduction is realized.

なお、本実施の形態では、第1の実施の形態と同様、Gを基準色とし、R、Bを補正対象色として、即ち、ライン間補正部33から入力されたGの入力画像を基準として、Rの入力画像及びBの入力画像を補正する場合について説明するが、Rの入力画像を基準として、Gの入力画像とBの入力画像を補正してもよいし、Bの入力画像を基準として、Rの入力画像とGの入力画像を補正することとしてもよい。また、画像読取装置1の各部の構成は、第1の実施の形態で説明したものと同様であるので説明を援用する。   In the present embodiment, as in the first embodiment, G is the reference color, R and B are the correction target colors, that is, the G input image input from the interline correction unit 33 is the reference. The case where the R input image and the B input image are corrected will be described. However, the G input image and the B input image may be corrected using the R input image as a reference, and the B input image may be used as a reference. As an alternative, the R input image and the G input image may be corrected. Further, the configuration of each part of the image reading apparatus 1 is the same as that described in the first embodiment, and thus the description is incorporated.

図12に、第2の実施の形態において、色ずれ補正部34により実行される色ずれ補正処理Bのフローチャートを示す。色ずれ補正部34においては、注目画素(X,Y)を順次移動させながら、各色の入力画像の各画素について、図12に示す色ずれ補正処理Bが行われる。   FIG. 12 shows a flowchart of color misregistration correction processing B executed by the color misregistration correction unit 34 in the second embodiment. In the color misregistration correction unit 34, the color misregistration correction processing B shown in FIG. 12 is performed for each pixel of the input image of each color while sequentially moving the target pixel (X, Y).

色ずれ補正処理Bにおいては、まず、黒領域判定処理が行われる(ステップS11)。黒領域判定処理は、注目画素の周囲の黒画素(無彩色画素)の存在状態を判定する処理である。   In the color misregistration correction process B, first, a black area determination process is performed (step S11). The black area determination process is a process of determining the presence state of black pixels (achromatic pixels) around the target pixel.

図13に、ステップS11において実行される黒領域判定処理のフローチャートを示す。
まず、注目画素の周囲に、図14Aに示す黒領域判定ウィンドウが設定される(ステップS201)。
図14Aに示すように、黒領域判定ウィンドウは、注目画素(X,Y)及びその周囲に存在する(注目画素から上下wy、左右wxの範囲に存在する)周辺画素に対して設定される。黒領域判定ウィンドウの各画素に対しては、後述する黒画素/色画素判別処理の結果を格納するためのJdgBk(X+j,Y+i)(−wx≦j≦wx、−wy≦i≦wy;その位置の画素が黒画素と判別された場合は、TRUE、色画素と判別された場合は、FALSE)が設けられる。wx、wyの値としては、1画素、または、光学系のMTFの劣化を考慮し2画素程度が良好な結果が得られるが、装置や原稿の特性に合わせて、別の値を設定しても良い。
FIG. 13 shows a flowchart of the black area determination process executed in step S11.
First, a black area determination window shown in FIG. 14A is set around the target pixel (step S201).
As shown in FIG. 14A, the black region determination window is set for the pixel of interest (X, Y) and surrounding pixels (existing from the pixel of interest up and down wy and left and right wx). For each pixel of the black area determination window, JdgBk (X + j, Y + i) (−wx ≦ j ≦ wx, −wy ≦ i ≦ wy) for storing the result of the black pixel / color pixel determination processing described later; If the pixel at the position is determined to be a black pixel, TRUE, and if it is determined to be a color pixel, FALSE) is provided. As for the values of wx and wy, good results can be obtained with one pixel or about two pixels in consideration of the degradation of the MTF of the optical system, but different values can be set according to the characteristics of the apparatus and the document. Also good.

次いで、カウンタCountBkに初期値0が設定され(ステップS202)、変数iに−wy、変数jに−wxが設定される(ステップS203、ステップS204)。   Next, an initial value 0 is set to the counter CountBk (step S202), -wy is set to the variable i, and -wx is set to the variable j (step S203, step S204).

次いで、(X+j,Y+i)の画素について、黒画素/色画素判別処理が実行される(ステップS205)。   Next, a black pixel / color pixel discrimination process is executed for the pixel (X + j, Y + i) (step S205).

図15に、黒画素/色画素判別処理のフローチャートを示す。
まず、変数RにR(X+j,Y+i)の階調値が設定され、変数GにG(X+j,Y+i)の階調値が設定され、変数BにB(X+j,Y+i)の階調値が設定される(ステップS2051)。
FIG. 15 shows a flowchart of the black pixel / color pixel discrimination process.
First, the gradation value of R (X + j, Y + i) is set in the variable R, the gradation value of G (X + j, Y + i) is set in the variable G, and the gradation value of B (X + j, Y + i) is set in the variable B. It is set (step S2051).

次いで、変数R、G、Bの値に基づいて、(式1)により画素(X+j,Y+i)の彩度に関する指標Wが算出される(ステップS2052)。
(式1) W=MAX{R,G,B}-MIN{R,G,B}
Next, based on the values of the variables R, G, and B, an index W relating to the saturation of the pixel (X + j, Y + i) is calculated by (Equation 1) (step S2052).
(Formula 1) W = MAX {R, G, B} -MIN {R, G, B}

次いで、変数R、G、Bの値に基づいて、(式2)により画素(X+j,Y+i)の明度に関する指標Vが算出される(ステップS2053)。
(式2) V=MIN{R,G,B}
Next, based on the values of the variables R, G, and B, an index V related to the brightness of the pixel (X + j, Y + i) is calculated by (Equation 2) (step S2053).
(Formula 2) V = MIN {R, G, B}

なお、WとVの算出方法としては、上記とは別の公知の方法を用いても良い。
たとえば、Vを下記の定数Kr,Kg,Kb(Kr+Kg+Kb=1)との積和演算により求めてもよい。
V=Kr ×R + Kg × G + Kb × B
As a method for calculating W and V, a known method different from the above may be used.
For example, V may be obtained by a product-sum operation with the following constants Kr, Kg, Kb (Kr + Kg + Kb = 1).
V = Kr x R + Kg x G + Kb x B

次いで、色ずれ補正部34内のメモリに記憶されている彩度リファレンスWref(V)が参照され、Wref(V)>Wであるか否かが判定されることにより、当該画素が黒画素(無彩色画素)であるか色画素(有彩色画素)であるかの判定が行われる(ステップS2054)。彩度リファレンスWref(V)は、図16に示すように、各明度の値Vに対するWの閾値Wref(V)(有彩色であるか無彩色であるかを判定するための閾値)を格納したテーブルである。
Wref(V)>Wの場合は、画素(X+j,Y+i)が黒画素(無彩色画素)と判定され、Wref(V)≦Wの場合は、(X+j,Y+i)が色画素(有彩色画素)と判定される。
Next, the saturation reference Wref (V) stored in the memory in the color misregistration correction unit 34 is referred to, and it is determined whether or not Wref (V)> W. It is determined whether the pixel is an achromatic pixel or a color pixel (chromatic pixel) (step S2054). As shown in FIG. 16, the saturation reference Wref (V) stores W threshold values Wref (V) (threshold values for determining whether a chromatic color or an achromatic color) for each lightness value V. It is a table.
When Wref (V)> W, the pixel (X + j, Y + i) is determined as a black pixel (achromatic pixel). When Wref (V) ≦ W, (X + j, Y + i) is a color pixel (chromatic pixel) ).

ステップS2054において、Wref(V)>Wと判定されると(ステップS2054;Yes)、JdgBk(X+j,Y+i)にTRUEが設定され(ステップS2055)、処理は図13のステップS206に移行する。ステップS2054において、Wref(V)≦Wと判定されると(ステップS2054;No)、JdgBk(X+j,Y+i)にFALSEが設定され(ステップS2056)、処理は図13のステップS206に移行する。   If it is determined in step S2054 that Wref (V)> W (step S2054; Yes), TRUE is set in JdgBk (X + j, Y + i) (step S2055), and the process proceeds to step S206 in FIG. If it is determined in step S2054 that Wref (V) ≦ W (step S2054; No), FALSE is set in JdgBk (X + j, Y + i) (step S2056), and the process proceeds to step S206 in FIG.

図13のステップS206においては、JdgBk(X+j,Y+i)がTRUEであるかFALSEであるかが判断される。JdgBk(X+j,Y+i)がTRUEであると判断されると(ステップS206;TRUE)、CountBkが1インクリメントされ(ステップS207)、処理はステップS208に移行する。JdgBk(X+j,Y+i)がFALSEであると判断されると(ステップS206;FALSE)、処理はステップS208に移行する。   In step S206 of FIG. 13, it is determined whether JdgBk (X + j, Y + i) is TRUE or FALSE. When it is determined that JdgBk (X + j, Y + i) is TRUE (step S206; TRUE), CountBk is incremented by 1 (step S207), and the process proceeds to step S208. If it is determined that JdgBk (X + j, Y + i) is FALSE (step S206; FALSE), the process proceeds to step S208.

ステップS208においては、変数jが1インクリメントされ(ステップS208)、j>wxであるか否かが判断される(ステップS209)。j>wxではないと判断されると(ステップS209;No)、処理はステップS205に戻る。j>wxであると判断されると(ステップS209;Yes)、変数iが1インクリメントされ(ステップS210)、i >wyであるか否かが判断される(ステップS211)。i>wyではないと判断されると(ステップS211;No)、処理はステップS204に戻る。i>wy であると判断されると(ステップS211;Yes)、処理はステップS212に移行する。   In step S208, the variable j is incremented by 1 (step S208), and it is determined whether j> wx is satisfied (step S209). If it is determined that j> wx is not satisfied (step S209; No), the process returns to step S205. If it is determined that j> wx is satisfied (step S209; Yes), the variable i is incremented by 1 (step S210), and it is determined whether i> wy is satisfied (step S211). If it is determined that i> wy is not satisfied (step S211; No), the process returns to step S204. If it is determined that i> wy (step S211; Yes), the process proceeds to step S212.

ステップS212においては、CountBkの値が予め定められた閾値Th以上であるか否かが判断される。閾値Thは、補正が弱まることによる画質低下と、黒画素以外に補正をかけてしまうことによる画質低下とを比較考量して定められた値であり、例えば、1である。CountBk≧Thであると判断されると(ステップS212;Yes)、黒領域判定結果AreaBk(X,Y)にTRUEが設定される(ステップS213)。CountBk<Thであると判断されると(ステップS212;No)、黒領域判定結果AreaBk(X,Y)にFALSEが設定される(ステップS214)。そして、処理は図12のステップS12に移行する。   In step S212, it is determined whether or not the value of CountBk is greater than or equal to a predetermined threshold Th. The threshold value Th is a value determined by comparing and considering the deterioration in image quality due to weakening of correction and the deterioration in image quality due to correction other than black pixels, for example, 1. If it is determined that CountBk ≧ Th (step S212; Yes), TRUE is set in the black region determination result AreaBk (X, Y) (step S213). If it is determined that CountBk <Th (step S212; No), FALSE is set in the black area determination result AreaBk (X, Y) (step S214). And a process transfers to step S12 of FIG.

図12のステップS12においては、AreaBk(X,Y)=TRUEであるか否かが判断される。AreaBk(X,Y)=TRUEであると判断されると(ステップS12;TRUE)、R−色ずれ補正処理(ステップS13)、B−色ずれ補正処理(ステップS14)が実行され、処理はステップS17に移行する。R−色ずれ補正処理、B−色ずれ補正処理は、第1の実施の形態で説明したものと同様であるので説明を援用する。一方、AreaBk(X,Y)=FALSEであると判断されると(ステップS12;FALSE)、Rout(X,Y)にR(X,Y)の値が設定され(ステップS15)、Bout(X,Y)にB(X,Y)が設定され(ステップS16)、処理はステップS17に移行する。   In step S12 of FIG. 12, it is determined whether AreaBk (X, Y) = TRUE. If it is determined that AreaBk (X, Y) = TRUE (step S12; TRUE), R-color misregistration correction processing (step S13) and B-color misregistration correction processing (step S14) are executed. The process proceeds to S17. Since the R-color misregistration correction process and the B-color misregistration correction process are the same as those described in the first embodiment, the description will be cited. On the other hand, if it is determined that AreaBk (X, Y) = FALSE (step S12; FALSE), the value of R (X, Y) is set in Rout (X, Y) (step S15), and Bout (X , Y) is set to B (X, Y) (step S16), and the process proceeds to step S17.

ステップS17においては、Gout(X,Y)にG(X,Y)が設定され(ステップS17)、色ずれ補正処理Bは終了する。   In step S17, G (X, Y) is set in Gout (X, Y) (step S17), and the color misregistration correction process B ends.

なお、図12においては、R−色ずれ補正処理の次にB−色ずれ補正処理を行い、その後、Gout(X,Y)にG(X,Y)を設定することとして説明したが、この順序は問わない。また、これらの処理は並列して行うこととしてもよい。   In FIG. 12, the R-color misregistration correction process is followed by the B-color misregistration correction process, and then G (X, Y) is set to Gout (X, Y). The order does not matter. These processes may be performed in parallel.

また、黒領域判定ウィンドウは、図14Aに示したものに限らず、図14B、図14Cに示す黒領域判定ウィンドウを用いることもできる。
図14Bに示す黒領域判定ウィンドウは、TFの劣化や、光学系のMTFの劣化、色ずれ量、原稿自体の色ずれが少ない場合等に適した例である。
図14Cに示す黒領域判定ウィンドウは、主走査方向に対して副走査方向の方が、光学系のMTFの劣化、色ずれ量、原稿自体の色ずれが大きい場合等に適した例である。
The black region determination window is not limited to that shown in FIG. 14A, and the black region determination window shown in FIGS. 14B and 14C can also be used.
The black area determination window shown in FIG. 14B is an example suitable for a case where TF deterioration, MTF deterioration of the optical system, color misregistration amount, and color misregistration of the document itself are small.
The black area determination window shown in FIG. 14C is an example suitable for the case where the MTF degradation of the optical system, the color misregistration amount, and the color misregistration of the document itself are larger in the sub scanning direction than in the main scanning direction.

また、上記第2の実施の形態では、黒領域判定処理において、黒領域判定ウィンドウ内の黒画素の数を単純にカウントして注目画素の周囲領域が黒領域であるか否かを判定したが、変形例として、注目画素からの相対的な位置によって黒画素判別ウィンドウ内の各画素に重み付けをしても良い。   In the second embodiment, in the black area determination process, the number of black pixels in the black area determination window is simply counted to determine whether or not the surrounding area of the target pixel is a black area. As a modification, each pixel in the black pixel determination window may be weighted according to a relative position from the target pixel.

図17に、図14Aに示す黒領域判定ウィンドウの重み付けフィルタ(黒領域判定ウィンドウの各画素の重み付け係数を格納したフィルタ)の一例を示す。図17の左側は、黒領域判定ウィンドウの座標を、右側は重み付け係数を示している。図17の重み付けフィルタでは、注目画素に近い画素ほど重み付け係数が大きくなっている。また、主走査方向と副走査方向とでは、副走査方向のほうが重み付け係数が大きくなっている。   FIG. 17 shows an example of a weighting filter for the black area determination window shown in FIG. 14A (a filter storing the weighting coefficient of each pixel in the black area determination window). The left side of FIG. 17 shows the coordinates of the black area determination window, and the right side shows the weighting coefficient. In the weighting filter of FIG. 17, the weighting coefficient is larger as the pixel is closer to the target pixel. Further, the weighting coefficient is larger in the sub-scanning direction between the main scanning direction and the sub-scanning direction.

図17に示すような重み付けフィルタを用いる場合、図12のステップ11では、図18に示す黒領域判定処理Bのフローで処理が行われる。なお、以下の説明では、黒領域判定ウィンドウは図14Aに示すものを用いる場合を例にとり説明するが、図14B、Cに示す黒領域判定ウィンドウを用いて黒領域判定を行うこととしてもよい。   When the weighting filter as shown in FIG. 17 is used, in step 11 of FIG. 12, processing is performed in the flow of black area determination processing B shown in FIG. In the following description, the case where the black region determination window shown in FIG. 14A is used will be described as an example. However, the black region determination may be performed using the black region determination windows shown in FIGS.

黒領域判定処理Bでは、まず、黒領域判定ウィンドウが設定される(ステップS301)。   In the black area determination process B, first, a black area determination window is set (step S301).

次いで、カウンタSumに初期値0が設定され(ステップS302)、変数iに−wy、変数jに−wxが設定される(ステップS303、ステップS304)。   Next, an initial value 0 is set in the counter Sum (step S302), -wy is set in the variable i, and -wx is set in the variable j (step S303, step S304).

次いで、画素(X+j,Y+i)について、図15に示す黒画素/色画素判別処理が実行される(ステップS305)。   Next, the black pixel / color pixel discrimination process shown in FIG. 15 is executed for the pixel (X + j, Y + i) (step S305).

次いで、JdgBk(X+j,Y+i)がTRUEであるかFALSEであるかが判断される。JdgBk(X+j,Y+i)がTRUEであると判断されると(ステップS306;TRUE)、図14Cに示す重み付けフィルタが参照され、カウンタSumの値にWtBk(X+j,Y+i)の重み付け係数が加算され(ステップS307)、処理はステップS308に移行する。JdgBk(X+j,Y+i)がFALSEであると判断されると(ステップS306;FALSE)、処理はステップS308に移行する。   Next, it is determined whether JdgBk (X + j, Y + i) is TRUE or FALSE. When it is determined that JdgBk (X + j, Y + i) is TRUE (step S306; TRUE), the weighting filter shown in FIG. 14C is referred to, and the weighting coefficient of WtBk (X + j, Y + i) is added to the value of the counter Sum ( In step S307), the process proceeds to step S308. If it is determined that JdgBk (X + j, Y + i) is FALSE (step S306; FALSE), the process proceeds to step S308.

ステップS308においては、変数jが1インクリメントされ(ステップS308)、j>wxであるか否かが判断される(ステップS309)。j>wxではないと判断されると(ステップS309;No)、処理はステップS305に戻る。j>wxであると判断されると(ステップS309;Yes)、変数iが1インクリメントされ(ステップS310)、i >wyであるか否かが判断される(ステップS311)。i>wyではないと判断されると(ステップS311;No)、処理はステップS304に戻る。i>wy であると判断されると(ステップS311;Yes)、処理はステップS312に移行する。   In step S308, the variable j is incremented by 1 (step S308), and it is determined whether j> wx is satisfied (step S309). If it is determined that j> wx is not satisfied (step S309; No), the process returns to step S305. If it is determined that j> wx (step S309; Yes), the variable i is incremented by 1 (step S310), and it is determined whether i> wy is satisfied (step S311). If it is determined that i> wy is not satisfied (step S311; No), the process returns to step S304. If it is determined that i> wy (step S311; Yes), the process proceeds to step S312.

ステップS312においては、Sumの値が予め定められた閾値Th以上であるか否かが判断される。閾値Thは、補正が弱まることによる画質低下と、黒画素以外に補正をかけてしまうことによる画質低下とを比較考量して定められた値であり、例えば、4である。Sum≧Thであると判断されると(ステップS312;Yes)、黒領域判定結果AreaBk(X,Y)にTRUEが設定される(ステップS313)。Sum<Thであると判断されると(ステップS312;No)、黒領域判定結果AreaBk(X,Y)にFALSEが設定される(ステップS314)。そして、処理は図12のステップS12に移行し、ステップS12以降の処理が実行される。   In step S312, it is determined whether or not the value of Sum is greater than or equal to a predetermined threshold Th. The threshold value Th is a value determined by comparing and considering the deterioration in image quality due to weakening correction and the deterioration in image quality due to correction other than black pixels, for example, 4. If it is determined that Sum ≧ Th (step S312; Yes), TRUE is set in the black region determination result AreaBk (X, Y) (step S313). If it is determined that Sum <Th (step S312; No), FALSE is set in the black region determination result AreaBk (X, Y) (step S314). And a process transfers to step S12 of FIG. 12, and the process after step S12 is performed.

黒領域判定処理Bでは、例えばTh=4である場合、図17において重み付け係数が4に設定されている画素のうち1画素でも黒画素と判別された場合は色ずれ補正が行われるが、それ以外の画素の場合は、少なくとも2画素以上黒画素と判定されなければ色ずれ補正が行われない。
このように、注目画素から近い位置の重み付け係数の値を大きくすることで、黒画素と色画素の判定の境界部分についても、より安定した黒領域判定結果が得られる効果がある。
In the black area determination process B, for example, when Th = 4, color shift correction is performed when even one of the pixels whose weighting coefficient is set to 4 in FIG. In the case of other pixels, color misregistration correction is not performed unless it is determined that at least two pixels are black pixels.
As described above, by increasing the value of the weighting coefficient at a position close to the target pixel, there is an effect that a more stable black region determination result can be obtained even at the boundary between the determination of the black pixel and the color pixel.

上記第2の実施の形態及び変形例で説明した色ずれ補正部34の処理は、専用のハードウェアにより実現することとしてもよいし、図5に示す色ずれ補正処理プログラムP4が上記色ずれ補正処理BをCPUに実行させるためのプログラムを含むこととし、CPUと色ずれ補正処理プログラムP4との協働によるソフトウェア処理により色ずれ補正部34の機能を実現させることとしてもよい。   The processing of the color misregistration correction unit 34 described in the second embodiment and the modification may be realized by dedicated hardware, or the color misregistration correction processing program P4 shown in FIG. A program for causing the CPU to execute the process B may be included, and the function of the color misregistration correction unit 34 may be realized by software processing in cooperation with the CPU and the color misregistration correction processing program P4.

また、本実施の形態においては、黒領域判定ウィンドウに注目画素を含めることとして説明したが、黒領域判定ウィンドウを周辺画素のみに設定し、周辺画素の黒画素の数に応じて注目画素の周辺が黒領域であるか否かを判定する構成としてもよい。   Further, in the present embodiment, it has been described that the pixel of interest is included in the black region determination window, but the black region determination window is set only to the peripheral pixels, and the periphery of the pixel of interest is set according to the number of black pixels of the peripheral pixels It may be configured to determine whether or not is a black region.

〔第3の実施の形態〕
次に、本発明の第3の実施の形態について説明する。
上述のように、画像読取装置1は、ADF原稿読取方式と、FB原稿読取方式の2つの原稿読取方式を切り替え可能である。ADF原稿読取方式では、上述のように複数のローラ等を用いて原稿をセンサモジュールに対して副走査方向に移動させるため、原稿をプラテンガラス201上に固定するFB原稿読取方式に比べて色ずれ量が大きい。そこで、本実施の形態においては、第1の実施の形態や第2の実施の形態で説明した色ずれ補正処理を行う前に、読取部20bの原稿読取方式を判別し、原稿読取方式に応じて、仮想画素を設定する際に使用されるKv、Khの値を自動的に切り替える。
[Third Embodiment]
Next, a third embodiment of the present invention will be described.
As described above, the image reading apparatus 1 can switch between the two document reading methods, the ADF document reading method and the FB document reading method. In the ADF document reading method, since the document is moved in the sub-scanning direction with respect to the sensor module using a plurality of rollers as described above, color misregistration is compared to the FB document reading method in which the document is fixed on the platen glass 201. The amount is large. Therefore, in the present embodiment, the document reading method of the reading unit 20b is determined before performing the color misregistration correction processing described in the first embodiment or the second embodiment, and the document reading method is used. Thus, the values of Kv and Kh used when setting the virtual pixel are automatically switched.

第3の実施の形態においては、制御部10のROMに、FB原稿読取方式に対応するKv値であるKvFB、FB原稿読取方式に対応するKh値であるKhFB、ADF原稿読取方式に対応するKv値であるKvADF、ADF原稿読取方式に対応するKh値であるKhADFの値が記憶されている。KvFB<KvADF、KhFB<KhADFである。
その他の画像読取装置1の各部の構成及び色ずれ補正部34の動作は、第1の実施の形態又は第2の実施の形態で説明したものと同様であるので説明を援用する。
In the third embodiment, the ROM of the control unit 10 stores KvFB, which is a Kv value corresponding to the FB document reading method, KhFB, which is a Kh value corresponding to the FB document reading method, and Kv, corresponding to the ADF document reading method. The value KvADF and the value KhADF which is the Kh value corresponding to the ADF document reading method are stored. KvFB <KvADF and KhFB <KhADF.
The configuration of each part of the other image reading apparatus 1 and the operation of the color misregistration correction unit 34 are the same as those described in the first embodiment or the second embodiment.

図19は、操作部50によりスキャン開始指示が入力された際に、制御部10により実行されるスキャン制御処理を示すフローチャートである。
まず、今回のスキャン開始指示が1回目のスキャンの開始指示であるか否かが判断される(ステップT1)。ここで、スキャンとは、原稿を読み取ることをさす。例えば、ADF部20aに原稿が載置された状態(原稿検知センサから原稿有りの検知信号が出力された状態)となってから初めて行われるスキャンは、1回目のスキャンであると判断される。また、開閉センサから開の検知信号が出力されてから初めて行われたスキャン及び所定時間経過後に行われたスキャンは、1回目のスキャンであると判断される。
FIG. 19 is a flowchart illustrating a scan control process executed by the control unit 10 when a scan start instruction is input from the operation unit 50.
First, it is determined whether or not the current scan start instruction is a first scan start instruction (step T1). Here, scanning refers to reading a document. For example, the scan that is performed for the first time after a document is placed on the ADF unit 20a (a document detection sensor is output from the document detection sensor) is determined to be the first scan. In addition, a scan performed for the first time after the opening detection signal is output from the open / close sensor and a scan performed after a predetermined time has elapsed are determined to be the first scan.

ステップT1において、1回目のスキャンであると判断されると(ステップT1;Yes)、処理はステップT3に移行する。1回目のスキャンではないと判断されると(ステップT1;No)、原稿読取方式が前回と同じであるか否かが判断される(ステップT2)。ここで、制御部10のRAMには、前回の原稿読取方式に対応するKv、Khの値が記憶されている。制御部10においては、例えば、原稿検知センサから原稿有りの検知信号が出力されている状態でスキャンが指示された場合、ADF原稿読取方式であると判断される。開閉検知センサから開の検知信号が出力されている状態でスキャンが指示された場合、FB原稿読取方式であると判断される。そして、判断の結果がRAMに記憶されているKv、Khの値に対応する原稿読取方式と一致している場合は、原稿読取方式が前回と同じであると判断され、一致していない場合は、原稿読取方式が前回と異なると判断される。   If it is determined in step T1 that this is the first scan (step T1; Yes), the process proceeds to step T3. If it is determined that it is not the first scan (step T1; No), it is determined whether or not the document reading method is the same as the previous scan (step T2). Here, the RAM of the control unit 10 stores Kv and Kh values corresponding to the previous document reading method. In the control unit 10, for example, when scanning is instructed in a state where a document presence detection signal is output from the document detection sensor, it is determined that the ADF document reading method is used. When scanning is instructed in a state where an open detection signal is output from the open / close detection sensor, it is determined that the FB document reading method is used. If the determination result matches the document reading method corresponding to the Kv and Kh values stored in the RAM, it is determined that the document reading method is the same as the previous one. Therefore, it is determined that the document reading method is different from the previous one.

ステップT2において、原稿読取方式が前回と同じであると判断されると(ステップT2;Yes)、前回と同様の原稿読取方式によるスキャンが読取装置20に指示され、読取装置20においてスキャン処理が実行される(ステップT7)。   When it is determined in step T2 that the document reading method is the same as the previous time (step T2; Yes), scanning by the same document reading method as the previous time is instructed to the reading device 20, and scanning processing is executed in the reading device 20. (Step T7).

原稿読取方式が前回と異なると判断されると(ステップT2;No)、今回の原稿読取方式がADF原稿読取方式であるかFB原稿読取方式であるかが判断される(ステップT3)。今回の原稿読取方式がFB原稿読取方式であると判断されると(ステップT3;FB)、RAMに記憶されているKvの値がKvFBに、Khの値がKhFBに置き換えられ(ステップT4)、処理はステップT6に移行する。今回の原稿読取方式がADF原稿読取方式であると判断されると(ステップT3;ADF)、RAMに記憶されているKvの値がKvADFに、Khの値がKhADFに置き換えられ(ステップT5)、処理はステップT6に移行する。   If it is determined that the document reading method is different from the previous one (step T2; No), it is determined whether the current document reading method is the ADF document reading method or the FB document reading method (step T3). When it is determined that the current document reading method is the FB document reading method (step T3; FB), the Kv value stored in the RAM is replaced with KvFB, and the Kh value is replaced with KhFB (step T4). The process proceeds to step T6. When it is determined that the current document reading method is the ADF document reading method (step T3; ADF), the Kv value stored in the RAM is replaced with KvADF, and the Kh value is replaced with KhADF (step T5). The process proceeds to step T6.

ステップT6においては、RAMに記憶されたKv及びKhの値が色ずれ補正部34のレジスタに設定される(ステップT6)。そして、ステップT3で判断された原稿読取方式によるスキャンが読取装置20に指示され、読取装置20によりスキャン処理が実行される(ステップT7)。   In step T6, the values of Kv and Kh stored in the RAM are set in the register of the color misregistration correction unit 34 (step T6). Then, scanning by the document reading method determined in step T3 is instructed to the reading device 20, and scanning processing is executed by the reading device 20 (step T7).

第3の実施の形態によれば、FB原稿読取方式と比較して色ずれ量の大きいADF原稿読取方式では、FB原稿読取方式に比べて仮想画素を設定する際に使用されるKv、Khの値を自動的に大きくすることができる。従って、原稿読取方式に応じた良好な補正結果を得ることができる。   According to the third embodiment, in the ADF document reading method having a large color shift amount compared to the FB document reading method, the Kv and Kh used when setting virtual pixels compared to the FB document reading method. The value can be increased automatically. Therefore, a good correction result according to the document reading method can be obtained.

以上説明したように、画像処理装置30の色ずれ補正部34は、補正対象色(R、B)の画像において、注目画素とこれに隣接する隣接画素との間に仮想画素を設定し、注目画素の階調値及び隣接画素の階調値に基づいて仮想画素の階調値を算出し、注目画素の基準色(G)の階調値が補正対象色の注目画素と仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合に、補正対象色の注目画素の階調値を基準色の階調値に変換する。   As described above, the color misregistration correction unit 34 of the image processing device 30 sets a virtual pixel between a target pixel and an adjacent pixel adjacent to the target pixel (R, B) in the correction target color (R, B) image. Based on the gradation value of the pixel and the gradation value of the adjacent pixel, the gradation value of the virtual pixel is calculated, and the gradation value of the reference color (G) of the target pixel is a virtual composed of the target pixel and the virtual pixel of the correction target color. When the gradation value of the pixel group is not less than the minimum value and not more than the maximum value, the gradation value of the target pixel of the correction target color is converted to the gradation value of the reference color.

従って、注目画素の基準色(G)の階調値が補正対象色(R、G)の注目画素と仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合、注目画素における基準色と補正対象色の階調値を一致させるので、色収差や機械振動などに起因して生じる、主走査方向および副走査方向の黒文字周辺部の色ずれを、回路規模を増やすことなく、単純な処理で完全に無くすことができる。また、黒文字などの無彩色部のエッジ部分の色ずれによる色づきを抑制するだけでなく、黒文字の内部の黒再現にも優れた補正効果を得ることができる。更に、エッジの強さに依存しにくく、安定した色ずれ抑制効果を得ることができる。   Therefore, if the tone value of the reference color (G) of the target pixel is not less than the minimum value and not more than the maximum value of the tone value of the virtual pixel group consisting of the target pixel and the virtual pixel of the correction target color (R, G), Since the gradation values of the reference color and the color to be corrected in the pixel match, color misregistration around the black characters in the main scanning direction and sub-scanning direction caused by chromatic aberration, mechanical vibration, etc. can be achieved without increasing the circuit scale. It can be completely eliminated with simple processing. Further, not only the coloring due to the color shift of the edge portion of the achromatic color portion such as a black character can be suppressed, but also an excellent correction effect can be obtained for the black reproduction inside the black character. Furthermore, it is difficult to depend on the strength of the edge, and a stable color shift suppressing effect can be obtained.

また、色ずれ補正部34は、注目画素の基準色の階調値が仮想画素群の階調値の最大値を超える場合は、補正対象色の注目画素の階調値を仮想画素群の階調値の最大値に変換し、注目画素の基準色の階調値が仮想画素群の階調値の最小値未満の場合は、補正対象色の注目画素の階調値を仮想画素群の階調値の最小値に変換する。従って、基準色の階調値と、注目画素及びこれに隣接する各画素の階調値との関係に応じて、適切な色ずれ補正を行うことができる。例えば、注目画素周辺が単一の有彩色である場合、色ずれ補正は必要ないので、実質的に色ずれ補正はかからない。   Further, when the gradation value of the reference color of the pixel of interest exceeds the maximum value of the gradation value of the virtual pixel group, the color misregistration correction unit 34 determines the gradation value of the pixel of interest of the correction target color as the level of the virtual pixel group. When the tone value of the reference color of the target pixel is less than the minimum value of the virtual pixel group, the tone value of the target pixel of the correction target color is converted to the level of the virtual pixel group. Convert to the minimum key value. Therefore, appropriate color misregistration correction can be performed according to the relationship between the gradation value of the reference color and the gradation value of the pixel of interest and each pixel adjacent thereto. For example, when the periphery of the target pixel is a single chromatic color, the color misregistration correction is not necessary, so the color misregistration correction is not substantially applied.

また、注目画素と仮想画素との間隔は、主走査方向Khと副走査方向kvとで異なる値に設定可能であるので、主走査方向と副走査方向のそれぞれの色ずれ量に応じた色ずれ補正を行うことができる。   In addition, since the interval between the target pixel and the virtual pixel can be set to a different value in the main scanning direction Kh and the sub scanning direction kv, color misregistration corresponding to each color misregistration amount in the main scanning direction and the sub scanning direction. Correction can be performed.

また、Kv、Khの値のそれぞれを操作部50により設定できるように構成することで、読取解像度や搬送速度に応じて色ずれ補正の補正量を変更することが可能となる。   Further, by configuring the values of Kv and Kh so that they can be set by the operation unit 50, it is possible to change the correction amount of the color misregistration correction according to the reading resolution and the conveyance speed.

また、読取装置20において原稿を静止状態にして読取るADF原稿読取方式により読み取ったか又は原稿を移動させて読取るFB原稿読取方式により読み取ったかに応じてKv、Khの値を制御部10により切り替える構成とすることで、原稿読取方式毎に最適な色ずれ補正を行うことができる。特に、原稿を搬送させて読み取るADF原稿読取方式では、原稿が複数のローラ間を通過したり、原稿の画質状態により摩擦が一定でないなど、搬送速度のムラが発生しやすいので、ADF原稿読取方式によるKv、Khの値をFB原稿読取方式より大きく設定することで、良好な補正結果を得ることが可能となる。   Further, the control unit 10 switches the values of Kv and Kh depending on whether the reading device 20 reads the document in the stationary state and reads it by the ADF document reading method or moves the document and reads it by the FB document reading method. As a result, the optimum color misregistration correction can be performed for each document reading method. In particular, in the ADF original reading system that reads and conveys an original, since the original passes between a plurality of rollers and the friction is not constant depending on the image quality state of the original, an unevenness in the conveying speed is likely to occur. By setting the values of Kv and Kh to greater than those of the FB document reading method, it is possible to obtain a good correction result.

また、色ずれ補正部34は、注目画素及び当該注目画素から予め定められた範囲内に存在する周辺画素(黒領域判定ウィンドウ内の各画素)について、黒画素であるか色画素であるかの判別を行い、黒画素と判別された画素の数が予め定められた閾値を超える場合にのみ補正対象色の注目画素の階調値の変換を行うので、色網点や色の細線色などの彩度の低下を抑制しつつ、上記の無彩色部の色ずれ補正を行うことが可能となる。また、黒領域判定ウィンドウ内の各画素に、注目画素との位置関係に応じて重み係数を対応付け、黒画素と判別された画素に重み係数を掛けて積算した値が予め定められた閾値を超える場合にのみ補正対象色の注目画素の階調値の変換を行うようにすることで、黒画素と色画素の判定の境界部分についても、より安定した補正結果を得ることが可能となる。
注目画素及び周辺画素のそれぞれが黒画素であるか色画素であるかの判別は、注目画素及び周辺画素の彩度と明度に基づいて、容易に行うことが可能である。
Further, the color misregistration correction unit 34 determines whether the pixel of interest is a black pixel or a color pixel with respect to peripheral pixels (each pixel in the black area determination window) existing within a predetermined range from the pixel of interest. Since the gradation value of the target pixel of the correction target color is converted only when the number of pixels determined to be black pixels exceeds a predetermined threshold, color halftone dots, color thin line colors, etc. It is possible to perform the color misregistration correction of the achromatic color portion while suppressing a decrease in saturation. In addition, a weighting factor is associated with each pixel in the black region determination window according to the positional relationship with the target pixel, and a value obtained by multiplying the pixel determined to be a black pixel by the weighting factor is set as a predetermined threshold value. By converting the gradation value of the target pixel of the correction target color only when the value exceeds the threshold value, it is possible to obtain a more stable correction result for the boundary between the determination of the black pixel and the color pixel.
It is possible to easily determine whether each of the target pixel and the peripheral pixels is a black pixel or a color pixel based on the saturation and brightness of the target pixel and the peripheral pixels.

なお、上記第1〜第3の実施の形態における記述は、本発明に係る画像処理装置30の好適な一例を示すものであり、これに限定されるものではない。   The descriptions in the first to third embodiments show a preferred example of the image processing apparatus 30 according to the present invention, and the present invention is not limited to this.

例えば、上記第1〜第3の実施の形態においては、画像読取装置1に本発明に係る画像処理装置30を備えた場合を例にとり説明したが、これに限定されない。例えば、画像読取装置1と接続されたプリンタや表示装置等の画像出力装置に画像処理装置30を備える構成とし、画像読取装置から出力された画像データに上記の色ずれ補正処理をはじめとする画像処理を施す構成としてもよい。また、複写機やMFP(Multi Function Printer)に画像処理装置30を備える構成としてもよい。   For example, in the first to third embodiments, the case where the image reading apparatus 1 includes the image processing apparatus 30 according to the present invention has been described as an example. However, the present invention is not limited to this. For example, an image output device such as a printer or display device connected to the image reading device 1 is provided with the image processing device 30, and the image data output from the image reading device includes the above-described color misregistration correction processing. It is good also as a structure which performs a process. Further, the image processing apparatus 30 may be provided in a copier or MFP (Multi Function Printer).

また、上記の説明では、本発明に係るプログラムのコンピュータ読み取り可能な媒体として、ROMを使用した例を開示したが、この例に限定されない。その他のコンピュータ読み取り可能な媒体として、HDDやCD−ROM等の可搬型記録媒体を適用することが可能である。また、本発明に係るプログラムのデータを通信回線を介して提供する媒体として、キャリアウエーブ(搬送波)も適用される。   In the above description, an example in which a ROM is used as a computer-readable medium for the program according to the present invention is disclosed, but the present invention is not limited to this example. As other computer-readable media, portable recording media such as HDDs and CD-ROMs can be applied. A carrier wave is also applied as a medium for providing program data according to the present invention via a communication line.

その他、各装置の細部構成及び細部動作に関しても、本発明の趣旨を逸脱することのない範囲で適宜変更可能である。   In addition, the detailed configuration and detailed operation of each device can be changed as appropriate without departing from the spirit of the present invention.

1 画像読取装置
10 制御部
20 読取装置
20a ADF部
20b 読取部
21 原稿載置トレイ
22 給紙ローラ
23 密着ローラ
24 案内ローラ
25 切替爪
26 反転ローラ
27 排紙トレイ
28 原稿カバー
201 プラテンガラス
202 イメージセンサ
202R Rセンサ
202G Gセンサ
202B Bセンサ
203 アナログ処理部
204 A/D変換器
30 画像処理装置
31 シェーディング補正部
32 γ補正部
33 ライン間補正部
34 色ずれ補正部
35 拡大・縮小処理部
36 色変換処理部
37 画像補正部
38 像域識別処理部
40 通信I/F
50 操作部
60 表示部
70 バス
DESCRIPTION OF SYMBOLS 1 Image reading apparatus 10 Control part 20 Reading apparatus 20a ADF part 20b Reading part 21 Document placing tray 22 Paper feed roller 23 Contact roller 24 Guide roller 25 Switching claw 26 Reverse roller 27 Paper discharge tray 28 Document cover 201 Platen glass 202 Image sensor 202R R sensor 202G G sensor 202B B sensor 203 Analog processing unit 204 A / D converter 30 Image processing device 31 Shading correction unit 32 γ correction unit 33 Inter-line correction unit 34 Color shift correction unit 35 Enlargement / reduction processing unit 36 Color conversion Processing unit 37 Image correction unit 38 Image area identification processing unit 40 Communication I / F
50 Operation unit 60 Display unit 70 Bus

Claims (10)

互いに平行に配列された複数のイメージセンサを用いて原稿を読み取る読取装置により取得された、複数色に色分解された画像に画像処理を施す画像処理装置であって、
前記色分解されたうちの1色を基準色とし、その他の少なくとも1色を補正対象色とし、前記補正対象色の注目画素とこれに隣接する隣接画素との間に仮想画素を設定し、前記注目画素の階調値及び前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出し、前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合に、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換する色ずれ補正部、を備える画像処理装置。
An image processing apparatus that performs image processing on an image obtained by reading a document using a plurality of image sensors arranged in parallel to each other and separated into a plurality of colors,
One of the color-separated colors is set as a reference color, the other at least one color is set as a correction target color, a virtual pixel is set between a target pixel of the correction target color and an adjacent pixel adjacent thereto, The gradation value of the virtual pixel is calculated based on the gradation value of the target pixel and the gradation value of the adjacent pixel, and the reference pixel gradation value of the target pixel is the target pixel of the correction target color and the virtual pixel. A color misregistration correction unit that converts the gradation value of the pixel of interest of the correction target color into the gradation value of the reference color when the gradation value of the virtual pixel group consisting of Image processing device.
前記色ずれ補正部は、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最大値を超える場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最大値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最小値未満の場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最小値に変換する請求項1に記載の画像処理装置。   When the gradation value of the reference color of the pixel of interest exceeds the maximum value of the gradation value of the virtual pixel group, the color misregistration correction unit determines the gradation value of the pixel of interest of the correction target color as the virtual pixel group. When the gradation value of the reference color of the target pixel is less than the minimum value of the virtual pixel group, the gradation value of the target pixel of the correction target color is The image processing apparatus according to claim 1, wherein the image processing apparatus converts the gradation value of the virtual pixel group to a minimum value. 前記注目画素と前記仮想画素との間隔は、主走査方向と副走査方向とで異なる値に設定可能な請求項1又は2に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein an interval between the target pixel and the virtual pixel can be set to a different value in a main scanning direction and a sub scanning direction. 前記注目画素と前記仮想画素との間隔を主走査方向と副走査方向のそれぞれについて設定するための操作部を備える請求項1〜3の何れか一項に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising an operation unit configured to set an interval between the target pixel and the virtual pixel in each of a main scanning direction and a sub-scanning direction. 前記注目画素と前記仮想画素との間隔は、前記読取装置において前記原稿を静止状態にして読み取ったか又は前記原稿を移動させて読み取ったかに応じて異なる値が設定される請求項1〜3の何れか一項に記載の画像処理装置。   The interval between the pixel of interest and the virtual pixel is set to a different value depending on whether the reading device reads the document in a stationary state or moves and moves the document. An image processing apparatus according to claim 1. 前記色ずれ補正部は、前記注目画素及び当該注目画素から予め定められた範囲内に存在する周辺画素について、黒画素であるか色画素であるかの判別を行い、黒画素と判別された画素の数が予め定められた閾値を超える場合にのみ前記補正対象色の注目画素の階調値の変換を行う請求項1〜5の何れか一項に記載の画像処理装置。   The color misregistration correction unit determines whether the pixel of interest and the surrounding pixels existing within a predetermined range from the pixel of interest are black pixels or color pixels, and the pixels determined to be black pixels 6. The image processing apparatus according to claim 1, wherein the gradation value of the target pixel of the correction target color is converted only when the number exceeds a predetermined threshold. 前記注目画素及び前記周辺画素には、前記注目画素との位置関係に応じて重み係数が対応付けられており、前記色ずれ補正部は、前記黒画素と判別された画素に前記重み係数を掛けて積算した値が予め定められた閾値を超える場合にのみ前記補正対象色の注目画素の階調値の変換を行う請求項1〜5の何れか一項に記載の画像処理装置。   A weighting factor is associated with the target pixel and the peripheral pixel according to a positional relationship with the target pixel, and the color misregistration correction unit multiplies the pixel determined to be the black pixel with the weighting factor. The image processing apparatus according to claim 1, wherein the gradation value of the target pixel of the color to be corrected is converted only when the integrated value exceeds a predetermined threshold value. 前記色ずれ補正部は、前記注目画素及び前記周辺画素の彩度と明度に基づいて、前記注目画素及び前記周辺画素のそれぞれが黒画素であるか色画素であるかの判別を行う請求項6又は7に記載の画像処理装置。   The color misregistration correction unit determines whether each of the target pixel and the peripheral pixel is a black pixel or a color pixel based on saturation and brightness of the target pixel and the peripheral pixel. Or the image processing apparatus according to 7. 互いに平行に配列された複数のイメージセンサを用いて原稿を読み取る読取装置により取得された、複数色に色分解された画像に画像処理を施す画像処理方法であって、
前記色分解されたうちの1色を基準色とし、その他の少なくとも1色を補正対象色として、前記補正対象色の注目画素とこれに隣接する隣接画素との間に仮想画素を設定し、前記注目画素の階調値及び前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出し、前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合に、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換する工程を含む画像処理方法。
An image processing method for performing image processing on an image obtained by reading a document using a plurality of image sensors arranged in parallel to each other and separated into a plurality of colors,
A virtual pixel is set between a target pixel of the correction target color and an adjacent pixel adjacent to the target pixel of the correction target color, with one of the color-separated colors as a reference color and at least one other color as a correction target color, The gradation value of the virtual pixel is calculated based on the gradation value of the target pixel and the gradation value of the adjacent pixel, and the reference pixel gradation value of the target pixel is the target pixel of the correction target color and the virtual pixel. An image processing method including a step of converting a gradation value of a target pixel of the color to be corrected into a gradation value of the reference color when the gradation value of the virtual pixel group consisting of is not less than a minimum value and not more than a maximum value.
互いに平行に配列された複数のイメージセンサを用いて原稿を読み取る読取装置により取得された、複数色に色分解された画像に画像処理を施す画像処理装置に用いられるコンピュータを、
前記色分解されたうちの1色を基準色とし、その他の少なくとも1色を補正対象色とし、前記補正対象色の注目画素とこれに隣接する隣接画素との間に仮想画素を設定し、前記注目画素の階調値及び前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出し、前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合に、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換する色ずれ補正部、
として機能させるためのプログラム。
A computer used in an image processing apparatus that performs image processing on an image obtained by reading a document using a plurality of image sensors arranged in parallel to each other and separated into a plurality of colors,
One of the color-separated colors is set as a reference color, the other at least one color is set as a correction target color, a virtual pixel is set between a target pixel of the correction target color and an adjacent pixel adjacent thereto, The gradation value of the virtual pixel is calculated based on the gradation value of the target pixel and the gradation value of the adjacent pixel, and the reference pixel gradation value of the target pixel is the target pixel of the correction target color and the virtual pixel. A color misregistration correction unit that converts a gradation value of a pixel of interest of the correction target color into a gradation value of the reference color when the gradation value of the virtual pixel group consisting of
Program to function as.
JP2010069146A 2010-03-25 2010-03-25 Image processing apparatus, image processing method, and program Expired - Fee Related JP5299334B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010069146A JP5299334B2 (en) 2010-03-25 2010-03-25 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010069146A JP5299334B2 (en) 2010-03-25 2010-03-25 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2011205271A JP2011205271A (en) 2011-10-13
JP5299334B2 true JP5299334B2 (en) 2013-09-25

Family

ID=44881473

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010069146A Expired - Fee Related JP5299334B2 (en) 2010-03-25 2010-03-25 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP5299334B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5984780B2 (en) * 2013-03-26 2016-09-06 京セラドキュメントソリューションズ株式会社 Image processing device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08139949A (en) * 1994-11-07 1996-05-31 Ricoh Co Ltd Color image input device
JP4379873B2 (en) * 2004-05-28 2009-12-09 株式会社リコー Image processing apparatus, storage medium, image reading apparatus, and image forming apparatus
JP2009260471A (en) * 2008-04-14 2009-11-05 Seiko Epson Corp Image processor, image processing method, and computer program

Also Published As

Publication number Publication date
JP2011205271A (en) 2011-10-13

Similar Documents

Publication Publication Date Title
US8237997B2 (en) Image reader and image forming device
US8218196B2 (en) Image processing method and image processing apparatus
JP3713574B2 (en) Image processing apparatus, image processing method, and program
US8447101B2 (en) Image processing apparatus, image forming apparatus, image processing method, and storage medium
JP6686671B2 (en) Image reading apparatus and image reading method
JP2012100245A (en) Image processing device and image processing method, and program
JP5299334B2 (en) Image processing apparatus, image processing method, and program
US8928938B2 (en) Image forming apparatus, image forming method and recording medium
JP2009272891A (en) Image reader, image forming apparatus, image reading method, and image formation method
JP5884362B2 (en) Image processing method, image reading apparatus, and image processing program
JP4656648B2 (en) DIGITAL IMAGING DEVICE, IMAGE READING DEVICE, AND IMAGE FORMING DEVICE
JP3988355B2 (en) Image processing device
US9197787B2 (en) Image reading device, image forming apparatus, and image reading method
JP2005333590A (en) Image reading apparatus, image reading method, and image forming apparatus
JP2002262035A (en) Image reading device
US20120050822A1 (en) Image scanning device, image formation device and image scanning method
JP3967217B2 (en) Image processing method, image processing program, recording medium recording image processing program, image processing apparatus, and image processing system
JP2022076858A (en) Color correction device and image formation system
JP2008103917A (en) Image processing device
JP2021192489A (en) Image forming apparatus, method for controlling image forming apparatus, and program
JP2009225308A (en) Image processing apparatus and image forming apparatus
US10924635B2 (en) Image processing apparatus and image processing method
JP3700456B2 (en) Color image processing device
JP2009288386A (en) Image forming apparatus
JP2005341097A (en) Image reading apparatus, image forming apparatus, and image reading method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121017

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20130416

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130418

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130603

R150 Certificate of patent or registration of utility model

Ref document number: 5299334

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees