JP2017114033A - Printing device, printing method, image processing device and program - Google Patents

Printing device, printing method, image processing device and program Download PDF

Info

Publication number
JP2017114033A
JP2017114033A JP2015253159A JP2015253159A JP2017114033A JP 2017114033 A JP2017114033 A JP 2017114033A JP 2015253159 A JP2015253159 A JP 2015253159A JP 2015253159 A JP2015253159 A JP 2015253159A JP 2017114033 A JP2017114033 A JP 2017114033A
Authority
JP
Japan
Prior art keywords
gradation value
input
value
converted
error diffusion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2015253159A
Other languages
Japanese (ja)
Inventor
桑原 正史
Masashi Kuwabara
正史 桑原
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 JP2015253159A priority Critical patent/JP2017114033A/en
Publication of JP2017114033A publication Critical patent/JP2017114033A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Particle Formation And Scattering Control In Inkjet Printers (AREA)
  • Color, Gradation (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a printing device which can improve the quality of characters and lines in a pale background part while taking advantage of a dither method and error diffusion method.SOLUTION: A printing device which prints an image on the basis of image data includes: an input unit 41 which inputs the image data; a conversion unit 51 which converts an input gradation value being a gradation value of the input image data to generate a converted gradation value; a comparison unit 53 which compares the converted gradation value with the threshold of a dither mask to output a comparison result; an error diffusion processing unit 55 which generates dot data by an error diffusion method on the basis of the comparison result and input gradation value; and a printing unit 57 which prints an image by using the generated dot data. The conversion unit 51 generates the converted gradation value by reducing a prescribed gradation value from the input gradation value when the input gradation value is within a prescribed range.SELECTED DRAWING: Figure 1

Description

本発明は、印刷装置、印刷方法、画像処理装置、及びプログラムに関する。   The present invention relates to a printing apparatus, a printing method, an image processing apparatus, and a program.

従来、特許文献1に示すように、印刷装置において、写真や図・グラフと文字・線とが含まれたオブジェクトを印刷した場合に、両方の印刷品質を両立させるハーフトーン技術として、写真画質に有効なディザ法と文字・線の印刷品質に有効な誤差拡散法とを組み合わせたハイブリッドハーフトーン技術が提案されていた。   Conventionally, as shown in Patent Document 1, when printing an object including a photograph, a figure, a graph, a character, and a line in a printing apparatus, as a halftone technique that achieves both print qualities, the photographic image quality is improved. A hybrid halftone technique that combines an effective dithering method and an error diffusion method effective for printing quality of characters and lines has been proposed.

特開2014−78980号公報JP 2014-78980 A

しかしながら、特許文献1に記載の印刷装置では、淡い背景に配置された文字・線に対してハイブリッドハーフトーン技術を適用すると、淡い背景領域ではディザ法によるドットが発生する。このようなディザ結果に対して誤差拡散法を適用すると負の誤差値が溜まってしまい、文字・線の部分でドットが発生しにくくなってしまうという課題があった。その結果、淡い背景部の線が途切れたり、文字の輪郭部の一部が欠如してしまうという問題が生じていた。   However, in the printing apparatus described in Patent Document 1, when the hybrid halftone technique is applied to characters / lines arranged on a light background, dots by the dither method are generated in the light background region. When the error diffusion method is applied to such a dither result, a negative error value is accumulated, and there is a problem that it is difficult to generate dots in the character / line portion. As a result, there has been a problem that the line in the light background portion is interrupted or a part of the outline portion of the character is missing.

本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態または適用例として実現することが可能である。   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.

[適用例1]本適用例に係る印刷装置は、画像データに基づいて画像を印刷する印刷装置であって、前記画像データを入力する入力部と、前記入力した画像データの階調値である入力階調値を変換して変換階調値を生成する変換部と、前記変換階調値に基づいてディザマスクの閾値と比較して比較結果を出力する比較部と、前記比較結果と前記入力階調値とに基づいて、誤差拡散法によりドットデータを生成する誤差拡散処理部と、前記生成されたドットデータを用いて前記画像を印刷する印刷部とを備え、前記変換部は、前記入力階調値が所定範囲内である場合は、前記入力階調値から所定階調値を減算して前記変換階調値を生成することを特徴とする。   Application Example 1 A printing apparatus according to this application example is a printing apparatus that prints an image based on image data, and includes an input unit that inputs the image data and a gradation value of the input image data. A conversion unit that converts the input gradation value to generate a converted gradation value; a comparison unit that outputs a comparison result by comparing with a threshold value of a dither mask based on the converted gradation value; and the comparison result and the input An error diffusion processing unit that generates dot data by an error diffusion method based on a gradation value, and a printing unit that prints the image using the generated dot data, and the conversion unit includes the input When the gradation value is within a predetermined range, the conversion gradation value is generated by subtracting the predetermined gradation value from the input gradation value.

本適用例によれば、変換部は、入力階調値から所定階調値を減算し変換階調値を生成する。減算された変換階調値では、入力階調値よりもディザマスクの閾値を超えにくくなるため、比較結果におけるドットの発生が減る。これにより、誤差拡散処理部では負の誤差値が溜まりにくくなり、入力した画像データに存在していたドットを発生しやすくすることができる。また、変換部では、所定範囲における入力階調値を減算する。例えば、所定範囲を文字・線部のドットが有する階調値以外の範囲を指定することで、文字・線部以外の領域の比較結果におけるドットの発生が減り、入力した画像データから存在していた文字・線部のドットが欠如しにくくなる。従って、淡い背景部の線が途切れたり、文字の輪郭部の一部が欠如してしまうことが少なくなる。   According to this application example, the conversion unit subtracts a predetermined gradation value from the input gradation value to generate a converted gradation value. Since the subtracted converted gradation value is less likely to exceed the dither mask threshold than the input gradation value, the occurrence of dots in the comparison result is reduced. As a result, it is difficult for the error diffusion processing unit to accumulate negative error values, and it is possible to easily generate dots existing in the input image data. Further, the conversion unit subtracts the input gradation value in a predetermined range. For example, by specifying a range other than the gradation value that the dot of the character / line part has as a predetermined range, the occurrence of dots in the comparison result of the area other than the character / line part is reduced, and it exists from the input image data. It becomes difficult to lack the dots in the letters and lines. Therefore, it is less likely that the line in the light background portion is interrupted or a part of the outline portion of the character is lost.

[適用例2]上記適用例に記載の印刷装置は、前記変換部は、前記所定範囲を分割した範囲において、前記入力階調値が相対的に最小である第1範囲では、前記所定階調値を前記入力階調値として、前記変換階調値を生成することを特徴とする。   Application Example 2 In the printing apparatus according to the application example, in the first range in which the input gradation value is relatively minimum in the range obtained by dividing the predetermined range, the conversion unit may perform the predetermined gradation. The converted gradation value is generated using a value as the input gradation value.

本適用例によれば、第1範囲では、所定階調値を入力階調値として生成された変換階調値の値はゼロになるため、ディザマスクの閾値を超えることはない。第1範囲ではディザによるドット発生が無くなる。また、第1範囲は、相対的に最小である範囲であるため、例えば、淡い背景部とすることができる。これにより、淡い背景部においてドット発生がなくなるため、淡い背景部を有する文字・線部ではドット発生のしやすさを最大にできる。   According to this application example, in the first range, the value of the converted gradation value generated using the predetermined gradation value as the input gradation value is zero, and therefore does not exceed the threshold value of the dither mask. In the first range, dot generation due to dither is eliminated. Further, since the first range is a relatively minimum range, for example, it can be a light background portion. This eliminates the occurrence of dots in the light background portion, so that the ease of dot generation can be maximized in the character / line portion having the light background portion.

[適用例3]上記適用例に記載の印刷装置は、前記変換部は、前記所定範囲を分割した範囲において、前記入力階調値が相対的に最小となる範囲以外の第2範囲では、前記所定階調値を前記入力階調値から前記入力階調値以下の階調値として、前記変換階調値を生成することを特徴とする。   Application Example 3 In the printing apparatus according to the application example, in the second range other than the range in which the input tone value is relatively minimum in the range obtained by dividing the predetermined range, the conversion unit The converted gradation value is generated by setting a predetermined gradation value from the input gradation value to a gradation value equal to or lower than the input gradation value.

本適用例によれば、第2範囲の変換階調値では、入力階調値以下の階調値を減算して算出されているため、第1範囲の最大値と所定範囲以外の最小値との間の値をとることができる。算出される変換階調値は、第1範囲の最大値と所定範囲以外の最小値との間を滑らかに増加させることができる。このように第2範囲の変換階調値によって、例えば、グラデーション画像の淡い部分を滑らかに表現することができる。   According to this application example, the converted gradation value in the second range is calculated by subtracting the gradation value less than or equal to the input gradation value, so that the maximum value in the first range and the minimum value other than the predetermined range are A value between can be taken. The calculated converted gradation value can smoothly increase between the maximum value in the first range and the minimum value outside the predetermined range. As described above, for example, a light portion of a gradation image can be smoothly expressed by the converted gradation value in the second range.

[適用例4]上記適用例に記載の印刷装置は、前記所定範囲は、階調値の最濃度を示す最大値である最大階調値と、階調値の最淡度を示す最小値である最小階調値との中間を示す中間階調値以下で、前記最小階調値以上であることを特徴とする。   Application Example 4 In the printing apparatus according to the application example described above, the predetermined range includes a maximum gradation value that is a maximum value indicating the maximum density of gradation values and a minimum value that indicates the lightness of the gradation value. It is not more than an intermediate gradation value indicating the middle of a certain minimum gradation value, and is not less than the minimum gradation value.

本適用例によれば、所定範囲は、中間階調値以下の淡い領域を取り得ることができる。例えば、最大階調値が255で、最小階調値が0である場合では、所定範囲の階調値は0以上127以下の淡い濃度の階調値を有する淡い背景部に有効である。   According to this application example, the predetermined range can take a light area equal to or lower than the intermediate gradation value. For example, when the maximum gradation value is 255 and the minimum gradation value is 0, the gradation value in the predetermined range is effective for a light background portion having a light gradation value of 0 to 127.

[適用例5]上記適用例に記載の印刷装置は、前記所定範囲は、階調値の最濃度を示す最大値である最大階調値および階調値の最淡度を示す最小値である最小階調値の四半を示す階調値の範囲うち、最も最小階調値に近い範囲であることを特徴とする。   Application Example 5 In the printing apparatus according to the application example described above, the predetermined range is a maximum gradation value that is a maximum value that indicates the maximum density of gradation values and a minimum value that indicates the lightness of the gradation value. It is characterized in that it is the range closest to the minimum gradation value among the gradation value ranges indicating the quarter of the minimum gradation value.

本適用例によれば、所定範囲は、最も最小階調値に近い淡い領域を取り得ることができる。例えば、最大階調値が255で、最小階調値が0である場合では、所定範囲の階調値は0以上63以下の淡い濃度の階調値を有する淡い背景部に有効である。   According to this application example, the predetermined range can take a light area closest to the minimum gradation value. For example, when the maximum gradation value is 255 and the minimum gradation value is 0, the gradation value in the predetermined range is effective for a light background portion having a light gradation value of 0 to 63.

[適用例6]上記適用例に記載の印刷装置は、前記誤差拡散処理部は、前記画像データを構成する画素において前記比較結果と前記入力階調値との誤差値を前記画素の周囲の画素に拡散させ、前記誤差値が加算されて生成された補正階調値を誤差拡散の閾値と比較してドットデータを生成することを特徴とする。   Application Example 6 In the printing apparatus according to the application example, in the error diffusion processing unit, an error value between the comparison result and the input gradation value is calculated for pixels around the pixel in the pixels constituting the image data. Then, the corrected gradation value generated by adding the error value is compared with a threshold value for error diffusion to generate dot data.

本適用例によれば、補正階調値を用いることで、誤差拡散における2値化処理で生じた誤差値を捨て切らないため、周囲の画素に誤差値を反映させたドットデータを生成することができる。   According to this application example, by using the corrected gradation value, the error value generated in the binarization process in the error diffusion is not discarded, so that dot data in which the error value is reflected on the surrounding pixels is generated. Can do.

[適用例7]本適用例に記載の印刷方法は、画像データに基づいて画像を印刷する印刷方法であって、前記画像データを入力する入力工程と、前記入力した画像データの階調値である入力階調値を変換して変換階調値を生成する変換工程と、前記変換階調値に基づいてディザマスクの閾値と比較し比較結果を出力する比較工程と、前記比較結果と前記入力階調値とに基づいて、誤差拡散法によりドットデータを生成する誤差拡散処理工程と、前記生成されたドットデータを用いて前記画像を印刷する印刷工程とを備え、前記変換工程は、前記入力階調値が所定範囲内である場合は、前記入力階調値から所定階調値を減算して前記変換階調値を生成することを特徴とする。   Application Example 7 The printing method described in this application example is a printing method for printing an image based on image data, and includes an input step for inputting the image data, and a gradation value of the input image data. A conversion step of converting a certain input gradation value to generate a conversion gradation value; a comparison step of comparing a dither mask threshold value based on the conversion gradation value and outputting a comparison result; and the comparison result and the input An error diffusion processing step of generating dot data by an error diffusion method based on a gradation value; and a printing step of printing the image using the generated dot data, wherein the conversion step includes the input When the gradation value is within a predetermined range, the conversion gradation value is generated by subtracting the predetermined gradation value from the input gradation value.

本適用例によれば、入力階調値から所定階調値を減算した変換階調値はディザマスクの閾値を超えにくくなるため、比較結果におけるドットの発生が減る。これにより、誤差拡散処理工程では負の誤差値が溜まりにくくなり、原画像データから存在していたドットを発生しやすくすることができる。変換工程では、例えば、所定範囲を文字・線部のドットが有する階調値以外の範囲を指定することで、文字・線部以外の領域の比較結果におけるドットの発生が減り、元から存在していた文字・線部のドットが欠如しにくくなる。従って、淡い背景部の線が途切れたり、文字の輪郭部の一部が欠如してしまうことが少なくなる。   According to this application example, since the converted gradation value obtained by subtracting the predetermined gradation value from the input gradation value is less likely to exceed the threshold value of the dither mask, the occurrence of dots in the comparison result is reduced. This makes it difficult for negative error values to accumulate in the error diffusion processing step, making it easier to generate dots that existed from the original image data. In the conversion process, for example, by specifying a range other than the gradation value that the dot of the character / line part has as the predetermined range, the occurrence of dots in the comparison result of the area other than the character / line part is reduced, and the original exists. It becomes difficult to lack the dots in the characters and lines. Therefore, it is less likely that the line in the light background portion is interrupted or a part of the outline portion of the character is lost.

[適用例8]本適用例に記載のプログラムは、画像データを入力する入力工程と、前記入力した画像データの階調値である入力階調値を変換して変換階調値を生成する変換工程と、前記変換階調値に基づいてディザマスクの閾値と比較し比較結果を出力する比較工程と、前記比較結果と前記入力階調値とに基づいて、誤差拡散法によりドットデータを生成する誤差拡散処理工程と、前記生成されたドットデータを用いて画像を印刷する印刷工程とを備え、前記変換工程は、前記入力階調値が所定範囲内である場合は、前記入力階調値から所定階調値を減算して前記変換階調値を生成することをコンピューターに実行させることを特徴とする。   Application Example 8 A program described in this application example includes an input step for inputting image data, and a conversion for generating a converted gradation value by converting an input gradation value that is a gradation value of the input image data. Dot data is generated by an error diffusion method based on the step, a comparison step of comparing with the threshold value of the dither mask based on the converted gradation value and outputting a comparison result, and the comparison result and the input gradation value An error diffusion processing step, and a printing step for printing an image using the generated dot data, and the conversion step starts from the input tone value when the input tone value is within a predetermined range. A computer is caused to generate the converted gradation value by subtracting a predetermined gradation value.

本適用例によれば、入力階調値から所定階調値を減算した変換階調値はディザマスクの閾値を超えにくくなるため、比較結果におけるドットの発生が減る。これにより、誤差拡散処理工程では負の誤差値が溜まりにくくなり、原画像データから存在していたドットを発生しやすくすることができる。変換工程では、例えば、所定範囲を文字・線部のドットが有する階調値以外の範囲を指定することで、文字・線部以外の領域の比較結果におけるドットの発生が減り、元から存在していた文字・線部のドットが欠如しにくくなる。従って、淡い背景部の線が途切れたり、文字の輪郭部の一部が欠如してしまうことが少なくなる。   According to this application example, since the converted gradation value obtained by subtracting the predetermined gradation value from the input gradation value is less likely to exceed the threshold value of the dither mask, the occurrence of dots in the comparison result is reduced. This makes it difficult for negative error values to accumulate in the error diffusion processing step, making it easier to generate dots that existed from the original image data. In the conversion process, for example, by specifying a range other than the gradation value that the dot of the character / line part has as the predetermined range, the occurrence of dots in the comparison result of the area other than the character / line part is reduced, and the original exists. It becomes difficult to lack the dots in the characters and lines. Therefore, it is less likely that the line in the light background portion is interrupted or a part of the outline portion of the character is lost.

[適用例9]本適用例に記載の画像処理装置は、画像データに基づいてドットデータを生成する画像処理装置であって、前記画像データを入力する入力部と、前記入力した画像データの階調値である入力階調値を変換して変換階調値を生成する変換部と、前記変換階調値に基づいてディザマスクの閾値と比較し比較結果を出力する比較部と、前記比較結果と前記入力階調値とに基づいて、誤差拡散法により前記ドットデータを生成する誤差拡散処理部とを備え、前記変換部は、前記入力階調値が所定範囲内である場合は、前記入力階調値から所定階調値を減算して前記変換階調値を生成することを特徴とする。   Application Example 9 The image processing apparatus described in this application example is an image processing apparatus that generates dot data based on image data, and includes an input unit that inputs the image data, and a level of the input image data. A conversion unit that converts an input gradation value that is a tone value to generate a converted gradation value; a comparison unit that compares a dither mask threshold value based on the converted gradation value and outputs a comparison result; and the comparison result And an error diffusion processing unit that generates the dot data by an error diffusion method based on the input gradation value, and the conversion unit, when the input gradation value is within a predetermined range, The converted gradation value is generated by subtracting a predetermined gradation value from the gradation value.

本適用例によれば、入力階調値から所定階調値を減算した変換階調値はディザマスクの閾値を超えにくくなるため、ディザによるドット発生が減る。これにより、誤差拡散処理部では負の誤差値が溜まりにくくなり、原画像データから存在していたドットを発生しやすくすることができる。変換部では、例えば、所定範囲を文字・線部のドットが有する階調値以外の範囲を指定することで、文字・線部以外の領域の比較結果におけるドットの発生が減り、元から存在していた文字・線部のドットが欠如しにくくなる。従って、淡い背景部の線が途切れたり、文字の輪郭部の一部が欠如してしまうことが少なくなる。   According to this application example, since the converted gradation value obtained by subtracting the predetermined gradation value from the input gradation value does not easily exceed the threshold value of the dither mask, the occurrence of dots due to dither is reduced. As a result, it is difficult for the error diffusion processing unit to accumulate negative error values, and it is possible to easily generate dots existing from the original image data. In the conversion unit, for example, by specifying a range other than the gradation value of the dot of the character / line part as the predetermined range, the occurrence of dots in the comparison result of the area other than the character / line part is reduced, and the original exists. It becomes difficult to lack the dots in the characters and lines. Therefore, it is less likely that the line in the light background portion is interrupted or a part of the outline portion of the character is lost.

プリンターの概略構成を示すブロック図。FIG. 2 is a block diagram illustrating a schematic configuration of a printer. プリンターにおける印刷処理の流れを示すフローチャート図。The flowchart figure which shows the flow of the printing process in a printer. ハーフトーン処理の流れを示すフローチャート図。The flowchart figure which shows the flow of a halftone process. ディザハーフトーン処理の流れを示すフローチャート図。The flowchart figure which shows the flow of a dither halftone process. 入力階調値と変換階調値との関係を示すグラフ。The graph which shows the relationship between an input gradation value and a conversion gradation value. 効果を説明するドットパターン図(原画像データ)。The dot pattern figure (original image data) explaining an effect. 効果を説明するドットパターン図(従来方法によるハーフトーン結果)。The dot pattern figure explaining an effect (halftone result by the conventional method). 効果を説明するドットパターン図(実施形態によるハーフトーン結果)。The dot pattern figure explaining an effect (halftone result by an embodiment).

以下、本発明の実施形態について、図面を参照して説明する。なお、以下の各図においては、各部を認識可能な程度の大きさにするため、各部の尺度を実際とは異ならせしめている。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following drawings, the scale of each part is made different from the actual scale in order to make each part recognizable.

(実施形態1)
(印刷装置の構成)
図1は、プリンターの概略構成を示すブロック図である。印刷装置としてのプリンター20は、操作パネル99、メモリカードスロット98、制御ユニット30、印刷機構部70などを備えた双方向印刷を行うシリアル式インクジェットプリンターである。
(Embodiment 1)
(Configuration of printing device)
FIG. 1 is a block diagram illustrating a schematic configuration of a printer. The printer 20 as a printing apparatus is a serial ink jet printer that performs bidirectional printing and includes an operation panel 99, a memory card slot 98, a control unit 30, a printing mechanism unit 70, and the like.

制御ユニット30は、制御部40および記憶部60などから構成される制御回路またはASIC(Application Specific Integrated Circuit)である。   The control unit 30 is a control circuit or an ASIC (Application Specific Integrated Circuit) configured by the control unit 40, the storage unit 60, and the like.

制御部40は、CPU(Central Processing Unit)であり、記憶部60、印刷機構部70、メモリカードスロット98、および操作パネル99などの各部を統括的に制御する。
制御部40は、入力部41、ハーフトーン処理部50、印刷部57などを機能部として有している。但し、これらの機能部は一実施例として記載したものに過ぎず、必ずしもこれらすべての機能部を必須構成要素としなければならないわけではない。また、これら以外の機能部を必須構成要素としてもよい。
さらに、図1の例のみでなく、操作パネル99とメモリカードスロット98と制御ユニット30の全体または一部の構成をホスト装置内に構成してもよい。ホスト装置には、パーソナルコンピューターといったコンピューター、デジタルカメラ、デジタルビデオカメラ、スマートフォンといった携帯電話、等が含まれる。
The control unit 40 is a CPU (Central Processing Unit), and comprehensively controls each unit such as the storage unit 60, the printing mechanism unit 70, the memory card slot 98, and the operation panel 99.
The control unit 40 includes an input unit 41, a halftone processing unit 50, a printing unit 57, and the like as functional units. However, these functional units are merely described as one embodiment, and all of these functional units do not necessarily have to be essential components. Moreover, it is good also considering a function part other than these as an essential component.
Further, not only the example of FIG. 1 but also the whole or a part of the operation panel 99, the memory card slot 98, and the control unit 30 may be configured in the host device. The host device includes a computer such as a personal computer, a digital camera, a digital video camera, a mobile phone such as a smartphone, and the like.

入力部41は、メモリカードスロット98のメモリカードMCから、印刷対象であるRGB(レッド、グリーン、ブルー)形式の画像データを読み込む。入力部41では、RGB色空間の画像データをインク等の記録材の色空間に変換する。記録材の色空間は、例えば、CMYK(シアン、マゼンタ、イエロー、ブラック)の色空間である。色空間の変換処理では、RGBの各色の階調値を、色変換テーブル(図示は省略)を用いて、CMYKの各色の階調値に変換する。変換された画像データは、画素毎にCMYKの各色の階調値を有して構成されている。なお、記録材の色空間はCMYKの4色に限定されず、Lc(ライトシアン)、Lm(ライトマゼンタ)などを含む6色であってもよく、また、単色(1色)などを含みその他の色数であってもよい。   The input unit 41 reads RGB (red, green, blue) format image data to be printed from the memory card MC in the memory card slot 98. The input unit 41 converts image data in the RGB color space into a color space of a recording material such as ink. The color space of the recording material is, for example, a color space of CMYK (cyan, magenta, yellow, black). In the color space conversion process, the gradation value of each color of RGB is converted into the gradation value of each color of CMYK using a color conversion table (not shown). The converted image data has a gradation value of each color of CMYK for each pixel. The color space of the recording material is not limited to four colors of CMYK, and may be six colors including Lc (light cyan), Lm (light magenta), etc., and other colors including a single color (one color). It may be the number of colors.

ハーフトーン処理部50は、変換部51、比較部53、誤差拡散処理部55などを有して構成され、入力された画像データの階調値である入力階調値をハーフトーン処理(詳細は後述)してドットデータを生成する。なお、ドットデータは、画像データを構成する画素におけるドットの形成状態(ドットパターン)を表すデータであり、具体的には、画素が有する記録材の色空間の階調値毎にドットを形成するかしないか(あるいは、どのサイズのドットを形成する)を示すデータである。ここで、「ドット」とは、プリンター20のインクヘッドに備えられたインクノズルから吐出されるインク滴またはインク滴群が印刷用紙などの印刷媒体に着弾して形成される一つの領域をいう。ドットデータは、色毎に生成されるが、ハーフトーン処理は、各色に対して同様な処理が適用される。以降の説明では単色の処理として説明する。   The halftone processing unit 50 includes a conversion unit 51, a comparison unit 53, an error diffusion processing unit 55, and the like, and performs halftone processing on input gradation values that are gradation values of input image data (for details, see FIG. Then, dot data is generated. The dot data is data representing the dot formation state (dot pattern) in the pixels constituting the image data. Specifically, dots are formed for each gradation value of the color space of the recording material of the pixels. This is data indicating whether or not (or which size dot is formed). Here, “dot” refers to one area formed by landing ink droplets or ink droplets ejected from ink nozzles provided in the ink head of the printer 20 on a printing medium such as printing paper. The dot data is generated for each color, but in the halftone process, the same process is applied to each color. In the following description, it will be described as a monochromatic process.

変換部51は、入力階調値変換テーブル61(詳細は後述)を用いて、入力階調値を変換階調値へ変換する。詳しくは、所定範囲に該当する入力階調値を減算して、変換階調値へ変換している。階調値が、例えば、256段階で最も淡い階調値を0として、もっとも濃い階調値を255とした場合では、淡い濃度を表す階調値が0〜64の範囲を所定範囲とする。このようにすることで、淡い濃度を表す階調値を減算し、それ以外の範囲は、減算を行わない。以降の説明では、特に断りのない限り階調値を256段階として説明する。
所定範囲に該当する入力階調値を減算方向に変換する方法は、入力階調値変換テーブル61を参照して、画像データの各画素の階調値を変換して、画素ごとに変換階調値を算出する。入力階調値変換テーブル61には、入力階調値に対応する変換階調値が格納されている。詳細は後述する。
The conversion unit 51 converts an input gradation value into a converted gradation value using an input gradation value conversion table 61 (details will be described later). Specifically, an input gradation value corresponding to a predetermined range is subtracted and converted to a converted gradation value. For example, when the gradation value is 256, the lightest gradation value is 0, and the darkest gradation value is 255, the range where the gradation value representing the light density is 0 to 64 is set as the predetermined range. In this way, the gradation value representing the light density is subtracted, and the subtraction is not performed for the other ranges. In the following description, the gradation value is described in 256 stages unless otherwise specified.
The method of converting the input gradation value corresponding to the predetermined range in the subtraction direction refers to the input gradation value conversion table 61, converts the gradation value of each pixel of the image data, and converts the conversion gradation for each pixel. Calculate the value. The input tone value conversion table 61 stores converted tone values corresponding to the input tone values. Details will be described later.

比較部53は、変換階調値とディザマスク63の閾値との比較結果を出力する。詳しくは、各画素の変換階調値をディザマスク63の閾値と比較する。ディザマスク63を変換階調値を有する各画素と比較して、変換階調値が閾値を超えている場合はディザ結果ON(ドット発生)とし、そうでない場合はディザ結果OFF(ドットなし)とする。   The comparison unit 53 outputs a comparison result between the converted gradation value and the threshold value of the dither mask 63. Specifically, the converted gradation value of each pixel is compared with the threshold value of the dither mask 63. The dither mask 63 is compared with each pixel having a converted gradation value. When the converted gradation value exceeds the threshold value, the dither result is ON (dot generation). Otherwise, the dither result is OFF (no dot). To do.

誤差拡散処理部55は、比較部53でディザマスク処理された比較結果と、誤差拡散閾値テーブル65とを用いて誤差拡散処理を行い、ドットデータを生成する。誤差拡散閾値テーブル65は、複数の種類の閾値テーブルを有し、その中から選択してもよい。例えば、比較結果がディザ結果ONの場合は、ディザ結果ON用誤差拡散閾値テーブルを選択し、比較結果がディザ結果OFFの場合は、ディザ結果OFF用誤差拡散閾値テーブルを選択する。   The error diffusion processing unit 55 performs error diffusion processing using the comparison result subjected to the dither mask processing by the comparison unit 53 and the error diffusion threshold value table 65 to generate dot data. The error diffusion threshold value table 65 has a plurality of types of threshold value tables, and may be selected from them. For example, when the comparison result is the dither result ON, the dither result ON error diffusion threshold table is selected, and when the comparison result is the dither result OFF, the dither result OFF error diffusion threshold table is selected.

印刷部57は、印刷機構部70を制御して、ドットデータを印刷機構部70へ出力する。詳しくは、誤差拡散処理部55によって記録材の色ごとに生成されたドットデータを印刷ヘッド(図示は省略)を有する印刷機構部70へ出力して、印刷ヘッドによって印刷媒体に印字する。   The printing unit 57 controls the printing mechanism unit 70 to output dot data to the printing mechanism unit 70. Specifically, the dot data generated for each color of the recording material by the error diffusion processing unit 55 is output to a printing mechanism unit 70 having a print head (not shown), and printed on a print medium by the print head.

記憶部60は、ROM(Read Only Memory)、RAM(Random Access Memory)、NVRAM(Non Volatile Random Access Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)などの演算処理装置、揮発性メモリー、不揮発性メモリーなどであり、入力階調値変換テーブル61、ディザマスク63、誤差拡散閾値テーブル65、およびプログラム67などが格納されている。   The storage unit 60 includes an arithmetic processing unit such as a ROM (Read Only Memory), a RAM (Random Access Memory), an NVRAM (Non Volatile Random Access Memory), and an EEPROM (Electrically Erasable Programmable Read Only Memory), a volatile memory, and a nonvolatile memory. An input tone value conversion table 61, a dither mask 63, an error diffusion threshold table 65, a program 67, and the like are stored.

入力階調値変換テーブル61は、ディザマスク63の閾値と比較する入力階調値を変換するものであり、入力階調値の最濃度を示す最大階調値と最淡度を示す最小階調値との範囲により構成される。精度拡張のために入力階調値よりも分解能を上げてもよい。なお、入力階調値変換テーブル61の詳細については、図5を用いて後述する。   The input tone value conversion table 61 converts the input tone value to be compared with the threshold value of the dither mask 63, and the maximum tone value indicating the highest density of the input tone value and the minimum tone value indicating the lightness. Consists of a range of values. In order to extend the accuracy, the resolution may be higher than the input gradation value. Details of the input tone value conversion table 61 will be described later with reference to FIG.

ディザマスク63は、公知の組織的ディザ法によるハーフトーン処理に用いるテーブルであり、マトリックス状に配置された複数の閾値により構成される。   The dither mask 63 is a table used for halftone processing by a known systematic dither method, and includes a plurality of threshold values arranged in a matrix.

誤差拡散閾値テーブル65は、誤差拡散法によるハーフトーン処理に用いるものであり、入力階調値に応じた閾値が格納されている。   The error diffusion threshold table 65 is used for halftone processing by the error diffusion method, and stores thresholds corresponding to input tone values.

プログラム67は、入力された画像データからハーフトーン処理を行いドットデータを出力するまでの処理が記述されたプログラムであり、制御部40によって読み込まれて実行される。   The program 67 is a program in which processing from halftone processing to output of dot data is described from input image data, and is read and executed by the control unit 40.

印刷機構部70は、印刷媒体を搬送する搬送機構、キャリッジを往復運動させる往復動機構、印刷媒体に対してインク滴を吐出してドット形成を行うドット形成機構(いずれも図示は省略)を備えている。印刷機構部70では、印刷部57から出力されたドットデータに基づいて印刷媒体にインク滴を吐出すると、印刷媒体には画像や文字が印刷される。これらは、シリアル式インクジェットプリンターの構成例を示しているが、むろん、本技術を適用可能なインクジェットプリンターは、ライン式インクジェットプリンター等でもよい。本技術を適用可能な印刷装置は、レーザー式プリンターといった電子写真方式のプリンター等でもよく、複写機、ファクシミリ、これらの機能を備えた複合機、等でもよい。   The printing mechanism unit 70 includes a transport mechanism that transports the print medium, a reciprocating mechanism that reciprocates the carriage, and a dot formation mechanism that discharges ink droplets onto the print medium to form dots (all of which are not shown). ing. In the printing mechanism unit 70, when ink droplets are ejected onto the print medium based on the dot data output from the printing unit 57, images and characters are printed on the print medium. These show the configuration examples of the serial type ink jet printer, but the ink jet printer to which the present technology can be applied may be a line type ink jet printer or the like. A printing apparatus to which the present technology can be applied may be an electrophotographic printer such as a laser printer, a copying machine, a facsimile, a multifunction machine having these functions, or the like.

(印刷処理)
図2は、プリンターにおける印刷処理の流れを示すフローチャート図である。印刷処理は、例えば、ユーザーが操作パネル99等を用いて、メモリカードMCに記憶された所定の画像に対する印刷指示操作を行うことを開始トリガーとする。なお、以下のフローは、印刷方法に相当し、図1に示すプログラム67に基づいて制御部40が記憶部60および印刷機構部70を含む各部を制御することにより実行される。
(Printing process)
FIG. 2 is a flowchart showing the flow of printing processing in the printer. For example, the print process is triggered by a user performing a print instruction operation on a predetermined image stored in the memory card MC using the operation panel 99 or the like. The following flow corresponds to a printing method, and is executed by the control unit 40 controlling each unit including the storage unit 60 and the printing mechanism unit 70 based on the program 67 shown in FIG.

ステップS100では、画像データを入力する。詳しくは、メモリカードスロット98にメモリカードMCが挿入されたことを検出すると、印刷対象であるRGB形式の画像データORGを読み込む。なお、本ステップは、入力工程に相当する。   In step S100, image data is input. Specifically, when it is detected that the memory card MC is inserted into the memory card slot 98, the RGB format image data ORG to be printed is read. This step corresponds to an input process.

ステップS110では、色変換処理を行う。詳しくは、記憶部60に記憶された色変換テーブル(図示省略)を参照し、RGB形式の画像データを、CMYKLcLm形式に色変換する。なお、本ステップでは、色変換処理の前後において、解像度変換やスムージング処理などの画像処理を施してもよい。   In step S110, color conversion processing is performed. Specifically, referring to a color conversion table (not shown) stored in the storage unit 60, the RGB image data is color-converted to the CMYKLcLm format. In this step, image processing such as resolution conversion and smoothing processing may be performed before and after the color conversion processing.

ステップS120では、ハーフトーン処理を実行する。ハーフトーン処理とは、画像データの画素ごとに与えられる階調値(入力階調値)を、キャリッジに搭載されている各色インクノズルから吐出される小中大インク滴を吐出する/吐出しないを定めたデータ(上述したドットデータ)へと変換する処理である。なお、本実施形態のハーフトーン処理では、小中大インク滴を吐出する/吐出しないを定めたドットデータへと変換したが、ハーフトーン処理では、多値化処理を含んだ階調数変換(低減)処理であれば、この例に限られない。例えば、濃淡ドットのON/OFFを定めたドットデータへ変換してもよいし、小中大および濃淡のないドットのON/OFFを定めたドットデータへと変換してもよい。   In step S120, halftone processing is executed. Halftone processing is to determine whether or not to eject small / medium / large ink droplets ejected from each color ink nozzle mounted on the carriage using gradation values (input gradation values) given to each pixel of image data. This is a process of converting into predetermined data (the dot data described above). In the halftone process of this embodiment, the dot data is converted into dot data that determines whether small, medium, and large ink droplets are ejected or not. However, in the halftone process, tone number conversion (including multi-value processing) The reduction is not limited to this example. For example, the dot data may be converted into dot data that defines ON / OFF of light and dark dots, or may be converted into dot data that defines ON / OFF of small, medium, large, and non-light dots.

ステップS130では、インターレース処理を実行する。詳しくは、ハーフトーン処理されたドットの配列を、プリンター20のノズル配置や紙送り量などに合わせて、1回の主走査単位で形成するドットパターンのデータに並び替える処理である。   In step S130, an interlace process is executed. More specifically, the halftone processed dot arrangement is rearranged into dot pattern data formed in one main scanning unit in accordance with the nozzle arrangement of the printer 20 and the paper feed amount.

ステップS140では、印刷を実行する。詳しくは、印刷機構部70を制御して、印刷ヘッド、キャリッジモーター、紙送りモーター等(いずれも図示を省略)を駆動し、印刷を実行する。
なお、ステップS130,S140は、印刷工程に相当する。
In step S140, printing is executed. Specifically, the printing mechanism unit 70 is controlled to drive a print head, a carriage motor, a paper feed motor, and the like (all not shown) to execute printing.
Steps S130 and S140 correspond to a printing process.

(ハーフトーン処理)
図3は、ハーフトーン処理の流れを示すフローチャート図である。ハーフトーン処理は、ディザハーフトーンの結果に基づいて誤差拡散処理を行い、ドットのON/OFFデータを生成する。本フローは、ステップS120(図2)におけるハーフトーン処理を実現するフローである。本フローが、終了するとステップS130(図2)へ処理が移される。
(Halftone processing)
FIG. 3 is a flowchart showing the flow of halftone processing. In the halftone processing, error diffusion processing is performed based on the dither halftone result, and dot ON / OFF data is generated. This flow is a flow for realizing the halftone processing in step S120 (FIG. 2). When this flow ends, the process proceeds to step S130 (FIG. 2).

ステップS200では、ディザハーフトーン処理を実行する。ディザハーフトーンは、記憶部60に格納されているディザマスク63の閾値と入力階調値を比較する処理である。画素ごとに比較した結果、入力階調値がディザマスク63の閾値より大きい場合はその画素が「ドットON」として出力され、そうでない場合は「ドットOFF」として出力される。   In step S200, dither halftone processing is executed. The dither halftone is a process of comparing the threshold value of the dither mask 63 stored in the storage unit 60 with the input tone value. As a result of comparison for each pixel, when the input gradation value is larger than the threshold value of the dither mask 63, the pixel is output as “dot ON”, and otherwise, it is output as “dot OFF”.

ステップS210は、ステップS200のディザ比較結果がONであるかOFFであるかを判定する。本ステップは、ステップS200において出力された画素のドットON/OFFを参照して、ドットONの場合は(ON)、ステップS220へ進み、ドットOFFの場合は(OFF)、ステップS230へ進む。   In step S210, it is determined whether the dither comparison result in step S200 is ON or OFF. In this step, referring to the dot ON / OFF of the pixel output in step S200, if the dot is ON (ON), the process proceeds to step S220. If the dot is OFF (OFF), the process proceeds to step S230.

ステップS220では、ステップS210のディザ比較結果がONという出力を参照して、ディザ結果ON用誤差拡散閾値テーブルを選択する。誤差拡散ON用閾値テーブルとは、記憶部60に格納されている誤差拡散閾値テーブル65のひとつであり、ディザ比較でONと判定された結果と一致するように閾値を低く(−255)設定した誤差拡散閾値である。   In step S220, the dither result ON-use error diffusion threshold table is selected with reference to the output indicating that the dither comparison result in step S210 is ON. The error diffusion ON threshold table is one of the error diffusion threshold tables 65 stored in the storage unit 60, and the threshold is set low (−255) so as to coincide with the result determined to be ON by the dither comparison. Error diffusion threshold.

ステップS230では、ステップS210のディザ比較結果がOFFという出力を参照して、ディザ結果OFF用誤差拡散閾値テーブルを選択する。誤差拡散OFF用閾値テーブルとは、記憶部60に格納されている誤差拡散閾値テーブル65のひとつであり、通常の誤差拡散閾値テーブルと同等の閾値テーブルである。したがって、ディザ比較でOFFと判定された場合は2値化誤差を周囲の画素に拡散し誤差を捨て切らないため、線のつながりが良くなるという誤差拡散の特性を発揮する。   In step S230, an error diffusion threshold table for dither result OFF is selected with reference to the output that the dither comparison result in step S210 is OFF. The error diffusion OFF threshold table is one of the error diffusion threshold tables 65 stored in the storage unit 60, and is a threshold table equivalent to a normal error diffusion threshold table. Accordingly, when it is determined that the dither comparison is OFF, the binarization error is diffused to the surrounding pixels and the error is not discarded, so that the error diffusion characteristic that the line connection is improved is exhibited.

ステップS240では、入力階調値と誤差拡散閾値とを比較し、入力階調値が誤差拡散閾値よりも大きいか否かを判定する。このときの誤差拡散閾値はステップS220およびステップS230で選択された誤差拡散閾値テーブルの値を用いる。対象とする画素の入力階調値が誤差拡散閾値よりも大きい場合は(Yes)、ステップS250へ進み、入力階調値が誤差拡散閾値以下の場合は(No)、ステップS260へ進む。   In step S240, the input tone value and the error diffusion threshold are compared to determine whether or not the input tone value is greater than the error diffusion threshold. As the error diffusion threshold at this time, the value of the error diffusion threshold table selected in step S220 and step S230 is used. When the input tone value of the target pixel is larger than the error diffusion threshold (Yes), the process proceeds to step S250, and when the input tone value is equal to or less than the error diffusion threshold (No), the process proceeds to step S260.

ステップS250では、対象の画素のドットをONにする。ステップS240で入力階調値と誤差拡散閾値を比較した結果、入力階調値が誤差拡散閾値を超えている場合、生成するドットデータをONとする。   In step S250, the dot of the target pixel is turned ON. If the input tone value exceeds the error diffusion threshold as a result of comparing the input tone value with the error diffusion threshold in step S240, the dot data to be generated is turned ON.

ステップS260では、対象の画素のドットをOFFにする。ステップS240で入力階調値と誤差拡散閾値を比較した結果、入力階調値が誤差拡散閾値以下であった場合、生成するドットデータをOFFとする。   In step S260, the dot of the target pixel is turned off. If the input tone value is equal to or smaller than the error diffusion threshold as a result of comparing the input tone value with the error diffusion threshold in step S240, the dot data to be generated is turned OFF.

ステップS270では、ステップS250またはステップS260で生じた2値化結果の誤差値を周囲の画素の階調値に拡散して適用する。
ステップS200〜S270までの処理は、画像データの画素ごとに繰り返し処理され、画像データの全画素の処理が終了すると、ステップS130へ処理を移す。なお、ステップS270によって誤差値が適用された画素の階調値は、ステップS240における入力階調値に反映され、処理が繰り返されている。
なお、ステップS220〜S270までの処理は、誤差拡散処理工程に相当する。
In step S270, the error value of the binarization result generated in step S250 or step S260 is diffused and applied to the gradation values of surrounding pixels.
The processing from step S200 to S270 is repeatedly performed for each pixel of the image data, and when the processing of all the pixels of the image data is completed, the processing proceeds to step S130. Note that the gradation value of the pixel to which the error value is applied in step S270 is reflected in the input gradation value in step S240, and the process is repeated.
Note that the processing from steps S220 to S270 corresponds to an error diffusion processing step.

(ディザハーフトーン)
図4は、ディザハーフトーンの流れを示すフローチャート図である。ディザハーフトーンでは、入力階調値を図5において説明する入力階調値変換テーブル61を用いて変換階調値へ変換する。変換された変換階調値とディザマスク63の閾値とを比較し、変換階調値がディザマスク63の閾値を超えている場合はディザ結果ON、そうでない場合はディザ結果OFFと判定する。
(Dither halftone)
FIG. 4 is a flowchart showing the flow of dither halftone. In dither halftone, an input tone value is converted into a converted tone value using an input tone value conversion table 61 described in FIG. The converted converted gradation value is compared with the threshold value of the dither mask 63, and if the converted gradation value exceeds the threshold value of the dither mask 63, it is determined that the dither result is ON, and otherwise, the dither result is OFF.

ステップS300では、入力階調値の変換を実行する。入力階調値の変換では、入力階調値変換テーブル61を使用し、入力階調値を変換階調値へ変換する。なお、本ステップは、変換工程に相当する。   In step S300, input tone value conversion is executed. In the conversion of the input gradation value, the input gradation value conversion table 61 is used to convert the input gradation value into the converted gradation value. This step corresponds to a conversion process.

ステップS310では、ステップS300で変換された変換階調値とディザマスク63の閾値との比較を行う。両者を比較した結果、変換階調値がディザマスク63の閾値を超えている場合は(Yes)、ステップS320へ進み、変換階調値がディザマスク63を超えていない場合(No)は、ステップS330へ進む。   In step S310, the converted gradation value converted in step S300 is compared with the threshold value of the dither mask 63. If the converted gradation value exceeds the threshold value of the dither mask 63 (Yes) as a result of comparing the two, the process proceeds to step S320, and if the converted gradation value does not exceed the dither mask 63 (No), step S320 is performed. Proceed to S330.

ステップS320では、ディザ結果ONにする。詳しくは、ステップS310で比較した結果、変換階調値がディザマスク63の閾値を超えている場合、ディザ結果を「ON」に設定する。本ステップにおいて「ON」に設定された画素は、最終的に出力されるドットデータではなく、以降に処理される誤差拡散処理でディザ結果ON用誤差拡散閾値テーブルを選択する際(ステップS210,S220)に参照される。   In step S320, the dither result is turned ON. Specifically, if the converted gradation value exceeds the threshold value of the dither mask 63 as a result of the comparison in step S310, the dither result is set to “ON”. The pixel set to “ON” in this step is not the dot data to be finally output, but when the error diffusion threshold table for dither result ON is selected in the error diffusion processing to be processed later (steps S210 and S220). ).

ステップS330では、ディザ結果OFFにする。詳しくは、ステップS310で比較した結果、変換階調値がディザマスク63の閾値以下であった場合、ディザ結果を「OFF」に設定する。本ステップにおいて「OFF」に設定された画素は、最終的に出力されるドットデータではなく、以降に処理される誤差拡散処理でディザ結果OFF用誤差拡散閾値テーブルを選択する際(ステップS210,S230)に参照される。
なお、ステップS310〜S330は、比較工程に相当する。
In step S330, the dither result is turned off. Specifically, if the converted gradation value is equal to or less than the threshold value of the dither mask 63 as a result of the comparison in step S310, the dither result is set to “OFF”. The pixel set to “OFF” in this step is not the dot data to be finally output, but when the error diffusion threshold table for dither result OFF is selected in the error diffusion processing to be processed later (steps S210 and S230). ).
Steps S310 to S330 correspond to a comparison process.

このようにして、淡い階調値に該当する入力階調値が減算され、減算された変換階調値にディザマスク処理を施すことで、淡い階調値のディザ結果をONになりにくくすることができる。   In this way, the input gradation value corresponding to the light gradation value is subtracted, and the dither mask process is applied to the subtracted converted gradation value, thereby making it difficult to turn on the dither result of the light gradation value. Can do.

(入力階調値から変換階調値への変換)
次に、図5を用いて、変換部51において変換される入力階調値と変換階調値との関係について説明する。
図5は、入力階調値と変換階調値との関係を示すグラフである。
グラフ100は、記憶部60に格納されている入力階調値変換テーブル61により変換される入力階調値と変換階調値との関係を示すグラフである。横軸は入力階調値、縦軸は変換階調値であり、両軸とも「0」(淡い)〜「255」(濃い)の整数値を示している。実線101は、入力階調値と変換階調値との関係を示しており、入力階調値が実線101に交わった点が変換階調値として変換される。点線103は、実線101と比較するために設けた補助線であり、入力階調値と変換階調値とが等しい場合の関係を示している。
範囲Aは、入力階調値が「0」以上「63」以下の範囲を示している。範囲Dは、入力階調値が「64」以上「255」以下の範囲を示している。範囲Bは、入力階調値が「0」以上「15」以下の範囲を示している。範囲Cは、入力階調値が「16」以上「63」以下の範囲を示している。
(Conversion from input gradation value to converted gradation value)
Next, the relationship between the input gradation value converted by the conversion unit 51 and the converted gradation value will be described with reference to FIG.
FIG. 5 is a graph showing the relationship between the input gradation value and the converted gradation value.
The graph 100 is a graph showing the relationship between the input gradation value converted by the input gradation value conversion table 61 stored in the storage unit 60 and the converted gradation value. The horizontal axis is the input gradation value, the vertical axis is the converted gradation value, and both axes indicate integer values from “0” (light) to “255” (dark). A solid line 101 indicates the relationship between the input gradation value and the converted gradation value, and a point where the input gradation value intersects the solid line 101 is converted as a converted gradation value. A dotted line 103 is an auxiliary line provided for comparison with the solid line 101, and shows a relationship when the input gradation value and the converted gradation value are equal.
A range A indicates a range where the input gradation value is “0” or more and “63” or less. A range D indicates a range where the input gradation value is “64” or more and “255” or less. A range B indicates a range where the input gradation value is “0” or more and “15” or less. A range C indicates a range where the input gradation value is “16” or more and “63” or less.

範囲Aでは、実線101が点線103よりも変換階調値「0」側に偏っている。また、偏り傾向は、範囲Aの終端に近づくに連れて、点線103は実線101に近接し、範囲Dの先端である入力階調値が「64」においては、変換階調値は「64」を示し一致している。
範囲Bは、範囲Aに含まれ、入力階調値が「0」以上「15」以下の範囲を示している。この範囲では、実線101においては、変換階調値は「0」を示している。つまり、範囲B(入力階調値「0」以上「15」以下)の変換階調値は「0」(最淡の濃度)である。
範囲Cでは、実線101が、範囲Bの終端である変換階調値「0」から、範囲Aの終端に向けて、点線103と等しい変換階調値の値まで徐々に増加している。
範囲Dでは、実線101は、点線103と重なっているため、入力階調値はそのまま変換階調値として出力されている。
In the range A, the solid line 101 is biased toward the converted gradation value “0” side than the dotted line 103. Further, as the bias tendency approaches the end of the range A, the dotted line 103 approaches the solid line 101, and when the input tone value at the tip of the range D is “64”, the converted tone value is “64”. Shows a match.
A range B is included in the range A and indicates a range where the input gradation value is “0” or more and “15” or less. In this range, in the solid line 101, the converted gradation value indicates “0”. That is, the converted gradation value in the range B (input gradation value “0” or more and “15” or less) is “0” (the lightest density).
In the range C, the solid line 101 gradually increases from the converted gradation value “0” at the end of the range B to the value of the converted gradation value equal to the dotted line 103 toward the end of the range A.
In the range D, since the solid line 101 overlaps the dotted line 103, the input gradation value is output as it is as the converted gradation value.

このような変換により、範囲Bでは、入力階調値をゼロに変換することで、ステップS310において変換階調値がディザマスク63の閾値を超えなくする。これにより、範囲Bの入力階調値では、例えば、入力階調が小さい淡い背景部ではディザによるドット発生を無くすことができる。   By such conversion, in the range B, the input gradation value is converted to zero so that the converted gradation value does not exceed the threshold value of the dither mask 63 in step S310. Thereby, in the input gradation value in the range B, for example, in the light background portion where the input gradation is small, the generation of dots due to dither can be eliminated.

範囲Cでは、範囲Bの終端から範囲Dの先端までの不連続となる領域を連続的になるように補間する。これにより、グラデーション画像などを滑らかに表現することができる。   In the range C, the discontinuous region from the end of the range B to the tip of the range D is interpolated so as to be continuous. Thereby, a gradation image etc. can be expressed smoothly.

入力階調値変換テーブル61では、入力階調値に対応する入力項目と変換階調値に対応する出力項目が備えられており、入力項目には、「0」〜「255」の数値、出力項目には、入力項目の数値(入力階調値)に対応する実線101の変換階調値の数値が格納されている。変換部51では、この入力階調値変換テーブル61の入力項目に入力階調値を入力して、変換階調値の数値を取得することができる。   The input tone value conversion table 61 includes an input item corresponding to the input tone value and an output item corresponding to the converted tone value. The input items include numerical values from “0” to “255” and output. In the item, the numerical value of the converted gradation value of the solid line 101 corresponding to the numerical value (input gradation value) of the input item is stored. The conversion unit 51 can acquire the numerical value of the converted gradation value by inputting the input gradation value into the input item of the input gradation value conversion table 61.

なお、範囲Aは所定範囲に相当し、相対的に最小である範囲Bが第1範囲に相当する。また、範囲B以外の範囲Cは第2範囲に相当する。点線103と実線101との差分は、入力階調値から変換階調値を減算した所定階調値に相当する。
また、最大階調値は「255」であり、最小階調値は、「0」である。「0」から「255」までの階調値における四半(四分の一)を示す階調値の範囲は、「0」〜「63」、「64」〜「127」、「128」〜「191」、「192」〜「255」であり、その中で最も最小階調値「0」に近い範囲は、「0」〜「63」の範囲であり、この範囲は所定範囲に相当する。
The range A corresponds to a predetermined range, and the relatively minimum range B corresponds to the first range. A range C other than the range B corresponds to the second range. The difference between the dotted line 103 and the solid line 101 corresponds to a predetermined gradation value obtained by subtracting the converted gradation value from the input gradation value.
The maximum gradation value is “255”, and the minimum gradation value is “0”. The gradation value ranges indicating quarters (quarters) in the gradation values from “0” to “255” are “0” to “63”, “64” to “127”, and “128” to “128”. "191", "192" to "255", and the range closest to the minimum gradation value "0" is the range "0" to "63", and this range corresponds to a predetermined range.

(効果の説明)
次に、図6A〜Cを用いて、プリンター20において画像データを印刷した場合の効果について、例示をして説明する。
図6A〜Cは、効果を説明するドットパターン図である。図6Aは原画像データ、図6Bは従来方法によるハーフトーン結果、図6Cは、本実施形態によるハーフトーン結果の例示を示している。
(Explanation of effect)
Next, the effects when image data is printed by the printer 20 will be described by way of example with reference to FIGS.
6A to 6C are dot pattern diagrams for explaining the effect. FIG. 6A shows original image data, FIG. 6B shows a halftone result by a conventional method, and FIG. 6C shows an example of a halftone result by this embodiment.

図6Aは入力される原画像データであり、格子の一つ一つが原画像の各画素を表す。各画素は左上からPA(1,1)、右下をPA(6,6)とする。点描で示した画素(PA(1,1),PA(2,1)など)は、入力階調値が小さく(「16」以下)淡い背景部である。斜線格子で示した画素(PA(6,1),PA(5,2)など)は、入力階調値が背景部より大きく(入力階調値「64」超「255」以下)直線部を表している。原画データは、例えば、表示画面等に表示すると、淡い濃度の背景部に濃い濃度の斜めの直線が繋がっているように表示される。このような原画像の各画素を2値化して、ドットONおよびドットOFFを決定された結果について図6Bおよび図6Cを用いて説明する。   FIG. 6A shows the input original image data, and each grid represents each pixel of the original image. Each pixel has PA (1, 1) from the upper left and PA (6, 6) from the lower right. Pixels (PA (1, 1), PA (2, 1), etc.) indicated by stippling are light background portions with small input gradation values (“16” or less). Pixels (PA (6, 1), PA (5, 2), etc.) indicated by diagonal grids have an input tone value larger than the background portion (input tone value “over 64” and “255” or less). Represents. For example, when the original image data is displayed on a display screen or the like, the original image data is displayed such that a diagonal line having a high density is connected to a background part having a low density. The result of binarizing each pixel of the original image and determining dot ON and dot OFF will be described with reference to FIGS. 6B and 6C.

図6Bと図6Cとは、図6Aの原画像データをハーフトーンした結果であり、図6Bは従来の方法でハーフトーンを行い、図6Cは本実施形態でハーフトーンを行った結果のドットパターン図である。図6Bと図6Cの各画素は図6Aのドットパターンと同様の領域を表し、各画素の位置を図6Bでは、PB(1,1)〜PB(6,6)として示し、図6Cでは、PC(1,1)〜PC(6,6)として示す。斜線で示す画素はドットがONとなった画素で、白で示す画素はドットがOFFの画素である。   6B and 6C are the results of halftoning the original image data of FIG. 6A, FIG. 6B is a halftone process performed by the conventional method, and FIG. 6C is a dot pattern resulting from the halftone process performed in the present embodiment. FIG. Each pixel in FIG. 6B and FIG. 6C represents the same area as the dot pattern in FIG. 6A, and the position of each pixel is shown as PB (1,1) to PB (6,6) in FIG. 6B. Shown as PC (1,1) to PC (6,6). Pixels indicated by diagonal lines are pixels whose dots are ON, and pixels indicated by white are pixels whose dots are OFF.

図6Bでは、背景部の入力階調値が変換されることなくディザマスク63の閾値と比較されるため、背景部の入力階調値がディザマスク63の閾値よりも大きければドットONとなる。例えば、斜線で示すPB(2,3)がそのドットONの画素である。その結果、誤差拡散処理部55において負の誤差値が溜まり、PB(2,3)の直後にある線部のドットがONになりにくくなる。つまり、原画像データのPA(4,3)とPA(3,4)の濃い濃度のドットが、PB(4,3)およびPB(3,4)では、ドットOFFになってしまうおそれがある。   In FIG. 6B, since the input gradation value of the background portion is compared with the threshold value of the dither mask 63 without being converted, if the input gradation value of the background portion is larger than the threshold value of the dither mask 63, the dot is turned ON. For example, PB (2, 3) indicated by hatching is a pixel with the dot ON. As a result, a negative error value is accumulated in the error diffusion processing unit 55, and it becomes difficult for the dot in the line portion immediately after PB (2, 3) to turn on. That is, there is a possibility that the dots of dark density PA (4,3) and PA (3,4) in the original image data will be turned off at PB (4,3) and PB (3,4). .

一方、図6Cは、背景部の入力階調値が入力階調値変換テーブル61によって変換階調値に変換され、変換階調値はディザマスク63の閾値を超えないため、ドットは発生しなくなる。例えば、白抜きで示したPC(2,3)がそのドットOFFの画素である。その結果、誤差拡散処理部55において正の誤差値が蓄積され、図6Bでは発生しなかったドット(PB(4,3)、PB(3,4))が図6Cでは発生するようになる(PC(4,3)、(3,4))。
なお、図6CにおけるPC(1,1)の斜線の画素では、ドットが発生しているが、淡い濃度の背景部において、多少のドットONの画素が必要であり、そのドット発生である。なお、このドットONは、濃い濃度の線部に影響を与えていない。
On the other hand, in FIG. 6C, since the input gradation value of the background portion is converted into the converted gradation value by the input gradation value conversion table 61, and the converted gradation value does not exceed the threshold value of the dither mask 63, no dots are generated. . For example, the PC (2, 3) shown in white is the dot OFF pixel. As a result, positive error values are accumulated in the error diffusion processing unit 55, and dots (PB (4,3), PB (3,4)) that did not occur in FIG. 6B are generated in FIG. 6C (FIG. 6C). PC (4,3), (3,4)).
6C, dots are generated in the diagonally shaded pixels of PC (1, 1). However, in the background portion with a light density, some dots ON pixels are necessary, which is the occurrence of dots. Note that this dot ON does not affect a line portion having a high density.

このような本実施形態のハーフトーン処理によれば、変換部51において入力階調値が小さい画素はディザマスク63の閾値を超えないため、ディザ結果がONになりにくくなる。これにより、誤差拡散処理部55では負の誤差値が溜まりにくくなり、原画像データから存在していたドットを発生しやすくすることができる。   According to such a halftone process of the present embodiment, since the pixel having a small input gradation value does not exceed the threshold value of the dither mask 63 in the conversion unit 51, the dither result is not easily turned on. As a result, it is difficult for the error diffusion processing unit 55 to accumulate negative error values, and it is possible to easily generate dots existing from the original image data.

以上述べたように、本実施形態におけるプリンター20は、以下の効果を得ることができる。
変換部51は、入力階調値の中で淡い濃度の階調値(「0」以上「64」以下)の階調値を有する画素の階調値を入力階調値変換テーブル61に基づいて、減算して変換階調値を出力する。入力階調値を減算した変換階調値はディザマスク63の閾値を超えにくくなるため、ディザによるドット発生が減る。これにより、誤差拡散処理部55では負の誤差値が溜まりにくくなり、原画像データから存在していたドットを発生しやすくすることができる。図6で示したように、淡い濃度の背景部を有する比較的濃い線部は、従来の方法では、途切れてしまったが、本実施形態では途切れずに線を繋げることができている。
このようにして、淡い濃度の背景部における入力階調値を減算することで、淡い濃度の背景部との境界に近い部分で発生していた濃い濃度の線の途切れや、や文字等の輪郭のドットの欠如してしまうことが少なくなる。
As described above, the printer 20 in this embodiment can obtain the following effects.
Based on the input tone value conversion table 61, the conversion unit 51 converts the tone value of a pixel having a tone value with a light density (“0” to “64”) among the input tone values. The converted gradation value is output by subtraction. Since the converted gradation value obtained by subtracting the input gradation value is less likely to exceed the threshold value of the dither mask 63, the occurrence of dots due to dither is reduced. As a result, it is difficult for the error diffusion processing unit 55 to accumulate negative error values, and it is possible to easily generate dots existing from the original image data. As shown in FIG. 6, the relatively dark line portion having a light background portion has been interrupted in the conventional method, but in the present embodiment, the line can be connected without being interrupted.
In this way, by subtracting the input tone value in the background area with the light density, the dark density line breaks that occurred near the boundary with the background area with the light density, or the outline of characters, etc. The lack of dots will be less.

なお、本発明は上述した実施形態に限定されず、上述した実施形態に種々の変更や改良などを加えることが可能である。変形例を以下に述べる。   Note that the present invention is not limited to the above-described embodiment, and various modifications and improvements can be added to the above-described embodiment. A modification will be described below.

(変形例1)
上述の実施形態では、印刷装置の一例としてプリンター20を用いて説明したが、このような構成に限定されない。画像を印刷する装置だけではなく表示形式の異なる画像処理装置であってもよい。図1を用いて画像処理装置の構成について説明する。画像処理装置では、入力部41、変換部51、比較部53、誤差拡散処理部55、および記憶部60が少なくとも備えられていればよい。この場合、制御部40(CPU)により、入力部41から画像データを入力し、変換部51、比較部53、誤差拡散処理部55の各部の機能が実現されることでドットデータが生成される。ドットデータは、記録材の色ごとに生成された画像データとして出力することができる。上述の実施形態と同様な効果を得ることができている。更に、画像処理装置では、例えば、電子ペーパーや液晶ディスプレイのような表示装置(図示は省略)を備えてもよく、表示装置には図・グラフと文字・線といった情報をドットのON/OFFの2値のみで表示する機器であってもよい。上述した実施形態の印刷媒体が、表示装置に置き換わるだけであるため、上述の実施形態と同様の効果が得られる。
(Modification 1)
In the above-described embodiment, the printer 20 has been described as an example of a printing apparatus, but is not limited to such a configuration. Not only an image printing apparatus but also an image processing apparatus with a different display format may be used. The configuration of the image processing apparatus will be described with reference to FIG. The image processing apparatus may include at least the input unit 41, the conversion unit 51, the comparison unit 53, the error diffusion processing unit 55, and the storage unit 60. In this case, the control unit 40 (CPU) inputs image data from the input unit 41, and the dot data is generated by realizing the functions of the conversion unit 51, the comparison unit 53, and the error diffusion processing unit 55. . The dot data can be output as image data generated for each color of the recording material. The same effect as the above-described embodiment can be obtained. Further, the image processing apparatus may be provided with a display device (not shown) such as an electronic paper or a liquid crystal display, for example, and information such as figures, graphs, characters, and lines is displayed on the display device. A device that displays only binary values may be used. Since the print medium of the above-described embodiment is merely replaced with a display device, the same effect as that of the above-described embodiment can be obtained.

(変形例2)
上述の実施形態および変形例におけるハーフトーン処理のフロー(図3、図4)においては、ハーフトーン処理の手順はあくまで一例であり、一部のステップを省略、更なるほかのステップの追加、実行されるステップの順序の変更といった種々の変形をしてもよい。例えば、ステップS210のディザ結果判定ステップでディザ結果ONの場合は、後のステップS240において必ず「ドットON」となるため、ステップS250のドットデータONを先に行ってもよく、上述の実施形態と同様の結果を出力することができる。
(Modification 2)
In the flow of halftone processing (FIGS. 3 and 4) in the embodiment and the modification described above, the procedure of halftone processing is merely an example, some steps are omitted, and other steps are added and executed. Various modifications such as changing the order of the steps to be performed may be made. For example, in the case where the dither result is ON in the dither result determination step in step S210, since “dot ON” is always set in subsequent step S240, the dot data ON in step S250 may be performed first. Similar results can be output.

(変形例3)
上述の実施形態および変形例での記憶部60(図1)に格納されている入力階調値変換テーブル61は、テーブルで入力階調値から変換階調値へ変換するとしているが、テーブルに限らず、算術式であってもよい。算術式としては、例えば、256階調の処理対象画素(x,y)の入力階調値が16以下であった場合、(式1)を用いる。
変換階調値(x,y)=入力階調値(x,y)−入力階調値(x,y)・・・(式1)
また、入力階調値が17以上64以下の場合は、(式2)を用いる。
変換階調値(x,y)=入力階調値(x,y)−X ・・・(式2)
但し、Xは入力階調値(x,y)以下の値。
このような(式1)および(式2)であっても、入力階調値を減算することができるため、入力階調値変換テーブル61と同様の効果が得られる。
(Modification 3)
The input tone value conversion table 61 stored in the storage unit 60 (FIG. 1) in the above-described embodiment and modification is assumed to convert the input tone value to the converted tone value in the table. It is not limited to an arithmetic expression. As the arithmetic expression, for example, when the input gradation value of the processing target pixel (x, y) of 256 gradations is 16 or less, (Expression 1) is used.
Conversion gradation value (x, y) = input gradation value (x, y) −input gradation value (x, y) (Expression 1)
When the input gradation value is 17 or more and 64 or less, (Expression 2) is used.
Conversion gradation value (x, y) = input gradation value (x, y) −X (Expression 2)
However, X is a value equal to or smaller than the input gradation value (x, y).
Even in such (Equation 1) and (Equation 2), since the input gradation value can be subtracted, the same effect as the input gradation value conversion table 61 can be obtained.

(変形例4)
上述の実施形態および変形例では、入力階調値の所定範囲を0〜64としているが、所定範囲は淡い背景部の階調値に該当すれば他の範囲であってもよい。最も効果が得られる範囲は、正の誤差が溜まりにくく文字・線部でドットがONになりにくい0〜16付近であり、16より大きい範囲では、正の誤差が溜まりやすいため、所定範囲の最大値は64から広げたり狭めたりしてもよい。
(Modification 4)
In the above-described embodiment and modification, the predetermined range of the input gradation value is 0 to 64. However, the predetermined range may be another range as long as it corresponds to the gradation value of the light background portion. The most effective range is from 0 to 16 in which positive errors are unlikely to accumulate and dots are unlikely to turn on in characters / line portions. In a range larger than 16, positive errors are likely to accumulate. The value may be widened or narrowed from 64.

(変形例5)
上述の実施形態および変形例では、淡い背景部におけるディザによるドットの発生を減らすため、入力階調値の所定範囲を0〜64の1つだけを例示したが、所定範囲は複数あってもよい。例えば、さらに濃い濃度(階調値80〜128)で誤差拡散によるドットの発生を増やして文字・線の品質を良くしたい場合は、2つ目の所定範囲80〜128を追加してもよい。
(Modification 5)
In the above-described embodiment and modification, in order to reduce the occurrence of dots due to dither in a light background portion, only one predetermined range of input gradation values is illustrated as 0 to 64, but there may be a plurality of predetermined ranges. . For example, the second predetermined range 80 to 128 may be added when it is desired to improve the quality of characters and lines by increasing the generation of dots due to error diffusion at a higher density (gradation values 80 to 128).

(変形例6)
上述の実施形態の所定範囲は、CMYKなどの記録材ごとに異なる値であってもよい。例えば、Cの所定範囲は0〜48、Mの所定範囲は0〜80であっても、最も効果が得られる0〜16の範囲が含まれていれば、上述の実施例と同様の効果が得られる。
(Modification 6)
The predetermined range of the above-described embodiment may be a different value for each recording material such as CMYK. For example, even if the predetermined range of C is 0 to 48 and the predetermined range of M is 0 to 80, as long as the range of 0 to 16 where the maximum effect is obtained is included, the same effect as the above-described embodiment is obtained. can get.

(変形例7)
上述の実施形態の第1範囲では、入力階調値から入力階調値を減算し、減算後の変換階調値は0にしているが、負の値になってもよい。ディザマスク63の閾値の最小値が正の値であるため、変換階調値が0以下であればディザマスク63の閾値を超えず、上述の実施形態と同様の効果が得られる。
(Modification 7)
In the first range of the above-described embodiment, the input gradation value is subtracted from the input gradation value, and the converted gradation value after subtraction is set to 0, but it may be a negative value. Since the minimum value of the threshold value of the dither mask 63 is a positive value, if the converted gradation value is 0 or less, the threshold value of the dither mask 63 is not exceeded, and the same effect as in the above embodiment can be obtained.

20…プリンター、30…制御ユニット、40…制御部、41…入力部、50…ハーフトーン処理部、51…変換部、53…比較部、55…誤差拡散処理部、57…印刷部、60…記憶部、61…入力階調値変換テーブル、63…ディザマスク、65…誤差拡散閾値テーブル、67…プログラム、70…印刷機構部、98…メモリカードスロット、99…操作パネル、MC…メモリカード。   DESCRIPTION OF SYMBOLS 20 ... Printer, 30 ... Control unit, 40 ... Control part, 41 ... Input part, 50 ... Halftone processing part, 51 ... Conversion part, 53 ... Comparison part, 55 ... Error diffusion processing part, 57 ... Printing part, 60 ... Storage unit 61 ... Input gradation value conversion table 63 ... Dither mask 65 ... Error diffusion threshold table 67 67 Program 70 Printing mechanism unit 98 Memory card slot 99 Operation panel MC Memory card

Claims (9)

画像データに基づいて画像を印刷する印刷装置であって、
前記画像データを入力する入力部と、
前記入力した画像データの階調値である入力階調値を変換して変換階調値を生成する変換部と、
前記変換階調値に基づいてディザマスクの閾値と比較して比較結果を出力する比較部と、
前記比較結果と前記入力階調値とに基づいて、誤差拡散法によりドットデータを生成する誤差拡散処理部と、
前記生成されたドットデータを用いて前記画像を印刷する印刷部と、
を備え、
前記変換部は、前記入力階調値が所定範囲内である場合は、前記入力階調値から所定階調値を減算して前記変換階調値を生成することを特徴とする印刷装置。
A printing device that prints an image based on image data,
An input unit for inputting the image data;
A conversion unit that converts an input gradation value that is a gradation value of the input image data to generate a converted gradation value;
A comparison unit that outputs a comparison result by comparing with a threshold value of a dither mask based on the converted gradation value;
An error diffusion processing unit that generates dot data by an error diffusion method based on the comparison result and the input gradation value;
A printing unit that prints the image using the generated dot data;
With
When the input gradation value is within a predetermined range, the conversion unit generates the converted gradation value by subtracting a predetermined gradation value from the input gradation value.
前記変換部は、前記所定範囲を分割した範囲において、前記入力階調値が相対的に最小である第1範囲では、前記所定階調値を前記入力階調値として、前記変換階調値を生成することを特徴とする請求項1に記載の印刷装置。   In the first range in which the input gradation value is relatively minimum in a range obtained by dividing the predetermined range, the conversion unit sets the conversion gradation value as the input gradation value and uses the predetermined gradation value as the input gradation value. The printing apparatus according to claim 1, wherein the printing apparatus generates the printing apparatus. 前記変換部は、前記所定範囲を分割した範囲において、前記入力階調値が相対的に最小となる範囲以外の第2範囲では、前記所定階調値を前記入力階調値以下の階調値として、前記変換階調値を生成することを特徴とする請求項1に記載の印刷装置。   In the second range other than the range where the input gradation value is relatively minimum in the range obtained by dividing the predetermined range, the conversion unit converts the predetermined gradation value to a gradation value equal to or less than the input gradation value. The printing apparatus according to claim 1, wherein the conversion gradation value is generated. 前記所定範囲は、階調値の最濃度を示す最大値である最大階調値と、階調値の最淡度を示す最小値である最小階調値との中間を示す中間階調値以下で、前記最小階調値以上であることを特徴とする請求項1から請求項3のいずれか一項に記載の印刷装置。   The predetermined range is equal to or less than the intermediate gradation value indicating the middle between the maximum gradation value which is the maximum value indicating the maximum density of the gradation values and the minimum gradation value which is the minimum value indicating the lightest degree of the gradation value. 4. The printing apparatus according to claim 1, wherein the printing apparatus is equal to or greater than the minimum gradation value. 5. 前記所定範囲は、階調値の最濃度を示す最大値である最大階調値および階調値の最淡度を示す最小値である最小階調値の四半を示す階調値の範囲うち、最も最小階調値に近い範囲であることを特徴とする請求項1から請求項3のいずれか一項に記載の印刷装置。   The predetermined range is a range of gradation values indicating a quarter of a maximum gradation value that is a maximum value indicating the maximum density of gradation values and a minimum value that is a minimum value indicating the lightest degree of gradation values, The printing apparatus according to claim 1, wherein the printing apparatus is in a range closest to the minimum gradation value. 前記誤差拡散処理部は、前記画像データを構成する画素において前記比較結果と前記入力階調値との誤差値を前記画素の周囲の画素に拡散させ、前記誤差値が加算されて生成された補正階調値を誤差拡散の閾値と比較してドットデータを生成することを特徴とする請求項1から請求項5のいずれか一項に記載の印刷装置。   The error diffusion processing unit diffuses an error value between the comparison result and the input gradation value in pixels constituting the image data to pixels around the pixel, and a correction generated by adding the error value The printing apparatus according to claim 1, wherein dot data is generated by comparing a gradation value with an error diffusion threshold value. 画像データに基づいて画像を印刷する印刷方法であって、
前記画像データを入力する入力工程と、
前記入力した画像データの階調値である入力階調値を変換して変換階調値を生成する変換工程と、
前記変換階調値に基づいてディザマスクの閾値と比較し比較結果を出力する比較工程と、
前記比較結果と前記入力階調値とに基づいて、誤差拡散法によりドットデータを生成する誤差拡散処理工程と、
前記生成されたドットデータを用いて前記画像を印刷する印刷工程と、
を備え、
前記変換工程は、前記入力階調値が所定範囲内である場合は、前記入力階調値から所定階調値を減算して前記変換階調値を生成することを特徴とする印刷方法。
A printing method for printing an image based on image data,
An input step of inputting the image data;
A conversion step of converting the input gradation value, which is the gradation value of the input image data, to generate a converted gradation value;
A comparison step of comparing a dither mask threshold value based on the converted gradation value and outputting a comparison result;
Based on the comparison result and the input gradation value, an error diffusion processing step of generating dot data by an error diffusion method;
A printing step of printing the image using the generated dot data;
With
In the conversion step, when the input gradation value is within a predetermined range, the conversion gradation value is generated by subtracting the predetermined gradation value from the input gradation value.
画像データを入力する入力工程と、
前記入力した画像データの階調値である入力階調値を変換して変換階調値を生成する変換工程と、
前記変換階調値に基づいてディザマスクの閾値と比較し比較結果を出力する比較工程と、
前記比較結果と前記入力階調値とに基づいて、誤差拡散法によりドットデータを生成する誤差拡散処理工程と、
前記生成されたドットデータを用いて画像を印刷する印刷工程と、
を備え、
前記変換工程は、前記入力階調値が所定範囲内である場合は、前記入力階調値から所定階調値を減算して前記変換階調値を生成すること、
をコンピューターに実行させることを特徴とするプログラム。
An input process for inputting image data;
A conversion step of converting the input gradation value, which is the gradation value of the input image data, to generate a converted gradation value;
A comparison step of comparing a dither mask threshold value based on the converted gradation value and outputting a comparison result;
Based on the comparison result and the input gradation value, an error diffusion processing step of generating dot data by an error diffusion method;
A printing step of printing an image using the generated dot data;
With
The converting step generates the converted gradation value by subtracting a predetermined gradation value from the input gradation value when the input gradation value is within a predetermined range;
A program characterized by causing a computer to execute.
画像データに基づいてドットデータを生成する画像処理装置であって、
前記画像データを入力する入力部と、
前記入力した画像データの階調値である入力階調値を変換して変換階調値を生成する変換部と、
前記変換階調値に基づいてディザマスクの閾値と比較し比較結果を出力する比較部と、
前記比較結果と前記入力階調値とに基づいて、誤差拡散法により前記ドットデータを生成する誤差拡散処理部と、
を備え、
前記変換部は、前記入力階調値が所定範囲内である場合は、前記入力階調値から所定階調値を減算して前記変換階調値を生成することを特徴とする画像処理装置。
An image processing device that generates dot data based on image data,
An input unit for inputting the image data;
A conversion unit that converts an input gradation value that is a gradation value of the input image data to generate a converted gradation value;
A comparison unit that compares the threshold value of the dither mask based on the converted gradation value and outputs a comparison result;
An error diffusion processing unit that generates the dot data by an error diffusion method based on the comparison result and the input gradation value;
With
The image processing apparatus according to claim 1, wherein, when the input gradation value is within a predetermined range, the conversion unit generates the converted gradation value by subtracting the predetermined gradation value from the input gradation value.
JP2015253159A 2015-12-25 2015-12-25 Printing device, printing method, image processing device and program Pending JP2017114033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015253159A JP2017114033A (en) 2015-12-25 2015-12-25 Printing device, printing method, image processing device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015253159A JP2017114033A (en) 2015-12-25 2015-12-25 Printing device, printing method, image processing device and program

Publications (1)

Publication Number Publication Date
JP2017114033A true JP2017114033A (en) 2017-06-29

Family

ID=59232906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015253159A Pending JP2017114033A (en) 2015-12-25 2015-12-25 Printing device, printing method, image processing device and program

Country Status (1)

Country Link
JP (1) JP2017114033A (en)

Similar Documents

Publication Publication Date Title
KR102318488B1 (en) Image processing apparatus and image processing method
JP2004235993A (en) Method for image processing
CN110012193B (en) Image processing apparatus and control method thereof
US9406004B2 (en) Image processing apparatus, image processing method, and storage medium
JP2018056873A (en) Image processing device and computer program
JP2015167306A (en) Printer, printing data generation device and method therefor, and printing data generation program
JP6175914B2 (en) Printing apparatus, printing method, and image processing apparatus
JP6390405B2 (en) Printing apparatus, printing method, program, and image processing apparatus
JP2011259121A (en) Image processing apparatus and program
US8208751B2 (en) Image processing apparatus, image processing method, and program
US9147140B2 (en) Image processing apparatus, method, and product for converting image data into fewer gradations based on total value of pixels in a group except for a detected pixel having a specific value
JP2010028314A (en) Image processing apparatus, method, and program
JP2014236460A (en) Printing device, printing method, program, and image processing device
JP5237215B2 (en) Image processing apparatus and method
US11770491B2 (en) Image processing device, image processing method, and storage medium
JP6781399B2 (en) Control device and computer program
JP2005252710A (en) Image processing apparatus, image processing method, and image processing program
JP6601225B2 (en) Control device and computer program
JP2019134232A (en) Image formation device, and method and program for the device
JP2017114033A (en) Printing device, printing method, image processing device and program
JP2005303666A (en) Image output system for outputting image on basis of information of number of dots formed within prescribed area
JP2011223520A (en) Image processing apparatus and image processing program
JP2015154425A (en) Image processing device and computer program
JP2020115625A (en) Printing system, image processing device, and printing method
JP7250508B2 (en) Image processing device, image processing method, and program