JP2024019857A - Image processing device, image processing method, and program - Google Patents

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

Info

Publication number
JP2024019857A
JP2024019857A JP2022122595A JP2022122595A JP2024019857A JP 2024019857 A JP2024019857 A JP 2024019857A JP 2022122595 A JP2022122595 A JP 2022122595A JP 2022122595 A JP2022122595 A JP 2022122595A JP 2024019857 A JP2024019857 A JP 2024019857A
Authority
JP
Japan
Prior art keywords
value
pixel
usage rate
error
quantization
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
JP2022122595A
Other languages
Japanese (ja)
Inventor
真一 宮▲崎▼
顕季 山田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2022122595A priority Critical patent/JP2024019857A/en
Priority to US18/350,931 priority patent/US20240037895A1/en
Publication of JP2024019857A publication Critical patent/JP2024019857A/en
Pending legal-status Critical Current

Links

Images

Abstract

【課題】高周波パターンの画像であっても、量子化の処理の際に領域としての濃度を保持可能な技術を提供する。【解決手段】前記注目画素を含む対象領域に位置する各画素のそれぞれの画素において、画素値に応じて、二次元マトリクスを前記量子化に影響させる度合いを示す第1使用率と、前記注目画素の周辺の画素に対する前記量子化で生じる量子化誤差値の累積値である累積誤差を前記量子化に影響させる度合いを示す第2使用率とを決定する。そして、前記対象領域に位置する画素それぞれの前記第1使用率に基づいて前記注目画素の前記量子化に適用する第1適用使用率を決定するとともに、前記対象領域に位置する画素それぞれの前記第2使用率に基づいて前記注目画素の前記量子化に適用する第2適用使用率を決定し、前記第1適用使用率に応じて前記二次元マトリクスを使用し、前記第2適用使用率に応じて前記累積誤差を使用して前記量子化を実行する。【選択図】図4The present invention provides a technique that can maintain density as a region during quantization processing even in an image of a high frequency pattern. A first usage rate indicating the degree to which a two-dimensional matrix influences the quantization according to a pixel value for each pixel located in a target area including the pixel of interest; A second usage rate indicating the degree to which the cumulative error, which is the cumulative value of the quantization error values generated in the quantization for pixels around the quantization, influences the quantization is determined. Then, a first application usage rate to be applied to the quantization of the pixel of interest is determined based on the first usage rate of each pixel located in the target area, and the first usage rate of each pixel located in the target area is determined. determining a second application usage rate to be applied to the quantization of the pixel of interest based on the second usage rate, using the two-dimensional matrix according to the first application usage rate, and using the two-dimensional matrix according to the second application usage rate. and performing the quantization using the accumulated error. [Selection diagram] Figure 4

Description

本発明は、量子化の処理を行う画像処理装置、画像処理方法、およびプログラムに関する。 The present invention relates to an image processing device, an image processing method, and a program that perform quantization processing.

プリンタにより画像を印刷するには、通常、画像に対する量子化の処理が必要となる。量子化の処理とは、連続階調で表現された画像を、プリンタが表現できる階調数に変換するハーフトーン処理である。従来、量子化の処理として、例えば、ディザ処理および誤差拡散処理が知られている。 In order to print an image using a printer, it is usually necessary to perform quantization processing on the image. Quantization processing is halftone processing that converts an image expressed in continuous gradations into the number of gradations that can be expressed by a printer. Conventionally, dither processing and error diffusion processing, for example, are known as quantization processing.

また、従来、ディザ処理と誤差拡散処理との双方を用いて量子化を行う方法が知られている。例えば、特許文献1には、ディザマトリクスノイズ、累計誤差を量子化の処理に影響させる度合いを示すパラメータであるノイズ使用率、誤差使用率を用いて、ディザ処理および誤差拡散処理の影響を割り振るようにして量子化する技術が開示されている。 Further, conventionally, a method is known in which quantization is performed using both dither processing and error diffusion processing. For example, Patent Document 1 describes how to allocate the influence of dither processing and error diffusion processing using noise usage rate and error usage rate, which are parameters that indicate the degree to which dither matrix noise and cumulative error affect quantization processing. A technique for quantizing the data is disclosed.

国際公開番号WO2011/036735International publication number WO2011/036735

しかしながら、例えば、中間階調値のハッチングパターンのような高周波パターンの画像では、ノイズ使用率および誤差使用率が領域内でばらつく。このため、誤差拡散で処理されているにも関わらず、誤差使用率によって誤差の伝搬の少ない、もしくは誤差伝搬されなくなり、領域として濃度が保持されない場合があった。 However, for example, in an image with a high frequency pattern such as a hatching pattern of intermediate tone values, the noise usage rate and the error usage rate vary within the area. For this reason, even though processing is performed using error diffusion, there are cases where the error propagation is small or no error propagates depending on the error usage rate, and the density is not maintained as a region.

本発明は、上記課題に鑑みてなされたものであり、高周波パターンの画像であっても、量子化の処理の際に領域としての濃度を保持可能な技術を提供することを目的とする。 The present invention has been made in view of the above problems, and it is an object of the present invention to provide a technique that can maintain the density of a region during quantization processing even in an image of a high frequency pattern.

上記目的を達成するために、本発明の一実施形態は、コンピュータを、入力画像における各画素の画素値を量子化する画像処理装置として機能させるプログラムであって、前記コンピュータを、前記量子化の対象とする注目画素を選択する画素選択手段と、少なくとも、前記注目画素を含む対象領域に位置する各画素のそれぞれの画素において、画素値に応じて、二次元マトリクスを前記量子化に影響させる度合いを示す第1使用率と、前記注目画素の周辺の画素に対する前記量子化で生じる量子化誤差値の累積値である累積誤差を前記量子化に影響させる度合いを示す第2使用率と、を決定する使用率決定手段と、前記対象領域に位置する画素それぞれの前記第1使用率に基づいて前記注目画素の前記量子化に適用する第1適用使用率を決定するとともに、前記対象領域に位置する画素それぞれの前記第2使用率に基づいて前記注目画素の前記量子化に適用する第2適用使用率を決定する適用使用率決定手段と、前記注目画素に対応する前記累積誤差と前記第2適用使用率とに基づいて前記注目画素の前記量子化に適用する適用誤差値を取得する適用誤差値取得手段と、前記適用誤差値と前記注目画素の画素値とに基づいて累積画素値を取得する累積画素値取得手段と、前記二次元マトリクスと前記第1適用使用率とに基づいて前記注目画素の前記量子化に適用する量子化閾値を取得する閾値取得手段と、前記累積画素値と前記量子化閾値とに基づいて、量子化値および量子化誤差値を取得する量子化値取得手段と、として機能させることを特徴とする。 In order to achieve the above object, one embodiment of the present invention is a program that causes a computer to function as an image processing device that quantizes the pixel value of each pixel in an input image, the program that causes the computer to perform the quantization. a pixel selection means for selecting a pixel of interest to be a target; and at least a degree to which the two-dimensional matrix influences the quantization according to a pixel value of each pixel located in a target area including the pixel of interest; and a second usage rate that indicates the degree to which the quantization is affected by the cumulative error that is the cumulative value of quantization error values generated in the quantization for pixels surrounding the pixel of interest. a usage rate determination means for determining a first application usage rate to be applied to the quantization of the pixel of interest based on the first usage rate of each pixel located in the target area; applied usage rate determining means for determining a second applied usage rate to be applied to the quantization of the pixel of interest based on the second usage rate of each pixel; and the cumulative error corresponding to the pixel of interest and the second application rate. an applied error value obtaining unit that obtains an applied error value to be applied to the quantization of the pixel of interest based on the usage rate; and a cumulative pixel value that obtains a cumulative pixel value based on the applied error value and the pixel value of the pixel of interest. cumulative pixel value acquisition means; threshold value acquisition means for acquiring a quantization threshold to be applied to the quantization of the pixel of interest based on the two-dimensional matrix and the first applied usage rate; The method is characterized in that it functions as a quantization value acquisition means for acquiring a quantization value and a quantization error value based on the quantization threshold value.

本発明によれば、中間階調値のハッチングパターンのような高周波パターンの画像であっても、量子化の処理の際に領域としての濃度を保持することができるようになる。 According to the present invention, even in the case of an image with a high frequency pattern such as a hatching pattern of intermediate gradation values, the density as a region can be maintained during quantization processing.

印刷システムおよび画像処理装置で実行する量子化の処理の概要を示す図Diagram showing an overview of quantization processing executed by the printing system and image processing device 入力画像と量子化の処理結果による画像の一例を示す図Diagram showing an example of an image obtained from an input image and quantization processing results 入力画像における入力値および量子化の処理後の出力値の一例を示す図A diagram showing an example of an input value in an input image and an output value after quantization processing 量子化処理の処理ルーチンを示すフローチャートFlowchart showing the processing routine of quantization processing 画素の選択順を説明する図Diagram explaining the pixel selection order ノイズ使用率および誤差使用率の算出方法を説明する図Diagram explaining how to calculate noise usage rate and error usage rate 第1算出処理の処理ルーチンを示すフローチャートFlowchart showing the processing routine of the first calculation process 第2算出処理の処理ルーチンを示すフローチャートFlowchart showing the processing routine of the second calculation process 量子化実行処理の処理ルーチンを示すフローチャートFlowchart showing the processing routine of quantization execution processing 対象領域の各画素におけるノイズ使用率および誤差使用率を示す図Diagram showing the noise usage rate and error usage rate for each pixel in the target area 拡散フィルタおよび拡散フィルタを用いた誤差分配の一例を示す図Diagram showing an example of a diffusion filter and error distribution using a diffusion filter 誤差分配処理の処理ルーチンを示すフローチャートFlowchart showing the processing routine of error distribution processing 入力画像と量子化の処理結果による画像の他の例を示す図Diagram showing another example of an image based on the input image and quantization processing results

以下、添付の図面を参照しながら、画像処理装置、画像処理方法、およびプログラムの実施形態の一例を詳細に説明する。なお、以下の実施形態は、本発明を限定するものではなく、また、本実施形態で説明されている特徴の組み合わせのすべてが本発明の解決手段に必須のものとは限らない。また、実施形態に記載されている構成要素の位置、形状などはあくまで例示であり、この発明の範囲をそれらのみに限定する趣旨のものではない。 Hereinafter, an example of an embodiment of an image processing device, an image processing method, and a program will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the present invention, and not all combinations of features described in the present embodiments are essential to the solution of the present invention. Further, the positions, shapes, etc. of the components described in the embodiments are merely examples, and the scope of the present invention is not intended to be limited thereto.

(印刷システムの構成)
図1(a)は、本実施形態による画像処理装置を備えた印刷システムの一例を示す図である。図1(a)の印刷システム10は、印刷媒体に対して印刷を行う印刷装置12と、入力された印刷データに基づいて、印刷装置12による印刷を実行可能な印刷可能データを生成可能な画像処理装置14とを備えている。印刷装置12は、例えば、インクジェットプリンタであり、画像処理装置14から入力された印刷可能データに基づいて、印刷媒体に対して印刷を実行する。また、印刷装置12は、シアンインク、マゼンタインク、イエローインク、およびブラックインクの各色をプロセスカラーとして使用し、カラー印刷を行う。なお、印刷装置12では、プロセスカラーインクのほかに、他の色のインクや、吐出後のインクに対して所定の処理を施す処理液などを吐出する構成としてもよい。
(Printing system configuration)
FIG. 1A is a diagram showing an example of a printing system including an image processing apparatus according to this embodiment. The printing system 10 in FIG. 1A includes a printing device 12 that prints on a print medium, and an image that can generate printable data that can be printed by the printing device 12 based on input print data. A processing device 14 is provided. The printing device 12 is, for example, an inkjet printer, and executes printing on a print medium based on printable data input from the image processing device 14. Further, the printing device 12 performs color printing using cyan ink, magenta ink, yellow ink, and black ink as process colors. Note that the printing device 12 may be configured to eject, in addition to process color ink, ink of another color, or a processing liquid that performs a predetermined process on the ejected ink.

図示は省略するが、画像処理装置14は、少なくとも、中央処理装置(CPU)と、CPUにおいて実行する各種処理のプログラムなどを記憶するROMと、CPUのワークメモリなどとして使用されるRAMとを備えている。また、画像処理装置14は、各種の情報を記憶可能な記憶部を備えている。画像処理装置14は、例えば、RIP(Raster Image Processor)処理などの画像形成処理を実行する。具体的には、画像処理装置14は、印刷データが示す原画像を展開することにより、印刷装置12が解釈可能な形式により画像を示す印刷可能データを形成する。 Although not shown, the image processing device 14 includes at least a central processing unit (CPU), a ROM that stores programs for various processes executed by the CPU, and a RAM that is used as a work memory of the CPU. ing. Further, the image processing device 14 includes a storage unit capable of storing various types of information. The image processing device 14 executes image forming processing such as RIP (Raster Image Processor) processing, for example. Specifically, the image processing device 14 develops the original image represented by the print data to form printable data representing the image in a format that the printing device 12 can interpret.

本実施形態では、画像処理装置14は、画像形成処理において、少なくとも原画像中の各画素の画素値である色の濃度を示す濃度値の量子化を行うものとする。従って、本実施形態では、画像処理装置14は、印刷装置12で使用されるプロセスカラーごとに量子化を行い、印刷データに基づき、各プロセスカラーに対応するハーフトーン画像を形成する。なお、画像処理装置14は、例えば、印刷装置12を制御するホスト装置であり、所定のプログラムに従って、画像処理装置として動作する。画像処理装置14は、印刷データを、例えば、画像処理装置14と接続される外部装置などから受け取ってもよい。あるいは、画像処理装置14は、ユーザによって印刷データを作成可能な構成としてもよい。 In the present embodiment, the image processing device 14 performs quantization of at least a density value indicating color density, which is a pixel value of each pixel in the original image, in the image forming process. Therefore, in this embodiment, the image processing device 14 performs quantization for each process color used by the printing device 12, and forms a halftone image corresponding to each process color based on print data. Note that the image processing device 14 is, for example, a host device that controls the printing device 12, and operates as an image processing device according to a predetermined program. The image processing device 14 may receive print data from, for example, an external device connected to the image processing device 14. Alternatively, the image processing device 14 may be configured to allow a user to create print data.

(量子化の概要)
次に、画像処理装置14で実行される量子化の処理の概要について説明する。図1(b)は、画像処理装置14で実行される量子化の処理の概要を示す図である。画像処理装置14は、プロセスカラーごとに、原画像に対する量子化により、ハーフトーン画像である疑似中間調画像を形成する。この量子化は、原画像の各座標における濃度値In(x、y)を、疑似中間調画像の同じ座標における量子化値out(x、y)に変換する処理である。
(Overview of quantization)
Next, an overview of the quantization process executed by the image processing device 14 will be explained. FIG. 1(b) is a diagram showing an overview of the quantization process executed by the image processing device 14. The image processing device 14 forms a pseudo-halftone image, which is a halftone image, by quantizing the original image for each process color. This quantization is a process of converting the density value In (x, y) at each coordinate of the original image into a quantized value out (x, y) at the same coordinate of the pseudo halftone image.

画像処理装置14は、量子化として、ディザマトリクスノイズD(i、j)および累積誤差E(x、y)の両方を用いるハイブリッド誤差拡散処理を行う。また、画像処理装置14は、ディザマトリクスノイズD(i、j)および累積誤差E(x、y)に関連するパラメータとして、それぞれ0以上、1以下、つまり、0%~100%の範囲の値に設定されるノイズ使用率Rnおよび誤差使用率Reを用いる。 The image processing device 14 performs hybrid error diffusion processing using both dither matrix noise D (i, j) and cumulative error E (x, y) as quantization. The image processing device 14 also sets values in the range of 0 or more and 1 or less, that is, 0% to 100%, as parameters related to the dither matrix noise D (i, j) and the cumulative error E (x, y). The noise usage rate Rn and the error usage rate Re are used.

ノイズ使用率Rnは、二次元マトリクスであるディザマトリクスノイズD(i、j)を量子化の処理に影響させる度合いを示すパラメータである。このノイズ使用率Rnは、濃度値に応じて決まっている。そして、本実施形態では、量子化を行う画素に対して適用する適用ノイズ使用率Rnaを取得する。なお、適用ノイズ使用率Rnaは、量子化を行う画素およびその周辺の画素のそれぞれの濃度値In(x、y)に応じたノイズ使用率Rnから算出される。画像処理装置14では、ディザマトリクスノイズD(i、j)をそのまま用いるのではなく、ディザマトリクスD(i、j)と適用ノイズ使用率Rnaとの積を用いて量子化を行う。即ち、画像処理装置14では、量子化を行う画素に対応する適用ノイズ使用率Rnaに応じて、ディザマトリクスノイズD(i、j)を使用することとなる。 The noise usage rate Rn is a parameter indicating the degree to which the dither matrix noise D(i, j), which is a two-dimensional matrix, influences the quantization process. This noise usage rate Rn is determined according to the density value. In this embodiment, the applied noise usage rate Rna to be applied to the pixel to be quantized is obtained. Note that the applied noise usage rate Rna is calculated from the noise usage rate Rn according to each density value In(x,y) of the pixel to be quantized and its surrounding pixels. The image processing device 14 does not use the dither matrix noise D(i, j) as it is, but performs quantization using the product of the dither matrix D(i, j) and the applied noise usage rate Rna. That is, the image processing device 14 uses dither matrix noise D(i, j) according to the applied noise usage rate Rna corresponding to the pixel to be quantized.

誤差使用率Reは、累積誤差E(x、y)を量子化の処理に影響させる度合いを示すパラメータである。この誤差使用率Reは、濃度値に応じて決まっている。そして、本実施形態では、量子化を行う画素に対して適用する適用誤差使用率Reaを取得する。なお、適用誤差使用率Reaは、量子化を行う画素およびその周辺の画素のそれぞれの濃度値In(x、y)に応じた誤差使用率Reから算出される。画像処理装置14では、累積誤差E(x、y)をそのまま用いるのではなく、累積誤差E(x、y)と適用誤差使用率Reaとの積を用いて、各画素の濃度値In(x、y)に対応する誤差補正済入力値In´(x、y)を算出する。そして、算出した誤差補正済入力値In´(x、y)を用いて量子化の処理を行う、即ち、画像処理装置14では、量子化を行う画素に対応する適用誤差使用率Reaに応じて、累積誤差E(x、y)を使用する。なお、量子化の処理の詳細については、後述する。 The error usage rate Re is a parameter indicating the degree to which the cumulative error E(x, y) influences the quantization process. This error usage rate Re is determined according to the density value. In this embodiment, the applied error usage rate Rea to be applied to the pixel to be quantized is obtained. Note that the applied error usage rate Rea is calculated from the error usage rate Re that corresponds to the respective density values In(x, y) of the pixel to be quantized and its surrounding pixels. The image processing device 14 uses the product of the cumulative error E(x, y) and the applied error usage rate Rea to calculate the density value In(x , y) is calculated. Then, the image processing device 14 performs a quantization process using the calculated error-corrected input value In′ (x, y). , using the cumulative error E(x,y). Note that details of the quantization process will be described later.

(公知技術における懸念)
ここで、公知技術による量子化を行ったデータを用いて印刷した際の印刷結果について説明する。公知技術(例えば、特許文献1に開示の技術)では、画素に対するノイズ使用率Rnおよび誤差使用率Reは、その画素の濃度値In(x、y)によって決定される。図2は、入力画像に対する処理結果に応じた印刷結果の違いを示す図である。図2(a)は、所定のプロセスカラーにより印刷される入力画像を示す図である。図2(b)は、入力画像に対して公知技術を用いた処理結果に応じた印刷結果を示す図である。図2(c)は、入力画像に対して本実施形態による技術を用いた処理結果に応じた印刷結果を示す図である。図3は、図2(a)の入力画像から5×5画素で切り取った画像に対する量子化の結果を示す図である。図3(a)は、図2(a)の入力画像の中間調付近(濃度を持った画素の濃度値が125(8ビット))の画像を示す。図3(b)は、公知技術による量子化の結果を示す。図3(c)は、本実施形態による量子化の結果を示す。
(Concerns regarding known technology)
Here, a printing result when printing using data that has been quantized using a known technique will be described. In a known technique (for example, the technique disclosed in Patent Document 1), the noise usage rate Rn and error usage rate Re for a pixel are determined by the density value In(x, y) of that pixel. FIG. 2 is a diagram showing differences in print results depending on processing results for input images. FIG. 2(a) is a diagram showing an input image printed in a predetermined process color. FIG. 2(b) is a diagram showing a print result according to a result of processing an input image using a known technique. FIG. 2C is a diagram showing a print result according to the processing result of using the technique according to this embodiment on an input image. FIG. 3 is a diagram showing the result of quantization on an image cut out by 5×5 pixels from the input image of FIG. 2(a). FIG. 3(a) shows an image near the halftone of the input image of FIG. 2(a) (the density value of a pixel having density is 125 (8 bits)). FIG. 3(b) shows the result of quantization using a known technique. FIG. 3(c) shows the result of quantization according to this embodiment.

入力画像は、濃度0の画素と濃度を持った画素が千鳥状に配置され、濃度を持った画素は、画像の一方から他方に向かって徐々に濃度が高くなっている(図2(a)参照)。この入力画像における中間調付近を5×5画素で切り取った画像では、図3(a)のように、濃度値125が示された画素の周囲に、濃度値0の画素が位置している。濃度を持った(濃度値125の)画素では、誤差使用率100%、ノイズ使用率0%となる。そして、拡散フィルタは、図1(b)に示す拡散フィルタ102が用いられる。なお、濃度値に対する誤差使用率、ノイズ使用率の割合は、例えば、図6のようになっており、詳細は後述する。公知技術を用いた場合の図3(a)の画像の量子化の結果は、図3(b)のようになる。 In the input image, pixels with a density of 0 and pixels with a density are arranged in a staggered manner, and the pixels with a density gradually increase in density from one side of the image to the other (Figure 2 (a) reference). In an image obtained by cutting out the vicinity of the halftone of this input image into 5×5 pixels, pixels with a density value of 0 are located around a pixel with a density value of 125, as shown in FIG. 3(a). A pixel with density (density value 125) has an error usage rate of 100% and a noise usage rate of 0%. As the diffusion filter, a diffusion filter 102 shown in FIG. 1(b) is used. Note that the ratio of the error usage rate and the noise usage rate to the density value is as shown in FIG. 6, for example, and the details will be described later. The result of quantization of the image in FIG. 3(a) using the known technique is as shown in FIG. 3(b).

即ち、図3(a)では、画素302は濃度値0である。このため、画素302では、ノイズ使用率100%、誤差使用率0%となる。画素302を量子化する場合、周辺に濃度値125の画素304が存在するため、周辺の画素で発生した誤差が伝搬することで画素302に適用される累積誤差Eは0でない値となる。しかしながら、画素302では誤差使用率が0%であるため、累積誤差Eは入力値に反映されず、誤差拡散済入力値は0(0+0)となる。従って、画素302のディザマトリクスの値が-108、初期閾値が128とすると、ノイズ補正済閾値が20(=-108×1.0+128)となる。その結果、入力値(濃度値)0と閾値20とが比較され、入力値が閾値未満であるため量子化の結果は0となる(図3(b)参照)。そして、誤差として0(0-0)が算出されるため、周囲へ拡散する誤差はない。 That is, in FIG. 3A, the pixel 302 has a density value of 0. Therefore, in the pixel 302, the noise usage rate is 100% and the error usage rate is 0%. When pixel 302 is quantized, since there is a pixel 304 with a density value of 125 in the vicinity, the cumulative error E applied to pixel 302 becomes a non-zero value due to the propagation of errors generated in the surrounding pixels. However, since the error usage rate is 0% in the pixel 302, the cumulative error E is not reflected in the input value, and the error-diffused input value becomes 0 (0+0). Therefore, if the value of the dither matrix of pixel 302 is -108 and the initial threshold is 128, then the noise-corrected threshold is 20 (=-108×1.0+128). As a result, the input value (density value) 0 is compared with the threshold value 20, and since the input value is less than the threshold value, the quantization result is 0 (see FIG. 3(b)). Since 0 (0-0) is calculated as the error, there is no error that spreads to the surroundings.

一方、図3(a)では、画素304は濃度値125である。このため、画素304では、ノイズ使用率0%、誤差使用率100%となる。画素304の周辺は濃度0の画素であるため、周辺の画素の量子化で発生した誤差がない。このため、画素304に適用される累計誤差Eは0となる。そして、画素304では誤差使用率は100%であるが、累積誤差Eが0のため、誤差拡散済入力値は125(125+0)となる。従って、画素304のディザマトリクスの値が-64、初期閾値が128とすると、ノイズ補正済閾値が128(=-64×0.0+128)となる。その結果、入力値(濃度値)125と閾値128とが比較され、入力値が閾値未満であるため量子化の結果は0となる(図3(b)参照)。そして、誤差として+125(125-0)が算出され、拡散フィルタによって周囲の画素へ誤差が拡散される。 On the other hand, in FIG. 3A, the pixel 304 has a density value of 125. Therefore, in the pixel 304, the noise usage rate is 0% and the error usage rate is 100%. Since the pixels around the pixel 304 have a density of 0, there is no error caused by quantization of the surrounding pixels. Therefore, the cumulative error E applied to pixel 304 is zero. In the pixel 304, the error usage rate is 100%, but since the cumulative error E is 0, the error-diffused input value is 125 (125+0). Therefore, if the value of the dither matrix of the pixel 304 is -64 and the initial threshold is 128, then the noise-corrected threshold is 128 (=-64×0.0+128). As a result, the input value (density value) 125 and the threshold value 128 are compared, and since the input value is less than the threshold value, the quantization result is 0 (see FIG. 3(b)). Then, +125 (125-0) is calculated as an error, and the error is diffused to surrounding pixels by a diffusion filter.

このように、公知技術による量子化では、図3(a)の画像は、濃度を持った画素で発生した誤差が拡散されるが周辺の画素で適用されないため、図3(b)のように、領域中の出力値がすべて0となり、領域として濃度が保持されなくなる。このため、誤差使用率100%、ノイズ使用率0%となる入力値(濃度値)の場合、誤差拡散処理では基準の閾値を境に量子化の結果による濃度が急激に変化し、ノイズ使用率が低い階調では、量子化の結果において、領域として濃度が保持されなくなることがある。 In this way, with the quantization using the known technology, the image in FIG. 3(a) is created as shown in FIG. 3(b) because the error generated in the pixel with density is diffused but not applied to the surrounding pixels. , all the output values in the region become 0, and the density is no longer maintained as a region. Therefore, in the case of an input value (density value) with an error usage rate of 100% and a noise usage rate of 0%, in error diffusion processing, the density due to the quantization result changes rapidly after the reference threshold, and the noise usage rate At gradation levels with low quantization, the density may not be maintained as a region as a result of quantization.

図2(b)のように、明部側(図中左方側)では、量子化の結果の一部が255となり、暗部側(図中右方側)では、量子化の結果が、その一部において255となるべき位置で0となっている。これは、ノイズ使用率が100%に近づくことで、明部:ノイズ補正済閾値<画素濃度値、暗部:ノイズ補正済閾値>画素濃度値となる画素が生じるためである。つまり、図2(a)と図2(b)とを比較すると、図2(b)では濃度階調が保持されず、中央付近で急峻に濃度が変化しているだけでなく、明部と暗部で濃度の逆転が生じる箇所があることがわかる。 As shown in Figure 2(b), in the bright side (left side in the figure), part of the quantization result is 255, and in the dark side (right side in the figure), the quantization result is 255. In some parts, the value is 0 where it should be 255. This is because as the noise usage rate approaches 100%, there are pixels where the bright area: noise corrected threshold value<pixel density value, and the dark area: noise corrected threshold value>pixel density value. In other words, when comparing FIG. 2(a) and FIG. 2(b), we find that in FIG. 2(b), the density gradation is not maintained, and not only does the density change sharply near the center, but also in the bright area. It can be seen that there are places where the density inversion occurs in dark areas.

(本実施形態による技術の概要)
そこで、本実施形態では、量子化を行う画素およびその周辺の画素のそれぞれの濃度値に応じたノイズ使用率Rnおよび誤差使用率Reから、量子化を行う画素に適用する適用ノイズ使用率Rnaと適用誤差使用率Reaとを決定するようにした。そして、決定した適用ノイズ使用率Rnaおよび適用誤差使用率Reaを用いて、対象となる画素に対する量子化の処理を実行するようにした。
(Summary of technology according to this embodiment)
Therefore, in this embodiment, the applied noise usage rate Rna to be applied to the pixel to be quantized is determined from the noise usage rate Rn and error usage rate Re corresponding to the respective density values of the pixel to be quantized and the surrounding pixels. The application error usage rate Rea is determined. Then, using the determined applied noise usage rate Rna and applied error usage rate Rea, the quantization process for the target pixel is executed.

これにより、例えば、誤差拡散処理の空間周波数特性(誤差拡散特性)にディザ処理の空間周波数特性(ディザ特性)の影響を与えることができる。また、例えば、誤差拡散特性にディザ特性を組み込んだ方法により、量子化の処理を行うことができる。この場合、単に、ディザ処理と誤差拡散処理とを切り替える場合などと異なり、処理の切り替えに伴う境界線の発生などを抑制することができる。 Thereby, for example, it is possible to influence the spatial frequency characteristics (dither characteristics) of dither processing on the spatial frequency characteristics (error diffusion characteristics) of error diffusion processing. Further, for example, quantization processing can be performed by a method that incorporates a dither characteristic into an error diffusion characteristic. In this case, unlike the case of simply switching between dither processing and error diffusion processing, it is possible to suppress the occurrence of boundary lines due to processing switching.

さらに、領域の濃度を保持することを考慮した適用ノイズ使用率Rnaおよび適用誤差使用率Reaを、量子化を行う画素に適用させることができる。この結果、ノイズ使用率Rnおよび誤差使用率Reが領域内でばらつく中間調値のハッチングパターンのような高周波パターンの画像において、領域としての濃度を保持することができるようになる。このため、例えば、誤差拡散処理およびディザ処理のそれぞれが得意とする部分を適切に活かし、かつ、領域の濃度を保持して量子化の処理を行うことができるようになる。 Further, an applied noise usage rate Rna and an applied error usage rate Rea that take into account the maintenance of the density of the region can be applied to the pixels to be quantized. As a result, in an image of a high frequency pattern such as a hatching pattern of halftone values in which the noise usage rate Rn and the error usage rate Re vary within the area, the density as a region can be maintained. Therefore, for example, it becomes possible to appropriately utilize the strengths of error diffusion processing and dither processing, and to perform quantization processing while maintaining the density of the region.

なお、本実施形態では、ディザマトリクスノイズD(i、j)は、二次元マトリクスであり、例えば、予め設定されたディザマトリクスにより指定される値である。また、ディザマトリクスノイズD(i、j)は、例えば、従来のディザ処理において使用されるディザマトリクスノイズと同一または同様であってもよい。さらに、ディザマトリクスノイズD(i、j)は、例えば、ブルーノイズ特性のノイズを用いることが好ましい。画像処理装置14では、使用するディザマトリクスを、プロセスカラーごとに変更することが好ましい。 Note that in this embodiment, the dither matrix noise D(i, j) is a two-dimensional matrix, and is, for example, a value specified by a preset dither matrix. Further, the dither matrix noise D(i, j) may be the same as or similar to the dither matrix noise used in conventional dither processing, for example. Furthermore, it is preferable to use, for example, noise with blue noise characteristics as the dither matrix noise D(i, j). In the image processing device 14, it is preferable that the dither matrix used is changed for each process color.

また、本実施形態では、累積誤差E(x、y)は、周辺の画素に対する量子化において生じる誤差である量子化誤差Q(x、y)を累積した値(つまり、量子化誤差値の累積値)であり、予め設定された拡散フィルタ(拡散マトリクス)を用いて算出される。また、算出された累積誤差E(x、y)は、例えば、累積誤差バッファに格納される。画像処理装置14では、累積誤差E(x、y)を、例えば、従来の誤差拡散処理で使用される累積誤差と同一または同様の方法により算出する。 Furthermore, in this embodiment, the cumulative error E(x, y) is the cumulative value of the quantization errors Q(x, y), which are errors that occur during quantization of surrounding pixels (that is, the cumulative value of the quantization error values). value) and is calculated using a preset diffusion filter (diffusion matrix). Further, the calculated cumulative error E(x, y) is stored in, for example, a cumulative error buffer. The image processing device 14 calculates the cumulative error E(x, y) using, for example, the same or similar method to the cumulative error used in conventional error diffusion processing.

(量子化処理)
次に、本実施形態による画像処理装置14において実行される量子化処理について説明する。この量子化処理は、原画像における各画素に対して量子化の処理を実行する処理となる。図4は、画像処理装置14で実行される量子化処理の詳細な処理ルーチンを示すフローチャートである。なお、画像処理装置14では、図4の量子化処理を、プロセスカラーごとに実行することとなる。図4のフローチャートで示される一連の処理は、CPUがROMに記憶されているプログラムコードをRAMに展開して実行されることにより行われる。あるいはまた、図4におけるステップの一部または全部の機能をASICまたは電気回路などのハードウェアで実行してもよい。なお、各処理の説明における符号Sは、フローチャートにおけるステップであることを意味する(以下、本明細書において同様である。)。
(Quantization processing)
Next, the quantization process executed in the image processing device 14 according to this embodiment will be explained. This quantization process is a process of performing quantization processing on each pixel in the original image. FIG. 4 is a flowchart showing a detailed processing routine of the quantization process executed by the image processing device 14. Note that the image processing device 14 executes the quantization process shown in FIG. 4 for each process color. The series of processes shown in the flowchart of FIG. 4 is performed by the CPU loading the program code stored in the ROM into the RAM and executing it. Alternatively, the functionality of some or all of the steps in FIG. 4 may be performed in hardware, such as an ASIC or electrical circuit. Note that the symbol S in the description of each process means a step in a flowchart (the same applies hereinafter in this specification).

量子化処理が開始されると、まず、S402において、CPUが、原画像から、量子化を実行する画素である注目画素を選択する画素選択処理を実行する。このように、本実施形態では、画像処理装置14のCPUが、注目画素選択部として機能している。次に、S404において、CPUが、量子化を実行する画素を含む対象領域におけるそれぞれの画素について、各画素の画素値である濃度値に応じたノイズ使用率Rnおよび誤差使用率Reを算出する使用率算出処理を実行する。このように、本実施形態では、画像処理装置14のCPUが、画素における濃度値に応じたノイズ使用率Rnおよび誤差使用率Reを決定する使用率決定部として機能している。その後、S406において、CPUは、算出したノイズ使用率Rnおよび誤差使用率Reを用いて、量子化を行う画素に適用する適用ノイズ使用率Rnaおよび適用誤差使用率Reaを決定する適用使用率決定処理を実行する。このように、本実施形態では、画像処理装置14のCPUが、対象領域の各画素のノイズ使用率Rnおよび誤差使用率Reから、量子化を行う画素に対応する適用ノイズ使用率Rnaおよび適用誤差使用率Reaを決定する適用使用率決定部として機能している。なお、上記した画素選択処理、使用率算出処理、および適用使用率決定処理の詳細については、後述する。 When the quantization process is started, first, in S402, the CPU executes a pixel selection process to select a pixel of interest, which is a pixel to be quantized, from the original image. In this manner, in this embodiment, the CPU of the image processing device 14 functions as a pixel of interest selection section. Next, in S404, the CPU calculates the noise usage rate Rn and error usage rate Re according to the density value, which is the pixel value of each pixel, for each pixel in the target area including the pixel to be quantized. Execute rate calculation processing. In this manner, in this embodiment, the CPU of the image processing device 14 functions as a usage rate determination unit that determines the noise usage rate Rn and the error usage rate Re depending on the density value of the pixel. Thereafter, in S406, the CPU uses the calculated noise usage rate Rn and error usage rate Re to determine the applied noise usage rate Rna and applied error usage rate Rea to be applied to the pixels to be quantized. Execute. As described above, in this embodiment, the CPU of the image processing device 14 calculates the applied noise usage rate Rna and applied error corresponding to the pixel to be quantized from the noise usage rate Rn and error usage rate Re of each pixel in the target area. It functions as an applied usage rate determination unit that determines the usage rate Rea. Note that details of the above-described pixel selection process, usage rate calculation process, and applied usage rate determination process will be described later.

そして、S408において、CPUは、累積誤差E(x,y)による補正を行った後の濃度値である誤差補正済入力値In´(x,y)を算出する。この処理では、例えば、S402の画素選択処理で選択された画素に対応する適用誤差使用率Reaと累積誤差E(x,y)との積である適用誤差値を、その画素の濃度値In(x,y)に加算する。そして、加算後の値を累積画素値である誤差補正済入力値In´(x,y)として取得する。このように、本実施形態では、画像処理装置14のCPUが、適用誤差値を取得する適用誤差値取得部として機能している。また、本実施形態では、画像処理装置14のCPUが、累積画素値(誤差補正済入力値)を取得する累積画素値取得部(誤差補正済入力値算出部)として機能している。 Then, in S408, the CPU calculates the error-corrected input value In'(x,y), which is the density value after correction based on the cumulative error E(x,y). In this process, for example, the applied error value that is the product of the applied error usage rate Rea and the cumulative error E(x, y) corresponding to the pixel selected in the pixel selection process of S402 is converted to the density value In( x, y). Then, the value after the addition is obtained as the error-corrected input value In'(x,y), which is the cumulative pixel value. In this manner, in this embodiment, the CPU of the image processing device 14 functions as an applied error value acquisition unit that acquires applied error values. Further, in this embodiment, the CPU of the image processing device 14 functions as a cumulative pixel value acquisition unit (error-corrected input value calculation unit) that acquires cumulative pixel values (error-corrected input values).

さらに、S410において、CPUは、量子化で使用する閾値として、ディザマトリクスノイズD(i,j)を反映させた閾値であるノイズ補正済閾値Th´を算出する。この処理では、例えば、S402の画素選択処理で選択された画素に対応する適用ノイズ使用率RnaとディザマトリクスノイズD(i,j)との積を、予め設定された初期閾値Thに加算する。そして、加算後の値を、量子化閾値であるノイズ補正済閾値Th´として取得する。このように、本実施形態では、画像処理装置14のCPUが。量子化閾値(ノイズ補正済閾値)を取得する閾値取得部(ノイズ補正済閾値算出部)として機能している。 Further, in S410, the CPU calculates a noise-corrected threshold Th', which is a threshold that reflects the dither matrix noise D(i, j), as a threshold used in quantization. In this process, for example, the product of the applied noise usage rate Rna corresponding to the pixel selected in the pixel selection process of S402 and the dither matrix noise D(i, j) is added to a preset initial threshold Th. Then, the value after the addition is obtained as the noise-corrected threshold Th' which is the quantization threshold. In this way, in this embodiment, the CPU of the image processing device 14. It functions as a threshold acquisition unit (noise-corrected threshold calculation unit) that acquires a quantization threshold (noise-corrected threshold).

次に、S412において、CPUは、算出されたノイズ補正済閾値Th´と、誤差補正済入力値In´(x,y)とを比較し、S402の画素選択処理で選択された画素に対する量子化を実行することで量子化値を算出する量子化実行処理を行う。また、S412では、量子化誤差Q(x、y)も算出される。その後、S414において、CPUは、拡散フィルタに従って、この画素の量子化により生じる量子化誤差Q(x,y)を、周辺の画素に拡散させる誤差分配処理S107を行う。この誤差分配処理では、周辺画素の分配先座標に対応した拡散フィルタの値に量子化誤差Q(x,y)を積算し、周辺の画素のそれぞれに対応する累積誤差E(x,y)の値を更新する。このように、本実施形態では、画像処理装置14のCPUが、量子化値および量子化誤差値を取得する量子化値取得部として機能している。 Next, in S412, the CPU compares the calculated noise-corrected threshold Th' with the error-corrected input value In'(x,y), and performs quantization on the pixel selected in the pixel selection process of S402. A quantization execution process is performed to calculate a quantized value by executing . Furthermore, in S412, the quantization error Q(x,y) is also calculated. Thereafter, in S414, the CPU performs error distribution processing S107 to diffuse the quantization error Q(x,y) caused by the quantization of this pixel to surrounding pixels according to the diffusion filter. In this error distribution process, the quantization error Q (x, y) is multiplied by the value of the diffusion filter corresponding to the distribution destination coordinates of the surrounding pixels, and the cumulative error E (x, y) corresponding to each of the surrounding pixels is calculated. Update the value. In this manner, in this embodiment, the CPU of the image processing device 14 functions as a quantization value acquisition unit that acquires quantization values and quantization error values.

そして、S416において、CPUは、量子化を実行した画素が原画像の最終の画素であるか否かを判定する。S416において、最終画素であると判定されると、この量子化処理を終了する。また、S416において、最終画素ではないと判定されると、S402の画素選択処理に戻り、次の画素を選択し、以降の処理を実行する。なお、量子化実行処理および誤差分配処理の詳細については、後述する。 Then, in S416, the CPU determines whether the quantized pixel is the final pixel of the original image. In S416, if it is determined that the pixel is the final pixel, this quantization process ends. If it is determined in S416 that the pixel is not the final pixel, the process returns to pixel selection processing in S402, selects the next pixel, and executes subsequent processing. Note that details of the quantization execution process and the error distribution process will be described later.

<画素選択処理>
図5は、画素選択処理で選択される画素の順番の一例を示す図である。S402の画素選択処理では、例えば、図5のように、画素のラインを順次選択し、選択したライン中の画素を所定の処理方向に沿って、順次選択する。処理方向については、隣接するラインごとに切り替える。例えば、奇数ラインでは一方側から他方側へ、偶数ラインでは他方側から一方側へ、順次画素を選択する。このように、原画像の隣接するライン間で画素への量子化を実行する順番が逆方向となる双方向処理で量子化の処理を実行する場合、誤差の拡散方向が一定ではなくなるため、ドットをより適切に分散させることができる。この結果、例えば、原画像の隣接するライン間で画素への量子化の処理の順番が一方向のみとなる単方向処理で量子化の処理が実行される場合と比較して、ドット遅延やワームノイズの発生などを抑制することができるようになる。
<Pixel selection process>
FIG. 5 is a diagram illustrating an example of the order of pixels selected in the pixel selection process. In the pixel selection process of S402, for example, as shown in FIG. 5, pixel lines are sequentially selected, and pixels in the selected lines are sequentially selected along a predetermined processing direction. The processing direction is switched for each adjacent line. For example, pixels are sequentially selected from one side to the other on odd lines and from the other side to one side on even lines. In this way, when performing quantization processing in a bidirectional manner in which the order of quantization into pixels is reversed between adjacent lines of the original image, the direction of error diffusion is not constant, so dots can be dispersed more appropriately. As a result, for example, compared to the case where quantization processing is performed in unidirectional processing, where the order of quantization processing for pixels is only in one direction between adjacent lines of the original image, dot delay and worm This makes it possible to suppress the generation of noise.

<使用率算出処理>
次に、図6乃至図8を参照しながら、S404において実行する使用率算出処理について説明する。図6は、誤差使用率Reおよびノイズ使用率Rnと、濃度値とを対応付けるグラフおよび計算式の一例を示す図である。図7は、誤差使用率Reを算出する第1算出処理の詳細な処理ルーチンを示すフローチャートである。また、図8は、ノイズ使用率Rnを算出する第2算出処理の詳細な処理ルーチンを示すフローチャートである。図7および図8のフローチャートで示される一連の処理は、CPUがROMに記憶されているプログラムコードをRAMに展開して実行されることにより行われる。あるいはまた、図7および図8におけるステップの一部または全部の機能をASICまたは電気回路などのハードウェアで実行してもよい。
<Usage rate calculation process>
Next, the usage rate calculation process executed in S404 will be described with reference to FIGS. 6 to 8. FIG. 6 is a diagram showing an example of a graph and a calculation formula that associate the error usage rate Re and the noise usage rate Rn with density values. FIG. 7 is a flowchart showing a detailed processing routine of the first calculation process for calculating the error usage rate Re. Further, FIG. 8 is a flowchart showing a detailed processing routine of the second calculation process for calculating the noise usage rate Rn. The series of processes shown in the flowcharts of FIGS. 7 and 8 are performed by the CPU loading the program code stored in the ROM into the RAM and executing it. Alternatively, the functionality of some or all of the steps in FIGS. 7 and 8 may be performed in hardware such as an ASIC or electrical circuit.

=使用率算出処理の概要=
誤差使用率Reおよびノイズ使用率Rnは、最小入力値MinInである0以上、かつ、最大入力値MaxIn以下の範囲の濃度値に対して連続的に変化する関数に基づいて算出される。最大入力値MaxInおよび最小入力値MinInは、例えば、入力値である濃度値が取り得る範囲の最大値および最小値である。また、この関数において、ハイライト部にある濃度範囲を示す基準として、以下の3つを用いる。
・第3ハイライト基準値の一例であるハイライト側誤差使用率最小濃度値Hes
・第1ハイライト基準値の一例であるハイライト側ノイズ使用率最大濃度値Hn
・第2ハイライト基準値の一例であるハイライト側誤差使用率最大濃度値He
= Overview of usage rate calculation process =
The error usage rate Re and the noise usage rate Rn are calculated based on a function that continuously changes with respect to density values in a range from 0, which is the minimum input value MinIn, to the maximum input value MaxIn. The maximum input value MaxIn and the minimum input value MinIn are, for example, the maximum and minimum values of the range that the density value that is the input value can take. Furthermore, in this function, the following three criteria are used to indicate the density range in the highlighted portion.
・Highlight side error usage rate minimum density value Hes, which is an example of the third highlight reference value
・Highlight side noise usage rate maximum density value Hn, which is an example of the first highlight reference value
・Highlight side error usage rate maximum density value He, which is an example of the second highlight reference value

また、シャドウ部にある濃度範囲を示す基準として、以下の3つを用いる。
・第1シャドウ基準値の一例であるシャドウ側誤差使用率最大濃度値Se
・第2シャドウ基準値の一例であるシャドウ側ノイズ使用率最大濃度値Sn
・第3シャドウ基準値の一例であるシャドウ側誤差使用率最小濃度値Ses
さらに、中間調部の中央において初期閾値Thを挟む濃度範囲を示す基準として、ハイライト側ノイズ使用率0%濃度値Hnz、シャドウ側ノイズ使用率0%濃度値Snz、第1中間調基準値C1、および第2中間調基準値C2を用いる。
Furthermore, the following three criteria are used to indicate the density range in the shadow portion.
・Shadow side error usage rate maximum density value Se, which is an example of the first shadow reference value
・Shadow side noise usage rate maximum density value Sn, which is an example of the second shadow reference value
・Shadow side error usage rate minimum density value Ses, which is an example of the third shadow reference value
Further, as standards indicating the density range sandwiching the initial threshold Th at the center of the halftone part, a highlight side noise usage rate 0% density value Hnz, a shadow side noise usage rate 0% density value Snz, and a first halftone reference value C1 are used. , and the second halftone reference value C2 are used.

また、これらのパラメータは、少なくとも、Hes≦Hn<He<Se<Sn≦Ses、およびHn<Hnz<Snz<Snとなるように設定される。また、本実施形態において、これらのパラメータは、グラフに示された大小関係で、0(MinIn)<Hes≦Hn<He<C1<Hnz<Th<Snz<C2<Se<Sn≦Ses<MaxInとなるように設定される。 Further, these parameters are set so that at least Hes≦Hn<He<Se<Sn≦Ses and Hn<Hnz<Snz<Sn. In addition, in this embodiment, these parameters have the magnitude relationship shown in the graph as 0(MinIn)<Hes≦Hn<He<C1<Hnz<Th<Snz<C2<Se<Sn≦Ses<MaxIn. It is set so that

そして、図6に示す計算式に基づいて、誤差使用率Reおよびノイズ使用率Rnを取得することとなる。なお、図6に示す計算式により算出されるノイズ使用率Rnが、所定の最低ノイズ使用率RnMinより小さくなる場合には、ノイズ使用率Rnは、最低ノイズ使用率RnMinに設定される。これにより、ノイズ使用率Rnは、画素の濃度値がいずれの場合にも、最低ノイズ使用率RnMax以上の値となる。なお、誤差使用率Reおよびノイズ使用率Rnは、0~100%(値0~1)の範囲内の値に設定される。図6に示した計算式において、100%以上となる場合には100%に設定され、0%以下となる場合には0%に設定される。 Then, based on the calculation formula shown in FIG. 6, the error usage rate Re and the noise usage rate Rn are obtained. Note that if the noise usage rate Rn calculated by the formula shown in FIG. 6 is smaller than the predetermined minimum noise usage rate RnMin, the noise usage rate Rn is set to the minimum noise usage rate RnMin. As a result, the noise usage rate Rn becomes a value equal to or higher than the minimum noise usage rate RnMax regardless of the density value of the pixel. Note that the error usage rate Re and the noise usage rate Rn are set to values within the range of 0 to 100% (values of 0 to 1). In the calculation formula shown in FIG. 6, if it is 100% or more, it is set to 100%, and if it is 0% or less, it is set to 0%.

また、最低ノイズ使用率RnMinは、例えば、パラメータ設定時の調整時などに、0より大きな値に予め設定される。最低ノイズ使用率RnMinは、例えば、0.1(10%)以上の値とすることが考えられる。最低ノイズ使用率RnMinは、例えば、0.1~0.2(10~20%)とすることが好ましい。また、図6のグラフから分かるように、入力値Inが第1中間調基準値C1または第2中間調基準値C2と等しい場合には、計算式で算出されるノイズ使用率Rnは、最低ノイズ使用率RnMinと等しくなる。 Further, the minimum noise usage rate RnMin is preset to a value larger than 0, for example, during adjustment when setting parameters. The minimum noise usage rate RnMin may be, for example, a value of 0.1 (10%) or more. The minimum noise usage rate RnMin is preferably set to, for example, 0.1 to 0.2 (10 to 20%). Furthermore, as can be seen from the graph in FIG. 6, when the input value In is equal to the first halftone reference value C1 or the second halftone reference value C2, the noise usage rate Rn calculated by the calculation formula is equal to the lowest noise It becomes equal to the usage rate RnMin.

以上の方法により、例えば、入力値Inがハイライト側誤差使用率最大濃度値He以上、かつ、シャドウ側誤差使用率最大濃度値Se以下の場合、誤差使用率Reは、1(100%)に設定される。また、例えば、入力値Inがハイライト側誤差使用率最小濃度値Hes以下の場合、誤差使用率Reは0に設定される。さらに、入力値Inが、ハイライト側誤差使用率最小濃度値Hes以上、かつ、ハイライト側誤差使用率最大濃度値He以下の場合、誤差使用率Reは、(In-Hes)/(He-Hes)で計算される値に設定される。これにより、例えば、入力値Inがハイライト側誤差使用率最大濃度値He以下の場合、誤差使用率Reは、0以上、1(100%)以下の値であり、ハイライト側誤差使用率最大濃度値Heと入力値Inとの差に応じて1から漸減させた値に設定される。 By the above method, for example, if the input value In is greater than or equal to the highlight side error usage rate maximum density value He and is less than the shadow side error usage rate maximum density value Se, the error usage rate Re becomes 1 (100%). Set. Further, for example, when the input value In is less than or equal to the highlight side error usage rate minimum density value Hes, the error usage rate Re is set to 0. Furthermore, when the input value In is greater than or equal to the highlight side error usage rate minimum density value Hes and less than the highlight side error usage rate maximum density value He, the error usage rate Re is (In-Hes)/(He- Hes). As a result, for example, when the input value In is less than or equal to the highlight side error usage rate maximum density value He, the error usage rate Re is a value between 0 and 1 (100%), and the highlight side error usage rate is the maximum. It is set to a value that is gradually decreased from 1 according to the difference between the density value He and the input value In.

また、例えば、入力値Inがシャドウ側誤差使用率最大濃度値Se以上、かつ、シャドウ側誤差使用率最小濃度値Ses以下の場合、誤差使用率Reは、(Ses-In)/(Ses-Se)で計算される値に設定される。さらに、入力値Inがシャドウ側誤差使用率最小濃度値Ses以上の場合、誤差使用率Reは0に設定される。これにより、例えば、入力値Inが、シャドウ側誤差使用率最大濃度値Se以上の場合、誤差使用率Reは、0以上、1(100%)以下の値であり、入力値Inとシャドウ側誤差使用率最大濃度値Seとの差に応じて1から漸減させた値に設定される。 For example, when the input value In is greater than or equal to the shadow side error usage rate maximum density value Se and less than the shadow side error usage rate minimum density value Ses, the error usage rate Re is (Ses-In)/(Ses-Se ) is set to the value calculated by Further, when the input value In is equal to or greater than the shadow side error usage rate minimum density value Ses, the error usage rate Re is set to zero. As a result, for example, when the input value In is greater than or equal to the shadow side error usage rate maximum density value Se, the error usage rate Re is a value between 0 and 1 (100%), and the input value In and the shadow side error The usage rate is set to a value that is gradually decreased from 1 according to the difference from the maximum density value Se.

この場合、ハイライト部から中間調部にかけての誤差使用率Reは、入力値Inに対し、例えば、ハイライト側誤差使用率最小濃度値Hesから徐々に増加し、ハイライト側誤差使用率最大濃度値Heにおいて最大値となる。また、中間調部からシャドウ部にかけての誤差使用率Reは、入力値Inに対し、シャドウ側誤差使用率最大濃度値Seから徐々に減少し、シャドウ側誤差使用率最小濃度値Sesにおいて最小値となる。 In this case, the error usage rate Re from the highlight part to the halftone part gradually increases with respect to the input value In, for example, from the highlight side error usage rate minimum density value Hes, and The maximum value is reached at the value He. In addition, the error usage rate Re from the halftone part to the shadow part gradually decreases from the shadow side error usage rate maximum density value Se with respect to the input value In, and reaches the minimum value at the shadow side error usage rate minimum density value Ses. Become.

これにより、例えば、入力値Inがハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の誤差使用率Reは、中間調部に相当する濃度値である場合の誤差使用率Reよりも小さな値に設定される。また、この場合、誤差使用率Reは、例えば、濃度範囲の両端では値が0(0%)であり、ディザ処理に特有のテクスチャが発生する濃度範囲であるテクスチャ発生部Hd、Sdの範囲において値1(100%)となるように変化する。このように構成すれば、例えば、誤差使用率Reを中間調で主に使用する構成を適切に実現できる。 As a result, for example, the error usage rate Re when the input value In is a density value corresponding to either a highlight part or a shadow part is lower than the error usage rate Re when the input value In is a density value corresponding to a halftone part. is also set to a small value. Further, in this case, the error usage rate Re is, for example, 0 (0%) at both ends of the density range, and in the range of texture generation parts Hd and Sd, which is the density range where a texture specific to dither processing occurs. It changes to a value of 1 (100%). With this configuration, for example, a configuration in which the error usage rate Re is mainly used for halftones can be appropriately realized.

また、例えば、入力値Inがハイライト側ノイズ使用率最大濃度値Hn以下の場合またはシャドウ側ノイズ使用率最大濃度値Sn以上の場合、ノイズ使用率Rnは、1(100%)に設定される。また、入力値Inが第1中間調基準値C1以上、かつ、第2中間調基準値C2以下の場合、ノイズ使用率Rnは、最低ノイズ使用率RnMinに設定される。さらに、例えば、入力値Inがハイライト側ノイズ使用率最大濃度値Hn以上、かつ、第1中間調基準値C1以下の場合、ノイズ使用率Rnは、最低ノイズ使用率RnMin以上、かつ、1(100%)以下の値となる。そして、入力値Inとハイライト側ノイズ使用率最大濃度値Hnとの差に応じて1から漸減させた値に設定される。さらにまた、例えば、入力値Inが第2中間調基準値C2以上、かつ、シャドウ側ノイズ使用率最大濃度値Sn以下の場合、ノイズ使用率Rnは、最低ノイズ使用率RnMin以上、かつ1(100%)以下の値となる。そして、入力値Inと第2中間調基準値C2との差に応じて最低ノイズ使用率RnMinから漸増させた値に設定される。 Further, for example, if the input value In is less than or equal to the maximum density value Hn of the noise usage rate on the highlight side or the maximum density value Sn of the noise usage rate on the shadow side, the noise usage rate Rn is set to 1 (100%). . Furthermore, when the input value In is greater than or equal to the first halftone reference value C1 and less than or equal to the second halftone reference value C2, the noise usage rate Rn is set to the lowest noise usage rate RnMin. Further, for example, when the input value In is greater than or equal to the highlight side noise usage rate maximum density value Hn and less than the first halftone reference value C1, the noise usage rate Rn is greater than or equal to the minimum noise usage rate RnMin and 1 ( 100%) or less. Then, it is set to a value that is gradually decreased from 1 according to the difference between the input value In and the highlight side noise usage rate maximum density value Hn. Furthermore, for example, when the input value In is greater than or equal to the second halftone reference value C2 and less than or equal to the shadow side noise usage rate maximum density value Sn, the noise usage rate Rn is greater than or equal to the minimum noise usage rate RnMin and 1 (100 %) below. Then, it is set to a value that is gradually increased from the lowest noise usage rate RnMin according to the difference between the input value In and the second halftone reference value C2.

これにより、例えば、入力値Inがハイライト部またはシャドウ部のいずれかに相当する濃度値である場合のノイズ使用率Rnは、中間調部に相当する濃度値である場合のノイズ使用率Rnよりも大きな値に設定される。また、この場合、ノイズ使用率Rnは、例えば、ハイライト部及びシャドウ部での値が1(100%)であり、中間調になるにつれて徐々に値が下がるように変化する。 As a result, for example, the noise usage rate Rn when the input value In is a density value corresponding to either a highlight part or a shadow part is lower than the noise usage rate Rn when the input value In is a density value corresponding to a halftone part. is also set to a large value. Further, in this case, the noise usage rate Rn has a value of 1 (100%) in the highlight portion and the shadow portion, for example, and changes so that the value gradually decreases as the gray level approaches.

このようにして、誤差使用率Reおよびノイズ使用率Rnを取得することにより、例えば、誤差拡散特性の影響が強いとドット遅延が発生しやすいハイライト部(明部)およびシャドウ部(暗部)において、ノイズ使用率Rnを高くし、誤差使用率Reを低くする。これにより、ハイライト部およびシャドウ部において、ドットを分散して配置できるディザ特性の影響が大きくなるため、ドット遅延の発生を抑制することができる。さらに、中間値よりも明るい(または暗い)第1画素値と、第1画素値よりも中間値に近い第2画素値があった場合、第1画素値に対する誤差使用率は、第2画素値に対する誤差使用率よりも低い。かつ、第1画素値に対するノイズ使用率は、第2画素値に対するノイズ使用率よりも高くなる画素の組が存在する。中間値とは、本実施形態のように入力値が0から255の範囲である場合には、その中間の値、例えば、128を中間値とする。即ち、本実施形態では、ノイズ使用率Rnは、中間値と異なる第1の画素値のときには、第1の画素値よりも中間値に近い第2の画素値のときよりも、その値が高くなり、誤差使用率Reは、第1の画素値のときには、第2の画素値のときよりも、その値が低くなる。 In this way, by obtaining the error usage rate Re and the noise usage rate Rn, it is possible to obtain the , the noise usage rate Rn is increased and the error usage rate Re is decreased. This increases the influence of the dithering characteristic that allows dots to be arranged in a dispersed manner in the highlight and shadow areas, making it possible to suppress the occurrence of dot delay. Furthermore, if there is a first pixel value that is brighter (or darker) than the intermediate value and a second pixel value that is closer to the intermediate value than the first pixel value, the error usage rate for the first pixel value is the second pixel value. lower than the error usage rate for . In addition, there is a set of pixels in which the noise usage rate for the first pixel value is higher than the noise usage rate for the second pixel value. When the input value is in the range of 0 to 255 as in this embodiment, the intermediate value is defined as the intermediate value, for example, 128. That is, in this embodiment, the noise usage rate Rn is higher when the first pixel value is different from the intermediate value than when the second pixel value is closer to the intermediate value than the first pixel value. Thus, the error usage rate Re is lower at the first pixel value than at the second pixel value.

また、誤差拡散特性の影響を大きくして中間調部での量子化の処理を行うことにより、例えば、より自然な擬似階調を得ることができる。また、例えば、テクスチャ発生部となる濃度範囲において、ノイズ使用率Rnを低く、誤差使用率Reを高くすることにより、ドットの配置に変化を与えることができる。また、これにより、テクスチャの発生を抑制することができる。さらに、最低ノイズ使用率RnMinを設け、ノイズ使用率Rnが0にならないようにすることにより、例えば、中間調部において、僅かにディザ特性の影響を与えつつ、誤差拡散特性の影響を大きくできる。これにより、パタンノイズの発生を抑制することができる。 Further, by increasing the influence of the error diffusion characteristic and performing quantization processing in the halftone portion, for example, more natural pseudo gradations can be obtained. Further, for example, by lowering the noise usage rate Rn and increasing the error usage rate Re in the density range where the texture occurs, it is possible to change the arrangement of dots. Moreover, this makes it possible to suppress the occurrence of texture. Further, by setting a minimum noise usage rate RnMin and preventing the noise usage rate Rn from becoming 0, for example, in the halftone part, the influence of the error diffusion characteristic can be increased while giving a slight influence of the dither characteristic. Thereby, generation of pattern noise can be suppressed.

また、誤差使用率Reおよびノイズ使用率Rnを算出する計算式に従ってディザ特性の影響の大きさと、誤差拡散特性の影響の大きさとを徐々に変化させる。その結果、ディザ特性が支配的な領域と、誤差拡散特性が支配的な領域との切り替え部分で境界線が発生することを抑制することができる。これにより、量子化の処理の方法の切り替えを滑らかに行うことができる。従って、本実施形態によれば、例えば、画素の濃度値に応じて、誤差使用率Reおよびノイズ使用率Rnのそれぞれを適切に設定できる。これにより、誤差拡散処理およびディザ処理のそれぞれの処理が得意とする部分をより適切に活かした量子化の処理を実行することができる。 In addition, the magnitude of the influence of the dither characteristic and the magnitude of the influence of the error diffusion characteristic are gradually changed according to calculation formulas for calculating the error usage rate Re and the noise usage rate Rn. As a result, it is possible to suppress the occurrence of a boundary line at the switching portion between the region where the dither characteristic is dominant and the region where the error diffusion characteristic is dominant. This allows smooth switching of the quantization processing method. Therefore, according to the present embodiment, each of the error usage rate Re and the noise usage rate Rn can be appropriately set depending on the density value of the pixel, for example. This makes it possible to perform quantization processing that more appropriately utilizes the strengths of error diffusion processing and dither processing.

=第1算出処理および第2算出処理=
ここで、誤差使用率Reおよびノイズ使用率Rnを算出する各処理の具体的な処理内容について説明する。S404では、第1算出処理および第2算出処理を実行して、量子化を実行する画素とその周辺の画素のそれぞれについて、濃度値に応じた誤差使用率Reとノイズ使用率Rnとを算出する。
=First calculation process and second calculation process=
Here, the specific processing contents of each process for calculating the error usage rate Re and the noise usage rate Rn will be explained. In S404, the first calculation process and the second calculation process are executed to calculate the error usage rate Re and the noise usage rate Rn according to the density value for each of the pixel to be quantized and the surrounding pixels. .

・誤差使用率Reを算出する第1算出処理
第1算出処理が開始されると、まず、S702において、CPUは、対象となる画素の濃度値である入力値Inがハイライト側誤差使用率最大濃度値He以上、かつ、シャドウ側誤差使用率最大濃度値Se以下の範囲にあるか否かを判定する。S702において、当該範囲にある、つまり、He≦In≦Seを満たすと判定されると、S704に進み、CPUは、誤差使用率Reを最大使用率である1(100%)に設定する。
- First calculation process for calculating the error usage rate Re When the first calculation process is started, first in S702, the CPU determines that the input value In, which is the density value of the target pixel, has the highest error usage rate on the highlight side. It is determined whether or not the density value He is greater than or equal to the shadow side error usage rate and less than or equal to the maximum density value Se. If it is determined in S702 that the error is within the range, that is, He≦In≦Se, the process proceeds to S704, and the CPU sets the error usage rate Re to 1 (100%), which is the maximum usage rate.

また、S702において、当該範囲にない、つまり、He≦In≦Seを満たさないと判定されると、S706に進む。S706では、CPUは、入力値Inについて、ハイライト側誤差使用率最小濃度値Hesよりも大きく、かつ、ハイライト側誤差使用率最大濃度値Heよりも小さい範囲にあるか否かを判定する。S706において、当該範囲にある、つまり、Hes<In<Heを満たすと判定されると、S708に進み、CPUは、誤差使用率Reを(In-Hes)/(He-Hes)で算出される値に設定する。 If it is determined in S702 that the value is not within the range, that is, He≦In≦Se, the process advances to S706. In S706, the CPU determines whether the input value In is within a range that is greater than the highlight side error usage rate minimum density value Hes and smaller than the highlight side error usage rate maximum density value He. In S706, if it is determined that Hes<In<He is within the range, that is, Hes<In<He, the CPU proceeds to S708 and calculates the error usage rate Re by (In-Hes)/(He-Hes). Set to value.

また、S706において、当該範囲にない、つまり、Hes<In<Heを満たさないと判定されると、S710に進む。S710では、CPUは、入力値Inについて、シャドウ側誤差使用率最大濃度値Seよりも大きく、かつシャドウ側誤差使用率最小濃度値Sesよりも小さい範囲にあるか否かを判定する。S710において、当該範囲にある、つまり、Se<In<Sesを満たすと判定されると、S712に進み、CPUは、誤差使用率Reを(Ses-In)/(Ses-Se)で算出される値に設定する。 Further, if it is determined in S706 that it is not within the range, that is, Hes<In<He, the process advances to S710. In S710, the CPU determines whether the input value In is within a range that is greater than the shadow side error usage rate maximum density value Se and smaller than the shadow side error usage rate minimum density value Ses. If it is determined in S710 that it is within the range, that is, that Se<In<Ses is satisfied, the process proceeds to S712, and the CPU calculates the error usage rate Re by (Ses-In)/(Ses-Se). Set to value.

また、S710において、当該範囲にない、つまり、Se<In<Sesを満たさないと判定されると、S714に進み、CPUは、誤差使用率Reを0(0%)に設定する。そして、S704、S708、S712、またはS714で誤差使用率Reが設定されると、S716に進み、CPUは、設定された誤差使用率Reを、入力値Inに対応する、つまり、入力値Inを濃度値とする画素の誤差使用率Reとして採用する。 Further, if it is determined in S710 that it is not within the range, that is, Se<In<Ses is not satisfied, the process proceeds to S714, and the CPU sets the error usage rate Re to 0 (0%). Then, when the error usage rate Re is set in S704, S708, S712, or S714, the process proceeds to S716, and the CPU sets the set error usage rate Re to the input value In. This is adopted as the error usage rate Re of the pixel to be used as the density value.

・ノイズ使用率Rnを算出する第2算出処理
第2算出処理が開始されると、まず、S802では、CPUは、対象となる画素の濃度値である入力値Inがハイライト側ノイズ使用率最大濃度値Hnより大きく、かつ、ハイライト側ノイズ使用率0%濃度値Hnzより小さい範囲にあるか否かを判定する。S802において、当該範囲にある、つまり、Hn<In<Hnzを満たすと判定されると、S804に進み、CPUは、ノイズ使用率Rnを(Hnz-In)/(Hnz-Hn)で算出される値に設定する。
- Second calculation process for calculating the noise usage rate Rn When the second calculation process is started, first in S802, the CPU determines that the input value In, which is the density value of the target pixel, has the highest noise usage rate on the highlight side. It is determined whether the density value Hnz is greater than the density value Hn and smaller than the highlight side noise usage rate 0% density value Hnz. If it is determined in S802 that it is within the range, that is, that Hn<In<Hnz is satisfied, the process proceeds to S804, and the CPU calculates the noise usage rate Rn by (Hnz-In)/(Hnz-Hn). Set to value.

また、S802において、当該範囲にない、つまり、Hn<In<Hnzを満たさないと判定されると、S806に進む。S806では、CPUは、入力値Inがシャドウ側ノイズ使用率0%濃度値Snzより大きく、かつ、シャドウ側ノイズ使用率最大濃度値Snより小さい範囲にあるか否かを判定する。S806において、当該範囲にある、つまり、Snz<In<Snを満たすと判定されると、S808に進み、CPUは、ノイズ使用率Rnを(In-Snz)/(Sn-Snz)で算出される値に設定する。 Further, if it is determined in S802 that it is not within the range, that is, that Hn<In<Hnz is not satisfied, the process advances to S806. In S806, the CPU determines whether the input value In is in a range that is greater than the shadow side noise usage rate 0% density value Snz and smaller than the shadow side noise usage rate maximum density value Sn. If it is determined in S806 that it is within the range, that is, that Snz<In<Sn is satisfied, the process proceeds to S808, and the CPU calculates the noise usage rate Rn by (In-Snz)/(Sn-Snz). Set to value.

S804またはS808においてノイズ使用率Rnが設定されると、S810に進み、CPUは、設定されたノイズ使用率Rnが、最小の使用率である最低ノイズ使用率RnMinよりも大きいか否かを判定する。S810において、Rn>RnMinを満たすと判定されると、後述するS816に進む。また、S810において、Rn>RnMinを満たさないと判定されると、S812に進み、CPUは、ノイズ使用率Rnを最低ノイズ使用率RnMinに変更し、その後、S816に進む。 When the noise usage rate Rn is set in S804 or S808, the process proceeds to S810, and the CPU determines whether the set noise usage rate Rn is larger than the minimum noise usage rate RnMin, which is the minimum usage rate. . If it is determined in S810 that Rn>RnMin is satisfied, the process advances to S816, which will be described later. If it is determined in S810 that Rn>RnMin is not satisfied, the CPU proceeds to S812, changes the noise usage rate Rn to the lowest noise usage rate RnMin, and then proceeds to S816.

また、S806において、上記範囲にない、つまり、Snz<In<Snを満たさないと判定されると、S814に進み、CPUは、ノイズ使用率Rnを最大の使用率である1(100%)に設定し、その後、S816に進む。S816では、CPUは、設定されたノイズ使用率Rnを、入力値Inに対応する、つまり、入力値Inを濃度値とする画素のノイズ使用率Rnとして採用する。 If it is determined in S806 that it is not within the above range, that is, that Snz<In<Sn is not satisfied, the process proceeds to S814, and the CPU sets the noise usage rate Rn to 1 (100%), which is the maximum usage rate. After setting, the process advances to S816. In S816, the CPU adopts the set noise usage rate Rn as the noise usage rate Rn of the pixel that corresponds to the input value In, that is, the density value is the input value In.

<量子化実行処理>
次に、S412で実行する量子化実行処理について説明する。図9は、量子化実行処理の詳細な処理ルーチンを示すフローチャートである。図9のフローチャートで示される一連の処理は、CPUがROMに記憶されているプログラムコードをRAMに展開して実行されることにより行われる。あるいはまた、図9におけるステップの一部または全部の機能をASICまたは電気回路などのハードウェアで実行してもよい。
<Quantization execution process>
Next, the quantization execution processing executed in S412 will be explained. FIG. 9 is a flowchart showing a detailed processing routine of the quantization execution process. The series of processes shown in the flowchart of FIG. 9 is performed by the CPU loading the program code stored in the ROM into the RAM and executing it. Alternatively, the functionality of some or all of the steps in FIG. 9 may be performed in hardware, such as an ASIC or electrical circuit.

量子化実行処理が開始されると、まず、S902において、CPUは、入力値Inと最大入力値MaxInとが一致するか否かを判定する。S902において、入力値Inと最大入力値MaxInとが一致すると判定されると、S904に進み、CPUは、量子化の結果を示す出力値(量子化値)を1に設定する。なお、S904で出力値として設定する値「1」については、入力値Inが閾値Thよりも大きい場合に出力されるべき値の一例である。また、S904では、CPUは、出力値の設定とともに、S414で実行される誤差分配処理で使用する誤差値を、誤差補正済入力値In´と最大入力値MaxInとの差であるIn´-MaxInに設定する。 When the quantization execution process is started, first, in S902, the CPU determines whether the input value In and the maximum input value MaxIn match. If it is determined in S902 that the input value In and the maximum input value MaxIn match, the process proceeds to S904, and the CPU sets an output value (quantized value) indicating the quantization result to 1. Note that the value "1" set as the output value in S904 is an example of a value that should be output when the input value In is larger than the threshold Th. In S904, the CPU sets the output value and also sets the error value used in the error distribution process executed in S414 to In'-MaxIn, which is the difference between the error-corrected input value In' and the maximum input value MaxIn. Set to .

また、S902において、入力値Inと最大入力値MaxInとが一致しないと判定されると、S906に進み、CPUは、入力値Inと最小入力値MinInとが一致するか否かを判定する。S906において、入力値Inと最小入力値MinInとが一致すると判定されると、S908に進み、CPUは、出力値を0に設定する。なお、S908で出力値として設定する値「0」については、入力値Inが閾値Thよりも小さい場合に出力されるべき値の一例である。また、S908では、CPUは、出力値の設定とともに、誤差値を、誤差補正済入力値In´に設定する。 If it is determined in S902 that the input value In and the maximum input value MaxIn do not match, the process proceeds to S906, and the CPU determines whether the input value In and the minimum input value MinIn match. If it is determined in S906 that the input value In and the minimum input value MinIn match, the process proceeds to S908, and the CPU sets the output value to 0. Note that the value "0" set as the output value in S908 is an example of a value that should be output when the input value In is smaller than the threshold Th. Further, in S908, the CPU sets the output value and also sets the error value to the error-corrected input value In'.

また、S906において、入力値Inと最小入力値MinInとが一致しないと判定されると、S910に進み、CPUは、誤差補正入力値In´がノイズ補正済閾値Th´よりも大きいか否かを判定する。S910において、誤差補正入力値In´がノイズ補正済閾値Th´よりも大きいと判定されると、S912に進み、CPUは、出力値を1に設定するとともに、誤差値をIn´-MaxInに設定する。また、S910において、誤差補正入力値In´がノイズ補正済閾値Th´以下であると判定されると、S914に進み、CPUは、出力値を0に設定するとともに、誤差値をIn´に設定する。そして、S904、S908、S912、またはS914で出力値(量子化値)および誤差値が設定されると、S916に進み、CPUは、設定された出力値および誤差値を取得し、量子化実行処理を終了する。 Further, if it is determined in S906 that the input value In and the minimum input value MinIn do not match, the process proceeds to S910, and the CPU determines whether the error-corrected input value In' is larger than the noise-corrected threshold Th'. judge. If it is determined in S910 that the error correction input value In' is larger than the noise corrected threshold Th', the process proceeds to S912, where the CPU sets the output value to 1 and sets the error value to In'-MaxIn. do. If it is determined in S910 that the error correction input value In' is equal to or less than the noise corrected threshold Th', the process proceeds to S914, where the CPU sets the output value to 0 and sets the error value to In'. do. Then, when the output value (quantized value) and error value are set in S904, S908, S912, or S914, the process proceeds to S916, where the CPU acquires the set output value and error value, and performs quantization execution processing. end.

<適用使用率決定処理>
次に、S406で実行する適用使用率決定処理について説明する。図10は、図3(a)の3×3画素の領域におけるノイズ使用率Rnおよび誤差使用率Reを示す図である。適用ノイズ使用率Rnaおよび適用誤差使用率Reaは、量子化を行う画素と、当該画素の周辺の画素を含む対象領域のそれぞれの画素の濃度値に応じた濃度使用率Rnおよび誤差使用率Reから算出される。本実施形態では、対象領域を、量子化を行う画素、および当該画素の周囲1画素を含む3×3画素とした。このため、図3(a)のように、量子化を行う画素を画素304としたときの対象領域は、領域306となる。
<Applicable usage rate determination process>
Next, the applied usage rate determination process executed in S406 will be described. FIG. 10 is a diagram showing the noise usage rate Rn and the error usage rate Re in the 3×3 pixel area of FIG. 3(a). The applied noise usage rate Rna and the applied error usage rate Rea are calculated from the density usage rate Rn and error usage rate Re according to the density value of each pixel in the target area including the pixel to be quantized and pixels around the pixel. Calculated. In this embodiment, the target area is 3×3 pixels including the pixel to be quantized and one pixel around the pixel. Therefore, as shown in FIG. 3A, when the pixel to be quantized is the pixel 304, the target area is the area 306.

従って、画素304における適用ノイズ使用率Rnaおよび適用誤差使用率Reaを決定するためには、領域306におけるすべての画素のノイズ使用率Rnおよび誤差使用率Reを用いることとなる。なお、各画素のノイズ使用率Rnおよび誤差使用率Reは、使用率算出処理で算出される。領域306における各画素のノイズ使用率Rnおよび誤差使用率Reは、図10のようになる。具体的には、画素304では、ノイズ使用率Rnは0%、誤差使用率Reは100%となっている。また、画素304の周囲の各画素では、ノイズ使用率Rnは100%、誤差使用率は0%となっている。 Therefore, in order to determine the applied noise usage rate Rna and the applied error usage rate Rea in the pixel 304, the noise usage rate Rn and the error usage rate Re of all the pixels in the region 306 are used. Note that the noise usage rate Rn and error usage rate Re of each pixel are calculated by usage rate calculation processing. The noise usage rate Rn and error usage rate Re of each pixel in the region 306 are as shown in FIG. Specifically, in the pixel 304, the noise usage rate Rn is 0% and the error usage rate Re is 100%. Further, in each pixel surrounding the pixel 304, the noise usage rate Rn is 100% and the error usage rate is 0%.

本実施形態では、各画素のノイズ使用率Rnおよび誤差使用率Reそれぞれの平均から適用ノイズ使用率Rnおよび適用誤差使用率Reを算出することとなる。具体的には、適用ノイズ使用率Rnaおよび適用誤差使用率Reaはそれぞれ、例えば、図1(b)に示すように、対象領域の各画素のノイズ使用率Rnおよび誤差使用率Reに1/9を乗算し、その値を足し合わせた値とする。なお、図1(b)では、フィルタ演算と同様であるため、Rnフィルタ104、Reフィルタ106と記載している。即ち、画素304の適用ノイズ使用率Rnaは、(100×1/9)×8+0×1/9=89%(本実施形態では小数点以下を四捨五入)となる。また、画素304の適用誤差使用率Reaは、(0×1/9)×8+100×1/9=11%(本実施形態では小数点以下を四捨五入)となる。 In this embodiment, the applied noise usage rate Rn and the applied error usage rate Re are calculated from the respective averages of the noise usage rate Rn and the error usage rate Re of each pixel. Specifically, the applied noise usage rate Rna and the applied error usage rate Rea are, for example, 1/9 the noise usage rate Rn and error usage rate Re of each pixel in the target area, as shown in FIG. 1(b). Multiply the values and add the resulting values. Note that in FIG. 1(b), the Rn filter 104 and the Re filter 106 are written because they are similar to the filter calculations. That is, the applied noise usage rate Rna of the pixel 304 is (100×1/9)×8+0×1/9=89% (in this embodiment, the decimal point is rounded off). Further, the applied error usage rate Rea of the pixel 304 is (0×1/9)×8+100×1/9=11% (in this embodiment, the fraction below the decimal point is rounded).

画素304に対して量子化を行う際には、公知技術であれば、ノイズ使用率Rn0%、誤差使用率Re100%が適用されるが、本実施形態では、適用ノイズ使用率Rn89%、適用誤差使用率11%が適用される。このため、画素304のディザマトリクスの値が-64、初期閾値が128とすると、公知技術では、ノイズ補正済閾値が128(=-64×0.0+128)となる。その結果、入力値125(画素304の濃度値)と閾値128とが比較され、入力値が閾値未満であるため量子化の結果は0となる(図3(b)参照)。一方、本実施形態では、ノイズ補正済閾値が71(-64×0.89+128)となる。この結果、入力値125と閾値71とが比較され、入力値が閾値以上であるため量子化の結果は255となる(図3(c)参照)。この結果、入力画像が図2(a)および図3(a)のときには、公知技術では図2(b)および図3(b)のようになり、本実施形態による技術では図2(c)および図3(c)のようになる。つまり、本実施形態による技術では、公知技術に比べて領域の濃度を保持した量子化の結果を得ることができるようになる。 When performing quantization on the pixel 304, if it is a known technique, a noise usage rate Rn of 0% and an error usage rate Re of 100% are applied, but in this embodiment, an applied noise usage rate Rn of 89% and an applied error usage rate of 89% are applied. A usage rate of 11% applies. Therefore, if the value of the dither matrix of the pixel 304 is -64 and the initial threshold is 128, then in the known technique, the noise-corrected threshold is 128 (=-64×0.0+128). As a result, the input value 125 (density value of the pixel 304) is compared with the threshold value 128, and since the input value is less than the threshold value, the quantization result is 0 (see FIG. 3(b)). On the other hand, in this embodiment, the noise-corrected threshold is 71 (-64×0.89+128). As a result, the input value 125 and the threshold value 71 are compared, and since the input value is greater than or equal to the threshold value, the quantization result is 255 (see FIG. 3(c)). As a result, when the input images are shown in FIGS. 2(a) and 3(a), the known technology results in the input images as shown in FIG. 2(b) and FIG. and as shown in FIG. 3(c). In other words, the technique according to the present embodiment makes it possible to obtain a quantization result that maintains the density of the region compared to the known technique.

なお、適用ノイズ使用率Rnaおよび適用誤差使用率Reaとしては、量子化を行う画素およびその周辺の画素(つまり、対象領域の各画素)のノイズ使用率Rnおよび誤差使用率Reの平均値を用いるようにした。しかしながら、適用ノイズ使用率Rnaおよび適用誤差使用率Reaの決定方法としては、これに限定されるものではない。即ち、量子化を行う画素とその周辺の画素とを含む対象領域の濃度に対応する適用ノイズ使用率Rnaおよび適用誤差使用率Reaを求めることができれば、どのような方法であってもよい。例えば、対象領域の各画素のノイズ使用率Rnを順に並べたときの中央値を適用ノイズ使用率Rnaとしてもよいし、当該ノイズ使用率Rnの中で最も頻度が高い、つまり、最も多く存在する値を適用ノイズ使用率Rnaとしてもよい。同様に、対象領域の各画素の誤差使用率Reを順に並べたときの中央値を適用誤差使用率Reaとしてもよいし、当該誤差使用率Reの中で最も頻度が高い値を適用誤差使用率Reaとしてもよい。また、図1(b)のように、領域サイズのフィルタを個別に作成し、当該フィルタを用いるようにしてもよい。 Note that as the applied noise usage rate Rna and the applied error usage rate Rea, the average value of the noise usage rate Rn and the error usage rate Re of the pixel to be quantized and its surrounding pixels (that is, each pixel in the target area) is used. I did it like that. However, the method for determining the applied noise usage rate Rna and the applied error usage rate Rea is not limited to this. That is, any method may be used as long as it is possible to obtain the applied noise usage rate Rna and the applied error usage rate Rea corresponding to the density of the target area including the pixel to be quantized and its surrounding pixels. For example, the applied noise usage rate Rna may be the median value when the noise usage rates Rn of each pixel in the target area are arranged in order, or the applied noise usage rate Rna may be the one that has the highest frequency among the noise usage rates Rn, that is, the one that exists the most. The value may be used as the applied noise usage rate Rna. Similarly, the median value when the error usage rates Re of each pixel in the target area are arranged in order may be used as the applied error usage rate Re, or the value with the highest frequency among the error usage rates Re may be used as the applied error usage rate. It may also be Rea. Alternatively, as shown in FIG. 1(b), filters for different area sizes may be created individually and used.

<誤差分配処理>
次に、S414で実行する誤差分配処理について説明する。図11は、誤差分配処理を説明する図であり、(a)は拡散フィルタの一例を示す図であり、(b)は誤差の分配の手法の一例を示す図である。本実施形態において、拡散フィルタは、例えば、Jarvis,Judice&Ninkeのマトリクスである。拡散フィルタは、双方向処理の各方向において異なるものが用いられる。図11(a)では、画像の一方側から他方側に向かう主走査方向で用いる拡散フィルタと、画像の他方側から一方側に向かう副走査方向で用いる拡散フィルタとを示している。また、拡散フィルタ中の記号*の位置は、入力値Inの座標[0,0](原点)であり、拡散フィルタの各マトリクス内の数値は、周辺の画素に誤差を分配する際の分配比率である。
<Error distribution processing>
Next, the error distribution processing executed in S414 will be explained. FIG. 11 is a diagram illustrating error distribution processing, in which (a) is a diagram illustrating an example of a diffusion filter, and (b) is a diagram illustrating an example of an error distribution method. In this embodiment, the diffusion filter is, for example, a Jarvis, Judice & Ninke matrix. Different diffusion filters are used in each direction of bidirectional processing. FIG. 11A shows a diffusion filter used in the main scanning direction from one side of the image to the other side, and a diffusion filter used in the sub-scanning direction from the other side of the image to one side. Also, the position of the symbol * in the diffusion filter is the coordinates [0, 0] (origin) of the input value In, and the numerical value in each matrix of the diffusion filter is the distribution ratio when distributing the error to surrounding pixels. It is.

図11(b)のように、周辺の画素に誤差を分配する処理において、誤差の分配先の座標が画像幅から外れている場合、分配先の座標は、次のラインの先頭の座標に変更される。また、反対側の座標が範囲外となっている場合も、同様の処理を行う。さらに、分配先のラインが存在しない場合には、誤差を分配しない。さらにまた、分配先の座標が処理済みの画素である場合も、誤差を分配しない。 As shown in Figure 11(b), in the process of distributing errors to surrounding pixels, if the coordinates of the error distribution destination are outside the image width, the distribution destination coordinates are changed to the coordinates of the beginning of the next line. be done. Furthermore, when the coordinates on the opposite side are outside the range, similar processing is performed. Furthermore, if the line to which the distribution is to be made does not exist, the error is not distributed. Furthermore, even if the coordinates of the distribution destination are already processed pixels, the error is not distributed.

図12は、誤差分配処理の詳細な処理内容を示すフローチャートである。図12のフローチャートで示される一連の処理は、CPUがROMに記憶されているプログラムコードをRAMに展開して実行されることにより行われる。あるいはまた、図12におけるステップの一部または全部の機能をASICまたは電気回路などのハードウェアで実行してもよい。 FIG. 12 is a flowchart showing detailed processing contents of error distribution processing. The series of processes shown in the flowchart of FIG. 12 is performed by the CPU loading the program code stored in the ROM into the RAM and executing the program code. Alternatively, the functionality of some or all of the steps in FIG. 12 may be performed in hardware, such as an ASIC or electrical circuit.

誤差分配処理が開始されると、CPUは、図12のフローチャート中のS1202とS1226との間で、Y座標(画像の高さ方向の座標)を順次変化させるループを実行する。このループでは、0から拡散高さ-1(拡散高さを示す値から1を減算した値)までの間で、Yの値を1ずつ増加させる。ここで、拡散高さ(拡散高さを示す値)は、例えば、拡散マトリクス高さで計算される高さとする。拡散マトリクス高さとは、拡散フィルタとして用いるマトリクスの行数である。従って、図11の拡散フィルタを用いるとすると、「0」から、拡散高さを示す値3から1を減算した値である「2」までの間で、Yの値を1ずつ増加させることとなる。 When the error distribution process is started, the CPU executes a loop in which the Y coordinate (coordinate in the height direction of the image) is sequentially changed between S1202 and S1226 in the flowchart of FIG. In this loop, the value of Y is increased by 1 between 0 and the diffusion height minus 1 (the value obtained by subtracting 1 from the value indicating the diffusion height). Here, the diffusion height (a value indicating the diffusion height) is, for example, a height calculated using the diffusion matrix height. The diffusion matrix height is the number of rows of a matrix used as a diffusion filter. Therefore, when using the diffusion filter shown in FIG. 11, the value of Y can be increased by 1 between "0" and "2", which is the value obtained by subtracting 1 from the value 3 indicating the diffusion height. Become.

また、S1204とS1224との間で、X座標(画像の幅方向の座標)を順次変化させるループを実行する。このループでは、-側の拡散幅を示す値から+側の拡散幅を示す値までの間で、Xの値を1ずつ増加させる。ここで、拡散幅を示す値は、例えば、(拡散マトリクス幅-1)/2で算出される値とする。拡散マトリクス幅とは、拡散フィルタとして用いるマトリクスの列数である。従って、図11の拡散フィルタを用いるときには、拡散マトリクス幅が5であるため、拡散幅を示す値は、(5-1)/2となり、「-2」から「+2」までの間で、Xを1ずつ増加させることとなる。 Furthermore, a loop is executed between S1204 and S1224 in which the X coordinate (coordinate in the width direction of the image) is sequentially changed. In this loop, the value of X is increased by 1 from the value indicating the diffusion width on the - side to the value indicating the diffusion width on the + side. Here, the value indicating the diffusion width is, for example, a value calculated by (diffusion matrix width - 1)/2. The diffusion matrix width is the number of columns of a matrix used as a diffusion filter. Therefore, when using the diffusion filter of FIG. 11, the diffusion matrix width is 5, so the value indicating the diffusion width is (5-1)/2, and the value of will be increased by 1.

そして、S1206において、CPUは、分配先の座標(X´、Y´)を設定するとともに、拡散フィルタに基づいて分配比率を設定する。つまり、入力画素(図11(b)中アスタリスクが位置する画素)の座標を(x、y)とすると、X´=x+Xとなる。なお、Xは、S1204で設定した値である。また、Y´=y+Yとなる。なお、Yは、S1202、S1220、S1222などで設定した値である。また、分配比率は、拡散フィルタにおける座標(X、Y)のマトリクスに対応付けられた値となる。 Then, in S1206, the CPU sets the coordinates (X', Y') of the distribution destination and also sets the distribution ratio based on the diffusion filter. That is, if the coordinates of the input pixel (the pixel where the asterisk is located in FIG. 11(b)) are (x, y), then X'=x+X. Note that X is the value set in S1204. Moreover, Y'=y+Y. Note that Y is the value set in S1202, S1220, S1222, etc. Furthermore, the distribution ratio is a value associated with the matrix of coordinates (X, Y) in the diffusion filter.

次に、S1208において、CPUは、分配比率が0よりも大きいか否かを判定する。S1208において、分配比率が0以下であると判定されると、誤差を分配することなく、S1204に戻る。また、S1208において、分配比率が0よりも大きいと判定されると、S1210に進み、CPUは、分配先の座標X´が画像幅より小さいか否かを判定する。 Next, in S1208, the CPU determines whether the distribution ratio is greater than zero. If it is determined in S1208 that the distribution ratio is 0 or less, the process returns to S1204 without distributing the error. If it is determined in S1208 that the distribution ratio is greater than 0, the process proceeds to S1210, and the CPU determines whether the coordinate X' of the distribution destination is smaller than the image width.

S1210において、分配先の座標X´が画像幅より小さいと判定されると、S1212に進み、CPUは、座標X´が0以上であるか否かを判定する。S1212において、座標X´が0以上であると判定されると、S1214に進み、CPUは、分配先の座標Y´が画像高さより小さいか否かを判定する。S1214において、分配先の座標Y´が画像高さより小さいと判定されると、S1216に進み、CPUは、分配誤差値(量子化誤差値)を、誤差値と分配比率との積に設定する。そして、S1218において、CPUは、累積誤差バッファに格納されている累積誤差に、設定した分配誤差値を加算し、累積誤差バッファに格納された累積誤差を更新する。これにより、発生した量子化誤差値に応じて累積誤差が更新される。 If it is determined in S1210 that the coordinate X' of the distribution destination is smaller than the image width, the process proceeds to S1212, and the CPU determines whether the coordinate X' is greater than or equal to 0. If it is determined in S1212 that the coordinate X' is greater than or equal to 0, the process proceeds to S1214, and the CPU determines whether the coordinate Y' of the distribution destination is smaller than the image height. If it is determined in S1214 that the coordinate Y' of the distribution destination is smaller than the image height, the process proceeds to S1216, and the CPU sets the distribution error value (quantization error value) to the product of the error value and the distribution ratio. Then, in S1218, the CPU adds the set distribution error value to the cumulative error stored in the cumulative error buffer, and updates the cumulative error stored in the cumulative error buffer. Thereby, the cumulative error is updated according to the generated quantization error value.

S1210において、座標X´が画像幅以上であると判定されると、S1220において、CPUは、座標X´=X´-画像幅、座標Y´=Y´+1とし、S1214に進む。また、S1212において、座標X´が0より小さいと判定されると、S1222において、CPUは、座標X´=X´+画像幅、座標Y´=Y´+1とし、S1214に進む。さらに、S1214において、座標Y´が画像高さ以上であると判定されると、誤差を分配せずに、S1204に進む。このように、誤差拡散処理では、累積誤差バッファに格納されている値に、量子化誤差値を積算し、累積誤差を算出することとなる。 If it is determined in S1210 that the coordinate X' is equal to or greater than the image width, the CPU sets the coordinate X'=X'-image width and the coordinate Y'=Y'+1 in S1220, and proceeds to S1214. Further, if it is determined in S1212 that the coordinate X' is smaller than 0, the CPU sets the coordinate X'=X'+image width and the coordinate Y'=Y'+1 in S1222, and proceeds to S1214. Furthermore, if it is determined in S1214 that the coordinate Y' is equal to or greater than the image height, the process proceeds to S1204 without distributing the error. In this way, in the error diffusion process, the quantization error value is multiplied by the value stored in the cumulative error buffer to calculate the cumulative error.

このように、本実施形態では、量子化を行う画素およびその周辺の画素の濃度値Inに応じて取得した適用誤差使用率Reaを乗じた累積誤差Eを、量子化を行う画素の濃度値Inに加算することにより、誤差拡散特性を影響させる度合いを調節するようにした。また、量子化を行う画素およびその周辺の画素の濃度値に応じて取得した適用ノイズ使用率Rnaを乗じたディザマトリクスノイズDを初期閾値Thに加算することにより、ディザ特性を影響させる度合いを調節するようにした。これにより、例えば、入力値である濃度値In(x,y)とその周辺画素の濃度値に応じて、誤差拡散特性およびディザ特性のそれぞれを影響させる度合いを設定できる。また、誤差拡散処理およびディザ処理のそれぞれが得意とする部分を適切に活かした量子化の処理を行うことができる。 As described above, in this embodiment, the cumulative error E obtained by multiplying the applied error usage rate Rea obtained according to the density value In of the pixel to be quantized and its surrounding pixels is calculated as the density value In of the pixel to be quantized. The degree to which the error diffusion characteristics are affected can be adjusted by adding . In addition, the degree to which the dither characteristics are affected is adjusted by adding the dither matrix noise D, which is multiplied by the applied noise usage rate Rna obtained according to the density value of the pixel to be quantized and its surrounding pixels, to the initial threshold Th. I decided to do so. Thereby, for example, it is possible to set the degree to which each of the error diffusion characteristics and the dither characteristics is influenced depending on the density value In(x, y) that is the input value and the density values of surrounding pixels. Further, it is possible to perform quantization processing that appropriately takes advantage of the strengths of error diffusion processing and dither processing.

また、典型的な誤差拡散処理のみを行う場合、例えば、ハイライト部やシャドウ部では、ドットの遅延などの問題が発生する。また、ディザ処理のみを行う場合、例えば、ディザ処理に特有のテクスチャ等の問題が発生する。また、例えば、ハイライト部と中間調部との間や、中間調部をシャドウ部との間において、単にディザ処理と誤差拡散処理とを切り替える場合、例えば、切り替えにより境界線が発生する等の問題が生じる。これに対して、ノイズ使用率や誤差使用率を徐々に変化させ、切り替えて処理を実行する本実施形態では、例えば、ハイライト部やシャドウ部におけるドット遅延を適切に抑えることができる。また、中間調においてテクスチャが発生することや、切り替えにより境界線が発生する等も適切に防ぐことができる。そのため、本実施形態によれば、量子化の処理をより適切に行うことができる。 Further, when only typical error diffusion processing is performed, problems such as dot delay occur in, for example, highlight areas and shadow areas. Further, when only dithering is performed, problems such as textures, which are specific to dithering, occur. Furthermore, for example, when simply switching between dither processing and error diffusion processing between a highlight section and a halftone section, or between a halftone section and a shadow section, for example, the switching may cause a boundary line to appear. A problem arises. On the other hand, in the present embodiment, in which the noise usage rate and the error usage rate are gradually changed and switched to execute processing, it is possible to appropriately suppress dot delay in highlight areas and shadow areas, for example. Furthermore, it is possible to appropriately prevent the occurrence of textures in halftones and the occurrence of border lines due to switching. Therefore, according to this embodiment, quantization processing can be performed more appropriately.

さらに、本実施形態では、量子化を行う画素およびその周辺の画素のそれぞれの濃度値に応じたノイズ使用率と誤差使用率から、量子化を行う画素の適用ノイズ使用率と適用誤差使用率を決定するようにした。このため、画素に対する量子化の際に、領域の濃度の保持を考慮した適用ノイズ使用率と適用誤差使用率とを適用可能となる。その結果、ノイズ使用率と誤差使用率が領域内でばらつく中間調値のハッチングパターンのような高周波パターンの画像においても、従来よりも領域としての濃度を保持する量子化結果を得ることが可能となる。 Furthermore, in this embodiment, the applied noise usage rate and applied error usage rate of the pixel to be quantized are calculated from the noise usage rate and error usage rate according to the respective density values of the pixel to be quantized and the surrounding pixels. I tried to decide. Therefore, when quantizing pixels, it is possible to apply an applied noise usage rate and an applied error usage rate that take into account the maintenance of the density of the area. As a result, it is possible to obtain quantization results that maintain the density of the area better than before, even in images with high-frequency patterns such as hatching patterns of halftone values where the noise usage rate and error usage rate vary within the area. Become.

以上、本実施形態を説明したが、本実施形態の技術的範囲は上記した範囲には限定されない。上記実施形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。その様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、請求の範囲の記載から明らかである。 Although this embodiment has been described above, the technical scope of this embodiment is not limited to the above range. It will be apparent to those skilled in the art that various changes or improvements can be made to the embodiments described above. It is clear from the claims that such modifications or improvements may be included within the technical scope of the present invention.

また、以上において、量子化の処理の説明は、量子化後の階調数が2階調となる場合について行った。しかし、同様の方法による量子化は、例えば、階調数が3以上の場合の処理にも適用できる。階調数が3以上の場合とは、例えば、3種類以上のドットサイズを用いる場合である。この場合、例えば、それぞれのサイズのドット毎に対応する量子化の処理を、2階調の場合と同一または同様に、適用ノイズ使用率Rnaおよび適用誤差使用率Reaに応じて、ディザマトリクスノイズおよび累積誤差の両方を用いて行う。そして、それぞれのサイズのドットに対応する出力結果同士を比較して、サイズが最も大きくなるドットを最終出力とする。このようにすれば、例えば、階調数が3以上の場合にも、領域の濃度を保持して量子化の処理を行うことができる。 Furthermore, in the above, the quantization process has been described for the case where the number of gradations after quantization is two gradations. However, quantization using a similar method can also be applied to processing when the number of gradations is three or more, for example. The case where the number of gradations is three or more means, for example, the case where three or more types of dot sizes are used. In this case, for example, the quantization process corresponding to each dot of each size is performed in accordance with the applied noise usage rate Rna and the applied error usage rate Rea, in the same or similar manner as in the case of two gradations, using dither matrix noise and This is done using both cumulative errors. Then, the output results corresponding to the dots of each size are compared, and the dot with the largest size is determined as the final output. In this way, for example, even when the number of gradations is three or more, the quantization process can be performed while maintaining the density of the area.

さらに、本実施形態においては、図2(a)から(c)に示すように、濃度0の画素と濃度を持った画素が千鳥状に配置されたハイライト側の画像に対する処理を例示した。本実施形態による技術は、これに限らず図13(a)から(c)に示すようなシャドウ側の画像の処理を含めて、その他の階調パターンでも従来と比べて領域の濃度を保持した量子化の結果を得ることができる。 Further, in this embodiment, as shown in FIGS. 2A to 2C, processing is exemplified for a highlight side image in which pixels with a density of 0 and pixels with a density are arranged in a staggered manner. The technology according to the present embodiment is not limited to this, but also includes the processing of images on the shadow side as shown in FIGS. You can get the quantization result.

さらにまた、本実施形態では、量子化を行う画素を中心とする3×3画素の対象領域で適用ノイズ使用率、適用誤差使用率を算出したが、これに限定されるものではない。つまり、対象領域のサイズは量子化を行う画素およびその周辺画素を含んでいれば、どのようなサイズでもよく、本実施形態のような矩形でなくともよい。誤差の拡散範囲に応じたサイズとすることで誤差伝搬の影響を考慮した適用ノイズ使用率、適用誤差使用率を使用でき領域の濃度再現性が向上する場合もある。また、領域を処理済みの画素とすることで処理におけるメモリ容量の削減、高速化できる場合もある。 Furthermore, in this embodiment, the applied noise usage rate and the applied error usage rate are calculated in a 3×3 pixel target area centered on the pixel to be quantized, but the invention is not limited to this. In other words, the target area may have any size as long as it includes the pixel to be quantized and its surrounding pixels, and does not need to be rectangular as in this embodiment. By setting the size according to the error diffusion range, the applied noise usage rate and applied error usage rate can be used in consideration of the influence of error propagation, and the density reproducibility of the area may be improved. Furthermore, by setting the area to pixels that have already been processed, it is possible to reduce the memory capacity and speed up the processing in some cases.

また、本実施形態では、量子化を行う画素に対する各使用率(誤差使用率Reおよびノイズ使用率Rn)を算出する際に、量子化を行う画素およびその周辺の画素の各使用率を算出するようにしたが、これに限定されるものではない。例えば、すべての画素について各使用率を算出してその結果を保持しておき、量子化を行う画素に対する各使用率を算出する際に、必要となる各画素の、算出済みの使用率を参照するようにしてもよい。 Furthermore, in this embodiment, when calculating each usage rate (error usage rate Re and noise usage rate Rn) for a pixel to be quantized, each usage rate of the pixel to be quantized and its surrounding pixels is calculated. However, it is not limited to this. For example, calculate each usage rate for all pixels and save the results, and refer to the calculated usage rate for each pixel that is necessary when calculating each usage rate for the pixel to be quantized. You may also do so.

本開示は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワークまたは印刷媒体を介してシステムまたは装置に供給し、そのシステムまたは装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 The present disclosure provides a system or device with a program that implements one or more functions of the embodiments described above via a network or a print medium, and one or more processors in a computer of the system or device reads and executes the program. This can also be achieved by processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

上記実施形態の開示は、以下の構成および方法を含む。 The disclosure of the above embodiments includes the following configurations and methods.

(構成1)
コンピュータを、入力画像における各画素の画素値を量子化する画像処理装置として機能させるプログラムであって、前記コンピュータを、
前記量子化の対象とする注目画素を選択する画素選択手段と、
少なくとも、前記注目画素を含む対象領域に位置する各画素のそれぞれの画素において、画素値に応じて、二次元マトリクスを前記量子化に影響させる度合いを示す第1使用率と、前記注目画素の周辺の画素に対する前記量子化で生じる量子化誤差値の累積値である累積誤差を前記量子化に影響させる度合いを示す第2使用率とを決定する使用率決定手段と、
前記対象領域に位置する画素それぞれの前記第1使用率に基づいて前記注目画素の前記量子化に適用する第1適用使用率を決定するとともに、前記対象領域に位置する画素それぞれの前記第2使用率に基づいて前記注目画素の前記量子化に適用する第2適用使用率を決定する適用使用率決定手段と、
前記注目画素に対応する前記累積誤差と前記第2適用使用率とに基づいて前記注目画素の前記量子化に適用する適用誤差値を取得する適用誤差値取得手段と、
前記適用誤差値と前記注目画素の画素値とに基づいて累積画素値を取得する累積画素値取得手段と、
前記二次元マトリクスと前記第1適用使用率とに基づいて前記注目画素の前記量子化に適用する量子化閾値を取得する閾値取得手段と、
前記累積画素値と前記量子化閾値とに基づいて、量子化値および量子化誤差値を取得する量子化値取得手段と、として機能させることを特徴とするプログラム。
(Configuration 1)
A program that causes a computer to function as an image processing device that quantizes the pixel value of each pixel in an input image, the program comprising:
pixel selection means for selecting the pixel of interest to be quantized;
At least, for each pixel located in the target area including the pixel of interest, a first usage rate indicating the degree to which the two-dimensional matrix influences the quantization according to the pixel value, and a peripheral area of the pixel of interest. usage rate determining means for determining a second usage rate indicating the degree to which the cumulative error, which is the cumulative value of quantization error values generated in the quantization for the pixels, influences the quantization;
determining a first application usage rate to be applied to the quantization of the pixel of interest based on the first usage rate of each pixel located in the target area; and determining the second usage rate of each pixel located in the target area. applied usage rate determining means for determining a second applied usage rate to be applied to the quantization of the pixel of interest based on the quantization rate;
applied error value acquisition means for acquiring an applied error value to be applied to the quantization of the pixel of interest based on the cumulative error corresponding to the pixel of interest and the second applied usage rate;
Cumulative pixel value obtaining means for obtaining a cumulative pixel value based on the applied error value and the pixel value of the pixel of interest;
Threshold acquisition means for acquiring a quantization threshold to be applied to the quantization of the pixel of interest based on the two-dimensional matrix and the first applied usage rate;
A program that functions as a quantization value acquisition means for acquiring a quantization value and a quantization error value based on the cumulative pixel value and the quantization threshold.

(構成2)
前記第1使用率は、中間値と異なる第1の画素値のときには、前記第1の画素値よりも中間値に近い第2の画素値のときよりも、その値が高くなり、
前記第2使用率は、前記第1の画素値のときには、前記第2の画素値のときよりも、その値が低くなる、ことを特徴とする構成1に記載のプログラム。
(Configuration 2)
The first usage rate is higher when the first pixel value is different from the intermediate value than when the second pixel value is closer to the intermediate value than the first pixel value,
The program according to configuration 1, wherein the second usage rate is lower when the pixel value is the first pixel value than when the second pixel value is the second usage rate.

(構成3)
前記対象領域は、前記注目画素を中心とする3×3画素を少なくとも含む、ことを特徴とする構成1または2に記載のプログラム。
(Configuration 3)
3. The program according to configuration 1 or 2, wherein the target area includes at least 3×3 pixels centered on the pixel of interest.

(構成4)
前記第1適用使用率は、前記対象領域における各画素の前記第1使用率の平均値であり、
前記第2適用使用率は、前記対象領域における各画素の前記第2使用率の平均値である、ことを特徴とする構成1から3のいずれか1つに記載のプログラム。
(Configuration 4)
The first applied usage rate is an average value of the first usage rates of each pixel in the target area,
4. The program according to any one of configurations 1 to 3, wherein the second applied usage rate is an average value of the second usage rates of each pixel in the target area.

(構成5)
前記第1適用使用率は、前記対象領域における各画素の前記第1使用率の中央値であり、
前記第2適用使用率は、前記対象領域における各画素の前記第2使用率の中央値である、ことを特徴とする構成1から3のいずれか1つに記載のプログラム。
(Configuration 5)
The first applied usage rate is a median value of the first usage rates of each pixel in the target area,
4. The program according to any one of configurations 1 to 3, wherein the second applied usage rate is a median value of the second usage rates of each pixel in the target area.

