JP2017114033A - Printing device, printing method, image processing device and program - Google Patents
Printing device, printing method, image processing device and program Download PDFInfo
- 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
Links
Images
Landscapes
- Ink Jet (AREA)
- Particle Formation And Scattering Control In Inkjet Printers (AREA)
- Color, Gradation (AREA)
Abstract
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.
しかしながら、特許文献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.
以下、本発明の実施形態について、図面を参照して説明する。なお、以下の各図においては、各部を認識可能な程度の大きさにするため、各部の尺度を実際とは異ならせしめている。 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
制御ユニット30は、制御部40および記憶部60などから構成される制御回路またはASIC(Application Specific Integrated Circuit)である。
The
制御部40は、CPU(Central Processing Unit)であり、記憶部60、印刷機構部70、メモリカードスロット98、および操作パネル99などの各部を統括的に制御する。
制御部40は、入力部41、ハーフトーン処理部50、印刷部57などを機能部として有している。但し、これらの機能部は一実施例として記載したものに過ぎず、必ずしもこれらすべての機能部を必須構成要素としなければならないわけではない。また、これら以外の機能部を必須構成要素としてもよい。
さらに、図1の例のみでなく、操作パネル99とメモリカードスロット98と制御ユニット30の全体または一部の構成をホスト装置内に構成してもよい。ホスト装置には、パーソナルコンピューターといったコンピューター、デジタルカメラ、デジタルビデオカメラ、スマートフォンといった携帯電話、等が含まれる。
The
The
Further, not only the example of FIG. 1 but also the whole or a part of the
入力部41は、メモリカードスロット98のメモリカードMCから、印刷対象であるRGB(レッド、グリーン、ブルー)形式の画像データを読み込む。入力部41では、RGB色空間の画像データをインク等の記録材の色空間に変換する。記録材の色空間は、例えば、CMYK(シアン、マゼンタ、イエロー、ブラック)の色空間である。色空間の変換処理では、RGBの各色の階調値を、色変換テーブル(図示は省略)を用いて、CMYKの各色の階調値に変換する。変換された画像データは、画素毎にCMYKの各色の階調値を有して構成されている。なお、記録材の色空間はCMYKの4色に限定されず、Lc(ライトシアン)、Lm(ライトマゼンタ)などを含む6色であってもよく、また、単色(1色)などを含みその他の色数であってもよい。
The
ハーフトーン処理部50は、変換部51、比較部53、誤差拡散処理部55などを有して構成され、入力された画像データの階調値である入力階調値をハーフトーン処理(詳細は後述)してドットデータを生成する。なお、ドットデータは、画像データを構成する画素におけるドットの形成状態(ドットパターン)を表すデータであり、具体的には、画素が有する記録材の色空間の階調値毎にドットを形成するかしないか(あるいは、どのサイズのドットを形成する)を示すデータである。ここで、「ドット」とは、プリンター20のインクヘッドに備えられたインクノズルから吐出されるインク滴またはインク滴群が印刷用紙などの印刷媒体に着弾して形成される一つの領域をいう。ドットデータは、色毎に生成されるが、ハーフトーン処理は、各色に対して同様な処理が適用される。以降の説明では単色の処理として説明する。
The
変換部51は、入力階調値変換テーブル61(詳細は後述)を用いて、入力階調値を変換階調値へ変換する。詳しくは、所定範囲に該当する入力階調値を減算して、変換階調値へ変換している。階調値が、例えば、256段階で最も淡い階調値を0として、もっとも濃い階調値を255とした場合では、淡い濃度を表す階調値が0〜64の範囲を所定範囲とする。このようにすることで、淡い濃度を表す階調値を減算し、それ以外の範囲は、減算を行わない。以降の説明では、特に断りのない限り階調値を256段階として説明する。
所定範囲に該当する入力階調値を減算方向に変換する方法は、入力階調値変換テーブル61を参照して、画像データの各画素の階調値を変換して、画素ごとに変換階調値を算出する。入力階調値変換テーブル61には、入力階調値に対応する変換階調値が格納されている。詳細は後述する。
The
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
誤差拡散処理部55は、比較部53でディザマスク処理された比較結果と、誤差拡散閾値テーブル65とを用いて誤差拡散処理を行い、ドットデータを生成する。誤差拡散閾値テーブル65は、複数の種類の閾値テーブルを有し、その中から選択してもよい。例えば、比較結果がディザ結果ONの場合は、ディザ結果ON用誤差拡散閾値テーブルを選択し、比較結果がディザ結果OFFの場合は、ディザ結果OFF用誤差拡散閾値テーブルを選択する。
The error
印刷部57は、印刷機構部70を制御して、ドットデータを印刷機構部70へ出力する。詳しくは、誤差拡散処理部55によって記録材の色ごとに生成されたドットデータを印刷ヘッド(図示は省略)を有する印刷機構部70へ出力して、印刷ヘッドによって印刷媒体に印字する。
The
記憶部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
入力階調値変換テーブル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
ディザマスク63は、公知の組織的ディザ法によるハーフトーン処理に用いるテーブルであり、マトリックス状に配置された複数の閾値により構成される。
The
誤差拡散閾値テーブル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
印刷機構部70は、印刷媒体を搬送する搬送機構、キャリッジを往復運動させる往復動機構、印刷媒体に対してインク滴を吐出してドット形成を行うドット形成機構(いずれも図示は省略)を備えている。印刷機構部70では、印刷部57から出力されたドットデータに基づいて印刷媒体にインク滴を吐出すると、印刷媒体には画像や文字が印刷される。これらは、シリアル式インクジェットプリンターの構成例を示しているが、むろん、本技術を適用可能なインクジェットプリンターは、ライン式インクジェットプリンター等でもよい。本技術を適用可能な印刷装置は、レーザー式プリンターといった電子写真方式のプリンター等でもよく、複写機、ファクシミリ、これらの機能を備えた複合機、等でもよい。
The
(印刷処理)
図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
ステップ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
ステップS110では、色変換処理を行う。詳しくは、記憶部60に記憶された色変換テーブル(図示省略)を参照し、RGB形式の画像データを、CMYKLcLm形式に色変換する。なお、本ステップでは、色変換処理の前後において、解像度変換やスムージング処理などの画像処理を施してもよい。
In step S110, color conversion processing is performed. Specifically, referring to a color conversion table (not shown) stored in the
ステップ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
ステップS140では、印刷を実行する。詳しくは、印刷機構部70を制御して、印刷ヘッド、キャリッジモーター、紙送りモーター等(いずれも図示を省略)を駆動し、印刷を実行する。
なお、ステップS130,S140は、印刷工程に相当する。
In step S140, printing is executed. Specifically, the
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
ステップ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
ステップ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
ステップ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
ステップ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
ステップ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
ステップ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
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
FIG. 5 is a graph showing the relationship between the input gradation value and the converted gradation value.
The
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
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
In the range C, the
In the range D, since the
このような変換により、範囲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
範囲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
なお、範囲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
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
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
一方、図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
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
以上述べたように、本実施形態におけるプリンター20は、以下の効果を得ることができる。
変換部51は、入力階調値の中で淡い濃度の階調値(「0」以上「64」以下)の階調値を有する画素の階調値を入力階調値変換テーブル61に基づいて、減算して変換階調値を出力する。入力階調値を減算した変換階調値はディザマスク63の閾値を超えにくくなるため、ディザによるドット発生が減る。これにより、誤差拡散処理部55では負の誤差値が溜まりにくくなり、原画像データから存在していたドットを発生しやすくすることができる。図6で示したように、淡い濃度の背景部を有する比較的濃い線部は、従来の方法では、途切れてしまったが、本実施形態では途切れずに線を繋げることができている。
このようにして、淡い濃度の背景部における入力階調値を減算することで、淡い濃度の背景部との境界に近い部分で発生していた濃い濃度の線の途切れや、や文字等の輪郭のドットの欠如してしまうことが少なくなる。
As described above, the
Based on the input tone value conversion table 61, the
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
(変形例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
(変形例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
20…プリンター、30…制御ユニット、40…制御部、41…入力部、50…ハーフトーン処理部、51…変換部、53…比較部、55…誤差拡散処理部、57…印刷部、60…記憶部、61…入力階調値変換テーブル、63…ディザマスク、65…誤差拡散閾値テーブル、67…プログラム、70…印刷機構部、98…メモリカードスロット、99…操作パネル、MC…メモリカード。
DESCRIPTION OF
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.
前記画像データを入力する入力工程と、
前記入力した画像データの階調値である入力階調値を変換して変換階調値を生成する変換工程と、
前記変換階調値に基づいてディザマスクの閾値と比較し比較結果を出力する比較工程と、
前記比較結果と前記入力階調値とに基づいて、誤差拡散法によりドットデータを生成する誤差拡散処理工程と、
前記生成されたドットデータを用いて前記画像を印刷する印刷工程と、
を備え、
前記変換工程は、前記入力階調値が所定範囲内である場合は、前記入力階調値から所定階調値を減算して前記変換階調値を生成することを特徴とする印刷方法。 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.
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) |
-
2015
- 2015-12-25 JP JP2015253159A patent/JP2017114033A/en active Pending
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 |