JP5979261B2 - Printing apparatus and printing method - Google Patents

Printing apparatus and printing method Download PDF

Info

Publication number
JP5979261B2
JP5979261B2 JP2015018086A JP2015018086A JP5979261B2 JP 5979261 B2 JP5979261 B2 JP 5979261B2 JP 2015018086 A JP2015018086 A JP 2015018086A JP 2015018086 A JP2015018086 A JP 2015018086A JP 5979261 B2 JP5979261 B2 JP 5979261B2
Authority
JP
Japan
Prior art keywords
data
value
error diffusion
dot
gradation value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2015018086A
Other languages
Japanese (ja)
Other versions
JP2015122769A (en
Inventor
角谷 繁明
繁明 角谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2015018086A priority Critical patent/JP5979261B2/en
Publication of JP2015122769A publication Critical patent/JP2015122769A/en
Application granted granted Critical
Publication of JP5979261B2 publication Critical patent/JP5979261B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、所定の画像を表す画像データの印刷を行う印刷技術に関し、さらに詳しくは、ハーフトーン処理技術に関する。   The present invention relates to a printing technique for printing image data representing a predetermined image, and more particularly to a halftone processing technique.

印刷装置において、階調表現を行うハーフトーン技術として、ディザ法や誤差拡散法が広く知られている。ディザ法と誤差拡散法には、それぞれ長所及び短所があるため、従来からディザ法的要素と誤差拡散法的要素とを組み合わせて、ハーフトーン処理を行いたいという要望があった。例えば、下記の特許文献1や特許文献2には、誤差拡散法の閾値に、組織的ディザ法のディザマスクを用いて、閾値を周期的に変動させることで、ディザ法的要素と誤差拡散法的要素とを組み合わせたハーフトーン処理を行う技術が開示されている。   In a printing apparatus, dithering and error diffusion are widely known as halftone techniques for expressing gradation. Since the dither method and the error diffusion method have advantages and disadvantages, respectively, there has been a desire to perform halftone processing by combining a dither method element and an error diffusion method element. For example, in Patent Document 1 and Patent Document 2 below, the threshold value of the error diffusion method is periodically varied by using a dither mask of the systematic dither method, so that the dither method element and the error diffusion method are changed. A technique for performing halftone processing in combination with a target element is disclosed.

しかしながら、特許文献1や特許文献2の技術では、ハーフトーン処理の対象となる印刷画像データの特性に応じて、ディザ法的要素と誤差拡散法的要素の寄与度を制御することは困難であった。例えば、入力階調値に応じて、当該寄与度を制御すること、さらには、寄与度をなめらかに変化させることは困難であった。   However, with the technologies of Patent Document 1 and Patent Document 2, it is difficult to control the contributions of the dither element and the error diffusion element according to the characteristics of the print image data to be subjected to halftone processing. It was. For example, it is difficult to control the degree of contribution according to the input tone value, and to change the degree of contribution smoothly.

特開2001−352448号公報JP 2001-352448 A 特開2001−177722号公報JP 2001-177722 A

上述の問題の少なくとも一部を踏まえ、本発明が解決しようとする課題は、従来とは異なる方法で、ディザ的要素と誤差拡散法的要素とを取り入れたハーフトーン処理技術を提供することである。   In light of at least some of the problems described above, the problem to be solved by the present invention is to provide a halftoning technique that incorporates dithering and error diffusion elements in a different manner from the prior art. .

本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態又は適用例として実現することが可能である。
本発明の第1の実施形態として、所定の画像を表す画像データの印刷を行う印刷装置が提供される。この印刷装置は、前記画像データを入力する入力部と、前記画像データに基づいて、ドットの形成の有無を表すドットデータを生成するハーフトーン処理部と、前記生成されたドットデータを用いて、前記画像の印刷を行う印刷部とを備える。この印刷装置の前記ハーフトーン処理部は、前記入力された画像データの階調値であるデータ階調値と、複数の閾値の中の一つの閾値である第1の閾値との大小を比較する比較部と、前記データ階調値に応じて値が定められる第2の閾値を用いて、前記データ階調値に誤差拡散法を適用し、前記ドットデータを生成する誤差拡散部と、前記データ階調値が所定階調値以上であるか否かを判定する判定部とを備え、前記判定部により、データ階調値が所定階調値以上であると判定されれば、前記比較部の前記比較結果により前記ドット形成の有無を決定し、前記判定部により、データ階調値が所定階調値未満であると判定されれば、前記第2の閾値を用いた前記誤差拡散部により前記ドット形成の有無を決定する。
SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.
As a first embodiment of the present invention, printing apparatus is provided for printing of image data representing a predetermined image. The printing apparatus uses an input unit that inputs the image data, a halftone processing unit that generates dot data indicating the presence or absence of dot formation based on the image data, and the generated dot data. A printing unit that prints the image. The halftone processing unit of the printing apparatus compares a data gradation value that is a gradation value of the input image data with a first threshold that is one of a plurality of thresholds. An error diffusion unit that applies the error diffusion method to the data gradation value by using a comparison unit, a second threshold value determined according to the data gradation value, and generates the dot data; and the data gradation value and a determining unit to or greater than a predetermined tone value, by the determination unit, is determined data tone value and Ru der than predetermined gradation value lever, the comparison unit wherein the result of the comparison to determine the presence or absence of the dot formation of the by the determination unit, is determined data tone value and Ru der less than the predetermined gray level value lever, the error diffusion using the second threshold value The presence / absence of dot formation is determined by the unit.

[適用例1]所定の画像を表す画像データの印刷を行う印刷装置であって、
前記画像データを入力する入力部と、
前記画像データに基づいて、ドットの形成の有無を表すドットデータを生成するハーフトーン処理部と、
前記生成されたドットデータを用いて、前記画像の印刷を行う印刷部と
を備え、
前記ハーフトーン処理部は、
複数の閾値からなるディザマスクと、前記入力された画像データに関連する階調値である関連階調値とを比較する比較部と、
前記入力された画像データの階調値であるデータ階調値に基づいて、誤差拡散法により、前記ドットデータを生成する誤差拡散部と
を備え、
前記誤差拡散部は、前記比較部の比較結果に基づいて、前記誤差拡散法によるドットの形成のされやすさを制御する
印刷装置。
Application Example 1 A printing apparatus that prints image data representing a predetermined image,
An input unit for inputting the image data;
A halftone processing unit for generating dot data representing the presence or absence of dot formation based on the image data;
A printing unit that prints the image using the generated dot data; and
The halftone processing unit
A comparison unit that compares a dither mask composed of a plurality of threshold values with a related gradation value that is a gradation value related to the input image data;
An error diffusion unit that generates the dot data by an error diffusion method based on a data gradation value that is a gradation value of the input image data, and
The error diffusion unit is a printing apparatus that controls ease of dot formation by the error diffusion method based on a comparison result of the comparison unit.

かかる構成の印刷装置は、誤差拡散法によりドットデータを生成するに際して、ディザマスクと関連階調値との比較結果を用いて、誤差拡散法によるドットの形成のされやすさを制御する。つまり、仮にディザ法を用いたとした場合のドットの形成の有無の判断結果を用いて、誤差拡散法によるドットの形成のされやすさを制御する。したがって、ディザ法的要素と誤差拡散法的要素とを取り入れたハーフトーン処理が可能となる。なお、データ階調値には、画像データの階調値そのもののほか、任意の領域内の画素にドットを記録する割合である記録率の階調値を含む。また、関連階調値には、データ階調値のほか、データ階調値に対して所定値を増減した階調値を含む。   When the dot data is generated by the error diffusion method, the printing apparatus configured as described above uses the comparison result between the dither mask and the related gradation value to control the ease of dot formation by the error diffusion method. That is, the ease of dot formation by the error diffusion method is controlled using the determination result of the presence or absence of dot formation when the dither method is used. Therefore, halftone processing incorporating a dithering factor and an error diffusion factor is possible. The data gradation value includes not only the gradation value of the image data itself but also the gradation value of the recording rate that is the ratio of recording dots on pixels in an arbitrary area. In addition to the data gradation value, the related gradation value includes a gradation value obtained by increasing or decreasing a predetermined value with respect to the data gradation value.

[適用例2]適用例1記載の印刷装置であって、前記誤差拡散部は、前記比較部の比較結果が、前記関連階調値が前記ディザマスクの閾値以上である場合には、前記ドットの形成がされやすいように前記制御を行い、前記比較部の比較結果が、前記関連階調値が前記ディザマスクの閾値未満である場合には、前記ドットの形成がされにくいように前記制御を行う印刷装置。 Application Example 2 In the printing apparatus according to Application Example 1, in the error diffusion unit, when the comparison result of the comparison unit indicates that the related gradation value is equal to or greater than a threshold value of the dither mask, the dot The control is performed so that the dots are not easily formed when the comparison result of the comparison unit is less than the dither mask threshold. The printing device to perform.

かかる構成の印刷装置は、仮にディザ法を用いたとして、ドットを形成すると判断した場合に、誤差拡散法によりドットが形成されやすいように制御し、ディザ法を用いたとして、ドットを形成しないと判断した場合に、誤差拡散法によりドットが形成されにくいように制御する。いずれの制御によっても、単純な誤差拡散法によるドットデータと比べて、ドットの形成の有無が、ディザ法による結果に近づくことになるので、ディザ法的要素が強まる。したがって、ディザ法的要素と誤差拡散法的要素とを取り入れたハーフトーン処理が可能となる。しかも、ドットの形成のされやすさの制御の程度を適宜設定することで、ハーフトーン処理におけるディザ法的要素と誤差拡散法的要素との寄与度を、所望の程度に設定することができる。   If the printing apparatus having such a configuration uses the dither method and determines that dots are to be formed, control is performed so that dots are easily formed by the error diffusion method, and if the dither method is used, dots must be formed. If it is determined, control is performed so that dots are not easily formed by the error diffusion method. In any control, since the presence / absence of dot formation approaches the result by the dither method as compared with the dot data by the simple error diffusion method, the dither legal element is strengthened. Therefore, halftone processing incorporating a dithering factor and an error diffusion factor is possible. In addition, by appropriately setting the degree of control of the ease of dot formation, the degree of contribution between the dithering and error diffusion elements in the halftone process can be set to a desired degree.

[適用例3]前記誤差拡散部は、誤差拡散法におけるドット形成の有無の判断に用いる閾値である誤差拡散法用閾値を変化させることで、前記ドットの形成のされやすさを制御する適用例2記載の印刷装置。
かかる構成の印刷装置は、誤差拡散法用閾値を変化させるという簡単な構成で、誤差拡散法によるドットの形成のされやすさを制御することができる。
Application Example 3 The application example in which the error diffusion unit controls the ease with which the dots are formed by changing a threshold value for error diffusion method, which is a threshold value used for determining whether or not dots are formed in the error diffusion method. The printing apparatus according to 2.
The printing apparatus having such a configuration can control the ease of dot formation by the error diffusion method with a simple configuration in which the error diffusion method threshold value is changed.

[適用例4]前記誤差拡散部は、前記データ階調値の大きさに基づいて、前記ドットの形成のされやすさの制御の程度を変化させる適用例2または適用例3記載の印刷装置。 [Application Example 4] The printing apparatus according to Application Example 2 or Application Example 3, wherein the error diffusion unit changes a degree of control of the ease of formation of the dots based on the size of the data gradation value.

かかる構成の印刷装置は、データ階調値の大きさに基づいて、ドットの形成のされやすさの制御の程度を変化させるので、画像データの階調値に応じて、ディザ法的要素と誤差拡散法的要素との寄与度を変化させることができる。しかも、かかる寄与度は、画像データの任意の領域ごとに変化させることができる。その結果、画像データや印刷装置の特性に応じた良好な寄与度のドットデータを生成することができ、印刷画質を向上させることができる。   Since the printing apparatus having such a configuration changes the degree of control of the ease of dot formation based on the magnitude of the data gradation value, dithering factors and errors are determined according to the gradation value of the image data. The degree of contribution with the diffusion law element can be changed. In addition, the contribution can be changed for each arbitrary region of the image data. As a result, it is possible to generate dot data with a good contribution according to the image data and the characteristics of the printing apparatus, and to improve the print image quality.

[適用例5]前記誤差拡散部は、前記画像データのうちの、前記データ階調値が相対的に大きい所定の範囲にある高階調データに対しては、該データ階調値が相対的に小さい所定の範囲にある低階調データに対してよりも、前記ドットの形成のされやすさの制御の程度を大きくする適用例4記載の印刷装置。 [Application Example 5] The error diffusion unit is configured such that the data gradation value is relatively high for high gradation data in the predetermined range in which the data gradation value is relatively large in the image data. The printing apparatus according to application example 4, wherein the degree of control of the ease of dot formation is greater than for low gradation data in a small predetermined range.

かかる構成の印刷装置は、高階調データに対しては、低階調データに対してよりも、ドットの形成のされやすさの制御の程度を大きくするので、高階調側において、低階調側よりもディザ法的要素を強めることができる。したがって、低階調側では、誤差拡散法的要素によるメリットを得つつ、高階調側では、ディザ法的要素のメリットを得ることができる。つまり、誤差拡散法とディザ法との両方の長所を活かした印刷が可能となる。   The printing apparatus having such a configuration increases the degree of control of dot formation ease for high gradation data than for low gradation data. Rather than a dither legal element. Therefore, the merit of the error diffusion method element can be obtained on the low gradation side, and the advantage of the dither element can be obtained on the high gradation side. That is, printing that makes use of the advantages of both the error diffusion method and the dither method is possible.

[適用例6]前記誤差拡散部は、前記データ階調値の大きさに基づいて、前記ドットの形成のされやすさの制御の程度を段階的に変化させる適用例4または適用例5記載の印刷装置。
かかる構成の印刷装置は、ドットの形成のされやすさの制御の程度を、データ階調値の大きさに基づいて段階的に変化させるので、ディザ法的要素と誤差拡散法的要素との寄与度をデータ階調値に応じて滑らかに変化させることができる。その結果、印刷結果において、ディザ法的要素と誤差拡散法的要素との寄与度の変化が視認されにくいので、ディザ法的要素と誤差拡散法的要素の変化による印刷画質の低下を抑制することができる。
Application Example 6 According to Application Example 4 or Application Example 5, in which the error diffusion unit changes the degree of control of the ease of formation of the dots stepwise based on the size of the data gradation value. Printing device.
In the printing apparatus having such a configuration, the degree of control of the ease of dot formation is changed stepwise based on the data gradation value, so that the contribution of the dithering and error diffusion elements The degree can be changed smoothly according to the data gradation value. As a result, the change in the contribution between the dither legal element and the error diffusion legal element is difficult to see in the print result, so that the deterioration of the print image quality due to the change of the dither legal element and the error diffusion legal element is suppressed. Can do.

[適用例7]前記誤差拡散部は、前記データ階調値の少なくとも一部の範囲において、該データ階調値が大きくなるに従って、前記ドットの形成のされやすさの制御の程度が大きくなるように、前記制御を行う適用例4ないし適用例6のいずれか記載の印刷装置。
かかる構成の印刷装置は、データ階調値の少なくとも一部の範囲において、階調値が大きくなるに従って、ディザ法的要素を強めることができる。したがって、当該範囲において、低階調側では、誤差拡散法的要素によるメリットを得つつ、高階調側では、ディザ法的要素のメリットを得ることができる。つまり、誤差拡散法とディザ法との両方の長所を活かした印刷が可能となる。また、データ階調値が大きくなるに従って、ドットの形成のされやすさの制御の程度が大きくなるので、ディザ法的要素と誤差拡散法的要素との寄与度をデータ階調値に応じて滑らかに変化させることができる。
Application Example 7 In the error diffusion unit, the degree of control of the ease of dot formation increases as the data gradation value increases in at least a part of the range of the data gradation value. A printing apparatus according to any one of Application Example 4 to Application Example 6 in which the control is performed.
The printing apparatus having such a configuration can increase the dithering factor as the gradation value increases in at least a partial range of the data gradation value. Therefore, in this range, the merit of the error diffusion method element can be obtained on the low gradation side, and the advantage of the dither method element can be obtained on the high gradation side. That is, printing that makes use of the advantages of both the error diffusion method and the dither method is possible. Also, as the data gradation value increases, the degree of control of the ease of dot formation increases, so the contribution of the dithering and error diffusion elements is smoothed according to the data gradation value. Can be changed.

[適用例8]前記誤差拡散部は、前記データ階調値が第1の範囲にある場合に、前記ドットの形成のされやすさの制御を禁止する適用例4ないし適用例7のいずれか記載の印刷装置。
かかる構成の印刷装置は、データ階調値が第1の範囲にある場合には、誤差拡散法によるドットの形成のされやすさの制御を行わないので、誤差拡散法的要素のみによってドットデータを形成することができる。したがって、誤差拡散法的要素のみでドットデータを形成した方が、印刷画質が向上する階調領域がある場合に、当該領域においても印刷画質が良好なドットデータを生成することができる。
Application Example 8 Any one of Application Examples 4 to 7 in which the error diffusion unit prohibits control of the ease of formation of the dots when the data gradation value is in the first range. Printing device.
When the data gradation value is in the first range, the printing apparatus having such a configuration does not control the ease of dot formation by the error diffusion method. Can be formed. Therefore, when there is a gradation region where the print image quality is improved when dot data is formed using only the error diffusion method element, it is possible to generate dot data with good print image quality even in the region.

[適用例9]前記ハーフトーン処理部は、前記データ階調値が第2の範囲にある場合に、前記誤差拡散部による前記ドットデータの生成を禁止すると共に、前記比較部の比較結果を用いたディザ法により、前記ドットデータを生成する適用例4ないし適用例8のいずれか記載の印刷装置。 Application Example 9 When the data tone value is in the second range, the halftone processing unit prohibits the generation of the dot data by the error diffusion unit and uses the comparison result of the comparison unit. The printing apparatus according to any one of Application Examples 4 to 8, wherein the dot data is generated by a dither method.

かかる構成の印刷装置は、データ階調値が第2の範囲にある場合には、誤差拡散部によるドットデータの生成を禁止し、ディザ法によりドットデータを生成するので、ディザ法的要素のみでドットデータを生成することができる。したがって、ディザ法的要素のみでドットデータを形成した方が、印刷画質が向上する階調領域がある場合に、当該領域においても印刷画質が良好なドットデータを生成することができる。また、ディザ法では、誤差拡散法のように拡散誤差を演算する必要がないので、ハーフトーン処理を高速化することができる。   In the printing apparatus having such a configuration, when the data gradation value is in the second range, generation of dot data by the error diffusion unit is prohibited, and dot data is generated by the dither method. Dot data can be generated. Therefore, when there is a gradation area where the print image quality is improved when dot data is formed using only the dither element, dot data with good print image quality can be generated even in the area. Further, in the dither method, unlike the error diffusion method, it is not necessary to calculate a diffusion error, so that halftone processing can be speeded up.

[適用例10]前記第2の範囲は、前記データ階調値の全範囲を2つの範囲に分割した場合の、相対的に値が大きい側の範囲である適用例9記載の印刷装置。
かかる構成の印刷装置は、データ階調値が相対的に大きい側の範囲において、ディザ法的要素のみによってドットデータを生成する。印刷画質の粒状性の観点からは、誤差拡散法がディザ法よりも優れるが、高階調側では、印刷画質の粒状性が目立ちにくいので、ディザ法的要素のみでドットデータを生成しても、粒状性の悪化は抑制できる。したがって、印刷画質の低下を抑制しつつ、ハーフトーン処理を高速化することができる。
Application Example 10 The printing apparatus according to Application Example 9, wherein the second range is a range having a relatively large value when the entire range of the data gradation value is divided into two ranges.
The printing apparatus having such a configuration generates dot data using only dithering elements in a range where the data gradation value is relatively large. The error diffusion method is superior to the dither method from the viewpoint of the granularity of the print image quality, but since the granularity of the print image quality is less noticeable on the high gradation side, even if dot data is generated using only the dither legal element, The deterioration of graininess can be suppressed. Therefore, it is possible to speed up the halftone process while suppressing a decrease in print image quality.

[適用例11]前記関連階調値は、前記データ階調値である適用例2ないし適用例10のいずれか記載の印刷装置。
かかる構成の印刷装置において、関連階調値は、入力された画像データの階調値であるから、関連階調値を算出するための特別な演算を行うことがない。したがって、ハーフトーン処理を簡単な構成とし、処理を高速化することができる。
Application Example 11 The printing apparatus according to any one of Application Example 2 to Application Example 10, wherein the related gradation value is the data gradation value.
In the printing apparatus having such a configuration, since the related gradation value is the gradation value of the input image data, no special calculation for calculating the related gradation value is performed. Therefore, halftone processing can be simplified and the processing speed can be increased.

[適用例12]前記関連階調値は、前記データ階調値に対して、正の数の所定値だけ増加、または、減少させた階調値を含む適用例2ないし適用例10のいずれか記載の印刷装置。
かかる構成の印刷装置において、関連階調値は、入力された画像データの階調値を所定値だけ増減した階調値としてもよい。こうすれば、比較部の比較結果を制御することができるので、ディザマスクが有するドット発生パターンの反映の程度を制御することができる。その結果、ディザ法的要素と誤差拡散法的要素の寄与度の制御をより柔軟に行うことができる。
Application Example 12 Any one of Application Examples 2 to 10 in which the related gradation value includes a gradation value that is increased or decreased by a predetermined positive number with respect to the data gradation value. The printing apparatus as described.
In the printing apparatus having such a configuration, the related gradation value may be a gradation value obtained by increasing or decreasing the gradation value of the input image data by a predetermined value. In this way, since the comparison result of the comparison unit can be controlled, the degree of reflection of the dot generation pattern of the dither mask can be controlled. As a result, it is possible to more flexibly control the contributions of the dither legal element and the error diffusion legal element.

[適用例13]適用例12記載の印刷装置であって、前記関連階調値は、前記データ階調値に対して、前記正の数の所定値だけ増加させた階調値であり、前記誤差拡散部は、前記比較部の比較結果が、前記関連階調値が前記ディザマスクの閾値未満である場合には、前記ドットの形成がされにくいように、または、前記ドットの形成がされないように前記制御を行う印刷装置。 [Application Example 13] The printing apparatus according to Application Example 12, wherein the related gradation value is a gradation value obtained by increasing the data gradation value by the positive predetermined value, The error diffusion unit may prevent the dots from being formed or the dots from being formed when the comparison result of the comparison unit indicates that the related gradation value is less than the threshold value of the dither mask. A printing apparatus that performs the above control.

かかる構成の印刷装置は、関連階調値を正の数の所定値だけ増加させた階調値とするので、関連階調値をデータ階調値とする場合と比べて、比較部の比較結果が、関連階調値がディザマスクの閾値以上となる場合(第1の場合ともいう)が多くなる。第1の場合には、誤差拡散法によってドットの形成がされやすいように制御される。一方で、当該印刷装置は、比較部の比較結果が、関連階調値がディザマスクの閾値未満である場合(第2の場合ともいう)には、誤差拡散法によってドットの形成がされにくいように、または、ドットの形成がされないように制御する。したがって、第1の場合となった画素のうちから、ドットが形成される画素が決定される可能性が高くなり、ディザマスクが有するドット発生パターンに近いドットデータを生成することができる。また、第2の場合に、ドットの形成がされないように制御すれば、第1の場合となった画素のうちから、必ずドットが形成される画素が決定されることとなる。したがって、ディザマスクが有するドット発生パターンにより近いドットデータを生成することができる。   Since the printing apparatus having such a configuration uses the gradation value obtained by increasing the related gradation value by a predetermined positive number, the comparison result of the comparison unit is compared with the case where the related gradation value is the data gradation value. However, there are many cases where the related gradation value is equal to or greater than the threshold of the dither mask (also referred to as the first case). In the first case, control is performed so that dots are easily formed by the error diffusion method. On the other hand, in the printing apparatus, when the comparison result of the comparison unit indicates that the related gradation value is less than the dither mask threshold (also referred to as the second case), dots are hardly formed by the error diffusion method. In addition, control is performed so that dots are not formed. Therefore, it is highly likely that a pixel in which a dot is to be formed is determined from among the pixels in the first case, and it is possible to generate dot data that is close to the dot generation pattern of the dither mask. In the second case, if control is performed so that dots are not formed, the pixels in which dots are always formed are determined from the pixels in the first case. Therefore, dot data closer to the dot generation pattern of the dither mask can be generated.

[適用例14]前記ディザマスクは、ブルーノイズ特性を有する適用例1ないし適用例13のいずれか記載の印刷装置。
かかる構成の印刷装置において、ディザマスクは、ブルーノイズ特性を有するものとしてもよい。こうすれば、印刷画質の粒状性に優れたディザ法的要素をハーフトーン処理に取り入れることができる。また、ブルーノイズ特性を有することで、ディザ法的要素が印刷画質の粒状性に優れるので、同じく印刷画質の粒状性に優れた誤差拡散法的要素との寄与度の変化をよりスムーズに行うことができる。
[Application Example 14] The printing apparatus according to any one of Application Examples 1 to 13, wherein the dither mask has a blue noise characteristic.
In the printing apparatus having such a configuration, the dither mask may have a blue noise characteristic. In this way, it is possible to incorporate a dithering element with excellent print image quality into halftone processing. In addition, because of the blue noise characteristics, the dithering element has excellent print quality graininess, so the change of contribution with the error diffusion method element that also has excellent print quality graininess can be made more smoothly. Can do.

また、本発明は、印刷装置としての構成のほか、印刷データ生成装置、印刷装置で印刷する印刷方法、印刷用プログラム、当該プログラムを記録した記憶媒体等としても実現することができる。   In addition to the configuration as a printing apparatus, the present invention can also be realized as a print data generation apparatus, a printing method for printing with the printing apparatus, a printing program, a storage medium storing the program, and the like.

本発明の第1実施例としてのプリンター20の概略構成図である。1 is a schematic configuration diagram of a printer 20 as a first embodiment of the present invention. プリンター20における印刷処理の流れを示すフローチャートである。3 is a flowchart showing a flow of printing processing in the printer 20. 第1実施例としてのハーフトーン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the halftone process as 1st Example. 第1実施例としての誤差拡散閾値テーブル62の特性を示す説明図である。It is explanatory drawing which shows the characteristic of the error diffusion threshold value table 62 as 1st Example. 第2実施例としての誤差拡散閾値テーブル62の特性を示す説明図である。It is explanatory drawing which shows the characteristic of the error diffusion threshold value table 62 as 2nd Example. 第3実施例としての誤差拡散閾値テーブル62の特性を示す説明図である。It is explanatory drawing which shows the characteristic of the error diffusion threshold value table 62 as 3rd Example. 第4実施例としての誤差拡散閾値テーブル62の特性を示す説明図である。It is explanatory drawing which shows the characteristic of the error diffusion threshold value table 62 as 4th Example. 第5実施例としてのハーフトーン処理のフローチャートである。It is a flowchart of the halftone process as 5th Example. 第5実施例としてのハーフトーン処理の変形例を示すフローチャートである。It is a flowchart which shows the modification of the halftone process as 5th Example. 第6実施例としてのハーフトーン処理のフローチャートである。It is a flowchart of the halftone process as 6th Example. 第6実施例としてのハーフトーン処理の変形例を示すフローチャートである。It is a flowchart which shows the modification of the halftone process as 6th Example.

A.第1実施例:
本発明の第1実施例について説明する。
A−1.装置構成:
図1は、本発明の第1実施例としてのプリンター20の概略構成図である。プリンター20は、双方向印刷を行うシリアル式インクジェットプリンタであり、図示するように、プリンター20は、紙送りモータ74によって印刷媒体Pを搬送する機構と、キャリッジモータ70によってキャリッジ80をプラテン75の軸方向に往復動させる機構と、キャリッジ80に搭載された印刷ヘッド90を駆動してインクの吐出及びドット形成を行う機構と、これらの紙送りモータ74,キャリッジモータ70,印刷ヘッド90及び操作パネル99との信号のやり取りを司る制御ユニット30とから構成されている。
A. First embodiment:
A first embodiment of the present invention will be described.
A-1. Device configuration:
FIG. 1 is a schematic configuration diagram of a printer 20 as a first embodiment of the present invention. The printer 20 is a serial inkjet printer that performs bi-directional printing. As illustrated, the printer 20 includes a mechanism that transports the print medium P by a paper feed motor 74 and a carriage 80 that moves the carriage 80 by the carriage motor 70. A mechanism for reciprocating in the direction, a mechanism for driving the print head 90 mounted on the carriage 80 to discharge ink and forming dots, the paper feed motor 74, the carriage motor 70, the print head 90, and the operation panel 99. The control unit 30 is responsible for exchanging signals with the control unit 30.

キャリッジ80をプラテン75の軸方向に往復動させる機構は、プラテン75の軸と平行に架設され、キャリッジ80を摺動可能に保持する摺動軸73と、キャリッジモータ70との間に無端の駆動ベルト71を張設するプーリ72等から構成されている。   A mechanism for reciprocating the carriage 80 in the axial direction of the platen 75 is installed in parallel with the axis of the platen 75, and is driven endlessly between the slide shaft 73 that holds the carriage 80 slidably and the carriage motor 70. A pulley 72 and the like for stretching the belt 71 are included.

キャリッジ80には、カラーインクとして、シアンインクC、マゼンタインクM、イエロインクY、ブラックインクK、ライトシアンインクLc、ライトマゼンタインクLmをそれぞれ収容したカラーインク用のインクカートリッジ82〜87が搭載される。キャリッジ80の下部の印刷ヘッド90には、上述の各色のカラーインクに対応するノズル列が形成されている。キャリッジ80にこれらのインクカートリッジ82〜87を上方から装着すると、各カートリッジから印刷ヘッド90へのインクの供給が可能となる。   On the carriage 80, ink cartridges 82 to 87 for color ink respectively containing cyan ink C, magenta ink M, yellow ink Y, black ink K, light cyan ink Lc, and light magenta ink Lm are mounted as color inks. . In the print head 90 below the carriage 80, nozzle rows corresponding to the above-described color inks are formed. When these ink cartridges 82 to 87 are mounted on the carriage 80 from above, ink can be supplied from each cartridge to the print head 90.

制御ユニット30は、CPU40や、ROM51、RAM52、EEPROM60がバスで相互に接続されて構成されている。制御ユニット30は、ROM51やEEPROM60に記憶されたプログラムをRAM52に展開し、実行することにより、プリンター20の動作全般を制御するほか、入力部41、ハーフトーン処理部42、印刷部46としても機能する。ハーフトーン処理部42の機能は、比較部43、誤差拡散部44としての機能を含んでいる。これらの機能部の詳細については後述する。   The control unit 30 includes a CPU 40, a ROM 51, a RAM 52, and an EEPROM 60 that are connected to each other via a bus. The control unit 30 develops a program stored in the ROM 51 or the EEPROM 60 in the RAM 52 and executes it to control the overall operation of the printer 20, and also functions as the input unit 41, halftone processing unit 42, and printing unit 46. To do. The functions of the halftone processing unit 42 include functions as a comparison unit 43 and an error diffusion unit 44. Details of these functional units will be described later.

EEPROM60には、ディザマスク61と、誤差拡散閾値テーブル62とが記憶されている。ディザマスク61は、組織的ディザ法によるハーフトーン処理に用いるものであり、複数の閾値により構成される。ディザマスク61は、本実施例では、いわゆるブルーノイズ特性を備えている。   In the EEPROM 60, a dither mask 61 and an error diffusion threshold table 62 are stored. The dither mask 61 is used for halftone processing by a systematic dither method, and includes a plurality of threshold values. In this embodiment, the dither mask 61 has a so-called blue noise characteristic.

また、本実施例においては、ディザマスク61は、所定のドット形成特性を有している。すなわち、両方向印刷におけるキャリッジ80の往動で形成されるドット群のドットパターンと、復動で形成されるドット群のドットパターンと、これらを併せた全体のドット群のドットパターンいずれもが、良好なドット分散性を有する特性を有している。かかる技術は、例えば、特開2007−15359号公報に記載されている。なお、ディザマスク61は、上述の往復動ごとのグループに代えて、または、加えて、キャリッジ80の複数回の主走査のうちのいずれの主走査でドットが形成されるかを示す主走査グループごとに、良好なドット分散性が得られるものであってもよい。   In this embodiment, the dither mask 61 has predetermined dot formation characteristics. That is, both the dot pattern of the dot group formed by the forward movement of the carriage 80 in bidirectional printing, the dot pattern of the dot group formed by the backward movement, and the dot pattern of the entire dot group combining these are good. It has a characteristic of having excellent dot dispersibility. Such a technique is described in, for example, Japanese Patent Application Laid-Open No. 2007-15359. It should be noted that the dither mask 61 is a main scanning group that indicates in which main scanning of a plurality of main scannings of the carriage 80 dots are formed instead of or in addition to the group for each reciprocation described above. In each case, good dot dispersibility may be obtained.

ドット分散性が良好であるとは、ドットパターンがブルーノイズ特性やグリーンノイズ特性を有することとして特定することができる。あるいは、複数のグループの各々に属する画素に設定されているディザマスクの閾値の空間周波数分布の各々と、印刷画像の空間周波数分布とが相互に正の相関係数を有すること、望ましくは、0.7以上の相関係数を有することとして特定することができる。誤差拡散閾値テーブル62は、誤差拡散法におけるドットのON/OFFの判断に用いる閾値が記憶されたテーブルであり、その詳細は後述する。   Good dot dispersibility can be specified as a dot pattern having blue noise characteristics or green noise characteristics. Alternatively, each of the spatial frequency distributions of the threshold values of the dither mask set for the pixels belonging to each of the plurality of groups and the spatial frequency distribution of the print image have a positive correlation coefficient, preferably 0. It can be specified as having a correlation coefficient of .7 or more. The error diffusion threshold value table 62 is a table that stores threshold values used for determination of dot ON / OFF in the error diffusion method, and details thereof will be described later.

制御ユニット30には、メモリカードスロット98が接続されており、メモリカードスロット98に挿入したメモリカードMCから画像データORGを読み込んで入力することができる。本実施例においては、メモリカードMCから入力する画像データORGは、レッド(R)、グリーン(G)、ブルー(B)の3色の色成分からなるデータである。   A memory card slot 98 is connected to the control unit 30, and image data ORG can be read and input from the memory card MC inserted into the memory card slot 98. In this embodiment, the image data ORG input from the memory card MC is data composed of three color components of red (R), green (G), and blue (B).

以上のようなハードウェア構成を有するプリンター20は、キャリッジモータ70を駆動することによって、印刷ヘッド90を印刷媒体Pに対して主走査方向に往復動させ、また、紙送りモータ74を駆動することによって、印刷媒体Pを副走査方向に移動させる。制御ユニット30は、キャリッジ80が往復動する動き(主走査)や、印刷媒体の紙送りの動き(副走査)に合わせて、印刷データに基づいて適切なタイミングでノズルを駆動することにより、印刷媒体P上の適切な位置に適切な色のインクドットを形成する。こうすることによって、プリンター20は、印刷媒体P上にメモリカードMCから入力したカラー画像を印刷することが可能となっている。   The printer 20 having the above hardware configuration drives the carriage motor 70 to reciprocate the print head 90 with respect to the print medium P in the main scanning direction, and also drives the paper feed motor 74. Thus, the print medium P is moved in the sub-scanning direction. The control unit 30 performs printing by driving the nozzles at an appropriate timing based on the print data in accordance with the movement of the carriage 80 in the reciprocating motion (main scanning) and the paper feeding movement of the printing medium (sub scanning). Ink dots of appropriate colors are formed at appropriate positions on the medium P. By doing so, the printer 20 can print the color image input from the memory card MC on the print medium P.

A−2.印刷処理:
プリンター20における印刷処理について説明する。図2は、プリンター20における印刷処理の流れを示すフローチャートである。ここでの印刷処理は、ユーザが操作パネル99等を用いて、メモリカードMCに記憶された所定の画像の印刷指示操作を行うことで開始される。印刷処理を開始すると、CPU40は、まず、入力部41の処理として、メモリカードスロット98を介してメモリカードMCから印刷対象であるRGB形式の画像データORGを読み込んで入力する(ステップS110)。
A-2. Printing process:
A printing process in the printer 20 will be described. FIG. 2 is a flowchart showing the flow of printing processing in the printer 20. The printing process here is started when the user performs an instruction to print a predetermined image stored in the memory card MC using the operation panel 99 or the like. When printing processing is started, the CPU 40 first reads and inputs RGB format image data ORG to be printed from the memory card MC via the memory card slot 98 as processing of the input unit 41 (step S110).

画像データORGを入力すると、CPU40は、EEPROM60に記憶されたルックアップテーブル(図示せず)を参照して、画像データORGについて、RGB形式をCMYKLcLm形式に色変換する(ステップS120)。   When the image data ORG is input, the CPU 40 refers to a look-up table (not shown) stored in the EEPROM 60 and performs color conversion from RGB format to CMYKLcLm format for the image data ORG (step S120).

色変換処理を行うと、CPU40は、ハーフトーン処理部42の処理として、画像データを各色のドットのON/OFFデータに変換するハーフトーン処理を行う(ステップS130)。ここでのハーフトーン処理の詳細については後述する。なお、ハーフトーン処理は、ドットのON/OFFの2値化処理に限らず、大ドット及び小ドットのON/OFFなど、多値化処理であってもよい。また、ステップS130に供する画像データは、解像度変換処理やスムージング処理などの画像処理が施されたものであってもよい。   When the color conversion process is performed, the CPU 40 performs a halftone process for converting the image data into ON / OFF data of dots of each color as a process of the halftone processing unit 42 (step S130). Details of the halftone process will be described later. The halftone process is not limited to the binarization process of dot ON / OFF, but may be a multi-value process such as ON / OFF of large dots and small dots. Further, the image data provided to step S130 may be subjected to image processing such as resolution conversion processing or smoothing processing.

ハーフトーン処理を行うと、CPU40は、プリンター20のノズル配置や紙送り量などに合わせて、1回の主走査単位で印画するドットパターンデータに並び替えるインターレース処理を行う(ステップS150)。インターレース処理を行うと、CPU40は、印刷部46の処理として、印刷ヘッド90、キャリッジモータ70、モータ74等を駆動させて、印刷を実行する(ステップS160)。   When the halftone processing is performed, the CPU 40 performs interlace processing for rearranging the dot pattern data to be printed in one main scanning unit in accordance with the nozzle arrangement of the printer 20 and the paper feed amount (step S150). When the interlace process is performed, the CPU 40 drives the print head 90, the carriage motor 70, the motor 74, and the like as the process of the printing unit 46, and executes printing (step S160).

A−3.ハーフトーン処理の詳細:
上述したハーフトーン処理(ステップS130)の詳細について図3を用いて説明する。図示するように、この処理が開始されると、CPU40は、まず、ステップS120で色変換処理が行われた画像データについて、注目画素位置の座標データn(x,y)と、注目画素データDnとを取得する(ステップS131)。
A-3. Details of halftoning:
Details of the above-described halftone process (step S130) will be described with reference to FIG. As shown in the figure, when this process is started, the CPU 40 first sets the coordinate data n (x, y) of the target pixel position and the target pixel data Dn for the image data subjected to the color conversion process in step S120. Are acquired (step S131).

注目画素位置の座標データn(x,y)と注目画素データDnとを取得すると、CPU40は、比較部43の処理として、仮ディザ処理を行う(ステップS132)。ここでの仮ディザ処理とは、注目画素データDnの階調値と、EEPROM60に記憶されたディザマスク61を構成する複数の閾値のうちの、注目画素データDnに対応する閾値THn_dの値との大小関係を比較する処理である。この処理は、形式的には、通常行われるディザ法によるドットのON/OFF判断の処理と同一の処理である。実質的には、通常のディザ法では、注目画素データDnの階調値が閾値THn_dの値以上である場合には、ドットをONにすると判断し、注目画素データDnの階調値が閾値THn_dの値未満である場合には、ドットをOFFにすると判断するが、本実施例の仮ディザ処理は、後述する誤差拡散法によってドットのON/OFFを決定するための前処理、具体的には、誤差拡散法の閾値を決定するための処理である点が相違している。   When the coordinate data n (x, y) of the target pixel position and the target pixel data Dn are acquired, the CPU 40 performs a temporary dither process as the process of the comparison unit 43 (step S132). The temporary dither processing here refers to the gradation value of the target pixel data Dn and the value of the threshold value THn_d corresponding to the target pixel data Dn among the plurality of threshold values constituting the dither mask 61 stored in the EEPROM 60. This is a process of comparing the magnitude relationship. This processing is formally the same as the processing for determining dot ON / OFF by the dither method that is normally performed. In practice, in the normal dither method, when the gradation value of the target pixel data Dn is equal to or greater than the threshold value THn_d, it is determined that the dot is turned on, and the gradation value of the target pixel data Dn is the threshold value THn_d. If the value is less than the value, it is determined that the dot is turned OFF. However, the provisional dither processing of this embodiment is a pre-processing for determining ON / OFF of the dot by an error diffusion method described later, specifically, The difference is that this is a process for determining the threshold value of the error diffusion method.

仮ディザ処理の結果、注目画素データDnの階調値が閾値THn_dの値以上であれば(ステップS132:YES)、誤差拡散法に用いる閾値THeを低位閾値THe_Lに設定する(ステップS133)。一方、注目画素データDnの階調値が閾値THn_dの値未満であれば(ステップS132:NO)、誤差拡散法に用いる閾値THeを高位閾値THe_Hに設定する(ステップS134)。このように、本実施例においては、誤差拡散法に用いる閾値THeを仮ディザ処理の結果に基づいて変化させる構成としている。かかる閾値THeの設定は、EEPROM60に記憶された誤差拡散閾値テーブル62を参照して行われる。   If the gradation value of the target pixel data Dn is greater than or equal to the threshold value THn_d as a result of the temporary dither processing (step S132: YES), the threshold value THe used for the error diffusion method is set to the lower threshold value THe_L (step S133). On the other hand, if the gradation value of the target pixel data Dn is less than the threshold value THn_d (step S132: NO), the threshold value THe used for the error diffusion method is set to the high threshold value THe_H (step S134). As described above, in this embodiment, the threshold value THe used in the error diffusion method is changed based on the result of the temporary dither process. The threshold THe is set with reference to the error diffusion threshold table 62 stored in the EEPROM 60.

誤差拡散閾値テーブル62の具体例を概念的に図4に示す。図示するように、誤差拡散閾値テーブル62では、注目画素データDnの階調値(ここでは0〜255)と、低位閾値THe_L及び高位閾値THe_Hとが、それぞれ対応付けられている。図中に示す閾値THe_Nは、通常の誤差拡散法で用いられる閾値の例を参考として表示するものであり、この例では、閾値THe_Nは、注目画素データDnの階調によらず一定値127.5となっている。   A specific example of the error diffusion threshold table 62 is conceptually shown in FIG. As shown in the drawing, in the error diffusion threshold table 62, the gradation value (0 to 255 in this case) of the target pixel data Dn is associated with the low threshold THe_L and the high threshold THe_H, respectively. The threshold value THe_N shown in the figure is displayed with reference to an example of the threshold value used in the normal error diffusion method. In this example, the threshold value THe_N is a constant value 127.N regardless of the gradation of the target pixel data Dn. 5

図4に示す例では、高位閾値THe_Hは、注目画素データDnの階調値が0の場合に値127.5をとり、階調値が0から大きくなるに従って大きくなり、最終的には、階調値が255の場合に値207.5となる。低位閾値THe_Lは、注目画素データDnの階調値が0の場合には、高位閾値THe_Hと同じ値127.5をとり、階調値が0から大きくなるに従って小さくなり、階調値が255の場合に値47.5となる。   In the example shown in FIG. 4, the high threshold THe_H takes a value of 127.5 when the gradation value of the pixel-of-interest data Dn is 0, and increases as the gradation value increases from 0. When the tone value is 255, the value is 207.5. The lower threshold THe_L takes the same value 127.5 as the higher threshold THe_H when the pixel value Dn of the pixel-of-interest data Dn is 0, and decreases as the gradation value increases from 0, and the gradation value is 255. In this case, the value is 47.5.

換言すれば、高位閾値THe_Hと低位閾値THe_Lとの差分(以下、閾値差分ΔTHeともいう)は、階調値が0の場合に値0であり、階調値が大きくなるに従って大きくなり、階調値が255の場合に値80となる。つまり、図4の例では、誤差拡散閾値テーブル62は、階調値の全範囲に亘って、階調値が大きいほど閾値差分ΔTHeが大きくなるように(ここでは正比例の関係に)設定されている。このように、高位閾値THe_Hと低位閾値THe_Lとの大小関係は、互いの値が等しいか、高位閾値THe_Hが低位閾値THe_Lよりも相対的に大きくなるように設定される。ただし、高位閾値THe_Hと低位閾値THe_Lとが全ての階調値において等しい場合は除かれる。なお、階調値ごとの高位閾値THe_H及び低位閾値THe_Lの値は、かかる大小関係が保持されていれば、いかようにも設定することが可能である。なお、本実施例では、テーブルを参照することにより、階調値に応じた高位閾値THe_H及び低位閾値THe_Lを求める構成としたが、関数により求めてもよい。   In other words, the difference between the high threshold THe_H and the low threshold THe_L (hereinafter also referred to as threshold difference ΔTHe) is 0 when the gradation value is 0, and increases as the gradation value increases. When the value is 255, the value is 80. That is, in the example of FIG. 4, the error diffusion threshold value table 62 is set so that the threshold value difference ΔTHe increases as the gradation value increases over the entire range of gradation values (in this case, in a directly proportional relationship). Yes. Thus, the magnitude relationship between the high threshold THe_H and the low threshold THe_L is set such that the mutual values are equal or the high threshold THe_H is relatively larger than the low threshold THe_L. However, the case where the high threshold THe_H and the low threshold THe_L are the same in all gradation values is excluded. Note that the values of the high threshold THe_H and the low threshold THe_L for each gradation value can be set in any way as long as such a magnitude relationship is maintained. In this embodiment, the high threshold value THe_H and the low threshold value THe_L corresponding to the gradation value are obtained by referring to the table, but may be obtained by a function.

ここで説明を図3のハーフトーン処理に戻す。誤差拡散閾値テーブル62を参照して閾値THeを設定すると、CPU40は、注目画素データDnの階調値に、別途用意した誤差バッファに記憶された拡散誤差Ednを加算する(ステップS135)。ここで、拡散誤差Ednについては、後述するステップS139において算出されるものであり、その内容は後述する。   Here, the description returns to the halftone process of FIG. When the threshold value THe is set with reference to the error diffusion threshold value table 62, the CPU 40 adds the diffusion error Edn stored in the separately prepared error buffer to the gradation value of the target pixel data Dn (step S135). Here, the diffusion error Edn is calculated in step S139 described later, and the content thereof will be described later.

注目画素データDnの階調値に拡散誤差Ednを加算すると、CPU40は、拡散誤差Ednを加算した注目画素データDnの階調値と、ステップS133またはステップS134で設定した閾値THeとを比較する(ステップS136)。その結果、拡散誤差Ednを加算した注目画素データDnの階調値が閾値THe以上であれば(ステップS136:YES)、注目画素のドットをONに決定し(ステップS137)、拡散誤差Ednを加算した注目画素データDnの階調値が閾値THe未満であれば(ステップS136:NO)、注目画素のドットをOFFに決定する(ステップS138)。   When the diffusion error Edn is added to the gradation value of the pixel-of-interest data Dn, the CPU 40 compares the gradation value of the pixel-of-interest data Dn added with the diffusion error Edn with the threshold value THe set in step S133 or step S134 ( Step S136). As a result, if the gradation value of the target pixel data Dn to which the diffusion error Edn is added is equal to or greater than the threshold value THe (step S136: YES), the dot of the target pixel is determined to be ON (step S137), and the diffusion error Edn is added. If the gradation value of the target pixel data Dn is less than the threshold value THe (step S136: NO), the dot of the target pixel is determined to be OFF (step S138).

ドットのON/OFFを決定すると、CPU40は、2値化誤差Enと拡散誤差Ednとを算出する(ステップS139)。2値化誤差Enとは、拡散誤差Ednを加算した注目画素データDnの階調値とドットのON/OFF結果(ここでは階調値255または0)との差分である。拡散誤差Ednとは、上記ステップS135において注目画素データDnの階調値に加算する誤差である。本実施例では、2値化誤差Enを、ドットのON/OFFを未決定の周辺画素である、注目画素の右隣の画素に対して7/16、左下の画素に対して3/16、下の画素に対して5/16、右下の画素に対して1/16の割合で、拡散誤差Ednとして配分するものとした。こうして算出された拡散誤差Ednは、誤差バッファに格納される。   When the dot ON / OFF is determined, the CPU 40 calculates a binarization error En and a diffusion error Edn (step S139). The binarization error En is a difference between the tone value of the target pixel data Dn to which the diffusion error Edn is added and the dot ON / OFF result (the tone value 255 or 0 in this case). The diffusion error Edn is an error that is added to the gradation value of the target pixel data Dn in step S135. In this embodiment, the binarization error En is set to 7/16 for the pixel adjacent to the right of the pixel of interest, which is a peripheral pixel for which ON / OFF of the dot has not been determined, and 3/16 for the pixel on the lower left. The diffusion error Edn is distributed at a ratio of 5/16 for the lower pixel and 1/16 for the lower right pixel. The diffusion error Edn calculated in this way is stored in the error buffer.

かかるステップS135〜S139の処理は、誤差拡散法によるハーフトーン処理であり、誤差拡散部44の処理として実行される。誤差拡散法については、周知の技術であるため、詳細な説明は省略するが、各画像データの量子化誤差を周囲の画像データに所定の配分比率で加算しながら、各画像データと所定の閾値とを比較して各画像データを量子化する手法である。上述の例では、ステップS135〜S139は、ドットのON/OFFのみを決定する2値化処理としたが、大ドット及び小ドットのON/OFFを決定するなど、多値化処理を行ってもよい。   The processing in steps S135 to S139 is halftone processing by an error diffusion method, and is executed as processing by the error diffusion unit 44. Since the error diffusion method is a well-known technique, a detailed description thereof is omitted, but each image data and a predetermined threshold are added while adding the quantization error of each image data to the surrounding image data at a predetermined distribution ratio. And quantizing each image data. In the above example, steps S135 to S139 are binarization processing that determines only ON / OFF of dots, but even if multilevel processing such as determination of ON / OFF of large dots and small dots is performed. Good.

そして、2値化誤差En及び拡散誤差Ednを算出すると、CPU40は、全ての画素を注目画素として上記ステップS131〜S139の処理を繰り返す(ステップS140)。こうして、ステップS130のハーフトーン処理は終了する。   When the binarization error En and the diffusion error Edn are calculated, the CPU 40 repeats the processes of steps S131 to S139 with all pixels as the target pixel (step S140). Thus, the halftone process in step S130 is completed.

かかるハーフトーン処理の原理について、以下に説明する。上述したように、ステップS132〜S134の処理においては、注目画素データDnの階調値が閾値THn_dの値以上であれば、誤差拡散法に用いる閾値THeは、低位閾値THe_Lに設定され、注目画素データDnの階調値が閾値THn_dの値未満であれば、閾値THeは、高位閾値THe_Hに設定される。閾値差分ΔTHe(=THe_H−THe_L)は0以上の値である。   The principle of such halftone processing will be described below. As described above, in the processing of steps S132 to S134, if the tone value of the target pixel data Dn is equal to or greater than the threshold value THn_d, the threshold value THe used for the error diffusion method is set to the lower threshold value THe_L, and the target pixel If the gradation value of the data Dn is less than the threshold value THn_d, the threshold value THe is set to the high threshold value THe_H. The threshold difference ΔTHe (= THe_H−THe_L) is a value of 0 or more.

ここで、閾値差分ΔTHeが値0である場合(THe_H=THe_L)を考える。この場合、仮ディザ処理の結果は、閾値THeに影響を与えないのであるから、ステップS132〜S134の処理は、誤差拡散法(ステップS135〜S139)による最終的なドットのON/OFFの決定に対して意味を持たないことになる。このことは、ステップS130のハーフトーン処理において、最終的なドットのON/OFFが、誤差拡散法的要素のみによって決定されていることを意味する。   Here, a case where the threshold difference ΔTHe is 0 (THe_H = THe_L) is considered. In this case, since the result of the temporary dither processing does not affect the threshold value THe, the processing of steps S132 to S134 is performed to determine the final dot ON / OFF by the error diffusion method (steps S135 to S139). It has no meaning for it. This means that in the halftone process of step S130, the final dot ON / OFF is determined only by the error diffusion method element.

次に、閾値差分ΔTHeが値0より大きい場合(THe_H>THe_L)を考える。この場合、CPU40は、仮ディザ処理によりドットONと判断すると(注目画素データDnの階調値が閾値THn_dの値以上であることをいう)、閾値THeを相対的に小さい低位閾値THe_Lに設定する。一方、仮ディザ処理によりドットOFFと判断すると(注目画素データDnの階調値が閾値THn_dの値未満であることをいう)、閾値THeを相対的に大きい高位閾値THe_Hに設定する。つまり、CPU40は、仮ディザ処理によりドットONと判断すると、誤差拡散法によりドットがONになりやすいように制御し、仮ディザ処理によりドットOFFと判断すると、誤差拡散法によりドットがOFFになりやすいように制御する。このことは、閾値差分ΔTHeが値0である場合と比べて、誤差拡散法による最終的なドットのON/OFFの判断結果が仮ディザ処理によるドットのON/OFFの判断結果に近づくことを意味している。つまり、最終的なドットのON/OFFを、誤差拡散法的要素に加え、ディザ法的要素を加えて判断していることになる。   Next, consider a case where the threshold difference ΔTHe is greater than 0 (THe_H> THe_L). In this case, when the CPU 40 determines that the dot is ON by the provisional dither processing (which means that the gradation value of the target pixel data Dn is equal to or greater than the threshold value THn_d), the CPU 40 sets the threshold value THe to a relatively small lower threshold value THe_L. . On the other hand, when it is determined that the dot is OFF by the temporary dither processing (which means that the gradation value of the target pixel data Dn is less than the threshold value THn_d), the threshold value THe is set to a relatively large high threshold value THe_H. That is, if the CPU 40 determines that the dot is ON by the temporary dither process, the CPU 40 controls the dot to be easily turned ON by the error diffusion method. If the CPU 40 determines that the dot is OFF by the temporary dither process, the dot is likely to be OFF by the error diffusion method. To control. This means that the final dot ON / OFF determination result by the error diffusion method is closer to the dot ON / OFF determination result by the temporary dither process than when the threshold difference ΔTHe is 0. doing. In other words, the final dot ON / OFF is determined by adding the dither legal element in addition to the error diffusion legal element.

そして、この閾値差分ΔTHeが大きくなるほど、ディザ法的要素は大きくなっていき、閾値差分ΔTHeが無限大になれば、完全にディザ法的要素のみでドットのON/OFFのみを判断していることとなる。閾値差分ΔTHeが無限大の場合、仮ディザ処理によりドットがONと判断されれば、その後の誤差拡散法により必ずドットONと判断され、仮ディザ処理によりドットをOFFと判断されれば、その後の誤差拡散法により必ずドットOFFと判断されるからである。   As the threshold difference ΔTHe increases, the dithering factor increases, and when the threshold difference ΔTHe becomes infinite, only the dithering factor only determines whether the dot is ON / OFF. It becomes. When the threshold difference ΔTHe is infinite, if it is determined that the dot is ON by the temporary dither process, it is always determined that the dot is ON by the subsequent error diffusion method, and if the dot is determined to be OFF by the temporary dither process, This is because it is always determined that the dot is OFF by the error diffusion method.

要するに、仮ディザ処理の結果に応じて閾値THeを変化させることにより、具体的には、閾値差分ΔTHeの大きさを変化させることにより、ハーフトーン処理におけるディザ法的要素と誤差拡散法的要素とのそれぞれの寄与度を制御することができるのである。本実施例においては、こうした原理を利用して、注目画素データDnの階調値に応じて、ハーフトーン処理におけるディザ法的要素と誤差拡散法的要素とを動的に制御している。このことは、閾値差分ΔTHeの大きさによって、誤差拡散法によるドットの形成のされやすさの制御の程度を制御していると捉えることもできる。   In short, by changing the threshold value THe according to the result of the temporary dither processing, specifically, by changing the magnitude of the threshold difference ΔTHe, It is possible to control the respective contributions. In the present embodiment, using such a principle, the dithering element and the error diffusion element in the halftone process are dynamically controlled according to the gradation value of the target pixel data Dn. This can also be understood as controlling the degree of control of the ease of dot formation by the error diffusion method based on the magnitude of the threshold difference ΔTHe.

かかる構成のプリンター20は、誤差拡散法によりドットデータを生成するに際して、仮ディザ処理の結果を用いて、誤差拡散法によるドットの形成のされやすさを制御する。つまり、仮にディザ法を用いたとした場合のドットのON/OFFの判断結果を用いて、誤差拡散法によるドットの形成のされやすさを制御する。したがって、ディザ法的要素と誤差拡散法的要素とを取り入れたハーフトーン処理が可能となる。   When the printer 20 having such a configuration generates dot data by the error diffusion method, it controls the ease of dot formation by the error diffusion method using the result of the temporary dither processing. In other words, the ease of dot formation by the error diffusion method is controlled using the dot ON / OFF determination result when the dither method is used. Therefore, halftone processing incorporating a dithering factor and an error diffusion factor is possible.

また、プリンター20は、仮ディザ処理の結果がドットONの場合に、誤差拡散法に用いる閾値THeを低位閾値THe_Lに設定し、誤差拡散法によりドットが形成されやすいように制御する。また、仮ディザ処理の結果がドットOFFの場合に、閾値THeを高位閾値THe_Hに設定し、誤差拡散法によりドットが形成されにくいように制御する。いずれの制御によっても、単純な誤差拡散法によるドットデータと比べて、ドットの形成の有無が、ディザ法による結果に近づくことになるので、ディザ法的要素が強まる。したがって、これらの制御の程度、つまり閾値差分ΔTHeを適宜設定することで、ハーフトーン処理におけるディザ法的要素と誤差拡散法的要素との寄与度を、所望の程度に設定することができる。また、仮ディザ処理の結果に基づいて閾値THeを変化させることで、誤差拡散法によるドットの形成のされやすさを制御するので、構成が簡単であり、処理の高速化に資する。   In addition, when the result of the temporary dither processing is dot ON, the printer 20 sets the threshold value THe used for the error diffusion method to the lower threshold value THe_L, and performs control so that dots are easily formed by the error diffusion method. Further, when the result of the temporary dither processing is dot OFF, the threshold value THe is set to the high threshold value THe_H, and control is performed so that dots are not easily formed by the error diffusion method. In any control, since the presence / absence of dot formation approaches the result by the dither method as compared with the dot data by the simple error diffusion method, the dither legal element is strengthened. Therefore, by appropriately setting the degree of these controls, that is, the threshold difference ΔTHe, it is possible to set the degree of contribution between the dithering element and the error diffusion element in the halftone process to a desired degree. Further, since the threshold THe is changed based on the result of the temporary dither process, the ease of dot formation by the error diffusion method is controlled, so the configuration is simple and contributes to the speeding up of the process.

また、プリンター20は、注目画素データDnの階調値の大きさに基づいて、閾値THeの大きさを変化させて、具体的には、閾値差分ΔTHeを変化させて、誤差拡散法によるドットの形成のされやすさを制御するので、画像データの階調値に応じて、ディザ法的要素と誤差拡散法的要素との寄与度を変化させることができる。しかも、かかる寄与度は、画像データの任意の領域ごとに変化させることができる。その結果、画像データや印刷装置の特性に応じた良好な寄与度のドットデータを生成することができ、印刷画質を向上させることができる。   Further, the printer 20 changes the threshold value THe based on the magnitude of the gradation value of the pixel-of-interest data Dn. Specifically, the printer 20 changes the threshold value difference ΔTHe to change the dot by the error diffusion method. Since the ease of formation is controlled, the degree of contribution between the dither element and the error diffusion element can be changed according to the gradation value of the image data. In addition, the contribution can be changed for each arbitrary region of the image data. As a result, it is possible to generate dot data with a good contribution according to the image data and the characteristics of the printing apparatus, and to improve the print image quality.

本実施例においては、誤差拡散閾値テーブル62は、高階調側ほど閾値差分ΔTHeが大きくなるように設定されている。つまり、プリンター20は、高階調の画像データに対しては、低階調の画像データに対してよりも、誤差拡散法によるドットの形成のされやすさの制御の程度を大きくするので、高階調側において、低階調側よりもディザ法的要素を強めることができる。したがって、低階調側では、誤差拡散法的要素によるメリットを得つつ、高階調側では、ディザ法的要素のメリットを得ることができる。   In the present embodiment, the error diffusion threshold value table 62 is set so that the threshold difference ΔTHe becomes larger toward the higher gradation side. In other words, the printer 20 increases the degree of control of the ease of dot formation by the error diffusion method for high gradation image data than for low gradation image data. On the side, the dithering factor can be strengthened compared to the low gradation side. Therefore, the merit of the error diffusion method element can be obtained on the low gradation side, and the advantage of the dither element can be obtained on the high gradation side.

低階調側での誤差拡散法的要素のメリットとしては、例えば、印刷画質の良好な粒状性が得られる点が挙げられる。誤差拡散法として、拡散範囲切替誤差拡散法などを用いれば、さらに、画質の向上が期待できる。拡散範囲切替誤差拡散法は、公知の技術であるため、詳しい説明は省略するが、入力階調値と2値化結果の組み合わせに応じて誤差拡散範囲を切り替える手法であり、低階調値でドットONになった時のみ広い範囲に誤差拡散することで、低階調領域の粒状性を改善し、ドットの非所望な連続、いわゆるワームの発生を抑制することができる。   As an advantage of the error diffusion method element on the low gradation side, for example, it is possible to obtain a granularity with good print image quality. If a diffusion range switching error diffusion method or the like is used as the error diffusion method, further improvement in image quality can be expected. Since the diffusion range switching error diffusion method is a known technique, a detailed description thereof is omitted, but the error diffusion range is switched according to the combination of the input gradation value and the binarization result. By diffusing the error over a wide range only when the dot is ON, it is possible to improve the granularity of the low gradation region and suppress the occurrence of undesired continuity of dots, so-called worms.

高階調側でのディザ法的要素のメリットとしては、例えば、ドット着弾位置のずれによる画質劣化を抑制できる点が挙げられる。このメリットは、ディザマスク61の上述した所定のドット形成特性に起因するものである。なお、高階調領域では、ディザ法によってドットデータを生成しても、インクのにじみによって印刷画質の粒状性が目立ちにくく、大きな問題とはならない。   As an advantage of the dithering element on the high gradation side, for example, it is possible to suppress image quality deterioration due to deviation of the dot landing position. This merit is due to the above-described predetermined dot formation characteristics of the dither mask 61. In the high gradation region, even if dot data is generated by the dither method, the graininess of the print image quality is not conspicuous due to ink bleeding, and this does not cause a big problem.

しかも、誤差拡散閾値テーブル62は、階調値の大きさに基づいて、閾値差分ΔTHeが段階的に変化するように設定されている。つまり、プリンター20は、階調値の大きさに基づいて、誤差拡散法によるドットの形成のされやすさの制御の程度を段階的に変化させている。したがって、ディザ法的要素と誤差拡散法的要素との寄与度をデータ階調値に応じて滑らかに変化させることができる。その結果、印刷結果において、ディザ法的要素と誤差拡散法的要素との寄与度の変化が視認されにくいので、同一の印刷画像におけるディザ法的要素と誤差拡散法的要素の寄与度の変化に伴う印刷画質の低下を抑制することができる。   Moreover, the error diffusion threshold value table 62 is set so that the threshold difference ΔTHe changes stepwise based on the magnitude of the gradation value. That is, the printer 20 changes the degree of control of the ease of dot formation by the error diffusion method in a stepwise manner based on the magnitude of the gradation value. Therefore, it is possible to smoothly change the contributions of the dithering element and the error diffusion element according to the data gradation value. As a result, the change in the contribution between the dithering and error diffusion elements is difficult to see in the printed result, so the change in the contribution of the dithering and error diffusion elements in the same print image The accompanying deterioration in print image quality can be suppressed.

特に、本実施例では、ディザマスク61に、印刷画質の粒状性に優れたブルーノイズ特性を有するものを採用していることから、同じく印刷画質の粒状性に優れた誤差拡散法的要素との寄与度の変化をよりスムーズに見せることができる。なお、ディザマスク61がブルーノイズ特性を有していない場合であっても、階調値の大きさに基づいて、誤差拡散法によるドットの形成のされやすさの制御の程度を段階的に変化させれば、ディザ法的要素と誤差拡散法的要素との寄与度をデータ階調値に応じて滑らかに変化させることは可能である。   In particular, in this embodiment, since the dither mask 61 has a blue noise characteristic that is excellent in the graininess of the print image quality, the error diffusion method element that is also excellent in the graininess of the print image quality is used. The change in contribution can be seen more smoothly. Even if the dither mask 61 does not have a blue noise characteristic, the degree of control of dot formation ease by the error diffusion method is changed stepwise based on the magnitude of the gradation value. By doing so, it is possible to smoothly change the contribution of the dithering and error diffusion elements according to the data gradation value.

かかるプリンター20の特徴は、プリンター20の印刷物の観点から見れば、階調値を最小値から最大値まで変化させて1つの画像を印刷した場合に、ディザ法的要素により形成されたドットと、誤差拡散法的要素により形成されたドットとのつなぎ目が肉眼で視認できない点であるとも言える。ある階調を境にして、ディザ法と誤差拡散法とを切り替えれば、このような特徴は表れない。   From the viewpoint of the printed matter of the printer 20, the printer 20 is characterized by dots formed by dithering elements when one image is printed by changing the gradation value from the minimum value to the maximum value, It can be said that the joints with the dots formed by the error diffusion method element are invisible to the naked eye. If the dither method and the error diffusion method are switched at a certain gradation, such a feature does not appear.

B.第2実施例:
本発明の第2実施例について説明する。プリンター20の装置構成や印刷処理の流れは、第1実施例と同様であり、誤差拡散閾値テーブル62の特性のみが第1実施例と異なる。以下では、第1実施例と同様の点については、説明を省略し、異なる点についてのみ説明する。第2実施例としての誤差拡散閾値テーブル62の具体例を概念的に図5に示す。この例では、階調値の増加に伴う高位閾値THe_Hの増加率と、低位閾値THe_Lの減少率とが大きく、階調値が所定値以上で一定となっている点が第1実施例と異なる。
B. Second embodiment:
A second embodiment of the present invention will be described. The apparatus configuration of the printer 20 and the flow of printing processing are the same as in the first embodiment, and only the characteristics of the error diffusion threshold table 62 are different from those in the first embodiment. In the following, description of the same points as in the first embodiment will be omitted, and only different points will be described. A specific example of the error diffusion threshold table 62 as the second embodiment is conceptually shown in FIG. This example is different from the first embodiment in that the increase rate of the high threshold THe_H and the decrease rate of the low threshold THe_L accompanying the increase of the gradation value are large and the gradation value is constant above a predetermined value. .

この点を閾値差分ΔTHeとして見れば、閾値差分ΔTHeは、階調値が0の場合に値0であり、階調値が大きくなるに従って大きくなって、階調値が128で値255となり、その後、階調値が255となるまで、値255で一定推移する。つまり、図5の例では、誤差拡散閾値テーブル62は、階調値が0〜128の範囲において、階調値が大きいほど閾値差分ΔTHeが大きくなるように設定されている。   If this point is seen as the threshold value difference ΔTHe, the threshold value difference ΔTHe is 0 when the gradation value is 0, increases as the gradation value increases, becomes the value 255 with the gradation value 128, and thereafter. Until the gradation value reaches 255, the value transitions constant at 255. That is, in the example of FIG. 5, the error diffusion threshold value table 62 is set so that the threshold value difference ΔTHe increases as the gradation value increases in the range of gradation values from 0 to 128.

かかる特性を誤差拡散閾値テーブル62が有する場合には、第1実施例(図4)と比べて、注目画素データDnの階調値の変化に対する閾値差分ΔTHeの変化量が大きくなるので、また、最終的な閾値差分ΔTHeの値が大きくなるので、各階調値においてディザ法的要素が強くなる。特に、階調値が128以上の範囲では、ディザ法的要素が極めて強くなる。本実施例においては、閾値差分ΔTHeが値255の場合に、ほぼディザ法的要素のみで最終的なドットのON/OFFを決定することになるので、階調値が128以上の範囲では、閾値差分ΔTHeを一定としている。閾値差分ΔTHeをさらに大きくすれば、完全にディザ法的要素のみで最終的なドットのON/OFFを決定することも可能である。   When the error diffusion threshold table 62 has such characteristics, the amount of change in the threshold difference ΔTHe with respect to the change in the gradation value of the target pixel data Dn is larger than that in the first embodiment (FIG. 4). Since the final threshold value difference ΔTHe becomes large, the dithering factor becomes strong at each gradation value. In particular, in the range where the gradation value is 128 or more, the dithering factor is extremely strong. In this embodiment, when the threshold difference ΔTHe is a value of 255, the final dot ON / OFF is determined by almost only the dithering factor. Therefore, in the range where the gradation value is 128 or more, the threshold value The difference ΔTHe is constant. If the threshold difference ΔTHe is further increased, it is possible to determine the final dot ON / OFF with only dithering factors.

ほぼディザ法的要素のみでドットのON/OFFを決定するために必要な閾値差分ΔTHeは、ディザマスク61の特性よって変わるため、実際の出力結果を調べて、適宜設定すればよく、高位閾値THe_Hの最大値を255よりも大きな値としたり、低位閾値THe_Lの最小値を0よりも小さな値としたりして、閾値差分ΔTHeとの差をさらに大きくしてもよい。   The threshold difference ΔTHe necessary for determining ON / OFF of the dot by almost only the dithering factor varies depending on the characteristics of the dither mask 61. Therefore, the actual output result may be examined and set as appropriate. The high threshold THE_H The difference between the threshold value difference ΔTHe and the threshold value difference ΔTHe may be further increased by setting the maximum value of the threshold value to a value larger than 255 or the minimum value of the lower threshold value THe_L to a value smaller than 0.

また、誤差拡散閾値テーブル62の特性を、網点ディザなどのドット集中型とする場合には、隣り合う画素で連続してドットがONとなったり、OFFとなったりすることで、周囲画素に分配する拡散誤差Ednが累積的に大きくなりやすいので、ほぼディザ法的要素のみでドットのON/OFFを決定するためには、閾値差分ΔTHeをさらに大きくすることが望ましい。   Further, when the characteristics of the error diffusion threshold table 62 are of a dot concentration type such as halftone dither, the dots are continuously turned on or off in adjacent pixels, so that the surrounding pixels Since the distributed diffusion error Edn tends to increase cumulatively, it is desirable to further increase the threshold difference ΔTHe in order to determine dot ON / OFF with only dithering factors.

上述した特性を有する誤差拡散閾値テーブル62を記憶したプリンター20は、注目画素データDnの全ての階調値(ここでは0〜255)のうちの一部の階調値(ここでは0〜128)の範囲において、階調値が大きくなるに従って、閾値差分ΔTHeが大きくなるので、この範囲においては、ドットON/OFF判断におけるディザ法的要素と誤差拡散法的要素との寄与度をなめらかに変化させることができる。また、高階調の印刷領域(ここでは階調値128〜255)に対しては、最終的なドットのON/OFFをほぼディザ法的要素のみで決定することができる。したがって、高階調領域におけるドット着弾位置のずれによる画質劣化を抑制する効果が大きい本実施例のディザマスク61の特徴を最大限に活かして、良好な印刷画質を得ることができる。   The printer 20 that stores the error diffusion threshold value table 62 having the above-described characteristics has some gradation values (0 to 128 here) among all the gradation values (0 to 255 here) of the target pixel data Dn. In this range, the threshold difference ΔTHe increases as the gradation value increases. In this range, the contribution of the dithering and error diffusion elements in the dot ON / OFF determination is smoothly changed. be able to. Further, for a high gradation printing region (in this case, gradation values of 128 to 255), the final dot ON / OFF can be determined by only a dithering factor. Accordingly, it is possible to obtain a good print image quality by making the best use of the features of the dither mask 61 of the present embodiment, which has a great effect of suppressing image quality deterioration due to the deviation of the dot landing position in the high gradation region.

C.第3実施例:
本発明の第3実施例について説明する。プリンター20の装置構成や印刷処理の流れは、第1実施例と同様であり、誤差拡散閾値テーブル62の特性のみが第1実施例と異なる。以下では、第1実施例と同様の点については、説明を省略し、異なる点についてのみ説明する。第3実施例としての誤差拡散閾値テーブル62の具体例を概念的に図6に示す。図6は、ステップS130で用いる誤差拡散法に、閾値最適化誤差拡散法を採用した場合の高位閾値THe_H及び低位閾値THe_Lの例である。閾値最適化誤差拡散法は、公知の技術であるので、詳しい説明は省略するが、入力階調値に応じて閾値THeを変更する手法であり、いわゆるドット形成遅延や尾引きを抑制することができる。
C. Third embodiment:
A third embodiment of the present invention will be described. The apparatus configuration of the printer 20 and the flow of printing processing are the same as in the first embodiment, and only the characteristics of the error diffusion threshold table 62 are different from those in the first embodiment. In the following, description of the same points as in the first embodiment will be omitted, and only different points will be described. A specific example of the error diffusion threshold table 62 as the third embodiment is conceptually shown in FIG. FIG. 6 is an example of the high threshold THe_H and the low threshold THe_L when the threshold optimization error diffusion method is adopted as the error diffusion method used in step S130. Since the threshold optimization error diffusion method is a known technique, a detailed description thereof is omitted. However, the threshold optimization error diffusion method is a method of changing the threshold value THe according to the input gradation value, and suppresses so-called dot formation delay and tailing. it can.

図6に示すように、閾値最適化誤差拡散法における閾値の例である閾値THe_Nは、閾値最適化誤差拡散法により、注目画素データDnの階調値が大きくなるに従って、大きくなるように制御される。ここで、注目画素データDnの階調値が0〜16の範囲では、閾値差分ΔTHeは値0であり、高位閾値THe_H及び低位閾値THe_Lの値は、閾値THe_Nと一致している。階調値が16〜192の範囲では、高位閾値THe_Hを閾値THe_Nよりも大きく、低位閾値THe_Lを閾値THe_Nよりも小さくして、階調値が大きくなるに従って閾値差分ΔTHeが大きくなるように、高位閾値THe_H及び低位閾値THe_Lを設定している。階調値が192〜255の範囲では、閾値差分ΔTHeを値255で一定となるように高位閾値THe_H及び低位閾値THe_Lを設定している。   As shown in FIG. 6, the threshold value THe_N, which is an example of the threshold value in the threshold optimization error diffusion method, is controlled to increase as the gradation value of the target pixel data Dn increases by the threshold optimization error diffusion method. The Here, in the range where the gradation value of the target pixel data Dn is 0 to 16, the threshold difference ΔTHe is 0, and the values of the high threshold THe_H and the low threshold THe_L coincide with the threshold THe_N. In the range of the gradation value from 16 to 192, the high threshold value THe_H is set larger than the threshold value THe_N, the low threshold value THEe_L is set smaller than the threshold value THe_N, and the high threshold value ΔTHe increases as the gradation value increases. A threshold value THe_H and a lower threshold value THe_L are set. In the range of gradation values from 192 to 255, the high threshold value THe_H and the low threshold value THe_L are set so that the threshold difference ΔTHe is constant at a value of 255.

誤差拡散閾値テーブル62をかかる特性とすれば、低階調領域(ここでは階調値0〜16)では、閾値差分ΔTHeを値0とすることによって、閾値最適化誤差拡散法により、誤差拡散法的要素のみによりハーフトーン処理を行うことで、ディザ法よりも低階調領域での粒状性に優れる閾値最適化誤差拡散法のメリットを十分に発揮することができる。   If the error diffusion threshold value table 62 has such a characteristic, in the low gradation region (here, gradation values 0 to 16), the threshold value difference ΔTHe is set to 0, and the error diffusion method is performed by the threshold optimization error diffusion method. By performing halftone processing using only the target element, the merit of the threshold optimization error diffusion method, which is superior in graininess in a low gradation region as compared with the dither method, can be sufficiently exhibited.

また、高階調領域(ここでは階調値192〜255)では、閾値差分ΔTHeを、ほぼディザ法的要素のみに相当する値に設定することによって、ドット着弾位置ずれによる画質の劣化を抑制するという本実施例のディザ法的要素のメリットを十分に発揮することができる。なお、粒状性の観点では、誤差拡散法的要素がディザ法的要素に勝るが、高階調領域においては、このようにディザ法的要素を強くしても、インクのにじみなどにより、印刷画質の粒状性は、大きな問題とはならない。   In a high gradation region (here, gradation values 192 to 255), the threshold difference ΔTHe is set to a value substantially corresponding to only a dither legal element, thereby suppressing deterioration in image quality due to dot landing position deviation. The advantages of the dither legal element of the present embodiment can be fully exhibited. In terms of graininess, the error diffusion legal element is superior to the dither legal element, but in high gradation areas, even if the dither legal element is strengthened in this way, the print image quality is reduced due to ink bleeding. Granularity is not a big problem.

また、中階調領域(ここでは階調値16〜192)では、誤差拡散法的要素とディザ法的要素とを組み合わせ、かつ、階調値が大きくなるにしたがって、ディザ法的要素が強くなるようにハーフトーン処理を行うことによって、ディザ法的要素と誤差拡散法的要素との寄与度を滑らかに変化させることができる。このように、本実施例の誤差拡散閾値テーブル62の特性は、階調値に応じて、最適なハーフトーン処理を行うことができるものである。   Also, in the middle gradation region (here, gradation values 16 to 192), the error diffusion method element and the dither method element are combined, and the dither method element becomes stronger as the gradation value increases. By performing halftone processing in this way, the contributions of the dithering and error diffusion elements can be changed smoothly. As described above, the characteristics of the error diffusion threshold value table 62 according to the present embodiment can perform the optimum halftone process according to the gradation value.

D.第4実施例:
本発明の第4実施例について説明する。プリンター20の装置構成や印刷処理の流れは、第1実施例と同様であり、誤差拡散閾値テーブル62の特性のみが第1実施例と異なる。以下では、第1実施例と同様の点については、説明を省略し、異なる点についてのみ説明する。第4実施例としての誤差拡散閾値テーブル62の具体例を概念的に図7に示す。図7は、ステップS130で用いる誤差拡散法に、上述した拡散範囲切替誤差拡散法などのワーム対策を講じない手法を採用した場合の高位閾値THe_H及び低位閾値THe_Lの例である。
D. Fourth embodiment:
A fourth embodiment of the present invention will be described. The apparatus configuration of the printer 20 and the flow of printing processing are the same as in the first embodiment, and only the characteristics of the error diffusion threshold table 62 are different from those in the first embodiment. In the following, description of the same points as in the first embodiment will be omitted, and only different points will be described. A specific example of the error diffusion threshold table 62 as the fourth embodiment is conceptually shown in FIG. FIG. 7 is an example of the high threshold THe_H and the low threshold THe_L when a technique that does not take worm countermeasures such as the above-described diffusion range switching error diffusion method is adopted as the error diffusion method used in step S130.

この例では、図7に示すように、閾値差分ΔTHeは、注目画素データDnの階調値が0の場合に値255をとり、階調値が大きくなるに従って小さくなり、階調値が96に達すると値0となり、その後、階調値が255になるまで、一定値0をとる。ハーフトーン処理に用いる誤差拡散法的要素やディザ法的要素の特性によっては、このように、低階調領域ほど、ディザ法的要素が強く、高階調になるに従って、誤差拡散法的要素が強くなる制御を行っても、階調値に応じた最適なハーフトーン処理を行うことができる。ワーム対策が講じられていない誤差拡散法では、低階調領域でのワームによる画質劣化が大きな問題となるが、階調値が所定以上に大きくなると、ワームによる画質劣化は問題とならないからである。   In this example, as shown in FIG. 7, the threshold difference ΔTHe takes a value of 255 when the tone value of the pixel-of-interest data Dn is 0, decreases as the tone value increases, and the tone value becomes 96. When the value reaches 0, the value becomes 0. Thereafter, the value becomes 0 until the gradation value becomes 255. Depending on the characteristics of the error diffusion and dithering elements used for halftone processing, the dithering element is stronger in the low gradation area, and the error diffusion element becomes stronger as the gradation becomes higher. Even when the above control is performed, the optimum halftone process according to the gradation value can be performed. In the error diffusion method for which worm countermeasures have not been taken, image quality degradation due to worms in the low gradation region is a major problem, but image quality degradation due to worms is not a problem when the gradation value is larger than a predetermined value. .

E.第5実施例:
本発明の第5実施例について説明する。プリンター20の装置構成については、第1実施例と同様であり、印刷処理の流れ、具体的には、ハーフトーン処理の流れのみが第1実施例と異なる。また、誤差拡散閾値テーブル62は、第2実施例として示した特性を有するもの(図5参照)を採用している。以下では、上述した実施例と同様の点については、説明を省略し、異なる点についてのみ説明する。第5実施例としてのハーフトーン処理の流れを図8に示す。なお、図8において、図3に示したハーフトーン処理と同一内容の処理については、図3と同一の符号を付して、説明を簡略化する。
E. Example 5:
A fifth embodiment of the present invention will be described. The apparatus configuration of the printer 20 is the same as that of the first embodiment, and only the flow of printing processing, specifically, the flow of halftone processing is different from that of the first embodiment. Further, the error diffusion threshold table 62 employs the characteristic having the characteristics shown as the second embodiment (see FIG. 5). In the following, description of the same points as in the above-described embodiment will be omitted, and only different points will be described. FIG. 8 shows the flow of halftone processing as the fifth embodiment. In FIG. 8, processes having the same contents as the halftone process shown in FIG. 3 are denoted by the same reference numerals as those in FIG. 3 to simplify the description.

図8に示すように、第5実施例としてのハーフトーン処理が開始されると、CPU40は、注目画素位置の座標データn(x,y)と、注目画素データDnとを取得する(ステップS131)。そして、CPU40は、注目画素データDnの階調値が予め定められた範囲にあるか否かを判断する(ステップS231)。本実施例においては、注目画素データDnの階調値が、128以上であるか否かを判断する。   As shown in FIG. 8, when the halftone process according to the fifth embodiment is started, the CPU 40 acquires the coordinate data n (x, y) of the target pixel position and the target pixel data Dn (step S131). ). Then, the CPU 40 determines whether or not the gradation value of the target pixel data Dn is in a predetermined range (step S231). In this embodiment, it is determined whether or not the gradation value of the target pixel data Dn is 128 or more.

その結果、階調値が128未満であれば、CPU40は、第1実施例(図3参照)で示したステップS132〜S139の処理(ステップSST100)を実行する。つまり、階調値に応じてディザ法的要素と誤差拡散法的要素の強さを変化させながら、ドットのON/OFF決定を行う。   As a result, if the gradation value is less than 128, the CPU 40 executes the processing of steps S132 to S139 (step SST100) shown in the first embodiment (see FIG. 3). That is, the dot ON / OFF determination is performed while changing the strength of the dithering and error diffusion elements according to the gradation value.

一方、階調値が128以上であれば、CPU40は、ディザマスク61を用いてディザ法によりドットのON/OFFを決定する。具体的には、注目画素データDnの階調値と閾値THn_dとを比較し(ステップS232)、階調値が閾値THn_dの値以上であれば(ステップS232:YES)、注目画素のドットをONに決定し(ステップS233)、階調値が閾値THn_dの値未満であれば(ステップS232:NO)、注目画素のドットをOFFに決定する(ステップS234)。つまり、高階調(ここでは128以上)の階調値に対しては、上述の実施例で示した誤差拡散法によるドットのON/OFFの決定を禁止し、ディザ法のみによってドットのON/OFFを決定する。   On the other hand, if the gradation value is 128 or more, the CPU 40 determines ON / OFF of the dot by the dither method using the dither mask 61. Specifically, the gradation value of the target pixel data Dn is compared with the threshold value THn_d (step S232). If the gradation value is equal to or greater than the threshold value THn_d (step S232: YES), the dot of the target pixel is turned on. If the gradation value is less than the threshold value THn_d (step S232: NO), the dot of the target pixel is determined to be OFF (step S234). That is, for the gradation value of high gradation (here, 128 or more), determination of dot ON / OFF by the error diffusion method shown in the above-described embodiment is prohibited, and dot ON / OFF by only the dither method. To decide.

CPU40は、こうしたドットのON/OFF決定の処理を、全ての画素を注目画素として終了するまで繰り返し実行する(ステップS140)。なお、ステップS232〜S234の処理においては、ステップS139(図3参照)において算出された拡散誤差Ednは反映されない。   The CPU 40 repeatedly executes the dot ON / OFF determination process until all the pixels are the target pixel (step S140). Note that the diffusion error Edn calculated in step S139 (see FIG. 3) is not reflected in the processing in steps S232 to S234.

かかる構成のプリンター20は、注目画素データDnの階調値が所定の範囲にある場合に、誤差拡散法(ステップSST100)によるドットのON/OFFの決定を禁止し、ディザ法によりドットのON/OFFを決定する。したがって、ディザ法的要素のみでドットデータを形成した方が、印刷画質が向上する階調領域がある場合に、当該領域においても印刷画質が良好なドットデータを生成することができる。また、所定範囲の階調値に対しては、誤差拡散の演算を行う必要がないので、注目画素データDnの階調値とディザマスク61を構成する閾値THn_dとの比較を行う単純な演算のみでドットのON/OFFを決定でき、ハーフトーン処理を高速化することができる。   The printer 20 having such a configuration prohibits the determination of dot ON / OFF by the error diffusion method (step SST100) when the gradation value of the target pixel data Dn is in a predetermined range, and turns the dot ON / OFF by the dither method. Determine OFF. Therefore, when there is a gradation area where the print image quality is improved when dot data is formed using only the dither element, dot data with good print image quality can be generated even in the area. Further, since it is not necessary to perform error diffusion calculation for a predetermined range of gradation values, only simple calculation for comparing the gradation value of the target pixel data Dn with the threshold value THn_d constituting the dither mask 61 is performed. Can determine ON / OFF of dots, and can speed up halftone processing.

