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

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

Info

Publication number
JP2015146557A
JP2015146557A JP2014019478A JP2014019478A JP2015146557A JP 2015146557 A JP2015146557 A JP 2015146557A JP 2014019478 A JP2014019478 A JP 2014019478A JP 2014019478 A JP2014019478 A JP 2014019478A JP 2015146557 A JP2015146557 A JP 2015146557A
Authority
JP
Japan
Prior art keywords
pixel
determination
color
image data
threshold
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
JP2014019478A
Other languages
Japanese (ja)
Inventor
克之 村上
Katsuyuki Murakami
克之 村上
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2014019478A priority Critical patent/JP2015146557A/en
Publication of JP2015146557A publication Critical patent/JP2015146557A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To solve the problem in which, when determining chromatic color pixels of a scan image, there are cases where impurities are erroneously determined as chromatic color pixels and a highlight color dot original is erroneously determined as a monochromatic original.SOLUTION: Isolated point determination is performed and features (size and number) of an isolated point are calculated. A dot region of a highlight part is determined from the features of the isolated point, and switchover to a coefficient easy to determine a color by chromatic color pixel determination only in the dot region of the highlight part is performed.

Description

本発明は、入力画像がカラー画像なのかモノクロ画像なのかを識別するための画像処理に関する。   The present invention relates to image processing for identifying whether an input image is a color image or a monochrome image.

スキャン機能を有するMFP(Multi Function Peripheral)等の画像形成装置においては、原稿をカラーでスキャンする際に、デジタル的に読み取って得られた画像の各画素に対して、有彩色であるか無彩色であるかの判定を行っている。具体的には、各画素の彩度と予め定めた彩度閾値とを比較することで、有彩色もしくは無彩色の判定を行い、有彩色と判定された画素の連結数を元に、読取対象である原稿がカラー原稿であるかモノクロ原稿であるかを判定している。このようなカラー判定技術は、一般にACS(Auto Color Select)と呼ばれる。そして、このACS技術によってカラー原稿であると判定された場合にはカラー画像が、モノクロ原稿であると判定された場合にはモノクロ画像がユーザに対して提供されることになる。   In an image forming apparatus such as an MFP (Multi Function Peripheral) having a scanning function, each pixel of an image obtained by digital reading when a document is scanned in color is chromatic or achromatic. It is determined whether or not. Specifically, the chromatic color or achromatic color is determined by comparing the saturation of each pixel with a predetermined saturation threshold, and the reading target is based on the number of connected pixels determined to be chromatic. It is determined whether the original is a color original or a monochrome original. Such a color determination technique is generally called ACS (Auto Color Select). When it is determined that the document is a color document by the ACS technology, a color image is provided to the user when it is determined that the document is a monochrome document.

しかしながら、ACS技術も万能ではなく、判定に失敗するケースがあった。例えば、古紙を100%用いた再生紙等の低品質な用紙をスキャンした場合である。これら低品質な用紙は、高品質な用紙と比べて、用紙内に含有される不純物の出現頻度が高まる特徴を持っている。そうした低品質な用紙の場合、その不純物が有彩であるせいで、不純物に対応する画素が有彩画素と判定され、その結果、本来はモノクロ原稿と判定されるべき原稿がカラー原稿であると判定されてしまうケースがあった。   However, ACS technology is not universal, and there are cases where the judgment fails. For example, this is a case where low-quality paper such as recycled paper using 100% used paper is scanned. These low-quality papers have a feature that the appearance frequency of impurities contained in the paper is higher than that of high-quality papers. In the case of such low-quality paper, because the impurity is chromatic, the pixel corresponding to the impurity is determined to be a chromatic pixel, and as a result, the original that should be determined as a monochrome original is a color original. There was a case where it was judged.

特開2008−35478号公報JP 2008-35478 A

上記のような誤判定の対策として、比較に用いる彩度閾値を変更して、各画素を無彩色であると判定しやすくするような対策も考えられる。しかし、こうした対策を取ると、今度はカラー原稿と判定されるべき原稿をモノクロ原稿であると誤って判定してしまうケースが出てくる。   As a countermeasure against the erroneous determination as described above, a countermeasure that makes it easy to determine that each pixel is an achromatic color by changing the saturation threshold value used for comparison is also conceivable. However, if such measures are taken, there are cases where a document that should be determined to be a color document is erroneously determined to be a monochrome document.

特にモノクロ原稿と誤判定されやすいのが、カラーのハイライト網点原稿である。当該ハイライト網点原稿に含まれるカラー網点の一つ一つは小さいため、それを読み取って得られた読取画像の各画素の彩度は、比較的低くなっている。そのため、彩度閾値を変更して各画素を無彩色であると判定しやすくすると、こうしたカラー網点に対応する画素を誤って無彩色であると判定してしまうことになる。   In particular, color highlight halftone originals are easily mistaken for monochrome originals. Since each of the color halftone dots included in the highlight halftone document is small, the saturation of each pixel of the read image obtained by reading it is relatively low. Therefore, if it is easy to determine that each pixel is an achromatic color by changing the saturation threshold, a pixel corresponding to such a color halftone dot is erroneously determined to be an achromatic color.

ちなみに、カラー画像の濃度が中濃度から高濃度の領域(例えば、Notハイライト網点領域)やカラーの文字領域では、鮮やかなカラー画素群が存在する。そのため、これらの領域では、彩度閾値をどのように設定しようと有彩画素がたくさん見つかり、カラー原稿であると正しく判定できることになる。   Incidentally, a vivid color pixel group exists in an area where the density of a color image is medium to high (for example, a Not highlight halftone dot area) or a color character area. Therefore, in these areas, a large number of chromatic pixels are found no matter how the saturation threshold is set, and it can be correctly determined that the original is a color document.

以上の点を踏まえ、ハイライト網点領域の各画素については有彩色であると判定されやすい彩度閾値を用い、それ以外の領域(不純物領域を含む)の各画素については無彩色であると判定されやすい彩度閾値を用いることが必要となってくる。
なお、特許文献1は、網点領域の各画素については無彩色であると判定されやすい彩度閾値を用いているので、本願とは逆である。
Based on the above points, a saturation threshold that is easily determined to be chromatic is used for each pixel in the highlight halftone dot region, and an achromatic color is used for each pixel in other regions (including the impurity region). It is necessary to use a saturation threshold that is easy to determine.
Note that Patent Document 1 uses a saturation threshold value that is easily determined to be an achromatic color for each pixel in the halftone dot region, and is the reverse of this application.

本発明に係る画像処理装置は、画像データから孤立点を検出する検出手段と、前記検出手段で検出された孤立点の数を、注目画素を含む所定の領域でカウントする計数手段と、前記計数手段でカウントされた前記孤立点の数が第1の閾値を超えたかどうかを判定する判定手段と、前記判定手段における判定結果に応じて、前記注目画素が有彩色か無彩色かを判定する際の第2の閾値を設定する設定手段と、を有し、前記計数手段でカウントされた前記孤立点の数が前記第1の閾値を超えたと前記判定手段で判定された場合に前記設定手段によって設定される前記第2の閾値は、前記計数手段でカウントされた前記孤立点の数が前記第1の閾値を超えなかったと前記判定手段で判定された場合に前記設定手段によって設定される前記第2の閾値よりも、注目画素が有彩色と判定されやすい閾値であることを特徴とする。   An image processing apparatus according to the present invention includes a detection unit that detects isolated points from image data, a counting unit that counts the number of isolated points detected by the detection unit in a predetermined region including a target pixel, and the counting Determining means for determining whether the number of isolated points counted by the means exceeds a first threshold, and determining whether the pixel of interest is a chromatic color or an achromatic color according to a determination result in the determining means Setting means for setting the second threshold value of the second threshold value, and when the determination means determines that the number of the isolated points counted by the counting means exceeds the first threshold value, The second threshold value set is the second threshold value set by the setting means when the determination means determines that the number of isolated points counted by the counting means does not exceed the first threshold value. Threshold of 2 Remote, wherein the pixel of interest is the more likely to be determined as chromatic color threshold.

本発明によれば、精度の高いACS処理を容易に実現できる。   According to the present invention, highly accurate ACS processing can be easily realized.

実施例1に係るMFPの構成の一例を示すブロック図である。1 is a block diagram illustrating an example of a configuration of an MFP according to Embodiment 1. FIG. 画像処理部の内部構成を示す機能ブロック図である。It is a functional block diagram which shows the internal structure of an image process part. 画像処理部における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in an image process part. 実施例1に係る像域分離処理の流れを示すフローチャートである。3 is a flowchart illustrating a flow of image area separation processing according to the first embodiment. ハイライト網点領域判定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a highlight halftone area | region determination process. ハイライト網点判定処理における判定対象パターンの一例を示す表であり、It is a table showing an example of a determination target pattern in highlight halftone dot determination processing, 孤立点判定を説明する図である。It is a figure explaining an isolated point determination. ハイライト網点領域判定処理を行なった場合の結果の一例を示す図である。It is a figure which shows an example of the result at the time of performing a highlight halftone area | region determination process. ハイライト網点領域判定処理を行なった場合の結果の一例を示す図である。It is a figure which shows an example of the result at the time of performing a highlight halftone area | region determination process. ハイライト網点領域判定処理を行なった場合の結果の一例を示す図である。It is a figure which shows an example of the result at the time of performing a highlight halftone area | region determination process. ACS処理の流れを示すフローチャートである。It is a flowchart which shows the flow of ACS processing. 実施例1に係る有彩色画素判定処理の詳細を示すフローチャートである。6 is a flowchart illustrating details of a chromatic color pixel determination process according to the first embodiment. 注目画素が有彩色画素であるか無彩色画素であるかを異なる判定係数を用いて判定する様子を説明する図である。It is a figure explaining a mode that it is judged using a different judgment coefficient whether an attention pixel is a chromatic color pixel or an achromatic color pixel. 実施例2に係る有彩色画素判定処理の詳細を示すフローチャートである。10 is a flowchart illustrating details of a chromatic color pixel determination process according to the second embodiment.

以下、添付図面を参照して、本発明を好適な実施例に従って詳細に説明する。なお、以下の実施例において示す構成は一例にすぎず、本発明は図示された構成に限定されるものではない。   Hereinafter, the present invention will be described in detail according to preferred embodiments with reference to the accompanying drawings. In addition, the structure shown in the following Examples is only an example, and this invention is not limited to the structure shown in figure.

以下、本発明を実施するための形態について図面を用いて説明する。   Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.

図1は、本実施例に係る画像形成装置としてのMFPの構成の一例を示すブロック図である。   FIG. 1 is a block diagram illustrating an example of the configuration of an MFP as an image forming apparatus according to the present embodiment.

MFP100は、内部バス109で相互に接続されたCPU101、メモリ102、HDD103、スキャナ部104、画像処理部105、プリンタ部106、表示部107で構成され、ネットワークI/F108を介してネットワーク110と接続されている。   The MFP 100 includes a CPU 101, a memory 102, an HDD 103, a scanner unit 104, an image processing unit 105, a printer unit 106, and a display unit 107 that are connected to each other via an internal bus 109, and is connected to a network 110 via a network I / F 108. Has been.

CPU101は、MFP100を統括的に制御するプロセッサであって、内部バス109を介して接続された各部を制御する。   The CPU 101 is a processor that comprehensively controls the MFP 100 and controls each unit connected via the internal bus 109.

メモリ102は、CPU101がMFP100を制御するために実行する各種命令(アプリケーションプログラム含む)や各種データを記憶するROMと、CPU101のワークエリアとして機能するRAMで構成される。   The memory 102 includes a ROM that stores various commands (including application programs) and various data executed by the CPU 101 to control the MFP 100, and a RAM that functions as a work area of the CPU 101.

スキャナ部104は、不図示の原稿台等にセットされた原稿を光学的に読み取り、スキャン画像データを取得する機能を有し、ここでは最大600dpiの解像度で原稿を読み取ることが可能であるものとする。   The scanner unit 104 has a function of optically reading a document set on a document table (not shown) and acquiring scanned image data. Here, the scanner unit 104 can read a document with a resolution of a maximum of 600 dpi. To do.

画像処理部105は、スキャナ部104で取得されたスキャン画像データ等に対し、必要な画像処理を行う。画像処理部105の詳細については後述する。   The image processing unit 105 performs necessary image processing on the scanned image data acquired by the scanner unit 104. Details of the image processing unit 105 will be described later.

プリンタ部106は、紙等の記録媒体上に画像を印刷する機能を有する。   The printer unit 106 has a function of printing an image on a recording medium such as paper.

HDD103は、スキャナ部104で取得されたスキャン画像データ等を一時保存する。   The HDD 103 temporarily stores scanned image data acquired by the scanner unit 104.

表示部107は、タッチスクリーン機能を有する液晶パネルなどで構成され、種々の情報が表示される他、ユーザは、表示部107に表示される画面を介してスキャン指示などを行う。   The display unit 107 is configured by a liquid crystal panel having a touch screen function, and displays various information, and the user gives a scan instruction via a screen displayed on the display unit 107.

ネットワークインタフェース108は、LANやインターネット等のネットワーク110を介して接続されているPC(不図示)との間で、印刷データの送受信などの通信を行うためのインタフェースである。   The network interface 108 is an interface for performing communication such as transmission / reception of print data with a PC (not shown) connected via a network 110 such as a LAN or the Internet.

なお、画像形成装置の構成要素は上述の内容に限定されない。例えば、タッチスクリーンに代えてユーザが各種操作を行うためのマウスやキーボードなどで構成される入力部を設けるなどしてもよく、画像形成装置の構成は、その用途等に応じて適宜追加・変更され得るものである。   Note that the components of the image forming apparatus are not limited to those described above. For example, instead of the touch screen, an input unit including a mouse and a keyboard for performing various operations by the user may be provided. The configuration of the image forming apparatus may be appropriately added or changed according to the application. It can be done.

図2は、画像処理部105の内部構成を示す機能ブロック図である。画像処理部105は、像域分離処理部201、第1色変換処理部202、ACS処理部203、フィルタ処理部204、下地飛ばし処理部205、第2色変換処理部206、階調補正処理部207、中間調処理部208で構成される。   FIG. 2 is a functional block diagram showing the internal configuration of the image processing unit 105. The image processing unit 105 includes an image area separation processing unit 201, a first color conversion processing unit 202, an ACS processing unit 203, a filter processing unit 204, a background removal processing unit 205, a second color conversion processing unit 206, and a gradation correction processing unit. 207 and a halftone processing unit 208.

像域分離処理部201は、入力画像としてのスキャン画像の属性(文字、網点など)を画素毎に判定して像域情報を生成する処理を行なう。本実施例における像域情報には、画素毎にハイライト網点であるかどうかを示す1bit(ハイライト網点であれば「1」、ハイライト網点でなければ「0」)のデータを含むものとする。最終的に出来上がる像域情報としては、文字判定処理なども行なった上でそれらの判定結果を含んだ任意のbit数のデータとすればよい。像域分離処理の詳細については後述する。   The image area separation processing unit 201 performs processing for generating image area information by determining the attributes (characters, halftone dots, etc.) of the scanned image as the input image for each pixel. In the image area information in this embodiment, data of 1 bit (“1” for a highlight halftone dot and “0” for a highlight halftone dot) indicating whether each pixel is a highlight halftone dot is used. Shall be included. The final image area information may be data of an arbitrary number of bits including the determination result after performing character determination processing and the like. Details of the image area separation processing will be described later.

第1色変換処理部202は、入力側デバイス(スキャナ)に依存する色空間(ここではRGB色空間)の画像データを、デバイスに依存しない色空間(例えばL*a*b*やLch)の画像データに変換する。   The first color conversion processing unit 202 converts image data in a color space (here, RGB color space) depending on the input side device (scanner) into a device-independent color space (for example, L * a * b * or Lch). Convert to image data.

ACS処理部203は、デバイス非依存の色空間に変換された画像データに対し、上述の像域情報を用いてACS処理を行う。ACS処理の詳細については後述する。   The ACS processing unit 203 performs ACS processing on the image data converted into the device-independent color space using the above-described image area information. Details of the ACS processing will be described later.

フィルタ処理部204は、デバイス非依存の色空間に変換された画像データに対し、その属性に応じたフィルタ処理を行う。例えば、文字領域についてはエッジ強調フィルタを用いた処理、文字領域以外の領域についてはスムージングフィルタを用いた処理を行なう。   The filter processing unit 204 performs filter processing according to the attribute of the image data converted into the device-independent color space. For example, processing using an edge enhancement filter is performed for a character region, and processing using a smoothing filter is performed for a region other than the character region.

下地飛ばし処理部205は、フィルタ処理されたスキャン画像データの下地を除去する下地飛ばし処理を行う。   The background removal processing unit 205 performs background removal processing for removing the background of the filtered scan image data.

第2色変換処理部206は、デバイス非依存の色空間の画像データを、出力側デバイス(プリンタ)に依存する色空間(ここではCMYK色空間)の画像データに変換する。   The second color conversion processing unit 206 converts the image data in the device-independent color space into image data in a color space (here, CMYK color space) depending on the output side device (printer).

階調補正処理部207は、1D−LUT を用いて、CMYK各色の階調特性を補正する。ここで1D−LUT とは、CMYKのそれぞれの色について入力階調値に対する出力階調値を規定した1次元のLUT(Look Up Table)のことである。   The gradation correction processing unit 207 corrects the gradation characteristics of each color of CMYK using the 1D-LUT. Here, the 1D-LUT is a one-dimensional LUT (Look Up Table) that defines an output gradation value with respect to an input gradation value for each color of CMYK.

中間調処理部208は、スクリーン処理や誤差拡散処理といった中間調処理(ハーフトーン処理)を行って、2値のCMYK画像データを生成する。   The halftone processing unit 208 performs halftone processing (halftone processing) such as screen processing and error diffusion processing to generate binary CMYK image data.

続いて、画像処理部105における処理の流れについて説明する。図3は、画像処理部105における処理の流れを示すフローチャートである。なお、この一連の処理は、以下に示す手順を記述したコンピュータ実行可能なプログラムをROMからRAM上に読み込んだ後に、CPU101によって該プログラムを実行することによって実施される。   Next, the flow of processing in the image processing unit 105 will be described. FIG. 3 is a flowchart showing the flow of processing in the image processing unit 105. This series of processing is carried out by reading a computer-executable program describing the following procedure from the ROM into the RAM and then executing the program by the CPU 101.

ステップ301において、画像処理部105は、入力画像データを取得する。このときの入力画像データには、スキャナ部104で原稿を読み取って得られるスキャン画像データと、不図示のPC等から印刷指示と共に送られたプリンタ画像データの2種類がある。なお、本実施例におけるプリンタ画像データは、CMYK色空間の画像データであるものとする。   In step 301, the image processing unit 105 acquires input image data. There are two types of input image data at this time: scan image data obtained by reading a document with the scanner unit 104 and printer image data sent together with a print instruction from a PC (not shown). The printer image data in this embodiment is assumed to be image data in the CMYK color space.

ステップ302において、画像処理部105は、取得した入力画像データの種類を判定する。取得した入力画像データがスキャン画像データであった場合は、当該画像データは像域分離処理部201に送られる(ステップ303に進む)。一方、取得した入力画像データがプリンタ画像であった場合は、当該画像データは階調補正処理部206に送られる(ステップ309へ進む)。   In step 302, the image processing unit 105 determines the type of the acquired input image data. If the acquired input image data is scan image data, the image data is sent to the image area separation processing unit 201 (proceeds to step 303). On the other hand, if the acquired input image data is a printer image, the image data is sent to the gradation correction processing unit 206 (proceeds to step 309).

ステップ303において、像域分離処理部201は、像域分離処理を行ってスキャン画像から像域情報(本実施例では、ハイライト網点であるかどうかを画素毎に示す1bitのデータ)を生成する。   In step 303, the image area separation processing unit 201 performs image area separation processing to generate image area information (in this embodiment, 1-bit data indicating whether each pixel is a highlight halftone dot) from the scanned image. To do.

ステップ304において、第1色変換処理部202は、スキャン画像におけるデバイス依存色空間(RGB)をデバイス非依存色空間(L*a*b*或いはLch)に変換する。   In step 304, the first color conversion processing unit 202 converts the device-dependent color space (RGB) in the scanned image into a device-independent color space (L * a * b * or Lch).

ステップ305において、ACS処理部203は、デバイス非依存色空間に変換されたスキャン画像データに対し、像域情報を用いてACS処理を行う。   In step 305, the ACS processing unit 203 performs ACS processing on the scanned image data converted into the device-independent color space using the image area information.

ステップ306において、フィルタ処理部204は、デバイス非依存色空間に変換されたスキャン画像データに対しフィルタ処理を行う。   In step 306, the filter processing unit 204 performs a filter process on the scanned image data converted into the device-independent color space.

ステップ307において、下地飛ばし処理部205は、フィルタ処理されたスキャン画像の下地を除去する。   In step 307, the background removal processing unit 205 removes the background of the scanned image that has been filtered.

ステップ308において、第2色変換処理部206は、下地が除去されたスキャン画像における色空間を、デバイス依存色空間(CMYK)に変換する。   In step 308, the second color conversion processing unit 206 converts the color space in the scanned image from which the background is removed into a device-dependent color space (CMYK).

ステップ309において、階調補正処理部207は、入力画像データとしてのプリンタ画像或いはステップ303以降の各種処理が施されたスキャン画像に対し、1D−LUTを用いてCMYK各色の階調特性を補正する。   In step 309, the gradation correction processing unit 207 corrects the gradation characteristics of each color of CMYK using a 1D-LUT on the printer image as input image data or the scanned image on which various processes in and after step 303 are performed. .

ステップ310において、中間調処理部208は、所定の中間調処理を行って2値のCMYK画像データを生成する。   In step 310, the halftone processing unit 208 performs predetermined halftone processing to generate binary CMYK image data.

以上が、画像処理部105における処理の流れである。生成された画像データはプリンタ部106等へ出力される。   The above is the processing flow in the image processing unit 105. The generated image data is output to the printer unit 106 and the like.

<像域分離処理>
次に、像域分離処理の詳細について説明する。図4は、本実施例に係る像域分離処理の流れを示すフローチャートである。
<Image area separation processing>
Next, details of the image area separation processing will be described. FIG. 4 is a flowchart showing the flow of image area separation processing according to the present embodiment.

ステップ401において、像域分離処理部201は、スキャン画像データから画素値を取得する。本実施例では、スキャン画像はRGB色空間の画像であるため、RGBの各チャンネルの画素値が取得される。   In step 401, the image area separation processing unit 201 acquires a pixel value from the scanned image data. In this embodiment, since the scan image is an image in the RGB color space, the pixel value of each RGB channel is acquired.

ステップ402において、像域分離処理部201は、取得したスキャン画像の画素値から像域分離の判定用信号を生成する。例えば、取得されたRGB各チャンネルの画素値を用いて、(R+2×G+B)/4の演算を行い、256階調(8bit)のグレースケール画像を判定用信号として生成する。ここで、グレースケールのビット数などは任意である。また、例えばGチャンネルの画素値のみを使用するなど、その他の方法で判定用信号を生成しても構わない。   In step 402, the image area separation processing unit 201 generates an image area separation determination signal from the acquired pixel value of the scanned image. For example, (R + 2 × G + B) / 4 is calculated using the acquired pixel values of each RGB channel, and a 256-scale (8-bit) grayscale image is generated as a determination signal. Here, the number of gray scale bits is arbitrary. Further, the determination signal may be generated by other methods, for example, using only the G channel pixel value.

ステップ403において、像域分離処理部201は、処理対象とする注目画素を決定する。   In step 403, the image area separation processing unit 201 determines a target pixel to be processed.

ステップ404において、像域分離処理部201は、決定された注目画素がハイライト網点領域の画素であるかどうかを判定する処理(ハイライト網点領域判定処理)を行なう。ハイライト網点領域判定処理の詳細については後述する。   In step 404, the image area separation processing unit 201 performs a process of determining whether or not the determined pixel of interest is a pixel in the highlight halftone area (highlight halftone area determination process). Details of the highlight halftone dot region determination process will be described later.

ステップ405において、像域分離処理部201は、ハイライト網点領域判定処理の判定結果に基づいて像域情報を生成する。生成された像域情報のデータは、メモリ102内のRAM等に保存される。   In step 405, the image area separation processing unit 201 generates image area information based on the determination result of the highlight halftone area determination process. The generated image area information data is stored in a RAM or the like in the memory 102.

ステップ406において、像域分離処理部201は、まだ処理されていない画素があるかどうかを判定する。未処理の画素があればステップ403に戻って次の画素を注目画素に決定し、ステップ404及びステップ405の処理を繰り返す。   In step 406, the image area separation processing unit 201 determines whether there is a pixel that has not yet been processed. If there is an unprocessed pixel, the process returns to step 403 to determine the next pixel as a target pixel, and the processing of step 404 and step 405 is repeated.

以上が、本実施例に係る像域分離処理の内容である。   The above is the content of the image area separation processing according to the present embodiment.

<ハイライト網点領域判定処理>
図5は、上述のステップ404におけるハイライト網点領域判定処理の流れを示すフローチャートである。図5の説明に入る前に、スキャナ部104の解像度が600dpiである場合における、判定対象となるパターンについて説明する。図6は、判定対象パターンの一例を示す表であり、1)ハイライト網点[150線]、2)ハイライト網点[誤差拡散]、3)不純物[大]、4)不純物[小]の4つのパターンについての特性が示されている。
<Highlight dot area determination processing>
FIG. 5 is a flowchart showing the highlight halftone dot region determination process in step 404 described above. Prior to the description of FIG. 5, a pattern to be determined when the resolution of the scanner unit 104 is 600 dpi will be described. FIG. 6 is a table showing an example of a determination target pattern: 1) highlight halftone dot [150 line], 2) highlight halftone dot [error diffusion], 3) impurity [large], and 4) impurity [small]. The characteristics for the four patterns are shown.

ここで、1)及び2)の網点パターンはハイライトの網点領域として検出されるようにしつつ、3)及び4)の不純物パターンはハイライトの網点領域として検出されないようにしなければならない。一般に、紙等の記録媒体に含まれる不純物の大きさはハイライト部の網点と比較して大きいものが多く(図6の「ドット形状」欄を参照)、その一方でその数はハイライト部の網点と比較して少ない(図6の「孤立点数」欄を参照)といえる。本実施例では、このような不純物の特性に基づいて、各画素がハイライトの網点領域の画素かどうかを判定している。   Here, the halftone dot patterns 1) and 2) should be detected as highlight halftone dot areas, while the impurity patterns 3) and 4) should not be detected as highlight halftone dot areas. . In general, the size of impurities contained in a recording medium such as paper is often larger than the halftone dot of the highlight portion (see the “dot shape” column in FIG. 6), while the number of highlights is highlighted. It can be said that the number is smaller than the halftone dots (see the “number of isolated points” column in FIG. 6). In this embodiment, it is determined whether or not each pixel is a pixel in a highlight halftone dot region based on such impurity characteristics.

ステップ501において、像域分離処理部201は、ステップ402で生成された像域分離の判定用信号に対し二値化処理を行う。具体的には、像域分離の判定用信号の画素値と所定の閾値(Th_HiAmi1)とを比較し、画素値が閾値を超えているかどうかを判定することで2値の信号に変換する。この場合の閾値Th_HiAmi1は、特定の紙の白色度に基づいた任意の値とすればよく、例えば再生紙等で一般的に使われている白色度約50%の紙をカラースキャンした時の値の平均値とする。   In step 501, the image area separation processing unit 201 performs binarization processing on the image area separation determination signal generated in step 402. Specifically, the pixel value of the image area separation determination signal is compared with a predetermined threshold (Th_HiAmi1), and it is converted to a binary signal by determining whether the pixel value exceeds the threshold. The threshold value Th_HiAmi1 in this case may be an arbitrary value based on the whiteness of a specific paper. For example, a value obtained when color scanning is performed on paper having a whiteness of about 50%, which is generally used for recycled paper. The average value of

ステップ502において、像域分離処理部201は、二値化された値を用いて、2×2画素及び1×1画素の孤立点判定処理を行う。図7は、本ステップにおける孤立点判定を説明する図であり、(a)は2×2画素の孤立点判定、同(b)は1×1画素の孤立点判定を示している。2×2画素の孤立点の判定には、注目画素とその周辺画素(4×4画素)の画素値を用いたパターンマッチングを行う。図7の(a)において、領域Aは2×2画素の画素群からなる印刷される領域であり、領域Bは4×4画素の画素群から領域Aの画素を除いた印刷されない領域である。1×1画素の孤立点の判定には、注目画素とその周辺画素(3×3画素)の画素値を用いたパターンマッチングを行う。図7の(b)において、領域Aは印刷される領域(1画素)であり、領域Bは3×3画素の画素群から領域Aの画素を除いた印刷されない領域である。図7の(a)及び(b)における太線の矩形は注目画素を示している。本実施例では、孤立点として判定されるための条件として、領域Aの画素値は全て「1」であり、かつ、領域Bの画素値は全て「0」であることが与えられるものとする。ただし、網点のドットは濃度によって形状が変化するため、例えばパターンマッチングの条件に幅を持たせ、マッチングした結果に対して近似度などのレベルで判定するようにしてもよい。つまり、完全にパターンが一致しなくても、網点領域として判定できるようにすることが望ましい。そして、2×2画素の孤立点判定を行うことで、例えばハイライト部でスクリーン線数150線の網点領域と記録媒体内の2×2画素以上の大きい不純物との切り分けを行うことが可能となる。また、1×1画素の孤立点判定を行うことで、例えばハイライト部で誤差拡散法による網点領域と記録媒体内の2×2画素未満(1×1画素より大きい)の小さな不純物との切り分けを行うことが可能となる。   In step 502, the image area separation processing unit 201 performs isolated point determination processing of 2 × 2 pixels and 1 × 1 pixels using the binarized values. 7A and 7B are diagrams for explaining isolated point determination in this step. FIG. 7A shows isolated point determination of 2 × 2 pixels, and FIG. 7B shows isolated point determination of 1 × 1 pixel. For the determination of an isolated point of 2 × 2 pixels, pattern matching is performed using pixel values of the target pixel and its surrounding pixels (4 × 4 pixels). In FIG. 7A, a region A is a printed region composed of a 2 × 2 pixel group, and a region B is a non-printed region obtained by removing the pixel of the region A from a 4 × 4 pixel group. . For the determination of an isolated point of 1 × 1 pixel, pattern matching using pixel values of the target pixel and its surrounding pixels (3 × 3 pixels) is performed. In FIG. 7B, a region A is a printed region (one pixel), and a region B is a non-printed region obtained by removing the pixel of the region A from the 3 × 3 pixel group. The bold rectangles in FIGS. 7A and 7B indicate the target pixel. In the present embodiment, as conditions for determining as an isolated point, it is assumed that the pixel values of the region A are all “1” and the pixel values of the region B are all “0”. . However, since the shape of the dot of the halftone dot changes depending on the density, for example, the pattern matching condition may be given a width, and the matching result may be determined at a level such as the degree of approximation. That is, it is desirable to be able to determine a halftone dot area even if the patterns do not completely match. By performing 2 × 2 pixel isolated point determination, for example, it is possible to separate a halftone dot region having a screen line number of 150 lines and a large impurity of 2 × 2 pixels or more in a recording medium in a highlight portion. It becomes. Further, by performing isolated point determination of 1 × 1 pixel, for example, a dot area by an error diffusion method in a highlight portion and a small impurity of less than 2 × 2 pixels (greater than 1 × 1 pixel) in a recording medium. It becomes possible to perform carving.

図8〜図10は、それぞれ異なる入力画像(ハイライト網点[150線]:図8(a)、不純物:図9(a)、ハイライト網点[誤差拡散]:図10(a))に対して、ハイライト網点領域判定処理を行なった場合の結果を示す図である。まず、2×2画素の孤立点判定を行った結果は、図8(b)、図9(b)、図10(b)のようになる。スクリーン線数が150線の原稿の場合は、図8(b)に示すように周期的に孤立点が検出される。そして、記録媒体内の不純物は、図9(b)に示すように2×2画素の比較的小さい不純物のみ孤立点として検出される。また、誤差拡散法によるハーフトーン処理された原稿の場合は、図10(b)に示すように孤立点は検出されない。次に、1×1画素の孤立点判定を行った結果は、図8(d)、図9(d)、図10(d)のようになる。スクリーン線数が150線の原稿の場合は、図8(d)に示すように孤立点が検出されない。そして、記録媒体内の不純物は、図9(d)に示すように最も小さい不純物のみ孤立点として検出される。また、誤差拡散法によるハーフトーン処理された原稿の場合は、図10(d)に示すように他の画素と連結されていない画素のみが孤立点として検出される。   8 to 10 show different input images (highlight halftone dot [150 lines]: FIG. 8A, impurities: FIG. 9A, highlight halftone dot [error diffusion]: FIG. 10A). FIG. 8 is a diagram showing a result when highlight dot area determination processing is performed. First, the result of the isolated point determination of 2 × 2 pixels is as shown in FIGS. 8B, 9B, and 10B. In the case of an original with 150 screen lines, isolated points are detected periodically as shown in FIG. As for the impurities in the recording medium, only relatively small impurities of 2 × 2 pixels are detected as isolated points as shown in FIG. 9B. Further, in the case of a document subjected to halftone processing by the error diffusion method, no isolated point is detected as shown in FIG. Next, the results of the 1 × 1 pixel isolated point determination are as shown in FIGS. 8D, 9D, and 10D. In the case of a document having 150 screen lines, no isolated point is detected as shown in FIG. As for the impurities in the recording medium, only the smallest impurities are detected as isolated points as shown in FIG. Further, in the case of a document subjected to halftone processing by the error diffusion method, only pixels that are not connected to other pixels are detected as isolated points as shown in FIG.

ステップ503において、像域分離処理部201は、ステップ502における各孤立点判定結果をそれぞれ積算処理(計数処理)して、所定の領域(積算領域)内の孤立点の総数をそれぞれ導出する。ここでは、所定の領域を16×16画素の領域とするが、その大きさは任意である。例えば2×2画素の孤立点については、網点のスクリーン線数に対応した孤立点数を検出できるような領域であればどのような大きさでも構わない。また、1×1画素の孤立点については、網点面積率を推定できるような領域であればどのような大きさでも構わない。   In step 503, the image area separation processing unit 201 performs integration processing (counting processing) on each isolated point determination result in step 502, and derives the total number of isolated points in a predetermined region (integration region). Here, the predetermined area is a 16 × 16 pixel area, but the size is arbitrary. For example, the isolated points of 2 × 2 pixels may have any size as long as the number of isolated points corresponding to the screen line number of halftone dots can be detected. Further, the isolated points of 1 × 1 pixels may have any size as long as the halftone dot area ratio can be estimated.

ステップ504において、像域分離処理部201は、ステップ503でカウントされた孤立点の総数と所定の閾値とを比較し、注目画素がハイライト部の網点領域の画素であるかどうかを、2×2画素の孤立点及び1×1画素の孤立点それぞれについて判定する。ここで、2×2画素の孤立点についての所定の閾値(Th_HiAmi2)は、ステップ503における積算領域内の、スクリーン線数が150線で表現できるハーフトーンセルの個数とする。本実施例では、積算領域は16×16画素の領域であり、当該領域内では15個の孤立点の検出が可能となるため、閾値Th_HiAmi2として「15」が設定されることになる。これにより、ステップ503で導出された2×2画素の孤立点の総数が15個であれば、注目画素はハイライト網点領域の画素であると判定されることになる。なお、閾値Th_HiAmi2の値は、ハイライト部の網点領域を判定できる値であればよく、上記以外の値でも構わない。同様に、1×1画素の孤立点についての所定の閾値(Th_HiAmi3)は、ステップ503における積算領域内の面積と判定したい網点面積率から導出される、所定の範囲の孤立点数とする。このように閾値Th_HiAmi3に幅を持たせるのは、以下の理由による。まず、上限値を設けるのは、例えば網点面積率20%のとき20×20画素内では80画素分の印刷領域があるが、誤差拡散法では連結画素が発生し孤立点数が80個にならない可能性があるためである。本実施例では、80個を大きく上回る場合には網点面積率が高いことから高濃度の高線数スクリーンの可能性がでるため、その上限値を80としている。そして、下限値を設けるのは、記録媒体に含まれる不純物の可能性を排除するためである。本実施例では、図6における不純物[小]を正確に識別することを考慮してその数を5個としている。もちろん、上記の上限値と下限値は一例であり、上記以外の範囲に設定しても構わない。   In step 504, the image area separation processing unit 201 compares the total number of isolated points counted in step 503 with a predetermined threshold value to determine whether the target pixel is a pixel in the halftone dot area of the highlight part. Each of the isolated points of × 2 pixels and the isolated points of 1 × 1 pixels is determined. Here, the predetermined threshold (Th_HiAmi2) for the isolated point of 2 × 2 pixels is the number of halftone cells that can be represented by 150 screen lines in the integration region in step 503. In this embodiment, the integration area is an area of 16 × 16 pixels, and 15 isolated points can be detected in the area, so “15” is set as the threshold Th_HiAmi2. Thus, if the total number of isolated points of 2 × 2 pixels derived in step 503 is 15, the target pixel is determined to be a pixel in the highlight halftone area. Note that the value of the threshold Th_HiAmi2 only needs to be a value that can determine the halftone dot region of the highlight portion, and may be a value other than the above. Similarly, the predetermined threshold (Th_HiAmi3) for the isolated point of 1 × 1 pixel is the number of isolated points in a predetermined range derived from the halftone dot area ratio to be determined as the area in the integration region in step 503. The reason why the threshold Th_HiAmi3 has a width in this way is as follows. First, the upper limit is set, for example, when the dot area ratio is 20%, there is a print area of 80 pixels within 20 × 20 pixels. However, in the error diffusion method, connected pixels are generated and the number of isolated points is not 80. This is because there is a possibility. In the present embodiment, when the number is greatly higher than 80, the dot area ratio is high, and thus there is a possibility of a high-density high-line-number screen. Therefore, the upper limit is set to 80. The reason why the lower limit is set is to eliminate the possibility of impurities contained in the recording medium. In the present embodiment, the number is set to five in consideration of correctly identifying the impurity [small] in FIG. Of course, the above upper limit value and lower limit value are merely examples, and may be set in a range other than the above.

2×2画素の孤立点について、スクリーン線数が150線の原稿の場合は、周期的に孤立点が検出されているためハイライト部の網点領域として判定される(図8(c)を参照)。一方、記録媒体内の不純物の場合は、検出される孤立点数が少ないため、ハイライト部の網点領域として判定されない(図9(c)を参照)。同様に、誤差拡散法によるハーフトーン処理された原稿の場合は、検出される孤立点がないため、ハイライト部の網点領域として判定されない(図10(c)を参照)。   For a 2 × 2 pixel isolated point, in the case of a document having a screen line number of 150 lines, an isolated point is periodically detected, so that it is determined as a halftone dot region of the highlight portion (FIG. 8C). reference). On the other hand, in the case of impurities in the recording medium, since the number of isolated points detected is small, it is not determined as a halftone dot region of the highlight portion (see FIG. 9C). Similarly, in the case of a document subjected to halftone processing by the error diffusion method, since there is no isolated point to be detected, it is not determined as a halftone dot region of a highlight portion (see FIG. 10C).

1×1画素の孤立点について、スクリーン線数が150線の原稿の場合は、孤立点が検出されないためハイライト部の網点領域として判定されない(図8(e)を参照)。一方、記録媒体内の不純物の場合は、小さい不純物が孤立点として検出されるもののその数が少ないため、ハイライト部の網点領域として判定されない(図9(e)を参照)。そして、誤差拡散法によるハーフトーン処理された原稿の場合は、規定の範囲内の数の孤立点が検出されるため、ハイライト部の網点領域として判定される(図10(e)を参照)。   For an isolated point of 1 × 1 pixel, if the document has a screen line number of 150 lines, an isolated point is not detected, so that it is not determined as a halftone dot region of a highlight portion (see FIG. 8E). On the other hand, in the case of impurities in the recording medium, although small impurities are detected as isolated points, the number thereof is small, so that it is not determined as a halftone dot region in the highlight portion (see FIG. 9E). Then, in the case of a document subjected to halftone processing by the error diffusion method, since a number of isolated points within a specified range are detected, it is determined as a halftone dot region of a highlight portion (see FIG. 10E). ).

ステップ505において、像域分離処理部201は、ステップ504における閾値判定の結果を用いて、注目画素がハイライト網点領域の画素かどうかを特定する。具体的には、2×2画素及び1×1画素のいずれかについて、ハイライト網点領域と判定されていれば、その注目画素をハイライト網点領域の画素として特定する。   In step 505, the image area separation processing unit 201 specifies whether or not the target pixel is a pixel in the highlight halftone dot area using the result of the threshold determination in step 504. Specifically, if any of 2 × 2 pixels and 1 × 1 pixels is determined to be a highlight halftone dot region, the target pixel is specified as a pixel in the highlight halftone dot region.

以上が、ハイライト部網点領域判定処理の内容である。このような処理によって、例えばスクリーン線数150線の原稿や誤差拡散法でハーフトーン処理された原稿のパターンはハイライト網点領域と判定され、記録媒体内の不純物はハイライト網点領域ではないと判定されることになる。なお、ハイライト網点領域判定処理は、孤立点判定によって得られた孤立点の個数からハイライト部の網点領域を判定できるのであれば、どのような方法でも構わない。例えば、濃度、スクリーン線数、スクリーンの形状などを考慮した様々なパターンを用いてパターンマッチングを行ってもよい。また、本実施例ではパターンマッチングの入力値として画素値を二値化することで得た2値データを用いたが、フィルタ処理された値を二値化することで得られるエッジ情報を用いても構わない。   The above is the content of the highlight part halftone dot region determination process. By such a process, for example, a document pattern having a screen line number of 150 lines or a halftone-processed document pattern is determined as a highlight halftone area, and impurities in the recording medium are not a highlight halftone area. It will be determined. The highlight halftone dot region determination process may be any method as long as the halftone dot region of the highlight portion can be determined from the number of isolated points obtained by the isolated point determination. For example, pattern matching may be performed using various patterns in consideration of density, screen line number, screen shape, and the like. In this embodiment, binary data obtained by binarizing pixel values is used as an input value for pattern matching. However, edge information obtained by binarizing a filtered value is used. It doesn't matter.

<ACS処理>
次に、スキャンした原稿がカラー原稿かモノクロ原稿かを判定する処理(ACS処理)の詳細について説明する。図11は、ACS処理の流れを示すフローチャートである。このACS処理の結果に応じて、カラーモードの切り替えがなされる。
<ACS processing>
Next, details of processing (ACS processing) for determining whether a scanned document is a color document or a monochrome document will be described. FIG. 11 is a flowchart showing the flow of ACS processing. The color mode is switched according to the result of the ACS processing.

ステップ1101において、ACS処理部203は、上述の像域分離処理で生成された像域情報を用いて、有彩色画素判定処理を行なう。具体的には、像域情報に含まれる判定係数(各画素がハイライト網点領域の画素であるかどうかを表す信号に応じた係数)を用いて、画素毎に有彩色画素か無彩色画素であるかを判定する。図12は、本実施例に係る有彩色画素判定処理の詳細を示すフローチャートである。   In step 1101, the ACS processing unit 203 performs a chromatic color pixel determination process using the image area information generated by the above-described image area separation process. Specifically, a chromatic color pixel or an achromatic color pixel is used for each pixel using a determination coefficient included in the image area information (a coefficient corresponding to a signal indicating whether each pixel is a highlight halftone area pixel). It is determined whether it is. FIG. 12 is a flowchart illustrating details of the chromatic color pixel determination processing according to the present embodiment.

ステップ1201において、ACS処理部203は、像域情報を取得する。   In step 1201, the ACS processing unit 203 acquires image area information.

ステップ1202において、ACS処理部203は、前述のステップ304でデバイス非依存色空間に変換された画像データを、有彩色画素判定のための色空間に変換する。本実施例では、L*a*b*色空間に変換する。ただし、LCh、RGB等の色空間に変換しても構わない。   In step 1202, the ACS processing unit 203 converts the image data converted into the device-independent color space in step 304 described above into a color space for chromatic color pixel determination. In this embodiment, the color space is converted to the L * a * b * color space. However, it may be converted into a color space such as LCh or RGB.

ステップ1203において、ACS処理部203は、処理対象とする注目画素を決定する。   In step 1203, the ACS processing unit 203 determines a target pixel to be processed.

ステップ1204において、ACS処理部203は、ステップ1201で取得した像域情報に基づいて、注目画素についての有彩色画素判定に用いる係数(閾値)を設定する。具体的には、注目画素がハイライト網点領域の画素であれば、有彩色画素判定に用いる係数を第1の有彩色画素判定係数(閾値Th_C1)に設定し、注目画素がハイライト部の網点領域の画素でなければ第2の有彩色画素判定係数(閾値Th_C2)に設定する。ここで、第1の有彩色画素判定係数と第2の有彩色画素判定係数とでは、第2の有彩色画素判定係数の方が、よりハイライト部の網点を有彩色画素と判定しやすい係数となっている。   In step 1204, the ACS processing unit 203 sets a coefficient (threshold value) used for chromatic color pixel determination for the pixel of interest based on the image area information acquired in step 1201. Specifically, if the target pixel is a pixel in the highlight halftone dot region, the coefficient used for chromatic color pixel determination is set to the first chromatic color pixel determination coefficient (threshold Th_C1), and the target pixel is the highlight portion. If the pixel is not in the halftone dot region, the second chromatic color pixel determination coefficient (threshold Th_C2) is set. Here, in the first chromatic color pixel determination coefficient and the second chromatic color pixel determination coefficient, the second chromatic color pixel determination coefficient can more easily determine the halftone dot of the highlight portion as the chromatic color pixel. It is a coefficient.

ステップ1205において、ACS処理部203は、ステップ1204で設定された判定係数を用いて、注目画素が有彩色画素であるか無彩色画素であるかを判定する。図13(a)は第1の有彩色画素判定係数を用いた判定の様子、同(b)は第2の有彩色画素判定係数を用いた判定の様子をそれぞれ示している。図13の(a)及び(b)において、横軸は明度(L*)を示しており、縦軸は彩度(C*)を表している。この場合において、彩度C*は、次の式(1)によって求めることができる。   In step 1205, the ACS processing unit 203 determines whether the pixel of interest is a chromatic pixel or an achromatic pixel using the determination coefficient set in step 1204. FIG. 13A shows a state of determination using the first chromatic color pixel determination coefficient, and FIG. 13B shows a state of determination using the second chromatic color pixel determination coefficient. In FIGS. 13A and 13B, the horizontal axis represents lightness (L *), and the vertical axis represents saturation (C *). In this case, the saturation C * can be obtained by the following equation (1).

Figure 2015146557
Figure 2015146557

第1の有彩色画素判定係数(閾値Th_C1)を用いた判定では、ステップ1202で変換したL*a*b*値から上記式(1)によって彩度C*を求め、得られた彩度C*が閾値Th_C1以上であるかどうかで、有彩色画素か否かが決定される。すなわち、彩度C*が閾値Th_C1以上であれば有彩色画素と判定され、彩度C*が閾値Th_C1未満であれば無彩色画素と判定される。第2の有彩色画素判定係数(閾値Th_C2)を用いた判定も同様である。図13から明らかなように、第2の有彩色画素判定係数(閾値Th_C2)を用いた場合の方が、第1の有彩色画素判定係数(閾値Th_C1)を用いた場合よりも、有彩色画素であると判定される割合が高い。つまり、閾値Th_C2の場合は、閾値Th_C1の場合であれば無彩色と判定されるような低彩度の値でも有彩色と判定され得ることが分かる。なお、本実施例では、閾値Th_C1及び Th_C2は明度に依存しない一律の値としていたが、明度に応じて異なる値としても構わない。また、閾値Th_C1及び Th_C2を、色相毎に切り替えても構わない。   In the determination using the first chromatic color pixel determination coefficient (threshold Th_C1), the saturation C * is obtained from the L * a * b * value converted in step 1202 by the above equation (1), and the obtained saturation C Whether or not the pixel is a chromatic pixel is determined by whether or not * is greater than or equal to the threshold Th_C1. That is, if the saturation C * is greater than or equal to the threshold Th_C1, it is determined as a chromatic pixel, and if the saturation C * is less than the threshold Th_C1, it is determined as an achromatic pixel. The same applies to the determination using the second chromatic color pixel determination coefficient (threshold value Th_C2). As is apparent from FIG. 13, the chromatic color pixel is more effective when the second chromatic color pixel determination coefficient (threshold Th_C2) is used than when the first chromatic color pixel determination coefficient (threshold Th_C1) is used. A high percentage is determined. That is, in the case of the threshold value Th_C2, it can be seen that even if the threshold value Th_C1, the low chromaticity value that is determined as an achromatic color can be determined as a chromatic color. In the present embodiment, the threshold values Th_C1 and Th_C2 are uniform values that do not depend on the lightness, but may be different values depending on the lightness. Further, the threshold values Th_C1 and Th_C2 may be switched for each hue.

ステップ1206において、ACS処理部203は、ステップ1205における判定結果に基づいて、注目画素が有彩色画素であるのか無彩色画素であるのかを示すデータを像域情報に付加する。この場合のデータとしては、たとえば画素毎に有彩色画素であるかどうかを示す1bit(有彩色画素であれば「1」、無彩色画素であれば「0」)のデータとすればよい。   In step 1206, the ACS processing unit 203 adds data indicating whether the target pixel is a chromatic pixel or an achromatic pixel to the image area information based on the determination result in step 1205. As data in this case, for example, 1-bit data indicating whether each pixel is a chromatic color pixel (“1” for a chromatic pixel or “0” for an achromatic pixel) may be used.

ステップ1207において、ACS処理部203は、まだ処理されていない画素があるかどうかを判定する。未処理の画素があればステップ1203に戻って次の画素を注目画素に決定し、ステップ1204〜ステップ1206の処理を繰り返す。   In step 1207, the ACS processing unit 203 determines whether there is a pixel that has not yet been processed. If there is an unprocessed pixel, the process returns to step 1203 to determine the next pixel as a target pixel, and the processing of step 1204 to step 1206 is repeated.

以上が、本実施例における有彩色画素判定処理の内容である。上述のとおり、原稿内のハイライト網点領域についてはそれ以外の領域に比べて有彩色画素と判定されやすくなっているので、ハイライト網点を有する原稿のACS判定の精度が向上する。   The above is the content of the chromatic color pixel determination process in the present embodiment. As described above, the highlight halftone dot area in the original is more easily determined as a chromatic pixel than the other areas, so that the accuracy of the ACS determination of the original having the highlight halftone is improved.

図11のフローチャートの説明に戻る。   Returning to the flowchart of FIG.

ステップ1102において、ACS処理部203は、所定の単位領域毎に有彩色画素と判定された画素の数を求める積算処理を行なう。ここでは、所定の単位領域を100×100画素の領域とする。なお、単位領域の大きさは任意であり、例えば10ポイントの文字をカラー原稿と判定できる大きさにしても構わないが、1つのハーフトーンセルの領域よりも大きな領域とする必要がある。   In step 1102, the ACS processing unit 203 performs integration processing for obtaining the number of pixels determined to be chromatic pixels for each predetermined unit area. Here, the predetermined unit area is an area of 100 × 100 pixels. The size of the unit area is arbitrary. For example, a 10-point character may be determined to be a color original, but the area needs to be larger than the area of one halftone cell.

ステップ1103において、ACS処理部203は、ステップ1102で求めた有彩色画素数に基づいて、入力されたスキャン画像データに係る原稿がカラー原稿かどうかを判定する。具体的には、単位領域当たりの有彩色画素数が所定の閾値(Th_ACS)で与えられる数を超えていれば、カラー原稿であると判定する。ここで、閾値Th_ACSは、スキャナ部104のMTF等の特性によるハイライト網点への影響度を考慮して決められるものであり、本実施例では、単位領域内で表現できる網点面積率20%のハイライト網点の画素数とする。   In step 1103, the ACS processing unit 203 determines whether the document related to the input scan image data is a color document based on the number of chromatic pixels obtained in step 1102. Specifically, if the number of chromatic color pixels per unit area exceeds the number given by a predetermined threshold (Th_ACS), the document is determined to be a color document. Here, the threshold value Th_ACS is determined in consideration of the degree of influence on the highlight halftone dot due to characteristics such as the MTF of the scanner unit 104. In this embodiment, the halftone dot area ratio 20 that can be expressed in the unit region. % Is the number of pixels in the highlight halftone dot.

ステップ1104において、ACS処理部203は、ステップ1103における判定結果に応じて、カラーモードを設定する。具体的には、カラー原稿であると判定された場合は、カラーモードをフルカラーに設定し、本処理を終了する。一方、カラー原稿ではない(モノクロ原稿である)と判定された場合は、カラーモードをモノクロに設定し、入力されたスキャン画像データをモノクロ変換して、本処理を終了する。   In step 1104, the ACS processing unit 203 sets a color mode according to the determination result in step 1103. Specifically, if it is determined that the document is a color document, the color mode is set to full color, and this process ends. On the other hand, if it is determined that the document is not a color document (a monochrome document), the color mode is set to monochrome, the input scanned image data is converted to monochrome, and the process ends.

以上が、本実施例に係るACS処理の内容である。   The above is the content of the ACS processing according to the present embodiment.

本実施例によれば、記録媒体の品質に依存することのない高精度なACS判定が可能となる。   According to the present embodiment, it is possible to perform the ACS determination with high accuracy without depending on the quality of the recording medium.

実施例1では、パターンマッチングを用いてハイライト部の網点領域と記録媒体内の不純物とを切り分けていた。次に、記録媒体上の不純物の領域を抽出し、抽出された不純物領域については有彩色画素と判定しないようにする態様について、実施例2として説明する。なお、画像処理部105の内部構成や基本的な処理の流れ(図3)といった実施例1と共通する内容についてはその説明を省略し、以下では実施例1との差異点であるACS処理における有彩色画素判定処理を中心に説明するものとする。   In the first embodiment, the dot area of the highlight portion and the impurities in the recording medium are separated using pattern matching. Next, an embodiment in which an impurity region on a recording medium is extracted and the extracted impurity region is not determined as a chromatic pixel will be described as a second embodiment. Note that the description of the contents common to the first embodiment such as the internal configuration of the image processing unit 105 and the basic processing flow (FIG. 3) is omitted, and in the ACS processing that is the difference from the first embodiment below. The chromatic color pixel determination process will be mainly described.

図14は、本実施例に係る有彩色画素判定処理の詳細を示すフローチャートである。   FIG. 14 is a flowchart illustrating details of the chromatic color pixel determination processing according to the present embodiment.

ステップ1401において、ACS処理部203は、像域情報を取得する。本実施例において取得される像域情報には、ハイライト網点を特定する示すデータに加え、不純物を特定するデータも含まれる。不純物を特定するデータは、前述のハイライト網点領域判定処理における閾値判定(ステップ504)において、所定の閾値を満たさないと判定された2×2画素及び1×1画素の孤立点に対応する画素を特定可能な、例えば1bitのデータである。   In step 1401, the ACS processing unit 203 acquires image area information. The image area information acquired in this embodiment includes data for specifying impurities in addition to data for specifying highlight halftone dots. The data for specifying the impurities corresponds to the isolated points of 2 × 2 pixels and 1 × 1 pixels determined not to satisfy the predetermined threshold in the threshold determination (step 504) in the highlight halftone dot region determination process described above. For example, it is 1-bit data that can specify a pixel.

ステップ1402において、ACS処理部203は、デバイス非依存色空間に変換されている画像データを、有彩色画素判定のための色空間に変換する。   In step 1402, the ACS processing unit 203 converts the image data converted into the device-independent color space into a color space for chromatic color pixel determination.

ステップ1403において、ACS処理部203は、処理対象とする注目画素を決定する。   In step 1403, the ACS processing unit 203 determines a target pixel to be processed.

ここまでの各処理は、実施例1に係る図12のフローチャートのステップ1201〜ステップ1203にそれぞれ対応する。   Each process so far corresponds to step 1201 to step 1203 in the flowchart of FIG. 12 according to the first embodiment.

ステップ1404において、ACS処理部203は、注目画素が有彩色画素であるかどうかを、所定の判定係数に従って判定する。すなわち、実施例1と異なり、注目画素の属性に応じた判定係数の設定は行なわない。なお、本ステップにおける判定係数としては、ハイライト部の網点領域を有彩色画素と判定できるような値であればどのような値でも構わない。   In step 1404, the ACS processing unit 203 determines whether or not the target pixel is a chromatic pixel according to a predetermined determination coefficient. That is, unlike the first embodiment, the determination coefficient according to the attribute of the target pixel is not set. The determination coefficient in this step may be any value as long as it can determine that the halftone dot area of the highlight portion is a chromatic pixel.

ステップ1405において、ACS処理部203は、ステップ1204における判定結果及びステップ1401で取得した像域情報を参照し、注目画素が有彩色画素かつ不純物画素であるかどうかを判定する。注目画素が有彩色画素かつ不純物画素であった場合は、ステップ1406に進む。一方、それ以外の場合(注目画素が無彩色画素であった場合や不純物画素ではなかった場合)は、ステップ1407に進む。   In step 1405, the ACS processing unit 203 refers to the determination result in step 1204 and the image area information acquired in step 1401, and determines whether the target pixel is a chromatic pixel or an impurity pixel. If the target pixel is a chromatic pixel and an impurity pixel, the process proceeds to step 1406. On the other hand, in other cases (when the target pixel is an achromatic pixel or not an impurity pixel), the process proceeds to step 1407.

ステップ1406において、ACS処理部203は、有彩色画素かつ不純物画素と判定された注目画素の属性を無彩色画素に変更する。   In step 1406, the ACS processing unit 203 changes the attribute of the target pixel determined to be a chromatic color pixel and an impurity pixel to an achromatic color pixel.

ステップ1907において、ACS処理部203は、ステップ1204における判定結果及びステップ1406における変更結果に基づいて、注目画素が有彩色画素であるのか無彩色画素であるのかを示すデータ(例えば1bit)を像域情報に付加する。   In step 1907, the ACS processing unit 203 generates data (for example, 1 bit) indicating whether the target pixel is a chromatic pixel or an achromatic pixel based on the determination result in step 1204 and the change result in step 1406. Append to information.

ステップ1408において、ACS処理部203は、まだ処理されていない画素があるかどうかを判定する。未処理の画素があればステップ1403に戻って次の画素を注目画素に決定し、ステップ1404〜ステップ1407の処理を繰り返す。   In step 1408, the ACS processing unit 203 determines whether there is a pixel that has not yet been processed. If there is an unprocessed pixel, the process returns to step 1403 to determine the next pixel as a target pixel, and the processes of steps 1404 to 1407 are repeated.

以上が、本実施例における有彩色画素判定処理の内容である。このような処理により、記録媒体から抽出された不純物領域についてはすべて無彩色画素として扱われる。   The above is the content of the chromatic color pixel determination process in the present embodiment. By such processing, all impurity regions extracted from the recording medium are treated as achromatic pixels.

本実施例によれば、記録媒体における不純物領域を特定し、当該特定された不純物領域については有彩色画素として扱わないようにしている。これにより、記録媒体に含まれる不純物に影響されないACS処理が可能となる。   According to the present embodiment, an impurity region in the recording medium is specified, and the specified impurity region is not handled as a chromatic color pixel. As a result, ACS processing that is not affected by impurities contained in the recording medium can be performed.

(その他の実施例)
本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施例の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other examples)
The present invention is also realized by executing the following processing. That is, software (program) for realizing the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.

Claims (7)

画像データから孤立点を検出する検出手段と、
前記検出手段で検出された孤立点の数を、注目画素を含む所定の領域でカウントする計数手段と、
前記計数手段でカウントされた前記孤立点の数が第1の閾値を超えたかどうかを判定する判定手段と、
前記判定手段における判定結果に応じて、前記注目画素が有彩色か無彩色かを判定する際の第2の閾値を設定する設定手段と、
を有し、
前記計数手段でカウントされた前記孤立点の数が前記第1の閾値を超えたと前記判定手段で判定された場合に前記設定手段によって設定される前記第2の閾値は、前記計数手段でカウントされた前記孤立点の数が前記第1の閾値を超えなかったと前記判定手段で判定された場合に前記設定手段によって設定される前記第2の閾値よりも、注目画素が有彩色と判定されやすい閾値である
ことを特徴とする画像処理装置。
Detection means for detecting isolated points from image data;
Counting means for counting the number of isolated points detected by the detection means in a predetermined area including the target pixel;
Determining means for determining whether the number of isolated points counted by the counting means exceeds a first threshold;
Setting means for setting a second threshold value for determining whether the target pixel is a chromatic color or an achromatic color according to a determination result in the determination means;
Have
The second threshold set by the setting unit when the determination unit determines that the number of isolated points counted by the counting unit exceeds the first threshold is counted by the counting unit. A threshold value that makes it easier for the pixel of interest to be determined as a chromatic color than the second threshold value set by the setting means when the determination means determines that the number of isolated points has not exceeded the first threshold value. An image processing apparatus characterized by the above.
前記検出手段で検出される孤立点は、前記画像データにおけるハイライト部の網点領域を構成する孤立点であることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the isolated point detected by the detection unit is an isolated point constituting a halftone dot region of a highlight portion in the image data. 前記ハイライト部の網点領域を構成する孤立点は、前記画像データの解像度が600dpiで、1×1画素の孤立点及び2×2画素の孤立点であることを特徴とする請求項2に記載の画像処理装置。   3. The isolated points constituting the halftone dot region of the highlight portion are an isolated point of 1 × 1 pixel and an isolated point of 2 × 2 pixels with a resolution of the image data of 600 dpi. The image processing apparatus described. 前記ハイライト部の網点領域を構成する孤立点は、前記画像データの解像度が600dpiで、3×3画素の孤立点は含まないことを特徴とする請求項2に記載の画像処理装置。   3. The image processing apparatus according to claim 2, wherein the isolated points constituting the halftone dot area of the highlight portion do not include an isolated point of 3 × 3 pixels with a resolution of the image data of 600 dpi. 前記設定手段で設定された前記第2の閾値を用いて前記画像データの各画素が有彩色かどうかを判定し、当該判定結果に従って前記画像データがカラー原稿の画像データかモノクロ原稿の画像データかを判定するカラー原稿判定手段をさらに備えることを特徴とする、請求項1乃至4のいずれか1項に記載の画像処理装置。   It is determined whether each pixel of the image data is a chromatic color using the second threshold set by the setting unit, and whether the image data is color document image data or monochrome document image data according to the determination result The image processing apparatus according to claim 1, further comprising a color document determination unit that determines whether or not 画像データから孤立点を検出する検出ステップと、
前記検出ステップで検出された孤立点の数を、注目画素を含む所定の領域でカウントする計数ステップと、
前記計数ステップでカウントされた前記孤立点の数が第1の閾値を超えたかどうかを判定する判定ステップと、
前記判定ステップにおける判定結果に応じて、前記注目画素が有彩色か無彩色かを判定する際の第2の閾値を設定する設定ステップと、
を有し、
前記計数ステップでカウントされた前記孤立点の数が前記第1の閾値を超えたと前記判定ステップで判定された場合に前記設定ステップで設定される前記第2の閾値は、前記計数ステップでカウントされた前記孤立点の数が前記第1の閾値を超えなかったと前記判定ステップで判定された場合に前記設定ステップで設定される前記第2の閾値よりも、注目画素が有彩色と判定されやすい閾値である
ことを特徴とする画像処理方法。
A detection step of detecting isolated points from the image data;
A counting step of counting the number of isolated points detected in the detection step in a predetermined area including the target pixel;
A determination step of determining whether the number of isolated points counted in the counting step exceeds a first threshold;
A setting step for setting a second threshold value when determining whether the pixel of interest is a chromatic color or an achromatic color according to a determination result in the determination step;
Have
When the determination step determines that the number of isolated points counted in the counting step exceeds the first threshold, the second threshold set in the setting step is counted in the counting step. Further, when the determination step determines that the number of isolated points has not exceeded the first threshold value, the threshold value at which the target pixel is more likely to be determined as a chromatic color than the second threshold value set in the setting step An image processing method characterized by the above.
コンピュータを、請求項1乃至5のいずれか1項に記載の画像処理装置として機能させるためのプログラム。   A program for causing a computer to function as the image processing apparatus according to any one of claims 1 to 5.
JP2014019478A 2014-02-04 2014-02-04 Image processing apparatus, image processing method, and program Pending JP2015146557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014019478A JP2015146557A (en) 2014-02-04 2014-02-04 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014019478A JP2015146557A (en) 2014-02-04 2014-02-04 Image processing apparatus, image processing method, and program

Publications (1)

Publication Number Publication Date
JP2015146557A true JP2015146557A (en) 2015-08-13

Family

ID=53890599

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014019478A Pending JP2015146557A (en) 2014-02-04 2014-02-04 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP2015146557A (en)

Similar Documents

Publication Publication Date Title
US7227990B2 (en) Color image processing device and color image processing method
US7903872B2 (en) Image-processing apparatus and method, computer program, and storage medium
JP4700721B2 (en) Image processing device
KR101172399B1 (en) Image forming apparatus and image improvement method thereof
US10194050B2 (en) Image processing apparatus, image processing method, and storage medium in which background removal is performed to remove a background included in an input image based on pixel values
EP2670125A1 (en) Image processing device correcting color of border region between object and background in image
JP2007013551A (en) Image processing apparatus and image processing method
US20170094098A1 (en) Image forming apparatus, storage medium, and color conversion method
KR101756277B1 (en) Image forming apparatus and method for processing image thereof
JP6923037B2 (en) Image processing equipment, image processing methods and programs
US11503188B2 (en) Image processing apparatus, control method for controlling image processing apparatus, and storage medium
JP2015015599A (en) Image processing apparatus, image forming apparatus, image processing method, and program and recording medium of the same
JP4771428B2 (en) Image processing apparatus, image processing method, program, and recording medium
US20170366707A1 (en) Image Processing Apparatus and Image Processing Method That Ensure Improved Visibility of Character After Conversion into Monochrome Image Data, and Recording Medium Therefor
EP3331233B1 (en) Image processing device
JP6486082B2 (en) Image processing apparatus, image processing method, and program
JP6015698B2 (en) Image processing apparatus and program executed by image processing apparatus
JP2015146557A (en) Image processing apparatus, image processing method, and program
JP7077925B2 (en) Image processing equipment, image processing methods, and programs
JP5090969B2 (en) Image processing device
JP6350877B2 (en) Image forming apparatus
JP6414710B2 (en) Image processing device
JP2023112514A (en) Image processing apparatus, method for controlling the same, and program
JP2018174419A (en) Image processing apparatus and computer program
JP2017098826A (en) Image processing apparatus, image forming apparatus, image processing method, and program