(構成6)
前記第1適用使用率は、前記対象領域における各画素の前記第1使用率の中で最も多く存在する値であり、
前記第2適用使用率は、前記対象領域における各画素の前記第2使用率の中で最も多く存在する値である、ことを特徴とする構成1から3のいずれか1つに記載のプログラム。
(Configuration 6)
The first applied usage rate is the value that occurs most frequently among the first usage rates of each pixel in the target area,
4. The program according to any one of configurations 1 to 3, wherein the second applied usage rate is a value that occurs most frequently among the second usage rates of each pixel in the target area.

(構成7)
入力画像における各画素から量子化の対象とする注目画素を選択する注目画素選択手段と、
少なくとも、前記注目画素を含む対象領域に位置する各画素のそれぞれの画素において、画素値に応じて、二次元マトリクスを前記量子化に影響させる度合いを示す第1使用率と、前記注目画素の周辺の画素に対する前記量子化で生じる量子化誤差値の累積値である累積誤差を前記量子化に影響させる度合いを示す第2使用率とを決定する使用率決定手段と、
前記対象領域に位置する画素それぞれの前記第1使用率に基づいて前記注目画素の前記量子化に適用する第1適用使用率を決定するとともに、前記対象領域に位置する画素それぞれの前記第2使用率に基づいて前記注目画素の前記量子化に適用する第2適用使用率を決定する適用使用率決定手段と、
前記注目画素に対応する前記累積誤差と前記第2適用使用率とに基づいて前記注目画素の前記量子化に適用する適用誤差値を取得する適用誤差値取得手段と、
前記適用誤差値と前記注目画素の画素値とに基づいて累積画素値を取得する累積画素値取得手段と、
前記二次元マトリクスと前記第1適用使用率とに基づいて前記注目画素の前記量子化に適用する量子化閾値を取得する閾値取得手段と、
前記累積画素値と前記量子化閾値とに基づいて、量子化値および量子化誤差値を取得する量子化値取得手段と、を有することを特徴とする画像処理装置。
(Configuration 7)
pixel of interest selection means for selecting a pixel of interest to be quantized from each pixel in the input image;
At least, for each pixel located in the target area including the pixel of interest, a first usage rate indicating the degree to which the two-dimensional matrix influences the quantization according to the pixel value, and a peripheral area of the pixel of interest. usage rate determining means for determining a second usage rate indicating the degree to which the cumulative error, which is the cumulative value of quantization error values generated in the quantization for the pixels, influences the quantization;
determining a first application usage rate to be applied to the quantization of the pixel of interest based on the first usage rate of each pixel located in the target area; and determining the second usage rate of each pixel located in the target area. applied usage rate determining means for determining a second applied usage rate to be applied to the quantization of the pixel of interest based on the quantization rate;
applied error value acquisition means for acquiring an applied error value to be applied to the quantization of the pixel of interest based on the cumulative error corresponding to the pixel of interest and the second applied usage rate;
Cumulative pixel value obtaining means for obtaining a cumulative pixel value based on the applied error value and the pixel value of the pixel of interest;
Threshold acquisition means for acquiring a quantization threshold to be applied to the quantization of the pixel of interest based on the two-dimensional matrix and the first applied usage rate;
An image processing device comprising: quantization value acquisition means for acquiring a quantization value and a quantization error value based on the cumulative pixel value and the quantization threshold.

(構成8)
入力画像における各画素の画素値を量子化する画像処理装置における画像処理方法であって、
前記量子化の対象とする注目画素を選択し、
少なくとも、前記注目画素を含む対象領域に位置する画素のそれぞれの画素において、画素値に応じて、二次元マトリクスを前記量子化に影響させる度合いを示す第1使用率と、前記注目画素の周辺の画素に対する前記量子化で生じる量子化誤差値の累積値である累積誤差を前記量子化に影響させる度合いを示す第2使用率とを決定し、
前記対象領域に位置する画素それぞれの前記第1使用率に基づいて前記注目画素の前記量子化に適用する第1適用使用率を決定するとともに、前記対象領域に位置する画素それぞれの前記第2使用率に基づいて前記注目画素の前記量子化に適用する第2適用使用率とを決定し、
前記注目画素に対応する前記累積誤差と前記第2適用使用率とに基づいて前記注目画素の前記量子化に適用する適用誤差値を取得し、
前記適用誤差値と前記注目画素の画素値とに基づいて累積画素値を取得し、
前記二次元マトリクスと前記第1適用使用率とに基づいて前記注目画素の前記量子化に適用する量子化閾値を取得し、
前記累積画素値と前記量子化閾値とに基づいて量子化値および量子化誤差値を取得する、ことを特徴とする画像処理方法。
(Configuration 8)
An image processing method in an image processing device that quantizes the pixel value of each pixel in an input image, the method comprising:
Selecting the pixel of interest to be quantized,
At least, for each pixel located in the target area including the pixel of interest, a first usage rate indicating the degree to which the two-dimensional matrix influences the quantization according to the pixel value; determining a second usage rate indicating the degree to which the cumulative error, which is the cumulative value of quantization error values generated in the quantization for the pixel, influences the quantization;
determining a first application usage rate to be applied to the quantization of the pixel of interest based on the first usage rate of each pixel located in the target area; and determining the second usage rate of each pixel located in the target area. determining a second applied usage rate to be applied to the quantization of the pixel of interest based on the rate;
obtaining an applied error value to be applied to the quantization of the pixel of interest based on the cumulative error corresponding to the pixel of interest and the second applied usage rate;
obtaining a cumulative pixel value based on the applied error value and the pixel value of the pixel of interest;
obtaining a quantization threshold to be applied to the quantization of the pixel of interest based on the two-dimensional matrix and the first applied usage rate;
An image processing method, comprising: obtaining a quantization value and a quantization error value based on the cumulative pixel value and the quantization threshold.

(構成9)
画像中の各画素の色の濃度を示す濃度値の量子化をコンピュータに行わせるプログラムであって、
前記量子化を行うべき画素を順次選択する画素選択処理と、
予め設定されたディザマトリクスにより指定されるノイズであるディザマトリクスノイズを前記量子化の処理に影響させる度合いを示すノイズ使用率と、周辺の画素に対する前記量子化において生じる誤差である量子化誤差を累積した累積誤差を前記量子化の処理に影響させる度合いを示す誤差使用率とを決定する処理であり、前記画素選択処理で順次選択される前記画素の前記濃度値に応じた前記ノイズ使用率および前記誤差使用率を決定する使用率決定処理と、
前記画素選択処理で選択される前記画素およびその周辺の画素のそれぞれの画素に対応する前記ノイズ使用率および前記誤差使用率から、前記画素選択処理で選択される前記画素に対する前記量子化の際に適用する適用ノイズ使用率および適用誤差使用率を決定する適用使用率決定処理と、
前記画素選択処理で順次選択される前記画素の前記濃度値に対する前記量子化を行う処理であり、当該画素に対応する前記適用ノイズ使用率に応じてディザマトリクスノイズを使用し、かつ、当該画素に対応する前記適用誤差使用率に応じて前記累積誤差を使用して前記量子化を行う量子化実行処理と、を前記コンピュータに実行させ、
前記プログラムは、前記画素選択処理で順次選択される前記画素に対し、
前記累積誤差による補正を行った後の濃度値である誤差補正済入力値を算出する処理であり、当該画素に対応する前記適用誤差使用率と前記累積誤差との積を当該画素の濃度値に加算した値を、前記誤差補正済入力値として算出する誤差補正済入力値算出処理と、
前記量子化で使用する閾値として前記ディザマトリクスノイズを反映させた閾値であるノイズ補正済閾値を算出する処理であり、当該画素に対応する前記適用ノイズ使用率と前記ディザマトリクスノイズとの積を予め設定された初期閾値に加算した値を、前記ノイズ補正済閾値として算出するノイズ補正済閾値算出処理と、を更に前記コンピュータに実行させ、
前記量子化実行処理は、前記ノイズ補正済閾値と前記誤差補正済入力値とを比較することにより、前記量子化を行い、
前記使用率決定処理は、前記ノイズ使用率及び誤差使用率の決定において、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記ノイズ使用率を、ハイライト部とシャドウ部との中間の中間調部に相当する濃度値である場合の前記ノイズ使用率よりも大きな値にし、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記誤差使用率を、前記中間調部に相当する濃度値である場合の前記誤差使用率よりも小さな値にする、ことを特徴とするプログラム。
(Configuration 9)
A program that causes a computer to quantize a density value indicating the color density of each pixel in an image, the program comprising:
pixel selection processing that sequentially selects pixels to be quantized;
Accumulates the noise usage rate that indicates the degree to which dither matrix noise, which is noise specified by a preset dither matrix, influences the quantization process, and the quantization error, which is the error that occurs in the quantization of surrounding pixels. The noise usage rate and the error usage rate that indicate the degree to which the accumulated error affected the quantization process are determined according to the density values of the pixels that are sequentially selected in the pixel selection process. a usage rate determination process that determines the error usage rate;
During the quantization for the pixel selected in the pixel selection process, from the noise usage rate and the error usage rate corresponding to each of the pixel selected in the pixel selection process and the surrounding pixels. an applied usage rate determination process that determines an applied noise usage rate and an applied error usage rate to be applied;
This is a process of performing the quantization on the density values of the pixels that are sequentially selected in the pixel selection process, and uses dither matrix noise according to the applied noise usage rate corresponding to the pixel, and causing the computer to execute a quantization execution process of performing the quantization using the cumulative error according to the corresponding applied error usage rate;
The program includes, for the pixels sequentially selected in the pixel selection process,
This is a process of calculating an error-corrected input value, which is a density value after correction based on the cumulative error, and the product of the applied error usage rate corresponding to the pixel and the cumulative error is calculated as the density value of the pixel. an error-corrected input value calculation process of calculating the added value as the error-corrected input value;
This is a process of calculating a noise-corrected threshold that is a threshold that reflects the dither matrix noise as a threshold used in the quantization, and the product of the applied noise usage rate corresponding to the pixel and the dither matrix noise is calculated in advance. further causing the computer to execute a noise-corrected threshold calculation process of calculating a value added to the set initial threshold as the noise-corrected threshold;
The quantization execution process performs the quantization by comparing the noise-corrected threshold and the error-corrected input value,
The usage rate determination process includes, in determining the noise usage rate and the error usage rate,
The noise usage rate when the density value of the pixel is a density value corresponding to either a highlight part or a shadow part is a density value corresponding to a halftone part between the highlight part and the shadow part. Make the value larger than the above noise usage rate in case,
The error usage rate when the density value of the pixel corresponds to either a highlight portion or a shadow portion is smaller than the error usage rate when the density value corresponds to the halftone portion. A program characterized by:

(構成10)
前記量子化実行処理は、
前記量子化の入力値である前記画素の前記濃度値と、前記濃度値が取り得る範囲の最大値とが等しいか否かを判定する最大値判定処理と、
前記入力値である前記画素の前記濃度値と、前記濃度値が取り得る範囲の最小値とが等しいか否かを判定する最小値判定処理と、
前記量子化の結果である量子化値を取得する量子化値取得処理と、を有し、
前記最大値判定処理において前記入力値と前記最大値とが等しいと判定された場合、前記量子化値取得処理は、前記量子化値として、前記濃度値が前記閾値よりも大きい場合に出力されるべき値を取得し、
前記最小値判定処理において前記入力値と前記最小値とが等しいと判定された場合、前記量子化値取得処理は、前記量子化値として、前記濃度値が前記閾値よりも小さい場合に出力されるべき値を取得する、ことを特徴とする構成9に記載のプログラム。
(Configuration 10)
The quantization execution process is
maximum value determination processing for determining whether the density value of the pixel, which is the input value for the quantization, is equal to a maximum value in a range that the density value can take;
a minimum value determination process of determining whether the density value of the pixel that is the input value is equal to a minimum value in a range that the density value can take;
quantization value acquisition processing for acquiring a quantization value that is a result of the quantization,
If the input value and the maximum value are determined to be equal in the maximum value determination process, the quantization value acquisition process outputs the density value as the quantization value if it is larger than the threshold value. Get the power value,
If the input value and the minimum value are determined to be equal in the minimum value determination process, the quantization value acquisition process outputs the density value as the quantization value when the density value is smaller than the threshold value. The program according to configuration 9, characterized in that the program acquires an exponent value.

(構成11)
前記使用率決定処理は、前記画素の濃度値がいずれの場合にも、前記ノイズ使用率を、0より大きな値に予め設定された最低ノイズ使用率以上の値に設定する、ことを特徴とする構成9または10に記載のプログラム。
(Configuration 11)
The usage rate determination process is characterized in that, regardless of the density value of the pixel, the noise usage rate is set to a value greater than or equal to a minimum noise usage rate that is preset to a value greater than 0. The program according to configuration 9 or 10.

(構成12)
前記使用率決定処理は、
ハイライト部にある濃度範囲を示す基準として、予め設定された第1ハイライト基準値と、前記第1ハイライト基準値よりも大きな値の第2ハイライト基準値とを用い、
シャドウ部にある濃度範囲を示す基準として、予め設定された第1シャドウ基準値と、前記第1シャドウ基準値よりも大きな値の第2シャドウ基準値とを用い、
中間調部の中央にある濃度範囲を示す基準として、第2ハイライト基準値よりも大きく、かつ、前記第1シャドウ基準値よりも小さな第1中間調基準値と、前記第1中間調基準値よりも大きく、かつ、前記第1シャドウ基準値よりも小さな第2中間調基準値とを用い、
前記画素の濃度値が、前記第1ハイライト基準値以下の場合、または前記第2シャドウ基準値以上の場合、前記ノイズ使用率を、1に設定し、
前記画素の濃度値が、前記第1中間調基準値以上、かつ前記第2中間調基準値以下の場合、前記ノイズ使用率を、前記最低ノイズ使用率に設定し、
前記画素の濃度値が、前記第1ハイライト基準値以上、かつ前記第1中間調基準値以下の場合、前記ノイズ使用率を、前記最低ノイズ使用率以上、かつ1以下の値であり、前記画素の濃度値と前記第1ハイライト基準値との差に応じて1から漸減させた値に設定し、
前記画素の濃度値が、前記第2中間調基準値以上、かつ前記第2シャドウ基準値以下の場合、前記ノイズ使用率を、前記最低ノイズ使用率以上、かつ1以下の値であり、前記画素の濃度値と前記第2中間調基準値との差に応じて前記最低ノイズ使用率から漸増させた値に設定し、
前記画素の濃度値が、前記第2ハイライト基準値以上、かつ前記第1シャドウ基準値以下の場合、前記誤差使用率を、1に設定し、
前記画素の濃度値が、前記第2ハイライト基準値以下の場合、前記誤差使用率を、0以上1以下の値であり、前記第2ハイライト基準値と前記濃度値との差に応じて1から漸減させた値に設定し、
前記画素の濃度値が、前記第1シャドウ基準値以上の場合、前記誤差使用率を、0以上1以下の値であり、前記画素の濃度値と前記第1シャドウ基準値との差に応じて1から漸減させた値に設定する、ことを特徴とする構成11に記載のプログラム。
(Configuration 12)
The usage rate determination process includes:
Using a preset first highlight reference value and a second highlight reference value larger than the first highlight reference value as a reference indicating the density range in the highlight part,
Using a preset first shadow reference value and a second shadow reference value larger than the first shadow reference value as a reference indicating the density range in the shadow part,
A first halftone reference value that is larger than the second highlight reference value and smaller than the first shadow reference value, and the first halftone reference value as a reference indicating the density range in the center of the halftone portion. using a second halftone reference value that is larger than the first shadow reference value and smaller than the first shadow reference value;
If the density value of the pixel is less than or equal to the first highlight reference value or greater than or equal to the second shadow reference value, the noise usage rate is set to 1;
If the density value of the pixel is greater than or equal to the first halftone reference value and less than or equal to the second halftone reference value, setting the noise usage rate to the lowest noise usage rate;
When the density value of the pixel is greater than or equal to the first highlight reference value and less than or equal to the first halftone reference value, the noise usage rate is set to a value greater than or equal to the minimum noise usage rate and less than or equal to 1; Set to a value that is gradually decreased from 1 according to the difference between the density value of the pixel and the first highlight reference value,
When the density value of the pixel is greater than or equal to the second halftone reference value and less than or equal to the second shadow reference value, the noise usage rate is set to a value that is greater than or equal to the minimum noise usage rate and less than or equal to 1; set to a value that is gradually increased from the lowest noise usage rate according to the difference between the density value of and the second halftone reference value;
If the density value of the pixel is greater than or equal to the second highlight reference value and less than or equal to the first shadow reference value, the error usage rate is set to 1;
When the density value of the pixel is less than or equal to the second highlight reference value, the error usage rate is set to a value of 0 or more and 1 or less, depending on the difference between the second highlight reference value and the density value. Set the value gradually decreasing from 1,
When the density value of the pixel is greater than or equal to the first shadow reference value, the error usage rate is a value of 0 or more and 1 or less, depending on the difference between the density value of the pixel and the first shadow reference value. The program according to configuration 11, wherein the program is set to a value gradually decreased from 1.

(構成13)
前記使用率決定処理は、
ハイライト部にある濃度範囲を示す基準として、0より大きく、かつ前記第1ハイライト基準値以下の値の第3ハイライト基準値を更に用い、
シャドウ部にある濃度範囲を示す基準として、前記第2シャドウ基準値以上、かつ濃度値が取り得る範囲の最大値よりも小さな値の第3シャドウ基準値を更に用い、
前記画素の濃度値が、前記第3ハイライト基準値以下の場合、前記誤差使用率を0に設定し、
前記画素の濃度値が、前記第3ハイライト基準値以上、かつ前記第2ハイライト基準値以下の場合、前記誤差使用率を、前記濃度値と前記第3ハイライト基準値との差を前記第2ハイライト基準値と前記第3ハイライト基準値との差で除した値に設定し、
前記画素の濃度値が、前記第1シャドウ基準値以上、かつ前記第3シャドウ基準値以下の場合、前記誤差使用率を、前記第3シャドウ基準値と前記濃度値との差を前記第3シャドウ基準値と前記第1シャドウ基準値との差で除した値に設定し、
前記画素の濃度値が、前記第3シャドウ基準値以上の場合、前記誤差使用率を0に設定する、ことを特徴とする構成12に記載のプログラム。
(Configuration 13)
The usage rate determination process includes:
further using a third highlight reference value of a value greater than 0 and less than or equal to the first highlight reference value as a reference indicating the density range in the highlight part;
further using a third shadow reference value that is greater than or equal to the second shadow reference value and smaller than the maximum value of the range that the density value can take as a reference for indicating the density range in the shadow part;
If the density value of the pixel is less than or equal to the third highlight reference value, setting the error usage rate to 0;
When the density value of the pixel is greater than or equal to the third highlight reference value and less than or equal to the second highlight reference value, the error usage rate is calculated as the difference between the density value and the third highlight reference value. Set to a value divided by the difference between the second highlight reference value and the third highlight reference value,
When the density value of the pixel is greater than or equal to the first shadow reference value and less than or equal to the third shadow reference value, the error usage rate is calculated as the difference between the third shadow reference value and the density value in the third shadow. Set to a value divided by the difference between the reference value and the first shadow reference value,
13. The program according to configuration 12, wherein the error usage rate is set to 0 when the density value of the pixel is equal to or higher than the third shadow reference value.

(構成14)
画像中の各画素の色の濃度を示す濃度値の量子化を行う画像処理装置であって、
前記量子化を行うべき画素を順次選択する画素選択処理部と、
予め設定されたディザマトリクスにより指定されるノイズであるディザマトリクスノイズを前記量子化の処理に影響させる度合いを示すノイズ使用率と、周辺の画素に対する前記量子化において生じる誤差である量子化誤差を累積した累積誤差を前記量子化の処理に影響させる度合いを示す誤差使用率とを決定する処理部であり、前記画素選択処理部で順次選択される前記画素の前記濃度値に応じた前記ノイズ使用率および前記誤差使用率を決定する使用率決定処理部と、
前記画素選択処理部で選択される前記画素およびその周辺の画素のそれぞれの画素に対応する前記ノイズ使用率および前記誤差使用率から、前記画素選択処理部で選択される前記画素に対する前記量子化の際に適用する適用ノイズ使用率および適用誤差使用率を決定する適用使用率決定処理部と、
前記画素選択処理部により順次選択される前記画素の前記濃度値に対する前記量子化を行う処理部であり、当該画素に対応する前記適用ノイズ使用率に応じてディザマトリクスノイズを使用し、かつ、当該画素に対応する前記適用誤差使用率に応じて前記累積誤差を使用して前記量子化を行う量子化実行処理部と、
前記画素選択処理部により順次選択される前記画素に対し、前記累積誤差による補正を行った後の濃度値である誤差補正済入力値を算出する処理部であり、当該画素に対応する前記適用誤差使用率と前記累積誤差との積を当該画素の濃度値に加算した値を、前記誤差補正済入力値として算出する誤差補正済入力値算出処理部と、
前記画素選択処理部により順次選択される前記画素に対し、前記量子化で使用する閾値として前記ディザマトリクスノイズを反映させた閾値であるノイズ補正済閾値を算出する処理部であり、当該画素に対応する前記適用ノイズ使用率と前記ディザマトリクスノイズとの積を予め設定された初期閾値に加算した値を、前記ノイズ補正済閾値として算出するノイズ補正済閾値算出処理部と、を備え、
前記量子化実行処理部は、前記ノイズ補正済閾値と前記誤差補正済入力値とを比較することにより、前記量子化を行い、
前記使用率決定処理部は、前記ノイズ使用率及び誤差使用率の決定において、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記ノイズ使用率を、ハイライト部とシャドウ部との中間の中間調部に相当する濃度値である場合の前記ノイズ使用率よりも大きな値にし、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記誤差使用率を、前記中間調部に相当する濃度値である場合の前記誤差使用率よりも小さな値にする、ことを特徴とする画像処理装置。
(Configuration 14)
An image processing device that quantizes a density value indicating the color density of each pixel in an image, the image processing device comprising:
a pixel selection processing unit that sequentially selects pixels to be quantized;
Accumulates the noise usage rate that indicates the degree to which dither matrix noise, which is noise specified by a preset dither matrix, influences the quantization process, and the quantization error, which is the error that occurs in the quantization of surrounding pixels. a processing unit that determines an error usage rate indicating the degree to which the accumulated error caused by the noise affects the quantization process, and the noise usage rate according to the density value of the pixel sequentially selected by the pixel selection processing unit. and a usage rate determination processing unit that determines the error usage rate;
The quantization for the pixel selected by the pixel selection processing section is determined from the noise usage rate and the error usage rate corresponding to each of the pixel selected by the pixel selection processing section and the surrounding pixels. an applied usage rate determination processing unit that determines an applied noise usage rate and an applied error usage rate to be applied at the time;
A processing unit that performs the quantization on the density values of the pixels sequentially selected by the pixel selection processing unit, and uses dither matrix noise according to the applied noise usage rate corresponding to the pixel, and a quantization execution processing unit that performs the quantization using the cumulative error according to the applied error usage rate corresponding to the pixel;
A processing unit that calculates an error-corrected input value, which is a density value after correction based on the cumulative error, for the pixels sequentially selected by the pixel selection processing unit, and calculates the applied error corresponding to the pixel. an error-corrected input value calculation processing unit that calculates, as the error-corrected input value, a value obtained by adding the product of the usage rate and the cumulative error to the density value of the pixel;
A processing unit that calculates a noise-corrected threshold that is a threshold that reflects the dither matrix noise as a threshold used in the quantization for the pixels sequentially selected by the pixel selection processing unit, and corresponds to the pixel. a noise-corrected threshold calculation processing unit that calculates, as the noise-corrected threshold, a value obtained by adding the product of the applied noise usage rate and the dither matrix noise to a preset initial threshold;
The quantization execution processing unit performs the quantization by comparing the noise-corrected threshold and the error-corrected input value,
The usage rate determination processing unit, in determining the noise usage rate and the error usage rate,
The noise usage rate when the density value of the pixel is a density value corresponding to either a highlight part or a shadow part is a density value corresponding to a halftone part between the highlight part and the shadow part. Make the value larger than the above noise usage rate in case,
The error usage rate when the density value of the pixel corresponds to either a highlight portion or a shadow portion is smaller than the error usage rate when the density value corresponds to the halftone portion. An image processing device characterized by converting the image into a value.

(構成15)
画像中の各画素の色の濃度を示す濃度値の量子化を行う画像処理方法であって、
前記量子化を行うべき画素を順次選択する画素選択処理段階と、
予め設定されたディザマトリクスにより指定されるノイズであるディザマトリクスノイズを前記量子化の処理に影響させる度合いを示すノイズ使用率と、周辺の画素に対する前記量子化において生じる誤差である量子化誤差を累積した累積誤差を前記量子化の処理に影響させる度合いを示す誤差使用率とを決定する処理段階であり、前記画素選択処理段階で順次選択される前記画素の前記濃度値に応じた前記ノイズ使用率および前記誤差使用率を決定する使用率決定処理段階と、
前記画素選択処理段階で選択される前記画素およびその周辺の画素のそれぞれの画素に対応する前記ノイズ使用率および前記誤差使用率から、前記画素選択処理段階で選択される前記画素に対する前記量子化の際に適用する適用ノイズ使用率および適用誤差使用率を決定する適用使用率決定処理段階と、
前記画素選択処理段階において順次選択される前記画素の前記濃度値に対する前記量子化を行う処理段階であり、当該画素に対応する前記適用ノイズ使用率に応じてディザマトリクスノイズを使用し、かつ、当該画素に対応する前記適用誤差使用率に応じて前記累積誤差を使用して前記量子化を行う量子化実行処理段階と、
前記画素選択処理段階において順次選択される前記画素に対し、前記累積誤差による補正を行った後の濃度値である誤差補正済入力値を算出する処理段階であり、当該画素に対応する前記適用誤差使用率と前記累積誤差との積を当該画素の濃度値に加算した値を、前記誤差補正済入力値として算出する誤差補正済入力値算出処理段階と、
前記画素選択処理段階において順次選択される前記画素に対し、前記量子化で使用する閾値として前記ディザマトリクスノイズを反映させた閾値であるノイズ補正済閾値を算出する処理段階であり、当該画素に対応する前記適用ノイズ使用率と前記ディザマトリクスノイズとの積を予め設定された初期閾値に加算した値を、前記ノイズ補正済閾値として算出するノイズ補正済閾値算出処理段階と
を備え、
前記量子化実行処理段階は、前記ノイズ補正済閾値と前記誤差補正済入力値とを比較することにより、前記量子化を行い、
前記使用率決定処理段階は、前記ノイズ使用率及び誤差使用率の決定において、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記ノイズ使用率を、ハイライト部とシャドウ部との中間の中間調部に相当する濃度値である場合の前記ノイズ使用率よりも大きな値にし、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記誤差使用率を、前記中間調部に相当する濃度値である場合の前記誤差使用率よりも小さな値にする、ことを特徴とする画像処理方法。
(Configuration 15)
An image processing method that quantizes a density value indicating the color density of each pixel in an image, the method comprising:
a pixel selection process step of sequentially selecting pixels to be quantized;
Accumulates the noise usage rate that indicates the degree to which dither matrix noise, which is noise specified by a preset dither matrix, influences the quantization process, and the quantization error, which is the error that occurs in the quantization of surrounding pixels. The noise usage rate is determined according to the density value of the pixels sequentially selected in the pixel selection processing step. and a usage rate determination processing step for determining the error usage rate;
The quantization for the pixel selected in the pixel selection processing step is determined from the noise usage rate and the error usage rate corresponding to each of the pixel selected in the pixel selection processing step and the surrounding pixels. an applied usage rate determination processing step for determining an applied noise usage rate and an applied error usage rate to be applied at the time;
A processing step for performing the quantization on the density values of the pixels sequentially selected in the pixel selection processing step, in which dither matrix noise is used according to the applied noise usage rate corresponding to the pixel, and a quantization execution processing step of performing the quantization using the cumulative error according to the applied error usage rate corresponding to the pixel;
A processing step of calculating an error-corrected input value, which is a density value after correction based on the cumulative error, for the pixels sequentially selected in the pixel selection processing step, and the applied error corresponding to the pixel. an error-corrected input value calculation step of calculating, as the error-corrected input value, a value obtained by adding the product of the usage rate and the cumulative error to the density value of the pixel;
This is a processing step of calculating a noise-corrected threshold, which is a threshold that reflects the dither matrix noise, as a threshold used in the quantization, for the pixels sequentially selected in the pixel selection processing step, and corresponds to the pixel. a noise-corrected threshold calculation step of calculating, as the noise-corrected threshold, a value obtained by adding the product of the applied noise usage rate and the dither matrix noise to a preset initial threshold;
The quantization execution processing step performs the quantization by comparing the noise-corrected threshold and the error-corrected input value;
The usage rate determination processing step includes determining the noise usage rate and the error usage rate,
The noise usage rate when the density value of the pixel is a density value corresponding to either a highlight part or a shadow part is a density value corresponding to a halftone part between the highlight part and the shadow part. Make the value larger than the above noise usage rate in case,
The error usage rate when the density value of the pixel corresponds to either a highlight portion or a shadow portion is smaller than the error usage rate when the density value corresponds to the halftone portion. An image processing method characterized by converting the image into a value.

14 画像処理装置 14 Image processing device

Claims (15)

コンピュータを、入力画像における各画素の画素値を量子化する画像処理装置として機能させるプログラムであって、前記コンピュータを、
前記量子化の対象とする注目画素を選択する画素選択手段と、
少なくとも、前記注目画素を含む対象領域に位置する各画素のそれぞれの画素において、画素値に応じて、二次元マトリクスを前記量子化に影響させる度合いを示す第1使用率と、前記注目画素の周辺の画素に対する前記量子化で生じる量子化誤差値の累積値である累積誤差を前記量子化に影響させる度合いを示す第2使用率とを決定する使用率決定手段と、
前記対象領域に位置する画素それぞれの前記第1使用率に基づいて前記注目画素の前記量子化に適用する第1適用使用率を決定するとともに、前記対象領域に位置する画素それぞれの前記第2使用率に基づいて前記注目画素の前記量子化に適用する第2適用使用率を決定する適用使用率決定手段と、
前記注目画素に対応する前記累積誤差と前記第2適用使用率とに基づいて前記注目画素の前記量子化に適用する適用誤差値を取得する適用誤差値取得手段と、
前記適用誤差値と前記注目画素の画素値とに基づいて累積画素値を取得する累積画素値取得手段と、
前記二次元マトリクスと前記第1適用使用率とに基づいて前記注目画素の前記量子化に適用する量子化閾値を取得する閾値取得手段と、
前記累積画素値と前記量子化閾値とに基づいて、量子化値および量子化誤差値を取得する量子化値取得手段と、として機能させることを特徴とするプログラム。
A program that causes a computer to function as an image processing device that quantizes the pixel value of each pixel in an input image, the program comprising:
pixel selection means for selecting the pixel of interest to be quantized;
At least, for each pixel located in the target area including the pixel of interest, a first usage rate indicating the degree to which the two-dimensional matrix influences the quantization according to the pixel value, and a peripheral area of the pixel of interest. usage rate determining means for determining a second usage rate indicating the degree to which the cumulative error, which is the cumulative value of quantization error values generated in the quantization for the pixels, influences the quantization;
determining a first application usage rate to be applied to the quantization of the pixel of interest based on the first usage rate of each pixel located in the target area; and determining the second usage rate of each pixel located in the target area. applied usage rate determining means for determining a second applied usage rate to be applied to the quantization of the pixel of interest based on the quantization rate;
applied error value acquisition means for acquiring an applied error value to be applied to the quantization of the pixel of interest based on the cumulative error corresponding to the pixel of interest and the second applied usage rate;
Cumulative pixel value obtaining means for obtaining a cumulative pixel value based on the applied error value and the pixel value of the pixel of interest;
Threshold acquisition means for acquiring a quantization threshold to be applied to the quantization of the pixel of interest based on the two-dimensional matrix and the first applied usage rate;
A program that functions as a quantization value acquisition means for acquiring a quantization value and a quantization error value based on the cumulative pixel value and the quantization threshold.
前記第1使用率は、中間値と異なる第1の画素値のときには、前記第1の画素値よりも中間値に近い第2の画素値のときよりも、その値が高くなり、
前記第2使用率は、前記第1の画素値のときには、前記第2の画素値のときよりも、その値が低くなる、ことを特徴とする請求項1に記載のプログラム。
The first usage rate is higher when the first pixel value is different from the intermediate value than when the second pixel value is closer to the intermediate value than the first pixel value,
2. The program according to claim 1, wherein the second usage rate is lower when the pixel value is the first pixel value than when the second pixel value is the second pixel value.
前記対象領域は、前記注目画素を中心とする3×3画素を少なくとも含む、ことを特徴とする請求項1または2に記載のプログラム。 3. The program according to claim 1, wherein the target area includes at least 3×3 pixels centered on the pixel of interest. 前記第1適用使用率は、前記対象領域における各画素の前記第1使用率の平均値であり、
前記第2適用使用率は、前記対象領域における各画素の前記第2使用率の平均値である、ことを特徴とする請求項1または2に記載のプログラム。
The first applied usage rate is an average value of the first usage rates of each pixel in the target area,
3. The program according to claim 1, wherein the second applied usage rate is an average value of the second usage rates of each pixel in the target area.
前記第1適用使用率は、前記対象領域における各画素の前記第1使用率の中央値であり、
前記第2適用使用率は、前記対象領域における各画素の前記第2使用率の中央値である、ことを特徴とする請求項1または2に記載のプログラム。
The first applied usage rate is a median value of the first usage rates of each pixel in the target area,
3. The program according to claim 1, wherein the second applied usage rate is a median value of the second usage rates of each pixel in the target area.
前記第1適用使用率は、前記対象領域における各画素の前記第1使用率の中で最も多く存在する値であり、
前記第2適用使用率は、前記対象領域における各画素の前記第2使用率の中で最も多く存在する値である、ことを特徴とする請求項1または2に記載のプログラム。
The first applied usage rate is the value that occurs most frequently among the first usage rates of each pixel in the target area,
3. The program according to claim 1, wherein the second applied usage rate is a value that occurs most frequently among the second usage rates of each pixel in the target area.
入力画像における各画素から量子化の対象とする注目画素を選択する注目画素選択手段と、
少なくとも、前記注目画素を含む対象領域に位置する各画素のそれぞれの画素において、画素値に応じて、二次元マトリクスを前記量子化に影響させる度合いを示す第1使用率と、前記注目画素の周辺の画素に対する前記量子化で生じる量子化誤差値の累積値である累積誤差を前記量子化に影響させる度合いを示す第2使用率とを決定する使用率決定手段と、
前記対象領域に位置する画素それぞれの前記第1使用率に基づいて前記注目画素の前記量子化に適用する第1適用使用率を決定するとともに、前記対象領域に位置する画素それぞれの前記第2使用率に基づいて前記注目画素の前記量子化に適用する第2適用使用率を決定する適用使用率決定手段と、
前記注目画素に対応する前記累積誤差と前記第2適用使用率とに基づいて前記注目画素の前記量子化に適用する適用誤差値を取得する適用誤差値取得手段と、
前記適用誤差値と前記注目画素の画素値とに基づいて累積画素値を取得する累積画素値取得手段と、
前記二次元マトリクスと前記第1適用使用率とに基づいて前記注目画素の前記量子化に適用する量子化閾値を取得する閾値取得手段と、
前記累積画素値と前記量子化閾値とに基づいて、量子化値および量子化誤差値を取得する量子化値取得手段と、を有することを特徴とする画像処理装置。
pixel of interest selection means for selecting a pixel of interest to be quantized from each pixel in the input image;
At least, for each pixel located in the target area including the pixel of interest, a first usage rate indicating the degree to which the two-dimensional matrix influences the quantization according to the pixel value, and a peripheral area of the pixel of interest. usage rate determining means for determining a second usage rate indicating the degree to which the cumulative error, which is the cumulative value of quantization error values generated in the quantization for the pixels, influences the quantization;
determining a first application usage rate to be applied to the quantization of the pixel of interest based on the first usage rate of each pixel located in the target area; and determining the second usage rate of each pixel located in the target area. applied usage rate determining means for determining a second applied usage rate to be applied to the quantization of the pixel of interest based on the quantization rate;
applied error value acquisition means for acquiring an applied error value to be applied to the quantization of the pixel of interest based on the cumulative error corresponding to the pixel of interest and the second applied usage rate;
Cumulative pixel value obtaining means for obtaining a cumulative pixel value based on the applied error value and the pixel value of the pixel of interest;
Threshold acquisition means for acquiring a quantization threshold to be applied to the quantization of the pixel of interest based on the two-dimensional matrix and the first applied usage rate;
An image processing device comprising: quantization value acquisition means for acquiring a quantization value and a quantization error value based on the cumulative pixel value and the quantization threshold.
入力画像における各画素の画素値を量子化する画像処理装置における画像処理方法であって、
前記量子化の対象とする注目画素を選択し、
少なくとも、前記注目画素を含む対象領域に位置する画素のそれぞれの画素において、画素値に応じて、二次元マトリクスを前記量子化に影響させる度合いを示す第1使用率と、前記注目画素の周辺の画素に対する前記量子化で生じる量子化誤差値の累積値である累積誤差を前記量子化に影響させる度合いを示す第2使用率とを決定し、
前記対象領域に位置する画素それぞれの前記第1使用率に基づいて前記注目画素の前記量子化に適用する第1適用使用率を決定するとともに、前記対象領域に位置する画素それぞれの前記第2使用率に基づいて前記注目画素の前記量子化に適用する第2適用使用率とを決定し、
前記注目画素に対応する前記累積誤差と前記第2適用使用率とに基づいて前記注目画素の前記量子化に適用する適用誤差値を取得し、
前記適用誤差値と前記注目画素の画素値とに基づいて累積画素値を取得し、
前記二次元マトリクスと前記第1適用使用率とに基づいて前記注目画素の前記量子化に適用する量子化閾値を取得し、
前記累積画素値と前記量子化閾値とに基づいて量子化値および量子化誤差値を取得する、ことを特徴とする画像処理方法。
An image processing method in an image processing device that quantizes the pixel value of each pixel in an input image, the method comprising:
Selecting the pixel of interest to be quantized,
At least, for each pixel located in the target area including the pixel of interest, a first usage rate indicating the degree to which the two-dimensional matrix influences the quantization according to the pixel value; determining a second usage rate indicating the degree to which the cumulative error, which is the cumulative value of quantization error values generated in the quantization for the pixel, influences the quantization;
determining a first application usage rate to be applied to the quantization of the pixel of interest based on the first usage rate of each pixel located in the target area; and determining the second usage rate of each pixel located in the target area. determining a second applied usage rate to be applied to the quantization of the pixel of interest based on the rate;
obtaining an applied error value to be applied to the quantization of the pixel of interest based on the cumulative error corresponding to the pixel of interest and the second applied usage rate;
obtaining a cumulative pixel value based on the applied error value and the pixel value of the pixel of interest;
obtaining a quantization threshold to be applied to the quantization of the pixel of interest based on the two-dimensional matrix and the first applied usage rate;
An image processing method, comprising: obtaining a quantization value and a quantization error value based on the cumulative pixel value and the quantization threshold.
画像中の各画素の色の濃度を示す濃度値の量子化をコンピュータに行わせるプログラムであって、
前記量子化を行うべき画素を順次選択する画素選択処理と、
予め設定されたディザマトリクスにより指定されるノイズであるディザマトリクスノイズを前記量子化の処理に影響させる度合いを示すノイズ使用率と、周辺の画素に対する前記量子化において生じる誤差である量子化誤差を累積した累積誤差を前記量子化の処理に影響させる度合いを示す誤差使用率とを決定する処理であり、前記画素選択処理で順次選択される前記画素の前記濃度値に応じた前記ノイズ使用率および前記誤差使用率を決定する使用率決定処理と、
前記画素選択処理で選択される前記画素およびその周辺の画素のそれぞれの画素に対応する前記ノイズ使用率および前記誤差使用率から、前記画素選択処理で選択される前記画素に対する前記量子化の際に適用する適用ノイズ使用率および適用誤差使用率を決定する適用使用率決定処理と、
前記画素選択処理で順次選択される前記画素の前記濃度値に対する前記量子化を行う処理であり、当該画素に対応する前記適用ノイズ使用率に応じてディザマトリクスノイズを使用し、かつ、当該画素に対応する前記適用誤差使用率に応じて前記累積誤差を使用して前記量子化を行う量子化実行処理と、を前記コンピュータに実行させ、
前記プログラムは、前記画素選択処理で順次選択される前記画素に対し、
前記累積誤差による補正を行った後の濃度値である誤差補正済入力値を算出する処理であり、当該画素に対応する前記適用誤差使用率と前記累積誤差との積を当該画素の濃度値に加算した値を、前記誤差補正済入力値として算出する誤差補正済入力値算出処理と、
前記量子化で使用する閾値として前記ディザマトリクスノイズを反映させた閾値であるノイズ補正済閾値を算出する処理であり、当該画素に対応する前記適用ノイズ使用率と前記ディザマトリクスノイズとの積を予め設定された初期閾値に加算した値を、前記ノイズ補正済閾値として算出するノイズ補正済閾値算出処理と、を更に前記コンピュータに実行させ、
前記量子化実行処理は、前記ノイズ補正済閾値と前記誤差補正済入力値とを比較することにより、前記量子化を行い、
前記使用率決定処理は、前記ノイズ使用率及び誤差使用率の決定において、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記ノイズ使用率を、ハイライト部とシャドウ部との中間の中間調部に相当する濃度値である場合の前記ノイズ使用率よりも大きな値にし、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記誤差使用率を、前記中間調部に相当する濃度値である場合の前記誤差使用率よりも小さな値にする、ことを特徴とするプログラム。
A program that causes a computer to quantize a density value indicating the color density of each pixel in an image, the program comprising:
pixel selection processing that sequentially selects pixels to be quantized;
Accumulates the noise usage rate that indicates the degree to which dither matrix noise, which is noise specified by a preset dither matrix, influences the quantization process, and the quantization error, which is the error that occurs in the quantization of surrounding pixels. The noise usage rate and the error usage rate that indicate the degree to which the accumulated error affected the quantization process are determined according to the density values of the pixels that are sequentially selected in the pixel selection process. a usage rate determination process that determines the error usage rate;
During the quantization for the pixel selected in the pixel selection process, from the noise usage rate and the error usage rate corresponding to each of the pixel selected in the pixel selection process and the surrounding pixels. an applied usage rate determination process that determines an applied noise usage rate and an applied error usage rate to be applied;
This is a process of performing the quantization on the density values of the pixels that are sequentially selected in the pixel selection process, and uses dither matrix noise according to the applied noise usage rate corresponding to the pixel, and causing the computer to execute a quantization execution process of performing the quantization using the cumulative error according to the corresponding applied error usage rate;
The program includes, for the pixels sequentially selected in the pixel selection process,
This is a process of calculating an error-corrected input value, which is a density value after correction based on the cumulative error, and the product of the applied error usage rate corresponding to the pixel and the cumulative error is calculated as the density value of the pixel. an error-corrected input value calculation process of calculating the added value as the error-corrected input value;
This is a process of calculating a noise-corrected threshold that is a threshold that reflects the dither matrix noise as a threshold used in the quantization, and the product of the applied noise usage rate corresponding to the pixel and the dither matrix noise is calculated in advance. further causing the computer to execute a noise-corrected threshold calculation process of calculating a value added to the set initial threshold as the noise-corrected threshold;
The quantization execution process performs the quantization by comparing the noise-corrected threshold and the error-corrected input value,
The usage rate determination process includes, in determining the noise usage rate and the error usage rate,
The noise usage rate when the density value of the pixel is a density value corresponding to either a highlight part or a shadow part is a density value corresponding to a halftone part between the highlight part and the shadow part. Make the value larger than the above noise usage rate in case,
The error usage rate when the density value of the pixel corresponds to either a highlight portion or a shadow portion is smaller than the error usage rate when the density value corresponds to the halftone portion. A program characterized by:
前記量子化実行処理は、
前記量子化の入力値である前記画素の前記濃度値と、前記濃度値が取り得る範囲の最大値とが等しいか否かを判定する最大値判定処理と、
前記入力値である前記画素の前記濃度値と、前記濃度値が取り得る範囲の最小値とが等しいか否かを判定する最小値判定処理と、
前記量子化の結果である量子化値を取得する量子化値取得処理と、を有し、
前記最大値判定処理において前記入力値と前記最大値とが等しいと判定された場合、前記量子化値取得処理は、前記量子化値として、前記濃度値が前記閾値よりも大きい場合に出力されるべき値を取得し、
前記最小値判定処理において前記入力値と前記最小値とが等しいと判定された場合、前記量子化値取得処理は、前記量子化値として、前記濃度値が前記閾値よりも小さい場合に出力されるべき値を取得する、ことを特徴とする請求項9に記載のプログラム。
The quantization execution process is
maximum value determination processing for determining whether the density value of the pixel, which is the input value for the quantization, is equal to a maximum value in a range that the density value can take;
a minimum value determination process of determining whether the density value of the pixel that is the input value is equal to a minimum value in a range that the density value can take;
quantization value acquisition processing for acquiring a quantization value that is a result of the quantization,
If the input value and the maximum value are determined to be equal in the maximum value determination process, the quantization value acquisition process outputs the density value as the quantization value if it is larger than the threshold value. Get the power value,
If the input value and the minimum value are determined to be equal in the minimum value determination process, the quantization value acquisition process outputs the density value as the quantization value when the density value is smaller than the threshold value. 10. The program according to claim 9, wherein the program acquires an exponent value.
前記使用率決定処理は、前記画素の濃度値がいずれの場合にも、前記ノイズ使用率を、0より大きな値に予め設定された最低ノイズ使用率以上の値に設定する、ことを特徴とする請求項9または10に記載のプログラム。 The usage rate determination process is characterized in that, regardless of the density value of the pixel, the noise usage rate is set to a value greater than or equal to a minimum noise usage rate that is preset to a value greater than 0. The program according to claim 9 or 10. 前記使用率決定処理は、
ハイライト部にある濃度範囲を示す基準として、予め設定された第1ハイライト基準値と、前記第1ハイライト基準値よりも大きな値の第2ハイライト基準値とを用い、
シャドウ部にある濃度範囲を示す基準として、予め設定された第1シャドウ基準値と、前記第1シャドウ基準値よりも大きな値の第2シャドウ基準値とを用い、
中間調部の中央にある濃度範囲を示す基準として、第2ハイライト基準値よりも大きく、かつ、前記第1シャドウ基準値よりも小さな第1中間調基準値と、前記第1中間調基準値よりも大きく、かつ、前記第1シャドウ基準値よりも小さな第2中間調基準値とを用い、
前記画素の濃度値が、前記第1ハイライト基準値以下の場合、または前記第2シャドウ基準値以上の場合、前記ノイズ使用率を、1に設定し、
前記画素の濃度値が、前記第1中間調基準値以上、かつ前記第2中間調基準値以下の場合、前記ノイズ使用率を、前記最低ノイズ使用率に設定し、
前記画素の濃度値が、前記第1ハイライト基準値以上、かつ前記第1中間調基準値以下の場合、前記ノイズ使用率を、前記最低ノイズ使用率以上、かつ1以下の値であり、前記画素の濃度値と前記第1ハイライト基準値との差に応じて1から漸減させた値に設定し、
前記画素の濃度値が、前記第2中間調基準値以上、かつ前記第2シャドウ基準値以下の場合、前記ノイズ使用率を、前記最低ノイズ使用率以上、かつ1以下の値であり、前記画素の濃度値と前記第2中間調基準値との差に応じて前記最低ノイズ使用率から漸増させた値に設定し、
前記画素の濃度値が、前記第2ハイライト基準値以上、かつ前記第1シャドウ基準値以下の場合、前記誤差使用率を、1に設定し、
前記画素の濃度値が、前記第2ハイライト基準値以下の場合、前記誤差使用率を、0以上1以下の値であり、前記第2ハイライト基準値と前記濃度値との差に応じて1から漸減させた値に設定し、
前記画素の濃度値が、前記第1シャドウ基準値以上の場合、前記誤差使用率を、0以上1以下の値であり、前記画素の濃度値と前記第1シャドウ基準値との差に応じて1から漸減させた値に設定する、ことを特徴とする請求項11に記載のプログラム。
The usage rate determination process includes:
Using a preset first highlight reference value and a second highlight reference value larger than the first highlight reference value as a reference indicating the density range in the highlight part,
Using a preset first shadow reference value and a second shadow reference value larger than the first shadow reference value as a reference indicating the density range in the shadow part,
A first halftone reference value that is larger than the second highlight reference value and smaller than the first shadow reference value, and the first halftone reference value as a reference indicating the density range in the center of the halftone portion. using a second halftone reference value that is larger than the first shadow reference value and smaller than the first shadow reference value;
If the density value of the pixel is less than or equal to the first highlight reference value or greater than or equal to the second shadow reference value, the noise usage rate is set to 1;
If the density value of the pixel is greater than or equal to the first halftone reference value and less than or equal to the second halftone reference value, setting the noise usage rate to the lowest noise usage rate;
When the density value of the pixel is greater than or equal to the first highlight reference value and less than or equal to the first halftone reference value, the noise usage rate is set to a value greater than or equal to the minimum noise usage rate and less than or equal to 1; Set to a value that is gradually decreased from 1 according to the difference between the density value of the pixel and the first highlight reference value,
When the density value of the pixel is greater than or equal to the second halftone reference value and less than or equal to the second shadow reference value, the noise usage rate is set to a value that is greater than or equal to the minimum noise usage rate and less than or equal to 1; set to a value that is gradually increased from the lowest noise usage rate according to the difference between the density value of and the second halftone reference value;
If the density value of the pixel is greater than or equal to the second highlight reference value and less than or equal to the first shadow reference value, the error usage rate is set to 1;
When the density value of the pixel is less than or equal to the second highlight reference value, the error usage rate is set to a value of 0 or more and 1 or less, depending on the difference between the second highlight reference value and the density value. Set the value gradually decreasing from 1,
When the density value of the pixel is greater than or equal to the first shadow reference value, the error usage rate is a value of 0 or more and 1 or less, depending on the difference between the density value of the pixel and the first shadow reference value. 12. The program according to claim 11, wherein the program is set to a value gradually decreasing from 1.
前記使用率決定処理は、
ハイライト部にある濃度範囲を示す基準として、0より大きく、かつ前記第1ハイライト基準値以下の値の第3ハイライト基準値を更に用い、
シャドウ部にある濃度範囲を示す基準として、前記第2シャドウ基準値以上、かつ濃度値が取り得る範囲の最大値よりも小さな値の第3シャドウ基準値を更に用い、
前記画素の濃度値が、前記第3ハイライト基準値以下の場合、前記誤差使用率を0に設定し、
前記画素の濃度値が、前記第3ハイライト基準値以上、かつ前記第2ハイライト基準値以下の場合、前記誤差使用率を、前記濃度値と前記第3ハイライト基準値との差を前記第2ハイライト基準値と前記第3ハイライト基準値との差で除した値に設定し、
前記画素の濃度値が、前記第1シャドウ基準値以上、かつ前記第3シャドウ基準値以下の場合、前記誤差使用率を、前記第3シャドウ基準値と前記濃度値との差を前記第3シャドウ基準値と前記第1シャドウ基準値との差で除した値に設定し、
前記画素の濃度値が、前記第3シャドウ基準値以上の場合、前記誤差使用率を0に設定する、ことを特徴とする請求項12に記載のプログラム。
The usage rate determination process includes:
further using a third highlight reference value of a value greater than 0 and less than or equal to the first highlight reference value as a reference indicating the density range in the highlight part;
further using a third shadow reference value that is greater than or equal to the second shadow reference value and smaller than the maximum value of the range that the density value can take as a reference for indicating the density range in the shadow part;
If the density value of the pixel is less than or equal to the third highlight reference value, setting the error usage rate to 0;
When the density value of the pixel is greater than or equal to the third highlight reference value and less than or equal to the second highlight reference value, the error usage rate is calculated as the difference between the density value and the third highlight reference value. Set to a value divided by the difference between the second highlight reference value and the third highlight reference value,
When the density value of the pixel is greater than or equal to the first shadow reference value and less than or equal to the third shadow reference value, the error usage rate is calculated as the difference between the third shadow reference value and the density value in the third shadow. Set to a value divided by the difference between the reference value and the first shadow reference value,
13. The program according to claim 12, wherein the error usage rate is set to 0 when the density value of the pixel is equal to or higher than the third shadow reference value.
画像中の各画素の色の濃度を示す濃度値の量子化を行う画像処理装置であって、
前記量子化を行うべき画素を順次選択する画素選択処理部と、
予め設定されたディザマトリクスにより指定されるノイズであるディザマトリクスノイズを前記量子化の処理に影響させる度合いを示すノイズ使用率と、周辺の画素に対する前記量子化において生じる誤差である量子化誤差を累積した累積誤差を前記量子化の処理に影響させる度合いを示す誤差使用率とを決定する処理部であり、前記画素選択処理部で順次選択される前記画素の前記濃度値に応じた前記ノイズ使用率および前記誤差使用率を決定する使用率決定処理部と、
前記画素選択処理部で選択される前記画素およびその周辺の画素のそれぞれの画素に対応する前記ノイズ使用率および前記誤差使用率から、前記画素選択処理部で選択される前記画素に対する前記量子化の際に適用する適用ノイズ使用率および適用誤差使用率を決定する適用使用率決定処理部と、
前記画素選択処理部により順次選択される前記画素の前記濃度値に対する前記量子化を行う処理部であり、当該画素に対応する前記適用ノイズ使用率に応じてディザマトリクスノイズを使用し、かつ、当該画素に対応する前記適用誤差使用率に応じて前記累積誤差を使用して前記量子化を行う量子化実行処理部と、
前記画素選択処理部により順次選択される前記画素に対し、前記累積誤差による補正を行った後の濃度値である誤差補正済入力値を算出する処理部であり、当該画素に対応する前記適用誤差使用率と前記累積誤差との積を当該画素の濃度値に加算した値を、前記誤差補正済入力値として算出する誤差補正済入力値算出処理部と、
前記画素選択処理部により順次選択される前記画素に対し、前記量子化で使用する閾値として前記ディザマトリクスノイズを反映させた閾値であるノイズ補正済閾値を算出する処理部であり、当該画素に対応する前記適用ノイズ使用率と前記ディザマトリクスノイズとの積を予め設定された初期閾値に加算した値を、前記ノイズ補正済閾値として算出するノイズ補正済閾値算出処理部と、を備え、
前記量子化実行処理部は、前記ノイズ補正済閾値と前記誤差補正済入力値とを比較することにより、前記量子化を行い、
前記使用率決定処理部は、前記ノイズ使用率及び誤差使用率の決定において、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記ノイズ使用率を、ハイライト部とシャドウ部との中間の中間調部に相当する濃度値である場合の前記ノイズ使用率よりも大きな値にし、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記誤差使用率を、前記中間調部に相当する濃度値である場合の前記誤差使用率よりも小さな値にする、ことを特徴とする画像処理装置。
An image processing device that quantizes a density value indicating the color density of each pixel in an image, the image processing device comprising:
a pixel selection processing unit that sequentially selects pixels to be quantized;
Accumulates the noise usage rate that indicates the degree to which dither matrix noise, which is noise specified by a preset dither matrix, influences the quantization process, and the quantization error, which is the error that occurs in the quantization of surrounding pixels. a processing unit that determines an error usage rate indicating the degree to which the accumulated error caused by the noise affects the quantization process, and the noise usage rate according to the density value of the pixel sequentially selected by the pixel selection processing unit. and a usage rate determination processing unit that determines the error usage rate;
The quantization for the pixel selected by the pixel selection processing section is determined from the noise usage rate and the error usage rate corresponding to each of the pixel selected by the pixel selection processing section and the surrounding pixels. an applied usage rate determination processing unit that determines an applied noise usage rate and an applied error usage rate to be applied at the time;
A processing unit that performs the quantization on the density values of the pixels sequentially selected by the pixel selection processing unit, and uses dither matrix noise according to the applied noise usage rate corresponding to the pixel, and a quantization execution processing unit that performs the quantization using the cumulative error according to the applied error usage rate corresponding to the pixel;
A processing unit that calculates an error-corrected input value, which is a density value after correction based on the cumulative error, for the pixels sequentially selected by the pixel selection processing unit, and calculates the applied error corresponding to the pixel. an error-corrected input value calculation processing unit that calculates, as the error-corrected input value, a value obtained by adding the product of the usage rate and the cumulative error to the density value of the pixel;
A processing unit that calculates a noise-corrected threshold that is a threshold that reflects the dither matrix noise as a threshold used in the quantization for the pixels sequentially selected by the pixel selection processing unit, and corresponds to the pixel. a noise-corrected threshold calculation processing unit that calculates, as the noise-corrected threshold, a value obtained by adding the product of the applied noise usage rate and the dither matrix noise to a preset initial threshold;
The quantization execution processing unit performs the quantization by comparing the noise-corrected threshold and the error-corrected input value,
The usage rate determination processing unit, in determining the noise usage rate and the error usage rate,
The noise usage rate when the density value of the pixel is a density value corresponding to either a highlight part or a shadow part is a density value corresponding to a halftone part between the highlight part and the shadow part. Make the value larger than the above noise usage rate in case,
The error usage rate when the density value of the pixel corresponds to either a highlight portion or a shadow portion is smaller than the error usage rate when the density value corresponds to the halftone portion. An image processing device characterized by converting the image into a value.
画像中の各画素の色の濃度を示す濃度値の量子化を行う画像処理方法であって、
前記量子化を行うべき画素を順次選択する画素選択処理段階と、
予め設定されたディザマトリクスにより指定されるノイズであるディザマトリクスノイズを前記量子化の処理に影響させる度合いを示すノイズ使用率と、周辺の画素に対する前記量子化において生じる誤差である量子化誤差を累積した累積誤差を前記量子化の処理に影響させる度合いを示す誤差使用率とを決定する処理段階であり、前記画素選択処理段階で順次選択される前記画素の前記濃度値に応じた前記ノイズ使用率および前記誤差使用率を決定する使用率決定処理段階と、
前記画素選択処理段階で選択される前記画素およびその周辺の画素のそれぞれの画素に対応する前記ノイズ使用率および前記誤差使用率から、前記画素選択処理段階で選択される前記画素に対する前記量子化の際に適用する適用ノイズ使用率および適用誤差使用率を決定する適用使用率決定処理段階と、
前記画素選択処理段階において順次選択される前記画素の前記濃度値に対する前記量子化を行う処理段階であり、当該画素に対応する前記適用ノイズ使用率に応じてディザマトリクスノイズを使用し、かつ、当該画素に対応する前記適用誤差使用率に応じて前記累積誤差を使用して前記量子化を行う量子化実行処理段階と、
前記画素選択処理段階において順次選択される前記画素に対し、前記累積誤差による補正を行った後の濃度値である誤差補正済入力値を算出する処理段階であり、当該画素に対応する前記適用誤差使用率と前記累積誤差との積を当該画素の濃度値に加算した値を、前記誤差補正済入力値として算出する誤差補正済入力値算出処理段階と、
前記画素選択処理段階において順次選択される前記画素に対し、前記量子化で使用する閾値として前記ディザマトリクスノイズを反映させた閾値であるノイズ補正済閾値を算出する処理段階であり、当該画素に対応する前記適用ノイズ使用率と前記ディザマトリクスノイズとの積を予め設定された初期閾値に加算した値を、前記ノイズ補正済閾値として算出するノイズ補正済閾値算出処理段階と
を備え、
前記量子化実行処理段階は、前記ノイズ補正済閾値と前記誤差補正済入力値とを比較することにより、前記量子化を行い、
前記使用率決定処理段階は、前記ノイズ使用率及び誤差使用率の決定において、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記ノイズ使用率を、ハイライト部とシャドウ部との中間の中間調部に相当する濃度値である場合の前記ノイズ使用率よりも大きな値にし、
前記画素の濃度値がハイライト部またはシャドウ部のいずれかに相当する濃度値である場合の前記誤差使用率を、前記中間調部に相当する濃度値である場合の前記誤差使用率よりも小さな値にする、ことを特徴とする画像処理方法。
An image processing method that quantizes a density value indicating the color density of each pixel in an image, the method comprising:
a pixel selection process step of sequentially selecting pixels to be quantized;
Accumulates the noise usage rate that indicates the degree to which dither matrix noise, which is noise specified by a preset dither matrix, influences the quantization process, and the quantization error, which is the error that occurs in the quantization of surrounding pixels. The noise usage rate is determined according to the density value of the pixels sequentially selected in the pixel selection processing step. and a usage rate determination processing step for determining the error usage rate;
The quantization for the pixel selected in the pixel selection processing step is determined from the noise usage rate and the error usage rate corresponding to each of the pixel selected in the pixel selection processing step and the surrounding pixels. an applied usage rate determination processing step for determining an applied noise usage rate and an applied error usage rate to be applied at the time;
A processing step for performing the quantization on the density values of the pixels sequentially selected in the pixel selection processing step, in which dither matrix noise is used according to the applied noise usage rate corresponding to the pixel, and a quantization execution processing step of performing the quantization using the cumulative error according to the applied error usage rate corresponding to the pixel;
A processing step of calculating an error-corrected input value, which is a density value after correction based on the cumulative error, for the pixels sequentially selected in the pixel selection processing step, and the applied error corresponding to the pixel. an error-corrected input value calculation step of calculating, as the error-corrected input value, a value obtained by adding the product of the usage rate and the cumulative error to the density value of the pixel;
This is a processing step of calculating a noise-corrected threshold, which is a threshold that reflects the dither matrix noise, as a threshold used in the quantization, for the pixels sequentially selected in the pixel selection processing step, and corresponds to the pixel. a noise-corrected threshold calculation step of calculating, as the noise-corrected threshold, a value obtained by adding the product of the applied noise usage rate and the dither matrix noise to a preset initial threshold;
The quantization execution processing step performs the quantization by comparing the noise-corrected threshold and the error-corrected input value;
The usage rate determination processing step includes determining the noise usage rate and the error usage rate,
The noise usage rate when the density value of the pixel is a density value corresponding to either a highlight part or a shadow part is a density value corresponding to a halftone part between the highlight part and the shadow part. Make the value larger than the above noise usage rate in case,
The error usage rate when the density value of the pixel corresponds to either a highlight portion or a shadow portion is smaller than the error usage rate when the density value corresponds to the halftone portion. An image processing method characterized by converting the image into a value.
JP2022122595A 2022-08-01 2022-08-01 Image processing device, image processing method, and program Pending JP2024019857A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2022122595A JP2024019857A (en) 2022-08-01 2022-08-01 Image processing device, image processing method, and program
US18/350,931 US20240037895A1 (en) 2022-08-01 2023-07-12 Storage medium, image processing apparatus, and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022122595A JP2024019857A (en) 2022-08-01 2022-08-01 Image processing device, image processing method, and program

Publications (1)

Publication Number Publication Date
JP2024019857A true JP2024019857A (en) 2024-02-14

Family

ID=89853919

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022122595A Pending JP2024019857A (en) 2022-08-01 2022-08-01 Image processing device, image processing method, and program

Country Status (1)

Country Link
JP (1) JP2024019857A (en)

Similar Documents

Publication Publication Date Title
US6435657B1 (en) Method for multicolorant printing of digital images using reduced colorant amounts
US8208172B2 (en) Image forming apparatus and image forming method
KR101350881B1 (en) Program, Image Processing Device, and Image Processing Method
US5784496A (en) Error sum method and apparatus for intercolor separation control in a printing system
US7315398B2 (en) Multi-level error diffusion with color image data
US8139267B2 (en) Method, apparatus and program for creating a threshold value matrix
JP2024019857A (en) Image processing device, image processing method, and program
US7295347B2 (en) Image processing method for generating multi-level data
JP2024019858A (en) Image processing device, image processing method, and program
KR100621097B1 (en) Image processing method and image processing apparatus
US7292728B1 (en) Block quantization method for color halftoning
JP2024019937A (en) Program, image processing device, and image processing method
US7149351B2 (en) Image processing apparatus and method, computer program and computer-readable storage medium
JP2024019939A (en) Program, image processing device, and image processing method
US20240037895A1 (en) Storage medium, image processing apparatus, and image processing method
JP2024019908A (en) Program, image processing device, and image processing method
JP7388156B2 (en) Image processing device, image processing method and program
JP2009135637A (en) Image processor, image processing method and program
JP6907034B2 (en) Image processing equipment, image processing methods and programs
JP2006311241A (en) Image processor
JPH08204958A (en) Image processor
KR100438712B1 (en) Binary image generating method using minority pixel location information
JPH1117948A (en) Image processing unit
JP5383459B2 (en) Image processing apparatus and computer program
JP4158652B2 (en) Image processing apparatus, image processing method, and image processing program