また、プリンター20において、誤差拡散法によるドットのON/OFFの決定を禁止する所定の範囲は、階調値が128以上の範囲としている。ここで、本実施例の誤差拡散閾値テーブル62では、図5に示したように、階調値128以降は、閾値差分ΔTHeは、ほぼディザ法的要素のみで最終的なドットのON/OFFを決定することができる値255となっている。つまり、誤差拡散閾値テーブル62において、閾値差分ΔTHeが、ほぼディザ法的要素のみで最終的なドットのON/OFFを決定することができる程度に大きくなった階調値以上の階調値の範囲内で、誤差拡散法によるドットのON/OFFの決定を禁止する(ディザ法のみでドットのON/OFFを決定する)ので、誤差拡散法とディザ法との切り替えをドット形成特性の観点から滑らかに行うことができる。その結果、印刷画像上でかかる切り替えが視認されることがなく、印刷画質の劣化を抑制することができる。   In addition, in the printer 20, a predetermined range in which determination of dot ON / OFF by the error diffusion method is prohibited is a range where the gradation value is 128 or more. Here, in the error diffusion threshold value table 62 of the present embodiment, as shown in FIG. 5, after the gradation value 128, the threshold difference ΔTHe is the final dot ON / OFF only with the dithering factor only. The value 255 can be determined. That is, in the error diffusion threshold value table 62, the threshold value difference ΔTHe is a range of gradation values that are equal to or larger than the gradation value that is large enough to determine the final dot ON / OFF with only the dithering factor. In this, the ON / OFF determination of the dot by the error diffusion method is prohibited (the ON / OFF of the dot is determined only by the dither method), so the switching between the error diffusion method and the dither method is smooth from the viewpoint of dot formation characteristics. Can be done. As a result, such switching is not visually recognized on the print image, and deterioration of the print image quality can be suppressed.

上述の誤差拡散法によるドットのON/OFFの決定を禁止する階調値の所定の範囲は、所望の印刷特性に応じて、適宜設定すればよく、例えば、階調値が96以上の範囲としてもよいし、160以上の範囲としてもよい。また、図7に示したように、階調値が相対的に小さい範囲で、ディザ法的要素を強めたい場合には、階調値が所定以下に小さい範囲で、誤差拡散法によるドットのON/OFFの決定を禁止してもよい。なお、誤差拡散法によるドットのON/OFFの決定を禁止する階調値の範囲では、誤差拡散閾値テーブル62において、高位閾値THe_Hや低位閾値THe_Lは設定されていなくてもよいことは勿論である。   The predetermined range of gradation values that prohibits the ON / OFF determination of dots by the error diffusion method described above may be set as appropriate according to the desired printing characteristics. For example, the range of gradation values is 96 or more. Alternatively, the range may be 160 or more. In addition, as shown in FIG. 7, when it is desired to strengthen the dithering factor in a range where the gradation value is relatively small, the dot is turned on by the error diffusion method in a range where the gradation value is smaller than a predetermined value. The determination of / OFF may be prohibited. It should be noted that the high threshold THe_H and the low threshold THe_L need not be set in the error diffusion threshold table 62 in the range of gradation values that prohibits ON / OFF determination of dots by the error diffusion method. .

また、階調値の所定の範囲で誤差拡散法によるドットのON/OFFの決定を禁止するハーフトーン処理の他の構成について、図9を用いて説明する。図9において、図3及び図8に示したハーフトーン処理と同一内容の処理については、図3または図8と同一の符号を付して、説明を簡略化する。この例でも、誤差拡散閾値テーブル62には、第2実施例として示した特性を有するものを採用している。   Another configuration of halftone processing that prohibits the determination of dot ON / OFF by the error diffusion method within a predetermined range of gradation values will be described with reference to FIG. In FIG. 9, processes having the same contents as the halftone processes shown in FIGS. 3 and 8 are denoted by the same reference numerals as those in FIG. 3 or FIG. Also in this example, the error diffusion threshold value table 62 has the characteristics shown as the second embodiment.

図9に示すように、ハーフトーン処理が開始されると、CPU40は、注目画素位置の座標データn(x,y)と、注目画素データDnとを取得し(ステップS131)、注目画素データDnの階調値が予め定められた範囲にあるか否かを判断する(ステップS231)。本実施例においては、注目画素データDnの階調値が、128未満、128以上144未満、144以上の3つの範囲のうちのいずれに該当するかを判断する。   As shown in FIG. 9, when the halftone process is started, the CPU 40 acquires the coordinate data n (x, y) of the target pixel position and the target pixel data Dn (step S131), and the target pixel data Dn. It is determined whether or not the gradation value is within a predetermined range (step S231). In this embodiment, it is determined whether the gradation value of the target pixel data Dn corresponds to one of the three ranges of less than 128, less than 128 and less than 144, and 144 or more.

その結果、階調値が128未満であれば、CPU40は、第1実施例(図3)で示したステップS132〜S139の処理(ステップSST100)を実行する。一方、階調値が144以上であれば、CPU40は、上述の第5実施例(図8)で示したステップS232〜S234の処理(ステップSST200)を実行する。   As a result, if the gradation value is less than 128, the CPU 40 executes the processing of steps S132 to S139 (step SST100) shown in the first embodiment (FIG. 3). On the other hand, if the gradation value is 144 or more, the CPU 40 executes the processing of steps S232 to S234 (step SST200) shown in the fifth embodiment (FIG. 8).

また、階調値が128以上144未満の範囲にあれば、CPU40は、ステップS232〜S234の処理(ステップSST200)を実行した上で、2値化誤差Enと拡散誤差Ednとを算出する(ステップS331)。ここで算出された拡散誤差Ednは、ステップSST100のステップS135に反映される。CPU40は、こうしたドットのON/OFF決定の処理を、全ての画素を注目画素として終了するまで繰り返し実行する(ステップS140)。   On the other hand, if the gradation value is in the range of 128 or more and less than 144, the CPU 40 performs the processing of steps S232 to S234 (step SST200) and then calculates the binarization error En and the diffusion error Edn (step). S331). The diffusion error Edn calculated here is reflected in step S135 of step SST100. The CPU 40 repeatedly executes the dot ON / OFF determination process until all the pixels are the target pixel (step S140).

このように図9のハーフトーン処理では、第1の階調値の範囲(ここでは128未満)では、ステップSST100の誤差拡散法の処理を行い、第1の階調値の範囲と連続する第2の階調値の範囲(ここでは128以上144未満)では、ディザ法によりドットのON/OFFを決定しつつ、2値化誤差Enを周辺画素に拡散させる処理(以下、拡散ディザ法の処理ともいう)を行い、第2の階調値の範囲と連続する第3の階調値の範囲(ここでは144以上)では、通常のディザ法の処理(ステップSST200)を行って、ドットのON/OFFを決定する。したがって、より滑らかに、ハーフトーン手法の切り替えを行って、印刷画像の劣化を抑制することができる。   As described above, in the halftone process of FIG. 9, in the first gradation value range (less than 128 in this case), the error diffusion process in step SST100 is performed, and the first gradation value range is continuous. In a range of gradation values of 2 (here, 128 or more and less than 144), processing for diffusing binarization error En to surrounding pixels while determining dot ON / OFF by the dither method (hereinafter, processing of diffusion dither method) In a third tone value range (here, 144 or more) that is continuous with the second tone value range, a normal dithering process (step SST200) is performed to turn dots on. / OFF is determined. Therefore, it is possible to switch the halftone method more smoothly and suppress deterioration of the printed image.

例えば、図8に示したハーフトーン処理では、入力された画像データが、その階調値が128の前後で変動する領域を含む場合、当該領域のハーフトーン処理では、ステップSST100の処理とステップSST200の処理とが、連続する画素ごとに頻繁に入れ替わることがある。そうすると、これらの画素では、ほぼ同レベルの階調であるにもかかわらず、拡散誤差が反映される画素と、十分に反映されない画素とが近接して混在し、画質の低下を招くおそれがある。   For example, in the halftone process shown in FIG. 8, when the input image data includes an area whose gradation value fluctuates around 128, in the halftone process of the area, the process of step SST100 and step SST200 are performed. This process may be frequently replaced for each successive pixel. Then, in these pixels, although the gradations are almost the same level, pixels in which the diffusion error is reflected and pixels in which the reflection error is not sufficiently reflected are mixed in close proximity, which may cause deterioration in image quality. .

一方、図9のように、ドットのON/OFF決定を行う処理を、階調値に応じて、ステップSST100の誤差拡散法の処理から、通常のディザ法の処理(ステップSST200)に切り替える途中に、拡散ディザ法の処理を介在させれば、ほぼ同レベルの階調であるにもかかわらず、拡散誤差が反映される画素と、十分に反映されない画素とが近接して混在することを抑制することができる。その結果、画質の低下を抑制することができるのである。   On the other hand, as shown in FIG. 9, in the middle of switching the dot ON / OFF determination process from the error diffusion process in step SST100 to the normal dither process (step SST200) according to the gradation value. If the process of the diffusion dither method is interposed, it is possible to suppress a pixel in which a diffusion error is reflected and a pixel in which a diffusion error is not sufficiently reflected from being mixed in close proximity even though the gradation is substantially the same level. be able to. As a result, deterioration of image quality can be suppressed.

F.第6実施例:
本発明の第6実施例について説明する。プリンター20の構成については、第1実施例と同様であり、印刷処理の流れ、具体的には、ハーフトーン処理の流れのみが第1実施例と異なる。以下では、第1実施例と同様の点については、説明を省略し、異なる点についてのみ説明する。第6実施例としてのハーフトーン処理の流れを図10に示す。なお、図10において、図3に示したハーフトーン処理と同一内容の処理については、図3と同一の符号を付して、説明を簡略化する。
F. Example 6:
A sixth embodiment of the present invention will be described. The configuration of the printer 20 is the same as that of the first embodiment, and only the flow of printing processing, specifically, the flow of halftone processing is different from that of the first embodiment. In the following, description of the same points as in the first embodiment will be omitted, and only different points will be described. FIG. 10 shows the flow of halftone processing as the sixth embodiment. In FIG. 10, processes having the same contents as the halftone process shown in FIG. 3 are denoted by the same reference numerals as those in FIG. 3 to simplify the description.

図10に示すように、第6実施例としてのハーフトーン処理が開始されると、CPU40は、注目画素位置の座標データn(x,y)と、注目画素データDnとを取得し、注目画素データDnの階調値に所定値α(α>0)を加える(ステップS431)。こうして算出されたデータは、注目画素データDnの階調値に関連する階調値であることから、関連データDn’(Dn’=Dn+α)ともいう。本実施例では、所定値α=4とした。   As shown in FIG. 10, when the halftone process according to the sixth embodiment is started, the CPU 40 acquires the coordinate data n (x, y) of the target pixel position and the target pixel data Dn, and the target pixel. A predetermined value α (α> 0) is added to the gradation value of the data Dn (step S431). Since the data calculated in this way is a gradation value related to the gradation value of the target pixel data Dn, it is also referred to as related data Dn ′ (Dn ′ = Dn + α). In the present embodiment, the predetermined value α = 4.

関連データDn’を算出すると、CPU40は、比較部43の処理として、仮ディザ処理を行う(ステップS432)。図3に示したステップS132の仮ディザ処理との違いは、注目画素データDnの階調値と、ディザマスク61の閾値THn_dとを比較する代わりに、関連データDn’と閾値THn_dとを比較する点である。   When the related data Dn ′ is calculated, the CPU 40 performs a temporary dither process as the process of the comparison unit 43 (step S432). The difference from the temporary dither processing in step S132 shown in FIG. 3 is that instead of comparing the gradation value of the target pixel data Dn and the threshold value THn_d of the dither mask 61, the related data Dn ′ and the threshold value THn_d are compared. Is a point.

その結果、関連データDn’が閾値THn_dの値以上であれば(ステップS432:YES)、誤差拡散法に用いる閾値THeを低位閾値THe_Lに設定する(ステップS133)。一方、関連データDn’が閾値THn_dの値未満であれば(ステップS432:NO)、誤差拡散法に用いる閾値THeを高位閾値THe_Hに設定する(ステップS134)。以降の誤差拡散法の処理(ステップS135〜S139)は、第1実施例と同様であるため、説明を省略する。なお、誤差拡散法のドットのON/OFF判断は、関連データDn’ではなく、注目画素データDnの階調値を用いて行う。   As a result, if the related data Dn ′ is equal to or greater than the threshold value THn_d (step S432: YES), the threshold value THe used for the error diffusion method is set to the lower threshold value THe_L (step S133). On the other hand, if the related data Dn ′ is less than the threshold THn_d (step S432: NO), the threshold THe used for the error diffusion method is set to the high threshold THe_H (step S134). Since the subsequent error diffusion processing (steps S135 to S139) is the same as that of the first embodiment, description thereof is omitted. Note that the ON / OFF determination of the dot in the error diffusion method is performed using the gradation value of the target pixel data Dn, not the related data Dn ′.

かかる構成のハーフトーン処理は、階調値に所定値αを加えて、仮ディザ処理を行うことにより、仮ディザ処理によりドットON(Dn’≧THn_d)と判断される画素の数が、誤差拡散法によりドットONと判断される画素の数よりも多くなる。つまり、仮ディザ処理でドットONと判断された画素以外の画素が、後段の誤差拡散法によって最終的にドットONと判断される場合が少なくなる。その結果、ディザマスク61のドット発生パターンと無関係な画素位置にドットが形成されることを減らすことができるので、閾値差分ΔTHeをそれほど大きくしなくても、よりディザ法的要素を強めることができる。つまり、ディザマスクが有するドット発生パターンの反映の程度を制御して、ディザ法的要素と誤差拡散法的要素の寄与度の制御をより柔軟に行うことができる。逆に言えば、同じ程度のディザ法的要素を得るのに閾値差分ΔTHeを小さくすることができる。閾値差分ΔTHeが小さくなれば、誤差拡散法における2値化誤差Enの大きさも小さくなり、印刷画質の向上につながる。   In the halftone process having such a configuration, the predetermined value α is added to the gradation value, and the temporary dither process is performed, so that the number of pixels determined to be dot ON (Dn ′ ≧ THn_d) by the temporary dither process is increased by the error diffusion. More than the number of pixels determined to be dot ON by the law. That is, it is less likely that pixels other than the pixel determined to be dot ON by the temporary dither processing are finally determined to be dot ON by the error diffusion method at the subsequent stage. As a result, since it is possible to reduce the formation of dots at pixel positions unrelated to the dot generation pattern of the dither mask 61, the dither legal element can be further strengthened without increasing the threshold difference ΔTHe so much. . That is, the degree of reflection of the dot generation pattern of the dither mask can be controlled to more flexibly control the contribution of the dither legal element and the error diffusion legal element. In other words, the threshold difference ΔTHe can be reduced to obtain the same degree of dithering factor. If the threshold difference ΔTHe is reduced, the magnitude of the binarization error En in the error diffusion method is also reduced, leading to an improvement in print image quality.

上述した所定値αは、必ずしも一定である必要はなく、階調値に応じて変化する値としてもよい。また、階調値によっては、所定値αを値0にしてもよい。こうすれば、より柔軟に、ディザ法的要素を制御することができる。もとより、所定値αは、必ずしも正の数である必要はなく、負の数であってもよい。例えば、階調値が低階調側(ここでは127以下)の範囲では、所定値αを正の数とし、階調値が高階調側(ここでは128以上)の範囲では、所定値αを負の数としてもよい。ドットONとドットOFFとの関係は、裏返しの関係にあるから、かかる観点から、例えば、低階調側と高階調側とで所定値αを対称形に制御し、低階調側で所定値αを正の数、高階調側で所定値αを負の数にしてもよい。   The predetermined value α described above is not necessarily constant, and may be a value that changes according to the gradation value. Further, the predetermined value α may be set to 0 depending on the gradation value. In this way, the dither legal element can be controlled more flexibly. Of course, the predetermined value α is not necessarily a positive number, and may be a negative number. For example, when the gradation value is in the low gradation side (here 127 or less), the predetermined value α is a positive number, and when the gradation value is in the high gradation side (here 128 or more), the predetermined value α is It may be a negative number. Since the relationship between dot ON and dot OFF is reversed, from this point of view, for example, the predetermined value α is controlled symmetrically on the low gradation side and the high gradation side, and the predetermined value is set on the low gradation side. α may be a positive number, and the predetermined value α may be a negative number on the high gradation side.

また、所定値αを正の数とした上で、高位閾値THe_Hを相当程度大きくすれば、閾値THeが高位閾値THe_Hに設定された場合(ステップS134)には、誤差拡散法によりドットがONになりにくくすることができるので、仮ディザ処理でドットONと判断された画素以外の画素が、後段の誤差拡散法によって最終的にドットONと判断される場合を更に少なくすることができる。つまり、最終的なハーフトーン結果を、ディザマスク61が有するドット発生パターンに近づけることができる。   Further, if the predetermined threshold value α is set to a positive number and the high threshold value THe_H is considerably increased, when the threshold value THe is set to the high threshold value THe_H (step S134), the dots are turned ON by the error diffusion method. Therefore, it is possible to further reduce the case where pixels other than those determined to be dot ON by the temporary dither processing are finally determined to be dot ON by the error diffusion method at the subsequent stage. That is, the final halftone result can be brought close to the dot generation pattern of the dither mask 61.

また、ディザマスク61に準拠したドット発生パターンとの相関性を制御するハーフトーン処理の別の構成を図11に示す。図11においては、上述したハーフトーン処理の各工程の処理と同一の処理については、同一の符号を付している。図11に示す処理と、図10に示した処理との違いは、誤差拡散法に用いられる閾値THeは、仮ディザ処理(ステップS432)の結果に影響されない点と、仮ディザ処理において、関連データDn’が閾値THn_dの値未満であれば(ステップS432:NO)、最終的なドットのON/OFFをドットONに決定する(ステップS138)点である。なお、所定値αは正の数で設定されている。   FIG. 11 shows another configuration of halftone processing for controlling the correlation with the dot generation pattern conforming to the dither mask 61. In FIG. 11, the same reference numerals are assigned to the same processes as the processes of the halftone processes described above. The difference between the process shown in FIG. 11 and the process shown in FIG. 10 is that the threshold value THe used in the error diffusion method is not affected by the result of the temporary dither process (step S432). If Dn ′ is less than the threshold value THn_d (step S432: NO), the final dot ON / OFF is determined to be dot ON (step S138). The predetermined value α is set as a positive number.

このようにすれば、ステップS135〜S139の誤差拡散法においては、仮ディザ処理でドットONとなった画素の中からのみ、最終的にドットONとする画素が選択されることとなる。したがって、ディザマスク61のドット発生パターンにより近づいたハーフトーン処理結果を得ることができる。また、仮ディザ処理において、関連データDn’が閾値THn_dの値未満であれば、ステップS135及びS136の処理を省略できるので、処理を高速化することができる。   In this way, in the error diffusion method in steps S135 to S139, only the pixels that are dot-ON finally selected from the pixels that are dot-ON in the temporary dither process. Therefore, a halftone processing result closer to the dot generation pattern of the dither mask 61 can be obtained. Further, in the temporary dither process, if the related data Dn ′ is less than the threshold value THn_d, the processes in steps S135 and S136 can be omitted, so that the process can be speeded up.

G.変形例:
上述の実施形態の変形例について説明する。
G−1.変形例1:
上述した実施形態のハーフトーン処理においては、画素ごとのドットのON/OFFの決定に際して、画素ごとに仮ディザ処理を行う構成としたが、仮ディザ処理は、所定範囲の画素を一括して行ってもよい。つまり、1つの画素についての仮ディザ処理の結果を周囲の画素にも適用してもよい。例えば、3画素×3画素の領域において、その中心画素についてのみ、仮ディザ処理を行い、その結果を当該領域内の全ての画素に適用してもよい。こうすれば、ハーフトーン処理を高速化することができる。なお、このようにしても、局所領域ごとの階調変化が滑らかな写真画像などであれば、印刷画質が大きく低下することはない。
G. Variations:
A modification of the above embodiment will be described.
G-1. Modification 1:
In the halftone process of the above-described embodiment, the provisional dither process is performed for each pixel when determining the ON / OFF state of the dot for each pixel. However, the temporary dither process is performed for a predetermined range of pixels collectively. May be. That is, the result of provisional dither processing for one pixel may be applied to surrounding pixels. For example, in a 3 pixel × 3 pixel region, provisional dither processing may be performed only for the central pixel, and the result may be applied to all the pixels in the region. In this way, halftone processing can be speeded up. Even in this case, the print image quality is not greatly reduced if the photographic image has a smooth gradation change for each local region.

G−2.変形例2:
上述した実施形態のハーフトーン処理においては、注目画素データDnの階調値を各種閾値と比較して、仮ディザ処理や誤差拡散法によるドットのON/OFF判断を行う構成としたが、注目画素データDnの階調値を、所定の変換ルールに基づいて記録率に変換し、その記録率の階調値と各種閾値とを比較する構成であってもよい。記録率とは、任意の領域内の画素にドットを記録する割合をいう。例えば、プリンター20が、大ドットや小ドットなど、複数のサイズのドットで画像を形成する場合には、注目画素データDnの階調値に基づいて、ドットサイズごとに算出された記録率の階調値と、各種閾値とを比較してもよい。
G-2. Modification 2:
In the halftone processing of the above-described embodiment, the gradation value of the pixel-of-interest data Dn is compared with various threshold values, and the ON / OFF determination of the dot by the temporary dither processing or the error diffusion method is performed. The gradation value of the data Dn may be converted into a recording rate based on a predetermined conversion rule, and the gradation value of the recording rate may be compared with various threshold values. The recording rate refers to the rate at which dots are recorded on pixels in an arbitrary area. For example, when the printer 20 forms an image with dots of a plurality of sizes, such as large dots and small dots, the recording rate scale calculated for each dot size based on the gradation value of the target pixel data Dn. The adjustment value may be compared with various threshold values.

G−3.変形例3:
上述した実施形態においては、誤差拡散閾値テーブル62は、所定の範囲の階調値に対して、階調値が大きくなるに従って、または、階調値が小さくなるに従って、閾値差分ΔTHeが大きくなるように設定したが、誤差拡散法において、テクスチャパターンが発生しやすい階調値の近傍では、特にディザ法的要素が強くなるように、つまり閾値差分ΔTHeが大きくなるように設定してもよい。テクスチャパターンが発生しやすい階調値は、プリンター20の特性により異なるが、一般的には、インクデューティが1/N(Nは2以上の整数)%となる階調値、または、その近傍である。こうすれば、誤差拡散法によるテクスチャパターンの発生を抑制することができる。また、かかる場合であっても、閾値差分ΔTHeを段階的に滑らかに変化させれば、ディザ法的要素と誤差拡散法的要素との寄与度を滑らかに変化させることができる。
G-3. Modification 3:
In the embodiment described above, the error diffusion threshold value table 62 is configured such that the threshold value difference ΔTHe increases as the gradation value increases or decreases as the gradation value decreases with respect to a predetermined range of gradation values. However, in the error diffusion method, it may be set so that the dithering factor is particularly strong, that is, the threshold difference ΔTHe is large in the vicinity of a gradation value at which a texture pattern is likely to occur. The gradation value at which a texture pattern is likely to occur varies depending on the characteristics of the printer 20, but in general, the gradation value at which the ink duty is 1 / N (N is an integer equal to or greater than 2)% or in the vicinity thereof. is there. By so doing, it is possible to suppress the generation of texture patterns by the error diffusion method. Even in such a case, if the threshold difference ΔTHe is smoothly changed stepwise, the contribution degree between the dithering element and the error diffusion element can be changed smoothly.

G−4.変形例4:
本発明のハーフトーン処理は、インク色ごとに異なる形態を採用してもよい。例えば、プリンター20は、インク色に応じて、階調値に応じた閾値差分ΔTHeの変化特性を変化させてもよい。かかる構成は、例えば、プリンター20が、異なる特性を有する複数の誤差拡散閾値テーブル62を記憶しておき、インク色に応じて、ハーフトーン処理で用いる誤差拡散閾値テーブル62を切り替えることで実現できる。
G-4. Modification 4:
The halftone process of the present invention may adopt a different form for each ink color. For example, the printer 20 may change the change characteristic of the threshold difference ΔTHe according to the gradation value according to the ink color. Such a configuration can be realized, for example, by the printer 20 storing a plurality of error diffusion threshold tables 62 having different characteristics and switching the error diffusion threshold tables 62 used in the halftone process according to the ink color.

あるいは、インク色ごとに、ハーフトーン処理の手法を切り替えてもよい。例えば、プリンター20は、イエロインクなど、印刷物において相対的に人間の目に視認されにくいインクについては、図8や図9に示したハーフトーン処理を行い、その他のインクについては、図3に示したハーフトーン処理を行う構成としてもよい。視認されにくいインクは、印刷画質の粒状性に影響を与えにくいので、粒状性の観点で誤差拡散法に劣るディザ法を用いても、印刷画質にほとんど影響を与えないからである。また、こうすれば、ハーフトーン処理の高速化を行うことができる。   Alternatively, the halftone processing method may be switched for each ink color. For example, the printer 20 performs the halftone process shown in FIG. 8 and FIG. 9 for ink that is relatively difficult to be seen by human eyes, such as yellow ink, and FIG. 3 shows other inks. Alternatively, a configuration that performs halftone processing may be used. This is because ink that is difficult to visually recognize hardly affects the graininess of the print image quality, and therefore, even if a dither method that is inferior to the error diffusion method from the viewpoint of graininess is used, the print image quality is hardly affected. In this way, the halftone process can be speeded up.

あるいは、相対的に色材の濃度が濃い濃インク(本実施例では、シアンインク、マゼンタインク)と、相対的に色材の濃度が薄い淡インク(本実施例ではライトシアンインク、ライトマゼンタインク)の両方について、図8や図9に示したハーフトーン処理を行い、濃インクの方が淡インクよりも低い階調値から、ディザ法単独によるドットのON/OFF決定(ステップS232〜S234)に切り替える構成としてもよい。こうすれば、少ない印刷画質への影響で、ハーフトーン処理を高速化することができる。濃インク及び淡インクのうち、濃インクが単独で使用されることは少ないので、誤差拡散法的要素により、目立ちにくい淡インクのドットの粒状性を相対的に改善する方が、印刷画質の向上効果が大きいからである。   Alternatively, dark ink with relatively dark color material (in this embodiment, cyan ink and magenta ink) and light ink with relatively low color material density (in this embodiment, light cyan ink and light magenta ink) 8 and FIG. 9, the halftone process shown in FIG. 8 and FIG. 9 is performed, and the ON / OFF determination of the dots by the dither method alone is performed (steps S232 to S234) from the gradation value of the dark ink lower than that of the light ink. It is good also as a structure to switch. In this way, halftone processing can be speeded up with a small influence on print quality. Of the dark and light inks, the dark ink is rarely used alone, so it is better to improve the image quality by relatively improving the graininess of the light ink dots that are less noticeable by the error diffusion method. This is because the effect is great.

G−5.変形例5:
上述した実施形態のハーフトーン処理においては、階調値に応じて閾値差分ΔTHeを変化させる構成について示したが、閾値差分ΔTHeは、階調値によらない一定の値としてもよい。このようにしても、誤差拡散法的要素とディザ法的要素との両方を取り入れたハーフトーン処理を行うことができる。
G-5. Modification 5:
In the halftone processing of the above-described embodiment, the configuration in which the threshold difference ΔTHe is changed according to the gradation value has been described. However, the threshold difference ΔTHe may be a constant value that does not depend on the gradation value. Even in this case, it is possible to perform halftone processing that incorporates both error diffusion and dithering elements.

G−6.変形例6:
上述した実施形態においては、プリンター20が、誤差拡散法のドットON/OFF判断に用いる閾値THeを変化させることで、誤差拡散法におけるドットの形成のされやすさを制御し、ハーフトーン処理における誤差拡散法的要素とディザ法的要素の寄与度を変化させる構成について示したが、誤差拡散法によるドットの形成のされやすさの制御は、かかる態様に限るものではない。例えば、仮ディザ処理の結果に基づいて、誤差拡散法を適用する注目画素データDnの階調値に、所定値β(β>0)を加え、または、所定値βを減じて、ドットのON/OFFを判断する構成としてもよい。その際、2値化誤差Enについては、画像データの全体での階調を正確に反映するために、所定値βを除いて算出するとよい。勿論、所定値βは、入力される注目画素データDnの階調値に応じて、変化する値として与えてもよい。このような構成としても、閾値THeを変化させることと同様に、誤差拡散法におけるドットの形成のされやすさを好適に制御することができる。
G-6. Modification 6:
In the above-described embodiment, the printer 20 controls the ease with which dots are formed in the error diffusion method by changing the threshold value THe used for dot ON / OFF determination in the error diffusion method, and error in the halftone process. Although the configuration in which the contribution degree of the diffusion law element and the dither law element is changed is shown, the control of the ease of dot formation by the error diffusion method is not limited to this mode. For example, on the basis of the result of the temporary dither processing, the dot value is turned on by adding a predetermined value β (β> 0) or subtracting the predetermined value β to the gradation value of the target pixel data Dn to which the error diffusion method is applied. It may be configured to determine / OFF. At this time, the binarization error En may be calculated by excluding the predetermined value β in order to accurately reflect the gradation of the entire image data. Of course, the predetermined value β may be given as a value that changes according to the gradation value of the input target pixel data Dn. Even with such a configuration, it is possible to suitably control the ease of dot formation in the error diffusion method, as in the case of changing the threshold value THe.

G−7.変形例7:
上述した実施形態においては、プリンター20において、図2に示した印刷処理の全てを実行する構成としたが、プリンターとコンピューターとが接続された印刷システム(広義の印刷装置)において印刷処理を行う場合には、印刷処理やハーフトーン処理の全部または一部が、コンピューターとプリンターのうちのいずれで行われてもよい。
G-7. Modification 7:
In the above-described embodiment, the printer 20 is configured to execute all of the print processing illustrated in FIG. 2, but the print processing is performed in a printing system (broadly defined printing apparatus) in which the printer and the computer are connected. For example, all or part of the printing process and the halftone process may be performed by either a computer or a printer.

以上、本発明の実施形態について説明したが、上述した実施形態における本発明の構成要素のうち、独立クレームに記載された要素以外の要素は、付加的な要素であり、適宜省略可能である。また、本発明はこうした実施形態に限られるものではなく、本発明の要旨を脱しない範囲において、種々なる態様で実施できることは勿論である。例えば、本発明は、上述の実施形態に示したシリアル方式のインクジェット式プリンターに限らず、インクジェット式のラインプリンター、レーザー式プリンターなど、種々の方式の印刷装置に適用可能である。また、本発明は、印刷装置としての構成のほか、印刷方法、プログラム、記憶媒体等としても実現することができる。   The embodiment of the present invention has been described above, but among the components of the present invention in the above-described embodiment, elements other than the elements described in the independent claims are additional elements and can be omitted as appropriate. In addition, the present invention is not limited to such an embodiment, and it is needless to say that the present invention can be implemented in various modes without departing from the gist of the present invention. For example, the present invention is not limited to the serial ink jet printer shown in the above-described embodiment, but can be applied to various types of printing apparatuses such as an ink jet line printer and a laser printer. In addition to the configuration as a printing apparatus, the present invention can be realized as a printing method, a program, a storage medium, and the like.

20…プリンター
30…制御ユニット
40…CPU
41…入力部
42…ハーフトーン処理部
43…比較部
44…誤差拡散部
46…印刷部
51…ROM
52…RAM
60…EEPROM
61…ディザマスク
62…誤差拡散閾値テーブル
70…キャリッジモータ
71…駆動ベルト
72…プーリ
73…摺動軸
74…紙送りモータ
75…プラテン
80…キャリッジ
82〜87…インクカートリッジ
90…印刷ヘッド
98…メモリカードスロット
99…操作パネル
P…印刷媒体
MC…メモリカード
20 ... Printer 30 ... Control unit 40 ... CPU
DESCRIPTION OF SYMBOLS 41 ... Input part 42 ... Halftone processing part 43 ... Comparison part 44 ... Error diffusion part 46 ... Printing part 51 ... ROM
52 ... RAM
60 ... EEPROM
61 ... Dither mask 62 ... Error diffusion threshold table 70 ... Carriage motor 71 ... Drive belt 72 ... Pulley 73 ... Sliding shaft 74 ... Paper feed motor 75 ... Platen 80 ... Carriage 82-87 ... Ink cartridge 90 ... Print head 98 ... Memory Card slot 99 ... Operation panel P ... Print medium MC ... Memory card

Claims (7)

所定の画像を表す画像データの印刷を行う印刷装置であって、
前記画像データを入力する入力部と、
前記画像データに基づいて、ドットの形成の有無を表すドットデータを生成するハーフトーン処理部と、
前記生成されたドットデータを用いて、前記画像の印刷を行う印刷部と
を備え、
前記ハーフトーン処理部は、
前記入力された画像データの階調値であるデータ階調値と、複数の閾値の中の一つの閾値である第1の閾値との大小を比較する比較部と、
前記データ階調値に応じて値が定められる第2の閾値を用いて、前記データ階調値に誤差拡散法を適用し、前記ドットデータを生成する誤差拡散部と、
前記データ階調値が所定階調値以上であるか否かを判定する判定部と
を備え、
前記判定部により、データ階調値が所定階調値以上であると判定されれば、前記比較部の前記比較結果により前記ドット形成の有無を決定し、
前記判定部により、データ階調値が所定階調値未満であると判定されれば、前記第2の閾値を用いた前記誤差拡散部により前記ドット形成の有無を決定する
印刷装置。
A printing apparatus for printing image data representing a predetermined image,
An input unit for inputting the image data;
A halftone processing unit for generating dot data representing the presence or absence of dot formation based on the image data;
A printing unit that prints the image using the generated dot data; and
The halftone processing unit
A comparison unit that compares a data gradation value that is a gradation value of the input image data with a first threshold that is one of a plurality of thresholds;
An error diffusion unit that generates the dot data by applying an error diffusion method to the data gradation value using a second threshold value determined according to the data gradation value ;
A determination unit that determines whether or not the data gradation value is equal to or greater than a predetermined gradation value ;
Wherein the determination unit, is determined data tone value and Ru der than predetermined gradation value lever, to determine the presence or absence of the dot formed by the result of the comparison of the comparison unit,
Wherein the determination unit, is determined data tone value and Ru der less than the predetermined gray level value lever, a printing apparatus for determining the presence or absence of the dot formed by the error diffusion unit using the second threshold value.
前記誤差拡散部は、前記誤差拡散法における前記第2の閾値を変化させることで、前記ドットの形成のされやすさを制御する請求項1記載の印刷装置。   The printing apparatus according to claim 1, wherein the error diffusion unit controls the ease with which the dots are formed by changing the second threshold value in the error diffusion method. 前記誤差拡散部は、前記データ階調値の大きさに基づいて、前記ドットの形成のされやすさの制御の程度を変化させる請求項2記載の印刷装置。 The error diffusion unit, on the basis of the magnitude of the gray scale values, the printing apparatus of the dot formation of the easiness of controlling the degree of the change is allowed Ru claim 2 in. 前記誤差拡散部は、前記画像データのうちの、前記データ階調値が相対的に大きい所定の範囲にある高階調データに対しては、該データ階調値が相対的に小さい所定の範囲にある低階調データに対してよりも、前記ドットの形成のされやすさの制御の程度を大きくする請求項3記載の印刷装置。   The error diffusing unit has a data gradation value in a predetermined range that is relatively small for high gradation data in the image data that is in a predetermined range in which the data gradation value is relatively large. The printing apparatus according to claim 3, wherein the degree of control of the ease with which the dots are formed is greater than for certain low gradation data. 前記誤差拡散部は、前記データ階調値の大きさに基づいて、前記ドットの形成のされやすさの制御の程度を段階的に変化させる請求項3または請求項4記載の印刷装置。   5. The printing apparatus according to claim 3, wherein the error diffusion unit changes the degree of control of the ease of forming the dots in a stepwise manner based on the magnitude of the data gradation value. 前記誤差拡散部は、前記データ階調値の少なくとも一部の範囲において、該データ階調値が大きくなるに従って、前記ドットの形成のされやすさの制御の程度が大きくなるように、前記制御を行う請求項3ないし請求項5のいずれか一項に記載の印刷装置。   The error diffusing unit performs the control so that the degree of control of the ease of dot formation increases as the data gradation value increases in at least a part of the range of the data gradation value. The printing apparatus according to claim 3, wherein the printing apparatus is performed. 所定の画像を表す画像データに基づいて印刷を行う印刷方法であって、
前記画像データを入力し、
前記入力された画像データの階調値であるデータ階調値と、複数の閾値の中の一つの閾値である第1の閾値との大小を比較する処理と、前記データ階調値に応じて値が定められる第2の閾値を用いて、前記データ階調値に誤差拡散法を適用する処理とを行い
前記データ階調値が所定階調値以上であれば、前記比較結果により前記ドット形成の有無を表すドットデータを生成し、前記データ階調値が所定階調値未満であれば、前記第2の閾値を用いた前記誤差拡散法を適用する処理により前記ドット形成の有無を表すドットデータを生成し、
前記生成されたドットデータを用いて、前記画像の印刷を行う
印刷方法。
A printing method for performing printing based on image data representing a predetermined image,
Input the image data,
A process of comparing the magnitude of the data gradation value that is the gradation value of the input image data and the first threshold value that is one threshold value among a plurality of threshold values, and depending on the data gradation value Performing a process of applying an error diffusion method to the data gradation value using a second threshold value for which a value is determined;
If the data grayscale value is equal to or higher than a predetermined gradation value, as a result of the previous SL comparison generates dot data representing the presence or absence of the dot formation, wherein the data grayscale value is less than the predetermined gray level value, the Generating dot data indicating the presence or absence of the dot formation by a process of applying the error diffusion method using a second threshold;
A printing method for printing the image using the generated dot data.
JP2015018086A 2015-02-02 2015-02-02 Printing apparatus and printing method Expired - Fee Related JP5979261B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015018086A JP5979261B2 (en) 2015-02-02 2015-02-02 Printing apparatus and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015018086A JP5979261B2 (en) 2015-02-02 2015-02-02 Printing apparatus and printing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2013251634A Division JP5720764B2 (en) 2013-12-05 2013-12-05 Printing apparatus and printing method

Publications (2)

Publication Number Publication Date
JP2015122769A JP2015122769A (en) 2015-07-02
JP5979261B2 true JP5979261B2 (en) 2016-08-24

Family

ID=53533977

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015018086A Expired - Fee Related JP5979261B2 (en) 2015-02-02 2015-02-02 Printing apparatus and printing method

Country Status (1)

Country Link
JP (1) JP5979261B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080721B (en) * 2019-10-23 2023-06-16 北京京隽科技有限公司 Error diffusion threshold selection method, error diffusion threshold selection device, error diffusion threshold selection equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4381360B2 (en) * 2005-08-30 2009-12-09 シャープ株式会社 Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4825180B2 (en) * 2007-08-20 2011-11-30 株式会社リコー Image processing method, image processing apparatus, image forming apparatus, image forming system, program, and storage medium

Also Published As

Publication number Publication date
JP2015122769A (en) 2015-07-02

Similar Documents

Publication Publication Date Title
JP5428696B2 (en) Printing apparatus, printing data generation apparatus, printing method and program thereof
JP5750969B2 (en) Image processing apparatus, printing apparatus, image processing method, and image processing program
JP5750968B2 (en) Image processing apparatus, printing apparatus, image processing method, and image processing program
JP6587552B2 (en) Image processing apparatus and image processing method
JP4604940B2 (en) Image processing apparatus and printing apparatus for bidirectional printing
US8643904B2 (en) Image processing device selecting halftone method for each set of pixel data of image data
JP6973098B2 (en) Image processing device, control method of image processing device, and printing device
JP5505048B2 (en) Printing device, printing method, print data generation program
JP6175915B2 (en) Printing apparatus, printing method, program, and image processing apparatus
JP5994919B2 (en) Printing apparatus, printing method, and computer program
JP6175914B2 (en) Printing apparatus, printing method, and image processing apparatus
US8599430B2 (en) Image processing device producing reduced image
JP2015167306A (en) Printer, printing data generation device and method therefor, and printing data generation program
JP6252003B2 (en) Printing apparatus, printing method, image processing apparatus, and program
JP6390405B2 (en) Printing apparatus, printing method, program, and image processing apparatus
US10798266B2 (en) Image processing apparatus, printing apparatus, and image processing method for performing halftone processing on divided images
JP5979261B2 (en) Printing apparatus and printing method
US8456708B2 (en) Image processing device performing color conversion and producing scaled image
JP5720764B2 (en) Printing apparatus and printing method
JP2010137536A (en) Printer, and printing method
JP6221838B2 (en) Printing apparatus, printing data generation apparatus and method, and printing data generation program
US10016978B2 (en) Printing apparatus, printing method, and non-transitory computer readable medium for storing program
JP2016163080A (en) Printing device, printing method, image processing apparatus and computer program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160329

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160530

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160628

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160711

R150 Certificate of patent or registration of utility model

Ref document number: 5979261

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees