Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4596964B2 - Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium - Google Patents
[go: Go Back, main page]

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

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

Info

Publication number
JP4596964B2
JP4596964B2 JP2005124262A JP2005124262A JP4596964B2 JP 4596964 B2 JP4596964 B2 JP 4596964B2 JP 2005124262 A JP2005124262 A JP 2005124262A JP 2005124262 A JP2005124262 A JP 2005124262A JP 4596964 B2 JP4596964 B2 JP 4596964B2
Authority
JP
Japan
Prior art keywords
image
halftone
pixel
continuous tone
diffusion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005124262A
Other languages
Japanese (ja)
Other versions
JP2006304015A (en
Inventor
義則 村上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2005124262A priority Critical patent/JP4596964B2/en
Publication of JP2006304015A publication Critical patent/JP2006304015A/en
Application granted granted Critical
Publication of JP4596964B2 publication Critical patent/JP4596964B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

本発明は、入力画像の各画素を量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、中間調の生成を行う画像処理装置、画像形成装置、画像処理方法、前記中間調の生成をコンピュータに行わせるコンピュータプログラム、及び、該コンピュータプログラムが記録された記録媒体に関する。   The present invention uses an error diffusion method that diffuses an error generated when quantizing each pixel of an input image to each non-quantized pixel around the pixel based on a corresponding diffusion coefficient. The present invention relates to an image processing apparatus, an image forming apparatus, an image processing method, a computer program for causing a computer to generate the halftone, and a recording medium on which the computer program is recorded.

近年、OA機器のデジタル化が急速に進展し、またカラー画像出力の需要が増したことにより、電子写真方式のデジタルカラー複写機、及びインクジェット方式又は熱転写方式のカラープリンタ等の出力機器が広く一般に普及している。たとえば、デジタルカメラもしくはイメージスキャナ等の入力機器から入力された画像、又はコンピュータで作成された画像がこれらの出力機器を用いて出力されている。これらの出力機器においては、入力された画像に対して、擬似階調再現処理を行っている場合が多い。   In recent years, digitalization of office automation equipment has been rapidly progressed, and demand for color image output has increased, so that output devices such as electrophotographic digital color copying machines and ink jet or thermal transfer color printers have become widely available. It is popular. For example, an image input from an input device such as a digital camera or an image scanner, or an image created by a computer is output using these output devices. These output devices often perform pseudo gradation reproduction processing on input images.

擬似階調再現処理の1つの手法として、誤差拡散法がある。しかし、誤差拡散法では、固定された拡散係数をすべての画素に対して適用するため、蓄積誤差が周期性のあるものとなり、テクスチャやワームを生じてしまう。テクスチャの発生を抑えるために、重み付け係数の配置を乱数に基づいて切換えることにより、拡散係数の配置をランダムに切換える技術が提案されている(例えば特許文献1参照)。   One method of pseudo gradation reproduction processing is an error diffusion method. However, in the error diffusion method, since a fixed diffusion coefficient is applied to all the pixels, the accumulation error becomes periodic, resulting in a texture and a worm. In order to suppress the occurrence of texture, a technique has been proposed in which the arrangement of diffusion coefficients is switched randomly by switching the arrangement of weighting coefficients based on random numbers (see, for example, Patent Document 1).

さらに、より高品位かつ精細に画像を再現する手法として、エッジ領域と非エッジ領域を識別し、エッジ領域の量子化誤差を拡散する画素のマトリクスサイズを、非エッジ領域の量子化誤差を拡散する画素のマトリクスサイズより小さくする手法が提案されている(例えば特許文献1参照)。
特公平6−44800号公報 黒沢俊晴、「改良型誤差拡散(MED)法による出力画像特性」、画像電子学会誌、1991年、第20巻、第5号、p.443−449
Furthermore, as a technique for reproducing images with higher quality and detail, the edge area and the non-edge area are identified, the matrix size of the pixel that diffuses the quantization error in the edge area, and the quantization error in the non-edge area is diffused. A method for making the pixel size smaller than the pixel matrix size has been proposed (see, for example, Patent Document 1).
Japanese Patent Publication No. 6-44800 Toshiharu Kurosawa, “Output Image Characteristics by Improved Error Diffusion (MED) Method”, Journal of the Institute of Image Electronics Engineers, 1991, Vol. 20, No. 5, p. 443-449

しかし、拡散係数の配置をランダムに切り換えた場合は、網点写真又は網点領域において、網点の周期的パターンの再現性が、拡散係数を固定している場合よりも劣化するという問題が生じる。一方、特許文献1では、各領域毎の拡散係数は夫々固定であるため、印画紙写真(連続階調写真)又は写真領域(印画紙写真などの連続階調領域)でテクスチャが生じるという問題がある。   However, when the arrangement of the diffusion coefficients is switched at random, there is a problem that the reproducibility of the periodic pattern of halftone dots is deteriorated in a halftone photograph or a halftone area than when the diffusion coefficient is fixed. . On the other hand, in Patent Document 1, since the diffusion coefficient for each region is fixed, there is a problem that a texture is generated in a photographic paper photograph (continuous gradation photograph) or a photographic region (continuous gradation area such as a photographic paper photograph). is there.

本発明は斯かる事情に鑑みてなされたものであり、量子化する画素が連続階調画像又は連続階調領域に含まれるか網点画像又は網点領域に含まれるかを識別し、識別結果が連続階調画像又は連続階調領域の場合は複数組の拡散係数のうちの何れか1つの組を無作為に選択し、識別結果が網点画像又は網点領域の場合は所定の拡散係数の組を選択し、選択した組の拡散係数に基づいて誤差を拡散させることにより、処理対象の画像の種類(原稿種別)又は処理対象の画素が属する領域に応じて適切なドット粒状で中間調生成を行い、画質を向上させることができる画像処理装置、画像形成装置、画像処理方法、コンピュータプログラム及び記録媒体を提供することを目的とする。   The present invention has been made in view of such circumstances, and identifies whether a pixel to be quantized is included in a continuous tone image or a continuous tone region or a halftone image or a halftone region, and an identification result Is a continuous tone image or continuous tone region, one of a plurality of sets of diffusion coefficients is selected at random, and if the identification result is a halftone image or halftone region, a predetermined diffusion coefficient is selected. By selecting a set of images and diffusing the error based on the diffusion coefficient of the selected set, halftone with an appropriate dot granularity according to the type of image to be processed (document type) or the region to which the pixel to be processed belongs. An object of the present invention is to provide an image processing apparatus, an image forming apparatus, an image processing method, a computer program, and a recording medium that can generate and improve image quality.

また、本発明は、中間調の生成を行う画像に強調処理又は平滑化処理を行う空間フィルタ処理手段と、前記識別結果が網点画像の場合あるいは前記識別結果が網点領域の場合は空間フィルタ処理手段による処理を禁止又は空間フィルタ処理手段に強調処理を行わせる制御手段とを備えることにより、網点の再現性を向上させることができる画像処理装置及び画像形成装置を提供することを他の目的とする。   Further, the present invention provides a spatial filter processing means for performing an enhancement process or a smoothing process on an image for generating a halftone, and a spatial filter when the identification result is a halftone image or when the identification result is a halftone area. It is another object of the present invention to provide an image processing apparatus and an image forming apparatus capable of improving the reproducibility of halftone dots by including control means for prohibiting processing by the processing means or causing the spatial filter processing means to perform enhancement processing. Objective.

また、本発明は、乱数発生器が発生した乱数に基づいて、記憶部に記憶されている何れか1つの組を選択するように構成したことにより、乱数に応じて1つの組を無作為に選択することができる画像処理装置及び画像形成装置を提供することを他の目的とする。   In addition, the present invention is configured to select any one set stored in the storage unit based on the random number generated by the random number generator, so that one set is randomly selected according to the random number. Another object is to provide an image processing apparatus and an image forming apparatus that can be selected.

また、本発明は、記憶部に記憶されている何れか1つの組を、色成分毎に選択するように構成したことにより、連続階調画像又は連続階調領域において、複数色のドットが重なり難くなり、ドットの粒状性を向上させることができる画像処理装置及び画像形成装置を提供することを他の目的とする。   In the present invention, any one set stored in the storage unit is selected for each color component, so that dots of a plurality of colors overlap in a continuous tone image or continuous tone region. Another object of the present invention is to provide an image processing apparatus and an image forming apparatus that are difficult to improve and can improve the granularity of dots.

また、本発明は、記憶部に記憶されている所定の組を、全色成分に共通の1組だけ選択するように構成したことにより、網点画像又は網点領域において、原稿画像に近い粒状性の画像を出力し、ドットの粒状性を向上させることができる画像処理装置及び画像形成装置を提供することを他の目的とする。   Further, according to the present invention, a predetermined set stored in the storage unit is selected so that only one set common to all color components is selected. Another object of the present invention is to provide an image processing apparatus and an image forming apparatus capable of outputting a characteristic image and improving dot granularity.

本発明に係る画像処理装置は、連続階調領域を主に有する連続階調画像の各画素と網点領域を主に有する網点画像の各画素とを量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、中間調の生成を行う画像処理装置において、連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数を複数組記憶する記憶部と、量子化する画素が連続階調画像に含まれるか、網点画像に含まれるかを識別する識別手段と、中間調の生成を行う画像に強調処理又は平滑化処理を行う空間フィルタ処理手段と、前記識別手段による識別結果が網点画像の場合、空間フィルタ処理手段による処理を禁止又は空間フィルタ処理手段に強調処理を行わせる制御手段と、前記識別結果が連続階調画像の場合は、各画素について誤差拡散を行う都度、記憶部に記憶されている連続階調画像用の拡散係数の組から1つの組を無作為に選択し、前記識別結果が網点画像の場合は、記憶部に記憶されている所定の組を選択する選択手段とを備え、該選択手段が選択した組の拡散係数に基づいて誤差を拡散させるように構成してあることを特徴とする。 The image processing apparatus according to the present invention provides an error generated when quantizing each pixel of a continuous tone image mainly having a continuous tone region and each pixel of a halftone image mainly having a dot region. In an image processing apparatus that generates halftones using an error diffusion method in which diffusion is performed based on a diffusion coefficient corresponding to each non-quantized pixel around the pixel, a range of error diffusion for a continuous tone image is The continuous tone image includes a storage unit for storing a plurality of sets of diffusion coefficients for continuous tone images and halftone dot images that are set to be wider than the error diffusion range for the halftone image, and pixels to be quantized. Identification means for identifying whether the image is included in a halftone dot image, spatial filter processing means for performing enhancement processing or smoothing processing on an image for generating halftones, and when the identification result by the identification means is a halftone image Spatial filter processing And control means for causing the enhancement process to prohibit or spatial filtering means by the processing means, the identification if the result is a continuous tone image, each time of performing error diffusion for each pixel, a continuous floor stored in the storage unit A selection unit that randomly selects one set from a set of diffusion coefficients for tonal images and selects the predetermined set stored in the storage unit when the identification result is a halftone image; An error is diffused based on a set of diffusion coefficients selected by the selection means.

本発明に係る画像処理装置は、連続階調領域と網点領域とを有する画像の各画素を量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、中間調の生成を行う画像処理装置において、連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数を複数組記憶する記憶部と、量子化する画素が連続階調領域に含まれるか、網点領域に含まれるかを識別する識別手段と、中間調の生成を行う画像に強調処理又は平滑化処理を行う空間フィルタ処理手段と、前記識別手段による識別結果が網点領域の場合、空間フィルタ処理手段による処理を禁止又は空間フィルタ処理手段に強調処理を行わせる制御手段と、前記識別結果が連続階調領域の場合は、各画素について誤差拡散を行う都度、記憶部に記憶されている連続階調画像用の拡散係数の組から1つの組を無作為に選択し、前記識別結果が網点領域の場合は、記憶部に記憶されている所定の組を選択する選択手段とを備え、該選択手段が選択した組の拡散係数に基づいて誤差を拡散させるように構成してあることを特徴とする。 The image processing apparatus according to the present invention provides a diffusion corresponding to each non-quantized pixel in the vicinity of the pixel for errors generated when quantizing each pixel of an image having a continuous tone region and a halftone dot region. In an image processing apparatus that generates halftones using an error diffusion method that diffuses based on coefficients, the range of error diffusion for continuous tone images is set to be wider than the range of error diffusion for halftone images. A storage unit that stores a plurality of sets of diffusion coefficients for continuous tone images and halftone images, and an identification unit that identifies whether a pixel to be quantized is included in a continuous tone region or a halftone dot region A spatial filter processing unit that performs enhancement processing or smoothing processing on an image that generates halftones; and when the identification result by the identification unit is a halftone dot region, the processing by the spatial filter processing unit is prohibited or spatial filtering processing. And control means for causing the emphasis processing means, when the identification result of the continuous tone region, each time for performing error diffusion for each pixel, from the set of the diffusion coefficient for the continuous-tone image stored in the storage unit When one set is selected at random, and the identification result is a halftone dot region, a selection means for selecting a predetermined set stored in the storage unit is provided, and the diffusion coefficient of the set selected by the selection means It is characterized by diffusing the error based on the above.

本発明に係る画像処理装置は、乱数発生器を備え、前記選択手段は、乱数発生器が発生した乱数に基づいて、前記記憶部に記憶されている何れか1つの組を選択するように構成してあることを特徴とする。   An image processing apparatus according to the present invention includes a random number generator, and the selection unit is configured to select any one set stored in the storage unit based on a random number generated by the random number generator. It is characterized by being.

本発明に係る画像処理装置は、各画素は複数の色成分を含み、色成分毎に誤差拡散法による中間調の生成を行っており、前記選択手段は、前記記憶部に記憶されている何れか1つの組を、色成分毎に選択するように構成してあることを特徴とする。   In the image processing apparatus according to the present invention, each pixel includes a plurality of color components, and a halftone is generated by an error diffusion method for each color component, and the selection unit is any one of those stored in the storage unit. One set is configured to be selected for each color component.

本発明に係る画像処理装置は、各画素は複数の色成分を含み、色成分毎に誤差拡散法による中間調の生成を行っており、前記選択手段は、前記記憶部に記憶されている所定の組を、全色成分に共通の1組だけ選択するように構成してあることを特徴とする。   In the image processing apparatus according to the present invention, each pixel includes a plurality of color components, and a halftone is generated by an error diffusion method for each color component, and the selection unit is a predetermined unit stored in the storage unit. In this case, only one set common to all color components is selected.

本発明に係る画像形成装置は、上述した本発明の画像処理装置と、該画像処理装置によって中間調の生成が行われた画像をシートに形成する画像形成手段とを備えることを特徴とする。   An image forming apparatus according to the present invention includes the above-described image processing apparatus according to the present invention and an image forming unit that forms an image on which a halftone has been generated by the image processing apparatus.

本発明に係る画像処理方法は、連続階調領域を主に有する連続階調画像の各画素と網点領域を主に有する網点画像の各画素とを量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、中間調の生成を行う画像処理方法において、量子化する画素が連続階調画像に含まれるか、網点画像に含まれるかを識別するステップと、該ステップによる識別結果が網点画像の場合、空間フィルタ処理としての強調処理又は平滑化処理のうち、強調処理を中間調の生成を行う画像に施す処理、又は前記空間フィルタ処理を行わずに次のステップへ移行させる処理の何れか一方を選択的に実行するステップと、連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数の複数の組のうち、前記識別結果が連続階調画像の場合は、各画素について誤差拡散を行う都度、連続階調画像用の拡散係数の組から何れか1つの組を無作為に選択し、前記識別結果が網点画像の場合は、所定の拡散係数の組を選択するステップとを有し、選択した組の拡散係数に基づいて誤差を拡散させることを特徴とする。 In the image processing method according to the present invention, errors generated when quantizing each pixel of a continuous tone image mainly having a continuous tone region and each pixel of a halftone image mainly having a halftone region are described above. In an image processing method that generates halftones using an error diffusion method that diffuses each non-quantized pixel around the pixel based on the corresponding diffusion coefficient, the pixel to be quantized is included in the continuous tone image And whether the halftone image is included in the halftone image, and if the identification result of the step is a halftone image, the enhancement processing or smoothing processing as the spatial filter processing is performed to generate halftones. process applied to the image to be, or a step of selectively performing either processing for shifting to the next step without spatial filtering, the range to the error diffusion for the continuous tone image, the halftone image Among the plurality of pairs of the diffusion coefficient for the continuous tone image and for halftone image is set to be wider than the range to be diffused, when the identification result is a continuous tone image, the error diffusion for each pixel Each time, one of the sets of diffusion coefficients for the continuous tone image is selected at random, and when the identification result is a halftone image, a predetermined set of diffusion coefficients is selected. The error is diffused based on a selected set of diffusion coefficients.

本発明に係る画像処理方法は、連続階調領域と網点領域とを有する画像の各画素を量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、中間調の生成を行う画像処理方法において、量子化する画素が連続階調領域に含まれるか、網点領域に含まれるかを識別するステップと、該ステップによる識別結果が網点領域の場合、空間フィルタ処理としての強調処理又は平滑化処理のうち、強調処理を中間調の生成を行う画像に施す処理、又は前記空間フィルタ処理を行わずに次のステップへ移行させる処理の何れか一方を選択的に実行するステップと、連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数の複数の組のうち、前記識別結果が連続階調領域の場合は、各画素について誤差拡散を行う都度、連続階調画像用の拡散係数の組から何れか1つの組を無作為に選択し、前記識別結果が網点領域の場合は、所定の拡散係数の組を選択するステップとを有し、選択した組の拡散係数に基づいて誤差を拡散させることを特徴とする。 According to the image processing method of the present invention, an error generated when quantizing each pixel of an image having a continuous tone region and a halftone dot region is diffused corresponding to each unquantized pixel around the pixel. Identifying whether a pixel to be quantized is included in a continuous tone region or a halftone dot region in an image processing method for generating a halftone using an error diffusion method that diffuses based on a coefficient; In the case where the identification result in the step is a halftone dot region, among the enhancement processing or smoothing processing as the spatial filter processing, the processing for applying the enhancement processing to the image for generating the halftone, or without performing the spatial filtering processing and selectively perform either of a process of shifting to the next step, the range for error diffusion for continuous tone images, set to be wider than the range for error diffusion for halftone image Among the plurality of pairs of the diffusion coefficient for the continuous tone image and for halftone image were, when the identification result of the continuous tone region, each time for performing error diffusion for each pixel, the diffusion for continuous-tone image Randomly selecting one of the coefficient sets, and, when the identification result is a halftone dot region, selecting a predetermined set of diffusion coefficients, and based on the diffusion coefficient of the selected set And diffusing errors.

本発明に係るコンピュータプログラムは、連続階調領域を主に有する連続階調画像の各画素と網点領域を主に有する網点画像の各画素とを量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、コンピュータに中間調を生成させるコンピュータプログラムにおいて、コンピュータに、量子化する画素が連続階調画像に含まれるか、網点画像に含まれるかを識別させる手順と、コンピュータに、前記手順による識別結果が網点画像の場合、空間フィルタ処理としての強調処理又は平滑化処理のうち、強調処理を中間調の生成を行う画像に施す処理、又は前記空間フィルタ処理を行わずに次の手順へ移行させる処理の何れか一方を選択的に実行させる手順と、コンピュータに、連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数の複数の組のうち、前記識別結果が連続階調画像の場合は、各画素について誤差拡散を行う都度、連続階調画像用の拡散係数の組から何れか1つの組を無作為に選択させ、前記識別結果が網点画像の場合は、所定の拡散係数の組を選択させる手順とを含み、コンピュータに、選択した組の拡散係数に基づいて誤差を拡散させることを特徴とする。 The computer program according to the present invention provides an error generated when quantizing each pixel of a continuous tone image mainly having a continuous tone region and each pixel of a halftone image mainly having a dot region. In a computer program that causes a computer to generate a halftone using an error diffusion method that diffuses to each neighboring non-quantized pixel based on a corresponding diffusion coefficient, the computer to quantize a continuous tone image And when the identification result of the procedure is a halftone dot image, the computer performs the enhancement process among the enhancement process or the smoothing process as a spatial filter process. A procedure for selectively executing one of a process to be performed on an image for generating a halftone or a process for shifting to the next procedure without performing the spatial filter process; The computer, a range for error diffusion for a continuous tone image, among a plurality of sets of the diffusion coefficient for the continuous tone image and for halftone image is set to be wider than the range for error diffusion for halftone images, When the identification result is a continuous tone image, each time error diffusion is performed for each pixel, any one set is randomly selected from the set of diffusion coefficients for the continuous tone image, and the identification result is a halftone dot. In the case of an image, the method includes a procedure of selecting a predetermined set of diffusion coefficients, and causing the computer to diffuse an error based on the selected set of diffusion coefficients.

本発明に係るコンピュータプログラムは、連続階調領域と網点領域とを有する画像の各画素を量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、コンピュータに中間調を生成させるコンピュータプログラムにおいて、コンピュータに、量子化する画素が連続階調領域に含まれるか、網点領域に含まれるかを識別させる手順と、コンピュータに、前記手順による識別結果が網点領域の場合、空間フィルタ処理としての強調処理又は平滑化処理のうち、強調処理を中間調の生成を行う画像に施す処理、又は前記空間フィルタ処理を行わずに次の手順へ移行させる処理の何れか一方を選択的に実行させる手順と、コンピュータに、連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数の複数の組のうち、前記識別結果が連続階調領域の場合は、各画素について誤差拡散を行う都度、連続階調画像用の拡散係数の組から何れか1つの組を無作為に選択させ、前記識別結果が網点領域の場合は、所定の拡散係数の組を選択させる手順とを含み、コンピュータに、選択した組の拡散係数に基づいて誤差を拡散させることを特徴とする。 The computer program according to the present invention provides a diffusion coefficient corresponding to each non-quantized pixel in the vicinity of the pixel with an error generated when each pixel of an image having a continuous tone region and a halftone dot region is quantized. In a computer program that causes a computer to generate a halftone using an error diffusion method that diffuses based on the image, allows the computer to identify whether the pixel to be quantized is included in a continuous tone region or a halftone dot region A procedure and a computer that performs an enhancement process on an image that generates halftones among an enhancement process or a smoothing process as a spatial filter process when the identification result of the procedure is a halftone dot region, or the spatial filter and procedures for either the process of shifting the process to the next step without selectively executed, the computer, the error expansion for a continuous tone image Range is found among the plurality of sets of the diffusion coefficient for the continuous tone image and for halftone image is set to be wider than the range for error diffusion for halftone images, when the identification result of the continuous tone area Each time error diffusion is performed for each pixel, any one set is selected from a set of diffusion coefficients for continuous tone images, and when the identification result is a halftone dot region, a predetermined diffusion coefficient is set. And causing the computer to diffuse the error based on the selected set of diffusion coefficients.

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

本発明においては、量子化する画素が連続階調画像又は連続階調領域に含まれる場合は、複数組の拡散係数のうちの何れか1つの組を無作為に選択し、量子化する画素が網点画像又は網点領域に含まれる場合は、所定の拡散係数の組を選択し、選択した組の拡散係数に基づいて誤差を拡散させることにより、処理対象の画像の種類(原稿種別)又は処理対象の画素が属する領域に応じて適切なドット粒状で中間調生成を行うことができる。例えば、拡散係数を無作為に選択する場合、拡散係数を固定する場合と比べて、量子化済みの各画素から集積される誤差の割合が変動するため、連続階調画像又は連続階調領域において、過剰なドットの重なりを抑制することができる。また、拡散係数を固定した場合、拡散係数を無作為に切換えた場合と比べて、量子化済みの各画素から集積される誤差の割合は一定であるため、入力画像中の1つ1つの網点の間のような画素値の低い部分にドットが出力されること、及び、網点を形成している画素値の高い部分にドットが出力されないことを抑制することができる。ここで、上述した誤差拡散法を用いた中間調生成処理は、画像処理装置又はシートに画像を形成する画像形成装置だけでなく、コンピュータに実行させることも可能である。コンピュータに前記処理を実行させる場合は、前記処理を実行させるコンピュータプログラムを記録媒体に記録するなどしてコンピュータに提供する。   In the present invention, when a pixel to be quantized is included in a continuous tone image or a continuous tone region, any one of a plurality of sets of diffusion coefficients is randomly selected, and the pixel to be quantized is When included in a halftone image or halftone dot region, a predetermined set of diffusion coefficients is selected, and an error is diffused based on the selected set of diffusion coefficients, whereby the type of image to be processed (document type) or Halftone generation can be performed with appropriate dot granularity according to the region to which the pixel to be processed belongs. For example, when the diffusion coefficient is selected randomly, the error rate accumulated from each quantized pixel varies compared to the case where the diffusion coefficient is fixed. , Excessive dot overlap can be suppressed. In addition, when the diffusion coefficient is fixed, since the ratio of errors accumulated from each quantized pixel is constant as compared with the case where the diffusion coefficient is switched at random, each network in the input image is fixed. It can be suppressed that dots are output to a portion having a low pixel value such as between dots, and that dots are not output to a portion having a high pixel value forming a halftone dot. Here, the halftone generation process using the error diffusion method described above can be executed not only by the image processing apparatus or the image forming apparatus that forms an image on a sheet but also by a computer. When the computer executes the process, a computer program for executing the process is provided to the computer by recording it on a recording medium.

本発明においては、前記識別結果が網点画像の場合あるいは前記識別結果が網点領域の場合、強調処理又は平滑化処理を行う空間フィルタ処理手段による処理を禁止する又は強調処理を行うように制御手段で制御するため、網点の再現性を向上させることができる。従来はモアレを防止するために網点領域に平滑化処理が行われているが、平滑化処理が行われた場合は網点の形態がくずれ、網点の再現性が低下する。しかし、本発明では網点領域に対して、空間フィルタ処理をスルーさせる(処理を禁止する)か、あるいは弱い強調処理を行うことにより、網点の形態がくずれるのを防止することができる。   In the present invention, when the identification result is a halftone image or when the identification result is a halftone area, the processing by the spatial filter processing means for performing the enhancement process or the smoothing process is prohibited or the enhancement process is performed. Since it is controlled by means, the reproducibility of halftone dots can be improved. Conventionally, smoothing processing is performed on a halftone dot region in order to prevent moire. However, when smoothing processing is performed, the halftone dot shape is lost, and the reproducibility of halftone dots is reduced. However, in the present invention, it is possible to prevent the halftone dot form from being broken by passing through the spatial filter process (prohibiting the process) or performing a weak emphasis process on the halftone dot region.

本発明においては、乱数発生器が発生した乱数に基づいて、前記記憶部に記憶されている何れか1つの組を前記選択手段が選択するため、乱数に応じて1つの組を無作為に選択することができる。例えば組A〜Eのうち、組Aを所定の組とし、組B〜Eの何れか1つを無作為に選択することが可能である。または、例えば組A〜Dのうち、組Aを所定の組とすると共に、組A〜Dの何れか1つを無作為に選択することも可能である。後者の場合は、組Aが共通で使用されるため、メモリ容量などを低下させて回路規模を低減することができる。   In the present invention, since the selection means selects any one set stored in the storage unit based on the random number generated by the random number generator, one set is randomly selected according to the random number. can do. For example, among the sets A to E, the set A can be a predetermined set, and any one of the sets B to E can be selected at random. Alternatively, for example, among the sets A to D, the set A may be a predetermined set, and any one of the sets A to D may be selected at random. In the latter case, since the group A is used in common, the circuit capacity can be reduced by reducing the memory capacity and the like.

本発明においては、前記記憶部に記憶されている何れか1つの組を、前記選択手段が色成分毎に選択し、色成分毎に誤差拡散法による中間調の生成を行うため、連続階調領域においては、全色成分で同じ拡散係数を用いる場合と比べて、各色成分の画素毎に集積される誤差の比率が変動し、集積される誤差の比率が多い色成分と少ない色成分とが生じる。そのため、グレー、レッド、グリーン、イエローあるいはこれらに近い色の比較的淡い濃度で、複数色のドットが重なり難くなり、ドットの粒状性を向上させることができる。   In the present invention, any one set stored in the storage unit is selected for each color component by the selection unit, and halftone generation is performed for each color component by an error diffusion method. In the area, compared with the case where the same diffusion coefficient is used for all color components, the ratio of errors accumulated for each pixel of each color component varies, and there are color components with a large ratio of accumulated errors and few color components. Arise. For this reason, it is difficult for dots of a plurality of colors to overlap at a relatively light density of gray, red, green, yellow, or a color close to these, and the graininess of the dots can be improved.

本発明においては、前記記憶部に記憶されている所定の組を、全色成分に共通の1組だけ前記選択手段が選択し、色成分毎に誤差拡散法による中間調の生成を行うため、黒、レッド、グリーン、ブルーなどの網点部分においては、同一の固定の拡散係数の組で処理され、またシアン、マゼンタ、イエローの3色あるいは2色の量子化値および誤差の拡散が各画素でほぼ類似するため、各色成分毎に別々の拡散係数の組を用いる場合と比べて、原稿画像の網点の色で出力される画素の割合が多くなり、元の画像に近い粒状性の画像を出力することができる。   In the present invention, the selection means selects only one set common to all color components from the predetermined set stored in the storage unit, and generates a halftone by an error diffusion method for each color component. Black, red, green, blue, and other halftone dots are processed with the same set of fixed diffusion coefficients, and cyan, magenta, and yellow three- or two-color quantized values and error diffusion are applied to each pixel. Therefore, compared to the case of using different sets of diffusion coefficients for each color component, the ratio of pixels output in the halftone color of the original image is larger, and the image has a graininess close to that of the original image. Can be output.

本発明によれば、処理対象の画像の種類(原稿種別)又は処理対象の画素が属する領域に応じて適切なドット粒状で中間調生成を行うことができ、画質を向上させることができる。   According to the present invention, halftone generation can be performed with appropriate dot granularity according to the type of image to be processed (document type) or the region to which the pixel to be processed belongs, and the image quality can be improved.

本発明によれば、網点の再現性を向上させることができる。網点領域において、原稿画像に近い画像を出力することができる。   According to the present invention, the reproducibility of halftone dots can be improved. An image close to the original image can be output in the halftone dot region.

本発明によれば、複数の組の中から、乱数に応じて1つの組を無作為に選択することができる。   According to the present invention, one set can be randomly selected from a plurality of sets according to a random number.

本発明によれば、連続階調領域において、複数色のドットが重なり難くなり、ドットの粒状性を向上させることができる。   According to the present invention, it is difficult for dots of a plurality of colors to overlap in a continuous tone region, and the graininess of the dots can be improved.

本発明によれば、網点領域において、原稿画像に近い粒状性の画像を出力し、ドットの粒状性を向上させることができる。   According to the present invention, in a halftone dot region, an image having a graininess close to that of a document image can be output, and the dot graininess can be improved.

以下、本発明をその実施の形態を示す図面に基づいて具体的に説明する。
(実施の形態1)
図1は本発明に係る画像処理装置10を備えるデジタルカラー複写機(画像形成装置)20の概略構成を示すブロック図である。デジタルカラー複写機20は、画像入力装置22、画像出力装置(画像形成手段)24、及び、操作パネル26を備える。また、画像処理装置10は、A/D(アナログ/デジタル)変換部11、シェーディング補正部12、入力階調補正部13、領域分離処理部14、色補正部15、黒生成下色除去部16、空間フィルタ処理部17、出力階調補正部18、及び、階調再現処理部19を備える。
Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof.
(Embodiment 1)
FIG. 1 is a block diagram showing a schematic configuration of a digital color copying machine (image forming apparatus) 20 provided with an image processing apparatus 10 according to the present invention. The digital color copying machine 20 includes an image input device 22, an image output device (image forming means) 24, and an operation panel 26. The image processing apparatus 10 includes an A / D (analog / digital) conversion unit 11, a shading correction unit 12, an input tone correction unit 13, a region separation processing unit 14, a color correction unit 15, and a black generation and under color removal unit 16. A spatial filter processing unit 17, an output tone correction unit 18, and a tone reproduction processing unit 19.

画像入力装置22は、例えば、CCD(Charge Coupled Device;電荷結合素子)を用いたイメージスキャナを含んでおり、例えば原稿画像が記録されたシートからの反射光像を、CCDによってアナログRGB(R:赤、G:緑、B:青)信号として読取り、画像処理装置10へ出力するものである。画像入力装置22で読取られたアナログRGB信号は、画像処理装置10内を、A/D変換部11、シェーディング補正部12、入力階調補正部13、領域分離処理部14、色補正部15、黒生成下色除去部16、空間フィルタ処理部17、出力階調補正部18、および階調再現処理部19の順に送られ、最終的にデジタルCMYK(C:シアン、M:マゼンタ、Y:イエロー、K:黒)信号が画像出力装置24へ出力される。   The image input device 22 includes, for example, an image scanner using a CCD (Charge Coupled Device). For example, a reflected light image from a sheet on which a document image is recorded is converted into analog RGB (R: Red, G: Green, B: Blue) signals are read and output to the image processing apparatus 10. The analog RGB signals read by the image input device 22 are converted into an A / D conversion unit 11, a shading correction unit 12, an input tone correction unit 13, a region separation processing unit 14, a color correction unit 15, Black generation / under color removal unit 16, spatial filter processing unit 17, output gradation correction unit 18, and gradation reproduction processing unit 19 are sent in this order, and finally digital CMYK (C: cyan, M: magenta, Y: yellow). , K: black) signal is output to the image output device 24.

A/D変換部11は、入力されたアナログRGB信号をデジタルRGB信号に変換するものである。シェーディング補正部12は、A/D変換部11より送られてきたデジタルRGB信号(以下、RGB信号と略す)に対して、画像入力装置22の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施すものである。入力階調補正部13は、シェーディング補正部12にて各種の歪みが取り除かれたRGB信号(RGBの反射率信号)のカラーバランスを整えると共に、濃度信号などの画像処理装置10に採用されている画像処理システムが扱い易い信号に変換するものである。   The A / D converter 11 converts the input analog RGB signal into a digital RGB signal. The shading correction unit 12 responds to various digital RGB signals (hereinafter abbreviated as RGB signals) sent from the A / D conversion unit 11 in the illumination system, imaging system, and imaging system of the image input device 22. A process for removing distortion is performed. The input tone correction unit 13 adjusts the color balance of the RGB signal (RGB reflectance signal) from which various distortions have been removed by the shading correction unit 12 and is employed in the image processing apparatus 10 for density signals and the like. The signal is converted into a signal that can be handled easily by the image processing system.

領域分離処理部14は、入力されたRGB信号に基づいて、入力画像中の各画素を例えば文字領域、網点領域、写真(連続階調)領域などの複数の領域に分離するものである。また、領域分離処理部14は、分離結果に基づき、画素がどの領域に属しているかを示す領域識別信号を、色補正部15、黒生成下色除去部16、空間フィルタ処理部17、及び階調再現処理部19へ出力すると共に、入力階調補正部13より出力されたRGB信号をそのまま後段の色補正部15に出力する。   The region separation processing unit 14 separates each pixel in the input image into a plurality of regions such as a character region, a halftone region, and a photograph (continuous gradation) region based on the input RGB signal. Further, the region separation processing unit 14 outputs a region identification signal indicating which region the pixel belongs to based on the separation result, the color correction unit 15, the black generation and under color removal unit 16, the spatial filter processing unit 17, and the floor. In addition to the output to the tone reproduction processing unit 19, the RGB signal output from the input tone correction unit 13 is output as it is to the subsequent color correction unit 15.

領域分離処理としては、例えば、注目画素を含むn×mのブロック(例えば、15×15)における最小濃度値(最小画素値)と最大濃度値(最大画素値)の差分である最大濃度差と、隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度を算出し、予め定められている複数の閾値と比較することにより、下地領域、写真領域(連続階調領域)、文字領域、又は網点領域に分離することが可能である(例えば特開2002−232708号公報参照)。   As the region separation processing, for example, a maximum density difference that is a difference between a minimum density value (minimum pixel value) and a maximum density value (maximum pixel value) in an n × m block (for example, 15 × 15) including the target pixel is used. By calculating the total density busyness, which is the sum of absolute values of density differences between adjacent pixels, and comparing it with a plurality of predetermined threshold values, a background area, a photo area (continuous tone area), and a character area Or can be separated into halftone dot regions (see, for example, Japanese Patent Application Laid-Open No. 2002-232708).

下地領域の濃度分布は、通常、濃度変化が少ないため、最大濃度差及び総和濃度繁雑度は共に非常に小さくなる。写真領域の濃度分布は、滑らかな濃度変化をしており、最大濃度差及び総和濃度繁雑度は共に小さくなるが、下地領域よりは多少大きくなる。網点領域の濃度分布は、最大濃度差は網点により様々であるが、総和濃度繁雑度は網点の数だけ濃度変化が生じているので、最大濃度差に対する総和濃度繁雑度の割合が大きくなる。したがって、最大濃度差と文字・網点判定閾値(前記複数の閾値の1つ)との積よりも総和濃度繁雑度が大きい場合、網点領域であると判別する。文字領域の濃度分布は、最大濃度差が大きく、それに伴い総和濃度繁雑度も大きくなるが、網点領域よりも濃度変化が少ないため、網点領域よりも総和濃度繁雑度は小さくなる。したがって、最大濃度差と文字・網点判定閾値との積よりも総和濃度繁雑度が小さい場合、文字領域であると判別する。   Since the density distribution of the base region usually has little density change, both the maximum density difference and the total density busyness are very small. The density distribution in the photographic area has a smooth density change, and the maximum density difference and the total density busyness are both small, but somewhat larger than the background area. In the density distribution of the halftone dot area, the maximum density difference varies depending on the halftone dot, but the total density busyness changes by the number of halftone dots, so the ratio of the total density busyness to the maximum density difference is large. Become. Therefore, when the total density busyness is larger than the product of the maximum density difference and the character / halftone dot determination threshold (one of the plurality of thresholds), it is determined that the area is a halftone area. In the density distribution of the character area, the maximum density difference is large and the total density busyness increases accordingly. However, since the density change is smaller than that of the halftone dot area, the total density busyness is smaller than that of the halftone dot area. Therefore, when the total density busyness is smaller than the product of the maximum density difference and the character / halftone dot determination threshold, the character area is determined.

よって、算出された最大濃度差と最大濃度差閾値との比較、及び、算出された総和濃度繁雑度と総和濃度繁雑度閾値との比較を行い、最大濃度差が最大濃度差閾値よりも小さく、かつ、総和濃度繁雑度が総和濃度繁雑度閾値よりも小さい場合、注目画素は下地/写真領域であると判定し、そうでない場合は文字/網点領域であると判定する。下地/写真領域であると判断された場合、算出された最大濃度差と下地・写真判定閾値との比較を行い、最大濃度差の方が小さい場合は下地領域であると判定し、最大濃度差の方が大きい場合は写真領域であると判定する。文字/網点領域であると判断された場合、算出された総和濃度繁雑度と最大濃度差に文字・網点判定閾値を掛けた値との比較を行い、総和濃度繁雑度の方が小さい場合は文字領域であると判定し、総和濃度繁雑度の方が大きい場合は網点領域であると判定する。   Therefore, a comparison between the calculated maximum density difference and the maximum density difference threshold, and a comparison between the calculated total density busyness and the total density busyness threshold, the maximum density difference is smaller than the maximum density difference threshold, If the total density busyness is smaller than the total density busyness threshold, it is determined that the pixel of interest is a background / photo area, and otherwise, it is determined to be a character / halftone area. If it is determined to be the background / photo area, the calculated maximum density difference is compared with the background / photo determination threshold. If the maximum density difference is smaller, it is determined to be the background area, and the maximum density difference is determined. If is larger, it is determined to be a photo area. When it is determined that the area is a character / halftone area, the calculated total density busyness is compared with the value obtained by multiplying the maximum density difference by the character / halftone threshold, and the total density busyness is smaller. Is determined to be a character region, and if the total density busyness is larger, it is determined to be a halftone dot region.

色補正部15は、色を忠実に再現するために、不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行うものである。処理方法としては、入力RGB信号と出力CMY信号の対応関係をLUT(ルックアップテーブル)としてもつ方法や、   The color correction unit 15 performs processing for removing color turbidity based on spectral characteristics of CMY color materials including unnecessary absorption components in order to faithfully reproduce colors. As a processing method, a method of having a correspondence relationship between an input RGB signal and an output CMY signal as an LUT (Look Up Table),

Figure 0004596964
Figure 0004596964

のような変換行列を用いるカラーマスキング法などがある。例えばカラーマスキング法を用いる場合には、あるCMYデータを画像出力装置24に与えた場合に出力される色のL* * * 値(CIE1976L* * * 信号(CIE:Commission International de l’Eclairage;国際照明委員会、また、L* :明度、a* ,b* :色度))と同じL* * * をもつカラーパッチを画像入力装置22に読み込ませたときのRGBデータと、画像出力装置24に与えたCMYデータの組を多数用意し、それらの組合せより式1のa11からa33までの変換行列の係数を算出し、算出した係数を用いて色補正処理を行う。より精度を高めたい場合は、二次以上の高次の項を加えればよい。 There is a color masking method using a transformation matrix such as For example, when the color masking method is used, an L * a * b * value (CIE 1976 L * a * b * signal (CIE: Commission International de l ) of a color output when certain CMY data is given to the image output device 24. RGB data when the image input device 22 is read with a color patch having the same L * a * b * as'Eclairage; International Lighting Commission, L * : brightness, a * , b * : chromaticity)) If, it provides a number of sets of CMY data given to the image output device 24 calculates the coefficient of the transformation matrix than a combination thereof from a 11 of formula 1 to a 33, a color correction processing by using the calculated coefficients Do. In order to increase the accuracy, it is only necessary to add a second or higher order term.

黒生成下色除去部16は、色補正後のCMY信号から黒(K)信号を生成する黒生成、元のCMY信号が重なる部分を差し引いて新たなCMY信号を生成する処理を行い、3色のCMY信号を4色のCMYK信号に変換するものである。空間フィルタ処理部(空間フィルタ処理手段)17は、黒生成下色除去部16から入力されるCMYK信号の画像データに対して、領域識別信号を基にデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによって出力画像のぼやけ、粒状性劣化の防止を図るものである。   The black generation and under color removal unit 16 performs black generation for generating a black (K) signal from the color-corrected CMY signal, and a process for generating a new CMY signal by subtracting a portion where the original CMY signal overlaps. Are converted into four-color CMYK signals. The spatial filter processing unit (spatial filter processing means) 17 performs spatial filter processing using a digital filter on the image data of the CMYK signal input from the black generation and under color removal unit 16 based on the region identification signal, and performs spatial frequency processing. By correcting the characteristics, blurring of output images and deterioration of graininess are prevented.

例えば、領域分離処理部14にて文字領域として分離された領域は、特に黒文字または色文字の再現性を高めるために、空間フィルタ処理部17の空間フィルタ処理において鮮鋭強調処理で高周波成分を強調する。また、領域分離処理部14にて網点領域として分離された領域は、空間フィルタ処理部17において、網点成分を除去するためのローパス・フィルタ処理は行わず、網点成分を可能な限り再現できるように、空間フィルタ処理をスルーさせたり(禁止したり)、鮮鋭強調処理で高周波成分を強調する。   For example, a region separated as a character region by the region separation processing unit 14 emphasizes high-frequency components by sharp enhancement processing in the spatial filter processing of the spatial filter processing unit 17 in order to improve the reproducibility of black characters or color characters. . In addition, the region separated as the halftone dot region by the region separation processing unit 14 is reproduced by the spatial filter processing unit 17 as much as possible without performing the low-pass filter processing for removing the halftone dot component. As possible, high-frequency components are emphasized by passing through (prohibiting) spatial filtering or sharpening enhancement.

網点領域については、従来はモアレを防止するために平滑化処理が行われているが、平滑化処理が行われると網点の形態がくずれ、網点を再現する上で好ましくない。そこで、本発明においては、網点領域に対して、何も処理を行わない(空間フィルタ処理をスルー)か、あるいは弱い強調処理を行うことにより、網点の形態を保存する。図2は、弱い強調処理に用いるフィルタ係数の例を示す図である。なお、空間フィルタ処理部14における空間フィルタ処理は、網点領域の場合はスルー処理又は鮮鋭強調処理としたが、領域によらず共通のフィルタ処理を行うことも可能である。   Conventionally, the halftone dot region has been subjected to a smoothing process to prevent moire. However, when the smoothing process is performed, the halftone dot shape is lost, which is not preferable in reproducing the halftone dot. Therefore, in the present invention, the halftone dot form is preserved by performing no processing on the halftone dot region (through the spatial filter processing) or by performing weak enhancement processing. FIG. 2 is a diagram illustrating an example of filter coefficients used for weak enhancement processing. The spatial filter processing in the spatial filter processing unit 14 is a through process or a sharp enhancement process in the case of a halftone dot area, but a common filter process can be performed regardless of the area.

出力階調補正部18は、濃度信号などの信号を画像出力装置24の特性値である網点面積率に変換する出力階調補正処理を行うものである。階調再現処理部19は、CMYK信号の画像データに対し、領域識別信号に基づいて、最終的に画像が擬似的に階調を再現できるように階調再現処理(中間調の生成)を施すものである。例えば誤差拡散法を用いて中間調の生成を行う。   The output tone correction unit 18 performs output tone correction processing for converting a signal such as a density signal into a halftone dot area ratio that is a characteristic value of the image output device 24. The gradation reproduction processing unit 19 performs gradation reproduction processing (halftone generation) on the image data of the CMYK signal based on the region identification signal so that the image can finally reproduce the gradation in a pseudo manner. Is. For example, halftones are generated using an error diffusion method.

上述した各処理が施された画像データは、一旦記憶部(図示せず)に記憶され、所定のタイミングで読み出されて画像出力装置24へ出力される。画像出力装置24は、画像を記録媒体(例えば紙等)上に出力するものであり、例えば、電子写真方式又はインクジェット方式のカラー画像出力装置等をあげることができるが特に限定されるものではない。   The image data subjected to the above-described processes is temporarily stored in a storage unit (not shown), read at a predetermined timing, and output to the image output device 24. The image output device 24 outputs an image on a recording medium (for example, paper), and can include, for example, an electrophotographic or inkjet color image output device, but is not particularly limited. .

操作パネル26は、例えば、液晶ディスプレイ等の表示部と設定ボタン等の操作部とが一体化されたタッチパネル等により構成され、操作パネル26より入力された情報に基づいて画像入力装置22、画像処理装置10、画像出力装置24の動作が制御される。なお、以上の各処理は図示していないCPU(Central Processing Unit:制御手段)により制御される。   The operation panel 26 includes, for example, a touch panel in which a display unit such as a liquid crystal display and an operation unit such as a setting button are integrated. Based on information input from the operation panel 26, the image input device 22, image processing, and the like. The operations of the apparatus 10 and the image output apparatus 24 are controlled. Each of the above processes is controlled by a CPU (Central Processing Unit: control means) not shown.

図3は画像処理装置10の階調再現処理部19の概略要部構成を示すブロック図である。階調再現処理部19は、加算器30、比較器などを含む量子化処理部32、ROM(Read Only Memory)などの量子化閾値格納部34、減算器などの量子化誤差算出部36、乗算器などを含む拡散誤差算出部38、ROMなどの拡散係数格納部42、RAM(Random Access Memory)などの蓄積誤差格納部40、及び乱数発生器44を備えている。ただし、画像データの各画素は、CMYKの4つの色成分から構成されており、各色成分毎に誤差拡散法を用いた中間調生成が行われる。そのため、CMYKの各色成分の誤差拡散処理を順番に共通の回路で行ったり、CMYKの各色成分の誤差拡散処理を夫々別の回路で並列的に行う。ただし、各色成分毎の誤差拡散はほぼ同様の処理が行われるため、以下の説明では1つの色成分に対する処理について説明し、他の色成分に対する処理については異なる点だけ説明する。   FIG. 3 is a block diagram showing a schematic main configuration of the gradation reproduction processing unit 19 of the image processing apparatus 10. The gradation reproduction processing unit 19 includes an adder 30, a quantization processing unit 32 including a comparator, a quantization threshold storage unit 34 such as a ROM (Read Only Memory), a quantization error calculation unit 36 such as a subtractor, and multiplication. A diffusion error calculation unit 38 including a storage unit, a diffusion coefficient storage unit 42 such as a ROM, a storage error storage unit 40 such as a RAM (Random Access Memory), and a random number generator 44. However, each pixel of the image data is composed of four color components CMYK, and halftone generation using the error diffusion method is performed for each color component. For this reason, error diffusion processing for each color component of CMYK is sequentially performed by a common circuit, or error diffusion processing for each color component of CMYK is performed in parallel by separate circuits. However, since error diffusion for each color component is performed in substantially the same manner, in the following description, processing for one color component will be described, and processing for other color components will be described only for different points.

加算器30は、入力画像データの処理対象の各画素の画素値(濃度値)に、蓄積誤差格納部40に格納されている、前記画素の位置に対応する蓄積誤差を加算し、蓄積誤差が加算された画素値を量子化処理部32へ出力する。量子化処理部32は、蓄積誤差が加算された画素値と、量子化閾値格納部34に格納されている量子化閾値とを比較して量子化を行い、出力画像データの画素値(以下、量子化値という)を出力する。量子化誤差算出部36は、量子化処理部32から出力される量子化値と量子化処理部32に入力される画素値との誤差(量子化誤差)を求め、求めた量子化誤差を拡散誤差算出部38へ出力する。   The adder 30 adds the accumulation error corresponding to the pixel position stored in the accumulation error storage unit 40 to the pixel value (density value) of each pixel to be processed of the input image data. The added pixel value is output to the quantization processing unit 32. The quantization processing unit 32 performs quantization by comparing the pixel value to which the accumulation error has been added with the quantization threshold value stored in the quantization threshold value storage unit 34, and outputs a pixel value (hereinafter referred to as pixel value) of the output image data. Output). The quantization error calculation unit 36 obtains an error (quantization error) between the quantization value output from the quantization processing unit 32 and the pixel value input to the quantization processing unit 32, and diffuses the obtained quantization error. The data is output to the error calculation unit 38.

拡散誤差算出部38は、量子化誤差と、拡散係数格納部42に格納されている拡散係数の組とに基づいて、前記画素の周辺の未処理の各画素に拡散する拡散誤差を求める。求めた拡散誤差は蓄積誤差格納部40に格納される。ただし、拡散係数格納部(記憶部、選択手段)42には、複数組の拡散係数が格納されており、拡散誤差算出部38が使用する拡散係数の組は、領域識別信号及び乱数発生器44が各画素毎に発生する乱数に応じて選択される。本実施の形態では、拡散係数格納部(識別手段)42は、領域識別信号に基づいて網点領域であるか写真(連続階調)領域であるかを識別する。   Based on the quantization error and the set of diffusion coefficients stored in the diffusion coefficient storage unit 42, the diffusion error calculation unit 38 obtains a diffusion error that diffuses to each unprocessed pixel around the pixel. The obtained diffusion error is stored in the accumulation error storage unit 40. However, a plurality of sets of diffusion coefficients are stored in the diffusion coefficient storage unit (storage unit, selection means) 42, and the combination of diffusion coefficients used by the diffusion error calculation unit 38 is an area identification signal and random number generator 44. Is selected according to a random number generated for each pixel. In the present embodiment, the diffusion coefficient storage unit (identification means) 42 identifies whether it is a halftone dot region or a photo (continuous tone) region based on the region identification signal.

図4及び図5(a)〜(d)は、拡散係数の組の例を示す図である。図において、量子化を行う画素は「*」で示してあり、図4は網点領域の場合に選択される組の例、図5(a)〜(d)は写真領域の場合に選択候補となる4組の例を示している。拡散係数格納部42は、領域分離処理部14から網点領域を示す領域識別信号が入力された場合は、図4に示す拡散係数の組を選択する。この選択した組は、CMYKの各色成分に対して共通とする。   4 and 5A to 5D are diagrams showing examples of sets of diffusion coefficients. In the figure, the pixel to be quantized is indicated by “*”, FIG. 4 is an example of a set selected in the case of a halftone dot region, and FIGS. 5A to 5D are selection candidates in the case of a photographic region. 4 sets of examples are shown. When an area identification signal indicating a halftone dot area is input from the area separation processing unit 14, the diffusion coefficient storage unit 42 selects a set of diffusion coefficients illustrated in FIG. 4. The selected set is common to each color component of CMYK.

一方、拡散係数格納部42は、領域分離処理部14から写真領域を示す領域識別信号が入力された場合、乱数発生器44が発生する乱数値に応じて、図5(a)〜(d)に示す4組の拡散係数のうちの1組を選択する。例えば、乱数発生器で2ビット(0〜3)の乱数を発生させ、「0」の場合は図5(a)、「1」の場合は図5(b)、「2」の場合は図5(c)、「3」の場合は図5(d)の拡散係数を選択する。ここで、乱数発生器44は、色成分毎に別々に設け、各乱数発生器毎に乱数を発生させたり、1つの乱数発生器から各色成分毎の乱数を発生させることが可能である。これにより、色成分毎に別々の拡散係数の組が選択される。   On the other hand, when the region identification signal indicating the photograph region is input from the region separation processing unit 14, the diffusion coefficient storage unit 42 corresponds to the random number value generated by the random number generator 44, as shown in FIGS. One of the four sets of diffusion coefficients shown in FIG. For example, a random number generator generates a 2-bit (0 to 3) random number. FIG. 5A shows the case of “0”, FIG. 5B shows the case of “1”, and FIG. In the case of 5 (c) and “3”, the diffusion coefficient shown in FIG. 5 (d) is selected. Here, the random number generator 44 is provided separately for each color component, and can generate a random number for each random number generator, or can generate a random number for each color component from one random number generator. Thereby, different sets of diffusion coefficients are selected for each color component.

なお、領域分離処理部14にて文字領域として分離された領域に関しては、別途拡散係数を用意しても良いが、網点領域と同じものを選択するようにしてもよい。後者の場合、文字領域に属する画素の誤差拡散は、網点領域と同様に処理される。また、下地領域に関しても、別途拡散係数を用意しても良いが、写真領域と同じものを選択するようにしてもよい。後者の場合、下地領域に属する画素の誤差拡散は、写真領域と同様に処理される。   Note that a diffusion coefficient may be separately prepared for the region separated as the character region by the region separation processing unit 14, but the same one as the halftone dot region may be selected. In the latter case, error diffusion of pixels belonging to the character area is processed in the same manner as the halftone dot area. Also, regarding the base region, a diffusion coefficient may be prepared separately, but the same one as the photographic region may be selected. In the latter case, error diffusion of pixels belonging to the base area is processed in the same manner as in the photographic area.

拡散係数を画素毎にランダムに切換えた場合、拡散係数を固定した場合と比べて、量子化済みの各画素から集積される誤差の割合が変動することになる。また、色成分毎に別々の乱数で拡散係数を選択した場合、色成分毎に量子化済みの各画素から集積される誤差の割合が変動することになる。そのため、写真領域において、過剰なドットの重なりを抑制することができる。   When the diffusion coefficient is switched randomly for each pixel, the ratio of errors accumulated from each quantized pixel varies as compared with the case where the diffusion coefficient is fixed. In addition, when the diffusion coefficient is selected with a random number for each color component, the ratio of errors accumulated from each quantized pixel varies for each color component. Therefore, it is possible to suppress excessive overlapping of dots in the photographic area.

一方、拡散係数を固定した場合、拡散係数を画素毎にランダムに切換えた場合と比べて、量子化済みの各画素から集積される誤差の割合は一定であるため、原稿画像中の1つ1つの網点の間のような画素値の低い部分にドットが出力されること、及び、網点を形成している画素値の高い部分にドットが出力されないことを抑制することができる。そのため、網点領域の画質劣化を抑制することができる。また、本発明においては、中間調処理として周期性のない誤差拡散を用いているので、網点とディザ処理により生じるようなモアレは発生しない。   On the other hand, when the diffusion coefficient is fixed, the ratio of errors accumulated from each quantized pixel is constant as compared with the case where the diffusion coefficient is switched randomly for each pixel. It is possible to suppress a dot from being output to a portion having a low pixel value such as between two halftone dots and a dot from being output to a portion having a high pixel value forming a halftone dot. Therefore, it is possible to suppress the image quality deterioration in the halftone area. Further, in the present invention, since error diffusion without periodicity is used as halftone processing, moire that occurs due to halftone dot and dither processing does not occur.

(実施の形態2)
図6は、本発明に係る画像処理装置を含む画像形成システムの一構成例を示すブロック図である。この画像形成システムは、コンピュータ(画像処理装置)50及びプリンタ(画像出力装置、画像形成手段)55を備える。プリンタ55は、プリンタ機能に加えて、コピー機能、ファクシミリ機能を有するデジタル複合機であってもよい。また、プリンタ55は、電子写真方式又はインクジェット方式の画像形成を行う。
(Embodiment 2)
FIG. 6 is a block diagram showing a configuration example of an image forming system including the image processing apparatus according to the present invention. This image forming system includes a computer (image processing apparatus) 50 and a printer (image output apparatus, image forming means) 55. The printer 55 may be a digital multifunction machine having a copy function and a facsimile function in addition to the printer function. The printer 55 performs electrophotographic or ink jet image formation.

例えばフラットベッドスキャナ又はフィルムスキャナ等のイメージスキャナ又はデジタルカメラからコンピュータ50へ画像データが入力され、図示しないハードディスクなどの記憶装置に記憶される。コンピュータ50に入力された画像データは、各種のアプリケーションプログラムを実行して加工・編集等を行うことが可能である。コンピュータ50は、プリンタ55へ出力する出力画像データの各画素の領域を判別する領域分離処理部51、中間調生成処理を行う階調再現処理部52、及び、出力画像データのプリンタ言語への変換を行うプリンタ言語翻訳部53等として動作する。領域分離処理部51は、上述した実施の形態1の画像処理装置10の領域分離処理部14と同様の領域分離処理を行い、階調再現処理部52は実施の形態1の画像処理装置10の階調再現処理部19と同様の誤差拡散法を用いた中間調生成処理を行う。なお、図示していないが、コンピュータ50は、上述した実施の形態1の画像処理装置10の色補正部15、黒生成下色除去部16、及び空間フィルタ処理部(空間フィルタ処理手段)17などと同様の処理も行う。プリンタ言語翻訳部53でプリンタ言語に変換されたデータは、通信ポート54(セントロニクスポート、LAN(Local Area Network)ポート等)を介してプリンタ55へ出力される。   For example, image data is input to the computer 50 from an image scanner such as a flatbed scanner or a film scanner or a digital camera, and stored in a storage device such as a hard disk (not shown). The image data input to the computer 50 can be processed and edited by executing various application programs. The computer 50 includes an area separation processing unit 51 that determines an area of each pixel of output image data output to the printer 55, a gradation reproduction processing unit 52 that performs halftone generation processing, and conversion of output image data into a printer language. It operates as a printer language translation unit 53 or the like that performs the above. The region separation processing unit 51 performs the same region separation processing as the region separation processing unit 14 of the image processing apparatus 10 of the first embodiment described above, and the gradation reproduction processing unit 52 of the image processing apparatus 10 of the first embodiment. A halftone generation process using an error diffusion method similar to that of the gradation reproduction processing unit 19 is performed. Although not shown, the computer 50 includes the color correction unit 15, the black generation and under color removal unit 16, and the spatial filter processing unit (spatial filter processing unit) 17 of the image processing apparatus 10 according to the first embodiment described above. The same processing is also performed. The data converted into the printer language by the printer language translation unit 53 is output to the printer 55 via the communication port 54 (Centronics port, LAN (Local Area Network) port, etc.).

図7はコンピュータの一構成例を示すブロック図である。コンピュータ50は、CPU61と、RAM62と、ハードディスクドライブ(以下、ハードディスクと略す)63と、フレキシブルディスクドライブ又はCD(Compact Disk)−ROMドライブ等の外部記憶部64と、プリンタ55などとの通信制御を行う通信ポート54とを備える。また、コンピュータ50は、キーボード又はマウス等の入力部65と、CRT(Cathode Ray Tube)ディスプレイ又は液晶ディスプレイなどの表示部66とを備える。また、通信ポート54は、ネットワークカード又はモデムを含み、LAN、インターネット又は電話回線などの通信ネットワークに接続することが可能である。   FIG. 7 is a block diagram illustrating a configuration example of a computer. The computer 50 controls communication with the CPU 61, RAM 62, hard disk drive (hereinafter abbreviated as hard disk) 63, external storage unit 64 such as a flexible disk drive or CD (Compact Disk) -ROM drive, and the printer 55. And a communication port 54 to perform. The computer 50 includes an input unit 65 such as a keyboard or a mouse, and a display unit 66 such as a CRT (Cathode Ray Tube) display or a liquid crystal display. The communication port 54 includes a network card or a modem, and can be connected to a communication network such as a LAN, the Internet, or a telephone line.

CPU61は、上述した各部62〜66及び54の制御を行う。また、CPU61は、入力部65又は通信ポート54から受付けたプログラム又はデータ、あるいはハードディスク63又は外部記憶部64から読み出したプログラム又はデータ等をRAM62に記憶し、RAM62に記憶したプログラムの実行又はデータの演算等の各種処理を行い、各種処理結果又は各種処理に用いる一時的なデータをRAM62に記憶する。RAM62に記憶した演算結果等のデータは、CPU61により、ハードディスク63に記憶されたり、表示部66又は通信ポート54から出力される。   CPU61 controls each part 62-66 and 54 mentioned above. Further, the CPU 61 stores the program or data received from the input unit 65 or the communication port 54 or the program or data read from the hard disk 63 or the external storage unit 64 in the RAM 62, and executes the program stored in the RAM 62 or the data Various processes such as computation are performed, and various process results or temporary data used for various processes are stored in the RAM 62. Data such as calculation results stored in the RAM 62 is stored in the hard disk 63 or output from the display unit 66 or the communication port 54 by the CPU 61.

CPU61は、上述した領域分離処理部51、階調再現処理部52、及びプリンタ言語翻訳部53などとして動作する。また、画像データは、例えばスキャナ又はデジタルカメラからコンピュータ50へ入力され、ハードディスク63に記憶される。また、CPU61は、実施の形態1(図3)の加算器30、量子化処理部32、量子化誤差算出部36、拡散誤差算出部38、乱数発生器44として動作する。また、RAM62又はハードディスク63は、量子化閾値格納部34、蓄積誤差格納部40、及び拡散係数格納部42として動作する。例えば図4及び図5(a)〜(d)に示した拡散係数の組はハードディスク(記憶部)63に記憶されている。   The CPU 61 operates as the above-described region separation processing unit 51, gradation reproduction processing unit 52, printer language translation unit 53, and the like. Further, the image data is input to the computer 50 from, for example, a scanner or a digital camera and stored in the hard disk 63. The CPU 61 operates as the adder 30, the quantization processing unit 32, the quantization error calculation unit 36, the diffusion error calculation unit 38, and the random number generator 44 of the first embodiment (FIG. 3). The RAM 62 or the hard disk 63 operates as the quantization threshold storage unit 34, the accumulation error storage unit 40, and the diffusion coefficient storage unit 42. For example, the set of diffusion coefficients shown in FIGS. 4 and 5A to 5D is stored in the hard disk (storage unit) 63.

CD−ROM等の記録媒体69に記録されたコンピュータプログラムを外部記憶部64で読み出してハードディスク63又はRAM62に記憶してCPU61に実行させることにより、コンピュータ50を上述した各部又は各手段として動作させることが可能である。また、LANなどに接続された通信ポート54で他の装置からコンピュータプログラムを受付けてハードディスク63又はRAM62に記憶することも可能である。なお、本発明に係る誤差拡散処理を実現するコンピュータプログラムは、プリンタドライバに含まれていてもよいし、画像処理用のアプリケーションソフトに含まれていてもよい。   A computer program recorded on a recording medium 69 such as a CD-ROM is read by the external storage unit 64, stored in the hard disk 63 or RAM 62, and executed by the CPU 61, thereby causing the computer 50 to operate as the above-described units or units. Is possible. It is also possible to accept a computer program from another device through the communication port 54 connected to a LAN or the like and store it in the hard disk 63 or the RAM 62. Note that the computer program for realizing the error diffusion processing according to the present invention may be included in the printer driver or may be included in the application software for image processing.

図8は、誤差拡散法を用いた中間調生成の処理手順の例を示すフローチャートである。CPU61により、ハードディスク63からRAM62に読出された画像データの処理対象の画素値に、RAM62又はハードディスク63に記憶されている蓄積誤差を加算する(S10)。CPU61は、蓄積誤差を加算した画素値とハードディスク63に記憶されている量子化閾値とを比較して量子化処理を行い(S12)、求めた量子化値をRAM62に記憶する。CPU61は、蓄積誤差が加算された画素値と求めた量子化値との減算を行って量子化誤差を算出し(S14)、算出した量子化誤差をRAM62に記憶する。また、CPU(識別手段、選択手段)61は、処理対象の画素が属する領域の識別を行い、領域が網点領域の場合(S16:YES)はハードディスク63に記憶されている拡散係数の複数組の中から所定の拡散係数の組を選択し(S18)、領域が網点領域でない(写真領域である)場合(S16:NO)は乱数を発生させ、乱数に応じてランダムに拡散係数の組を選択する(S20)。CPU61は、選択した拡散係数の組と算出した量子化誤差との乗算などを行って拡散誤差を算出し、RAM62又はハードディスク63に格納する(S22)。上述した処理を前記画像データの各画素に対して行う(S24:NO)。誤差拡散及び画素が属する領域の識別は、実施の形態1と同様に行われる。また、CPU(制御手段)61は、空間フィルタ処理のスルー(禁止)なども行う。   FIG. 8 is a flowchart illustrating an example of a halftone generation processing procedure using the error diffusion method. The CPU 61 adds the accumulation error stored in the RAM 62 or the hard disk 63 to the pixel value to be processed of the image data read from the hard disk 63 to the RAM 62 (S10). The CPU 61 compares the pixel value obtained by adding the accumulation error with the quantization threshold stored in the hard disk 63 to perform quantization processing (S12), and stores the obtained quantization value in the RAM 62. The CPU 61 calculates a quantization error by performing subtraction between the pixel value to which the accumulation error is added and the obtained quantization value (S14), and stores the calculated quantization error in the RAM 62. The CPU (identification means, selection means) 61 identifies the area to which the pixel to be processed belongs, and when the area is a halftone dot area (S16: YES), a plurality of sets of diffusion coefficients stored in the hard disk 63 are stored. A predetermined set of diffusion coefficients is selected from (S18). If the area is not a halftone dot area (photograph area) (S16: NO), a random number is generated, and a set of diffusion coefficients is randomly selected according to the random number. Is selected (S20). The CPU 61 calculates the diffusion error by multiplying the selected set of diffusion coefficients by the calculated quantization error, and stores it in the RAM 62 or the hard disk 63 (S22). The above-described processing is performed on each pixel of the image data (S24: NO). Error diffusion and identification of a region to which a pixel belongs are performed in the same manner as in the first embodiment. The CPU (control means) 61 also performs through (prohibition) of spatial filter processing.

(実施の形態3)
上述した実施の形態では、入力画像の各画素が属する領域に基づいて、固定の拡散係数の組とランダムに選択した拡散係数の組との切換を行ったが、例えば網点写真又は印画紙写真(連続階調写真)などの入力画像(原稿)の種類(原稿種別)に基づいて、固定の拡散係数の組とランダムに選択した拡散係数の組との切換を行うことも可能である。
(Embodiment 3)
In the above-described embodiment, switching between a fixed diffusion coefficient group and a randomly selected diffusion coefficient group is performed based on the region to which each pixel of the input image belongs. It is also possible to switch between a fixed diffusion coefficient set and a randomly selected diffusion coefficient set based on the type (original type) of the input image (original) such as (continuous tone photograph).

図9は原稿種別に基づいて拡散係数の切換を行う本発明に係る画像処理装置10aを備えるデジタルカラー複写機(画像形成装置)20aの概略構成を示すブロック図である。デジタルカラー複写機20aは、実施の形態1(図1)と同様の画像入力装置22、画像出力装置(画像形成手段)24、及び、操作パネル26を備える。また、画像処理装置10aは、実施の形態1(図1)と同様のA/D変換部11、シェーディング補正部12、入力階調補正部13、領域分離処理部14、色補正部15、黒生成下色除去部16、空間フィルタ処理部17、出力階調補正部18、及び、階調再現処理部19を備える。   FIG. 9 is a block diagram showing a schematic configuration of a digital color copying machine (image forming apparatus) 20a provided with the image processing apparatus 10a according to the present invention for switching the diffusion coefficient based on the document type. The digital color copying machine 20a includes an image input device 22, an image output device (image forming means) 24, and an operation panel 26 similar to those in the first embodiment (FIG. 1). In addition, the image processing apparatus 10a includes an A / D conversion unit 11, a shading correction unit 12, an input tone correction unit 13, a region separation processing unit 14, a color correction unit 15, and black as in the first embodiment (FIG. 1). A generation under color removal unit 16, a spatial filter processing unit 17, an output gradation correction unit 18, and a gradation reproduction processing unit 19 are provided.

本実施の形態においては、シェーディング補正部12と入力階調補正部13との間に、入力画像の種類(原稿種別)の判別を行う原稿種別判別部21を備える。原稿種別判別部21は、シェーディング補正部12によって各種の歪みが取り除かれ、カラーバランスの調整が行われたRGB信号(RGBの反射率信号)を、濃度信号などの画像処理装置10aに採用されている画像処理システムの扱い易い信号に変換すると共に、原稿種別の判別を行う。原稿種別の判別結果(原稿種別判別信号)は、入力階調補正部13、色補正部15、黒生成下色除去部16、空間フィルタ処理部17、及び、階調再現処理部19へ出力される。また、本実施の形態においては、入力階調補正部13は、下地濃度の除去やコントラストなどの画質調整処理を行う。   In the present embodiment, a document type determination unit 21 that determines the type (document type) of the input image is provided between the shading correction unit 12 and the input tone correction unit 13. The original type discriminating unit 21 employs an RGB signal (RGB reflectance signal) from which various distortions have been removed by the shading correction unit 12 and color balance adjustment has been performed in an image processing apparatus 10a such as a density signal. It is converted into a signal that can be easily handled by the existing image processing system, and the document type is determined. The document type discrimination result (document type discrimination signal) is output to the input tone correction unit 13, color correction unit 15, black generation and under color removal unit 16, spatial filter processing unit 17, and tone reproduction processing unit 19. The In the present embodiment, the input tone correction unit 13 performs image quality adjustment processing such as background density removal and contrast.

入力画像の種類(原稿種別)の判別方法としては、上述した領域の判別(領域分離処理)と同様に行うことが可能である。例えば、プレスキャンを行った入力画像データを用いて、上述した領域分離処理と同様に各画素が属する領域の判別を行い、各領域毎に画素数をカウントし、予め設定されている下地領域、写真(連続階調)領域、網点領域及び文字領域に対応する閾値と比較することにより、原稿の種類(原稿種別)を判定する。例えば、文字領域の比率と網点領域の比率とが、それぞれ閾値以上の場合は、文字・網点写真(文字・印刷写真)であると判定する。また、文字、網点、写真(印画紙写真)の順に検出精度が高いと仮定した場合、文字領域の比率が全画素数の30%の場合には文字原稿、網点領域の比率が全画素数の20%の場合には網点写真、写真(印画紙写真)領域の比率が全画素数の10%の場合には印画紙写真であると判定する。なお、原稿種別の判別は、プレスキャンを行った入力画像だけでなく、ハードディスク等の記憶装置に格納された画像データを用いて行うことも可能である。   As a method for determining the type (document type) of the input image, it can be performed in the same manner as the above-described region determination (region separation process). For example, using the input image data that has been pre-scanned, the region to which each pixel belongs is determined in the same manner as the region separation process described above, the number of pixels is counted for each region, and a preset ground region, The document type (document type) is determined by comparing with threshold values corresponding to the photo (continuous gradation) region, the halftone dot region, and the character region. For example, if the ratio of the character area and the ratio of the halftone dot area are equal to or greater than the threshold value, respectively, it is determined that the character / halftone photograph (character / printed photograph). Assuming that the detection accuracy is high in the order of characters, halftone dots, and photographs (photographic paper photographs), if the ratio of the character area is 30% of the total number of pixels, the ratio of the character original and the halftone area is all pixels. In the case of 20% of the number, it is determined that the image is a photographic paper photo when the ratio of the halftone dot photo and the photo (photographic paper photo) area is 10% of the total number of pixels. The document type can be determined using not only the pre-scanned input image but also image data stored in a storage device such as a hard disk.

入力画像(原稿)に複数の領域が混在しない場合、入力階調補正部13以降の処理において、上述した実施の形態1の領域に応じた処理と同様の処理を行う。例えば、入力画像(原稿)が文字原稿であると判別された場合は、入力階調補正処理では、ハイライトを多めに除去したり、コントラストを大きくするような補正曲線を用いて処理を行う。また、色文字に対しては彩度を重視した色補正処理を行い、黒文字に対しては黒生成下色除去処理の黒生成量が多めに設定される。また、文字に対しては、空間フィルタ処理でエッジを強調し、平滑化処理を弱くするようにフィルタ係数を設定する等のパラメータの切換等を行う。   When a plurality of areas are not mixed in the input image (original), the same processing as that according to the above-described area according to the first embodiment is performed in the processing after the input tone correction unit 13. For example, when it is determined that the input image (original) is a text original, the input gradation correction processing is performed using a correction curve that removes excessive highlights or increases contrast. In addition, color correction processing that emphasizes saturation is performed for color characters, and a large black generation amount is set for black generation and under color removal processing for black characters. In addition, for characters, the edge is emphasized by spatial filter processing, and parameter switching such as setting the filter coefficient so as to weaken the smoothing processing is performed.

一方、入力画像に複数の領域が混在している場合は、入力階調補正部13以降の処理において、入力画像に含まれている各領域に対応する各パラメータの中間パラメータを用いて処理を行う。例えば、入力画像が文字・印画紙写真であると判別された場合は、文字原稿に対応するパラメータと印画紙写真に対応するパラメータとの中間パラメータを用いた処理を行う。文字原稿又は印画紙写真のいずれを重視するかに応じて、入力階調補正処理では、印画紙写真に対応するパラメータと文字原稿に対応するパラメータとの中間パラメータを用いてハイライトの除去やコントラストの調整を行い、また、彩度の強弱や階調性のバランスが極端にならないように色補正処理を行う。また、黒生成下色除去処理では、印画紙写真に影響が出ない程度に黒生成量の調整を行う。   On the other hand, when a plurality of regions are mixed in the input image, processing is performed using intermediate parameters of parameters corresponding to the respective regions included in the input image in the processing after the input tone correction unit 13. . For example, when it is determined that the input image is a character / photographic paper photograph, a process using an intermediate parameter between a parameter corresponding to a character document and a parameter corresponding to a photographic paper photograph is performed. Depending on whether text documents or photographic paper photos are important, the input tone correction processing uses highlight parameters and contrast between parameters corresponding to photographic paper photos and parameters corresponding to text documents. In addition, color correction processing is performed so that the intensity of saturation and the balance of gradation are not excessive. In the black generation and under color removal processing, the black generation amount is adjusted to such an extent that the photographic paper photograph is not affected.

図10は画像処理装置10aの階調再現処理部19の概略要部構成を示すブロック図であり、基本的な構成は実施の形態1(図3)と同様である。ただし、拡散係数格納部42aには原稿種別判別信号が入力されており、原稿種別に応じて、固定の拡散係数、又は、乱数に応じた拡散係数の組が選択される。例えば、入力画像が網点写真(印刷写真)又は文字も含んだ文字・網点写真であると判別された場合は、入力画像全体に対して図4に示した拡散係数を選択し、入力画像が印画紙写真(連続階調写真)又は文字も含んだ文字・印画紙写真であると判別された場合は、入力画像全体に対して、図5(a)〜(d)に示した何れかの拡散係数の組を乱数値に基づいて選択することが可能である。   FIG. 10 is a block diagram showing a schematic main configuration of the gradation reproduction processing unit 19 of the image processing apparatus 10a, and the basic configuration is the same as that of the first embodiment (FIG. 3). However, a document type determination signal is input to the diffusion coefficient storage unit 42a, and a fixed diffusion coefficient or a set of diffusion coefficients corresponding to a random number is selected according to the document type. For example, when it is determined that the input image is a halftone photo (printed photo) or a character / halftone photo including characters, the diffusion coefficient shown in FIG. 4 is selected for the entire input image, and the input image is selected. Is determined to be a photographic paper photograph (continuous gradation photograph) or a character / photographic paper photograph including characters, any of the input images shown in FIGS. Can be selected based on random values.

(実施の形態4)
図11は、本発明に係る画像処理装置を含む画像形成システムの他の構成例を示すブロック図である。この画像形成システムは、コンピュータ(画像処理装置)50及びプリンタ(画像出力装置、画像形成手段)55を備える。例えばフラットベッドスキャナ又はフィルムスキャナ等のイメージスキャナ又はデジタルカメラからコンピュータ50へ画像データが入力され、図示しないハードディスクなどの記憶装置に記憶される。コンピュータ50に入力された画像データは、各種のアプリケーションプログラムを実行して加工・編集等を行うことが可能である。
(Embodiment 4)
FIG. 11 is a block diagram showing another configuration example of the image forming system including the image processing apparatus according to the present invention. This image forming system includes a computer (image processing apparatus) 50 and a printer (image output apparatus, image forming means) 55. For example, image data is input to the computer 50 from an image scanner such as a flatbed scanner or a film scanner or a digital camera, and stored in a storage device such as a hard disk (not shown). The image data input to the computer 50 can be processed and edited by executing various application programs.

コンピュータ50は、プリンタ55へ出力する出力画像データの原稿種別を判別する原稿種別判別部56、中間調生成処理を行う階調再現処理部52、及び、出力画像データのプリンタ言語への変換を行うプリンタ言語翻訳部53等として動作する。原稿種別判別部56は、上述した実施の形態3(図9)の画像処理装置10aの原稿種別判別部21と同様の原稿判別処理を行い、階調再現処理部52は実施の形態3の画像処理装置10aの階調再現処理部19と同様の誤差拡散法を用いた中間調生成処理を行う。なお、図示していないが、コンピュータ50は、上述した実施の形態3の画像処理装置10aの領域分離処理部14、色補正部15、黒生成下色除去部16、及び空間フィルタ処理部(空間フィルタ処理手段)17などと同様の処理も行う。プリンタ言語翻訳部53でプリンタ言語に変換されたデータは、通信ポート54を介してプリンタ55へ出力される。   The computer 50 performs a document type determination unit 56 that determines the document type of output image data to be output to the printer 55, a gradation reproduction processing unit 52 that performs halftone generation processing, and conversion of output image data into a printer language. It operates as the printer language translation unit 53 or the like. The document type determination unit 56 performs the same document determination process as the document type determination unit 21 of the image processing apparatus 10a of the third embodiment (FIG. 9) described above, and the gradation reproduction processing unit 52 performs the image reproduction of the third embodiment. A halftone generation process using an error diffusion method similar to that of the gradation reproduction processing unit 19 of the processing apparatus 10a is performed. Although not shown, the computer 50 includes the area separation processing unit 14, the color correction unit 15, the black generation and under color removal unit 16, and the spatial filter processing unit (space) of the image processing apparatus 10 a according to Embodiment 3 described above. The same processing as that of the filter processing means) 17 is also performed. The data converted into the printer language by the printer language translation unit 53 is output to the printer 55 via the communication port 54.

図12はコンピュータの一構成例を示すブロック図であり、基本的な構成は実施の形態2(図7)と同様であるが、本実施の形態では、CPU61は、上述した原稿種別判別部56、階調再現処理部52、及びプリンタ言語翻訳部53などとして動作する。また、CPU61は、実施の形態3(図10)の加算器30、量子化処理部32、量子化誤差算出部36、拡散誤差算出部38、乱数発生器44として動作する。また、RAM62又はハードディスク(記憶部)63は、量子化閾値格納部34、蓄積誤差格納部40、及び拡散係数格納部42aとして動作する。   FIG. 12 is a block diagram showing an example of the configuration of a computer. The basic configuration is the same as that of the second embodiment (FIG. 7), but in this embodiment, the CPU 61 performs the above-described document type determination unit 56. , The tone reproduction processing unit 52, the printer language translation unit 53, and the like. Further, the CPU 61 operates as the adder 30, the quantization processing unit 32, the quantization error calculation unit 36, the diffusion error calculation unit 38, and the random number generator 44 according to the third embodiment (FIG. 10). The RAM 62 or the hard disk (storage unit) 63 operates as the quantization threshold storage unit 34, the accumulation error storage unit 40, and the diffusion coefficient storage unit 42a.

CD−ROM等の記録媒体69に記録されたコンピュータプログラムを外部記憶部64で読み出してハードディスク63又はRAM62に記憶してCPU61に実行させることにより、コンピュータ50を上述した各部又は各手段として動作させることが可能である。また、LANなどに接続された通信ポート54で他の装置からコンピュータプログラムを受付けてハードディスク63又はRAM62に記憶することも可能である。なお、本発明に係る誤差拡散処理を実現するコンピュータプログラムは、プリンタドライバに含まれていてもよいし、画像処理用のアプリケーションソフトに含まれていてもよい。   A computer program recorded on a recording medium 69 such as a CD-ROM is read by the external storage unit 64, stored in the hard disk 63 or RAM 62, and executed by the CPU 61, thereby causing the computer 50 to operate as the above-described units or units. Is possible. It is also possible to accept a computer program from another device through the communication port 54 connected to a LAN or the like and store it in the hard disk 63 or the RAM 62. Note that the computer program for realizing the error diffusion processing according to the present invention may be included in the printer driver or may be included in the application software for image processing.

図13は、誤差拡散法を用いた中間調生成の処理手順の他の例を示すフローチャートである。第2の実施の形態(図8)と同様に、処理対象の画素値に蓄積誤差を加算し(S10)、量子化処理を行い(S12)、量子化誤差を算出する(S14)。本実施の形態では、CPU(識別手段、選択手段)61は、処理対象の画素を含む原稿種別の判別を行い、原稿種別が網点写真(網点画像)の場合(S17:YES)はハードディスク63に記憶されている拡散係数の複数組の中から所定の拡散係数の組を選択し(S18)、原稿種別が網点写真でない(写真画像(連続階調画像)である)場合(S17:NO)は乱数を発生させ、乱数に応じてランダムに拡散係数の組を選択する(S20)。その後は、第2の実施の形態(図8)と同様の処理を行う。誤差拡散及び原稿種別の判別は、実施の形態3と同様に行われる。また、CPU(制御手段)61は、空間フィルタ処理のスルー(禁止)なども行う。   FIG. 13 is a flowchart showing another example of a halftone generation processing procedure using the error diffusion method. As in the second embodiment (FIG. 8), the accumulation error is added to the pixel value to be processed (S10), the quantization process is performed (S12), and the quantization error is calculated (S14). In the present embodiment, the CPU (identification means, selection means) 61 discriminates the document type including the pixel to be processed, and if the document type is a halftone photo (halftone image) (S17: YES), the hard disk A predetermined set of diffusion coefficients is selected from a plurality of sets of diffusion coefficients stored in 63 (S18), and the document type is not a halftone photo (a photographic image (continuous tone image)) (S17: NO) generates a random number and randomly selects a set of diffusion coefficients according to the random number (S20). Thereafter, the same processing as in the second embodiment (FIG. 8) is performed. Error diffusion and document type discrimination are performed as in the third embodiment. The CPU (control means) 61 also performs through (prohibition) of spatial filter processing.

なお、原稿種別は、例えば文字原稿、網点写真、印画紙(連続階調)写真、又は文字・網点写真などの画像モードの選択を、操作パネル26又は入力部65などでユーザから受付けることも可能である。この場合、操作パネル26又は入力部65で受付けた選択に基づいて、CPUが原稿種別の識別を行う。   As the document type, for example, selection of an image mode such as a text document, a halftone photo, a photographic paper (continuous tone) photo, or a text / halftone photo is received from the user via the operation panel 26 or the input unit 65. Is also possible. In this case, the CPU identifies the document type based on the selection received by the operation panel 26 or the input unit 65.

実施の形態2,4で説明したように、本発明に係る誤差拡散法を用いて中間調生成をコンピュータに実行させるコンピュータプログラムを記録媒体に記憶しているが、記録媒体としては、マイクロコンピュータで処理が行われるように図示しないメモリ、例えばROMのようなプログラムメディアであってもよく、外部記憶部64などのプログラム読取装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであってもよい。いずれの場合においても、格納されているプログラムはマイクロプロセッサがアクセスして実行させる構成であってもよいし、プログラムを読み出し、読み出されたプログラムは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされ、そのプログラムが実行される方式であってもよい。この場合、ダウンロード用のプログラムは予め本体装置に格納されているものとする。   As described in the second and fourth embodiments, a computer program that causes a computer to execute halftone generation using the error diffusion method according to the present invention is stored in a recording medium. A program medium such as a ROM (not shown) such as a ROM (not shown) may be provided so as to perform processing, and a program reading device such as an external storage unit 64 is provided and can be read by inserting a recording medium therein. It may be. In any case, the stored program may be configured to be accessed and executed by the microprocessor, and the program is read out, and the read program is stored in a program storage area (not shown) of the microcomputer. A method of downloading and executing the program may be used. In this case, it is assumed that the download program is stored in the main device in advance.

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

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

上述した各実施の形態においては、網点領域又は網点写真と判別された場合は図4に示す拡散係数を選択したが、代わりに図5(a)〜(d)の何れか一つを固定的に選択することも可能である。この場合、メモリに格納する拡散係数の組が5組から4組に減少するため、メモリ容量を低減するなど回路規模を縮小することができる。   In each of the embodiments described above, the diffusion coefficient shown in FIG. 4 is selected when it is determined as a halftone dot region or a halftone dot photograph. Instead, any one of FIGS. 5A to 5D is selected. It is also possible to select fixedly. In this case, since the number of sets of diffusion coefficients stored in the memory is reduced from 5 to 4, the circuit scale can be reduced by reducing the memory capacity.

本発明に係る画像処理装置を備えるデジタルカラー複写機(画像形成装置)の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of a digital color copying machine (image forming apparatus) including an image processing apparatus according to the present invention. 弱い強調処理に用いるフィルタ係数の例を示す図である。It is a figure which shows the example of the filter coefficient used for a weak emphasis process. 画像処理装置の階調再現処理部の概略要部構成を示すブロック図である。It is a block diagram which shows the schematic principal part structure of the gradation reproduction process part of an image processing apparatus. 拡散係数の組の例を示す図である。It is a figure which shows the example of the group of a spreading | diffusion coefficient. 拡散係数の組の例を示す図である。It is a figure which shows the example of the group of a spreading | diffusion coefficient. 本発明に係る画像処理装置を含む画像形成システムの一構成例を示すブロック図である。1 is a block diagram illustrating a configuration example of an image forming system including an image processing apparatus according to the present invention. コンピュータの一構成例を示すブロック図である。It is a block diagram which shows the example of 1 structure of a computer. 誤差拡散法を用いた中間調生成の処理手順の例を示すフローチャートである。It is a flowchart which shows the example of the process sequence of a halftone production | generation using an error diffusion method. 原稿種別に基づいて拡散係数の切換を行う本発明に係る画像処理装置を備えるデジタルカラー複写機(画像形成装置)の概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration of a digital color copying machine (image forming apparatus) including an image processing apparatus according to the present invention that switches a diffusion coefficient based on a document type. 画像処理装置の階調再現処理部の概略要部構成を示すブロック図である。It is a block diagram which shows the schematic principal part structure of the gradation reproduction process part of an image processing apparatus. 本発明に係る画像処理装置を含む画像形成システムの他の構成例を示すブロック図である。It is a block diagram which shows the other structural example of the image forming system containing the image processing apparatus which concerns on this invention. コンピュータの一構成例を示すブロック図である。It is a block diagram which shows the example of 1 structure of a computer. 誤差拡散法を用いた中間調生成の処理手順の他の例を示すフローチャートである。It is a flowchart which shows the other example of the process sequence of a halftone production | generation using an error diffusion method.

符号の説明Explanation of symbols

10 画像処理装置
14、51 領域分離処理部
19、52 階調再現処理部
20 デジタルカラー複写機
21、56 原稿種別判別部
22 画像入力装置
24 画像出力装置
26 操作パネル
30 加算器
32 量子化処理部
34 量子化閾値格納部
36 量子化誤差算出部
38 拡散誤差算出部
40 蓄積誤差格納部
42 拡散係数格納部
44 乱数発生器
50 コンピュータ
55 プリンタ(画像出力装置)
61 CPU
62 RAM
63 ハードディスク
64 外部記憶部
69 記録媒体
DESCRIPTION OF SYMBOLS 10 Image processing device 14, 51 Area separation processing unit 19, 52 Gradation reproduction processing unit 20 Digital color copying machine 21, 56 Document type discrimination unit 22 Image input device 24 Image output device 26 Operation panel 30 Adder 32 Quantization processing unit 34 Quantization threshold storage unit 36 Quantization error calculation unit 38 Diffusion error calculation unit 40 Accumulation error storage unit 42 Diffusion coefficient storage unit 44 Random number generator 50 Computer 55 Printer (image output device)
61 CPU
62 RAM
63 Hard disk 64 External storage 69 Recording medium

Claims (11)

連続階調領域を主に有する連続階調画像の各画素と網点領域を主に有する網点画像の各画素とを量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、中間調の生成を行う画像処理装置において、
連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数を複数組記憶する記憶部と、
量子化する画素が連続階調画像に含まれるか、網点画像に含まれるかを識別する識別手段と、
中間調の生成を行う画像に強調処理又は平滑化処理を行う空間フィルタ処理手段と、
前記識別手段による識別結果が網点画像の場合、空間フィルタ処理手段による処理を禁止又は空間フィルタ処理手段に強調処理を行わせる制御手段と、
前記識別結果が連続階調画像の場合は、各画素について誤差拡散を行う都度、記憶部に記憶されている連続階調画像用の拡散係数の組から1つの組を無作為に選択し、前記識別結果が網点画像の場合は、記憶部に記憶されている所定の組を選択する選択手段と
を備え、該選択手段が選択した組の拡散係数に基づいて誤差を拡散させるように構成してあることを特徴とする画像処理装置。
Errors that occur when quantizing each pixel of a continuous tone image mainly having a continuous tone region and each pixel of a halftone image mainly having a halftone dot region are not quantized around the pixels. In an image processing apparatus that generates halftones using an error diffusion method in which diffusion is performed based on a diffusion coefficient corresponding to each pixel,
A storage unit for storing a plurality of sets of diffusion coefficients for continuous tone images and halftone images set so that a range where error diffusion is performed for continuous tone images is wider than a range where error diffusion is performed for halftone images ;
Identifying means for identifying whether a pixel to be quantized is included in a continuous tone image or a halftone image;
Spatial filter processing means for performing enhancement processing or smoothing processing on an image for generating a halftone;
When the identification result by the identification means is a halftone image, a control means for prohibiting the processing by the spatial filter processing means or causing the spatial filter processing means to perform an enhancement process;
When the identification result is a continuous tone image, each time error diffusion is performed for each pixel, one set is randomly selected from the set of diffusion coefficients for the continuous tone image stored in the storage unit, If the identification result is a halftone image, a selection unit that selects a predetermined set stored in the storage unit is provided, and the error is diffused based on the diffusion coefficient of the set selected by the selection unit. An image processing apparatus.
連続階調領域と網点領域とを有する画像の各画素を量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、中間調の生成を行う画像処理装置において、
連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数を複数組記憶する記憶部と、
量子化する画素が連続階調領域に含まれるか、網点領域に含まれるかを識別する識別手段と、
中間調の生成を行う画像に強調処理又は平滑化処理を行う空間フィルタ処理手段と、
前記識別手段による識別結果が網点領域の場合、空間フィルタ処理手段による処理を禁止又は空間フィルタ処理手段に強調処理を行わせる制御手段と、
前記識別結果が連続階調領域の場合は、各画素について誤差拡散を行う都度、記憶部に記憶されている連続階調画像用の拡散係数の組から1つの組を無作為に選択し、前記識別結果が網点領域の場合は、記憶部に記憶されている所定の組を選択する選択手段と
を備え、該選択手段が選択した組の拡散係数に基づいて誤差を拡散させるように構成してあることを特徴とする画像処理装置。
An error diffusion method for diffusing an error generated when quantizing each pixel of an image having a continuous tone region and a halftone dot region to each non-quantized pixel around the pixel based on a corresponding diffusion coefficient In an image processing apparatus that generates a halftone using
A storage unit for storing a plurality of sets of diffusion coefficients for continuous tone images and halftone images set so that a range where error diffusion is performed for continuous tone images is wider than a range where error diffusion is performed for halftone images ;
Identifying means for identifying whether a pixel to be quantized is included in a continuous tone area or a halftone area;
Spatial filter processing means for performing enhancement processing or smoothing processing on an image for generating a halftone;
When the identification result by the identification means is a halftone dot region, the control means for prohibiting the processing by the spatial filter processing means or causing the spatial filter processing means to perform an enhancement process;
When the identification result is a continuous tone region, each time error diffusion is performed for each pixel, one set is randomly selected from a set of diffusion coefficients for continuous tone images stored in the storage unit, and When the identification result is a halftone dot region, the image processing apparatus includes selection means for selecting a predetermined set stored in the storage unit, and configured to diffuse an error based on the diffusion coefficient of the set selected by the selection means. An image processing apparatus.
乱数発生器を備え、
前記選択手段は、乱数発生器が発生した乱数に基づいて、前記記憶部に記憶されている何れか1つの組を選択するように構成してあることを特徴とする請求項1又は2に記載の画像処理装置。
Equipped with a random number generator,
The said selection means is comprised so that any one group memorize | stored in the said memory | storage part may be selected based on the random number which the random number generator generate | occur | produced. Image processing apparatus.
各画素は複数の色成分を含み、色成分毎に誤差拡散法による中間調の生成を行っており、
前記選択手段は、前記記憶部に記憶されている何れか1つの組を、色成分毎に選択するように構成してあることを特徴とする請求項1乃至3の何れかひとつに記載の画像処理装置。
Each pixel includes a plurality of color components, and a halftone is generated by the error diffusion method for each color component.
The image according to any one of claims 1 to 3, wherein the selection unit is configured to select any one set stored in the storage unit for each color component. Processing equipment.
各画素は複数の色成分を含み、色成分毎に誤差拡散法による中間調の生成を行っており、
前記選択手段は、前記記憶部に記憶されている所定の組を、全色成分に共通の1組だけ選択するように構成してあることを特徴とする請求項1乃至3の何れかひとつに記載の画像処理装置。
Each pixel includes a plurality of color components, and a halftone is generated by the error diffusion method for each color component.
4. The apparatus according to claim 1, wherein the selection unit is configured to select only one set common to all color components from the predetermined set stored in the storage unit. 5. The image processing apparatus described.
請求項1乃至5の何れかに記載の画像処理装置と、
該画像処理装置によって中間調の生成が行われた画像をシートに形成する画像形成手段と
を備えることを特徴とする画像形成装置。
An image processing apparatus according to any one of claims 1 to 5,
An image forming apparatus comprising: an image forming unit that forms an image on which a halftone has been generated by the image processing apparatus;
連続階調領域を主に有する連続階調画像の各画素と網点領域を主に有する網点画像の各画素とを量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、中間調の生成を行う画像処理方法において、
量子化する画素が連続階調画像に含まれるか、網点画像に含まれるかを識別するステップと、
該ステップによる識別結果が網点画像の場合、空間フィルタ処理としての強調処理又は平滑化処理のうち、強調処理を中間調の生成を行う画像に施す処理、又は前記空間フィルタ処理を行わずに次のステップへ移行させる処理の何れか一方を選択的に実行するステップと、
連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数の複数の組のうち、前記識別結果が連続階調画像の場合は、各画素について誤差拡散を行う都度、連続階調画像用の拡散係数の組から何れか1つの組を無作為に選択し、前記識別結果が網点画像の場合は、所定の拡散係数の組を選択するステップと
を有し、選択した組の拡散係数に基づいて誤差を拡散させることを特徴とする画像処理方法。
Errors that occur when quantizing each pixel of a continuous tone image mainly having a continuous tone region and each pixel of a halftone image mainly having a halftone dot region are not quantized around the pixels. In an image processing method for generating a halftone using an error diffusion method in which diffusion is performed based on a diffusion coefficient corresponding to each pixel,
Identifying whether the pixel to be quantized is contained in a continuous tone image or a halftone image;
When the identification result in this step is a halftone dot image, the emphasis process or the smoothing process as the spatial filter process, the process of applying the emphasis process to the image that generates halftones, or the following without performing the spatial filter process Selectively executing any one of the processes to be transferred to
Among the plurality of sets of diffusion coefficients for continuous tone images and halftone images set so that the error diffusion range for the continuous tone image is wider than the error diffusion range for the halftone image, the identification result Is a continuous tone image, each time error diffusion is performed for each pixel, one of the sets of diffusion coefficients for the continuous tone image is randomly selected and the identification result is a halftone image. Comprises a step of selecting a predetermined set of diffusion coefficients, and an error is diffused based on the selected set of diffusion coefficients.
連続階調領域と網点領域とを有する画像の各画素を量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、中間調の生成を行う画像処理方法において、
量子化する画素が連続階調領域に含まれるか、網点領域に含まれるかを識別するステップと、
該ステップによる識別結果が網点領域の場合、空間フィルタ処理としての強調処理又は平滑化処理のうち、強調処理を中間調の生成を行う画像に施す処理、又は前記空間フィルタ処理を行わずに次のステップへ移行させる処理の何れか一方を選択的に実行するステップと、
連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数の複数の組のうち、前記識別結果が連続階調領域の場合は、各画素について誤差拡散を行う都度、連続階調画像用の拡散係数の組から何れか1つの組を無作為に選択し、前記識別結果が網点領域の場合は、所定の拡散係数の組を選択するステップと
を有し、選択した組の拡散係数に基づいて誤差を拡散させることを特徴とする画像処理方法。
An error diffusion method for diffusing an error generated when quantizing each pixel of an image having a continuous tone region and a halftone dot region to each non-quantized pixel around the pixel based on a corresponding diffusion coefficient In an image processing method for generating a halftone using
Identifying whether a pixel to be quantized is included in a continuous tone region or a halftone dot region;
When the identification result in this step is a halftone dot region, the emphasis process or the smoothing process as the spatial filter process, the process of applying the emphasis process to the image that generates the halftone, or the following without performing the spatial filter process Selectively executing any one of the processes to be transferred to
Among the plurality of sets of diffusion coefficients for continuous tone images and halftone images set so that the error diffusion range for the continuous tone image is wider than the error diffusion range for the halftone image, the identification result Is a continuous tone area, each time error diffusion is performed for each pixel, one of the sets of diffusion coefficients for a continuous tone image is randomly selected, and the identification result is a halftone area. Comprises a step of selecting a predetermined set of diffusion coefficients, and an error is diffused based on the selected set of diffusion coefficients.
連続階調領域を主に有する連続階調画像の各画素と網点領域を主に有する網点画像の各画素とを量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、コンピュータに中間調を生成させるコンピュータプログラムにおいて、
コンピュータに、量子化する画素が連続階調画像に含まれるか、網点画像に含まれるかを識別させる手順と、
コンピュータに、前記手順による識別結果が網点画像の場合、空間フィルタ処理としての強調処理又は平滑化処理のうち、強調処理を中間調の生成を行う画像に施す処理、又は前記空間フィルタ処理を行わずに次の手順へ移行させる処理の何れか一方を選択的に実行させる手順と、
コンピュータに、連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数の複数の組のうち、前記識別結果が連続階調画像の場合は、各画素について誤差拡散を行う都度、連続階調画像用の拡散係数の組から何れか1つの組を無作為に選択させ、前記識別結果が網点画像の場合は、所定の拡散係数の組を選択させる手順と
を含み、コンピュータに、選択した組の拡散係数に基づいて誤差を拡散させることを特徴とするコンピュータプログラム。
Errors that occur when quantizing each pixel of a continuous tone image mainly having a continuous tone region and each pixel of a halftone image mainly having a halftone dot region are not quantized around the pixels. In a computer program that causes a computer to generate a halftone using an error diffusion method that diffuses to pixels based on a corresponding diffusion coefficient,
A procedure for causing a computer to identify whether a pixel to be quantized is included in a continuous tone image or a halftone image;
When the identification result according to the procedure is a halftone image, the computer performs a process of applying an enhancement process to an image that generates halftones, or a spatial filter process, out of an enhancement process or a smoothing process as a spatial filter process A procedure for selectively executing one of the processes to be transferred to the next procedure without
Among a plurality of sets of diffusion coefficients for continuous tone images and halftone images set so that the range in which error diffusion for continuous tone images is performed by the computer is wider than the range of error diffusion for halftone images, When the identification result is a continuous tone image, each time error diffusion is performed for each pixel, any one set is randomly selected from the set of diffusion coefficients for the continuous tone image, and the identification result is a halftone dot. In the case of an image, a computer program comprising: a step of selecting a predetermined set of diffusion coefficients; and causing the computer to diffuse an error based on the selected set of diffusion coefficients.
連続階調領域と網点領域とを有する画像の各画素を量子化する際に生じた誤差を前記画素周辺の量子化されていない各画素へ夫々対応する拡散係数に基づいて拡散させる誤差拡散法を用いて、コンピュータに中間調を生成させるコンピュータプログラムにおいて、
コンピュータに、量子化する画素が連続階調領域に含まれるか、網点領域に含まれるかを識別させる手順と、
コンピュータに、前記手順による識別結果が網点領域の場合、空間フィルタ処理としての強調処理又は平滑化処理のうち、強調処理を中間調の生成を行う画像に施す処理、又は前記空間フィルタ処理を行わずに次の手順へ移行させる処理の何れか一方を選択的に実行させる手順と、
コンピュータに、連続階調画像について誤差拡散させる範囲が、網点画像について誤差拡散させる範囲より広くなるように設定された連続階調画像用及び網点画像用の拡散係数の複数の組のうち、前記識別結果が連続階調領域の場合は、各画素について誤差拡散を行う都度、連続階調画像用の拡散係数の組から何れか1つの組を無作為に選択させ、前記識別結果が網点領域の場合は、所定の拡散係数の組を選択させる手順と
を含み、コンピュータに、選択した組の拡散係数に基づいて誤差を拡散させることを特徴とするコンピュータプログラム。
An error diffusion method for diffusing an error generated when quantizing each pixel of an image having a continuous tone region and a halftone dot region to each non-quantized pixel around the pixel based on a corresponding diffusion coefficient In a computer program that causes a computer to generate a halftone,
A procedure for causing a computer to identify whether a pixel to be quantized is included in a continuous tone area or a halftone area;
When the identification result according to the procedure is a halftone dot area, the computer performs the processing for applying the enhancement processing to the image for generating the halftone in the enhancement processing or smoothing processing as the spatial filter processing, or the spatial filter processing. A procedure for selectively executing one of the processes to be transferred to the next procedure without
Among a plurality of sets of diffusion coefficients for continuous tone images and halftone images set so that the range in which error diffusion for continuous tone images is performed by the computer is wider than the range of error diffusion for halftone images, If the identification result is a continuous tone region, each time error diffusion is performed for each pixel, one set is randomly selected from a set of diffusion coefficients for continuous tone images, and the identification result is a halftone dot In the case of a region, a computer program comprising: a step of selecting a predetermined set of diffusion coefficients; and causing the computer to diffuse an error based on the selected set of diffusion coefficients.
請求項9又は10記載のコンピュータプログラムが記録されていることを特徴とするコンピュータ読取り可能な記録媒体。   A computer-readable recording medium on which the computer program according to claim 9 or 10 is recorded.
JP2005124262A 2005-04-21 2005-04-21 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium Expired - Fee Related JP4596964B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005124262A JP4596964B2 (en) 2005-04-21 2005-04-21 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005124262A JP4596964B2 (en) 2005-04-21 2005-04-21 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium

Publications (2)

Publication Number Publication Date
JP2006304015A JP2006304015A (en) 2006-11-02
JP4596964B2 true JP4596964B2 (en) 2010-12-15

Family

ID=37471758

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005124262A Expired - Fee Related JP4596964B2 (en) 2005-04-21 2005-04-21 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium

Country Status (1)

Country Link
JP (1) JP4596964B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009060205A (en) * 2007-08-30 2009-03-19 Sharp Corp Display image quality control method and television broadcast receiver
JP5319941B2 (en) * 2008-03-18 2013-10-16 Necカシオモバイルコミュニケーションズ株式会社 Terminal device and program
JP4731595B2 (en) * 2008-11-21 2011-07-27 シャープ株式会社 Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
CN114067758B (en) * 2020-08-05 2022-09-13 青岛海信移动通信技术股份有限公司 Mobile terminal and image display method thereof

Also Published As

Publication number Publication date
JP2006304015A (en) 2006-11-02

Similar Documents

Publication Publication Date Title
US8259357B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer readable recording medium
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
US8477324B2 (en) Image processor and image processing method that uses s-shaped gamma curve
JP4173154B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4197346B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium
JP2004289819A (en) Image forming apparatus and image forming method
JP4437825B2 (en) Image processing method, image processing apparatus, image forming apparatus, program, and recording medium
JP4731595B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP4402090B2 (en) Image forming apparatus, image forming method, program, and recording medium
JP2005286571A (en) Image processing apparatus, image forming apparatus provided with image processing apparatus, image processing method, image processing program, and recording medium recording image processing program
JP4596964B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP2008306400A (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP4740913B2 (en) Image processing apparatus, image processing method, image forming apparatus and program, and recording medium
JP3933941B2 (en) Image processing method, image processing apparatus, and image forming apparatus
JP2010206725A (en) Image processor, image forming device, image processing method, program, and recording medium
JP4549227B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
CN100452827C (en) Image processing method, image processing device and image forming device
JP4176053B2 (en) Image processing method, image processing apparatus, image forming apparatus, and computer program
JP4499685B2 (en) Image processing apparatus, image forming apparatus including the same, image processing method, image processing program, and recording medium
JP4560357B2 (en) Image processing method, image processing apparatus, image forming apparatus including the same, program, and recording medium
JP4334504B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP4498316B2 (en) Image processing apparatus, image processing method, image forming apparatus, and computer program
JP2002010079A (en) Color image processing equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080828

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080902

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081028

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090218

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20090302

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20090508

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100921

R150 Certificate of patent or registration of utility model

Ref document number: 4596964

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131001

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees