JP2015199231A - Print control unit, program and printing method - Google Patents

Print control unit, program and printing method Download PDF

Info

Publication number
JP2015199231A
JP2015199231A JP2014078419A JP2014078419A JP2015199231A JP 2015199231 A JP2015199231 A JP 2015199231A JP 2014078419 A JP2014078419 A JP 2014078419A JP 2014078419 A JP2014078419 A JP 2014078419A JP 2015199231 A JP2015199231 A JP 2015199231A
Authority
JP
Japan
Prior art keywords
print medium
dot
dither mask
printing
mask
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
JP2014078419A
Other languages
Japanese (ja)
Inventor
洋一 鯨岡
Yoichi Kujiraoka
洋一 鯨岡
光平 宇都宮
Kohei Utsunomiya
光平 宇都宮
拓也 和哥山
Takuya Wakayama
拓也 和哥山
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 JP2014078419A priority Critical patent/JP2015199231A/en
Publication of JP2015199231A publication Critical patent/JP2015199231A/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 print control unit suppressing occurrence of density unevenness in a printed image.SOLUTION: A print control unit controls a printer discharging ink toward a printing medium even at the time of a forward path where a head is moved to one side in a predetermined direction with respect to the printing medium and at the time of a return path where being moved to the other side. The print control unit uses a first dither mask with respect to input image data corresponding to a first region on the printing medium and uses a second dither mask where a relative position between a forward path threshold value corresponding to data at the time of the forward path and a return path threshold value corresponding to data at the time of the forward path is shifted in accordance with dots landing position deviations occurring in the first region with respect to input image data corresponding to a second region on the printing medium where the dots landing position deviations of the forward path and the return path are less in comparison with those in the first region when performing halftone processing converting input image data having a gradation value indicating light and shade of an image printed on the printing medium into data indicating a pattern of the dots constituting the image.

Description

本発明は、印刷制御装置、プログラム、及び、印刷方法に関する。   The present invention relates to a print control apparatus, a program, and a printing method.

ヘッドが印刷媒体に対して所定方向に移動しながら印刷媒体に向けてインクを吐出し、多数のドットから構成される画像を印刷する印刷装置が知られている。このような印刷装置を制御する印刷制御装置、例えば、印刷装置に接続されたコンピューターは、印刷データを作成する際に、画像の濃淡を示す多階調のデータを、ディザマスクを使用して、印刷装置が表現可能な階調数のデータ(ドットの形成パターンを示すデータ)に変換するハーフトーン処理を行う。
また、印刷装置では、印刷媒体に吐出されるインク量が増えるに従って、ヘッドの移動方向である所定方向に沿って印刷媒体が波打つコックリング現象が生じ、ヘッドのインク吐出面と印刷媒体とのギャップであるペーパーギャップが変化し、ドットの着弾位置ずれが発生してしまう。そうすると、ドットが印刷媒体の表面を覆う割合である被覆率や画像の明るさ、色味が変化し、印刷画像に濃度むらが発生してしまう。そこで、インク吐出量が基準値未満であり、コックリング現象が発生し難い場合には、粒状性が良好であるディザマスクを使用し、インク吐出量が基準値以上であり、コックリング現象が発生し易い場合には、粒状性は劣るが、画像の色差を抑えるディザマスクを使用して、印刷データを作成する方法が提案されている。
There is known a printing apparatus that prints an image composed of a large number of dots by ejecting ink toward a printing medium while the head moves in a predetermined direction with respect to the printing medium. A print control apparatus that controls such a printing apparatus, for example, a computer connected to the printing apparatus, uses a dither mask to generate multi-gradation data indicating the density of an image when creating print data. Halftone processing is performed to convert the data to the number of gradations that can be expressed by the printing apparatus (data indicating the dot formation pattern).
Further, in the printing apparatus, as the amount of ink ejected to the printing medium increases, a cockling phenomenon occurs in which the printing medium undulates along a predetermined direction that is the moving direction of the head, and a gap between the ink ejection surface of the head and the printing medium occurs. As a result, the paper gap changes, and the dot landing position shifts. As a result, the coverage, which is the ratio of the dots covering the surface of the print medium, the brightness of the image, and the color change, resulting in uneven density in the printed image. Therefore, if the ink discharge amount is less than the reference value and the cockling phenomenon is difficult to occur, use a dither mask with good graininess, the ink discharge amount is greater than the reference value, and the cockling phenomenon will occur. In the case where it is easy to do this, the graininess is inferior, but a method of creating print data using a dither mask that suppresses the color difference of the image has been proposed.

特開2013-103440号公報JP 2013-103440 A

また、印刷装置では、ヘッドが所定方向の一方側に移動する往復時にも他方側に移動する復路時にもインクを吐出する双方向印刷が実施される場合がある。双方向印刷が実施される場合にペーパーギャップが変化すると、往路と復路ではドット着弾位置が逆方向にずれるため、往復のドット着弾位置ずれが大きくなってしまう。よって、コックリング現象の発生等によりペーパーギャップが変化し易い領域では、インク吐出量が増えるに従ってペーパーギャップが変化することにより生じるドットの着弾位置ずれに加えて、往復のドット着弾位置ずれも生じるため、ペーパーギャップが変化し難い領域に比べて、ドット着弾位置ずれが大きくなってしまう。そのため、上記特許文献1のように画像の色差を抑えるディザマスクを使用しても、濃度むらを抑制しきれない虞がある。   In the printing apparatus, there is a case where bidirectional printing is performed in which ink is ejected both during the reciprocation when the head moves to one side in a predetermined direction and during the return path when the head moves to the other side. If the paper gap is changed when bidirectional printing is performed, the dot landing position is shifted in the reverse direction in the forward path and the backward path, so that the reciprocal dot landing position shift becomes large. Therefore, in a region where the paper gap is likely to change due to the occurrence of a cockling phenomenon or the like, in addition to the dot landing position shift caused by the paper gap changing as the ink discharge amount increases, a round-trip dot landing position shift also occurs. As compared with a region where the paper gap is difficult to change, the dot landing position deviation becomes large. Therefore, even if a dither mask that suppresses the color difference of the image as in Patent Document 1 is used, there is a possibility that the density unevenness cannot be suppressed.

そこで、本発明は、印刷画像における濃度むらの発生を抑制することを目的とする。   Accordingly, an object of the present invention is to suppress the occurrence of density unevenness in a printed image.

上記目的を達成するための主たる発明は、ヘッドが印刷媒体に対して所定方向の一方側に移動する往路時にも他方側に移動する復路時にも前記印刷媒体に向けてインクを吐出する印刷装置を制御する印刷制御装置であって、前記印刷媒体に印刷する画像の濃淡を示す階調値を有する入力画像データを、前記画像を構成するドットのパターンを示すデータに変換するハーフトーン処理を行う際に、前記印刷媒体上の第1領域に対応する前記入力画像データに対して、第1ディザマスクを使用し、前記第1領域に比べて往復のドット着弾位置ずれが小さい前記印刷媒体上の第2領域に対応する前記入力画像データに対して、前記往路時のデータに対応する往路閾値と前記復路時のデータに対応する復路閾値との相対位置を、前記第1領域にて生じるドット着弾位置ずれに応じてずらした第2ディザマスクを使用することを特徴とする印刷制御装置である。
本発明の他の特徴については、本明細書及び添付図面の記載により明らかにする。
A main invention for achieving the above object is a printing apparatus that discharges ink toward the print medium during the forward path in which the head moves to one side in a predetermined direction with respect to the print medium and during the return path in which the head moves to the other side. A printing control apparatus for controlling, when performing halftone processing for converting input image data having a gradation value indicating the density of an image to be printed on the printing medium into data indicating a pattern of dots constituting the image In addition, a first dither mask is used for the input image data corresponding to the first area on the print medium, and the second dot landing position deviation on the print medium is smaller than that on the first area. For the input image data corresponding to two areas, a relative position between the forward threshold corresponding to the forward data and the backward threshold corresponding to the backward data is generated in the first area. A printing control apparatus, characterized by using a second dither mask shifted in accordance with the dot landing position shift.
Other features of the present invention will become apparent from the description of the present specification and the accompanying drawings.

印刷装置と印刷制御装置が接続された印刷システムの構成を示すブロック図である。1 is a block diagram illustrating a configuration of a printing system in which a printing apparatus and a printing control apparatus are connected. 図2AはプリンターをX方向から見た概略断面図であり、図2Bはプラテン周辺を上方から見た概略平面図である。2A is a schematic cross-sectional view of the printer as viewed from the X direction, and FIG. 2B is a schematic plan view of the periphery of the platen as viewed from above. 図3A及び図3Bはコックリング現象によるドットの着弾位置ずれを説明する図である。3A and 3B are diagrams for explaining the landing position deviation of dots due to the cockling phenomenon. 図4Aは往路ドットと復路ドットの配置を説明する図であり、図4Bはプラテンの凸部上の印刷媒体に形成されるドットを示し、図4Cはプラテンの凹部上の印刷媒体に形成されるドットを示す。FIG. 4A is a diagram for explaining the arrangement of forward and backward dots, FIG. 4B shows dots formed on the printing medium on the convex part of the platen, and FIG. 4C is formed on the printing medium on the concave part of the platen. Indicates a dot. 図5Aは通常のディザマスクを説明する図であり、図5Bから図5Dは往復ずらしマスクを説明する図である。FIG. 5A is a diagram illustrating a normal dither mask, and FIGS. 5B to 5D are diagrams illustrating a reciprocating shift mask. 図6Aはプラテンの凸部に対応するデータに対して使用する往復ずらしマスクを決定するフローであり、図6Bはプリンターが印刷するテストパターンを示す図である。FIG. 6A is a flow for determining a reciprocal shift mask to be used for data corresponding to the convex portion of the platen, and FIG. 6B is a diagram showing a test pattern printed by the printer. 第1実施形態のハーフトーン処理のフローである。It is a flow of the halftone process of 1st Embodiment. 図8Aはプラテン42の凹部421を区画した領域を説明する図であり、図8Bは、第2実施形態のハーフトーン処理のフローである。FIG. 8A is a diagram illustrating a region where the concave portion 421 of the platen 42 is partitioned, and FIG. 8B is a flow of halftone processing according to the second embodiment. 図9Aは第3実施形態のプラテンを説明する図であり、図9Bは第3実施形態のハーフトーン処理のフローである。FIG. 9A is a diagram for explaining the platen of the third embodiment, and FIG. 9B is a flow of halftone processing of the third embodiment. 第4実施形態のハーフトーン処理のフローである。It is a flow of the halftone process of 4th Embodiment. 第5実施形態のハーフトーン処理のフローである。It is a flow of the halftone process of 5th Embodiment. 図12Aはブルーノイズディザマスクでハーフトーン処理されたデータに基づき形成されるドットを説明する図であり、図12Bはペアドットディザマスクでハーフトーン処理されたデータに基づき形成されるドットを説明する図である。FIG. 12A is a diagram for explaining dots formed based on data half-tone processed with a blue noise dither mask, and FIG. 12B is a diagram for explaining dots formed based on data half-tone processed with a pair dot dither mask. FIG. 第6実施形態におけるハーフトーン処理のフローである。It is a flow of the halftone process in 6th Embodiment. 往路ドットと復路ドットの配置を説明する図である。It is a figure explaining arrangement | positioning of a forward pass dot and a backward pass dot. ペアドットディザマスクの作成方法を示すフローである。It is a flow which shows the preparation method of a pair dot dither mask.

===概要===
本明細書及び図面の記載により、少なくとも、以下の事項が明らかとなる。
=== Overview ===
At least the following matters will become clear from the description of the present specification and the drawings.

ヘッドが印刷媒体に対して所定方向の一方側に移動する往路時にも他方側に移動する復路時にも前記印刷媒体に向けてインクを吐出する印刷装置を制御する印刷制御装置であって、前記印刷媒体に印刷する画像の濃淡を示す階調値を有する入力画像データを、前記画像を構成するドットのパターンを示すデータに変換するハーフトーン処理を行う際に、前記印刷媒体上の第1領域に対応する前記入力画像データに対して、第1ディザマスクを使用し、前記第1領域に比べて往復のドット着弾位置ずれが小さい前記印刷媒体上の第2領域に対応する前記入力画像データに対して、前記往路時のデータに対応する往路閾値と前記復路時のデータに対応する復路閾値との相対位置を、前記第1領域にて生じるドット着弾位置ずれに応じてずらした第2ディザマスクを使用することを特徴とする印刷制御装置である。
このような印刷制御装置によれば、往復のドット着弾位置ずれが生じ難い第2領域に形成される往路ドットと復路ドットの相対位置関係を、ドット着弾位置ずれが生じたことにより第1領域に形成される往路ドットと復路ドットの相対位置関係に近づけられる。そうすることで、第1領域と第2領域とで印刷媒体の被覆率の差を小さくすることができ、印刷画像における濃度むらの発生を抑制できる。
A printing control apparatus that controls a printing apparatus that discharges ink toward the printing medium during a forward path in which the head moves to one side in a predetermined direction with respect to the printing medium and a backward path in which the head moves to the other side. When performing halftone processing for converting input image data having a gradation value indicating the density of an image to be printed on a medium into data indicating a pattern of dots constituting the image, the first area on the print medium is For the corresponding input image data, the first dither mask is used, and the input image data corresponding to the second area on the print medium is smaller in the reciprocal dot landing position deviation than the first area. The relative position between the forward threshold corresponding to the forward data and the backward threshold corresponding to the backward data is shifted according to the dot landing position deviation occurring in the first region. A print control apparatus, characterized by using a dither mask.
According to such a printing control apparatus, the relative positional relationship between the forward pass dot and the backward pass dot formed in the second area where reciprocal dot landing position deviation is unlikely to occur is changed to the first area due to occurrence of dot landing position deviation. The relative positional relationship between the forward pass dot and the backward pass dot formed can be made closer. By doing so, the difference in the coverage of the print medium between the first region and the second region can be reduced, and the occurrence of density unevenness in the printed image can be suppressed.

かかる印刷制御装置であり、前記印刷媒体は、前記ヘッドとの対向面において複数の凸部が前記所定方向に間隔を空けて並ぶプラテンに支持され、前記ハーフトーン処理を行う際に、前記凸部の間の凹部に位置する前記印刷媒体の部位である前記第1領域に対応する前記入力画像データに対して、前記第1ディザマスクを使用し、前記凸部に位置する前記印刷媒体の部位である前記第2領域に対応する前記入力画像データに対して、前記第2ディザマスクを使用することを特徴とする印刷制御装置である。
このような印刷制御装置によれば、インク吐出量が増えてもペーパーギャップが変化し難く往復のドット着弾位置ずれが生じ難いプラテンの凸部に位置する印刷媒体の部位(第2領域)に形成される往路ドットと復路ドットの相対位置関係を、インク吐出量が増えるとペーパーギャップが変化して往復のドット着弾位置ずれが生じるプラテンの凹部に位置する印刷媒体の部位(第1領域)に形成される往路ドットと復路ドットの相対位置関係に近づけられる。従って、プラテンの凹凸形状に関係なく印刷媒体の被覆率の差を小さくすることができ、プラテンの凹凸形状に沿った濃度むらの発生を抑制できる。
In the printing control apparatus, the printing medium includes a plurality of convex portions that are supported by a platen arranged at intervals in the predetermined direction on a surface facing the head, and the convex portions are formed when the halftone process is performed. The first dither mask is used for the input image data corresponding to the first region which is the part of the print medium located in the recess between the print medium and the part of the print medium located in the convex part. In the printing control apparatus, the second dither mask is used for the input image data corresponding to the second area.
According to such a print control apparatus, even if the ink discharge amount increases, the paper gap does not easily change, and the dot landing position is not easily moved back and forth. The relative position relationship between the forward pass dot and the return pass dot is formed in the portion (first region) of the print medium located in the concave portion of the platen where the paper gap changes and the reciprocal dot landing position shift occurs as the ink discharge amount increases. The relative positional relationship between the forward pass dot and the return pass dot is made closer. Therefore, the difference in the coverage of the print medium can be reduced regardless of the uneven shape of the platen, and the occurrence of density unevenness along the uneven shape of the platen can be suppressed.

かかる印刷制御装置であり、前記第2ディザマスクは、前記第1ディザマスクにおける前記往路閾値と前記復路閾値との相対位置をずらしたマスクであることを特徴とする印刷制御装置である。
このような印刷制御装置によれば、第2領域に形成される往路ドットと復路ドットの相対位置関係を、第1領域に形成される往路ドットと復路ドットの相対位置関係に近づけられる。
In this printing control apparatus, the second dither mask is a mask in which a relative position between the forward path threshold and the backward path threshold in the first dither mask is shifted.
According to such a printing control apparatus, the relative positional relationship between the forward pass dot and the backward pass dot formed in the second region can be made closer to the relative positional relationship between the forward pass dot and the backward pass dot formed in the first region.

かかる印刷制御装置で、前記第2ディザマスクは、所定範囲の前記階調値におけるドットの分散性が前記第1ディザマスクより高くなる特性を有するディザマスクにおける前記往路閾値と前記復路閾値との相対位置をずらしたマスクであることを特徴とする印刷制御装置である。
このような印刷制御装置によれば、第2領域に形成される往路ドットと復路ドットの相対位置関係を、第1領域に形成される往路ドットと復路ドットの相対位置関係に近づけられる。
In this printing control apparatus, the second dither mask is a relative value between the forward pass threshold and the return pass threshold in the dither mask having a characteristic that the dispersibility of dots in the gradation value within a predetermined range is higher than that of the first dither mask. The print control apparatus is a mask whose position is shifted.
According to such a printing control apparatus, the relative positional relationship between the forward pass dot and the backward pass dot formed in the second region can be made closer to the relative positional relationship between the forward pass dot and the backward pass dot formed in the first region.

かかる印刷制御装置であり、前記ハーフトーン処理を行う際に、前記凹部のうち前記所定方向における中央部の領域に位置する前記印刷媒体の部位に対応する前記入力画像データに対して、前記第1ディザマスクを使用し、前記凹部のうち前記中央部の領域よりも前記所定方向における前記凸部側の端部領域に位置する前記印刷媒体の部位に対応する前記入力画像データに対して、前記第2ディザマスクよりも小さいずらし量で前記往路閾値と前記復路閾値との相対位置をずらした第3ディザマスクを使用することを特徴とする印刷制御装置である。
このような印刷制御装置によれば、往復のドット着弾位置ずれが生じ難いプラテンの凸部に位置する印刷媒体と、往復のドット着弾位置ずれが生じるプラテンの凹部の中央部に位置する印刷媒体と、凸部よりも往復のドット着弾位置ずれは生じるが凹部の中央部に比べて往復のドット着弾位置ずれが生じ難い凹部の端部に位置する印刷媒体に、それぞれ形成される往路ドットと復路ドットの相対位置関係を近づけられる。従って、プラテンの凹凸形状に沿った濃度むらの発生を抑制できる。
In the print control apparatus, when the halftone process is performed, the first input image data corresponding to a portion of the print medium located in a central region of the concave portion in the predetermined direction is applied to the first input image data. The dither mask is used, and the input image data corresponding to the portion of the print medium located in the end region on the convex side in the predetermined direction with respect to the central region of the concave portion A printing control apparatus using a third dither mask in which a relative position between the forward pass threshold and the return pass threshold is shifted by a shift amount smaller than a 2 dither mask.
According to such a printing control apparatus, the printing medium located on the convex part of the platen where reciprocal dot landing position deviation hardly occurs, and the printing medium located at the center of the concave part of the platen where reciprocal dot landing position deviation occurs. The forward dot and the backward dot are respectively formed on the print medium located at the end of the concave portion where the positional deviation of the dot landing occurs more reciprocally than the convex portion, but the positional deviation of the dot landing is less likely to occur compared to the central portion of the concave portion. Can be brought closer to each other. Therefore, it is possible to suppress the occurrence of density unevenness along the uneven shape of the platen.

かかる印刷制御装置であり、前記第1領域及び前記第2領域に対応する前記入力画像データに対して前記第1ディザマスクを使用して前記ハーフトーン処理を行ったデータに基づき、前記印刷装置にパターンを印刷させ、前記第1領域に対応する前記パターンの部位の読取データと前記第2領域に対応する前記パターンの部位の読取データとに基づき、前記第2ディザマスクにおける前記往路閾値と前記復路閾値の相対ずらし量を決定することを特徴とする印刷制御装置である。
このような印刷制御装置によれば、印刷画像における濃度むらの発生を抑制可能な第2ディザマスクを決定できる。
In this printing control apparatus, based on the data obtained by performing the halftone processing using the first dither mask on the input image data corresponding to the first area and the second area, the printing apparatus A pattern is printed, and the forward path threshold and the return path in the second dither mask are based on the read data of the part of the pattern corresponding to the first area and the read data of the part of the pattern corresponding to the second area A print control apparatus that determines a relative shift amount of a threshold value.
According to such a printing control apparatus, it is possible to determine the second dither mask that can suppress the occurrence of density unevenness in the printed image.

また、ヘッドが印刷媒体に対して所定方向の一方側に移動する往路時にも他方側に移動する復路時にも前記印刷媒体に向けてインクを吐出する印刷装置の制御装置に、前記印刷媒体に印刷する画像の濃淡を示す階調値を有する入力画像データを、前記画像を構成するドットのパターンを示すデータに変換するハーフトーン処理を行う際に、前記印刷媒体上の第1領域に対応する前記入力画像データに対して、第1ディザマスクを使用し、前記第1領域に比べて往復のドット着弾位置ずれが小さい前記印刷媒体上の第2領域に対応する前記入力画像データに対して、前記往路時のデータに対応する往路閾値と前記復路時のデータに対応する復路閾値との相対位置を、前記第1領域にて生じるドット着弾位置ずれに応じてずらした第2ディザマスクを使用することを実行させるためのプログラムである。
このようなプログラムによれば、往復のドット着弾位置ずれが生じ難い第2領域に形成される往路ドットと復路ドットの相対位置関係を、ドット着弾位置ずれが生じたことにより第1領域に形成される往路ドットと復路ドットの相対位置関係に近づけるデータを、印刷制御装置に作成させることができる。従って、第1領域と第2領域とで印刷媒体の被覆率の差を小さくすることができ、印刷画像における濃度むらの発生を抑制できる。
Also, printing on the printing medium is performed on the control device of the printing apparatus that ejects ink toward the printing medium during the forward path when the head moves to one side of the predetermined direction and the backward path when the head moves to the other side. The input image data having a gradation value indicating the density of the image to be converted is converted into data indicating the pattern of the dots constituting the image, and the halftone process corresponding to the first region on the print medium is performed. For the input image data, the first dither mask is used, and the input image data corresponding to the second area on the print medium in which the reciprocal dot landing position shift is smaller than that in the first area. A second dither mass in which the relative position between the forward threshold corresponding to the forward data and the backward threshold corresponding to the backward data is shifted according to the dot landing position deviation occurring in the first area. Is a program for executing the use of.
According to such a program, the relative positional relationship between the forward pass dot and the backward pass dot formed in the second region where reciprocal dot landing position deviation hardly occurs is formed in the first region due to occurrence of dot landing position deviation. Data that approximates the relative positional relationship between the forward pass dot and the return pass dot can be generated by the print control apparatus. Therefore, the difference in the coverage of the print medium between the first region and the second region can be reduced, and the occurrence of density unevenness in the printed image can be suppressed.

また、ヘッドが印刷媒体に対して所定方向の一方側に移動する往路時にも他方側に移動する復路時にも前記印刷媒体に向けてインクを吐出する印刷装置による印刷方法であって、前記印刷媒体に印刷する画像の濃淡を示す階調値を有する入力画像データを、前記画像を構成するドットのパターンを示すデータに変換するハーフトーン処理を行う際に、前記印刷媒体上の第1領域に対応する前記入力画像データに対して、第1ディザマスクが使用され、前記第1領域に比べて往復のドット着弾位置ずれが小さい前記印刷媒体上の第2領域に対応する前記入力画像データに対して、前記往路時のデータに対応する往路閾値と前記復路時のデータに対応する復路閾値との相対位置を、前記第1領域にて生じるドット着弾位置ずれに応じてずらした第2ディザマスクが使用されたデータに基づいて、前記印刷装置が前記印刷媒体に画像を印刷することを特徴とする印刷方法である。
このような印刷方法によれば、往復のドット着弾位置ずれが生じ難い第2領域に形成される往路ドットと復路ドットの相対位置関係を、ドット着弾位置ずれが生じたことにより第1領域に形成される往路ドットと復路ドットの相対位置関係に近づけられる。従って、第1領域と第2領域とで印刷媒体の被覆率の差を小さくすることができ、印刷画像における濃度むらの発生を抑制できる。
A printing method using a printing apparatus that ejects ink toward the print medium both during a forward path in which the head moves to one side in a predetermined direction with respect to the print medium and during a return path in which the head moves to the other side. Corresponding to the first area on the print medium when performing halftone processing for converting input image data having gradation values indicating the density of an image to be printed on to data indicating a pattern of dots constituting the image For the input image data, a first dither mask is used, and the input image data corresponding to the second area on the print medium is smaller in reciprocal dot landing position displacement than the first area. The relative position of the forward threshold corresponding to the forward data and the backward threshold corresponding to the backward data is shifted in accordance with the dot landing position deviation occurring in the first area. Based on the dither mask is used data, the printing apparatus is a printing method characterized by printing an image on the print medium.
According to such a printing method, the relative positional relationship between the forward pass dot and the backward pass dot formed in the second region where reciprocal dot landing position deviation hardly occurs is formed in the first region due to occurrence of dot landing position deviation. The relative positional relationship between the forward pass dot and the return pass dot is made closer. Therefore, the difference in the coverage of the print medium between the first region and the second region can be reduced, and the occurrence of density unevenness in the printed image can be suppressed.

===第1実施形態===
<印刷システムの構成>
図1は、「印刷装置」としてのインクジェットプリンター1(以下、プリンター)と、「印刷制御装置」としてのコンピューター2と、が接続された印刷システムの構成を示すブロック図である。図2Aは、プリンター1をX方向(ヘッド41の移動方向)から見た概略断面図であり、図2Bは、プラテン42周辺を上方から見た概略平面図である。プリンター1は、コントローラー10と、搬送ユニット20と、キャリッジユニット30と、ヘッドユニット40と、検出器群50と、を有する。コントローラー10は、プリンター1の全体的な制御を行うものであり、コンピューター2との間でデータの送受信を行うインターフェース部11と、CPU12と、メモリー13と、ユニット制御回路14と、を有する。
=== First Embodiment ===
<Configuration of printing system>
FIG. 1 is a block diagram illustrating a configuration of a printing system in which an inkjet printer 1 (hereinafter referred to as a printer) as a “printing apparatus” and a computer 2 as a “printing control apparatus” are connected. 2A is a schematic cross-sectional view of the printer 1 viewed from the X direction (moving direction of the head 41), and FIG. 2B is a schematic plan view of the periphery of the platen 42 viewed from above. The printer 1 includes a controller 10, a transport unit 20, a carriage unit 30, a head unit 40, and a detector group 50. The controller 10 performs overall control of the printer 1, and includes an interface unit 11 that transmits and receives data to and from the computer 2, a CPU 12, a memory 13, and a unit control circuit 14.

搬送ユニット20は、画像を印刷する印刷媒体S(例えば用紙や布等)を印刷可能な位置に給紙し、Y方向の下流側へ搬送するためのものであり、給紙ローラー21と排紙ローラー22とを有する。なお、図2Aでは印刷媒体Sとしてロール状に巻かれた連続紙を例に挙げているがこれに限らず、カット紙でもよい。キャリッジユニット30は、キャリッジ31に搭載されたヘッド41を、ガイドレール32に沿わせ、印刷媒体Sの搬送方向であるY方向と交差する方向(ここでは直交する方向)であるX方向に移動するためのものである。   The transport unit 20 feeds a print medium S on which an image is to be printed (for example, paper or cloth) to a printable position and transports it to the downstream side in the Y direction. And a roller 22. In FIG. 2A, continuous paper wound in a roll shape is exemplified as the print medium S, but the present invention is not limited to this, and cut paper may be used. The carriage unit 30 moves the head 41 mounted on the carriage 31 along the guide rail 32 in the X direction that is a direction intersecting the Y direction that is the conveyance direction of the print medium S (the direction that is orthogonal here). Is for.

ヘッドユニット40は、印刷媒体Sにインクを吐出するヘッド41と、印刷媒体Sを裏面(印刷面の反対側面)から支持するプラテン42とを有する。ヘッド41の下面(印刷媒体Sとの対向面)には、インクを吐出する多数のノズルの開口部がY方向に所定の間隔おきに並んだノズル列が複数形成されている。そして、複数のノズル列からはそれぞれ、例えば、イエローインク(Y)、マゼンタインク(M)、シアンインク(C)、ブラックインク(K)が吐出される。なお、ノズルからのインク吐出方式は、駆動素子(ピエゾ素子)に電圧をかけてインク室を膨張・収縮させるピエゾ方式でもよいし、発熱素子を用いてノズル内に気泡を発生させ、その気泡によってノズルからインクを吐出させるサーマル方式でもよい。   The head unit 40 includes a head 41 that ejects ink onto the printing medium S, and a platen 42 that supports the printing medium S from the back surface (the side opposite to the printing surface). On the lower surface of the head 41 (the surface facing the print medium S), a plurality of nozzle rows are formed in which openings of a large number of nozzles that eject ink are arranged at predetermined intervals in the Y direction. For example, yellow ink (Y), magenta ink (M), cyan ink (C), and black ink (K) are ejected from the plurality of nozzle rows, respectively. The ink discharge method from the nozzle may be a piezo method in which a voltage is applied to the drive element (piezo element) to expand and contract the ink chamber, or a bubble is generated in the nozzle using a heating element, A thermal method in which ink is ejected from the nozzles may be used.

プラテン42は、略直方体形状の部材であり、ヘッド41との対向面において、ノズル列の長さ以上にY方向に延びた複数の凸部422が、X方向に間隔を空けて並んでいる。つまり、ヘッド41と対向するプラテン42の面は、X方向に沿って凹凸形状を成している。そして、凸部422の間の凹部421もノズル列の長さ以上にY方向に延びており、縁無し印刷の際に印刷媒体Sから外れたインクを凹部421が受けることによって、印刷媒体Sの汚れを防止できる。   The platen 42 is a substantially rectangular parallelepiped member, and on the surface facing the head 41, a plurality of convex portions 422 extending in the Y direction beyond the length of the nozzle row are arranged at intervals in the X direction. That is, the surface of the platen 42 facing the head 41 has an uneven shape along the X direction. The concave portions 421 between the convex portions 422 also extend in the Y direction more than the length of the nozzle row, and the concave portions 421 receive ink that has been removed from the print medium S during borderless printing, whereby the print media S Dirt can be prevented.

検出器群50はプリンター1内の状況を監視し、検出結果をコントローラー10に出力するためのものである。検出器群50は、例えば、印刷媒体SのX方向の端部を検出する光学センサー51を有する。光学センサー51は、キャリッジ31のうち、ヘッド41よりもY方向の下流側に取り付けられ、印刷媒体Sに向けて光を照射する発光部と、印刷媒体Sで反射された光を検出し、その反射光の強度に応じた電気信号を出力する受光部とを有する。受光部が検出する光の強度は、印刷媒体Sに印刷された画像の濃度に依存する。そのため、印刷媒体Sに印刷された画像上を光学センサー51がX方向に移動した際に受光部から出力された電気信号に基づいて、コントローラー10は、印刷媒体Sに印刷された画像の濃度を読み取ることができる。   The detector group 50 is for monitoring the situation in the printer 1 and outputting the detection result to the controller 10. The detector group 50 includes, for example, an optical sensor 51 that detects an end portion of the print medium S in the X direction. The optical sensor 51 is mounted on the carriage 31 on the downstream side in the Y direction with respect to the head 41, detects a light emitting unit that emits light toward the print medium S, and light reflected by the print medium S, and And a light receiving unit that outputs an electrical signal corresponding to the intensity of the reflected light. The intensity of light detected by the light receiving unit depends on the density of the image printed on the print medium S. Therefore, based on the electrical signal output from the light receiving unit when the optical sensor 51 moves in the X direction on the image printed on the print medium S, the controller 10 determines the density of the image printed on the print medium S. Can be read.

以上の構成であるプリンター1において、ヘッド41がX方向に移動しながらインクを吐出する吐出動作(パス)と、印刷媒体SがY方向の下流側へ搬送される搬送動作と、が繰り返される。その結果、印刷媒体S上に2次元の画像が印刷される。   In the printer 1 having the above configuration, the ejection operation (pass) in which the head 41 ejects ink while moving in the X direction and the conveyance operation in which the print medium S is conveyed downstream in the Y direction are repeated. As a result, a two-dimensional image is printed on the print medium S.

そして、プリンター1と通信可能に接続されたコンピューター2では、当該コンピューター2に搭載されたオペレーティングシステムの下、各種アプリケーションプログラム60やプリンタードライバー70等のプログラムが動作し、プログラムに準じた演算をコンピューター2内のCPU(不図示)が実行している。プリンタードライバー70は、アプリケーションプログラム60から入力された入力画像データを印刷データに変換する機能等をコンピューター2に実現させるためのプログラムであり、解像度変換処理部71と、色変換処理部72と、ハーフトーン処理部73と、ラスタライズ処理部74と、を有する。なお、プリンタードライバー70は、CD−ROMなどコンピューター2が読み取り可能な記録媒体に記録されていたり、インターネットなど各種通信手段を通じてコンピューター2にダウンロード可能であったりする。   Then, in the computer 2 that is communicably connected to the printer 1, programs such as various application programs 60 and the printer driver 70 operate under the operating system installed in the computer 2, and computations according to the programs are performed on the computer 2. CPU (not shown) is executing. The printer driver 70 is a program for causing the computer 2 to realize a function of converting input image data input from the application program 60 into print data. The printer driver 70 includes a resolution conversion processing unit 71, a color conversion processing unit 72, and a half A tone processing unit 73 and a rasterization processing unit 74 are provided. The printer driver 70 is recorded on a recording medium readable by the computer 2 such as a CD-ROM, or can be downloaded to the computer 2 through various communication means such as the Internet.

そして、プリンタードライバー70(プログラム)がアプリケーションプログラム60から印刷すべき入力画像データを受け取ると、解像度変換処理部71が、受け取った入力画像データの解像度を、プリンター1が印刷する際の解像度に変換する。なお、解像度変換されたデータは、RGB色空間で表されるデータであり、色毎に、印刷解像度に応じた大きさの画素が2次元に並ぶデータである。各画素は、各画素に対応する印刷媒体S上の領域である画素領域の濃淡を示す多階調の階調値(例えば0〜255)を有する。この実施形態では、階調値の値が大きいほど濃度が濃いとする。また、プリンター1におけるX方向に対応するデータの方向もX方向と呼び、プリンター1におけるY方向に対応するデータの方向もY方向と呼ぶ。解像度変換処理後は、色変換処理部72が、色変換テーブル75を参照し、RGB色空間で表されるデータを、プリンター1が吐出可能なインクの色(YMCK)に対応したデータに色変換する。   When the printer driver 70 (program) receives input image data to be printed from the application program 60, the resolution conversion processing unit 71 converts the resolution of the received input image data into the resolution used when the printer 1 prints. . The resolution-converted data is data represented in the RGB color space, and is data in which pixels having a size corresponding to the print resolution are arranged in two dimensions for each color. Each pixel has a multi-tone value (for example, 0 to 255) indicating the density of the pixel area which is an area on the print medium S corresponding to each pixel. In this embodiment, it is assumed that the larger the gradation value, the higher the density. The direction of data corresponding to the X direction in the printer 1 is also referred to as the X direction, and the direction of data corresponding to the Y direction in the printer 1 is also referred to as the Y direction. After the resolution conversion processing, the color conversion processing unit 72 refers to the color conversion table 75 and converts the data represented in the RGB color space into data corresponding to the ink color (YMCK) that can be ejected by the printer 1. To do.

次に、ハーフトーン処理部73が、YMCK色空間で表される多階調のデータを、プリンター1が表現可能な階調数のデータ、つまり、画像を構成するドットのパターンを示すデータに変換する。例えば、印刷媒体S上の各画素領域にドットを形成するか否かで画像を構成する場合には、各画素の階調値は2階調のデータに変換され、プリンター1が3種類のサイズのドットを形成可能な場合には、各画素の階調値は4階調のデータに変換される。そして、この実施形態では、2次元に閾値が配置されたディザマスクを使用した「ディザ法」によりハーフトーン処理が行われるとする。ディザ法では、ハーフトーン処理部73が、処理対象のデータに対して、例えば左上の部位から順にディザマスクを繰り返し対応付け、入力画像データを構成する画素の階調値と、その画素に対応するディザマスクの閾値とを、比較する。そして、ハーフトーン処理部73は、画素の階調値がディザマスクの閾値より大きい場合には、その画素にドットを発生すると判断し、逆に、画素の階調値がディザマスクの閾値以下の場合には、その画素にドットを発生しないと判断する。なお、ディザマスクでハーフトーン処理を行いつつ、処理中の画素の階調値とディザマスクの閾値との差分を、処理中の画素の周辺画素に拡散する誤差拡散法を行ってもよい。   Next, the halftone processing unit 73 converts the multi-gradation data represented in the YMCK color space into data of the number of gradations that can be expressed by the printer 1, that is, data indicating the pattern of dots constituting the image. To do. For example, when an image is configured by whether or not dots are formed in each pixel area on the print medium S, the gradation value of each pixel is converted into data of two gradations, and the printer 1 has three types of sizes. When the dots can be formed, the gradation value of each pixel is converted into 4-gradation data. In this embodiment, it is assumed that halftone processing is performed by a “dither method” using a dither mask in which threshold values are two-dimensionally arranged. In the dither method, the halftone processing unit 73 repeatedly associates the data to be processed with, for example, a dither mask in order from the upper left part, and corresponds to the gradation value of the pixel constituting the input image data and the pixel. The threshold value of the dither mask is compared. When the gradation value of the pixel is larger than the dither mask threshold, the halftone processing unit 73 determines that a dot is generated in the pixel, and conversely, the pixel gradation value is equal to or smaller than the dither mask threshold. In this case, it is determined that no dot is generated in the pixel. Note that an error diffusion method may be performed in which the difference between the gradation value of the pixel being processed and the threshold value of the dither mask is diffused to the peripheral pixels of the pixel being processed while performing halftone processing using the dither mask.

最後に、ラスタライズ処理部74が、ハーフトーン処理されたデータをプリンター1に転送すべき順に並べ替える処理を行う。こうして処理されたデータはその他の印刷に関するデータと共に印刷データとしてプリンター1に送信される。プリンター1は、受信した印刷データに基づき、印刷媒体Sに画像を印刷する。   Finally, the rasterization processing unit 74 performs processing for rearranging the halftone-processed data in the order to be transferred to the printer 1. The data processed in this way is transmitted to the printer 1 as print data together with other data related to printing. The printer 1 prints an image on the print medium S based on the received print data.

<コックリング現象による濃度むら>
図3A及び図3Bは、コックリング現象によるドットの着弾位置ずれを説明する図である。前述のように、ヘッド41と対向するプラテン42の面は凹凸形状を成している。そのため、印刷媒体Sにインクが吐出される前、又は、インク吐出量が少ない時には、実線S1で示すように、印刷媒体S1は平坦な状態でプラテン42に支持される。しかし、印刷媒体Sに吐出されるインク量が増え、インクを吸収した印刷媒体Sが膨潤すると、一点鎖線S2で示すように、プラテン42の凸部422で支持されている印刷媒体S2の部位に対して、凹部421に位置する印刷媒体S2の部位が下方(ヘッド41とは反対側)に撓んでしまう。つまり、プラテン42の凹凸形状に沿って印刷媒体Sが波状に変形する現象、所謂コックリング現象が発生してしまう。特に、印刷時の印刷媒体Sの位置ずれを防止するために、プラテン42に印刷媒体Sを吸引吸着させたり静電吸着させたりする場合には、よりコックリング現象が発生し易くなってしまう。
<Concentration unevenness due to cockling phenomenon>
FIG. 3A and FIG. 3B are diagrams for explaining the landing position deviation of dots due to the cockling phenomenon. As described above, the surface of the platen 42 facing the head 41 has an uneven shape. Therefore, before the ink is ejected onto the printing medium S or when the ink ejection amount is small, the printing medium S1 is supported by the platen 42 in a flat state as indicated by the solid line S1. However, when the amount of ink ejected to the print medium S increases and the print medium S that has absorbed the ink swells, as indicated by the alternate long and short dash line S2, the portion of the print medium S2 supported by the convex portion 422 of the platen 42 is provided. On the other hand, the portion of the print medium S2 located in the recess 421 is bent downward (on the side opposite to the head 41). That is, a phenomenon in which the print medium S deforms in a wave shape along the uneven shape of the platen 42, that is, a so-called cockling phenomenon occurs. In particular, when the printing medium S is sucked and attracted to the platen 42 in order to prevent the positional deviation of the printing medium S during printing, the cockling phenomenon is more likely to occur.

但し、印刷媒体Sに吐出されるインク量が増え、コックリング現象が発生しても、凸部422で支持されている印刷媒体Sの部位では、ヘッド41のノズル開口面から印刷媒体Sまでの距離、所謂ペーパーギャップが変化しないため、ドットの着弾位置ずれが発生しない。一方、凹部421に位置する印刷媒体Sの部位では、印刷媒体Sに吐出されるインク量が増えるに従って、印刷媒体Sの撓み量が大きくなるため、パス毎にペーパーギャップが変化し、ドットの着弾位置ずれが発生してしまう。   However, even if the amount of ink ejected to the print medium S increases and a cockling phenomenon occurs, the area from the nozzle opening surface of the head 41 to the print medium S at the portion of the print medium S supported by the convex portion 422. Since the distance, the so-called paper gap, does not change, the landing position deviation of the dots does not occur. On the other hand, at the portion of the print medium S positioned in the recess 421, the amount of deflection of the print medium S increases as the amount of ink ejected to the print medium S increases. Misalignment will occur.

また、プリンター1では、例えば、ヘッド41がX方向(所定方向)の右側(一方側)に移動する往路時にも、ヘッド41がX方向の左側(他方側)に移動する復路時にも、ヘッド41からインクが吐出される双方向印刷が実施される場合がある。往路時と復路時それぞれのインク吐出タイミングは、コックリング現象が発生していない状態で調整される。そのため、凸部422で支持されている印刷媒体Sの部位では、図3Aに示すように、往路で形成される往路ドットと復路で形成される復路ドットの着弾位置ずれは発生しない。しかし、凹部421に位置する印刷媒体Sの部位のようにペーパーギャップが変化する場合、図3Bに示すように、往路ドットと復路ドットが逆方向にずれ、往復のドット着弾位置が大きくずれてしまう。つまり、凹部421上の印刷媒体Sでは、パス毎にドットの着弾位置ずれが生じることに加え、往復のドット着弾位置ずれも生じ、凸部422上の印刷媒体Sに比べて、ドット着弾位置ずれが大きくなってしまう。   Further, in the printer 1, for example, the head 41 is also on the forward path in which the head 41 moves to the right side (one side) in the X direction (predetermined direction) and on the return path in which the head 41 moves to the left side (other side) in the X direction. In some cases, bi-directional printing in which ink is ejected is performed. The ink ejection timings for the forward pass and the return pass are adjusted in a state where no cockling phenomenon occurs. Therefore, in the portion of the print medium S supported by the convex portion 422, as shown in FIG. 3A, the landing position deviation between the forward pass dot formed in the forward pass and the return pass dot formed in the return pass does not occur. However, when the paper gap changes like the portion of the printing medium S located in the concave portion 421, the forward and backward dots are shifted in the opposite direction as shown in FIG. . That is, in the printing medium S on the concave portion 421, in addition to the dot landing position deviation for each pass, a round-trip dot landing position deviation also occurs, and the dot landing position deviation compared to the printing medium S on the convex portion 422. Will become bigger.

図4Aは、往路ドットD1と復路ドットD2の配置を説明する図である。プリンター1では、一般に、印刷画像の画質を高めるために、X方向(ヘッド41の移動方向)に沿うドット列であるラスターラインを異なる2つのノズルで形成する印刷方法(所謂オーバーラップ印刷方法)や、Y方向(印刷媒体Sの搬送方向)の印刷解像度を高めるために、先のパスで形成されたラスターライン間に後のパスでラスターラインを形成する印刷方法(所謂インターレース印刷方法)が実施される。このような印刷方法が実施される場合、印刷媒体Sの一部の領域に印刷される画像片は複数回のパスで完成し、画像片は往路ドットD1と復路ドットD2から構成される。この実施形態では、2回のパス(往路と復路)で画像片が完成し、図4Aに示すように、往路ドットD1のみで形成されるラスターラインと、復路ドットD2のみで形成されるラスターラインとが、Y方向に交互に並ぶ印刷方法を例に挙げる。   FIG. 4A is a diagram illustrating the arrangement of the forward pass dot D1 and the return pass dot D2. In general, in the printer 1, in order to improve the image quality of a printed image, a printing method (a so-called overlap printing method) in which a raster line that is a dot row along the X direction (movement direction of the head 41) is formed by two different nozzles, In order to increase the printing resolution in the Y direction (the conveyance direction of the print medium S), a printing method (a so-called interlaced printing method) in which raster lines are formed in a later pass between raster lines formed in a previous pass is performed. The When such a printing method is carried out, an image piece printed on a partial area of the print medium S is completed in a plurality of passes, and the image piece is composed of forward pass dots D1 and return pass dots D2. In this embodiment, the image piece is completed in two passes (outward and backward), and as shown in FIG. 4A, a raster line formed only by the forward dot D1 and a raster line formed only by the backward dot D2. Is an example of a printing method alternately arranged in the Y direction.

図4B及び図4Cは、通常のディザマスクでハーフトーン処理されたデータに基づき形成されるドットを示す図であり、図4Bは、プラテン42の凸部422上の印刷媒体Sに形成されるドットを示し、図4Cは、プラテン42の凹部421上の印刷媒体Sに形成されるドットを示す。なお、図4Aでは全画素領域にドットが形成されているが、図4B及び図4Cでは、一部の画素領域にドットが形成される場合を例に挙げる。前述のように、凸部422上の印刷媒体Sでは、インク吐出量が増えてもペーパーギャップが変化しないため、図4Bに示すように、往路ドットD1と復路ドットD2がそれぞれ印刷データの示す画素領域に形成される。一方、凹部421上の印刷媒体Sでは、インク吐出量が増えるに従ってペーパーギャップが変化してしまう。そのため、図4Cに示すように、先のパスである往路時には、印刷媒体Sが撓んでいない状態で、印刷データの示す画素領域に往路ドットD1が形成されるのに対して、後のパスである復路時には、往路時に吐出されたインクにより印刷媒体Sが撓んだ状態で、印刷データの示す画素領域からずれた位置(図ではX方向の左側に2画素ずれた位置)に、復路ドットD2が形成されてしまう。従って、凹部421上の印刷媒体Sの部位と凸部422上の印刷媒体Sの部位とでは、往路ドットD1と復路ドットD2の相対位置関係がずれてしまう。そうすると、プリンター1では一般に画素領域よりも大きいサイズのドットが形成されるため、往路ドットD1と復路ドットD2の重なり方が変化し、ドットが印刷媒体Sを覆う割合である被覆率が変化してしまう。その結果、凹部421上の印刷媒体Sに印刷される画像と凸部422上の印刷媒体Sに印刷される画像に濃度差が生じ、プラテン42の凹凸形状に沿った濃度むらが印刷画像に発生してしまう。その他、ドットの分散性も変化し、プラテン42の凹凸形状に沿って画質差が発生してしまう。   4B and 4C are diagrams illustrating dots formed based on data that has been subjected to halftone processing using a normal dither mask. FIG. 4B illustrates dots formed on the printing medium S on the convex portion 422 of the platen 42. FIG. 4C shows dots formed on the print medium S on the concave portion 421 of the platen 42. In FIG. 4A, dots are formed in all the pixel areas, but in FIGS. 4B and 4C, an example is given in which dots are formed in some of the pixel areas. As described above, in the printing medium S on the convex portion 422, the paper gap does not change even when the ink discharge amount increases. Therefore, as shown in FIG. 4B, the forward dot D1 and the backward dot D2 are pixels indicated by the print data, respectively. Formed in the region. On the other hand, in the printing medium S on the concave portion 421, the paper gap changes as the ink discharge amount increases. Therefore, as shown in FIG. 4C, during the forward pass, which is the previous pass, the forward dot D1 is formed in the pixel area indicated by the print data in a state where the print medium S is not bent, whereas in the subsequent pass. During a certain return pass, the print medium S is bent by the ink ejected during the forward pass, and the return pass dot D2 is located at a position shifted from the pixel area indicated by the print data (a position shifted by two pixels to the left in the X direction in the figure). Will be formed. Therefore, the relative positional relationship between the forward pass dot D1 and the backward pass dot D2 is shifted between the portion of the print medium S on the concave portion 421 and the portion of the print medium S on the convex portion 422. Then, since the printer 1 generally forms dots having a size larger than the pixel area, the way in which the forward pass dots D1 and the return pass dots D2 overlap changes, and the coverage, which is the ratio of the dots covering the print medium S, changes. End up. As a result, a density difference occurs between the image printed on the printing medium S on the concave portion 421 and the image printed on the printing medium S on the convex portion 422, and density unevenness along the uneven shape of the platen 42 occurs in the printed image. Resulting in. In addition, the dispersibility of the dots also changes, and an image quality difference occurs along the uneven shape of the platen 42.

そこで、本実施形態では、ハーフトーン処理部73がハーフトーン処理を行う際に、通常のディザマスクを使用してハーフトーン処理したデータに基づきヘッド41からインクを吐出させた場合に往復のドット着弾位置ずれが生じる印刷媒体S上の領域(第1領域)、即ち、プラテン42の凹部421に位置する印刷媒体Sに対応する入力画像データに対して「通常のディザマスク(第1ディザマスク)」を使用する。一方、通常のディザマスクを使用してハーフトーン処理したデータに基づきヘッド41からインクを吐出させた場合に往復のドット着弾位置ずれが生じ難い印刷媒体S上の領域(第2領域)、即ち、プラテン42の凸部422に位置する印刷媒体Sに対応する入力画像データに対して、通常のディザマスクにおける往路閾値と復路閾値との相対位置をずらした「往復ずらしマスク(第2ディザマスク)」を使用する。   Therefore, in the present embodiment, when the halftone processing unit 73 performs the halftone process, when ink is ejected from the head 41 based on the data that has been subjected to the halftone process using a normal dither mask, the dot landing is reciprocated. “Regular dither mask (first dither mask)” for the input image data corresponding to the print medium S located in the concave portion 421 of the platen 42 (first area) on the print medium S where the positional deviation occurs. Is used. On the other hand, when ink is ejected from the head 41 based on halftone processed data using a normal dither mask, an area on the print medium S (second area) where reciprocal dot landing position deviation hardly occurs, that is, A “reciprocating shift mask (second dither mask)” in which the relative positions of the forward pass threshold and the return pass threshold in the normal dither mask are shifted with respect to the input image data corresponding to the print medium S positioned on the convex portion 422 of the platen 42. Is used.

<往復ずらしマスク>
図5Aは、通常のディザマスク(以下、通常マスク)を説明する図であり、図5Bから図5Dは、往復ずらしマスクを説明する図である。X方向×Y方向に8×8の格納領域が並ぶディザマスクを例に挙げる。往路時のデータに対応する往路閾値が格納される領域(マス目)には斜線を施し、復路時のデータに対応する復路閾値が格納される領域は白塗りの領域とする。本実施形態では図4Aに示す印刷方法を実施する場合を例に挙げているため、図5のディザマスクでは、往路閾値がX方向に並んだ閾値の列と復路閾値がX方向に並んだ閾値の列とがY方向に交互に並ぶ。
<Reciprocating mask>
FIG. 5A is a diagram illustrating a normal dither mask (hereinafter referred to as a normal mask), and FIGS. 5B to 5D are diagrams illustrating a reciprocating shift mask. An example is a dither mask in which 8 × 8 storage areas are arranged in the X direction × Y direction. The area (squares) where the forward threshold value corresponding to the data at the time of the outgoing path is stored is shaded, and the area where the backward threshold value corresponding to the data at the time of the backward path is stored is a white area. In the present embodiment, the case where the printing method shown in FIG. 4A is performed is taken as an example, and therefore, in the dither mask of FIG. Are alternately arranged in the Y direction.

格納領域内には、具体的な閾値の値ではなく、X方向の位置を示す数字(左側の数字)とY方向の位置を示す数字(右側の数字)とで閾値を表す。図5Aに示す「通常マスク」では、X方向の左側から順に小さい番号(0、1、2、…7)が付され、Y方向の上から順に小さい番号(0、1、2、…7)が付されている。そのため、通常マスクの左上の格納領域内の往路閾値は「0,0」で表され、右下の格納領域内の復路閾値は「7,7」で表される。   In the storage area, the threshold value is represented not by a specific threshold value but by a number indicating the position in the X direction (number on the left side) and a number indicating the position in the Y direction (number on the right side). In the “normal mask” shown in FIG. 5A, numbers (0, 1, 2,... 7) are assigned in order from the left side in the X direction, and numbers (0, 1, 2,... 7) in order from the top in the Y direction. Is attached. Therefore, the forward path threshold value in the upper left storage area of the normal mask is represented by “0, 0”, and the return path threshold value in the lower right storage area is represented by “7, 7”.

往復ずらしマスクは、通常マスクにおける往路閾値と復路閾値の相対位置関係をずらしたマスクであり、図5B〜図5Dでは、往路閾値に対して復路閾値をX方向の左側にずらしたマスクを例に挙げる。図5Bは、復路閾値をX方向左側に1画素分ずらしたマスクである。そのため、通常マスク(図5A)では、左上の往路閾値「0,0」の下に復路閾値「0,1」が位置するところ、図5Bのマスクでは、往路閾値「0,0」の下に復路閾値「1,1」が位置する。同様に、図5Cは、復路閾値をX方向左側に2画素分ずらしたマスクであるため、往路閾値「0,0」の下に復路閾値「2,1」が位置し、図5Dは、復路閾値をX方向左側に3画素分ずらしたマスクであるため、左上の往路閾値「0,0」の下に復路閾値「3,1」が位置する。   The reciprocating shift mask is a mask in which the relative positional relationship between the forward pass threshold and the return pass threshold in the normal mask is shifted. In FIGS. 5B to 5D, masks in which the return pass threshold is shifted to the left in the X direction with respect to the forward pass threshold are taken as an example. I will give you. FIG. 5B is a mask in which the return pass threshold is shifted by one pixel to the left in the X direction. Therefore, in the normal mask (FIG. 5A), the return path threshold value “0, 1” is located below the forward path threshold value “0, 0” in the upper left. However, in the mask of FIG. The return path threshold “1, 1” is located. Similarly, FIG. 5C is a mask in which the return path threshold is shifted by two pixels to the left in the X direction, so that the return path threshold “2, 1” is positioned below the forward path threshold “0, 0”, and FIG. Since the threshold is shifted by three pixels to the left in the X direction, the return path threshold “3, 1” is located below the forward path threshold “0, 0” at the upper left.

前述のように、本実施形態では、凹部421上の印刷媒体Sには、通常マスク(図5A)を使用してハーフトーン処理されたデータに基づき画像が印刷される。しかし、凹部421上の印刷媒体Sでは、コックリング現象の発生によりペーパーギャップが変化するため、例えば、本来であれば図4Bに示すように往路ドットD1と復路ドットD2が形成されるところ、図4Cに示すように往路ドットD1に対して復路ドットD2がX方向の左側に2画素ずれて形成されてしまう。但し、本実施形態では、凹部421上の印刷媒体Sにて生じるドット着弾位置ずれに応じて、通常マスクにおける往路閾値と復路閾値との相対位置をずらした往復ずらしマスクを使用してハーフトーン処理されたデータに基づき、凸部422上の印刷媒体Sに画像が印刷される。例えば、往路閾値に対して復路閾値がX方向の左側に2画素分ずれた往復ずらしマスク(図5C)を使用して、凸部422上の印刷媒体Sに対応するデータがハーフトーン処理される。そうすると、通常マスクでハーフトーン処理されたデータにおいて復路ドットD2が発生する画素よりも、X方向の左側に2画素ずれた画素に、復路ドットD2が発生する確率の高いデータが得られる。そのようなデータに基づき凸部422上の印刷媒体Sに画像を印刷することで、凹部421上の印刷媒体Sに印刷される画像(図4C)と同様の画像を、凸部422上の印刷媒体Sに印刷できる。   As described above, in the present embodiment, an image is printed on the print medium S on the concave portion 421 based on the data subjected to the halftone process using the normal mask (FIG. 5A). However, in the printing medium S on the concave portion 421, the paper gap changes due to the occurrence of the cockling phenomenon. For example, when the forward pass dot D1 and the return pass dot D2 are formed as shown in FIG. As shown in FIG. 4C, the backward dot D2 is formed on the left side in the X direction by two pixels with respect to the forward dot D1. However, in this embodiment, halftone processing is performed using a reciprocating shift mask in which the relative positions of the forward pass threshold and the return pass threshold in the normal mask are shifted in accordance with the dot landing position shift that occurs in the printing medium S on the recess 421. Based on the data thus obtained, an image is printed on the print medium S on the convex portion 422. For example, the data corresponding to the print medium S on the convex portion 422 is halftone processed using a reciprocating shift mask (FIG. 5C) in which the return pass threshold is shifted by two pixels to the left in the X direction with respect to the forward pass threshold. . As a result, data with a high probability of occurrence of the backward pass dot D2 is obtained in a pixel shifted by 2 pixels on the left side in the X direction from the pixel in which the backward pass dot D2 is generated in the data subjected to the halftone process using the normal mask. By printing an image on the print medium S on the convex portion 422 based on such data, an image similar to the image printed on the print medium S on the concave portion 421 (FIG. 4C) is printed on the convex portion 422. Printing on the medium S is possible.

つまり、凹部422に対応するデータを通常マスクでハーフトーン処理し、凸部422に対応するデータを往復ずらしマスクでハーフトーン処理することで、凹部421と同様に往復のドット着弾位置ずれが生じたような画像を、凸部422上の印刷媒体Sに印刷できる。従って、凸部422上の印刷媒体Sに形成される往路ドットと復路ドットの相対位置関係(ドット同士の重なり方)を、凹部421上の印刷媒体Sに形成される往路ドットと復路ドットの相対位置関係(ドット同士の重なり方)に近づけられる。その結果、凸部422上の印刷媒体Sと凹部421上の印刷媒体Sとで、被覆率の差、つまり、画像の濃度差を小さくすることができ、プラテン42の凹凸形状に沿った濃度むらの発生を抑制できる。   That is, halftone processing is performed on the data corresponding to the concave portion 422 using a normal mask and halftone processing is performed on the data corresponding to the convex portion 422 using a reciprocating shift mask. Such an image can be printed on the print medium S on the convex portion 422. Therefore, the relative positional relationship between the forward pass dots and the backward pass dots formed on the print medium S on the convex portion 422 (how dots overlap) is expressed as the relative relationship between the forward pass dots and the backward pass dots formed on the print medium S on the concave portion 421. It is close to the positional relationship (how dots overlap). As a result, the difference in coverage between the print medium S on the convex portion 422 and the print medium S on the concave portion 421, that is, the difference in image density, can be reduced, and the density unevenness along the uneven shape of the platen 42 can be reduced. Can be suppressed.

<往復ずらしマスクの決定方法>
図6Aは、プラテン42の凸部422に対応するデータに対して使用する往復ずらしマスクを決定するフローであり、図6Bは、プリンター1が印刷するパターンpを示す図である。前述のように、凸部422に対応するデータに対して使用する往復ずらしマスクは、凹部421上の印刷媒体Sにて生じるドット着弾位置ずれに応じたマスクとする。そのため、プリンター1の出荷前やユーザーのもとにおいて、プリンター1の個体毎に、往復ずらしマスクを決定する処理を行うとよい。
<How to determine the reciprocating displacement mask>
6A is a flow for determining a reciprocal shift mask to be used for data corresponding to the convex portion 422 of the platen 42, and FIG. 6B is a diagram illustrating a pattern p printed by the printer 1. As described above, the reciprocating shift mask used for the data corresponding to the convex portion 422 is a mask corresponding to the dot landing position deviation generated in the print medium S on the concave portion 421. Therefore, it is preferable to perform a process for determining a reciprocal shift mask for each printer 1 before shipment of the printer 1 or under the user.

具体的には、プリンター1に接続されたコンピューター2が、図6Bに示すパターンpをプリンター1に印刷させる(S001)。パターンpは、一様な濃度(階調値)で示される入力画像データに基づき印刷された画像とし、プラテン42の凹部421に対応する入力画像データも凸部422に対応する入力画像データも通常マスク(図5A)を使用してハーフトーン処理されたデータに基づき印刷された画像とする。   Specifically, the computer 2 connected to the printer 1 causes the printer 1 to print the pattern p shown in FIG. 6B (S001). The pattern p is an image printed based on input image data represented by a uniform density (gradation value), and the input image data corresponding to the concave portion 421 of the platen 42 and the input image data corresponding to the convex portion 422 are both normal. Assume that the image is printed based on the halftoned data using the mask (FIG. 5A).

ここで、コンピューター2が、凹部421上の印刷媒体Sに印刷されたパターンpの部位の読取データd1と凸部422上の印刷媒体Sに印刷されたパターンpの部位の読取データd2の濃度差に対して、その濃度差を抑制可能な往復ずらしマスク(又は通常マスクからの往路閾値と復路閾値の相対ずらし量)を対応付けた情報(不図示)を、記憶しているとする。そこで、コンピューター2は、印刷媒体S上に印刷されたパターンpを、光学センサー51(又は外部装置であるスキャナー)に読み取らせ、その読取データを取得する(S002)。そして、凹部421に対応するパターンpの部位の読取データd1と凸部422に対応するパターンpの部位の読取データd2の濃度差に基づき、凸部422に対応するデータに対して使用する往復ずらしマスク(即ち往復ずらしマスクにおける往路閾値と復路閾値の相対ずらし量)を決定する(S003)。決定した往復ずらしマスクは、コンピューター2のメモリーが記憶する等して、ハーフトーン処理部73がハーフトーン処理を行う際に使用可能な状態にする。以上のように凸部422に対応するデータに対して使用する往復ずらしマスクを決定することで、プラテン42の凹凸形状に沿った濃度むらの発生を抑制可能な往復ずらしマスクを決定できる。   Here, the computer 2 compares the density difference between the read data d1 of the portion of the pattern p printed on the print medium S on the concave portion 421 and the read data d2 of the portion of the pattern p printed on the print medium S on the convex portion 422. On the other hand, it is assumed that information (not shown) in which a reciprocating shift mask capable of suppressing the density difference (or a relative shift amount between the forward pass threshold and the return pass threshold from the normal mask) is stored is stored. Therefore, the computer 2 causes the optical sensor 51 (or a scanner that is an external device) to read the pattern p printed on the print medium S, and acquires the read data (S002). Then, based on the density difference between the read data d1 of the part of the pattern p corresponding to the concave part 421 and the read data d2 of the part of the pattern p corresponding to the convex part 422, the reciprocal shift used for the data corresponding to the convex part 422 is used. A mask (that is, a relative shift amount between the forward pass threshold and the return pass threshold in the reciprocating shift mask) is determined (S003). The determined reciprocating displacement mask is stored in the memory of the computer 2 so that it can be used when the halftone processing unit 73 performs the halftone processing. As described above, by determining the reciprocal shift mask to be used for the data corresponding to the convex portion 422, it is possible to determine the reciprocal shift mask that can suppress the occurrence of density unevenness along the uneven shape of the platen 42.

なお、上記実施形態に限らず、例えば、凹部421に対応する入力画像データに対して通常マスク(図5A)を使用し、凸部422に対応する入力画像データに対して、複数の往復ずらしマスク(図5B〜図5D)を順に切り替えて使用したデータに基づき、プリンター1に複数のパターンを印刷させてもよい。この場合、光学センサー51によるパターンの読取結果や目視に基づき、濃度むらが最も視認され難いパターンを決定し、そのパターンの印刷データを作成する際に使用した往復ずらしマスクを、凸部422に対応するデータに対して使用するマスクに決定するとよい。その他、凹部421上の印刷媒体Sの部位に対して、往路時と復路時にそれぞれラインをプリンター1に印刷させ、その往路ラインと復路ラインのずれ量に基づき、凸部422に対応するデータに対して使用する往復ずらしマスクを決定してもよい。また、凸部422に対応するデータに対して使用するマスクとしては、図5B〜図5Dに示すマスクに限らず、例えば、往路閾値に対して復路閾値がX方向の右側にずれたマスクや、復路閾値のずらし量が3画素より大きいマスクも含まれる。   For example, a normal mask (FIG. 5A) is used for input image data corresponding to the concave portion 421, and a plurality of reciprocating shift masks are used for input image data corresponding to the convex portion 422. A plurality of patterns may be printed on the printer 1 based on data used by sequentially switching (FIGS. 5B to 5D). In this case, the pattern in which the density unevenness is most difficult to be visually recognized is determined based on the pattern reading result or visual observation by the optical sensor 51, and the reciprocating shift mask used when creating the print data of the pattern corresponds to the convex portion 422. It is preferable to determine a mask to be used for data to be processed. In addition, for the portion of the print medium S on the concave portion 421, the printer 1 prints a line at the time of the forward pass and the return pass, and the data corresponding to the convex portion 422 is based on the deviation amount of the forward pass line and the return pass line. The reciprocating shift mask to be used may be determined. Further, the mask used for the data corresponding to the convex portion 422 is not limited to the mask shown in FIGS. 5B to 5D, for example, a mask in which the return path threshold is shifted to the right in the X direction with respect to the forward path threshold, A mask in which the shift amount of the return path threshold is larger than 3 pixels is also included.

また、この実施形態では、2回のパスで画像片が完成する場合を例に挙げているが、実際のプリンター1では、2回よりも多い例えば4回のパスで画像片が完成される場合がある。その場合、凹部421上の印刷媒体Sでは、往復のドット着弾位置ずれだけでなく、1パス目の往路ドットと3パス目の往路ドットの相対位置関係がずれたり、2パス目の復路ドットと4パス目の復路ドットの相対位置関係がずれたりしてしまう。その場合も、上記のように、プリンター1に実際にパターンを印刷させて、濃度むらが視認され難い往復ずらしマスクを決定することで、凹部421に位置する印刷媒体Sで生じる往復のドット着弾位置ずれだけでなく、パス毎のドット着弾位置ずれ(例えば1パス目と3パス目の往路ドットのずれ等)も考慮された往復ずらしマスクを決定できる。つまり、往復のドット着弾位置ずれとパス毎のドット着弾位置ずれが生じる凹部421上の印刷媒体Sの被覆率と、ドット着弾位置ずれが生じない凸部422上の印刷媒体Sの被覆率とが同等となるように、凸部422上の印刷媒体Sの往路ドットと復路ドットをずらして形成させる往復ずらしマスクを決定できる。   In this embodiment, the case where an image piece is completed in two passes is taken as an example. However, in the actual printer 1, the image piece is completed in four passes, for example, more than twice. There is. In this case, in the printing medium S on the concave portion 421, not only the reciprocal dot landing position shift but also the relative positional relationship between the forward pass dot in the first pass and the forward pass dot in the third pass is shifted, and the return pass dot in the second pass The relative positional relationship of the return pass dots in the fourth pass is shifted. Even in that case, as described above, the printer 1 actually prints the pattern, and determines the reciprocating shift mask in which the density unevenness is difficult to be visually recognized, so that the reciprocating dot landing position generated in the printing medium S located in the recess 421 It is possible to determine a reciprocating shift mask that takes into account not only the shift but also the dot landing position shift for each pass (for example, the shift of the forward pass dots in the first pass and the third pass). In other words, the coverage of the printing medium S on the concave portion 421 where the dot landing position deviation of each round and the dot landing position deviation for each pass occurs, and the coverage of the printing medium S on the convex portion 422 where no dot landing position deviation occurs. A reciprocating shift mask for forming the forward dots and the backward dots of the printing medium S on the convex portion 422 by shifting them can be determined so as to be equivalent.

<ハーフトーン処理>
図7は、第1実施形態のハーフトーン処理のフローである。ハーフトーン処理部73は、ハーフトーン処理対象である入力画像データの中から、階調値を変換する着目画素を決定し(S101)、その着目画素がプラテン42の凸部422上の画素であるか否かを判断する。つまり、着目画素が、凸部422に位置する印刷媒体Sの部位にドットを形成するためのデータであるか否かを判断する(S102)。なお、印刷媒体Sとプラテン42の凹凸とのX方向の位置関係を示す情報、及び、印刷媒体Sと着目画素とのX方向の位置関係を示す情報に基づき、着目画素が凸部422上の画素であるか否かを判断できる。
<Halftone processing>
FIG. 7 is a flow of halftone processing according to the first embodiment. The halftone processing unit 73 determines a target pixel for converting the gradation value from the input image data to be processed by the halftone process (S101), and the target pixel is a pixel on the convex portion 422 of the platen 42. Determine whether or not. That is, it is determined whether or not the pixel of interest is data for forming a dot on a portion of the print medium S located on the convex portion 422 (S102). Note that, based on information indicating the positional relationship in the X direction between the printing medium S and the unevenness of the platen 42 and information indicating the positional relationship in the X direction between the printing medium S and the target pixel, the target pixel is located on the convex portion 422. It can be determined whether or not it is a pixel.

そして、着目画素が凸部422上の画素である場合(S102→Yes)、ハーフトーン処理部73は、「往復ずらしマスク」(図6Aのフローにて決定したマスク)により着目画素のドットのオンオフ判定を行う(S103)。つまり、着目画素の階調値と、着目画素に対応する往復ずらしマスクの閾値とを比較することによって、着目画素に対応する印刷媒体S上の画素領域にドットを形成するか否かの判定を行い、着目画素が有する多階調の階調値をプリンター1が表現可能な低階調の階調値に変換する。一方、着目画素が、凹部421上の画素である場合(S102→No)、ハーフトーン処理部73は、往路閾値と復路閾値がずれていない「通常マスク」により着目画素のドットのオンオフ判定を行う(S104)。入力画像データに属する全画素の処理が終了するまで、上記処理が繰り返される(S105)。   When the pixel of interest is a pixel on the convex portion 422 (S102 → Yes), the halftone processing unit 73 turns on / off the dot of the pixel of interest using a “reciprocal shift mask” (mask determined in the flow of FIG. 6A). A determination is made (S103). That is, it is determined whether or not to form a dot in the pixel region on the print medium S corresponding to the target pixel by comparing the gradation value of the target pixel and the threshold value of the reciprocal shift mask corresponding to the target pixel. The multi-gradation gradation value of the target pixel is converted into a low gradation gradation value that can be expressed by the printer 1. On the other hand, when the pixel of interest is a pixel on the recess 421 (S102 → No), the halftone processing unit 73 performs dot on / off determination of the pixel of interest using a “normal mask” in which the forward threshold and the backward threshold are not shifted. (S104). The above processing is repeated until the processing of all the pixels belonging to the input image data is completed (S105).

以上のようにハーフトーン処理を行うことによって、凸部422に位置する印刷媒体Sの部位に形成される往路ドットと復路ドットの相対位置関係(ドット同士の重なり方)を、凹部421に位置する印刷媒体Sの部位に形成される往路ドットと復路ドットの相対位置関係(ドット同士の重なり方)に近づけられ、プラテンの凹凸形状に沿った濃度むらの発生を抑制できる。   By performing the halftone process as described above, the relative positional relationship (how dots overlap) formed in the portion of the print medium S located in the convex portion 422 is positioned in the concave portion 421. It can be brought close to the relative positional relationship (how the dots overlap) formed between the forward pass dots and the backward pass dots formed on the portion of the print medium S, and the occurrence of density unevenness along the uneven shape of the platen can be suppressed.

===第2実施形態===
図8Aは、プラテン42の凹部421を区画した領域を説明する図であり、図8Bは、第2実施形態のハーフトーン処理のフローである。印刷媒体Sに吐出されるインク量が増えると、凹部421に位置する印刷媒体Sの部位は下方に撓むが、凹部421のうち、X方向における中央部領域A1に位置する印刷媒体Sに比べて、凸部422側の端部領域A2に位置する印刷媒体Sの方が、撓み量が小さい(L1>L2)。そのため、凹部421の端部領域A2上の印刷媒体Sにて生じる往復のドット着弾位置ずれは、凸部422上の印刷媒体Sにて生じる往復のドット着弾位置ずれに比べると大きいが、凹部421の中央部領域A1上の印刷媒体Sにて生じる往復のドット着弾位置ずれに比べると小さい。
=== Second Embodiment ===
FIG. 8A is a diagram for explaining a region where the concave portion 421 of the platen 42 is partitioned, and FIG. 8B is a flow of halftone processing according to the second embodiment. When the amount of ink ejected to the printing medium S increases, the portion of the printing medium S located in the recess 421 bends downward, but compared to the printing medium S located in the central area A1 in the X direction in the depression 421. Therefore, the printing medium S located in the end region A2 on the convex portion 422 side has a smaller amount of deflection (L1> L2). For this reason, the reciprocating dot landing position deviation generated in the printing medium S on the end area A2 of the concave portion 421 is larger than the reciprocating dot landing position deviation generated in the printing medium S on the convex portion 422, but the concave portion 421. This is smaller than the reciprocal dot landing position deviation that occurs in the print medium S on the central area A1.

そこで、第2実施形態では、ハーフトーン処理部73がハーフトーン処理を行う際に、プラテン42の凸部422に位置する印刷媒体Sの部位に対応する入力画像データに対して「往復ずらしマスク」を使用し、プラテン42の凹部421のうちX方向における中央部の領域A1に位置する印刷媒体Sの部位に対応する入力画像データに対して「通常マスク」を使用し、凹部421のうち中央部領域A1よりもX方向における凸部422側の端部領域A2に位置する印刷媒体Sの部位に対応する入力画像データに対して、往復ずらしマスクよりも小さいずらし量で通常マスクにおける往路閾値と復路閾値との相対位置をずらした「中間マスク(第3ディザマスク)」を使用する。例えば、往復ずらしマスクが、通常マスクにおける往路閾値に対して復路閾値をX方向の左側に2画素分ずらしたマスクである場合、中間マスクとしては、通常マスクにおける往路閾値に対して復路閾値をX方向の左側に1画素分ずらしたマスクが挙げられる。   Therefore, in the second embodiment, when the halftone processing unit 73 performs the halftone processing, a “reciprocating shift mask” is applied to the input image data corresponding to the portion of the print medium S located on the convex portion 422 of the platen 42. For the input image data corresponding to the portion of the print medium S located in the central area A1 in the X direction of the concave portion 421 of the platen 42, and the central portion of the concave portion 421. For the input image data corresponding to the portion of the print medium S located in the end region A2 on the convex portion 422 side in the X direction with respect to the region A1, the forward pass threshold and the return pass in the normal mask with a shift amount smaller than the reciprocating shift mask. An “intermediate mask (third dither mask)” in which the position relative to the threshold is shifted is used. For example, when the reciprocating shift mask is a mask in which the return pass threshold is shifted by two pixels to the left in the X direction with respect to the forward pass threshold in the normal mask, the intermediate mask has a return pass threshold X with respect to the forward pass threshold in the normal mask. There is a mask shifted by one pixel on the left side in the direction.

具体的には、ハーフトーン処理部73は、図8Bに示すように、処理対象の画像データの中から着目画素を決定し(S201)、その着目画素が凸部422上の画素であるか否かを判断する(S202)。着目画素が凸部422上の画素である場合(S202→Yes)、ハーフトーン処理部73は、「往復ずらしマスク」により着目画素のドットのオンオフ判定を行う(S203)。一方、着目画素が凹部421上の画素である場合(S202→No)、ハーフトーン処理部73は、着目画素が中央部領域A1上の画素であるか否かを判断し、着目画素が中央部領域A1上の画素である場合には(S204→Yes)、「通常マスク」により着目画素のドットのオンオフ判定を行い(S205)、着目画素が端部領域A2上の画素である場合には(S204→No)、「中間マスク」により着目画素のドットのオンオフ判定を行う(S206)。   Specifically, as shown in FIG. 8B, the halftone processing unit 73 determines a target pixel from the image data to be processed (S201), and whether or not the target pixel is a pixel on the convex portion 422. Is determined (S202). When the pixel of interest is a pixel on the convex portion 422 (S202 → Yes), the halftone processing unit 73 performs on / off determination of the dot of the pixel of interest using the “reciprocating shift mask” (S203). On the other hand, when the target pixel is a pixel on the concave portion 421 (S202 → No), the halftone processing unit 73 determines whether or not the target pixel is a pixel on the central region A1, and the target pixel is the central portion. If it is a pixel on the area A1 (S204 → Yes), the on / off determination of the dot of the target pixel is performed using the “normal mask” (S205). If the target pixel is a pixel on the end area A2 ( (S204 → No), the on / off determination of the dot of the pixel of interest is performed by the “intermediate mask” (S206).

そうすることで、プラテン42の凸部422上の印刷媒体Sの部位と、プラテン42の凹部421の中央部領域A1上の印刷媒体Sの部位と、凹部421の端部領域A2上の印刷媒体Sの部位とにおいて、それぞれ形成される往路ドットと復路ドットの相対位置関係を近づけ、被覆率の差を小さくすることができる。従って、プラテン42の凹凸形状に沿った濃度むらの発生を抑制できる。   By doing so, the part of the print medium S on the convex part 422 of the platen 42, the part of the print medium S on the central area A1 of the concave part 421 of the platen 42, and the print medium on the end part area A2 of the concave part 421 The relative positional relationship between the forward pass dot and the backward pass dot that are respectively formed in the portion S can be made closer, and the difference in coverage can be reduced. Therefore, it is possible to suppress the occurrence of density unevenness along the uneven shape of the platen 42.

===第3実施形態===
図9Aは、第3実施形態のプラテン42を説明する図であり、図9Bは、第3実施形態のハーフトーン処理のフローである。前述のように、プラテン42の凹部421は、縁無し印刷の際に印刷媒体SのX方向の端部から外れたインクを受ける役割を果たす。一方、プリンター1では種々のサイズの印刷媒体Sが印刷されるが、各サイズの印刷媒体SのX方向の端部の間隔が一定になるとは限らない。そのため、図9Aに示すように、凸部422や凹部421がX方向に一定の間隔おきに並ばず、X方向の長さが異なる複数の凹部421がプラテン42に形成される場合がある。
=== Third Embodiment ===
FIG. 9A is a diagram illustrating the platen 42 according to the third embodiment, and FIG. 9B is a flow of halftone processing according to the third embodiment. As described above, the concave portion 421 of the platen 42 plays a role of receiving ink that is removed from the end portion in the X direction of the print medium S during borderless printing. On the other hand, the printer 1 prints print media S of various sizes, but the interval between the X-direction end portions of the print media S of each size is not always constant. For this reason, as shown in FIG. 9A, the convex portions 422 and the concave portions 421 are not arranged at regular intervals in the X direction, and a plurality of concave portions 421 having different lengths in the X direction may be formed on the platen 42.

例えば、図9Aに示すように、X方向の長さW1が長い幅広凹部421aと、X方向の長さW2が短い幅狭凹部421bとが、プラテン42に形成されているとする。幅広凹部421aに比べて、幅狭凹部421bの方が、インクが吐出されたことによる印刷媒体Sの撓みが小さくなる(L3>L4)。そのため、幅狭凹部421b上の印刷媒体Sにて生じる往復のドット着弾位置ずれは、凸部422上の印刷媒体Sにて生じる往復のドット着弾位置ずれに比べると大きいが、幅広凹部421a上の印刷媒体Sにて生じる往復のドット着弾位置ずれに比べると小さい。   For example, as shown in FIG. 9A, it is assumed that a wide concave portion 421a having a long length W1 in the X direction and a narrow concave portion 421b having a short length W2 in the X direction are formed on the platen 42. Compared to the wide concave portion 421a, the narrow concave portion 421b has less deflection of the print medium S due to the ejection of ink (L3> L4). For this reason, the reciprocating dot landing position deviation generated in the printing medium S on the narrow concave portion 421b is larger than the reciprocating dot landing position deviation generated in the printing medium S on the convex portion 422, but on the wide concave portion 421a. This is smaller than the reciprocal dot landing position deviation that occurs in the print medium S.

そこで、第3実施形態では、ハーフトーン処理部73がハーフトーン処理を行う際に、プラテン42の凸部422に位置する印刷媒体Sの部位に対応する入力画像データに対して「往復ずらしマスク」を使用し、幅広凹部421a上に位置する印刷媒体Sの部位に対応する入力画像データに対して「通常マスク」を使用し、幅狭凹部421b上に位置する印刷媒体Sの部位に対応する入力画像データに対して、往復ずらしマスクよりも小さいずらし量で通常マスクにおける往路閾値と復路閾値との相対位置をずらした「中間マスク」を使用する。   Therefore, in the third embodiment, when the halftone processing unit 73 performs the halftone processing, the “reciprocating shift mask” is applied to the input image data corresponding to the portion of the print medium S located on the convex portion 422 of the platen 42. Is used for the input image data corresponding to the portion of the print medium S located on the wide concave portion 421a, and the input corresponding to the portion of the print medium S located on the narrow concave portion 421b is used. For the image data, an “intermediate mask” is used in which the relative position between the forward pass threshold and the return pass threshold in the normal mask is shifted by a shift amount smaller than the reciprocating shift mask.

具体的には、ハーフトーン処理部73は、図9Bに示すように、処理対象の画像データの中から着目画素を決定し(S301)、その着目画素が凸部422上の画素である場合には(S302→Yes)、往復ずらしマスクにより着目画素のドットのオンオフ判定を行う(S303)。一方、着目画素が凹部421上の画素である場合(S302→No)、ハーフトーン処理部73は、着目画素が幅広凹部421a上の画素であるか否かを判断し、着目画素が幅広凹部421a上の画素である場合には(S304→Yes)、通常マスクにより着目画素のドットのオンオフ判定を行い(S305)、着目画素が幅狭凹部421b上の画素である場合には(S304→No)、中間マスクにより着目画素のドットのオンオフ判定を行う(S306)。   Specifically, as shown in FIG. 9B, the halftone processing unit 73 determines a target pixel from the image data to be processed (S301), and when the target pixel is a pixel on the convex portion 422. (S302 → Yes), the dot on / off determination of the pixel of interest is performed using the reciprocating shift mask (S303). On the other hand, when the target pixel is a pixel on the recess 421 (S302 → No), the halftone processing unit 73 determines whether the target pixel is a pixel on the wide recess 421a, and the target pixel is the wide recess 421a. If it is the upper pixel (S304 → Yes), the on / off determination of the dot of the target pixel is performed using the normal mask (S305), and if the target pixel is a pixel on the narrow recess 421b (S304 → No) Then, on / off determination of the dot of the pixel of interest is performed using the intermediate mask (S306).

そうすることで、プラテン42の凸部422に位置する印刷媒体Sの部位と、幅広凹部421aに位置する印刷媒体Sの部位と、幅狭凹部421bに位置する印刷媒体Sの部位とにおいて、それぞれ形成される往路ドットと復路ドットの相対位置関係を近づけ、被覆率の差を小さくすることができる。従って、プラテン42の凹凸形状に沿った濃度むらの発生を抑制できる。なお、凹部421のX方向の長さが3種類以上ある場合には、例えば、着目画素が対応する凹部421のX方向の長さが閾値以上であれば往復ずらしマスクを使用し、凹部421のX方向の長さが閾値未満であれば中間マスクを使用するとよい。   By doing so, in the part of the print medium S located on the convex part 422 of the platen 42, the part of the print medium S located in the wide concave part 421a, and the part of the print medium S located in the narrow concave part 421b, respectively. The relative positional relationship between the forward pass dots and the backward pass dots that are formed can be made closer, and the difference in coverage can be reduced. Therefore, it is possible to suppress the occurrence of density unevenness along the uneven shape of the platen 42. When there are three or more types of lengths in the X direction of the recesses 421, for example, if the length in the X direction of the corresponding recesses 421 corresponding to the pixel of interest is equal to or greater than a threshold value, a reciprocating shift mask is used. An intermediate mask may be used if the length in the X direction is less than the threshold.

また、第3実施形態でも、第2実施形態と同様に、幅広凹部421aをX方向における中央部領域と端部領域とに分け、幅広凹部421aの中央部領域に位置する印刷媒体Sに対応する入力画像データに対しては通常マスクを使用し、幅広凹部421aの端部領域に位置する印刷媒体Sに対応する入力画像データに対しては中間マスクを使用するようにしてもよい。   In the third embodiment, as in the second embodiment, the wide concave portion 421a is divided into a central region and an end region in the X direction, and corresponds to the print medium S located in the central region of the wide concave portion 421a. A normal mask may be used for the input image data, and an intermediate mask may be used for the input image data corresponding to the print medium S located in the end region of the wide recess 421a.

===第4実施形態===
図10は、第4実施形態のハーフトーン処理のフローである。印刷媒体Sに吐出されるインク量が少なければ、プラテン42の凹部421に位置する印刷媒体Sの部位であっても撓み難く、往復のドットの着弾位置ずれが発生し難くなる。そこで、第4実施形態では、印刷媒体Sへのインク吐出量に応じて、プラテン42の凸部422に位置する印刷媒体Sの部位に対応する入力画像データに対して、往復ずらしマスクを使用するか否かを決定する。
=== Fourth Embodiment ===
FIG. 10 is a flow of halftone processing according to the fourth embodiment. If the amount of ink ejected to the printing medium S is small, it is difficult for the portion of the printing medium S located in the concave portion 421 of the platen 42 to bend, and the landing position deviation of the reciprocating dots is difficult to occur. Therefore, in the fourth embodiment, a reciprocal shift mask is used for input image data corresponding to a portion of the print medium S located on the convex portion 422 of the platen 42 according to the amount of ink discharged to the print medium S. Determine whether or not.

具体的には、ハーフトーン処理部73は、図10に示すように、印刷媒体S全体に吐出されるインク量が閾値未満である場合(S401→Yes)、換言すると、入力画像データを構成する全階調値の平均階調値や合計階調値等が閾値未満である場合、処理対象の画像データの中から着目画素を決定し(S402)、プラテン42の凹凸形状に関係なく通常マスクにより着目画素のドットのオンオフ判定を行う処理(S403)を繰り返す。一方、印刷媒体S全体に吐出されるインク量が閾値以上である場合(S401→No)、ハーフトーン処理部73は、処理対象の画像データの中から着目画素を決定し(S405)、その着目画素が凸部422上の画素であるか否かを判断し(S406)、着目画素が凸部422上の画素である場合には(S406→Yes)、往復ずらしマスクにより着目画素のドットのオンオフ判定を行い(S407)、着目画素が凹部421上の画素である場合には(S406→No)、通常マスクにより着目画素のドットのオンオフ判定を行う(S408)。   Specifically, as shown in FIG. 10, the halftone processing unit 73 configures input image data when the amount of ink ejected to the entire print medium S is less than the threshold (S401 → Yes). When the average gradation value or the total gradation value of all gradation values is less than the threshold value, the target pixel is determined from the image data to be processed (S402), and the normal mask is used regardless of the uneven shape of the platen 42. The process (S403) of performing ON / OFF determination of the dot of the target pixel is repeated. On the other hand, when the amount of ink ejected on the entire print medium S is equal to or greater than the threshold (S401 → No), the halftone processing unit 73 determines a target pixel from the image data to be processed (S405), and the target It is determined whether or not the pixel is a pixel on the convex portion 422 (S406). If the target pixel is a pixel on the convex portion 422 (S406 → Yes), the dot of the target pixel is turned on / off by the reciprocating shift mask. A determination is made (S407), and if the target pixel is a pixel on the concave portion 421 (S406 → No), on / off determination of the dot of the target pixel is performed using a normal mask (S408).

そうすることで、印刷媒体Sに吐出されるインク量が多く、凹部421における往復のドット着弾位置ずれが大きい場合には、プラテン42の凹凸形状に応じて使用するディザマスク(通常マスク又は往復ずらしマスク)が切り替えられ、プラテン42の凹凸形状に沿った濃度むらの発生を抑制できる。一方、印刷媒体Sに吐出されるインク量が少なく、凹部421における往復のドット着弾位置ずれが小さい場合には、プラテン42の凹凸形状に関係なく通常マスクが使用されるため、着目画素毎に使用するディザマスクを判断する必要がなく、ハーフトーン処理を容易にできる。   By doing so, when the amount of ink ejected to the printing medium S is large and the dot landing position displacement in the reciprocating portion 421 is large, a dither mask (ordinary mask or reciprocating displacement) used in accordance with the uneven shape of the platen 42. The mask) is switched, and density unevenness along the uneven shape of the platen 42 can be suppressed. On the other hand, when the amount of ink ejected onto the printing medium S is small and the reciprocating dot landing position deviation in the concave portion 421 is small, the normal mask is used regardless of the concave / convex shape of the platen 42. It is not necessary to determine the dither mask to be performed, and halftone processing can be facilitated.

