JP2009065378A - Base region detecting method, image processor, image forming apparatus, computer program, and recording medium - Google Patents

Base region detecting method, image processor, image forming apparatus, computer program, and recording medium Download PDF

Info

Publication number
JP2009065378A
JP2009065378A JP2007230559A JP2007230559A JP2009065378A JP 2009065378 A JP2009065378 A JP 2009065378A JP 2007230559 A JP2007230559 A JP 2007230559A JP 2007230559 A JP2007230559 A JP 2007230559A JP 2009065378 A JP2009065378 A JP 2009065378A
Authority
JP
Japan
Prior art keywords
background
density
image data
pixels
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007230559A
Other languages
Japanese (ja)
Inventor
Teruhiko Matsuoka
輝彦 松岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2007230559A priority Critical patent/JP2009065378A/en
Publication of JP2009065378A publication Critical patent/JP2009065378A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a base region detecting method capable of detecting and eliminating a base region from image data with high accuracy, an image processor, an image forming apparatus, a computer program and a recording medium. <P>SOLUTION: A region separation processing part 24 of the image processor 20 detects edges of image data input from an image input device 11. A base detection processing part 25 has a plurality of counters for creating histogram, switches the counters in accordance with an edge detection result in each prescribed region of the image data to count the number of pixels in each density value, extracts a base density candidate value at which a count value becomes a maximum in each prescribed region, determines the existence/absence of a base region and a base density value compared with a threshold, and extracts a base region from the image data in accordance with whether pixels of the base density value continue. A base region elimination processing part 26 eliminates the base region from the image data in accordance with a detection result from the base region detection processing part 25. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、入力された画像から下地領域を検出する下地領域検出方法、この方法を用いて下地領域の検出処理を行う画像処理装置、下地領域の検出結果に基づいて画像の形成を行う画像形成装置、下地領域の検出を行うコンピュータプログラム、及びこのコンピュータプログラムが記録された記録媒体に関する。   The present invention relates to a background area detection method that detects a background area from an input image, an image processing apparatus that performs background area detection processing using this method, and image formation that forms an image based on the detection result of the background area The present invention relates to an apparatus, a computer program for detecting a ground area, and a recording medium on which the computer program is recorded.

従来、電子写真方式又はインクジェット方式等により画像を形成する画像形成装置が普及している。画像処理技術の進展に伴って、画像形成装置はカラーの画像を高画質に再現することが可能となり、近年ではフルカラーのデジタル複写機及び複合機等が製品化されている。これらの画像形成装置では多種多様な原稿が複写され、より高画質に原稿の画像を再現するためには、原稿の種類に応じて最適な画像処理を行う必要がある。   2. Description of the Related Art Conventionally, an image forming apparatus that forms an image by an electrophotographic method or an inkjet method has been widely used. With the development of image processing technology, image forming apparatuses can reproduce color images with high image quality, and in recent years, full-color digital copiers and multifunction machines have been commercialized. In these image forming apparatuses, various kinds of originals are copied, and in order to reproduce an image of the original with higher image quality, it is necessary to perform optimum image processing according to the type of the original.

例えば、原稿には下地色を有するものがある。カラーでの複写は、白黒の複写の場合と比較して画像形成に要する時間が多く、画像形成に必要なトナー又はインク等の消費量が多い。このため、下地色を有する原稿をカラーで複写する場合、下地を再現する必要がなければ、下地の除去を行って画像形成を行うことが時間的及び経済的に望ましい。また、下地色を有するカラーの原稿を白黒で複写する場合には、下地を除去することによって複写物の文字又は画像等の視認性を高めることができる。しかし、原稿の下地のパターンは多種多様であるため、下地の除去を自動的に正確に除去することは容易ではない。   For example, some originals have a background color. Color copying requires more time for image formation than a black and white copy, and consumes a large amount of toner or ink necessary for image formation. For this reason, when an original having a background color is copied in color, if it is not necessary to reproduce the background, it is desirable in terms of time and cost to perform image formation by removing the background. Further, when a color original having a background color is copied in black and white, the visibility of characters or images on the copy can be improved by removing the background. However, since there are a wide variety of background patterns on a document, it is not easy to automatically and accurately remove the background.

特許文献1においては、読み取った画像データのヒストグラムを作成し、このヒストグラムから濃度最大値及び濃度最小値を求め、濃度最大値とヒストグラムの度数最大値の濃度とから仮下地濃度を検知し、検知した仮下地濃度と濃度最小値とから下地濃度を検知する読取画像の下地濃度検知方法が提案されている。この下地濃度検知方法では、例えば閾値との比較により濃度値から画一的に下地の判定を行う場合と比較して、読取画像の濃度のヒストグラムに応じて下地濃度が検知されるため、確実な下地濃度の検知を行うことができ、下地を正確に除去することができる。   In Patent Document 1, a histogram of the read image data is created, the maximum density value and the minimum density value are obtained from this histogram, and the temporary background density is detected from the maximum density value and the density of the histogram frequency maximum value. There has been proposed a background density detection method for a read image in which the background density is detected from the provisional background density and the minimum density value. In this background density detection method, for example, the background density is detected according to the density histogram of the read image as compared to the case where the background is uniformly determined from the density value by comparison with a threshold value. The background density can be detected, and the background can be accurately removed.

特許文献2においては、画像データの濃度値と度数とのヒストグラムを生成し、生成したヒストグラムから最大度数とこの度数を持つ濃度値とを検出し、検出した値から下地除去を行う濃度範囲を決定し、画像データの各濃度値がこの濃度範囲内か否かに応じて下地除去を行うことにより、複写機などにおいて原稿のカラー下地のような部分を複写することがなく、トナーを節約することができると共に、複写した原稿の文字の視認性を向上することができる下地除去装置が提案されている。また、この下地除去装置は、検査を行う濃度領域と、最大度数に対する度数の除去レベルを決める割合とを、ユーザが操作部から指示することによって、ムラのある下地及びグラデーションのかかった下地を除去することができる。   In Patent Document 2, a histogram of density values and frequencies of image data is generated, a maximum frequency and a density value having this frequency are detected from the generated histogram, and a density range for performing background removal is determined from the detected values. In addition, by removing the background depending on whether or not each density value of the image data is within this density range, it is possible to save toner without copying a portion such as a color background of a document in a copying machine or the like. In addition, there has been proposed a background removal device that can improve the visibility of characters on a copied document. In addition, this background removal device removes uneven background and gradation background by the user instructing the density area to be inspected and the ratio of determining the frequency removal level with respect to the maximum frequency from the operation unit. can do.

特許文献3においては、入力画像の明るさが不均一な場合、及び背景濃度が場所により変化している場合等であっても、正確に2値化を行うことができる2値化処理装置が提案されている。この2値化処理装置は、入力画像を所定の領域毎にブロック化してエッジ領域を抽出し、抽出結果からエッジ領域の画素の濃度ヒストグラムを算出し、ブロック毎の2値化閾値を算出する。また、2値化処理装置は、ブロック毎の背景領域を抽出して、背景領域の画素濃度値の平均値と2値化閾値とに基づいて2値化閾値補間データを算出する。算出した2値化閾値及び2値化閾値補間データを基に、2値化処理装置は、図形領域を含むブロックを2値化閾値により2値化すると共に、背景領域からなるブロックは2値化閾値補間データにより2値化する。
特開平1−196971号公報 特開平3−44268号公報 特開2005−165925号公報
In Patent Document 3, there is provided a binarization processing apparatus capable of performing binarization accurately even when the brightness of an input image is not uniform and when the background density changes depending on the location. Proposed. This binarization processing device blocks an input image for each predetermined region, extracts an edge region, calculates a density histogram of pixels in the edge region from the extraction result, and calculates a binarization threshold value for each block. Also, the binarization processing device extracts a background area for each block, and calculates binarization threshold value interpolation data based on the average value of the pixel density values of the background area and the binarization threshold value. Based on the binarization threshold value and the binarization threshold interpolation data, the binarization processing apparatus binarizes the block including the graphic area with the binarization threshold value, and binarizes the block including the background area. Binarization is performed using threshold interpolation data.
JP-A-1-196971 Japanese Patent Laid-Open No. 3-44268 JP 2005-165925 A

しかしながら、特許文献1に記載の下地濃度検知方法においては、読み取った画像データ全体についてヒストグラムを作成し、ヒストグラムから下地として除去する濃度値の閾値を算出する構成であるため、文章の一部に写真が含まれる原稿などを読み取って取得した画像データの全体についてヒストグラムを作成した場合に、下地領域でない部分が下地と判定されて除去される虞がある。   However, in the background density detection method described in Patent Document 1, a histogram is created for the entire read image data, and the threshold value of the density value to be removed as the background is calculated from the histogram. When a histogram is created for the entire image data obtained by reading a document including a document, a portion that is not a background region may be determined as a background and removed.

特許文献2に記載の下地除去装置についても、画像データ全体から生成したヒストグラムから下地除去を行う濃度範囲を決定する構成であるため、同様に下地領域でない部分が下地と判定されて除去される虞がある。なお、この下地除去装置では、検査を行う濃度領域、及び最大度数に対する度数の除去レベルを決める割合をユーザが操作部から指示することができるため、ユーザの指示により誤除去を防止することができる。しかし、原稿の頁数が多い場合などには、ユーザの操作が繁雑であり不便であるという問題がある。   The background removal apparatus described in Patent Document 2 is also configured to determine a density range for background removal from a histogram generated from the entire image data, and similarly, a portion that is not a background area may be determined as a background and removed. There is. In this background removal apparatus, since the user can instruct from the operation unit the density region to be inspected and the ratio for determining the frequency removal level with respect to the maximum frequency, erroneous removal can be prevented by the user instruction. . However, when the number of pages of the document is large, there is a problem that the user's operation is complicated and inconvenient.

特許文献3に記載の2値化処理装置においては、入力画像を所定の領域毎にブロック化し、ブロック毎に背景領域を抽出して2値化を行う構成であるため、文章の一部に写真が含まれる原稿などの画像であっても、各ブロックに適した2値化を行うことができる。しかしながら、この2値化処理装置は、入力画像の水平方向又は垂直方向のライン毎にエッジ数をカウントし、エッジ数が閾値を超えるか否かにより背景領域を抽出する構成であり、上述のような下地領域を除去するものではない。また、情報量の少ないブロック毎に処理を行うため、背景領域の抽出判定及び閾値の算出等の処理精度が低い虞がある。   In the binarization processing apparatus described in Patent Document 3, the input image is divided into blocks for each predetermined area, and the background area is extracted for each block and binarization is performed. Can be binarized suitable for each block. However, this binarization processing apparatus is configured to count the number of edges for each line in the horizontal direction or vertical direction of the input image, and extract a background region depending on whether the number of edges exceeds a threshold value. It does not remove the underlying region. In addition, since processing is performed for each block having a small amount of information, processing accuracy such as background region extraction determination and threshold calculation may be low.

本発明は、斯かる事情に鑑みてなされたものであって、その目的とするところは、入力された画像データの複数の所定領域毎にエッジの検出を行い、エッジ検出の結果に応じて複数のヒストグラムを作成して各所定領域の下地濃度候補値を抽出し、抽出した複数の下地濃度候補値から代表下地濃度候補値を得ることによって、正確な下地濃度に基づく下地除去処理を行うことができる下地領域検出方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to detect an edge for each of a plurality of predetermined areas of input image data, and to detect a plurality of edges according to the result of edge detection. A background density candidate value for each predetermined area is extracted, and a background removal process based on an accurate background density is performed by obtaining a representative background density candidate value from a plurality of extracted background density candidate values. An object of the present invention is to provide a background area detection method, an image processing apparatus, an image forming apparatus, a computer program, and a recording medium.

更に、代表下地濃度候補値を有する画素の連続性から下地領域の有無を判定することによって、より正確に下地領域を検出することができる下地領域検出方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体を提供することにある。   Furthermore, a background area detection method, an image processing apparatus, an image forming apparatus, and a computer program that can detect a background area more accurately by determining the presence or absence of a background area from the continuity of pixels having representative background density candidate values And providing a recording medium.

本発明に係る下地領域検出方法は、入力された画像データに含まれる下地領域を検出する下地領域検出方法において、入力された画像データからエッジを検出し、前記画像データ中の複数の所定領域毎に、検出したエッジに含まれる画素について、濃度値毎に画素数を計数し、前記所定領域毎に、前記エッジに含まれない画素について、濃度値毎に画素数を計数し、前記所定領域毎に、両計数結果を基に下地濃度候補値を抽出し、前記所定領域毎に算出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出し、前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定し、前記代表下地濃度候補値が所定濃度値を超えるか否かを判定し、両判定結果を基に、前記画像データに下地領域が含まれているか否かを判定することを特徴とする。   A background area detection method according to the present invention is a background area detection method for detecting a background area included in input image data, wherein an edge is detected from input image data, and a plurality of predetermined areas in the image data are detected. In addition, for the pixels included in the detected edge, the number of pixels is counted for each density value, and for each pixel not included in the edge, the number of pixels is counted for each density value. In addition, a background density candidate value is extracted based on both count results, and a representative background density candidate value is extracted from a plurality of background density candidate values calculated for each predetermined area based on the number of pixels of each background density candidate value. , Determining whether the number of pixels of the representative background density candidate value exceeds a predetermined number, determining whether the representative background density candidate value exceeds a predetermined density value, and based on both determination results, the image The data contains a ground area And judging whether or not Luke.

また、本発明に係る下地領域検出方法は、入力された画像データに含まれる下地領域を検出する下地領域検出方法において、入力された画像データからエッジを検出し、前記画像データ中の複数の所定領域毎に、検出したエッジに含まれない画素について、濃度値毎に画素数を計数し、前記所定領域毎に、計数結果を基に下地濃度候補値を抽出し、前記所定領域毎に算出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出し、前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定し、前記代表下地濃度候補値が所定濃度値を超えるか否かを判定し、両判定結果を基に、前記画像データに下地領域が含まれているか否かを判定することを特徴とする。   The background area detection method according to the present invention is a background area detection method for detecting a background area included in input image data, wherein an edge is detected from the input image data, and a plurality of predetermined areas in the image data are detected. For each region, for pixels not included in the detected edge, the number of pixels is counted for each density value, and for each predetermined region, a background density candidate value is extracted based on the count result, and calculated for each predetermined region. A representative background density candidate value is extracted from a plurality of background density candidate values based on the number of pixels of each background density candidate value, and it is determined whether or not the number of pixels of the representative background density candidate value exceeds a predetermined number, It is determined whether or not a representative background density candidate value exceeds a predetermined density value, and based on both determination results, it is determined whether or not a background area is included in the image data.

また、本発明に係る下地領域検出方法は、入力された画像データに含まれる下地領域を検出する下地領域検出方法において、濃度値毎の画素数を計数する計数手段を複数用い、入力された画像データからエッジを検出し、前記画像データ中の複数の所定領域毎に、エッジの検出結果に応じて前記計数手段を切り替えて、濃度値毎に画素数を計数し、前記所定領域毎に、各計数手段の計数結果を基に下地濃度候補値を抽出し、前記所定領域毎に算出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出し、前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定し、前記代表下地濃度候補値が所定濃度値を超えるか否かを判定し、両判定結果を基に、前記画像データに下地領域が含まれているか否かを判定することを特徴とする。   Further, the background area detection method according to the present invention uses a plurality of counting means for counting the number of pixels for each density value in the background area detection method for detecting the background area included in the input image data, and the input image Edges are detected from the data, and for each of a plurality of predetermined areas in the image data, the counting means is switched according to the detection result of the edges, and the number of pixels is counted for each density value. A background density candidate value is extracted based on the counting result of the counting means, and a representative background density candidate value is extracted from a plurality of background density candidate values calculated for each predetermined area based on the number of pixels of each background density candidate value. , Determining whether the number of pixels of the representative background density candidate value exceeds a predetermined number, determining whether the representative background density candidate value exceeds a predetermined density value, and based on both determination results, the image Does the data contain a background area? Or wherein the determining.

また、本発明に係る下地領域検出方法は、前記下地濃度候補値の抽出は、計数結果から最多の画素数に対応する濃度値を抽出することで行い、前記代表下地濃度候補値の抽出は、前記所定領域毎に抽出した複数の下地濃度候補値から、画素数が最多の下地濃度候補値を抽出することで行うことを特徴とする。   Further, in the background region detection method according to the present invention, the extraction of the background density candidate value is performed by extracting a density value corresponding to the largest number of pixels from the count result, and the extraction of the representative background density candidate value is This is performed by extracting a background density candidate value having the largest number of pixels from a plurality of background density candidate values extracted for each predetermined region.

また、本発明に係る下地領域検出方法は、前記画像データが、縦横に並設された複数の画素で構成される場合に、前記所定領域は、前記画像データの縦又は横の一又は複数の列で構成される領域であることを特徴とする。   In the ground area detection method according to the present invention, when the image data is composed of a plurality of pixels arranged in parallel in the vertical and horizontal directions, the predetermined area is one or a plurality of the vertical or horizontal of the image data. It is an area composed of columns.

また、本発明に係る下地領域検出方法は、前記代表下地濃度候補値を有する複数の画素について前記画像データ中での連続性を判定し、所定数以上の前記画素が連続している場合に、前記画像データに下地領域が含まれていると判定することを特徴とする。   Further, the background region detection method according to the present invention determines continuity in the image data for a plurality of pixels having the representative background density candidate value, and when a predetermined number or more of the pixels are continuous, It is determined that a background area is included in the image data.

また、本発明に係る下地領域検出方法は、前記画像データに含まれる下地領域を除去することを特徴とする。   Also, the background area detection method according to the present invention is characterized in that the background area included in the image data is removed.

また、本発明に係る画像処理装置は、入力された画像データに含まれる下地領域を検出する画像処理装置において、入力された画像データからエッジを検出するエッジ検出手段と、前記画像データ中の複数の所定領域毎に、検出したエッジに含まれる画素について、濃度値毎に画素数を計数する計数手段と、前記所定領域毎に、前記エッジに含まれない画素について、濃度値毎に画素数を計数する計数手段と、前記所定領域毎に、両計数手段の計数結果を基に下地濃度候補値を抽出する下地濃度候補値抽出手段と、前記所定領域毎に抽出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出する代表下地濃度候補値抽出手段と、前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定する画素数判定手段と、前記代表下地濃度候補値が所定濃度値を超えるか否かを判定する濃度値判定手段と、前記画素数判定手段及び前記濃度値判定手段の判定結果を基に、前記画像データに下地領域が含まれているか否かを判定する下地判定手段とを備えることを特徴とする。   Further, an image processing apparatus according to the present invention is an image processing apparatus that detects a background region included in input image data, an edge detection unit that detects an edge from the input image data, and a plurality of the image data in the image data. Counting means for counting the number of pixels for each density value for pixels included in the detected edge for each predetermined area, and the number of pixels for each density value for pixels not included in the edge for each predetermined area. A counting means for counting, a background density candidate value extracting means for extracting a background density candidate value based on the counting results of both counting means for each predetermined area, and a plurality of background density candidate values extracted for each predetermined area Representative background density candidate value extracting means for extracting a representative background density candidate value based on the number of pixels of each background density candidate value, and a pixel for determining whether or not the number of pixels of the representative background density candidate value exceeds a predetermined number Based on the determination results of the determination means, the density value determination means for determining whether or not the representative background density candidate value exceeds a predetermined density value, and the pixel number determination means and the density value determination means, And a background determination means for determining whether or not a background area is included.

また、本発明に係る画像処理装置は、入力された画像データに含まれる下地領域を検出する画像処理装置において、入力された画像データからエッジを検出するエッジ検出手段と、前記画像データ中の複数の所定領域毎に、検出したエッジに含まれない画素について、濃度値毎に画素数を計数する計数手段と、前記所定領域毎に、前記計数手段の計数結果を基に下地濃度候補値を抽出する下地濃度候補値抽出手段と、前記所定領域毎に抽出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出する代表下地濃度候補値抽出手段と、前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定する画素数判定手段と、前記代表下地濃度候補値が所定濃度値を超えるか否かを判定する濃度値判定手段と、前記画素数判定手段及び前記濃度値判定手段の判定結果を基に、前記画像データに下地領域が含まれているか否かを判定する下地判定手段とを備えることを特徴とする。   Further, an image processing apparatus according to the present invention is an image processing apparatus that detects a background region included in input image data, an edge detection unit that detects an edge from the input image data, and a plurality of the image data in the image data. For each pixel that is not included in the detected edge, a counting unit that counts the number of pixels for each density value, and for each predetermined region, a background density candidate value is extracted based on the counting result of the counting unit. And a background density candidate value extraction means for extracting a background density candidate value from the plurality of background density candidate values extracted for each predetermined area based on the number of pixels of each background density candidate value. And a pixel number determining means for determining whether the number of pixels of the representative background density candidate value exceeds a predetermined number, and a density value determining means for determining whether the representative background density candidate value exceeds a predetermined density value When Based on the determination result of the pixel number determination means and the density value determination means, characterized in that it comprises a base determination means for determining whether contains background region in the image data.

また、本発明に係る画像形成装置は、上述の画像処理装置と、画像データを前記画像処理装置へ入力する入力手段と、前記画像処理装置にて画像処理された画像データに係る画像を出力する出力手段とを備えることを特徴とする。   In addition, an image forming apparatus according to the present invention outputs the above-described image processing apparatus, an input unit that inputs image data to the image processing apparatus, and an image related to the image data image-processed by the image processing apparatus. Output means.

また、本発明に係るコンピュータプログラムは、コンピュータに、画像データに含まれる下地領域を検出させるコンピュータプログラムにおいて、コンピュータに、前記画像データからエッジを検出させ、前記画像データ中の複数の所定領域毎に、検出したエッジに含まれる画素について、濃度値毎に画素数を計数させ、前記所定領域毎に、前記エッジに含まれない画素について、濃度値毎に画素数を計数させ、前記所定領域毎に、両計数結果を基に下地濃度候補値を抽出させ、前記所定領域毎に抽出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出させ、前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定させ、前記代表下地濃度候補値が所定濃度値を超えるか否かを判定させ、両判定結果を基に、前記画像データに下地領域が含まれているか否かを判定させることを特徴とする。   The computer program according to the present invention is a computer program for causing a computer to detect a background area included in image data, causing the computer to detect an edge from the image data, and for each of a plurality of predetermined areas in the image data. For each pixel included in the detected edge, the number of pixels is counted for each density value, and for each predetermined area, for each pixel not included in the edge, the number of pixels is counted for each density value. The background density candidate value is extracted based on both count results, and the representative background density candidate value is extracted based on the number of pixels of each background density candidate value from the plurality of background density candidate values extracted for each predetermined region, Determining whether the number of pixels of the representative background density candidate value exceeds a predetermined number; determining whether the representative background density candidate value exceeds a predetermined density value; Based on the constant results, characterized in that to determine if it contains a background region in the image data.

また、本発明に係るコンピュータプログラムは、コンピュータに、画像データに含まれる下地領域を検出させるコンピュータプログラムにおいて、コンピュータに、前記画像データからエッジを検出させ、前記画像データ中の複数の所定領域毎に、検出したエッジに含まれない画素について、濃度値毎に画素数を計数させ、前記所定領域毎に、計数結果を基に下地濃度候補値を抽出させ、前記所定領域毎に抽出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出させ、前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定させ、前記代表下地濃度候補値が所定濃度値を超えるか否かを判定させ、両判定結果を基に、前記画像データに下地領域が含まれているか否かを判定させることを特徴とする。   The computer program according to the present invention is a computer program for causing a computer to detect a background area included in image data, causing the computer to detect an edge from the image data, and for each of a plurality of predetermined areas in the image data. For each pixel not included in the detected edge, the number of pixels is counted for each density value, and for each predetermined area, a background density candidate value is extracted based on the count result, and a plurality of backgrounds extracted for each predetermined area The representative background density candidate value is extracted from the density candidate value based on the number of pixels of each background density candidate value, and it is determined whether or not the number of pixels of the representative background density candidate value exceeds a predetermined number. Determining whether or not the candidate value exceeds a predetermined density value, and determining whether or not a background area is included in the image data based on both determination results To.

また、本発明に係る記録媒体は、上述のコンピュータプログラムが記録してあることを特徴とする。   A recording medium according to the present invention is recorded with the computer program described above.

本発明においては、入力された画像データからエッジを検出して、画像データの複数の所定領域毎に、エッジに含まれる画素について濃度値毎に画素数をカウンタなどにより計数すると共に、エッジに含まれない画素について濃度値毎に画素数をカウンタなどにより計数する。即ち、エッジ成分とそれ以外の成分とのそれぞれについて濃度値のヒストグラムを作成する。下地領域内に含まれるエッジ成分は少ないが、文字領域及び画像領域等に含まれるエッジ成分は多いため、エッジの検出結果に応じてカウンタを切り替えてヒストグラムを作成することによって、下地領域のヒストグラムと他の領域のヒストグラムとを分離することができる。これにより、下地の濃度値の推定、又は下地領域と他の領域とを分離するための閾値の算出が行いやすく、また、精度よく行うことができる。   In the present invention, the edge is detected from the input image data, and the number of pixels for each density value is counted by a counter or the like for each of a plurality of predetermined regions of the image data and included in the edge. The number of pixels for each density value is counted by a counter or the like for pixels that are not. That is, a histogram of density values is created for each of the edge component and the other components. Although there are few edge components included in the background area, there are many edge components included in the character area and the image area, etc., so by generating a histogram by switching the counter according to the edge detection result, The histograms of other regions can be separated. Accordingly, it is easy to estimate the density value of the background or calculate the threshold value for separating the background area from other areas, and it is possible to accurately perform the calculation.

なお、本発明においては、入力された画像データからエッジを検出して、画像データの複数の所定領域毎に、エッジに含まれない画素について濃度値毎に画素数をカウンタなどにより計数し、即ちエッジ以外の成分のみについて濃度値のヒストグラムを作成して、下地領域の検出を行うこともできる。この方法の場合、エッジに含まれる画素を考慮して下地領域の検出を行う上述の方法と比較して、検出精度が多少低下する虞がある(例えば、エッジで挟まれる文字領域の画素については、この画素の濃度値が文字の濃度値であると判断することができないため、文字が多いと文字の濃度値が下地の濃度値として誤判定される可能性がある)が、下地領域の検出を行うことは可能である。   In the present invention, an edge is detected from input image data, and the number of pixels for each density value is counted by a counter or the like for each of a plurality of predetermined areas of the image data, It is also possible to create a histogram of density values for only components other than the edges and detect the background area. In the case of this method, there is a possibility that the detection accuracy may be slightly reduced as compared with the above-described method in which the background region is detected in consideration of the pixels included in the edge (for example, for pixels in the character region sandwiched between edges) Since the density value of this pixel cannot be determined to be the density value of the character, if there are many characters, the density value of the character may be erroneously determined as the density value of the background). It is possible to do.

また、本発明においては、濃度値毎の画素数を計数する計数手段として例えばカウンタを複数用いる。画像データは横方向又は縦方向等に順次的に各画素の処理が行われるが、この際に入力された画像データからエッジを検出し、画像データの複数の所定領域毎に、例えばエッジの立ち上がり又は立ち下がり等に応じてカウンタを切り替えながら計数を行って複数のヒストグラムを作成する。原稿中の下地領域と文字領域又は画像領域等とはエッジにて切り替わるため、領域毎にヒストグラムを分離して作成することができる。これにより、下地の濃度値の推定、又は下地領域と他の領域とを分離するための閾値の算出が行いやすく、また、精度よく行うことができる。   In the present invention, for example, a plurality of counters are used as counting means for counting the number of pixels for each density value. The image data is processed for each pixel sequentially in the horizontal direction or the vertical direction. Edges are detected from the input image data at this time, and for example, rising edges are detected for each of a plurality of predetermined areas of the image data. Alternatively, a plurality of histograms are created by performing counting while switching the counter according to the fall or the like. Since the background region and the character region or the image region in the document are switched at the edge, the histogram can be created separately for each region. Accordingly, it is easy to estimate the density value of the background or calculate the threshold value for separating the background area from other areas, and it is possible to accurately perform the calculation.

このようにして作成した複数のヒストグラムから、各所定領域での下地濃度候補値を抽出し、抽出した複数の下地濃度候補値から代表下地濃度候補値を更に抽出する。本発明においては、例えば複数の計数結果、即ち複数のヒストグラムから画素数が最多の濃度値を抽出して各所定領域での下地濃度候補値とする。更に、複数の所定領域について抽出した複数の下地濃度候補値から、画素数が最多の下地濃度候補値を抽出して代表下地濃度候補値とする。この代表下地濃度候補値が、原稿全体での下地の濃度値の推定値となる。計数した代表下地濃度候補値の画素数が所定数を超え、代表下地濃度候補値が所定濃度値を超える場合に、この代表下地濃度候補値は画像データの全体に万遍なく存在する濃度値であると判断できるため、代表下地濃度候補値を下地の濃度値として、画像データに下地領域が含まれていると判定することができる。   A background density candidate value in each predetermined region is extracted from the plurality of histograms thus created, and a representative background density candidate value is further extracted from the extracted plurality of background density candidate values. In the present invention, for example, a density value having the largest number of pixels is extracted from a plurality of counting results, that is, a plurality of histograms, and set as background density candidate values in each predetermined region. Further, a background density candidate value having the largest number of pixels is extracted from a plurality of background density candidate values extracted for a plurality of predetermined areas, and set as a representative background density candidate value. This representative background density candidate value is an estimated value of the background density value of the entire document. When the number of representative background density candidate values counted exceeds a predetermined number and the representative background density candidate value exceeds a predetermined density value, the representative background density candidate value is a density value that exists uniformly in the entire image data. Therefore, it can be determined that the background area is included in the image data using the representative background density candidate value as the background density value.

また、本発明においては、画像データが縦横に並設された複数の画素で構成される場合、画素数を計数してヒストグラムを作成する所定領域を、画像データの縦又は横の一又は複数の列で構成される領域、即ち画像データの一又は複数のラインとする。画像データを所定領域に分離する処理が容易である。この所定領域毎に下地濃度候補値を抽出し、更に代表下地濃度候補値を抽出する構成とすることによって、画像データの全体に万遍なく下地濃度の画素が存在しているか否かを検出することができ、画像データの一部に濃度が偏っている場合などに誤検出が生じ難い。   In the present invention, when the image data is composed of a plurality of pixels arranged side by side in the vertical and horizontal directions, the predetermined area for counting the number of pixels and creating a histogram is set as one or a plurality of vertical or horizontal of the image data. It is assumed that a region composed of columns, that is, one or more lines of image data. Processing for separating image data into predetermined areas is easy. By detecting the background density candidate value for each predetermined area and further extracting the representative background density candidate value, it is detected whether or not the background density pixels exist uniformly in the entire image data. Therefore, it is difficult for erroneous detection to occur when the density is biased to a part of the image data.

また、本発明においては、代表下地濃度候補値を有する画素が画像データ中に連続して存在するか否か、及び連続する場合にはその画素数等を連続性として判定する。代表下地濃度候補値を有する画素が連続する場合には、その領域は下地領域である可能性が高く、画像データに下地領域が含まれていると判定することができる。   In the present invention, whether or not pixels having representative background density candidate values are continuously present in the image data, and the number of pixels when they are consecutive, are determined as continuity. When pixels having representative background density candidate values continue, it is highly possible that the area is a background area, and it can be determined that the background area is included in the image data.

また、本発明においては、代表下地濃度候補値を有する画素であり、且つ、連続性を有する画素を下地領域として除去する。上述のように下地領域を精度よく判定することができるため、原稿全体の画質を劣化させることなく、下地領域のみを精度よく除去することが可能である。   In the present invention, pixels having representative background density candidate values and having continuity are removed as a background area. Since the background area can be determined with high accuracy as described above, it is possible to accurately remove only the background area without degrading the image quality of the entire document.

また、本発明においては、上述の方法による下地領域の検出及び除去を画像処理装置及び画像形成装置等にて行う。これにより、画像処理装置による画像処理結果及び画像形成装置により形成される画像の画質が向上する。また、上述の方法による下地領域の検出及び除去をコンピュータプログラムにて行う。これにより、汎用的なコンピュータにて精度のよい下地領域の検出及び除去を行うことが可能となり、汎用性が高まる。また、このコンピュータプログラムを記録媒体に記録しておくことによって、容易に多数のコンピュータに下地領域の検出及び除去を行わせることができる。   In the present invention, the detection and removal of the base region by the above-described method is performed by an image processing apparatus, an image forming apparatus, or the like. Thereby, the image processing result by the image processing apparatus and the image quality of the image formed by the image forming apparatus are improved. In addition, the detection and removal of the background area by the above-described method is performed by a computer program. Thereby, it becomes possible to detect and remove the base region with high accuracy by a general-purpose computer, and versatility is enhanced. In addition, by recording this computer program on a recording medium, a large number of computers can be easily detected and removed.

本発明による場合は、画像データの所定領域毎にエッジ検出の結果に応じて複数のヒストグラムを作成して、所定領域毎の下地濃度候補値を抽出し、複数の下地濃度候補値から代表下地濃度候補値を抽出すると共に、代表下地濃度候補値及びその画素数が所定の閾値を超えた場合に下地領域と判定することによって、下地領域の検出を精度よく行うことができる。更には、代表下地濃度候補値を有する画素の連続性を調べて下地領域の検出を行うことによって、検出精度をより高めることができる。よって、原稿の画像データから精度よく下地領域の除去などの処理を行うことができ、処理後の画像データの画質を高めることができる。   According to the present invention, a plurality of histograms are created for each predetermined area of the image data according to the result of edge detection, a background density candidate value for each predetermined area is extracted, and the representative background density is extracted from the plurality of background density candidate values. By extracting the candidate value and determining the background area when the representative background density candidate value and the number of pixels exceed a predetermined threshold, the background area can be detected with high accuracy. Furthermore, detection accuracy can be further improved by detecting the background region by examining the continuity of pixels having representative background density candidate values. Therefore, it is possible to perform processing such as removal of the background area with high accuracy from the image data of the document, and to improve the image quality of the processed image data.

以下、本発明をその実施の形態を示す図面に基づき具体的に説明する。図1は、本発明に係る画像形成装置の構成を示すブロック図である。図において1は、画像形成装置の各部の制御及び各種の演算等を行うCPU(Central Processing Unit)である。CPU1には、ROM(Read Only Memory)2、RAM(Random Access Memory)3、操作部4、表示部5、メモリ装着部6、画像入力装置11、画像出力装置12及び画像処理装置20等がバスを介して接続されており、これらの制御を行うようにしてある。なお、本図に示す画像形成装置は、所謂デジタルカラー複写機である。   Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof. FIG. 1 is a block diagram showing a configuration of an image forming apparatus according to the present invention. In the figure, reference numeral 1 denotes a central processing unit (CPU) that controls each part of the image forming apparatus and performs various calculations. The CPU 1 includes a ROM (Read Only Memory) 2, a RAM (Random Access Memory) 3, an operation unit 4, a display unit 5, a memory mounting unit 6, an image input device 11, an image output device 12, an image processing device 20, and the like. Are connected to each other, and these controls are performed. The image forming apparatus shown in this figure is a so-called digital color copying machine.

ROM2は、マスクROM、EEPROM(Electrically Erasable Programmable ROM)又はフラッシュメモリ等の不揮発性のメモリ素子により構成され、CPU1が実行するプログラム及び実行に必要なデータ等が予め記憶されている。画像形成装置の電源投入後に、CPU1はROM2からプログラムを読み出して実行することにより処理を開始するようにしてある。RAM3は、SRAM(Static RAM)、DRAM(Dynamic RAM)又はフラッシュメモリ等によるデータの書き換えが可能な大容量のメモリ素子により構成され、CPU1が演算処理を行う際に発生するデータ及びユーザが設定する各種の設定値等を記憶するようにしてある。   The ROM 2 is configured by a non-volatile memory element such as a mask ROM, an EEPROM (Electrically Erasable Programmable ROM) or a flash memory, and stores a program executed by the CPU 1 and data necessary for the execution in advance. After the image forming apparatus is turned on, the CPU 1 reads the program from the ROM 2 and executes it to start the processing. The RAM 3 is composed of a large-capacity memory element capable of rewriting data by SRAM (Static RAM), DRAM (Dynamic RAM), flash memory, or the like, and is set by the user and data generated when the CPU 1 performs arithmetic processing. Various setting values and the like are stored.

操作部4は、ファンクションキー、スタートキー、テンキー及び電源キー等を備えており、ユーザからの複写スタート指令又は複写設定の入力等の操作を受け付けることができるようにしてある。操作部4は、受け付けたユーザの操作をCPU1へ与えるようにしてある。表示部5は、液晶ディスプレイを備え、CPU1からの表示命令に基づいて、画像形成装置の動作状態、ユーザへの警告メッセージ、及びユーザの操作を補助する各種のメニュー等を液晶ディスプレイに表示するようにしてある。なお、操作部4及び表示部5は、両者を一体に構成したタッチパネルであってもよい。   The operation unit 4 includes a function key, a start key, a numeric keypad, a power key, and the like, and can accept operations such as a copy start command or a copy setting input from the user. The operation unit 4 is configured to give the received user operation to the CPU 1. The display unit 5 includes a liquid crystal display, and displays an operation state of the image forming apparatus, a warning message to the user, various menus for assisting the user's operation, and the like on the liquid crystal display based on a display command from the CPU 1. It is. Note that the operation unit 4 and the display unit 5 may be a touch panel configured integrally with each other.

メモリ装着部6は、所謂メモリカードスロットであり、SDメモリカード又はメモリスティック等のメモリカード100を着脱自在に装着することができるようにしてある。メモリ装着部6にメモリカード100が装着された場合、CPU1はメモリカード100に記憶されたデータの読み出し及びメモリカード100へのデータの書き込みを行うことができる。また、メモリカード100にプログラムコード101が記憶されている場合には、CPU1はメモリカード100からプログラムコード101を読み出してRAM3に記憶すると共に、プログラムコード101を実行してプログラムコード101に係る処理を行うことができるようにしてある。なお、ROM2が書き換え可能なメモリ素子で構成されている場合には、メモリカード100から読み出したプログラムコード101をROM2に記憶してもよい。   The memory mounting unit 6 is a so-called memory card slot, and is configured so that a memory card 100 such as an SD memory card or a memory stick can be mounted detachably. When the memory card 100 is loaded in the memory loading unit 6, the CPU 1 can read data stored in the memory card 100 and write data to the memory card 100. When the program code 101 is stored in the memory card 100, the CPU 1 reads the program code 101 from the memory card 100 and stores it in the RAM 3, and executes the program code 101 to perform processing related to the program code 101. So that you can do it. If the ROM 2 is composed of a rewritable memory element, the program code 101 read from the memory card 100 may be stored in the ROM 2.

画像入力装置11は、原稿に光を照射する光源、CCD(Charge Coupled Device)などのイメージセンサが並設された受光部等を備えるスキャナにて構成されている。画像入力装置11は、CPU1の制御に基づいて、光源により原稿へ光を照射すると共に、受光部を一方向へ移動させて、原稿からの反射光をR(赤)G(緑)B(青)の3つの色成分に分解して受光部で読み取り、RGBのアナログ信号として画像処理装置20へ与えるようにしてある。   The image input device 11 includes a light source that irradiates light on a document, and a scanner that includes a light receiving unit in which image sensors such as a CCD (Charge Coupled Device) are arranged in parallel. Based on the control of the CPU 1, the image input device 11 irradiates the original with light from the light source and moves the light receiving unit in one direction so that reflected light from the original is R (red) G (green) B (blue). ) Are separated into three color components, read by the light receiving unit, and supplied to the image processing apparatus 20 as RGB analog signals.

画像処理装置20は、A/D変換部21、シェーディング補正部22、入力階調補正部23、領域分離処理部24、下地検出処理部25、下地除去処理部26、空間フィルタ処理部27、変倍処理部28、色補正部29、黒生成下色除去部30、出力階調補正部31及び階調再現処理部32等を備えている。A/D変換部21は、画像入力装置11から与えられたRGBのアナログ信号を例えば8ビットのデジタル信号、即ちRGBの画像データに変換するものであり、変換したRGBの画像データをシェーディング補正部22に与えるようにしてある。   The image processing apparatus 20 includes an A / D conversion unit 21, a shading correction unit 22, an input tone correction unit 23, a region separation processing unit 24, a background detection processing unit 25, a background removal processing unit 26, a spatial filter processing unit 27, A double processing unit 28, a color correction unit 29, a black generation and under color removal unit 30, an output gradation correction unit 31, a gradation reproduction processing unit 32, and the like are provided. The A / D converter 21 converts an RGB analog signal given from the image input device 11 into, for example, an 8-bit digital signal, that is, RGB image data. The converted RGB image data is a shading correction unit. 22 is given.

シェーディング補正部22は、A/D変換部21から与えられたRGBの画像データに対して、画像入力装置11の照明系、結像系及び撮像系等において生じる各種の歪みを、予め取得してある情報に従って取り除くシェーディング処理を行い、シェーディング処理されたRGBの画像データを入力階調補正部23へ与えるようにしてある。入力階調補正部23は、シェーディング補正部22にて歪みが取り除かれたRGBの画像データに対して、カラーバランスの調整及びコントラストの調整等の処理を行って、処理後のRGBの画像データを領域分離処理部24へ与えるようにしてある。   The shading correction unit 22 acquires in advance various distortions that occur in the illumination system, imaging system, imaging system, and the like of the image input device 11 from the RGB image data provided from the A / D conversion unit 21. A shading process is performed according to certain information, and the RGB image data subjected to the shading process is provided to the input tone correction unit 23. The input tone correction unit 23 performs processing such as color balance adjustment and contrast adjustment on the RGB image data from which distortion has been removed by the shading correction unit 22, and the processed RGB image data is processed. The region separation processing unit 24 is provided.

領域分離処理部24は、入力階調補正部23から与えられたRGBの画像データ中の各画素を、文字領域、網点領域又は写真領域等のいずれに属するかを判定し、各画素を分離するようにしてある。領域分離処理部24は、処理結果として各画素がいずれの領域に属しているかを示す情報(領域分離結果)を、下地検出処理部25、空間フィルタ処理部27、黒生成下色除去部30及び階調再現処理部32へ与えると共に、入力階調処理部23から与えられたRGBの画像データをそのまま下地検出処理部25へ与えるようにしてある。また、領域分離処理部24は、文字領域の分離を行う際には、画像データのエッジ検出処理を行い、エッジの検出結果を基に分離を行うようにしてある。なお、画像データのエッジ検出は、例えばソーベルフィルタを用いた画像処理を施すことによって行うことができる。   The region separation processing unit 24 determines whether each pixel in the RGB image data given from the input tone correction unit 23 belongs to a character region, a halftone region, a photographic region, or the like, and separates each pixel. I have to do it. The region separation processing unit 24 obtains information indicating which region each pixel belongs to as a processing result (region separation result), a background detection processing unit 25, a spatial filter processing unit 27, a black generation and under color removal unit 30, and In addition to being provided to the gradation reproduction processing unit 32, the RGB image data provided from the input gradation processing unit 23 is provided to the background detection processing unit 25 as it is. In addition, when the character region is separated, the region separation processing unit 24 performs image data edge detection processing and performs separation based on the edge detection result. Note that edge detection of image data can be performed, for example, by performing image processing using a Sobel filter.

下地検出処理部25は、領域分離処理部24から与えられたRGBの画像データに含まれる下地領域の検出を行うものである。詳細は後述するが、下地検出処理部25は、与えられたRGBの画像データに下地領域が含まれるか否かの判定を行い、下地領域が含まれる場合にはこの領域に係る情報を下地検出結果として下地除去処理部26へ出力するようにしてあると共に、与えられたRGBの画像データを下地除去処理部26へ出力するようにしてある。   The background detection processing unit 25 detects a background region included in the RGB image data given from the region separation processing unit 24. As will be described in detail later, the background detection processing unit 25 determines whether or not the background area is included in the given RGB image data, and if the background area is included, information on this area is detected. As a result, the image data is output to the background removal processing unit 26, and the given RGB image data is output to the background removal processing unit 26.

下地検出処理部25にて下地領域が検出された場合、下地除去処理部26にはRGBの画像データと下地検出結果が同期して入力される。下地除去処理部26は、与えられたRGBの画像データに対して下地検出結果に基づく下地除去処理を行って、下地が除去されたRGBの画像データを空間フィルタ処理部27へ出力するようにしてある。   When the background area is detected by the background detection processing unit 25, the RGB image data and the background detection result are input to the background removal processing unit 26 in synchronization. The background removal processing unit 26 performs background removal processing based on the background detection result for the given RGB image data, and outputs the RGB image data from which the background is removed to the spatial filter processing unit 27. is there.

空間フィルタ処理部27は、領域分離処理部24から与えられる領域分離の結果に基づいて、下地除去処理部26にて下地除去されたRGBの画像データに対してデジタルフィルタによる空間フィルタ処理を行うようにしてある。これにより、画像の空間周波数特性が補正され、画像出力装置12が出力する画像にぼやけ又は粒状性劣化等を生じることが防止される。例えば、領域分離処理部24にて文字領域に分離された領域には、特に黒文字又は色文字の再現性を高めることを目的として、空間フィルタ処理部27が鮮鋭強調のフィルタ処理を施して高周波成分を強調する。また、例えば領域分離処理部24にて網点領域に分離された領域には、空間フィルタ処理部27がローパスフィルタ処理を施して入力網点成分を除去する。このように空間フィルタ処理が施されたRGBの画像データは、空間フィルタ処理部27から変倍処理部28へ与えられる。   The spatial filter processing unit 27 performs a spatial filter process using a digital filter on the RGB image data whose background is removed by the background removal processing unit 26 based on the result of the region separation given from the region separation processing unit 24. It is. As a result, the spatial frequency characteristics of the image are corrected, and it is possible to prevent the image output from the image output device 12 from being blurred or deteriorated in graininess. For example, in the region separated into the character region by the region separation processing unit 24, the spatial filter processing unit 27 performs a sharp emphasis filter process for the purpose of improving the reproducibility of the black character or the color character in particular. To emphasize. Further, for example, the spatial filter processing unit 27 performs low-pass filter processing on the region separated into halftone dot regions by the region separation processing unit 24 to remove the input halftone component. The RGB image data subjected to the spatial filter processing in this way is given from the spatial filter processing unit 27 to the scaling processing unit 28.

画像形成装置においては、ユーザは操作部4を操作することによって、形成する画像の拡大/縮小の設定を行うことができるようにしてある。変倍処理部28は、空間フィルタ処理が施されたRGBの画像データに対して、ユーザが設定した所定の倍率となるように拡大演算処理又は縮小演算処理を行うようにしてあり、演算処理後のRGBの画像データを色補正部29へ出力するようにしてある。   In the image forming apparatus, the user can set enlargement / reduction of an image to be formed by operating the operation unit 4. The scaling processing unit 28 performs an enlargement calculation process or a reduction calculation process on the RGB image data subjected to the spatial filter process so as to have a predetermined magnification set by the user. RGB image data is output to the color correction unit 29.

色補正部29は、変倍処理部28から与えられたRGBの画像データを、C(シアン)M(マゼンタ)Y(イエロー)の色空間の画像データに変換すると共に、画像出力装置12での色再現の忠実化実現のために、CMYの各色成分に色補正処理を行うようにしてある。色補正処理は、具体的には、不要吸収成分をそれぞれ含むCMYのトナー又はインク等の分光特性に基づいた色濁りを、CMYの各色成分から取り除く処理である。色補正部29は、変換したCMYの画像データを黒生成下色除去部30へ与えるようにしてある。   The color correction unit 29 converts the RGB image data given from the scaling processing unit 28 into image data in a color space of C (cyan), M (magenta), and Y (yellow), and at the image output device 12. In order to achieve faithful color reproduction, color correction processing is performed on each color component of CMY. Specifically, the color correction processing is processing for removing color turbidity based on spectral characteristics of CMY toners or inks including unnecessary absorption components from the CMY color components. The color correction unit 29 provides the converted CMY image data to the black generation and under color removal unit 30.

黒生成下色除去部30は、領域分離処理部24から与えられた領域分離結果、及び色補正部29から与えられたCMYの画像データの各色成分に基づいて、K(黒)の色成分を生成する黒生成処理を行うと共に、元のCMYの各色成分から黒生成処理にて生成されたK成分を差し引いて新たなCMY信号を生成する処理を行うようにしてある。これにより、色補正部29から与えられたCMYの画像データは、CMYKの4つの色成分を有する画像データに変換される。   The black generation and under color removal unit 30 calculates a color component of K (black) based on the region separation result given from the region separation processing unit 24 and each color component of the CMY image data given from the color correction unit 29. A black generation process to be generated is performed, and a process of generating a new CMY signal by subtracting the K component generated by the black generation process from each color component of the original CMY is performed. As a result, the CMY image data provided from the color correction unit 29 is converted into image data having four color components of CMYK.

例えば、スケルトンブラックによる黒生成処理を行う場合に、スケルトンカーブの入出力特性をy=f(x)とし、入力されるデータをC、M、Yとし、出力されるデータをC’、M’、Y’、K’とし、UCR(Under Color Removal、下色除去)率をα(0<α<1)とすると、黒生成下色除去処理は以下の式で表される。黒生成下色除去部30の黒生成下色除去処理により変換されたCMYKの画像データは、出力階調補正部31にて補正処理が施された後に、階調再現処理部32へ与えられるようにしてある。
K’ = f{min(C、M、Y)}
C’ = C−αK’
M’ = M−αK’
Y’ = Y−αK’
For example, when performing black generation processing using skeleton black, the input / output characteristics of the skeleton curve are set to y = f (x), the input data are C, M, and Y, and the output data are C ′ and M ′. , Y ′ and K ′, and the UCR (Under Color Removal) rate is α (0 <α <1), the black generation and under color removal processing is expressed by the following equation. The CMYK image data converted by the black generation / undercolor removal process of the black generation / undercolor removal unit 30 is subjected to the correction process by the output gradation correction unit 31 and is then supplied to the gradation reproduction processing unit 32. It is.
K ′ = f {min (C, M, Y)}
C ′ = C−αK ′
M ′ = M−αK ′
Y ′ = Y−αK ′

階調再現処理部32は、領域分離処理部24から与えられる領域分離結果に応じて、出力階調補正部31から与えられたCMYKの画像データに対して、階調再現処理を行うようにしてある。階調再現処理は、画像データを複数の画素に分類して中間調を再現できるようにする処理であり、二値又は多値のディザ法又は誤差拡散法等を用いることができる。例えば、領域分離処理部24にて文字領域に分離された領域には、特に黒文字又は色文字の再現性を高めることを目的として、階調再現処理部32が画像出力装置12の高域周波数成分の再現に適する二値化処理又は多値化処理を施すようにしてある。また、例えば領域分離処理部24にて網点領域に分離された領域には、出力階調補正部31にて画像データの濃度を画像出力装置12の特性値である網点面積率に変換する階調補正処理を施しておき、階調再現処理部32が画像データを画素に分離してそれぞれの階調を再現できるように中間階調処理を施すようにしてある。また、例えば領域分離処理部24にて写真領域に分離された領域には、階調再現処理部32が画像出力装置12における階調再現性に適する二値化処理又は多値化処理を施すようにしてある。   The gradation reproduction processing unit 32 performs gradation reproduction processing on the CMYK image data provided from the output gradation correction unit 31 according to the region separation result provided from the region separation processing unit 24. is there. The gradation reproduction process is a process for classifying image data into a plurality of pixels so that a halftone can be reproduced, and a binary or multi-value dither method or an error diffusion method can be used. For example, in the region separated into character regions by the region separation processing unit 24, the tone reproduction processing unit 32 performs high frequency component of the image output device 12 for the purpose of improving the reproducibility of black characters or color characters. A binarization process or a multi-level process suitable for reproducing the image is performed. Further, for example, in an area separated into halftone dot areas by the area separation processing unit 24, the output tone correction unit 31 converts the density of the image data into a halftone dot area ratio that is a characteristic value of the image output device 12. A gradation correction process is performed, and an intermediate gradation process is performed so that the gradation reproduction processing unit 32 can separate image data into pixels and reproduce each gradation. In addition, for example, the gradation reproduction processing unit 32 performs binarization processing or multi-value quantization processing suitable for gradation reproducibility in the image output device 12 in the region separated into the photograph region by the region separation processing unit 24. It is.

階調再現処理部32による処理が施されてCMYKの画像データは、図示しない画像メモリなどの記憶手段に一時的に蓄積された後、CPU1の制御により画像形成のタイミングに合わせて記憶手段から読み出されて画像出力装置12へ与えられるようにしてある。画像出力装置12は、与えられた画像データを紙などの記録用紙上に出力するものであり、電子写真方式又はインクジェット方式等のプリンタである。例えば、電子写真方式の場合には、画像出力装置12は、感光体ドラムを所定の電位に帯電する帯電器、与えられた画像データに応じてレーザ光を発して感光体ドラム表面に静電潜像を生成するレーザ書込器、感光体ドラム表面に生成された静電潜像にトナーを供給して顕像化する現像器及び感光体ドラム表面に形成されたトナー像を紙上に転写する転写器等を備える。なお、画像出力装置12は、ディスプレイなどの表示装置であってもよい。   The CMYK image data processed by the gradation reproduction processing unit 32 is temporarily stored in a storage unit such as an image memory (not shown), and then read from the storage unit in accordance with the timing of image formation under the control of the CPU 1. And output to the image output device 12. The image output device 12 outputs given image data onto a recording paper such as paper, and is a printer such as an electrophotographic system or an inkjet system. For example, in the case of the electrophotographic system, the image output device 12 is a charger that charges the photosensitive drum to a predetermined potential, and emits a laser beam in accordance with the given image data to electrostatic latent image on the surface of the photosensitive drum. A laser writer for generating an image, a developer for supplying toner to the electrostatic latent image generated on the surface of the photosensitive drum to make it visible, and a transfer for transferring the toner image formed on the surface of the photosensitive drum onto paper Equipped with containers. Note that the image output device 12 may be a display device such as a display.

なお、図1に示す画像処理装置20においては、下地検出処理部25及び下地除去処理部26が領域分離処理部24の直後に配されているが、これに限るものではなく、空間フィルタ処理部27の後などの他の位置に配する構成であってもよく、少なくとも領域分離処理部24より後であり、色補正部29の前の位置であればいずれの位置に配されてもよい。また、下地検出処理部25及び下地除去処理部26が連続的に配されなくてもよく、これらの間に空間フィルタ処理部27などが配される構成であってもよい。   In the image processing apparatus 20 shown in FIG. 1, the background detection processing unit 25 and the background removal processing unit 26 are arranged immediately after the region separation processing unit 24. However, the present invention is not limited to this, and the spatial filter processing unit 27 may be arranged at other positions such as after 27, and may be arranged at any position as long as it is at least after the region separation processing unit 24 and before the color correction unit 29. In addition, the background detection processing unit 25 and the background removal processing unit 26 do not have to be continuously arranged, and the spatial filter processing unit 27 and the like may be arranged between them.

次に、画像処理装置20の下地検出処理部25の詳細について説明する。図2乃至図5は、本発明に係る画像処理装置20の下地検出処理部の詳細構成を示すブロック図である。下地検出処理部25は、計数部35、下地判定部36及び下地領域抽出部37等を有しており、領域分離処理部24が出力したRGBの画像データは下地検出処理部25の計数部35に与えられるようにしてある。計数部35は第1カウンタ41、第2カウンタ42及び下地濃度カウンタ43の3つのカウンタを有しており(図3参照)、第1カウンタ41及び第2カウンタ42には、領域分離処理部24の領域分離結果に含まれるエッジ検出結果が与えられている。第1カウンタ41は、画素の濃度値(0〜255)毎に画像データに含まれる画素を計数してヒストグラムを作成することができるカウンタであり、256個のカウンタの集合体である。第2カウンタ42及び下地濃度カウンタ43についても同様の構成である。   Next, details of the background detection processing unit 25 of the image processing apparatus 20 will be described. 2 to 5 are block diagrams showing the detailed configuration of the background detection processing unit of the image processing apparatus 20 according to the present invention. The background detection processing unit 25 includes a counting unit 35, a background determination unit 36, a background region extraction unit 37, and the like. The RGB image data output from the region separation processing unit 24 is the counting unit 35 of the background detection processing unit 25. To be given to. The counting unit 35 has three counters, a first counter 41, a second counter 42, and a background density counter 43 (see FIG. 3). The first counter 41 and the second counter 42 include a region separation processing unit 24. The edge detection result included in the region separation result is given. The first counter 41 is a counter that can create a histogram by counting the pixels included in the image data for each pixel density value (0 to 255), and is an aggregate of 256 counters. The second counter 42 and the background density counter 43 have the same configuration.

図6は、計数部35の第1カウンタ41及び第2カウンタ42による計数を説明するための模式図であり、計数部35に与えられる画像データの一部を拡大して図示したものである。また、領域分離処理部24にてエッジ検出を行った結果、エッジに該当する画素をハッチングを付した正方形で示し、エッジに該当しない画素をハッチングを付さない正方形で示してある。計数部35は、与えられたRGBの画像データについて、横方向のラインに従って各画素の濃度値を調べ、第1カウンタ41及び第2カウンタ42による計数を行うようにしてある。   FIG. 6 is a schematic diagram for explaining counting by the first counter 41 and the second counter 42 of the counting unit 35, and shows a part of image data given to the counting unit 35 in an enlarged manner. In addition, as a result of edge detection performed by the region separation processing unit 24, pixels corresponding to the edges are indicated by hatched squares, and pixels not corresponding to the edges are indicated by non-hatched squares. The counting unit 35 examines the density value of each pixel according to the horizontal line for the given RGB image data, and performs counting by the first counter 41 and the second counter 42.

例えば、計数部35は、第1カウンタ41を用いて画素数の計数を画素aから開始し、第1カウンタ41の画素aの濃度値に応じたカウント値に1を加算する。計数部35は横方向のラインに従って第1カウンタ41による計数を継続して行い、エッジに該当する画素bに到達した場合、第1カウンタ41から第2カウンタ42にカウンタを切り替えて、第2カウンタを用いた画素の計数を行う。その後、計数部35はエッジに該当しない画素cに到達した場合には、第2カウンタ42から第1カウンタ41にカウンタを切り替えて、第1カウンタ41を用いた画素の計数を行うようにしてある。即ち、計数部35は、第1カウンタ41にて画像データ中のエッジに該当しない画素(ハッチングを付していない画素)の計数を行ってエッジ以外の成分のヒストグラムを作成し、第2カウンタ42にてエッジに該当する画素(ハッチングを付した画素)の計数を行ってエッジ成分のヒストグラムを作成するようにしてある。   For example, the counting unit 35 uses the first counter 41 to start counting the number of pixels from the pixel a, and adds 1 to the count value corresponding to the density value of the pixel a of the first counter 41. The counting unit 35 continuously performs counting by the first counter 41 according to the horizontal line. When the pixel b corresponding to the edge is reached, the counter 35 switches the counter from the first counter 41 to the second counter 42, and the second counter The pixel is counted using. After that, when the pixel c that does not correspond to the edge is reached, the counting unit 35 switches the counter from the second counter 42 to the first counter 41 and counts the pixels using the first counter 41. . That is, the counting unit 35 counts pixels that do not correspond to the edges in the image data (pixels not hatched) by the first counter 41 to create a histogram of components other than the edges, and the second counter 42. The edge component histogram is created by counting the pixels corresponding to the edges (pixels with hatching).

また、計数部35は、第1カウンタ41及び第2カウンタ42による計数を画像データの所定ライン(1ライン〜数ライン程度)毎に行うようにしてある。計数部35は、所定ラインの画素について計数を終了した場合、第1カウンタ41及び第2カウンタ42の計数結果から最大のカウント値を有する濃度値を抽出する。このとき、第1カウンタ41からカウント値が最大の濃度値を抽出すると共に、第2カウンタ42からカウント値が最大の濃度値を抽出し、これらの2つの濃度値のカウント値を比較して、よりカウント値が多い方の濃度値を更に抽出すればよい。これにより、入力された画像データの所定ラインにおける下地濃度候補値が得られる。計数部35は、抽出した濃度値(下地濃度候補値)に応じた下地濃度カウンタ43のカウント値に1を加算する。   The counting unit 35 performs counting by the first counter 41 and the second counter 42 for each predetermined line (one line to several lines) of the image data. The counting unit 35 extracts the density value having the maximum count value from the counting results of the first counter 41 and the second counter 42 when the counting for the pixels of the predetermined line is completed. At this time, the density value with the maximum count value is extracted from the first counter 41, the density value with the maximum count value is extracted from the second counter 42, and the count values of these two density values are compared, What is necessary is just to further extract the density value with the larger count value. Thereby, a background density candidate value in a predetermined line of the input image data is obtained. The counting unit 35 adds 1 to the count value of the background density counter 43 according to the extracted density value (background density candidate value).

その後、計数部35は、第1カウンタ41及び第2カウンタ42のカウント値をリセットし、全画像データについて計数が終了するまで、所定ライン毎の計数を繰り返し行うようにしてある。全画像データについて上述の処理が終了した場合、計数部35は、下地濃度カウンタ43による計数結果から、カウント値が最大の濃度値を代表下地濃度候補値として抽出し、このときの最大カウント値及び濃度値を下地判定部36へ出力するようにしてある。   Thereafter, the counting unit 35 resets the count values of the first counter 41 and the second counter 42, and repeats counting for each predetermined line until the counting for all image data is completed. When the above-described processing is completed for all image data, the counting unit 35 extracts the density value with the maximum count value as the representative background density candidate value from the count result by the background density counter 43, and the maximum count value and The density value is output to the background determination unit 36.

なお、計数部35が下地濃度カウンタ43の計数結果からカウント値が最大のものを抽出するのみでなく、下地濃度カウンタ43のカウント値が予め定められた閾値以上の濃度値を複数の代表下地濃度候補値として抽出する構成としてもよい。カウント値が最大のもののみを抽出する場合、濃度値をカウントした領域に含まれる下地領域が少ないと下地領域以外の濃度値が抽出される。よって、このような領域が複数存在する場合には、最終的な下地領域の判定の際に、誤判定が生じる可能性がある。そこで、下地濃度カウンタ43のカウント値が予め定められた閾値以上の複数の濃度値を抽出することによって、カウント値が最大でなくとも領域毎にある程度下地が存在すれば、下地領域の濃度値が複数の代表下地濃度候補値として抽出されるため、最終的な判定の際に正しい下地濃度が判定される可能性が高くなる。   The counting unit 35 not only extracts the maximum count value from the count result of the background density counter 43, but also sets a density value equal to or higher than a predetermined threshold value of the background density counter 43 to a plurality of representative background densities. It is good also as a structure extracted as a candidate value. When extracting only the largest count value, if there are few background areas included in the area where the density values are counted, density values other than the background area are extracted. Therefore, when there are a plurality of such regions, there is a possibility that erroneous determination occurs when determining the final background region. Therefore, by extracting a plurality of density values in which the count value of the background density counter 43 is equal to or greater than a predetermined threshold value, if there is some background in each area even if the count value is not the maximum, the density value of the background area is changed. Since it is extracted as a plurality of representative background density candidate values, there is a high possibility that the correct background density is determined in the final determination.

下地判定部36は、最大カウント値判定部45及び濃度値判定部46等を有しており、計数部35から与えられる最大カウント値及び濃度値から画像データに下地が存在するか否かを判定するものである。計数部35からの出力は最大カウント値判定部45に与えられており、最大カウント値判定部45は与えられた最大カウント値が予め定められた第1閾値を超えるか否かを判定するようにしてある。第1閾値は、例えば下地濃度カウンタ43によるカウント値の合計に対する60%程度のカウント値とすることができるが、これに限るものではなく、種々の画像データを調査して適切な値を設定すればよい。   The background determination unit 36 includes a maximum count value determination unit 45, a density value determination unit 46, and the like, and determines whether a background exists in the image data from the maximum count value and the density value given from the count unit 35. To do. The output from the counting unit 35 is given to the maximum count value determining unit 45, and the maximum count value determining unit 45 determines whether or not the given maximum count value exceeds a predetermined first threshold value. It is. The first threshold value can be set to a count value of about 60% of the total count value by the background density counter 43, for example. However, the first threshold value is not limited to this, and an appropriate value can be set by examining various image data. That's fine.

なお、計数部35を下地濃度カウンタ43のカウント値が予め定められた閾値以上の濃度値を複数の代表下地濃度候補値として抽出する構成とした場合には、下地判定部36は最大カウント値判定部45を有さない構成とすることができる。この場合、下地判定部36は、計数部35からの複数のカウント値及び濃度値を濃度値判定部46へ与えるものとする。   When the counting unit 35 is configured to extract density values having a count value of the background density counter 43 equal to or greater than a predetermined threshold as a plurality of representative background density candidate values, the background determination unit 36 determines the maximum count value. It can be set as the structure which does not have the part 45. FIG. In this case, the background determination unit 36 gives a plurality of count values and density values from the counting unit 35 to the density value determination unit 46.

最大カウント値が第1閾値を超える場合、最大カウント値判定部45は計数部35から与えられた濃度値を濃度値判定部46へ与えて、濃度値の判定を行わせるようにしてある。濃度値判定部46は、与えられた濃度値が予め定められた第2閾値を超えるか否かを判定するようにしてある。第2閾値もまた第1閾値と同様に、種々の画像データを調査して下地として許容される濃度範囲を予め設定すればよく、例えば濃度値が200以上を下地の濃度値とした場合には第2閾値を199と設定すればよい。濃度値判定部46にて濃度値が第2閾値を超えると判定された場合、下地判定部36は入力された画像データに下地濃度の画素が含まれていると判定し、このときの濃度値を下地濃度値として下地領域抽出部37へ出力するようにしてある。   When the maximum count value exceeds the first threshold value, the maximum count value determination unit 45 gives the density value given from the counting unit 35 to the density value determination unit 46 so that the density value can be determined. The density value determination unit 46 determines whether or not the given density value exceeds a predetermined second threshold value. Similarly to the first threshold value, the second threshold value may be determined by investigating various image data and setting a density range allowed as a background in advance. For example, when a density value of 200 or more is set as the background density value, The second threshold may be set to 199. When the density value determination unit 46 determines that the density value exceeds the second threshold, the background determination unit 36 determines that the input image data includes a pixel of background density, and the density value at this time Is output to the background area extraction unit 37 as a background density value.

なお、計数部35を下地濃度カウンタ43のカウント値が予め定められた閾値以上の濃度値を複数の代表下地濃度候補値として抽出する構成とした場合には、濃度値判定部46は与えられた複数の代表下地濃度候補値が第2閾値を超えるか否かをそれぞれ判定し、第2閾値を超える全ての濃度値を下地濃度値として下地領域抽出部37へ出力する。   In the case where the counting unit 35 is configured to extract density values having a count value of the background density counter 43 equal to or greater than a predetermined threshold as a plurality of representative background density candidate values, the density value determination unit 46 is given. It is determined whether or not the plurality of representative background density candidate values exceed the second threshold value, and all density values exceeding the second threshold value are output to the background area extraction unit 37 as background density values.

なお、下地判定部36は、閾値1及び閾値2との比較により下地濃度と判定した下地濃度値のみでなく、この値の前後の濃度値を含めて複数の濃度値を下地濃度値として出力してもよい。下地判定部36は、判定した下地濃度値の前後の所定範囲について濃度値に対応するカウンタ値を下地濃度カウンタ43から取得し、このカウンタ値が所定値を超える濃度地を下地濃度値とすればよい。このときの所定値は、例えば画像データの全所定領域の数(即ち、下地濃度カウンタ43の全カウント値の合計値)に対して1/4以上の値などとする。   The background determination unit 36 outputs not only the background density value determined as the background density by comparison with the threshold value 1 and the threshold value 2 but also a plurality of density values including the density values before and after this value as the background density value. May be. The background determination unit 36 acquires a counter value corresponding to the density value for the predetermined range before and after the determined background density value from the background density counter 43, and sets the density background where the counter value exceeds the predetermined value as the background density value. Good. The predetermined value at this time is, for example, a value equal to or greater than 1/4 with respect to the number of all predetermined areas of the image data (that is, the total value of all the count values of the background density counter 43).

下地領域抽出部37は、下地濃度判定部51、連続性カウンタ52、下地領域判定部53及び下地ラインカウンタ54等を有している。下地領域抽出部37は、下地判定部36から与えられた下地濃度値を基に、入力されたRGBの画像データから下地領域の抽出を行うものであり、下地濃度値の画素が所定数以上連続した場合に、この連続した画素を下地領域として抽出するようにしてある。RGBの画像データ及び下地濃度値は下地濃度判定部51に与えられ、下地濃度判定部51は画像データの各画素の濃度値が与えられた下地濃度値に一致するか否かをラインに従って順に判定するようにしてある。下地濃度判定部51は、画像データの各画素の濃度値が下地濃度値に一致する場合には連続性カウンタ52に1を加算し、一致しない場合には連続性カウンタ52をリセットするようにしてある。また、下地濃度判定部51は、画像データのライン毎に処理を行うようにしてあり、1ラインの処理が終了するごとに連続性カウンタ52をリセットするようにしてある。   The background region extraction unit 37 includes a background density determination unit 51, a continuity counter 52, a background region determination unit 53, a background line counter 54, and the like. The background area extraction unit 37 extracts a background area from the input RGB image data based on the background density value given from the background determination unit 36, and a predetermined number or more of pixels of the background density value are consecutive. In this case, the continuous pixels are extracted as the base region. The RGB image data and the background density value are provided to the background density determination unit 51. The background density determination unit 51 sequentially determines whether the density value of each pixel of the image data matches the given background density value according to the line. I have to do it. The background density determination unit 51 adds 1 to the continuity counter 52 when the density value of each pixel of the image data matches the background density value, and resets the continuity counter 52 when they do not match. is there. The background density determination unit 51 performs processing for each line of image data, and resets the continuity counter 52 every time one line of processing is completed.

連続性カウンタ52は、下地濃度値を有する画素が画像データ中で連続する数を計数するためのものであり、1つの値を計数する簡単なカウンタである。連続性カウンタ52は、計数結果であるカウント値を下地領域判定部53へ出力するようにしてある。下地領域判定部53は、連続性カウンタ52のカウント値が第3閾値を超えるか否かを判定し、第3閾値を超える場合には連続した画素が下地の画素である旨を示す情報を画像データに同期して下地除去処理部26へ出力するようにしてある。   The continuity counter 52 is for counting the number of consecutive pixels having background density values in the image data, and is a simple counter for counting one value. The continuity counter 52 is configured to output a count value, which is a counting result, to the background area determination unit 53. The background area determination unit 53 determines whether or not the count value of the continuity counter 52 exceeds the third threshold value. If the count value exceeds the third threshold value, the background area determination unit 53 displays information indicating that consecutive pixels are background pixels. The data is output to the background removal processing unit 26 in synchronization with the data.

また、下地領域判定部53は、画像データのライン毎に下地の画素が含まれていたか否か(即ち、ライン毎に一度でも連続性カウンタ52のカウント値が第3閾値を超えたか否か)を調べ、下地の画素が含まれていた場合には下地ラインカウンタ54に1を加算するようにしてある。下地領域判定部53は、画像データのライン毎にこの判定を行って下地ラインカウンタ54による計数を行って、画像データの全ラインの処理が終了した後に、下地の画素が含まれるライン数が全ライン数の所定割合(例えば70%など)を超えるか否かを調べる。下地の画素が含まれるライン数が所定割合を超える場合、下地領域判定部53は与えられた画像データが下地領域を有すると判定し、また下地の画素が含まれるライン数が所定割合を超えない場合には、画像データが下地領域を有しないと判定し、判定結果を下地除去処理部26へ通知するようにしてある。下地除去処理部26は、この判定結果を基に、画像データが下地領域を有する場合にのみ下地除去処理を行うようにしてある。   Further, the background area determination unit 53 determines whether or not a background pixel is included in each line of the image data (that is, whether or not the count value of the continuity counter 52 exceeds the third threshold even once for each line). If a background pixel is included, 1 is added to the background line counter 54. The background area determination unit 53 performs this determination for each line of the image data, performs the counting by the background line counter 54, and after the processing of all the lines of the image data is completed, the number of lines including the background pixels is all. It is checked whether or not a predetermined ratio (for example, 70%) of the number of lines is exceeded. When the number of lines including the background pixels exceeds a predetermined ratio, the background area determination unit 53 determines that the given image data includes the background area, and the number of lines including the background pixels does not exceed the predetermined ratio. In this case, it is determined that the image data does not have a background area, and the determination result is notified to the background removal processing unit 26. Based on this determination result, the background removal processing unit 26 performs the background removal processing only when the image data has a background area.

なお、計数部35を下地濃度カウンタ43のカウント値が予め定められた閾値以上の濃度値を複数の代表下地濃度候補値として抽出する構成とし、下地判定部36が第2閾値を超える全ての濃度値を下地濃度値として下地領域抽出部37へ出力する構成とした場合には、下地領域抽出部37にて以下の処理を行って、局所的な下地を下地領域ではないと判定し、下地領域の除去を行わないようにすることが可能である。例えば、下地領域抽出部37は与えられた複数の下地濃度値毎に下地濃度判定部51にてそれぞれ判定を行い、連続性カウンタ52にて最もカウント値が大きい(即ち、最も連続性の高い)ものについて、下地領域判定部53にて判定を行う構成とすることができる。   Note that the counting unit 35 is configured to extract, as a plurality of representative background density candidate values, density values whose count value of the background density counter 43 is equal to or greater than a predetermined threshold value, and all the densities for which the background determination unit 36 exceeds the second threshold value. When the value is output to the background area extraction unit 37 as the background density value, the background area extraction unit 37 performs the following processing to determine that the local background is not the background area, and It is possible not to perform the removal. For example, the background area extraction unit 37 performs determination for each of a plurality of given background density values by the background density determination unit 51, and the continuity counter 52 has the largest count value (that is, the highest continuity). It is possible to adopt a configuration in which the background area determination unit 53 determines the object.

また、下地除去処理部26にて下地除去処理を行うことに代えて、例えば画像形成装置が複数の用紙トレイを備えて、各用紙トレイに異なる色つきの用紙をセットすると共に、用紙の色と用紙トレイとの対応を関係付けておくことができる構成の場合には、下地領域抽出部37で抽出された下地領域の色を基に、この色に最も近い色の用紙を使用して出力を行う構成としてもよい。   Further, instead of performing the background removal processing in the background removal processing unit 26, for example, the image forming apparatus includes a plurality of paper trays, sets sheets of different colors in each paper tray, and sets the paper color and the paper. In the case of a configuration in which the correspondence with the tray can be related, output is performed using the paper of the color closest to this color based on the color of the background area extracted by the background area extraction unit 37. It is good also as a structure.

図7は、本発明に係る画像形成装置が行う画像データの下地に係る画像処理の手順を示すフローチャートであり、プログラムコード101を実行するCPU1の制御により画像処理装置20にて行われる処理である。まず画像処理装置20は、領域分離処理部24にて、画像入力装置11から入力された画像データのエッジ検出を行う(ステップS1)。エッジ検出の結果を基に、画像処理装置20は下地検出処理部25の計数部35にて計数処理を行い(ステップS2)、代表下地濃度候補値を抽出する。次いで、抽出した代表下地濃度候補値を基に、画像処理装置20は下地検出処理部25の下地判定部36にて第1閾値及び第2閾値による下地判定処理を行い(ステップS3)、画像データに下地濃度値が含まれているか否かを調べる(ステップS4)。   FIG. 7 is a flowchart showing a procedure of image processing relating to the background of image data performed by the image forming apparatus according to the present invention, which is processing performed by the image processing apparatus 20 under the control of the CPU 1 that executes the program code 101. . First, the image processing device 20 performs edge detection of the image data input from the image input device 11 at the region separation processing unit 24 (step S1). Based on the result of the edge detection, the image processing apparatus 20 performs a counting process in the counting unit 35 of the background detection processing unit 25 (step S2), and extracts a representative background density candidate value. Next, based on the extracted representative background density candidate value, the image processing apparatus 20 performs background determination processing using the first threshold value and the second threshold value in the background determination unit 36 of the background detection processing unit 25 (step S3), and image data It is checked whether or not the background density value is included in (step S4).

下地濃度値が含まれている場合(S4:YES)、画像処理装置20は下地検出処理部25の下地領域抽出部37にて下地領域抽出処理を行って(ステップS5)、下地濃度値を有する画素の連続性から、画像データに下地領域が存在するか否かを調べる(ステップS6)。下地領域が存在する場合(S6:YES)、画像処理装置20は下地除去処理部26にて下地除去処理を行って(ステップS7)、処理を終了する。ステップS4にて下地濃度地が含まれていない場合(S4:NO)、又はステップS6にて下地領域が存在しない場合(S6:NO)、画像処理装置20は下地除去処理を行わずに処理を終了する。   When the background density value is included (S4: YES), the image processing apparatus 20 performs the background area extraction process in the background area extraction unit 37 of the background detection processing unit 25 (step S5), and has the background density value. From the continuity of the pixels, it is checked whether or not a background area exists in the image data (step S6). If a background area exists (S6: YES), the image processing apparatus 20 performs a background removal process in the background removal processing unit 26 (step S7), and the process is terminated. If the background density area is not included in step S4 (S4: NO), or if the background area does not exist in step S6 (S6: NO), the image processing apparatus 20 performs the process without performing the background removal process. finish.

図8及び図9は、本発明に係る画像形成装置が行う計数処理の手順を示すフローチャートであり、図7のフローチャートのステップS2にて行われる処理である。画像処理装置20の計数部35は、まず計数に用いるカウンタとして第1カウンタ41を選択し(ステップS21)、1画素分の画像データを取得する(ステップS22)。なお、画像データの1画素は各8ビット(0〜255)のR、G、Bの濃度値で構成されており、濃度値0が黒を表し、濃度値255が赤、緑、青を表すものとする。   8 and 9 are flowcharts showing the procedure of the counting process performed by the image forming apparatus according to the present invention, which is the process performed in step S2 of the flowchart of FIG. The counting unit 35 of the image processing apparatus 20 first selects the first counter 41 as a counter used for counting (step S21), and acquires image data for one pixel (step S22). One pixel of the image data is composed of 8-bit (0 to 255) density values of R, G, and B, with density value 0 representing black and density value 255 representing red, green, and blue. Shall.

次いで、計数部35は、取得した画素に対する領域分離処理部24からのエッジ検出結果を取得して(ステップS23)、エッジから非エッジへ又は非エッジからエッジへエッジの変化が生じたか否かを調べる(ステップS24)。エッジに変化が生じた場合(S24:YES)、計数部35は第1カウンタ41から第2カウンタ42へ又は第2カウンタ42から第1カウンタ41へカウンタの切り替えを行い(ステップS25)、選択されたカウンタを用いて、取得した画素の濃度値に対応するカウント値のカウントアップを行う(ステップS26)。また、エッジに変化が生じていない場合(S24:NO)、計数部35はカウンタの切り替えを行うことなく、選択されたカウンタのカウントアップを行う(ステップS26)。   Next, the counting unit 35 acquires an edge detection result from the region separation processing unit 24 for the acquired pixel (step S23), and determines whether or not an edge change has occurred from edge to non-edge or from non-edge to edge. Check (step S24). When a change occurs in the edge (S24: YES), the counting unit 35 switches the counter from the first counter 41 to the second counter 42 or from the second counter 42 to the first counter 41 (step S25) and is selected. Using the counter, the count value corresponding to the acquired density value of the pixel is counted up (step S26). If no change has occurred in the edge (S24: NO), the counting unit 35 counts up the selected counter without switching the counter (step S26).

次いで、計数部35は、上述の処理を所定ラインについて終了したか否かを調べ(ステップS27)、終了していない場合には(S27:NO)、ステップS22へ戻って上述の処理を繰り返し行う。所定ラインについて処理が終了した場合(S27:YES)、計数部35は、第1カウンタ41及び第2カウンタ42のカウント値を調べて、カウント値が最大の濃度値(下地濃度候補値)を抽出し(ステップS28)、抽出した濃度値に対応する下地濃度カウンタ43のカウントアップを行って(ステップS29)、第1カウンタ41及び第2カウンタ42をリセットする(ステップS30)。   Next, the counting unit 35 checks whether or not the above process has been completed for a predetermined line (step S27). If not completed (S27: NO), the counting unit 35 returns to step S22 and repeats the above process. . When the process is completed for the predetermined line (S27: YES), the counting unit 35 examines the count values of the first counter 41 and the second counter 42 and extracts the density value (background density candidate value) having the maximum count value. Then, the background density counter 43 corresponding to the extracted density value is counted up (step S29), and the first counter 41 and the second counter 42 are reset (step S30).

次いで、計数部35は、画像データの全画素について上述の処理を終了したか否かを調べ(ステップS31)、全画素について処理を終了していない場合は(S31:NO)、ステップS21へ戻って上述の処理を繰り返し行う。全画素について処理を終了した場合(S31:YES)、計数部35は、下地濃度カウンタ43のカウント値から、カウント値が最大の濃度値(代表下地濃度候補値)を抽出して(ステップS32)、抽出した最大カウント値及び対応する濃度値を下地判定部36へ出力し、計数処理を終了する。   Next, the counting unit 35 checks whether or not the above process has been completed for all the pixels of the image data (step S31). If the process has not been completed for all the pixels (S31: NO), the process returns to step S21. The above process is repeated. When the processing has been completed for all pixels (S31: YES), the counting unit 35 extracts the density value (representative background density candidate value) having the maximum count value from the count value of the background density counter 43 (step S32). The extracted maximum count value and the corresponding density value are output to the background determination unit 36, and the counting process is terminated.

図10は、本発明に係る画像形成装置が行う下地判定処理の手順を示すフローチャートであり、図7のフローチャートのステップS3にて行われる処理である。まず、画像処理部20の下地判定処理部36は、計数部35が出力した最大カウント値及び濃度値を取得し(ステップS41)、取得した最大カウント値が第1閾値を超えるか否かを最大カウント値判定部45にて調べる(ステップS42)。最大カウント値が第1閾値を超える場合には(S42:YES)、更に、下地判定処理部36は、取得した濃度値が第2閾値を超えるか否かを濃度値判定部46にて調べる(ステップS43)。濃度値が第2閾値を超える場合(S43:YES)、下地判定処理部36は、この濃度値を下地濃度値として下地領域抽出部37へ出力し(ステップS44)、下地判定処理を終了する。ステップS42にて最大カウント値が第1閾値を超えない場合(S42:NO)、又はステップS43にて濃度値が第2閾値を超えない場合(S43:NO)、下地判定処理部36は、画像データに下地領域が含まれておらず、下地濃度値が存在しないと判定して(ステップS45)、下地判定処理を終了する。   FIG. 10 is a flowchart showing the procedure of the background determination process performed by the image forming apparatus according to the present invention, and is the process performed in step S3 of the flowchart of FIG. First, the background determination processing unit 36 of the image processing unit 20 acquires the maximum count value and the density value output from the counting unit 35 (step S41), and determines whether or not the acquired maximum count value exceeds the first threshold value. The count value determination unit 45 checks (step S42). When the maximum count value exceeds the first threshold (S42: YES), the background determination processing unit 36 further checks whether or not the acquired density value exceeds the second threshold by the density value determination unit 46 ( Step S43). When the density value exceeds the second threshold value (S43: YES), the background determination processing unit 36 outputs this density value as the background density value to the background area extraction unit 37 (step S44), and ends the background determination process. If the maximum count value does not exceed the first threshold value in step S42 (S42: NO), or if the density value does not exceed the second threshold value in step S43 (S43: NO), the background determination processing unit 36 selects the image It is determined that the background area is not included in the data and the background density value does not exist (step S45), and the background determination process ends.

図11及び図12は、本発明に係る画像形成装置が行う下地領域抽出処理の手順を示すフローチャートであり、図7のフローチャートのステップS5にて行われる処理である。まず、画像処理部20の下地領域抽出部37は、下地判定処理部36からの下地濃度値を取得し(ステップS61)、1画素分の画像データを取得して(ステップS62)、この画素の濃度が下地濃度であるか否かを下地濃度判定部51にて調べる(ステップS63)。取得した画素の濃度が下地濃度である場合(S63:YES)、連続性カウンタ52をカウントアップして(ステップS64)、ステップS68へ進む。   11 and 12 are flowcharts showing the procedure of the background area extraction process performed by the image forming apparatus according to the present invention, which is the process performed in step S5 of the flowchart of FIG. First, the background region extraction unit 37 of the image processing unit 20 acquires the background density value from the background determination processing unit 36 (step S61), acquires image data for one pixel (step S62), Whether the density is a background density is checked by the background density determination unit 51 (step S63). When the acquired pixel density is the background density (S63: YES), the continuity counter 52 is counted up (step S64), and the process proceeds to step S68.

取得した画素の濃度が下地濃度でない場合(S63:NO)、更に下地領域抽出部37は、連続性カウンタ52のカウント値が第3閾値を超えるか否かを下地領域判定部53にて調べる(ステップS65)。カウント値が第3閾値を超える場合(S65:YES)、下地領域抽出部37は、連続する画素が下地領域の画素である旨を示す下地領域情報を画像データに同期させて下地除去処理部26へ出力し(ステップS66)、連続性カウンタ52をリセットして(ステップS67)、ステップS68へ進む。また、連続性カウンタ52のカウント値が第3閾値を超えない場合には(S65:NO)、下地領域抽出部37は、下地領域情報を出力せずに、連続性カウンタ52をリセットして(ステップS67)、ステップS68へ進む。連続性カウンタ52のカウントアップ又はリセットを行った後、下地領域抽出部37は、画像データの所定ラインについて上述の処理が終了したか否かを調べ(ステップS68)、終了していない場合には(S68:NO)、ステップS62へ戻って上述の処理を繰り返し行う。   When the acquired pixel density is not the background density (S63: NO), the background area extraction unit 37 further checks whether the count value of the continuity counter 52 exceeds the third threshold value by the background area determination unit 53 ( Step S65). When the count value exceeds the third threshold (S65: YES), the background area extraction unit 37 synchronizes the background area information indicating that the continuous pixels are the pixels of the background area with the image data, and the background removal processing unit 26 (Step S66), the continuity counter 52 is reset (step S67), and the process proceeds to step S68. If the count value of the continuity counter 52 does not exceed the third threshold (S65: NO), the background area extraction unit 37 resets the continuity counter 52 without outputting the background area information ( The process proceeds to step S67) and step S68. After counting up or resetting the continuity counter 52, the background area extraction unit 37 checks whether or not the above-described processing has been completed for a predetermined line of image data (step S68). (S68: NO), the process returns to step S62 and the above process is repeated.

所定ラインについて処理が終了した場合(S68:YES)、更に下地領域抽出部37は、この所定ラインに下地の画素が含まれていたか否かを調べる(ステップS69)。所定ラインに下地の画素が含まれていた場合(S69:YES)、下地領域抽出部37は下地ラインカウンタ54をカウントアップし(ステップS70)、ステップS71へ進む。所定ラインに下地の画素が含まれていなかった場合(S69:NO)、下地ラインカウンタ54をカウントアップせずに、下地領域抽出部37はステップS71へ進む。次いで、下地領域抽出部37は、上述の処理を画像データの全画素について終了したか否かを調べ(ステップS71)、全画素について終了していない場合には(S71:NO)、ステップS62へ戻って上述の処理を繰り返し行う。   When the processing is completed for the predetermined line (S68: YES), the ground area extraction unit 37 further checks whether or not the ground pixel is included in the predetermined line (step S69). If the predetermined line includes a background pixel (S69: YES), the background region extraction unit 37 counts up the background line counter 54 (step S70), and proceeds to step S71. If no background pixel is included in the predetermined line (S69: NO), the background area extraction unit 37 proceeds to step S71 without counting up the background line counter 54. Next, the background area extraction unit 37 checks whether or not the above-described processing has been completed for all the pixels of the image data (step S71), and if not completed for all the pixels (S71: NO), proceeds to step S62. Return and repeat the above process.

画像データの全画素について処理が終了した場合(S71:YES)、更に下地領域抽出部37は、下地ラインカウンタ54によりカウントされた下地ラインの数が全ラインに対する所定割合を超えたか否かを調べる(ステップS72)。下地ラインの数が所定割合を超えた場合(S72:YES)、下地領域抽出部37は、画像データ中に下地領域が存在すると判定し(ステップS73)、処理を終了する。下地ラインの数が所定割合を超えない場合(S72:NO)、下地領域抽出部37は、画像データ中に下地領域が存在しないと判定し(ステップS74)、処理を終了する。   When the processing has been completed for all the pixels of the image data (S71: YES), the background area extraction unit 37 further checks whether the number of background lines counted by the background line counter 54 has exceeded a predetermined ratio with respect to all lines. (Step S72). When the number of background lines exceeds a predetermined ratio (S72: YES), the background area extraction unit 37 determines that there is a background area in the image data (step S73), and ends the process. If the number of background lines does not exceed the predetermined ratio (S72: NO), the background area extraction unit 37 determines that there is no background area in the image data (step S74), and ends the process.

図13は、本発明に係る画像形成装置が行う下地除去処理の手順を示すフローチャートであり、図7のフローチャートのステップS7にて行われる処理である。画像処理装置20の下地除去処理部26は、まず、下地検出処理部25から出力される1画素分の画像データを取得すると共に(ステップS81)、下地検出結果として画像データに同期して出力される下地領域情報を取得する(ステップS82)。次いで、下地除去処理部26は、取得した下地領域情報を基に、取得した画像データの画素が下地の画素であるか否かを調べる(ステップS83)。取得した画素が下地の場合(S83:YES)、下地除去処理部26は下地の除去を行って(ステップS84)、ステップS85へ進む。なお、下地の除去は、例えば下地の画素の濃度値を255などの予め定められた濃度値に変換することで行うことができる。取得した画素が下地でない場合(S83:NO)、下地除去処理部26は下地の除去を行わずにステップS85へ進む。次いで、下地除去処理部26は、画像データの全ての画素について上述の処理が終了したか否かを調べ(ステップS85)、全ての画素について終了していない場合には(S85:NO)、ステップS81へ戻って上述の処理を繰り返し行い、全ての画素について終了した場合には(S85:YES)、下地除去処理を終了する。   FIG. 13 is a flowchart showing the procedure of the background removal process performed by the image forming apparatus according to the present invention, which is the process performed in step S7 of the flowchart of FIG. The background removal processing unit 26 of the image processing apparatus 20 first acquires image data for one pixel output from the background detection processing unit 25 (step S81), and outputs the image data as a background detection result in synchronization with the image data. Background area information is acquired (step S82). Next, the background removal processing unit 26 checks whether the pixel of the acquired image data is a background pixel based on the acquired background area information (step S83). If the acquired pixel is a background (S83: YES), the background removal processing unit 26 removes the background (step S84) and proceeds to step S85. The background removal can be performed by converting the density value of the background pixel to a predetermined density value such as 255, for example. If the acquired pixel is not a background (S83: NO), the background removal processing unit 26 proceeds to step S85 without removing the background. Next, the background removal processing unit 26 checks whether or not the above-described processing has been completed for all the pixels of the image data (step S85), and if not completed for all the pixels (S85: NO), step Returning to S81, the above-described processing is repeated, and if all the pixels are finished (S85: YES), the background removal processing is finished.

図14は、画像入力装置11が画像処理部20に入力する画像データの一例を示す模式図である。図示の画像データは、文字、網点写真及び網点下地の領域を有しており、それ以外の領域が下地領域である。画像処理部20の下地検出処理部25は画像データの横方向の1ライン〜数ラインを所定領域として処理を行うが、図14にはこれらのうちの3つの所定領域121〜123を一点鎖線で囲む領域として図示してある。所定領域121には文字及び下地の画素が含まれており、所定領域122には文字、網点写真及び下地の画素が含まれており、所定領域123には文字、網点下地及び下地の画素が含まれている。   FIG. 14 is a schematic diagram illustrating an example of image data input to the image processing unit 20 by the image input device 11. The illustrated image data has areas for characters, halftone dot photographs, and halftone dot backgrounds, and other areas are background areas. The background detection processing unit 25 of the image processing unit 20 performs processing using one to several lines in the horizontal direction of the image data as a predetermined region. In FIG. 14, three predetermined regions 121 to 123 are indicated by a one-dot chain line. It is illustrated as a surrounding area. The predetermined area 121 includes characters and background pixels, the predetermined area 122 includes characters, halftone pictures, and background pixels, and the predetermined area 123 includes characters, halftone dots, and background pixels. It is included.

図15は、所定領域121〜123の画素の構成を説明するための模式図であり、(a)に所定領域121の構成を示し、(b)に所定領域122の構成を示し、(c)に所定領域123の構成を示してある。図15(a)〜(c)においては、上段には画像データの濃度値を画素の高低で示してあり、濃度値が低い(即ち暗い)画素を上側に示し、濃度値が高い(即ち明るい)画素を下側に示してある。また、下段には画像データのエッジ検出結果を示してあり、ハッチングを付した画素がエッジとして検出されたものである。なお、図15に示す画像データでは各所定領域が37個の画素で構成されているが、これは簡略化したものであり、実際には画像データはより多数の画素で構成される。   FIG. 15 is a schematic diagram for explaining the configuration of the pixels in the predetermined areas 121 to 123, where (a) shows the configuration of the predetermined area 121, (b) shows the configuration of the predetermined area 122, and (c). The structure of the predetermined area 123 is shown in FIG. In FIGS. 15A to 15C, the density values of the image data are shown in the upper level in the upper stage, the pixels having low density values (that is, dark) are shown on the upper side, and the density values are high (that is, bright). ) Pixels are shown below. Further, the lower part shows the edge detection result of the image data, and the hatched pixels are detected as edges. In the image data shown in FIG. 15, each predetermined area is composed of 37 pixels. However, this is a simplified one, and the image data is actually composed of a larger number of pixels.

また、図16は、計数部35の第1カウンタ41及び第2カウンタ42の一計数例を示す図表であり、図15(a)〜(c)における計数結果をそれぞれ図16(a)〜(c)に示してある。なお、図16においては、画像データ中の文字の濃度値は10とし、下地の濃度値は200とし、網点写真の同度値は100から199までの値が不均一に分散しているとし、網点の濃度値は150及び250の2つの値が均一に分散しているとする。   FIG. 16 is a chart showing a counting example of the first counter 41 and the second counter 42 of the counting unit 35. The counting results in FIGS. 15 (a) to 15 (c) are shown in FIGS. c). In FIG. 16, it is assumed that the character density value in the image data is 10, the background density value is 200, and the halftone dot similarity value is unevenly distributed from 100 to 199. Suppose that the density values of the halftone dots are uniformly distributed between 150 and 250.

所定領域121には下地121a及び文字121bの2種の画素が含まれており、全37画素中の14画素がエッジである(図15(a)参照)。上述のように下地検出処理部25の計数部35では、エッジでない画素について濃度値毎に第1カウンタ41にて画素数を計数し、エッジの画素について第2カウンタ42にて画素数を計数するようにしてある。よって、第1カウンタ41は、下地121aのエッジ以外の部分と、文字121bのエッジ以外の部分(即ち、文字121bの内部)とについてのヒストグラムを作成する。第2カウンタ42は、下地121a及び文字121bのエッジ部分のヒストグラムを作成する。   The predetermined area 121 includes two types of pixels, a base 121a and a character 121b, and 14 of all 37 pixels are edges (see FIG. 15A). As described above, the counting unit 35 of the background detection processing unit 25 counts the number of pixels by the first counter 41 for each density value for pixels that are not edges, and counts the number of pixels by the second counter 42 for pixels at the edges. It is like that. Therefore, the first counter 41 creates a histogram for a portion other than the edge of the base 121a and a portion other than the edge of the character 121b (that is, the inside of the character 121b). The second counter 42 creates a histogram of the edge portions of the base 121a and the character 121b.

所定領域121の計数結果(図16(a)参照)では、第1カウンタ41による濃度値10の画素数が10であり、濃度値200の画素数が17である。また、第2カウンタ42による濃度値10の画素数が6であり、濃度値200の画素数が8である。よって、最大のカウント値は第1カウンタ41の濃度値200のカウント値17であり、計数部35はこの濃度値200を下地濃度候補値とし、下地濃度カウンタ43の濃度値200のカウント値をカウントアップする。   In the counting result of the predetermined area 121 (see FIG. 16A), the number of pixels of the density value 10 by the first counter 41 is 10, and the number of pixels of the density value 200 is 17. Further, the number of pixels having the density value 10 by the second counter 42 is 6, and the number of pixels having the density value 200 is 8. Therefore, the maximum count value is the count value 17 of the density value 200 of the first counter 41, and the counting unit 35 uses the density value 200 as a background density candidate value and counts the count value of the density value 200 of the background density counter 43. Up.

所定領域122には下地122a、写真122b及び文字122cの3種の画素が含まれている(図15(b)参照)。所定領域122の計数結果(図16(b)参照)では、第1カウンタ41による濃度値10の画素数が1であり、濃度値100〜199に9画素が分散し、濃度値200の画素数が8である。また、第2カウンタ42による濃度値10の画素数が4であり、濃度値100〜199に7画素が分散し、濃度地200の画素数が8である。濃度値100〜199の画素は分散しているため、最大のカウント値は第1カウンタ41及び第2カウンタ42の濃度値200のカウント値8であり、計数部35はこの濃度値200を下地濃度候補値とし、下地濃度カウンタ43の濃度値200のカウント値をカウントアップする。   The predetermined area 122 includes three types of pixels, that is, a background 122a, a photograph 122b, and a character 122c (see FIG. 15B). In the counting result of the predetermined area 122 (see FIG. 16B), the number of pixels having the density value 10 by the first counter 41 is 1, nine pixels are dispersed in the density values 100 to 199, and the number of pixels having the density value 200. Is 8. Further, the number of pixels with the density value 10 by the second counter 42 is 4, 7 pixels are dispersed in the density values 100 to 199, and the number of pixels of the density area 200 is 8. Since the pixels having the density values of 100 to 199 are dispersed, the maximum count value is the count value 8 of the density value 200 of the first counter 41 and the second counter 42, and the counting unit 35 uses the density value 200 as the background density. As a candidate value, the count value of the density value 200 of the background density counter 43 is counted up.

所定領域123には下地123a、網点下地123b及び文字123cの3種の画素が含まれている(図15(c)参照)。所定領域123の計数結果(図16(c)参照)では、第1カウンタ41による濃度値10の画素数が4であり、濃度値150の画素数が3であり(エッジでない網点領域の画素数は6であるが、網点領域では濃度値150の画素と濃度値250の画素とが均等に分散するため)、濃度値200の画素数が9であり、濃度値250の画素数が3である。また、第2カウンタ42による濃度値10の画素数が6であり、濃度値150の画素数が5であり、濃度値200の画素数が2であり、濃度値250の画素数が5である。よって、最大のカウント値は第1カウンタ41の濃度値200のカウント値9であり、計数部35はこの濃度値200を下地濃度候補値とし、下地濃度カウンタ43の濃度値200のカウント値をカウントアップする。   The predetermined area 123 includes three types of pixels, a background 123a, a halftone background 123b, and a character 123c (see FIG. 15C). In the counting result of the predetermined area 123 (see FIG. 16C), the number of pixels with the density value 10 by the first counter 41 is 4, and the number of pixels with the density value 150 is 3 (pixels in the halftone area that are not edges). The number of pixels is 6, but in the halftone dot area, the pixels having the density value 150 and the pixels having the density value 250 are evenly distributed), so the number of pixels of the density value 200 is 9, and the number of pixels of the density value 250 is 3 It is. Further, the number of pixels of the density value 10 by the second counter 42 is 6, the number of pixels of the density value 150 is 5, the number of pixels of the density value 200 is 2, and the number of pixels of the density value 250 is 5. . Therefore, the maximum count value is the count value 9 of the density value 200 of the first counter 41, and the counting unit 35 sets the density value 200 as a background density candidate value and counts the count value of the density value 200 of the background density counter 43. Up.

3つの所定領域121〜123についての第1カウンタ41及び第2カウンタ42による計数結果では、濃度値200のカウント値が最大であるため、下地濃度カウンタ43の濃度値200のカウント値には3が加算される。ただし、画像データ全体について計数を行った場合、必ずしも濃度値200のカウント値が最大となるわけではないため、この場合には下地濃度カウンタ43の対応するカウント値をカウントアップする。しかし、本発明に係る画像形成装置のように、画像データの1ライン〜数ラインを所定領域として部分的に濃度値毎の画素数を計数し、更にカウント値が最大となる濃度値の画素数を計数することによって、画像データの全体に亘って多く存在する濃度値が下地濃度カウンタ43に多数カウントされるため、下地濃度カウンタ43の最大カウント値に対応する濃度値が画像データの全体に存在する濃度値とすることができる。   In the count results of the first counter 41 and the second counter 42 for the three predetermined areas 121 to 123, the count value of the density value 200 is the maximum, and therefore, the count value of the density value 200 of the background density counter 43 is 3. Is added. However, when counting is performed for the entire image data, the count value of the density value 200 is not necessarily the maximum. In this case, the corresponding count value of the background density counter 43 is counted up. However, as in the image forming apparatus according to the present invention, the number of pixels for each density value is partially counted using one line to several lines of image data as a predetermined area, and the number of pixels having a density value that maximizes the count value. Since the background density counter 43 counts a large number of density values that exist throughout the entire image data, the density value corresponding to the maximum count value of the background density counter 43 exists in the entire image data. The density value to be

ただし、下地濃度カウンタ43により計数される所定領域の数の最大値が、画像データの全所定領域の数に対して一定以上の数に達していない場合には、この最大値に対応する濃度値が画像データの全体に分布していない虞があるため、本発明に係る画像形成装置では下地判定部36にて下地濃度カウンタ43による最大カウント値と閾値1との比較を行い、最大カウント値が閾値1を超えない場合には画像データに下地領域が含まれないと判定するようにしてある。また、最大カウント値に対応する濃度値が小さい、即ち濃度が濃い場合には、この濃度値は下地の濃度ではない虞があるため、本発明に係る画像形成装置では下地判定部36にて下地濃度カウンタ43の最大カウント値に対応する濃度値と閾値2との比較を行い、濃度値が画像データに下地領域が含まれないと判定するようにしてある。また、閾値1及び閾値2との比較処理を行って下地濃度値を決定した下地判定部36は、この下地濃度値の前後の濃度値についても下地濃度カウンタ43のカウンタ値を基に下地濃度と判定し、複数の下地濃度値を出力する構成とすることもできる。   However, if the maximum value of the number of predetermined areas counted by the background density counter 43 does not reach a certain number with respect to the number of all predetermined areas of the image data, the density value corresponding to this maximum value In the image forming apparatus according to the present invention, the background determination unit 36 compares the maximum count value by the background density counter 43 with the threshold value 1 so that the maximum count value is not distributed over the entire image data. When the threshold value 1 is not exceeded, it is determined that the background area is not included in the image data. Further, when the density value corresponding to the maximum count value is small, that is, when the density is high, the density value may not be the density of the background. Therefore, in the image forming apparatus according to the present invention, the background determination unit 36 performs the background determination. The density value corresponding to the maximum count value of the density counter 43 is compared with the threshold value 2, and it is determined that the density value does not include the background area in the image data. In addition, the background determination unit 36 that determines the background density value by performing the comparison process with the threshold value 1 and the threshold value 2 also determines the background density and the density value before and after the background density value based on the counter value of the background density counter 43. It is also possible to adopt a configuration that determines and outputs a plurality of background density values.

第1カウンタ41、第2カウンタ42及び下地濃度カウンタ43を用いて下地濃度を取得した後、下地領域抽出部37は入力された画像データから下地領域を抽出する。下地領域抽出部37には画像データが1画素毎に与えられており、下地領域抽出部37は与えられた画素の濃度値が下地濃度値であるか否かを判定する。与えられた画素の濃度値が下地濃度値である場合、下地領域抽出部37は連続性カウンタ52に1を加算し、初めて連続性カウンタ52に1を加算するとき(即ち、連続性カウンタ52の値が0から1に変化したとき)にはこの画素の位置情報を保持しておく。与えられた画素の濃度値が下地濃度値でない場合、同じ所定領域中のこの画素以前の画素までの連続性を連続性カウンタ52のカウント値を基に下地領域抽出部37が判定する。連続性カウンタ52のカウント値が閾値3を超えない場合、これらの画素は下地領域のものではないと下地領域抽出部37は判定する。連続性カウンタ52のカウント値が閾値3を超える場合、下地領域抽出部37はこれらの画素を下地領域のものであると判定し、この画素の位置の1つ前までの画素に同期して、下地領域である旨を示す信号を下地検出結果として下地除去処理部26へ出力する。なお、閾値3は、例えば画像データの1ラインの画素数が7000であるとき、閾値3=700として、10%以上の割合の画素が連続した場合に連続性があると判定することができる。なお、この割合についても実験的又は経験的に予め決定すればよいが、画像データのサイズ又は倍率等に応じたものである。また、下地検出処理部25と下地除去処理部26との同期をとるために、下地検出処理部25から出力する画像データは1ライン分のラインバッファに保持されており、1ラインの全画素の処理が終了するまで下地領域抽出部37は連続性の判定を繰り返し行い、1ラインの処理が終了した場合に連続性カウンタ52の値をリセットする。   After obtaining the background density using the first counter 41, the second counter 42, and the background density counter 43, the background area extraction unit 37 extracts the background area from the input image data. The background area extraction unit 37 is provided with image data for each pixel, and the background area extraction unit 37 determines whether or not the density value of the given pixel is the background density value. When the density value of the given pixel is the background density value, the background area extraction unit 37 adds 1 to the continuity counter 52 and first adds 1 to the continuity counter 52 (that is, the continuity counter 52 When the value changes from 0 to 1, the position information of this pixel is retained. When the density value of the given pixel is not the background density value, the background area extraction unit 37 determines the continuity up to the previous pixel in the same predetermined area based on the count value of the continuity counter 52. When the count value of the continuity counter 52 does not exceed the threshold value 3, the ground area extraction unit 37 determines that these pixels are not in the ground area. When the count value of the continuity counter 52 exceeds the threshold 3, the background area extraction unit 37 determines that these pixels are those of the background area, and synchronizes with the pixels up to the previous position of this pixel, A signal indicating the background area is output to the background removal processing unit 26 as a background detection result. For example, when the number of pixels in one line of the image data is 7000, the threshold value 3 is 700, and it can be determined that there is continuity when pixels having a ratio of 10% or more continue. This ratio may be determined in advance experimentally or empirically, but depends on the size or magnification of the image data. In addition, in order to synchronize the background detection processing unit 25 and the background removal processing unit 26, image data output from the background detection processing unit 25 is held in a line buffer for one line, and all pixels in one line are stored. The background region extraction unit 37 repeatedly determines the continuity until the process is completed, and resets the value of the continuity counter 52 when the process for one line is completed.

これらの処理によって、画像入力装置11から入力された画像データに対する下地領域の検出処理が終了する。図17は、下地領域の検出結果の一例を示す模式図であり、図14に示した画像データについて上述の処理を行った処理結果を示してある。図17にハッチングを付して示した領域が検出された下地領域である。なお、画像データの文字領域は、実際には1文字毎に文字形状に従って分離されるが、図17においては簡略化のために文字列毎に分離したように図示してある。よって、この文字列の部分に含まれる文字以外の画素についても実際には下地検出処理部25が下地領域として出力する。   With these processes, the background area detection process for the image data input from the image input device 11 is completed. FIG. 17 is a schematic diagram showing an example of the detection result of the background region, and shows the processing result obtained by performing the above-described processing on the image data shown in FIG. The areas indicated by hatching in FIG. 17 are the detected base areas. Note that the character area of the image data is actually separated according to the character shape for each character, but in FIG. 17, it is illustrated as separated for each character string for simplification. Therefore, the background detection processing unit 25 actually outputs a pixel other than the character included in the character string portion as the background region.

下地検出処理部25にて下地領域が検出された後、この検出結果を基に下地除去処理部26が画像データから下地の除去処理を行う。下地除去処理部26には画像データに同期して下地検出結果が与えられており、処理対象の画素が下地領域の画素である場合、下地除去処理部26はこの画素の濃度値を白色に変換する。下地領域の画素でない場合には、下地除去処理部26は与えられた画素をそのまま出力する。下地除去処理部26は、この処理を画像データの全画素について行う。   After the background area is detected by the background detection processing unit 25, the background removal processing unit 26 performs background removal processing from the image data based on the detection result. When the background detection result is given to the background removal processing unit 26 in synchronization with the image data, and the pixel to be processed is a pixel in the background region, the background removal processing unit 26 converts the density value of this pixel to white To do. If it is not a pixel in the background area, the background removal processing unit 26 outputs the given pixel as it is. The background removal processing unit 26 performs this process for all the pixels of the image data.

ただし、例えば下地検出処理部25が、検出した下地濃度値を基に、この下地濃度値が白く変換されるようなガンマカーブを生成して下地検出結果として下地除去処理部26へ与え、下地除去処理部26がこのガンマカーブを基に画像データの変換を行う構成としてもよい。   However, for example, the background detection processing unit 25 generates a gamma curve such that the background density value is converted to white based on the detected background density value, and supplies the gamma curve to the background removal processing unit 26 as a background detection result. The processing unit 26 may be configured to convert image data based on the gamma curve.

以上の構成の画像形成装置においては、画像データの1ライン又は複数ラインによる所定領域毎に複数のカウンタ(第1カウンタ41及び第2カウンタ42)を用いて下地濃度候補値を抽出し、複数の下地濃度候補値から下地濃度カウンタ43を用いて代表下地濃度候補値を抽出し、このときのカウント値及び代表下地濃度候補値を閾値1及び閾値2と下地判定部36にて比較して下地濃度を取得する構成とすることにより、画像データの全体に亘って広く分布する濃度を下地濃度値として取得することができるため、画像形成装置が精度よく下地を除去した高品質の画像を形成することができる。また、下地濃度値を有する画素が所定数以上連続している場合にのみ、これらの連続した画素を下地領域と判定する構成とすることにより、画像形成装置はより精度よく画像データから下地領域を検出することができる。   In the image forming apparatus having the above configuration, the background density candidate values are extracted using a plurality of counters (first counter 41 and second counter 42) for each predetermined region of one line or a plurality of lines of image data. A representative background density candidate value is extracted from the background density candidate value using the background density counter 43, and the count value and the representative background density candidate value at this time are compared with the threshold values 1 and 2 by the background determination unit 36, and the background density is compared. With this configuration, the density widely distributed over the entire image data can be acquired as the background density value, so that the image forming apparatus can form a high-quality image with the background removed accurately. Can do. Further, only when a predetermined number or more of pixels having the background density value are continuous, the image forming apparatus determines the background area from the image data more accurately by determining these consecutive pixels as the background area. Can be detected.

なお、本実施の形態においては、メモリカード100からプログラムコード101(実行形式プログラム、中間コードプログラム又はソースプログラム等)をCPU1が読み出して実行することにより画像形成装置が上述の下地検出処理を行う構成としたが、これに限るものではなく、ROM2に予めプログラムコード101を記憶しておく構成としてもよい。また、プログラムコード101を汎用のコンピュータなどにて実行することにより、コンピュータ上にて上述の下地検出処理を行う構成としてもよい。また、プログラムコード101をメモリカード100が保持するのではなく、コンピュータに備えられたROM、RAM又はハードディスク等に保持する構成とすることもできる。更には、画像形成装置若しくはコンピュータ等に着脱可能な記録媒体として、磁気テープ若しくはカセットテープ等のテープ媒体、フレキシブルディスク若しくはハードディスク等の磁気ディスク媒体、CD−ROM、MO、MD若しくはDVD等のディスク媒体、ICカード若しくは光カード等のカード媒体、又はマスクROM、EPROM、EEPROM若しくはフラッシュメモリ等の半導体メモリ等にプログラムコード101を保持する構成としてもよい。これにより、下地検出処理及び下地除去処理を行うプログラムコード101を記録媒体によって持ち運び自由に提供することができる。   In the present embodiment, the CPU 1 reads out and executes the program code 101 (executable program, intermediate code program, source program, etc.) from the memory card 100, and the image forming apparatus performs the above-described background detection processing. However, the present invention is not limited to this, and the program code 101 may be stored in the ROM 2 in advance. Alternatively, the above-described background detection processing may be performed on a computer by executing the program code 101 on a general-purpose computer or the like. Further, the program code 101 may be held not in the memory card 100 but in a ROM, RAM, hard disk, or the like provided in the computer. Furthermore, as a recording medium that can be attached to and detached from the image forming apparatus or computer, a tape medium such as a magnetic tape or a cassette tape, a magnetic disk medium such as a flexible disk or a hard disk, a disk medium such as a CD-ROM, MO, MD, or DVD The program code 101 may be stored in a card medium such as an IC card or an optical card, or a semiconductor memory such as a mask ROM, EPROM, EEPROM, or flash memory. Accordingly, the program code 101 for performing the background detection process and the background removal process can be freely carried by the recording medium and provided.

また、これらの記録媒体に保持されたプログラムコード101は、画像形成装置又はコンピュータ等が直接的に読み出して実行する構成であってもよく、画像形成装置又はコンピュータ等に備えられたハードディスクなどに予めインストールされて、画像形成装置又はコンピュータ等がインストールされたプログラムコード101を読み出して実行する構成であってもよい。   Further, the program code 101 held in these recording media may be directly read and executed by the image forming apparatus or the computer, or may be stored in advance on a hard disk provided in the image forming apparatus or the computer. The program code 101 which is installed and the image forming apparatus or the computer is installed may be read and executed.

また、インターネット及びLAN等のネットワークに接続機能を画像形成装置又はコンピュータ等に搭載し、ネットワークを介してプログラムコード101をダウンロードする構成としてもよい。この場合、ダウンロードの処理を行うプログラムは画像形成装置又はコンピュータ等に予め記憶しておくか、又は種々の記録媒体に保持されたプログラムをインストールして実行する構成としてもよい。なお、本発明は、プログラムコード101が電子的な伝送で具現化された搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。また、プログラムコード101は、上述の下地検出処理及び下地除去処理のみを実行するためのものでなく、画像形成装置のその他の処理を含めて統括的に実行するように構成されたものであってよい。   In addition, a connection function may be installed in an image forming apparatus, a computer, or the like on a network such as the Internet and a LAN, and the program code 101 may be downloaded via the network. In this case, a program for performing the download process may be stored in advance in an image forming apparatus or a computer, or may be configured to install and execute a program held in various recording media. Note that the present invention can also be realized in the form of a computer data signal in which the program code 101 is embedded in a carrier wave embodied by electronic transmission. Further, the program code 101 is configured not to execute only the above-described background detection processing and background removal processing, but to be executed comprehensively including other processing of the image forming apparatus. Good.

また、画像入力装置11としては、例えばフラットヘッドスキャナ、フィルムスキャナ又はデジタルカメラ等の機器を用いることができる。画像出力装置12としては、例えばCRTディスプレイ若しくは液晶ディスプレイ等の画像表示装置、又は処理結果を紙などの記録用紙に出力する電子写真方式若しくはインクジェット方式等のプリンタ等を用いることができる。また、画像形成装置は、ネットワークを介してサーバ装置などに接続するための通信手段としてモデムなどを備える構成としてもよい。   Further, as the image input device 11, for example, a device such as a flat head scanner, a film scanner, or a digital camera can be used. As the image output device 12, for example, an image display device such as a CRT display or a liquid crystal display, or an electrophotographic or inkjet printer that outputs a processing result to a recording paper such as paper can be used. Further, the image forming apparatus may include a modem or the like as communication means for connecting to a server apparatus or the like via a network.

また、本実施形態においては、画像形成装置がRGBの画像データに対して下地検出処理を行う構成としたが、これに限るものではなく、検出精度及び画像処理構成等に応じて、CMYK又はCIELAB等の他の色空間の画像データに対して下地検出処理を行う構成としてもよい。この場合、濃度値と色情報とが混在するCMYKなどの色空間では、RGBの場合と同様の処理で下地検出処理を行えばよい。輝度と色度とが分離されたCIELABなどの色空間では、輝度を中心として処理を行い、補助的な情報として色度情報を用いる構成としてもよい。   In this embodiment, the image forming apparatus is configured to perform background detection processing on RGB image data. However, the present invention is not limited to this, and may be CMYK or CIELAB depending on detection accuracy, image processing configuration, and the like. For example, the background detection processing may be performed on image data in another color space. In this case, in a color space such as CMYK in which density values and color information are mixed, background detection processing may be performed by the same processing as in the case of RGB. In a color space such as CIELAB in which luminance and chromaticity are separated, processing may be performed with luminance as the center, and chromaticity information may be used as auxiliary information.

(変形例1)
上述の実施形態においては、計数部35が第1カウンタ41及び第2カウンタ42の2つのカウンタを有し、画像データのエッジ成分と非エッジ成分とで計数に用いるカウンタを切り替える構成としたが、これに限るものではなく、3つ以上のより多くのカウンタを用いて計数を行う構成とすることもできる。変形例1においては、画像形成装置の計数部が第1カウンタ〜第3カウンタの3つのカウンタを有する場合について説明する。
(Modification 1)
In the above-described embodiment, the counting unit 35 has two counters, the first counter 41 and the second counter 42, and the counter used for counting is switched between the edge component and the non-edge component of the image data. However, the present invention is not limited to this, and a configuration in which counting is performed using three or more more counters may be employed. In the first modification, a case will be described in which the counting unit of the image forming apparatus has three counters of a first counter to a third counter.

変形例1に係る画像形成装置は、画像データのエッジ検出を行って、画像データのエッジ成分の立ち上がり及び立ち下がりに応じて3つのカウンタの切り替えを行う。変形例1に係る画像形成装置の計数部は画像データの1画素毎に順に計数を行うようにしてあるが、例えば計数部はまず第1カウンタを用いて計数を始め、画像データのエッジ成分の立ち上がり毎に第1カウンタから第2カウンタへ、第2カウンタから第3カウンタへカウンタの切り替えを行うと共に、画像データのエッジ成分の立ち下がり毎に第3カウンタから第2カウンタへ、第2カウンタから第1カウンタへカウンタの切り替えを行うようにしてある。   The image forming apparatus according to the first modification detects the edge of the image data, and switches the three counters according to the rise and fall of the edge component of the image data. The counting unit of the image forming apparatus according to Modification 1 sequentially counts each pixel of the image data. For example, the counting unit first starts counting using the first counter, and detects the edge component of the image data. The counter is switched from the first counter to the second counter at each rising edge and from the second counter to the third counter, and from the third counter to the second counter at each falling edge component of the image data, from the second counter. The counter is switched to the first counter.

図18は、本発明の変形例1に係る画像形成装置のカウンタの切り替え例を説明するための模式図である。図示の例は、画像データが下地、網点下地、文字及び網点上文字(網点下地上の文字)を有する場合である。画像形成装置の計数部は、まず第1カウンタにて下地の画素の計数を開始し、下地及び網点下地のエッジの立ち上がりにて第1カウンタから第2カウンタへカウンタを切り替えて計数を行う。更に網点下地及び網点上文字のエッジの立ち上がりにて、計数部は第2カウンタから第3カウンタへカウンタを切り替えて計数を行う。その後、計数部は、網点上文字及び網点下地のエッジの立ち下りにて、第3カウンタから第2カウンタへカウンタを切り替えて計数を行い、網点下地及び下地のエッジの立ち下りにて第2カウンタから第1カウンタへカウンタを切り替えて計数を行う。同様に、計数部は、下地及び文字のエッジの立ち上がりにて、第1カウンタから第2カウンタへカウンタを切り替えて計数を行い、文字および下地のエッジの立ち下がりにて、第2カウンタから第1カウンタへカウンタを切り替えて計数を行う。   FIG. 18 is a schematic diagram for explaining a counter switching example of the image forming apparatus according to the first modification of the present invention. The example shown in the figure is a case where the image data has a background, a halftone dot background, a character, and a character on a halftone dot (a character on a halftone dot background). The counting unit of the image forming apparatus first starts counting the background pixels by the first counter, and switches the counter from the first counter to the second counter at the rising edge of the background and the halftone background and performs the counting. Further, at the rising edge of the halftone dot base and the character on the halftone dot, the counting unit switches the counter from the second counter to the third counter and performs counting. Thereafter, the counting unit performs counting by switching the counter from the third counter to the second counter at the falling edge of the halftone dot character and the halftone dot edge, and at the falling edge of the halftone dot edge and the background edge. Counting is performed by switching the counter from the second counter to the first counter. Similarly, the counting unit performs counting by switching the counter from the first counter to the second counter at the rising edge of the background and the character edge, and performs counting from the second counter at the falling edge of the character and the background edge. The counter is switched to the counter and counts.

以上のように、エッジの立ち上がり及び立ち下がりにてカウンタの切り替えを行うことによって、第1カウンタは下地の画素について計数を行い、第2カウンタは網点下地及び文字の画素について計数を行い、第3カウンタは網点上文字について計数を行うことができるため、3つのカウンタにて各領域を分離したヒストグラムを作成することができる。よって、画像データの全体に万遍なく存在する濃度を下地濃度としてより精度よく検出することができる。なお、3つのカウンタによる計数を1つの所定領域について終了した場合、計数部は3つのカウンタからカウント値が最大の濃度値(下地濃度候補値)を抽出し、下地濃度カウンタ43のこの濃度値に対応するカウント値に1を加算する。その後の処理については、上述の処理と同様であるため説明を省略する。   As described above, by switching the counter at the rising edge and the falling edge, the first counter counts the background pixel, the second counter counts the halftone dot background and the character pixel, Since the three counters can count the characters on the halftone dots, it is possible to create a histogram in which each region is separated by the three counters. Therefore, it is possible to more accurately detect the density that exists uniformly in the entire image data as the background density. When the counting by the three counters is completed for one predetermined area, the counting unit extracts the density value (background density candidate value) having the maximum count value from the three counters, and uses this density value of the background density counter 43 as the density value. Add 1 to the corresponding count value. Since the subsequent processing is the same as the above-described processing, description thereof is omitted.

(変形例2)
上述の実施形態においては、計数部35が第1カウンタ41及び第2カウンタ42の2つのカウンタを有し、画像データのエッジ成分と非エッジ成分とで計数に用いるカウンタを切り替える構成としたが、これに限るものではなく、非エッジ成分のみについて計数を行う構成とすることもできる。
(Modification 2)
In the above-described embodiment, the counting unit 35 has two counters, the first counter 41 and the second counter 42, and the counter used for counting is switched between the edge component and the non-edge component of the image data. However, the present invention is not limited to this, and it may be configured to perform counting only for non-edge components.

図19は、本発明の変形例2に係る画像処理装置の計数部135の構成を示すブロック図である。図3に示す計数部35は第1カウンタ41及び第2カウンタ42の2つのカウンタを有する構成であるが、変形例2に係る画像形成装置の計数部135は第1カウンタ41のみを有し、第2カウンタ42を有さない構成である。第1カウンタ41には領域分離処理部24の領域分離結果に含まれるエッジ検出結果が与えられており、エッジの検出結果からエッジでない画素の計数を行ってヒストグラムを作成するようにしてある。   FIG. 19 is a block diagram illustrating a configuration of the counting unit 135 of the image processing apparatus according to the second modification of the present invention. 3 includes two counters, a first counter 41 and a second counter 42. However, the counter 135 of the image forming apparatus according to the second modification includes only the first counter 41. The second counter 42 is not provided. The first counter 41 is given an edge detection result included in the region separation result of the region separation processing unit 24, and a histogram is created by counting pixels that are not edges from the edge detection result.

計数部35は、第1カウンタ41による計数を画像データの所定ライン毎に行い、所定ラインの画素について計数を終了した場合、第1カウンタ41の計数結果から最大のカウント値を有する濃度値を抽出する。これにより、入力された画像データの所定ラインにおける下地濃度候補値が得られる。計数部35は、抽出した下地濃度候補値に応じた下地濃度カウンタ43のカウント値に1を加算する。   The counting unit 35 performs the counting by the first counter 41 for each predetermined line of the image data, and extracts the density value having the maximum count value from the counting result of the first counter 41 when the counting for the pixels of the predetermined line is completed. To do. Thereby, a background density candidate value in a predetermined line of the input image data is obtained. The counting unit 35 adds 1 to the count value of the background density counter 43 corresponding to the extracted background density candidate value.

以上の変形例2の構成の場合であっても、下地領域の検出精度が多少低下する可能性があるが、下地領域の検出を行うことができる。即ち、エッジ成分及び非エッジ成分の両方の画素を考慮して下地領域の検出を行う場合と比較して、非エッジ成分のみから下地領域の検出を行う場合は、例えばエッジに挟まれる文字領域の画素の濃度値に対して、この濃度値が文字の濃度値であると判断する情報がないため、文字が多い画像データでは文字の濃度値が下地候補濃度値として誤判定される領域が出る可能性があり、下地領域の検出精度が低下する可能性がある。しかし、変形例2の構成であっても下地領域の検出を行うことは可能であり、計数部135の構成を簡略化してハードウェア資源を節約することができるという利点がある。   Even in the case of the configuration of Modification 2 described above, the detection accuracy of the background region may be somewhat lowered, but the detection of the background region can be performed. That is, compared to the case where the background area is detected considering both the edge component and the non-edge component, when the background area is detected only from the non-edge component, for example, the character area between the edges is detected. Since there is no information to determine that this density value is the character density value for the pixel density value, there may be areas where the character density value is erroneously determined as the background candidate density value in image data with many characters There is a possibility that the detection accuracy of the base region is lowered. However, even with the configuration of the second modification, it is possible to detect the background region, and there is an advantage that the configuration of the counting unit 135 can be simplified and hardware resources can be saved.

本発明に係る画像形成装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus according to the present invention. 本発明に係る画像処理装置の下地検出処理部の詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the background detection process part of the image processing apparatus which concerns on this invention. 本発明に係る画像処理装置の下地検出処理部の詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the background detection process part of the image processing apparatus which concerns on this invention. 本発明に係る画像処理装置の下地検出処理部の詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the background detection process part of the image processing apparatus which concerns on this invention. 本発明に係る画像処理装置の下地検出処理部の詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the background detection process part of the image processing apparatus which concerns on this invention. 計数部の第1カウンタ及び第2カウンタによる計数を説明するための模式図である。It is a schematic diagram for demonstrating the count by the 1st counter and 2nd counter of a counting part. 本発明に係る画像形成装置が行う画像データの下地に係る画像処理の手順を示すフローチャートである。4 is a flowchart illustrating a procedure of image processing relating to a background of image data performed by the image forming apparatus according to the present invention. 本発明に係る画像形成装置が行う計数処理の手順を示すフローチャートである。6 is a flowchart illustrating a counting process performed by the image forming apparatus according to the present invention. 本発明に係る画像形成装置が行う計数処理の手順を示すフローチャートである。6 is a flowchart illustrating a counting process performed by the image forming apparatus according to the present invention. 本発明に係る画像形成装置が行う下地判定処理の手順を示すフローチャートである。6 is a flowchart illustrating a procedure of background determination processing performed by the image forming apparatus according to the present invention. 本発明に係る画像形成装置が行う下地領域抽出処理の手順を示すフローチャートである。6 is a flowchart illustrating a procedure of background area extraction processing performed by the image forming apparatus according to the present invention. 本発明に係る画像形成装置が行う下地領域抽出処理の手順を示すフローチャートである。6 is a flowchart illustrating a procedure of background area extraction processing performed by the image forming apparatus according to the present invention. 本発明に係る画像形成装置が行う下地除去処理の手順を示すフローチャートである。3 is a flowchart illustrating a procedure of background removal processing performed by the image forming apparatus according to the present invention. 画像入力装置が画像処理部に入力する画像データの一例を示す模式図である。It is a schematic diagram which shows an example of the image data which an image input device inputs into an image process part. 所定領域の画素の構成を説明するための模式図である。It is a schematic diagram for demonstrating the structure of the pixel of a predetermined area | region. 計数部の第1カウンタ及び第2カウンタの一計数例を示す図表である。It is a chart which shows one count example of the 1st counter of a counting part, and the 2nd counter. 下地領域の検出結果の一例を示す模式図である。It is a schematic diagram which shows an example of the detection result of a base area | region. 本発明の変形例1に係る画像形成装置のカウンタの切り替え例を説明するための模式図である。FIG. 10 is a schematic diagram for explaining a counter switching example of the image forming apparatus according to the first modification of the present invention. 本発明の変形例2に係る画像処理装置の計数部の構成を示すブロック図である。It is a block diagram which shows the structure of the counting part of the image processing apparatus which concerns on the modification 2 of this invention.

符号の説明Explanation of symbols

1 CPU
2 ROM
3 RAM
6 メモリ装着部
11 画像入力装置(入力手段)
12 画像出力装置(出力手段)
20 画像処理装置
21 A/D変換部
22 シェーディング補正部
23 入力階調補正部
24 領域分離処理部(エッジ検出手段)
25 下地検出処理部(下地濃度候補抽出手段、代表下地濃度候補値抽出手段)
26 下地除去処理部
27 空間フィルタ処理部
28 変倍処理部
29 色補正部
30 黒生成下色除去部
31 出力階調補正部
32 階調再現処理部
35 計数部
36 下地判定部
37 下地領域抽出部(下地領域判定手段)
41 第1カウンタ(計数手段)
42 第2カウンタ(計数手段)
43 下地濃度カウンタ
45 最大カウント値判定部(画素数判定手段)
46 濃度値判定部(濃度値判定手段)
51 下地濃度判定部
52 連続性カウンタ
53 下地領域判定部
100 メモリカード(記録媒体)
101 プログラムコード(コンピュータプログラム)
121〜123 所定領域
1 CPU
2 ROM
3 RAM
6 Memory mounting part 11 Image input device (input means)
12 Image output device (output means)
DESCRIPTION OF SYMBOLS 20 Image processing apparatus 21 A / D conversion part 22 Shading correction part 23 Input gradation correction part 24 Area | region separation process part (edge detection means)
25 Background detection processing unit (background density candidate extraction means, representative background density candidate value extraction means)
26 Background Removal Processing Unit 27 Spatial Filter Processing Unit 28 Scaling Processing Unit 29 Color Correction Unit 30 Black Generation and Undercolor Removal Unit 31 Output Tone Correction Unit 32 Tone Reproduction Processing Unit 35 Counting Unit 36 Background Determination Unit 37 Background Area Extraction Unit (Background area determination means)
41 First counter (counting means)
42 Second counter (counting means)
43 Background density counter 45 Maximum count value determination unit (pixel number determination means)
46 Density value determination unit (density value determination means)
51 Background Density Determination Unit 52 Continuity Counter 53 Background Area Determination Unit 100 Memory Card (Recording Medium)
101 Program code (computer program)
121-123 predetermined area

Claims (13)

入力された画像データに含まれる下地領域を検出する下地領域検出方法において、
入力された画像データからエッジを検出し、
前記画像データ中の複数の所定領域毎に、検出したエッジに含まれる画素について、濃度値毎に画素数を計数し、
前記所定領域毎に、前記エッジに含まれない画素について、濃度値毎に画素数を計数し、
前記所定領域毎に、両計数結果を基に下地濃度候補値を抽出し、
前記所定領域毎に算出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出し、
前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定し、
前記代表下地濃度候補値が所定濃度値を超えるか否かを判定し、
両判定結果を基に、前記画像データに下地領域が含まれているか否かを判定すること
を特徴とする下地領域検出方法。
In a background area detection method for detecting a background area included in input image data,
Detect edges from input image data,
For each of a plurality of predetermined areas in the image data, for the pixels included in the detected edge, count the number of pixels for each density value,
For each pixel that is not included in the edge for each predetermined area, count the number of pixels for each density value,
For each predetermined area, extract a background density candidate value based on both count results,
From the plurality of background density candidate values calculated for each predetermined region, a representative background density candidate value is extracted based on the number of pixels of each background density candidate value,
Determining whether the number of pixels of the representative background density candidate value exceeds a predetermined number;
Determining whether the representative background density candidate value exceeds a predetermined density value;
A background area detection method, comprising: determining whether a background area is included in the image data based on both determination results.
入力された画像データに含まれる下地領域を検出する下地領域検出方法において、
入力された画像データからエッジを検出し、
前記画像データ中の複数の所定領域毎に、検出したエッジに含まれない画素について、濃度値毎に画素数を計数し、
前記所定領域毎に、計数結果を基に下地濃度候補値を抽出し、
前記所定領域毎に算出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出し、
前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定し、
前記代表下地濃度候補値が所定濃度値を超えるか否かを判定し、
両判定結果を基に、前記画像データに下地領域が含まれているか否かを判定すること
を特徴とする下地領域検出方法。
In a background area detection method for detecting a background area included in input image data,
Detect edges from input image data,
For each of a plurality of predetermined regions in the image data, for pixels not included in the detected edge, count the number of pixels for each density value,
For each predetermined area, extract the background density candidate value based on the counting result,
From the plurality of background density candidate values calculated for each predetermined region, a representative background density candidate value is extracted based on the number of pixels of each background density candidate value,
Determining whether the number of pixels of the representative background density candidate value exceeds a predetermined number;
Determining whether the representative background density candidate value exceeds a predetermined density value;
A background area detection method, comprising: determining whether a background area is included in the image data based on both determination results.
入力された画像データに含まれる下地領域を検出する下地領域検出方法において、
濃度値毎の画素数を計数する計数手段を複数用い、
入力された画像データからエッジを検出し、
前記画像データ中の複数の所定領域毎に、エッジの検出結果に応じて前記計数手段を切り替えて、濃度値毎に画素数を計数し、
前記所定領域毎に、各計数手段の計数結果を基に下地濃度候補値を抽出し、
前記所定領域毎に算出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出し、
前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定し、
前記代表下地濃度候補値が所定濃度値を超えるか否かを判定し、
両判定結果を基に、前記画像データに下地領域が含まれているか否かを判定すること
を特徴とする下地領域検出方法。
In a background area detection method for detecting a background area included in input image data,
Using a plurality of counting means for counting the number of pixels for each density value,
Detect edges from input image data,
For each of a plurality of predetermined regions in the image data, the counting unit is switched according to the edge detection result, and the number of pixels is counted for each density value.
For each predetermined area, extract the background density candidate value based on the counting result of each counting means,
From the plurality of background density candidate values calculated for each predetermined region, a representative background density candidate value is extracted based on the number of pixels of each background density candidate value,
Determining whether the number of pixels of the representative background density candidate value exceeds a predetermined number;
Determining whether the representative background density candidate value exceeds a predetermined density value;
A background area detection method, comprising: determining whether a background area is included in the image data based on both determination results.
前記下地濃度候補値の抽出は、計数結果から最多の画素数に対応する濃度値を抽出することで行い、
前記代表下地濃度候補値の抽出は、前記所定領域毎に抽出した複数の下地濃度候補値から、画素数が最多の下地濃度候補値を抽出することで行うこと
を特徴とする請求項1から請求項3までのいずれか1つに記載の下地領域検出方法。
The extraction of the background density candidate value is performed by extracting the density value corresponding to the largest number of pixels from the counting result,
2. The representative background density candidate value is extracted by extracting a background density candidate value having the largest number of pixels from a plurality of background density candidate values extracted for each of the predetermined areas. Item 4. The background region detection method according to any one of Items 1 to 3.
前記画像データが、縦横に並設された複数の画素で構成される場合に、
前記所定領域は、前記画像データの縦又は横の一又は複数の列で構成される領域であること
を特徴とする請求項1から請求項4までのいずれか一項に記載の下地領域検出方法。
When the image data is composed of a plurality of pixels arranged side by side vertically and horizontally,
The ground region detection method according to any one of claims 1 to 4, wherein the predetermined region is a region formed of one or a plurality of columns of the image data in the vertical or horizontal direction. .
前記代表下地濃度候補値を有する複数の画素について前記画像データ中での連続性を判定し、
所定数以上の前記画素が連続している場合に、前記画像データに下地領域が含まれていると判定すること
を特徴とする請求項1から請求項5までのいずれか一項に記載の下地領域検出方法。
Determining continuity in the image data for a plurality of pixels having the representative background density candidate value;
6. The background according to claim 1, wherein when the predetermined number or more of the pixels are continuous, it is determined that the background area is included in the image data. Region detection method.
前記画像データに含まれる下地領域を除去すること
を特徴とする請求項1から請求項6までのいずれか一項に記載の下地領域検出方法。
The ground area detection method according to claim 1, wherein a ground area included in the image data is removed.
入力された画像データに含まれる下地領域を検出する画像処理装置において、
入力された画像データからエッジを検出するエッジ検出手段と、
前記画像データ中の複数の所定領域毎に、検出したエッジに含まれる画素について、濃度値毎に画素数を計数する計数手段と、
前記所定領域毎に、前記エッジに含まれない画素について、濃度値毎に画素数を計数する計数手段と、
前記所定領域毎に、両計数手段の計数結果を基に下地濃度候補値を抽出する下地濃度候補値抽出手段と、
前記所定領域毎に抽出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出する代表下地濃度候補値抽出手段と、
前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定する画素数判定手段と、
前記代表下地濃度候補値が所定濃度値を超えるか否かを判定する濃度値判定手段と、
前記画素数判定手段及び前記濃度値判定手段の判定結果を基に、前記画像データに下地領域が含まれているか否かを判定する下地判定手段と
を備えることを特徴とする画像処理装置。
In an image processing apparatus for detecting a background area included in input image data,
Edge detection means for detecting edges from input image data;
Counting means for counting the number of pixels for each density value for the pixels included in the detected edge for each of a plurality of predetermined regions in the image data;
Counting means for counting the number of pixels for each density value for pixels not included in the edge for each predetermined area;
A background density candidate value extracting means for extracting a background density candidate value based on the counting results of both counting means for each predetermined area;
Representative background density candidate value extraction means for extracting a representative background density candidate value based on the number of pixels of each background density candidate value from a plurality of background density candidate values extracted for each predetermined region;
A pixel number determination means for determining whether or not the number of pixels of the representative background density candidate value exceeds a predetermined number;
Density value determining means for determining whether the representative background density candidate value exceeds a predetermined density value;
An image processing apparatus comprising: a background determination unit that determines whether or not a background region is included in the image data based on determination results of the pixel number determination unit and the density value determination unit.
入力された画像データに含まれる下地領域を検出する画像処理装置において、
入力された画像データからエッジを検出するエッジ検出手段と、
前記画像データ中の複数の所定領域毎に、検出したエッジに含まれない画素について、濃度値毎に画素数を計数する計数手段と、
前記所定領域毎に、前記計数手段の計数結果を基に下地濃度候補値を抽出する下地濃度候補値抽出手段と、
前記所定領域毎に抽出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出する代表下地濃度候補値抽出手段と、
前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定する画素数判定手段と、
前記代表下地濃度候補値が所定濃度値を超えるか否かを判定する濃度値判定手段と、
前記画素数判定手段及び前記濃度値判定手段の判定結果を基に、前記画像データに下地領域が含まれているか否かを判定する下地判定手段と
を備えることを特徴とする画像処理装置。
In an image processing apparatus for detecting a background area included in input image data,
Edge detection means for detecting edges from input image data;
Counting means for counting the number of pixels for each density value for pixels not included in the detected edge for each of a plurality of predetermined regions in the image data;
A background density candidate value extracting means for extracting a background density candidate value based on a counting result of the counting means for each predetermined area;
Representative background density candidate value extraction means for extracting a representative background density candidate value based on the number of pixels of each background density candidate value from a plurality of background density candidate values extracted for each predetermined region;
A pixel number determination means for determining whether or not the number of pixels of the representative background density candidate value exceeds a predetermined number;
Density value determining means for determining whether the representative background density candidate value exceeds a predetermined density value;
An image processing apparatus comprising: a background determination unit that determines whether or not a background region is included in the image data based on determination results of the pixel number determination unit and the density value determination unit.
請求項8又は請求項9に記載の画像処理装置と、
画像データを前記画像処理装置へ入力する入力手段と、
前記画像処理装置にて画像処理された画像データに係る画像を出力する出力手段と
を備えることを特徴とする画像形成装置。
The image processing apparatus according to claim 8 or 9,
Input means for inputting image data to the image processing device;
An image forming apparatus comprising: an output unit configured to output an image related to image data image-processed by the image processing apparatus.
コンピュータに、画像データに含まれる下地領域を検出させるコンピュータプログラムにおいて、
コンピュータに、
前記画像データからエッジを検出させ、
前記画像データ中の複数の所定領域毎に、検出したエッジに含まれる画素について、濃度値毎に画素数を計数させ、
前記所定領域毎に、前記エッジに含まれない画素について、濃度値毎に画素数を計数させ、
前記所定領域毎に、両計数結果を基に下地濃度候補値を抽出させ、
前記所定領域毎に抽出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出させ、
前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定させ、
前記代表下地濃度候補値が所定濃度値を超えるか否かを判定させ、
両判定結果を基に、前記画像データに下地領域が含まれているか否かを判定させること
を特徴とするコンピュータプログラム。
In a computer program for causing a computer to detect a background area included in image data,
On the computer,
Detecting edges from the image data;
For each of a plurality of predetermined areas in the image data, for the pixels included in the detected edge, the number of pixels is counted for each density value,
For each pixel that is not included in the edge for each predetermined area, the number of pixels is counted for each density value,
For each predetermined area, based on both counting results, extract a background density candidate value,
From the plurality of background density candidate values extracted for each predetermined area, the representative background density candidate value is extracted based on the number of pixels of each background density candidate value,
Determining whether the number of pixels of the representative background density candidate value exceeds a predetermined number;
Determining whether the representative background density candidate value exceeds a predetermined density value;
A computer program for determining whether or not a background area is included in the image data based on both determination results.
コンピュータに、画像データに含まれる下地領域を検出させるコンピュータプログラムにおいて、
コンピュータに、
前記画像データからエッジを検出させ、
前記画像データ中の複数の所定領域毎に、検出したエッジに含まれない画素について、濃度値毎に画素数を計数させ、
前記所定領域毎に、計数結果を基に下地濃度候補値を抽出させ、
前記所定領域毎に抽出した複数の下地濃度候補値から、各下地濃度候補値の画素数を基に代表下地濃度候補値を抽出させ、
前記代表下地濃度候補値の画素数が所定数を超えるか否かを判定させ、
前記代表下地濃度候補値が所定濃度値を超えるか否かを判定させ、
両判定結果を基に、前記画像データに下地領域が含まれているか否かを判定させること
を特徴とするコンピュータプログラム。
In a computer program for causing a computer to detect a background area included in image data,
On the computer,
Detecting edges from the image data;
For each of a plurality of predetermined regions in the image data, for pixels not included in the detected edge, the number of pixels is counted for each density value,
For each predetermined area, based on the counting result, extract a background density candidate value,
From the plurality of background density candidate values extracted for each predetermined area, the representative background density candidate value is extracted based on the number of pixels of each background density candidate value,
Determining whether the number of pixels of the representative background density candidate value exceeds a predetermined number;
Determining whether the representative background density candidate value exceeds a predetermined density value;
A computer program for determining whether or not a background area is included in the image data based on both determination results.
請求項11又は請求項12に記載のコンピュータプログラムが記録してあることを特徴とするコンピュータが読取可能な記録媒体。   A computer-readable recording medium on which the computer program according to claim 11 or 12 is recorded.
JP2007230559A 2007-09-05 2007-09-05 Base region detecting method, image processor, image forming apparatus, computer program, and recording medium Pending JP2009065378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007230559A JP2009065378A (en) 2007-09-05 2007-09-05 Base region detecting method, image processor, image forming apparatus, computer program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007230559A JP2009065378A (en) 2007-09-05 2007-09-05 Base region detecting method, image processor, image forming apparatus, computer program, and recording medium

Publications (1)

Publication Number Publication Date
JP2009065378A true JP2009065378A (en) 2009-03-26

Family

ID=40559569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007230559A Pending JP2009065378A (en) 2007-09-05 2007-09-05 Base region detecting method, image processor, image forming apparatus, computer program, and recording medium

Country Status (1)

Country Link
JP (1) JP2009065378A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013074474A (en) * 2011-09-28 2013-04-22 Brother Ind Ltd Image reading apparatus and ground color compensation program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013074474A (en) * 2011-09-28 2013-04-22 Brother Ind Ltd Image reading apparatus and ground color compensation program

Similar Documents

Publication Publication Date Title
JP4495197B2 (en) Image processing apparatus, image forming apparatus, 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
JP5157774B2 (en) Image forming apparatus, image forming method, and program
JP4166744B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP4170353B2 (en) Image processing method, image processing apparatus, image reading apparatus, image forming apparatus, program, and recording medium
JP4402090B2 (en) Image forming apparatus, image forming method, program, and recording medium
JP2008205652A (en) Image processing method, image processing apparatus, image forming apparatus, program, and recording medium
JP2003051946A (en) Image processing method, image processing apparatus, imaging device provided with the image processing apparatus, image processing program, and computer- readable recording medium with the program recorded
JP2007043394A (en) Apparatus and method for image processing, and program making computer implement same method
JP2003338930A (en) Image processing method, image processing apparatus, and image forming apparatus
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP2006304015A (en) Image processing apparatus, image forming apparatus, method of processing image, computer program and recording medium
JP4549227B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP2006155572A (en) Image processor, image forming device, image processing method and computer program
JP2009065378A (en) Base region detecting method, image processor, image forming apparatus, computer program, and recording medium
JP2008306400A (en) Image processing method, image processing device, image forming apparatus, computer program, and record medium
JP4740913B2 (en) Image processing apparatus, image processing method, image forming apparatus and program, and recording medium
JP4545167B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP2006229817A (en) Background detection method, program, recording medium, image processing apparatus, and image forming apparatus
JP4958626B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP2005191890A (en) Image processing device, image processing method, image processing program, recording medium stored with image processing program and image forming apparatus with image processor
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP2009194739A (en) Image conversion method, image processing apparatus, image forming apparatus, computer program and recording medium
JP4257708B2 (en) Shadow area determination method, image processing method, shadow area determination apparatus, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
JP5122507B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium