Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7626969B2 - Image processing device and computer program - Google Patents
[go: Go Back, main page]

JP7626969B2 - Image processing device and computer program - Google Patents

Image processing device and computer program Download PDF

Info

Publication number
JP7626969B2
JP7626969B2 JP2020135534A JP2020135534A JP7626969B2 JP 7626969 B2 JP7626969 B2 JP 7626969B2 JP 2020135534 A JP2020135534 A JP 2020135534A JP 2020135534 A JP2020135534 A JP 2020135534A JP 7626969 B2 JP7626969 B2 JP 7626969B2
Authority
JP
Japan
Prior art keywords
color
image
pixels
black
print
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.)
Active
Application number
JP2020135534A
Other languages
Japanese (ja)
Other versions
JP2022032075A (en
Inventor
直行 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2020135534A priority Critical patent/JP7626969B2/en
Publication of JP2022032075A publication Critical patent/JP2022032075A/en
Application granted granted Critical
Publication of JP7626969B2 publication Critical patent/JP7626969B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

本明細書は、画像データを用いて印刷データを生成するための画像処理技術に関し、特に、印刷データを生成する際に画像データによって示される画像の画素数を調整する処理を含む画像処理技術に関する。 This specification relates to an image processing technique for generating print data using image data, and in particular to an image processing technique that includes a process for adjusting the number of pixels of an image represented by the image data when generating print data.

インクジェットプリンタ等の印刷実行部に画像を印刷させるための印刷データを生成する際には、例えば、印刷実行部による印刷の解像度に応じて画像の画素数を調整する調整処理(例えば、拡大処理や縮小処理)が実行される(例えば、特許文献1)。このような調整処理に起因して、例えば、黒の文字と白の背景との間に、黒と白との中間の色であるグレーの部分が発生して、黒と白とで構成されるエッジが不鮮明になる可能性があった。 When generating print data for printing an image on a print execution unit such as an inkjet printer, an adjustment process (e.g., enlargement or reduction process) is performed to adjust the number of pixels of the image according to the printing resolution of the print execution unit (see, for example, Patent Document 1). This adjustment process can result in, for example, a gray area, which is an intermediate color between black and white, being generated between the black text and the white background, making the edge composed of black and white unclear.

特開2011-193231号公報JP 2011-193231 A

本明細書は、印刷データを用いて印刷される画像において、黒と白などの特定色で構成されるエッジが不鮮明になることを抑制できる新たな技術を開示する。 This specification discloses a new technology that can prevent edges consisting of specific colors, such as black and white, from becoming blurred in images printed using print data.

本明細書に開示された技術は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の適用例として実現することが可能である。 The technology disclosed in this specification has been made to solve at least some of the problems described above, and can be realized as the following application examples.

[適用例1]コントローラを備える画像処理装置であって、前記コントローラは、対象画像を示す対象画像データを取得し、前記対象画像データに対して、前記対象画像の画素数を増加させる処理と前記対象画像の画素数を減少させる処理とのいずれかである画素数調整処理を実行して、調整済画像データを生成し、前記調整済画像データを用いて、印刷実行部に画像を印刷させるための印刷データを生成し、前記画素数調整処理のうち、前記対象画像内の特定色で構成される部分に対して実行される第1調整処理は、調整処理済みの画素の値として、前記対象画像の対応する1以上の画素の中から選択された1個の画素の値を採用する処理である、画像処理装置。 [Application Example 1] An image processing device including a controller, the controller acquires target image data indicating a target image, performs a pixel count adjustment process on the target image data, which is either a process for increasing the number of pixels of the target image or a process for decreasing the number of pixels of the target image, to generate adjusted image data, and generates print data for printing an image using the adjusted image data, and a first adjustment process performed on a portion of the target image that is made up of a specific color is a process of adopting the value of one pixel selected from one or more corresponding pixels of the target image as the value of a pixel that has been adjusted.

上記構成によれば、特定色で構成される部分に対して実行される第1調整処理は、調整処理済みの画素の値として、対象画像の対応する1以上の画素の中から選択された1個の画素の値を採用する処理である。この結果、特定色で構成される部分に、特定色とは異なる色の画素が生じることを抑制できる。したがって、特定色で構成されるエッジが不鮮明になることを抑制できる。
[適用例2]
適用例1に記載の画像処理装置であって、
前記特定色は、白と黒である、画像処理装置。
[適用例3]
適用例2に記載の画像処理装置であって、
前記印刷実行部は、黒の色材と、複数の有彩色の色材と、を用いて印刷を行い、
前記対象画像データと前記調整済画像データとは、第1表色系の色値で画素ごとの色を示す画像データであり、
前記コントローラは、前記調整済画像データに対して、色変換処理を含む処理を実行して、前記印刷データを生成し、
前記色変換処理は、前記調整済画像データに含まれる前記第1表色系の色値を第2表色系の色値に変換する処理であり、
前記第2表色系の色値は、前記黒の色材と前記複数の有彩色の色材とに対応する複数個の成分値を含む色値である、画像処理装置。
[適用例4]
適用例3に記載の画像処理装置であって、
前記印刷実行部は、
前記黒の色材に対応する第1ノズル列と、前記複数の有彩色の色材に対応する複数の第2ノズル列と、を備える印刷ヘッドと、
前記印刷ヘッドに対して印刷媒体を第1方向に相対的に移動させる副走査を実行する副走査部と、
前記印刷媒体に対して前記印刷ヘッドを前記第1方向と交差する第2方向に相対的に移動させる主走査を実行する主走査部と、
を備え、
前記印刷実行部は、前記印刷データを用いて、前記主走査を行いつつ前記印刷ヘッドから前記色材を吐出させる部分印刷と、前記副走査と、を、複数回に亘って実行することによって、印刷を実行し、
前記第1ノズル列における前記黒の色材を吐出するためのノズルの個数は、1つの前記第2ノズル列における前記有彩色の色材を吐出するためのノズルの個数よりも多く、
前記黒の色材のみを用いて印刷される所定幅の画像は、n回(nは1以上の整数)の前記部分印刷によって印刷され、
少なくとも1つの前記有彩色の色材を用いて印刷される前記所定幅の画像は、m回(mは、n<mを満たす整数)の前記部分印刷によって印刷される、画像処理装置。
[適用例5]
適用例1~4のいずれかに記載の画像処理装置であって、
前記画素数調整処理のうち、前記対象画像内の前記特定色とは異なる色を含む部分に対して実行される第2調整処理は、調整処理済みの画素の値として、前記対象画像の対応する2以上の画素の値を用いた補間によって得られる値を採用する処理である、画像処理装置。


According to the above configuration, the first adjustment process performed on the portion configured with the specific color is a process of adopting the value of one pixel selected from one or more corresponding pixels of the target image as the value of the pixel that has been adjusted. As a result, it is possible to prevent pixels of a color different from the specific color from appearing in the portion configured with the specific color. Therefore, it is possible to prevent the edge configured with the specific color from becoming unclear.
[Application Example 2]
The image processing device according to Application Example 1,
The specific colors are white and black.
[Application Example 3]
The image processing device according to the second aspect of the present invention,
the printing unit performs printing using a black color material and a plurality of chromatic color materials;
the target image data and the adjusted image data are image data that indicate a color for each pixel using a color value in a first color system,
The controller executes a process including a color conversion process on the adjusted image data to generate the print data;
the color conversion process is a process of converting color values in the first color system included in the adjusted image data into color values in a second color system;
An image processing apparatus, wherein the color values of the second color system are color values including a plurality of component values corresponding to the black colorant and the plurality of chromatic colorants.
[Application Example 4]
The image processing device according to Application Example 3,
The print execution unit is
a print head including a first nozzle row corresponding to the black color material and a plurality of second nozzle rows corresponding to the plurality of chromatic color materials;
a sub-scanning unit that performs a sub-scan to move a print medium relative to the print head in a first direction;
a main scanning unit that executes a main scan by moving the print head relatively to the print medium in a second direction that intersects with the first direction;
Equipped with
the print execution unit executes printing by performing partial printing, in which the color material is ejected from the print head while performing the main scan, and the sub-scan a plurality of times using the print data;
the number of nozzles in the first nozzle row for ejecting the black color material is greater than the number of nozzles in one of the second nozzle rows for ejecting the chromatic color materials,
The image having a predetermined width printed using only the black color material is printed by performing the partial printing n times (n is an integer equal to or greater than 1),
An image processing apparatus, wherein the image of the predetermined width printed using at least one of the chromatic color materials is printed by the partial printing m times (m is an integer satisfying n<m).
[Application Example 5]
The image processing device according to any one of Application Examples 1 to 4,
An image processing device, comprising: an image processing apparatus, a pixel number adjustment process, a second adjustment process performed on a portion of the target image that includes a color different from the specific color, the second adjustment process being a process of adopting a value obtained by interpolation using values of two or more corresponding pixels of the target image as the value of a pixel that has been subjected to the adjustment process.


なお、本明細書に開示される技術は、種々の形態で実現することが可能であり、例えば、印刷装置、印刷方法、画像処理方法、これら装置の機能または上記方法を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、等の形態で実現することができる。 The technology disclosed in this specification can be realized in various forms, such as a printing device, a printing method, an image processing method, a computer program for realizing the functions of these devices or the above methods, a recording medium on which the computer program is recorded, etc.

実施例の画像処理装置としてのプリンタ200の構成を示すブロック図。FIG. 2 is a block diagram showing the configuration of a printer 200 as an image processing apparatus according to the embodiment. 印刷機構100の概略構成を示す図。FIG. 2 is a diagram showing a schematic configuration of a printing mechanism 100. 印刷機構100の動作の説明図。3 is an explanatory diagram of the operation of the printing mechanism 100. 印刷処理のフローチャート。4 is a flowchart of a printing process. 縮小処理の説明図。FIG. 縮小処理のフローチャート。13 is a flowchart of a reduction process.

A.第1実施例:
A-1:プリンタ200の構成
次に、実施の形態を実施例に基づき説明する。図1は、実施例の画像処理装置としてのプリンタ200の構成を示すブロック図である。
A. First embodiment:
A-1: Configuration of Printer 200 Next, an embodiment of the present invention will be described based on an example embodiment. Fig. 1 is a block diagram showing the configuration of a printer 200 as an image processing apparatus according to the example embodiment.

プリンタ200は、例えば、印刷実行部としての印刷機構100と、印刷機構100のためのコントローラとしてのCPU210と、ハードディスクドライブなどの不揮発性記憶装置220と、ハードディスクやフラッシュメモリなどの揮発性記憶装置230と、ユーザによる操作を取得するためのボタンやタッチパネルなどの操作部260と、液晶ディスプレイなどの表示部270と、通信部280と、を備えている。プリンタ200は、通信部280を介して、外部装置、例えば、ユーザの端末装置(図示省略)と通信可能に接続される。 The printer 200 includes, for example, a print mechanism 100 as a print execution unit, a CPU 210 as a controller for the print mechanism 100, a non-volatile storage device 220 such as a hard disk drive, a volatile storage device 230 such as a hard disk or flash memory, an operation unit 260 such as a button or touch panel for acquiring operations by a user, a display unit 270 such as a liquid crystal display, and a communication unit 280. The printer 200 is connected to an external device, for example, a user's terminal device (not shown) via the communication unit 280 so as to be able to communicate with the external device.

揮発性記憶装置230は、CPU210が処理を行う際に生成される種々の中間データを一時的に格納するバッファ領域231を提供する。不揮発性記憶装置220には、コンピュータプログラムCPが格納されている。コンピュータプログラムCPは、本実施例では、プリンタ200を制御するための制御プログラムである。コンピュータプログラムCPとは、プリンタ200の出荷時に不揮発性記憶装置220に格納されて提供され得る。これに代えて、コンピュータプログラムCPは、サーバからダウンロードされる形態で提供されても良いし、DVD-ROMなどに格納される形態で提供されてもよい。CPU210は、コンピュータプログラムCPを実行することにより、例えば、印刷機構100を制御して後述する印刷処理を実行する。 The volatile storage device 230 provides a buffer area 231 for temporarily storing various intermediate data generated when the CPU 210 performs processing. The non-volatile storage device 220 stores a computer program CP. In this embodiment, the computer program CP is a control program for controlling the printer 200. The computer program CP may be provided by being stored in the non-volatile storage device 220 when the printer 200 is shipped. Alternatively, the computer program CP may be provided in a form in which it is downloaded from a server, or in a form in which it is stored on a DVD-ROM or the like. By executing the computer program CP, the CPU 210 controls, for example, the print mechanism 100 to perform the printing process described below.

印刷機構100は、シアン(C)、マゼンタ(M)、イエロ(Y)、ブラック(K)の各インク(液滴)を吐出して印刷を行う。印刷機構100は、印刷ヘッド110とヘッド駆動部120と主走査部130と搬送部140とを備えている。 The printing mechanism 100 prints by ejecting ink (droplets) of each of the following colors: cyan (C), magenta (M), yellow (Y), and black (K). The printing mechanism 100 includes a print head 110, a head drive unit 120, a main scanning unit 130, and a transport unit 140.

図2は、印刷機構100の概略構成を示す図である。図2(A)に示すように、主走査部130は、印刷ヘッド110を搭載するキャリッジ133と、キャリッジ133を主走査方向(図2のX軸方向)に沿って往復動可能に保持する摺動軸134と、を備えている。主走査部130は、図示しない主走査モータの動力を用いて、キャリッジ133を摺動軸134に沿って往復動させる。これによって、用紙Mに対して主走査方向に沿って印刷ヘッド110を往復動させる主走査が実現される。 Figure 2 is a diagram showing a schematic configuration of the printing mechanism 100. As shown in Figure 2 (A), the main scanning unit 130 includes a carriage 133 that carries the print head 110, and a sliding shaft 134 that holds the carriage 133 so that it can move back and forth along the main scanning direction (the X-axis direction in Figure 2). The main scanning unit 130 uses the power of a main scanning motor (not shown) to move the carriage 133 back and forth along the sliding shaft 134. This achieves main scanning, which moves the print head 110 back and forth along the main scanning direction relative to the paper M.

搬送部140は、用紙Mを保持しつつ、主走査方向と交差する搬送方向AR(図2の+Y方向)に用紙Mを搬送する。図2(A)に示すように、用紙台145と、上流ローラ対142と、下流ローラ対141と、を備えている。以下では、搬送方向ARの上流側(-Y側)を、単に、上流側とも呼び、搬送方向ARの下流側(+Y側)を単に下流側とも呼ぶ。 The transport unit 140 holds the paper M and transports the paper M in a transport direction AR (the +Y direction in FIG. 2) that intersects with the main scanning direction. As shown in FIG. 2A, the transport unit 140 includes a paper tray 145, an upstream roller pair 142, and a downstream roller pair 141. Hereinafter, the upstream side (-Y side) of the transport direction AR will also be referred to simply as the upstream side, and the downstream side (+Y side) of the transport direction AR will also be referred to simply as the downstream side.

上流ローラ対142は、印刷ヘッド110よりも上流側(-Y側)で用紙Mを保持し、下流ローラ対141は、印刷ヘッド110よりも下流側(+Y側)で用紙Mを保持する。用紙台145は、上流ローラ対142と、下流ローラ対141と、の間の位置であって、かつ、印刷ヘッド110のノズル形成面111と対向する位置に配置されている。図示しない搬送モータによって下流ローラ対141と上流ローラ対142とが駆動されることによって、用紙Mが搬送される。 The upstream roller pair 142 holds the paper M upstream (-Y side) of the print head 110, and the downstream roller pair 141 holds the paper M downstream (+Y side) of the print head 110. The paper platform 145 is located between the upstream roller pair 142 and the downstream roller pair 141, and is positioned opposite the nozzle formation surface 111 of the print head 110. The paper M is transported by driving the downstream roller pair 141 and the upstream roller pair 142 by a transport motor (not shown).

ヘッド駆動部120(図1)は、主走査部130が印刷ヘッド110の主走査を行っている最中に、印刷ヘッド110に駆動信号を供給して、印刷ヘッド110を駆動する。印刷ヘッド110は、駆動信号に従って、搬送部140によって搬送される用紙上にインクを吐出してドットを形成する。 The head drive unit 120 (Figure 1) supplies a drive signal to the print head 110 to drive the print head 110 while the main scanning unit 130 is performing a main scan of the print head 110. In accordance with the drive signal, the print head 110 ejects ink onto the paper being transported by the transport unit 140 to form dots.

図2(B)は、-Z側(図2における下側)から見た印刷ヘッド110の構成が図示されている。図2(B)に示すように、印刷ヘッド110のノズル形成面111には、複数のノズルからなる複数のノズル列、すなわち、上述したC、M、Y、Kの各インクを吐出するノズル列NC、NM、NY、NKが形成されている。各ノズル列は、搬送方向ARに沿って並ぶ複数個のノズルNZを含んでいる。 Figure 2 (B) shows the configuration of the print head 110 as viewed from the -Z side (the bottom side in Figure 2). As shown in Figure 2 (B), the nozzle forming surface 111 of the print head 110 has multiple nozzle rows formed thereon, each consisting of multiple nozzles; that is, the nozzle rows NC, NM, NY, and NK that eject the above-mentioned C, M, Y, and K inks. Each nozzle row includes multiple nozzles NZ aligned along the transport direction AR.

1つのノズル列の複数個のノズルNZは、搬送方向AR(+Y方向)の位置が互いに異なり、搬送方向ARに沿って所定のノズル間隔で並ぶ。ノズル間隔は、1つのノズル列の複数個のノズルNZの中で搬送方向ARに隣り合う2個のノズルNZ間の搬送方向ARの長さである。有彩色C、M、Yのノズル列NC、NM、NYのノズル間隔NTcは、例えば、100dpi相当の間隔、すなわち、(1/100)インチである。無彩色であるKのノズル列NKのノズル間隔NTkは、例えば、300dpi相当の間隔、すなわち、(1/300)インチである。したがって、第2実施例では、有彩色のノズル列NC、NM、NYのノズル間隔NTcは、Kのノズル列NKのノズル間隔NTkよりも3倍長い。また、Kのノズル列NKのノズル数は、有彩色のノズル列NC、NM、NYのノズル数よりも3倍多い。例えば、ノズル列NKでは、ノズル間隔NTkずつ搬送方向ARにずらされた3列のノズル列を含むことで、より短いノズル間隔が実現されている。これによって、例えば、Kインクのみで行われる印刷では、有彩色(CMY)のインクを用いて行われる印刷と比較して、同じ解像度の画像を高速で印刷することができる。 The nozzles NZ in one nozzle row are positioned differently in the transport direction AR (+Y direction) and are arranged at a predetermined nozzle interval along the transport direction AR. The nozzle interval is the length in the transport direction AR between two nozzles NZ adjacent to each other in the transport direction AR among the nozzles NZ in one nozzle row. The nozzle interval NTc of the nozzle rows NC, NM, and NY of the chromatic colors C, M, and Y is, for example, an interval equivalent to 100 dpi, that is, (1/100) inch. The nozzle interval NTk of the nozzle row NK of the achromatic color K is, for example, an interval equivalent to 300 dpi, that is, (1/300) inch. Therefore, in the second embodiment, the nozzle interval NTc of the nozzle rows NC, NM, and NY of the chromatic colors is three times longer than the nozzle interval NTk of the nozzle row NK of K. Additionally, the number of nozzles in the K nozzle row NK is three times greater than the number of nozzles in the chromatic nozzle rows NC, NM, and NY. For example, the nozzle row NK includes three nozzle rows that are shifted in the transport direction AR by a nozzle spacing NTk, thereby achieving a shorter nozzle spacing. This allows, for example, printing using only K ink to print images of the same resolution at higher speeds than printing using chromatic inks (CMY).

ノズル列NC、NM、NY、NKの主走査方向(図2(B)のX方向)の位置は、互いに異なり、搬送方向AR(図2(B)のY方向)の位置は、互いに重複している。例えば、図2(B)の例では、Yインクを吐出するノズル列NYの+X方向に、ノズル列NMが配置されている。 The positions of the nozzle rows NC, NM, NY, and NK in the main scanning direction (X direction in FIG. 2B) are different from each other, and their positions in the transport direction AR (Y direction in FIG. 2B) overlap with each other. For example, in the example of FIG. 2B, the nozzle row NM is arranged in the +X direction of the nozzle row NY that ejects Y ink.

A-2.印刷の概要
印刷機構100は、主走査部130による主走査を行いつつ印刷ヘッド110からインクを吐出させて用紙Mにドットを形成する部分印刷と、搬送部140による副走査(用紙Mの搬送)と、を交互に複数回に亘って実行することで、用紙Mに印刷画像OIを印刷する。
A-2. Printing Overview The printing mechanism 100 alternately performs partial printing, in which ink is ejected from the print head 110 to form dots on the paper M while main scanning is performed by the main scanning unit 130, and sub-scanning (transporting the paper M) by the transport unit 140 multiple times to print a print image OI on the paper M.

図3は、印刷機構100の動作の説明図である。図3には、用紙Mに印刷される印刷画像OIが図示されている。印刷画像OIは、本実施例の印刷では、主走査方向(図3のX方向)の解像度が600dpiであり、搬送方向AR(図3のY方向)の解像度が300dpiである。印刷画像OIは、主走査方向に延び、搬送方向ARの位置が互い異なる複数本のラスタラインRL(例えば、図3のRL1)を含んでいる。各ラスタラインRLは、複数個のドットが形成され得るラインである。 Figure 3 is an explanatory diagram of the operation of the printing mechanism 100. Figure 3 shows a print image OI printed on paper M. In this embodiment, the print image OI has a resolution of 600 dpi in the main scanning direction (X direction in Figure 3) and a resolution of 300 dpi in the transport direction AR (Y direction in Figure 3). The print image OI extends in the main scanning direction and includes multiple raster lines RL (for example, RL1 in Figure 3) that differ from one another in position in the transport direction AR. Each raster line RL is a line on which multiple dots can be formed.

印刷画像OIは、複数個の部分印刷画像PIを含んでいる。図3の例では、印刷画像OIは、部分印刷画像PI1~PI5を含んでいる。1個の部分印刷画像PIの搬送方向の長さは、ノズル列NC、NM、NY、NKの搬送方向ARの長さ(ノズル長)とほぼ等しい。 The print image OI includes multiple partial print images PI. In the example of FIG. 3, the print image OI includes partial print images PI1 to PI5. The length of one partial print image PI in the transport direction is approximately equal to the length of the nozzle rows NC, NM, NY, and NK in the transport direction AR (nozzle length).

各部分印刷画像PIは、1回の部分印刷、または、3回の部分印刷によって印刷される。部分印刷の印刷方向は、往路方向と復路方向とのいずれかである。すなわち、部分印刷は、往路方向(図3の-X方向)の主走査を行いつつドットを形成する往路印刷と、復路方向(図3の+X方向)の主走査を行いつつドットを形成する復路印刷と、のいずれかである。図3にて部分画像内には、+X方向または-X方向の実線の矢印が付されている。1本の矢印が付された部分画像(例えば、図3のPI1、PI2)は、1回の部分印刷によって印刷される。3本の矢印が付された部分画像(例えば、図3のPI3~PI5)は、3回の部分印刷によって印刷される。 Each partial print image PI is printed by one partial print or three partial prints. The printing direction of the partial print is either the forward pass direction or the return pass direction. That is, partial printing is either forward pass printing, in which dots are formed while performing a main scan in the forward pass direction (-X direction in FIG. 3), or return pass printing, in which dots are formed while performing a main scan in the return pass direction (+X direction in FIG. 3). In FIG. 3, solid arrows pointing in the +X or -X direction are indicated within the partial images. Partial images with one arrow (for example, PI1 and PI2 in FIG. 3) are printed by one partial print. Partial images with three arrows (for example, PI3 to PI5 in FIG. 3) are printed by three partial prints.

本実施例の印刷では、上述のように、搬送方向ARの解像度が300dpiである。すなわち、部分印刷画像PIに含まれる複数本のラスタラインRLは、300dpi相当の間隔である(1/300)インチの間隔で搬送方向ARに並んでいる。上述のように、本実施例では、Kのノズル列NKのノズル間隔NTkは、300dpi相当の間隔であるので、1つの部分印刷画像PIのKのドットは、1回の部分印刷で形成される。有彩色(CMY)のノズル列NKのノズル間隔NTcは、100dpi相当の間隔であるので、1つの部分印刷画像PIの有彩色のドットは、3回の部分印刷に分けて形成される。この3回の部分印刷が、例えば、少量(例えば、300dpi相当のノズル間隔NTk)の用紙Mの搬送を挟んで行われる。これによって、1つの部分印刷画像PIに含まれる3n行目(nは0以上の整数)のラスタラインRLの有彩色のドットと、(3n+1)行目のラスタラインRLの有彩色のドットと、(3n+2)行目のラスタラインRLの有彩色のドットが、それぞれ、異なる部分印刷で形成される。この結果、有彩色のドットが300dpi相当の間隔で形成される。 In the printing of this embodiment, as described above, the resolution in the transport direction AR is 300 dpi. That is, the multiple raster lines RL included in the partial print image PI are arranged in the transport direction AR at intervals of (1/300) inches, which is an interval equivalent to 300 dpi. As described above, in this embodiment, the nozzle spacing NTk of the K nozzle row NK is an interval equivalent to 300 dpi, so the K dots of one partial print image PI are formed in one partial print. The nozzle spacing NTc of the chromatic color (CMY) nozzle row NK is an interval equivalent to 100 dpi, so the chromatic color dots of one partial print image PI are formed in three partial prints. These three partial prints are performed, for example, with a small amount of paper M (for example, nozzle spacing NTk equivalent to 300 dpi) transported in between. As a result, the chromatic dots of the 3nth (n is an integer equal to or greater than 0) raster line RL, the chromatic dots of the (3n+1)th raster line RL, and the chromatic dots of the (3n+2)th raster line RL included in one partial print image PI are each formed by different partial printing. As a result, the chromatic dots are formed at intervals equivalent to 300 dpi.

このために、Kのドットのみを含む部分印刷画像PI1、PI2は、1回の部分印刷で印刷され、CMYのドットを含む部分印刷画像PI3~PI5は、3回の部分印刷で印刷される。なお、CMYのドットを含む部分印刷画像PI3~PI5に含まれるKのドットは、例えば、3回の部分印刷のいずれか1回で印刷される。したがって、Kのドットのみを含む部分印刷画像PI1、PI2の印刷に要する時間は、CMYのドットを含む部分印刷画像PI3~PI5の印刷に要する時間よりも短くなる。 For this reason, the partial print images PI1 and PI2 containing only K dots are printed in one partial print, and the partial print images PI3 to PI5 containing CMY dots are printed in three partial prints. Note that the K dots contained in the partial print images PI3 to PI5 containing CMY dots are printed, for example, in one of the three partial prints. Therefore, the time required to print the partial print images PI1 and PI2 containing only K dots is shorter than the time required to print the partial print images PI3 to PI5 containing CMY dots.

A-3.印刷処理
図3を参照して説明した印刷を実行するための印刷処理について説明する。プリンタ200のCPU210(図1)は、ユーザからの印刷指示に基づいて、印刷処理を実行する。印刷指示には、印刷すべき画像を示す画像データの指定が含まれる。図4は、印刷処理のフローチャートである。図3のS110では、CPU210は、印刷指示によって指定される画像データを不揮発性記憶装置220から取得する。取得される画像データは、例えば、RGB画像データである。RGB画像データは、RGB値を画素ごとに含むビットマップデータである。RGB値は、例えば、赤(R)と緑(G)と青(B)との3個の成分値を含むRGB表色系の色値である。なお、画像データが、RGB画像データとは異なる形式のデータ(例えば、ページ記述言語で記述された画像データ)である場合には、本ステップにてラスタライズ処理が実行されて、RGB画像データに変換される。
A-3. Printing process The printing process for executing the printing described with reference to FIG. 3 will be described. The CPU 210 (FIG. 1) of the printer 200 executes the printing process based on a printing instruction from the user. The printing instruction includes the designation of image data showing the image to be printed. FIG. 4 is a flowchart of the printing process. In S110 of FIG. 3, the CPU 210 acquires the image data designated by the printing instruction from the non-volatile storage device 220. The acquired image data is, for example, RGB image data. The RGB image data is bitmap data including RGB values for each pixel. The RGB value is, for example, a color value of the RGB color system including three component values of red (R), green (G), and blue (B). Note that, if the image data is data in a format different from RGB image data (for example, image data described in a page description language), a rasterization process is executed in this step and converted into RGB image data.

取得されるRGB画像データによって示されるRGB画像RIは、図3の印刷画像OIと対応している。このために、図3は、RGB画像RIを示す図とも言うことができる。RGB画像RIは、上述した複数個の部分印刷画像PI(ドットで形成される画像)に対応する複数個の部分画像PRIを含んでいる。図3の例では、RGB画像RIは、5個の部分印刷画像PI1~PI5に対応する5個の部分画像PRI1~PRI5を含んでいる。 The RGB image RI shown by the acquired RGB image data corresponds to the print image OI in FIG. 3. For this reason, FIG. 3 can also be said to be a diagram showing the RGB image RI. The RGB image RI includes a plurality of partial images PRI corresponding to the plurality of partial print images PI (images formed with dots) described above. In the example of FIG. 3, the RGB image RI includes five partial images PRI1 to PRI5 corresponding to the five partial print images PI1 to PI5.

S120では、CPU210は、RGB画像RIの複数個の部分画像PRIの中から1個の注目部分画像を選択する。図3の例では、5個の部分画像PRI1~PRI5が、搬送方向ARの下流側(図3の上側)から順次に注目部分画像として、選択される。以下では、注目部分画像を示すRGB画像データを、注目部分画像データとも呼ぶ。また、RGB画像RIにおいて、印刷画像OIの搬送方向ARに対応する方向を、RGB画像RIにおける搬送方向ARと呼び、印刷画像OIの主走査方向に対応する方向を、RGB画像RIにおける主走査方向と呼ぶ。 In S120, the CPU 210 selects one target partial image from among the multiple partial images PRI of the RGB image RI. In the example of FIG. 3, five partial images PRI1 to PRI5 are selected as target partial images in sequence from the downstream side of the transport direction AR (the upper side of FIG. 3). Hereinafter, the RGB image data showing the target partial image is also referred to as target partial image data. Furthermore, in the RGB image RI, the direction corresponding to the transport direction AR of the print image OI is referred to as the transport direction AR in the RGB image RI, and the direction corresponding to the main scanning direction of the print image OI is referred to as the main scanning direction in the RGB image RI.

S130では、CPU210は、注目部分画像データに対して、縮小処理を実行する。本明細書では、主走査方向の画素数と搬送方向の画素数との少なくとも一方を減少させる処理を縮小処理と呼ぶ。主走査方向の画素数と搬送方向の画素数との少なくとも一方を増加させる処理を拡大処理と呼ぶ。本実施例では、上述したように、搬送方向AR(副走査方向)の印刷の解像度(300dpi)は、主走査方向の印刷の解像度(600dpi)の半分である。このために、本実施例のS130では、主走査方向の画素数を変更せず、搬送方向ARの画素数を半分にする縮小処理が実行される。このように印刷の解像度に応じた縮小処理を実行することによって、RGB画像RIを適切に表現する印刷画像OIを印刷することができる。縮小処理の詳細については、後述する。 In S130, the CPU 210 performs a reduction process on the target portion image data. In this specification, a process of reducing at least one of the number of pixels in the main scanning direction and the number of pixels in the transport direction is called a reduction process. A process of increasing at least one of the number of pixels in the main scanning direction and the number of pixels in the transport direction is called an enlargement process. In this embodiment, as described above, the print resolution (300 dpi) in the transport direction AR (sub-scanning direction) is half the print resolution (600 dpi) in the main scanning direction. For this reason, in S130 of this embodiment, a reduction process is performed to halve the number of pixels in the transport direction AR without changing the number of pixels in the main scanning direction. By performing a reduction process according to the print resolution in this way, it is possible to print a print image OI that appropriately expresses the RGB image RI. Details of the reduction process will be described later.

S140では、CPU210は、縮小処理によって縮小済みの注目部分画像データに対して、色変換処理を実行する。色変換処理は、注目部分画像を構成する複数個の画素のRGB値をCMYK値に変換する処理である。CMYK値は、印刷に用いられるインクに対応する成分値(本実施例では、C、M、Y、Kの成分値)を含むCMYK表色系の色値である。色変換処理は、例えば、RGB値とCMYK値との対応関係を規定するルックアップテーブルを参照して実行される。 In S140, the CPU 210 executes a color conversion process on the image data of the portion of interest that has been reduced by the reduction process. The color conversion process is a process for converting the RGB values of multiple pixels that make up the image of the portion of interest into CMYK values. The CMYK values are color values in the CMYK color system that include component values (in this embodiment, the component values of C, M, Y, and K) that correspond to the inks used in printing. The color conversion process is executed, for example, by referring to a lookup table that specifies the correspondence between RGB values and CMYK values.

なお、本実施例の色変換処理では、基準以上の濃度の無彩色(例えば、黒および濃いグレー)を示すRGB値は、Kの成分値のみが0より大きく、CMYの成分値が0であるCMYK値に変換される。例えば、黒を示すRGB値(R、G、B)=(0、0、0)は、CMYK値(C、M、Y、K)=(0、0、0、255)に変換される。これに対して、白を除く基準未満の濃度の無彩色(例えば、薄いグレーや中間濃度のグレー)を示すRGB値は、0より大きなCMYの成分値を含むCMYK値に変換される。例えば、中間濃度のグレーを示すRGB値(R、G、B)=(127、127、127)は、CMYK値(C、M、Y、K)=(127、128、130、5)に変換される。換言すれば、本実施例では、基準以上の濃度の無彩色がKのドットのみを用いて印刷されるように色変換処理が実行され、基準未満の濃度の無彩色がCMYのドットも用いて印刷されるように色変換処理が実行される。仮に基準未満の濃度の無彩色を黒のドットのみで表現すると、印刷画像において黒の部分のざらつきが目立ち、画質が低下しやすいためである。 In the color conversion process of this embodiment, RGB values that indicate achromatic colors with a density equal to or greater than the standard (e.g., black and dark gray) are converted to CMYK values in which only the K component value is greater than 0 and the CMY component values are 0. For example, an RGB value (R, G, B) = (0, 0, 0) indicating black is converted to a CMYK value (C, M, Y, K) = (0, 0, 0, 255). In contrast, RGB values that indicate achromatic colors with a density less than the standard except for white (e.g., light gray and medium gray) are converted to CMYK values that include CMY component values greater than 0. For example, an RGB value (R, G, B) = (127, 127, 127) indicating medium gray is converted to a CMYK value (C, M, Y, K) = (127, 128, 130, 5). In other words, in this embodiment, the color conversion process is performed so that achromatic colors with a density equal to or greater than the reference value are printed using only K dots, and achromatic colors with a density less than the reference value are printed using CMY dots as well. If achromatic colors with a density less than the reference value were represented using only black dots, the roughness of the black parts of the printed image would be noticeable, and image quality would be easily degraded.

S150では、色変換処理済みの注目部分画像データ(CMYK画像データ)に対して、ハーフトーン処理を実行する。これによって、注目部分画像に対応する部分印刷画像PIを示すドットデータが生成される。ドットデータは、CMYKのそれぞれの色成分について、ドット形成状態を画素ごとに表すデータである。ドットデータの各画素の成分値は、本実施例では、「ドット無し」と「ドット有り」の2階調である。これに代えて、ドットデータの各画素の成分値は、「ドット無し」「小」「中」「大」の4階調のドットの形成状態を示しても良い。ハーフトーン処理は、ディザ法や誤差拡散法などの公知の手法を用いて実行される。 In S150, halftone processing is performed on the color-converted image data of the portion of interest (CMYK image data). This generates dot data that indicates the partial print image PI that corresponds to the image of the portion of interest. The dot data is data that indicates the dot formation state for each pixel for each color component of CMYK. In this embodiment, the component values of each pixel of the dot data are two levels, "no dot" and "dot present". Alternatively, the component values of each pixel of the dot data may indicate the dot formation state in four levels, "no dot", "small", "medium", and "large". The halftone processing is performed using known techniques such as dithering and error diffusion.

S160では、CPU210は、S150にて生成されたドットデータに基づいて、注目部分画像に対応する部分印刷画像PIがKインクのみを用いて印刷されるか否かを判断する。具体的には、S150にて生成されたドットデータの全ての画素のCMYの成分値が「ドット無し」を示す値であり、Kの成分値のみが「ドット有り」を示す値を含む場合には、注目部分画像に対応する部分印刷画像PIはKインクのみを用いて印刷されると判断される。ドットデータの少なくとも一部の画素のCMYの成分値が「ドット有り」を示す値である場合には、注目部分画像に対応する部分印刷画像PIは有彩色のインクを用いて印刷されると判断される。 In S160, the CPU 210 determines whether the partial print image PI corresponding to the target partial image will be printed using only K ink, based on the dot data generated in S150. Specifically, if the CMY component values of all pixels in the dot data generated in S150 are values indicating "no dots" and only the K component value contains a value indicating "dots present", it is determined that the partial print image PI corresponding to the target partial image will be printed using only K ink. If the CMY component values of at least some pixels in the dot data are values indicating "dots present", it is determined that the partial print image PI corresponding to the target partial image will be printed using chromatic ink.

注目部分画像に対応する部分印刷画像PIがKインクのみを用いて印刷される場合には(S160:YES)、S170にて、CPU210は、印刷機構100を制御して、該部分印刷画像PIを1回の部分印刷で印刷させる。例えば、CPU210は、S150にて生成されたドットデータに、1回の部分印刷の後に行うべき用紙Mの搬送の搬送量などを示す制御データを付加して、印刷機構100に出力する。印刷機構100は、ドットデータに基づいて1回の部分印刷を実行して、部分印刷画像PIを印刷する。 If the partial print image PI corresponding to the target partial image is printed using only K ink (S160: YES), in S170, the CPU 210 controls the printing mechanism 100 to print the partial print image PI in one partial printing. For example, the CPU 210 adds control data indicating the amount of transport of the paper M to be performed after one partial printing to the dot data generated in S150, and outputs the data to the printing mechanism 100. The printing mechanism 100 executes one partial printing based on the dot data to print the partial print image PI.

注目部分画像に対応する部分印刷画像PIが有彩色のインクを用いて印刷されると判断される場合には(S160:NO)、S180にて、CPU210は、印刷機構100を制御して、該部分印刷画像PIを3回の部分印刷で印刷させる。例えば、CPU210は、S150にて生成されたドットデータを、3回の部分印刷に対応する3つのデータに分けて、それぞれに、部分印刷の後に行うべき用紙Mの搬送の搬送量などを示す制御データを付加して、印刷機構100に出力する。印刷機構100は、3回の部分印刷に対応する3つのデータに基づいて3回の部分印刷を実行して、部分印刷画像PIを印刷する。 If it is determined that the partial print image PI corresponding to the target partial image is printed using chromatic ink (S160: NO), in S180, the CPU 210 controls the printing mechanism 100 to print the partial print image PI in three partial prints. For example, the CPU 210 separates the dot data generated in S150 into three data corresponding to the three partial prints, adds control data to each of the data indicating the transport amount of the paper M to be transported after the partial print, and outputs the result to the printing mechanism 100. The printing mechanism 100 executes three partial prints based on the three data corresponding to the three partial prints to print the partial print image PI.

S190では、CPU210は、印刷すべき印刷画像OIの全ての部分印刷画像PIを印刷機構100に印刷させたか否かを判断する。印刷されていない部分印刷画像PIがある場合には、CPU210は、S120戻る。全ての部分印刷画像PIを印刷機構100に印刷させた場合には(S190:YES)、CPU210は、印刷処理を終了する。 In S190, the CPU 210 determines whether or not it has caused the printing mechanism 100 to print all of the partial print images PI of the print image OI to be printed. If there are partial print images PI that have not been printed, the CPU 210 returns to S120. If it has caused the printing mechanism 100 to print all of the partial print images PI (S190: YES), the CPU 210 ends the printing process.

A-4.縮小処理
図4のS130の縮小処理について説明する。図5は、縮小処理の説明図である。本実施例の縮小処理では、単純間引による縮小処理と、線形補間による縮小処理と、の2種類の縮小処理が使い分けられる。
A-4. Reduction Processing The reduction processing of S130 in Fig. 4 will be described. Fig. 5 is an explanatory diagram of the reduction processing. In the reduction processing of this embodiment, two types of reduction processing are used, namely, reduction processing by simple thinning and reduction processing by linear interpolation.

図5(A)を参照して、単純間引による縮小処理について説明する。図5(A)の左側には、縮小前の部分画像PRIの一例が示されている。縮小前の部分画像PRIは、搬送方向AR(図5のY方向)と主走査方向(図5のX方向)とに沿ってマトリクス状に並ぶ複数個の画素Piを含んでいる。 The reduction process by simple thinning will be described with reference to FIG. 5(A). An example of the partial image PRI before reduction is shown on the left side of FIG. 5(A). The partial image PRI before reduction includes a plurality of pixels Pi arranged in a matrix along the transport direction AR (Y direction in FIG. 5) and the main scanning direction (X direction in FIG. 5).

図5(A)の右側には、縮小済みの部分画像RDIaが示されている。この縮小済みの部分画像RDIaは、単純間引きによる縮小処理によって、縮小前の部分画像PRIを縮小することによって得られる画像である。縮小済みの部分画像RDIaは、搬送方向ARと主走査方向とに沿ってマトリクス状に並ぶ複数個の画素Poaを含んでいる。 The reduced partial image RDIa is shown on the right side of FIG. 5(A). This reduced partial image RDIa is an image obtained by reducing the unreduced partial image PRI through a reduction process using simple thinning. The reduced partial image RDIa includes a number of pixels Poa arranged in a matrix along the transport direction AR and the main scanning direction.

以下では、縮小前の部分画像PRIの画素Piを入力画素Piとも呼び、縮小済みの部分画像RDIaの画素Poaを出力画素Poaとも呼ぶ。上述したように、本実施例の縮小処理では、印刷の解像度に応じて部分画像PRIを縮小させるために、主走査方向の画素数を変更せず、搬送方向ARの画素数を半分にする。このために、図5(B)では、入力画素Piと出力画素Poaとの対応関係が理解しやすいように、出力画素Poaの搬送方向ARの長さを主走査方向の長さの2倍にして出力画素Poaが図示されている。例えば、縮小前の部分画像PRIの領域Aiに位置する2個の入力画素Piは、縮小済みの部分画像RDIaの領域Aoaに位置する1個の出力画素Poaと対応している。 In the following, the pixel Pi of the partial image PRI before reduction is also referred to as the input pixel Pi, and the pixel Poa of the reduced partial image RDIa is also referred to as the output pixel Poa. As described above, in the reduction process of this embodiment, in order to reduce the partial image PRI according to the print resolution, the number of pixels in the main scanning direction is not changed, and the number of pixels in the transport direction AR is halved. For this reason, in FIG. 5B, the output pixel Poa is illustrated with the length of the output pixel Poa in the transport direction AR twice the length in the main scanning direction so that the correspondence between the input pixel Pi and the output pixel Poa can be easily understood. For example, two input pixels Pi located in the area Ai of the partial image PRI before reduction correspond to one output pixel Poa located in the area Aoa of the reduced partial image RDIa.

図5(A)の縮小前の部分画像PRIは、白(例えば(R、G、B)=(255、255、255))の画素PiWと、黒(例えば、(R、G、B)=(0、0、0))の画素PiBと、のみを含んでいる。単純間引きによる縮小処理では、出力画素Poaの値は、対応する2個の入力画素Piの中から選択された1個の画素の値とされる。一般的には、対応する1個以上の入力画素Piのうち、当該出力画素Poaに最も近い画素が選択される(いわゆるニアレストネイバー法)。本実施例では、出力画素Poaと、対応する2個の入力画素Piのそれぞれとの距離は、等しい。このために、対応する2個の入力画素Piのうち、予め定められた位置にある画素(例えば、上側(+Y側)にある画素)が選択される。 The partial image PRI before reduction in FIG. 5(A) contains only white (e.g., (R, G, B) = (255, 255, 255)) pixels PiW and black (e.g., (R, G, B) = (0, 0, 0)) pixels PiB. In reduction processing by simple thinning, the value of the output pixel Poa is set to the value of one pixel selected from the two corresponding input pixels Pi. Generally, of the one or more corresponding input pixels Pi, the pixel closest to the output pixel Poa is selected (the so-called nearest neighbor method). In this embodiment, the distance between the output pixel Poa and each of the two corresponding input pixels Pi is equal. For this reason, of the two corresponding input pixels Pi, a pixel at a predetermined position (e.g., the pixel on the upper side (+Y side)) is selected.

図5(A)に示すように、単純間引きによる縮小処理では、縮小前の部分画像PRIが白色画素PiWと黒色画素PiBのみを含む場合には、縮小済みの部分画像RDIaも白色画素PoWと黒色画素PoBのみを含む。 As shown in FIG. 5A, in a reduction process using simple thinning, if the partial image PRI before reduction contains only white pixels PiW and black pixels PiB, the reduced partial image RDIa also contains only white pixels PoW and black pixels PoB.

図5(B)を参照して、線形補間による縮小処理について説明する。図5(B)の左側には、図5(A)の右側の部分画像PRI1と同一の縮小前の部分画像PRIが示されている。本実施例では、後述するように、縮小前の部分画像PRIが白色画素PiWと黒色画素PiBのみを含む場合には、線形補間による縮小処理が実行されることはない。しかしながら、ここでは、2種類の縮小処理の違いを解りやすくするために、縮小前の部分画像PRIが白色画素PiWと黒色画素PiBのみを含む場合を例として説明する。 The reduction process using linear interpolation will be described with reference to FIG. 5(B). The left side of FIG. 5(B) shows a partial image PRI before reduction that is the same as the partial image PRI1 on the right side of FIG. 5(A). In this embodiment, as described below, if the partial image PRI before reduction contains only white pixels PiW and black pixels PiB, the reduction process using linear interpolation is not performed. However, in order to make it easier to understand the difference between the two types of reduction processes, the case where the partial image PRI before reduction contains only white pixels PiW and black pixels PiB will be described as an example.

図5(B)の右側には、縮小済みの部分画像RDIbが示されている。この縮小済みの部分画像RDIbは、線形補間による縮小処理によって、縮小前の部分画像PRIを縮小することによって得られる画像である。縮小済みの部分画像RDIbは、図5(A)の部分画像RDIaと同様に、搬送方向ARと主走査方向とに沿ってマトリクス状に並ぶ複数個の画素Pobを含んでいる。縮小済みの部分画像RDIbの画素Pobを出力画素Pobとも呼ぶ。図5(B)では、図5(A)と同様に、出力画素Pobの搬送方向ARの長さを主走査方向の長さの2倍にして出力画素Pobが図示されている。例えば、縮小前の部分画像PRIの領域Aiに位置する2個の入力画素Piは、縮小済みの部分画像RDIbの領域Aobに位置する1個の出力画素Pobと対応している。 The right side of FIG. 5B shows the reduced partial image RDIb. This reduced partial image RDIb is an image obtained by reducing the unreduced partial image PRI by a reduction process using linear interpolation. The reduced partial image RDIb includes a plurality of pixels Pob arranged in a matrix along the transport direction AR and the main scanning direction, similar to the partial image RDIa in FIG. 5A. The pixels Pob of the reduced partial image RDIb are also called output pixels Pob. In FIG. 5B, similar to FIG. 5A, the output pixel Pob is illustrated with the length of the output pixel Pob in the transport direction AR twice the length in the main scanning direction. For example, two input pixels Pi located in the area Ai of the unreduced partial image PRI correspond to one output pixel Pob located in the area Aob of the reduced partial image RDIb.

線形補間による縮小処理では、出力画素Pobの値は、対応する2個の入力画素Piを用いた補間によって算出される値とされる。例えば、出力画素Pobの値は、対応する2個以上の入力画素Piの値と、当該出力画素Pobとの距離に応じた重みと、を用いた重み付き平均値とされる。本実施例では、出力画素Pobと、対応する2個の入力画素Piのそれぞれとの距離は、等しい。このために、対応する2個の入力画素Piの単純平均が、出力画素Pobの値として採用される。 In the reduction process using linear interpolation, the value of the output pixel Pob is calculated by interpolation using two corresponding input pixels Pi. For example, the value of the output pixel Pob is calculated as a weighted average using the values of two or more corresponding input pixels Pi and a weight according to the distance from the output pixel Pob. In this embodiment, the distance between the output pixel Pob and each of the two corresponding input pixels Pi is equal. For this reason, the simple average of the two corresponding input pixels Pi is adopted as the value of the output pixel Pob.

図5(B)に示すように、線形補間による縮小処理では、縮小前の部分画像PRIが白色画素PiWと黒色画素PiBのみを含む場合であっても、縮小済みの部分画像RDIbは、白色画素PoWと黒色画素PoBとは異なる色を含む場合がある。図5(B)の例では、縮小済みの部分画像RDIbは、白と黒との中間の濃度を有するグレーの画素PoGを含む。 As shown in FIG. 5B, in a reduction process using linear interpolation, even if the partial image PRI before reduction contains only white pixels PiW and black pixels PiB, the reduced partial image RDIb may contain colors different from the white pixels PoW and black pixels PoB. In the example of FIG. 5B, the reduced partial image RDIb contains gray pixels PoG that have a density intermediate between white and black.

次に、これらの2種類の縮小処理を使い分ける本実施例の縮小処理の具体的な処理内容を説明する。図6は、縮小処理のフローチャートである。 Next, we will explain the specific processing content of the reduction process in this embodiment, which uses these two types of reduction processes. Figure 6 is a flowchart of the reduction process.

S200では、CPU210は、縮小済みの部分画像RDIを示す画像データを生成するためのキャンバスデータをメモリ(具体的には、揮発性記憶装置230のバッファ領域)に準備する。キャンバスデータによって示されるキャンバス(初期画像)は、生成すべき縮小済みの部分画像RDIと同じサイズの画像、すなわち、同じ画素数の画像である。キャンバスを構成する各出力画素Poの値は、所定の初期値(例えば、(R、G、B)=(0、0、0))である。 In S200, the CPU 210 prepares canvas data in memory (specifically, in the buffer area of the volatile storage device 230) for generating image data indicating the reduced partial image RDI. The canvas (initial image) indicated by the canvas data is an image of the same size as the reduced partial image RDI to be generated, i.e., an image with the same number of pixels. The value of each output pixel Po that constitutes the canvas is a predetermined initial value (for example, (R, G, B) = (0, 0, 0)).

S205では、CPU210は、キャンバスを構成する複数個の出力画素Poの中から1個の注目出力画素を選択する。 In S205, the CPU 210 selects one output pixel of interest from among the multiple output pixels Po that make up the canvas.

S210では、CPU210は、縮小前の部分画像PRIの複数個の入力画素Piの中から、注目出力画素に対応する2個の対応入力画素を特定する。本実施例では、縮小前の部分画像PRIとキャンバス画像とが同一の寸法の画像であり、完全に重なり合う画像であると仮定して、完全に重ねた場合に、注目出力画素と重なる2個の入力画素Piが、対応入力画素として特定される。 In S210, the CPU 210 identifies two corresponding input pixels Pi that correspond to the target output pixel from among the multiple input pixels Pi of the partial image PRI before reduction. In this embodiment, assuming that the partial image PRI before reduction and the canvas image are images of the same size and completely overlap each other, the two input pixels Pi that overlap the target output pixel when completely overlapped are identified as the corresponding input pixels.

S220では、特定された全ての対応入力画素が、上述した黒色画素PiBまたは白色画素PiWであるか否かを判断する。 In S220, it is determined whether all of the identified corresponding input pixels are black pixels PiB or white pixels PiW as described above.

特定された全ての対応入力画素が黒色画素PiBまたは白色画素PiWである場合には(S220:YES)、S230にて、CPU210は、注目出力画素を白色画素PoWまたは黒色画素PoBに決定する。例えば、2個の対応入力画素のうち、上側(図5の+Y側)にある画素が黒色画素PiBである場合には、注目出力画素は黒色画素PoBに決定され、上側にある画素が白色画素PiWである場合には、注目出力画素は白色画素PoWに決定される。すなわち、この場合には、注目出力画素のRGB値は、白を示す値(例えば(255、255、255))と、黒を示す値(例えば、(0、0、0))と、のいずれかに決定される。 If all of the identified corresponding input pixels are black pixels PiB or white pixels PiW (S220: YES), in S230, the CPU 210 determines the output pixel of interest to be a white pixel PoW or a black pixel PoB. For example, if the upper pixel (the +Y side in FIG. 5) of the two corresponding input pixels is a black pixel PiB, the output pixel of interest is determined to be a black pixel PoB, and if the upper pixel is a white pixel PiW, the output pixel of interest is determined to be a white pixel PoW. That is, in this case, the RGB values of the output pixel of interest are determined to be either a value indicating white (e.g., (255, 255, 255)) or a value indicating black (e.g., (0, 0, 0)).

特定された少なくとも1個の対応入力画素が黒色画素PiBでもなく、かつ、白色画素PiWでもない場合には(S220:NO)、S240にて、CPU210は、注目出力画素の値を線形補間演算によって決定する。本実施例では、上述したように、注目出力画素の値は、2個の対応入力画素の値の単純平均値に決定される。例えば、2個の対応入力画素のRGB値が(R1、G1、B1)と(R2、G2、B2)である場合には、対応注目画素のRGB値(Ro、Go、Bo)は、Ro=(R1+R2)/2、Go=(G1+G2)/2、Bo=(B1+B2)/2に決定される。 If at least one of the identified corresponding input pixels is neither a black pixel PiB nor a white pixel PiW (S220: NO), in S240, the CPU 210 determines the value of the target output pixel by linear interpolation. In this embodiment, as described above, the value of the target output pixel is determined to be the simple average value of the values of the two corresponding input pixels. For example, if the RGB values of the two corresponding input pixels are (R1, G1, B1) and (R2, G2, B2), the RGB values (Ro, Go, Bo) of the corresponding target pixel are determined to be Ro = (R1 + R2) / 2, Go = (G1 + G2) / 2, Bo = (B1 + B2) / 2.

S250では、CPU210は、キャンバス画像の全ての出力画素Poを注目出力画素として処理したか否かを判断する。未処理の出力画素Poがある場合には(S250:NO)、CPU210は、S205に戻る。全ての出力画素Poを注目出力画素として処理した場合には(S250:YES)、CPU210は、縮小処理を終了する。 In S250, the CPU 210 determines whether or not all output pixels Po of the canvas image have been processed as target output pixels. If there are unprocessed output pixels Po (S250: NO), the CPU 210 returns to S205. If all output pixels Po have been processed as target output pixels (S250: YES), the CPU 210 ends the reduction process.

以上の説明から解るように、縮小前の部分画像PRIにおいて、黒色画素PiBと白色画素PiWのみで構成されている部分は、単純間引きによる縮小処理(図5(A))によって縮小される。このために、縮小前の部分画像PRIにおいて、黒色画素PiBと白色画素PiWのみで構成されている部分は、縮小済みの部分画像RDIにおいても、黒色画素PoBと白色画素PoWのみで構成される。 As can be seen from the above explanation, in the partial image PRI before reduction, the part that is made up only of black pixels PiB and white pixels PiW is reduced by the reduction process using simple thinning (Figure 5 (A)). As a result, in the partial image PRI before reduction, the part that is made up only of black pixels PiB and white pixels PiW is also made up only of black pixels PoB and white pixels PoW in the reduced partial image RDI.

縮小前の部分画像PRIにおいて、黒色画素PiBと白色画素PiWとは異なる色の画素(例えば、グレーの画素や有彩色の画素)を含む部分は、線形補間による縮小処理(図5(B))によって縮小される。このために、縮小前の部分画像PRIにおいて、黒色画素PiBと白色画素PiWとは異なる色の画素(例えば、グレーの画素や有彩色の画素)を含む部分は、縮小済みの部分画像RDIにおいて、縮小前の部分画像PRIの画素とは異なるRGB値を有する画素を含み得る。 In the partial image PRI before reduction, a portion that includes pixels of a color different from the black pixels PiB and the white pixels PiW (e.g., gray pixels or chromatic pixels) is reduced by a reduction process using linear interpolation (Figure 5 (B)). For this reason, a portion that includes pixels of a color different from the black pixels PiB and the white pixels PiW (e.g., gray pixels or chromatic pixels) in the partial image PRI before reduction may include pixels in the reduced partial image RDI that have different RGB values from the pixels of the partial image PRI before reduction.

以上説明した本実施例によれば、CPU210は、対象画像データとしてのRGB画像データを取得し(図4のS110)、RGB画像データに対して、RGB画像RIの画素数を減少させる処理ある縮小処理を実行して、縮小済みのRGB画像データを生成する(図4のS130、図6)。CPU210は、縮小済みのRGB画像データを用いて、印刷機構100に印刷画像OIを印刷させるための印刷データであるドットデータを生成する(図4のS140、S150)。 According to the present embodiment described above, the CPU 210 acquires RGB image data as target image data (S110 in FIG. 4), and executes a reduction process on the RGB image data, which is a process for reducing the number of pixels in the RGB image RI, to generate reduced RGB image data (S130 in FIG. 4, FIG. 6). The CPU 210 uses the reduced RGB image data to generate dot data, which is print data for causing the print mechanism 100 to print the print image OI (S140, S150 in FIG. 4).

そして、縮小処理のうち、RGB画像RI内の特定色(本実施例では黒と白)で構成される部分に対して実行される単純間引きによる縮小処理(図5(A))は、縮小済みの画素の値として、縮小前のRGB画像RIの対応する1以上の画素の中から選択された1個の画素の値を採用する処理である。 The reduction process (Figure 5(A)) by simple thinning, which is performed on a portion of the RGB image RI that is made up of specific colors (black and white in this embodiment), is a process in which the value of a pixel that has been reduced is determined by using the value of one pixel selected from one or more corresponding pixels in the RGB image RI before reduction.

この結果、縮小済みのRGB画像において、特定色(例えば、黒と白)で構成される部分に、黒と白は異なる色の画素(例えば、グレーの画素)が生じることを抑制できる。したがって、縮小済みのRGB画像、ひいては、印刷画像OIにおいて、白と黒との間のエッジが不鮮明になることを抑制できる。仮に黒と白とで構成される部分に対して、線形補間による縮小処理が適用されるとすれば、図5(B)に示すように、縮小済みのRGB画像において、黒と白との間のグレーの画素が生じて、黒と白との間のエッジが不鮮明になる場合がある。本実施例によれば、このような不都合を抑制することができる。 As a result, it is possible to prevent pixels of different colors (e.g., gray pixels) from appearing in a portion of the reduced RGB image that is composed of specific colors (e.g., black and white). This prevents the edge between white and black from becoming unclear in the reduced RGB image, and in the print image OI. If a reduction process using linear interpolation is applied to a portion composed of black and white, as shown in FIG. 5B, gray pixels may appear between black and white in the reduced RGB image, causing the edge between black and white to become unclear. This embodiment prevents such inconvenience.

例えば、図3のRGB画像RIは、白の背景に配置される黒の文字TXを含んでいる。本実施例の縮小処理によれば、黒の文字TXの部分と、その周囲の白の背景の部分とは、単純間引きによる縮小処理が適用される。この結果、縮小済みのRGB画像、ひいては、印刷画像OIにおいて、黒の文字TXのエッジが不鮮明になり、文字TXが読み難くなる不都合を抑制することができる。 For example, the RGB image RI in FIG. 3 includes black characters TX placed on a white background. According to the reduction process of this embodiment, the black characters TX and the surrounding white background are reduced by simple thinning. As a result, in the reduced RGB image, and in the printed image OI, the edges of the black characters TX become unclear, preventing the characters TX from becoming difficult to read.

また、本実施例では、単純間引きによる縮小処理が適用される特定色として、白と黒が設定されているので、例えば、エッジが不鮮明になることをより適切に抑制できる。例えば、黒と白のみで構成される部分(例えば、黒の文字や図表の枠線)は、エッジが鮮明であることが他のオブジェクト(例えば、写真)よりも要求される場合が多い。本実施例では、このようにエッジが鮮明であることが求められる部分のエッジが不鮮明になることを適切に抑制できる。 In addition, in this embodiment, white and black are set as the specific colors to which the reduction process by simple thinning is applied, so that, for example, blurring of edges can be more appropriately prevented. For example, parts consisting of only black and white (e.g., black text or the borders of diagrams) often require sharp edges more than other objects (e.g., photographs). In this embodiment, it is possible to appropriately prevent the edges of parts that require sharp edges from becoming blurred.

さらに、本実施例によれば、CPU210は、縮小済みのRGB画像データに対して、色変換処理(図4のS140)を含む処理を実行して、印刷データを生成する(図4のS140とS150)。色変換処理は、上述のように、縮小済みのRGB画像データに含まれるRGB値を、印刷に用いられる黒(K)のインクと有彩色(CMY)のインクに対応する複数の成分値を含むCMYK値に変換する処理である。上述したように、グレーなどの黒や白とは異なる中間濃度の無彩色を示すRGB値は、色変換処理によって、CMYの成分値が0ではないCMYK値に変換される場合がある。このために、仮に、縮小前のRGB画像RIにおいて特定部分が黒と白とで構成されているにも関わらず、縮小済みのRGB画像において、該特定部分にグレーなどの他の色の画素が含まれる場合には、該特定部分の印刷に有彩色(CMY)のインクが用いられる場合がある。この場合には、Kインクよりも高価である有彩色のインクが無駄に消費される。また、黒と白との間のエッジに有彩色のドットが見えることで、黒のオブジェクトのエッジの見栄えが低下する可能性がある。本実施例では、このような不都合の発生を抑制することができる。 Furthermore, according to this embodiment, the CPU 210 executes a process including a color conversion process (S140 in FIG. 4) on the reduced RGB image data to generate print data (S140 and S150 in FIG. 4). As described above, the color conversion process is a process for converting the RGB values included in the reduced RGB image data into CMYK values including multiple component values corresponding to the black (K) ink and chromatic (CMY) inks used in printing. As described above, RGB values indicating achromatic colors of intermediate density different from black and white, such as gray, may be converted by the color conversion process into CMYK values in which the CMY component values are not 0. For this reason, if a specific part in the RGB image RI before reduction is composed of black and white, but the specific part in the reduced RGB image contains pixels of other colors such as gray, chromatic (CMY) inks may be used to print the specific part. In this case, chromatic inks, which are more expensive than K ink, are wasted. In addition, the appearance of the edges of black objects can be diminished by the appearance of chromatic dots at the edges between black and white. In this embodiment, this problem can be prevented from occurring.

さらに、本実施例の印刷機構100の印刷ヘッド110では、Kインク用のノズル列NKにおけるKインクを吐出するためのノズルNZの個数は、1つの有彩色用のノズル列(例えば、ノズル列NC)における有彩色の色材を吐出するためのノズルNZの個数よりも多い(図2(B))。このために、Kインクのみを用いて印刷される所定幅の部分印刷画像PIは、1回の部分印刷によって印刷され、少なくとも1つの有彩色のインクを用いて印刷される所定幅の部分印刷画像PIは、3回の部分印刷によって印刷される(図3、図4のS160~S180)。 Furthermore, in the print head 110 of the printing mechanism 100 of this embodiment, the number of nozzles NZ for ejecting K ink in the nozzle row NK for K ink is greater than the number of nozzles NZ for ejecting chromatic color materials in one nozzle row for chromatic colors (e.g., nozzle row NC) (Fig. 2B). For this reason, a partial print image PI of a predetermined width printed using only K ink is printed by one partial printing, and a partial print image PI of a predetermined width printed using at least one chromatic ink is printed by three partial printings (S160 to S180 in Figs. 3 and 4).

このような印刷機構100では、Kインクのみを用いて印刷する場合の印刷速度が、有彩色のインクを用いて印刷する場合の印刷速度よりも速い。本実施例によれば、上述のように、縮小前のRGB画像RIにおいて特定部分が黒と白とで構成されているにも関わらず、該特定部分の印刷に有彩色(CMY)のインクが用いられる不都合を抑制できる。したがって、例えば、縮小前の部分画像PRIが白と黒のみで構成される場合には、該部分画像PRIに対応する部分印刷画像PIを印刷する際に有彩色のインクが用いられることを抑制できるので、有彩色のインクが用いられることによる印刷速度の低下を抑制することができる。例えば、図3に示すように、画像全体の印刷は、カラー印刷である場合であっても、例えば、黒の文字TXのみを含む部分印刷画像PI1、PI2が、写真PCを含む部分印刷画像PI3~PI5よりも高速で印刷されるので、画像全体の印刷速度を向上できる。 In such a printing mechanism 100, the printing speed when printing using only K ink is faster than the printing speed when printing using chromatic inks. According to this embodiment, as described above, it is possible to suppress the inconvenience of using chromatic (CMY) inks to print a specific portion in the RGB image RI before reduction, even though the specific portion is composed of black and white. Therefore, for example, if the partial image PRI before reduction is composed of only black and white, it is possible to suppress the use of chromatic inks when printing the partial print image PI corresponding to the partial image PRI, so that it is possible to suppress a decrease in printing speed due to the use of chromatic inks. For example, as shown in FIG. 3, even if the entire image is printed in color, the partial print images PI1 and PI2 containing only black text TX are printed faster than the partial print images PI3 to PI5 containing the photo PC, so that the printing speed of the entire image can be improved.

さらに、本実施例によれば、縮小処理のうち、縮小前のRGB画像RI内の特定色(例えば、黒と白)とは異なる色(例えば、グレーや有彩色)を含む部分に対して実行される処理は、縮小済みの画素の値として、縮小前のRGB画像RIの対応する2以上の画素の値を用いた補間によって得られる値を採用する処理である(図6のS240)。この結果、特定色とは異なる色を含むオブジェクト(例えば、図3の写真PC)の画質が低下することを抑制することができる。例えば、グレーなどの中間濃度の画素や有彩色の画素を含むオブジェクトは、エッジの鮮明性よりも階調性(例えば、階調の変化の滑らかさ)の良さが要求される可能性が高い。縮小済みのRGB画像における階調性は、補間による縮小処理を用いる場合に、単純間引きによる縮小処理を用いるよりも良好になる。 Furthermore, according to this embodiment, the process of the reduction process that is performed on a portion of the RGB image RI before reduction that contains a color (e.g., gray or a chromatic color) different from a specific color (e.g., black and white) is a process that adopts a value obtained by interpolation using the values of two or more corresponding pixels of the RGB image RI before reduction as the value of the reduced pixel (S240 in FIG. 6). As a result, it is possible to prevent the image quality of an object (e.g., the photo PC in FIG. 3) that contains a color different from the specific color from deteriorating. For example, an object that contains pixels of intermediate density such as gray or pixels of chromatic colors is likely to require good gradation (e.g., smoothness of gradation change) rather than sharpness of edges. The gradation in the reduced RGB image is better when reduction processing by interpolation is used than when reduction processing by simple thinning is used.

以上の説明から解るように、実施例における縮小処理は、画素数調整処理の例であり、ドットデータは、印刷データの例である。また、実施例における縮小前のRGB画像データは、対象画像データの例であり、縮小済みのRGB画像データは、調整済画像データの例である。また、実施例における単純間引きによる縮小処理は、第1調整処理の例であり、線形補間による縮小処理は、第2調整処理の例である。 As can be seen from the above explanation, the reduction process in the embodiment is an example of pixel count adjustment process, and the dot data is an example of print data. Furthermore, the RGB image data before reduction in the embodiment is an example of target image data, and the reduced RGB image data is an example of adjusted image data. Furthermore, the reduction process by simple thinning in the embodiment is an example of a first adjustment process, and the reduction process by linear interpolation is an example of a second adjustment process.

B.変形例
(1)上記実施例の縮小処理(図4のS130)は一例であり、これに限られない。例えば、縮小処理は、例えば、印刷の解像度に応じて、主走査方向の画素数だけを減少させる処理であっても良いし、主走査方向の画素数と搬送方向ARの画素数との両方を減少させる処理であても良い。また、縮小処理に代えて、RGB画像RIの画素数を増加させる処理である拡大処理が実行されても良い。例えば、図4のS110にて取得されるRGB画像データの画素数が少なく、そのまま用いる場合には、十分に大きな印刷画像OIを印刷できない場合には、取得されるRGB画像データに対して拡大処理が実行されても良い。この場合に、拡大処理は、例えば、印刷の解像度に応じて、主走査方向の画素数だけ増加する処理であっても良いし、搬送方向ARの画素数だけ増加させる処理であっても良い。いずれの場合であっても、RGB画像RIのうち、特定色(例えば、白と黒)のみで構成される部分に対しては、ニアレストネイバー法を用いる縮小処理または拡大処理が実行されることが好ましい。また、RGB画像RIのうち、特定色とは異なる色を含む部分に対しては、補間処理(例えば、線形補間やバイキュービック法)を用いる縮小処理または拡大処理が実行されることが好ましい。
B. Modification (1) The reduction process (S130 in FIG. 4) in the above embodiment is an example, and is not limited thereto. For example, the reduction process may be a process of reducing only the number of pixels in the main scanning direction according to the print resolution, or may be a process of reducing both the number of pixels in the main scanning direction and the number of pixels in the transport direction AR. In place of the reduction process, an enlargement process may be performed, which is a process of increasing the number of pixels in the RGB image RI. For example, if the number of pixels in the RGB image data acquired in S110 in FIG. 4 is small and a sufficiently large print image OI cannot be printed when used as is, an enlargement process may be performed on the acquired RGB image data. In this case, the enlargement process may be a process of increasing the number of pixels in the main scanning direction according to the print resolution, or may be a process of increasing the number of pixels in the transport direction AR. In either case, it is preferable that a reduction process or an enlargement process using the nearest neighbor method is performed on a portion of the RGB image RI that is composed of only specific colors (for example, white and black). Furthermore, it is preferable to perform a reduction or enlargement process using an interpolation process (for example, linear interpolation or bicubic interpolation) on a portion of the RGB image RI that includes a color different from the specific color.

(2)上記実施例の縮小処理(図4のS130)では、特定色は、白と黒であるが、特定色は、白と黒に加えて、他の色を含んでも良いし、白と黒との少なくとも一方に代えて、他の色を含んでも良い。例えば、特定色は、白と黒とC、M、Yの原色とを含んでも良い。この場合には、例えば、縮小前のRGB画像RIにおいて、白と黒とC、M、Yの原色の画素の全部または一部のみで構成される部分に対して、単純間引きによる縮小処理がされ、白と黒とC、M、Yの原色のいずれとも異なる色の画素を含む部分に対して、線形補間による縮小処理が実行される。この場合には、例えば、白と黒とC、M、Yの原色とのうちの2色の間のエッジが不鮮明になることを抑制できる。 (2) In the reduction process of the above embodiment (S130 in FIG. 4), the specific colors are white and black, but the specific colors may include other colors in addition to white and black, or may include other colors instead of at least one of white and black. For example, the specific colors may include white, black, and the primary colors of C, M, and Y. In this case, for example, in the RGB image RI before reduction, a reduction process by simple thinning is performed on a portion consisting of all or a portion of pixels of white, black, and the primary colors of C, M, and Y, and a reduction process by linear interpolation is performed on a portion including pixels of colors other than white, black, and the primary colors of C, M, and Y. In this case, for example, it is possible to prevent the edge between two colors among white, black, and the primary colors of C, M, and Y from becoming unclear.

(3)上記実施例の印刷機構100の具体的な構成は一例であり、これに限られない。例えば、印刷機構100は、CMYKの4色のインクを用いて印刷を行うカラープリンタに代えて、Kのインクのみを用いて印刷を行うモノクロプリンタであっても良い。この場合でも、例えば、黒の文字のエッジが不鮮明になることを抑制しつつ、グレーを含む写真の階調性を良好に維持できる。また、印刷機構100は、色材として、トナーを用いて印刷を行う電子写真式のプリンタであっても良い。 (3) The specific configuration of the printing mechanism 100 in the above embodiment is an example, and is not limited thereto. For example, the printing mechanism 100 may be a monochrome printer that prints using only K ink, instead of a color printer that prints using four colors of ink: CMYK. Even in this case, for example, it is possible to maintain good gradation of photographs that include gray while suppressing the edges of black characters from becoming unclear. Furthermore, the printing mechanism 100 may be an electrophotographic printer that prints using toner as a color material.

また、図2(B)の印刷ヘッド110では、黒のノズル列NKのノズル長と、有彩色のノズル列NC、NM、NYのノズル長とは、互いに等しく、黒のノズル列NKのノズル間隔NTkは、有彩色のノズル列NC、NM、NYのノズル間隔NTcよりも短い。これに代えて、黒のノズル列のノズル長が有彩色のノズル列のノズル長よりも2倍長く、黒のノズル列のノズル間隔と有彩色のノズル列のノズル間隔とが互いに等しくても良い。この場合は、黒のノズル列のノズルの個数は、有彩色のノズル列のノズルの個数の2倍になる。そして、この場合には、例えば、黒のインクのみを用いて印刷される部分印刷画像は、1回の部分印刷で印刷され、有彩色のインクを用いて印刷される部分印刷画像は、2回の部分印刷で印刷される。 In the print head 110 of FIG. 2B, the nozzle length of the black nozzle row NK is equal to the nozzle length of the chromatic nozzle rows NC, NM, and NY, and the nozzle spacing NTk of the black nozzle row NK is shorter than the nozzle spacing NTc of the chromatic nozzle rows NC, NM, and NY. Alternatively, the nozzle length of the black nozzle row may be twice as long as the nozzle length of the chromatic nozzle rows, and the nozzle spacing of the black nozzle row and the nozzle spacing of the chromatic nozzle rows may be equal to each other. In this case, the number of nozzles in the black nozzle row is twice the number of nozzles in the chromatic nozzle rows. In this case, for example, a partial print image printed using only black ink is printed in one partial print, and a partial print image printed using chromatic ink is printed in two partial prints.

また、黒のノズル列のノズル長は有彩色のノズル列のノズル長と等しく、黒のノズル列のノズル間隔と有彩色のノズル列のノズル間隔も互いに等しくても良い。この場合には、黒のノズル列のノズルの個数は、有彩色のノズル列のノズルの個数と等しく、全ての部分印刷画像は1回の部分印刷で印刷される。 In addition, the nozzle length of the black nozzle row may be equal to the nozzle length of the chromatic nozzle row, and the nozzle spacing of the black nozzle row and the nozzle spacing of the chromatic nozzle row may also be equal to each other. In this case, the number of nozzles in the black nozzle row is equal to the number of nozzles in the chromatic nozzle row, and all partial print images are printed in a single partial print.

(4)上記実施例の縮小処理は、RGB画像データに対して実行されるが、色変換後のCMYK画像データに対して実行されても良い。この場合であっても黒と白との間のエッジ (4) The reduction process in the above embodiment is performed on RGB image data, but it may also be performed on CMYK image data after color conversion. Even in this case, the edge between black and white

(5)印刷媒体として、用紙Mに代えて、他の媒体、例えば、OHP用のフィルム、CD-ROM、DVD-ROMが採用されても良い。 (5) As the print medium, other media such as OHP film, CD-ROM, and DVD-ROM may be used instead of paper M.

(6)上記実施例の印刷機構100では、搬送部140が用紙Mを搬送することによって、印刷ヘッド110に対して用紙Mを搬送方向に相対的に移動させている。これに代えて、固定された用紙Mに対して、印刷ヘッド110を搬送方向ARと反対方向に移動させることによって、印刷ヘッド110に対して用紙Mを搬送方向ARに相対的に移動させても良い。 (6) In the printing mechanism 100 of the above embodiment, the transport unit 140 transports the paper M, thereby moving the paper M relative to the print head 110 in the transport direction. Alternatively, the paper M may be moved relative to the print head 110 in the transport direction AR by moving the print head 110 in the opposite direction to the transport direction AR relative to the fixed paper M.

(7)上記各実施例では、図4の印刷処理を実行する画像処理装置は、プリンタ200である。これに代えて、プリンタ200と接続されるパーソナルコンピュータなどの端末装置が、図4の印刷処理を実行しても良い。この場合には、端末装置のCPUは、例えば、プリンタドライバプログラムを実行することのよって、図4の印刷処理を実行する。この場合には、端末装置のCPUは、図4のS170、S180では、印刷データをプリンタ200に送信することによって印刷実行部としてのプリンタ200に印刷を実行させる。 (7) In each of the above embodiments, the image processing device that executes the print process in FIG. 4 is the printer 200. Alternatively, a terminal device, such as a personal computer, connected to the printer 200 may execute the print process in FIG. 4. In this case, the CPU of the terminal device executes the print process in FIG. 4, for example, by executing a printer driver program. In this case, in S170 and S180 of FIG. 4, the CPU of the terminal device causes the printer 200, as a print execution unit, to execute printing by sending print data to the printer 200.

さらには、図4の印刷処理を実行する装置は、例えば、プリンタや端末装置から画像データを取得して該画像データを用いて印刷ジョブを生成するサーバであっても良い。このようなサーバは、ネットワークを介して互いに通信可能な複数個の計算機であっても良い。 Furthermore, the device that executes the printing process in FIG. 4 may be, for example, a server that acquires image data from a printer or a terminal device and generates a print job using the image data. Such a server may be multiple computers that can communicate with each other via a network.

(8)上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部あるいは全部をハードウェアに置き換えるようにしてもよい。例えば、図4の印刷処理がプリンタ200において実行される場合に、ハーフトーン処理や色変換処理は、例えば、プリンタ200のCPU210の指示に従って動作する専用のハードウェア回路(例えば、ASIC)によって実現されてもよい。 (8) In each of the above embodiments, some of the configurations realized by hardware may be replaced by software, and conversely, some or all of the configurations realized by software may be replaced by hardware. For example, when the printing process of FIG. 4 is executed in printer 200, halftone processing and color conversion processing may be realized by a dedicated hardware circuit (e.g., ASIC) that operates according to instructions from CPU 210 of printer 200.

以上、実施例、変形例に基づき本発明について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれる。 The present invention has been described above based on examples and modifications, but the above-mentioned embodiments of the invention are intended to facilitate understanding of the present invention and do not limit the present invention. The present invention may be modified or improved without departing from the spirit and scope of the claims, and the present invention includes equivalents thereof.

100…印刷機構,110…印刷ヘッド,111…ノズル形成面,120…ヘッド駆動部,130…主走査部,133…キャリッジ,134…摺動軸,140…搬送部,141…下流ローラ対,142…上流ローラ対,145…用紙台,200…プリンタ,210…CPU,220…不揮発性記憶装置,230…揮発性記憶装置,231…バッファ領域,260…操作部,270…表示部,280…通信部,AR…搬送方向,CP…コンピュータプログラム,M…用紙,NC,NM,NY,NK,…ノズル列,NZ…ノズル,OI…印刷画像,PI…部分印刷画像,PRI…部分画像,RI…RGB画像 100...printing mechanism, 110...printing head, 111...nozzle formation surface, 120...head drive unit, 130...main scanning unit, 133...carriage, 134...sliding shaft, 140...transport unit, 141...downstream roller pair, 142...upstream roller pair, 145...paper tray, 200...printer, 210...CPU, 220...non-volatile storage device, 230...volatile storage device, 231...buffer area, 260...operation unit, 270...display unit, 280...communication unit, AR...transport direction, CP...computer program, M...paper, NC, NM, NY, NK,...nozzle row, NZ...nozzle, OI...printed image, PI...partial printed image, PRI...partial image, RI...RGB image

Claims (3)

コントローラを備える画像処理装置であって、
前記コントローラは、
対象画像を示す対象画像データを前記画像処理装置の記憶装置から読み出すことによって、または、外部装置から受信することによって取得し、
前記対象画像データに対して、前記対象画像の画素数を増加させる処理と前記対象画像の画素数を減少させる処理とのいずれかである画素数調整処理を実行して、調整済画像を示す調整済画像データを生成し、
前記調整済画像データに対して色変換処理を含む処理を実行して黒の色材と複数の有彩色の色材とを用いて印刷を行う印刷実行部に画像を印刷させるための印刷データを生成し、
前記対象画像データと前記調整済画像データとは、第1表色系の色値で画素ごとの色を示す画像データであり、
前記色変換処理は、前記調整済画像データに含まれる前記第1表色系の色値を、前記黒の色材と前記複数の有彩色の色材とに対応する複数個の成分値を含む第2表色系の色値に変換する処理であり、
前記色変換処理では、基準以上の濃度の無彩色を示す前記第1表色系の色値は、黒の成分値のみが0より大きく、複数の有彩色の成分値が0である前記第2表色系の色値に変換され、白を除く前記基準未満の濃度の無彩色を示す前記第1表色系の色値は、0より大きな前記複数の有彩色の成分値を含む前記第2表色系の色値に変換され、
前記画素数調整処理は、
前記調整済画像の画素ごとに、前記対象画像の対応する以上の画素が白の画素と黒の画素のみであるか否かを判断する処理と、
前記対象画像の対応する2以上の画素が白の画素と黒の画素のみである場合に、前記調整済画像の画素の値として、前記対象画像の対応する2以上の画素の中から選択された1個の画素の値を採用する第1調整処理と、
前記対象画像の対応する2以上の画素が白の画素と黒の画素のみでない場合に、前記調整済画像の画素の値として、前記対象画像の対応する2以上の画素の値を用いた補間によって得られる値を採用する第2調整処理と、
を含む、画像処理装置。
An image processing device including a controller,
The controller:
Obtaining target image data representing a target image by reading the data from a storage device of the image processing device or by receiving the data from an external device ;
performing a pixel number adjustment process on the target image data, the pixel number adjustment process being either a process of increasing the pixel number of the target image or a process of decreasing the pixel number of the target image, to generate adjusted image data representing an adjusted image ;
performing a process including a color conversion process on the adjusted image data to generate print data for printing an image by a print execution unit that prints using a black color material and a plurality of chromatic color materials ;
the target image data and the adjusted image data are image data that indicate a color for each pixel using a color value in a first color system,
the color conversion process is a process of converting color values of the first color system included in the adjusted image data into color values of a second color system including a plurality of component values corresponding to the black color material and the plurality of chromatic color materials,
In the color conversion process, a color value of the first color system that indicates an achromatic color of a density equal to or greater than a reference is converted to a color value of the second color system in which only a black component value is greater than 0 and component values of a plurality of chromatic colors are 0, and a color value of the first color system that indicates an achromatic color of a density less than the reference except for white is converted to a color value of the second color system that includes component values of the plurality of chromatic colors greater than 0,
The pixel number adjustment process includes :
determining, for each pixel of the adjusted image, whether or not two or more corresponding pixels of the target image are only white pixels and black pixels;
a first adjustment process for adopting a value of one pixel selected from the two or more corresponding pixels of the target image as a pixel value of the adjusted image when the two or more corresponding pixels of the target image are only white pixels and black pixels ;
a second adjustment process for adopting, as a pixel value of the adjusted image, a value obtained by interpolation using values of two or more corresponding pixels of the target image when the two or more corresponding pixels of the target image are not only white pixels and black pixels;
23. An image processing device comprising :
請求項に記載の画像処理装置であって、
前記印刷実行部は、
前記黒の色材に対応する第1ノズル列と、前記複数の有彩色の色材に対応する複数の第2ノズル列と、を備える印刷ヘッドと、
前記印刷ヘッドに対して印刷媒体を前記第1ノズル列および前記第2ノズル列の複数のノズルが並ぶ方向である第1方向に相対的に移動させる副走査を実行する副走査部と、
前記印刷媒体に対して前記印刷ヘッドを前記第1方向と直交する第2方向に相対的に移動させる主走査を実行する主走査部と、
を備え、
前記印刷実行部は、前記印刷データを用いて、前記主走査を行いつつ前記印刷ヘッドから前記色材を吐出させる部分印刷と、前記副走査と、を、複数回に亘って実行することによって、印刷を実行し、
前記第1ノズル列における前記黒の色材を吐出するためのノズルの個数は、1つの前記第2ノズル列における前記有彩色の色材を吐出するためのノズルの個数よりも多く、
前記黒の色材のみを用いて印刷される所定幅の画像は、n回(nは1以上の整数)の前記部分印刷によって印刷され、
少なくとも1つの前記有彩色の色材を用いて印刷される前記所定幅の画像は、m回(mは、n<mを満たす整数)の前記部分印刷によって印刷される、画像処理装置。
2. The image processing device according to claim 1 ,
The print execution unit is
a print head including a first nozzle row corresponding to the black color material and a plurality of second nozzle rows corresponding to the plurality of chromatic color materials;
a sub-scanning unit that executes a sub-scan for moving a printing medium relative to the print head in a first direction that is a direction in which the nozzles of the first nozzle row and the second nozzle row are aligned ;
a main scanning unit that executes a main scan by moving the print head relatively to the print medium in a second direction perpendicular to the first direction;
Equipped with
the print execution unit executes printing by performing partial printing, in which the color material is ejected from the print head while performing the main scan, and the sub-scan a plurality of times using the print data;
the number of nozzles in the first nozzle row for ejecting the black color material is greater than the number of nozzles in one of the second nozzle rows for ejecting the chromatic color materials,
The image having a predetermined width printed using only the black color material is printed by performing the partial printing n times (n is an integer equal to or greater than 1),
An image processing apparatus, wherein the image of the predetermined width printed using at least one of the chromatic color materials is printed by the partial printing m times (m is an integer satisfying n<m).
画像処理装置のためのコンピュータプログラムであって、
対象画像を示す対象画像データを前記画像処理装置の記憶装置から読み出すことによって、または、外部装置から受信することによって取得することと、
前記対象画像データに対して、前記対象画像の画素数を増加させる処理と前記対象画像の画素数を減少させる処理とのいずれかである画素数調整処理を実行して、調整済画像を示す調整済画像データを生成することと、
前記調整済画像データに対して色変換処理を含む処理を実行して黒の色材と複数の有彩色の色材とを用いて印刷を行う印刷実行部に画像を印刷させるための印刷データを生成することと、
をコンピュータに実現させ、
前記対象画像データと前記調整済画像データとは、第1表色系の色値で画素ごとの色を示す画像データであり、
前記色変換処理は、前記調整済画像データに含まれる前記第1表色系の色値を、前記黒の色材と前記複数の有彩色の色材とに対応する複数個の成分値を含む第2表色系の色値に変換する処理であり、
前記色変換処理では、基準以上の濃度の無彩色を示す前記第1表色系の色値は、黒の成分値のみが0より大きく、複数の有彩色の成分値が0である前記第2表色系の色値に変換され、白を除く前記基準未満の濃度の無彩色を示す前記第1表色系の色値は、0より大きな前記複数の有彩色の成分値を含む前記第2表色系の色値に変換され、
前記画素数調整処理は、
前記調整済画像の画素ごとに、前記対象画像の対応する以上の画素が白の画素と黒の画素のみであるか否かを判断する処理と、
前記対象画像の対応する2以上の画素が白の画素と黒の画素のみである場合に、前記調整済画像の画素の値として、前記対象画像の対応する2以上の画素の中から選択された1個の画素の値を採用する第1調整処理と、
前記対象画像の対応する2以上の画素が白の画素と黒の画素のみでない場合に、前記調整済画像の画素の値として、前記対象画像の対応する2以上の画素の値を用いた補間によって得られる値を採用する第2調整処理と、
を含む、コンピュータプログラム。
A computer program for an image processing device , comprising:
Obtaining target image data representing a target image by reading it from a storage device of the image processing device or by receiving it from an external device ;
performing a pixel number adjustment process on the target image data, the pixel number adjustment process being either a process of increasing the pixel number of the target image or a process of decreasing the pixel number of the target image, to generate adjusted image data representing an adjusted image ;
performing a process including a color conversion process on the adjusted image data to generate print data for printing an image by a print execution unit that prints using a black color material and a plurality of chromatic color materials ;
This is realized on a computer.
the target image data and the adjusted image data are image data that indicate a color for each pixel using a color value in a first color system,
the color conversion process is a process of converting color values of the first color system included in the adjusted image data into color values of a second color system including a plurality of component values corresponding to the black color material and the plurality of chromatic color materials,
In the color conversion process, a color value of the first color system that indicates an achromatic color of a density equal to or greater than a reference is converted to a color value of the second color system in which only a black component value is greater than 0 and component values of a plurality of chromatic colors are 0, and a color value of the first color system that indicates an achromatic color of a density less than the reference except for white is converted to a color value of the second color system including component values of the plurality of chromatic colors greater than 0,
The pixel number adjustment process includes :
determining, for each pixel of the adjusted image, whether or not two or more corresponding pixels of the target image are only white pixels and black pixels;
a first adjustment process for adopting a value of one pixel selected from the two or more corresponding pixels of the target image as a pixel value of the adjusted image when the two or more corresponding pixels of the target image are only white pixels and black pixels ;
a second adjustment process for adopting, as a pixel value of the adjusted image, a value obtained by interpolation using values of two or more corresponding pixels of the target image when the two or more corresponding pixels of the target image are not only white pixels and black pixels;
A computer program comprising :
JP2020135534A 2020-08-11 2020-08-11 Image processing device and computer program Active JP7626969B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020135534A JP7626969B2 (en) 2020-08-11 2020-08-11 Image processing device and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020135534A JP7626969B2 (en) 2020-08-11 2020-08-11 Image processing device and computer program

Publications (2)

Publication Number Publication Date
JP2022032075A JP2022032075A (en) 2022-02-25
JP7626969B2 true JP7626969B2 (en) 2025-02-05

Family

ID=80349681

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020135534A Active JP7626969B2 (en) 2020-08-11 2020-08-11 Image processing device and computer program

Country Status (1)

Country Link
JP (1) JP7626969B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003123066A (en) 2001-10-10 2003-04-25 Fujitsu Ten Ltd Image reduction display method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003123066A (en) 2001-10-10 2003-04-25 Fujitsu Ten Ltd Image reduction display method and device

Also Published As

Publication number Publication date
JP2022032075A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
JP5146424B2 (en) Image processing apparatus, image processing method, program, recording medium, printing system, and image forming apparatus
US8366228B2 (en) Print controller for controlling ink jet printer
US7600842B2 (en) Image reproducing and forming apparatus, printer driver and data processing apparatus
US9083925B2 (en) Image processing apparatus and method therefor
US11479051B2 (en) Image processing apparatus controlling printing according to unidirectional printing method or bidirectional printing method
JP7513951B2 (en) Printing device, computer program, control method for print execution unit, and printing system
JP5262485B2 (en) Image processing apparatus, image processing method, program, recording medium, printing system, and image forming apparatus
JP7626969B2 (en) Image processing device and computer program
JP2019177512A (en) Control device and computer program
US8619323B2 (en) Image processing apparatus and image processing method for processing multivalued image data and recording an image in a pixel area on recording medium by a plurality of relative scans of recording head and recording medium
JP7492195B2 (en) Control device, computer program
JP7486017B2 (en) Printing device and computer program
EP1895760B1 (en) Image forming apparatus and image forming method
JP2005205685A (en) Image processing apparatus and image processing method
US8625164B2 (en) Image forming apparatus and method, computer program, and recording medium using density signal and look-up table
JP2021053895A (en) Control device, computer program and method
JP7528722B2 (en) Control device, computer program
JP7839448B2 (en) Image processing apparatus, computer program, and method
JP3864901B2 (en) Image processing apparatus and image processing method for converting the number of gradations of image data
JP2010068497A (en) Image processor, image processing method, program, recording medium, printing system, and image forming apparatus
JP7413889B2 (en) Image processing method and image processing device
CN113002177B (en) Method of producing ink jet printer, and ink jet printer
JP7464906B2 (en) Printing device and computer program
JP2020028988A (en) Image processing apparatus and computer program
JP5845688B2 (en) Image forming apparatus, image forming method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230707

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240529

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20240723

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240911

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20241225

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250107

R150 Certificate of patent or registration of utility model

Ref document number: 7626969

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150