===第5実施形態===
図11は、第5実施形態のハーフトーン処理のフローである。プリンター1は、一般に、複数種類の厚さの印刷媒体Sに対して画像を印刷する。印刷媒体Sの厚さが厚く、ペーパーギャップが狭い場合、プラテン42の凹部421に位置する印刷媒体Sであっても撓み難く、往復のドット着弾位置ずれが生じ難くなる。また、ペーパーギャップが狭いほどドットの着弾位置ずれが小さくなる傾向がある。そこで、第5実施形態では、プラテンギャップに応じて、プラテン42の凸部422に位置する印刷媒体Sの部位に対応する入力画像データに対して、往復ずらしマスクを使用するか否かを決定する。
=== Fifth Embodiment ===
FIG. 11 is a flow of halftone processing according to the fifth embodiment. In general, the printer 1 prints an image on a plurality of types of print media S having different thicknesses. When the print medium S is thick and the paper gap is narrow, even the print medium S located in the concave portion 421 of the platen 42 is difficult to bend, and reciprocal dot landing position deviation is difficult to occur. Also, the smaller the paper gap, the smaller the landing position deviation of dots. Therefore, in the fifth embodiment, it is determined whether to use a reciprocation shift mask for input image data corresponding to a portion of the print medium S located on the convex portion 422 of the platen 42 according to the platen gap. .

具体的には、ハーフトーン処理部73は、図11に示すように、処理対象の画像データに基づき印刷を行う際のペーパーギャップの情報を取得し、そのペーパーギャップが閾値未満である場合(S501→Yes)、処理対象の画像データの中から着目画素を決定し(S502)、プラテン42の凹凸形状に関係なく通常マスクにより着目画素のドットのオンオフ判定を行う処理(S503)を繰り返す。一方、ペーパーギャップが閾値以上である場合(S501→No)、ハーフトーン処理部73は、処理対象の画像データの中から着目画素を決定し(S505)、その着目画素が凸部422上の画素であるか否かを判断し(S506)、着目画素が凸部422上の画素である場合には(S506→Yes)、往復ずらしマスクにより着目画素のドットのオンオフ判定を行い(S507)、着目画素が凹部421上の画素である場合には(S506→No)、通常マスクにより着目画素のドットのオンオフ判定を行う(S508)。   Specifically, as shown in FIG. 11, the halftone processing unit 73 acquires information about a paper gap when printing is performed based on image data to be processed, and the paper gap is less than a threshold (S501). (Yes), the target pixel is determined from the image data to be processed (S502), and the process of determining the dot on / off of the target pixel using the normal mask regardless of the uneven shape of the platen 42 (S503) is repeated. On the other hand, when the paper gap is equal to or greater than the threshold (S501 → No), the halftone processing unit 73 determines a target pixel from the image data to be processed (S505), and the target pixel is a pixel on the convex portion 422. (S506), if the pixel of interest is a pixel on the convex portion 422 (S506 → Yes), the dot on / off of the pixel of interest is determined using a reciprocating shift mask (S507). If the pixel is a pixel on the recess 421 (S506 → No), the dot on / off of the pixel of interest is determined using the normal mask (S508).

そうすることで、ペーパーギャップが大きく、凹部421における往復のドット着弾位置ずれが大きい場合には、プラテン42の凹凸形状に応じて使用するディザマスク(通常マスク又は往復ずらしマスク)が切り替えられ、プラテン42の凹凸形状に沿った濃度むらの発生を抑制できる。一方、ペーパーギャップが小さく、凹部421における往復のドット着弾位置ずれが小さい場合には、プラテン42の凹凸形状に関係なく通常マスクを使用するため、着目画素毎に使用するディザマスクを判断する必要がなく、ハーフトーン処理を容易にできる。   By doing so, when the paper gap is large and the reciprocating dot landing position deviation in the concave portion 421 is large, the dither mask (ordinary mask or reciprocating displacement mask) to be used is switched according to the uneven shape of the platen 42. It is possible to suppress the occurrence of density unevenness along the concavo-convex shape of 42. On the other hand, when the paper gap is small and the reciprocating dot landing position deviation in the concave portion 421 is small, the normal mask is used regardless of the uneven shape of the platen 42, and therefore it is necessary to determine the dither mask to be used for each pixel of interest. And halftone processing can be facilitated.

なお、ペーパーギャップを、2つの閾値(第1の閾値と第1の閾値より小さい第2の閾値)と比較するようにしてもよい。そして、ペーパーギャップが第1の閾値以上であればプラテン42の凹凸形状に応じて通常マスクと往復ずらしマスクとを切り替え、ペーパーギャップが第1の閾値未満であり第2の閾値以上であればプラテン42の凹凸形状に応じて通常マスクと中間マスク(往路閾値と復路閾値のずらし量が往復ずらしマスクよりも少ないマスク)とを切り替え、ペーパーギャップが第2閾値未満であればプラテン42の凹凸形状に関係なく通常マスクを使用するようにしてもよい。   The paper gap may be compared with two threshold values (a first threshold value and a second threshold value smaller than the first threshold value). If the paper gap is equal to or larger than the first threshold value, the normal mask and the reciprocating mask are switched according to the uneven shape of the platen 42. If the paper gap is smaller than the first threshold value and equal to or larger than the second threshold value, the platen is switched. Switching between a normal mask and an intermediate mask (a mask in which the shift amount between the forward pass threshold and the return pass threshold is smaller than that of the reciprocating shift mask) according to the concave / convex shape of the plate 42 and the paper gap is less than the second threshold value, Regardless, a normal mask may be used.

===第6実施形態===
図12Aは、ブルーノイズディザマスクでハーフトーン処理されたデータに基づき形成されるドットD1,D2の配置を説明する図であり、図12Bは、ペアドットディザマスクでハーフトーン処理されたデータに基づき形成されるドットD1,D2の配置を説明する図である。図13は、第6実施形態におけるハーフトーン処理のフローである。
=== Sixth Embodiment ===
FIG. 12A is a diagram illustrating the arrangement of dots D1 and D2 formed based on data that has been halftone processed with a blue noise dither mask, and FIG. 12B is based on data that has been halftone processed with a pair dot dither mask. It is a figure explaining arrangement | positioning of the dots D1, D2 to be formed. FIG. 13 is a flow of halftone processing in the sixth embodiment.

ディザマスクの一例として、ドット分散性が高い(ドット分散性の良い)ブルーノイズディザマスクが挙げられる。ブルーノイズディザマスクとは、高周波領域において感度が低いという人間の視覚特性を考慮し、形成されるドットの分布が、空間周波数領域において高周波領域側にピークを持つノイズ特性を有し、ドット分散性に優れたマスクである。例えば、1周期の長さが2画素以下の高周波領域に最も大きな周波数成分を有するマスクである。ブルーノイズディザマスクでハーフトーン処理されたデータに基づき印刷される淡い画像では、図12Aの左図に示すように、隣接する画素領域にドットD1,D2が形成されずに、離れた画素領域にドットD1,D2が形成される。このようにドットD1,D2を分散させることで、画像の粒状性を高められる。   As an example of the dither mask, a blue noise dither mask having high dot dispersibility (good dot dispersibility) can be given. The blue noise dither mask has human noise characteristics that the sensitivity is low in the high-frequency region, and the formed dot distribution has a noise characteristic that has a peak in the high-frequency region side in the spatial frequency region. It is an excellent mask. For example, it is a mask having the largest frequency component in a high-frequency region where the length of one cycle is 2 pixels or less. In a light image printed based on halftone processed data with a blue noise dither mask, dots D1 and D2 are not formed in adjacent pixel areas as shown in the left diagram of FIG. 12A. Dots D1 and D2 are formed. By dispersing the dots D1 and D2 in this way, the graininess of the image can be improved.

しかし、ブルーノイズディザマスクでハーフトーン処理された画像であっても、コックリング現象の発生等によりプラテン42の凹部421にてペーパーギャップが変化し、ドット着弾位置ずれが発生すると、図12Aの右図に示すように、本来離れて形成されるべきドットD1,D2が隣接して形成され、印刷媒体Sの被覆率が低下してしまう。つまり、ブルーノイズディザマスクでハーフトーン処理された画像では、ドットの着弾位置ずれが発生する場合と発生しない場合とで、印刷媒体Sの被覆率の変化量が大きく、画像の濃度変化が大きくなってしまう。   However, even in the case of an image that has been halftone processed with a blue noise dither mask, if the paper gap changes in the concave portion 421 of the platen 42 due to the occurrence of a cockling phenomenon or the like, As shown in the figure, the dots D1 and D2 that should be originally formed are formed adjacent to each other, and the coverage of the print medium S is reduced. That is, in an image that has been subjected to halftone processing using a blue noise dither mask, the amount of change in the coverage of the print medium S is large and the change in image density is large depending on whether or not the dot landing position shift occurs. End up.

また、ディザマスクの中には、淡い画像を印刷する範囲の階調値において、ドットの分散性がブルーノイズディザマスクより低くなる特性、換言すると、隣接する画素領域に共にドットが形成される確率がブルーノイズディザマスクより高くなる特性を有するペアドットディザマスクがある(詳細は後述)。ペアドットディザマスクでハーフトーン処理された淡い画像では、図12Bの左図に示すように、ドットの着弾位置ずれが発生しなくとも隣接する画素領域にドットD1,D2が形成されている。そのため、ドットの着弾位置ずれが発生しても、図12Bの右図に示すように、ドットD1,D2同士が重なっている確率が高い。つまり、ペアドットディザマスクを使用する方が、ブルーノイズディザマスクを使用する場合に比べて、画像の粒状性は低下してしまうが、ドットの着弾位置ずれが発生する場合と発生しない場合とで、印刷媒体Sの被覆率の変化量が小さく、画像の濃度変化を小さくすることができる。   In addition, the dither mask has a characteristic that the dispersibility of the dots is lower than that of the blue noise dither mask in the gradation value in the range where the light image is printed, in other words, the probability that dots are formed in adjacent pixel areas. There is a pair dot dither mask having a characteristic that becomes higher than the blue noise dither mask (details will be described later). In a light image that has been halftone processed with a pair dot dither mask, dots D1 and D2 are formed in adjacent pixel areas as shown in the left diagram of FIG. Therefore, even if a dot landing position shift occurs, there is a high probability that the dots D1 and D2 overlap each other as shown in the right diagram of FIG. 12B. In other words, when using a paired dot dither mask, the graininess of the image will be lower than when using a blue noise dither mask, but when the dot landing position shift occurs and when it does not occur. The amount of change in the coverage of the print medium S is small, and the change in image density can be reduced.

そこで、ペーパーギャップが変化し難くドット着弾位置ずれが生じ難いプラテン42の凸部422に対応する入力画像データに対して、ブルーノイズディザマスクを使用し、ペーパーギャップが変化し易くドット着弾位置ずれが生じ易いプラテン42の凹部421に対応する入力画像データに対して、ペアドットディザマスクを使用したとする。そうすることで、凸部422上の印刷媒体Sの部位には粒状性の良い画像を印刷しつつ、凹部421上の印刷媒体Sの部位には、ドットの着弾位置ずれが発生しても濃度変化の小さい画像を印刷できる。但し、双方向印刷が実施される場合、プラテン42の凹部421上の印刷媒体Sの部位では、ペーパーギャップが変化することで生じるドット着弾位置ずれに加え、往復のドット着弾位置が逆方向にずれることによるドット着弾位置ずれが生じるため、凸部422上の印刷媒体Sの部位に比べて、ドット着弾位置ずれが大きくなってしまう。そのため、凹部421に対応する入力画像データに対してペアドットディザマスクを使用しても、プラテン42の凹凸形状に沿った濃度むらの発生を抑制しきれいない虞がある。   Therefore, a blue noise dither mask is used for the input image data corresponding to the convex portion 422 of the platen 42 in which the paper gap hardly changes and the dot landing position shift hardly occurs, and the dot landing position shift easily occurs because the paper gap easily changes. It is assumed that a pair dot dither mask is used for input image data corresponding to the concave portion 421 of the platen 42 that is likely to occur. By doing so, an image having good graininess is printed on the portion of the print medium S on the convex portion 422, and the density of the print medium S on the concave portion 421 is increased even if a dot landing position shift occurs. Images with small changes can be printed. However, when bi-directional printing is performed, in the portion of the print medium S on the concave portion 421 of the platen 42, the dot landing position reciprocation is shifted in the opposite direction in addition to the dot landing position shift caused by the change in the paper gap. Due to this, the dot landing position shift occurs, so that the dot landing position shift becomes larger than the portion of the print medium S on the convex portion 422. Therefore, even if a pair dot dither mask is used for the input image data corresponding to the concave portion 421, there is a risk that density unevenness along the concave and convex shape of the platen 42 is suppressed and it is not clean.

そこで、第6実施形態では、ハーフトーン処理部73がハーフトーン処理を行う際に、往復のドット着弾位置ずれが生じる印刷媒体S上の領域(第1領域)、即ち、プラテン42の凹部421に位置する印刷媒体Sの部位に対応する入力画像データに対して、「ペアドットディザマスク(第1ディザマスク)」を使用する。一方、往復のドット着弾位置ずれが生じ難い印刷媒体S上の領域(第2領域)、即ち、プラテン42の凸部422に位置する印刷媒体Sの部位に対応する入力画像データに対して、ブルーノイズディザマスク、つまり、所定範囲の階調値におけるドットの分散性がペアドットディザマスクより高くなる特性を有するマスクにおける往路閾値と復路閾値との相対位置をずらした「往復ずらしマスク(第2ディザマスク)」を使用する。   Therefore, in the sixth embodiment, when the halftone processing unit 73 performs the halftone processing, the region on the print medium S in which the reciprocal dot landing position shift (first region), that is, the concave portion 421 of the platen 42 is generated. A “pair dot dither mask (first dither mask)” is used for the input image data corresponding to the portion of the print medium S that is positioned. On the other hand, the input image data corresponding to the region (second region) on the print medium S where the reciprocal dot landing position deviation hardly occurs, that is, the portion of the print medium S located on the convex portion 422 of the platen 42 is blue. In a noise dither mask, that is, a mask having a characteristic that the dispersibility of dots in a gradation value in a predetermined range is higher than that of a pair dot dither mask, a “reciprocal shift mask (second dither mask) in which the relative positions of the forward pass threshold and the return pass threshold are shifted. Mask) ”.

具体的には、ハーフトーン処理部73は、図13に示すように、処理対象の画像データの中から着目画素を決定し(S601)、その着目画素が凸部422上の画素であるか否かを判断する(S602)。着目画素が凸部422上の画素である場合(S602→Yes)、ハーフトーン処理部73は、ブルーノイズディザマスクの往路閾値と復路閾値をずらしたマスクにより着目画素のドットのオンオフ判定を行う(S603)。一方、着目画素が凹部421上の画素である場合(S602→No)、往路閾値と復路閾値がずれていないペアドットディザマスクにより着目画素のドットのオンオフ判定を行う(S605)。   Specifically, as shown in FIG. 13, the halftone processing unit 73 determines a target pixel from the image data to be processed (S601), and whether or not the target pixel is a pixel on the convex portion 422. Is determined (S602). When the pixel of interest is a pixel on the convex portion 422 (S602 → Yes), the halftone processing unit 73 performs on / off determination of the dot of the pixel of interest using a mask in which the forward threshold and the backward threshold of the blue noise dither mask are shifted ( S603). On the other hand, when the pixel of interest is a pixel on the concave portion 421 (S602 → No), on / off determination of the dot of the pixel of interest is performed using a pair dot dither mask in which the forward threshold and the backward threshold are not shifted (S605).

そうすることで、凸部422に位置する印刷媒体Sの部位に形成される往路ドットと復路ドットの相対位置関係(ドット同士の重なり方)を、凹部421に位置する印刷媒体Sの部位に形成される往路ドットと復路ドットの相対位置関係(ドット同士の重なり方)に近づけられ、プラテンの凹凸形状に沿った濃度むらの発生を抑制できる。   By doing so, the relative positional relationship (how dots are overlapped) of the forward pass dot and the backward pass dot formed at the portion of the print medium S located at the convex portion 422 is formed at the portion of the print medium S located at the concave portion 421. It is made close to the relative positional relationship between the forward pass dot and the return pass dot (how the dots overlap), and the occurrence of density unevenness along the uneven shape of the platen can be suppressed.

<ペアドットディザマスク>
図14は、第1実施形態(図4A)とは異なる印刷方法における往路ドットD1と復路ドットD2の配置を説明する図である。図15は、ペアドットディザマスクの作成方法を示すフローである。ここでは、図14に示すように、往路ドットD1と復路ドットD2とがX方向及びY方向に交互に並び、2回のパスで画像片が完成される印刷方法を例に挙げる。
<Paired dot dither mask>
FIG. 14 is a diagram for explaining the arrangement of forward pass dots D1 and return pass dots D2 in a printing method different from that of the first embodiment (FIG. 4A). FIG. 15 is a flowchart showing a method for creating a pair dot dither mask. Here, as shown in FIG. 14, a printing method in which the forward dot D1 and the backward dot D2 are alternately arranged in the X direction and the Y direction and an image piece is completed in two passes will be described as an example.

本実施形態のペアドットディザマスクでは、ブルーノイズディザマスクに比べて、淡い画像を印刷する範囲の階調値、例えば、256階調値(0〜255)のうちの階調値1〜127において、往路ドットと復路ドットが隣接する画素に発生する確率(ペアドット発生確率)を高くする。図14に示す印刷方法の場合、データ上の着目画素と、着目画素の周囲の8画素のうち上下左右に並ぶ4画素の何れかに、共にドットが発生すれば、往路ドットと復路ドットが隣接する画素に発生することになる。以下、着目画素の上下左右の4画素を、着目画素の隣接画素とも呼ぶ。なお、濃い画像を印刷する階調値では、ブルーノイズディザマスクを使用する場合にもペアドット発生確率が高くなるため、淡い画像を印刷する階調値においてペアドット発生確率を調整する。また、ペアドット発生確率(ドットの分散性)を調整する階調値の範囲(所定範囲の階調値)は階調値1〜127に限らない。   In the pair dot dither mask of the present embodiment, compared to the blue noise dither mask, gradation values in a range in which a light image is printed, for example, gradation values 1 to 127 of 256 gradation values (0 to 255). The probability (paired dot occurrence probability) that the forward pass dot and the return pass dot occur in adjacent pixels is increased. In the case of the printing method shown in FIG. 14, if a dot occurs in any of the target pixel on the data and the four pixels arranged vertically and horizontally among the eight pixels around the target pixel, the forward pass dot and the return pass dot are adjacent to each other. Will occur in the pixel that does. Hereinafter, the four pixels above, below, left, and right of the target pixel are also referred to as adjacent pixels of the target pixel. It should be noted that in the gradation value for printing a dark image, the pair dot occurrence probability increases even when the blue noise dither mask is used. Therefore, the pair dot occurrence probability is adjusted in the gradation value for printing a light image. In addition, the range of gradation values (the gradation value of a predetermined range) for adjusting the pair dot occurrence probability (dot dispersibility) is not limited to the gradation values 1 to 127.

そして、本実施形態のペアドットディザマスクは、各画素のドット発生確率をk(0≦k≦1)としたときに、階調値1〜127の範囲において、着目画素と着目画素の隣接画素とに共にドットが発生する確率(ペアドット発生確率)Kの目標値を0.8×k2とする。例えば、画素の示す階調値が各画素のドット発生確率kに対応し、ハーフトーン処理対象のデータの階調値が一様な値26であるとすると、各画素のドット発生確率k=26/255≒0.1となり、ペアドット発生確率K=0.8×k2≒0.008となる。このように、ペアドット発生確率Kをk2に近い値にしたのは、例えば、ブルーノイズディザマスクでドットを所定方向に極力離して形成するようにしても、所定方向におけるドットの着弾位置ずれが十分に大きくなると、所定方向に隣接する画素領域にドットが形成される確率がk2に収束するからである。これは、データ上において2つの画素が十分に離れている場合、両画素におけるドット発生の有無の相関が低下するので、両画素にドットが発生する確率は、ドットをランダムに発生させたときと同じように、単純に各画素のドット発生確率kを掛け合わせた値k2となるからである。従って、ドットの着弾位置ずれのない状態で、ペアドット発生確率Kを予めk2に近づけておけば、どのようなドットの着弾位置ずれが発生した場合にも、ペアドット発生確率Kの変化量を小さくできる。その結果、印刷媒体Sの被覆率の変化量を小さくし、画像の濃度変化量を小さくできる。なお、ペアドット発生確率K(=0.8×k2)におけるk2の係数(ここでは0.8)を調整することで、ペアドット発生確率を調整できる。但し、係数は0.6以上1.4以下であることが好ましく、1に近い値であるほど、ドットの着弾位置ずれによる印刷媒体Sの被覆率の変化量をより確実に抑制できる。 The paired dot dither mask of the present embodiment has a pixel of interest and an adjacent pixel of the pixel of interest within a range of gradation values 1 to 127 when the dot occurrence probability of each pixel is k (0 ≦ k ≦ 1). And the target value of the probability of occurrence of dots (paired dot occurrence probability) K is 0.8 × k 2 . For example, if the gradation value indicated by the pixel corresponds to the dot occurrence probability k of each pixel and the gradation value of the data to be halftone processed is a uniform value 26, the dot occurrence probability k of each pixel is k = 26. /255≈0.1, and the pair dot occurrence probability K = 0.8 × k 2 ≈0.008. Thus, the reason why the paired dot occurrence probability K is set to a value close to k 2 is that, for example, even if the dots are formed as far as possible in the predetermined direction with a blue noise dither mask, This is because the probability that a dot is formed in a pixel region adjacent in a predetermined direction converges to k 2 when the value becomes sufficiently large. This is because when the two pixels are sufficiently separated on the data, the correlation between the occurrence of dots in both pixels decreases, so the probability of dots occurring in both pixels is the same as when dots are randomly generated. Similarly, this is because the value k 2 is simply multiplied by the dot occurrence probability k of each pixel. Accordingly, if the paired dot occurrence probability K is set close to k 2 in a state where there is no deviation in the dot landing position, the amount of change in the paired dot occurrence probability K regardless of the dot landing position deviation. Can be reduced. As a result, the amount of change in the coverage of the print medium S can be reduced, and the amount of change in image density can be reduced. The pair dot occurrence probability can be adjusted by adjusting the coefficient of k 2 (here, 0.8) in the pair dot occurrence probability K (= 0.8 × k 2 ). However, the coefficient is preferably 0.6 or more and 1.4 or less, and the closer the value is to 1, the more reliably the amount of change in the coverage of the print medium S due to the landing position deviation of the dots can be more reliably suppressed.

以下、図15のフローに基づき、ペアドットディザマスクの作成方法について説明する。まず、ドット分散性が高く、且つ、作成するペアドットディザマスクと同じ大きさのブルーノイズディザマスク、例えば、X方向×Y方向の大きさが64×64である格納領域に0〜254までの閾値が格納されたブルーノイズディザマスクを用意する(S701)。   Hereinafter, a method of creating a pair dot dither mask will be described based on the flow of FIG. First, a blue noise dither mask having a high dot dispersibility and the same size as the paired dot dither mask to be created, for example, a storage area having a size of 64 × 64 in the X direction × Y direction is from 0 to 254. A blue noise dither mask storing a threshold value is prepared (S701).

次に、用意したブルーノイズディザマスク(作業中のディザマスク)について、ペアドット発生確率Kを調整する範囲の階調値(1〜127)毎に、往路ドットと復路ドットが隣接する画素に発生するペアドットの数をカウントする(S702)。具体的には、作業中のディザマスクと同じ大きさのデータ(ここでは64×64の画素群)であり、階調値が一様な値(1〜127のうちの何れか)であるデータを、作業中のディザマスクでハーフトーン処理したときのペアドット数をカウントする。このとき、ハーフトーン処理後のデータの左上から右下へと着目する画素を順次移動しながら、例えば、着目画素と着目画素のX方向右側の隣接画素とにドットが発生する箇所を右隣接ペアドット数としてカウントし、着目画素と着目画素のY方向下側の隣接画素とにドットが発生する箇所を下隣接ペアドット数としてカウントする。そうすることで、重複することなくペアドット数をカウントできる。なお、着目画素のX方向左側の隣接画素とY方向上側の隣接画素にドットが発生する箇所をカウントしてもよい。   Next, for the prepared blue noise dither mask (working dither mask), the forward pass dot and the return pass dot are generated in adjacent pixels for each gradation value (1 to 127) in the range in which the pair dot occurrence probability K is adjusted. The number of paired dots to be counted is counted (S702). Specifically, the data is the same size as the current dither mask (here, 64 × 64 pixel group), and the gradation value is a uniform value (any one of 1 to 127). The number of paired dots is counted when halftone processing is performed with a dither mask in operation. At this time, while sequentially moving the pixel of interest from the upper left to the lower right of the data after the halftone process, for example, a position where a dot occurs between the pixel of interest and an adjacent pixel on the right side in the X direction of the pixel of interest The number of dots is counted, and the location where dots occur in the target pixel and the adjacent pixel on the lower side in the Y direction of the target pixel is counted as the number of lower adjacent pair dots. By doing so, the number of paired dots can be counted without overlapping. In addition, you may count the location where a dot generate | occur | produces in the adjacent pixel of the X direction left side of an attention pixel, and the adjacent pixel of the Y direction upper side.

次に、各階調値(1〜127)における右隣接ペアドット数及び下隣接ペアドット数を、ペアドット数の目標範囲と比較する(S703)。前述のように、本実施形態のペアドットディザマスクでは、ペアドット発生確率Kの目標値を0.8×k2とする(k=各画素のドット発生確率)。そのため、64×64の画素群におけるペアドット数の目標値Hは、H=0.8×k2×64×64となり、kは階調値により変化するため、階調値(1〜127)毎の目標値Hが得られる。この階調値毎の目標値Hに幅(例えば±20%)をもたせたものを、各階調値におけるペアドット数の目標範囲とする。 Next, the number of right adjacent pair dots and the number of lower adjacent pair dots in each gradation value (1 to 127) are compared with the target range of the number of pair dots (S703). As described above, in the pair dot dither mask of this embodiment, the target value of the pair dot occurrence probability K is set to 0.8 × k 2 (k = dot generation probability of each pixel). Therefore, the target value H of the number of paired dots in the 64 × 64 pixel group is H = 0.8 × k 2 × 64 × 64, and k varies depending on the gradation value, and therefore the gradation value (1 to 127). A target value H for each is obtained. The target value H for each gradation value having a width (for example, ± 20%) is set as the target range for the number of paired dots in each gradation value.

比較の結果、各階調値における右隣接ペアドット数と下隣接ペアドット数の少なくとも一方が、ペアドット数の目標範囲内に入っていれば(S703→Yes)、作業中のディザマスクがペアドットディザマスクとして完成したとして処理を終了する。一方、各階調値における右隣接ペアドット数と下隣接ペアドット数が、共に、各階調値のペアドット数の目標範囲に入っていない場合(S703→No)、作業中のディザマスクの中の適当な数の閾値(例えば2つの閾値)をランダムに入れ替え、各階調値(1〜127)における右隣接ペアドット数と下隣接ペアドット数とをカウントし直す(S704)。なお、右隣接ペアドット数と下隣接ペアドット数とを合計した数が目標範囲内に入っているか否かを判断するようにしてもよいし、右隣接ペアドット数と下隣接ペアドット数の一方しか目標範囲内に入っていない場合にも閾値を入れ替えるステップ(S704)に進むようにしてもよい。また、階調値1〜127の範囲でペアドット発生確率Kを調整しているので、入れ替える閾値の少なくとも一つは上記階調値の範囲内の閾値にするとよい。また、入れ替えを行った閾値に対応する階調値の範囲内でしかペアドット数は変化しないので、例えば、閾値pとq(p<q)を入れ替えた場合、階調値p〜qのペアドット数をカウントし直せばよい。   As a result of the comparison, if at least one of the number of right adjacent pair dots and the number of lower adjacent pair dots within each gradation value is within the target range of the number of pair dots (S703 → Yes), the dither mask being worked on is a pair dot The process ends when it is completed as a dither mask. On the other hand, if the number of right adjacent pair dots and the number of lower adjacent pair dots in each gradation value are not within the target range of the number of pair dots in each gradation value (S703 → No), An appropriate number of threshold values (for example, two threshold values) are randomly replaced, and the number of right adjacent pair dots and the number of lower adjacent pair dots in each gradation value (1 to 127) are counted again (S704). It may be determined whether the total number of the right adjacent pair dot number and the lower adjacent pair dot number is within the target range, or the right adjacent pair dot number and the lower adjacent pair dot number Even when only one is within the target range, the process may proceed to the step of replacing the threshold (S704). Further, since the pair dot occurrence probability K is adjusted in the range of gradation values 1 to 127, at least one of the threshold values to be replaced is preferably a threshold value within the range of gradation values. Further, since the number of paired dots changes only within the range of the gradation value corresponding to the replaced threshold value, for example, when the threshold value p and q (p <q) are replaced, a pair of gradation values p to q Re-count the number of dots.

閾値を入れ替えた後は、ペアドット特性が改善されたか否かを判断する(S705)。ペアドット特性が改善されたか否かは、例えば、以下の(A)〜(C)のように判断できる。
(A)再カウントした右隣接ペアドット数及び下隣接ペアドット数が共にk2に近付いていれば、改善したと判断する。
(B)再カウントした右隣接ペアドット数及び下隣接ペアドット数の一方がk2に近付き、他方が変化していなければ、改善したと判断する。
(C)再カウントした階調値の範囲(p〜q)の一部で改善、一部で悪化している場合は、各階調値(p〜q)において生じるペアドット数と目標値Hとの差の総和が小さくなっていれば、改善したと判断する。
上記判断を行って、ペアドット特性が改善していない場合には(S705→No)、閾値を入れ替えるステップS704に戻る。
After changing the threshold value, it is determined whether or not the paired dot characteristics are improved (S705). Whether or not the paired dot characteristics are improved can be determined, for example, as in the following (A) to (C).
(A) If the number of right adjacent pair dots and the number of lower adjacent pair dots that have been recounted are both close to k 2 , it is determined that the number has been improved.
(B) If one of the re-counted number of right adjacent pair dots and the number of lower adjacent pair dots approaches k 2 and the other has not changed, it is determined that the number has improved.
(C) When the re-counted gradation value range (p to q) is improved or partially deteriorated, the number of pair dots generated at each gradation value (p to q) and the target value H If the sum of the differences is small, it is judged that the improvement has been made.
If the above determination is made and the paired dot characteristics have not improved (S705 → No), the process returns to step S704 where the threshold is changed.

一方、ペアドット特性が改善した場合(S705→Yes)、次に、粒状性特性は問題ないか否かを判断する(S706)。これは、当初用意したブルーノイズディザマスクでは粒状性が高いが、閾値を入れ替えることにより作業中のディザマスクの粒状性が低下するからである。具体的には、人間の視覚特性から見て許容できる範囲である粒状性指数の目標範囲を設け、作業中のディザマスクの粒状性指数が目標範囲に入っている場合や、閾値を入れ替える前に比べて粒状性指数が改善している場合に、粒状性特性は問題ないと判断するようにするとよい。   On the other hand, if the pair dot characteristics are improved (S705 → Yes), it is next determined whether there is no problem with the graininess characteristics (S706). This is because the initially prepared blue noise dither mask has high graininess, but the graininess of the dither mask being worked on is lowered by changing the threshold value. Specifically, a granularity index target range that is acceptable from the viewpoint of human visual characteristics is set, and when the granularity index of the dither mask being worked on is within the target range or before changing the threshold When the graininess index is improved, it is better to judge that the graininess characteristic is not a problem.

なお、粒状性指数は階調値毎に定まる値なので、各階調値の粒状性指数と目標範囲とを比較するとよい。また、粒状性指数は、公知の技術であるため(例えば、特開2007−15359号公報)、詳しい説明は省略するが、画像をフーリエ変換してパワースペクトルFSを求め、得られたパワースペクトルFSを、人間が有する視覚の空間周波数に対する感度特性VTF(Visual Transfer Function)に相当する重みを付けて、各空間周波数で積分して求められる指標であり、値が小さいほどドットが視認され難く、優れていると言える。感度特性VTFを得る代表的な実験式を式(1)に示す。変数Lは観察距離を表し、変数uは空間周波数を表している。粒状性指数は、VTFに基づき式(2)によって算出できる。係数τは、得られた値を人間の感覚と合わせるための係数である。
VTF(u)=5.05exp(-0.138πLu / 180){1-exp(-0.1πLu / 180)} …式(1)
粒状性指数=τ∫FS(u)・VTF(u)du …式(2)
Since the granularity index is a value determined for each gradation value, it is preferable to compare the granularity index of each gradation value with the target range. Further, since the granularity index is a known technique (for example, Japanese Patent Application Laid-Open No. 2007-15359), detailed description is omitted, but the power spectrum FS obtained by Fourier transforming the image to obtain the power spectrum FS is obtained. Is an index obtained by integrating each spatial frequency with a weight corresponding to the sensitivity characteristic VTF (Visual Transfer Function) with respect to the visual spatial frequency possessed by humans. It can be said that. A typical empirical formula for obtaining the sensitivity characteristic VTF is shown in Formula (1). The variable L represents the observation distance, and the variable u represents the spatial frequency. The graininess index can be calculated by equation (2) based on VTF. The coefficient τ is a coefficient for matching the obtained value with human senses.
VTF (u) = 5.05exp (-0.138πLu / 180) {1-exp (-0.1πLu / 180)}… Formula (1)
Granularity index = τ∫FS (u) · VTF (u) du (2)

そして、粒状性特性に問題があれば(S706→No)、閾値を入れ替えるステップS704に戻る。一方、ペアドット特性が改善され且つ粒状性特性も問題がなければ(S706→Yes)、ステップS703に戻る。そして、右隣接ペアドット数と下隣接ペアドット数の少なくとも一方がペアドット数の目標範囲内に入っていれば(S703→Yes)、作業中のディザマスクがペアドットディザマスクとして完成したとする。   If there is a problem with the graininess characteristic (S706 → No), the process returns to step S704 where the threshold is changed. On the other hand, if the pair dot characteristics are improved and there is no problem with the graininess characteristics (S706 → Yes), the process returns to step S703. If at least one of the number of right adjacent pair dots and the number of lower adjacent pair dots falls within the target range of the number of pair dots (S703 → Yes), the working dither mask is completed as a pair dot dither mask. .

なお、ペアドットディザマスクの作成方法は、上記方法に限らず、例えば、グリーンノイズディザマスクからペアドットディザマスクを作成してもよい。また、一からペアドットディザマスクを作成してもよい。その場合、閾値を小さい側又は大きい側から順に配置する。その際に、既に配置されている閾値に対して、対象の閾値の配置位置を変更しながら、ペアドット数や粒状性指数などの評価値を算出し、評価値が最適となる位置に対象の閾値を配置するとよい。また、上記のペアドットディザマスクでは、往路ドットと復路ドットが隣接する画素に発生する確率を調整しているが、これに限らず、往路ドットと復路ドットを区別せずに単にドットが隣接する画素に発生する確率を調整してもよい。また、上記実施形態では、着目画素に隣接する画素にドットが発生する確率を調整しているが、これに限らず、着目画素に隣接する画素に加え、隣接画素よりも外側に位置する画素(着目画素の近傍画素)にドットが発生する確率を調整するようにしてもよい。   The method for creating a pair dot dither mask is not limited to the above method, and for example, a pair dot dither mask may be created from a green noise dither mask. Alternatively, a pair dot dither mask may be created from scratch. In this case, the threshold values are arranged in order from the smallest side or the larger side. At that time, while changing the placement position of the target threshold relative to the already placed threshold, calculate the evaluation values such as the number of paired dots and the graininess index, and place the target at the position where the evaluation value is optimal. A threshold value may be arranged. In the above-mentioned pair dot dither mask, the probability that the forward pass dot and the return pass dot occur in adjacent pixels is adjusted. However, the present invention is not limited to this, and the dots are simply adjacent without distinguishing the forward pass dot and the return pass dot. You may adjust the probability which generate | occur | produces in a pixel. In the above embodiment, the probability that a dot is generated in a pixel adjacent to the pixel of interest is adjusted. However, the present invention is not limited to this, and in addition to the pixel adjacent to the pixel of interest, a pixel ( You may make it adjust the probability that a dot will generate | occur | produce in the vicinity pixel of a focused pixel.

===変形例===
上記実施形態では、プラテン42の凹凸形状が原因で往復のドット着弾位置ずれが生じ易い領域と生じ難い領域とが発生し、プラテン42の凹凸形状に応じて通常マスクと往復ずらしマスクを切り替えてハーフトーン処理を行っているが、これに限らない。例えば、キャリッジ31がX方向に移動する際にがたつくことや、X方向に間隔を空けて並ぶ一対の給紙ローラー21(図2B)による印刷媒体Sの搬送量に差が生じること等が原因で、往復のドット着弾位置ずれが生じ易い領域(第1領域)と生じ難い領域(第2領域)とが発生する場合がある。その場合も、往復のドット着弾位置ずれが生じ易い領域に対応するデータに対しては通常マスクを使用し、往復のドット着弾位置ずれが生じ難い領域に対応するデータに対しては往復ずらしマスクを使用することで、濃度むらの発生を抑制できる。
=== Modification ===
In the above-described embodiment, the region where the reciprocating dot landing position is likely to occur and the region where it is difficult to occur due to the uneven shape of the platen 42 are generated. Although tone processing is performed, the present invention is not limited to this. For example, when the carriage 31 moves in the X direction, the transport amount of the printing medium S by the pair of paper feed rollers 21 (FIG. 2B) arranged at intervals in the X direction is different. In some cases, a region (first region) where reciprocal dot landing position deviation is likely to occur and a region (second region) where it is difficult to occur may occur. Even in this case, a normal mask is used for data corresponding to an area where reciprocal dot landing position deviation is likely to occur, and a reciprocal displacement mask is used for data corresponding to an area where reciprocal dot landing position deviation is unlikely to occur. By using it, the occurrence of uneven density can be suppressed.

上記実施形態では、プリンター1に接続されたコンピューター2(印刷制御装置)がハーフトーン処理を行い、印刷データを作成しているが、これに限らない。プリンター1内のコントローラー10がハーフトーン処理を行い、印刷データを作成するようにしてもよい。この場合、プリンター1のうち、コントローラー10が印刷制御装置に相当し、印刷を行う部位(ヘッドユニット40や搬送ユニット20等)が印刷装置に相当する。   In the above embodiment, the computer 2 (printing control apparatus) connected to the printer 1 performs halftone processing and creates print data, but the present invention is not limited to this. The controller 10 in the printer 1 may perform halftone processing and create print data. In this case, in the printer 1, the controller 10 corresponds to the print control device, and the part (head unit 40, transport unit 20, etc.) that performs printing corresponds to the printing device.

以上、上記実施形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。本発明は、その趣旨を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれることは言うまでもない。   As mentioned above, the said embodiment is for making an understanding of this invention easy, and is not for limiting and interpreting this invention. The present invention can be changed and improved without departing from the gist thereof, and it is needless to say that the present invention includes equivalents thereof.

1 プリンター、2 コンピューター、S 印刷媒体、10 コントローラー、
11 インターフェース部、12 CPU、13 メモリー、14 ユニット制御回路、20 搬送ユニット、21 給紙ローラー、22 排紙ローラー、
30 キャリッジユニット、31 キャリッジ、32 ガイドレール、
40 ヘッドユニット、41 ヘッド、42 プラテン、421 凹部、422 凸部、
50 検出器群、51 光学センサー、60 アプリケーションプログラム、
70 プリンタードライバー、71 解像度変換処理部、72 色変換処理部、
73 ハーフトーン処理部、74 ラスタライズ処理部、75 色変換テーブル、
76 ブルーノイズディザマスク、77 ペアドットディザマスク
1 printer, 2 computers, S print media, 10 controllers,
11 Interface section, 12 CPU, 13 Memory, 14 Unit control circuit, 20 Transport unit, 21 Paper feed roller, 22 Paper discharge roller,
30 Carriage unit, 31 Carriage, 32 Guide rail,
40 head units, 41 heads, 42 platens, 421 concave portions, 422 convex portions,
50 detector groups, 51 optical sensors, 60 application programs,
70 printer driver, 71 resolution conversion processing unit, 72 color conversion processing unit,
73 halftone processing unit, 74 rasterization processing unit, 75 color conversion table,
76 Blue Noise Dither Mask, 77 Pair Dither Mask

Claims (8)

ヘッドが印刷媒体に対して所定方向の一方側に移動する往路時にも他方側に移動する復路時にも前記印刷媒体に向けてインクを吐出する印刷装置を制御する印刷制御装置であって、
前記印刷媒体に印刷する画像の濃淡を示す階調値を有する入力画像データを、前記画像を構成するドットのパターンを示すデータに変換するハーフトーン処理を行う際に、
前記印刷媒体上の第1領域に対応する前記入力画像データに対して、第1ディザマスクを使用し、
前記第1領域に比べて往復のドット着弾位置ずれが小さい前記印刷媒体上の第2領域に対応する前記入力画像データに対して、前記往路時のデータに対応する往路閾値と前記復路時のデータに対応する復路閾値との相対位置を、前記第1領域にて生じるドット着弾位置ずれに応じてずらした第2ディザマスクを使用することを特徴とする印刷制御装置。
A print control device that controls a printing device that discharges ink toward the print medium both during a forward path in which the head moves to one side in a predetermined direction with respect to the print medium and during a return path in which the head moves to the other side,
When performing halftone processing for converting input image data having gradation values indicating the density of an image to be printed on the print medium into data indicating a pattern of dots constituting the image,
Using a first dither mask for the input image data corresponding to the first region on the print medium;
For the input image data corresponding to the second area on the print medium in which the reciprocal dot landing position deviation is smaller than that in the first area, the forward path threshold corresponding to the forward path data and the backward path data A printing control apparatus using a second dither mask in which a relative position with respect to a return path threshold corresponding to is shifted in accordance with a dot landing position shift generated in the first region.
請求項1に記載の印刷制御装置であって、
前記印刷媒体は、前記ヘッドとの対向面において複数の凸部が前記所定方向に間隔を空けて並ぶプラテンに支持され、
前記ハーフトーン処理を行う際に、
前記凸部の間の凹部に位置する前記印刷媒体の部位である前記第1領域に対応する前記入力画像データに対して、前記第1ディザマスクを使用し、
前記凸部に位置する前記印刷媒体の部位である前記第2領域に対応する前記入力画像データに対して、前記第2ディザマスクを使用することを特徴とする印刷制御装置。
The print control apparatus according to claim 1,
The printing medium is supported by a platen in which a plurality of convex portions are arranged at intervals in the predetermined direction on a surface facing the head,
When performing the halftone process,
Using the first dither mask for the input image data corresponding to the first region, which is a portion of the printing medium located in the concave portion between the convex portions,
The printing control apparatus according to claim 1, wherein the second dither mask is used for the input image data corresponding to the second region which is a part of the printing medium located on the convex portion.
請求項2に記載の印刷制御装置であって、
前記第2ディザマスクは、前記第1ディザマスクにおける前記往路閾値と前記復路閾値との相対位置をずらしたマスクであることを特徴とする印刷制御装置。
The print control apparatus according to claim 2,
The printing control apparatus, wherein the second dither mask is a mask in which a relative position between the forward pass threshold and the return pass threshold in the first dither mask is shifted.
請求項2に記載の印刷制御装置であって、
前記第2ディザマスクは、所定範囲の前記階調値におけるドットの分散性が前記第1ディザマスクより高くなる特性を有するディザマスクにおける前記往路閾値と前記復路閾値との相対位置をずらしたマスクであることを特徴とする印刷制御装置。
The print control apparatus according to claim 2,
The second dither mask is a mask in which relative positions of the forward pass threshold and the return pass threshold are shifted in a dither mask having a characteristic that the dispersibility of dots in the gradation value in a predetermined range is higher than that of the first dither mask. A printing control apparatus comprising:
請求項2から請求項4の何れか1項に記載の印刷制御装置であって、
前記ハーフトーン処理を行う際に、
前記凹部のうち前記所定方向における中央部の領域に位置する前記印刷媒体の部位に対応する前記入力画像データに対して、前記第1ディザマスクを使用し、
前記凹部のうち前記中央部の領域よりも前記所定方向における前記凸部側の端部領域に位置する前記印刷媒体の部位に対応する前記入力画像データに対して、前記第2ディザマスクよりも小さいずらし量で前記往路閾値と前記復路閾値との相対位置をずらした第3ディザマスクを使用することを特徴とする印刷制御装置。
The print control apparatus according to any one of claims 2 to 4,
When performing the halftone process,
Using the first dither mask for the input image data corresponding to the portion of the print medium located in the central region in the predetermined direction of the recess,
It is smaller than the second dither mask for the input image data corresponding to the portion of the print medium located in the end region on the convex side in the predetermined direction than the central region of the concave portion. A printing control apparatus using a third dither mask in which a relative position between the forward path threshold and the backward path threshold is shifted by a shift amount.
請求項1から請求項5の何れか1項に記載の印刷制御装置であって、
前記第1領域及び前記第2領域に対応する前記入力画像データに対して前記第1ディザマスクを使用して前記ハーフトーン処理を行ったデータに基づき、前記印刷装置にパターンを印刷させ、
前記第1領域に対応する前記パターンの部位の読取データと前記第2領域に対応する前記パターンの部位の読取データとに基づき、前記第2ディザマスクにおける前記往路閾値と前記復路閾値の相対ずらし量を決定することを特徴とする印刷制御装置。
A printing control apparatus according to any one of claims 1 to 5,
Based on the data obtained by performing the halftone process using the first dither mask on the input image data corresponding to the first area and the second area, the printing apparatus prints a pattern,
Relative shift amount of the forward threshold and the backward threshold in the second dither mask based on the read data of the part of the pattern corresponding to the first region and the read data of the part of the pattern corresponding to the second region Determining a printing control apparatus.
ヘッドが印刷媒体に対して所定方向の一方側に移動する往路時にも他方側に移動する復路時にも前記印刷媒体に向けてインクを吐出する印刷装置の制御装置に、
前記印刷媒体に印刷する画像の濃淡を示す階調値を有する入力画像データを、前記画像を構成するドットのパターンを示すデータに変換するハーフトーン処理を行う際に、
前記印刷媒体上の第1領域に対応する前記入力画像データに対して、第1ディザマスクを使用し、
前記第1領域に比べて往復のドット着弾位置ずれが小さい前記印刷媒体上の第2領域に対応する前記入力画像データに対して、前記往路時のデータに対応する往路閾値と前記復路時のデータに対応する復路閾値との相対位置を、前記第1領域にて生じるドット着弾位置ずれに応じてずらした第2ディザマスクを使用することを実行させるためのプログラム。
A control device for a printing apparatus that ejects ink toward the print medium both during the forward path when the head moves to one side in a predetermined direction with respect to the print medium and during the backward path when the head moves to the other side,
When performing halftone processing for converting input image data having gradation values indicating the density of an image to be printed on the print medium into data indicating a pattern of dots constituting the image,
Using a first dither mask for the input image data corresponding to the first region on the print medium;
For the input image data corresponding to the second area on the print medium in which the reciprocal dot landing position deviation is smaller than that in the first area, the forward path threshold corresponding to the forward path data and the backward path data A program for executing the use of the second dither mask in which the relative position with respect to the return path threshold corresponding to is shifted according to the dot landing position shift that occurs in the first region.
ヘッドが印刷媒体に対して所定方向の一方側に移動する往路時にも他方側に移動する復路時にも前記印刷媒体に向けてインクを吐出する印刷装置による印刷方法であって、
前記印刷媒体に印刷する画像の濃淡を示す階調値を有する入力画像データを、前記画像を構成するドットのパターンを示すデータに変換するハーフトーン処理を行う際に、
前記印刷媒体上の第1領域に対応する前記入力画像データに対して、第1ディザマスクが使用され、
前記第1領域に比べて往復のドット着弾位置ずれが小さい前記印刷媒体上の第2領域に対応する前記入力画像データに対して、前記往路時のデータに対応する往路閾値と前記復路時のデータに対応する復路閾値との相対位置を、前記第1領域にて生じるドット着弾位置ずれに応じてずらした第2ディザマスクが使用されたデータに基づいて、
前記印刷装置が前記印刷媒体に画像を印刷することを特徴とする印刷方法。
A printing method by a printing apparatus that ejects ink toward the print medium both in the forward path in which the head moves to one side in a predetermined direction with respect to the print medium and in the return path in which the head moves to the other side,
When performing halftone processing for converting input image data having gradation values indicating the density of an image to be printed on the print medium into data indicating a pattern of dots constituting the image,
A first dither mask is used for the input image data corresponding to the first region on the print medium;
For the input image data corresponding to the second area on the print medium in which the reciprocal dot landing position deviation is smaller than that in the first area, the forward path threshold corresponding to the forward path data and the backward path data On the basis of data using a second dither mask in which the relative position with respect to the return path threshold corresponding to is shifted according to the dot landing position shift generated in the first region,
A printing method, wherein the printing apparatus prints an image on the printing medium.
JP2014078419A 2014-04-07 2014-04-07 Print control unit, program and printing method Pending JP2015199231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014078419A JP2015199231A (en) 2014-04-07 2014-04-07 Print control unit, program and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014078419A JP2015199231A (en) 2014-04-07 2014-04-07 Print control unit, program and printing method

Publications (1)

Publication Number Publication Date
JP2015199231A true JP2015199231A (en) 2015-11-12

Family

ID=54550989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014078419A Pending JP2015199231A (en) 2014-04-07 2014-04-07 Print control unit, program and printing method

Country Status (1)

Country Link
JP (1) JP2015199231A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018079627A (en) * 2016-11-17 2018-05-24 セイコーエプソン株式会社 Image processing device, printer, and computer program
JP2018120579A (en) * 2017-01-25 2018-08-02 セイコーエプソン株式会社 Image processing method, printing method, image processing device, and printer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018079627A (en) * 2016-11-17 2018-05-24 セイコーエプソン株式会社 Image processing device, printer, and computer program
JP2018120579A (en) * 2017-01-25 2018-08-02 セイコーエプソン株式会社 Image processing method, printing method, image processing device, and printer

Similar Documents

Publication Publication Date Title
JP5760478B2 (en) Fluid ejecting apparatus and fluid ejecting method
JP5782739B2 (en) Fluid ejecting apparatus and fluid ejecting method
US9028049B2 (en) Inkjet printing apparatus and inkjet printing method
JP5741112B2 (en) Printing apparatus, printing method, print data generation program, and dither mask generation method
JP2011143712A (en) Ink-jet recording device and ink-jet recording method
JP6220029B2 (en) Inkjet printing system, undischarge correction method and program thereof
JP2016124266A (en) Printing control device and printing control method
JP2019081343A (en) Image forming device, image processing device, and image processing method
JP6062832B2 (en) Inkjet printing system, undischarge correction method and program thereof
JP6567312B2 (en) Inkjet printing device
JP2013184392A (en) Inkjet recording apparatus, image processing apparatus and method, and program
JP2015199231A (en) Print control unit, program and printing method
JP2020052828A (en) Information processor, recording system, recording method, and program
JP3541668B2 (en) Printing apparatus, printing method, and recording medium
JP6135045B2 (en) Printing apparatus, correction value acquisition method, and printing apparatus manufacturing method
JP5891772B2 (en) Printing apparatus and printed matter production method
JP2011161823A (en) Image processing method, image recording method, image processing apparatus, and image recording apparatus
JP6018994B2 (en) Inkjet printing system, undischarge correction method and program thereof
JP6039442B2 (en) RECORDING CONTROL DEVICE, RECORDING CONTROL METHOD, AND STORAGE MEDIUM
WO2019012759A1 (en) Image-processing device and method, program, and image-recording device
JP2019077142A (en) Printer, printing method and print control device
JP2015199230A (en) Print control unit, program and printing method
US8840215B2 (en) Printing device setting biased conveying distance by increasing or decreasing prescribed distance as target conveying distance
JP6131216B2 (en) Printing apparatus and printing method having a plurality of nozzle groups that eject ink of the same color
US8926040B2 (en) Printing device and printing method

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20160617

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20160628