Movatterモバイル変換


[0]ホーム

URL:


JP5884362B2 - Image processing method, image reading apparatus, and image processing program - Google Patents

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

Info

Publication number
JP5884362B2
JP5884362B2JP2011209612AJP2011209612AJP5884362B2JP 5884362 B2JP5884362 B2JP 5884362B2JP 2011209612 AJP2011209612 AJP 2011209612AJP 2011209612 AJP2011209612 AJP 2011209612AJP 5884362 B2JP5884362 B2JP 5884362B2
Authority
JP
Japan
Prior art keywords
color
pixel
image
monochrome
black pixel
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
JP2011209612A
Other languages
Japanese (ja)
Other versions
JP2013074314A (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 IncfiledCriticalKonica Minolta Inc
Priority to JP2011209612ApriorityCriticalpatent/JP5884362B2/en
Publication of JP2013074314ApublicationCriticalpatent/JP2013074314A/en
Application grantedgrantedCritical
Publication of JP5884362B2publicationCriticalpatent/JP5884362B2/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Description

Translated fromJapanese

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

複写機、ファクシミリ、複合機などの画像処理装置の多くは、読取った原稿がカラーであるのかモノクロであるのかを自動的に判定する機能を有する。このような画像処理装置では、通常、読取った原稿の画像を構成する各画素の彩度、明度などを規定の閾値と比較することにより、原稿がカラーであるかモノクロであるかを自動的に判定し、フルカラーモードで印刷するかモノクロモードで印刷するかを切り替えている。  Many image processing apparatuses such as a copying machine, a facsimile machine, and a multifunction machine have a function of automatically determining whether a read original is color or monochrome. In such an image processing apparatus, it is usually automatically determined whether the original is color or monochrome by comparing the saturation and brightness of each pixel constituting the read original image with a predetermined threshold value. And switching between printing in the full color mode or printing in the monochrome mode.

読取った原稿がカラーであるのかモノクロであるのかを判定する技術としては、たとえば下記特許文献1の画像処理装置が知られている。特許文献1の画像処理装置では、画像内の色画素および黒画素の出現状況に基づいて、読取った原稿がカラーであるのかモノクロであるのかを自動的に判定する。  As a technique for determining whether a read document is color or monochrome, for example, an image processing apparatus disclosed in Patent Document 1 is known. In the image processing apparatus of Patent Document 1, it is automatically determined whether the read document is color or monochrome based on the appearance status of color pixels and black pixels in the image.

特開2004−320141号公報JP 2004-320141 A

しかしながら、上記特許文献1の画像処理装置では、原稿の搬送速度ムラなどに起因する色ずれが発生した場合、原稿上の画素が無彩色であるにもかかわらず色画素と判定されるという問題がある。その結果、モノクロ原稿をカラー原稿と誤って判定し、本来モノクロで印刷すべきものをフルカラーで印刷してしまうおそれがある。本発明は、上述した問題を解決するためになされたものであり、本発明の目的は、色ずれが発生した場合であっても、原稿がカラーであるかモノクロであるかを精度よく判定する画像処理方法、画像読取装置、および画像処理プログラムを提供することである。  However, the image processing apparatus disclosed in Patent Document 1 has a problem that, when color misregistration caused by uneven conveyance speed of the document occurs, the pixel on the document is determined as a color pixel even though the pixel is achromatic. is there. As a result, there is a possibility that a monochrome document is erroneously determined as a color document, and what should originally be printed in monochrome may be printed in full color. The present invention has been made to solve the above-described problems, and an object of the present invention is to accurately determine whether a document is color or monochrome even when color misregistration occurs. An image processing method, an image reading apparatus, and an image processing program are provided.

本発明の上記目的は、下記によって達成される。  The above object of the present invention is achieved by the following.

(1)原稿を光学的に読取り、複数色に色分解された画像を取得するステップ(a)と、前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定するステップ(b)と、前記前記ステップ(b)で設定したカラーモノクロ判定用パラメーターを用いて、前記原稿がカラーであるかモノクロであるかを判定するステップ(c)と、を有し、前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、前記ステップ(b)は、前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定するステップと、前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターサイズを設定し、前記黒画素周辺フィルターサイズの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識するステップと、を有し
前記黒画素周辺フィルターサイズは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域において、より多くの周辺画素に前記黒画素周辺フィルターがかけられるように設定される、画像処理方法。
(1) Step (a) of optically reading a document to obtain an image separated into a plurality of colors, and in a region where color misregistration occurs in the image, compared with a region where color misregistration does not occur. The document is in color using the step (b) for setting aplurality of color / monochrome determination parameters and the color / monochrome determination parameters set in the step (b) so that it is easy to determine that the image is also monochrome. or a monochrome in determining whether (c),have a, area color shift in the image occurs, comprises a region the degree of color shift are different, the step (b), the color monochrome determination A saturation reference table as one of the parameters for the calculation, calculate the brightness and saturation of each pixel of the image, refer to the saturation reference table, Determining whether each pixel of the image is a color pixel or a black pixel; and setting a black pixel peripheral filter size as one of the color / monochrome determination parameters; A pixel peripheral filter is applied to a determination result as to whether each pixel of the image is a color pixel or a black pixel, and filtering processing is executed. Even if one pixel is in the filtering processing range of the applied black pixel peripheral filter If there is a black pixel, the pixel of interest of the black pixel peripheral filter is recognized as a black pixel, while if there is no black pixel in the filtering processing range of the black pixel peripheral filter, the pixel of interest of the black pixel peripheral filter is Recognizing as a color pixel ,
The black pixel peripheral filter size is set so that the black pixel peripheral filter is applied to a larger number of peripheral pixels in a region where a large color shift occurs compared to a region where a small color shift occurs. .

(2)原稿を光学的に読取り、複数色に色分解された画像を取得するステップ(a)と、前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定するステップ(b)と、前記ステップ(b)で設定したカラーモノクロ判定用パラメーターを用いて、前記原稿がカラーであるかモノクロであるかを判定するステップ(c)と、を有し、前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、前記ステップ(b)は、前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定するステップと、前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターパターンを設定し、前記黒画素周辺フィルターパターンの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識するステップと、を有し前記黒画素周辺フィルターパターンは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域において、より多くの周辺画素に前記黒画素周辺フィルターがかけられるように設定される、画像処理方法。(2)Step (a) of optically reading a document to obtain an image separated into a plurality of colors, and in an area where color misregistration occurs in the image, the color is compared with an area where no color misregistration occurs. In order to make it easy to determine whether the document is monochrome, the step (b) for setting a plurality of color / monochrome determination parameters and the color / monochrome determination parameters set in the step (b) are used to determine whether the document is in color. A step (c) for determining whether the image is monochrome, and a region in which the color shift in the image is generated includes a region having a different degree of color shift, and the step (b) is for determining the color monochrome Set a saturation reference table as one of the parameters, calculate the brightness and saturation of each pixel of the image, refer to the saturation reference table, and Determining whether each pixel of the image is a color pixel or a black pixel; and setting a black pixel peripheral filter pattern as one of the color / monochrome determination parameters; and black pixels of the black pixel peripheral filter pattern A filtering process is executed by applying a peripheral filter to the determination result of whether each pixel of the image is a color pixel or a black pixel, and at least one black is within the filtering processing range of the applied black pixel peripheral filter. If there is a pixel, the pixel of interest of the black pixel peripheral filter is recognized as a black pixel, but if there is no black pixel in the filtering range of the black pixel peripheral filter, the pixel of interest of the black pixel peripheral filter is colored a recognizing step as a pixel, thesaid black pixels surrounding filter pattern is smaller color shift occurs Ryo Compared to large in a region where color shift occurs it is set such that the black pixel neighborhood filter more peripheral pixels are multiplied, the image processing method.

(3)前記画像内の色ずれが生じる領域は、大きい色ずれが生じる領域では小さい色ずれが生じる領域と比較してカラーよりもモノクロと判定されやすくなるように、前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする上記(1)または(2)に記載の画像処理方法。(3) Theplurality of color / monochrome determinationregions in which the color misregistration in the image is more easily determined to be monochrome than the color in the region in which the large color misregistration occurs compared to the region in which the small color misregistration occurs . The image processing method according to (1) or (2), wherein a parameter is set.

(4)所定のモノクロ原稿を光学的に読取り、前記モノクロ原稿のカラー画像を取得するステップ(d)と、前記モノクロ原稿のカラー画像に生じる色ずれを認識するステップ(e)と、をさらに有し、前記ステップ(b)ではステップ(e)での色ずれの認識結果に基づいて前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする上記(1)〜(3)のいずれか1つに記載の画像処理方法。(4)A step (d) for optically reading a predetermined monochrome document to obtain a color image of the monochrome document, and a step (e) for recognizing a color shift occurring in the color image of the monochrome document are further provided. In the step (b), the plurality of color / monochrome determination parameters are set based on the color misregistration recognition result in the step (e). The image processing method as described in one.

(5)前記ステップ(b)において、前記カラーモノクロ判定用パラメーターの1つとして色画素数閾値を設定し、前記画像を所定の色画素判定ブロックサイズで分割した色画素判定ブロック内における前記色画素の数が前記色画素数閾値以上である場合、前記色画素判定ブロックはカラーブロックであると判定し、前記色画素の数が前記色画素数閾値よりも小さい場合、前記色画素判定ブロックはモノクロブロックであると判定することを特徴とする上記(1)〜(4)のいずれか1つに記載の画像処理方法。(5) In the step (b), acolor pixel number threshold is set as one of thecolor / monochrome determination parameters,and the color pixels in the color pixel determination block obtained by dividing the image by a predetermined color pixel determination block size When the number of color pixels is equal to or greater than the color pixel number threshold, the color pixel determination block is determined to be a color block. When the number of color pixels is smaller than the color pixel number threshold, the color pixel determination block is monochrome. The image processing method according toany one of (1) to (4), wherein the image processing methodis determined to be a block .

(6)前記ステップ(c)において、前記カラーブロックの数がカラーブロック数閾値以上である場合、前記原稿はカラーであると判定し、前記カラーブロックの数が前記カラーブロック数閾値よりも小さい場合、前記原稿はモノクロであると判定することを特徴とする上記(5)に記載の画像処理方法。(6) In step (c), if the number of color blocks is equal to or greater than a color block number threshold, it is determined that the document is in color, and the number of color blocks is smaller than the color block number threshold. The image processing method according to(5), wherein the document is determined to be monochrome .

(7)前記ステップ(c)において、前記色画素の数が所定の閾値以上である場合、前記原稿はカラーであると判定し、前記色画素の数が前記所定の閾値よりも小さい場合、前記原稿はモノクロであると判定することを特徴とする上記(1)または(2)に記載の画像処理方法。(7) In the step (c), if the number of the color pixels is equal to or greater than a predetermined threshold, the document is determined to be color, and if the number of the color pixels is smaller than the predetermined threshold, The image processing method according to(1) or (2) , wherein thedocument is determined to be monochrome .

(8)原稿を光学的に読取り、複数色に色分解された画像を取得するステップ(a)と、前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、少なくとも1つのカラーモノクロ判定用パラメーターを設定するステップ(b)と、前記ステップ(b)で設定したカラーモノクロ判定用パラメーターを用いて、前記原稿がカラーであるかモノクロであるかを判定するステップ(c)と、前記画像内の色ずれが生じる領域における色ずれの大きさに応じて、少なくとも1つの色ずれ補正用パラメーターを設定するステップ(d)と、前記色分解されたうちの1色を基準色とし、他の少なくとも1色を補正対象色とし、前記補正対象色の注目画素と当該注目画素に隣接する隣接画素との間に仮想画素を設定するステップ(e)と、前記色ずれ補正用パラメーターを用いて、前記注目画素の階調値および前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出するステップ(f)と、前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最大値を超える場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最大値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最小値未満の場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最小値に変換するステップ(g)と、を有する、画像処理方法。(8)Step (a) of optically reading an original to obtain an image separated into a plurality of colors, and in an area where color misregistration occurs in the image, compared with an area where no color misregistration occurs The document is in color using the step (b) for setting at least one color / monochrome determination parameter and the color / monochrome determination parameter set in the step (b) so that it can be easily determined that the image is also monochrome. A step (c) for determining whether the image is monochrome or a step (d) for setting at least one color misregistration correction parameter in accordance with the magnitude of color misregistration in a region where color misregistration occurs in the image; One of the color-separated colors is set as a reference color, and at least one other color is set as a correction target color. The target pixel of the correction target color and the adjacent pixel adjacent to the target pixel A step (e) of setting a virtual pixel between the pixel and a tone value of the virtual pixel based on a tone value of the pixel of interest and a tone value of the adjacent pixel using the color misregistration correction parameter A step (f) of calculating a value, and a gradation value of a reference color of the target pixel is not less than a minimum value and not more than a maximum value of a gradation value of a virtual pixel group including the target pixel of the correction target color and the virtual pixel The gradation value of the target pixel of the correction target color is converted into the gradation value of the reference color, and the gradation value of the reference color of the target pixel exceeds the maximum value of the gradation value of the virtual pixel group. Converts the gradation value of the target pixel of the correction target color into the maximum gradation value of the virtual pixel group, and the gradation value of the reference color of the target pixel is the minimum of the gradation value of the virtual pixel group. If it is less than the value, the gradation value of the target pixel of the correction target color is set to the minimum gradation value of the virtual pixel group. Having a step (g) for converting the image processing method.

(9)原稿を光学的に読取り、複数色に色分解された画像を取得する画像取得手段と、前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定するカラーモノクロ判定用パラメーター設定手段と、前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定するカラーモノクロ判定手段と、を有し、前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、前記カラーモノクロ判定用パラメーター設定手段は、前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定し、前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターサイズを設定し、前記黒画素周辺フィルターサイズの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識し前記黒画素周辺フィルターサイズは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域において、より多くの周辺画素に黒画素周辺フィルターがかけられるように設定される、画像読取装置。(9)Image acquisition means for optically reading a document and acquiring an image separated into a plurality of colors, and an area where color misregistration occurs in the image, compared to a region where color misregistration does not occur. Color / monochrome determination parameter setting means for setting a plurality of color / monochrome determination parameters so that it can be easily determined as monochrome, and using the color / monochrome determination parameters, it is determined whether the document is color or monochrome. A region where color misregistration occurs in the image includes regions having different degrees of color misregistration, and the color / monochrome determination parameter setting unit includes one of the color / monochrome determination parameters. A saturation reference table is calculated, the brightness and saturation of each pixel of the image are calculated, and the saturation reference table is calculated. A reference table is used to determine whether each pixel of the image is a color pixel or a black pixel, and a black pixel peripheral filter size is set as one of the color / monochrome determination parameters, and the black pixel Applying a black pixel peripheral filter of the peripheral filter size to the determination result of whether each pixel of the image is a color pixel or a black pixel, and performing a filtering process, and applying the filtering process of the applied black pixel peripheral filter If there is even one black pixel in the range, the pixel of interest of the black pixel peripheral filter is recognized as a black pixel, while if there is no black pixel in the filtering processing range of the black pixel peripheral filter, the target pixel filter recognized as color pixels,the black pixel neighborhood filter size, area and ratio less color deviation occurs To, in the region where a large color shift occurs, a black pixel near the filter is set to be subjected to more peripheral pixels, the image reading apparatus.

(10)原稿を光学的に読取り、複数色に色分解された画像を取得する画像取得手段と、前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定するカラーモノクロ判定用パラメーター設定手段と、前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定するカラーモノクロ判定手段と、を有し、前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、前記カラーモノクロ判定用パラメーター設定手段は、前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定し、前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターパターンを設定し、前記黒画素周辺フィルターパターンの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識し前記黒画素周辺フィルターパターンは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域において、より多くの周辺画素に黒画素周辺フィルターがかけられるように設定される、画像読取装置(10)An image acquisition unit that optically reads a document and acquires an image separated into a plurality of colors, and an area in which color misregistration occurs in the image is more in color than an area in which no color misregistration occurs. Color / monochrome determination parameter setting means for setting a plurality of color / monochrome determination parameters so that it can be easily determined as monochrome, and using the color / monochrome determination parameters, it is determined whether the document is color or monochrome. A region where color misregistration occurs in the image includes regions having different degrees of color misregistration, and the color / monochrome determination parameter setting unit includes one of the color / monochrome determination parameters. A saturation reference table is calculated, the brightness and saturation of each pixel of the image are calculated, and the saturation A reference table is referenced to determine whether each pixel of the image is a color pixel or a black pixel, and a black pixel peripheral filter pattern is set as one of the color / monochrome determination parameters, and the black pixel Applying the black pixel peripheral filter of the peripheral filter pattern to the determination result of whether each pixel of the image is a color pixel or a black pixel, and performing a filtering process, and applying the filtering process of the applied black pixel peripheral filter If there is even one black pixel in the range, the pixel of interest of the black pixel peripheral filter is recognized as a black pixel, while if there is no black pixel in the filtering processing range of the black pixel peripheral filter, the target pixel filter recognized as color pixels,the black pixel neighborhood filter pattern occurs less color shift Compared to pass, in the region where a large color shift occurs, a black pixel near the filter is set to be subjected to more peripheral pixels, the image reading apparatus.

(11)前記画像内の色ずれが生じる領域は、大きい色ずれが生じる領域では小さい色ずれが生じる領域と比較してカラーよりもモノクロと判定されやすくなるように、前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする上記(9)または(10)に記載の画像読取装置。(11) Theplurality of color / monochrome determination regions in which the color misregistration in the image is more easily determined to be monochrome than the color in the region in which the large color misregistration occurs compared to the region in which the small color misregistration occurs. The image reading apparatus accordingto (9) or (10), wherein a parameter is set .

(12)前記画像取得手段で所定のモノクロ原稿を読取ることにより取得したカラー画像に生じる色ずれを認識する色ずれ認識手段をさらに有し、前記色ずれの認識結果に基づいて前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする上記(9)〜(11)のいずれか1つに記載の画像読取装置。(12)Color misregistration recognizing means for recognizing color misregistration generated in a color image obtained by reading a predetermined monochrome document by the image obtaining means, and the plurality of color monochrome printers based on the color misregistration recognition result. The image reading apparatus according toany one of (9) to (11), wherein a determination parameter is set .

(13)原稿を光学的に読取り、複数色に色分解された画像を取得する画像取得手段と、前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、カラーモノクロ判定用パラメーターを設定するカラーモノクロ判定用パラメーター設定手段と、前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定するカラーモノクロ判定手段と、前記画像内の色ずれが生じる領域における色ずれの大きさに応じて、少なくとも1つの色ずれ補正用パラメーターを設定する色ずれ補正用パラメーター設定手段と、前記色分解されたうちの1色を基準色とし、他の少なくとも1色を補正対象色とし、前記補正対象色の注目画素と当該注目画素に隣接する隣接画素との間に仮想画素を設定し、前記色ずれ補正用パラメーターを用いて、前記注目画素の階調値および前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出する階調値算出手段と、前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最大値を超える場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最大値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最小値未満の場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最小値に変換する変換手段と、を有する、画像読取装置。(13)Image acquisition means for optically reading a document and acquiring an image separated into a plurality of colors, and in an area where color misregistration occurs in the image, compared with a color compared to an area where no color misregistration occurs Color / monochrome determination parameter setting means for setting a color / monochrome determination parameter so that it can be easily determined as monochrome, and a color for determining whether the document is color or monochrome using the color / monochrome determination parameter Monochrome determination means; color misregistration correction parameter setting means for setting at least one color misregistration correction parameter in accordance with the magnitude of color misregistration in an area where color misregistration occurs in the image; One of the colors is a reference color, and at least one other color is a correction target color, and the target pixel of the correction target color is adjacent to the target pixel. A virtual pixel is set between the adjacent pixel and the color shift correction parameter is used to calculate the gradation value of the virtual pixel based on the gradation value of the target pixel and the gradation value of the adjacent pixel. And a gradation value calculation means for performing the reference color gradation value of the target pixel is not less than the minimum value and not more than the maximum value of the gradation value of the virtual pixel group consisting of the target pixel of the correction target color and the virtual pixel, When the gradation value of the target pixel of the correction target color is converted into the gradation value of the reference color, and the gradation value of the reference color of the target pixel exceeds the maximum value of the virtual pixel group, The gradation value of the pixel of interest of the correction target color is converted into the maximum value of the gradation value of the virtual pixel group, and the gradation value of the reference color of the pixel of interest is less than the minimum value of the gradation value of the virtual pixel group In this case, the gradation value of the target pixel of the correction target color is converted to the minimum value of the gradation value of the virtual pixel group. A conversion means that, the image reading apparatus.

(14)原稿を光学的に読取り、複数色に色分解された画像を取得する手順(a)と、
前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定する手順(b)と、前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定する手順(c)と、を有し、前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、前記手順(b)は、前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定する手順と、前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターサイズを設定し、前記黒画素周辺フィルターサイズの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識する手順と、を有し、前記黒画素周辺フィルターサイズは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域がより多くの周辺画素に黒画素周辺フィルターがかけられるように設定される、コンピューターに実行させるための画像処理プログラム。
(14)a procedure (a) for optically reading a document and obtaining an image separated into a plurality of colors;
A step (b) of setting a plurality of color / monochrome determination parameters so that a region where color misregistration occurs in the image is more easily determined to be monochrome than color compared to a region where color misregistration does not occur; And a procedure (c) for determining whether the document is color or monochrome using a color / monochrome determination parameter, and an area where color misregistration in the image has different degrees of color misregistration In step (b), a saturation reference table is set as one of the color / monochrome determination parameters, the lightness and saturation of each pixel of the image are calculated, and the saturation reference table is referred to. Then, a procedure for determining whether each pixel of the image is a color pixel or a black pixel, and a black pixel as one of the color / monochrome determination parameters Set a side filter size, apply a black pixel peripheral filter of the black pixel peripheral filter size to a determination result of whether each pixel of the image is a color pixel or a black pixel, and perform a filtering process, When there is at least one black pixel in the filtering processing range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a black pixel, while at least one is in the filtering processing range of the black pixel peripheral filter. Recognizing the pixel of interest of the black pixel peripheral filter as a color pixel when there is no black pixel, and the black pixel peripheral filter size has a large color shift compared to a region where a small color shift occurs. When the resulting area is set to filter the black pixel perimeter filter on more peripheral pixels, Because image processing program.

(15)原稿を光学的に読取り、複数色に色分解された画像を取得する手順(a)と、前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定する手順(b)と、前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定する手順(c)と、を有し、前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、前記手順(b)は、前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定する手順と、前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターパターンを設定し、前記黒画素周辺フィルターパターンの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識する手順と、を有し、前記黒画素周辺フィルターパターンは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域がより多くの周辺画素に黒画素周辺フィルターがかけられるように設定される、コンピューターに実行させるための画像処理プログラム。(15) The procedure (a) for optically reading a document and obtaining an image separated into a plurality of colors, and in a region where color misregistration occurs in the image, compared with a region where color misregistration does not occur. as is more likely to be judged as a monochrome determination, the procedure for setting aplurality of color monochromedetermination parameter (b), whether the original is a monochrome or a color using the color monochromedetermination parameter the procedure for (c),have a, area color shift in the image occurs, comprises a region the degree of color shift are different, the steps (b), the saturation as one of the color monochrome determination parameter A brightness reference table is set, brightness and saturation of each pixel of the image is calculated, and each pixel of the image is a color pixel or black pixel by referring to the saturation reference table. A black pixel peripheral filter pattern is set as one of the color / monochrome determination parameters, and the black pixel peripheral filter of the black pixel peripheral filter pattern is set so that each pixel of the image is a color pixel. When the filtering process is executed by applying to the determination result of whether the pixel is a black pixel or there is at least one black pixel in the filtering process range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is selected. Recognizing the pixel of interest of the black pixel peripheral filter as a color pixel when there is no black pixel in the filtering processing range of the black pixel peripheral filter while recognizing the pixel as a black pixel, The peripheral filter pattern has more areas with large color shifts compared to areas with small color shifts. Black pixels around the filter is set to be applied to the peripheral pixels, the image processing program to be executed by the computer.

(16)前記画像内の色ずれが生じる領域は、大きい色ずれが生じる領域では小さい色ずれが生じる領域と比較してカラーよりもモノクロと判定されやすくなるように、前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする上記(15)に記載の画像処理プログラム。(16) a region in which the color shift in the imageoccurs, as is likely to be judged as a monochrome than color as compared to the region where small color shift occurs in a region where alarge listening color shift occurs, theplurality of color monochrome determination The image processing program as set forth in (15), wherein a parameter is set.

(17)所定のモノクロ原稿を光学的に読取り、前記モノクロ原稿のカラー画像を取得する手順(d)と、前記モノクロ原稿のカラー画像に生じる色ずれを認識する手順(e)と、をさらに有し、前記手順(b)では手順(e)での色ずれの認識結果に基づいて前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする上記(15)または(16)に記載の画像処理プログラム。(17) A procedure (d) for optically reading a predetermined monochrome document to obtain a color image of the monochrome document and a procedure (e) for recognizing a color shift occurring in the color image of the monochrome document are further provided. The image according to (15) or (16), wherein in the step (b), theplurality of color / monochrome determination parameters are set based on a recognition result of color misregistration in the step (e). Processing program.

(18)原稿を光学的に読取り、複数色に色分解された画像を取得する手順(a)と、前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、カラーモノクロ判定用パラメーターを設定する手順(b)と、前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定する手順(c)と、前記画像内の色ずれが生じる領域における色ずれの大きさに応じて、少なくとも1つの色ずれ補正用パラメーターを設定する手順()と、前記色分解されたうちの1色を基準色とし、他の少なくとも1色を補正対象色とし、前記補正対象色の注目画素と当該注目画素に隣接する隣接画素との間に仮想画素を設定する手順()と、前記色ずれ補正用パラメーターに基づいて、前記注目画素の階調値および前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出する手順()と、前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最大値を超える場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最大値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最小値未満の場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最小値に変換する手順()と、をコンピューターに実行させるための画像処理プログラム。(18) Theprocedure (a) for optically reading a document and obtaining an image separated into a plurality of colors, and in an area where color misregistration occurs in the image, compared to an area where color misregistration does not occur. (B) for setting a color / monochrome determination parameter so that it can be easily determined that the image is also monochrome, and a procedure (c) for determining whether the document is color or monochrome using the color / monochrome determination parameter (c) ), A procedure (d ) for setting at least one color misregistration correction parameter in accordance with the color misregistration magnitude in the color misregistration area in the image,and one color out of the color separation as a reference A step (e ) for setting a virtual pixel between a target pixel of the correction target color and an adjacent pixel adjacent to the target pixel; A step (f ) of calculating a gradation value of the virtual pixel based on a gradation value of the pixel of interest and a gradation value of the adjacent pixel based on a correction parameter; and a gradation of a reference color of the pixel of interest If the value 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 of the correction target color and the virtual pixel, the tone value of the target pixel of the correction target color When the tone value of the reference color of the target pixel exceeds the maximum value of the virtual pixel group, the tone value of the target pixel of the correction target color is converted to the tone value of 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 converted to the maximum value of the gradation value. Inorder to cause the computer to execute the procedure (g ) for converting to the minimum gradation value of the virtual pixel group Image processingprogram.

(19)上記(1)〜(18)のいずれか1つに記載の画像処理プログラムを記録したコンピューター読み取り可能な記録媒体。
(19) A computer-readable recording medium on which the image processing program according to any one of (14 ) to (18) is recorded.

本発明の画像処理方法、画像読取装置、および画像処理プログラムによれば、画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなる。したがって、原稿を読取る際に色ずれが発生した場合であっても、原稿がカラーであるかモノクロであるかを精度よく判定することができる。  According to the image processing method, the image reading apparatus, and the image processing program of the present invention, an area where color misregistration occurs in an image is more easily determined to be monochrome than color compared to an area where no color misregistration occurs. Therefore, even when color misregistration occurs when reading a document, it can be accurately determined whether the document is color or monochrome.

本発明の第1の実施形態の画像形成システムの機能的な構成を示す概略ブロック図である。1 is a schematic block diagram illustrating a functional configuration of an image forming system according to a first embodiment of the present invention.図1の画像読取装置の構成を示す概略外観図である。FIG. 2 is a schematic external view illustrating a configuration of the image reading apparatus in FIG. 1.図1に示す画像読取装置における画像処理部の構成を説明するための概略ブロック図である。FIG. 2 is a schematic block diagram for explaining a configuration of an image processing unit in the image reading apparatus shown in FIG. 1.本発明の第1の実施形態におけるカラーモノクロ判定方法の処理手順について説明するためのフローチャートである。It is a flowchart for demonstrating the process sequence of the color / monochrome determination method in the 1st Embodiment of this invention.本発明の第1の実施形態における色ずれについて説明するための図である。It is a figure for demonstrating the color shift in the 1st Embodiment of this invention.本発明の第1の実施形態においてカラーモノクロ判定用パラメーターを設定する手順について説明するためのフローチャートである。It is a flowchart for demonstrating the procedure which sets the parameter for color / monochrome determination in the 1st Embodiment of this invention.本発明の第1の実施形態における彩度リファレンステーブルについて説明するための図である。It is a figure for demonstrating the saturation reference table in the 1st Embodiment of this invention.本発明の第1の実施形態における黒画素周辺フィルターについて説明するための図である。It is a figure for demonstrating the black pixel periphery filter in the 1st Embodiment of this invention.本発明の第1の実施形態における黒画素周辺フィルターについて説明するための図である。It is a figure for demonstrating the black pixel periphery filter in the 1st Embodiment of this invention.本発明の第1の実施形態におけるカラーモノクロ判定処理の手順について説明するフローチャートである。It is a flowchart explaining the procedure of the color / monochrome determination process in the 1st Embodiment of this invention.本発明の第2の実施形態においてカラーモノクロ判定用パラメーターを設定する手順について説明するためのフローチャートある。It is a flowchart for demonstrating the procedure which sets the parameter for color / monochrome determination in the 2nd Embodiment of this invention.本発明の第2の実施形態において画像データをブロックで分割する方法を説明するための図である。It is a figure for demonstrating the method to divide | segment image data in a block in the 2nd Embodiment of this invention.本発明の第2の実施形態におけるカラーモノクロ判定処理の手順について説明するフローチャートである。It is a flowchart explaining the procedure of the color / monochrome determination process in the 2nd Embodiment of this invention.本発明の第3の実施形態における画像処理を説明するための図である。It is a figure for demonstrating the image processing in the 3rd Embodiment of this invention.本発明の第3の実施形態における画像処理方法の処理手順ついて説明するためのフローチャートである。It is a flowchart for demonstrating the process sequence of the image processing method in the 3rd Embodiment of this invention.本発明の第3の実施形態における色ずれ補正方法の仮想画素について説明するための図である。It is a figure for demonstrating the virtual pixel of the color shift correction method in the 3rd Embodiment of this invention.本発明の第3の実施形態における色ずれ補正用パラメーターを設定する手順について説明するためのフローチャートである。It is a flowchart for demonstrating the procedure which sets the parameter for color misregistration correction in the 3rd Embodiment of this invention.本発明の第3の実施形態において画像データをブロックで分割する方法を説明するための図である。It is a figure for demonstrating the method to divide | segment image data in a block in the 3rd Embodiment of this invention.本発明の第3の実施形態における隣接画素ウィンドウを説明するための図である。It is a figure for demonstrating the adjacent pixel window in the 3rd Embodiment of this invention.図15に示すフローチャートにおける色ずれ補正を説明するためのフローチャートである。16 is a flowchart for explaining color misregistration correction in the flowchart shown in FIG. 15.図20に示すフローチャートにおける色ずれ補正処理(R)を説明するためのフローチャートである。FIG. 21 is a flowchart for explaining color misregistration correction processing (R) in the flowchart shown in FIG. 20.

以下、添付した図面を参照しながら、本発明の実施形態を説明する。なお、図面の説明において同一の要素には同一の符号を付し、重複する説明を省略する。また、図面の寸法比率は、説明の都合上誇張されており、実際の比率とは異なる場合がある。  Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the description of the drawings, the same elements are denoted by the same reference numerals, and redundant description is omitted. In addition, the dimensional ratios in the drawings are exaggerated for convenience of explanation, and may be different from the actual ratios.

(第1の実施形態)
以下、図1〜図3を参照して、本発明の第1の実施形態を説明する。図1は本発明の第1の実施形態における画像形成システムの機能的な構成を示す概略ブロック図であり、図2は図1の画像読取装置の構成を示す概略外観図である。また、図3は、図1に示す画像読取装置における画像処理部の構成を説明するための概略ブロック図である。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a schematic block diagram showing a functional configuration of the image forming system according to the first embodiment of the present invention, and FIG. 2 is a schematic external view showing a configuration of the image reading apparatus of FIG. FIG. 3 is a schematic block diagram for explaining the configuration of the image processing unit in the image reading apparatus shown in FIG.

本実施形態の画像処理方法、画像読取装置、および画像処理プログラムは、画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、少なくとも1つのカラーモノクロ判定用パラメーターを設定するものである。  In the image processing method, the image reading apparatus, and the image processing program of the present embodiment, an area where color misregistration in an image is easier to determine as monochrome than color compared to an area where no color misregistration occurs. At least one color / monochrome determination parameter is set.

本実施形態の画像読取装置は、複写機、ファクシミリ、複合機などの画像形成システムに適用することができる。なお、以下では、本実施形態の画像読取装置の主要な構成を中心に説明し、従来の画像読取装置と同様の構成については説明を省略する。  The image reading apparatus according to the present embodiment can be applied to an image forming system such as a copying machine, a facsimile machine, or a multifunction machine. Hereinafter, the main configuration of the image reading apparatus according to the present embodiment will be mainly described, and description of the same configuration as that of the conventional image reading apparatus will be omitted.

図1および図2に示すとおり、本実施形態の画像形成システム1は、原稿供給装置10、画像読取装置20、および画像印刷装置30を有する。原稿供給装置10は、読取り対象となる読取り原稿を画像読取装置20に供給し、画像印刷装置30は、画像読取装置20によって読込まれた原稿の画像を印刷する。本実施形態の画像印刷装置30は、従来の画像印刷装置と同様の構成および機能を有するので、詳しい説明を省略する。  As illustrated in FIGS. 1 and 2, the image forming system 1 of the present embodiment includes a document supply device 10, an image reading device 20, and an image printing device 30. The document supply device 10 supplies a read document to be read to the image reading device 20, and the image printing device 30 prints an image of the document read by the image reading device 20. Since the image printing apparatus 30 of the present embodiment has the same configuration and function as the conventional image printing apparatus, detailed description thereof is omitted.

原稿供給装置10は、読取り原稿を画像読取装置20に供給する。本実施形態では、読取り原稿は、予め原稿供給装置10の所定位置に載置されており、原稿供給装置10は原稿を1枚ずつ順に画像読取装置20に供給する。本実施形態の原稿供給装置10は、一般的なADF(Auto Document Feeder)であるので、詳しい説明を省略する。  The document supply device 10 supplies the read document to the image reading device 20. In the present embodiment, the read original is placed in advance at a predetermined position of the original supply device 10, and the original supply device 10 supplies the original one by one to the image reading device 20 in order. Since the document supply apparatus 10 according to the present embodiment is a general ADF (Auto Document Feeder), detailed description thereof is omitted.

画像読取装置20は、原稿を光学的に読取り、複数色に色分解された画像(たとえばRGB画像)を取得する。画像読取装置20は、制御部200、画像読取部210、画像処理部220、操作部230、および表示部240を有する。制御部200は、CPU(Central Processing Unit)201、記憶部202、専用ビデオI/F部203、および通信I/F部204を有する。  The image reading device 20 optically reads a document and obtains an image (for example, an RGB image) that is color-separated into a plurality of colors. The image reading apparatus 20 includes a control unit 200, an image reading unit 210, an image processing unit 220, an operation unit 230, and a display unit 240. The control unit 200 includes a CPU (Central Processing Unit) 201, a storage unit 202, a dedicated video I / F unit 203, and a communication I / F unit 204.

CPU201は、記憶部202に記憶されたソフトウェアプログラムにしたがって、原稿供給装置10、画像読取装置20、および画像印刷装置30を制御し、画像形成システム1を機能させる。  The CPU 201 controls the document supply device 10, the image reading device 20, and the image printing device 30 according to the software program stored in the storage unit 202, and causes the image forming system 1 to function.

本実施形態では、読取られた原稿がカラーであるのか、あるいはモノクロであるのかを判定するカラーモノクロ判定方法の手順が記述された画像処理プログラムをCPU201が実行することにより原稿がカラーであるのか、モノクロであるのかを判定する。CPU201は、色ずれ認識手段、カラーモノクロ判定用パラメーター設定手段、およびカラーモノクロ判定手段として機能する。カラーモノクロ判定方法の詳細については後述する。  In this embodiment, the CPU 201 executes an image processing program that describes the procedure of a color / monochrome determination method for determining whether a read document is color or monochrome, and whether the document is color. Determine if it is monochrome. The CPU 201 functions as a color misregistration recognition unit, a color / monochrome determination parameter setting unit, and a color / monochrome determination unit. Details of the color / monochrome determination method will be described later.

CPU201は、記憶部202のROM(Read Only Memory)に記憶されたカラーモノクロ判定プログラムを記憶部202のRAM(Random Access Memory)にロードし、当該プログラムにしたがって、モノクロ原稿のカラー画像取得、色ずれ認識、原稿画像取得、カラーモノクロ判定用パラメーター設定、およびカラーモノクロ判定の各処理を実行する。  The CPU 201 loads a color / monochrome determination program stored in a ROM (Read Only Memory) of the storage unit 202 into a RAM (Random Access Memory) of the storage unit 202, and acquires a color image of a monochrome document and a color shift according to the program. Each process of recognition, document image acquisition, color / monochrome determination parameter setting, and color / monochrome determination is executed.

また、CPU201は、読取られた原稿の画像データから印刷画像データを生成して、専用ビデオI/F部203を介して画像印刷装置30へ出力する。また、CPU201は、LAN(Local Area Network)を介してクライアントPC(Personal Computer)から受信した印刷データから印刷画像データを生成して、専用ビデオI/F部203を介して画像印刷装置30へ出力する。  Further, the CPU 201 generates print image data from the read image data of the document, and outputs the print image data to the image printing apparatus 30 via the dedicated video I / F unit 203. Further, the CPU 201 generates print image data from print data received from a client PC (Personal Computer) via a LAN (Local Area Network), and outputs the print image data to the image printing apparatus 30 via the dedicated video I / F unit 203. To do.

記憶部202は、たとえばROMおよびRAMを有する。ROMには、各種ソフトウェアプログラム、各種演算処理に使用されるパラメーターなどが予め記憶されている。  Storage unit 202 includes, for example, a ROM and a RAM. In the ROM, various software programs, parameters used for various arithmetic processes, and the like are stored in advance.

本実施形態では、記憶部202のROMには、カラーモノクロ判定を実施する画像処理プログラムと、画像処理プログラムで使用されるカラーモノクロ判定用パラメーターなどの各種パラメーターが記憶されている。  In the present embodiment, the ROM of the storage unit 202 stores an image processing program for performing color / monochrome determination and various parameters such as a color / monochrome determination parameter used in the image processing program.

また、RAMには、実行中のソフトウェアプログラム、演算処理結果、画像データ、印刷ジョブ、通信I/F部204の送受信データ、画像形成システム1のステータスなどが一時的に記憶される。  The RAM temporarily stores software programs being executed, calculation processing results, image data, print jobs, transmission / reception data of the communication I / F unit 204, status of the image forming system 1, and the like.

通信I/F部204は、画像読取装置20をたとえばLANなどのネットワークに接続し、ネットワークの規格に応じてデータを送受信する。また、通信I/F部204は、たとえばクライアントPCからの印刷ジョブを受信する。受信した印刷ジョブは、CPU201を介して記憶部202のRAMに記憶される。  The communication I / F unit 204 connects the image reading apparatus 20 to a network such as a LAN, and transmits and receives data according to the network standard. The communication I / F unit 204 receives a print job from, for example, a client PC. The received print job is stored in the RAM of the storage unit 202 via the CPU 201.

画像読取部210は、画像取得手段として、原稿を光学的に読取り、画像データ信号を取得する。画像読取部210は、光源、光学系、イメージセンサー、およびアナログ・ディジタル変換回路を有する。画像読取部210において、光源は、(R,G,B)各色の光を原稿に順次照射する。光学系は、複数のミラーおよび結像レンズを有しており、原稿からの反射光は光学系のミラーおよび結像レンズを通じてイメージセンサーに結像される。イメージセンサーは、(R,G,B)各色に対応する反射光をラインごとに読取り、原稿からの反射光強度に応じて電気信号を生成する。生成された電気信号は、アナログ・ディジタル変換回路において、アナログ信号からディジタル信号に変換され、画像データ信号として画像処理部220に伝達される。  The image reading unit 210 optically reads a document as an image acquisition unit and acquires an image data signal. The image reading unit 210 includes a light source, an optical system, an image sensor, and an analog / digital conversion circuit. In the image reading unit 210, the light source sequentially irradiates the original with light of each color (R, G, B). The optical system has a plurality of mirrors and an imaging lens, and the reflected light from the original is imaged on the image sensor through the optical system mirror and the imaging lens. The image sensor reads reflected light corresponding to each color (R, G, B) for each line and generates an electrical signal according to the reflected light intensity from the document. The generated electrical signal is converted from an analog signal to a digital signal in an analog / digital conversion circuit and transmitted to the image processing unit 220 as an image data signal.

画像処理部220は、画像データ信号に対して各種の画像処理を実施する。図3に示すとおり、画像処理部220は、シェーディング補正部221、γ補正部222、ライン間補正部223、色ずれ補正部224、拡大・縮小処理部225、色変換処理部226、画像補正部227、および像域識別処理部228を有する。  The image processing unit 220 performs various image processing on the image data signal. As illustrated in FIG. 3, the image processing unit 220 includes a shading correction unit 221, a γ correction unit 222, an interline correction unit 223, a color misregistration correction unit 224, an enlargement / reduction processing unit 225, a color conversion processing unit 226, and an image correction unit. 227 and an image area identification processing unit 228.

画像処理部220の各部の構成は、専用のハードウェアで構成することができる。しかしながら、画像処理部220の各部をハードウェアで構成する代わりに、画像処理用のコンピューターを用いて画像処理部220の処理をソフトウェアで実行することもできる。  The configuration of each unit of the image processing unit 220 can be configured with dedicated hardware. However, instead of configuring each unit of the image processing unit 220 by hardware, the processing of the image processing unit 220 can be executed by software using a computer for image processing.

画像処理用のコンピューターは、画像処理用のCPU、RAM、およびROMを備える。画像処理用のROMには、シェーディング補正処理、γ補正処理、ライン間補正処理、色ずれ補正処理などの各種画像処理用の画像処理プログラムが記憶されており、画像処理用のCPUは画像処理プログラムを実行することにより、画像データ信号に対して各種の画像処理を実施する。  The computer for image processing includes a CPU, RAM, and ROM for image processing. The image processing ROM stores image processing programs for various image processing such as shading correction processing, γ correction processing, interline correction processing, and color misregistration correction processing. The image processing CPU is an image processing program. By executing the above, various kinds of image processing are performed on the image data signal.

シェーディング補正部221は、画像読取部210における、光源の光量の不均一および各画素に対するイメージセンサーの出力特性のばらつきを補正し、主走査方向の均一性を確保する。  The shading correction unit 221 corrects the non-uniformity of the light amount of the light source and the variation in the output characteristics of the image sensor for each pixel in the image reading unit 210, and ensures the uniformity in the main scanning direction.

γ補正部222は、後段の画像処理に適するように階調特性を調整する。また、γ補正部222は、機器間の個体差を吸収するため、(R,G,B)各々について、独立したルックアップテーブル(Lookup Table)を用いて階調値を変換する。  The γ correction unit 222 adjusts the gradation characteristics so as to be suitable for subsequent image processing. Further, the γ correction unit 222 converts the gradation value for each of (R, G, B) using an independent lookup table (Lookup Table) in order to absorb individual differences between devices.

ライン間補正部223は、(R,G,B)各色の発光タイミングに基づく位置の違いを補正する。(R,G,B)各色の位置の違いは、(R,G,B)各色の発光タイミング(1/3ラインずつ)の違いによって生じる。  The inter-line correction unit 223 corrects the position difference based on the light emission timing of each color (R, G, B). The difference in the position of each color (R, G, B) is caused by the difference in the light emission timing (1/3 line) for each color (R, G, B).

色ずれ補正部224は、主走査方向および副走査方向の色ずれを補正する。色ずれは、たとえば原稿に対する機械的振動、原稿の搬送速度ムラ、色収差、イメージセンサーの製造誤差などに起因する。色ずれ補正部224は、補正用パラメーター設定手段、階調値算出手段、および変換手段として機能する。色ずれ補正部224による色ずれ補正処理の詳細については第3の実施形態において述べる。  The color misregistration correction unit 224 corrects color misregistration in the main scanning direction and the sub-scanning direction. The color misregistration is caused by, for example, mechanical vibration with respect to the original, unevenness in the conveyance speed of the original, chromatic aberration, manufacturing error of the image sensor, and the like. The color misregistration correction unit 224 functions as a correction parameter setting unit, a gradation value calculation unit, and a conversion unit. Details of the color misregistration correction processing by the color misregistration correction unit 224 will be described in the third embodiment.

拡大・縮小処理部225は、画像を拡大または縮小する。具体的には、拡大・縮小処理部225は、読取り画像の解像度の変換が必要な場合に、画像を拡大または縮小する。  The enlargement / reduction processing unit 225 enlarges or reduces the image. Specifically, the enlargement / reduction processing unit 225 enlarges or reduces the image when the resolution of the read image needs to be converted.

色変換処理部226は、画像印刷装置30の色空間の色値に適した画像データに画像データの形式を変換する。具体的には、画像印刷装置30において色材としてCMYKのトナーを使用している場合には、RGB形式からCMYK形式に画像データの形式を変換する。また、画像読取部210で読取ったデータをたとえばPDF(Portable Document Format)ファイル形式でクライアントPCにファイル送信するときには、sRGB形式などのモニタの特性に適した画像データの形式に変換する。  The color conversion processing unit 226 converts the format of the image data into image data suitable for the color value of the color space of the image printing apparatus 30. Specifically, when the image printing apparatus 30 uses CMYK toner as a color material, the image data format is converted from the RGB format to the CMYK format. In addition, when data read by the image reading unit 210 is transmitted to a client PC in, for example, a PDF (Portable Document Format) file format, the data is converted into an image data format suitable for the monitor characteristics such as the sRGB format.

画像補正部227は、画像の特徴に即して画像を補正する。具体的には、画像補正部227は、文字領域に対してシャープネス処理を実施し、網点領域に対してスムージング処理を実施する。画像補正部227からの出力信号は、専用ビデオI/F部203に伝達される。  The image correction unit 227 corrects the image in accordance with the feature of the image. Specifically, the image correction unit 227 performs sharpness processing on the character region and performs smoothing processing on the halftone dot region. An output signal from the image correction unit 227 is transmitted to the dedicated video I / F unit 203.

像域識別処理部228は、画素ごとの特徴を解析し、画像補正部227の補正に必要な各種の属性を識別して出力する。属性としては、たとえばエッジ領域、色画素/黒画素、網点などが挙げられる。  The image area identification processing unit 228 analyzes the characteristics of each pixel, identifies various attributes necessary for the correction of the image correction unit 227, and outputs them. Examples of the attribute include an edge region, a color pixel / black pixel, and a halftone dot.

操作部230は、制御部200に対するユーザーからの操作を受け付ける。具体的には、操作部230は、タッチパネル、コピー枚数などの数値を入力するためのテンキー、動作の開始を指示するためのスタートキー、動作の停止を指示するためのストップキー、各種設定条件を初期化するリセットキーなどを備える。  The operation unit 230 receives an operation from the user for the control unit 200. Specifically, the operation unit 230 includes a touch panel, a numeric keypad for inputting numerical values such as the number of copies, a start key for instructing start of operation, a stop key for instructing stop of operation, and various setting conditions. It has a reset key to initialize.

表示部240は、画像形成システム1の状態および設定値の内容などを表示する。具体的には、表示部240は、液晶パネルディスプレイを備えており、操作部230を介して入力された数値、入力操作を促すメッセージ、警告メッセージなどを表示する。  The display unit 240 displays the state of the image forming system 1 and the contents of set values. Specifically, the display unit 240 includes a liquid crystal panel display, and displays numerical values input via the operation unit 230, messages for prompting input operations, warning messages, and the like.

以下、図4を参照して、本実施形態の画像形成システム1が実行する画像処理方法としてのカラーモノクロ判定方法について説明する。図4は本発明の第1の実施形態におけるカラーモノクロ判定方法の処理手順ついて説明するためのフローチャートである。  Hereinafter, a color / monochrome determination method as an image processing method executed by the image forming system 1 of the present embodiment will be described with reference to FIG. FIG. 4 is a flowchart for explaining the processing procedure of the color / monochrome determination method according to the first embodiment of the present invention.

まず、モノクロ原稿のカラー画像を取得する(ステップS101)。具体的には、制御部200は、操作部230からの入力を受付けて、原稿供給装置10に対してモノクロ原稿を画像読取装置20に供給するように指示を出力する。上記モノクロ原稿には、黒色のストライプ状の模様が描かれている(以下、ラダーチャートと称する)。画像読取装置20は、供給されたモノクロ原稿を光学的に読取って複数色に色分解された画像を取得し、記憶部202に記憶する。本実施形態では、画像は、たとえばRGB形式で記憶部202に記憶される。  First, a color image of a monochrome original is acquired (step S101). Specifically, the control unit 200 receives an input from the operation unit 230 and outputs an instruction to supply the monochrome document to the image reading device 20 to the document supply device 10. A black stripe pattern is drawn on the monochrome original (hereinafter referred to as a ladder chart). The image reading device 20 optically reads the supplied monochrome document, acquires an image separated into a plurality of colors, and stores it in the storage unit 202. In the present embodiment, the image is stored in the storage unit 202 in RGB format, for example.

画像供給装置10が原稿を供給するとき、原稿に機械的な衝撃が加えられたり、原稿の搬送速度にムラが生じたりすると、画像読取装置20の(R,G,B)各色のイメージセンサーが本来読取るべき位置とは異なった位置を読取ってしまうことがある。その結果、黒画素のエッジ部分に本来存在しないはずの色画素が現れて色ずれを引き起こす可能性がある。  When the image supply device 10 supplies a document, if a mechanical impact is applied to the document or unevenness occurs in the conveyance speed of the document, the image sensors of the (R, G, B) colors of the image reading device 20 are detected. A position different from the position that should be read may be read. As a result, a color pixel that should not originally exist at the edge portion of the black pixel may appear and cause a color shift.

図5は、本発明の第1の実施形態における色ずれについて説明するための図である。図5には、ラダーチャートが描かれた原稿を画像読取装置20で読取った際に生じた色ずれが示されている。なお、図5においてX方向は主走査方向であり、Y方向は副走査方向である。色ずれが生じると、原稿が本来の色とは異なる色で出力されてしまう。  FIG. 5 is a diagram for explaining color misregistration in the first embodiment of the present invention. FIG. 5 shows the color misregistration that occurs when the image reading device 20 reads a document on which a ladder chart is drawn. In FIG. 5, the X direction is the main scanning direction, and the Y direction is the sub scanning direction. When color misregistration occurs, the document is output in a color different from the original color.

一般に、原稿に対する機械的な衝撃および原稿の搬送速度ムラは搬送方向に生じやすい。したがって、色ずれは、原稿の搬送方向に沿う方向と一致する副走査方向に生じることが多い。説明を簡略化するため、以下では、副走査方向に色ずれが生じる場合について主に説明する。  In general, mechanical impacts on the original and unevenness in the original conveyance speed are likely to occur in the conveyance direction. Therefore, color misregistration often occurs in the sub-scanning direction that coincides with the direction along the document transport direction. In order to simplify the description, a case where color misregistration occurs in the sub-scanning direction will be mainly described below.

次に、図4に戻り、色ずれを認識する(ステップS102)。具体的には、制御部200は、記憶部202に記憶されたRGBデータを用いて、色ずれが生じている画像領域を特定する。さらに、図5に示すとおり、制御部200は、色ずれが生じている画像領域において、色ずれの大きさに応じて、小さい色ずれが発生する領域、中程度の色ずれが発生する領域、および大きい色ずれが発生する領域に画像を複数の領域に分割する。  Next, returning to FIG. 4, color misregistration is recognized (step S102). Specifically, the control unit 200 uses the RGB data stored in the storage unit 202 to specify an image area where color misregistration has occurred. Further, as shown in FIG. 5, the control unit 200 includes a region where a small color shift occurs, a region where a medium color shift occurs, according to the size of the color shift, Then, the image is divided into a plurality of areas in areas where a large color shift occurs.

図5において、小さい色ずれが発生する領域は、黒画素を中心とした所定の大きさの領域(以下、エリアと称する)内に含まれる色画素が少ない領域である。一方、大きい色ずれが発生する領域は、同じ大きさのエリア内に含まれる色画素が多い領域である。中程度の色ずれが発生する領域は、同じ大きさのエリア内に含まれる色画素が中程度の領域である。  In FIG. 5, a region where a small color misregistration occurs is a region where there are few color pixels included in a region having a predetermined size centered on black pixels (hereinafter referred to as an area). On the other hand, a region where a large color shift occurs is a region where many color pixels are included in an area of the same size. The region where the medium color misregistration occurs is a region where the color pixels included in the same size area are medium.

したがって、画像を色ずれの大きさに応じて複数の色ずれ領域に分割するには、まず、画像を複数のエリアに等分割し、各エリア内の色画素数をカウントする。そして、小さい色ずれが発生する領域、中程度の色ずれが発生する領域、および大きい色ずれが発生する領域に対応する色画素数の閾値を設定し、各エリアの色画素数と閾値との大小関係にしたがって画像を複数の色ずれ領域に分割する。  Therefore, in order to divide an image into a plurality of color misregistration regions according to the color misregistration size, first, the image is equally divided into a plurality of areas, and the number of color pixels in each area is counted. Then, a threshold value for the number of color pixels corresponding to a region where a small color shift occurs, a region where a medium color shift occurs, and a region where a large color shift occurs is set. The image is divided into a plurality of color misregistration areas according to the size relationship.

本実施形態では、制御部200は、画像内の分割された領域の位置と分割された領域の色ずれの大きさとを対応させて記憶部202に記憶する。たとえば、画像内の位置(X1,Y1)を始点とする分割領域は色ずれが小さい領域であることを記憶部202に記憶する。  In the present embodiment, the control unit 200 stores the position of the divided area in the image and the color misregistration size of the divided area in the storage unit 202 in association with each other. For example, the storage unit 202 stores that the divided area starting from the position (X1, Y1) in the image has a small color shift.

本実施形態では、副走査方向について、色ずれが生じない領域、小さい色ずれが生じる領域、中程度の色ずれが生じる領域、および大きい色ずれが生じる領域の4つの色ずれ領域に画像を分割する。しかしながら、副走査方向だけではなく、主走査方向についても、各エリアについて得られた色画素数の多少に応じて画像を領域に分割することができる。また、画像を色ずれ領域に分割する数は4つに限定されず、色ずれの多少に応じて2つ、3つあるいは5つ以上とすることもできる。  In this embodiment, in the sub-scanning direction, an image is divided into four color misregistration areas: an area where no color misregistration occurs, an area where small color misregistration occurs, an area where medium color misregistration occurs, and an area where large color misregistration occurs. To do. However, not only in the sub-scanning direction but also in the main scanning direction, an image can be divided into regions according to the number of color pixels obtained for each area. Further, the number of division of the image into color misregistration areas is not limited to four, and may be two, three, five or more depending on the degree of color misregistration.

なお、画像供給装置10に起因する色ずれは、画像供給装置10の構造に依存している。したがって、たとえば製品の出荷時に一度モノクロ原稿のカラー画像を取得して色ずれを認識し、記憶部202に記憶すれば、画像供給装置10の構造に変化がない限り、以降も色ずれに関する同じ情報を使用することができる。  Note that color misregistration caused by the image supply device 10 depends on the structure of the image supply device 10. Accordingly, for example, when a color image of a monochrome original is acquired once at the time of product shipment, and color misregistration is recognized and stored in the storage unit 202, the same information regarding color misregistration will be used thereafter as long as there is no change in the structure of the image supply device 10. Can be used.

次に、再び図4に戻り、原稿の画像を取得する(ステップS103)。具体的には、制御部200は、操作部230からの入力を受付けて、原稿供給装置10に対して読取り対象となる原稿を画像読取装置20に供給するように指示を出力する。画像読取装置20は、供給された原稿を光学的に読取って複数色に色分解された画像を取得し、記憶部202に記憶する。本実施形態では、画像は、たとえばRGBデータ形式で記憶部202に記憶される。  Next, returning to FIG. 4 again, an image of the document is acquired (step S103). Specifically, the control unit 200 receives an input from the operation unit 230 and outputs an instruction to the document supply device 10 to supply a document to be read to the image reading device 20. The image reading device 20 optically reads the supplied document, acquires an image separated into a plurality of colors, and stores it in the storage unit 202. In the present embodiment, the image is stored in the storage unit 202 in the RGB data format, for example.

次に、カラーモノクロ判定用パラメーターを設定する(ステップS104)。具体的には、制御部200は、画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してモノクロと判定されやすくなるように、少なくとも1つのカラーモノクロ判定用パラメーターを設定する。  Next, color / monochrome determination parameters are set (step S104). Specifically, the control unit 200 sets at least one color / monochrome determination parameter so that an area where color misregistration in an image is likely to be determined as monochrome compared to an area where no color misregistration occurs. .

次に、カラーモノクロ判定を実施する(ステップS105)。具体的には、制御部200は、原稿がカラーであるかモノクロであるかを判定する。カラーモノクロ判定処理の手順については後述する。カラーモノクロ判定を実施したのち、処理を終了する。  Next, color / monochrome determination is performed (step S105). Specifically, the control unit 200 determines whether the document is color or monochrome. The procedure of the color / monochrome determination process will be described later. After performing the color / monochrome determination, the process is terminated.

以下、図6を参照して、本実施形態において、カラーモノクロ判定用パラメーターを設定する手順について説明する。図6は、本発明の第1の実施形態においてカラーモノクロ判定用パラメーターを設定する手順について説明するためのフローチャートである。  Hereinafter, the procedure for setting the color / monochrome determination parameter in the present embodiment will be described with reference to FIG. FIG. 6 is a flowchart for explaining a procedure for setting a color / monochrome determination parameter in the first embodiment of the present invention.

本実施形態では、たとえば1つのカラーモノクロ判定用パラメーターに対して第1の設定〜第4の設定の判定基準が予め制御部200の記憶部202に記憶されている。そして、色ずれが生じない領域である場合は、第1の設定の判定基準が参照され、小さい色ずれが発生する領域である場合は、第2の設定の判定基準が参照されるように構成されている。また、中程度の色ずれが発生する領域である場合は第3の設定の判定基準が参照され、大きい色ずれが発生する領域である場合は第4の設定の判定基準が参照されるように構成されている。なお、後述する彩度リファレンステーブル、黒画素周辺フィルターサイズ、黒画素周辺フィルターパターンの各パラメーターは、第1の設定〜第4の設定の判定基準をそれぞれ備えている。  In the present embodiment, for example, the determination criteria of the first setting to the fourth setting are stored in advance in the storage unit 202 of the control unit 200 for one color / monochrome determination parameter. The first setting determination criterion is referred to when the color misregistration does not occur, and the second setting determination criterion is referred to when the small color misregistration occurs. Has been. Further, the third setting criterion is referred to in the case where the medium color misregistration occurs, and the fourth setting criterion is referred to in the case where the large color misregistration occurs. It is configured. Each parameter of a saturation reference table, a black pixel peripheral filter size, and a black pixel peripheral filter pattern, which will be described later, has a determination criterion for first to fourth settings.

カラーモノクロ判定用パラメーターを設定するには、図6に示すとおり、まず、色ずれ領域か否かを判断する(ステップS201)。具体的には、図4のステップS102で色ずれの有無および色ずれの大きさに応じて分割した領域について色ずれが生じる領域か否かを判断する。色ずれが生じる領域である場合(ステップS201:YES)、各カラーモノクロ判定用パラメーターについて、色ずれ領域用の判定基準を設定する(ステップS202)。一方、色ずれが生じない領域である場合(ステップS201:NO)、各カラーモノクロ判定用パラメーターについて、デフォルトの判定基準を設定する(ステップS203)。  In order to set the color / monochrome determination parameter, it is first determined whether or not it is a color misregistration region as shown in FIG. 6 (step S201). Specifically, it is determined whether or not the region divided in accordance with the presence / absence of the color shift and the magnitude of the color shift is an area where the color shift occurs in step S102 of FIG. If it is an area where color misregistration occurs (step S201: YES), determination criteria for the color misregistration area are set for each color / monochrome determination parameter (step S202). On the other hand, if it is an area where no color misregistration occurs (step S201: NO), a default determination criterion is set for each color / monochrome determination parameter (step S203).

本実施形態では、デフォルトの判定基準として、第1の設定の判定基準を使用する。一方、色ずれ領域用の判定基準として、小さい色ずれが発生する領域に対して第2の設定の判定基準を使用し、中程度の色ずれが発生する領域に対して第3の設定の判定基準を使用し、大きい色ずれが発生する領域に対して第4の設定の判定基準を使用する。第2の設定の判定基準は、第1の設定の判定基準と比較してモノクロと判定されやすくなるように調整されている。また、第3の設定の判定基準は、第2の設定の判定基準と比較して、よりモノクロと判定されやすくなるように調整されており、第4の設定の判定基準は、第3の設定の判定基準と比較して、よりモノクロと判定されやすくなるように調整されている。  In the present embodiment, the first setting criterion is used as the default criterion. On the other hand, as a criterion for the color misregistration area, the second setting criterion is used for an area where a small color misregistration occurs, and a third setting judgment is performed for an area where a medium color misregistration occurs A criterion is used, and a fourth setting criterion is used for an area where a large color shift occurs. The determination criterion of the second setting is adjusted so that it is easier to determine monochrome as compared with the determination criterion of the first setting. The determination criterion for the third setting is adjusted so that it is easier to determine monochrome as compared with the determination criterion for the second setting. The determination criterion for the fourth setting is the third setting. It is adjusted so that it can be more easily determined to be monochrome compared to the determination criterion.

次に、判定基準の設定が完了したか否かを判断する(ステップS204)。具体的には、図4のステップS102で色ずれの有無および色ずれの大きさに応じて分割したすべての領域について判定基準の設定が完了したか否かを判断する。判定基準の設定が完了した場合(ステップS204:YES)は、図4のステップS105のカラーモノクロ判定に移行する。  Next, it is determined whether or not the determination criteria are set (step S204). Specifically, it is determined in step S102 in FIG. 4 whether or not the determination criteria have been set for all the regions divided according to the presence / absence of the color shift and the magnitude of the color shift. When the setting of the determination reference is completed (step S204: YES), the process proceeds to color / monochrome determination in step S105 of FIG.

一方、判定基準の設定が完了していない場合(ステップS204:NO)は、判定基準の設定が完了していない領域について、ステップS201の処理に移行する。  On the other hand, when the setting of the determination criterion is not completed (step S204: NO), the process proceeds to the process of step S201 for the region where the determination criterion is not set.

以下、図7〜図9を参照して、本実施形態における判定基準について説明する。本実施形態では、カラーモノクロ判定用パラメーターとして、彩度リファレンステーブル、黒画素周辺フィルターサイズ、黒画素周辺フィルターパターンの各パラメーターが使用されうる。しかしながら、カラーモノクロ判定用パラメーターとしては、これらのパラメーターに限定されず、カラーモノクロ判定に関連する他のパラメーターを使用してもよい。  Hereinafter, with reference to FIG. 7 to FIG. 9, determination criteria in the present embodiment will be described. In the present embodiment, each parameter of a saturation reference table, a black pixel peripheral filter size, and a black pixel peripheral filter pattern can be used as a color / monochrome determination parameter. However, the parameters for color / monochrome determination are not limited to these parameters, and other parameters related to color / monochrome determination may be used.

図7は、本発明の第1の実施形態における彩度リファレンステーブルについて説明するための図である。彩度リファレンステーブルは、画素の明度および彩度の大きさから、当該画素が色画素であるのか、黒画素あるのかを判定するためのリファレンステーブルである。図7の曲線Cは、色ずれが生じない領域における画素の彩度および明度の大きさから、当該画素が色画素であるか黒画素であるかを判定するための第1の設定の判定基準の一例を示している。  FIG. 7 is a diagram for explaining the saturation reference table in the first embodiment of the present invention. The saturation reference table is a reference table for determining whether the pixel is a color pixel or a black pixel from the brightness and saturation level of the pixel. A curve C in FIG. 7 indicates a first setting criterion for determining whether the pixel is a color pixel or a black pixel based on the saturation and brightness of the pixel in a region where no color misregistration occurs. An example is shown.

ここで、彩度および明度は、たとえばRGBデータから算出する。彩度は、R,G,Bデータの最大値と最小値との差分であり、明度Vは、α、β、γを任意の定数として、下記の数式(1)から求めることができる。  Here, the saturation and brightness are calculated from RGB data, for example. The saturation is a difference between the maximum value and the minimum value of the R, G, and B data, and the brightness V can be obtained from the following formula (1) with α, β, and γ being arbitrary constants.

本実施形態では、画像内の色ずれが生じる領域では、色ずれが生じない領域と比較して画素が黒画素であると判定されやすくなるように、彩度リファレンステーブルを設定する。  In the present embodiment, the saturation reference table is set so that a region where color misregistration in an image is generated is easier to determine that the pixel is a black pixel than a region where color misregistration does not occur.

たとえば、小さい色ずれが生じる領域では、第2の設定の判定基準として、曲線Cを紙面の右上方向にシフトさせた曲線C1を有する彩度リファレンステーブルを使用する。  For example, in a region where a small color misregistration occurs, a saturation reference table having a curve C1 obtained by shifting the curve C in the upper right direction on the paper surface is used as the determination criterion for the second setting.

また、中程度の色ずれが生じる領域では、第3の設定の判定基準として、曲線C1を紙面の右上方向にさらにシフトさせた曲線C2を有する彩度リファレンステーブルを使用する。  In a region where moderate color misregistration occurs, a saturation reference table having a curve C2 obtained by further shifting the curve C1 in the upper right direction on the paper surface is used as a determination criterion for the third setting.

さらに、大きい色ずれが生じる領域では、第4の設定の判定基準として、曲線C2を紙面の右上方向にさらにシフトさせた曲線C3を有する彩度リファレンステーブルを使用する。  Further, in a region where a large color shift occurs, a saturation reference table having a curve C3 obtained by further shifting the curve C2 in the upper right direction on the paper surface is used as a determination criterion for the fourth setting.

たとえば、曲線Cの彩度リファレンステーブルの場合、彩度が40で明度が150であるとき、画素は色画素であると判定される。一方、曲線C1の彩度リファレンステーブルの場合、彩度が40で明度が150であるとき、画素は黒画素であると判定される。このように、本実施形態では、画像内の色ずれが生じる領域では、色ずれが生じない領域と比較して画素が黒画素であると判定されやすくなる。なお、読込まれた画像に白色の部分が含まれる場合、白色の部分は黒画素として扱われる。  For example, in the case of the saturation reference table of curve C, when the saturation is 40 and the lightness is 150, the pixel is determined to be a color pixel. On the other hand, in the case of the saturation reference table of the curve C1, when the saturation is 40 and the lightness is 150, it is determined that the pixel is a black pixel. As described above, in the present embodiment, in a region where color misregistration occurs in an image, it is easier to determine that a pixel is a black pixel than a region where color misregistration does not occur. If the read image includes a white portion, the white portion is treated as a black pixel.

図8および図9は、本発明の第1の実施形態における黒画素周辺フィルターについて説明するための図である。黒画素周辺フィルターは、画像内の注目画素周辺における色画素および黒画素の出現状況に基づいて、注目画素が色画素であるのか、黒画素であるのかを判定するためのフィルターである。図8および図9において、7×7のマス目の中央に位置する画素が注目画素である。そして、注目画素の周辺に位置する灰色で示した画素について黒画素周辺フィルターをかける。  8 and 9 are diagrams for explaining the black pixel peripheral filter according to the first embodiment of the present invention. The black pixel peripheral filter is a filter for determining whether the target pixel is a color pixel or a black pixel based on the appearance state of the color pixel and the black pixel around the target pixel in the image. 8 and 9, the pixel located at the center of the 7 × 7 square is the target pixel. Then, a black pixel peripheral filter is applied to the pixels shown in gray located around the target pixel.

図8(A)は、周辺画素に関わらず注目画素のみで判定する黒画素周辺フィルターを示す。この場合、黒画素周辺フィルターサイズは、1×1である。図8(B)は、注目画素とその周辺にある8画素で色画素か黒画素かを判定する黒画素周辺フィルターを示す。この場合、黒画素周辺フィルターサイズは、3×3である。また、図8(C)は、注目画素とその周辺にある24画素で色画素か黒画素かを判定する黒画素周辺フィルターを示す。この場合、黒画素周辺フィルターサイズは、5×5である。図8(D)は、注目画素とその周辺にある48画素で色画素か黒画素かを判定する黒画素周辺フィルターを示す。この場合、黒画素周辺フィルターサイズは、7×7である。  FIG. 8A shows a black pixel peripheral filter that is determined by only the target pixel regardless of the peripheral pixels. In this case, the black pixel peripheral filter size is 1 × 1. FIG. 8B shows a black pixel peripheral filter that determines whether a pixel of interest and its surrounding eight pixels are color pixels or black pixels. In this case, the black pixel peripheral filter size is 3 × 3. FIG. 8C shows a black pixel peripheral filter that determines whether a pixel of interest and 24 pixels around it are color pixels or black pixels. In this case, the black pixel peripheral filter size is 5 × 5. FIG. 8D shows a black pixel peripheral filter that determines whether a pixel of interest and 48 pixels around it are color pixels or black pixels. In this case, the black pixel peripheral filter size is 7 × 7.

黒画素周辺フィルターを使用すると、注目画素が色画素であるか、あるいは黒画素であるかを注目画素に加えて注目画素の周辺画素を考慮して判定することができる。黒画素周辺フィルターがかかっている画素の中に1つでも黒画素が存在すると、注目画素が黒画素であると判定される。したがって、黒画素周辺フィルターサイズを大きくして、より多くの周辺画素に黒画素周辺フィルターをかけることにより、注目画素が黒画素と判定されやすくなる。  When the black pixel peripheral filter is used, it can be determined whether the target pixel is a color pixel or a black pixel in consideration of the peripheral pixels of the target pixel in addition to the target pixel. If even one black pixel exists among the pixels to which the black pixel peripheral filter is applied, it is determined that the target pixel is a black pixel. Therefore, by increasing the black pixel peripheral filter size and applying the black pixel peripheral filter to more peripheral pixels, the target pixel can be easily determined as a black pixel.

本実施形態では、画像内の色ずれが生じる領域では、色ずれが生じない領域と比較して画素が黒画素と判定されやすくなるように、黒画素周辺フィルターサイズを設定する。  In the present embodiment, the black pixel peripheral filter size is set so that a pixel in a region where color misregistration occurs is more likely to be determined as a black pixel than a region where color misregistration does not occur.

たとえば、色ずれが生じない領域では、第1の設定の判定基準として、黒画素周辺フィルターサイズを1×1に設定する。これにより、注目画素のみに基づいて、注目画素が色画素であるか、あるいは黒画素であるかを判定する。  For example, in a region where no color misregistration occurs, the black pixel peripheral filter size is set to 1 × 1 as a determination criterion for the first setting. Thus, it is determined whether the target pixel is a color pixel or a black pixel based only on the target pixel.

また、小さい色ずれが生じる領域では、第2の設定の判定基準として、黒画素周辺フィルターサイズ3×3を設定する。これにより、注目画素を中心とする9画素のすべてが色画素である場合、注目画素を色画素と判定する。すなわち、注目画素およびその周辺8画素のいずれかに黒画素が存在する場合、注目画素を黒画素と判定する。  In a region where a small color shift occurs, a black pixel peripheral filter size 3 × 3 is set as a determination criterion for the second setting. Thereby, when all nine pixels centering on the target pixel are color pixels, the target pixel is determined to be a color pixel. That is, when a black pixel exists in any one of the target pixel and the surrounding eight pixels, the target pixel is determined as a black pixel.

また、中程度の色ずれが生じる領域では、第3の設定の判定基準として、黒画素周辺フィルターサイズ5×5を設定する。これにより、注目画素を中心とする25画素のすべてが色画素である場合、注目画素を色画素と判定する。すなわち、注目画素およびその周辺24画素のいずれかに黒画素が存在する場合、注目画素を黒画素と判定する。  In a region where moderate color misregistration occurs, the black pixel peripheral filter size 5 × 5 is set as the determination criterion for the third setting. Thereby, when all 25 pixels centering on the target pixel are color pixels, the target pixel is determined to be a color pixel. That is, when a black pixel exists in any of the pixel of interest and its surrounding 24 pixels, the pixel of interest is determined to be a black pixel.

さらに、大きい色ずれが生じる領域では、第4の設定の判定基準として、黒画素周辺フィルターサイズ7×7を設定する。これにより、注目画素を中心とする49画素のすべてが色画素である場合、注目画素を色画素と判定する。すなわち、注目画素およびその周辺48画素のいずれかに黒画素が存在する場合、注目画素を黒画素と判定する。  Further, in a region where a large color shift occurs, a black pixel peripheral filter size of 7 × 7 is set as the fourth setting determination criterion. Thereby, when all 49 pixels centering on the target pixel are color pixels, the target pixel is determined to be a color pixel. That is, when a black pixel exists in any of the pixel of interest and its surrounding 48 pixels, the pixel of interest is determined to be a black pixel.

また、本実施形態では、画像内の色ずれが生じる領域では、色ずれが生じない領域と比較して注目画素が黒画素と判定されやすくなるように、黒画素周辺フィルターパターンを設定することもできる。  In the present embodiment, a black pixel peripheral filter pattern may be set so that a pixel of interest in a region where color misregistration in an image is likely to be determined as a black pixel compared to a region where color misregistration does not occur. it can.

図9(A)は周辺画素に関わらず注目画素のみで色画素か黒画素かを判定する場合を示し、図9(B)〜図9(D)は黒画素周辺フィルターサイズが5×5で、黒画素周辺フィルターパターンが互いに異なる黒画素周辺フィルターを示す。  FIG. 9A shows a case where it is determined whether only a pixel of interest is a color pixel or a black pixel regardless of surrounding pixels, and FIGS. 9B to 9D show a black pixel peripheral filter size of 5 × 5. The black pixel peripheral filters having different black pixel peripheral filter patterns are shown.

たとえば、色ずれが生じない領域では、第1の設定の判定基準として、図9(A)に示す黒画素周辺フィルターパターンの黒画素周辺フィルターを設定する。これにより、注目画素のみに基づいて、注目画素が色画素であるか、あるいは黒画素であるかを判定する。  For example, in a region where no color misregistration occurs, the black pixel peripheral filter of the black pixel peripheral filter pattern shown in FIG. 9A is set as the determination criterion for the first setting. Thus, it is determined whether the target pixel is a color pixel or a black pixel based only on the target pixel.

また、小さい色ずれが生じる領域では、第2の設定の判定基準として、図9(B)に示す黒画素周辺フィルターパターンの黒画素周辺フィルターを設定する。  In a region where a small color misregistration occurs, a black pixel peripheral filter of the black pixel peripheral filter pattern shown in FIG. 9B is set as a determination criterion for the second setting.

また、中程度の色ずれが生じる領域では、第3の設定の判定基準として、図9(C)に示す黒画素周辺フィルターパターンの黒画素周辺フィルターを設定する。  In a region where moderate color misregistration occurs, the black pixel peripheral filter of the black pixel peripheral filter pattern shown in FIG. 9C is set as the determination criterion for the third setting.

さらに、大きい色ずれが生じる領域では、第4の設定の判定基準として、図9(D)に示す黒画素周辺フィルターパターンの黒画素周辺フィルターを設定する。  Further, in a region where a large color shift occurs, a black pixel peripheral filter of the black pixel peripheral filter pattern shown in FIG. 9D is set as a determination criterion for the fourth setting.

このように、本実施形態では、注目画素が色画素であるか、あるいは黒画素であるかを注目画素に加えて注目画素の周辺画素を考慮して判定するので、色ずれが生じる領域において注目画素が黒画素と判定されやすくなる。したがって、色ずれが生じる領域において黒画素周辺の色ずれによる色画素をキャンセルすることができる。その結果、黒画素周辺の色ずれによる色画素が色画素として認識されることを低減できる。  As described above, in the present embodiment, it is determined whether the target pixel is a color pixel or a black pixel in consideration of the peripheral pixels of the target pixel in addition to the target pixel. It becomes easy to determine that the pixel is a black pixel. Accordingly, it is possible to cancel the color pixel due to the color shift around the black pixel in the region where the color shift occurs. As a result, it is possible to reduce the recognition of the color pixel due to the color shift around the black pixel as the color pixel.

なお、本実施形態では、上述の黒画素周辺フィルター以外にも、色ずれの大きさに応じて多様なパターンおよびサイズのものを使用することができる。また、黒画素周辺フィルターのパターンおよびサイズは、主走査方向および副走査方向にそれぞれ自由に設定することができる。  In the present embodiment, in addition to the above-described black pixel peripheral filter, a variety of patterns and sizes can be used depending on the color shift. Further, the pattern and size of the black pixel peripheral filter can be freely set in the main scanning direction and the sub-scanning direction, respectively.

以下、図10を参照して、本実施形態のカラーモノクロ判定処理を説明する。図10は、本発明の第1の実施形態におけるカラーモノクロ判定処理の手順について説明するフローチャートである。  Hereinafter, the color / monochrome determination process of the present embodiment will be described with reference to FIG. FIG. 10 is a flowchart for explaining the procedure of color / monochrome determination processing according to the first embodiment of the present invention.

まず、画素が色画素か黒画素かを判定する(ステップS301)。具体的には、彩度リファレンステーブルを参照して、画像の画素ごとに色画素であるか、黒画素であるかを判定する。  First, it is determined whether the pixel is a color pixel or a black pixel (step S301). Specifically, it is determined with reference to the saturation reference table whether each pixel of the image is a color pixel or a black pixel.

次に、黒画素周辺の色画素をキャンセルする(ステップS302)。具体的には、色ずれの大きさに応じた黒画素周辺フィルターを、ステップS301で得られた色画素/黒画素判定結果全体に適用し、フィルタリング処理を実行する。適用した黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、黒画素周辺フィルターの注目画素を黒画素として認識する。一方、適用した黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、黒画素周辺フィルターの注目画素を色画素として認識する。その結果、黒画素周辺の色画素がキャンセルされる。なお、黒画素周辺フィルターを色画素/黒画素判定結果全体に適用するのではなく、特定の部分に選択的に適用してもよい。  Next, the color pixels around the black pixels are canceled (step S302). Specifically, a black pixel peripheral filter corresponding to the magnitude of color misregistration is applied to the entire color pixel / black pixel determination result obtained in step S301, and filtering processing is executed. When even one black pixel exists in the filtering processing range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a black pixel. On the other hand, when there is no black pixel in the filtering processing range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a color pixel. As a result, the color pixels around the black pixel are canceled. The black pixel peripheral filter may be selectively applied to a specific portion instead of being applied to the entire color pixel / black pixel determination result.

次に、色画素数と所定の色画素数閾値とを比較する(ステップS303)。色画素数閾値は、原稿がカラー原稿であるか、モノクロ原稿であるかを判定するための閾値である。色画素数閾値は、制御部200の記憶部202に予め所定値が記憶されている。制御部200は、画像内の色画素数を算出し、色画素数閾値と比較する。色画素数が色画素数閾値以上の場合(ステップS303:YES)、原稿をカラーと判定する(ステップS304)。一方、色画素数が色画素数閾値未満の場合(ステップS303:NO)、原稿をモノクロと判定する(ステップS305)。  Next, the number of color pixels is compared with a predetermined color pixel number threshold (step S303). The color pixel number threshold is a threshold for determining whether a document is a color document or a monochrome document. As the color pixel number threshold, a predetermined value is stored in advance in the storage unit 202 of the control unit 200. The control unit 200 calculates the number of color pixels in the image and compares it with a color pixel number threshold. If the number of color pixels is equal to or greater than the color pixel number threshold (step S303: YES), the document is determined to be color (step S304). On the other hand, if the number of color pixels is less than the color pixel number threshold (step S303: NO), the document is determined to be monochrome (step S305).

以上のとおり、本実施形態の画像処理方法、画像読取装置20、および画像処理プログラムによれば、画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなる。したがって、原稿を読取る際に色ずれが発生した場合であっても、原稿がカラーであるかモノクロであるかを精度よく判定することができる。  As described above, according to the image processing method, the image reading device 20, and the image processing program of the present embodiment, the region where color misregistration in the image is monochrome and monochrome compared to the region where color misregistration does not occur. It becomes easy to be judged. Therefore, even when color misregistration occurs when reading a document, it can be accurately determined whether the document is color or monochrome.

また、画像内の色ずれが生じる領域において、色ずれの大きさに応じてカラーモノクロ判定用パラメーターを設定するので、カラーモノクロ判定の精度を向上させることができる。  In addition, since the color / monochrome determination parameter is set according to the magnitude of the color misregistration in the region where the color misregistration occurs in the image, the accuracy of the color / monochrome determination can be improved.

(第2の実施形態)
第1の実施形態では、原稿の画像全体の色画素数に基づいて、原稿がカラーであるかモノクロであるかを判定する場合について説明した。第2の実施形態では、原稿の画像を複数のブロックで分割し、ブロック内の色画素数に基づいてブロックがカラーブロックであるかモノクロブロックであるかを判定し、カラーブロック数に基づいて原稿がカラーであるかモノクロであるかを判定する場合について説明する。
(Second Embodiment)
In the first embodiment, the case where it is determined whether the document is color or monochrome based on the number of color pixels of the entire image of the document has been described. In the second embodiment, an image of a document is divided into a plurality of blocks, whether a block is a color block or a monochrome block is determined based on the number of color pixels in the block, and the document is based on the number of color blocks. A case where it is determined whether the color is monochrome or monochrome will be described.

なお、本実施形態は、以下に述べるカラーモノクロ判定用パラメーター設定処理およびカラーモノクロ判定処理を除いて第1の実施形態と同じである。以下では、第1の実施形態と同じ構成および処理については説明を省略する。  The present embodiment is the same as the first embodiment except for the color / monochrome determination parameter setting process and the color / monochrome determination process described below. Hereinafter, description of the same configuration and processing as those in the first embodiment will be omitted.

<カラーモノクロ判定用パラメーター設定処理>
以下、図11および図12を参照して、本実施形態において、カラーモノクロ判定用パラメーターを設定する手順について説明する。図11は本発明の第2の実施形態においてカラーモノクロ判定用パラメーターを設定する手順について説明するためのフローチャートであり、図12は本発明の第2の実施形態において画像をブロックで分割する方法を説明するための図である。本実施形態では、第1の実施形態とは異なり、画像内の色画素判定ブロックごとにカラーモノクロ判定用パラメーターの判定基準を設定する。
<Color / monochrome judgment parameter setting process>
Hereinafter, with reference to FIG. 11 and FIG. 12, a procedure for setting a color / monochrome determination parameter in the present embodiment will be described. FIG. 11 is a flowchart for explaining a procedure for setting a color / monochrome determination parameter in the second embodiment of the present invention, and FIG. 12 shows a method of dividing an image into blocks in the second embodiment of the present invention. It is a figure for demonstrating. In the present embodiment, unlike the first embodiment, the determination criterion for the color / monochrome determination parameter is set for each color pixel determination block in the image.

図11に示すとおり、まず、ブロックで画像を分割する(ステップS401)。具体的には、色画素判定ブロックサイズで表される大きさの色画素判定ブロックで画像を分割する。たとえば、図12(A)に示すとおり、座標(X1,Y1)、(X1,Y2)、(X1,Y3)を始点とした各々の色ずれ領域について、色画素判定ブロックサイズを色ずれ領域のY方向の長さと同じ長さにして、画像を分割する。  As shown in FIG. 11, first, an image is divided into blocks (step S401). Specifically, the image is divided by the color pixel determination block having a size represented by the color pixel determination block size. For example, as shown in FIG. 12A, the color pixel determination block size of each color shift area starting from coordinates (X1, Y1), (X1, Y2), (X1, Y3) is set to the color shift area. The image is divided into the same length as the length in the Y direction.

また、図12(B)に示すとおり、すべての色ずれ領域のY方向の長さよりも短くなるように色画素判定ブロックサイズを決定し、各々の色ずれ領域をY方向について1つ以上の色画素判定ブロックで分割するようにして画像を分割してもよい。  Further, as shown in FIG. 12B, the color pixel determination block size is determined so as to be shorter than the length in the Y direction of all the color misregistration areas, and each color misregistration area is set to one or more colors in the Y direction. The image may be divided so as to be divided by the pixel determination block.

なお、色画素判定ブロックが他の色ずれ領域を跨ぐ場合は、他の色ずれ領域にかかる部分が削除され、元の色画素判定ブロックよりも小さい色画素判定ブロックで色ずれ領域を覆うことになる。  In addition, when a color pixel determination block straddles another color misregistration area, a portion related to the other color misregistration area is deleted, and the color misregistration area is covered with a color pixel determination block smaller than the original color pixel determination block. Become.

次に、再び図11に戻り、色ずれ領域か否かを判断する(ステップS402)。具体的には、ステップS401で分割した色画素判定ブロックについて、色ずれが生じる領域内にあるか否かを判断する。色ずれが生じる領域内に色画素判定ブロックがある場合(ステップS402:YES)、各カラーモノクロ判定用パラメーターについて、色ずれ領域用の判定基準を設定する(ステップS403)。一方、色ずれが生じない領域内に色画素判定ブロックがある場合(ステップS402:NO)、各カラーモノクロ判定用パラメーターについて、デフォルトの判定基準を設定する(ステップS404)。  Next, returning to FIG. 11 again, it is determined whether or not the region is a color misregistration region (step S402). Specifically, it is determined whether or not the color pixel determination block divided in step S401 is within an area where color misregistration occurs. When there is a color pixel determination block in an area where color misregistration occurs (step S402: YES), a determination criterion for the color misregistration area is set for each color / monochrome determination parameter (step S403). On the other hand, if there is a color pixel determination block in an area where no color misregistration occurs (step S402: NO), a default determination criterion is set for each color / monochrome determination parameter (step S404).

本実施形態では、デフォルトの判定基準として、たとえば第1の設定の判定基準を使用する。一方、色ずれ領域用の判定基準として、たとえば小さい色ずれが発生する領域に対して第2の設定の判定基準を使用し、中程度の色ずれが発生する領域に対して第3の設定の判定基準を使用し、大きい色ずれが発生する領域に対して第4の設定の判定基準を使用する。第2の設定の判定基準は、第1の設定の判定基準と比較してモノクロと判定されやすくなるように調整されている。また、第3の設定の判定基準は、第2の設定の判定基準と比較して、よりモノクロと判定されやすくなるように調整されており、第4の設定の判定基準は、第3の設定の判定基準と比較して、よりモノクロと判定されやすくなるように調整されている。  In the present embodiment, for example, the first setting criterion is used as the default criterion. On the other hand, as a judgment criterion for the color misregistration area, for example, the judgment criterion of the second setting is used for the area where the small color misregistration occurs, and the third setting is used for the area where the medium color misregistration occurs. The determination criterion is used, and the determination criterion of the fourth setting is used for an area where a large color shift occurs. The determination criterion of the second setting is adjusted so that it is easier to determine monochrome as compared with the determination criterion of the first setting. The determination criterion for the third setting is adjusted so that it is easier to determine monochrome as compared with the determination criterion for the second setting. The determination criterion for the fourth setting is the third setting. It is adjusted so that it can be more easily determined to be monochrome compared to the determination criterion.

次に、判定基準の設定が完了したか否かを判断する(ステップS405)。具体的には、画像内のすべての色画素判定ブロックについて判定基準の設定が完了したか否かを判断する。なお、判定基準を設定する画像領域は操作部230を通じてユーザーが設定することもできる。判定基準の設定が完了した場合(ステップS405:YES)は、図4のステップS105のカラーモノクロ判定に移行する。  Next, it is determined whether or not the determination criteria are set (step S405). Specifically, it is determined whether or not the determination criteria are set for all the color pixel determination blocks in the image. Note that the image area for setting the determination criterion can also be set by the user through the operation unit 230. When the setting of the determination reference is completed (step S405: YES), the process proceeds to color / monochrome determination in step S105 of FIG.

一方、判定基準の設定が完了していない場合(ステップS405:NO)は、判定基準の設定が完了していない他の色画素判定ブロックについて、ステップS402の処理に移行する。以下、本実施形態におけるカラーモノクロ判定用パラメーターについて説明する。  On the other hand, when the setting of the determination criterion is not completed (step S405: NO), the process proceeds to the process of step S402 for other color pixel determination blocks for which the determination criterion setting is not completed. Hereinafter, the color / monochrome determination parameters in the present embodiment will be described.

本実施形態では、カラーモノクロ判定用パラメーターとして、彩度リファレンステーブル、黒画素周辺フィルターサイズ、黒画素周辺フィルターパターン、および色画素数閾値の各パラメーターが使用されうる。なお、彩度リファレンステーブル、黒画素周辺フィルターサイズ、および黒画素周辺フィルターパターンについては、第1の実施形態と同様なので説明を省略する。また、カラーモノクロ判定用パラメーターとしては、これらのパラメーターに限定されず、カラーモノクロ判定に関連する他のパラメーターを使用してもよい。  In the present embodiment, as parameters for color / monochrome determination, parameters such as a saturation reference table, a black pixel peripheral filter size, a black pixel peripheral filter pattern, and a color pixel number threshold may be used. Note that the saturation reference table, the black pixel peripheral filter size, and the black pixel peripheral filter pattern are the same as those in the first embodiment, and a description thereof will be omitted. The parameters for color / monochrome determination are not limited to these parameters, and other parameters related to color / monochrome determination may be used.

本実施形態の色画素数閾値は、第1の実施形態の色画素数閾値とは異なり、色画素判定ブロックがカラーブロックであるか、モノクロブロックであるかを判定するための閾値である。より具体的には、制御部200は、色画素判定ブロック内の色画素数を算出し、色画素数閾値と比較して、色画素判定ブロックがカラーブロックであるか、モノクロブロックであるかを判定する。  Unlike the color pixel number threshold value of the first embodiment, the color pixel number threshold value of the present embodiment is a threshold value for determining whether the color pixel determination block is a color block or a monochrome block. More specifically, the control unit 200 calculates the number of color pixels in the color pixel determination block and compares it with a color pixel number threshold value to determine whether the color pixel determination block is a color block or a monochrome block. judge.

本実施形態では、画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してモノクロと判定されやすくなるように、色画素数閾値を設定する。  In the present embodiment, the color pixel number threshold is set so that an area where color misregistration in the image occurs is more easily determined as monochrome compared to an area where no color misregistration occurs.

色画素判定ブロック内の色画素数は、色画素判定ブロックの大きさ、すなわち色画素判定ブロックサイズに依存するので、色画素数閾値は、色画素判定ブロックサイズを勘案して調整される。なお、図12(B)に示すとおり、色画素判定ブロックサイズよりも小さい色画素判定ブロックで画像データを分割している場合についても、色画素判定ブロックの大きさを勘案してサイズ色画素数閾値が調整される。  Since the number of color pixels in the color pixel determination block depends on the size of the color pixel determination block, that is, the color pixel determination block size, the color pixel number threshold is adjusted in consideration of the color pixel determination block size. Note that, as shown in FIG. 12B, even when the image data is divided by a color pixel determination block smaller than the color pixel determination block size, the number of size color pixels in consideration of the size of the color pixel determination block The threshold is adjusted.

<カラーモノクロ判定処理>
図13は、本発明の第2の実施形態におけるカラーモノクロ判定処理の手順について説明するフローチャートである。図13に示すとおり、まず、画素が色画素か黒画素かを判定する(ステップS501)。具体的には、彩度リファレンステーブルを参照して、画像の画素ごとに黒画素であるか、色画素であるかを判定する。
<Color / monochrome determination processing>
FIG. 13 is a flowchart for explaining the procedure of color / monochrome determination processing according to the second embodiment of the present invention. As shown in FIG. 13, first, it is determined whether a pixel is a color pixel or a black pixel (step S501). Specifically, it is determined with reference to the saturation reference table whether each pixel of the image is a black pixel or a color pixel.

次に、黒画素の周辺の色画素をキャンセルする(ステップS502)。具体的には、色ずれの大きさに応じた黒画素周辺フィルターを、ステップS501で得られた色画素/黒画素判定結果全体に適用し、フィルタリング処理を実行する。適用した黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、黒画素周辺フィルターの注目画素を黒画素として認識する。一方、適用した黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、黒画素周辺フィルターの注目画素を色画素として認識する。その結果、黒画素周辺の色画素がキャンセルされる。なお、黒画素周辺フィルターを色画素/黒画素判定結果全体に適用するのではなく、特定の部分に選択的に適用してもよい。  Next, the color pixels around the black pixel are canceled (step S502). Specifically, a black pixel peripheral filter corresponding to the magnitude of color misregistration is applied to the entire color pixel / black pixel determination result obtained in step S501, and filtering processing is executed. When even one black pixel exists in the filtering processing range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a black pixel. On the other hand, when there is no black pixel in the filtering processing range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a color pixel. As a result, the color pixels around the black pixel are canceled. The black pixel peripheral filter may be selectively applied to a specific portion instead of being applied to the entire color pixel / black pixel determination result.

次に、色画素数と色画素数閾値とを比較する(ステップS503)。具体的には、画像内の色画素判定ブロックについて、色画素判定ブロック内の色画素数を算出し、色画素数閾値と比較する。色画素数が色画素数閾値以上の場合(ステップS503:YES)、当該色画素判定ブロックをカラーブロックと判定する(ステップS504)。一方、色画素数が色画素数閾値未満の場合(ステップS503:NO)、当該色画素判定ブロックをモノクロブロックと判定する(ステップS505)。  Next, the number of color pixels is compared with the color pixel number threshold (step S503). Specifically, for the color pixel determination block in the image, the number of color pixels in the color pixel determination block is calculated and compared with the color pixel number threshold. If the number of color pixels is equal to or greater than the color pixel number threshold (step S503: YES), the color pixel determination block is determined as a color block (step S504). On the other hand, when the number of color pixels is less than the color pixel number threshold (step S503: NO), the color pixel determination block is determined as a monochrome block (step S505).

次に、色画素判定ブロックの判定が完了したか否かを判断する(ステップS506)。具体的には、ステップS401で分割したすべての色画素判定ブロックについて、カラーブロックか、あるいはモノクロブロックかの判定が完了したか否かを判断する。色画素判定ブロックの判定が完了した場合(ステップS506:YES)、ステップS507の処理に移行する。一方、色画素判定ブロックの判定が完了していない場合(ステップS506:NO)、色画素判定ブロックの判定が完了していない他の色画素判定ブロックについてステップS503の処理に移行する。  Next, it is determined whether or not the determination of the color pixel determination block is completed (step S506). Specifically, it is determined whether or not all color pixel determination blocks divided in step S401 have been determined as color blocks or monochrome blocks. When the determination of the color pixel determination block is completed (step S506: YES), the process proceeds to step S507. On the other hand, when the determination of the color pixel determination block is not completed (step S506: NO), the process proceeds to the process of step S503 for other color pixel determination blocks for which the determination of the color pixel determination block is not completed.

次に、カラーブロック数とカラーブロック数閾値とを比較する(ステップS507)。具体的には、画像内のカラーブロック数を算出し、カラーブロック数閾値と比較する。カラーブロック数がカラーブロック数閾値以上の場合(ステップS506:YES)、原稿をカラー原稿と判定する(ステップS508)。一方、カラーブロック数がカラーブロック数閾値未満の場合(ステップS507:NO)、原稿をモノクロ原稿と判定する(ステップS509)。  Next, the number of color blocks is compared with the color block number threshold value (step S507). Specifically, the number of color blocks in the image is calculated and compared with a color block number threshold. If the number of color blocks is equal to or greater than the color block number threshold (step S506: YES), the document is determined to be a color document (step S508). On the other hand, if the number of color blocks is less than the color block number threshold value (step S507: NO), the document is determined to be a monochrome document (step S509).

以上のとおり、本実施形態は第1の実施形態の効果に加えて以下の効果を奏する。  As described above, this embodiment has the following effects in addition to the effects of the first embodiment.

本実施形態の画像処理方法、画像読取装置20、画像処理プログラムによれば、まず、色画素判定ブロックがカラーであるかモノクロかであるかを判定し、その結果に基づいて原稿がカラーであるかモノクロであるかを判定するので、カラーモノクロ判定の信頼性を高めることができる。  According to the image processing method, the image reading apparatus 20, and the image processing program of this embodiment, first, it is determined whether the color pixel determination block is color or monochrome, and based on the result, the document is color. Therefore, it is possible to improve the reliability of color / monochrome determination.

(第3の実施形態)
第1および第2の実施形態では、画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してモノクロと判定されやすくなるように、カラーモノクロ判定用パラメーターを設定し、カラーモノクロ判定を実施する場合について説明した。第3の実施形態では、第1または第2の実施形態のカラーモノクロ判定処理に加えて、画像内の色ずれが生じる領域では、色ずれの大きさに応じて色ずれ補正用パラメーターを設定して、色ずれ補正処理を実施する場合について説明する。
(Third embodiment)
In the first and second embodiments, the color / monochrome determination parameter is set so that a region where color misregistration in an image is likely to be determined as monochrome compared to a region where color misregistration does not occur. The case where the determination is performed has been described. In the third embodiment, in addition to the color / monochrome determination processing of the first or second embodiment, in a region where color misregistration occurs in an image, a parameter for color misregistration correction is set according to the size of the color misregistration. A case where the color misregistration correction process is performed will be described.

図14は、本発明の第3の実施形態における画像処理を説明するための図である。図14に示すとおり、本実施形態では、カラーモノクロ判定処理と平行して色ずれ補正処理が実施される。第1および第2の実施形態で説明したとおり、カラーモノクロ判定処理では、読取り対象となる原稿の画像が入力されると、原稿がカラーであるか、あるいはモノクロであるかについての判定結果が出力される。一方、色ずれ補正処理では、読取り対象となる原稿の画像が入力されると、色ずれ補正された画像が出力される。そして、色ずれ補正された画像は、画像印刷装置30にて画像印刷処理される。この際、画像印刷装置30は、カラーモノクロ判定処理で出力された判定結果を利用して、色ずれ補正された画像を印刷する。  FIG. 14 is a diagram for explaining image processing according to the third embodiment of the present invention. As shown in FIG. 14, in this embodiment, color misregistration correction processing is performed in parallel with the color / monochrome determination processing. As described in the first and second embodiments, in the color / monochrome determination process, when an image of a document to be read is input, a determination result as to whether the document is color or monochrome is output. Is done. On the other hand, in the color misregistration correction process, when an image of a document to be read is input, an image corrected for color misregistration is output. The image that has undergone color misregistration correction is subjected to image printing processing by the image printing apparatus 30. At this time, the image printing apparatus 30 uses the determination result output in the color / monochrome determination process to print the image with the color misregistration corrected.

以下、図15を参照して、本実施形態における画像処理方法の処理手順ついて説明する。図15は、本発明の第3の実施形態における画像処理方法の処理手順ついて説明するためのフローチャートである。なお、本実施形態は、画像内の色ずれが生じる領域では、色ずれの大きさに応じて色ずれ補正用パラメーターを設定して、色ずれ補正処理を実施する構成を除いて第1および第2の実施形態と同じである。以下では、第1および第2の実施形態と同じ構成および処理については説明を省略する。  Hereinafter, the processing procedure of the image processing method in the present embodiment will be described with reference to FIG. FIG. 15 is a flowchart for explaining the processing procedure of the image processing method according to the third embodiment of the present invention. Note that, in the present embodiment, in a region where color misregistration occurs in an image, the first and first excluding configurations in which color misregistration correction parameters are set according to the size of color misregistration and color misregistration correction processing is performed. This is the same as the second embodiment. Hereinafter, description of the same configuration and processing as those in the first and second embodiments will be omitted.

図15において、ステップS601〜ステップS603は、第1の実施形態のステップS101〜ステップS103と同様の処理であるので説明を省略する。  In FIG. 15, steps S601 to S603 are the same processes as steps S101 to S103 of the first embodiment, and a description thereof will be omitted.

ステップS601〜ステップS603を実行したのち、カラーモノクロ判定用パラメーターおよび色ずれ補正用パラメーターを設定する(ステップS604およびステップS605)。カラーモノクロ判定用パラメーターの設定については、第1または第2の実施形態と同様なので説明を省略する。一方、色ずれ補正部224は、画像内の色ずれが生じる領域における色ずれの大きさに応じて少なくとも1つの色ずれ補正用パラメーターを設定する。色ずれ補正用パラメーターを設定する手順については後述する。  After executing Steps S601 to S603, color / monochrome determination parameters and color misregistration correction parameters are set (Steps S604 and S605). The setting of the color / monochrome determination parameter is the same as in the first or second embodiment, and a description thereof will be omitted. On the other hand, the color misregistration correction unit 224 sets at least one color misregistration correction parameter according to the magnitude of color misregistration in a region where color misregistration occurs in the image. The procedure for setting the color misregistration correction parameter will be described later.

次に、カラーモノクロ判定を実施し、色ずれを補正する(ステップS606およびステップS607)。カラーモノクロ判定については、第1または第2の実施形態と同様なので説明を省略する。一方、色ずれ補正部224は、ステップS605で設定した色ずれ補正用パラメーターに基づいて色ずれを補正する。色ずれを補正する手順については後述する。色ずれを補正したのち、処理を終了する。以下、図16を参照して、本実施形態の色ずれ補正方法について説明する。  Next, color / monochrome determination is performed to correct color misregistration (steps S606 and S607). Since the color / monochrome determination is the same as that in the first or second embodiment, the description thereof is omitted. On the other hand, the color misregistration correction unit 224 corrects the color misregistration based on the color misregistration correction parameters set in step S605. The procedure for correcting color misregistration will be described later. After correcting the color misregistration, the process is terminated. Hereinafter, the color misregistration correction method of the present embodiment will be described with reference to FIG.

図16は、本発明の第3の実施形態における色ずれ補正方法の仮想画素について説明するための図である。  FIG. 16 is a diagram for explaining virtual pixels of the color misregistration correction method according to the third embodiment of the present invention.

以下では、ライン間補正部223から入力されたGの入力画像を基準として、Rの入力画像とBの入力画像を補正する場合を説明する。したがって、Gを基準色、RおよびBを補正対象色とする。しかしながら、Rの入力画像を基準として、Gの入力画像とBの入力画像を補正してもよい。また、Bの入力画像を基準として、Rの入力画像とGの入力画像を補正してもよい。  Hereinafter, a case where the R input image and the B input image are corrected based on the G input image input from the interline correction unit 223 will be described. Therefore, G is a reference color, and R and B are correction target colors. However, the G input image and the B input image may be corrected based on the R input image. Alternatively, the R input image and the G input image may be corrected using the B input image as a reference.

また、以下では、補正対象色RおよびBに共通する処理について、Rに対する処理を代表して説明し、Bに対する処理の説明を省略する。  In the following, processing common to the correction target colors R and B will be described on behalf of processing for R, and description of processing for B will be omitted.

色ずれが発生する部分では、イメージセンサーは、(R,G,B)について、相対的にずれた位置を読み取っている。色ずれが1画素以内の範囲であるとすると、色ずれが生じていない場合の画素は、注目画素と隣接画素との間に存在することになる。  In the portion where the color misregistration occurs, the image sensor reads a relatively deviated position with respect to (R, G, B). 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.

そこで、本実施形態では、注目画素を1画素以内の周囲に仮想的にずらした位置に仮想画素を設け、この仮想画素の階調値を算出し、この仮想画素および注目画素からなる仮想画素群の階調値に基づいて色ずれ補正を実施する。その結果、色ずれ部分の(R,G,B)を精度良く一致させることができるので、色ずれを低減することができる。  Therefore, in the present embodiment, a virtual pixel is provided at a position where the target pixel is virtually shifted around within one pixel, a gradation value of the virtual pixel is calculated, and a virtual pixel group including the virtual pixel and the target pixel The color misregistration correction is performed based on the tone value. As a result, (R, G, B) in the color misregistration portion can be matched with high accuracy, and color misregistration can be reduced.

具体的には、図16に示すとおり、注目画素R(X,Y)=r22から主走査方向にKh、副走査方向にKvの距離を隔てた位置(8点)を仮想画素の位置として設定する。そして、8点の仮想画素に注目画素を加えた9画素を仮想画素群とし、仮想画素群の階調値r11,r12,r13,r21,r22,r23,r31,r32,r33を、たとえばバイ・リニア(bi−Linear)補間法で算出する。以下、数式(2)〜(10)を用いて具体的な算出方法を示す。ここで、Kh'=256×Kh、および、Kv'=256×Kvである。  Specifically, as shown in FIG. 16, positions (8 points) separated from the target pixel R (X, Y) = r22 by a distance of Kh in the main scanning direction and Kv in the sub-scanning direction are set as virtual pixel positions. To do. Then, nine pixels obtained by adding the target pixel to the eight virtual pixels are set as a virtual pixel group, and the gradation values r11, r12, r13, r21, r22, r23, r31, r32, r33 of the virtual pixel group are set as, for example, Calculation is performed by a linear (bi-Linear) interpolation method. Hereinafter, a specific calculation method will be described using Equations (2) to (10). Here, Kh ′ = 256 × Kh and Kv ′ = 256 × Kv.

なお、上述した例では、計算精度を向上させるため、KhおよびKvを256倍して固定小数点演算を実行している。しかしながら、より精度を必要とする場合は、たとえば512倍や1024倍にする構成を用いればよい。また、回路規模を削減する場合は、128倍、64倍にする構成を用いればよい。256倍を用いる場合、1画素の0.00390625=1/2256の距離の精度で、Kh、Kvの位置を調整することができる。  In the above-described example, in order to improve calculation accuracy, Kh and Kv are multiplied by 256, and fixed point arithmetic is executed. However, when more accuracy is required, for example, a configuration with 512 times or 1024 times may be used. In order to reduce the circuit scale, a configuration of 128 times or 64 times may be used. When 256 times is used, the positions of Kh and Kv can be adjusted with an accuracy of a distance of 0.00390906 = 1/2256 of one pixel.

以下、図17〜図19を参照して、色ずれ補正用パラメーターを設定する手順について説明する。図17は本発明の第3の実施形態における色ずれ補正用パラメーターを設定する手順について説明するためのフローチャートであり、図18は本発明の第3の実施形態において、画像をブロックで分割する方法を説明するための図である。また、図19は、本発明の第3の実施形態における隣接画素ウィンドウを説明するための図である。  The procedure for setting the color misregistration correction parameters will be described below with reference to FIGS. FIG. 17 is a flowchart for explaining a procedure for setting a color misregistration correction parameter according to the third embodiment of the present invention. FIG. 18 is a method for dividing an image into blocks according to the third embodiment of the present invention. It is a figure for demonstrating. FIG. 19 is a view for explaining an adjacent pixel window in the third embodiment of the present invention.

図17に示すとおり、まず、ブロックで画像を分割する(ステップS701)。具体的には、色ずれ補正用ブロックサイズで表される大きさの色ずれ補正用ブロックで画像を分割する。たとえば、図18(A)に示すとおり、座標(X1,Y1)、(X1,Y2)、(X1,Y3)を始点とした各々の色ずれ領域について、色画素判定ブロックサイズを色ずれ領域のY方向の長さと同じ長さにして、画像を分割する。  As shown in FIG. 17, first, the image is divided into blocks (step S701). Specifically, the image is divided into color misregistration correction blocks having a size represented by the color misregistration correction block size. For example, as shown in FIG. 18A, the color pixel determination block size is set to the color misregistration area for each color misregistration area starting from coordinates (X1, Y1), (X1, Y2), (X1, Y3). The image is divided into the same length as the length in the Y direction.

また、図18(B)に示すとおり、すべての色ずれ領域のY方向の長さよりも短くなるように色ずれ補正用ブロックサイズを決定し、各々の色ずれ領域をY方向について1つ以上の色ずれ補正用ブロックで分割するようにして画像を分割してもよい。  Further, as shown in FIG. 18B, the color misregistration correction block size is determined so as to be shorter than the length in the Y direction of all the color misregistration areas, and each color misregistration area has one or more in the Y direction. The image may be divided so as to be divided by the color misregistration correction block.

なお、色ずれ補正用ブロックが他の色ずれ領域を跨ぐ場合は、他の色ずれ領域にかかる部分が削除され、元の色ずれ補正用ブロックよりも小さい色ずれ補正用ブロックで色ずれ領域を覆うことになる。  When a color misregistration correction block straddles another color misregistration area, the portion related to the other color misregistration area is deleted, and the color misregistration correction block is smaller than the original color misregistration correction block. Will cover.

次に、再び図17に戻り、色ずれ領域か否かを判断する(ステップS702)。具体的には、ステップS701で分割した色ずれ補正用ブロックについて、色ずれが生じる領域内にあるか否かを判断する。色ずれが生じる領域内に色ずれ補正用ブロックがある場合(ステップS702:YES)、色ずれ補正用パラメーターを設定する(ステップS703)。具体的には、色ずれ補正用パラメーターとして、たとえば第1〜第3の設定を使用する。たとえば、小さい色ずれが発生する領域に対して第1の設定を使用し、中程度の色ずれが発生する領域に対して第2の設定を使用し、大きい色ずれが発生する領域に対して第3の設定を使用する。一方、色ずれが生じる領域内に色ずれ補正用ブロックがない場合(ステップS702:NO)、ステップS704の処理に移行する。  Next, returning to FIG. 17 again, it is determined whether or not the region is a color misregistration region (step S702). Specifically, it is determined whether or not the color misregistration correction block divided in step S701 is within an area where color misregistration occurs. When there is a color misregistration correction block in an area where color misregistration occurs (step S702: YES), a color misregistration correction parameter is set (step S703). Specifically, for example, the first to third settings are used as the color misregistration correction parameters. For example, the first setting is used for an area where a small color shift occurs, the second setting is used for an area where a medium color shift occurs, and the area where a large color shift occurs. Use the third setting. On the other hand, when there is no color misregistration correction block in the region where the color misregistration occurs (step S702: NO), the process proceeds to step S704.

次に、色ずれ補正用パラメーター設定が完了したか否かを判断する(ステップS704)。具体的には、画像内のすべての色ずれ補正用ブロックについて色ずれ補正用パラメーターの設定が完了したか否かを判断する。なお、色ずれ補正用パラメーターを設定する画像領域は操作部230を通じてユーザーが設定することもできる。色ずれ補正用パラメーターの設定が完了した場合(ステップS704:YES)は、図15に示すフローチャートのステップS607の処理に移行する。  Next, it is determined whether or not the color misregistration correction parameter setting has been completed (step S704). Specifically, it is determined whether or not the color misregistration correction parameters have been set for all the color misregistration correction blocks in the image. Note that the image area for setting the color misregistration correction parameter can also be set by the user through the operation unit 230. When the setting of the color misregistration correction parameter is completed (step S704: YES), the process proceeds to step S607 in the flowchart shown in FIG.

一方、色ずれ補正用パラメーターの設定が完了していない場合(ステップS704:NO)は、色ずれ補正用パラメーター設定が完了していない他の色ずれ補正用ブロックについて、ステップS702の処理に移行する。以下、本実施形態における色ずれ補正用パラメーターについて説明する。  On the other hand, if the setting of the color misregistration correction parameter is not completed (step S704: NO), the process proceeds to step S702 for another color misregistration correction block for which the color misregistration correction parameter setting is not completed. . Hereinafter, parameters for color misregistration correction in the present embodiment will be described.

本実施形態では、注目画素と仮想画素との間の距離KhおよびKv(以下、「距離KhおよびKv」と略記する)、仮想画素の補間方法、および隣接画素ウィンドウパターンを色ずれ補正用パラメーターとして使用することができる。しかしながら、色ずれ補正用パラメーターとしては、これらのパラメーターに限定されず、色ずれ補正に関連する他のパラメーターを使用してもよい。  In this embodiment, distances Kh and Kv (hereinafter abbreviated as “distances Kh and Kv”) between the target pixel and the virtual pixel, a virtual pixel interpolation method, and an adjacent pixel window pattern are used as color misregistration correction parameters. Can be used. However, the color misregistration correction parameters are not limited to these parameters, and other parameters related to color misregistration correction may be used.

距離KhおよびKvは、色ずれの大きさに応じて設定される。色ずれが大きければ大きいほど、注目画素からのずれが大きいと考えられるので、大きい色ずれが生じる領域では、小さい色ずれが生じる領域と比べて距離KhおよびKvを大きく設定する。本実施形態では、色ずれの大きさに応じて第1〜第3の設定の距離KhおよびKvを使用する。第2の設定の距離KhおよびKvは、第1の設定の距離KhおよびKvと比較して、色ずれを強く補正するように調整されている。また、第3の設定の距離KhおよびKvは、第2の設定の距離KhおよびKvと比較して、色ずれを強く補正するように調整されている。なお、RとBとでは色ずれが異なる可能性があるため、距離KhおよびKvの値は、R、Bについて別々に設定できることが好ましい。  The distances Kh and Kv are set according to the magnitude of color misregistration. It is considered that the larger the color shift is, the larger the shift from the target pixel is. Therefore, in the region where the large color shift occurs, the distances Kh and Kv are set larger than the region where the small color shift occurs. In the present embodiment, the first to third set distances Kh and Kv are used in accordance with the magnitude of color misregistration. The second set distances Kh and Kv are adjusted so as to strongly correct the color misregistration as compared with the first set distances Kh and Kv. The third setting distances Kh and Kv are adjusted so as to strongly correct the color misregistration compared to the second setting distances Kh and Kv. In addition, since the color shift may be different between R and B, it is preferable that the values of the distances Kh and Kv can be set separately for R and B.

また、仮想画素の補間方法は、色ずれの大きさに応じて切り替えて使用されうる。本実施形態では、バイ・リニア補間法、最近隣補間法などの公知の補間方法を使用することができる。たとえば、大きい色ずれが生じる領域では、第2および第3の設定の補間方法としてバイ・リニア補間法を使用し、小さい色ずれが生じる領域では、第1の設定の補間方法として最近隣補間法を使用することができる。  Also, the virtual pixel interpolation method can be used by switching according to the size of the color shift. In the present embodiment, a known interpolation method such as a bilinear interpolation method or a nearest neighbor interpolation method can be used. For example, in a region where a large color shift occurs, the bilinear interpolation method is used as the second and third setting interpolation methods. In a region where a small color shift occurs, the nearest neighbor interpolation method is used as the first setting interpolation method. Can be used.

また、隣接画素ウィンドウパターンは、色ずれの方向に応じて設定することができる。たとえば、画像の主走査方向および副走査方向についてどちらの方向に対しても色ずれが生じる領域である場合、図19(A)に示す隣接画素ウィンドウを設定する。図19(A)に示す隣接画素ウィンドウは、注目画素R(X,Y)と、これと隣接する8画素(隣接画素R(X−1,Y−1)〜R(X+1,Y+1)を合わせた9画素に対応する隣接画素ウィンドウパターンを有する。  The adjacent pixel window pattern can be set according to the direction of color shift. For example, in the case where the color misregistration occurs in both the main scanning direction and the sub-scanning direction of the image, the adjacent pixel window shown in FIG. 19A is set. In the adjacent pixel window shown in FIG. 19A, the target pixel R (X, Y) is combined with the 8 pixels adjacent thereto (adjacent pixels R (X-1, Y-1) to R (X + 1, Y + 1)). And an adjacent pixel window pattern corresponding to 9 pixels.

また、画像の主走査方向のみについて色ずれが生じる領域である場合、図19(B)に示す隣接画素ウィンドウを設定する。図19(B)に示す隣接画素ウィンドウは、注目画素および当該注目画素と主走査方向に隣接する画素に対応する隣接画素ウィンドウパターンを有する。仮想画素は、注目画素から主走査方向にKh隔てた位置(2箇所)に設けられている。この場合、主走査方向のみの色ずれ補正を実施することができる。  Further, in the case where the color misregistration occurs only in the main scanning direction of the image, an adjacent pixel window shown in FIG. 19B is set. The adjacent pixel window shown in FIG. 19B has an adjacent pixel window pattern corresponding to a target pixel and a pixel adjacent to the target pixel in the main scanning direction. The virtual pixels are provided at positions (two places) separated from the target pixel by Kh in the main scanning direction. In this case, color misregistration correction can be performed only in the main scanning direction.

また、画像の副走査方向のみについて色ずれが生じる色ずれ領域である場合、図19(C)に示す隣接画素ウィンドウを設定する。図19(C)に示す隣接画素ウィンドウは、注目画素および当該注目画素と副走査方向に隣接する画素に対応する隣接画素ウィンドウパターンを有する。仮想画素は、注目画素から副走査方向にKv隔てた位置(2箇所)に設けられている。この場合、副走査方向のみの色ずれ補正を実施することができる。  In the case of a color misregistration region where color misregistration occurs only in the sub-scanning direction of the image, an adjacent pixel window shown in FIG. 19C is set. The adjacent pixel window shown in FIG. 19C has an adjacent pixel window pattern corresponding to a target pixel and a pixel adjacent to the target pixel in the sub-scanning direction. The virtual pixels are provided at positions (two places) separated from the target pixel by Kv in the sub-scanning direction. In this case, color misregistration correction can be performed only in the sub-scanning direction.

以下、図20および図21を参照して、色ずれ補正の手順について説明する。図20は図15に示すフローチャートにおける色ずれ補正を説明するためのフローチャートであり、図21は図20に示すフローチャートにおける色ずれ補正処理(R)を説明するためのフローチャートである。  Hereinafter, the procedure of color misregistration correction will be described with reference to FIGS. FIG. 20 is a flowchart for explaining the color misregistration correction in the flowchart shown in FIG. 15, and FIG. 21 is a flowchart for explaining the color misregistration correction processing (R) in the flowchart shown in FIG.

以下の説明では、補正対象とする注目画素の座標を(X,Y)で表す。ここで、Xは主走査方向の座標を表し、Yは副走査方向の座標を表す。また、注目画素における補正前のRの階調値をR(X,Y)で表す。同様に、注目画素における補正前のGの階調値をG(X,Y)で表し、注目画素における補正前のBの階調値B(X,Y)で表す。ここで、階調値は、イメージセンサーに入力された輝度の物理量に相関する。また、注目画素における色ずれ補正部224の出力結果を、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 is represented by R (X, Y). Similarly, the G gradation value before correction at the pixel of interest is represented by G (X, Y), and the B gradation value B (X, Y) of the pixel of interest before correction is represented. Here, the gradation value correlates with a physical quantity of luminance input to the image sensor. In addition, the output result of the color misregistration correction unit 224 at the target pixel is expressed as Rout (X, Y), Gout (X, Y), Bout (X, Y).

本実施形態では、色ずれ補正部224は、(R,G,B)の各入力画像のそれぞれについて、注目画素(X,Y)を順次移動させながら各画素に対して、図20に示す色ずれ補正を実施する。  In the present embodiment, the color misregistration correction unit 224 performs the color shown in FIG. 20 for each pixel while sequentially moving the target pixel (X, Y) for each input image of (R, G, B). Deviation correction is performed.

図20に示すとおり、(R,G,B)のうち、Rの各画素について色ずれ補正処理(R)を実行する(ステップS801)。一方、Gの各画素については、色ずれ補正処理を実行せずにそのままG(X,Y)をGout(X,Y)として出力する処理を実行する(ステップS802)。また、Bの各画素についても色ずれ補正処理(B)を実行する(ステップS803)。  As shown in FIG. 20, a color misregistration correction process (R) is executed for each pixel of R among (R, G, B) (step S801). On the other hand, for each pixel of G, a process of outputting G (X, Y) as Gout (X, Y) as it is without executing the color misregistration correction process is executed (step S802). Also, the color misregistration correction process (B) is executed for each pixel of B (step S803).

以下、図21を参照して、本実施形態における色ずれ補正処理を説明する。なお、色ずれ補正処理(B)の処理内容は、色ずれ補正処理(R)の処理内容と同一なので、以下では色ずれ補正処理(R)についてのみ説明する。  Hereinafter, the color misregistration correction processing in the present embodiment will be described with reference to FIG. Since the processing content of the color misregistration correction process (B) is the same as the processing content of the color misregistration correction process (R), only the color misregistration correction process (R) will be described below.

図21に示すとおり、まず、隣接画素ウィンドウを生成する(ステップS901)。具体的には、画像の主走査方向および副走査方向について、色ずれが生じる方向に応じて設定された隣接画素ウィンドウを生成する。  As shown in FIG. 21, first, an adjacent pixel window is generated (step S901). Specifically, an adjacent pixel window set according to the direction in which color misregistration occurs in the main scanning direction and the sub-scanning direction of the image is generated.

次に、仮想画素の階調値を算出する(ステップS902)。具体的には、注目画素と隣接画素の間に仮想画素を設け、ステップS901で生成した隣接画素ウィンドウを適用して、仮想画素の階調値を上記の数式(2)〜(10)に基づいて算出する。  Next, the gradation value of the virtual pixel is calculated (step S902). Specifically, a virtual pixel is provided between the target pixel and the adjacent pixel, and the adjacent pixel window generated in step S901 is applied, and the gradation value of the virtual pixel is based on the above formulas (2) to (10). To calculate.

次に、仮想画素群の階調値の最大値Rmaxを算出する(ステップS903)。具体的には、Rの仮想画素群の階調値(r11〜r33)の最大値Rmaxを算出する。  Next, the maximum tone value Rmax of the virtual pixel group is calculated (step S903). Specifically, the maximum value Rmax of the gradation values (r11 to r33) of the R virtual pixel group is calculated.

次に、最大値Rmaxと注目画素のGの階調値G(X,Y)とを比較する(ステップS904)。比較の結果、Rmax<G(X,Y)である場合(ステップS904:YES)、RmaxをRの補正結果Rout(X、Y)として出力する(ステップS909)。Rmaxは、仮想画素の中で最もG(X,Y)に近い値である。そして、図15に戻り、処理を終了する。  Next, the maximum value Rmax is compared with the G gradation value G (X, Y) of the target pixel (step S904). If Rmax <G (X, Y) as a result of the comparison (step S904: YES), Rmax is output as the R correction result Rout (X, Y) (step S909). Rmax is a value closest to G (X, Y) among the virtual pixels. Then, returning to FIG. 15, the process is terminated.

一方、Rmax<G(X,Y)ではない、すなわち、Rmax≧G(X,Y)である場合(ステップS904:NO)、仮想画素群の階調値の最小値Rminを算出する(ステップS905)。具体的には、Rの仮想画素群の階調値(r11〜r33)の最小値Rminを算出する。  On the other hand, if Rmax <G (X, Y) is not satisfied, that is, if Rmax ≧ G (X, Y) (step S904: NO), the minimum tone value Rmin of the virtual pixel group is calculated (step S905). ). Specifically, the minimum value Rmin of the gradation values (r11 to r33) of the R virtual pixel group is calculated.

次に、最小値Rminと注目画素のGの階調値G(X,Y)とを比較する(ステップS906)。比較の結果、Rmin>G(X,Y)である場合(ステップS906:YES)、RminをRの補正結果Rout(X、Y)として出力する(ステップS907)。Rminは、仮想画素のなかで最もG(X,Y)に近い値である。  Next, the minimum value Rmin is compared with the gradation value G (X, Y) of G of the target pixel (step S906). If Rmin> G (X, Y) as a result of the comparison (step S906: YES), Rmin is output as the R correction result Rout (X, Y) (step S907). Rmin is a value closest to G (X, Y) among the virtual pixels.

一方、Rmin>G(X,Y)ではない、すなわち、Rmax≧G(X,Y)≧Rminである場合(ステップS906:NO)、G(X,Y)をRの補正結果Rout(X,Y)として出力する(ステップS908)。  On the other hand, if Rmin> G (X, Y) is not satisfied, that is, if Rmax ≧ G (X, Y) ≧ Rmin (step S906: NO), G (X, Y) is changed to R correction result Rout (X, Y). (Y) (step S908).

以上のとおり、本実施形態は、第1および第2の実施形態の効果に加えて以下の効果を奏する。  As described above, this embodiment has the following effects in addition to the effects of the first and second embodiments.

本実施形態の画像処理方法、画像読取装置20、画像処理プログラムによれば、色ずれの大きさに応じて色ずれ補正用パラメーターを設定するので、色ずれ部分の(R,G,B)を精度良く一致させることができる。その結果、原稿がカラーであるか、あるいはモノクロであるかを精度よく判定できるだけではなく、原稿の色ずれを補正することもできる。  According to the image processing method, the image reading apparatus 20, and the image processing program of the present embodiment, the color misregistration correction parameters are set according to the size of the color misregistration, so (R, G, B) of the color misregistration portion is set. It can be matched with high accuracy. As a result, it is possible not only to accurately determine whether the document is color or monochrome, but also to correct color misregistration of the document.

以上のとおり、実施の形態において、本発明の画像処理方法、画像読取装置、および画像処理プログラムを説明した。しかしながら、本発明は、その技術思想の範囲内において当業者が適宜に追加、変形、および省略することができることはいうまでもない。  As described above, in the embodiments, the image processing method, the image reading apparatus, and the image processing program of the present invention have been described. However, it goes without saying that the present invention can be appropriately added, modified, and omitted by those skilled in the art within the scope of the technical idea.

たとえば、第1〜第3の実施形態では、ラダーチャートが描かれたモノクロ原稿を読取ることにより色ずれ情報を取得することについて説明した。しかしながら、色ずれ情報を別の方法で取得して予め制御部の記憶部に記憶させておいてもよい。  For example, in the first to third embodiments, it has been described that the color misregistration information is acquired by reading a monochrome document on which a ladder chart is drawn. However, the color misregistration information may be acquired by another method and stored in advance in the storage unit of the control unit.

また、第1〜第3の実施形態では、副走査方向について複数の色ずれ領域に画像データを分割することを説明した。しかしながら、主走査方向についても画像データを複数の色ずれ領域に分割することもできる。  In the first to third embodiments, the image data is divided into a plurality of color misregistration regions in the sub-scanning direction. However, the image data can also be divided into a plurality of color misregistration regions in the main scanning direction.

また、本発明の画像読取装置は、画像形成システムの一部としての画像読取装置だけではなく、たとえばスキャナ単体に適用することもできる。また、ファクシミリにおいて紙に出力せずにメモリにデータを格納する場合にも適用できる。  Further, the image reading apparatus of the present invention can be applied not only to an image reading apparatus as a part of an image forming system but also to a scanner alone, for example. Further, the present invention can be applied to a case where data is stored in a memory without being output on paper in a facsimile.

1 画像形成システム、
10 原稿供給装置、
20 画像読取装置、
30 画像印刷装置、
200 制御部、
201 CPU、
202 記憶部、
203 専用ビデオI/F部、
204 通信I/F部、
210 画像読取部、
220 画像処理部、
230 操作部、
240 表示部。
1 image forming system,
10 Document feeder,
20 image reading device,
30 Image printing device,
200 control unit,
201 CPU,
202 storage unit,
203 Dedicated video I / F part,
204 Communication I / F part,
210 Image reading unit,
220 image processing unit,
230 operation unit,
240 display part.

Claims (19)

Translated fromJapanese
原稿を光学的に読取り、複数色に色分解された画像を取得するステップ(a)と、
前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定するステップ(b)と、
前記ステップ(b)で設定したカラーモノクロ判定用パラメーターを用いて、前記原稿がカラーであるかモノクロであるかを判定するステップ(c)と、を有し、
前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、
前記ステップ(b)は、
前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定するステップと、
前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターサイズを設定し、前記黒画素周辺フィルターサイズの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識するステップと、を有し
前記黒画素周辺フィルターサイズは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域において、より多くの周辺画素に前記黒画素周辺フィルターがかけられるように設定される、画像処理方法。
A step (a) of optically reading a document and obtaining an image separated into a plurality of colors;
(B) setting aplurality of color / monochrome determination parameters in a region where color misregistration occurs in the image so that it is easier to determine monochrome than color compared to a region where color misregistration does not occur;
Using the color monochrome determination parameters set in the step (b), the documentis closed in step (c) determines whether a monochrome or a color,a,
The region where color misregistration occurs in the image includes regions where the degree of color misregistration is different,
The step (b)
A saturation reference table is set as one of the color / monochrome determination parameters, the brightness and saturation of each pixel of the image are calculated, and each pixel of the image is determined by referring to the saturation reference table. Determining whether the pixel is a color pixel or a black pixel;
A black pixel peripheral filter size is set as one of the color / monochrome determination parameters, and the black pixel peripheral filter of the black pixel peripheral filter size is set to determine whether each pixel of the image is a color pixel or a black pixel. When the filtering process is applied to the determination result and there is at least one black pixel in the filtering process range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a black pixel, Recognizing the pixel of interest of the black pixel peripheral filter as a color pixel when there is no black pixel in the filtering processing range of the black pixel peripheral filter ,
The black pixel peripheral filter size is set so that the black pixel peripheral filter is applied to a larger number of peripheral pixels in a region where a large color shift occurs compared to a region where a small color shift occurs. .
原稿を光学的に読取り、複数色に色分解された画像を取得するステップ(a)と、
前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定するステップ(b)と、
前記ステップ(b)で設定したカラーモノクロ判定用パラメーターを用いて、前記原稿がカラーであるかモノクロであるかを判定するステップ(c)と、を有し、
前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、
前記ステップ(b)は、
前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定するステップと、
前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターパターンを設定し、前記黒画素周辺フィルターパターンの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識するステップと、を有し
前記黒画素周辺フィルターパターンは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域において、より多くの周辺画素に前記黒画素周辺フィルターがかけられるように設定される、画像処理方法。
A step (a) of optically reading a document and obtaining an image separated into a plurality of colors;
(B) setting a plurality of color / monochrome determination parameters in a region where color misregistration occurs in the image so that it is easier to determine monochrome than color compared to a region where color misregistration does not occur;
(C) determining whether the original is color or monochrome using the color / monochrome determination parameter set in step (b),
The region where color misregistration occurs in the image includes regions where the degree of color misregistration is different,
The step (b)
A saturation reference table is set as one of the color / monochrome determination parameters, the brightness and saturation of each pixel of the image are calculated, and each pixel of the image is determined by referring to the saturation reference table. Determining whether the pixel is a color pixel or a black pixel;
A black pixel peripheral filter pattern is set as one of the color / monochrome determination parameters, and the black pixel peripheral filter of the black pixel peripheral filter pattern is set to determine whether each pixel of the image is a color pixel or a black pixel. When the filtering process is applied to the determination result and there is at least one black pixel in the filtering process range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a black pixel, Recognizing the pixel of interest of the black pixel peripheral filter as a color pixel when there is no black pixel in the filtering processing range of the black pixel peripheral filter ,
The black pixel peripheral filter pattern is set such that the black pixel peripheral filter is applied to a larger number of peripheral pixels in a region where a large color shift occurs compared to a region where a small color shift occurs. .
前記画像内の色ずれが生じる領域は、大きい色ずれが生じる領域では小さい色ずれが生じる領域と比較してカラーよりもモノクロと判定されやすくなるように、前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする請求項1または2に記載の画像処理方法。Theplurality of color / monochrome determination parameters are setso that an area where color misregistration in the image is large is more easily determined to be monochrome than color in an area where large color misregistration occurs compared to an area where small color misregistration occurs. The image processing method according to claim 1, wherein:所定のモノクロ原稿を光学的に読取り、前記モノクロ原稿のカラー画像を取得するステップ(d)と、
前記モノクロ原稿のカラー画像に生じる色ずれを認識するステップ(e)と、
をさらに有し、
前記ステップ(b)では前記ステップ(e)での色ずれの認識結果に基づいて前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする請求項1〜3のいずれか1項に記載の画像処理方法。
A step (d) of optically reading a predetermined monochrome document and obtaining a color image of the monochrome document;
Recognizing a color shift occurring in the color image of the monochrome original (e);
Further comprising
4. The method according to claim 1, wherein in the step (b), the plurality of color / monochrome determination parameters are set based on a color misregistration recognition result in the step (e) . 5. Image processing method.
前記ステップ(b)において、前記カラーモノクロ判定用パラメーターの1つとして色画素数閾値を設定し、
前記画像を所定の色画素判定ブロックサイズで分割した色画素判定ブロック内における前記色画素の数が前記色画素数閾値以上である場合、前記色画素判定ブロックはカラーブロックであると判定し、前記色画素の数が前記色画素数閾値よりも小さい場合、前記色画素判定ブロックはモノクロブロックであると判定することを特徴とする請求項1〜4のいずれか1項に記載の画像処理方法。
In the step (b), acolor pixel number threshold is set as one of thecolor / monochrome determination parameters,
When the number of the color pixels in the color pixel determination block obtained by dividing the image by a predetermined color pixel determination block size is greater than or equal to the color pixel number threshold, the color pixel determination block is determined to be a color block, and The image processing method accordingto claim 1, wherein when the number of color pixels is smaller than the color pixel number threshold, the color pixel determination block is determined to be a monochrome block .
前記ステップ(c)において、前記カラーブロックの数がカラーブロック数閾値以上である場合、前記原稿はカラーであると判定し、前記カラーブロックの数が前記カラーブロック数閾値よりも小さい場合、前記原稿はモノクロであると判定することを特徴とする請求項5に記載の画像処理方法。In step (c), if the number of color blocks is equal to or greater than a color block number threshold, the document is determined to be in color, and if the number of color blocks is smaller than the color block number threshold, the document The image processing method accordingto claim 5 , wherein the imageis determined to be monochrome . 前記ステップ(c)において、前記色画素の数が所定の閾値以上である場合、前記原稿はカラーであると判定し、前記色画素の数が前記所定の閾値よりも小さい場合、前記原稿はモノクロであると判定することを特徴とする請求項1または2に記載の画像処理方法。In step (c), if the number of color pixels is equal to or greater than a predetermined threshold, the document is determined to be color, and if the number of color pixels is smaller than the predetermined threshold, the document is monochrome. The image processing method accordingto claim 1, wherein the image processing method is determined.原稿を光学的に読取り、複数色に色分解された画像を取得するステップ(a)と、
前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、少なくとも1つのカラーモノクロ判定用パラメーターを設定するステップ(b)と、
前記ステップ(b)で設定したカラーモノクロ判定用パラメーターを用いて、前記原稿がカラーであるかモノクロであるかを判定するステップ(c)と、
前記画像内の色ずれが生じる領域における色ずれの大きさに応じて、少なくとも1つの色ずれ補正用パラメーターを設定するステップ(d)と、
前記色分解されたうちの1色を基準色とし、他の少なくとも1色を補正対象色とし、前記補正対象色の注目画素と当該注目画素に隣接する隣接画素との間に仮想画素を設定するステップ(e)と、
前記色ずれ補正用パラメーターを用いて、前記注目画素の階調値および前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出するステップ(f)と、
前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最大値を超える場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最大値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最小値未満の場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最小値に変換するステップ(g)と、を有する、画像処理方法。
A step (a) of optically reading a document and obtaining an image separated into a plurality of colors;
(B) setting at least one color / monochrome determination parameter in an area where color misregistration occurs in the image so that it is easier to determine monochrome than color compared to an area where no color misregistration occurs;
A step (c) of determining whether the document is color or monochrome using the color / monochrome determination parameter set in step (b);
Setting at least one color misregistration correction parameter in accordance with the magnitude of color misregistration in a region where color misregistration occurs in the image;
One of the color-separated colors is set as a reference color, at least one other color is set as a correction target color, and a virtual pixel is set between a target pixel of the correction target color and an adjacent pixel adjacent to the target pixel. Step (e);
Calculating the gradation value of the virtual pixel based on the gradation value of the target pixel and the gradation value of the adjacent pixel using the color misregistration correction parameter;
When the gradation value of the reference color of the target pixel is not less than the minimum value and not more than the maximum value of the gradation value of the virtual pixel group consisting of the target pixel of the correction target color and the virtual pixel, the target pixel of the correction target color When the gradation value is converted into the gradation value of the reference color and the gradation value of the reference color of the target pixel exceeds the maximum value of the gradation value of the virtual pixel group, the target pixel of the correction target color When the gradation value is converted into the maximum value of the gradation value of the virtual pixel group, and the gradation value of the reference color of the target pixel is less than the minimum value of the gradation value of the virtual pixel group, the correction target color (G) converting the gradation value of the pixel of interest into a minimum gradation value of the virtual pixel group .
原稿を光学的に読取り、複数色に色分解された画像を取得する画像取得手段と、
前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定するカラーモノクロ判定用パラメーター設定手段と、
前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定するカラーモノクロ判定手段と、を有し、
前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、
前記カラーモノクロ判定用パラメーター設定手段は、
前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定し、
前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターサイズを設定し、前記黒画素周辺フィルターサイズの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識し
前記黒画素周辺フィルターサイズは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域において、より多くの周辺画素に黒画素周辺フィルターがかけられるように設定される、画像読取装置
Image acquisition means for optically reading a document and acquiring an image separated into a plurality of colors;
Color / monochrome determination parameter setting means for setting a plurality of color / monochrome determination parameters so that a region where color misregistration occurs in the image is more easily determined to be monochrome than color compared to a region where color misregistration does not occur. When,
Color / monochrome determination means for determining whether the document is color or monochrome using the color / monochrome determination parameter;
The region where color misregistration occurs in the image includes regions where the degree of color misregistration is different,
The color / monochrome determination parameter setting means includes:
A saturation reference table is set as one of the color / monochrome determination parameters, the brightness and saturation of each pixel of the image are calculated, and each pixel of the image is determined by referring to the saturation reference table. Determine whether it is a color pixel or a black pixel,
A black pixel peripheral filter size is set as one of the color / monochrome determination parameters, and the black pixel peripheral filter of the black pixel peripheral filter size is set to determine whether each pixel of the image is a color pixel or a black pixel. When the filtering process is applied to the determination result and there is at least one black pixel in the filtering process range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a black pixel, If there is no black pixel in the filtering process range of the black pixel peripheral filter, the pixel of interest of the black pixel peripheral filter is recognized as acolor pixel ,
The image reading apparatus, wherein the black pixel peripheral filter size is set such that a larger number of peripheral pixels are subjected to a black pixel peripheral filter in a region where a large color shift is generated compared to a region where a small color shift occurs .
原稿を光学的に読取り、複数色に色分解された画像を取得する画像取得手段と、
前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定するカラーモノクロ判定用パラメーター設定手段と、
前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定するカラーモノクロ判定手段と、を有し、
前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、
前記カラーモノクロ判定用パラメーター設定手段は、
前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定し、
前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターパターンを設定し、前記黒画素周辺フィルターパターンの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識し
前記黒画素周辺フィルターパターンは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域において、より多くの周辺画素に黒画素周辺フィルターがかけられるように設定される、画像読取装置
Image acquisition means for optically reading a document and acquiring an image separated into a plurality of colors;
Color / monochrome determination parameter setting means for setting a plurality of color / monochrome determination parameters so that a region where color misregistration occurs in the image is more easily determined to be monochrome than color compared to a region where color misregistration does not occur. When,
Color / monochrome determination means for determining whether the document is color or monochrome using the color / monochrome determination parameter;
The region where color misregistration occurs in the image includes regions where the degree of color misregistration is different,
The color / monochrome determination parameter setting means includes:
A saturation reference table is set as one of the color / monochrome determination parameters, the brightness and saturation of each pixel of the image are calculated, and each pixel of the image is determined by referring to the saturation reference table. Determine whether it is a color pixel or a black pixel,
A black pixel peripheral filter pattern is set as one of the color / monochrome determination parameters, and the black pixel peripheral filter of the black pixel peripheral filter pattern is set to determine whether each pixel of the image is a color pixel or a black pixel. When the filtering process is applied to the determination result and there is at least one black pixel in the filtering process range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a black pixel, If there is no black pixel in the filtering process range of the black pixel peripheral filter, the pixel of interest of the black pixel peripheral filter is recognized as acolor pixel ,
The image reading device, wherein the black pixel peripheral filter pattern is set so that a larger number of peripheral pixels are subjected to a black pixel peripheral filter in a region where a large color shift occurs than in a region where a small color shift occurs .
前記画像内の色ずれが生じる領域は、大きい色ずれが生じる領域では小さい色ずれが生じる領域と比較してカラーよりもモノクロと判定されやすくなるように、前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする請求項9または10に記載の画像読取装置。The plurality of color / monochrome determination parameters are set so that an area where color misregistration in the image is large is more easily determined to be monochrome than color in an area where large color misregistration occurs compared to an area where small color misregistration occurs. The image reading apparatus accordingto claim 9 or 10 , wherein:前記画像取得手段で所定のモノクロ原稿を読取ることにより取得したカラー画像に生じる色ずれを認識する色ずれ認識手段をさらに有し、
前記色ずれの認識結果に基づいて前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする請求項9〜11のいずれか1項に記載の画像読取装置。
A color misregistration recognizing unit for recognizing a color misregistration generated in a color image obtained by reading a predetermined monochrome document by the image obtaining unit;
The image reading apparatus accordingto claim 9, wherein the plurality of color / monochrome determination parameters are set based on a recognition result of the color misregistration .
原稿を光学的に読取り、複数色に色分解された画像を取得する画像取得手段と、
前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、カラーモノクロ判定用パラメーターを設定するカラーモノクロ判定用パラメーター設定手段と、
前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定するカラーモノクロ判定手段と、
前記画像内の色ずれが生じる領域における色ずれの大きさに応じて、少なくとも1つの色ずれ補正用パラメーターを設定する色ずれ補正用パラメーター設定手段と、
前記色分解されたうちの1色を基準色とし、他の少なくとも1色を補正対象色とし、前記補正対象色の注目画素と当該注目画素に隣接する隣接画素との間に仮想画素を設定し、前記色ずれ補正用パラメーターを用いて、前記注目画素の階調値および前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出する階調値算出手段と、
前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最大値を超える場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最大値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最小値未満の場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最小値に変換する変換手段と、を有する、画像読取装置。
Image acquisition means for optically reading a document and acquiring an image separated into a plurality of colors;
Color / monochrome determination parameter setting means for setting a color / monochrome determination parameter so that it is easier to determine monochrome than color in an area where color misregistration occurs in the image compared to an area where no color misregistration occurs.
Color / monochrome determination means for determining whether the document is color or monochrome using the color / monochrome determination parameter;
Color misregistration correction parameter setting means for setting at least one color misregistration correction parameter according to the magnitude of color misregistration in a region where color misregistration occurs in the image;
One of the color-separated colors is set as a reference color, and at least one other color is set as a correction target color, and a virtual pixel is set between a target pixel of the correction target color and an adjacent pixel adjacent to the target pixel. A gradation value calculating means for calculating the gradation value of the virtual pixel based on the gradation value of the target pixel and the gradation value of the adjacent pixel using the color misregistration correction parameter;
When the gradation value of the reference color of the target pixel is not less than the minimum value and not more than the maximum value of the gradation value of the virtual pixel group consisting of the target pixel of the correction target color and the virtual pixel, the target pixel of the correction target color When the gradation value is converted into the gradation value of the reference color and the gradation value of the reference color of the target pixel exceeds the maximum value of the gradation value of the virtual pixel group, the target pixel of the correction target color When the gradation value is converted into the maximum value of the gradation value of the virtual pixel group, and the gradation value of the reference color of the target pixel is less than the minimum value of the gradation value of the virtual pixel group, the correction target color An image reading apparatuscomprising: conversion means for converting a gradation value of a target pixel of the first pixel into a minimum value of the gradation value of the virtual pixel group .
原稿を光学的に読取り、複数色に色分解された画像を取得する手順(a)と、A procedure (a) for optically reading a document and obtaining an image separated into a plurality of colors;
前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定する手順(b)と、A step (b) of setting a plurality of color / monochrome determination parameters so that a region where color misregistration occurs in the image is more easily determined to be monochrome than color compared to a region where color misregistration does not occur;
前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定する手順(c)と、を有し、And (c) determining whether the document is color or monochrome using the color / monochrome determination parameter,
前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、The region where color misregistration occurs in the image includes regions where the degree of color misregistration is different,
前記手順(b)は、The procedure (b)
前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定する手順と、A saturation reference table is set as one of the color / monochrome determination parameters, the brightness and saturation of each pixel of the image are calculated, and each pixel of the image is determined by referring to the saturation reference table. A procedure for determining whether the pixel is a color pixel or a black pixel;
前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターサイズを設定し、前記黒画素周辺フィルターサイズの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識する手順と、を有し、A black pixel peripheral filter size is set as one of the color / monochrome determination parameters, and the black pixel peripheral filter of the black pixel peripheral filter size is set to determine whether each pixel of the image is a color pixel or a black pixel. When the filtering process is applied to the determination result and there is at least one black pixel in the filtering process range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a black pixel, A step of recognizing a target pixel of the black pixel peripheral filter as a color pixel when there is no black pixel in the filtering processing range of the black pixel peripheral filter,
前記黒画素周辺フィルターサイズは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域がより多くの周辺画素に黒画素周辺フィルターがかけられるように設定される、The black pixel peripheral filter size is set such that a region where a large color shift occurs is subjected to a black pixel peripheral filter on more peripheral pixels compared to a region where a small color shift occurs.
コンピューターに実行させるための画像処理プログラム。An image processing program to be executed by a computer.
原稿を光学的に読取り、複数色に色分解された画像を取得する手順(a)と、
前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、複数のカラーモノクロ判定用パラメーターを設定する手順(b)と、
前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定する手順(c)と、を有し、
前記画像内の色ずれが生じる領域は、色ずれの程度が異なる領域を含み、
前記手順(b)は、
前記カラーモノクロ判定用パラメーターの1つとして彩度リファレンステーブルを設定し、前記画像の各々の画素の明度および彩度を算出し、前記彩度リファレンステーブルを参照して、前記画像の各々の画素が色画素であるか黒画素であるかを判定する手順と、
前記カラーモノクロ判定用パラメーターの1つとして黒画素周辺フィルターパターンを設定し、前記黒画素周辺フィルターパターンの黒画素周辺フィルターを、前記画像の各々の画素が色画素であるか黒画素であるかの判定結果に適用してフィルタリング処理を実行し、適用した前記黒画素周辺フィルターのフィルタリング処理範囲に1つでも黒画素がある場合、前記黒画素周辺フィルターの注目画素を黒画素として認識する一方で、前記黒画素周辺フィルターのフィルタリング処理範囲に1つも黒画素がない場合、前記黒画素周辺フィルターの注目画素を色画素として認識する手順と、を有し、
前記黒画素周辺フィルターパターンは、小さい色ずれが生じる領域と比較して、大きい色ずれが生じる領域がより多くの周辺画素に黒画素周辺フィルターがかけられるように設定される
ンピューターに実行させるための画像処理プログラム。
A procedure (a) for optically reading a document and obtaining an image separated into a plurality of colors;
In the region where the color shift in the image occurs as compared to the region where color shift does not occur easily is determined that a monochrome than color, the procedure for setting aplurality of color monochromedetermination parameter (b),
Have a, and steps (c) determining if the original is a monochrome or a color using the color monochromedeterminationparameter,
The region where color misregistration occurs in the image includes regions where the degree of color misregistration is different,
The procedure (b)
A saturation reference table is set as one of the color / monochrome determination parameters, the brightness and saturation of each pixel of the image are calculated, and each pixel of the image is determined by referring to the saturation reference table. A procedure for determining whether the pixel is a color pixel or a black pixel;
A black pixel peripheral filter pattern is set as one of the color / monochrome determination parameters, and the black pixel peripheral filter of the black pixel peripheral filter pattern is set to determine whether each pixel of the image is a color pixel or a black pixel. When the filtering process is applied to the determination result and there is at least one black pixel in the filtering process range of the applied black pixel peripheral filter, the target pixel of the black pixel peripheral filter is recognized as a black pixel, A step of recognizing a target pixel of the black pixel peripheral filter as a color pixel when there is no black pixel in the filtering processing range of the black pixel peripheral filter,
The black pixel peripheral filter pattern is set so that a black pixel peripheral filter is applied to more peripheral pixels in a region where a large color shift occurs compared to a region where a small color shift occurs .
The image processing program to be executed by acomputer.
前記画像内の色ずれが生じる領域は、大きい色ずれが生じる領域では小さい色ずれが生じる領域と比較してカラーよりもモノクロと判定されやすくなるように、前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする請求項15に記載の画像処理プログラム。Region color shift in the imageoccurs, as is likely to be judged as a monochrome than color as compared to the region where small color shift occurs in a region where alarge listening color shift occurs, aplurality of color monochrome determination parameter The image processing program according to claim 15, wherein the image processing program is set. 所定のモノクロ原稿を光学的に読取り、前記モノクロ原稿のカラー画像を取得する手順(d)と、
前記モノクロ原稿のカラー画像に生じる色ずれを認識する手順(e)と、
をさらに有し、
前記手順(b)では前記手順(e)での色ずれの認識結果に基づいて前記複数のカラーモノクロ判定用パラメーターを設定することを特徴とする請求項15または16に記載の画像処理プログラム。
A step (d) of optically reading a predetermined monochrome document and obtaining a color image of the monochrome document;
A procedure (e) for recognizing a color shift occurring in a color image of the monochrome original;
Further comprising
The image processing program according to claim 15 or 16, wherein in the step (b), theplurality of color / monochrome determination parameters are set based on a color misregistration recognition result in the step (e).
原稿を光学的に読取り、複数色に色分解された画像を取得する手順(a)と、
前記画像内の色ずれが生じる領域では、色ずれが生じない領域と比較してカラーよりもモノクロと判定されやすくなるように、カラーモノクロ判定用パラメーターを設定する手順(b)と、
前記カラーモノクロ判定用パラメーターを用いて前記原稿がカラーであるかモノクロであるかを判定する手順(c)と、
前記画像内の色ずれが生じる領域における色ずれの大きさに応じて、少なくとも1つの色ずれ補正用パラメーターを設定する手順()と、
前記色分解されたうちの1色を基準色とし、他の少なくとも1色を補正対象色とし、前記補正対象色の注目画素と当該注目画素に隣接する隣接画素との間に仮想画素を設定する手順()と、
前記色ずれ補正用パラメーターに基づいて、前記注目画素の階調値および前記隣接画素の階調値に基づいて前記仮想画素の階調値を算出する手順()と、
前記注目画素の基準色の階調値が前記補正対象色の注目画素と前記仮想画素からなる仮想画素群の階調値の最小値以上最大値以下である場合、前記補正対象色の注目画素の階調値を前記基準色の階調値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最大値を超える場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最大値に変換し、前記注目画素の基準色の階調値が前記仮想画素群の階調値の最小値未満の場合は、前記補正対象色の注目画素の階調値を前記仮想画素群の階調値の最小値に変換する手順()と、
をコンピューターに実行させるための画像処理プログラム。
A procedure (a) for optically reading a document and obtaining an image separated into a plurality of colors;
(B) a step of setting a color / monochrome determination parameter in an area where color misregistration occurs in the image so that it is easier to determine monochrome than color compared to an area where no color misregistration occurs;
A step (c) of determining whether the original is color or monochrome using the color / monochrome determination parameter;
A procedure (d ) for setting at least one color misregistration correction parameter in accordance with the color misregistration size in a region where the color misregistration occurs in the image;
One of the color-separated colors is set as a reference color, at least one other color is set as a correction target color, and a virtual pixel is set between a target pixel of the correction target color and an adjacent pixel adjacent to the target pixel. Procedure (e ),
A step (f ) of calculating a gradation value of the virtual pixel based on a gradation value of the target pixel and a gradation value of the adjacent pixel based on the color misregistration correction parameter;
When the gradation value of the reference color of the target pixel is not less than the minimum value and not more than the maximum value of the gradation value of the virtual pixel group consisting of the target pixel of the correction target color and the virtual pixel, the target pixel of the correction target color When the gradation value is converted into the gradation value of the reference color and the gradation value of the reference color of the target pixel exceeds the maximum value of the gradation value of the virtual pixel group, the target pixel of the correction target color When the gradation value is converted into the maximum value of the gradation value of the virtual pixel group, and the gradation value of the reference color of the target pixel is less than the minimum value of the gradation value of the virtual pixel group, the correction target color A step (g ) for converting the gradation value of the target pixel of the pixel of interest into the minimum value of the gradation value of the virtual pixel group;
An image processing programfor causing a computer to execute .
請求項14〜18のいずれか1項に記載の画像処理プログラムを記録したコンピューター読み取り可能な記録媒体。Recorded computer-readable recording medium an image processing program according to any one of claims14 to 18.
JP2011209612A2011-09-262011-09-26 Image processing method, image reading apparatus, and image processing programExpired - Fee RelatedJP5884362B2 (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
JP2011209612AJP5884362B2 (en)2011-09-262011-09-26 Image processing method, image reading apparatus, and image processing program

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
JP2011209612AJP5884362B2 (en)2011-09-262011-09-26 Image processing method, image reading apparatus, and image processing program

Publications (2)

Publication NumberPublication Date
JP2013074314A JP2013074314A (en)2013-04-22
JP5884362B2true JP5884362B2 (en)2016-03-15

Family

ID=48478494

Family Applications (1)

Application NumberTitlePriority DateFiling Date
JP2011209612AExpired - Fee RelatedJP5884362B2 (en)2011-09-262011-09-26 Image processing method, image reading apparatus, and image processing program

Country Status (1)

CountryLink
JP (1)JP5884362B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP6390251B2 (en)*2014-08-052018-09-19富士ゼロックス株式会社 Image reading apparatus, image forming apparatus, and program
JP6188656B2 (en)*2014-08-282017-08-30京セラドキュメントソリューションズ株式会社 Image processing device
JP7334458B2 (en)*2019-04-242023-08-29富士フイルムビジネスイノベーション株式会社 Image processing device and image processing program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP3039674B2 (en)*1990-08-032000-05-08キヤノン株式会社 Color image processing equipment
JP2001157051A (en)*1999-11-302001-06-08Canon Inc Image forming apparatus and method
JP4379873B2 (en)*2004-05-282009-12-09株式会社リコー Image processing apparatus, storage medium, image reading apparatus, and image forming apparatus
JP2009260640A (en)*2008-04-162009-11-05Konica Minolta Business Technologies IncImage processor
JP2011023999A (en)*2009-07-162011-02-03Fuji Xerox Co LtdImage reading apparatus

Also Published As

Publication numberPublication date
JP2013074314A (en)2013-04-22

Similar Documents

PublicationPublication DateTitle
US9094642B2 (en)Color image processing apparatus and method for processing color image
JP6566794B2 (en) Image processing apparatus, image processing method, and program
US10015368B2 (en)Calibration system, calibration method, and image forming apparatus
JP5223770B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP2017038242A (en)Printer
JP2016032270A (en) Image processing apparatus and image processing program
CN102891944B (en)Image processing apparatus, image processing system and image processing method
CN104427182B (en)Image forming apparatus and image forming method
JP5884362B2 (en) Image processing method, image reading apparatus, and image processing program
JP5955822B2 (en) Color conversion apparatus, image forming apparatus, color conversion method, and color conversion program
JP7154951B2 (en) Image processing device, image processing method, and program
JP7034742B2 (en) Image forming device, its method and program
JP7003568B2 (en) Image processing device, image processing method
JP2010074627A (en)Image processor and method of processing image
US20170346993A1 (en)Image Forming Apparatus, Image Forming Method, and Image Forming System That Ensure Reduction of Color Unevenness and Recording Medium Therefor
JP2018082360A (en)Image processing apparatus, image processing method, and program for creating image processing parameter
JP5440141B2 (en) Image forming apparatus
JP2018182464A (en) Image processing apparatus and program
JP2013222983A (en)Image processing system, image processing method, and computer program
JP2018207258A (en)Image processing apparatus and program
JP2006011754A (en) Image processing apparatus and image processing method
JP2010263313A (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP2017209961A (en)Image processing device, and computer program
JP5005734B2 (en) Image processing apparatus, image processing method, and image processing program
JP2013115730A (en)Image processing apparatus, image processing method and program

Legal Events

DateCodeTitleDescription
A711Notification of change in applicant

Free format text:JAPANESE INTERMEDIATE CODE: A712

Effective date:20130416

A621Written request for application examination

Free format text:JAPANESE INTERMEDIATE CODE: A621

Effective date:20140616

A977Report on retrieval

Free format text:JAPANESE INTERMEDIATE CODE: A971007

Effective date:20150528

A131Notification of reasons for refusal

Free format text:JAPANESE INTERMEDIATE CODE: A131

Effective date:20150630

A521Written amendment

Free format text:JAPANESE INTERMEDIATE CODE: A523

Effective date:20150805

TRDDDecision of grant or rejection written
A01Written decision to grant a patent or to grant a registration (utility model)

Free format text:JAPANESE INTERMEDIATE CODE: A01

Effective date:20160112

A61First payment of annual fees (during grant procedure)

Free format text:JAPANESE INTERMEDIATE CODE: A61

Effective date:20160125

R150Certificate of patent or registration of utility model

Ref document number:5884362

Country of ref document:JP

Free format text:JAPANESE INTERMEDIATE CODE: R150

LAPSCancellation because of no payment of annual fees

[8]ページ先頭

©2009-2025 Movatter.jp