[go: up one dir, main page]

JP2008092541A - Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium - Google Patents

Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium Download PDF

Info

Publication number
JP2008092541A
JP2008092541A JP2007008293A JP2007008293A JP2008092541A JP 2008092541 A JP2008092541 A JP 2008092541A JP 2007008293 A JP2007008293 A JP 2007008293A JP 2007008293 A JP2007008293 A JP 2007008293A JP 2008092541 A JP2008092541 A JP 2008092541A
Authority
JP
Japan
Prior art keywords
area
image data
density
density difference
region
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
JP2007008293A
Other languages
Japanese (ja)
Inventor
Kazuyuki Hamada
和之 濱田
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 JP2007008293A priority Critical patent/JP2008092541A/en
Publication of JP2008092541A publication Critical patent/JP2008092541A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

【課題】画質の劣化が見込まれない領域に対して選択的にトナー又はインクなどの記録材の消費量を低減するための処理を行いつつ、画像全体の劣化及び画像に含まれる情報の喪失を防止することができる画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及び記録媒体を提供する。
【解決手段】階調再現処理部28は、領域認識処理部23から入力される判定信号に基づいて、文字領域、写真領域、図画領域あるいは下地領域に応じた濃度変換テーブルを選択し、入力されたCMYK信号のうち下地領域又は図画領域に対して低濃度化の濃度変換処理を行う。また、階調再現処理部28は、濃度変換後のCMYK信号に対して所定のディザマトリクスを用いたディザ処理で二値化又は多値化して擬似的に濃淡階調を表す中間調の出力画像データを生成する。
【選択図】図1
The present invention relates to a method for selectively reducing a consumption amount of a recording material such as toner or ink for an area where deterioration of image quality is not expected, and also causing deterioration of the entire image and loss of information included in the image. An image processing method, an image processing apparatus, an image forming apparatus, a computer program, and a recording medium that can be prevented are provided.
A gradation reproduction processing unit selects and inputs a density conversion table corresponding to a character region, a photographic region, a graphic region, or a background region based on a determination signal input from an region recognition processing unit. Density conversion processing for reducing the density is performed on the background area or the drawing area of the CMYK signals. Further, the gradation reproduction processing unit 28 binarizes or multi-values the CMYK signal after the density conversion by a dither process using a predetermined dither matrix, and outputs a halftone image that artificially represents a grayscale. Generate data.
[Selection] Figure 1

Description

本発明は、トナー又はインクなどの記録材の消費量を低減することができる画像処理方法、画像処理装置、該画像処理装置を備える画像形成装置、前記画像処理装置を実現するためのコンピュータプログラム、並びに該コンピュータプログラムを記録した記録媒体に関する。   The present invention relates to an image processing method, an image processing apparatus, an image forming apparatus including the image processing apparatus, and a computer program for realizing the image processing apparatus, which can reduce the consumption of a recording material such as toner or ink. The present invention also relates to a recording medium on which the computer program is recorded.

熱転写方式、電子写真方式、あるいはインクジェット方式など様々な記録方法を用いた複写機又はプリンタなどの画像形成装置は、デジタル画像処理技術の進展に伴って、カラー画像を高画質に再現することが可能となり、フルカラーのデジタル複写機、複合機などが製品化されている。   Image forming devices such as copiers and printers that use various recording methods such as thermal transfer, electrophotography, or ink jet can reproduce color images with high image quality as digital image processing technology advances. As a result, full-color digital copiers and multifunction devices have been commercialized.

フルカラーのデジタル複写機、複合機などは、出力画像を記録紙に印刷する場合、表示可能な階調表現数に限りがあるため、元の画像の階調数を、例えば、二階調又は多階調に変換する二値化処理又は多値化処理を行うことにより、中間調を含む階調画像を擬似的に形成して出力画像を生成している。   Full-color digital copiers, multifunction devices, etc., when printing output images on recording paper, have a limited number of gradation representations that can be displayed. By performing binarization processing or multi-value conversion processing that converts to a tone, a gradation image including a halftone is formed in a pseudo manner to generate an output image.

一方で、近年のインターネットに代表される情報処理の高速化又は情報量の増大化に伴って、デジタル複写機、複合機は、オフィス内の多くのユーザによって共用されるようになり、印刷される記録紙の量も膨大になり、印刷時に使用されるトナー又はインクなどの記録材の消費量を少なくする要望も高まりつつある。   On the other hand, digital copying machines and multifunction peripherals are being shared and printed by many users in the office as information processing represented by the Internet in recent years has increased in speed or the amount of information has increased. The amount of recording paper has become enormous, and there is an increasing demand for reducing the consumption of recording materials such as toner or ink used during printing.

例えば、トナー又はインクなどの記録材の消費量を低減する方法として、記録材の使用量を低減するモードが指定された場合に、入力画像の色空間が変換された中間色空間の明度成分又は輝度成分を通常モードより明るくし、あるいは彩度を下げるように補正処理を行い、色再現性の低下を抑制しつつ簡便な構成で記録材の消費量を低減することができるカラー画像処理装置が提案されている(特許文献1参照)。   For example, as a method of reducing the consumption of a recording material such as toner or ink, when a mode for reducing the usage of the recording material is designated, the brightness component or luminance of the intermediate color space in which the color space of the input image is converted Proposed a color image processing device that can reduce the consumption of recording materials with a simple configuration while making the components brighter than the normal mode or performing correction processing to lower the saturation and suppressing deterioration in color reproducibility (See Patent Document 1).

また、記録材の使用量を低減するモードが指定された場合、入力画像の色空間が変換された中間色空間の画像データに対して、所定位置を白に置き換える白マスク処理を行うことにより、出力面積を減少させて色変換を最小限に抑えつつ、記録材の使用量を低減することができるカラー画像処理装置が提案されている(特許文献2参照)。   In addition, when a mode for reducing the amount of recording material used is specified, output is performed by performing white mask processing that replaces a predetermined position with white for the image data in the intermediate color space in which the color space of the input image is converted. There has been proposed a color image processing apparatus capable of reducing the amount of recording material used while reducing the area to minimize color conversion (see Patent Document 2).

さらに、原稿をモノクロ原稿、カラーの文字又は線画を含み写真画像を含まないビジネスカラー原稿、あるいは写真画像を含むカラー原稿(ビジネスカラー原稿以外のカラー原稿)のいずれであるかを判別し、原稿の種別がビジネスカラー原稿である場合には、カラーエッジ画素でないカラー画素の濃度値を1/n(nは正数)の値に変換し、原稿の種別がカラー原稿である場合には、カラー画素の濃度値を1/m(mは正数であって、m<n)の値に変換することにより、原稿種別がビジネスカラー原稿である場合にカラー画素の濃度値を下げる処理を行ってトナーの消費量を抑制することができるカラー画像形成装置が提案されている(特許文献3参照)。
特開2005−86289号公報 特開2005−86719号公報 特開2005−59444号公報
Further, it is determined whether the manuscript is a monochrome manuscript, a business color manuscript including color characters or line drawings and not including a photographic image, or a color manuscript including a photographic image (a color manuscript other than a business color manuscript). When the type is a business color original, the density value of the color pixel that is not a color edge pixel is converted to a value of 1 / n (n is a positive number), and when the type of the original is a color original, the color pixel Is converted to a value of 1 / m (m is a positive number, and m <n), so that when the document type is a business color document, the density value of the color pixel is reduced and the toner is processed. Has been proposed (see Patent Document 3).
JP 2005-86289 A JP 2005-86719 A JP 2005-59444 A

しかしながら、特許文献1〜3の装置にあっては、トナー又はインクなどの記録材の消費量を低減するために、入力画像の画像全体、あるいはエッジ画素以外のカラー画素に対して所定の処理が施されるため、出力される画像全体、あるいはカラー画素で構成される画像全体の濃度値が一様に低下することになる。しかし、出力される画像には、文字、写真、図画、下地など様々な属性の領域が混在しており、画像の領域によっては、濃度値が一様に低下することにより、却って画質の劣化を招くという問題がある。また、画像の濃度値を低下することで却って画質が劣化するような領域が出力画像に含まれる場合には、上述の装置では記録材の消費量を低減する処理を行うことができず、記録材の消費量をまったく低減できないという問題もある。   However, in the apparatuses disclosed in Patent Documents 1 to 3, in order to reduce consumption of a recording material such as toner or ink, predetermined processing is performed on the entire input image or color pixels other than the edge pixels. Therefore, the density value of the entire output image or the entire image composed of color pixels is uniformly reduced. However, the output image contains various attribute areas such as characters, photographs, drawings, and backgrounds, and depending on the image area, the density value decreases uniformly, which causes the image quality to deteriorate. There is a problem of inviting. In addition, when the output image includes an area in which the image quality is deteriorated by decreasing the density value of the image, the above-described apparatus cannot perform the process of reducing the recording material consumption, and the recording is performed. There is also a problem that the consumption of the material cannot be reduced at all.

本発明は、斯かる事情に鑑みてなされたものであり、入力画像データに基づいて、1又は複数の領域を抽出し、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域の各画素の濃度値を低濃度値に変換するとともに、階調再現処理を施すことにより、画質の劣化が見込まれない領域に対して選択的にトナー又はインクなどの記録材の消費量を低減するための処理を行いつつ、画像全体の劣化及び画像に含まれる情報の喪失を防止することができる画像処理方法、画像処理装置、該画像処理装置を備える画像形成装置、前記画像処理装置を実現するためのコンピュータプログラム、及び該コンピュータプログラムを記録した記録媒体を提供することを目的とする。   The present invention has been made in view of such circumstances. When one or a plurality of regions are extracted based on input image data, and the density difference of the extracted regions is smaller than a predetermined threshold value, By converting the density value of each pixel to a low density value and performing gradation reproduction processing, the consumption of a recording material such as toner or ink is selectively reduced in an area where deterioration of image quality is not expected. An image processing method, an image processing apparatus, an image forming apparatus including the image processing apparatus, and the image processing apparatus capable of preventing the deterioration of the entire image and the loss of information included in the image while performing the processing An object of the present invention is to provide a computer program and a recording medium on which the computer program is recorded.

また、本発明の他の目的は、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域に対して行列数の大きいディザ行列を用いてディザ処理を行い、抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域に対して行列数の小さいディザ行列を用いてディザ処理を行って階調再現処理を施すことにより、画像の中に様々な属性の領域が混在している場合であっても、記録材の消費量を低減しつつ忠実な画質の再現を行うことができる画像処理方法、画像処理装置、該画像処理装置を備える画像形成装置を提供することにある。   Another object of the present invention is to perform dither processing using a dither matrix having a large number of matrices on the extracted area when the density difference of the extracted area is smaller than a predetermined threshold value. When the difference is larger than a predetermined threshold, by performing dither processing using a dither matrix with a small number of matrices for the region and performing gradation reproduction processing, regions of various attributes are mixed in the image. The present invention provides an image processing method, an image processing apparatus, and an image forming apparatus including the image processing apparatus that can reproduce faithful image quality while reducing the consumption of recording material.

また、本発明の他の目的は、入力画像データに基づいて、1又は複数の領域を抽出し、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域の画素の一部を間引き処理するとともに、階調再現処理を施すことにより、画質の劣化が見込まれない領域に対して選択的にトナー又はインクなどの記録材の消費量を低減するための処理を行いつつ、画像全体の劣化及び画像に含まれる情報の喪失を防止することができる画像処理方法、画像処理装置、該画像処理装置を備える画像形成装置、前記画像処理装置を実現するためのコンピュータプログラム、及び該コンピュータプログラムを記録した記録媒体を提供することにある。   Another object of the present invention is to extract one or a plurality of regions based on input image data, and when the density difference of the extracted regions is smaller than a predetermined threshold, a part of the pixels in the region is thinned out. In addition to performing the gradation reproduction process, the processing for reducing the consumption of the recording material such as toner or ink is selectively performed on the area where the deterioration of the image quality is not expected. Image processing method capable of preventing deterioration and loss of information included in image, image processing apparatus, image forming apparatus including the image processing apparatus, computer program for realizing the image processing apparatus, and computer program It is to provide a recorded recording medium.

また、本発明の他の目的は、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域に対して低階調数で色補正を行い、抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域に対して高階調数で色補正を行って階調再現処理を施すことにより、画像の中に様々な属性の領域が混在している場合であっても、記録材の消費量を低減しつつ忠実な画質の再現を行うことができる画像処理方法、画像処理装置、該画像処理装置を備える画像形成装置を提供することにある。   Another object of the present invention is to perform color correction with a low number of gradations on the extracted area when the density difference of the extracted area is smaller than a predetermined threshold value. If the area is larger than the threshold, color correction is performed on the area with a high number of gradations and gradation reproduction processing is performed, so that even if areas with various attributes are mixed in the image, the recording material The present invention provides an image processing method, an image processing apparatus, and an image forming apparatus including the image processing apparatus that can reproduce faithful image quality while reducing the consumption amount of the image processing apparatus.

また、本発明の他の目的は、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域を下地領域又は図画領域として識別し、抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域を文字領域又は写真領域として識別することにより、階調性を重視すべき領域と解像度を重視すべき領域とを区別して階調再現処理を行うことができる画像処理方法、画像処理装置、該画像処理装置を備える画像形成装置を提供することにある。   Another object of the present invention is to identify the area as a background area or a drawing area when the density difference of the extracted area is smaller than a predetermined threshold, and the density difference of the extracted area is larger than the predetermined threshold. In this case, by identifying the region as a character region or a photographic region, an image processing method and an image processing capable of performing gradation reproduction processing by distinguishing between a region where gradation is important and a region where resolution is important And an image forming apparatus including the image processing apparatus.

また、本発明の他の目的は、トナー又はインクの消費量を低減するための指示を受け付けた場合、所定の階調再現処理を行うように制御する制御手段を備えることにより、ユーザの好みに応じて記録材の消費量を低減することができるとともに、忠実な画質を再現することができる画像処理装置、該画像処理装置を備える画像形成装置を提供することにある。   Another object of the present invention is to provide a control means for controlling to perform a predetermined gradation reproduction process when an instruction for reducing the consumption amount of toner or ink is received. Accordingly, an object of the present invention is to provide an image processing apparatus capable of reducing the consumption of recording material and reproducing faithful image quality, and an image forming apparatus including the image processing apparatus.

本発明に係る画像処理方法は、入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理方法において、入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出し、抽出された領域の濃度差分を算出し、算出された濃度差分が所定の閾値より小さい場合、前記領域の各画素の濃度値を低濃度値に変換し、変換して得られた画像データを含む入力画像データに階調再現処理を施すことを特徴とする。   An image processing method according to the present invention is an image processing method for generating pseudo-halftone output image data by performing gradation reproduction processing on input image data, and is based on the pixel value of each pixel in the input image data. Alternatively, a plurality of areas are extracted, the density difference of the extracted areas is calculated, and when the calculated density difference is smaller than a predetermined threshold, the density value of each pixel in the area is converted to a low density value and converted. The tone reproduction process is performed on the input image data including the image data obtained in this way.

本発明に係る画像処理方法は、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域に対して行列数の大きいディザ行列を用いてディザ処理を行い、抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域に対して行列数の小さいディザ行列を用いてディザ処理を行って階調再現処理を施すことを特徴とする。   In the image processing method according to the present invention, when the density difference of the extracted region is smaller than a predetermined threshold, the dither processing is performed on the region using a dither matrix having a large number of matrices, and the density difference of the extracted region is Is larger than a predetermined threshold value, the tone reproduction processing is performed by performing dither processing on the region using a dither matrix having a small number of matrices.

本発明に係る画像処理方法は、入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理方法において、入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出し、抽出された領域の濃度差分を算出し、算出された濃度差分が所定の閾値より小さい場合、前記領域の画像データを含む入力画像データに対して階調再現処理を施す前又は後に、前記領域の画素の一部を間引き処理することを特徴とする。   An image processing method according to the present invention is an image processing method for generating pseudo-halftone output image data by performing gradation reproduction processing on input image data, and is based on the pixel value of each pixel in the input image data. Alternatively, a plurality of areas are extracted, the density difference of the extracted areas is calculated, and when the calculated density difference is smaller than a predetermined threshold, gradation reproduction processing is performed on the input image data including the image data of the area. Before or after application, a part of the pixels in the area is thinned out.

本発明に係る画像処理方法は、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域に対して低階調数で色補正を行い、抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域に対して高階調数で色補正を行って階調再現処理を施すことを特徴とする。   In the image processing method according to the present invention, when the density difference of the extracted area is smaller than the predetermined threshold, the area is subjected to color correction with a low number of gradations, and the density difference of the extracted area is set to the predetermined threshold. If larger, the tone correction process is performed by performing color correction on the area with a high number of tones.

本発明に係る画像処理方法は、入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理方法において、入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出し、抽出された領域の濃度差分を算出し、算出された濃度差分が所定の閾値より小さい場合、前記領域に対して低階調数で色補正を行い、色補正して得られた画像データを含む入力画像データに階調再現処理を施すことを特徴とする。   An image processing method according to the present invention is an image processing method for generating pseudo-halftone output image data by performing gradation reproduction processing on input image data, and is based on the pixel value of each pixel in the input image data. Alternatively, a plurality of areas are extracted, the density difference of the extracted areas is calculated, and if the calculated density difference is smaller than a predetermined threshold, color correction is performed by performing color correction with a low number of gradations on the area. The tone reproduction process is performed on the input image data including the image data obtained in this way.

本発明に係る画像処理方法は、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域を下地領域又は図画領域として識別し、抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域を文字領域又は写真領域として識別することを特徴とする。   In the image processing method according to the present invention, when the density difference of the extracted area is smaller than a predetermined threshold, the area is identified as a background area or a drawing area, and the density difference of the extracted area is larger than the predetermined threshold The region is identified as a character region or a photo region.

本発明に係る画像処理装置は、入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理装置において、入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出する抽出手段と、該抽出手段で抽出された領域の濃度差分を算出する算出手段と、該算出手段で算出された濃度差分が所定の閾値より小さい場合、前記領域の各画素の濃度値を低濃度値に変換する変換手段と、該変換手段で変換して得られた画像データを含む入力画像データに階調再現処理を施す手段とを備えることを特徴とする。   An image processing apparatus according to the present invention is an image processing apparatus that performs gradation reproduction processing on input image data to generate pseudo-halftone output image data, based on the pixel value of each pixel in the input image data. Or an extracting means for extracting a plurality of areas, a calculating means for calculating a density difference of the areas extracted by the extracting means, and a density difference calculated by the calculating means is smaller than a predetermined threshold value, It comprises conversion means for converting the density value of a pixel to a low density value, and means for performing gradation reproduction processing on input image data including image data obtained by conversion by the conversion means.

本発明に係る画像処理装置は、前記階調再現処理を施す手段は、前記抽出手段で抽出された領域の濃度差分が所定の閾値より小さい場合、行列数の大きいディザ行列に基づいて前記領域に対して施されるディザ処理と、前記抽出手段で抽出された領域の濃度差分が所定の閾値より大きい場合、行列数の小さいディザ行列に基づいて前記領域に対して施されるディザ処理とを有することを特徴とする。   In the image processing apparatus according to the present invention, the means for performing the gradation reproduction process may be configured so that the density difference of the area extracted by the extraction means is smaller than a predetermined threshold, and the area is based on a dither matrix having a large number of matrices. And a dithering process performed on the area based on a dither matrix having a small number of matrices when the density difference of the area extracted by the extracting unit is larger than a predetermined threshold value. It is characterized by that.

本発明に係る画像処理装置は、入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理装置において、入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出する抽出手段と、該抽出手段で抽出された領域の濃度差分を算出する算出手段と、該算出手段で算出された濃度差分が所定の閾値より小さい場合、前記領域の画像データを含む入力画像データに対して階調再現処理を施す前又は後に、前記領域の画素の一部を間引き処理する手段とを備えることを特徴とする。   An image processing apparatus according to the present invention is an image processing apparatus that performs gradation reproduction processing on input image data to generate pseudo-halftone output image data, based on the pixel value of each pixel in the input image data. Alternatively, an extraction unit that extracts a plurality of regions, a calculation unit that calculates a density difference between the regions extracted by the extraction unit, and an image of the region when the density difference calculated by the calculation unit is smaller than a predetermined threshold value Means for thinning out part of the pixels in the region before or after the gradation reproduction process is performed on the input image data including the data.

本発明に係る画像処理装置は、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域に対して低階調数で色補正を行い、抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域に対して高階調数で色補正を行う色補正手段を備え、該色補正手段で色補正された画像データを含む入力画像データに階調再現処理を施すように構成してあることを特徴とする。   When the density difference of the extracted area is smaller than a predetermined threshold, the image processing apparatus according to the present invention performs color correction with a low number of gradations on the area, and the density difference of the extracted area is a predetermined threshold. If larger, color correction means for performing color correction on the area with a high number of gradations is provided, and gradation reproduction processing is performed on input image data including image data color-corrected by the color correction means. It is characterized by being.

本発明に係る画像処理装置は、入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理装置において、入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出する抽出手段と、該抽出手段で抽出された領域の濃度差分を算出する算出手段と、該算出手段で算出された濃度差分が所定の閾値より小さい場合、前記領域に対して低階調数で色補正を行う色補正手段と、該色補正手段で色補正された画像データを含む入力画像データに階調再現処理を施す手段とを備えることを特徴とする。   An image processing apparatus according to the present invention is an image processing apparatus that performs gradation reproduction processing on input image data to generate pseudo-halftone output image data, based on the pixel value of each pixel in the input image data. Alternatively, an extraction unit that extracts a plurality of regions, a calculation unit that calculates a density difference between the regions extracted by the extraction unit, and a density difference calculated by the calculation unit is smaller than a predetermined threshold, And color correction means for performing color correction with a low number of gradations, and means for performing gradation reproduction processing on input image data including image data color-corrected by the color correction means.

本発明に係る画像処理装置は、前記抽出手段で抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域を下地領域又は図画領域として識別する手段と、前記抽出手段で抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域を文字領域又は写真領域として識別する手段とを備えることを特徴とする。   When the density difference of the area extracted by the extraction means is smaller than a predetermined threshold, the image processing apparatus according to the present invention identifies the area as a background area or a drawing area, and the area extracted by the extraction means And a means for identifying the region as a character region or a photo region when the density difference is larger than a predetermined threshold value.

本発明に係る画像処理装置は、トナー又はインクの消費量を低減するための指示を受け付ける受付手段と、該受付手段で指示を受け付けた場合、前記抽出手段、算出手段及び変換手段での処理並びに前記間引き処理を行うように制御する制御手段とを備えることを特徴とする。   An image processing apparatus according to the present invention includes an accepting unit that accepts an instruction to reduce toner or ink consumption, and when the accepting unit accepts an instruction, the extraction unit, the calculating unit, and the conversion unit Control means for controlling to perform the thinning-out process.

本発明に係る画像形成装置は、前述の発明のいずれか1つに係る画像処理装置と、該画像処理装置で生成された出力画像データに基づいて出力画像を形成する画像形成手段とを備えることを特徴とする。   An image forming apparatus according to the present invention includes the image processing apparatus according to any one of the above-described inventions, and an image forming unit that forms an output image based on output image data generated by the image processing apparatus. It is characterized by.

本発明に係るコンピュータプログラムは、コンピュータに、入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成させるためのコンピュータプログラムにおいて、コンピュータを、入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出する手段と、コンピュータを、抽出された領域の濃度差分を算出する手段と、コンピュータを、算出された濃度差分が所定の閾値より小さい場合、前記領域の各画素の濃度値を低濃度値に変換する手段と、コンピュータを、変換して得られた画像データを含む入力画像データに階調再現処理を施す手段として機能させることを特徴とする。   A computer program according to the present invention is a computer program for causing a computer to perform tone reproduction processing on input image data to generate pseudo-halftone output image data. If the calculated density difference is smaller than a predetermined threshold, the means for extracting one or more areas based on the value, the computer, the means for calculating the density difference of the extracted area, and the computer The means for converting the density value of each pixel into a low density value and the computer function as means for performing gradation reproduction processing on the input image data including the image data obtained by the conversion.

本発明に係るコンピュータプログラムは、コンピュータに、入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成させるためのコンピュータプログラムにおいて、コンピュータを、入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出する手段と、コンピュータを、抽出された領域の濃度差分を算出する手段と、コンピュータを、算出された濃度差分が所定の閾値より小さい場合、前記領域の画像データを含む入力画像データに対して階調再現処理を施す前又は後に、前記領域の画素の一部に間引き処理する手段として機能させることを特徴とする。   A computer program according to the present invention is a computer program for causing a computer to perform tone reproduction processing on input image data to generate pseudo-halftone output image data. If the calculated density difference is smaller than a predetermined threshold, the means for extracting one or more areas based on the value, the computer, the means for calculating the density difference of the extracted area, and the computer Before or after the gradation reproduction process is performed on the input image data including the image data, a part of the pixels in the region is made to function as a thinning process unit.

本発明に係るコンピュータでの読み取りが可能な記録媒体は、前述の発明のいずれかに係るコンピュータプログラムを記録してあることを特徴とする。   A computer-readable recording medium according to the present invention records a computer program according to any of the above-described inventions.

本発明にあっては、入力画像データ中の各画素の画素値に基づいて、画像の属性を識別するための1又は複数の領域を抽出する。例えば、入力画像データを所定の二値化閾値で二値化して得られた二値化画像でラベリング処理を行うことにより連結領域を抽出する。抽出された連結領域に外接する矩形領域を抽出する。抽出された領域(矩形領域)の形状又は大きさに基づいて文字領域か非文字領域(文字以外の領域)かを識別する。この場合、文字領域は比較的細長い領域であるということを利用することができる。非文字領域であると識別された領域の画素の濃度差分を算出する。この場合、領域の各画素の濃度値のヒストグラムを作成し、最大濃度値と最小濃度値との差により濃度差分を算出する。   In the present invention, based on the pixel value of each pixel in the input image data, one or a plurality of regions for identifying image attributes are extracted. For example, a connected region is extracted by performing a labeling process on a binarized image obtained by binarizing input image data with a predetermined binarization threshold. A rectangular area circumscribing the extracted connected area is extracted. Based on the shape or size of the extracted area (rectangular area), a character area or a non-character area (non-character area) is identified. In this case, it can be used that the character area is a relatively elongated area. A density difference between pixels in an area identified as a non-character area is calculated. In this case, a histogram of the density value of each pixel in the region is created, and the density difference is calculated from the difference between the maximum density value and the minimum density value.

算出された濃度差分が濃度閾値より小さいか否かを判定する。例えば、略均一な濃度で、かつ低濃度領域は、下地領域であると判定することができ、前記低濃度領域よりも高濃度であって、かつ略均一な濃度の領域は、図画領域(例えば、図形、絵などの画像領域であって写真画像でない領域)であると判定することができる。なお、非文字領域であって、下地領域あるいは図画領域でない領域は、濃度差分が所定の濃度閾値より大きく、濃度変化が広い範囲に亘って存在する領域(例えば、写真領域)である。   It is determined whether or not the calculated density difference is smaller than a density threshold value. For example, a substantially uniform density and low density area can be determined as a base area, and an area having a higher density and a substantially uniform density than the low density area is a drawing area (for example, It is possible to determine that the image area is an image area such as a figure or a picture and is not a photographic image. Note that a non-character area that is not a background area or a drawing area is an area (for example, a photographic area) where the density difference is larger than a predetermined density threshold and the density change exists over a wide range.

抽出された領域の濃度差分が濃度閾値より小さい領域の各画素の濃度値を低濃度値に変換し、変換して得られた画像データを含む入力画像データに対して階調再現処理を施す。これにより、濃度差分が濃度閾値より小さい領域(例えば、下地領域、図画領域)の画像を形成する際に使用されるトナー又はインクなどの記録材の消費量を低減する。また、濃度差分が濃度閾値より大きい領域(例えば、文字領域、写真領域)に対しては低濃度値に変換しないため画質の劣化あるいは画像に含まれる情報を喪失することがない。   The density value of each pixel in the area where the density difference of the extracted area is smaller than the density threshold value is converted to a low density value, and tone reproduction processing is performed on the input image data including the image data obtained by the conversion. This reduces the consumption of a recording material such as toner or ink used when forming an image in an area where the density difference is smaller than the density threshold (for example, the background area or the graphic area). In addition, since an area having a density difference larger than the density threshold (for example, a character area or a photographic area) is not converted into a low density value, image quality deterioration or information contained in the image is not lost.

また、本発明にあっては、抽出された領域の濃度差分が濃度閾値より小さい場合、前記領域に対して行列数の大きいディザ行列を用いてディザ処理を行い、抽出された領域の濃度差分が濃度閾値より大きい場合、前記領域に対して行列数の小さいディザ行列を用いてディザ処理を行って階調再現処理を施す。濃度差分が濃度閾値より小さい領域は、例えば、下地領域又は図画領域であり、領域内での濃度変化は少ないため、行列数の大きい(例えば、8×8)ディザ行列を用いてディザ処理を行うことで低濃度領域の階調性を重視する処理を行い、装置の周囲温度あるいは経時変化などに起因するドット再現性の変動あるいは色の再現性の低下などを抑制する。濃度差分が濃度閾値より大きい領域(例えば、文字領域又は写真領域)が写真領域であれば、行列数の小さい(例えば、4×4)ディザ行列を用いてディザ処理を施して階調性を重視しつつ解像度を高める処理を行う。濃度差分が濃度閾値より大きい領域が文字領域であれば、さらに行列数の小さい(例えば、2×2、3×3)ディザ行列を用いてディザ処理を施して解像度を重視する処理を行う。これにより、画像の中に様々な属性の領域が混在している場合であっても、記録材の消費量を低減しつつ忠実な画質の再現を行うことができる。   In the present invention, when the density difference of the extracted area is smaller than the density threshold, dither processing is performed on the area using a dither matrix having a large number of matrices, and the density difference of the extracted area is determined. If it is larger than the density threshold value, the tone reproduction process is performed by performing a dither process on the area using a dither matrix having a small number of matrices. An area where the density difference is smaller than the density threshold is, for example, a background area or a graphic area, and since the density change in the area is small, dither processing is performed using a dither matrix having a large number of matrices (for example, 8 × 8). In this way, processing that places importance on gradation in the low density region is performed, and fluctuations in dot reproducibility or deterioration in color reproducibility due to the ambient temperature of the apparatus or changes over time are suppressed. If an area where the density difference is larger than the density threshold (for example, a character area or a photographic area) is a photographic area, dither processing is performed using a dither matrix with a small number of matrices (for example, 4 × 4) to emphasize gradation. However, the processing for increasing the resolution is performed. If the area where the density difference is greater than the density threshold is a character area, dither processing is performed using a dither matrix having a smaller number of matrices (for example, 2 × 2, 3 × 3), and processing that places importance on resolution is performed. As a result, even when areas with various attributes are mixed in the image, it is possible to reproduce faithful image quality while reducing the consumption of the recording material.

また、本発明にあっては、入力画像データ中の各画素の画素値に基づいて、画像の属性を識別するための1又は複数の領域を抽出する。例えば、入力画像データを所定の二値化閾値で二値化して得られた二値化画像でラベリング処理を行うことにより連結領域を抽出する。抽出された連結領域に外接する矩形領域を抽出する。抽出された領域(矩形領域)の形状又は大きさに基づいて文字領域か非文字領域(文字以外の領域)かを識別する。この場合、文字領域は比較的細長い領域であるということを利用することができる。非文字領域であると識別された領域の画素の濃度差分を算出する。この場合、領域の各画素の濃度値のヒストグラムを作成し、最大濃度値と最小濃度値との差により濃度差分を算出する。   In the present invention, one or more regions for identifying image attributes are extracted based on the pixel value of each pixel in the input image data. For example, a connected region is extracted by performing a labeling process on a binarized image obtained by binarizing input image data with a predetermined binarization threshold. A rectangular area circumscribing the extracted connected area is extracted. Based on the shape or size of the extracted area (rectangular area), a character area or a non-character area (non-character area) is identified. In this case, it can be used that the character area is a relatively elongated area. A density difference between pixels in an area identified as a non-character area is calculated. In this case, a histogram of the density value of each pixel in the region is created, and the density difference is calculated from the difference between the maximum density value and the minimum density value.

算出された濃度差分が濃度閾値より小さいか否かを判定する。例えば、略均一な濃度で、かつ低濃度領域は、下地領域であると判定することができ、前記低濃度領域よりも高濃度であって、かつ略均一な濃度の領域は、図画領域(例えば、図形、絵などの画像領域であって写真画像でない領域)であると判定することができる。なお、非文字領域であって、下地領域あるいは図画領域でない領域は、濃度差分が所定の濃度閾値より大きく、濃度変化が広い範囲に亘って存在する領域(例えば、写真領域)である。   It is determined whether or not the calculated density difference is smaller than a density threshold value. For example, a substantially uniform density and low density area can be determined as a base area, and an area having a higher density and a substantially uniform density than the low density area is a drawing area (for example, It is possible to determine that the image area is an image area such as a figure or a picture and is not a photographic image. Note that a non-character area that is not a background area or a drawing area is an area (for example, a photographic area) where the density difference is larger than a predetermined density threshold and the density change exists over a wide range.

抽出された領域の濃度差分が濃度閾値より小さい領域の画素の一部を間引き処理する。例えば、1又は複数の画素おきに、連続して隣接する数画素(例えば、4画素)の画素値を「0」にする。これにより、1又は複数の画素の画素値はそのままにして、連続して隣接する4画素の画素値は「0」とする。また、間引き処理は、階調再現処理(例えば、誤差拡散処理)を行う前又は後に行う。これにより、濃度差分が濃度閾値より小さい領域(例えば、下地領域、図画領域)を低濃度化して、前記領域の画像を形成する際に使用されるトナー又はインクなどの記録材の消費量を低減する。また、濃度差分が濃度閾値より大きい領域(例えば、文字領域、写真領域)に対しては間引き処理による低濃度化を行わないため画質の劣化あるいは画像に含まれる情報を喪失することがない。   A part of the pixels in the area where the density difference of the extracted area is smaller than the density threshold is thinned out. For example, the pixel values of several adjacent pixels (for example, four pixels) are set to “0” every other pixel or plural pixels. Thereby, the pixel values of one or a plurality of pixels are left as they are, and the pixel values of four adjacent pixels are set to “0”. Further, the thinning process is performed before or after the gradation reproduction process (for example, error diffusion process). This lowers the density of areas where the density difference is smaller than the density threshold (for example, the background area and the graphic area), thereby reducing the consumption of recording material such as toner or ink used when forming an image in the area. To do. Further, since the density reduction by the thinning process is not performed on the area where the density difference is larger than the density threshold (for example, the character area or the photographic area), the image quality is not deteriorated or the information included in the image is not lost.

また、本発明にあっては、抽出された領域の濃度差分が濃度閾値より小さい場合、前記領域に対して低階調数で色補正を行い、抽出された領域の濃度差分が濃度閾値より大きい場合、前記領域に対して高階調数で色補正を行って階調再現処理を施す。濃度差分が濃度閾値より小さい領域は、例えば、下地領域又は図画領域であり、領域内での濃度変化は少ないため、低階調数で色補正を行う。例えば、入力信号であるRGBの各階調数が256階調である場合、CMYの各階調数が64階調(又は128階調)となるような色数を低減した色補正テーブルを用いて色補正する。これにより、トナー又はインクなどの記録剤の使用量を低減する。また、濃度差分が濃度閾値より大きい領域(例えば、文字領域又は写真領域)が写真領域であれば、高階調数で色補正を行う。例えば、RGBの各階調数が256階調である場合、CMYの各階調数が256階調の色補正テーブルを用いて色補正する。これにより、画像の中に様々な属性の領域が混在している場合であっても、文字領域又は写真領域の画質を損なうことなく記録材の消費量を低減することができる。   In the present invention, when the density difference of the extracted area is smaller than the density threshold, the area is subjected to color correction with a low number of gradations, and the density difference of the extracted area is larger than the density threshold. In this case, tone reproduction processing is performed by performing color correction on the area with a high number of gradations. An area where the density difference is smaller than the density threshold is, for example, a background area or a graphic area, and since the density change in the area is small, color correction is performed with a low number of gradations. For example, when the number of gradations of RGB as the input signal is 256 gradations, the color correction table is used to reduce the number of colors so that the number of gradations of CMY becomes 64 gradations (or 128 gradations). to correct. This reduces the amount of recording agent used such as toner or ink. Further, if a region (for example, a character region or a photographic region) where the density difference is larger than the density threshold is a photographic region, color correction is performed with a high number of gradations. For example, when the number of gradations of RGB is 256 gradations, color correction is performed using a color correction table in which the number of gradations of CMY is 256 gradations. As a result, even when areas with various attributes are mixed in the image, the consumption of the recording material can be reduced without impairing the image quality of the character area or the photographic area.

また、本発明にあっては、濃度差分が濃度閾値より小さい領域を下地領域又は図画領域として識別し、濃度差分が濃度閾値より大きい領域を文字領域又は写真領域として識別する。これにより、階調性を重視すべき領域と解像度を重視すべき領域とを区別して階調再現処理を行う。   In the present invention, an area where the density difference is smaller than the density threshold is identified as a background area or a graphic area, and an area where the density difference is greater than the density threshold is identified as a character area or a photograph area. As a result, the gradation reproduction process is performed by distinguishing between the area where the gradation is important and the area where the resolution is important.

また、本発明にあっては、トナー又はインクの消費量を低減するための指示を受け付けた場合、前述の抽出処理、算出処理及び変換処理並びに間引き処理を行う。これにより、ユーザの好みに応じて記録材の消費量を低減することができるとともに、忠実な画質を再現することができる。   In the present invention, when an instruction for reducing the consumption amount of toner or ink is received, the above-described extraction process, calculation process, conversion process, and thinning process are performed. Thereby, the consumption of the recording material can be reduced according to the user's preference, and faithful image quality can be reproduced.

本発明にあっては、入力画像データに基づいて、1又は複数の領域を抽出し、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域の各画素の濃度値を低濃度値に変換するとともに、階調再現処理を施すことにより、画質の劣化が見込まれない領域に対して選択的にトナー又はインクなどの記録材の消費量を低減するための処理を行いつつ、画像全体の劣化及び画像に含まれる情報の喪失を防止することができる。   In the present invention, when one or a plurality of areas are extracted based on the input image data, and the density difference of the extracted areas is smaller than a predetermined threshold, the density value of each pixel in the area is set to a low density value. The entire image is processed while selectively reducing the consumption of the recording material such as toner or ink to an area where deterioration in image quality is not expected by performing gradation reproduction processing. Deterioration of the image and loss of information included in the image can be prevented.

また、本発明にあっては、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域に対して行列数の大きいディザ行列を用いてディザ処理を行い、抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域に対して行列数の小さいディザ行列を用いてディザ処理を行って階調再現処理を施すことにより、画像の中に様々な属性の領域が混在している場合であっても、記録材の消費量を低減しつつ忠実な画質の再現を行うことができる。   In the present invention, when the density difference of the extracted area is smaller than a predetermined threshold value, dither processing is performed on the area using a dither matrix having a large number of matrices, and the density difference of the extracted area is Is larger than a predetermined threshold value, dither processing is performed on the region using a dither matrix having a small number of matrices, and gradation reproduction processing is performed, so that regions of various attributes are mixed in the image. Even in this case, faithful image quality reproduction can be performed while reducing the consumption of the recording material.

また、本発明にあっては、入力画像データに基づいて、1又は複数の領域を抽出し、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域の画素の一部を間引き処理するとともに、階調再現処理を施すことにより、画質の劣化が見込まれない領域に対して選択的にトナー又はインクなどの記録材の消費量を低減するための処理を行いつつ、画像全体の劣化及び画像に含まれる情報の喪失を防止することができる。   In the present invention, one or more regions are extracted based on the input image data, and when the density difference of the extracted regions is smaller than a predetermined threshold, a part of the pixels in the region is thinned out In addition, by performing gradation reproduction processing, degradation of the entire image is performed while performing processing for selectively reducing the consumption of recording material such as toner or ink for areas where degradation of image quality is not expected. Further, loss of information included in the image can be prevented.

また、本発明にあっては、抽出された領域の濃度差分が濃度閾値より小さい場合、前記領域に対して低階調数で色補正を行い、抽出された領域の濃度差分が濃度閾値より大きい場合、前記領域に対して高階調数で色補正を行って階調再現処理を施すことにより、画像の中に様々な属性の領域が混在している場合であっても、文字領域又は写真領域の画質を損なうことなく記録材の消費量を低減することができる。   In the present invention, when the density difference of the extracted area is smaller than the density threshold, the area is subjected to color correction with a low number of gradations, and the density difference of the extracted area is larger than the density threshold. In this case, by performing color reproduction with a high gradation number on the area and performing gradation reproduction processing, even if areas with various attributes are mixed in the image, the character area or the photographic area The consumption of the recording material can be reduced without impairing the image quality.

また、本発明にあっては、抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域を下地領域又は図画領域として識別し、抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域を文字領域又は写真領域として識別することにより、階調性を重視すべき領域と解像度を重視すべき領域とを区別して階調再現処理を行うことができる。   In the present invention, when the density difference of the extracted area is smaller than the predetermined threshold, the area is identified as a background area or a drawing area, and the density difference of the extracted area is larger than the predetermined threshold. By identifying the area as a character area or a photographic area, the gradation reproduction process can be performed by distinguishing the area where the gradation is important and the area where the resolution is important.

また、本発明にあっては、トナー又はインクの消費量を低減するための指示を受け付けた場合、前述の抽出処理、算出処理及び変換処理並びに間引き処理を行う。これにより、ユーザの好みに応じて記録材の消費量を低減することができるとともに、忠実な画質を再現することができる。   In the present invention, when an instruction for reducing the consumption amount of toner or ink is received, the above-described extraction process, calculation process, conversion process, and thinning process are performed. Thereby, the consumption of the recording material can be reduced according to the user's preference, and faithful image quality can be reproduced.

実施の形態1
以下、本発明を実施の形態を示す図面に基づいて説明する。図1は本発明に係る画像処理装置を備える画像形成装置100の構成を示すブロック図である。画像形成装置100(例えば、デジタルカラー複写機や複合機能、プリンタ機能、ファックスや電子メール配信機能を備えた複合機)は、カラー画像入力装置1、カラー画像処理装置2(画像処理装置)、画像形成手段としてのカラー画像出力装置3、各種操作(例えば、トナーの使用量を低減するトナーセーブモードの選択操作)を行うための操作パネル4などを備える。カラー画像入力装置1で原稿を読み取ることにより得られたRGB(R:赤、G:緑、B:青)のアナログ信号の画像データは、カラー画像処理装置2へ出力され、カラー画像処理装置2で所定の処理が行われ、CMYK(C:シアン、M:マゼンタ、Y:イエロー、K:黒)のデジタルカラー信号としてカラー画像出力装置3へ出力される。
Embodiment 1
Hereinafter, the present invention will be described with reference to the drawings illustrating embodiments. FIG. 1 is a block diagram illustrating a configuration of an image forming apparatus 100 including an image processing apparatus according to the present invention. The image forming apparatus 100 (for example, a digital color copier, a multi-function machine, a multi-function machine having a printer function, a fax function or an e-mail delivery function) includes a color image input device 1, a color image processing device 2 (image processing device), an image A color image output device 3 as a forming unit, an operation panel 4 for performing various operations (for example, a toner save mode selection operation for reducing the amount of toner used), and the like. Image data of RGB (R: red, G: green, B: blue) analog signals obtained by reading a document with the color image input device 1 is output to the color image processing device 2, and the color image processing device 2. Then, a predetermined process is performed and output to the color image output device 3 as a digital color signal of CMYK (C: cyan, M: magenta, Y: yellow, K: black).

カラー画像入力装置1は、例えば、CCD(Charged Coupled Device)を備えたスキャナであり、原稿画像からの反射光像をRGBのアナログ信号として読み取り、読み取ったRGB信号をカラー画像処理装置2へ出力する。また、カラー画像出力装置3は、原稿画像の画像データを記録紙上に出力する電子写真方式やインクジェット方式などを用いた画像形成手段である。また、カラー画像出力装置3は、ディスプレイ等の表示装置であってもよい。   The color image input device 1 is, for example, a scanner including a CCD (Charged Coupled Device), reads a reflected light image from a document image as an RGB analog signal, and outputs the read RGB signal to the color image processing device 2. . The color image output device 3 is an image forming unit using an electrophotographic system or an inkjet system that outputs image data of a document image onto a recording sheet. The color image output device 3 may be a display device such as a display.

カラー画像処理装置2は、CPU、ASIC(Application Specific Integrated Circuit)などにより構成される。   The color image processing apparatus 2 includes a CPU, an application specific integrated circuit (ASIC), and the like.

A/D変換部20は、カラー画像入力装置1から入力されたRGB信号を、例えば、10ビットのデジタル信号に変換し、変換後のRGB信号をシェーディング補正部21へ出力する。   The A / D conversion unit 20 converts the RGB signal input from the color image input device 1 into, for example, a 10-bit digital signal, and outputs the converted RGB signal to the shading correction unit 21.

シェーディング補正部21は、入力されたRGB信号に対して、カラー画像入力装置1の照明系、結像系、撮像系などで生じた各種の歪みを取り除く補正処理を行う。また、シェーディング補正部21は、カラーバランスの調整を行い、調整後のRGB信号を入力階調補正部22へ出力する。   The shading correction unit 21 performs correction processing for removing various distortions generated in the illumination system, imaging system, imaging system, and the like of the color image input apparatus 1 on the input RGB signal. The shading correction unit 21 adjusts the color balance and outputs the adjusted RGB signal to the input tone correction unit 22.

入力階調補正部22は、シェーディング補正部21から入力されたRGB信号(RGBの反射率信号)に対して、カラーバランスを整える処理を行うとともに、下地濃度の除去又はコントラストなど画質調整処理を施し、処理後のRGB信号を領域認識処理部23及び領域分離処理部24へ出力する。   The input tone correction unit 22 performs a process for adjusting the color balance on the RGB signal (RGB reflectance signal) input from the shading correction unit 21 and performs an image quality adjustment process such as removal of background density or contrast. The processed RGB signals are output to the region recognition processing unit 23 and the region separation processing unit 24.

領域認識処理部23は、操作パネル4でトナーセーブモードが選択操作された場合、領域分離処理部24での処理に代えて所定の処理が行われる。領域認識処理部23は、入力階調補正部22から入力されたRGB信号(入力画像データ)に基づいて、文字領域、写真領域、図画領域、下地領域などの領域認識(例えば、矩形領域の抽出)を行い、判定信号(領域認識結果)を色補正部25、黒生成下色除去部26、空間フィルタ処理部27、階調再現処理部28へ出力する。また、領域認識処理部23は、領域認識結果を操作パネル4へ出力する。これにより、読み込まれた原稿のうち、領域認識された原稿画像の一部又は全部が表示され、表示された各領域をユーザが選択することにより、トナーの消費量を低減すべく所定の処理が行われる。なお、領域認識処理部23の詳細は後述する。   When the toner save mode is selected and operated on the operation panel 4, the region recognition processing unit 23 performs predetermined processing instead of the processing in the region separation processing unit 24. Based on the RGB signal (input image data) input from the input tone correction unit 22, the region recognition processing unit 23 recognizes a region such as a character region, a photographic region, a drawing region, or a background region (for example, extraction of a rectangular region). And the determination signal (region recognition result) is output to the color correction unit 25, the black generation and under color removal unit 26, the spatial filter processing unit 27, and the gradation reproduction processing unit 28. Further, the region recognition processing unit 23 outputs the region recognition result to the operation panel 4. As a result, a part or all of the region-recognized document image of the read document is displayed, and a predetermined process is performed to reduce the toner consumption by the user selecting each displayed region. Done. Details of the area recognition processing unit 23 will be described later.

領域分離処理部24は、操作パネル4でトナーセーブモードが選択操作されていない場合、領域認識処理部23での処理に代えて所定の処理が行われる。領域分離処理部24は、入力階調補正部22から入力されたRGB信号に基づき、入力された画像中の各画素が、文字領域、網点領域、写真領域の何れであるかを分離する。領域分離処理部24は、分離結果に基づいて、各画素がどの領域に属しているかを示す領域識別信号を色補正部25、黒生成下色除去部26、空間フィルタ処理部27、階調再現処理部28へ出力する。また、領域分離処理部24は、入力されたRGB信号をそのまま後段の色補正部25へ出力する。   When the toner save mode is not selected and operated on the operation panel 4, the region separation processing unit 24 performs predetermined processing instead of the processing in the region recognition processing unit 23. The region separation processing unit 24 separates whether each pixel in the input image is a character region, a dot region, or a photographic region based on the RGB signal input from the input tone correction unit 22. Based on the separation result, the region separation processing unit 24 outputs a region identification signal indicating which region each pixel belongs to, a color correction unit 25, a black generation and under color removal unit 26, a spatial filter processing unit 27, a tone reproduction The data is output to the processing unit 28. The region separation processing unit 24 outputs the input RGB signal as it is to the subsequent color correction unit 25.

なお、領域認識処理部23と領域分離処理部24とを個別に設ける構成に代えて、両者を統合する構成であってもよい。   In addition, it may replace with the structure which provides the area | region recognition process part 23 and the area | region separation process part 24 separately, and the structure which integrates both may be sufficient.

色補正部25は、入力されたRGB信号をCMYの色空間に変換し、カラー画像出力装置3の特性に合わせて色補正を行い、補正後のCMY信号を黒生成下色除去部26へ出力する。具体的には、色補正部25は、色再現の忠実化のため、不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行う。   The color correction unit 25 converts the input RGB signal into a CMY color space, performs color correction in accordance with the characteristics of the color image output device 3, and outputs the corrected CMY signal to the black generation and under color removal unit 26. To do. Specifically, the color correction unit 25 performs a process of removing color turbidity based on the spectral characteristics of CMY color materials including unnecessary absorption components in order to make color reproduction faithful.

黒生成下色除去部26は、色補正部25から入力されたCMY信号に基づいて、K(黒)信号を生成するとともに、入力されたCMY信号からK信号を差し引いて新たなCMY信号を生成し、生成したCMYK信号を空間フィルタ処理部27へ出力する。   The black generation and under color removal unit 26 generates a K (black) signal based on the CMY signal input from the color correction unit 25 and generates a new CMY signal by subtracting the K signal from the input CMY signal. Then, the generated CMYK signal is output to the spatial filter processing unit 27.

黒生成下色除去部26における処理の一例を示す。例えば、スケルトンブラックによる黒生成を行う処理の場合、スケルトンカーブの入出力特性をy=f(x)とし、入力されるデータをC、M、Yとし、出力されるデータをC′、M′、Y′、K′とし、UCR(Under Color Removal)率をα(0<α<1)とすると、黒生成下色除去処理により出力されるデータ夫々は、K′=f{min(C、M、Y)}、C′=C−αK′、M′=M−αK′、Y′=Y−αK′で表される。   An example of processing in the black generation and under color removal unit 26 is shown. For example, in the process of generating black by skeleton black, the input / output characteristic of the skeleton curve is y = f (x), the input data is C, M, Y, and the output data is C ′, M ′. , Y ′, K ′, and the UCR (Under Color Removal) rate is α (0 <α <1), the data output by the black generation and under color removal processing is K ′ = f {min (C, M, Y)}, C ′ = C−αK ′, M ′ = M−αK ′, and Y ′ = Y−αK ′.

空間フィルタ処理部27は、黒生成下色除去部26から入力されたCMYK信号に対して、領域識別信号に基づいたデジタルフィルタによる空間フィルタ処理を行う。これにより、画像データの空間周波数特性が補正され、カラー画像出力装置3における出力画像のぼやけ、又は粒状性劣化を防止する。例えば、空間フィルタ処理部27は、領域分離処理部24において文字領域に分離された領域を、特に黒文字又は色文字の再現性を高めるため、鮮鋭強調処理を施し高周波成分を強調する。また、空間フィルタ処理部27は、領域分離処理部24において網点領域に分離された領域を、入力網点成分を除去するためのローパス・フィルタ処理を施す。空間フィルタ処理部27は、処理後のCMYK信号を階調再現処理部28へ出力する。   The spatial filter processing unit 27 performs spatial filter processing on the CMYK signal input from the black generation and under color removal unit 26 using a digital filter based on the region identification signal. As a result, the spatial frequency characteristics of the image data are corrected, and blurring of the output image in the color image output device 3 or deterioration of graininess is prevented. For example, the spatial filter processing unit 27 performs sharp enhancement processing on the region separated into character regions by the region separation processing unit 24 to enhance the reproducibility of black characters or color characters, and emphasizes high frequency components. The spatial filter processing unit 27 performs low-pass filter processing for removing the input halftone component on the region separated into the halftone dot region by the region separation processing unit 24. The spatial filter processing unit 27 outputs the processed CMYK signal to the gradation reproduction processing unit 28.

階調再現処理部28は、カラー画像出力装置3での画像形成(記録)の濃度特性を考慮した濃度変換テーブルをLUT(Look Up Table)として記憶してあり、トナーセーブモードが選択された場合、領域認識処理部23から入力される判定信号に基づいて、文字領域、写真領域、図画領域あるいは下地領域に応じた濃度変換テーブルを選択し、空間フィルタ処理部27から入力されたCMYK信号に対して濃度変換処理を行う。また、階調再現処理部28は、濃度変換後のCMYK信号に対して所定のディザマトリクス(ディザ行列)を用いてディザ処理を行うことにより二値化又は多値化して擬似的に濃淡階調を表す中間調の出力画像データ(CMYK信号)を生成する。生成された出力画像データは、一旦記憶部(不図示)に記憶される。なお、階調再現処理部28の詳細は後述する。   The gradation reproduction processing unit 28 stores a density conversion table considering density characteristics of image formation (recording) in the color image output device 3 as a LUT (Look Up Table), and the toner save mode is selected. Based on the determination signal input from the area recognition processing unit 23, a density conversion table corresponding to the character area, the photograph area, the graphic area, or the background area is selected, and the CMYK signal input from the spatial filter processing unit 27 is selected. To perform density conversion processing. Further, the gradation reproduction processing unit 28 performs binarization or multi-leveling by performing a dither process using a predetermined dither matrix (dither matrix) on the CMYK signal after the density conversion, thereby pseudo gray scales. Output halftone output image data (CMYK signal). The generated output image data is temporarily stored in a storage unit (not shown). Details of the gradation reproduction processing unit 28 will be described later.

また、階調再現処理部28は、トナーセーブモードが選択されていない場合、領域分離処理部24から入力された領域識別信号に基づいて、空間フィルタ処理部27から入力されたCMYK信号に対して所定の処理を行う。例えば、階調再現処理部28は、文字領域に分離された領域を、特に黒文字又は色文字の再現性を高めるため、カラー画像出力装置3における高周波成分の再現に適するように二値化処理又は多値化処理を行う。また、階調再現処理部28は、領域分離処理部24において網点領域に分離された領域を、最終的に画像を画素に分離して、それぞれの階調を再現できるように階調再現処理(中間調生成)を行う。さらに、階調再現処理部28は、領域分離処理部24において写真領域に分離された領域を、カラー画像出力装置3における階調再現性に適するように二値化処理又は多値化処理を行う。   Further, when the toner save mode is not selected, the gradation reproduction processing unit 28 applies the CMYK signal input from the spatial filter processing unit 27 based on the region identification signal input from the region separation processing unit 24. Perform predetermined processing. For example, the gradation reproduction processing unit 28 performs binarization processing or processing so as to be suitable for reproduction of high-frequency components in the color image output device 3 in order to improve the reproducibility of the region separated into character regions, particularly black characters or color characters. Multilevel processing is performed. Further, the gradation reproduction processing unit 28 performs gradation reproduction processing so that the region separated into halftone dot regions in the region separation processing unit 24 can be finally separated into pixels and the respective gradations can be reproduced. (Generate halftone). Further, the gradation reproduction processing unit 28 performs binarization processing or multi-value processing so that the region separated into the photographic region by the region separation processing unit 24 is suitable for the gradation reproducibility in the color image output device 3. .

カラー画像処理装置2は、階調再現処理部28で処理された画像データ(CMYK信号)を記憶部(不図示)に一旦記憶し、画像形成をする所定のタイミングで記憶部に記憶した画像データを読み出し、読み出した画像データをカラー画像出力装置3へ出力する。これらの制御は、例えば、CPU(不図示)により行われる。   The color image processing apparatus 2 temporarily stores the image data (CMYK signal) processed by the gradation reproduction processing unit 28 in a storage unit (not shown), and stores the image data in the storage unit at a predetermined timing for image formation. And the read image data is output to the color image output device 3. These controls are performed by a CPU (not shown), for example.

操作パネル4は、例えば、液晶ディスプレイなどの表示部と設定ボタンなどより構成され、操作パネル4より入力された情報に基づいてカラー画像入力装置1、カラー画像処理装置2、カラー画像出力装置3の動作が制御される。   The operation panel 4 includes, for example, a display unit such as a liquid crystal display and a setting button. The color image input device 1, the color image processing device 2, and the color image output device 3 are based on information input from the operation panel 4. Operation is controlled.

図2は領域認識処理部23の構成を示すブロック図である。領域認識処理部23は、二値化処理部231、ラン膨張処理部232、ラベリング処理部233、外接矩形抽出処理部234、及び判定部235などを備えている。   FIG. 2 is a block diagram showing a configuration of the area recognition processing unit 23. The area recognition processing unit 23 includes a binarization processing unit 231, a run expansion processing unit 232, a labeling processing unit 233, a circumscribed rectangle extraction processing unit 234, a determination unit 235, and the like.

二値化処理部231は、入力画像データ(例えば、1画素あたり8ビットの画素値)に対して二値化処理を行い、処理後の二値化画像をラン膨張処理部232へ出力する。より具体的には、二値化処理部231は、注目画素の画素値とは独立に決定される閾値又は周辺画素の画素値に応じて決定される閾値に基づいて入力画像データを二値化する。二値化処理の方法としては、例えば、二値化誤差を周辺画素に分配して階調を保存する誤差拡散法による二値化処理、注目画素の二値化誤差を次に処理される画素において補償して階調を保存する二値化処理、ランダムな閾値による二値化処理、閾値が規則的に変化する組織ディザ法による二値化処理、注目画素を含む(n×n)のウインドウ内の平均値を閾値とする二値化処理などがある。なお、二値化処理の方法は、上述のいずれのものでもよく、また、他の方法であってもよい。   The binarization processing unit 231 performs binarization processing on input image data (for example, a pixel value of 8 bits per pixel), and outputs the processed binarized image to the run expansion processing unit 232. More specifically, the binarization processing unit 231 binarizes the input image data based on a threshold value determined independently of the pixel value of the target pixel or a threshold value determined according to the pixel value of surrounding pixels. To do. As a binarization processing method, for example, a binarization process by an error diffusion method in which a binarization error is distributed to surrounding pixels and a gradation is stored, and a binarization error of a target pixel is processed next. Binarization processing for compensating gradation and storing gradation, binarization processing by random threshold, binarization processing by systematic dither method in which threshold changes regularly, (n × n) window including target pixel There is a binarization process using the average value of the values as a threshold. Note that the binarization processing method may be any of those described above, or may be another method.

ラン膨張処理部232は、入力された二値化画像の注目画素(黒画素)を主走査方向に走査し、主走査方向の所定の画素数範囲内に黒画素が存在する場合、注目画素から前記黒画素までのすべての画素を黒画素に置き換えることにより黒画素を膨張させた黒画素部(「ラン」という。)を生成(ラン膨張処理)し、生成した画像に基づくラン膨張信号をラベリング処理部233へ出力する。   The run expansion processing unit 232 scans the target pixel (black pixel) of the input binarized image in the main scanning direction, and if there is a black pixel within a predetermined number of pixels in the main scanning direction, By replacing all the pixels up to the black pixel with black pixels, a black pixel portion (referred to as “run”) in which the black pixels are expanded is generated (run expansion processing), and a run expansion signal based on the generated image is labeled. The data is output to the processing unit 233.

図3はラン膨張処理の内容を示す説明図である。図3は二値化画像を示し、図中矩形で囲まれた画素が黒画素である。また、二値化画像の主走査方向に平行な方向の位置及び垂直な方向の位置を座標(X、Y)で表す。また、黒画素に置き換える際の所定の画素数範囲を「4」画素として説明する。図3(a)はラン膨張処理を行う前の二値化画像であり、図3(b)はラン膨張処理後の画像である。   FIG. 3 is an explanatory diagram showing the contents of the run expansion process. FIG. 3 shows a binarized image, and pixels surrounded by a rectangle in the figure are black pixels. Also, the position in the direction parallel to the main scanning direction and the position in the direction perpendicular to the main scanning direction of the binarized image are represented by coordinates (X, Y). Also, a description will be given assuming that the predetermined pixel number range when replacing with black pixels is “4” pixels. FIG. 3A shows a binarized image before the run expansion process, and FIG. 3B shows an image after the run expansion process.

図3(a)に示すように、座標(2、1)から主走査方向に座標(5、1)まで黒画素が連続して存在し、2画素離隔して、座標(8、1)から主走査方向に座標(12、1)まで黒画素が連続している。また、次のラインでは、座標(1、2)から主走査方向に座標(3、2)まで黒画素が連続して存在し、5画素離隔して、座標(9、2)から座標(11、2)まで黒画素が連続して存在し、1画素離隔して、座標(13、2)から座標(15、2)まで連続する黒画素が存在する。   As shown in FIG. 3A, black pixels continuously exist from the coordinates (2, 1) to the coordinates (5, 1) in the main scanning direction, and are separated from the coordinates (8, 1) by two pixels. Black pixels continue to the coordinates (12, 1) in the main scanning direction. In the next line, black pixels continuously exist from the coordinates (1, 2) to the coordinates (3, 2) in the main scanning direction, and are separated by 5 pixels, and the coordinates (9, 2) to the coordinates (11 2), there are continuous black pixels, and there is a continuous black pixel from coordinates (13, 2) to coordinates (15, 2) one pixel apart.

図3(b)に示すように、ラン膨張処理を施した場合、座標(5、1)と座標(8、1)とは、2画素分しか離隔していない(4画素以内に黒画素が存在する)ため、座標(2、1)から座標(12、1)までの全ての画素は、黒画素に置き換えられる。これにより、ラン(黒画素部)L1が得られる。また、座標(3、2)と座標(9、2)とは、5画素分離隔している(4画素以内に黒画素が存在しない)ため、座標(1、2)から座標(3、2)までの黒画素がランL2として得られる。また、座標(11、2)と座標(13、2)とは、1画素分しか離隔していない(4画素以内に黒画素が存在する)ため、座標(9、2)から座標(15、2)までの全ての画素は、黒画素に置き換えられる。これにより、ラン(黒画素部)L3が得られる。   As shown in FIG. 3B, when the run expansion process is performed, the coordinates (5, 1) and the coordinates (8, 1) are separated by only two pixels (the black pixels are within four pixels). Therefore, all pixels from coordinates (2, 1) to coordinates (12, 1) are replaced with black pixels. Thereby, a run (black pixel portion) L1 is obtained. Also, since the coordinates (3, 2) and the coordinates (9, 2) are separated by 5 pixels (there are no black pixels within 4 pixels), the coordinates (3, 2) Black pixels up to) are obtained as run L2. Also, since the coordinates (11, 2) and the coordinates (13, 2) are separated by only one pixel (there are black pixels within 4 pixels), the coordinates (9, 2) to the coordinates (15, All pixels up to 2) are replaced with black pixels. Thereby, a run (black pixel portion) L3 is obtained.

このように、二値化画像から抽出されたラン(黒画素部)に基づいて出力されるラン膨脹信号には、抽出されたラン毎に、該ランの始点座標、ランの長さなどのラン情報が含まれる。   As described above, the run expansion signal output based on the run (black pixel portion) extracted from the binarized image includes, for each extracted run, the run start coordinates, the run length, and the like. Contains information.

図4はラン情報の例を示す説明図である。図4(a)は抽出されたランの一例を示し、図4(b)は図4(a)に対応するラン情報を示す。ラン情報は、抽出されたランを識別するラン番号、ランの始点座標、ランの長さなどの各欄で構成されている。図4(a)では、ラン番号が「1」のランL10、ラン番号が「2」のランL11、ラン番号が「3」のランL12がそれぞれ抽出されている。この場合、図4(b)に示すように、ラン番号が「1」のランの始点の座標は(4、1)、ランの大きさ(長さ)Mは「4」であり、ラン番号が「2」のランの始点の座標は(1、2)、ランの大きさMは「5」であり、ラン番号が「3」のランの始点の座標は(7、2)、ランの大きさMは「4」である。   FIG. 4 is an explanatory diagram showing an example of run information. FIG. 4A shows an example of the extracted run, and FIG. 4B shows the run information corresponding to FIG. The run information is composed of fields such as a run number for identifying the extracted run, the start point coordinates of the run, and the length of the run. In FIG. 4A, a run L10 with a run number “1”, a run L11 with a run number “2”, and a run L12 with a run number “3” are extracted. In this case, as shown in FIG. 4B, the coordinates of the start point of the run with the run number “1” are (4, 1), the run size (length) M is “4”, and the run number The coordinates of the start point of the run with “2” are (1, 2), the run size M is “5”, the coordinates of the start point of the run with the run number “3” are (7, 2), The size M is “4”.

ラベリング処理部233は、入力されたラン膨張信号に基づいて、隣接するラン同士を連結して1つのラン(連結ラン)として統合(ラベリング)し、統合された連結ランの特徴を示す連結ラン情報をラベリング信号として外接矩形抽出処理部234へ出力する。   Based on the input run expansion signal, the labeling processing unit 233 connects adjacent runs and integrates (labels) them as one run (connected run), and connected run information indicating the characteristics of the integrated connected run Is output to the circumscribed rectangle extraction processing unit 234 as a labeling signal.

図5は連結ラン情報の例を示す説明図である。図に示すように、連結ラン情報は、連結ランを識別するラベル番号、連結ランを構成する各ランのラン番号の各欄などにより構成される。一例として上述の図4の場合では、ラン番号が「1」のランL10は、ラン番号が「2」のランL11と隣接し、さらにランL10は、ラン番号が「3」のランL12とも隣接している。この場合に、ラベリング処理が施されたときには、ランL10、L11、L12が連結され、連結ランを示すラベル番号が「A」、連結ランを構成する各ランのラン番号が「1」、「2」、「3」となる。   FIG. 5 is an explanatory diagram showing an example of linked run information. As shown in the figure, the linked run information includes a label number for identifying the linked run, each run number column of each run constituting the linked run, and the like. For example, in the case of FIG. 4 described above, the run L10 with the run number “1” is adjacent to the run L11 with the run number “2”, and the run L10 is also adjacent to the run L12 with the run number “3”. is doing. In this case, when the labeling process is performed, the runs L10, L11, and L12 are connected, the label number indicating the connected run is “A”, and the run numbers of each run constituting the connected run are “1” and “2”. "," 3 ".

外接矩形抽出処理部234は、入力されたラベリング信号に基づいて、連結ランに外接する矩形状の領域(外接矩形領域)を抽出し、抽出した外接矩形領域の位置及び大きさなどを示す外接矩形情報を抽出信号として判定部235へ出力する。   The circumscribed rectangle extraction processing unit 234 extracts a rectangular area (circumscribed rectangular area) circumscribing the connected run based on the input labeling signal, and indicates the position and size of the extracted circumscribed rectangular area. Information is output to the determination unit 235 as an extraction signal.

図6は外接矩形領域の抽出方法を示す説明図である。図6(a)は図4(a)と同様の抽出されたランの例であり、各ランL10、L11、L12が連結されている(図5参照)。連結ランの大きさを判定する場合には、注目ラインとその前ラインとの2本のライン単位で左から右(主走査方向)に向かって、その2ライン上のランの始点、終点、長さ等を比較する。   FIG. 6 is an explanatory diagram showing a method for extracting a circumscribed rectangular area. FIG. 6A is an example of extracted runs similar to FIG. 4A, and the runs L10, L11, and L12 are connected (see FIG. 5). When determining the size of a connected run, the start point, end point, and length of the run on the two lines from left to right (main scanning direction) in units of two lines, the target line and the previous line. Compare the etc.

例えば、図6(a)において、ランL11およびその前ラインのランL10に注目すると、ランL11の始点はランL10より前方(X座標値が小さい方向)に位置するので、それらに外接する矩形領域の始点は、ランL11の始点上にあり、また、ランL10の終点は、ランL11の終点より後方(X座標値が大きい方向)に位置するので、外接する矩形領域の終点はランL10の終点上にあることになる。従って、ランL10、L11に外接する矩形領域は、図6(b)の太線で示した形状(ラベル番号が「A1」)となる。   For example, in FIG. 6A, when attention is paid to the run L11 and the run L10 on the preceding line, the start point of the run L11 is located in front of the run L10 (in the direction in which the X coordinate value is small). Is located on the start point of the run L11, and the end point of the run L10 is located behind the end point of the run L11 (in the direction in which the X coordinate value is large). Therefore, the end point of the circumscribed rectangular area is the end point of the run L10. Will be on top. Accordingly, the rectangular area circumscribing the runs L10 and L11 has a shape (label number “A1”) indicated by a thick line in FIG. 6B.

次に、図6(b)において、ランL12とランL10に注目すると、ランL10の始点はランL12より前方に位置するので、それらに外接する矩形領域の始点は、ランL10の始点上にあり、また、ランL12の終点は、ランL10の終点より後方に位置するので、外接する矩形領域の終点はランL12の終点上にあることになる。さらに、図6(b)の形状A1を考慮することにより、ランL10、L11、L12に外接する矩形領域は、図6(c)の太線で示した形状(ラベル番号が「A」)となる。   Next, in FIG. 6B, when attention is paid to the run L12 and the run L10, the start point of the run L10 is located in front of the run L12. Therefore, the start point of the rectangular area circumscribing them is on the start point of the run L10. Also, since the end point of the run L12 is located behind the end point of the run L10, the end point of the circumscribed rectangular area is on the end point of the run L12. Furthermore, by considering the shape A1 in FIG. 6B, the rectangular area circumscribing the runs L10, L11, and L12 has the shape indicated by the bold line in FIG. 6C (label number “A”). .

すなわち、外接矩形抽出処理部234は、連結ランを構成する各ランの始点の座標のうち、最小の座標を外接矩形領域の始点の座標(Xs、Ys)として求める。したがって、連結ランを構成するn個のランの始点の座標をそれぞれ(X1、Y1)、(X2、Y2)、…、(Xn、Yn)とすると、外接矩形領域の始点の座標(Xs、Ys)は、Xs=min(X1、X2、…、Xn)、Ys=min(Y1、Y2、…、Yn)と求めることができる。   In other words, the circumscribed rectangle extraction processing unit 234 obtains the minimum coordinate among the coordinates of the start point of each run constituting the connected run as the coordinates (Xs, Ys) of the start point of the circumscribed rectangular area. Therefore, if the coordinates of the start points of the n runs constituting the connected run are (X1, Y1), (X2, Y2),..., (Xn, Yn), the coordinates of the start points of the circumscribed rectangular area (Xs, Ys) ) Can be obtained as Xs = min (X1, X2,..., Xn) and Ys = min (Y1, Y2,..., Yn).

また、始点の算出と同様に、外接矩形領域の終点の座標(Xe、Ye)は、Xe=max(X1、X2、…、Xn)、Ye=max(Y1、Y2、…、Yn)と求めることができる。さらに、外接矩形領域の大きさ、すなわち、X方向及びY方向の大きさ(MX、MY)は、MX=Xe−Xs+1、MY=Ye−Ys+1と求めることができる。   Similarly to the calculation of the starting point, the coordinates (Xe, Ye) of the end point of the circumscribed rectangular area are obtained as Xe = max (X1, X2,..., Xn) and Ye = max (Y1, Y2,..., Yn). be able to. Furthermore, the size of the circumscribed rectangular region, that is, the sizes in the X direction and the Y direction (MX, MY) can be obtained as MX = Xe−Xs + 1 and MY = Ye−Ys + 1.

図7は外接矩形情報の例を示す説明図である。外接矩形情報は、抽出された外接矩形領域を識別するためのラベル番号(連結ランのラベル番号に相当)、外接矩形領域の始点座標、外接矩形領域の大きさ(長さ)の各欄で構成されている。例えば、図6の例で抽出された外接矩形領域は、ラベル番号が「A」、始点の座標(Xs、Ys)が(1、1)、大きさ(MX、MY)が(10、2)である。   FIG. 7 is an explanatory diagram showing an example of circumscribed rectangle information. The circumscribed rectangle information is composed of the following fields: a label number for identifying the extracted circumscribed rectangular area (corresponding to the label number of the connected run), the starting point coordinates of the circumscribed rectangular area, and the size (length) of the circumscribed rectangular area Has been. For example, the circumscribed rectangular area extracted in the example of FIG. 6 has the label number “A”, the coordinates (Xs, Ys) of the start point (1, 1), and the sizes (MX, MY) (10, 2). It is.

判定部235は、入力された抽出信号(外接矩形情報)に基づいて、各外接矩形領域の大きさを求め、所定の閾値と比較することにより、各外接矩形領域が文字領域であるか非文字領域であるかを判定する。   The determination unit 235 obtains the size of each circumscribed rectangular area based on the input extraction signal (circumscribed rectangle information) and compares it with a predetermined threshold value to determine whether each circumscribed rectangular area is a character area or non-character. Determine if it is an area.

図8は外接矩形領域の大きさ(長さ)を判定するための判定条件を示す説明図である。図8では、第1ライン(上段のライン)上のランL20のラン情報として、ランの始点の座標を(X0、Y0)、ランの長さをM0と表し、第2ライン(下段のライン)上のランL21のラン情報として、ランの始点の座標を(X1、Y1)、ランの長さをM1と表す。外接矩形領域の大きさは、第1ライン上のランL20と第2ライン上のランL21との位置関係に基づいて判定され、以下のとおり、いくつかの場合がある。   FIG. 8 is an explanatory diagram showing determination conditions for determining the size (length) of the circumscribed rectangular area. In FIG. 8, as run information of the run L20 on the first line (upper line), the coordinates of the start point of the run are represented as (X0, Y0), the run length is represented as M0, and the second line (lower line). As the run information of the upper run L21, the coordinates of the start point of the run are represented as (X1, Y1), and the run length is represented as M1. The size of the circumscribed rectangular area is determined based on the positional relationship between the run L20 on the first line and the run L21 on the second line, and there are several cases as follows.

図8(a)は、ランL20とランL21との位置関係が、第2ライン上のランL21は、第1ライン上のランL20より前方にあり、かつ、両者が互いに連結されていない場合である。すなわち、X0>X1+M1の場合、ランL20とランL21とは非連結であると判定され、その結果、得られる外接矩形領域の始点は(X1、Y1)、大きさは(M1、Y−Y1+1)となる。ここで、Yは処理中のライン番号を表し、Y=Y1である。   FIG. 8A shows a case where the positional relationship between the run L20 and the run L21 is such that the run L21 on the second line is ahead of the run L20 on the first line and they are not connected to each other. is there. That is, when X0> X1 + M1, it is determined that the run L20 and the run L21 are not connected, and as a result, the starting point of the circumscribed rectangular area obtained is (X1, Y1) and the size is (M1, Y−Y1 + 1). It becomes. Here, Y represents the line number being processed, and Y = Y1.

図8(b)は、ランL20とランL21との位置関係が、第2ライン上のランL21の始点は、第1ライン上のランL20の始点より前方にあり、かつ、第2ライン上のランL21の終点は、第1ライン上のランL20の終点より前方にあり、両者が互いに連結されている場合である。すなわち、X0>X1、X0≦X1+M1、X0+M0>X1+M1の場合、判定される外接矩形領域の始点は(X1、Y0)、大きさは(X0+M0−X1+1、Y−Y0+1)となる。   In FIG. 8B, the positional relationship between the run L20 and the run L21 is such that the start point of the run L21 on the second line is ahead of the start point of the run L20 on the first line, and on the second line. The end point of the run L21 is ahead of the end point of the run L20 on the first line, and both are connected to each other. That is, when X0> X1, X0 ≦ X1 + M1, and X0 + M0> X1 + M1, the starting point of the circumscribed rectangular area to be determined is (X1, Y0) and the size is (X0 + M0−X1 + 1, Y−Y0 + 1).

図8(c)は、ランL20とランL21との位置関係が、第2ライン上のランL21の始点は、第1ライン上のランL20の始点より前方にあり、かつ、第2ライン上のランL21の終点は、第1ライン上のランL20の終点より後方にあり、両者が互いに連結されている場合である。すなわち、X0>X1、X0≦X1+M1、X0+M0≦X1+M1の場合、判定される外接矩形領域の始点は(X1、Y0)、大きさは(M1、Y−Y0+1)となる。   In FIG. 8C, the positional relationship between the run L20 and the run L21 is such that the start point of the run L21 on the second line is ahead of the start point of the run L20 on the first line, and on the second line. The end point of the run L21 is behind the end point of the run L20 on the first line, and both are connected to each other. That is, when X0> X1, X0 ≦ X1 + M1, and X0 + M0 ≦ X1 + M1, the starting point of the circumscribed rectangular area to be determined is (X1, Y0) and the size is (M1, Y−Y0 + 1).

図8(d)は、ランL20とランL21との位置関係が、第2ライン上のランL21の始点は、第1ライン上のランL20の始点より後方にあり、かつ、第2ライン上のランL21の終点は、第1ライン上のランL20の終点より前方にあり、両者が互いに連結されている場合である。すなわち、X0≦X1、X0≦X1+M1、X0+M0>X1+M1の場合、判定される外接矩形領域の始点は(X0、Y0)、大きさは(M0、Y−Y0+1)となる。   In FIG. 8D, the positional relationship between the run L20 and the run L21 is such that the start point of the run L21 on the second line is behind the start point of the run L20 on the first line, and on the second line. The end point of the run L21 is ahead of the end point of the run L20 on the first line, and both are connected to each other. That is, in the case of X0 ≦ X1, X0 ≦ X1 + M1, and X0 + M0> X1 + M1, the starting point of the circumscribed rectangular area to be determined is (X0, Y0) and the size is (M0, Y−Y0 + 1).

図8(e)は、ランL20とランL21との位置関係が、第2ライン上のランL21の始点は、第1ライン上のランL20の始点より後方にあり、かつ、第2ライン上のランL21の終点は、第1ライン上のランL20の終点より後方にあり、両者が互いに連結されている場合である。すなわち、X0≦X1、X0≦X1+M1、X0+M0≦X1+M1の場合、判定される外接矩形の始点は(X0、Y0)、大きさは(X1+M1−X0+1、Y−Y0+1)となる。   FIG. 8E shows that the positional relationship between the run L20 and the run L21 is such that the start point of the run L21 on the second line is behind the start point of the run L20 on the first line, and on the second line. The end point of the run L21 is behind the end point of the run L20 on the first line, and both are connected to each other. That is, when X0 ≦ X1, X0 ≦ X1 + M1, and X0 + M0 ≦ X1 + M1, the starting point of the circumscribed rectangle to be determined is (X0, Y0) and the size is (X1 + M1-X0 + 1, Y−Y0 + 1).

図8(f)は、ランL20とランL21との位置関係が、第2ライン上のランL21は、第1ライン上のランL20より後方にあり、かつ、両者が互いに連結されていない場合である。すなわち、X0+M0<X1の場合、第2ライン上のランL21と第1ライン上のランL20との連結の終了が判定され、その結果、得られる外接矩形領域の始点は(X0、Y0)、大きさは(M0、Y−Y0+1)となる。判定部235は、上述の処理をラインごとに繰り返し、1ページ分の画像データに対する処理が終了するまで行う。   FIG. 8F shows a case where the positional relationship between the run L20 and the run L21 is such that the run L21 on the second line is behind the run L20 on the first line and they are not connected to each other. is there. That is, in the case of X0 + M0 <X1, it is determined that the connection between the run L21 on the second line and the run L20 on the first line is finished, and as a result, the starting point of the circumscribed rectangular area obtained is (X0, Y0), which is large The length is (M0, Y−Y0 + 1). The determination unit 235 repeats the above processing for each line until the processing for one page of image data is completed.

外接矩形領域が文字領域であるか非文字領域であるかの判定は、文字列で構成される文字領域が細長い矩形状をなすという特徴を利用して行うことができる。例えば、外接矩形領域の大きさを(MX、MY)とした場合、文字列の大きさに適切な制限を設定し、適切な閾値Ta、Tb、Tc、Tdを用いて、Ta<MX<Tb、かつ、Tc<MY<Tdである場合には、その外接矩形領域を文字領域であると判定する。   The determination of whether the circumscribed rectangular area is a character area or a non-character area can be performed using the feature that a character area formed of a character string has a long and narrow rectangular shape. For example, when the size of the circumscribed rectangular area is (MX, MY), an appropriate restriction is set on the size of the character string, and Ta <MX <Tb using appropriate threshold values Ta, Tb, Tc, Td. If Tc <MY <Td, the circumscribed rectangular area is determined to be a character area.

判定部235は、非文字領域であると判定された外接矩形領域については、外接矩形領域の各画素の画素値(例えば、濃度値)に基づいて、下地領域、図画領域、あるいは写真領域のいずれの領域であるかを判定する。より具体的には、判定部235は、非文字領域であると判定された外接矩形領域の各画素の濃度値に基づいて、外接矩形領域毎の濃度ヒストグラムを作成し、濃度ヒストグラムの分布状況に応じて領域判定を行う。   For the circumscribed rectangular area determined to be a non-character area, the determination unit 235 determines whether the background area, the graphic area, or the photographic area is based on the pixel value (for example, the density value) of each pixel of the circumscribed rectangular area. It is determined whether it is a region. More specifically, the determination unit 235 creates a density histogram for each circumscribed rectangular area based on the density value of each pixel of the circumscribed rectangular area determined to be a non-character area, and determines the density histogram distribution status. The area is determined accordingly.

図9は濃度ヒストグラムの例を示す説明図である。図中、横軸は濃度値、縦軸は頻度を示す。図において、外接矩形領域内の画素の濃度値の分布が領域H1にある場合、原稿上に何も印刷されていない領域であると判定することができる。   FIG. 9 is an explanatory diagram showing an example of a density histogram. In the figure, the horizontal axis indicates the density value, and the vertical axis indicates the frequency. In the figure, when the distribution of the density values of the pixels in the circumscribed rectangular area is in the area H1, it can be determined that the area is nothing printed on the document.

また、外接矩形領域内の画素の濃度値の分布が領域H2にある場合、すなわち、外接矩形領域内の画素の濃度値の分布がほぼ均一な濃度で、かつ、低濃度側(例えば、濃度閾値THd以下)に属する場合には、原稿上の薄い色の下地領域であると判定することができる。   Further, when the density value distribution of the pixels in the circumscribed rectangular area is in the area H2, that is, the density value distribution of the pixels in the circumscribed rectangular area has a substantially uniform density and is on the low density side (for example, a density threshold value). If it belongs to THd or less), it can be determined that the background area is a light color on the document.

また、外接矩形領域内の画素の濃度値の分布が領域H3にある場合、すなわち、外接矩形領域内の画素の濃度値の分布が下地領域の場合よりも高濃度側(例えば、濃度閾値THd以上)で、ほぼ均一な濃度である場合には、図画領域(例えば、図形、絵などの画像領域であって写真画像でない領域)であると判定することができる。   Further, when the density value distribution of the pixels in the circumscribed rectangular area is in the area H3, that is, the density value distribution of the pixels in the circumscribed rectangular area is higher than that in the background area (for example, the density threshold value THd or more). If the density is substantially uniform, it can be determined that the area is a graphic area (for example, an image area such as a figure or a picture but not a photographic image).

また、外接矩形領域内の画素の濃度値の分布が領域H4にある場合、すなわち、外接矩形領域内の画素の濃度値の分布が広範囲に亘って変化する場合には、写真領域であると判定することができる。   If the distribution of the density values of the pixels in the circumscribed rectangular area is in the area H4, that is, if the distribution of the density values of the pixels in the circumscribed rectangular area changes over a wide range, it is determined that the area is a photographic area. can do.

なお、外接矩形領域内の画素の濃度値の分布が領域H5にある場合、すなわち、外接矩形領域内の画素の濃度値の分布がほぼ均一な濃度で、かつ、高濃度側に属する場合は、文字領域であると判定することができる。   When the distribution of the density values of the pixels in the circumscribed rectangular area is in the area H5, that is, when the density value distribution of the pixels in the circumscribed rectangular area has a substantially uniform density and belongs to the high density side, It can be determined that it is a character area.

上述のとおり、判定部235は、外接矩形領域の大きさに基づいて、該外接矩形領域が文字領域であるか非文字領域であるかを判定する。さらに、判定部235は、非文字領域であると判定された外接矩形領域に対して、該外接矩形領域内の画素の濃度ヒストグラムに基づいて、該外接矩形領域が下地領域、図画領域、あるいは写真領域のいずれであるかを判定し、判定信号を階調再現処理部28などへ出力する。   As described above, the determination unit 235 determines whether the circumscribed rectangular area is a character area or a non-character area based on the size of the circumscribed rectangular area. Further, the determination unit 235 determines that the circumscribed rectangular area is a background area, a graphic area, or a photograph for a circumscribed rectangular area determined to be a non-character area, based on a density histogram of pixels in the circumscribed rectangular area. It is determined which of the regions, and a determination signal is output to the gradation reproduction processing unit 28 and the like.

これにより、文字領域、写真領域、図画領域、下地領域などの特徴(属性)が異なる画像の各領域を精度よく抽出して、各領域の識別を容易に行うことができる。また、上述の二値化処理部231で二値化処理を行う際、入力画像がぼんやりした写真の背景画像であるグレーエリアも階調処理されるので、後段のラベル膨脹処理、ラベリング処理、外接矩形抽出処理で膨脹化及び矩形化を行うことによって、写真画像全体の輪郭が消失されず、正しく抽出される。   Thereby, each area of an image having different characteristics (attributes) such as a character area, a photograph area, a drawing area, and a background area can be extracted with high accuracy, and each area can be easily identified. Further, when the binarization processing is performed by the above-described binarization processing unit 231, the gray area that is the background image of the photograph in which the input image is blurred is also subjected to gradation processing, so that the label expansion processing, labeling processing, circumscribed By performing expansion and rectangularization in the rectangular extraction process, the outline of the entire photographic image is not lost and is correctly extracted.

なお、領域判定は上述の方法に限定されるものではなく、他の種々の方法で行うことが可能である。また、外接矩形領域の大きさに基づいて、その外接矩形領域が写真領域であるか否かの判定も行うことが可能である。この場合には、写真が印刷される領域が比較的正方形に近い形状をなすという特徴を利用することができる。例えば、外接矩形領域の大きさを(MX、MY)とした場合、判定する領域の大きさに適切な制限を設定し、文字領域の判定とは別の適切な閾値Te、Tf、Tg、Thを用いて、Te<MX<Tf、かつ、Tg<MY<Thである場合、その外接矩形領域を写真領域であると判定する。   Note that the region determination is not limited to the above-described method, and can be performed by other various methods. It is also possible to determine whether or not the circumscribed rectangular area is a photographic area based on the size of the circumscribed rectangular area. In this case, it is possible to use the feature that the area in which the photograph is printed has a relatively square shape. For example, when the size of the circumscribed rectangular area is (MX, MY), an appropriate limit is set on the size of the area to be determined, and appropriate thresholds Te, Tf, Tg, Th different from the determination of the character area are set. If Te <MX <Tf and Tg <MY <Th, the circumscribed rectangular area is determined to be a photographic area.

図10は階調再現処理部28の構成を示すブロック図である。階調再現処理部28はセレクタ281、濃度変換テーブル282、濃度変換部283、ディザ処理部284などを備えている。   FIG. 10 is a block diagram showing the configuration of the gradation reproduction processing unit 28. The gradation reproduction processing unit 28 includes a selector 281, a density conversion table 282, a density conversion unit 283, a dither processing unit 284, and the like.

セレクタ281は、領域認識処理部23から入力される判定信号に基づいて、濃度変換テーブル282に格納されている複数の濃度変換用テーブルの中から、判定された領域に応じて最適な濃度変換用テーブルを選択するようになっている。また、セレクタ281は空間フィルタ処理部27から入力される画像データ(CMYK信号)のうち領域判定が行われた矩形領域毎の画像データを濃度変換部283へ出力する。   Based on the determination signal input from the area recognition processing unit 23, the selector 281 selects the optimum density conversion from the plurality of density conversion tables stored in the density conversion table 282 according to the determined area. The table is selected. Further, the selector 281 outputs the image data for each rectangular area in which the area determination has been performed among the image data (CMYK signal) input from the spatial filter processing unit 27 to the density conversion unit 283.

濃度変換テーブル282は、複数の濃度変換用テーブルをLUT(Look Up Table)として格納している。濃度変換用テーブルとして、例えば、文字・写真領域用テーブル282a、図画領域用テーブル282b、下地領域用テーブル282cなどが格納されている。   The density conversion table 282 stores a plurality of density conversion tables as a LUT (Look Up Table). As the density conversion table, for example, a character / photo area table 282a, a graphic area table 282b, a background area table 282c, and the like are stored.

図11は濃度変換テーブル282の濃度特性の例を示す説明図である。図11(a)はトナーセーブモードでない場合(通常時)の濃度(ガンマ)特性を示し、図11(b)はトナーセーブモードが選択された場合の濃度特性を示す。図11(a)に示すように、通常時には、入力濃度に対してリニアな出力濃度を示す濃度特性Gaを用いることにより、入力画像の階調を維持した濃度特性(ガンマ特性)により濃度変換を行う。   FIG. 11 is an explanatory diagram showing an example of the density characteristics of the density conversion table 282. FIG. 11A shows the density (gamma) characteristics when not in the toner save mode (normal time), and FIG. 11B shows the density characteristics when the toner save mode is selected. As shown in FIG. 11A, normally, density conversion is performed by density characteristics (gamma characteristics) that maintain the gradation of the input image by using density characteristics Ga that shows output density linear with respect to input density. Do.

図11(b)に示すように、トナーセーブモード時には、判定された領域に応じて異なる濃度特性(ガンマ特性)により濃度変換を行う。例えば、文字・写真領域に対しては通常時の濃度特性Gaと同じ濃度特性を用いることにより、入力画像の階調を維持した濃度特性(ガンマ特性)により濃度変換を行う。   As shown in FIG. 11B, in the toner save mode, density conversion is performed with different density characteristics (gamma characteristics) depending on the determined area. For example, by using the same density characteristic as the normal density characteristic Ga for a character / photo area, density conversion is performed using a density characteristic (gamma characteristic) that maintains the gradation of the input image.

また、図画領域に対しては、リニアな濃度特性Gaと比較して低濃度の濃度特性Gbを用いることにより、トナー使用量の低減を行う。また、下地領域に対しては、濃度特性Gbと比較して低濃度の濃度特性Gcを用いることにより、さらにトナー使用量の低減を行う。文字・写真領域用テーブル282a、図画領域用テーブル282b、又は下地領域用テーブル282cはそれぞれ、濃度特性Ga、Gb、Gcに対応している。なお、図画領域及び下地領域に対して同じ濃度特性(例えば、GbあるいはGc)を用いることもできる。   In addition, for the image area, the toner usage is reduced by using the density characteristic Gb having a lower density than the linear density characteristic Ga. Further, for the base region, the toner usage is further reduced by using the density characteristic Gc having a lower density than the density characteristic Gb. The character / photo area table 282a, the drawing area table 282b, or the background area table 282c corresponds to the density characteristics Ga, Gb, and Gc, respectively. The same density characteristic (for example, Gb or Gc) can also be used for the drawing area and the background area.

濃度変換部283は、入力された矩形領域毎の画像データそれぞれに対して、選択された文字・写真領域用テーブル282a、図画領域用テーブル282b、又は下地領域用テーブル282cのいずれかを用いて濃度変換し、変換後の画像データをディザ処理部284へ出力する。   The density conversion unit 283 uses the selected character / photo area table 282a, drawing area table 282b, or background area table 282c for each of the input image data for each rectangular area. The converted image data is output to the dither processing unit 284.

ディザ処理部284は、入力された画像データをn×nの画素(例えば、n=4)のブロックに分割した後、ブロック毎の各画素を対応するディザマトリクス(例えば、4×4のディザマトリクス)の要素で二値化することによりディザ処理を行い、処理後の擬似中間調の出力画像データ(YMCK信号)を出力する。なお、ディザ処理は、二値化に限定されるものではなく、カラー画像出力装置3が2〜3ビット/画素の表示階調を有する場合には、多値ディザ処理を用いることもできる。また、ディザ処理に代えて、誤差拡散処理を用いることも可能である。   The dither processing unit 284 divides the input image data into blocks of n × n pixels (for example, n = 4), and then each pixel for each block has a corresponding dither matrix (for example, 4 × 4 dither matrix). ) Is used to perform dither processing, and output pseudo halftone output image data (YMCK signal) after processing. The dither processing is not limited to binarization, and multi-value dither processing can also be used when the color image output device 3 has a display gradation of 2 to 3 bits / pixel. Also, error diffusion processing can be used instead of dither processing.

図12及び図13は操作パネル4の一例を示す模式図である。図12に示すように、液晶ディスプレイには、ユーザに対してトナーセーブモードを選択するか否かの指示を受け付けるための「トナーセーブ」ボタン41が表示される。ユーザが「トナーセーブ」ボタン41を操作することにより、トナーセーブモードが選択され、その指示がカラー画像処理装置2内のCPU(不図示)へ出力される。なお、カラー画像出力装置3の種類に応じて、トナーの代わりにインクセーブモードを選択するように構成することもできる。   12 and 13 are schematic views showing an example of the operation panel 4. As shown in FIG. 12, a “toner save” button 41 for accepting an instruction as to whether or not to select the toner save mode is displayed on the liquid crystal display. When the user operates the “toner save” button 41, the toner save mode is selected, and the instruction is output to a CPU (not shown) in the color image processing apparatus 2. It should be noted that the ink save mode may be selected instead of the toner according to the type of the color image output device 3.

図13に示すように、液晶ディスプレイには、原稿の画像に含まれる文字等の領域を判定した結果である領域認識結果が表示される。図では、領域認識の結果、原稿画像のうち3つの矩形領域(例えば、下地領域あるいは図画領域)が表示され、ユーザが選択した領域が反転表示される。ユーザが領域を選択することにより、ユーザの好みに応じて、選択された領域に対してトナーの消費量を低減することができる。   As shown in FIG. 13, the liquid crystal display displays a region recognition result that is a result of determining a region such as a character included in an image of a document. In the figure, as a result of area recognition, three rectangular areas (for example, a background area or a graphic area) of the original image are displayed, and the area selected by the user is highlighted. When the user selects an area, it is possible to reduce toner consumption for the selected area according to the user's preference.

次に、画像形成装置100の動作について説明する。図14はトナーセーブモード時の階調再現処理の手順を示すフローチャートである。なお、階調再現処理は、専用のハードウエア回路で構成するだけでなく、階調再現処理の手順を定めたコンピュータプログラムをRAMにロードしてCPU(いずれも不図示)で実行させることにより行うこともできる。なお、以下の説明では、カラー画像処理装置2を「処理部」という。   Next, the operation of the image forming apparatus 100 will be described. FIG. 14 is a flowchart showing the procedure of gradation reproduction processing in the toner save mode. The tone reproduction process is not only configured by a dedicated hardware circuit, but is also performed by loading a computer program that defines the procedure of the tone reproduction process into the RAM and executing it by a CPU (both not shown). You can also. In the following description, the color image processing apparatus 2 is referred to as a “processing unit”.

処理部は、入力画像データを取得し(S11)、領域認識処理を行う(S12)。なお、領域認識処理の詳細は後述する。処理部は、領域認識結果を表示し(S13)、ユーザによる領域選択があるか否かを判定する(S14)。   The processing unit acquires input image data (S11), and performs region recognition processing (S12). Details of the area recognition process will be described later. The processing unit displays the region recognition result (S13), and determines whether there is a region selection by the user (S14).

領域選択がある場合(S14でYES)、処理部は、選択された領域が下地領域であるか否かを判定し(S15)、下地領域である場合(S15でYES)、下地領域用テーブル282cで濃度変換を行い(S16)、変換後の画像データに対してディザ処理を行って(S17)、擬似中間調の出力画像データを生成して処理を終了する。   If there is an area selection (YES in S14), the processing unit determines whether the selected area is a background area (S15). If it is a background area (YES in S15), the background area table 282c. Then, density conversion is performed (S16), dither processing is performed on the converted image data (S17), pseudo halftone output image data is generated, and the process ends.

下地領域でない場合(S15でNO)、処理部は、選択された領域が図画領域であるか否かを判定する(S18)。図画領域である場合(S18でYES)、処理部は、図画領域用テーブル282bで濃度変換を行い(S19)、ステップS17の処理を行う。図画領域でない場合(S18でNO)、処理部は、文字・写真領域用テーブル282aで濃度変換を行い(S20)、ステップS17の処理を行う。一方、領域選択がない場合(S14でNO)、処理部は、ステップS20以降の処理を行う。   If it is not a background area (NO in S15), the processing unit determines whether or not the selected area is a drawing area (S18). If it is a graphic area (YES in S18), the processing unit performs density conversion using the graphic area table 282b (S19), and performs the process of step S17. If it is not a graphic area (NO in S18), the processing unit performs density conversion using the character / photo area table 282a (S20), and performs the process of step S17. On the other hand, when there is no area selection (NO in S14), the processing unit performs the processes after step S20.

図15は領域認識処理の手順を示すフローチャートである。処理部は、入力画像データに対して二値化処理を行い(S121)、二値化処理された二値化画像に基づいて、所定の条件で黒画素を膨張させてラン(黒画素部)を生成するラン膨張処理を行う(S122)。   FIG. 15 is a flowchart showing the procedure of region recognition processing. The processing unit performs binarization processing on the input image data (S121), and expands black pixels under a predetermined condition based on the binarized image that has been binarized (running the black pixel unit). Run expansion processing is performed to generate (S122).

処理部は、隣接するラン同士を連結して統合するラベリング処理を行い(S123)、連結ランに外接する外接矩形領域を抽出するための外接矩形抽出を行う(S124)。処理部は、抽出された外接矩形領域の大きさ、あるいは外接矩形領域内の画素の濃度分布に基づいて、文字領域、写真領域、図画領域あるいは下地領域のいずれであるかの領域判定を行い(S125)、処理を終了する。   The processing unit performs a labeling process for connecting and integrating adjacent runs (S123), and performs circumscribed rectangle extraction for extracting a circumscribed rectangular region circumscribing the connected runs (S124). Based on the size of the extracted circumscribed rectangular area or the density distribution of pixels in the circumscribed rectangular area, the processing unit determines whether the area is a character area, a photographic area, a graphic area, or a background area ( S125), the process ends.

以上説明したように、本発明にあっては、画質の劣化が見込まれない領域、例えば、下地領域あるいは図画領域に対しては、選択的にトナー又はインクなどの記録材の消費量を低減するための処理を行いつつ、文字領域あるいは写真領域に対しては、画像全体の劣化及び画像に含まれる情報の喪失を防止することができる。また、階調性を重視すべき領域と解像度を重視すべき領域とを区別して階調再現処理を行うことができる。さらに、ユーザの好みに応じて記録材の消費量を低減することができるとともに、忠実な画質を再現することができる。   As described above, according to the present invention, the consumption of the recording material such as toner or ink is selectively reduced in an area where deterioration in image quality is not expected, for example, a background area or a graphic area. For the character area or the photographic area, it is possible to prevent the deterioration of the entire image and the loss of information included in the image. Further, the gradation reproduction process can be performed by distinguishing between the area where the gradation is important and the area where the resolution is important. Furthermore, the consumption of the recording material can be reduced according to the user's preference, and faithful image quality can be reproduced.

実施の形態2
上述の実施の形態1では、判定(認識)された領域に応じて濃度変換のための濃度特性を変更する構成であったが、これに限定されるものではなく、ディザ処理のディザマトリクスのサイズを変更することもできる。
Embodiment 2
In the first embodiment described above, the density characteristic for density conversion is changed according to the determined (recognized) area. However, the present invention is not limited to this, and the size of the dither matrix for dither processing Can also be changed.

図16は実施の形態2の階調再現処理部28の構成を示すブロック図である。階調再現処理部28は、セレクタ281、濃度変換テーブル282、濃度変換部283、ディザ処理部284に加えて、ディザマトリクス部285を備えている。   FIG. 16 is a block diagram illustrating a configuration of the gradation reproduction processing unit 28 according to the second embodiment. The gradation reproduction processing unit 28 includes a dither matrix unit 285 in addition to the selector 281, the density conversion table 282, the density conversion unit 283, and the dither processing unit 284.

セレクタ281は、領域認識処理部23から入力される判定信号に基づいて、濃度変換テーブル282に格納されている複数の濃度変換用テーブルの中から、判定された領域に応じて最適な濃度変換用テーブルを選択するとともに、ディザマトリクス部285に格納されている複数のマトリクスの中から、判定された領域に応じて最適なマトリクスを選択する。また、セレクタ281は、実施の形態1と同様に、空間フィルタ処理部27から入力される画像データ(CMYK信号)のうち領域判定が行われた矩形領域毎の画像データを濃度変換部283へ出力する。   Based on the determination signal input from the area recognition processing unit 23, the selector 281 selects the optimum density conversion from the plurality of density conversion tables stored in the density conversion table 282 according to the determined area. A table is selected, and an optimum matrix is selected from a plurality of matrices stored in the dither matrix unit 285 according to the determined area. Similarly to the first embodiment, the selector 281 outputs, to the density conversion unit 283, image data for each rectangular region in which region determination has been performed among the image data (CMYK signal) input from the spatial filter processing unit 27. To do.

ディザマトリクス部285は、文字領域用マトリクス285a、写真領域用マトリクス285b、図画領域用マトリクス285c、下地領域用マトリクス285dなどを格納している。   The dither matrix unit 285 stores a character area matrix 285a, a photographic area matrix 285b, a graphic area matrix 285c, a background area matrix 285d, and the like.

図17は実施の形態2のディザマトリクスの例を示す模式図である。図に示すように、判定された領域が文字領域である場合に用いられる文字領域用のディザマトリクスは、例えば、2×2、3×3のサイズであり、解像度を重視したディザ処理を行うことができる。   FIG. 17 is a schematic diagram illustrating an example of a dither matrix according to the second embodiment. As shown in the figure, the dither matrix for the character area used when the determined area is a character area has a size of 2 × 2, 3 × 3, for example, and performs dither processing with an emphasis on resolution. Can do.

また、写真領域用のディザマトリクスは、例えば、4×4のサイズであり、文字領域用のディザマトリクスよりサイズが大きいものを用いることにより、文字領域の場合に比べて階調性を重視した処理を行う。また、ディザマトリクスの要素を正方形状に配列する代わりに、図17(b)に示すような、非正方形状のディザマトリクスを用いることもできる。   In addition, the dither matrix for the photographic area has a size of 4 × 4, for example, and uses a larger size than the dither matrix for the character area, so that processing with more emphasis on gradation than the case of the character area is used. I do. Further, instead of arranging the dither matrix elements in a square shape, a non-square dither matrix as shown in FIG. 17B may be used.

また、下地領域、図画領域用のディザマトリクスは、例えば、8×8のサイズであり、写真領域用のディザマトリクスよりサイズが大きいものを用いることにより、さらに階調性を重視した処理を行う。なお、下地領域用のディザマトリクスと図画領域用のディザマトリクスとのサイズが異なるものを用いてもよい。   In addition, the dither matrix for the base area and the graphic area is, for example, 8 × 8 in size, and a process larger in terms of gradation is performed by using a dither matrix having a size larger than that of the photographic area. It should be noted that a dither matrix for the base area and a dither matrix for the graphic area having different sizes may be used.

ディザ処理部284は、選択された文字領域用マトリクス285a、写真領域用マトリクス285b、図画領域用マトリクス285c、下地領域用マトリクス285dのいずれかを用いて、ディザ処理を行う。なお、濃度変換部283、ディザ処理部284の処理内容は、実施の形態1と同様であるので説明は省略する。   The dither processing unit 284 performs dither processing using any of the selected character area matrix 285a, photo area matrix 285b, graphic area matrix 285c, and background area matrix 285d. Note that the processing contents of the density conversion unit 283 and the dither processing unit 284 are the same as those in the first embodiment, and a description thereof will be omitted.

図18及び図19は実施の形態2のトナーセーブモード時の階調再現処理の手順を示すフローチャートである。処理部は、入力画像データを取得し(S31)、領域認識処理を行う(S32)。なお、領域認識処理は、図15で示す処理と同様であるので説明は省略する。処理部は、領域認識結果を表示し(S33)、ユーザによる領域選択があるか否かを判定する(S34)。   FIG. 18 and FIG. 19 are flowcharts showing the procedure of gradation reproduction processing in the toner save mode of the second embodiment. The processing unit acquires input image data (S31), and performs region recognition processing (S32). The region recognition process is the same as the process shown in FIG. The processing unit displays the region recognition result (S33), and determines whether there is a region selection by the user (S34).

領域選択がある場合(S34でYES)、処理部は、選択された領域が文字領域であるか否かを判定する(S35)。文字領域である場合(S35でYES)、処理部は、文字・写真領域用テーブル282aで濃度変換を行い(S36)、文字領域用マトリクス285aでディザ処理を行い(S37)、擬似中間調の出力画像データを生成して処理を終了する。   When there is an area selection (YES in S34), the processing unit determines whether or not the selected area is a character area (S35). If it is a character area (YES in S35), the processing unit performs density conversion using the character / photo area table 282a (S36), performs dither processing using the character area matrix 285a (S37), and outputs pseudo halftones. Image data is generated and the process ends.

文字領域でない場合(S35でNO)、処理部は、選択された領域が下地領域であるか否かの判定を行う(S38)。下地領域である場合(S38でYES)、処理部は、下地領域用テーブル282cで濃度変換を行い(S39)、下地領域用マトリクス285dでディザ処理を行い(S40)、擬似中間調の出力画像データを生成して処理を終了する。   If it is not a character area (NO in S35), the processing unit determines whether or not the selected area is a background area (S38). If it is a background area (YES in S38), the processing unit performs density conversion using the background area table 282c (S39), performs dither processing using the background area matrix 285d (S40), and outputs pseudo halftone output image data. Is generated and the process is terminated.

下地領域でない場合(S38でNO)、処理部は、選択された領域が図画領域であるか否かを判定する(S41)。図画領域である場合(S41でYES)、処理部は、図画領域用テーブル282bで濃度変換を行い(S42)、図画領域用マトリクス285cでディザ処理を行い(S43)、擬似中間調の出力画像データを生成して処理を終了する。   If it is not a background area (NO in S38), the processing unit determines whether or not the selected area is a graphic area (S41). If it is a graphic area (YES in S41), the processing unit performs density conversion in the graphic area table 282b (S42), performs dither processing in the graphic area matrix 285c (S43), and outputs pseudo halftone output image data. Is generated and the process is terminated.

図画領域でない場合(S41でNO)、処理部は、文字・写真領域用テーブル282aで濃度変換を行い(S44)、写真領域用マトリクス285bでディザ処理を行い(S45)、擬似中間調の出力画像データを生成して処理を終了する。一方、領域選択がない場合(S34でNO)、処理部は、ステップS36以降の処理を行う。   If it is not a graphic area (NO in S41), the processing unit performs density conversion using the character / photo area table 282a (S44), performs dither processing using the photo area matrix 285b (S45), and outputs a pseudo-halftone output image. Generate data and end the process. On the other hand, when there is no area selection (NO in S34), the processing unit performs the processes after step S36.

以上説明したように、本発明にあっては、低濃度領域の階調性を重視する処理を行い、装置の周囲温度あるいは経時変化などに起因するドット再現性の変動あるいは色の再現性の低下などを抑制することができるとともに、画像の中に様々な属性の領域が混在している場合であっても、記録材の消費量を低減しつつ忠実な画質の再現を行うことができる。   As described above, in the present invention, processing that places importance on gradation in the low density region is performed, and fluctuations in dot reproducibility or color reproducibility due to the ambient temperature of the apparatus or changes over time are reduced. In addition, even when various attribute areas are mixed in the image, faithful image quality reproduction can be performed while reducing the consumption of the recording material.

上述の実施の形態1、2では、セレクタ281の後段に濃度変換部283、ディザ処理部284を配置する構成であったが、セレクタ281を濃度変換部283、ディザ処理部284の後段に配置することもできる。この場合、濃度変換部283、ディザ処理部284それぞれで各領域に対応する処理を並列に行い、処理後のいずれの画像データを出力するかをセレクタ281で切り替えることができる。   In the first and second embodiments described above, the density conversion unit 283 and the dither processing unit 284 are arranged after the selector 281, but the selector 281 is arranged after the density conversion unit 283 and the dither processing unit 284. You can also. In this case, the density conversion unit 283 and the dither processing unit 284 can perform the processing corresponding to each region in parallel, and the selector 281 can switch which image data after the processing is output.

実施の形態3
実施の形態1、2では、濃度変換テーブル282を用いて濃度変換(低濃度化)を行う構成であったが、これに限定されるものではなく、画像データの画素の一部を間引き処理して低濃度化を行うこともできる。
Embodiment 3
In the first and second embodiments, the density conversion (reduction in density) is performed using the density conversion table 282. However, the present invention is not limited to this, and a part of the pixels of the image data is thinned out. It is also possible to reduce the concentration.

図20は実施の形態3の階調再現処理部28の構成を示すブロック図である。階調再現処理部28は、セレクタ281、間引き処理部286、誤差拡散処理部287、288などを備えている。   FIG. 20 is a block diagram illustrating a configuration of the gradation reproduction processing unit 28 according to the third embodiment. The gradation reproduction processing unit 28 includes a selector 281, a thinning processing unit 286, error diffusion processing units 287 and 288, and the like.

セレクタ281は、領域認識処理部23から入力される判定信号に基づいて、空間フィルタ処理部27から入力される画像データ(CMYK信号)のうち領域判定が行われた矩形領域毎の画像データを間引き処理部286又は誤差拡散処理部288のいずれかへ出力する。例えば、セレクタ281は、文字領域あるいは写真領域であると判定された領域の画像データを誤差拡散処理部288へ出力し、下地領域あるいは図画領域であると判定された領域の画像データを間引き処理部286へ出力する。   Based on the determination signal input from the region recognition processing unit 23, the selector 281 thins out image data for each rectangular region in which region determination has been performed among the image data (CMYK signal) input from the spatial filter processing unit 27. The data is output to either the processing unit 286 or the error diffusion processing unit 288. For example, the selector 281 outputs image data of an area determined to be a character area or a photographic area to the error diffusion processing unit 288, and thins out image data of an area determined to be a background area or a graphic area. Output to 286.

間引き処理部286は、入力された画像データの画素の一部を間引き処理し、処理後の画像データを誤差拡散処理部287へ出力する。間引き処理は、例えば、1画素おきに、連続して隣接する数画素(例えば、4画素)の画素値を「0」にする。これにより、1つの画素の画素値はそのままにして、連続して隣接する4画素の画素値が「0」となった画像データが出力される。なお、1画素おきでなく、2、3など複数の画素おきに間引き処理を行うこともできる。   The thinning processing unit 286 performs a thinning process on a part of the pixels of the input image data, and outputs the processed image data to the error diffusion processing unit 287. In the thinning-out process, for example, the pixel values of several pixels (for example, 4 pixels) that are continuously adjacent to each other are set to “0”. As a result, image data in which the pixel values of four adjacent pixels are “0” is output while the pixel value of one pixel remains unchanged. Note that the thinning-out process can be performed not for every other pixel but for every plurality of pixels such as two or three.

誤差拡散処理部287は、入力された画像データに対して誤差拡散処理を行い、擬似中間調の出力画像データを生成して出力する。誤差拡散処理は、入力画像データの各画素の画素値(例えば、濃度)を二値化する際に生じた誤差(以下、「量子化誤差」という。)を、注目画素の周辺の未だ二値化されていない画素に配分しながら二値化を行なう方法である。この場合、二値化を行う注目画素の量子化誤差は、その注目画素からの相対的位置に応じた重み付けが行なわれた後、注目画素の周辺に位置する二値化処理前の各画素値に加算される。なお、誤差拡散処理部288も同様の処理を行う。   The error diffusion processing unit 287 performs error diffusion processing on the input image data to generate and output pseudo halftone output image data. In the error diffusion processing, an error (hereinafter referred to as “quantization error”) generated when binarizing the pixel value (for example, density) of each pixel of the input image data is still binary around the pixel of interest. This is a method of performing binarization while allocating to pixels that have not been binarized. In this case, the quantization error of the pixel of interest to be binarized is the pixel value before the binarization processing positioned around the pixel of interest after weighting is performed according to the relative position from the pixel of interest. Is added to The error diffusion processing unit 288 performs the same process.

図21は実施の形態3のトナーセーブモード時の階調再現処理の手順を示すフローチャートである。処理部は、入力画像データを取得し(S51)、領域認識処理を行う(S52)。なお、領域認識処理は、図15で示す処理と同様であるので説明は省略する。処理部は、領域認識結果を表示し(S53)、ユーザによる領域選択があるか否かを判定する(S54)。   FIG. 21 is a flowchart showing the procedure of gradation reproduction processing in the toner save mode of the third embodiment. The processing unit acquires input image data (S51), and performs region recognition processing (S52). The region recognition process is the same as the process shown in FIG. The processing unit displays the region recognition result (S53), and determines whether there is a region selection by the user (S54).

領域選択がある場合(S54でYES)、処理部は、選択された領域が下地領域であるか否かの判定を行う(S55)。下地領域でない場合(S55でNO)、処理部は、選択された領域が図画領域であるか否かの判定を行う(S56)。図画領域でない場合(S56でNO)、処理部は、選択された領域の画像データに対して誤差拡散処理を行い(S57)、擬似中間調の出力画像データを生成して処理を終了する。   When there is an area selection (YES in S54), the processing unit determines whether or not the selected area is a background area (S55). If it is not a background area (NO in S55), the processing unit determines whether or not the selected area is a drawing area (S56). If it is not a graphic area (NO in S56), the processing unit performs error diffusion processing on the image data in the selected area (S57), generates pseudo halftone output image data, and ends the process.

下地領域である場合(S55でYES)、処理部は、選択された領域の画像データに対して間引き処理を行い(S58)、ステップS57以降の処理を続ける。また、図画領域である場合(S56でYES)、処理部は、選択された領域の画像データに対して間引き処理を行い(S58)、ステップS57以降の処理を続ける。一方、領域選択がない場合(S54でNO)、処理部は、ステップS57以降の処理を続ける。   If it is a background area (YES in S55), the processing unit performs a thinning process on the image data of the selected area (S58), and continues the process from step S57. If the image area is a graphic area (YES in S56), the processing unit performs a thinning process on the image data in the selected area (S58), and continues the processing from step S57. On the other hand, when there is no area selection (NO in S54), the processing unit continues the processing from step S57.

上述の実施の形態3では、誤差拡散処理を用いる構成であったが、これに限定されるものではなく、誤差拡散処理に代えてディザ処理等他の方法を用いることもできる。また、間引き処理を行う際に、間引きをする画素数は、一例であって、限定されるものではなく、適宜画素数を設定することができる。さらに、セレクタ281の後段に間引き処理部286、誤差拡散処理部287、288を配置する構成であったが、セレクタ281を間引き処理部286、誤差拡散処理部287、288の後段に配置することもできる。この場合、間引き処理部286及び誤差拡散処理部287、並びに誤差拡散処理部288で並列に処理を行い、処理後のいずれの画像データを出力するかをセレクタ281で切り替えることができる。   In the third embodiment described above, the error diffusion process is used. However, the present invention is not limited to this, and other methods such as dithering can be used instead of the error diffusion process. In addition, the number of pixels to be thinned when performing the thinning process is an example, and is not limited, and the number of pixels can be set as appropriate. Further, although the thinning processing unit 286 and the error diffusion processing units 287 and 288 are arranged after the selector 281, the selector 281 may be arranged after the thinning processing unit 286 and the error diffusion processing units 287 and 288. it can. In this case, the thinning processing unit 286, the error diffusion processing unit 287, and the error diffusion processing unit 288 perform processing in parallel, and the selector 281 can switch which image data after processing is output.

以上説明したように、本発明にあっては、画質の劣化が見込まれない領域あるいは特段重要な情報が含まれないような領域、例えば、下地領域あるいは図画領域に対しては、選択的にトナー又はインクなどの記録材の消費量を低減するための処理を行うとともに、その領域の色に関する情報を完全に削除することのない処理を行うことができる。また、重要な情報が含まれる領域、例えば、文字領域あるいは写真領域に対しては、画像全体の劣化の防止及び画像に含まれる情報の喪失の防止をすることができる。   As described above, in the present invention, a toner is selectively applied to an area where deterioration of image quality is not expected or an area where particularly important information is not included, for example, a background area or a graphic area. Alternatively, it is possible to perform a process for reducing the consumption of a recording material such as ink, and at the same time, a process that does not completely delete information on the color of the area. In addition, for an area including important information, for example, a character area or a photograph area, it is possible to prevent deterioration of the entire image and loss of information included in the image.

実施の形態4
上述の実施の形態1〜3では、トナー又はインクなどの記録剤の消費量を低減するために、判定信号に応じて階調再現処理の内容を変更する構成であったが、これに限定されるものではなく、判定信号に応じて色補正処理の内容を変更することにより記録剤の消費量を低減することもできる。
Embodiment 4
In the first to third embodiments described above, in order to reduce the consumption of the recording agent such as toner or ink, the content of the gradation reproduction process is changed according to the determination signal. However, the present invention is not limited to this. However, the consumption of the recording material can be reduced by changing the content of the color correction processing according to the determination signal.

図22は実施の形態4の色補正部25の構成を示すブロック図である。色補正部25はセレクタ251、色補正テーブル252、色補正処理部253などを備えている。   FIG. 22 is a block diagram illustrating a configuration of the color correction unit 25 according to the fourth embodiment. The color correction unit 25 includes a selector 251, a color correction table 252, a color correction processing unit 253, and the like.

セレクタ251は、領域認識処理部23から入力される判定信号に基づいて、色補正テーブル252に格納されている複数の色補正用テーブルの中から、判定された領域に応じて最適な色補正用テーブルを選択する。また、セレクタ251は、領域分離処理部24から入力される画像データ(RGB信号)のうち領域判定が行われた矩形領域毎の画像データを色補正処理部253へ出力する。   Based on the determination signal input from the area recognition processing unit 23, the selector 251 selects an optimum color correction according to the determined area from among a plurality of color correction tables stored in the color correction table 252. Select a table. In addition, the selector 251 outputs image data for each rectangular area in which area determination has been performed among the image data (RGB signals) input from the area separation processing unit 24 to the color correction processing unit 253.

色補正テーブル252は、複数の色補正用テーブルをLUT(Look Up Table)として格納している。色補正用テーブルとして、例えば、文字・写真領域用テーブル252a、図画領域用テーブル252b、下地領域用テーブル252cなどを格納している。   The color correction table 252 stores a plurality of color correction tables as a LUT (Look Up Table). As the color correction table, for example, a character / photo area table 252a, a graphic area table 252b, a background area table 252c, and the like are stored.

色補正処理部253は、セレクタ251で選択された色補正用テーブルを用いて、入力信号をアドレス信号としてLUTを参照し、LUTに格納されたデータを出力するデータとして決定することにより、色空間の変換処理、色補正処理を行い、色補正後のCMY信号を黒生成下色除去部26へ出力する。   The color correction processing unit 253 uses the color correction table selected by the selector 251 to refer to the LUT using the input signal as an address signal, and determines the data stored in the LUT as data to be output, thereby determining the color space. Conversion processing and color correction processing are performed, and the color-corrected CMY signals are output to the black generation and under color removal unit 26.

図23は色補正用テーブルの例を示す説明図である。図23(a)はトナーセーブモードでない場合(通常時)、あるいはトナーセーブモードが選択された場合において、文字・写真領域に対して用いられる文字・写真領域用テーブル252aの例を示す。図23(a)に示すように、文字・写真領域用テーブル252aは、入力信号であるRGB信号の階調数を256階調とした場合、色変換及び色補正後のCMY信号は、それぞれ256階調を表すことができる。   FIG. 23 is an explanatory diagram showing an example of a color correction table. FIG. 23A shows an example of the character / photo area table 252a used for the character / photo area when the toner save mode is not used (normal time) or when the toner save mode is selected. As shown in FIG. 23A, in the character / photo area table 252a, when the number of gradations of the RGB signal as the input signal is 256 gradations, the CMY signals after color conversion and color correction are each 256. It can represent gradation.

図23(b)はトナーセーブモードが選択された場合において、図画領域に対して用いられる図画領域用テーブル252bの例を示す。図23(b)に示すように、図画領域用テーブル252bは、RGB信号の階調数を256階調とした場合、CMY信号は、それぞれ128階調を表すことができる。これにより、色数を低減する。   FIG. 23B shows an example of the graphic area table 252b used for the graphic area when the toner save mode is selected. As shown in FIG. 23B, in the graphic area table 252b, when the number of gradations of the RGB signal is 256 gradations, each of the CMY signals can represent 128 gradations. This reduces the number of colors.

図23(c)はトナーセーブモードが選択された場合において、下地領域に対して用いられる下地領域用テーブル252cの例を示す。図23(c)に示すように、下地領域用テーブル252cは、RGB信号の階調数を256階調とした場合、CMY信号は、それぞれ64階調を表すことができる。このように、文字・写真領域に対して、図画領域、下地領域になるに応じて、色補正用テーブルの階調数を低くすることにより、色数を低減して、トナー又はインクなどの記録剤の消費量を低減することができる。なお、図画領域及び下地領域に対して、図画領域用テーブル252b又は下地領域用テーブル252cのいずれかを用いることもできる。これにより、格納する色補正用テーブルを少なくすることができる。   FIG. 23C shows an example of the base area table 252c used for the base area when the toner save mode is selected. As shown in FIG. 23C, in the base area table 252c, when the number of gradations of the RGB signal is 256 gradations, each of the CMY signals can represent 64 gradations. In this way, the number of colors can be reduced by reducing the number of gradations in the color correction table in accordance with the character / photo area, which becomes a drawing area or background area, and recording of toner or ink, etc. The consumption of the agent can be reduced. Note that either the drawing area table 252b or the underlying area table 252c can be used for the drawing area and the underlying area. Thereby, the number of color correction tables to be stored can be reduced.

図24はトナーセーブモード時の色補正処理の手順を示すフローチャートである。なお、色補正処理は、専用のハードウエア回路で構成するだけでなく、色補正処理の手順を定めたコンピュータプログラムをRAMにロードしてCPU(いずれも不図示)で実行させることにより行うこともできる。なお、以下の説明では、カラー画像処理装置2を「処理部」という。   FIG. 24 is a flowchart showing the procedure of color correction processing in the toner save mode. Note that the color correction process is not only configured by a dedicated hardware circuit, but can also be performed by loading a computer program that defines the procedure of the color correction process into the RAM and executing it by a CPU (both not shown). it can. In the following description, the color image processing apparatus 2 is referred to as a “processing unit”.

処理部は、入力画像データを取得し(S61)、領域認識処理を行う(S62)。なお、領域認識処理は、図15で示す処理と同様であるので説明は省略する。処理部は、領域認識結果を表示し(S63)、ユーザによる領域選択があるか否かを判定する(S64)。   The processing unit acquires input image data (S61), and performs area recognition processing (S62). The region recognition process is the same as the process shown in FIG. The processing unit displays the region recognition result (S63), and determines whether or not there is a region selection by the user (S64).

領域選択がある場合(S64でYES)、処理部は、選択された領域が下地領域であるか否かを判定し(S65)、下地領域である場合(S65でYES)、下地領域用テーブル252cで色補正処理を行い(S66)、処理を終了する。   If there is an area selection (YES in S64), the processing unit determines whether or not the selected area is a background area (S65). If it is a background area (YES in S65), the background area table 252c. Then, color correction processing is performed (S66), and the processing ends.

下地領域でない場合(S65でNO)、処理部は、選択された領域が図画領域であるか否かを判定する(S67)。図画領域である場合(S67でYES)、処理部は、図画領域用テーブル252bで色補正処理を行い(S68)、処理を終了する。図画領域でない場合(S67でNO)、処理部は、文字・写真領域用テーブル252aで色補正処理を行い(S69)、処理を終了する。一方、領域選択がない場合(S64でNO)、処理部は、ステップS69以降の処理を行う。   If it is not a background area (NO in S65), the processing unit determines whether or not the selected area is a graphic area (S67). If it is a graphic area (YES in S67), the processing unit performs a color correction process on the graphic area table 252b (S68) and ends the process. If it is not a graphic region (NO in S67), the processing unit performs color correction processing on the character / photo region table 252a (S69), and ends the processing. On the other hand, when there is no area selection (NO in S64), the processing unit performs the processes after step S69.

上述の色補正処理と階調差威厳処理とを組み合わせることもできる。図25はトナーセーブモード時の色補正処理及び階調再現処理を組み合わせた処理の手順を示すフローチャートである。   It is also possible to combine the above-described color correction processing and gradation difference dignity processing. FIG. 25 is a flowchart showing a processing procedure combining color correction processing and gradation reproduction processing in the toner save mode.

処理部は、入力画像データを取得し(S71)、領域認識処理を行う(S72)。なお、領域認識処理は、図15で示す処理と同様であるので説明は省略する。処理部は、領域認識結果を表示し(S73)、ユーザによる領域選択があるか否かを判定する(S74)。   The processing unit acquires input image data (S71), and performs area recognition processing (S72). The region recognition process is the same as the process shown in FIG. The processing unit displays the region recognition result (S73), and determines whether there is a region selection by the user (S74).

領域選択がある場合(S74でYES)、処理部は、選択された領域が下地領域であるか否かを判定し(S75)、下地領域である場合(S75でYES)、下地領域用テーブル252cで色補正処理を行い(S76)、下地領域用テーブル282cで濃度変換を行い(S77)、変換後の画像データに対して階調再現処理を行って(S78)、擬似中間調の出力画像データを生成して処理を終了する。   If there is an area selection (YES in S74), the processing unit determines whether or not the selected area is a background area (S75). If it is a background area (YES in S75), the background area table 252c. The color correction process is performed (S76), the density conversion is performed using the background area table 282c (S77), the gradation reproduction process is performed on the converted image data (S78), and the pseudo halftone output image data is obtained. Is generated and the process is terminated.

下地領域でない場合(S75でNO)、処理部は、選択された領域が図画領域であるか否かを判定する(S79)。図画領域である場合(S79でYES)、処理部は、図画領域用テーブル252bで色補正処理を行い(S80)、図画領域用テーブル282bで濃度変換を行い(S81)、ステップS78以降の処理を行う。   If it is not a background area (NO in S75), the processing unit determines whether or not the selected area is a graphic area (S79). If it is a graphic area (YES in S79), the processing unit performs color correction processing with the graphic area table 252b (S80), performs density conversion with the graphic area table 282b (S81), and performs the processing after step S78. Do.

図画領域でない場合(S79でNO)、処理部は、文字・写真領域用テーブル252aで色補正処理を行い(S82)、文字・写真領域用テーブル282aで濃度変換を行い(S83)、ステップS78以降の処理を行う。一方、領域選択がない場合(S74でNO)、処理部は、ステップS82以降の処理を行う。   If it is not a graphic region (NO in S79), the processing unit performs color correction processing using the character / photo region table 252a (S82), performs density conversion using the character / photo region table 282a (S83), and subsequent steps S78 and thereafter. Perform the process. On the other hand, when there is no area selection (NO in S74), the processing unit performs the processes after step S82.

色補正処理と階調再現処理とを組み合わせることにより、原稿の種別に応じて処理を選択することができる。例えば、ビジネス文書に写真が含まれる原稿の場合、色数を低減した色補正処理を行い、中間調(階調再現)を変更しないときは、写真の解像度が維持され、比較的画質の劣化は少なくすることができる。また、ビジネス文書に写真が含まれない原稿の場合、中間調処理を行い、多少、解像度が低下しても画質への影響を防止することができる。また、ドラフトモードで出力するような、画質を余り気にしない原稿の場合、色数を削減させるとともに階調数を低減させる。このような処理の選択は、例えば、画像モードとして予め設定しておき、デジタル複合機の操作パネルより選択することができ、又は、ホスト・コンピュータのプリンタドライバ設定画面にて選択することができる。   By combining color correction processing and gradation reproduction processing, processing can be selected according to the type of document. For example, in the case of a manuscript that includes a photograph in a business document, color correction processing with a reduced number of colors is performed, and when the halftone (tone reproduction) is not changed, the resolution of the photograph is maintained and the image quality is relatively degraded. Can be reduced. In addition, in the case of a manuscript that does not include a photograph in a business document, halftone processing is performed, so that the influence on the image quality can be prevented even if the resolution is somewhat reduced. Also, in the case of a document that does not care about image quality, such as output in draft mode, the number of colors and the number of gradations are reduced. Such processing can be selected, for example, in advance as an image mode and can be selected from the operation panel of the digital multi-function peripheral, or can be selected on the printer driver setting screen of the host computer.

以上説明したように、本発明にあっては、画質の劣化が見込まれない領域あるいは特段重要な情報が含まれないような領域、例えば、下地領域あるいは図画領域に対しては、色補正のための色数を低減して、選択的にトナー又はインクなどの記録材の消費量を低減するための処理を行うとともに、その領域の色に関する情報を完全に削除することのない処理を行うことができる。また、重要な情報が含まれる領域、例えば、文字領域あるいは写真領域に対しては、画像全体の劣化の防止及び画像に含まれる情報の喪失の防止をすることができる。   As described above, in the present invention, an area in which deterioration in image quality is not expected or an area that does not include particularly important information, for example, a background area or a graphic area, is used for color correction. In addition to performing processing for selectively reducing the consumption of recording material such as toner or ink by reducing the number of colors in the image, processing that does not completely delete information regarding the color of the area is performed. it can. In addition, for an area including important information, for example, a character area or a photograph area, it is possible to prevent deterioration of the entire image and loss of information included in the image.

上述の実施の形態3では、セレクタ251の後段に色補正処理部253を配置する構成であったが、セレクタ251を色補正処理部253の後段に配置することもできる。この場合、色補正処理部253で各領域(下地領域、図画領域、文字・写真領域)に対応する色補正処理を並列に行い、処理後のいずれの画像データを出力するかをセレクタ251で切り替えることができる。   In the third embodiment described above, the color correction processing unit 253 is arranged at the subsequent stage of the selector 251, but the selector 251 can also be arranged at the subsequent stage of the color correction processing unit 253. In this case, the color correction processing unit 253 performs color correction processing corresponding to each region (background region, drawing region, character / photo region) in parallel, and the selector 251 switches which image data is output after processing. be able to.

上述の実施の形態3では、下地領域に対する色補正にLUTを用いる構成であったが、これに限定されるものではなく、例えば、マトリクス係数aijを用いて計算式(1)を用いて演算することもできる。ここで、i=0〜8、j=0〜2である。   In the third embodiment described above, the LUT is used for color correction for the background region. However, the present invention is not limited to this. For example, the calculation is performed using the calculation coefficient (1) using the matrix coefficient aij. You can also. Here, i = 0 to 8 and j = 0 to 2.

Figure 2008092541
Figure 2008092541

実施の形態5
実施の形態1〜4では、カラー画像処理装置2を備える画像形成装置100に本発明を適用した例について説明したが、本発明の適用範囲は、画像形成装置に限定されるものではなく、プリンタドライバに組み込んでパーソナルコンピュータで本発明を実現することもできる。
Embodiment 5
In the first to fourth embodiments, the example in which the present invention is applied to the image forming apparatus 100 including the color image processing apparatus 2 has been described. However, the scope of the present invention is not limited to the image forming apparatus, and a printer The present invention can also be realized by a personal computer incorporated in a driver.

図26は実施の形態5の画像処理システムの構成を示すブロック図である。実施の形態5の画像処理システムは、コンピュータ5、例えば、スキャナ又はデジタルカメラ等のカラー画像入力装置1と、例えば、プリンタ等のカラー画像出力装置3などを備え、コンピュータ5には、プリンタドライバ50がインストールされているとともに、通信ポートドライバ51、通信ポート(例えば、RS232C、LAN等)52が設けられている。   FIG. 26 is a block diagram showing a configuration of the image processing system according to the fifth embodiment. The image processing system according to the fifth embodiment includes a computer 5, for example, a color image input device 1 such as a scanner or a digital camera, and a color image output device 3 such as a printer. The computer 5 includes a printer driver 50. Are installed, and a communication port driver 51 and a communication port (for example, RS232C, LAN, etc.) 52 are provided.

プリンタドライバ50は、領域認識処理部501、色補正処理部502、フィルタ処理部503、階調再現処理部504、出力画像データをプリンタ言語(PJL:Printer Job Language)に翻訳するプリンタ言語翻訳部505などを有する。なお、領域認識処理部501、色補正処理部502、フィルタ処理部503、及び階調再現処理部504それぞれは、上述の領域認識処理部23、色補正部25、空間フィルタ処理部27、階調再現処理部28と同様の機能を有する。   The printer driver 50 includes an area recognition processing unit 501, a color correction processing unit 502, a filter processing unit 503, a gradation reproduction processing unit 504, and a printer language translation unit 505 that translates output image data into a printer language (PJL: Printer Job Language). Etc. The region recognition processing unit 501, the color correction processing unit 502, the filter processing unit 503, and the gradation reproduction processing unit 504 are respectively the above-described region recognition processing unit 23, color correction unit 25, spatial filter processing unit 27, and gradation. It has the same function as the reproduction processing unit 28.

コンピュータ5は、カラー画像入力装置1から取得した入力画像データに対して、領域認識処理部501、色補正処理部502、フィルタ処理部503、階調再現処理部504で随時処理されることにより、原稿に印刷された文字、写真、及び図画並びに下地等の領域が判定され、判定された領域毎に所要の濃度変換、階調再現処理が施された擬似中間調の出力画像データを生成する。プリンタ言語翻訳部505は、生成された出力画像データをプリンタ言語に変換し、変換されたデータは、通信ポートドライバ51、通信ポート52を介してカラー画像出力装置3(例えば、電子写真方式やインクジェット方式等のプリンタ)へ出力される。   The computer 5 processes the input image data acquired from the color image input device 1 at any time by the area recognition processing unit 501, the color correction processing unit 502, the filter processing unit 503, and the gradation reproduction processing unit 504. Areas such as characters, photographs, drawings and backgrounds printed on the original are determined, and pseudo-halftone output image data is generated in which the determined density conversion and gradation reproduction processing are performed for each determined area. The printer language translation unit 505 converts the generated output image data into a printer language, and the converted data is transmitted to the color image output device 3 (for example, an electrophotographic system or an inkjet via the communication port driver 51 and the communication port 52). Output to a printer of the type).

また、トナーセーブモード(又はインクセーブモードでもよい)を選択することができるように構成して、トナーセーブモードが選択された場合には、領域認識処理を行い、トナーセーブモードが選択されていない場合には、領域分離処理を行うようにすることもできる。   Further, the toner save mode (or the ink save mode may be selected) can be selected. When the toner save mode is selected, the area recognition process is performed, and the toner save mode is not selected. In some cases, region separation processing may be performed.

上述の実施の形態1〜5では、トナーの消費量を低減する場合について説明したが、これに限定されるものではなく、インク等他の記録材の消費量を低減することもできる。   In the first to fifth embodiments described above, the case where the toner consumption is reduced has been described. However, the present invention is not limited to this, and the consumption of other recording materials such as ink can also be reduced.

上述の実施の形態1〜5では、トナーセーブモードの選択をユーザが指定する構成であるが、これに限定されるものではなく、ユーザの指定にかかわらず、原稿の属性、すなわち、判定された領域に応じて低濃度化の濃度変換、解像度あるいは階調性のいずれかを重視した階調再現処理を施すように構成することもできる。また、低濃度化の濃度変換、解像度あるいは階調性のいずれかを重視した階調再現処理を施す領域をユーザが選択する構成に代えて、これらの処理をユーザの選択の有無にかかわらず自動的に行うようにすることもできる。   In the first to fifth embodiments described above, the user designates the selection of the toner save mode. However, the present invention is not limited to this, and the attributes of the document, that is, the determination is made regardless of the designation by the user. It is also possible to perform gradation reproduction processing that emphasizes density conversion for low density, resolution, or gradation, depending on the area. In addition, instead of a configuration in which the user selects an area to be subjected to gradation reproduction processing that emphasizes either density conversion for low density, resolution, or gradation, these processes are automatically performed regardless of whether or not the user selects. It can also be done automatically.

上述の実施の形態において、カラー画像入力装置1としては、例えば、フラットベッドスキャナ、フィルムスキャナ、デジタルカメラ、携帯電話機などが用いられる。また、カラー画像出力装置3としては、例えば、CRTディスプレイ、液晶ディスプレイなどの画像表示装置、処理結果を記録紙などに出力する電子写真方式又はインクジェット方式のプリンタなどが用いられる。さらに、画像形成装置100としては、ネットワークを介してサーバ装置などに接続するための通信手段としてのモデムなどを備えることもできる。また、カラー画像入力装置1からカラー画像データを取得する代わりに、ネットワークを介して外部記憶装置、サーバ装置などからカラー画像データを取得する構成でもよい。   In the above-described embodiment, as the color image input device 1, for example, a flat bed scanner, a film scanner, a digital camera, a mobile phone, or the like is used. Further, as the color image output device 3, for example, an image display device such as a CRT display or a liquid crystal display, an electrophotographic system or an ink jet system printer that outputs processing results to recording paper or the like is used. Further, the image forming apparatus 100 may include a modem as a communication unit for connecting to a server apparatus or the like via a network. Further, instead of acquiring the color image data from the color image input device 1, the color image data may be acquired from an external storage device, a server device, or the like via a network.

本発明はコンピュータに実行させるためのプログラムコードを記録したコンピュータでの読み取り可能な記録媒体に、階調再現処理などを行うプログラムコードを記録することもできる。この結果、上記処理を行うプログラムコードを記録した記録媒体を持ち運び自在に提供することができる。記録媒体としては、マイクロコンピュータで処理が行われるために図示しないメモリ、例えばROMのようなプログラムメディアであってもよく、図示しない外部記憶装置としてのプログラム読取装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであってもよい。   In the present invention, a program code for performing gradation reproduction processing or the like can be recorded on a computer-readable recording medium on which a program code to be executed by a computer is recorded. As a result, it is possible to provide a portable recording medium on which the program code for performing the above processing is recorded. The recording medium may be a non-illustrated memory, for example, a program medium such as a ROM because processing is performed by a microcomputer, and a program reading device as an external storage device (not illustrated) is provided, and the recording medium is stored therein. It may be a program medium that can be read by being inserted.

いずれの場合においても、格納されているプログラムコードはマイクロプロセッサがアクセスして実行させる構成であってもよいし、プログラムコードを読み出し、読み出されたプログラムコードは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされて、そのプログラムコードが実行される方式であってもよい。この場合、ダウンロード用のコンピュータプログラムは予め本体装置に格納されているものとする。   In any case, the stored program code may be configured to be accessed and executed by the microprocessor, or the program code is read, and the read program code is a program (not shown) of the microcomputer. The program code may be downloaded to the storage area and executed. In this case, it is assumed that the computer program for download is stored in the main device in advance.

ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスク並びにCD−ROM/MO/MD/DVD等の光ディスクのディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムコードを担持する媒体であってもよい。   Here, the program medium is a recording medium configured to be separable from the main body, such as a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a flexible disk or a hard disk, and a CD-ROM / MO / MD / DVD. Optical discs, IC cards (including memory cards) / optical cards, etc., semiconductors such as mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, etc. It may be a medium that carries a fixed program code including a memory.

この場合、インターネットを含む通信ネットワークを接続可能なシステム構成であることから、通信ネットワークからプログラムコードをダウンロードするように流動的にプログラムコードを担持する媒体であってもよい。なお、このように通信ネットワークからプログラムコードをダウンロードする場合には、そのダウンロード用のコンピュータプログラムは予め本体装置に格納しておくか、あるいは別の記録媒体からインストールされるものであってもよい。   In this case, since the system configuration is such that a communication network including the Internet can be connected, the medium may be a medium that dynamically carries the program code so as to download the program code from the communication network. When the program code is downloaded from the communication network in this way, the computer program for downloading may be stored in the main device in advance or may be installed from another recording medium.

本発明に係る画像処理装置を備える画像形成装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus including an image processing apparatus according to the present invention. 領域認識処理部の構成を示すブロック図である。It is a block diagram which shows the structure of an area | region recognition process part. ラン膨張処理の内容を示す説明図である。It is explanatory drawing which shows the content of a run expansion process. ラン情報の例を示す説明図である。It is explanatory drawing which shows the example of run information. 連結ラン情報の例を示す説明図である。It is explanatory drawing which shows the example of connection run information. 外接矩形領域の抽出方法を示す説明図である。It is explanatory drawing which shows the extraction method of a circumscribed rectangle area | region. 外接矩形情報の例を示す説明図である。It is explanatory drawing which shows the example of circumscribed rectangle information. 外接矩形領域の大きさ(長さ)を判定するための判定条件を示す説明図である。It is explanatory drawing which shows the determination conditions for determining the magnitude | size (length) of a circumscribed rectangular area. 濃度ヒストグラムの例を示す説明図である。It is explanatory drawing which shows the example of a density histogram. 階調再現処理部の構成を示すブロック図である。It is a block diagram which shows the structure of a gradation reproduction process part. 濃度変換テーブルの濃度特性の例を示す説明図である。It is explanatory drawing which shows the example of the density | concentration characteristic of a density | concentration conversion table. 操作パネルの一例を示す模式図である。It is a schematic diagram which shows an example of an operation panel. 操作パネルの一例を示す模式図である。It is a schematic diagram which shows an example of an operation panel. トナーセーブモード時の階調再現処理の手順を示すフローチャートである。6 is a flowchart illustrating a procedure of gradation reproduction processing in a toner save mode. 領域認識処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of an area | region recognition process. 実施の形態2の階調再現処理部の構成を示すブロック図である。6 is a block diagram illustrating a configuration of a gradation reproduction processing unit according to Embodiment 2. FIG. 実施の形態2のディザマトリクスの例を示す模式図である。6 is a schematic diagram illustrating an example of a dither matrix according to Embodiment 2. FIG. 実施の形態2のトナーセーブモード時の階調再現処理の手順を示すフローチャートである。10 is a flowchart illustrating a procedure of gradation reproduction processing in a toner save mode according to the second embodiment. 実施の形態2のトナーセーブモード時の階調再現処理の手順を示すフローチャートである。10 is a flowchart illustrating a procedure of gradation reproduction processing in a toner save mode according to the second embodiment. 実施の形態3の階調再現処理部の構成を示すブロック図である。10 is a block diagram illustrating a configuration of a gradation reproduction processing unit according to Embodiment 3. FIG. 実施の形態3のトナーセーブモード時の階調再現処理の手順を示すフローチャートである。14 is a flowchart illustrating a procedure of tone reproduction processing in a toner save mode according to a third embodiment. 実施の形態4の色補正部の構成を示すブロック図である。FIG. 10 is a block diagram illustrating a configuration of a color correction unit according to a fourth embodiment. 色補正用テーブルの例を示す説明図である。It is explanatory drawing which shows the example of the table for color correction. トナーセーブモード時の色補正処理の手順を示すフローチャートである。6 is a flowchart illustrating a procedure of color correction processing in a toner save mode. トナーセーブモード時の色補正処理及び階調再現処理を組み合わせた処理の手順を示すフローチャートである。6 is a flowchart illustrating a procedure of processing that combines color correction processing and gradation reproduction processing in a toner save mode. 実施の形態5の画像処理システムの構成を示すブロック図である。FIG. 10 is a block diagram illustrating a configuration of an image processing system according to a fifth embodiment.

符号の説明Explanation of symbols

1 カラー画像入力装置
2 カラー画像処理装置
3 カラー画像出力装置
4 操作パネル
23、501 領域認識処理部
28、504 階調再現処理部
50 プリンタドライバ
231 二値化処理部
232 ラン膨張処理部
233 ラベリング処理部
234 外接矩形抽出処理部
235 判定部
251、281 セレクタ
252 色補正テーブル
253 色補正処理部
282 濃度変換テーブル
283 濃度変換部
284 ディザ処理部
285 ディザマトリクス部
286 間引き処理部
287、288 誤差拡散処理部
DESCRIPTION OF SYMBOLS 1 Color image input device 2 Color image processing device 3 Color image output device 4 Operation panel 23,501 Area recognition processing unit 28,504 Tone reproduction processing unit 50 Printer driver 231 Binization processing unit 232 Run expansion processing unit 233 Labeling processing Unit 234 circumscribed rectangle extraction processing unit 235 determination unit 251, 281 selector 252 color correction table 253 color correction processing unit 282 density conversion table 283 density conversion unit 284 dither processing unit 285 dither matrix unit 286 decimation processing unit 287, 288 error diffusion processing unit

Claims (17)

入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理方法において、
入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出し、
抽出された領域の濃度差分を算出し、
算出された濃度差分が所定の閾値より小さい場合、前記領域の各画素の濃度値を低濃度値に変換し、
変換して得られた画像データを含む入力画像データに階調再現処理を施すことを特徴とする画像処理方法。
In an image processing method for generating pseudo-halftone output image data by performing gradation reproduction processing on input image data,
Extract one or more regions based on the pixel value of each pixel in the input image data,
Calculate the density difference of the extracted area,
When the calculated density difference is smaller than a predetermined threshold, the density value of each pixel in the region is converted to a low density value,
An image processing method characterized by performing gradation reproduction processing on input image data including image data obtained by conversion.
抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域に対して行列数の大きいディザ行列を用いてディザ処理を行い、
抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域に対して行列数の小さいディザ行列を用いてディザ処理を行って階調再現処理を施すことを特徴とする請求項1に記載の画像処理方法。
When the density difference of the extracted area is smaller than a predetermined threshold, dither processing is performed using a dither matrix having a large number of matrices for the area,
2. The tone reproduction process according to claim 1, wherein when the density difference of the extracted area is larger than a predetermined threshold, the area is subjected to a gradation reproduction process by performing a dither process using a dither matrix having a small number of matrices. Image processing method.
入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理方法において、
入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出し、
抽出された領域の濃度差分を算出し、
算出された濃度差分が所定の閾値より小さい場合、前記領域の画像データを含む入力画像データに対して階調再現処理を施す前又は後に、前記領域の画素の一部を間引き処理することを特徴とする画像処理方法。
In an image processing method for generating pseudo-halftone output image data by performing gradation reproduction processing on input image data,
Extract one or more regions based on the pixel value of each pixel in the input image data,
Calculate the density difference of the extracted area,
When the calculated density difference is smaller than a predetermined threshold value, a part of pixels in the area is thinned out before or after the gradation reproduction process is performed on the input image data including the image data of the area. An image processing method.
抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域に対して低階調数で色補正を行い、
抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域に対して高階調数で色補正を行って階調再現処理を施すことを特徴とする請求項1乃至請求項3のいずれか1つに記載の画像処理方法。
When the density difference of the extracted area is smaller than a predetermined threshold, color correction is performed on the area with a low number of gradations,
4. The gradation reproduction process according to claim 1, wherein when the density difference of the extracted area is larger than a predetermined threshold, color correction is performed on the area with a high number of gradations to perform gradation reproduction processing. The image processing method as described in one.
入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理方法において、
入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出し、
抽出された領域の濃度差分を算出し、
算出された濃度差分が所定の閾値より小さい場合、前記領域に対して低階調数で色補正を行い、
色補正して得られた画像データを含む入力画像データに階調再現処理を施すことを特徴とする画像処理方法。
In an image processing method for generating pseudo-halftone output image data by performing gradation reproduction processing on input image data,
Extract one or more regions based on the pixel value of each pixel in the input image data,
Calculate the density difference of the extracted area,
When the calculated density difference is smaller than a predetermined threshold, color correction is performed on the area with a low number of gradations,
An image processing method characterized by applying gradation reproduction processing to input image data including image data obtained by color correction.
抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域を下地領域又は図画領域として識別し、
抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域を文字領域又は写真領域として識別することを特徴とする請求項1乃至請求項5のいずれか1つに記載の画像処理方法。
If the density difference of the extracted area is smaller than a predetermined threshold, the area is identified as a background area or a drawing area,
6. The image processing method according to claim 1, wherein if the density difference of the extracted area is larger than a predetermined threshold, the area is identified as a character area or a photograph area.
入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理装置において、
入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出する抽出手段と、
該抽出手段で抽出された領域の濃度差分を算出する算出手段と、
該算出手段で算出された濃度差分が所定の閾値より小さい場合、前記領域の各画素の濃度値を低濃度値に変換する変換手段と、
該変換手段で変換して得られた画像データを含む入力画像データに階調再現処理を施す手段と
を備えることを特徴とする画像処理装置。
In an image processing apparatus that performs gradation reproduction processing on input image data to generate pseudo-halftone output image data,
Extraction means for extracting one or a plurality of regions based on the pixel value of each pixel in the input image data;
Calculating means for calculating a density difference of the region extracted by the extracting means;
Conversion means for converting the density value of each pixel in the region to a low density value when the density difference calculated by the calculation means is smaller than a predetermined threshold;
An image processing apparatus comprising: means for performing gradation reproduction processing on input image data including image data obtained by conversion by the conversion means.
前記階調再現処理を施す手段は、
前記抽出手段で抽出された領域の濃度差分が所定の閾値より小さい場合、行列数の大きいディザ行列に基づいて前記領域に対して施されるディザ処理と、
前記抽出手段で抽出された領域の濃度差分が所定の閾値より大きい場合、行列数の小さいディザ行列に基づいて前記領域に対して施されるディザ処理と
を有することを特徴とする請求項7に記載の画像処理装置。
The means for performing the gradation reproduction process is:
When the density difference of the region extracted by the extracting means is smaller than a predetermined threshold, a dithering process applied to the region based on a dither matrix having a large number of matrices;
And a dithering process applied to the region based on a dither matrix having a small number of matrices when the density difference of the region extracted by the extracting unit is larger than a predetermined threshold. The image processing apparatus described.
入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理装置において、
入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出する抽出手段と、
該抽出手段で抽出された領域の濃度差分を算出する算出手段と、
該算出手段で算出された濃度差分が所定の閾値より小さい場合、前記領域の画像データを含む入力画像データに対して階調再現処理を施す前又は後に、前記領域の画素の一部を間引き処理する手段と
を備えることを特徴とする画像処理装置。
In an image processing apparatus that performs gradation reproduction processing on input image data to generate pseudo-halftone output image data,
Extraction means for extracting one or a plurality of regions based on the pixel value of each pixel in the input image data;
Calculating means for calculating a density difference of the region extracted by the extracting means;
If the density difference calculated by the calculation means is smaller than a predetermined threshold, a part of the pixels in the area is thinned out before or after the gradation reproduction process is performed on the input image data including the image data of the area. And an image processing apparatus.
抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域に対して低階調数で色補正を行い、抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域に対して高階調数で色補正を行う色補正手段を備え、
該色補正手段で色補正された画像データを含む入力画像データに階調再現処理を施すように構成してあることを特徴とする請求項7乃至請求項9のいずれか1つに記載の画像処理装置。
When the density difference of the extracted area is smaller than a predetermined threshold, color correction is performed on the area with a low gradation number, and when the density difference of the extracted area is larger than the predetermined threshold, Color correction means that performs color correction with a high number of gradations,
The image according to any one of claims 7 to 9, wherein gradation reproduction processing is performed on input image data including image data color-corrected by the color correction means. Processing equipment.
入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成する画像処理装置において、
入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出する抽出手段と、
該抽出手段で抽出された領域の濃度差分を算出する算出手段と、
該算出手段で算出された濃度差分が所定の閾値より小さい場合、前記領域に対して低階調数で色補正を行う色補正手段と、
該色補正手段で色補正された画像データを含む入力画像データに階調再現処理を施す手段と
を備えることを特徴とする画像処理装置。
In an image processing apparatus that performs gradation reproduction processing on input image data to generate pseudo-halftone output image data,
Extraction means for extracting one or a plurality of regions based on the pixel value of each pixel in the input image data;
Calculating means for calculating a density difference of the region extracted by the extracting means;
When the density difference calculated by the calculation means is smaller than a predetermined threshold, color correction means for performing color correction with a low number of gradations on the area;
An image processing apparatus comprising: means for performing gradation reproduction processing on input image data including image data color-corrected by the color correction means.
前記抽出手段で抽出された領域の濃度差分が所定の閾値より小さい場合、前記領域を下地領域又は図画領域として識別する手段と、
前記抽出手段で抽出された領域の濃度差分が所定の閾値より大きい場合、前記領域を文字領域又は写真領域として識別する手段と
を備えることを特徴とする請求項7乃至請求項11のいずれか1つに記載の画像処理装置。
Means for identifying the area as a background area or a graphic area when the density difference of the area extracted by the extracting means is smaller than a predetermined threshold;
12. The method according to claim 7, further comprising: a unit for identifying the region as a character region or a photo region when the density difference of the region extracted by the extracting unit is larger than a predetermined threshold value. The image processing apparatus described in one.
トナー又はインクの消費量を低減するための指示を受け付ける受付手段と、
該受付手段で指示を受け付けた場合、前記抽出手段、算出手段及び変換手段での処理並びに前記間引き処理を行うように制御する制御手段と
を備えることを特徴とする請求項7乃至請求項12のいずれか1つに記載の画像処理装置。
Accepting means for accepting an instruction to reduce the consumption of toner or ink;
13. The control unit according to claim 7, further comprising: a control unit configured to perform control so as to perform the processing in the extraction unit, the calculation unit, and the conversion unit and the thinning-out process when an instruction is received by the reception unit. The image processing apparatus according to any one of the above.
請求項7乃至請求項13のいずれか1つに記載の画像処理装置と、該画像処理装置で生成された出力画像データに基づいて出力画像を形成する画像形成手段とを備えることを特徴とする画像形成装置。   An image processing apparatus according to claim 7, and an image forming unit that forms an output image based on output image data generated by the image processing apparatus. Image forming apparatus. コンピュータに、入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成させるためのコンピュータプログラムにおいて、
コンピュータを、入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出する手段と、
コンピュータを、抽出された領域の濃度差分を算出する手段と、
コンピュータを、算出された濃度差分が所定の閾値より小さい場合、前記領域の各画素の濃度値を低濃度値に変換する手段と、
コンピュータを、変換して得られた画像データを含む入力画像データに階調再現処理を施す手段と
して機能させることを特徴とするコンピュータプログラム。
In a computer program for causing a computer to generate gradation halftone output image data by performing gradation reproduction processing on input image data,
Means for extracting one or more regions based on the pixel value of each pixel in the input image data;
Means for calculating a density difference of the extracted area;
Means for converting the density value of each pixel in the region into a low density value when the calculated density difference is smaller than a predetermined threshold;
A computer program causing a computer to function as means for performing gradation reproduction processing on input image data including image data obtained by conversion.
コンピュータに、入力画像データに階調再現処理を施して擬似中間調の出力画像データを生成させるためのコンピュータプログラムにおいて、
コンピュータを、入力画像データ中の各画素の画素値に基づいて、1又は複数の領域を抽出する手段と、
コンピュータを、抽出された領域の濃度差分を算出する手段と、
コンピュータを、算出された濃度差分が所定の閾値より小さい場合、前記領域の画像データを含む入力画像データに対して階調再現処理を施す前又は後に、前記領域の画素の一部に間引き処理する手段と
して機能させることを特徴とするコンピュータプログラム。
In a computer program for causing a computer to generate gradation halftone output image data by performing gradation reproduction processing on input image data,
Means for extracting one or more regions based on the pixel value of each pixel in the input image data;
Means for calculating a density difference of the extracted area;
When the calculated density difference is smaller than a predetermined threshold, the computer thins out a part of the pixels in the area before or after applying the gradation reproduction process to the input image data including the image data of the area. A computer program that functions as a means.
請求項15又は請求項16に記載のコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。
17. A computer-readable recording medium in which the computer program according to claim 15 or 16 is recorded.
JP2007008293A 2006-09-06 2007-01-17 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium Pending JP2008092541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007008293A JP2008092541A (en) 2006-09-06 2007-01-17 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2006241924 2006-09-06
JP2007008293A JP2008092541A (en) 2006-09-06 2007-01-17 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium

Publications (1)

Publication Number Publication Date
JP2008092541A true JP2008092541A (en) 2008-04-17

Family

ID=39376154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007008293A Pending JP2008092541A (en) 2006-09-06 2007-01-17 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium

Country Status (1)

Country Link
JP (1) JP2008092541A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010157982A (en) * 2008-12-05 2010-07-15 Sharp Corp Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2011151777A (en) * 2009-12-25 2011-08-04 Canon Finetech Inc Image processing method, and image processing apparatus
JP2013224022A (en) * 2012-03-22 2013-10-31 Canon Inc Image processing apparatus, image processing method, and program
CN110691249A (en) * 2018-07-04 2020-01-14 株式会社岛津制作所 Image signal compression and decompression processing device and method and transmission system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09186877A (en) * 1995-12-28 1997-07-15 Sharp Corp Image processing device
JPH1115968A (en) * 1997-06-24 1999-01-22 Toshiba Corp Image processing device and image forming device
JP2000295469A (en) * 1999-04-01 2000-10-20 Toshiba Corp Image forming device
JP2002232704A (en) * 2001-01-31 2002-08-16 Ricoh Co Ltd Image processing apparatus and image forming apparatus
JP2003051939A (en) * 2001-08-06 2003-02-21 Toshiba Tec Corp Image processing apparatus and image processing method
JP2003230006A (en) * 2002-02-04 2003-08-15 Sharp Corp Image processing method, image processing apparatus, and image forming apparatus
JP2005101765A (en) * 2003-09-22 2005-04-14 Sharp Corp Image processing method, image processing apparatus, and image forming apparatus
JP2005252701A (en) * 2004-03-04 2005-09-15 Sharp Corp Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium
JP2006229817A (en) * 2005-02-21 2006-08-31 Sharp Corp Background detection method, program, recording medium, image processing apparatus, and image forming apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09186877A (en) * 1995-12-28 1997-07-15 Sharp Corp Image processing device
JPH1115968A (en) * 1997-06-24 1999-01-22 Toshiba Corp Image processing device and image forming device
JP2000295469A (en) * 1999-04-01 2000-10-20 Toshiba Corp Image forming device
JP2002232704A (en) * 2001-01-31 2002-08-16 Ricoh Co Ltd Image processing apparatus and image forming apparatus
JP2003051939A (en) * 2001-08-06 2003-02-21 Toshiba Tec Corp Image processing apparatus and image processing method
JP2003230006A (en) * 2002-02-04 2003-08-15 Sharp Corp Image processing method, image processing apparatus, and image forming apparatus
JP2005101765A (en) * 2003-09-22 2005-04-14 Sharp Corp Image processing method, image processing apparatus, and image forming apparatus
JP2005252701A (en) * 2004-03-04 2005-09-15 Sharp Corp Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium
JP2006229817A (en) * 2005-02-21 2006-08-31 Sharp Corp Background detection method, program, recording medium, image processing apparatus, and image forming apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010157982A (en) * 2008-12-05 2010-07-15 Sharp Corp Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2011151777A (en) * 2009-12-25 2011-08-04 Canon Finetech Inc Image processing method, and image processing apparatus
CN102180038A (en) * 2009-12-25 2011-09-14 佳能精技股份有限公司 Image processing method and image processing apparatus
JP2013224022A (en) * 2012-03-22 2013-10-31 Canon Inc Image processing apparatus, image processing method, and program
CN110691249A (en) * 2018-07-04 2020-01-14 株式会社岛津制作所 Image signal compression and decompression processing device and method and transmission system

Similar Documents

Publication Publication Date Title
US7940434B2 (en) Image processing apparatus, image forming apparatus, method of image processing, and a computer-readable storage medium storing an image processing program
JP2993014B2 (en) Image quality control method for image processing device
JP4878572B2 (en) Image processing apparatus and image processing method
US7982913B2 (en) Image processing apparatus and image processing method for suppressing jaggies in the edge portions of image
US7903872B2 (en) Image-processing apparatus and method, computer program, and storage medium
JP4568748B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP3989738B2 (en) Image forming method, image forming apparatus, program, and recording medium
JP2008011267A (en) Image processing apparatus, image processing method, image processing program, and storage medium
US7733534B2 (en) Image processing method, image processing apparatus, image forming apparatus, and recording medium
JP2008252700A (en) Image processing apparatus and image processing method
JP5095667B2 (en) Output instruction apparatus, image forming system, output instruction method, control program, and recording medium therefor
JP2008092541A (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4402090B2 (en) Image forming apparatus, image forming method, program, and recording medium
EP0949801A2 (en) Image process apparatus, image process method and storage medium
JP4112413B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium on which image processing program is recorded
JP2010278933A (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP7266462B2 (en) IMAGE PROCESSING APPARATUS, IMAGE FORMING APPARATUS, IMAGE PROCESSING METHOD AND PROGRAM
JP2005072635A (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, and computer-readable recording medium on which image processing program is recorded
JP2007053439A (en) Isolated point determination apparatus, image processing apparatus, image reading apparatus, image forming apparatus, isolated point determination method, isolated point determination program, image processing program, computer-readable recording medium
CN100452827C (en) Image processing method, image processing apparatus, image forming apparatus, and recording medium
JP5122507B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4176656B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium recording the program
JPH02291773A (en) Contrast adjustment system of image processor
JP2005175824A (en) Image processing method, image processing apparatus, image forming apparatus, and computer program
JP4271644B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium recording image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100330

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100525

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100629