JP2008271488A - Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium - Google Patents
Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium Download PDFInfo
- Publication number
- JP2008271488A JP2008271488A JP2007236706A JP2007236706A JP2008271488A JP 2008271488 A JP2008271488 A JP 2008271488A JP 2007236706 A JP2007236706 A JP 2007236706A JP 2007236706 A JP2007236706 A JP 2007236706A JP 2008271488 A JP2008271488 A JP 2008271488A
- Authority
- JP
- Japan
- Prior art keywords
- image
- attribute
- pixels
- line
- calculated
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
Description
本発明は、ライン単位で画素の属性を判別して画像処理を行う画像処理方法、画像処理装置、画像形成装置、画像読取装置、コンピュータプログラム、及び記録媒体に関する。 The present invention relates to an image processing method, an image processing apparatus, an image forming apparatus, an image reading apparatus, a computer program, and a recording medium that perform image processing by determining pixel attributes in units of lines.
デジタル複写機やデジタル複合機などの画像形成装置において、読み込んだ個々の原稿に適した画像処理方法で画像処理を行うために、これらの原稿がカラー原稿か白黒原稿かを判定するオートカラーセレクト処理(以下、ACS処理(ACS : Auto Color Selection )と記載)を行うことがある(例えば、特許文献1を参照)。 In an image forming apparatus such as a digital copying machine or a digital multi-function peripheral, an automatic color selection process is performed to determine whether these originals are color originals or monochrome originals in order to perform image processing using an image processing method suitable for each read original. (Hereinafter, it is described as ACS processing (ACS: Auto Color Selection)) (see, for example, Patent Document 1).
従来では、各画素毎にカラー画素であるかモノクロ画素であるかを判別し、与えられる画素順で所定数以上の連続するカラー画素の存在が検知されると、この連続カラー画素分をカラーブロックと認識し、1ライン中に所定数以上のカラーブロックが存在していれば、そのラインをカラーラインとして計数する。そして、原稿中のカラーラインが所定数存在していればカラー画像と判断し、そうでない場合はモノクロ画像と判断していた。 Conventionally, it is determined whether each pixel is a color pixel or a monochrome pixel, and when the presence of a predetermined number or more of continuous color pixels in the given pixel order is detected, the continuous color pixel portion is detected as a color block. If a predetermined number or more of color blocks exist in one line, the line is counted as a color line. If a predetermined number of color lines exist in the document, it is determined as a color image. Otherwise, it is determined as a monochrome image.
このようなACS処理は、全領域に対して行う場合と、読み込まれた原稿の部分領域に対して行う場合とで結果が異なることがあるため、出力する画像領域に相当する有効画像領域に対してのみACS処理を行うことが望ましい。 Such an ACS process may be performed differently depending on whether it is performed on the entire area or on a partial area of the read document. Therefore, the ACS process is performed on the effective image area corresponding to the output image area. It is desirable to perform ACS processing only.
図29及び図30は有効画像領域に依存して判定結果が異なる例を説明する説明図である。図29は白黒画素とカラー画素とを有する原稿に対して、原稿全体にACS処理を行う場合の例である。原稿全体の画素数に対して判定基準以上の割合でカラー画素を有しており、カラー原稿と判定される。図30に示した原稿は、図29に示した原稿と同一の原稿であるが、左半分の領域のみに対してACS処理を行う場合の例である。原稿全体としてはカラー画素を有しているが、有効画像領域にはカラー画素が判定基準以上の割合で存在していないので、白黒原稿と判定される。 29 and 30 are explanatory diagrams for explaining an example in which the determination result differs depending on the effective image area. FIG. 29 shows an example in which ACS processing is performed on the entire document with respect to a document having monochrome pixels and color pixels. It has color pixels at a rate equal to or greater than the criterion for the number of pixels of the entire document, and is determined to be a color document. The document shown in FIG. 30 is the same as the document shown in FIG. 29, but is an example in the case where ACS processing is performed only on the left half area. Although the entire document has color pixels, since there are no color pixels in the effective image area at a rate equal to or higher than the determination reference, the document is determined to be a monochrome document.
また、同様に出力する有効画像領域に対してのみ行う画像認識処理として原稿判定処理、下地色認識処理がある。スキャナから読み込んだ原稿に対して原稿判定処理を行う場合、プレスキャンを行い、有効画像領域のライン画像データに対して、立ち上がり及び立ち下がりまでの高濃度部分の画素数の差の平均値と、立ち下がりから立ち上がりまでの低濃度部分の画素数を求め、隣り合う低濃度部分の画素数の差の平均値の和という特徴量を求めることで文字画素であるかどうかを判定し、領域内の全画素数に対して文字画素がある閾値以上の割合で存在すれば文字原稿、そうでなければ写真原稿などとして認識する方法がある(例えば、特許文献2を参照)。
しかしながら、特許文献1に記載されたACS判定処理、特許文献2に記載された原稿判別処理は何れも原稿台に原稿を置き、原稿全体の画像データを読み取ってACS判定や原稿種別の判定を行うことを想定した処理である。例えば、原稿自動送り装置によって原稿をライン単位で読み取って処理を行う場合を考えると、原稿の有効画像領域は、原稿の後端を検知したときに確定され、一度原稿全体を読み込み有効画像領域が確定した後にならないとACS処理や原稿種別の判別を開始することができないという問題がある。
However, the ACS determination process described in
図31は原稿自動送り装置によって原稿をライン単位で読み取る場合の処理を説明する説明図である。原稿が自動原稿送り装置を備えたラインスキャナにより読み込まれる場合、スキャンの副走査方向に対して、後端から特定の画素幅y分の領域CDEFを有効画像領域とするためには、後端の位置及び特定画素幅yが必要である。yは出力画像サイズや倍率などから計算されるため、原稿を読み込む以前に確定することができる。しかし、領域CDEFはラインスキャナの原稿端検知センサにより原稿の後端が検知されるまで確定できない。すなわち、少なくとも後端が確定するまでに読み込んだデータをメモリなどに格納しておき、確定した後にメモリから画像データを再度読み出して有効画像領域のみに対してACS処理を行う必要があるという問題点を有している。 FIG. 31 is an explanatory diagram for explaining processing when a document is read line by line by the automatic document feeder. When a document is read by a line scanner equipped with an automatic document feeder, in order to make a region CDEF corresponding to a specific pixel width y from the rear end in the sub-scanning direction of the scan as an effective image region, A position and a specific pixel width y are required. Since y is calculated from the output image size, magnification, etc., it can be determined before reading the document. However, the area CDEF cannot be determined until the trailing edge of the document is detected by the document edge detection sensor of the line scanner. That is, it is necessary to store the read data at least until the rear end is determined in a memory or the like, read the image data from the memory again after the determination, and perform ACS processing only on the effective image area. have.
本発明は斯かる事情に鑑みてなされたものであり、設定した領域の直前のライン及び後端のラインの夫々から算出した特徴量の差分を算出し、算出した差分に基づいて領域の属性を判別し、判別結果に応じた処理を行う構成とすることにより、プレスキャンや画像データをメモリに蓄積することなく認識処理を開始することができる画像処理方法、画像処理装置、画像形成装置、画像読取装置、コンピュータプログラム、該コンピュータプログラムを記録した記録媒体を提供することを目的とする。 The present invention has been made in view of such circumstances, and calculates a difference between feature amounts calculated from a line immediately before a set region and a line at the rear end of the set region, and determines an attribute of the region based on the calculated difference. An image processing method, an image processing apparatus, an image forming apparatus, and an image that can start recognition processing without discriminating and performing processing according to the determination result without accumulating pre-scan or image data in a memory. An object is to provide a reading device, a computer program, and a recording medium on which the computer program is recorded.
本発明に係る画像処理方法は、画像の属性を判別し、判別結果に応じた処理を行う画像処理方法において、判別対象の画像を複数の画素からなるライン毎に順次読み込み、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別して、属性の判別がなされた画素を計数し、前記画像について処理を施すべき領域を設定し、設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を算出し、算出した差分に基づいて前記領域の属性を判別し、判別結果に応じた処理を前記領域内の画像に対して施すことを特徴とする。 The image processing method according to the present invention is an image processing method for determining an attribute of an image and performing processing according to the determination result. The image to be determined is sequentially read for each line composed of a plurality of pixels, and the read line is configured. Calculating the feature amount representing the feature of the pixel to be determined, determining the attribute of the pixel based on the calculated feature amount, counting the pixels for which the attribute has been determined, and setting a region to be processed for the image, Calculate the difference in the number of pixels for which the attribute is calculated from each of the line immediately before and the line at the rear end of the set area, determine the attribute of the area based on the calculated difference, and according to the determination result The processing is performed on the image in the region.
本発明にあっては、画像データの入力開始時に画像の副走査方向サイズが不明であっても、プレスキャンや画像データをメモリに蓄積することなく認識処理の開始が可能となる。また、画像サイズが確定した後(画像データ入力完了時)に設定した画像領域に相当する判別結果の再集計を行う際、1ライン毎に該当ラインのみの集計結果を保存する場合に比べて再集計処理に係る処理量が軽減される。 According to the present invention, even if the sub-scanning direction size of an image is unknown at the start of image data input, the recognition process can be started without pre-scanning or storing image data in a memory. In addition, when re-summarizing the discrimination results corresponding to the image area set after the image size is determined (when image data input is completed), it is possible to re-aggregate compared to the case where the summation results for only the corresponding line are saved for each line. The amount of processing related to the aggregation process is reduced.
本発明に係る画像処理方法は、画像の属性を判別し、判別結果に応じた処理を行う画像処理方法において、判別対象の画像を複数の画素からなるライン毎に順次読み込み、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別して、属性の判別がなされた画素を主走査方向に分割されたカラム毎に計数し、前記画像について処理を施すべき領域を設定し、設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を、設定した領域に含まれるカラム毎に算出し、算出したカラム毎の差分の総和に基づいて前記領域の属性を判別し、判別結果に応じた処理を前記領域内の画像に対して施すことを特徴とする。 The image processing method according to the present invention is an image processing method for determining an attribute of an image and performing processing according to the determination result. The image to be determined is sequentially read for each line composed of a plurality of pixels, and the read line is configured. Calculating the feature amount representing the feature of the pixel to be determined, determining the attribute of the pixel based on the calculated feature amount, counting the pixel for which the attribute has been determined for each column divided in the main scanning direction, and For each column included in the set area, the area to be processed is set, and the difference in the number of pixels for which the attribute is calculated from each of the line immediately before and after the set area is determined. The attribute of the region is determined based on the calculated sum of differences for each column, and processing according to the determination result is performed on the image in the region.
本発明にあっては、主走査方向についても分割して判別結果を求めるため、画像データを一旦ハードディスク等に格納した後、格納されている画像データを用いて、有効画像領域を変更して再度処理を行う場合(例えば、枠消し処理を行う場合)、新たに設定された有効画像領域に対する認識処理を行うことができる。 In the present invention, in order to obtain the determination result by dividing also in the main scanning direction, after the image data is temporarily stored in the hard disk or the like, the effective image area is changed again using the stored image data. When processing is performed (for example, when frame erasing processing is performed), recognition processing for a newly set effective image area can be performed.
本発明に係る画像処理方法は、画像の属性を判別し、判別結果に応じた処理を行う画像処理方法において、判別対象の画像を複数の画素からなるライン毎に順次読み込み、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別して、属性の判別がなされた画素を主走査方向に予め設定された複数の有効画像領域毎に計数し、前記画像について処理を施すべき領域を設定し、設定した領域に対応する計数結果に対して設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を算出し、算出した差分の総和に基づいて前記領域の属性を判別し、判別結果に応じた処理を前記領域内の画像に対して施すことを特徴とする。 The image processing method according to the present invention is an image processing method for determining an attribute of an image and performing processing according to the determination result. The image to be determined is sequentially read for each line composed of a plurality of pixels, and the read line is configured. Calculating a feature amount representing the feature of the pixel to be detected, discriminating the attribute of the pixel based on the calculated feature amount, and determining the attribute for each of a plurality of effective image areas preset in the main scanning direction Counting and setting the area to be processed for the image, and the pixel for which the attribute calculated from each of the immediately preceding line and the trailing line of the set area is determined for the counting result corresponding to the set area The difference between the numbers is calculated, the attribute of the area is determined based on the calculated sum of the differences, and processing according to the determination result is performed on the image in the area.
本発明にあっては、必要となるカラムの数に対して有効画像領域の数が少ない場合、計数結果の保存に必要となるメモリ量を削減することができる。 In the present invention, when the number of effective image areas is smaller than the number of necessary columns, it is possible to reduce the amount of memory necessary for storing the counting results.
本発明に係る画像処理装置は、画像の属性を判別し、判別結果に応じた処理を行う画像処理装置において、判別対象の画像を複数の画素からなるライン毎に順次読み込む手段と、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別する手段と、前記属性の判別がなされた画素を計数する手段と、前記画像について処理を施すべき領域を設定する手段と、設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を算出する手段と、算出した差分に基づいて前記領域の特徴を判別する手段と、該手段による判別結果に応じた処理を前記領域内の画像に対して施す手段とを備えることを特徴とする。 An image processing apparatus according to the present invention, in an image processing apparatus that determines an attribute of an image and performs processing according to the determination result, means for sequentially reading an image to be determined for each line composed of a plurality of pixels, A feature amount representing a feature of the pixels constituting the image, a means for determining the attribute of the pixel based on the calculated feature amount, a means for counting the pixels for which the attribute has been determined, and processing the image Means for setting the power region, means for calculating the difference in the number of pixels for which the attribute is calculated from each of the line immediately before and the line at the rear end of the set region, and based on the calculated difference, And a means for discriminating the characteristics, and a means for performing processing on the image in the region according to the discrimination result by the means.
本発明にあっては、画像データの入力開始時に画像の副走査方向サイズが不明であっても、プレスキャンや画像データをメモリに蓄積することなく認識処理の開始が可能となる。また、画像サイズが確定した後(画像データ入力完了時)に設定した画像領域に相当する判別結果の再集計を行う際、1ライン毎に該当ラインのみの集計結果を保存する場合に比べて再集計処理に係る処理量が軽減される。 According to the present invention, even if the sub-scanning direction size of an image is unknown at the start of image data input, the recognition process can be started without pre-scanning or storing image data in a memory. In addition, when re-summarizing the discrimination results corresponding to the image area set after the image size is determined (when image data input is completed), it is possible to re-aggregate compared to the case where the summation results for only the corresponding line are saved for each line. The amount of processing related to the aggregation process is reduced.
本発明に係る画像処理装置は、画像の属性を判別し、判別結果に応じた処理を行う画像処理装置において、判別対象の画像を複数の画素からなるライン毎に順次読み込む手段と、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別する手段と、前記属性の判別がなされた画素を主走査方向に分割されたカラム毎に計数する手段と、前記画像について処理を施すべき領域を設定する手段と、設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を、設定した領域に含まれるカラム毎に算出する手段と、算出したカラム毎の差分の総和に基づいて前記設定した領域の特徴を判別する手段と、該手段による判別結果に応じた処理を前記設定した領域内の画像に対して施す手段とを備えることを特徴とする。 An image processing apparatus according to the present invention, in an image processing apparatus that determines an attribute of an image and performs processing according to the determination result, means for sequentially reading an image to be determined for each line composed of a plurality of pixels, Means for calculating the feature amount representing the feature of the pixel constituting the pixel, and determining the attribute of the pixel based on the calculated feature amount, and counting the pixel for which the attribute has been determined for each column divided in the main scanning direction Means for setting the area to be processed for the image, and the difference between the number of pixels for which the attribute is calculated from the line immediately before and the line at the rear end of the set area. Means for calculating for each column included in the data, means for determining the characteristics of the set region based on the calculated sum of differences for each column, and setting the processing according to the determination result by the means. Characterized in that it comprises a means for performing the image in the region.
本発明にあっては、主走査方向についても分割して判別結果を求めるため、画像データを一旦ハードディスク等に格納した後、格納されている画像データを用いて、有効画像領域を変更して再度処理を行う場合(例えば、枠消し処理を行う場合)、新たに設定された有効画像領域に対する認識処理を行うことができる。 In the present invention, in order to obtain the determination result by dividing also in the main scanning direction, after the image data is temporarily stored in the hard disk or the like, the effective image area is changed again using the stored image data. When processing is performed (for example, when frame erasing processing is performed), recognition processing for a newly set effective image area can be performed.
本発明に係る画像処理装置は、複数の領域に対する特徴を夫々判別する手段と、前記複数の領域に対して判別された判別結果を夫々記憶する手段と、判別結果に応じた処理を各領域内の画像に対して施す手段とを備えることを特徴とする。 An image processing apparatus according to the present invention includes means for discriminating features for a plurality of areas, means for storing discrimination results discriminated for the plurality of areas, and processing corresponding to the discrimination results in each area. And means for applying to the image.
本発明にあっては、有効画像領域に対する判別結果を求めておき、判別結果のみを保存しておくことで、ライン単位で判別された画素数を保存する場合に比べてデータ量を少なくすることができる。 In the present invention, the determination result for the effective image area is obtained, and only the determination result is stored, so that the data amount can be reduced as compared with the case of storing the number of pixels determined in line units. Can do.
本発明に係る画像処理装置は、画像の属性を判別し、判別結果に応じた処理を行う画像処理装置において、判別対象の画像を複数の画素からなるライン毎に順次読み込む手段と、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別する手段と、前記属性の判別がなされた画素を主走査方向に予め設定された複数の有効画像領域毎に計数する手段と、前記画像について処理を施すべき領域を設定する手段と、設定した領域に対応する計数結果に対して設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を算出する手段と、算出した差分の総和に基づいて前記設定した領域の特徴を判別する手段と、該手段による判別結果に応じた処理を前記領域内の画像に対して施す手段とを備えることを特徴とする。 An image processing apparatus according to the present invention, in an image processing apparatus that determines an attribute of an image and performs processing according to the determination result, means for sequentially reading an image to be determined for each line composed of a plurality of pixels, Means for calculating the feature amount representing the feature of the pixel constituting the pixel, and determining the attribute of the pixel based on the calculated feature amount, and a plurality of valid pixels set in advance in the main scanning direction for which the attribute is determined Calculated from each of the means for counting for each image area, means for setting the area to be processed for the image, and the lines immediately before and after the set area for the count result corresponding to the set area Means for calculating the difference in the number of pixels for which the attribute has been determined, means for determining the characteristics of the set region based on the sum of the calculated differences, and processing according to the determination result by the means Characterized in that it comprises a means for performing the image of the serial area.
本発明にあっては、必要となるカラムの数に対して有効画像領域の数が少ない場合、計数結果の保存に必要となるメモリ量を削減することができる。 In the present invention, when the number of effective image areas is smaller than the number of necessary columns, it is possible to reduce the amount of memory necessary for storing the counting results.
本発明に係る画像処理装置は、複数の有効画像領域に対する特徴を夫々判別する手段と、前記複数の有効画像領域に対して判別された判別結果を夫々記憶する手段と、記憶された判別結果のうち何れの判別結果を用いるかを判定する手段と、判定された判別結果に応じた処理を前記領域内の画像に対して施す手段とを備えることを特徴とする。 The image processing apparatus according to the present invention includes means for discriminating features for a plurality of effective image areas, means for storing discrimination results discriminated for the plurality of effective image areas, and a stored discrimination result. It is characterized by comprising means for determining which discrimination result to use, and means for performing processing according to the determined discrimination result on the image in the region.
本発明にあっては、有効画像領域に対する判別結果を求めておき、判別結果のみを保存しておくことで、ライン単位で判別された画素数を保存する場合に比べてデータ量を少なくすることができる。 In the present invention, the determination result for the effective image area is obtained, and only the determination result is stored, so that the data amount can be reduced as compared with the case of storing the number of pixels determined in line units. Can do.
本発明に係る画像処理装置は、前記画素の属性は、画素の有彩、無彩であることを特徴とする。 The image processing apparatus according to the present invention is characterized in that the attribute of the pixel is chromatic or achromatic of the pixel.
本発明にあっては、設定した領域の直前のライン及び後端のラインの夫々から算出した特徴量の差分をとることにより、判別対象の画像が有彩色の画像であるか否かが判別される。 In the present invention, it is determined whether or not the image to be determined is a chromatic image by taking the difference between the feature amounts calculated from the immediately preceding line and the trailing end line of the set area. The
本発明に係る画像処理装置は、前記有彩と判別された画素数の差分と所定値との大小を比較する手段を備え、前記有彩と判別された画素数の差分が前記所定値より大きい場合、前記画像が有彩色の画像であると判別し、前記差分が前記所定値より小さい場合、前記画像が無彩色の画像であると判別するようにしてあることを特徴とする。 The image processing apparatus according to the present invention includes means for comparing the difference between the number of pixels determined to be chromatic and a predetermined value, and the difference between the number of pixels determined to be chromatic is greater than the predetermined value. In this case, it is determined that the image is a chromatic image, and when the difference is smaller than the predetermined value, it is determined that the image is an achromatic image.
本発明にあっては、有効画像領域が確定する前から判別処理を開始し、有効画像領域が確定した後で再集計することにより画像の有彩無彩判定処理の効率性が向上する。 In the present invention, the efficiency of the chromatic / achromatic determination process of the image is improved by starting the determination process before the effective image area is determined, and recounting after the effective image area is determined.
本発明に係る画像処理装置は、前記画素の属性は、画素が文字領域、網点領域を含む複数の領域の何れに属するかを示す領域分離結果であることを特徴とする。 The image processing apparatus according to the present invention is characterized in that the attribute of the pixel is a region separation result indicating which of the plurality of regions including the character region and the dot region.
本発明にあっては、設定した領域の直前のライン及び後端のラインの夫々から算出した特徴量の差分をとることにより、判別対象の画像が、文字・網点画像であるか、又は下地・印画紙画像であるかが判別される。 In the present invention, by determining the difference between the feature amounts calculated from the immediately preceding line and the trailing end line of the set area, the image to be determined is a character / halftone image, or the background It is determined whether the image is a photographic paper image.
本発明に係る画像処理装置は、前記画素が属する領域毎の画素数の差分と領域毎に設けられた所定値との大小を比較する手段を備え、前記領域毎の画素数の差分が前記領域毎に設けられた所定値との比較に基づいて原稿種別の判別を行うようにしてあることを特徴とする。 The image processing apparatus according to the present invention includes means for comparing the difference between the number of pixels for each region to which the pixel belongs and a predetermined value provided for each region, and the difference in the number of pixels for each region is the region. The document type is discriminated based on a comparison with a predetermined value provided for each.
本発明にあっては、有効画像領域が確定する前から判別処理を開始し、有効画像領域が確定した後で再集計することにより原稿種別判定処理の効率性が向上する。 According to the present invention, the efficiency of the document type determination process is improved by starting the determination process before the effective image area is determined and re-counting after the effective image area is determined.
本発明に係る画像処理装置は、前記画素の属性は、画素が下地領域であるか否かの判定結果であることを特徴とする。 The image processing apparatus according to the present invention is characterized in that the attribute of the pixel is a determination result of whether or not the pixel is a ground region.
本発明にあっては、設定した領域の直前のライン及び後端のラインの夫々から算出した特徴量の差分をとることにより、判別対象の画像の下地色が判別される。 In the present invention, the background color of the image to be determined is determined by taking the difference between the feature amounts calculated from the immediately preceding line and the trailing end line of the set area.
本発明に係る画像処理装置は、前記画素が属する階級値のカウント数の差分と所定値との大小を比較する手段を備え、比較結果に基づいて下地を判別するようにしてあることを特徴とする。 The image processing apparatus according to the present invention is characterized by comprising means for comparing the difference between the count value of the class value to which the pixel belongs and a predetermined value, and determining the background based on the comparison result. To do.
本発明にあっては、有効画像領域が確定する前から判別処理を開始し、有効画像領域が確定した後で再集計することにより下地判定処理の効率性が向上する。 In the present invention, the efficiency of the background determination process is improved by starting the discrimination process before the effective image area is determined and re-counting after the effective image area is determined.
本発明に係る画像処理装置は、画像の属性を判別し、判別結果に応じた処理を行う画像処理装置において、判別対象の画像を複数の画素からなるライン毎に順次読み込む手段と、読み込んだラインを構成する画素の特徴を表す複数の特徴量を算出し、算出した複数の特徴量に基づいて画素の複数の属性を判別する手段と、夫々属性の判別がなされた画素を計数する手段と、前記画像について処理を施すべき領域を設定する手段と、設定した領域の直前のライン及び後端のラインの夫々から算出した、夫々の属性の判別がなされた画素数の差分を算出する手段と、算出した差分に基づいて前記領域の複数の特徴を判別する手段と、該手段による判別結果に応じた処理を前記領域内の画像に対して施す手段とを備えることを特徴とする。 An image processing apparatus according to the present invention, in an image processing apparatus that determines an attribute of an image and performs processing according to the determination result, means for sequentially reading an image to be determined for each line composed of a plurality of pixels, Means for calculating a plurality of feature amounts representing the characteristics of the pixels constituting the image, and determining a plurality of attributes of the pixel based on the calculated plurality of feature amounts; and means for counting the pixels for which the attributes have been determined, Means for setting an area to be processed with respect to the image; means for calculating a difference between the number of pixels for which the respective attributes are determined, calculated from each of a line immediately before and a line at the rear end of the set area; The apparatus comprises: means for discriminating a plurality of features of the area based on the calculated difference; and means for performing processing on the image in the area according to a discrimination result by the means.
本発明にあっては、前述のオートカラーセレクト処理、原稿種別の判別処理、下地判定処理を組み合わせた場合においても判定処理の効率性を向上させることができる。 In the present invention, the efficiency of the determination process can be improved even when the above-described auto color selection process, document type determination process, and background determination process are combined.
本発明に係る画像形成装置は、前述した発明の何れか1つに記載の画像処理装置と、該画像処理装置によって画像処理が施された画像をシート上に形成する手段とを備えることを特徴とする。 An image forming apparatus according to the present invention includes the image processing apparatus according to any one of the above-described inventions, and a unit that forms an image subjected to image processing by the image processing apparatus on a sheet. And
本発明にあっては、プリンタ装置、デジタル複合機の一機能として利用可能である。 In the present invention, it can be used as a function of a printer device or a digital multifunction peripheral.
本発明に係る画像読取装置は、原稿から画像を読み取る手段と、読み取った画像の属性を判別し、判別結果に応じた処理を行う前述した発明の何れか1つに記載の画像処理装置とを備えることを特徴とする。 An image reading apparatus according to the present invention includes means for reading an image from a document, and the image processing apparatus according to any one of the above-described inventions that determines an attribute of the read image and performs processing according to the determination result. It is characterized by providing.
本発明にあっては、スキャナ装置、デジタル複合機の一機能として利用可能である。 In the present invention, it can be used as one function of a scanner device or a digital multifunction peripheral.
本発明に係るコンピュータプログラムは、コンピュータに、画像の属性を判別させ、判別結果に応じた処理を行わせるコンピュータプログラムにおいて、コンピュータに、複数の画素からなるラインから該ラインを構成する画素の特徴を表す特徴量を算出させるステップと、コンピュータに、算出させた特徴量に基づいて画素の属性を判別させ、属性の判別がなされた画素を計数させるステップと、コンピュータに、前記画像について処理を施すべき領域を設定させるステップと、コンピュータに、設定させた領域の直前のライン及び後端のラインの夫々から算出させた属性の判別がなされた画素数の差分を算出させるステップと、コンピュータに、算出させた差分に基づいて前記領域の属性を判別させ、判別結果に応じた処理を前記領域内の画像に対して施させるステップとを有することを特徴とする。 A computer program according to the present invention is a computer program that causes a computer to determine an attribute of an image and perform processing according to the determination result. The computer is characterized by the characteristics of pixels constituting the line from a line composed of a plurality of pixels. A step of calculating a feature amount to be represented; a step of causing a computer to determine a pixel attribute based on the calculated feature amount; and a step of counting the pixels for which the attribute has been determined; and A step of setting an area; a step of causing a computer to calculate a difference in the number of pixels in which an attribute is determined based on each of a line immediately before and a rear end line of the set area; and The attribute of the area is discriminated based on the difference, and processing according to the discrimination result is performed in the area. Characterized by a step for performed on the image.
本発明にあっては、前述の画像処理装置がコンピュータにより実現される。 In the present invention, the above-described image processing apparatus is realized by a computer.
本発明に係る記録媒体は、画像の属性を判別させ、判別結果に応じた処理を行わせるコンピュータプログラムが記録されているコンピュータでの読み取りが可能な記録媒体において、コンピュータに、複数の画素からなるラインから該ラインを構成する画素の特徴を表す特徴量を算出させるステップと、コンピュータに、算出させた特徴量に基づいて画素の属性を判別させ、属性の判別がなされた画素を計数させるステップと、コンピュータに、前記画像について処理を施すべき領域を設定させるステップと、コンピュータに、設定させた領域の直前のライン及び後端のラインの夫々から算出させた属性の判別がなされた画素数の差分を算出させるステップと、コンピュータに、算出させた差分に基づいて前記領域の属性を判別させ、判別結果に応じた処理を前記領域内の画像に対して施させるステップとを有するコンピュータプログラムが記録されていることを特徴とする。 A recording medium according to the present invention is a computer-readable recording medium on which a computer program for determining an attribute of an image and performing processing according to the determination result is recorded. The computer includes a plurality of pixels. A step of calculating a feature amount representing a feature of a pixel constituting the line from the line, a step of causing a computer to determine the attribute of the pixel based on the calculated feature amount, and counting the pixels for which the attribute has been determined. A step of causing the computer to set an area to be processed for the image; and a difference between the number of pixels for which the attribute is calculated from each of the immediately preceding line and the trailing edge line of the set area. And having the computer determine the attribute of the region based on the calculated difference, and Wherein the computer program is recorded and a step for subjected to processing corresponding to the image of the region to.
本発明にあっては、記録媒体から読出された画像処理プログラムによって、前述の画像処理装置がコンピュータにより実現される。 In the present invention, the above-described image processing apparatus is realized by a computer by an image processing program read from a recording medium.
本発明による場合は、画像データの入力開始時に画像の副走査方向サイズが不明であっても、プレスキャンや画像データをメモリに蓄積することなく認識処理を開始することができる。また、画像サイズが確定した後(画像データ入力完了時)に設定した画像領域に相当する判別結果の再集計を行う際、1ライン毎に該当ラインのみの集計結果を保存する場合に比べて再集計処理に係る処理量を軽減することができる。 According to the present invention, the recognition process can be started without pre-scanning or storing image data in the memory even if the size of the image in the sub-scanning direction is unknown at the start of image data input. In addition, when re-summarizing the discrimination results corresponding to the image area set after the image size is determined (when image data input is completed), it is possible to re-aggregate compared to the case where the summation results for only the corresponding line are saved for each line. It is possible to reduce the amount of processing related to the aggregation processing.
本発明による場合は、主走査方向についても分割して判別結果を求めるため、画像データを一旦ハードディスク等に格納した後、格納されている画像データを用いて、有効画像領域を変更して再度処理を行う場合(例えば、枠消し処理を行う場合)、新たに設定された有効画像領域に対する認識処理を行うことができる。 In the case of the present invention, in order to obtain the determination result by dividing also in the main scanning direction, after the image data is temporarily stored in the hard disk or the like, the stored image data is used to change the effective image area and process again. When performing (for example, performing frame erasing processing), recognition processing for a newly set effective image region can be performed.
本発明による場合は、必要となるカラムの数に対して有効画像領域の数が少ない場合、計数結果の保存に必要となるメモリ量を削減することができる。 According to the present invention, when the number of effective image areas is smaller than the number of necessary columns, the amount of memory necessary for storing the counting results can be reduced.
本発明による場合は、有効画像領域に対する判別結果を求めておき、判別結果のみを保存しておくことで、ライン単位で判別された画素数を保存する場合に比べてデータ量を少なくすることができる。 In the case of the present invention, the determination result for the effective image area is obtained, and only the determination result is stored, so that the data amount can be reduced as compared with the case of storing the number of pixels determined in line units. it can.
本発明による場合は、設定した領域の直前のライン及び後端のラインの夫々から算出した特徴量の差分をとることにより、判別対象の画像が有彩色の画像であるか否かを判別することができる。 According to the present invention, it is determined whether or not the image to be determined is a chromatic image by taking the difference between the feature amounts calculated from the immediately preceding line and the trailing end line of the set area. Can do.
本発明による場合は、有効画像領域が確定する前から判別処理を開始し、有効画像領域が確定した後で再集計することにより原稿種別判定処理の効率性を向上させることができる。 According to the present invention, it is possible to improve the efficiency of the document type determination process by starting the determination process before the effective image area is determined and re-counting after the effective image area is determined.
本発明による場合は、設定した領域の直前のライン及び後端のラインの夫々から算出した特徴量の差分をとることにより、判別対象の画像が、文字・網点画像であるか、又は下地・印画紙画像であるかを判別することができる。 In the case of the present invention, the difference between the feature amounts calculated from the immediately preceding line and the trailing edge line of the set area is taken, so that the image to be determined is a character / halftone dot image or a background / It is possible to determine whether the image is a photographic paper image.
本発明による場合は、設定した領域の直前のライン及び後端のラインの夫々から算出した特徴量の差分をとることにより、判別対象の画像の下地色を判別することができる。 According to the present invention, the background color of the image to be determined can be determined by taking the difference between the feature amounts calculated from the immediately preceding line and the trailing end line of the set area.
本発明による場合は、プリンタ装置、デジタル複合機の一機能として利用することができる。 According to the present invention, it can be used as a function of a printer device or a digital multi-function peripheral.
本発明による場合は、スキャナ装置、デジタル複合機の一機能として利用することができる。 According to the present invention, it can be used as a function of a scanner device or a digital multifunction peripheral.
本発明による場合は、前述の画像処理装置をコンピュータにより実現することができる。 In the case of the present invention, the above-described image processing apparatus can be realized by a computer.
本発明による場合は、記録媒体から読出された画像処理プログラムによって、前述の画像処理装置をコンピュータにより実現することができる。 According to the present invention, the above-described image processing apparatus can be realized by a computer by an image processing program read from a recording medium.
以下、本発明をその実施の形態を示す図面に基づいて具体的に説明する。
実施の形態1.
図1は本発明に係る画像処理装置を備える画像処理システムの内部構成を説明するブロック図である。実施の形態1に係る画像処理システムは、操作パネル1、画像入力装置3、画像処理装置5A、画像出力装置7を備える。
Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof.
FIG. 1 is a block diagram illustrating an internal configuration of an image processing system including an image processing apparatus according to the present invention. The image processing system according to the first embodiment includes an
操作パネル1は、液晶表示装置、各種スイッチ等からなり、ユーザに報知すべき情報の表示、ユーザによる各種選択操作等を受付ける。
The
画像入力装置3は、原稿の画像を光学的に読み取る読取手段であり、読取用の原稿に光を照射する光源、CCD(Charge Coupled Device)のようなイメージセンサ等を備えて
いる。
The
図2は画像入力装置3の構成を示す模式図である。画像入力装置3は、上部筐体510で構成される原稿搬送部、下部筐体560で構成されるスキャナ部などを備える。上部筐体510には、原稿トレイ511に載置された原稿の検知を行う原稿セットセンサ514、原稿を1枚ずつ搬送するための呼込みローラ512、原稿上の画像を読み取るために原稿を搬送する搬送ローラ513a、513b、原稿の排出を行う原稿排出ローラ50、排出される原稿を検知する原稿排出センサ567などが設けられている。搬送ローラ(整合ローラ)513bは、駆動軸に電磁クラッチ(図示せず)を備えており、駆動モータ(図示せず)からの駆動力の伝達を制御できるようになっており、原稿のない状態では停止している。そして、原稿の先端が給送タイミングセンサ515に接触し、このセンサから所定の信号が伝達されたときに、原稿を下流側に搬送する方向に回動するように設定されている。搬送ローラ513bは、停止した状態で、上流側より搬送された原稿の先端が、搬送ローラ513bのニップ部に付き当たり、原稿に所定の撓みを形成した後に、下流側に原稿を搬送するように回動する。この際に、搬送ローラ513bのニップ部により、原稿の先端が搬送方向に直角となるように整合される。
FIG. 2 is a schematic diagram showing the configuration of the
下部筐体560には、載置台561の下面に沿って平行に往復移動する走査ユニット562、563、結像レンズ564、及び光電変換素子であるCCDラインセンサ565、排出トレイ566などが設けてある。走査ユニット562は、原稿トレイ511から搬送される原稿、あるいは、載置台561に載置された原稿に光を照射するための光源562a(例えば、ハロゲンランプなど)、原稿で反射された光を所定の光路に導くためのミラー562bなどを備えている。また、走査ユニット563は、原稿で反射された光を所定の光路に導くためのミラー563a、563bなどを備えている。
The
結像レンズ564は、走査ユニット563から導かれた反射光をCCDラインセンサ565上の所定の位置に結像させる。CCDラインセンサ565は、結像された光像を光電変換して電気信号を出力する。すなわち、原稿(例えば、原稿の表面)から読み取ったカラー画像に基づいて、R(赤)、G(緑)、B(青)の各色成分に色分解したデータ(RGB信号)を画像処理装置5Aへ出力する。このとき、画像入力装置3は副走査方向に1ラインずつ読み取ったデータを画像処理装置5Aへ出力する。また、図3に示すように給送タイミングセンサ515から出力される信号、すなわち、原稿の読取開始信号及び読取終了信号を画像処理装置5Aに通知する。
The imaging lens 564 images the reflected light guided from the
画像処理装置5Aは、画像入力装置3から出力されるアナログ電気信号をデジタル電気信号に変換した後、適宜の画像処理を行い、得られた画像データを画像出力装置7へ出力する。なお、画像処理装置5Aの内部構成、動作等については後に詳述することとする。
The
画像出力装置7は、画像処理装置5Aが出力する画像信号に基づいて用紙、OHPフィルム等のシート上に画像形成を行う手段である。そのため、画像出力装置7は、感光体ドラムを所定の電位に帯電させる帯電器、外部から受付けた画像データに応じてレーザ光を発して感光体ドラム上に静電潜像を生成させるレーザ書込装置、感光体ドラム表面に形成された静電潜像にトナーを供給して顕像化する現像器、感光体ドラム表面に形成されたトナー像を用紙上に転写する転写器等(不図示)を備えており、電子写真方式にて利用者が所望する画像を用紙上に形成する。なお、レーザ書込装置を用いた電子写真方式により画像形成を行う他、インクジェット方式、熱転写方式、昇華方式等により画像形成を行う構成であってもよい。
The
次に、画像処理装置5Aの内部構成について説明する。AD変換部51は、画像入力装置3から入力されたRGBのアナログ信号をデジタル信号に変換する。シェーディング補正部52は、AD変換部51から出力されたデジタル形式のRGB信号に対して、画像入力装置3の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施す。シェーディング補正されたRGB信号は、ACS判定処理部53へ出力される。
Next, the internal configuration of the
ACS判定処理部53では原稿画像を構成する画素の一部を用いて、原稿画像がカラー画像であるか、又は白黒画像であるかを選択する処理を行う。ACS判定処理部53での処理内容については後に詳述することとする。ACS判定処理部53での判定結果は、後段の入力階調補正部55、領域分離処理部56、色補正部57、黒生成下色除去部58、空間フィルタ処理部59、階調再現処理部62へ出力される。
The ACS
入力階調補正部55は、下地濃度の除去やコントラストなどの画質調整処理を行う。領域分離処理部56は、RGB信号より、入力画像中の各画素を文字領域、網点領域、写真領域の何れかに分離する処理を行う。領域分離処理部56は、分離結果に基づき、画素がどの領域に属しているかを示す領域識別信号を後段の黒生成下色除去部58、空間フィルタ処理部59、及び階調再現処理部62へ出力すると共に、入力されたRGB信号をそのまま後段の色補正部57へ出力する。
The input
色補正部57は、色再現の忠実化再現のために、不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行うものである。色補正されたRGB信号は、後段の黒生成下色除去部58へ出力される。黒生成下色除去部58は、色補正後のCMYの3色信号から黒(K)信号を生成する黒生成、元のCMY信号から黒生成で得たK信号を差し引いた新たなCMY信号を生成する処理を行う。この処理によってCMYの3色信号はCMYKの4色信号に変換される。
The
黒生成処理の一例として、スケルトンブラックによる黒生成を行う方法がある。この方法では、スケルトンカーブの入出力特性をy=f(x)、入力されるデータをC,M,Y、出力されるデータをC’,M’,Y’,K’、UCR率(UCR : Under Color Removal)をα(0<α<1)とすると、黒生成下色除去処理は以下の式で表される。 As an example of the black generation process, there is a method of generating black using skeleton black. In this method, the input / output characteristic of the skeleton curve is y = f (x), the input data is C, M, Y, the output data is C ′, M ′, Y ′, K ′, the UCR rate (UCR) : Under Color Removal) α (0 <α <1), the black generation under color removal processing is expressed by the following equation.
K’=f{min(C,M,Y)}
C’=C−αK’
M’=M−αK’
Y’=Y−αK’
K ′ = f {min (C, M, Y)}
C ′ = C−αK ′
M ′ = M−αK ′
Y ′ = Y−αK ′
空間フィルタ処理部59は、黒生成下色除去部58より入力されるCMYK信号の画像データに対して、領域識別信号を基にデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによって出力画像のぼやけや粒子状劣化を防ぐように処理を行う。
The spatial
例えば、領域分離処理部56にて文字に分離された領域は、特に黒文字又は色文字の再現性を高めるために、空間フィルタ処理部59による空間フィルタ処理における鮮鋭強調処理で高周波数の強調量が大きくされる。同時に、階調再現処理部62においては、高周波数の再現に適した高解像度のスクリーンでの二値化又は多値化処理が選択される。また、領域分離処理部56にて網点領域に分離された領域に関しては、空間フィルタ処理部59において、入力網点成分を除去するためのローパスフィルタ処理が施される。そして、出力階調補正部60において、濃度信号などの信号をカラー画像出力装置の特性値である網点面積率に変換する出力階調補正処理を行った後、階調再現処理部62で最終的に画像を画素に分離してそれぞれの階調を再現できるように処理する階調再現処理を施す。また、領域分離処理部56にて写真に分離された領域に関しては、階調再現性を重視したスクリーンでの二値化又は多値化処理が行われる。また、変倍処理部61は、領域再現処理を行う前に必要に応じて変倍処理を行う。
For example, the region separated into characters by the region
前述した各処理が施された画像データは、一旦記憶手段(不図示)に記憶され、所定のタイミングで読出されて画像出力装置7へ出力される。
The image data subjected to the above-described processes is temporarily stored in storage means (not shown), read at a predetermined timing, and output to the
以下では、ACS判定処理部53の構成について説明する。図4はACS判定処理部53の内部構成を示すブロック図である。ACS判定処理部53は、CPU531、メモリ532、カラー画素判定部533、カラー画素カウント部534、カラー原稿判定部535を備える。
Below, the structure of the ACS
CPU531は、画像入力装置3から通知される原稿の読取開始位置や読取終了位置の情報から原稿サイズを認識する。また、操作パネル1等から入力される、原稿に対して画像処理を行うための拡大率や処理対象位置などの情報を取得、解析し、有効画像領域情報として認識する。
The CPU 531 recognizes the document size from the information of the document reading start position and the reading end position notified from the
図5は有効画像領域を説明する説明図である。有効画像領域は、例えば、変倍処理の指定がなされた場合、設定された変倍率に応じて、対象となる画像の領域が設定されることにより行われる。あるいは、倍率が等倍と設定されている場合でも、原稿サイズよりも小さいサイズの用紙に出力する場合は、予め定められている、出力される画像領域が有効画像領域として設定される。例えば、A3サイズの原稿をA4サイズの用紙に出力する場合、A3サイズの原稿の右半分の領域(デフォルトで定められている領域)が有効画像領域として設定される。 FIG. 5 is an explanatory diagram for explaining an effective image area. For example, when the scaling process is designated, the effective image area is set by setting a target image area in accordance with the set scaling ratio. Alternatively, even when the magnification is set to be equal, when outputting to a paper having a size smaller than the document size, a predetermined output image area is set as an effective image area. For example, when outputting an A3 size document to an A4 size sheet, the right half area (area defined by default) of the A3 size document is set as an effective image area.
カラー画素判定部533は、画素単位(又はブロック、例えば8×8画素よりなるブロック)でカラー画素(又はブロック)であるか否かを判定する。結果をカラー画素フラグとしてカラー画素カウント部534へ出力する。カラー画素か、モノクロ(白黒)画素かの判定は、例えば、max(R,G,B)−min(R,G,B)の値と閾値THcolor_p(例えば、画像データの階調値(8ビットの画像データの場合、256)の5%〜10%程度)とを比較して行う。max(R,G,B)−min(R,G,B)が閾値THcolor_p以上のとき、カラー(有彩)であると判定し、上記閾値より小さいときモノクロであると判定する。
The color
カラー画素カウント部534はカラー画素判定部533から入力されるカラー画素フラグがカラーであることを示していればカウント数を1インクリメント(増加)し、カラーでないことを示していればカウント数はそのままとする。1ラインのカウントを行うごとにメモリ532へ現在までのカラー画素カウント数を出力する。このとき、カウンタの初期化は原稿読取開始位置で行い、ライン単位ごとには行わない。カラー画素のカウント数は、常に原稿読込開始位置からの総和とする。
The color pixel count unit 534 increments (increases) the count number if the color pixel flag input from the color
メモリ532では、ライン単位でカラー画素カウント数を順次メモリに格納していく。また、カラー原稿判定部535より要求されたラインのカウント数をカラー原稿判定部535に出力する。
In the
カラー原稿判定部535では、CPU531から有効画像領域情報を受け取り、この情報に基づき、有効画像領域の1つ前のラインにおけるカラー画素カウント数N1と有効画像領域の後端ラインにおけるカラー画素カウント数N2(図5参照)をメモリ532に要求する。メモリ532から入力された2つのカウント数の差分を計算して、有効画像領域におけるカラー画素カウント数を求め、閾値比較を行うことで原稿がカラー原稿か白黒原稿かを判定し、判定結果を出力する。閾値THcolor_dとしては、例えば、入力原稿に対して1センチ角程度の大きさの画素数を用いる。閾値THcolor_dの値は、画像入力装置の解像度により異なるので、解像度に応じて設定する。そして、閾値THcolor_d以上ならば、カラー原稿であると判定し、閾値THcolor_dより小さければ白黒原稿であると判定する。
The color original determination unit 535 receives the effective image area information from the CPU 531, and based on this information, the color pixel count number N1 in the previous line of the effective image area and the color pixel count number N2 in the rear end line of the effective image area. (See FIG. 5) is requested to the
図6及び図7はACS判定処理部53が実行する処理の手順を説明するフローチャートである。CPU531は、まず、カラー画素フラグ、メモリに記憶されているカウント数などの初期化を行う(ステップS11)。そして、画像入力装置3から通知される原稿の読取開始位置及び読取終了位置の情報から原稿サイズを認識し、操作パネル1等から入力される、原稿に対して画像処理を行うための拡大率や処理対象位置などの情報を取得、解析し、有効画像領域情報として認識する(ステップS12)。
6 and 7 are flowcharts for explaining the procedure of processing executed by the ACS
次いで、カラー画素判定部533は、1つのラインを構成する画素単位でカラー画素であるか否かを判定する(ステップS13)。カラー画素であると判定した場合(S13:YES)、カラー画素カウント部534は、カウンタを1だけインクリメントする(ステップS14)。また、カラー画素でないと判定した場合(S13:NO)、カウンタの値をそのまま保持する。
Next, the color
次いで、CPU531は、1ラインおけるカラー画素判定処理が終了したか否かを判断し(ステップS15)、終了していないと判断した場合(S15:NO)、処理をステップS13へ戻す。 Next, the CPU 531 determines whether or not the color pixel determination process for one line has been completed (step S15). If it is determined that the color pixel determination process has not been completed (S15: NO), the process returns to step S13.
1ラインのカラー画素判定処理が終了したと判断した場合(S15:YES)、カラー画素カウント部534は、カラー画素数(処理を行ったラインまでのカラー画素数)をメモリ532に出力する(ステップS16)。次いで、CPU531は有効画像領域の後端ラインであるか否かを判断し(ステップS17)、後端ラインでないと判断した場合(S17:NO)、次のラインの処理を行って(ステップS18)、処理をステップS13へ戻す。 When it is determined that the color pixel determination process for one line has been completed (S15: YES), the color pixel count unit 534 outputs the number of color pixels (the number of color pixels up to the processed line) to the memory 532 (Step S15). S16). Next, the CPU 531 determines whether or not it is the rear end line of the effective image area (step S17). If it is determined that it is not the rear end line (S17: NO), the next line is processed (step S18). The process returns to step S13.
現在のラインが有効画像領域の後端ラインであると判断した場合(S17:YES)、カラー原稿判定部535は、有効画像領域の1つ前のラインにおけるカラー画素カウント数N1と有効画像領域の後端ラインにおけるカラー画素カウント数N2との差分を算出し(ステップS19)、差分(N2−N1)が閾値THcolor_d以上であるか否かを判断する(ステップS20)。差分(N2−N1)が閾値THcolor_d以上であると判断した場合(S20:YES)、原稿画像がカラー画像であると判定し(ステップS21)、差分(N2−N1)が閾値THcolor_dより小さいと判断した場合(S20:NO)、原稿画像がモノクロ(白黒)画像であると判定する(ステップS22)。 When it is determined that the current line is the rear end line of the effective image area (S17: YES), the color document determination unit 535 determines the color pixel count N1 and the effective image area in the line immediately before the effective image area. A difference from the color pixel count number N2 in the rear end line is calculated (step S19), and it is determined whether or not the difference (N2−N1) is greater than or equal to a threshold value THcolor_d (step S20). When it is determined that the difference (N2-N1) is equal to or greater than the threshold THcolor_d (S20: YES), it is determined that the document image is a color image (step S21), and the difference (N2-N1) is determined to be smaller than the threshold THcolor_d. If so (S20: NO), it is determined that the document image is a monochrome (monochrome) image (step S22).
なお、本実施の形態では、ライン単位のカウント数からカラー原稿か白黒原稿かを判定する処理をカラー原稿判定部535で行う構成としたが、CPU531で行う構成としてもよい。図8はACS判定処理部53の変形例を示すブロック図である。
In the present embodiment, the color original determination unit 535 performs the process of determining whether the original is a color original or a black and white original from the line-unit count. However, the CPU 531 may be configured to perform the process. FIG. 8 is a block diagram showing a modification of the ACS
このように、本実施の形態では、メモリ532に格納されるデータはライン単位のカラー画素累積カウント数であるので、画像データを格納するよりも小さなメモリサイズで実現可能である。また、原稿のスキャンと並行してカラー画素判定、カラー画素カウント、メモリへの格納を行うため、スキャン完了後に必要な処理としては2つの値をメモリから取り出してカラー原稿か判定するのみであるため、原稿中のどの位置に有効画像領域が存在している場合でもほとんど時間のロスなく高速にACS処理を行うことが可能である。
As described above, in the present embodiment, the data stored in the
実施の形態2.
主走査方向に予め設定されたカラム(列)ごとに判定結果を順次加算しておく構成としてもよい。このような構成では、再処理時の設定によって有効画像領域が変更された場合であっても、設定に応じた属性判別を行うことができる。
The determination result may be sequentially added for each column (row) set in advance in the main scanning direction. In such a configuration, even when the effective image area is changed by the setting at the time of reprocessing, the attribute determination according to the setting can be performed.
装置構成については実施の形態1と同様であり、原稿は、画像入力装置3により副走査方向に1ラインずつ読み取られ、ACS判定処理部53のカラー画素判定部533に入力される。また、画像入力装置3には給送タイミングセンサ515が搭載されており、原稿の読取開始位置と読取終了位置とがCPU531に通知される。
The apparatus configuration is the same as in the first embodiment, and the document is read line by line in the sub-scanning direction by the
CPU531は画像入力装置3から通知される原稿の読取開始位置や読取終了位置の情報から原稿サイズを認識する。また、操作パネル1や図に示していないホストコンピュータから入力される、原稿に対して画像処理を行うための拡大率や処理対象位置などの情報を取得、解析し、有効画像領域情報としてカラー原稿判定部535へ通知する。
The CPU 531 recognizes the document size from the information of the document reading start position and the reading end position notified from the
有効画像領域については、例えば、変倍処理の指定がなされた場合、設定された変倍率に応じて対象となる画像の領域が設定される。または、倍率が等倍と設定されている場合でも、原稿サイズより小さいサイズの用紙に出力する場合は、予め定められている、出力される画像領域が有効画像領域として設定される。図9及び図10は有効画像領域の設定例を示す模式図である。例えば、A3サイズの原稿をA4サイズの用紙に出力する場合、A3サイズの原稿の右半分の領域(デフォルトで定められている領域)を有効画像領域として設定する(図9)。また、枠消しなどの機能によって枠以外の領域と指定される領域を有効画像領域として設定する(図10)。すなわち、図10では、有効画像領域以外が枠として示されている。 As for the effective image area, for example, when a scaling process is designated, a target image area is set according to the set scaling ratio. Alternatively, even when the magnification is set to be equal, when outputting to a sheet having a size smaller than the original size, a predetermined output image area is set as an effective image area. 9 and 10 are schematic diagrams showing examples of setting an effective image area. For example, when an A3 size document is output on A4 size paper, the right half area (area defined by default) of the A3 size document is set as an effective image area (FIG. 9). Also, an area designated as an area other than the frame by a function such as frame erasing is set as an effective image area (FIG. 10). That is, in FIG. 10, the area other than the effective image area is shown as a frame.
カラー画素判定部533は、入力された画像データを画素単位でカラー画素かどうかを判定する。カラー画素判定部533の判定結果をカラー画素フラグとしてカラー画素カウント部534へ出力する。カラー画素か、モノクロ(白黒)画素かの判定は、例えば、max(R,G,B)−min(R,G,B)の値と閾値THcolor_p(例えば、画像データの階調値(8ビットの画像データの場合、256)の5%〜10%程度)とを比較して行う。max(R,G,B)−min(R,G,B)が閾値THcolor_p以上のとき、カラー(有彩)であると判定し、上記閾値より小さいときモノクロ(無彩)であると判定する。
The color
カラー画素カウント部534は、予め設定される画像データの各カラム(列)のそれぞれに対してカラー画素をカウントする。図11はカラムの分割例を示す模式図である。図11の例では入力画像が主走査方向に5つのカラム10A〜10Eに分割されている様子を示しており、この5つのカラム10A〜10Eのそれぞれについてカラー画素をカウントする。すなわち、カラー画素判定部533から入力されるカラー画像フラグがカラーであることを示していればカウント数を1インクリメントし、カラーでないことを示していればカウント数はそのままとする。1ラインのカウントを行うごとにメモリ532へ現在までのカラー画素カウント数を出力する。このとき、カウンタの初期化は原稿読取開始位置で行い、ライン単位毎には行わない。カラー画素のカウント数は、常に原稿読込開始ラインからの総和とする。
The color pixel counting unit 534 counts color pixels for each column of image data set in advance. FIG. 11 is a schematic diagram showing an example of column division. The example of FIG. 11 shows a state in which the input image is divided into five
なお、カラムに分割する方法については、スキャン時に選択されるモードや再処理時に選択可能なモード(例えば、枠消しモード)によって決められる。図12〜図14は有効画像領域の設定例を示す模式図である。例えば、枠消しモードなどにおいて、液晶ディスプレイなどの表示装置に図12〜図14のパターンを表示して、有効画像領域11〜13の選択を可能とする場合、カラムを5つに分割しておく。または、分割するカラムのパターン(例えば、所定のブロック(例えば、7×7画素よりなるブロック)毎に分割する)を予め定めておいてもよい。どのように分割するかは、事前に種々の画像サンプルを用いて、再処理を行う際に適切に処理を行うことができるパターンを定めておけばよい。 Note that the method of dividing into columns is determined by a mode selected at the time of scanning and a mode selectable at the time of reprocessing (for example, a frame erasing mode). 12 to 14 are schematic diagrams showing examples of setting an effective image area. For example, in the frame erasing mode or the like, when the patterns of FIGS. 12 to 14 are displayed on a display device such as a liquid crystal display so that the effective image areas 11 to 13 can be selected, the column is divided into five. . Alternatively, a column pattern (for example, division for each predetermined block (for example, a block composed of 7 × 7 pixels)) may be determined in advance. How to divide may be determined in advance by using various image samples and determining a pattern that can be appropriately processed when reprocessing.
メモリ532には、各カラム毎のカラー画素カウント数がライン単位で順次格納される。図15の模式図は、メモリ532へのカラー画素カウント数の格納例を示している。メモリ532は、カラー画素判定部533より要求されたラインのカウント数をカラー原稿判定部535に出力する。
In the
カラー原稿判定部535では、CPU531から有効画像領域情報を受け取り、この情報に基づき、対応するカラムの有効画像領域の1つ前のラインにおけるカラー画素カウント数N1と有効画像領域の後端ラインにおけるカラー画素カウント数N2とをメモリ532に要求する。メモリ532から入力された2つのカウント数の差分を計算して、有効画像領域におけるカラー画素カウント数を求め、閾値比較を行うことで原稿がカラー原稿か白黒原稿かを判定し、判定結果を出力する。閾値THcolor_dとしては、例えば、入力原稿に対して1センチ角程度の大きさの画素数を用いる。閾値THcolor_dの値は、画像入力装置3の解像度により異なるので、解像度に応じて設定する。例えば、解像度が1200dpiの場合、THcolor_d=240000程度の値に設定する。そして、閾値THcolor_d以上ならば、カラー原稿であると判定し、閾値THcolor_dより小さければ白黒原稿であると判定する。
The color original determination unit 535 receives the effective image area information from the CPU 531, and based on this information, the color pixel count number N1 in the line immediately before the effective image area of the corresponding column and the color in the rear end line of the effective image area. The pixel
有効画像領域11〜13の集計については、図15のようにカラム毎にライン単位のカウント数が格納されている場合、以下の式のように集計する。 Regarding the totaling of the effective image areas 11 to 13, when the count number in units of lines is stored for each column as shown in FIG. 15, the totaling is performed according to the following formula.
有効画像領域11におけるカラー画素カウント数=N(A,n)+N(B,n)+N(C,n)+N(D,n)+N(E,n) Color pixel count in effective image area 11 = N (A, n) + N (B, n) + N (C, n) + N (D, n) + N (E, n)
有効画像領域12におけるカラー画素カウント数=N(B,b)−N(B,a−1)+N(B,d)−N(B,c−1)+N(C,b)−N(C,a−1)+N(C,d)−N(C,c−1)+N(D,b)−N(D,a−1)+N(D,d)−N(D,c−1) Color pixel count in effective image area 12 = N (B, b) -N (B, a-1) + N (B, d) -N (B, c-1) + N (C, b) -N (C , A-1) + N (C, d) -N (C, c-1) + N (D, b) -N (D, a-1) + N (D, d) -N (D, c-1)
有効画像領域13におけるカラー画素カウント数=N(B,b)−N(B,a−1)+N(B,d)−N(B,c−1)+N(D,b)−N(D,a−1)+N(D,d)−N(D,c−1) Number of color pixel counts in the effective image area = N (B, b) −N (B, a−1) + N (B, d) −N (B, c−1) + N (D, b) −N (D , A-1) + N (D, d) -N (D, c-1)
上記式において、a〜d,nは図13及び図14に示したライン、A〜Eは図15に示したカラムを表しており、Nはあるラインまでのラインの各カラムにおける画素のカウント数を表している。 In the above formula, a to d and n represent the lines shown in FIGS. 13 and 14, A to E represent the columns shown in FIG. 15, and N represents the number of pixels counted in each column of the lines up to a certain line. Represents.
上記の例では、原稿全体についてカラー画素数を集計しているが、有効画像領域12や有効画像領域13の場合、更に分割された有効画像領域毎にカウント数を集計するようにしてもよい。例えば、有効画像領域12を分割した2つの有効画像領域12A,12Bについては、下記のようになる。 In the above example, the number of color pixels is totalized for the entire document. However, in the case of the effective image area 12 and the effective image area 13, the count number may be totalized for each divided effective image area. For example, the two effective image areas 12A and 12B obtained by dividing the effective image area 12 are as follows.
有効画像領域12Aにおけるカラー画素カウント数=N(B,b)−N(B,a−1)+N(C,b)−N(C,a−1)+N(D,b)−N(D,a−1) Color pixel count in effective image area 12A = N (B, b) -N (B, a-1) + N (C, b) -N (C, a-1) + N (D, b) -N (D , A-1)
有効画像領域12Bにおけるカラー画素カウント数=N(B,d)−N(B,c−1)+N(C,d)−N(C,c−1)+N(D,d)−N(D,c−1) Color pixel count in effective image area 12B = N (B, d) −N (B, c−1) + N (C, d) −N (C, c−1) + N (D, d) −N (D , C-1)
以下、カラム毎の判定結果を用いて実行する処理の内容について説明する。図16は原稿読取時の処理手順を説明するフローチャートである。原稿のスキャンが開始され、処理対象の画像データが入力された場合、ACS判定処理部53は上述した方法を用いてカラム毎にライン単位で判定結果を求める(ステップS101)。そして、原稿読取時の設定により印刷処理が要求されているか否かを判断する(ステップS102)。
Hereinafter, the content of the process performed using the determination result for every column is demonstrated. FIG. 16 is a flowchart for explaining a processing procedure during document reading. When scanning of a document is started and image data to be processed is input, the ACS
印刷処理が要求されていると判断した場合(S102:YES)、設定された有効画像領域毎にカラー画素カウント数を集計し、有効画像領域に対する判別結果を求める(ステップS103)。そして、属性判別に基づいた画像処理を行い(ステップS104)、印刷処理を実行する(ステップS105)。 When it is determined that the printing process is requested (S102: YES), the color pixel count is added up for each set effective image area, and the determination result for the effective image area is obtained (step S103). Then, image processing based on attribute discrimination is performed (step S104), and printing processing is executed (step S105).
また、ステップS102において、印刷処理が要求されていないと判断した場合(S102:NO)、原稿読取時の設定によりファイリング処理が要求されているか否かを判断する(ステップS106)。 If it is determined in step S102 that printing processing is not requested (S102: NO), it is determined whether filing processing is requested according to the setting at the time of document reading (step S106).
ファイリング処理が要求されていると判断した場合(S106:YES)、画像データ及び判別結果を図に示していないHDDなどに格納する(ステップS107,S108)。また、ステップS106でファイリング処理が要求されていないと判断した場合(S106:NO)、本フローチャートによる処理を終了する。 If it is determined that the filing process is requested (S106: YES), the image data and the determination result are stored in an HDD or the like not shown (steps S107 and S108). If it is determined in step S106 that the filing process is not requested (S106: NO), the process according to this flowchart is terminated.
図17は再印刷時の処理手順を説明するフローチャートである。まず、再印刷時の設定に応じて有効画像領域に対する判別結果を求め(ステップS111)、属性判別に基づいた画像処理を行う(ステップS112)。次いで、画像処理された画像に基づいて印刷処理を実行する(ステップS113)。 FIG. 17 is a flowchart for explaining the processing procedure during reprinting. First, a determination result for the effective image area is obtained according to the setting at the time of reprinting (step S111), and image processing based on attribute determination is performed (step S112). Next, print processing is executed based on the image processed image (step S113).
なお、本実施の形態では、ライン単位のカウント数からカラー原稿か白黒原稿かを判定する処理をカラー原稿判定部535で行う構成としたが、CPU531で行う構成としてもよい。この場合のACS判定処理部53の構成は図8に示したものと同様である。
In the present embodiment, the color original determination unit 535 performs the process of determining whether the original is a color original or a black and white original from the line-unit count. However, the CPU 531 may be configured to perform the process. The configuration of the ACS
実施の形態3.
ライン単位のカウント数の生成方法及び集計方法として、以下で説明する方法を用いることも可能である。
The method described below can also be used as a method of generating and counting the count number in units of lines.
カラー画素カウント部534は、予め設定される画像データの各有効画像領域のそれぞれに対して、カラー画素判定部533から入力されるカラー画素フラグがカラーであることを示していればカウント数を1インクリメントし、カラーでないことを示していればカウント数はそのままとする。1ラインのカウントを行うごとにメモリ532へ現在までのカラー画素カウント数を出力する。このとき、カウンタの初期化は原稿読取開始位置で行い、ライン単位毎には行わない。カラー画素のカウント数は、常に原稿読込開始ラインからの総和とする。
The color pixel counting unit 534 sets the count number to 1 if each color image flag input from the color
なお、有効画像領域については、スキャン時に選択されるモードや再処理時に選択可能なモードによって決められる。仮に図12〜図14に示したような有効画像領域11〜13までのモードが選択可能であるとした場合、図18に示すように3つの有効画像領域に対するライン単位のカウント数を並行して生成し、メモリ532に格納する。
The effective image area is determined by a mode selected at the time of scanning and a mode selectable at the time of reprocessing. If it is assumed that the modes of the effective image areas 11 to 13 as shown in FIGS. 12 to 14 can be selected, the counts in units of lines for the three effective image areas are set in parallel as shown in FIG. It is generated and stored in the
メモリ532には、カラー画素カウント数がライン単位で順次格納される。また、カラー画素判定部533より要求されたラインのカウント数をカラー原稿判定部535に出力する。
In the
カラー原稿判定部535では、CPU531から有効画像領域情報を受け取り、この情報に基づき、対応する有効画像領域の1つ前のラインにおけるカラー画素カウント数と有効画像領域の後端ラインにおけるカラー画素カウント数とをメモリ532に要求する。メモリ532から入力された2つのカウント数の差分を計算して、有効画像領域におけるカラー画素カウント数を求め、閾値比較を行うことで原稿がカラー原稿か白黒原稿かを判定し、判定結果を出力する。閾値THcolor_dとしては、例えば、入力原稿に対して1センチ角程度の大きさの画素数を用いる。閾値THcolor_dの値は、画像入力装置の解像度により異なるので、解像度に応じて設定する。そして、閾値THcolor_d以上ならば、カラー原稿であると判定し、閾値THcolor_dより小さければ白黒原稿であると判定する。
The color original determination unit 535 receives the effective image area information from the CPU 531, and based on this information, the color pixel count number in the line immediately before the corresponding effective image area and the color pixel count number in the rear end line of the effective image area. To the
有効画像領域11〜13の集計については、例えば、図18のようにライン単位のカウント数が格納されている場合、以下の式のように集計する。 Regarding the totaling of the effective image areas 11 to 13, for example, when the number of counts in units of lines is stored as shown in FIG. 18, the totaling is performed according to the following formula.
有効画像領域11におけるカラー画素カウント数=N(Reg1,n)
有効画像領域12におけるカラー画素カウント数=N(Reg2,b)−N(Reg2,a−1)+N(Reg2,d)−N(Reg2,c−1)
有効画像領域13におけるカラー画素カウント数=N(Reg3,b)−N(Reg3,a−1)+N(Reg3,d)−N(Reg3,c−1)
Color pixel count in effective image area 11 = N (Reg1, n)
Color pixel count in effective image area 12 = N (Reg2, b) −N (Reg2, a−1) + N (Reg2, d) −N (Reg2, c−1)
Color pixel count in effective image area 13 = N (Reg3, b) -N (Reg3, a-1) + N (Reg3, d) -N (Reg3, c-1)
なお、本実施の形態では、ライン単位のカウント数からカラー原稿か白黒原稿かを判定する処理をカラー原稿判定部535で行う構成としたが、CPU531で行う構成としてもよい。この場合のACS判定処理部53の構成は図8に示したものと同様である。
In the present embodiment, the color original determination unit 535 performs the process of determining whether the original is a color original or a black and white original from the line-unit count. However, the CPU 531 may be configured to perform the process. The configuration of the ACS
また、上記では、カラー原稿か白黒原稿であるかの判定を行う例を示しているが、後述する原稿種別判定処理、下地判定処理に適用してもよく、あるいは、上記処理を適宜組み合わせて処理に適用するようにしてもよい。 In the above description, an example of determining whether the original is a color original or a black and white original is shown. However, the present invention may be applied to an original type determination process and a background determination process, which will be described later, or a combination of the above processes. You may make it apply to.
実施の形態4.
図19は本実施の形態に係る画像処理装置を備える画像処理システムの内部構成を説明するブロック図である。実施の形態4に係る画像処理システムは、操作パネル1、画像入力装置3、画像処理装置5B、画像出力装置7を備える。画像処理装置5B以外の構成については実施の形態1と全く同様であり、それらの説明については省略することとする。
FIG. 19 is a block diagram illustrating an internal configuration of an image processing system including the image processing apparatus according to the present embodiment. The image processing system according to the fourth embodiment includes an
画像処理装置5Bは、実施の形態1で説明した画像処理装置5AのACS判定処理部53に代えて原稿種別判定部54を備える。図20は原稿種別判定部54の内部構成を示すブロック図である。原稿種別判定部54は、CPU541、メモリ542、特徴量算出部543、判別結果集計部544、原稿判定部545を備える。
The
特徴量算出部543は、入力された画像データを画素単位(またはブロック単位)で繁雑度や反転回数などの原稿の属性を判定するための特徴量を算出し、閾値処理等により画素の判別を行い、判別結果を判別結果集計部544に出力する。特徴量算出部543で生成される判別結果は1つでもよいし、複数としてもよい。例えば、7×7マスクに対する繁雑度が閾値以上であれば文字候補画素とし、そうでなければ文字候補画素ではないという判別結果を出力するとともに、7×7マスクに対する反転回数が閾値以下であれば下地候補画素とし、そうでなければ下地候補画素ではないという判別結果を出力してもよい。
The feature
判別結果集計部544は特徴量算出部543から入力される判別結果毎にカウント数を1インクリメントする。このとき、判別結果の値そのものをカウント数として加算してもよいし、判別結果をデータ圧縮した値(例えば、量子化値や対数変換値)をカウント数として加算してもよい。1ラインのカウントを行うごとにメモリ部へ現在までの判別結果カウント数を出力する。この時、カウンタの初期化は原稿開始位置で行い、ライン単位毎には行わない。常に原稿読込開始位置からの総和とする。
The discrimination
メモリ542は、ライン単位で判別結果カウント数を順次メモリに格納する。また、原稿判定部545より要求されたラインのカウント数を原稿判定部545に出力する。原稿判定部545では、CPU541から有効画像領域情報を受け取り、この情報に基づき、有効画像領域の一つ前のラインにおける判別結果カウント数と有効画像領域の後端ラインにおける判別結果カウント数をメモリ542に要求する。メモリ542から入力された2つのカウント数の差分を計算して、有効画像領域における判別結果カウント数を求め、閾値比較を行うことで原稿がどのような原稿であるかを判定し、判定結果を出力する。
The
原稿種別の判定には、特開2002−232708号公報に記載されている判定方法を用いることができる。図21は特徴量算出部543及び判別結果集計部544の詳細を示すブロック図である。
For the determination of the document type, a determination method described in Japanese Patent Application Laid-Open No. 2002-232708 can be used. FIG. 21 is a block diagram showing details of the feature
特徴量算出部543は、最小濃度値算出部5431、最大濃度値算出部5432、最大濃度差算出部5433、総和濃度繁雑度算出部5434、判定領域設定部5435、最大濃度差閾値設定部5435a、総和濃度繁雑度閾値設定部5435b、文字・網点判定部5436、文字・網点判定閾値設定部5436a、下地・印画紙判定部5437、下地・印画紙判定閾値設定部5437aを備える。
The feature
最小濃度値算出部5431は不図示の信号変換部によって変換されるCMY信号を基に、注目画素を含むn×m(例えば、5×15画素)のブロックにおける濃度最小値を算出し、最大濃度値算出部5432は入力されるCMY信号を基に、注目画素を含むn×m(例えば、5×15画素)のブロックにおける濃度最大値を算出する。最大濃度差算出部5433は、最小濃度値算出部5431及び最大濃度値算出部5432で算出された最小濃度値及び最大濃度値を用いて最大濃度差を算出する。
The minimum density
総和濃度繁雑度算出部5434は、上記n×m(例えば、5×15画素)のブロックにおいて、主走査方向、副走査方向の隣接する画素の濃度差の絶対値の総和をそれぞれ求め、主走査方向、副走査方向の総和の和を算出する。判定領域設定部5435は、最大濃度差算出部5433で算出される最大濃度差、最大濃度差閾値設定部5435aにて設定される最大濃度差についての閾値、総和濃度繁雑度算出部5434で算出される総和濃度繁雑度、及び総和濃度繁雑度閾値設定部5435bにて設定される総和濃度繁雑度についての閾値に基づき、下地・印画紙(写真)領域、文字・網点領域に分離する。
The total density
文字・網点判定部5436は、判定領域設定部5435において文字・網点領域に分離された領域内の画素が文字であるか、又は網点であるかの判定を行う。判定には文字・網点判定閾値設定部5436aにて設定される閾値が用いられる。結果は、判別結果集計部544へ出力される。判別結果集計部544の文字画素集計部5441は文字と判定された画素を集計し、網点画素集計部5442は網点と判定された画素を集計する。
The character / halftone
下地・印画紙判定部5437は、判定領域設定部5435において下地・印画紙領域に分離された領域内の画素が下地であるか、又は印画紙(印画紙写真)であるかの判定を行う。判定には下地・印画紙判定閾値設定部5437aにて設定される閾値が用いられる。結果は、判別結果集計部544へ出力される。下地画素計数部5322は下地と判定された画素を集計し、印画紙画素計数部5323は印画紙と判定された画素を集計する。
The background / photographic
図22は原稿種別判定部54が実行する処理の手順を説明するフローチャートである。CPU541は、まず、メモリに記憶されているカウント数などの初期化を行う(ステップS31)。そして、画像入力装置3から通知される原稿の読取開始位置及び読取終了位置の情報から原稿サイズを認識し、操作パネル1等から入力される、原稿に対して画像処理を行うための拡大率や処理対象位置などの情報を取得、解析し、有効画像領域情報として認識する(ステップS32)。
FIG. 22 is a flowchart for explaining a procedure of processing executed by the document
次いで、特徴量算出部543は、1つのラインを構成する画素単位で特徴量を算出し(ステップS33)、画素の属性を判別する(ステップS34)。そして、判別結果に応じてカウンタの値を1つだけインクリメントし(ステップS35)、1ラインの処理が終了したか否かを判断する(ステップS36)。1ラインの処理が終了していないと判断した場合(S36:NO)、処理をステップS33へ戻す。
Next, the feature
1ラインの処理が終了したと判断した場合(S36:YES)、判別結果(処理を行ったラインまでの判別結果)をメモリ542に出力する(ステップS37)。次いで、CPU541は有効画像領域の後端ラインであるか否かを判断し(ステップS38)、後端ラインでないと判断した場合(S38:NO)、次のラインの処理を行って(ステップS39)、処理をステップS33へ戻す。
If it is determined that the processing for one line has been completed (S36: YES), the determination result (the determination result up to the processed line) is output to the memory 542 (step S37). Next, the
現在のラインが有効画像領域の後端ラインであると判断した場合(S38:YES)、有効画像領域の1つ前のラインの判別結果と有効画像領域の後端ラインにおける判別結果の差分(文字と判定された画素数、網点と判定された画素数、下地と判定された画素数、印画紙と判定された画素数の差分)を算出し(ステップS40)、算出した差分に基づいて原稿種別の判別を行う(ステップS41)。例えば、上記各領域毎の画素数について有効画像領域の全画素数に対する比率を求め、文字領域、網点領域、印画紙写真領域、下地領域に対して定められている閾値と比較して有効画像領域の原稿種別の判定を行う。例えば、文字と判定された画素数、網点と判定された画素数の比率が何れもそれぞれの閾値以上のとき、文字印刷写真原稿であると判定する。 When it is determined that the current line is the rear end line of the effective image area (S38: YES), the difference (character) between the determination result of the previous line of the effective image area and the determination result of the rear end line of the effective image area (The difference between the number of pixels determined to be halftone dots, the number of pixels determined to be background, the number of pixels determined to be photographic paper) (step S40), and based on the calculated difference The type is determined (step S41). For example, the ratio of the number of pixels in each area to the total number of pixels in the effective image area is obtained, and the effective image is compared with the threshold values set for the character area, halftone area, photographic paper photograph area, and background area The document type of the area is determined. For example, when the ratio between the number of pixels determined to be a character and the number of pixels determined to be a halftone dot is equal to or greater than the respective threshold values, it is determined that the document is a character-printed photographic document.
上記閾値は、次のように設定することができる。例えば、文字、網点、印画紙写真の順に検出精度が高いとすると、文字と判定された画素の比率が有効画像領域の全画素数の30%の場合には文字原稿、網点と判定された画素の比率が有効画像領域の全画素数の20%の場合には網点原稿(印刷写真原稿)、印画紙写真と判定された画素の比率が有効画像領域の全画素数の10%の場合には印画紙写真原稿であると判定する。 The threshold value can be set as follows. For example, assuming that the detection accuracy is higher in the order of characters, halftone dots, and photographic paper photographs, if the ratio of pixels determined to be characters is 30% of the total number of pixels in the effective image area, it is determined as a character document and halftone dots. If the ratio of the detected pixels is 20% of the total number of pixels in the effective image area, the ratio of the pixels determined to be halftone original (printed photo original) and photographic paper photograph is 10% of the total number of pixels in the effective image area. In this case, it is determined that the document is a photographic paper photo original.
なお、本実施の形態では、原稿種別の判定を原稿判定部545で行う構成としたが、CPU541で行う構成としてもよい。図23は原稿種別判定部54の変形例を示すブロック図である。
In the present embodiment, the document type is determined by the
実施の形態5.
本実施の形態では、下地判定処理への適用例について説明する。図24は図1に示した画像処理装置5Aにおける入力階調補正部55の内部構成を示すブロック図である。入力階調補正部55は、CPU551、メモリ552、ヒストグラム処理部553、階級値集計部554、下地判定部555を備える。
In this embodiment, an application example to the background determination process will be described. FIG. 24 is a block diagram showing an internal configuration of the input
CPU551は、画像入力装置3から通知される原稿の読取開始位置や読取終了位置の情報から原稿サイズを認識する。また、操作パネル1等から入力される、原稿に対して画像処理を行うための拡大率や処理対象位置などの情報を取得、解析し、有効画像領域情報として認識する。
The
ヒストグラム処理部553は、入力された画像データを画素単位(またはブロック単位)で濃度値を閾値判定処理することでヒストグラムのどの階級値に含まれるかを判定し、階級値を階級値集計部554へ出力する。このとき、予め下地であると判断される階級値を定めておき、該当する階級値のみを階級値集計部554へ出力する。すなわち、下地候補の画素を抽出する。
The
階級値集計部554は、ヒストグラム処理部553から入力される、下地候補の画素の階級値をカウント処理し、入力された階級値に相当するカウント数を1インクリメントする。1ラインのカウントを行うごとにメモリ552へ現在までの各級に対するカウント数を出力する。この時、カウンタの初期化は原稿開始位置で行い、ライン単位毎には行わない。常に原稿読込開始位置からの総和とする。
The class value totaling unit 554 counts the class value of the background candidate pixels input from the
メモリ552では、ライン単位でヒストグラムの各階級に対するカウント数を順次メモリ552に格納する。また、下地判定部555より要求されたラインのカウント数を下地判定部555に出力する。
In the
下地判定部555では、CPU551から有効画像領域情報を受け取り、この情報に基づき、有効画像領域の一つ前のラインにおけるヒストグラムの各階級値に対するカウント数と有効画像領域の後端ラインにおけるヒストグラムの各階級値に対するカウント数をメモリ552に要求する。メモリ552から入力された2組のカウント数の差分をそれぞれの階級値に対して計算して、有効画像領域におけるヒストグラムの各階級値に対するカウント数を求め、色成分毎に閾値との比較を行うことで原稿の下地を判定し、判定結果を出力する。下地であると判断される階級値、カウント数の比較を行う閾値は、様々な画像サンプルを用いて、適切に下地が抽出できるように定めておく。
The
上記では、下地であると判断される階級値についてのみカウントを行っているが、全ての階級値についてカウントを行い、下地であると判断される階級値についてのみカウント値の差分を求め、下地の判定を行うようにしてもよい。 In the above, only the class values determined to be the background are counted, but all the class values are counted, and the difference of the count values is obtained only for the class values determined to be the background. You may make it perform determination.
図25は入力階調補正部55が実行する処理の手順を説明するフローチャートである。CPU551は、まず、メモリに記憶されているカウント数などの初期化を行う(ステップS51)。そして、画像入力装置3から通知される原稿の読取開始位置及び読取終了位置の情報から原稿サイズを認識し、操作パネル1等から入力される、原稿に対して画像処理を行うための拡大率や処理対象位置などの情報を取得、解析し、有効画像領域情報として認識する(ステップS52)。
FIG. 25 is a flowchart for explaining the procedure of processing executed by the input
次いで、ヒストグラム処理部553は、1つのラインを構成する画素単位で処理を行い、色成分毎に画素を階級値に分類し(ステップS53)、階級値に相当するカウント数を1だけインクリメントする(ステップS54)。
Next, the
CPU551は、1ラインの処理が終了したか否かを判断し(ステップS55)、1ラインの処理が終了していないと判断した場合(S55:NO)、処理をステップS53へ戻す。
The
1ラインの処理が終了したと判断した場合(S55:YES)、階級値のカウント数(処理を行ったラインまでの階級値のカウント数)を色成分毎にメモリ552に出力する(ステップS56)。次いで、CPU541は有効画像領域の後端ラインであるか否かを判断し(ステップS57)、後端ラインでないと判断した場合(S57:NO)、次のラインの処理を行って(ステップS58)、処理をステップS53へ戻す。
If it is determined that the processing for one line has been completed (S55: YES), the count value count value (the count value count value up to the processed line) is output to the
現在のラインが有効画像領域の後端ラインであると判断した場合(S57:YES)、有効画像領域の1つ前のラインの階級値のカウント数と有効画像領域の後端ラインにおける階級値のカウント数の差分を色成分毎に算出する(ステップS59)。そして、カウント数が閾値以上となる色成分で、最も大きい階級値(RGB信号の場合)の値を下地であると判定する(ステップS60)。そして、下地の判別結果を基に、下地除去処理を行う。 When it is determined that the current line is the rear end line of the effective image area (S57: YES), the count value of the class value of the line immediately before the effective image area and the class value of the rear end line of the effective image area The difference between the counts is calculated for each color component (step S59). Then, it is determined that the value of the largest class value (in the case of an RGB signal) among the color components whose count number is equal to or greater than the threshold is the background (step S60). Then, a background removal process is performed based on the background discrimination result.
下地の判別方法として、例えば、特開2000−354167号公報に記載されている以下の方法を用いても良い。すなわち、まず、入力画像データより、G信号を補色反転した信号であるM信号を抽出し、例えば256段階の濃度を16分割してヒストグラムを作成する。下地と判断される濃度値の最大値(第1の閾値)以下の濃度区分(階級値)についてカウントを行い、カウント値の差分を求め、差分が閾値以上の濃度区分を下地として抽出する。そして、抽出された濃度区分値に対応する補正量テーブルを選択し、下地除去処理を行う。なお、G信号ではなく、輝度信号(255−Y、ここでYはYj=0.30Rj+0.59Gi+0.11Bj(Rj,Gj,Bj:各画素の色成分))を用いて行ってもよい。 For example, the following method described in Japanese Patent Laid-Open No. 2000-354167 may be used as a method for determining the background. That is, first, an M signal which is a signal obtained by inverting the complementary color of the G signal is extracted from input image data, and a histogram is created by dividing, for example, 256 levels of density into 16 parts. Counting is performed for density sections (class values) that are equal to or lower than the maximum density value (first threshold value) determined to be the background, and a difference between the count values is obtained, and density sections with the difference equal to or greater than the threshold are extracted as the background. Then, a correction amount table corresponding to the extracted density division value is selected, and background removal processing is performed. Instead of the G signal, a luminance signal (255-Y, where Y is Yj = 0.30Rj + 0.59Gi + 0.11Bj (Rj, Gj, Bj: color components of each pixel)) may be used.
なお、本実施の形態では、下地の判定を下地判定部555で行う構成としたが、CPU551で行う構成としてもよい。図26は入力階調補正部55の変形例を示すブロック図である。
In this embodiment, the background determination is performed by the
以上では、オートカラーセレクト処理、原稿種別の判別処理、下地判定処理を個別に行う例を説明したが、これらの処理を適宜組み合わせて行うようにしても良い。例えば、オートカラーセレクト処理と原稿種別の判別処理を並列して行い、カラー、モノクロ原稿の判別結果と原稿種別の判別結果を組み合わせて出力するようにしても良い。さらに、オートカラーセレクト処理、原稿種別の判別処理を行った後、下地判定処理を行うようにしても良い。この時、原稿種別の判定結果に基づいて、例えば、文字原稿が含まれる場合(文字原稿、文字印刷写真原稿、文字印画紙写真原稿など)は、下地判定処理を行い、文字原稿が含まれない場合(印刷写真原稿、印画紙写真原稿など)、下地判定処理を行わないようにしても良い。文字原稿が含まれる場合、通常、下地が存在するが、文字が含まれない写真原稿などでは、下地がほとんど含まれないためである。
また、オートカラーセレクト処理、原稿種別の判別処理、下地判定処理の処理順序は入れ替わってもよいし、一部またはすべてをCPUで処理を行うようにしても良い。
In the above, an example in which the auto color selection process, the document type determination process, and the background determination process are performed individually has been described. However, these processes may be appropriately combined. For example, the auto color selection process and the document type determination process may be performed in parallel, and the color and monochrome document determination result and the document type determination result may be combined and output. Further, the background determination process may be performed after the auto color selection process and the document type determination process. At this time, based on the determination result of the document type, for example, when a character document is included (a character document, a character-printed photo document, a character photographic paper photo document, etc.), the background determination process is performed and the character document is not included. In some cases (printed photo original, photographic paper photo original, etc.), the background determination process may not be performed. This is because a text document usually includes a background, but a photo document or the like that does not include characters contains almost no background.
The processing order of the auto color selection process, the document type determination process, and the background determination process may be switched, or a part or all of the processes may be performed by the CPU.
実施の形態6.
本実施の形態では、画像読取装置への適用例について説明する。図27は本実施の形態に係る画像読取装置の内部構成を示すブロック図である。本実施の形態に係る画像読取装置9は画像読取部91及び画像処理部92を備える。画像読取部91は、原稿の画像を光学的に読み取るために走査ユニット、結像レンズ、CCDラインセンサ、給送タイミングセンサなどを備える。
In this embodiment, an application example to an image reading apparatus will be described. FIG. 27 is a block diagram showing an internal configuration of the image reading apparatus according to the present embodiment. The image reading device 9 according to the present embodiment includes an image reading unit 91 and an
画像処理部92は、AD変換部921、シェーディング補正部922、原稿種別判定部923、入力階調補正部924を備える。AD変換部921は、画像読取部91にて読み取ったアナログ信号をデジタル信号に変換するものである。シェーディング補正部922は、画像読取部91の照明系・結像系・撮像系で生じる各種歪みを取り除くためのシェーディング補正を行うものである。
The
原稿種別判定部923では、シェーディング補正部922にて各種の歪みが取り除かれたRGB信号(RGBの反射率信号)に対して、濃度信号などカラー画像処理装置に採用されている画像処理システムの扱い易い信号に変換すると共に、入力された原稿画像が、文字原稿、印刷写真写原稿、印画紙写真であるか、あるいはそれらを組み合わせた文字/印刷写真原稿であるかなど原稿種別の判別を行なうものである。
The document
入力階調補正部924は、カラーバランスを整えると同時に、下地の検出および下地濃度の除去やコントラストなどの画質調整処理を施すものである。
The input
画像処理部92にて画像処理が施されたRGB信号および原稿種別判別信号は、コンピュータやプリンタに入力され原稿種別に応じた処理がなされる。
The RGB signal and the document type determination signal subjected to image processing by the
なお、上記では原稿種別判定部923を備える例を示しているが、原稿種別判定部の代わりに実施の形態1で説明したようなACS判定処理部を備えるようにしても良い。又は、ACS判定処理を原稿種別判定部923に組み込み、さらに、入力階調補正部924で下地判定を行い、その結果も合わせて出力するようにしても良い。さらに、画像読取装置は領域分離処理部を備える構成であっても良い。
Although an example in which the document
実施の形態7.
実施の形態1及び2では、各処理をハードウェアにより実現する構成としたが、ソフトウェアの処理により本発明を実現する構成としてもよい。
In the first and second embodiments, each process is realized by hardware. However, the present invention may be realized by software processing.
図28は本発明のコンピュータプログラムがインストールされた画像処理装置の内部構成を説明するブロック図である。図中100は、本実施の形態に係る画像処理装置であり、具体的にはパーソナルコンピュータ、ワークステーション等である。画像処理装置100はCPU101を備えており、CPU101にはROM103、RAM104、ハードディスク105、外部記憶部106、入力部107、表示部108、通信ポート109等のハードウェアがバス102を介して接続されている。CPU101は、ROM103に予め格納された制御プログラムに従って前述のハードウェア各部を制御する。
FIG. 28 is a block diagram illustrating the internal configuration of an image processing apparatus in which the computer program of the present invention is installed. In the figure,
RAM104は前述の制御プログラム、又は本発明に係るコンピュータプログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)の実行中に生成される各種データを一時的に記憶する揮発性のメモリである。ハードディスク105は、磁気記録媒体を有する記憶手段であり、本発明のコンピュータプログラムのプログラムコード等が記憶される。外部記憶部106は、本発明のコンピュータプログラムのプログラムコードを記録した記録媒体Mからプログラムコードを読取るための読取装置を備えている。記録媒体Mとしては、FD(Flexible Disk)、CD−ROM等を用いることができる。外部記憶部106によって読取られたプログラムコードはハードディスク105に格納される。CPU101はハードディスク105に格納された本発明に係るプログラムコードをRAM104上にロードして実行することにより、装置全体を、実施の形態1乃至5で説明したような画像処理を実現する装置として機能させる。
The RAM 104 is a volatile memory that temporarily stores various data generated during the execution of the above-described control program or the program code (execution format program, intermediate code program, source program) of the computer program according to the present invention. . The
入力部107は、外部から画像データを取得するためのインタフェースとして機能する。入力部107には、例えば、カラースキャナ装置などが接続される。表示部108は、処理対象の画像データ、画像処理中の画像データ、画像処理後の画像データ等を表示するためのインタフェースとして機能する。表示部108に液晶ディスプレイ装置などの外部表示装置を接続して画像データを表示する構成であってもよく、表示部108自身が表示装置を備え、画像データを表示する構成であってもよい。通信ポート109は、外部にプリンタ150を接続するためのインタフェースである。画像処理された画像データをプリンタ150にて印刷する場合、画像処理装置100は、前記画像データを基にプリンタ150にてデコード可能なプリントデータを生成し、生成したプリントデータをプリンタ150へ送信する。
The
なお、本実施の形態では、各種演算をCPU101が実行する構成としたが、画像処理に係る演算を行う専用のチップを別途設け、CPU101からの指示により演算を行う構成としてもよい。
In the present embodiment, the
また、本発明に係るコンピュータプログラムコードを記録する記録媒体Mとしては、前述したFD及びCD−ROMの他に、MO、MD、DVD等の光ディスク、ハードディスク等の磁気記録媒体、ICカード、メモリカード、光カード等のカード型記録媒体、マスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリの利用も可能である。また、インターネットを含む通信ネットワークを接続可能なシステム構成であることから、通信ネットワークから本発明に係るコンピュータプログラムコードをダウンロードするようにしてもよい。 As the recording medium M for recording the computer program code according to the present invention, in addition to the above-mentioned FD and CD-ROM, optical recording medium such as MO, MD, DVD, magnetic recording medium such as hard disk, IC card, memory card Further, it is also possible to use a semiconductor memory such as a card-type recording medium such as an optical card, a mask ROM, an EPROM (Erasable Programmable Read Only Memory), an EEPROM (Electrically Erasable Programmable Read Only Memory), a flash ROM, or the like. Further, since the system configuration is such that a communication network including the Internet can be connected, the computer program code according to the present invention may be downloaded from the communication network.
また、本発明のコンピュータプログラムは、単体のアプリケーションプログラム、ユーティリティプログラムとして提供される形態であってもよく、他のアプリケーションプログラム、ユーティリティプログラムに組み込み、そのプログラムの一部の機能として提供する形態であってもよい。例えば、その一形態としてプリンタドライバに組み込んで提供する形態が考えられる。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。 In addition, the computer program of the present invention may be provided as a single application program or utility program, or may be incorporated into another application program or utility program and provided as a partial function of the program. May be. For example, as one form, a form provided by being incorporated in a printer driver is conceivable. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.
53 ACS判定処理部
54 原稿種別判定部
55 入力階調補正部
531,541,551 CPU
532,542,552 メモリ
533 カラー画素判定部
534 カラー画素カウント部
535 カラー原稿判定部
543 特徴量算出部
544 判別結果集計部
545 原稿判定部
553 ヒストグラム処理部
554 階級値集計部
555 下地判定部
53 ACS
532, 542, 552
Claims (19)
判別対象の画像を複数の画素からなるライン毎に順次読み込み、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別して、属性の判別がなされた画素を計数し、前記画像について処理を施すべき領域を設定し、設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を算出し、算出した差分に基づいて前記領域の属性を判別し、判別結果に応じた処理を前記領域内の画像に対して施すことを特徴とする画像処理方法。 In an image processing method for determining an attribute of an image and performing processing according to the determination result,
The image to be discriminated is sequentially read for each line composed of a plurality of pixels, the feature amount representing the feature of the pixel constituting the read line is calculated, the attribute of the pixel is discriminated based on the calculated feature amount, and the attribute Count the pixels that have been determined, set the area to be processed for the image, and calculate the difference in the number of pixels for which the attribute has been determined from the lines immediately before and after the set area. And determining an attribute of the region based on the calculated difference, and performing processing according to the determination result on the image in the region.
判別対象の画像を複数の画素からなるライン毎に順次読み込み、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別して、属性の判別がなされた画素を主走査方向に分割されたカラム毎に計数し、前記画像について処理を施すべき領域を設定し、設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を、設定した領域に含まれるカラム毎に算出し、算出したカラム毎の差分の総和に基づいて前記領域の属性を判別し、判別結果に応じた処理を前記領域内の画像に対して施すことを特徴とする画像処理方法。 In an image processing method for determining an attribute of an image and performing processing according to the determination result,
The image to be discriminated is sequentially read for each line composed of a plurality of pixels, the feature amount representing the feature of the pixel constituting the read line is calculated, the attribute of the pixel is discriminated based on the calculated feature amount, and the attribute The discriminated pixels are counted for each column divided in the main scanning direction, the area to be processed is set for the image, and the attributes calculated from the line immediately before and the line at the rear end of the set area are set. The difference in the number of pixels determined is calculated for each column included in the set area, the attribute of the area is determined based on the calculated sum of the differences for each column, and the process according to the determination result is performed in the area An image processing method characterized by being applied to an image in the image.
判別対象の画像を複数の画素からなるライン毎に順次読み込み、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別して、属性の判別がなされた画素を主走査方向に予め設定された複数の有効画像領域毎に計数し、前記画像について処理を施すべき領域を設定し、設定した領域に対応する計数結果に対して設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を算出し、算出した差分の総和に基づいて前記領域の属性を判別し、判別結果に応じた処理を前記領域内の画像に対して施すことを特徴とする画像処理方法。 In an image processing method for determining an attribute of an image and performing processing according to the determination result,
The image to be discriminated is sequentially read for each line composed of a plurality of pixels, the feature amount representing the feature of the pixel constituting the read line is calculated, the attribute of the pixel is discriminated based on the calculated feature amount, and the attribute The determined pixels are counted for each of a plurality of effective image areas set in advance in the main scanning direction, an area to be processed for the image is set, and an area set for the count result corresponding to the set area The difference between the number of pixels for which the attribute has been determined from each of the immediately preceding line and the rearmost line is calculated, the attribute of the region is determined based on the total of the calculated differences, and processing according to the determination result Is applied to the image in the region.
判別対象の画像を複数の画素からなるライン毎に順次読み込む手段と、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別する手段と、前記属性の判別がなされた画素を計数する手段と、前記画像について処理を施すべき領域を設定する手段と、設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を算出する手段と、算出した差分に基づいて前記領域の特徴を判別する手段と、該手段による判別結果に応じた処理を前記領域内の画像に対して施す手段とを備えることを特徴とする画像処理装置。 In an image processing apparatus that determines an attribute of an image and performs processing according to the determination result,
Means for sequentially reading an image to be discriminated for each line composed of a plurality of pixels; means for calculating a feature amount representing a feature of a pixel constituting the read line; and determining a pixel attribute based on the calculated feature amount; A means for counting the pixels for which the attribute has been determined, a means for setting a region to be processed for the image, and a determination of the attribute calculated from each of a line immediately before and a line at the rear end of the set region. Means for calculating the difference in the number of pixels made, means for determining the characteristics of the region based on the calculated difference, and means for performing processing on the image in the region according to the determination result by the means An image processing apparatus comprising:
判別対象の画像を複数の画素からなるライン毎に順次読み込む手段と、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別する手段と、前記属性の判別がなされた画素を主走査方向に分割されたカラム毎に計数する手段と、前記画像について処理を施すべき領域を設定する手段と、設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を、設定した領域に含まれるカラム毎に算出する手段と、算出したカラム毎の差分の総和に基づいて前記設定した領域の特徴を判別する手段と、該手段による判別結果に応じた処理を前記設定した領域内の画像に対して施す手段とを備えることを特徴とする画像処理装置。 In an image processing apparatus that determines an attribute of an image and performs processing according to the determination result,
Means for sequentially reading an image to be discriminated for each line composed of a plurality of pixels; means for calculating a feature amount representing a feature of a pixel constituting the read line; and determining a pixel attribute based on the calculated feature amount; Means for counting the pixels for which the attribute has been discriminated for each column divided in the main scanning direction, means for setting an area to be processed for the image, lines immediately before and after the set area, Means for calculating the difference in the number of pixels for which the attribute is calculated from each of the lines for each column included in the set area, and the characteristics of the set area based on the calculated sum of the differences for each column. An image processing apparatus comprising: means for discriminating; and means for applying processing according to a discrimination result by the means to the image in the set area.
判別対象の画像を複数の画素からなるライン毎に順次読み込む手段と、読み込んだラインを構成する画素の特徴を表す特徴量を算出し、算出した特徴量に基づいて画素の属性を判別する手段と、前記属性の判別がなされた画素を主走査方向に予め設定された複数の有効画像領域毎に計数する手段と、前記画像について処理を施すべき領域を設定する手段と、設定した領域に対応する計数結果に対して設定した領域の直前のライン及び後端のラインの夫々から算出した属性の判別がなされた画素数の差分を算出する手段と、算出した差分の総和に基づいて前記設定した領域の特徴を判別する手段と、該手段による判別結果に応じた処理を前記領域内の画像に対して施す手段とを備えることを特徴とする画像処理装置。 In an image processing apparatus that determines an attribute of an image and performs processing according to the determination result,
Means for sequentially reading an image to be discriminated for each line composed of a plurality of pixels; means for calculating a feature amount representing a feature of a pixel constituting the read line; and determining a pixel attribute based on the calculated feature amount; A means for counting the pixels for which the attribute has been determined for each of a plurality of effective image areas preset in the main scanning direction, a means for setting an area to be processed for the image, and a corresponding area Means for calculating a difference in the number of pixels in which the attribute is calculated from each of the immediately preceding line and the trailing end line of the area set for the counting result, and the set area based on the total sum of the calculated differences An image processing apparatus comprising: means for discriminating a feature of the image; and means for performing processing according to a discrimination result by the means on the image in the area.
判別対象の画像を複数の画素からなるライン毎に順次読み込む手段と、読み込んだラインを構成する画素の特徴を表す複数の特徴量を算出し、算出した複数の特徴量に基づいて画素の複数の属性を判別する手段と、夫々属性の判別がなされた画素を計数する手段と、前記画像について処理を施すべき領域を設定する手段と、設定した領域の直前のライン及び後端のラインの夫々から算出した、夫々の属性の判別がなされた画素数の差分を算出する手段と、算出した差分に基づいて前記領域の複数の特徴を判別する手段と、該手段による判別結果に応じた処理を前記領域内の画像に対して施す手段とを備えることを特徴とする画像処理装置。 In an image processing apparatus that determines an attribute of an image and performs processing according to the determination result,
Means for sequentially reading the image to be discriminated for each line composed of a plurality of pixels, and calculating a plurality of feature amounts representing the features of the pixels constituting the read line, and calculating a plurality of pixel values based on the calculated plurality of feature amounts Means for determining the attribute, means for counting the pixels for which the attribute has been determined, means for setting an area to be processed for the image, and a line immediately before and a line at the rear end of the set area. Means for calculating the calculated difference in the number of pixels for which each attribute has been determined; means for determining a plurality of features of the region based on the calculated difference; and processing according to the determination result by the means An image processing apparatus comprising: means for applying to an image in a region.
コンピュータに、複数の画素からなるラインから該ラインを構成する画素の特徴を表す特徴量を算出させるステップと、コンピュータに、算出させた特徴量に基づいて画素の属性を判別させ、属性の判別がなされた画素を計数させるステップと、コンピュータに、前記画像について処理を施すべき領域を設定させるステップと、コンピュータに、設定させた領域の直前のライン及び後端のラインの夫々から算出させた属性の判別がなされた画素数の差分を算出させるステップと、コンピュータに、算出させた差分に基づいて前記領域の属性を判別させ、判別結果に応じた処理を前記領域内の画像に対して施させるステップとを有することを特徴とするコンピュータプログラム。 In a computer program that causes a computer to determine the attribute of an image and perform processing according to the determination result,
A step of causing a computer to calculate a feature amount representing a feature of a pixel constituting the line from a line composed of a plurality of pixels, causing the computer to determine a pixel attribute based on the calculated feature amount, and determining the attribute A step of counting the number of pixels made; a step of causing a computer to set an area to be processed for the image; and an attribute calculated from each of a line immediately before and a line at the rear end of the set area. A step of calculating a difference in the number of pixels determined, and a step of causing a computer to determine the attribute of the region based on the calculated difference and performing a process according to the determination result on the image in the region A computer program characterized by comprising:
コンピュータに、複数の画素からなるラインから該ラインを構成する画素の特徴を表す特徴量を算出させるステップと、コンピュータに、算出させた特徴量に基づいて画素の属性を判別させ、属性の判別がなされた画素を計数させるステップと、コンピュータに、前記画像について処理を施すべき領域を設定させるステップと、コンピュータに、設定させた領域の直前のライン及び後端のラインの夫々から算出させた属性の判別がなされた画素数の差分を算出させるステップと、コンピュータに、算出させた差分に基づいて前記領域の属性を判別させ、判別結果に応じた処理を前記領域内の画像に対して施させるステップとを有するコンピュータプログラムが記録されていることを特徴とするコンピュータでの読み取りが可能な記録媒体。 In a computer-readable recording medium in which a computer program for determining the attribute of an image and performing processing according to the determination result is recorded,
A step of causing a computer to calculate a feature amount representing a feature of a pixel constituting the line from a line composed of a plurality of pixels, causing the computer to determine a pixel attribute based on the calculated feature amount, and determining the attribute A step of counting the number of pixels made; a step of causing a computer to set an area to be processed for the image; and an attribute calculated from each of a line immediately before and a line at the rear end of the set area. A step of calculating a difference in the number of pixels determined, and a step of causing a computer to determine the attribute of the region based on the calculated difference and performing a process according to the determination result on the image in the region A computer-readable recording medium in which a computer program including:
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007236706A JP4465377B2 (en) | 2007-03-28 | 2007-09-12 | Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium |
US12/057,230 US8508823B2 (en) | 2007-03-28 | 2008-03-27 | Image processing method, image processing apparatus, image forming apparatus, and recording medium |
CN 200810088810 CN101277371B (en) | 2007-03-28 | 2008-03-28 | Image processing method, image processing apparatus, image forming apparatus, and recording device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007085875 | 2007-03-28 | ||
JP2007236706A JP4465377B2 (en) | 2007-03-28 | 2007-09-12 | Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008271488A true JP2008271488A (en) | 2008-11-06 |
JP4465377B2 JP4465377B2 (en) | 2010-05-19 |
Family
ID=39996350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007236706A Expired - Fee Related JP4465377B2 (en) | 2007-03-28 | 2007-09-12 | Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP4465377B2 (en) |
CN (1) | CN101277371B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013179408A (en) * | 2012-02-28 | 2013-09-09 | Brother Ind Ltd | Image processing apparatus and image processing program |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101763499B (en) * | 2008-12-25 | 2015-03-04 | 义隆电子股份有限公司 | Identification method for target image |
JP5220828B2 (en) * | 2010-11-11 | 2013-06-26 | シャープ株式会社 | Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, program, and recording medium |
CN102629466B (en) * | 2012-04-11 | 2014-04-16 | 南京巨鲨显示科技有限公司 | Adaptive correction method for color gray-scale image of display |
CN104316529A (en) * | 2014-11-18 | 2015-01-28 | 宁波江丰生物信息技术有限公司 | Full automatic real-time image quality evaluation method for digital pathological image scanning |
US11233922B2 (en) * | 2018-08-22 | 2022-01-25 | Kyocera Document Solutions Inc. | Image processing device having a function of automatically determining whether a document sheet is a color document or black and white document |
JP7378221B2 (en) * | 2019-04-17 | 2023-11-13 | シャープ株式会社 | Image processing device, image forming device, image reading device, control method, computer program, and recording medium |
CN111091532B (en) * | 2019-10-30 | 2023-07-18 | 中国四维测绘技术有限公司 | Remote sensing image color evaluation method and system based on multilayer perceptron |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04282968A (en) * | 1991-03-12 | 1992-10-08 | Mita Ind Co Ltd | Color type discrimination device for original |
JP2001111819A (en) * | 1999-10-08 | 2001-04-20 | Canon Inc | Image processing device and its method |
JP2002369012A (en) * | 2001-06-07 | 2002-12-20 | Canon Inc | Image processing apparatus and its method, and image processing system |
JP2003046771A (en) * | 2001-08-01 | 2003-02-14 | Konica Corp | Image processor, image processing method, and imaging apparatus |
JP2006270148A (en) * | 2005-03-22 | 2006-10-05 | Fuji Xerox Co Ltd | Image processing method, image processor and image forming apparatus |
-
2007
- 2007-09-12 JP JP2007236706A patent/JP4465377B2/en not_active Expired - Fee Related
-
2008
- 2008-03-28 CN CN 200810088810 patent/CN101277371B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04282968A (en) * | 1991-03-12 | 1992-10-08 | Mita Ind Co Ltd | Color type discrimination device for original |
JP2001111819A (en) * | 1999-10-08 | 2001-04-20 | Canon Inc | Image processing device and its method |
JP2002369012A (en) * | 2001-06-07 | 2002-12-20 | Canon Inc | Image processing apparatus and its method, and image processing system |
JP2003046771A (en) * | 2001-08-01 | 2003-02-14 | Konica Corp | Image processor, image processing method, and imaging apparatus |
JP2006270148A (en) * | 2005-03-22 | 2006-10-05 | Fuji Xerox Co Ltd | Image processing method, image processor and image forming apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013179408A (en) * | 2012-02-28 | 2013-09-09 | Brother Ind Ltd | Image processing apparatus and image processing program |
Also Published As
Publication number | Publication date |
---|---|
CN101277371B (en) | 2012-10-24 |
JP4465377B2 (en) | 2010-05-19 |
CN101277371A (en) | 2008-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8508823B2 (en) | Image processing method, image processing apparatus, image forming apparatus, and recording medium | |
JP4855458B2 (en) | Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program | |
JP4495197B2 (en) | Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program | |
JP4495201B2 (en) | Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program | |
JP4496239B2 (en) | Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium | |
US8050501B2 (en) | Image matching apparatus, image matching method, and image data output processing apparatus | |
JP4465377B2 (en) | Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium | |
JP2006115425A (en) | Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium | |
JP4808281B2 (en) | Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program | |
JP4884305B2 (en) | Image processing apparatus, image forming apparatus, computer program, and recording medium | |
JP2009017208A (en) | Image processing apparatus, image forming apparatus, image processing method, computer program, and computer readable recording medium | |
JP6474315B2 (en) | Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor | |
JP5023035B2 (en) | Image processing apparatus, image forming apparatus including the image processing apparatus, image processing method, image processing program, and computer-readable recording medium recording the image processing program | |
JP4549227B2 (en) | Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium | |
JP4043982B2 (en) | Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium recording the same | |
JP6163244B2 (en) | Image processing apparatus, image forming apparatus, image processing program, and recording medium | |
JPH10304200A (en) | Image processor | |
JP2004102551A (en) | Image processor, image processing method, image reader equipped with that, image forming apparatus, program, and recording medium | |
JP2011015172A (en) | Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image | |
JP4958626B2 (en) | Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium | |
JP4808282B2 (en) | Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program | |
JP6045182B2 (en) | Image processing apparatus, image forming apparatus including the same, computer program, and recording medium | |
JP5361556B2 (en) | Image processing apparatus and method, and computer program and storage medium | |
JP2004328292A (en) | Image processor, image processing method, image forming device provided with the same, program, and recording medium | |
JP2008306459A (en) | Original size correction apparatus, original size correction method, image processing apparatus, image read-out apparatus, image forming apparatus, program, and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090129 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090210 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090409 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090721 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090917 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20100126 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100222 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130226 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |