[go: up one dir, main page]

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

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

Info

Publication number
JP2008306400A
JP2008306400A JP2007150810A JP2007150810A JP2008306400A JP 2008306400 A JP2008306400 A JP 2008306400A JP 2007150810 A JP2007150810 A JP 2007150810A JP 2007150810 A JP2007150810 A JP 2007150810A JP 2008306400 A JP2008306400 A JP 2008306400A
Authority
JP
Japan
Prior art keywords
pixel
quantization
value
image
quantized
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007150810A
Other languages
Japanese (ja)
Inventor
Yoshinori Murakami
義則 村上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2007150810A priority Critical patent/JP2008306400A/en
Publication of JP2008306400A publication Critical patent/JP2008306400A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

【課題】濃度むら、又はざらつきが少なく、かつハイライト領域のドットが知覚しにくい中間調の画像を生成することができるとともに、画質を向上させることができる画像処理方法、画像処理装置、画像形成装置、コンピュータプログラム及びコンピュータプログラムを記録した記録媒体を提供する。
【解決手段】周辺画素判定部289は、複数の量子化済の画素で構成される注目画素周辺の周辺画素ブロックを抽出し、抽出した周辺画素ブロックの各画素の量子化値に基づいて、注目画素周辺の低階調度合いを特定し、判定信号を出力する。量子化処理部282は、判定信号に基づいて、量子化閾値格納部288に格納された複数の量子化テーブルの中から適切な量子化テーブルを選択し、選択した量子化テーブル内の複数の量子化閾値に基づいて多値量子化を行い、量子化値を出力画像データとして出力する。
【選択図】図3
An image processing method, an image processing apparatus, and an image forming method capable of generating a halftone image with less unevenness of density or roughness, and in which dots in a highlight area are difficult to perceive and improving image quality. An apparatus, a computer program, and a recording medium on which the computer program is recorded are provided.
A peripheral pixel determination unit 289 extracts a peripheral pixel block around a pixel of interest composed of a plurality of quantized pixels, and based on a quantized value of each pixel of the extracted peripheral pixel block A low gradation level around the pixel is specified and a determination signal is output. The quantization processing unit 282 selects an appropriate quantization table from the plurality of quantization tables stored in the quantization threshold storage unit 288 based on the determination signal, and the plurality of quantization tables in the selected quantization table. Multi-value quantization is performed based on the quantization threshold, and the quantized value is output as output image data.
[Selection] Figure 3

Description

本発明は、入力画像の各画素を量子化する際に生じた画素値との誤差を、拡散係数に基づいて、量子化されていない周辺の画素へ拡散させる誤差拡散法を用いて、中間調の出力画像を生成する画像処理方法、画像処理装置、該画像処理装置を備える画像形成装置、該画像処理装置を実現するためのコンピュータプログラム、及び該コンピュータプログラムを記録した記録媒体に関する。   The present invention uses an error diffusion method in which an error from a pixel value generated when quantizing each pixel of an input image is diffused to surrounding pixels that are not quantized based on a diffusion coefficient. The present invention relates to an image processing method for generating an output image, an image processing apparatus, an image forming apparatus including the image processing apparatus, a computer program for realizing the image processing apparatus, 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. In these output devices, since the number of gradations that can be output is generally smaller than the number of gradations of the input image input from the input device, the pseudo gradation reproduction processing may be performed on the input image. Many.

擬似階調再現処理の1つの手法として、誤差拡散処理がある。誤差拡散処理では、量子化値を2値とした2値誤差拡散処理があるが、2値ゆえに画素間での濃度差が大きくなり、例えば、出力解像度が600dpi×600dpi程度ではテクスチャあるいはワームなどが視認しやすく、ハイライト領域では個々のドットが確認でき粒状性が悪い。この問題点を抑えるために、量子化のための閾値の個数を増やし、それらの閾値により3つ以上の量子化値に量子化を行う多値誤差拡散処理がある。   One method of pseudo gradation reproduction processing is error diffusion processing. In the error diffusion process, there is a binary error diffusion process in which the quantized value is binary. However, because of the binary value, the density difference between pixels increases. For example, when the output resolution is about 600 dpi × 600 dpi, a texture or a worm is generated. It is easy to see and individual dots can be confirmed in the highlight area, resulting in poor graininess. In order to suppress this problem, there is a multi-value error diffusion process in which the number of thresholds for quantization is increased and quantization is performed on three or more quantized values by using these threshold values.

電子写真方式の画像出力機器では、一般に露光パルス幅の変調度合いに応じて階調を記録するが、露光パルス幅が狭い場合、現像特性の不安定な低い潜像電位の頻度が多くなり、出力画像に濃度むら、又はざらつきなどを引き起こすため、露光パルス幅の狭い信号が生じないような制御を行う技術が提案されている。(非特許文献1参照)。   In an electrophotographic image output device, gradation is generally recorded according to the degree of modulation of the exposure pulse width, but when the exposure pulse width is narrow, the frequency of low latent image potentials with unstable development characteristics increases, and the output In order to cause density unevenness or roughness in an image, a technique has been proposed in which control is performed so that a signal having a narrow exposure pulse width is not generated. (Refer nonpatent literature 1).

また、多値誤差拡散処理において、注目画素周辺の既に量子化の終了した量子化画素のうち、所定のウインドウ内の量子化画素の配置状態を調べ、同一量子化値を有する画素の連続性を検知した場合、連続性を阻止するように注目画素の量子化閾値を決定する画像処理装置が提案されている(特許文献1参照)。
特許第2756308号公報 山本直史、樋口和彦、坂上英一、関沢秀和、「ハイライト領域の再現性を向上した新しい多値誤差拡散処理方式」、電子写真学会誌、1998年、第37巻、第1号、p.25−30
Also, in the multi-level error diffusion process, among the already quantized pixels around the pixel of interest, the arrangement state of the quantized pixels in a predetermined window is examined, and the continuity of pixels having the same quantized value is checked. There has been proposed an image processing apparatus that determines a quantization threshold of a pixel of interest so as to prevent continuity when detected (see Patent Document 1).
Japanese Patent No. 2756308 Naofumi Yamamoto, Kazuhiko Higuchi, Eiichi Sakagami, Hidekazu Sekizawa, “New Multilevel Error Diffusion Processing Method with Improved Reproducibility of Highlight Region”, Journal of Electrophotographic Society, 1998, Vol. 37, No. 1, p. 25-30

しかしながら、非特許文献1の技術にあっては、現像特性の不安定な低い潜像電位の頻度を抑制すべく露光パルス幅の狭い信号が生じないように制御する場合、ハイライト領域は2値誤差拡散処理の場合に比べて小さいドットで再現されるが、個々のドットは、まだ確認され易いという問題がある。また、単独パルスが主走査方向に連続することはないとしても、副走査方向あるいは斜め方向に連続する場合もあり、その連続しているドットが知覚されやすいものとなってしまう。さらに、注目画素の隣接する1つ前の画素の量子化値に基づいて、注目画素を量子化するための量子化閾値を制御したとしても、注目画素の周辺の複数の画素が考慮されていないため、注目画素の周辺の画素の状況によっては出力画像の濃度むら、又はざらつきに影響を与える場合がある。   However, in the technique of Non-Patent Document 1, when the control is performed so that a signal having a narrow exposure pulse width is not generated in order to suppress the frequency of a low latent image potential with unstable development characteristics, the highlight area is binary. Although it is reproduced with smaller dots than in the error diffusion process, there is a problem that individual dots are still easily confirmed. Even if the single pulse does not continue in the main scanning direction, it may continue in the sub-scanning direction or in the oblique direction, and the continuous dots are likely to be perceived. Furthermore, even if the quantization threshold value for quantizing the pixel of interest is controlled based on the quantization value of the pixel immediately before the pixel of interest, a plurality of pixels around the pixel of interest are not considered. Therefore, depending on the situation of pixels around the pixel of interest, the output image may have uneven density or roughness.

また、特許文献1の画像処理装置にあっては、注目画素の周辺画素の同一量子化値を有する画素の連続性を検知しているため、特定の量子化値によるテクスチャを抑制することは可能になるものの、濃度むら、又はざらつきの要因となる低い階調を表す量子化値(画素値)については、全く制御することができない。すなわち、画素値の連続性が検知されない場合には、濃度むら、又はざらつきの要因が存在する場合であっても、これを防止することができないという問題があった。また、実際の画像においては、画素値が一方向に連続するだけでなく、様々なパターンが存在しているため、これらのパターンを確実に検知できない場合には、画質の品質を向上させることは困難である。   In the image processing apparatus disclosed in Patent Document 1, since the continuity of pixels having the same quantized value of the peripheral pixels of the target pixel is detected, it is possible to suppress the texture due to the specific quantized value. However, the quantized value (pixel value) representing a low gradation that causes uneven density or roughness cannot be controlled at all. That is, when the continuity of pixel values is not detected, there is a problem that even if there is a cause of uneven density or roughness, this cannot be prevented. In an actual image, not only the pixel values are continuous in one direction, but also there are various patterns. If these patterns cannot be detected reliably, the quality of image quality can be improved. Have difficulty.

本発明は斯かる事情に鑑みてなされたものであり、複数の多値量子化済の画素で構成される注目画素周辺の周辺画素ブロックの各画素の量子化値に基づいて、注目画素周辺の階調度合いを特定し、特定した階調度合いに応じて、注目画素を多値量子化するための量子化テーブル(量子化閾値の組)を決定し、決定した量子化閾値を用いて、多値誤差拡散処理を施すことにより、濃度むら、又はざらつきが少なく、かつハイライト領域のドットが知覚しにくい中間調の画像を生成することができるとともに、画質を向上させることができる画像処理方法、画像処理装置、該画像処理装置を備える画像形成装置、該画像処理装置を実現するコンピュータプログラム及び該コンピュータプログラムを記録した記録媒体を提供することを目的とする。   The present invention has been made in view of such circumstances, and based on the quantized value of each pixel in the peripheral pixel block around the target pixel composed of a plurality of multi-value quantized pixels, A gradation level is specified, a quantization table (a set of quantization thresholds) for multi-value quantization of the pixel of interest is determined in accordance with the specified gradation level, and multiple quantization thresholds are determined using the determined quantization threshold. By performing value error diffusion processing, it is possible to generate a halftone image with less uneven density or roughness, and in which dots in the highlight area are difficult to perceive, and an image processing method capable of improving image quality, An object of the present invention is to provide an image processing apparatus, an image forming apparatus including the image processing apparatus, a computer program for realizing the image processing apparatus, and a recording medium on which the computer program is recorded.

本発明に係る画像処理方法は、複数の画素で構成される画像の各画素を所定の方向に走査し、量子化閾値に基づいて各画素の画素値を多値量子化して中間調の画像を生成する画像処理方法において、複数の量子化閾値と量子化値とを関連付けた量子化テーブルを予め複数記憶し、多値量子化された各画素の量子化値を記憶し、複数の多値量子化済の画素で構成される注目画素周辺の周辺画素ブロックを抽出し、抽出した周辺画素ブロックの各画素の量子化値に基づいて、前記注目画素周辺の階調度合いを特定し、特定した階調度合いに応じて、前記注目画素を多値量子化するための量子化テーブルを決定し、決定した量子化テーブルを用いて、前記注目画素の画素値を多値量子化することを特徴とする。   The image processing method according to the present invention scans each pixel of an image composed of a plurality of pixels in a predetermined direction, multi-quantizes the pixel value of each pixel based on a quantization threshold, and generates a halftone image. In the image processing method to be generated, a plurality of quantization tables in which a plurality of quantization threshold values and quantization values are associated with each other are stored in advance, and a quantization value of each pixel subjected to multi-value quantization is stored. A peripheral pixel block around the target pixel composed of converted pixels is extracted, and the gradation level around the target pixel is specified based on the quantized value of each pixel of the extracted peripheral pixel block, and the specified floor A quantization table for multi-level quantization of the target pixel is determined according to a degree of key, and the pixel value of the target pixel is multi-level quantized using the determined quantization table .

本発明に係る画像処理装置は、複数の画素で構成される画像の各画素を所定の方向に走査し、量子化閾値に基づいて各画素の画素値を多値量子化して中間調の画像を生成する画像処理装置において、複数の量子化閾値と量子化値とを関連付けた量子化テーブルを複数記憶する手段と、多値量子化された各画素の量子化値を記憶する手段と、複数の多値量子化済の画素で構成される注目画素周辺の周辺画素ブロックを抽出する抽出手段と、該抽出手段で抽出された周辺画素ブロックの各画素の量子化値に基づいて、前記注目画素周辺の階調度合いを特定する手段と、該手段で特定された階調度合いに応じて、前記注目画素を多値量子化するための量子化テーブルを決定する決定手段と、該決定手段で決定された量子化テーブルを用いて、前記注目画素の画素値を多値量子化する量子化手段とを備えることを特徴とする。   The image processing apparatus according to the present invention scans each pixel of an image composed of a plurality of pixels in a predetermined direction, multi-quantizes the pixel value of each pixel based on a quantization threshold, and generates a halftone image. In the image processing device to be generated, means for storing a plurality of quantization tables in which a plurality of quantization thresholds and quantization values are associated, means for storing the quantization values of each pixel subjected to multi-value quantization, Extraction means for extracting a peripheral pixel block around the target pixel composed of multi-value quantized pixels, and based on the quantized value of each pixel of the peripheral pixel block extracted by the extraction means Means for determining the gradation level of the image, a determination means for determining a quantization table for multi-level quantization of the pixel of interest according to the gradation level specified by the means, and determined by the determination means Using the quantization table described above, Characterized in that it comprises a quantizing means for multilevel quantized pixel values of the pixels.

本発明に係る画像処理装置は、画像の各画素の画素値に基づいて、少なくとも文字領域、網点領域、又は写真領域のいずれの領域であるかを判定する領域判定手段を備え、前記決定手段は、前記周辺画素ブロックの各画素の量子化値に基づいて特定された前記注目画素周辺の階調度合いと、前記領域判定手段で判定された判定結果に応じて量子化テーブルを決定するように構成してあることを特徴とする。   The image processing apparatus according to the present invention includes an area determination unit that determines at least one of a character area, a halftone dot area, and a photographic area based on a pixel value of each pixel of an image, and the determination unit Determining a quantization table according to the gradation level around the target pixel specified based on the quantization value of each pixel of the peripheral pixel block and the determination result determined by the region determination unit It is configured.

本発明に係る画像処理装置は、前記決定手段は、画像の色成分に基づいて、量子化テーブルを決定するように構成してあることを特徴とする。   The image processing apparatus according to the present invention is characterized in that the determining means is configured to determine a quantization table based on a color component of an image.

本発明に係る画像処理装置は、周辺画素ブロックの各画素の注目画素からの距離に応じて、各画素に重み付けを付与する手段と、周辺画素ブロックの各画素の量子化値に応じて、各画素の濃度の安定度合いを示す安定係数を付与する手段とを備え、前記決定手段は、付与された重み付け及び安定係数に基づいて、量子化テーブルを決定するように構成してあることを特徴とする。   The image processing apparatus according to the present invention includes a unit that weights each pixel according to a distance from the target pixel of each pixel of the peripheral pixel block, and a quantization value of each pixel of the peripheral pixel block. Means for assigning a stability coefficient indicating the degree of stability of pixel density, and the determining means is configured to determine a quantization table based on the assigned weighting and stability coefficient. To do.

本発明に係る画像処理装置は、周辺画素ブロックの各画素の量子化値の組み合わせに関連付けて各量子化テーブルを識別するための識別子を記憶する手段と、前記抽出手段で抽出された周辺画素ブロックの各画素の量子化値に基づいて識別子を特定する手段とを備え、前記決定手段は、前記手段で特定された識別子で識別される量子化テーブルを決定するように構成してあることを特徴とする。   An image processing apparatus according to the present invention includes: means for storing an identifier for identifying each quantization table in association with a combination of quantization values of each pixel of a peripheral pixel block; and the peripheral pixel block extracted by the extraction means Means for specifying an identifier based on a quantization value of each pixel of the pixel, and the determining means is configured to determine a quantization table identified by the identifier specified by the means. And

本発明に係る画像処理装置は、注目画素が走査される都度、周辺画素ブロックの中で最初に多値量子化された画素の量子化値を消去する消去手段を備えることを特徴とする。   The image processing apparatus according to the present invention includes an erasing unit that erases the quantized value of the first multi-value quantized pixel in the peripheral pixel block every time the target pixel is scanned.

本発明に係る画像処理装置は、N個の異なる量子化値夫々に、0からN−1までの整数値を対応付けていることを特徴とする。   The image processing apparatus according to the present invention is characterized in that an integer value from 0 to N−1 is associated with each of N different quantized values.

本発明に係る画像処理装置は、N個の異なる量子化値夫々に、0からM−1(M<N)までの整数値を対応付けていることを特徴とする。   The image processing apparatus according to the present invention is characterized in that an integer value from 0 to M−1 (M <N) is associated with each of N different quantized values.

本発明に係る画像処理装置は、N個の異なる量子化値夫々に、0からM−1(M≦2のべき乗<N)までの整数値を対応付けていることを特徴とする。   The image processing apparatus according to the present invention is characterized in that an integer value from 0 to M−1 (M ≦ 2 to the power of <N) is associated with each of N different quantized values.

本発明に係る画像処理装置は、画像の色成分に応じて、対応付ける整数値を設定する手段を備えることを特徴とする。   The image processing apparatus according to the present invention includes means for setting an integer value to be associated according to the color component of the image.

本発明に係る画像処理装置は、画像の色成分に応じて、量子化閾値を設定する手段を備えることを特徴とする。   The image processing apparatus according to the present invention includes means for setting a quantization threshold according to a color component of an image.

本発明に係る画像処理装置は、複数の量子化テーブルの中で共通する量子化閾値は、該量子化閾値を有する一の量子化テーブルに記憶してあり、共通する量子化閾値以外の量子化閾値は、各量子化テーブルに記憶するようにしてあることを特徴とする。   In the image processing apparatus according to the present invention, a common quantization threshold among a plurality of quantization tables is stored in one quantization table having the quantization threshold, and quantization other than the common quantization threshold is performed. The threshold value is stored in each quantization table.

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

本発明に係るコンピュータプログラムは、コンピュータに、複数の画素で構成される画像の各画素を所定の方向に走査し、量子化閾値に基づいて各画素の画素値を多値量子化して中間調の画像を生成させるためのコンピュータプログラムにおいて、コンピュータに、複数の多値量子化済の画素で構成される注目画素周辺の周辺画素ブロックを抽出させる手段と、コンピュータに、抽出された周辺画素ブロックの各画素の量子化値に基づいて、前記注目画素周辺の階調度合いを特定させる手段と、コンピュータに、特定された階調度合いに応じて、前記注目画素を多値量子化するための量子化テーブルを決定させる手段と、コンピュータに、決定された量子化テーブルを用いて、前記注目画素の画素値を多値量子化させる手段として機能させることを特徴とする。   The computer program according to the present invention scans each pixel of an image composed of a plurality of pixels in a predetermined direction, multi-quantizes the pixel value of each pixel based on a quantization threshold, and performs halftone processing. In a computer program for generating an image, means for causing a computer to extract a peripheral pixel block around a pixel of interest composed of a plurality of multi-value quantized pixels, and a computer for each of the extracted peripheral pixel blocks Means for specifying a gradation level around the target pixel based on a quantization value of the pixel, and a quantization table for causing the computer to perform multi-level quantization on the target pixel according to the specified gradation level And a means for causing the computer to perform multi-value quantization of the pixel value of the pixel of interest using the determined quantization table And wherein the door.

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

本発明にあっては、複数の量子化閾値と量子化値とを関連付けた複数の量子化テーブル(量子化閾値の組)を予め記憶している。また、複数の画素で構成される画像の各画素を所定の方向に走査し、量子化閾値に基づいて各画素の画素値を多値量子化し、各画素の量子化値を記憶する。多値量子化する場合、複数の多値量子化済の画素で構成される注目画素周辺の周辺画素ブロックを抽出し、抽出した周辺画素ブロックの各画素の量子化値に基づいて、前記注目画素周辺の階調度合いを特定する。この場合、周辺画素ブロックの大きさ、又は形状は、適宜設定することができる。画像の階調数が、例えば、0〜255であるとし、量子化閾値に基づいて、階調数0〜255を8個の量子化値に量子化する。量子化値を小さい方から順に0〜7の量子化値番号で表すと、量子化値番号「0」は、生成される画像(出力画像)の階調が「0」であり、出力がなく、ドットの印字が行われないため、画像としては最も安定な(濃度むら等がない)場合である。量子化値番号「1」は、出力画像の階調が低く、「0」を除く最も低階調であり、ドットの印字が行われた場合、ドットの形成状態が最も不安定な場合である。また、量子化値番号が「2」〜「7」となるにつれて、出力画像の階調度合いが高くなり、ドットの印字が行われた場合、ドットの形成状態が次第に安定する。   In the present invention, a plurality of quantization tables (a set of quantization thresholds) in which a plurality of quantization thresholds and quantization values are associated are stored in advance. Further, each pixel of an image composed of a plurality of pixels is scanned in a predetermined direction, and the pixel value of each pixel is multi-value quantized based on the quantization threshold, and the quantized value of each pixel is stored. When performing multi-level quantization, the peripheral pixel block around the target pixel composed of a plurality of multi-level quantized pixels is extracted, and the target pixel is based on the quantized value of each pixel of the extracted peripheral pixel block Specify the surrounding gradation level. In this case, the size or shape of the peripheral pixel block can be set as appropriate. Assume that the number of gradations of an image is, for example, 0 to 255, and the number of gradations 0 to 255 is quantized to 8 quantization values based on the quantization threshold. When the quantized values are represented by quantized value numbers of 0 to 7 in order from the smallest, the quantized value number “0” indicates that the gradation of the generated image (output image) is “0” and there is no output. Since dots are not printed, the image is most stable (there is no uneven density). The quantized value number “1” is the lowest gradation except “0” for the output image, and the dot formation state is the most unstable when the dots are printed. . Further, as the quantization value number becomes “2” to “7”, the gradation level of the output image becomes higher, and when dots are printed, the dot formation state is gradually stabilized.

注目画素周辺の階調度合い(例えば、より低階調である度合い)を特定するには、例えば、周辺画素ブロック内の量子化値が低階調である値(例えば、「1」、「2」など)を有する画素の個数、あるいは、画素の位置に応じて特定する。特定した階調度合い(より低階調である度合い)に応じて、注目画素を多値量子化するための量子化テーブル(量子化閾値の組)を決定し、決定した量子化テーブルを用いて、注目画素の画素値を多値量子化する。すなわち、周辺画素ブロック内の階調度合いが低い場合(例えば、量子化値「1」を有する画素の個数が多い場合)、さらに濃度むら、あるいはざらつきの要因となる低階調の出力を抑制すべく、低階調の量子化値が出力されにくい量子化閾値の組を用いて量子化を行う。また、周辺画素ブロック内の階調度合いがそれほど低くない場合(例えば、量子化値「1」、「2」などを有する画素の個数が無いか、少ない場合)、隣接して低階調のドットの印字を行っても、濃度むら、あるいはざらつきが発生しにくいため、低階調の量子化値も出力され得る量子化閾値の組を用いて量子化を行う。これにより、濃度むら、又はざらつきが少なく、かつハイライト領域のドットが知覚しにくい中間調の画像を生成することができるとともに、画質を向上させることができる。   In order to specify the gradation level around the target pixel (for example, the level of lower gradation), for example, the quantization value in the peripheral pixel block is a value with a low gradation (for example, “1”, “2”). ”Etc.) or the position of the pixel. A quantization table (a set of quantization thresholds) for performing multi-level quantization of the pixel of interest is determined according to the specified gradation level (degree of lower gradation), and the determined quantization table is used. The pixel value of the target pixel is subjected to multi-value quantization. That is, when the gradation level in the peripheral pixel block is low (for example, when the number of pixels having the quantized value “1” is large), the output of low gradation that further causes uneven density or roughness is suppressed. Therefore, quantization is performed using a set of quantization thresholds at which low-tone quantization values are difficult to output. Further, when the gradation level in the peripheral pixel block is not so low (for example, when there are no or few pixels having quantized values “1”, “2”, etc.), adjacent low gradation dots Even when printing is performed, the density unevenness or roughness is unlikely to occur, and therefore, quantization is performed using a set of quantization thresholds that can also output low-tone quantized values. Accordingly, it is possible to generate a halftone image with less density unevenness or roughness and in which the dots in the highlight area are difficult to perceive, and the image quality can be improved.

また、本発明にあっては、領域判定手段は、画像の各画素の画素値に基づいて、少なくとも文字領域、網点領域、又は写真領域のいずれの領域であるかを判定する。領域判定は、例えば、注目画素を含むn×mの画素ブロック(例えば、15×15)における最小濃度値(最小画素値)と最大濃度値(最大画素値)の差分である最大濃度差と、隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度を算出し、予め定められている複数の閾値と比較することにより、下地領域、文字領域、網点領域、写真領域などに判定することができる。   In the present invention, the area determination unit determines whether the area is at least a character area, a halftone dot area, or a photographic area based on the pixel value of each pixel of the image. The region determination is performed by, for example, a maximum density difference which is a difference between a minimum density value (minimum pixel value) and a maximum density value (maximum pixel value) in an n × m pixel block including the target pixel (for example, 15 × 15), and Calculates the total density busyness, which is the sum of absolute values of density differences between adjacent pixels, and compares it with a plurality of predetermined thresholds to determine the background area, text area, dot area, photo area, etc. can do.

決定手段は、判定結果(領域識別信号)に応じて、量子化テーブルを決定する。例えば、文字領域又は網点領域であると判定された場合、濃度むら、あるいはざらつきの要因となりやすい小さい量子化値の画素があまり連続して存在せず、隣接して低階調のドットの印字を行っても、濃度むら、あるいはざらつきが発生しにくいため、注目画素周辺の階調度合いに係わらず低階調の量子化値も出力され得る量子化閾値の組を使用する。また、写真領域(文字領域でも網点領域でもない領域)であると判定された場合、ハイライト部で濃度むら、あるいはざらつきの要因となりやすい小さい量子化値の画素が連続して存在する可能性が高くなるため、さらに濃度むら、あるいはざらつきの要因となる低階調の出力を抑制すべく、注目画素周辺の階調度合いを参照して低階調の量子化値が出力されにくい量子化閾値の組を選択する。これにより、領域判定の結果及び注目画素周辺の階調度合いに基づいて出力画像の量子化値を制御することができ、従来の多値誤差拡散処理に比べ、画像出力装置から出力される画像の濃度むら、又はざらつきが目立つ領域では、その濃度むら、又はざらつきを少なくでき、かつ粒状性を悪化させないように画質を向上させることができる。   The determining means determines the quantization table according to the determination result (region identification signal). For example, when it is determined that the area is a character area or a halftone dot area, pixels with small quantized values that tend to cause uneven density or roughness are not continuously present, and adjacent low-tone dots are printed. Even if is performed, density unevenness or roughness is unlikely to occur. Therefore, a set of quantization thresholds that can output quantized values of low gradation regardless of the gradation level around the pixel of interest is used. In addition, when it is determined that the area is a photograph area (an area that is neither a character area nor a dot area), there may be continuous pixels with small quantized values that tend to cause uneven density or roughness in the highlight area. Quantization threshold that makes it difficult for low-tone quantization values to be output with reference to the degree of gradation around the pixel of interest, in order to further suppress low-tone output that causes uneven density or roughness. Select a pair. As a result, the quantized value of the output image can be controlled based on the result of the region determination and the gradation level around the target pixel, and the image output from the image output apparatus can be compared with the conventional multilevel error diffusion processing. In an area where density unevenness or roughness is conspicuous, the density unevenness or roughness can be reduced, and the image quality can be improved so as not to deteriorate the graininess.

また、本発明にあっては、入力画像の色成分に基づいて、量子化テーブルを決定する。色成分CMYK(C:シアン、M:マゼンタ、Y:イエロー、K:黒)毎に画像出力装置における出力の特性が異なる場合があり、同じ量子化値で画像を出力した場合であっても、色成分によって濃度むら、又はざらつきの様子は異なって見える。したがって、各色成分の出力の特性に合わせて量子化閾値の組を決定することにより画質を向上させることができる。   In the present invention, the quantization table is determined based on the color component of the input image. The output characteristics of the image output device may differ for each color component CMYK (C: cyan, M: magenta, Y: yellow, K: black), and even when an image is output with the same quantization value, Depending on the color component, the density unevenness or the appearance of roughness looks different. Therefore, the image quality can be improved by determining a set of quantization thresholds in accordance with the output characteristics of each color component.

また、本発明にあっては、周辺画素ブロックの各画素の注目画素からの距離に応じて、各画素に重み付け(重み付け係数)を付与するとともに、周辺画素ブロックの各画素の量子化値に応じて、各画素の濃度の安定度合いを示す安定係数を付与する。この場合、安定度合いは量子化値に関係する。例えば、量子化値が「0」であれば、ドットが印字されないため、出力画像は最も安定であり、量子化値が「1」である場合、ドットの形成状態が最も不安定であり、出力画像の濃度も最も不安定な場合である。量子化値が「2」から「7」になるに応じて、出力画像の濃度の安定度合いは大きくなる。決定手段は、付与された重み付け係数及び安定係数に基づいて、量子化テーブルを決定する。例えば、周辺画素ブロックの画素毎に、その画素の量子化値に対応する安定係数とその画素に付与された重み付け係数とを積算し、積算値を周辺画素ブロックのすべての画素について加算して求められた評価値の大小に基づいて、量子化テーブル(量子化閾値の組)を決定する。   In the present invention, each pixel in the peripheral pixel block is given a weight (weighting coefficient) according to the distance from the target pixel, and according to the quantization value of each pixel in the peripheral pixel block. Thus, a stability coefficient indicating the degree of stability of the density of each pixel is given. In this case, the degree of stability is related to the quantization value. For example, if the quantized value is “0”, dots are not printed, so the output image is the most stable. If the quantized value is “1”, the dot formation state is the most unstable and the output is This is the case where the image density is also most unstable. As the quantized value changes from “2” to “7”, the degree of stability of the density of the output image increases. The determining means determines the quantization table based on the assigned weighting coefficient and stability coefficient. For example, for each pixel in the peripheral pixel block, the stability coefficient corresponding to the quantization value of the pixel and the weighting coefficient assigned to the pixel are integrated, and the integrated value is obtained for all the pixels in the peripheral pixel block. A quantization table (a set of quantization thresholds) is determined based on the magnitude of the evaluated value.

評価値が大きい場合には、注目画素の周辺の階調度合いが、それほど低くなく、隣接して低階調のドットの印字を行っても、濃度むら、あるいはざらつきが発生しにくいため、低階調の量子化値も出力され得る量子化閾値の組を用いて量子化を行う。一方、評価値が小さい場合には、注目画素の周辺の階調度合いが低く、さらに濃度むら、あるいはざらつきの要因となる低階調の出力を抑制すべく、低階調の量子化値が出力されにくい量子化閾値の組を用いて量子化を行う。これにより、注目画素に対する隣接する画素のみ、あるいは一方向のみの画素の状況だけでなく、周辺の広い範囲の量子化値を参照することができ、様々なパターンが存在する画像に対しても、濃度むら、あるいはざらつきを防止して画像の品質を向上させることができる。   If the evaluation value is large, the gradation level around the pixel of interest is not so low, and even if dots of low gradation are printed adjacently, uneven density or roughness is unlikely to occur. Quantization is performed using a set of quantization thresholds that can also output a key quantization value. On the other hand, if the evaluation value is small, the gradation level around the pixel of interest is low, and a low gradation quantization value is output to suppress low gradation output that causes uneven density or roughness. Quantization is performed using a set of quantization thresholds that are difficult to be performed. As a result, not only the state of the pixel adjacent to the target pixel, or the state of the pixel in only one direction, but also a wide range of quantized values in the periphery can be referred to, and even for an image in which various patterns exist, The image quality can be improved by preventing density unevenness or roughness.

また、本発明にあっては、周辺画素ブロックの各画素の量子化値の組み合わせに関連付けて各量子化テーブルを識別するための識別子(例えば、量子化値の組み合わせに応じた低階調度合いを判定する判定信号)を記憶してあり、抽出された周辺画素ブロックの各画素の量子化値に基づいて識別子を特定し、特定された識別子で識別される量子化テーブルを決定する。量子化値の組合せと識別子との関連付けは、例えば、ルックアップ・テーブルで構成することができる。これにより、周辺画素ブロックの各画素の量子化値から、ルックアップ・テーブルを参照するだけで対応する量子化テーブルを選択することができ、特に演算回路を構成する必要がなく、回路規模の増大を抑えることができる。   In the present invention, an identifier for identifying each quantization table in association with a combination of quantization values of each pixel in the peripheral pixel block (for example, a low gradation degree corresponding to the combination of quantization values is set. A determination signal) is stored, an identifier is specified based on the quantized value of each pixel of the extracted peripheral pixel block, and a quantization table identified by the specified identifier is determined. The association between the combination of the quantized values and the identifier can be configured by, for example, a lookup table. As a result, it is possible to select a corresponding quantization table from the quantization value of each pixel in the peripheral pixel block only by referring to the lookup table, and it is not necessary to configure an arithmetic circuit, and the circuit scale is increased. Can be suppressed.

また、本発明にあっては、注目画素が走査される都度、周辺画素ブロックの中で最初に多値量子化された画素の量子化値を消去する。これにより、注目画素の周辺画素の量子化値を参照する場合に、入力画像の全画素の量子化値を記憶しておく必要がなく、記憶領域を削減することができる。   In the present invention, each time the target pixel is scanned, the quantized value of the first multi-value quantized pixel in the peripheral pixel block is erased. Thereby, when referring to the quantized values of the peripheral pixels of the target pixel, it is not necessary to store the quantized values of all the pixels of the input image, and the storage area can be reduced.

また、本発明にあっては、N個の異なる量子化値夫々に、0からN−1までの整数値を対応付ける。これにより、量子化値を少ないビットで記憶させておくことができるので、記憶領域の必要量を少なくすることができる。   In the present invention, an integer value from 0 to N−1 is associated with each of N different quantized values. As a result, the quantized value can be stored with a small number of bits, so that the required amount of storage area can be reduced.

また、本発明にあっては、N個の異なる量子化値夫々に、0からM−1(M<N)までの整数値を対応付ける。これにより、量子化値を少ないビットで記憶させておくことができるので、記憶領域の必要量を少なくすることができる。   In the present invention, an integer value from 0 to M−1 (M <N) is associated with each of N different quantized values. As a result, the quantized value can be stored with a small number of bits, so that the required amount of storage area can be reduced.

また、本発明にあっては、N個の異なる量子化値夫々に、0からM−1(M≦2のべき乗<N)までの整数値を対応付ける。これにより、量子化値をさらに少ないビット数で表すことができ、記憶領域をさらに低減することができる。   In the present invention, an integer value from 0 to M−1 (M ≦ 2 to power <N) is associated with each of N different quantized values. Thereby, the quantized value can be expressed by a smaller number of bits, and the storage area can be further reduced.

また、本発明にあっては、画像の色成分に応じて、対応付ける整数値を設定する。これにより、出力画像の色成分毎の特性を鑑みた量子化値を出力することができる。   In the present invention, an integer value to be associated is set according to the color component of the image. Thereby, it is possible to output a quantized value in consideration of the characteristics of each color component of the output image.

また、本発明にあっては、画像の色成分に応じて、量子化閾値を設定する。これにより、出力画像の色成分毎の特性を鑑みた量子化値を出力することができる。   In the present invention, the quantization threshold is set according to the color component of the image. Thereby, it is possible to output a quantized value in consideration of the characteristics of each color component of the output image.

また、本発明にあっては、複数の量子化テーブルの中で共通する量子化閾値は、該量子化閾値を有する一の量子化テーブルに記憶してあり、共通する量子化閾値以外の量子化閾値は、各量子化テーブルに記憶する。これにより、記憶領域を低減することができる。   In the present invention, a common quantization threshold value among a plurality of quantization tables is stored in one quantization table having the quantization threshold value, and quantization values other than the common quantization threshold value are stored. The threshold value is stored in each quantization table. Thereby, a storage area can be reduced.

本発明にあっては、複数の多値量子化済の画素で構成される注目画素周辺の周辺画素ブロックを抽出し、抽出した周辺画素ブロックの各画素の量子化値に基づいて、前記注目画素周辺の階調度合いを特定する。特定した階調度合いに応じて、注目画素を多値量子化するための量子化テーブル(量子化閾値の組)を決定し、決定した量子化テーブルを用いて、注目画素の画素値を多値量子化することにより、濃度むら、又はざらつきが少なく、かつハイライト領域のドットが知覚しにくい中間調の画像を生成することができるとともに、画質を向上させることができる。   In the present invention, the peripheral pixel block around the target pixel composed of a plurality of multi-value quantized pixels is extracted, and the target pixel is based on the quantized value of each pixel of the extracted peripheral pixel block Specify the surrounding gradation level. A quantization table (a set of quantization thresholds) for multilevel quantization of the pixel of interest is determined according to the specified gradation level, and the pixel value of the pixel of interest is multivalued using the determined quantization table By quantizing, it is possible to generate a halftone image with little density unevenness or roughness and in which dots in the highlight area are difficult to perceive, and the image quality can be improved.

また、本発明にあっては、画像の各画素の画素値に基づいて、少なくとも文字領域、網点領域、又は写真領域のいずれの領域であるかを判定し、注目画素の周辺画素の階調度合いと判定結果(領域識別信号)に応じて、量子化テーブルを決定することにより、注目画素の周辺画素の階調度合いと領域判定の結果とに基づいて出力画像の量子化値を制御することができ、従来の多値誤差拡散処理に比べ、画像出力装置から出力される画像の濃度むら、又はざらつきが目立つ領域では、その濃度むら、又はざらつきを少なくでき、かつ粒状性を悪化させないように画質を向上させることができる。   Further, in the present invention, based on the pixel value of each pixel of the image, it is determined whether it is at least a character area, a halftone dot area, or a photographic area, and the gradation of peripheral pixels of the target pixel By determining the quantization table according to the degree and the determination result (region identification signal), the quantization value of the output image is controlled based on the gradation degree of the surrounding pixels of the target pixel and the region determination result. Compared with the conventional multi-value error diffusion processing, the density unevenness or roughness of the image output from the image output apparatus can be reduced, and the graininess is not deteriorated. Image quality can be improved.

また、本発明にあっては、画像の色成分に基づいて、量子化テーブルを決定することにより、各色成分の出力の特性に合わせて量子化閾値の組を決定でき、より画質を向上させることができる。   In the present invention, by determining the quantization table based on the color component of the image, a set of quantization thresholds can be determined in accordance with the output characteristics of each color component, and the image quality can be further improved. Can do.

また、本発明にあっては、周辺画素ブロックの各画素の注目画素からの距離に応じて、各画素に重み付け(重み付け係数)を付与するとともに、周辺画素ブロックの各画素の量子化値に応じて、各画素の濃度の安定度合いを示す安定係数を付与し、付与された重み付け係数及び安定係数に基づいて、量子化テーブルを決定することにより、注目画素に対する隣接する画素のみ、あるいは一方向のみの画素の状況だけでなく、周辺の広い範囲の量子化値を参照することができ、様々なパターンが存在する画像に対しても、濃度むら、あるいはざらつきを防止して画像の品質を向上させることができる。   In the present invention, each pixel in the peripheral pixel block is given a weight (weighting coefficient) according to the distance from the target pixel, and according to the quantization value of each pixel in the peripheral pixel block. By adding a stability coefficient indicating the degree of density stability of each pixel and determining a quantization table based on the assigned weighting coefficient and stability coefficient, only the adjacent pixel to the target pixel or only in one direction In addition to the state of pixels, the surrounding quantized values can be referenced, and even for images with various patterns, density unevenness or roughness is prevented to improve image quality. be able to.

また、本発明にあっては、周辺画素ブロックの各画素の量子化値の組み合わせに関連付けて各量子化テーブルを識別するための識別子を記憶してあり、抽出された周辺画素ブロックの各画素の量子化値に基づいて識別子を特定し、特定された識別子で識別される量子化テーブルを決定することにより、特に演算回路を構成する必要がなく、回路規模の増大を抑えることができる。   In the present invention, an identifier for identifying each quantization table is stored in association with a combination of quantization values of each pixel of the peripheral pixel block, and each pixel of the extracted peripheral pixel block is stored. By specifying the identifier based on the quantized value and determining the quantization table identified by the specified identifier, it is not necessary to configure an arithmetic circuit in particular, and an increase in circuit scale can be suppressed.

また、本発明にあっては、注目画素が走査される都度、周辺画素ブロックの中で最初に多値量子化された画素の量子化値を消去することにより、注目画素の周辺画素の量子化値を参照する場合に、入力画像の全画素の量子化値を記憶しておく必要がなく、記憶領域を削減することができる。   In the present invention, each time the target pixel is scanned, the quantization value of the first multi-value quantized pixel in the peripheral pixel block is deleted, thereby quantizing the peripheral pixel of the target pixel. When referring to the values, it is not necessary to store the quantized values of all the pixels of the input image, and the storage area can be reduced.

また、本発明にあっては、N個の異なる量子化値夫々に、0からN−1までの整数値を対応付けることにより、量子化値を少ないビットで記憶させておくことができるので、記憶領域の必要量を少なくすることができる。   In the present invention, since the integer values from 0 to N-1 can be associated with each of N different quantized values, the quantized values can be stored with a small number of bits. The required amount of area can be reduced.

また、本発明にあっては、N個の異なる量子化値夫々に、0からM−1(M<N)までの整数値を対応付けることにより、量子化値を少ないビットで記憶させておくことができるので、記憶領域の必要量を少なくすることができる。   In the present invention, an integer value from 0 to M-1 (M <N) is associated with each of N different quantized values so that the quantized value is stored with a small number of bits. Therefore, the necessary amount of storage area can be reduced.

また、本発明にあっては、N個の異なる量子化値夫々に、0からM−1(M≦2のべき乗<N)までの整数値を対応付けることにより、量子化値をさらに少ないビット数で表すことができ、記憶領域をさらに低減することができる。   Further, in the present invention, an integer value from 0 to M−1 (M ≦ 2 to the power of <N) is associated with each of N different quantized values, whereby the quantized value is further reduced in the number of bits. The storage area can be further reduced.

また、本発明にあっては、画像の色成分に応じて、対応付ける整数値を設定することにより、出力画像の色成分毎の特性を鑑みた量子化値を出力することができる。   In the present invention, by setting an integer value to be associated according to the color component of the image, it is possible to output a quantized value in consideration of the characteristics of each color component of the output image.

また、本発明にあっては、画像の色成分に応じて、量子化閾値を設定することにより、出力画像の色成分毎の特性を鑑みた量子化値を出力することができる。   In the present invention, by setting the quantization threshold according to the color component of the image, it is possible to output a quantization value in consideration of the characteristics of each color component of the output image.

また、本発明にあっては、複数の量子化テーブルの中で共通する量子化閾値は、該量子化閾値を有する一の量子化テーブルに記憶してあり、共通する量子化閾値以外の量子化閾値は、各量子化テーブルに記憶することにより、記憶領域を低減することができる。   In the present invention, a common quantization threshold value among a plurality of quantization tables is stored in one quantization table having the quantization threshold value, and quantization values other than the common quantization threshold value are stored. The storage area can be reduced by storing the threshold in each quantization table.

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

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

カラー画像処理装置2は、後述する各処理部を備え、ASIC(Application Specific Integrated Circuit)などにより構成される。   The color image processing apparatus 2 includes processing units to be described later, and is configured by an ASIC (Application Specific Integrated Circuit) or the like.

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

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

入力階調補正部22は、シェーディング補正部21にて各種の歪みが取り除かれたRGB信号(RGBの反射率信号)のカラーバランスを整えると共に、濃度信号などのカラー画像処理装置2に採用されている画像処理システムが扱い易い信号に変換する処理を行う。また、入力階調補正部22は、下地濃度の除去又はコントラストなど画質調整処理を施し、処理後のRGB信号を領域分離処理部23へ出力する。   The input tone correction unit 22 adjusts the color balance of the RGB signal (RGB reflectance signal) from which various distortions have been removed by the shading correction unit 21 and is adopted in the color image processing apparatus 2 such as a density signal. The image processing system is converted into a signal that is easy to handle. The input tone correction unit 22 performs image quality adjustment processing such as background density removal or contrast, and outputs the processed RGB signal to the region separation processing unit 23.

領域分離処理部23は、入力されたRGB信号に基づき、入力された画像中の各画素が、下地領域、文字領域、網点領域、写真領域の何れであるかを判定し領域分離を行う。領域分離処理部23は、判定結果に基づいて、各画素がどの領域に属しているかを示す領域識別信号を色補正部24、黒生成下色除去部25、空間フィルタ処理部26、階調再現処理部28へ出力する。また、領域分離処理部23は、入力されたRGB信号をそのまま後段の色補正部24へ出力する。   Based on the input RGB signal, the region separation processing unit 23 determines whether each pixel in the input image is a base region, a character region, a halftone region, or a photographic region, and performs region separation. Based on the determination result, the region separation processing unit 23 outputs a region identification signal indicating to which region each pixel belongs to a color correction unit 24, a black generation and under color removal unit 25, a spatial filter processing unit 26, a gradation reproduction. The data is output to the processing unit 28. The region separation processing unit 23 outputs the input RGB signal as it is to the subsequent color correction unit 24.

領域分離処理としては、例えば、注目画素を含むn×mの画素ブロック(例えば、15×15)における最小濃度値(最小画素値)と最大濃度値(最大画素値)の差分である最大濃度差と、隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度を算出し、予め定められている複数の閾値と比較することにより、各画素を下地領域、写真領域(連続階調領域)、文字領域、又は網点領域に分離する。   As the region separation processing, for example, a maximum density difference which is a difference between a minimum density value (minimum pixel value) and a maximum density value (maximum pixel value) in an n × m pixel block (for example, 15 × 15) including the target pixel. And calculating the total density busyness, which is the sum of absolute values of density differences between adjacent pixels, and comparing each pixel with a plurality of predetermined thresholds, thereby making each pixel a background area, a photographic area (continuous tone area) ), Character area or halftone dot area.

下地領域の濃度分布は、通常、濃度変化が少ないため、最大濃度差及び総和濃度繁雑度は、ともに非常に小さくなる。写真領域の濃度分布は、滑らかな濃度変化をしており、最大濃度差及び総和濃度繁雑度は、ともに小さくなるが、下地領域に比較して大きくなる。網点領域の濃度分布は、網点により最大濃度差は様々であるが、総和濃度繁雑度は網点の数だけ濃度変化が生じているので、最大濃度差に対する総和濃度繁雑度の割合が大きくなる。したがって、最大濃度差と文字・網点判定閾値との積よりも総和濃度繁雑度が大きい場合、網点領域であると判定する。文字領域の濃度分布は、最大濃度差が大きく、それに伴って総和濃度繁雑度も大きくなるが、網点領域よりも濃度変化が少ないため、網点領域よりも総和濃度繁雑度は小さくなる。したがって、最大濃度差と文字・網点判定閾値との積よりも総和濃度繁雑度が小さい場合、文字領域であると判定する。   Since the density distribution of the background 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 larger than the background area. The density distribution in the halftone dot area varies depending on the halftone dots, 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 determination threshold, 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 in the halftone dot area, the total density busyness is smaller than that in the halftone dot area. Accordingly, 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.

算出された最大濃度差と最大濃度差閾値との比較、及び算出された総和濃度繁雑度と総和濃度繁雑度閾値との比較を行い、最大濃度差が最大濃度差閾値よりも小さく、かつ、総和濃度繁雑度が総和濃度繁雑度閾値よりも小さい場合、注目画素は下地/写真領域であると判定し、そうでない場合は文字/網点領域であると判定する。下地/写真領域であると判断された場合、算出された最大濃度差と下地・写真判定閾値との比較を行い、最大濃度差の方が小さい場合は下地領域であると判定し、最大濃度差の方が大きい場合は写真領域であると判定する。文字/網点領域であると判断された場合、算出された総和濃度繁雑度と最大濃度差及び文字・網点判定閾値の積算値との比較を行い、総和濃度繁雑度の方が小さい場合は、文字領域であると判定し、総和濃度繁雑度の方が大きい場合は、網点領域であると判定することができる。   Comparing the calculated maximum density difference with the maximum density difference threshold, and comparing the calculated total density busyness with the total density busyness threshold, the maximum density difference is smaller than the maximum density difference threshold, and the total When the density busyness is smaller than the total density busyness threshold, it is determined that the target pixel is a background / photo area, and otherwise, it is determined as 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 integrated value of the maximum density difference and the character / halftone determination threshold value. If the total density busyness is smaller If the total density busyness is larger, it can be determined that the area is a halftone dot area.

色補正部24は、色を忠実に再現するために、不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行う。処理方法としては、入力側のRGB信号と出力側のCMY信号の対応関係をLUT(ルックアップ・テーブル)として格納しておく方法、あるいは、(R、G、B)の値を(C、M、Y)の値に変換する変換行列を用いるカラーマスキング法などがある。   The color correction unit 24 performs a process of removing color turbidity based on the spectral characteristics of the CMY color material including unnecessary absorption components in order to faithfully reproduce the color. As a processing method, a method of storing the correspondence between the RGB signal on the input side and the CMY signal on the output side as an LUT (Look Up Table), or the value of (R, G, B) is set to (C, M , Y), a color masking method using a conversion matrix for conversion into values.

例えば、カラーマスキング法を用いる場合には、あるCMYデータを、カラー画像出力装置3に与えた場合に出力される色のL* * * 値(CIE1976L* * * 信号(CIE:Commission International de l’Eclairage;国際照明委員会、また、L* :明度、a* 、b* :色度))と同じL* * * をもつカラーパッチを、カラー画像入力装置1に読み込ませたときのRGBデータと、カラー画像出力装置3に与えたCMYデータの組を多数用意し、それらの組合せより上述の変換行列の各係数を算出し、算出した係数を用いて色補正処理を行う。より精度を高めたい場合は、二次以上の高次の項を加えることができる。 For example, when the color masking method is used, an L * a * b * value (CIE 1976 L * a * b * signal (CIE: Commission ) of a color output when certain CMY data is given to the color image output device 3. International de l'Eclairage; let the color image input device 1 read a color patch having the same L * a * b * as L * : brightness, a * , b * : chromaticity)) A large number of sets of RGB data and CMY data given to the color image output device 3 are prepared, each coefficient of the above-described conversion matrix is calculated from the combination, and color correction processing is performed using the calculated coefficient. . If you want to increase the accuracy, you can add higher-order terms of second order or higher.

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

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

空間フィルタ処理部26は、黒生成下色除去部25から入力されたCMYK信号に対して、領域識別信号に基づいたデジタルフィルタによる空間フィルタ処理を行う。これにより、画像データの空間周波数特性が補正され、カラー画像出力装置3における出力画像のぼやけ、又は粒状性劣化を防止する。例えば、空間フィルタ処理部26は、領域分離処理部23において文字領域に分離された領域を、特に黒文字又は色文字の再現性を高めるため、鮮鋭強調処理を施し高周波成分を強調する。また、領域分離処理部23にて網点領域として分離された領域は、空間フィルタ処理部26において、網点成分を除去するためのローパス・フィルタ処理は行わず、網点成分を可能な限り再現できるように、空間フィルタ処理をスルーさせたり(禁止したり)、鮮鋭強調処理で高周波成分を強調する。網点領域については、ディザ処理はモアレを防止するために平滑化処理が行われているが、平滑化処理が行われると網点の形態がくずれ、網点を再現する上で好ましくない。そこで、本発明においては、網点領域に対して、何も処理を行わない(空間フィルタ処理をスルー)か、あるいは弱い強調処理を行うことにより、網点の形態を保存する。   The spatial filter processing unit 26 performs spatial filter processing using a digital filter based on the region identification signal on the CMYK signal input from the black generation and under color removal unit 25. As a result, the spatial frequency characteristics of the image data are corrected, and blurring of the output image in the color image output device 3 or deterioration of graininess is prevented. For example, the spatial filter processing unit 26 performs sharp enhancement processing on the regions separated into character regions by the region separation processing unit 23 to enhance the reproducibility of black characters or color characters, and emphasizes high frequency components. In addition, the region separated as the halftone dot region by the region separation processing unit 23 is reproduced by the spatial filter processing unit 26 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. For the halftone area, the dithering process is smoothed to prevent moire. However, when the smoothing process is performed, the halftone dot shape is lost, which is not preferable in reproducing the halftone dots. 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.

図2は弱い強調処理に用いるフィルタ係数の例を示す説明図である。なお、空間フィルタ処理部26における空間フィルタ処理は、網点領域の場合はスルー処理又は鮮鋭強調処理としたが、領域によらず共通のフィルタ処理を行うことも可能である。出力階調補正部27は、空間フィルタ処理部26から入力されたCMYK信号に対して、カラー画像出力装置3の特性値である網点面積率に変換する出力階調補正処理を行い、出力階調補正処理後のCMYK信号を階調再現処理部28へ出力する。   FIG. 2 is an explanatory diagram showing an example of filter coefficients used for weak enhancement processing. The spatial filter processing in the spatial filter processing unit 26 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. The output tone correction unit 27 performs an output tone correction process for converting the CMYK signal input from the spatial filter processing unit 26 into a halftone dot area ratio that is a characteristic value of the color image output device 3, and The CMYK signal after the tone correction processing is output to the gradation reproduction processing unit 28.

階調再現処理部28は、出力階調補正部27から入力されたCMYK信号の画像データに対し、領域識別信号に基づいて、最終的に画像が擬似的に階調を再現できるように階調再現処理(中間調の生成)を施すものである。本発明においては多値誤差拡散法を用いて中間調の生成を行う。   The gradation reproduction processing unit 28 applies gradation to the image data of the CMYK signal input from the output gradation correction unit 27 so that the image can finally reproduce the gradation in a pseudo manner based on the region identification signal. Reproduction processing (halftone generation) is performed. In the present invention, a halftone is generated using a multilevel error diffusion method.

カラー画像処理装置2は、階調再現処理部28で処理された画像データ(CMYK信号)を記憶部(不図示)に一旦記憶し、画像形成をする所定のタイミングで記憶部に記憶した画像データを読み出し、読み出した画像データをカラー画像出力装置3へ出力する。なお、カラー画像出力装置3は、画像を記録媒体(例えば紙等)上に出力するものであり、例えば、電子写真方式又はインクジェット方式のカラー画像出力装置等であるが、これらに限定されるものではない。   The color image processing apparatus 2 temporarily stores the image data (CMYK signal) processed by the gradation reproduction processing unit 28 in a storage unit (not shown), and stores the image data in the storage unit at a predetermined timing for image formation. And the read image data is output to the color image output device 3. The color image output device 3 outputs an image on a recording medium (for example, paper), and is an electrophotographic or inkjet color image output device, but is not limited thereto. is not.

操作パネル4は、例えば、液晶ディスプレイ等の表示部と設定ボタン等の操作部とが一体化されたタッチパネル等により構成され、操作パネル4より入力された情報に基づいてカラー画像入力装置1、カラー画像処理装置2、カラー画像出力装置3の動作が制御される。なお、以上の各処理は、図示していないCPU(Central Processing Unit:制御手段)により制御される。   The operation panel 4 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 4, the color image input device 1, color The operations of the image processing device 2 and the color image output device 3 are controlled. Each of the above processes is controlled by a CPU (Central Processing Unit: control means) not shown.

図3は階調再現処理部28の構成を示すブロック図である。階調再現処理部28は、加算器281、比較器を有する量子化処理部282、減算器を有する量子化誤差算出部283、乗算器を有する拡散誤差算出部284、RAM(Random Access Memory)などで構成される蓄積誤差格納部285、ROM(Read Only Memory)などで構成される拡散係数格納部286、乱数発生器287、ROMなどで構成される量子化閾値格納部288、周辺画素判定部289などを備えている。階調再現処理部28は、入力画像データで構成される入力画像の注目画素(処理対象の画素)を所定の方向に走査し、走査した注目画素毎に所定の処理を行う。   FIG. 3 is a block diagram showing the configuration of the gradation reproduction processing unit 28. The gradation reproduction processing unit 28 includes an adder 281, a quantization processing unit 282 having a comparator, a quantization error calculating unit 283 having a subtractor, a diffusion error calculating unit 284 having a multiplier, a RAM (Random Access Memory), and the like. An accumulation error storage unit 285 composed of ROM, a diffusion coefficient storage unit 286 composed of ROM (Read Only Memory), a random number generator 287, a quantization threshold storage unit 288 composed of ROM, etc., and a surrounding pixel determination unit 289 Etc. The gradation reproduction processing unit 28 scans the target pixel (processing target pixel) of the input image composed of the input image data in a predetermined direction, and performs predetermined processing for each scanned target pixel.

階調再現処理部28に入力される入力画像データの各画素は、CMYKの4つの色成分から構成されており、色成分毎に多値誤差拡散法を用いた中間調生成が行われる。このため、共通の回路により多値誤差拡散処理を色成分毎に順番に行うこともでき、あるいは、CMYKの各色成分の多値誤差拡散処理を夫々別の回路で並列的に行うこともできる。なお、各色成分の多値誤差拡散は、同様の処理が行われるため、以下の説明では1つの色成分に対する処理について説明し、他の色成分に対する処理については異なる点だけ説明する。   Each pixel of the input image data input to the gradation reproduction processing unit 28 is composed of four color components CMYK, and halftone generation using a multi-value error diffusion method is performed for each color component. For this reason, multi-value error diffusion processing can be performed in order for each color component by a common circuit, or multi-value error diffusion processing for each color component of CMYK can be performed in parallel by separate circuits. Since multi-level error diffusion of each color component is performed in the same manner, the following description will be made on the processing for one color component, and only the differences will be described for the processing on other color components.

加算器281は、注目画素の画素値(濃度値)に、蓄積誤差格納部285から取得した注目画素の位置に対応する蓄積誤差(拡散誤差)を加算し、蓄積誤差が加算された画素値を量子化処理部282及び量子化誤差算出部283へ出力する。   The adder 281 adds a storage error (diffusion error) corresponding to the position of the target pixel acquired from the storage error storage unit 285 to the pixel value (density value) of the target pixel, and calculates the pixel value to which the storage error has been added. The data is output to the quantization processing unit 282 and the quantization error calculation unit 283.

量子化処理部282は、周辺画素判定部289から入力された判定信号に基づいて、量子化閾値格納部288に格納(記憶)された複数の量子化テーブルの中から対応する量子化テーブル(量子化閾値の組)を選択する。量子化処理部282は、入力された画素値と、選択された量子化テーブル内の複数の量子化閾値とを比較して多値量子化を行い、量子化値を出力画像データとして出力する。例えば、入力画像の階調数が0〜255であるとし、量子化閾値に基づいて、階調数0〜255を8個の量子化値(例えば、0、36、73、109、146、182、219、255。また、これらを0〜7の量子化値番号に置き換えても良い。)に量子化する。また、量子化処理部282は、算出した量子化値を量子化誤差算出部283、周辺画素判定部289へ出力する。   Based on the determination signal input from the surrounding pixel determination unit 289, the quantization processing unit 282 selects a corresponding quantization table (quantum) from among a plurality of quantization tables stored (stored) in the quantization threshold storage unit 288. Select a threshold value set). The quantization processing unit 282 compares the input pixel value with a plurality of quantization thresholds in the selected quantization table, performs multi-value quantization, and outputs the quantization value as output image data. For example, assuming that the number of gradations of the input image is 0 to 255, the number of gradations 0 to 255 is changed to 8 quantized values (for example, 0, 36, 73, 109, 146, 182) based on the quantization threshold. 219, 255. These may be replaced with quantized value numbers of 0 to 7.) Also, the quantization processing unit 282 outputs the calculated quantization value to the quantization error calculation unit 283 and the surrounding pixel determination unit 289.

量子化処理部282は、領域分離処理部23から入力された領域識別信号に応じて、複数の量子化テーブルの中から対応する量子化テーブルを選択する。なお、判定信号と量子化テーブルとの関係は後述する。例えば、文字領域又は網点領域であると判定された場合、濃度むら、あるいはざらつきの要因となりやすい小さい量子化値の画素があまり連続して存在せず、隣接して低階調のドットの印字を行っても、濃度むら、あるいはざらつきが発生しにくいため、低階調の量子化値も出力され得る量子化テーブルを選択する。また、写真領域(文字領域でも網点領域でもない領域)であると判定された場合、ハイライト部で濃度むら、あるいはざらつきの要因となりやすい小さい量子化値の画素が連続して存在する可能性が高くなるため、さらに濃度むら、あるいはざらつきの要因となる低階調の出力を抑制すべく、低階調の量子化値が出力されにくい量子化テーブルを選択する。   The quantization processing unit 282 selects a corresponding quantization table from a plurality of quantization tables according to the region identification signal input from the region separation processing unit 23. The relationship between the determination signal and the quantization table will be described later. For example, when it is determined that the area is a character area or a halftone dot area, pixels with small quantized values that tend to cause uneven density or roughness are not continuously present, and adjacent low-tone dots are printed. Since the density unevenness or roughness is hardly generated even if the above is performed, a quantization table capable of outputting a quantized value of low gradation is selected. In addition, when it is determined that the area is a photograph area (an area that is neither a character area nor a dot area), there may be continuous pixels with small quantized values that tend to cause uneven density or roughness in the highlight area. Therefore, in order to further suppress the output of low gradation that causes density unevenness or roughness, a quantization table that does not easily output a low gradation quantization value is selected.

また、量子化処理部282は、判定信号と領域識別信号との組み合わせに応じて、量子化テーブルを決定するようにすることもできる。この場合、例えば、文字領域又は網点領域であると判定された場合、濃度むら、あるいはざらつきの要因となりやすい小さい量子化値の画素があまり連続して存在せず、隣接して低階調のドットの印字を行っても、濃度むら、あるいはざらつきが発生しにくいため、判定信号に拘わらず、低階調の量子化値も出力され得る量子化テーブルを選択する。一方、写真領域(文字領域でも網点領域でもない領域)であると判定された場合、後述するように判定信号に応じて、量子化テーブルを選択する。   Also, the quantization processing unit 282 can determine the quantization table according to the combination of the determination signal and the region identification signal. In this case, for example, when it is determined that the region is a character region or a halftone dot region, pixels with small quantized values that tend to cause unevenness in density or roughness do not exist so continuously, and adjacent to low gradations. Even if dots are printed, uneven density or roughness is unlikely to occur, so a quantization table that can output a quantized value of low gradation is selected regardless of the determination signal. On the other hand, when it is determined that the area is a photograph area (an area that is neither a character area nor a dot area), a quantization table is selected in accordance with a determination signal as will be described later.

図4は量子化テーブルの構成を示す説明図である。量子化テーブルは、量子化閾値、量子化閾値により量子化される画素値の範囲、量子化値、量子化値番号、量子化値に対応付けられた対応値などから構成されている。量子化値の個数がN個であれば、量子化閾値格納部288に格納(記憶)させておくのは量子化値そのものではなく、量子化値が小さい値のものから順番に、0からN−1の整数値に対応させることができる。これにより、記憶させておく情報のビット数を少なくして記憶領域の必要量を抑えることができる。なお、図中、画素値の範囲は、説明のために設けたものであり、量子化テーブルの構成要素とする必要は必ずしもない。   FIG. 4 is an explanatory diagram showing the structure of the quantization table. The quantization table includes a quantization threshold, a range of pixel values quantized by the quantization threshold, a quantization value, a quantization value number, a corresponding value associated with the quantization value, and the like. If the number of quantized values is N, it is not the quantized value itself that is stored (stored) in the quantized threshold value storage unit 288, but from the smallest quantized value in order from 0 to N It can correspond to an integer value of -1. As a result, the number of bits of information to be stored can be reduced and the required amount of storage area can be suppressed. In the figure, the range of pixel values is provided for explanation, and is not necessarily a component of the quantization table.

入力画像の各画素の階調数が、例えば、0〜255の256階調である場合、量子化閾値を、18、55、91、128、164、201、237とすることにより、階調数を8個の量子化値0、36、73、109、146、182、219、255(0〜7の量子化値番号)に量子化することができる。図4に示すように、画素値が0の場合、量子化閾値18以下であるので量子化値は0となる。また、画素値(濃度値)が19〜55の場合、量子化値は35(量子化値番号1)となる。以下、同様に各画素の画素値に応じて量子化値番号は2〜7となる。   When the number of gradations of each pixel of the input image is, for example, 256 gradations from 0 to 255, the number of gradations is set by setting the quantization threshold to 18, 55, 91, 128, 164, 201, 237. Can be quantized into eight quantized values 0, 36, 73, 109, 146, 182, 219, 255 (quantized value numbers of 0 to 7). As shown in FIG. 4, when the pixel value is 0, the quantization value is 0 because it is equal to or less than the quantization threshold value 18. When the pixel value (density value) is 19 to 55, the quantized value is 35 (quantized value number 1). Hereinafter, similarly, the quantization value number becomes 2 to 7 according to the pixel value of each pixel.

量子化値番号が0の場合、出力画像の階調が0、すなわち、出力がなく、ドットの印字が行われないため、画像としては最も安定な(濃度むら等がない)場合である。また、量子化値番号が1、2の場合は、出力画像の階調が低く、ドットの印字が行われた場合、ドットの形成状態が最も安定しない場合である。また、量子化値番号が3〜7となるにつれて、出力画像の階調度合いが高くなり、ドットの印字が行われた場合、ドットの形成状態が次第に安定する。   When the quantization value number is 0, the gradation of the output image is 0, that is, there is no output and dot printing is not performed, so that the image is most stable (no density unevenness or the like). Further, when the quantization value numbers are 1 and 2, the gradation of the output image is low, and when dots are printed, the dot formation state is least stable. Further, as the quantization value number becomes 3 to 7, the gradation level of the output image becomes higher, and when dots are printed, the dot formation state is gradually stabilized.

対応値は、8個の量子化値番号をさらに少ない整数値で統合するためのものであり、例えば、出力がなく、ドットの印字が行われなく出力画像としては最も安定している量子化値番号0に対して、対応値0を割り当て、低階調であって、出力画像の安定性が最もよくない量子化値番号1、2に対して、まとめて対応値1を割り当てる。以下、同様にして対応値2、3を割り当てる。これにより、対応値0が最も安定した画像(出力なし)であり、対応値1が低階調であって最も不安定な画像であり、対応値が大きくなるにつれて、画像の安定性が増すことになる。なお、8個の整数値からなる量子化値番号に対応させて、4個の整数値からなる対応値を割り当てた場合には、ビット数を3から2へ少なくすることができ、量子化テーブルを記憶する際の記憶容量をさらに低減することができる。   The corresponding value is for integrating the eight quantized value numbers with a smaller integer value. For example, there is no output, dot printing is not performed, and the quantized value that is most stable as an output image Corresponding value 0 is assigned to number 0. Corresponding value 1 is assigned collectively to quantized value numbers 1 and 2 that have low gradation and the best stability of the output image. Hereinafter, correspondence values 2 and 3 are assigned in the same manner. As a result, the correspondence value 0 is the most stable image (no output), the correspondence value 1 is the most unstable image with the low gradation, and the stability of the image increases as the correspondence value increases. become. In addition, when a correspondence value consisting of four integer values is assigned in association with a quantization value number consisting of eight integer values, the number of bits can be reduced from 3 to 2, and the quantization table The storage capacity when storing can be further reduced.

量子化誤差算出部283は、量子化処理部282から入力された量子化値と、加算器281から入力される画素値との誤差(量子化誤差)を算出し、算出した量子化誤差を拡散誤差算出部284へ出力する。   The quantization error calculation unit 283 calculates an error (quantization error) between the quantization value input from the quantization processing unit 282 and the pixel value input from the adder 281 and diffuses the calculated quantization error. The data is output to the error calculation unit 284.

拡散誤差算出部284は、量子化誤差算出部283から入力された量子化誤差と、拡散係数格納部286から取得した誤差拡散マトリクスの各拡散係数とに基づいて、注目画素の周辺画素であって量子化処理が未処理の各画素に拡散する拡散誤差を算出する。拡散誤差算出部284は、算出した拡散誤差を蓄積誤差格納部285に格納する。   The diffusion error calculation unit 284 is a peripheral pixel of the pixel of interest based on the quantization error input from the quantization error calculation unit 283 and each diffusion coefficient of the error diffusion matrix acquired from the diffusion coefficient storage unit 286. A diffusion error that is diffused to each unprocessed pixel is calculated. The diffusion error calculation unit 284 stores the calculated diffusion error in the accumulation error storage unit 285.

図5は誤差拡散マトリクスの一例を示す説明図である。誤差拡散マトリクスは、例えば、注目画素(図中、*印)に対して、右の画素(次に走査される画素)、左下の画素、直下の画素、右下の画素(いずれも、注目画素がある注目ラインの次のラインにある画素)の各位置に対応して、7/16、3/16、5/16、1/16それぞれの拡散係数で構成されている。これにより、注目画素における量子化誤差は、右の画素、左下の画素、直下の画素、右下の画素に対して、量子化誤差の7/16、3/16、5/16、1/16の値がそれぞれ拡散される。   FIG. 5 is an explanatory diagram showing an example of an error diffusion matrix. The error diffusion matrix includes, for example, a right pixel (pixel to be scanned next), a lower left pixel, a pixel immediately below, and a lower right pixel (all of which are the target pixels) with respect to the target pixel (* in the figure). Corresponding to each position of a pixel on the next line of a certain line of interest), it is composed of diffusion coefficients of 7/16, 3/16, 5/16, and 1/16. Thereby, the quantization error in the pixel of interest is 7/16, 3/16, 5/16, and 1/16 of the quantization error for the right pixel, the lower left pixel, the immediately lower pixel, and the lower right pixel. Each value is diffused.

なお、誤差拡散マトリクスは、拡散係数が異なる複数のものが格納されてあり、使用する誤差拡散マトリクスは、領域分離処理部23から入力される領域識別信号(例えば、網点領域、あるいは写真領域などに応じて)、及び/又は注目画素毎に乱数発生器287で発生する乱数に応じて選択される。   A plurality of error diffusion matrices having different diffusion coefficients are stored, and the error diffusion matrix to be used is an area identification signal (for example, a halftone area or a photographic area) input from the area separation processing unit 23. And / or a random number generated by the random number generator 287 for each pixel of interest.

周辺画素判定部289は、量子化処理部282で求められた各画素の量子化値を順次記憶している。周辺画素判定部289は、注目画素が走査される都度、注目画素の複数の量子化済の画素で構成される周辺画素ブロックを抽出する。周辺画素判定部289は、抽出した周辺画素ブロックの各画素の量子化値に基づいて、注目画素周辺の低階調度合いを特定する。   The surrounding pixel determination unit 289 sequentially stores the quantization value of each pixel obtained by the quantization processing unit 282. Each time the target pixel is scanned, the peripheral pixel determination unit 289 extracts a peripheral pixel block including a plurality of quantized pixels of the target pixel. The surrounding pixel determination unit 289 specifies the low gradation level around the target pixel based on the quantized value of each pixel of the extracted surrounding pixel block.

図6は周辺画素ブロックの例を示す説明図である。周辺画素ブロックは、例えば、注目画素(図中、*印)に対して、左上の画素a、直上の画素b、右上の画素c(いずれも、注目画素がある注目ラインの1つ前のラインにある量子化された画素)、左の画素d(直近に量子化された画素)の4つの画素で構成されている。   FIG. 6 is an explanatory diagram illustrating an example of a peripheral pixel block. The peripheral pixel block is, for example, a pixel a in the upper left, a pixel b immediately above, and a pixel c in the upper right with respect to the target pixel (marked * in the figure). 4), and the left pixel d (the most recently quantized pixel).

周辺画素判定部289は、周辺画素ブロック内の各画素の量子化値(より具体的には、量子化値に対応付けた対応値)に基づいて、注目画素の周辺画素の状況(低階調度合い)を判定することができる判定信号を特定し、特定した判定信号を量子化処理部282へ出力する。周辺画素判定部289は、注目画素を所定の方向に走査することで、各画素に対する判定信号を出力する。   The neighboring pixel determination unit 289 determines the situation (low gray scale level) of the neighboring pixel of the target pixel based on the quantized value of each pixel in the neighboring pixel block (more specifically, the corresponding value associated with the quantized value). The determination signal that can determine the degree) is specified, and the specified determination signal is output to the quantization processing unit 282. The surrounding pixel determination unit 289 outputs a determination signal for each pixel by scanning the target pixel in a predetermined direction.

なお、注目画素が走査される都度、周辺画素ブロックの中で最初に量子化された画素の量子化値(対応値)は、周辺画素の状況を判定するためには、もはや必要ではないため、量子化値(対応値)を消去することにより、注目画素の周辺画素の量子化値を参照する場合に、入力画像の全画素の量子化値を記憶しておく必要がなく、記憶領域を低減することができる。   Each time the target pixel is scanned, the quantized value (corresponding value) of the pixel first quantized in the peripheral pixel block is no longer necessary to determine the status of the peripheral pixel. By deleting the quantized values (corresponding values), it is not necessary to store the quantized values of all the pixels of the input image when referring to the quantized values of the peripheral pixels of the target pixel, and the storage area is reduced. can do.

判定信号は、周辺画素ブロック内の画素の状況が、濃度むら、あるいはざらつきの要因となる低階調度合いに応じて、いくつかの段階に分けることができる。例えば、周辺画素ブロック内の画素の状況に応じて、判定信号を0〜4に区分することができる。   The determination signal can be divided into several stages according to the degree of low gradation in which the situation of the pixels in the peripheral pixel block causes density unevenness or roughness. For example, the determination signal can be divided into 0 to 4 according to the situation of the pixels in the peripheral pixel block.

例えば、周辺画素判定部289は、周辺画素ブロック内に量子化値の対応値が1である画素が1つも無い場合、濃度むら、あるいはざらつきなどの要因がなく、画像が最も安定しているとして、判定信号0を出力する。また、周辺画素判定部289は、周辺画素ブロック内に量子化値の対応値が1である画素が1つある場合、濃度むら、あるいはざらつきなどの要因が少しあり、画像の安定性がやや落ちるとして、判定信号1を出力する。   For example, the peripheral pixel determination unit 289 determines that there is no factor such as uneven density or roughness and the image is most stable when there is no pixel having a corresponding quantization value of 1 in the peripheral pixel block. The determination signal 0 is output. In addition, when there is one pixel having a corresponding quantization value of 1 in the peripheral pixel block, the peripheral pixel determination unit 289 has some factors such as uneven density or roughness, and the stability of the image is slightly reduced. As a result, the determination signal 1 is output.

また、周辺画素判定部289は、周辺画素ブロック内の画素a、cの対応値が1である場合、濃度むら、あるいはざらつきなどの要因が増加し、画像の安定性が落ちるとして、判定信号2を出力する。また、周辺画素判定部289は、周辺画素ブロック内の画素b、dの対応値が1である場合、濃度むら、あるいはざらつきなどの要因がさらに増加し、画像の安定性が著しく落ちるとして、判定信号3を出力する。この場合、周辺画素ブロック内に対応値が1の画素が2つ存在するが、画素a、cに対応値1がある場合に比べて、画素b、dに対応値1がある場合の方が、濃度むら等の要因となりやすい。さらに、周辺画素判定部289は、周辺画素ブロック内のすべての画素の対応値が1である場合、濃度むら、あるいはざらつきなどの要因により、画像の安定性が最も悪い状況であるとして、判定信号4を出力する。なお、判定信号0〜4は、一例であって、数字に限定されるものではなく、また、判定信号の数も5つに限定されるものではない。また、周辺画素ブロックの低階調度合いの判定に、対応値1を用いているが、これに限定されるものではなく、対応値1と2との組合せなど、他の対応値を用いることもできる。   In addition, when the corresponding value of the pixels a and c in the peripheral pixel block is 1, the peripheral pixel determination unit 289 determines that a factor such as density unevenness or roughness increases and the stability of the image is deteriorated. Is output. In addition, when the corresponding value of the pixels b and d in the peripheral pixel block is 1, the peripheral pixel determination unit 289 determines that factors such as uneven density or roughness further increase and the stability of the image is significantly reduced. Signal 3 is output. In this case, there are two pixels having the corresponding value 1 in the peripheral pixel block, but the case where the corresponding value 1 is present in the pixels b and d is greater than the case where the corresponding value 1 is present in the pixels a and c. This is likely to cause uneven density. Further, when the corresponding value of all the pixels in the peripheral pixel block is 1, the peripheral pixel determination unit 289 determines that the image stability is the worst due to factors such as density unevenness or roughness. 4 is output. Note that the determination signals 0 to 4 are examples, and are not limited to numbers, and the number of determination signals is not limited to five. Further, the corresponding value 1 is used for the determination of the low gradation level of the peripheral pixel block. However, the present invention is not limited to this, and other corresponding values such as a combination of the corresponding values 1 and 2 may be used. it can.

量子化閾値格納部288は、周辺画素判定部289から出力される判定信号に対応して、量子化閾値が異なる量子化テーブルを格納(記憶)している。   The quantization threshold storage unit 288 stores (stores) quantization tables having different quantization thresholds corresponding to the determination signal output from the neighboring pixel determination unit 289.

図7は判定信号0に対応する量子化テーブルの構成を示す説明図である。判定信号が0の場合には、注目画素の周辺に濃度むら、あるいはざらつきの要因となりやすい低階調の画素がない状態(階調が0で、ドットが印字されていない最も安定した状態)である。この場合、量子化テーブルの量子化閾値は、例えば、図4で示した8個の量子化閾値と同じ値である、18、55、91、128、164、201、237の7個の値である。   FIG. 7 is an explanatory diagram showing the structure of the quantization table corresponding to the determination signal 0. When the determination signal is 0, there is no low gradation pixel that is likely to cause density unevenness or roughness around the target pixel (the most stable state in which the gradation is 0 and no dots are printed). is there. In this case, the quantization threshold of the quantization table is, for example, seven values of 18, 55, 91, 128, 164, 201, and 237, which are the same values as the eight quantization thresholds shown in FIG. is there.

この場合、入力画像の各画素の画素値(濃度値)が0〜18の場合、量子化値は0(量子化値番号0)となる。また、入力画像の各画素の画素値(濃度値)が19〜55の場合、量子化値は36(量子化値番号1)となる。以下、同様に量子化され、量子化値番号0には対応値0が、量子化値番号1、2には対応値1が、以下、同様に対応値が割り当てられる。これにより、入力画像の画素の画素値(濃度値)が低階調であっても、値の小さい量子化値で量子化され、画素値(濃度値)に応じた濃度でドットの印字が行われる。   In this case, when the pixel value (density value) of each pixel of the input image is 0 to 18, the quantized value is 0 (quantized value number 0). When the pixel value (density value) of each pixel of the input image is 19 to 55, the quantized value is 36 (quantized value number 1). Thereafter, the quantization is performed in the same manner, the corresponding value 0 is assigned to the quantized value number 0, the corresponding value 1 is assigned to the quantized value numbers 1 and 2, and the corresponding value is similarly assigned. As a result, even if the pixel value (density value) of the pixel of the input image has a low gradation, the pixel value (density value) is quantized with a small quantized value, and dots are printed at a density corresponding to the pixel value (density value). Is called.

図8は判定信号1に対応する量子化テーブルの構成を示す説明図である。判定信号が1の場合には、注目画素の周辺に濃度むら、あるいはざらつきなどの要因が少しある状態である。この場合、量子化テーブルの量子化閾値は、例えば、55、91、128、164、201、237の6個の値である。   FIG. 8 is an explanatory diagram showing the structure of the quantization table corresponding to the determination signal 1. When the determination signal is 1, there are some factors such as uneven density or roughness around the pixel of interest. In this case, the quantization threshold values of the quantization table are, for example, six values 55, 91, 128, 164, 201, and 237.

この場合、入力画像の各画素の画素値(濃度値)が0〜55の場合、量子化値は0(量子化値番号0)となる。また、入力画像の各画素の画素値(濃度値)が56〜91の場合、量子化値は73(量子化値番号2)となる。以下、同様に量子化され、量子化値番号0には対応値0が、量子化値番号2には対応値1が、以下、同様に対応値が割り当てられる。これにより、入力画像の画素の画素値(濃度値)が低階調である場合には、量子化値を0として、濃度むら、あるいはざらつきの要因となりやすい低い量子化値を出力しないようにする。   In this case, when the pixel value (density value) of each pixel of the input image is 0 to 55, the quantized value is 0 (quantized value number 0). When the pixel value (density value) of each pixel of the input image is 56 to 91, the quantized value is 73 (quantized value number 2). Thereafter, the quantization is performed in the same manner, the corresponding value 0 is assigned to the quantized value number 0, the corresponding value 1 is assigned to the quantized value number 2, and the corresponding value is assigned in the same manner. As a result, when the pixel value (density value) of the pixel of the input image has a low gradation, the quantized value is set to 0 so that a low quantized value that tends to cause uneven density or roughness is not output. .

図9は判定信号2に対応する量子化テーブルの構成を示す説明図である。判定信号が2の場合には、注目画素の周辺に濃度むら、あるいはざらつきなどの要因が増加した状態である。この場合、量子化テーブルの量子化閾値は、例えば、91、128、164、201、237の5個の値である。   FIG. 9 is an explanatory diagram showing the structure of the quantization table corresponding to the determination signal 2. When the determination signal is 2, factors such as density unevenness or roughness increase around the pixel of interest. In this case, the quantization threshold values of the quantization table are, for example, five values 91, 128, 164, 201, and 237.

この場合、入力画像の各画素の画素値(濃度値)が0〜91の場合、量子化値は0(量子化値番号0)となる。また、入力画像の各画素の画素値(濃度値)が92〜128の場合、量子化値は109(量子化値番号3)となる。以下、同様に量子化され、量子化値0(整数値0)には対応値0が、量子化値109(量子化値番号3)、量子化値146(量子化値番号4)には対応値2が、以下、同様に対応値が割り当てられる。これにより、入力画像の画素の画素値(濃度値)が低階調である場合には、量子化値を0として、さらに濃度むら、あるいはざらつきの要因となりやすい低い量子化値を出力しないようにする。   In this case, when the pixel value (density value) of each pixel of the input image is 0 to 91, the quantized value is 0 (quantized value number 0). When the pixel value (density value) of each pixel of the input image is 92 to 128, the quantized value is 109 (quantized value number 3). Thereafter, the quantization is performed in the same manner, and the corresponding value 0 corresponds to the quantized value 0 (integer value 0), and corresponds to the quantized value 109 (quantized value number 3) and the quantized value 146 (quantized value number 4). The corresponding value is assigned to value 2 in the same manner. As a result, when the pixel value (density value) of the pixel of the input image has a low gradation, the quantized value is set to 0 so that a low quantized value that tends to cause density unevenness or roughness is not output. To do.

図10は判定信号3に対応する量子化テーブルの構成を示す説明図である。判定信号が3の場合には、注目画素の周辺に濃度むら、あるいはざらつきなどの要因がさらに増加した状態である。この場合、量子化テーブルの量子化閾値は、例えば、128、164、201、237の4個の値である。   FIG. 10 is an explanatory diagram showing the structure of the quantization table corresponding to the determination signal 3. When the determination signal is 3, factors such as density unevenness or roughness around the target pixel are further increased. In this case, the quantization threshold values of the quantization table are, for example, four values of 128, 164, 201, and 237.

この場合、入力画像の各画素の画素値(濃度値)が0〜128の場合、量子化値は0(量子化値番号0)となる。また、入力画像の各画素の画素値(濃度値)が129〜164の場合、量子化値は146(量子化値番号4)となる。以下、同様に量子化され、量子化値0(量子化値番号0)には対応値0が、量子化値146(量子化値番号4)には対応値2が、以下、同様に対応値が割り当てられる。これにより、入力画像の画素の画素値(濃度値)が低階調である場合には、量子化値を0とし、さらに濃度むら、あるいはざらつきの要因となりやすい低い量子化値を出力しないようにする。   In this case, when the pixel value (density value) of each pixel of the input image is 0 to 128, the quantized value is 0 (quantized value number 0). When the pixel value (density value) of each pixel of the input image is 129 to 164, the quantized value is 146 (quantized value number 4). Hereinafter, the quantization is performed in the same manner, the corresponding value 0 is applied to the quantized value 0 (quantized value number 0), the corresponding value 2 is applied to the quantized value 146 (quantized value number 4), and the corresponding value is similarly applied. Is assigned. As a result, when the pixel value (density value) of the pixel of the input image has a low gradation, the quantized value is set to 0, and a low quantized value that tends to cause density unevenness or roughness is not output. To do.

図11は判定信号4に対応する量子化テーブルの構成を示す説明図である。判定信号が4の場合には、注目画素の周辺に濃度むら、あるいはざらつきなどの要因がさらに増加し、ドットを印字した場合に最も不安定になる状態である。この場合、量子化テーブルの量子化閾値は、例えば、201、237の2個の値である。   FIG. 11 is an explanatory diagram showing the structure of the quantization table corresponding to the determination signal 4. When the determination signal is 4, factors such as density unevenness or roughness increase further around the pixel of interest, which is the most unstable state when dots are printed. In this case, the quantization threshold value of the quantization table is, for example, two values 201 and 237.

この場合、入力画像の各画素の画素値(濃度値)が0〜201の場合、量子化値は0(量子化値番号0)となる。また、入力画像の各画素の画素値(濃度値)が202〜237の場合、量子化値は219(量子化値番号6)となる。以下、同様に量子化され、量子化値0(量子化値番号0)には対応値0が、量子化値219(量子化値番号6)には対応値3が、以下、同様に対応値が割り当てられる。これにより、注目画素の周辺画素が低階調の画素(小さい量子化値)ばかりであり、ドットの形成状態が最も不安定な状態であるため、注目画素には、低階調、すなわち、小さい量子化値を出力しないか、あるいは、ドットを印字させないことにより、画像の品質劣化を防止する。   In this case, when the pixel value (density value) of each pixel of the input image is 0 to 201, the quantized value is 0 (quantized value number 0). When the pixel value (density value) of each pixel of the input image is 202 to 237, the quantized value is 219 (quantized value number 6). Hereinafter, it is quantized in the same manner, the corresponding value 0 is given to the quantized value 0 (quantized value number 0), the corresponding value 3 is given to the quantized value 219 (quantized value number 6), and the corresponding value is also given below. Is assigned. Accordingly, since the peripheral pixels of the target pixel are only low gradation pixels (small quantized values) and the dot formation state is the most unstable state, the target pixel has a low gradation, that is, a small gradation. Image quality deterioration is prevented by not outputting quantized values or printing dots.

なお、上述の判定信号と、それにより決定される量子化テーブルは、一例であって、量子化閾値、量子化値、量子化値番号、対応値などは、これに限定されるものではない。また、各量子化テーブルにおいて、共通する量子化閾値(又は対応値)は、該量子化閾値(又は対応値)を有する1つの量子化テーブルに記憶し、共通する量子化閾値(又は対応値)以外の量子化閾値(対応値)は、各量子化テーブルに記憶することにより、記憶領域を低減することができる。   Note that the above-described determination signal and the quantization table determined thereby are examples, and the quantization threshold, the quantization value, the quantization value number, the corresponding value, and the like are not limited thereto. In each quantization table, a common quantization threshold (or corresponding value) is stored in one quantization table having the quantization threshold (or corresponding value), and a common quantization threshold (or corresponding value) is stored. By storing other quantization threshold values (corresponding values) in each quantization table, the storage area can be reduced.

量子化テーブルは、画像の色成分に応じて決定することもできる。例えば、図4で示した量子化テーブルは、シアン、マゼンタ、イエロー(CMY)の各色成分について多値誤差拡散処理を施す際に使用することができ、黒(K)の色成分に対しては、異なる量子化テーブルを用いて多値誤差拡散処理を施すことができる。   The quantization table can also be determined according to the color component of the image. For example, the quantization table shown in FIG. 4 can be used when multilevel error diffusion processing is performed for each color component of cyan, magenta, and yellow (CMY), and for the color component of black (K). Multi-level error diffusion processing can be performed using different quantization tables.

図12は色成分が黒の場合の量子化テーブルの構成を示す説明図である。図4の量子化テーブルとの相違点は、量子化値に対応付けた対応値である。すなわち、黒の色成分の場合、量子化値が0(量子化値番号0)に対応して対応値0を割り当て、量子化値が36(量子化値番号1)、73(量子化値番号2)、109(量子化値番号3)に対応して対応値1を割り当て、量子化値が146(量子化値番号4)、182(量子化値番号5)に対応して対応値2を割り当て、量子化値219(量子化値番号6)、255(量子化値番号7)に対応して対応値3を割り当てている。色成分毎にカラー画像出力装置3における出力の特性は異なる場合があり、同じような信号で画像を出力しても色成分によって濃度むら、又はざらつきの様子は異なって見える。量子化値に対応する対応値を色成分毎に異なる値にすることで、出力特性に合わせた画像出力が可能になり、画質を向上させることができる。   FIG. 12 is an explanatory diagram showing the structure of the quantization table when the color component is black. The difference from the quantization table of FIG. 4 is the corresponding value associated with the quantized value. That is, in the case of a black color component, the corresponding value 0 is assigned corresponding to the quantized value 0 (quantized value number 0), and the quantized value 36 (quantized value number 1), 73 (quantized value number). 2) and corresponding value 1 corresponding to 109 (quantized value number 3) and corresponding value 2 corresponding to quantized values 146 (quantized value number 4) and 182 (quantized value number 5). The corresponding value 3 is assigned corresponding to the assigned and quantized value 219 (quantized value number 6) and 255 (quantized value number 7). The output characteristics of the color image output device 3 may differ for each color component, and even if an image is output with the same signal, the density unevenness or the roughness appears differently depending on the color component. By making the corresponding value corresponding to the quantized value different for each color component, it is possible to output an image in accordance with the output characteristics and improve the image quality.

周辺画素判定部289において、周辺画素ブロック内の各画素の量子化値(又は量子化値に対応付けた対応値)に基づいて、注目画素の周辺画素の低階調度合いを判定する場合、周辺画素ブロックの各画素の量子化値(又は対応値)の組み合わせと、判定信号との関係をルックアップ・テーブルとして構成することもできる。   When the peripheral pixel determination unit 289 determines the low gradation level of the peripheral pixel of the target pixel based on the quantized value of each pixel in the peripheral pixel block (or the corresponding value associated with the quantized value) A relationship between a combination of quantized values (or corresponding values) of each pixel of the pixel block and the determination signal can be configured as a lookup table.

図13は周辺画素判定ルックアップ・テーブルの構成を示す説明図である。図13に示すように、周辺画素判定ルックアップ・テーブルは、周辺画素ブロックの各画素a、b、c、dの量子化値の組み合わせに対応して判定信号を割り当てたものである。注目画素の周辺画素の低階調度合いを判定する場合に、周辺画素判定ルックアップ・テーブルを用いることで、特別の演算回路を設ける必要がなく、装置の回路規模を小さくすることができる。また、周辺画素判定ルックアップ・テーブルには、量子化値に代えて、対応値を設ける構成とすることができる。また、色成分に応じて、異なる周辺画素判定ルックアップ・テーブルを用いることもできる。なお、8個の整数値からなる量子化値に対応させて、4個の整数値からなる対応値を割り当てた場合には、ビット数を3から2へ少なくすることができ、周辺画素判定ルックアップ・テーブルを記憶する際の記憶容量をさらに低減することができる。   FIG. 13 is an explanatory diagram showing the configuration of the peripheral pixel determination lookup table. As shown in FIG. 13, the peripheral pixel determination lookup table is a table in which determination signals are assigned corresponding to combinations of quantized values of the pixels a, b, c, and d of the peripheral pixel block. When determining the low gradation level of the peripheral pixel of the target pixel, it is not necessary to provide a special arithmetic circuit by using the peripheral pixel determination lookup table, and the circuit scale of the apparatus can be reduced. In addition, the surrounding pixel determination lookup table may be provided with a corresponding value instead of the quantization value. Also, different peripheral pixel determination lookup tables can be used depending on the color components. In addition, when a corresponding value consisting of four integer values is assigned in association with a quantized value consisting of eight integer values, the number of bits can be reduced from 3 to 2, and the peripheral pixel determination look The storage capacity for storing the up table can be further reduced.

多値誤差拡散処理において、誤差拡散マトリクスは、適宜所要のものを選択して使用することができる。   In multilevel error diffusion processing, a required error diffusion matrix can be selected and used as appropriate.

図14は誤差拡散マトリクスの他の例を示す説明図である。誤差拡散マトリクスは、例えば、注目画素(図中、*印)に対して、右側に隣接する2つの画素、左下側の2ライン上の4つの画素、直下の2ライン上の2つの画素、右下側の2ライン上の4つの画素の各位置に対応して、それぞれの拡散係数で構成されている。なお、拡散係数は、図14(a)〜(d)に示すように、異なる値を有している。これにより、注目画素における量子化誤差は、右側に隣接する2つの画素、左下側の2ライン上の4つの画素、直下の2ライン上の2つの画素、右下側の2ライン上の4つの画素の合計12の画素に拡散される。この場合においても、領域分離処理部23から入力される領域識別信号(例えば、網点領域、あるいは写真領域などに応じて)、及び/又は注目画素毎に乱数発生器287で発生する乱数に応じて選択される。   FIG. 14 is an explanatory diagram showing another example of the error diffusion matrix. The error diffusion matrix includes, for example, two pixels adjacent to the right side, four pixels on the two lines on the lower left side, two pixels on the two lines immediately below the target pixel (* in the figure), right Corresponding to each position of the four pixels on the lower two lines, each pixel is constituted by a diffusion coefficient. The diffusion coefficients have different values as shown in FIGS. 14 (a) to 14 (d). As a result, the quantization error in the pixel of interest includes two adjacent pixels on the right side, four pixels on the lower left two lines, two pixels on the lower two lines, and four pixels on the lower right two lines. It is diffused to a total of 12 pixels. Also in this case, according to the region identification signal (for example, according to the halftone dot region or the photograph region) input from the region separation processing unit 23 and / or the random number generated by the random number generator 287 for each target pixel. Selected.

また、多値誤差拡散処理において、周辺画素ブロックは、適宜所要のものを選択して使用することができる。   In the multi-value error diffusion process, necessary peripheral pixel blocks can be appropriately selected and used.

図15は周辺画素ブロックの他の例を示す説明図である。周辺画素ブロックは、例えば、注目画素(図中、*印)に対して、左上側の2ライン上の4つの画素、直上の2ライン上の2つの画素、右上側の2ライン上の4つの画素、左側に隣接する2つの画素の12の画素で構成されている。   FIG. 15 is an explanatory diagram showing another example of the peripheral pixel block. The peripheral pixel block includes, for example, four pixels on the upper left two lines, two pixels on the upper two lines, and four pixels on the upper right two lines with respect to the target pixel (marked * in the figure). It consists of 12 pixels, two pixels adjacent to the left side.

この場合、周辺画素ブロックの全ての画素、あるいは一部の画素に対して、例えば、注目画素からの距離(離隔している画素数)に応じて重み付け係数を付与することができる。例えば、図15に示すように、画素d、bに対して重み付け係数αを付与し、画素a、cに対して重み付け係数βを付与し、画素e、fに対して重み付け係数γを付与する。この場合、重み付け係数には、α>β>γの関係がある。   In this case, for example, a weighting coefficient can be given to all the pixels of the peripheral pixel block or a part of the pixels according to the distance from the target pixel (the number of separated pixels). For example, as shown in FIG. 15, a weighting coefficient α is given to the pixels d and b, a weighting coefficient β is given to the pixels a and c, and a weighting coefficient γ is given to the pixels e and f. . In this case, the weighting coefficients have a relationship of α> β> γ.

重み付け係数を注目画素からの距離に応じて付与することにより、注目画素の量子化値を決定する場合に、注目画素からの距離に応じて周辺画素の低階調度合いの影響度を勘案することができる。また、注目画素に隣接する1つの画素、あるいは、注目画素に対して一方向のみの周辺画素の影響だけで注目画素の量子化値を決定することなく、注目画素の周辺の広い範囲の状況を取り込むことができ、画質の向上を一層図ることが可能となる。   When determining the quantized value of the pixel of interest by assigning a weighting coefficient according to the distance from the pixel of interest, taking into account the influence of the low gradation level of surrounding pixels according to the distance from the pixel of interest Can do. In addition, a situation in a wide range around the target pixel can be obtained without determining the quantization value of the target pixel only by the influence of one pixel adjacent to the target pixel or a peripheral pixel in only one direction with respect to the target pixel. Therefore, the image quality can be further improved.

また、周辺画素ブロック内の低階調度合い、すなわち、濃度むら、あるいはざらつきなどの要因による画像の不安定要素、逆にいえば出力画像の濃度の安定度合いは、量子化値に応じて安定係数として決定することができる。   In addition, the low gradation level in the surrounding pixel block, that is, the unstable factor of the image due to factors such as density unevenness or roughness, or conversely, the stability level of the density of the output image depends on the quantization value. Can be determined as

図16は量子化値と安定係数との関係を示す説明図である。図16に示すように、量子化値が0の場合、出力がなくドットの印字が行われないため、画像としては最も安定しているため安定係数8を付与する。量子化値番号が1の場合には、画素の階調は0以外の最も低い階調であり、ドットの形成状態が最も不安定であり、出力画像の濃度も最も不安定な場合であるため、最も不安定な安定係数1を付与する、以下、同様に量子化値が大きくなるに応じて、値の大きい安定係数を付与する。   FIG. 16 is an explanatory diagram showing the relationship between the quantization value and the stability coefficient. As shown in FIG. 16, when the quantized value is 0, there is no output and dot printing is not performed, so the image is most stable, and thus a stability coefficient 8 is given. When the quantization value number is 1, the gradation of the pixel is the lowest gradation other than 0, the dot formation state is the most unstable, and the density of the output image is also the most unstable. The most unstable stability coefficient 1 is given. Hereinafter, similarly, as the quantized value increases, a stability coefficient having a large value is given.

周辺画素判定部289は、周辺画素ブロックの画素毎に、その画素の量子化値に対応する安定係数とその画素に付与された重み付け係数とを積算し、積算値を周辺画素ブロックのすべての画素について加算して求められた評価値の大小に基づいて、量子化テーブルを決定する。例えば、評価値が最も大きい場合には、判定信号0を出力し、評価値が最も小さい場合には、判定信号4を出力する。なお、判定信号の数は、0〜4の5固に限定されるものではない。   For each pixel of the peripheral pixel block, the peripheral pixel determination unit 289 integrates the stability coefficient corresponding to the quantization value of the pixel and the weighting coefficient assigned to the pixel, and the integrated value is added to all the pixels of the peripheral pixel block. The quantization table is determined on the basis of the magnitude of the evaluation value obtained by adding. For example, when the evaluation value is the largest, the determination signal 0 is output, and when the evaluation value is the smallest, the determination signal 4 is output. Note that the number of determination signals is not limited to 5 (0 to 4).

これにより、注目画素に対する隣接する画素のみ、あるいは一方向のみの画素の状況だけでなく、周辺の広い範囲の量子化値を参照することができ、様々なパターンが存在する画像に対しても、濃度むら、あるいはざらつきを防止して画質の品質を向上させることができる。   As a result, not only the state of the pixel adjacent to the target pixel, or the state of the pixel in only one direction, but also a wide range of quantized values in the periphery can be referred to, and even for an image in which various patterns exist, It is possible to improve the quality of image quality by preventing density unevenness or roughness.

次に、カラー画像処理装置2の動作について説明する。図17はカラー画像処理装置2(以下、処理部という)の多値誤差拡散処理の手順を示すフローチャートである。なお、多値誤差拡散処理は、専用のハードウエア回路で構成するだけでなく、CPU、RAM、ROMなどを備えたパーソナルコンピュータに、多値誤差拡散処理の手順を定めたコンピュータプログラムをロードすることによりCPUでコンピュータプログラムを実行させることにより行うこともできる。   Next, the operation of the color image processing apparatus 2 will be described. FIG. 17 is a flowchart showing the procedure of multilevel error diffusion processing of the color image processing apparatus 2 (hereinafter referred to as processing unit). The multi-level error diffusion process is not only configured by a dedicated hardware circuit, but a computer program that defines the multi-level error diffusion process procedure is loaded into a personal computer equipped with a CPU, RAM, ROM, etc. This can also be done by causing the CPU to execute the computer program.

処理部は、入力画像の各画素を所定の方向に走査し、注目画素の画素値(濃度値)に注目画素の位置に対応する蓄積誤差(拡散誤差)を加算する(S11)。処理部は、周辺画素ブロック内の画素の低階調度合いに応じて周辺画素の判定信号を特定する(S12)。処理部は、特定された判定信号に基づいて、量子化閾値の組、すなわち、量子化テーブルを選択し(S13)、決定した量子化閾値を用いて、注目画素の量子化値を算出する(S14)。   The processing unit scans each pixel of the input image in a predetermined direction, and adds an accumulation error (diffusion error) corresponding to the position of the target pixel to the pixel value (density value) of the target pixel (S11). The processing unit specifies the determination signal of the peripheral pixel according to the low gradation level of the pixel in the peripheral pixel block (S12). The processing unit selects a set of quantization thresholds, that is, a quantization table based on the identified determination signal (S13), and calculates a quantization value of the pixel of interest using the determined quantization threshold ( S14).

処理部は、注目画素の画素値と量子化値との差である量子化誤差を算出する(S15)。処理部は、注目画素が属する領域の領域識別信号、あるいは乱数に応じてランダムに誤差拡散マトリクスを選択し、算出した量子化誤差と、選択した誤差拡散マトリクスの各拡散係数とに基づいて、注目画素の周辺画素であって量子化処理が未処理の各画素に拡散する拡散誤差を算出する(S16)。   The processing unit calculates a quantization error which is a difference between the pixel value of the target pixel and the quantization value (S15). The processing unit randomly selects an error diffusion matrix according to the region identification signal of the region to which the pixel of interest belongs or a random number, and based on the calculated quantization error and each diffusion coefficient of the selected error diffusion matrix, A diffusion error that diffuses to each pixel that is a peripheral pixel and has not been subjected to quantization processing is calculated (S16).

処理部は、全ての画素について処理が終了したか否かを判定し(S17)、処理が終了していない場合(S17でNO)、ステップS11以降の処理を続け、処理が終了した場合(S17でYES)、処理を終了する。   The processing unit determines whether or not the processing has been completed for all pixels (S17). If the processing has not been completed (NO in S17), the processing after step S11 is continued and the processing is completed (S17). YES), the process is terminated.

実施の形態2
上述の実施の形態1では、カラー画像入力装置1、カラー画像処理装置(画像処理装置)2、カラー画像出力装置3などを備える構成であったが、画像処理装置をコンピュータで実現した画像形成システムにも本発明を適用することができる。
Embodiment 2
In the first embodiment described above, the color image input device 1, the color image processing device (image processing device) 2, the color image output device 3, and the like have been provided. However, the image forming system in which the image processing device is realized by a computer. The present invention can also be applied to.

図18は実施の形態2の画像形成システムの構成を示すブロック図である。画像形成システムは、コンピュータ(画像処理装置)50及びプリンタ(画像出力装置、画像形成手段)55を備える。プリンタ55は、プリンタ機能に加えて、コピー機能、ファクシミリ機能を有するデジタル複合機であってもよい。また、プリンタ55は、電子写真方式又はインクジェット方式の画像形成を行う。   FIG. 18 is a block diagram illustrating a configuration of the image forming system according to the second embodiment. The 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の領域分離処理部23と同様の領域分離処理を行い、階調再現処理部52は、実施の形態1の階調再現処理部28と同様の多値誤差拡散法を用いた中間調生成処理を行う。   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 is stored in a storage device such as a hard disk (not shown). The computer 50 can process and edit the input image data by executing various application programs. The computer 50 includes a region separation processing unit 51 that determines a region of each pixel 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 the output image data into a printer language. It operates as the printer language translation unit 53 to be performed. The region separation processing unit 51 performs the same region separation processing as the region separation processing unit 23 of the first embodiment, and the gradation reproduction processing unit 52 is the same multi-value as the gradation reproduction processing unit 28 of the first embodiment. A halftone generation process using an error diffusion method is performed.

なお、図示していないが、コンピュータ50は、実施の形態1の色補正部24、黒生成下色除去部25、及び空間フィルタ処理部26などと同様の処理も行う。プリンタ言語翻訳部53でプリンタ言語に変換されたデータは、通信ポート54(セントロニクスポート、LAN(Local Area Network)ポート等)を介してプリンタ55へ出力される。   Although not shown, the computer 50 also performs processing similar to that of the color correction unit 24, the black generation and under color removal unit 25, the spatial filter processing unit 26, and the like of the first embodiment. 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.).

図19はコンピュータ50の構成を示すブロック図である。コンピュータ50は、CPU61、RAM62、ハードディスクドライブ(以下、ハードディスクと略す)63、フレキシブルディスクドライブ又はCD(Compact Disk)−ROMドライブ等の外部記憶部64、キーボード又はマウス等の入力部65、CRT(Cathode Ray Tube)ディスプレイ又は液晶ディスプレイなどの表示部66、プリンタ55との間で通信制御を行う通信ポート54などを備える。通信ポート54は、ネットワークカード又はモデムを含み、LAN、インターネット又は電話回線などの通信ネットワークに接続することが可能である。   FIG. 19 is a block diagram showing the configuration of the computer 50. The computer 50 includes a CPU 61, a RAM 62, a hard disk drive (hereinafter abbreviated as a hard disk) 63, an external storage unit 64 such as a flexible disk drive or a CD (Compact Disk) -ROM drive, an input unit 65 such as a keyboard or a mouse, a CRT (Cathode Ray Tube) includes a display unit 66 such as a display or a liquid crystal display, a communication port 54 for controlling communication with the printer 55, and the like. 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は、上述の各部及び通信ポート54の制御を行う。また、CPU61は、入力部65又は通信ポート54から受付けたプログラム又はデータ、あるいはハードディスク63又は外部記憶部64から読み出したプログラム又はデータ等をRAM62に記憶し、RAM62に記憶したプログラムの実行又はデータの演算等の各種処理を行い、各種処理結果又は各種処理に用いる一時的なデータをRAM62に記憶する。RAM62に記憶した演算結果等のデータは、CPU61により、ハードディスク63に記憶され、あるいは、表示部66又は通信ポート54から出力される。   The CPU 61 controls the above-described units and the communication port 54. 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 by the CPU 61 or output from the display unit 66 or the communication port 54.

CPU61は、上述の領域分離処理部51、階調再現処理部52、及びプリンタ言語翻訳部53などとして動作する。また、入力画像データは、例えば、スキャナ又はデジタルカメラからコンピュータ50へ入力され、ハードディスク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. The input image data is input to the computer 50 from a scanner or a digital camera, for example, and stored in the hard disk 63.

また、CPU61は、実施の形態1の階調再現処理部28の加算器281、量子化処理部282、量子化誤差算出部283、拡散誤差算出部284、乱数発生器287、周辺画素判定部289として動作する。また、RAM62又はハードディスク63は、量子化閾値格納部288、蓄積誤差格納部285、及び拡散係数格納部286として動作する。例えば、誤差拡散マトリクス、量子化テーブル、周辺画素判定ルックアップ・テーブルなどは、ハードディスク(記憶部)63に記憶されている。   The CPU 61 also adds the adder 281, the quantization processing unit 282, the quantization error calculation unit 283, the diffusion error calculation unit 284, the random number generator 287, and the surrounding pixel determination unit 289 of the gradation reproduction processing unit 28 according to the first embodiment. Works as. The RAM 62 or the hard disk 63 operates as a quantization threshold storage unit 288, an accumulation error storage unit 285, and a diffusion coefficient storage unit 286. For example, an error diffusion matrix, a quantization table, a peripheral pixel determination lookup table, and the like are stored in the hard disk (storage unit) 63.

CD−ROM等の記録媒体69に記録されたコンピュータプログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を外部記憶部64で読み出してハードディスク63又はRAM62に記憶して、CPU61に実行させることにより、コンピュータ50を上述した各部又は各手段として動作させることが可能である。コンピュータプログラムのプログラムコードにより実現される処理は、例えば、蓄積誤差の加算、周辺画素判定、量子化閾値の組(量子化テーブル)の決定、量子化値の算出、量子化誤差の算出、領域識別、拡散誤差の算出などの各処理である。また、LANなどに接続された通信ポート54で他の装置からプログラムコードを受付けてハードディスク63又はRAM62に記憶することも可能である。なお、本発明に係る多値誤差拡散処理を実現するコンピュータプログラムのプログラムコードは、プリンタドライバに含まれていてもよいし、画像処理用のアプリケーションソフトに含まれていてもよい。   A program code (execution format program, intermediate code program, source program) of 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. Thus, the computer 50 can be operated as the above-described units or units. The processing realized by the program code of the computer program includes, for example, accumulation error addition, peripheral pixel determination, determination of quantization threshold set (quantization table), calculation of quantization value, calculation of quantization error, area identification Each process such as calculation of diffusion error. It is also possible to receive a program code 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 program code of the computer program for realizing the multilevel 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.

本発明に係る多値誤差拡散法を用いて中間調生成をコンピュータに実行させるコンピュータプログラムのプログラムコードを記録媒体69に記憶しているが、記録媒体69としては、マイクロコンピュータで処理が行われるように図示しないメモリ、例えばROMのようなプログラムメディアであってもよく、外部記憶部64などのプログラム読取装置が設けられ、そこに記録媒体69を挿入することで読み取り可能なプログラムメディアであってもよい。いずれの場合においても、格納されているプログラムコードはマイクロプロセッサがアクセスして実行させる構成であってもよいし、プログラムを読み出し、読み出されたプログラムは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされ、そのプログラムコードが実行される方式であってもよい。この場合、ダウンロード用のプログラムは予め本体装置に格納されているものとする。   The program code of a computer program that causes a computer to execute halftone generation using the multi-value error diffusion method according to the present invention is stored in the recording medium 69. The recording medium 69 is processed by a microcomputer. Or a program medium such as a ROM (not shown), or a program medium provided with a program reading device such as the external storage unit 64 and readable by inserting a recording medium 69 therein. Good. In any case, the stored program code may be configured to be accessed and executed by the microprocessor, or the program is read out, and the read program is a program storage area (not shown) of the microcomputer. The program code may be downloaded and executed by the program code. 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.

また、インターネットを含む通信ネットワークと接続可能なシステム構成の場合は、通信ネットワークからプログラムコードをダウンロードするように流動的にプログラムコードを担持する媒体であってもよい。なお、このように通信ネットワークからプログラムコードをダウンロードする場合には、ダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別の記録媒体からインストールされるものであってもよい。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   Further, in the case of a system configuration that can be connected to a communication network including the Internet, it may be a medium that dynamically carries the program code so as to download the program code from the communication network. When downloading the program code from the communication network in this way, the download program may be stored in the main device in advance or installed from another recording medium. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

本発明に係る画像処理装置を備える画像形成装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus including an image processing apparatus according to the present invention. 弱い強調処理に用いるフィルタ係数の例を示す説明図である。It is explanatory drawing which shows the example of the filter coefficient used for a weak emphasis process. 階調再現処理部の構成を示すブロック図である。It is a block diagram which shows the structure of a gradation reproduction process part. 量子化テーブルの構成を示す説明図である。It is explanatory drawing which shows the structure of a quantization table. 誤差拡散マトリクスの一例を示す説明図である。It is explanatory drawing which shows an example of an error diffusion matrix. 周辺画素ブロックの例を示す説明図である。It is explanatory drawing which shows the example of a surrounding pixel block. 判定信号0に対応する量子化テーブルの構成を示す説明図である。It is explanatory drawing which shows the structure of the quantization table corresponding to the determination signal 0. FIG. 判定信号1に対応する量子化テーブルの構成を示す説明図である。It is explanatory drawing which shows the structure of the quantization table corresponding to the determination signal 1. FIG. 判定信号2に対応する量子化テーブルの構成を示す説明図である。It is explanatory drawing which shows the structure of the quantization table corresponding to the determination signal 2. FIG. 判定信号3に対応する量子化テーブルの構成を示す説明図である。It is explanatory drawing which shows the structure of the quantization table corresponding to the determination signal 3. FIG. 判定信号4に対応する量子化テーブルの構成を示す説明図である。It is explanatory drawing which shows the structure of the quantization table corresponding to the determination signal 4. FIG. 色成分が黒の場合の量子化テーブルの構成を示す説明図である。It is explanatory drawing which shows the structure of the quantization table in case a color component is black. 周辺画素判定ルックアップ・テーブルの構成を示す説明図である。It is explanatory drawing which shows the structure of a surrounding pixel determination lookup table. 誤差拡散マトリクスの他の例を示す説明図である。It is explanatory drawing which shows the other example of an error diffusion matrix. 周辺画素ブロックの他の例を示す説明図である。It is explanatory drawing which shows the other example of a surrounding pixel block. 量子化値と安定係数との関係を示す説明図である。It is explanatory drawing which shows the relationship between a quantization value and a stability coefficient. カラー画像処理装置の多値誤差拡散処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the multi-value error diffusion process of a color image processing apparatus. 実施の形態2の画像形成システムの構成を示すブロック図である。3 is a block diagram illustrating a configuration of an image forming system according to a second embodiment. FIG. コンピュータの構成を示すブロック図である。It is a block diagram which shows the structure of a computer.

符号の説明Explanation of symbols

1 カラー画像入力装置
2 カラー画像処理装置
3 カラー画像出力装置
23、51 領域分離処理部
28、52 階調再現処理部
50 コンピュータ
54 通信ポート
61 CPU
62 RAM
63 ハードディスク
64 外部記憶部
281 加算器
282 量子化処理部
283 量子化誤差算出部
284 拡散誤差算出部
285 蓄積誤差格納部
286 拡散係数格納部
287 乱数発生器
288 量子化閾値格納部
289 周辺画素判定部
DESCRIPTION OF SYMBOLS 1 Color image input device 2 Color image processing device 3 Color image output device 23, 51 Area separation processing unit 28, 52 Tone reproduction processing unit 50 Computer 54 Communication port 61 CPU
62 RAM
63 hard disk 64 external storage unit 281 adder 282 quantization processing unit 283 quantization error calculation unit 284 diffusion error calculation unit 285 accumulation error storage unit 286 diffusion coefficient storage unit 287 random number generator 288 quantization threshold storage unit 289 peripheral pixel determination unit

Claims (16)

複数の画素で構成される画像の各画素を所定の方向に走査し、量子化閾値に基づいて各画素の画素値を多値量子化して中間調の画像を生成する画像処理方法において、
複数の量子化閾値と量子化値とを関連付けた量子化テーブルを予め複数記憶し、
多値量子化された各画素の量子化値を記憶し、
複数の多値量子化済の画素で構成される注目画素周辺の周辺画素ブロックを抽出し、
抽出した周辺画素ブロックの各画素の量子化値に基づいて、前記注目画素周辺の階調度合いを特定し、
特定した階調度合いに応じて、前記注目画素を多値量子化するための量子化テーブルを決定し、
決定した量子化テーブルを用いて、前記注目画素の画素値を多値量子化することを特徴とする画像処理方法。
In an image processing method for scanning each pixel of an image composed of a plurality of pixels in a predetermined direction and generating a halftone image by multi-quantizing the pixel value of each pixel based on a quantization threshold,
A plurality of quantization tables in which a plurality of quantization threshold values and quantization values are associated are stored in advance,
Stores the quantized value of each pixel subjected to multi-value quantization,
Extract neighboring pixel blocks around the pixel of interest, consisting of multiple multi-valued quantized pixels,
Based on the quantized value of each pixel of the extracted peripheral pixel block, specify the gradation degree around the pixel of interest,
In accordance with the specified gradation level, a quantization table for multilevel quantization of the pixel of interest is determined,
An image processing method, wherein the pixel value of the pixel of interest is subjected to multi-value quantization using the determined quantization table.
複数の画素で構成される画像の各画素を所定の方向に走査し、量子化閾値に基づいて各画素の画素値を多値量子化して中間調の画像を生成する画像処理装置において、
複数の量子化閾値と量子化値とを関連付けた量子化テーブルを複数記憶する手段と、
多値量子化された各画素の量子化値を記憶する手段と、
複数の多値量子化済の画素で構成される注目画素周辺の周辺画素ブロックを抽出する抽出手段と、
該抽出手段で抽出された周辺画素ブロックの各画素の量子化値に基づいて、前記注目画素周辺の階調度合いを特定する手段と、
該手段で特定された階調度合いに応じて、前記注目画素を多値量子化するための量子化テーブルを決定する決定手段と、
該決定手段で決定された量子化テーブルを用いて、前記注目画素の画素値を多値量子化する量子化手段と
を備えることを特徴とする画像処理装置。
In an image processing apparatus that scans each pixel of an image composed of a plurality of pixels in a predetermined direction and multi-quantizes the pixel value of each pixel based on a quantization threshold to generate a halftone image.
Means for storing a plurality of quantization tables in which a plurality of quantization thresholds and quantization values are associated;
Means for storing a quantized value of each pixel subjected to multi-value quantization;
Extraction means for extracting a peripheral pixel block around the target pixel composed of a plurality of multi-value quantized pixels;
Means for specifying the degree of gradation around the target pixel based on the quantized value of each pixel of the peripheral pixel block extracted by the extracting means;
Determining means for determining a quantization table for multi-value quantization of the pixel of interest according to the gradation level specified by the means;
An image processing apparatus comprising: quantization means for performing multi-value quantization on a pixel value of the target pixel using the quantization table determined by the determination means.
画像の各画素の画素値に基づいて、少なくとも文字領域、網点領域、又は写真領域のいずれの領域であるかを判定する領域判定手段を備え、
前記決定手段は、
前記周辺画素ブロックの各画素の量子化値に基づいて特定された前記注目画素周辺の階調度合いと、前記領域判定手段で判定された判定結果に応じて量子化テーブルを決定するように構成してあることを特徴とする請求項2に記載の画像処理装置。
Based on the pixel value of each pixel of the image, comprising at least a region determination means for determining whether the region is a character region, a halftone dot region, or a photo region;
The determining means includes
The quantization table is determined according to the gradation level around the pixel of interest specified based on the quantization value of each pixel of the peripheral pixel block and the determination result determined by the region determination unit. The image processing apparatus according to claim 2, wherein the image processing apparatus is an image processing apparatus.
前記決定手段は、
画像の色成分に基づいて、量子化テーブルを決定するように構成してあることを特徴とする請求項2又は請求項3に記載の画像処理装置。
The determining means includes
The image processing apparatus according to claim 2 or 3, wherein the quantization table is determined based on a color component of the image.
周辺画素ブロックの各画素の注目画素からの距離に応じて、各画素に重み付けを付与する手段と、
周辺画素ブロックの各画素の量子化値に応じて、各画素の濃度の安定度合いを示す安定係数を付与する手段と
を備え、
前記決定手段は、付与された重み付け及び安定係数に基づいて、量子化テーブルを決定するように構成してあることを特徴とする請求項2乃至請求項4のいずれか1つに記載の画像処理装置。
Means for weighting each pixel according to the distance from the pixel of interest of each pixel of the peripheral pixel block;
Means for providing a stability coefficient indicating the degree of stability of the density of each pixel according to the quantized value of each pixel of the peripheral pixel block, and
5. The image processing according to claim 2, wherein the determination unit is configured to determine a quantization table based on the assigned weighting and stability coefficient. apparatus.
周辺画素ブロックの各画素の量子化値の組み合わせに関連付けて各量子化テーブルを識別するための識別子を記憶する手段と、
前記抽出手段で抽出された周辺画素ブロックの各画素の量子化値に基づいて識別子を特定する手段と
を備え、
前記決定手段は、
前記手段で特定された識別子で識別される量子化テーブルを決定するように構成してあることを特徴とする請求項2乃至請求項5のいずれか1つに記載の画像処理装置。
Means for storing an identifier for identifying each quantization table in association with a combination of quantization values of each pixel of the peripheral pixel block;
Means for specifying an identifier based on a quantized value of each pixel of the peripheral pixel block extracted by the extracting means,
The determining means includes
6. The image processing apparatus according to claim 2, wherein a quantization table identified by the identifier specified by the means is determined.
注目画素が走査される都度、周辺画素ブロックの中で最初に多値量子化された画素の量子化値を消去する消去手段を備えることを特徴とする請求項2乃至請求項6のいずれか1つに記載の画像処理装置。   7. An erasing unit for erasing a quantized value of a pixel first subjected to multi-level quantization in a neighboring pixel block each time a pixel of interest is scanned is provided. The image processing apparatus described in one. N個の異なる量子化値夫々に、0からN−1までの整数値を対応付けていることを特徴とする請求項2乃至請求項7のいずれか1つに記載の画像処理装置。   8. The image processing apparatus according to claim 2, wherein an integer value from 0 to N-1 is associated with each of N different quantized values. N個の異なる量子化値夫々に、0からM−1(M<N)までの整数値を対応付けていることを特徴とする請求項2乃至請求項7のいずれか1つに記載の画像処理装置。   The image according to any one of claims 2 to 7, wherein an integer value from 0 to M-1 (M <N) is associated with each of N different quantized values. Processing equipment. N個の異なる量子化値夫々に、0からM−1(M≦2のべき乗<N)までの整数値を対応付けていることを特徴とする請求項2乃至請求項7のいずれか1つに記載の画像処理装置。   The integer value from 0 to M-1 (M ≦ 2 to the power of <N) is associated with each of the N different quantized values. An image processing apparatus according to 1. 画像の色成分に応じて、対応付ける整数値を設定する手段を備えることを特徴とする請求項9又は請求項10に記載の画像処理装置。   11. The image processing apparatus according to claim 9, further comprising means for setting an integer value to be associated according to a color component of the image. 画像の色成分に応じて、量子化閾値を設定する手段を備えることを特徴とする請求項2乃至請求項11のいずれか1つに記載の画像処理装置。   12. The image processing apparatus according to claim 2, further comprising a unit that sets a quantization threshold according to a color component of the image. 複数の量子化テーブルの中で共通する量子化閾値は、該量子化閾値を有する一の量子化テーブルに記憶してあり、共通する量子化閾値以外の量子化閾値は、各量子化テーブルに記憶するようにしてあることを特徴とする請求項2乃至請求項12のいずれか1つに記載の画像処理装置。   A common quantization threshold among a plurality of quantization tables is stored in one quantization table having the quantization threshold, and quantization thresholds other than the common quantization threshold are stored in each quantization table. The image processing apparatus according to claim 2, wherein the image processing apparatus is configured as described above. 請求項2乃至請求項13のいずれか1つに記載の画像処理装置と、該画像処理装置で生成された画像データに基づいてシートに出力画像を形成する画像形成手段とを備えることを特徴とする画像形成装置。   An image processing apparatus according to any one of claims 2 to 13, and image forming means for forming an output image on a sheet based on image data generated by the image processing apparatus. Image forming apparatus. コンピュータに、複数の画素で構成される画像の各画素を所定の方向に走査し、量子化閾値に基づいて各画素の画素値を多値量子化して中間調の画像を生成させるためのコンピュータプログラムにおいて、
コンピュータに、複数の多値量子化済の画素で構成される注目画素周辺の周辺画素ブロックを抽出させる手段と、
コンピュータに、抽出された周辺画素ブロックの各画素の量子化値に基づいて、前記注目画素周辺の階調度合いを特定させる手段と、
コンピュータに、特定された階調度合いに応じて、前記注目画素を多値量子化するための量子化テーブルを決定させる手段と、
コンピュータに、決定された量子化テーブルを用いて、前記注目画素の画素値を多値量子化させる手段と
して機能させることを特徴とするコンピュータプログラム。
A computer program for causing a computer to scan each pixel of an image composed of a plurality of pixels in a predetermined direction and to generate a halftone image by multi-quantizing the pixel value of each pixel based on a quantization threshold In
Means for causing a computer to extract a peripheral pixel block around a target pixel composed of a plurality of multi-valued quantized pixels;
Means for causing a computer to specify the degree of gradation around the pixel of interest based on the quantized value of each pixel of the extracted peripheral pixel block;
Means for causing a computer to determine a quantization table for multi-value quantization of the pixel of interest according to the specified gradation level;
A computer program that causes a computer to function as means for performing multi-value quantization on a pixel value of the pixel of interest using a determined quantization table.
請求項15に記載のコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。   A computer-readable recording medium on which the computer program according to claim 15 is recorded.
JP2007150810A 2007-06-06 2007-06-06 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium Pending JP2008306400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007150810A JP2008306400A (en) 2007-06-06 2007-06-06 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007150810A JP2008306400A (en) 2007-06-06 2007-06-06 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium

Publications (1)

Publication Number Publication Date
JP2008306400A true JP2008306400A (en) 2008-12-18

Family

ID=40234742

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007150810A Pending JP2008306400A (en) 2007-06-06 2007-06-06 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium

Country Status (1)

Country Link
JP (1) JP2008306400A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011223480A (en) * 2010-04-14 2011-11-04 Konica Minolta Business Technologies Inc Image processing apparatus and image processing method
JP2014195204A (en) * 2013-03-29 2014-10-09 Riso Kagaku Corp Image processing unit
CN114581879A (en) * 2022-02-08 2022-06-03 广州小鹏自动驾驶科技有限公司 Image recognition method, image recognition device, electronic equipment and storage medium
CN117135288A (en) * 2023-10-25 2023-11-28 钛玛科(北京)工业科技有限公司 Image stitching method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011223480A (en) * 2010-04-14 2011-11-04 Konica Minolta Business Technologies Inc Image processing apparatus and image processing method
JP2014195204A (en) * 2013-03-29 2014-10-09 Riso Kagaku Corp Image processing unit
CN114581879A (en) * 2022-02-08 2022-06-03 广州小鹏自动驾驶科技有限公司 Image recognition method, image recognition device, electronic equipment and storage medium
CN117135288A (en) * 2023-10-25 2023-11-28 钛玛科(北京)工业科技有限公司 Image stitching method and device
CN117135288B (en) * 2023-10-25 2024-02-02 钛玛科(北京)工业科技有限公司 Image stitching method and device

Similar Documents

Publication Publication Date Title
US8259357B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer readable recording medium
US6118547A (en) Image processing method and apparatus
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
JP4173154B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JPH05336373A (en) Image recorder
JP4067532B2 (en) Color conversion apparatus, image forming apparatus, color conversion method, computer program, and recording medium
JP4197346B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing 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
JP2003219191A (en) Image processing apparatus and image forming apparatus using the same
JP2008306400A (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP2010278933A (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4596964B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
CN100452827C (en) Image processing method, image processing apparatus, image forming apparatus, and recording medium
JP4499685B2 (en) Image processing apparatus, image forming apparatus including the same, image processing method, image processing program, and recording medium
JP4027300B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4560357B2 (en) Image processing method, image processing apparatus, image forming apparatus including the same, program, and recording medium
JP2005072635A (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, and computer-readable recording medium on which image processing program is recorded
JP2003219178A (en) Image processing method, image processing apparatus, and image forming apparatus
JP5122507B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP2002010079A (en) Color image processing equipment
JP3774127B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4118823B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP4266004B2 (en) Image processing method, image processing apparatus, image forming apparatus, image processing program, and recording medium recording image processing program
JP5162430B2 (en) Image processing apparatus and image processing method