JP7621135B2 - Image Processing Device - Google Patents
Image Processing Device Download PDFInfo
- Publication number
- JP7621135B2 JP7621135B2 JP2021029398A JP2021029398A JP7621135B2 JP 7621135 B2 JP7621135 B2 JP 7621135B2 JP 2021029398 A JP2021029398 A JP 2021029398A JP 2021029398 A JP2021029398 A JP 2021029398A JP 7621135 B2 JP7621135 B2 JP 7621135B2
- Authority
- JP
- Japan
- Prior art keywords
- value
- data
- density
- image data
- error diffusion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Ink Jet (AREA)
- Particle Formation And Scattering Control In Inkjet Printers (AREA)
Description
本発明は、画像データに対してハーフトーン処理を施す画像処理装置に関するものである。 The present invention relates to an image processing device that performs halftone processing on image data.
従来、搬送経路上を搬送される印刷媒体に対して、インクジェットヘッドからインクを吐出して印刷処理を行うインクジェット印刷装置が提案されている。 Conventionally, inkjet printing devices have been proposed that perform printing processes by ejecting ink from an inkjet head onto a print medium transported along a transport path.
このようなインクジェット印刷装置では、インクジェットヘッドの直下において印刷媒体が搬送されることにより気流が発生する。 In such inkjet printing devices, air currents are generated when the print medium is transported directly below the inkjet head.
また、インクジェットヘッドのノズルからインクが連続吐出されると、そのインク液滴は自己気流を伴い吐出され、この自己気流は、上述した印刷媒体の搬送による気流を遮る壁のように作用する。そして、印刷媒体の搬送により発生した気流が、自己気流の壁にぶつかり、複雑に気流が乱れることがある。この乱気流により、インクジェットヘッドから吐出されたインクの着弾位置が、所望の位置からずれてしまうことがあり、これにより、いわゆる風紋ムラと呼ばれる濃度ムラが生じる場合があった。 In addition, when ink is continuously ejected from the nozzles of an inkjet head, the ink droplets are ejected accompanied by their own air currents, which act like a wall blocking the air current caused by the transport of the print medium described above. The air current generated by the transport of the print medium may then collide with the wall of the own air current, causing complex turbulence in the air current. This turbulence may cause the landing position of the ink ejected from the inkjet head to deviate from the desired position, which may result in density unevenness known as wind ripples.
この濃度ムラを補正する方法として、特許文献1においては、画像データが高解像度であり、かつ濃度が所定範囲である場合、自己気流の発生度合いに応じて画像データの解像度を低解像度に変換し、風紋ムラを目立たなくする方法が提案されている。 As a method for correcting this density unevenness, Patent Document 1 proposes a method in which, when the image data is high resolution and the density is within a predetermined range, the resolution of the image data is converted to a low resolution depending on the degree of self-generated air currents, making the wind ripple unevenness less noticeable.
しかしながら、特許文献1に記載の方法では、元から画像データが低解像度である場合には適用することができない。また、特許文献1に記載の方法では、低解像度に変換された領域ではインクの液滴サイズが大きくなるため粒状性が低下し、さらに画像データの解像度を低解像度に切り替える境界領域でトーンジャンプが生じてしまうといった問題がある。トーンジャンプとは、本来滑らかなグラデーション部分の階調が急激に変化して縞模様のようにみえる現象である。 However, the method described in Patent Document 1 cannot be applied when the image data is originally low resolution. In addition, the method described in Patent Document 1 has problems such as reduced graininess due to the larger ink droplet size in areas converted to low resolution, and tone jumps occurring in boundary areas where the image data resolution is switched to low resolution. Tone jumps are a phenomenon in which the gradation of an area that is originally smooth changes abruptly, resulting in the appearance of striped patterns.
本発明は、上記事情に鑑み、粒状性の低下やトーンジャンプを招くことなく、低解像度の画像データであっても風紋ムラを抑制することができる画像処理装置を提供することを目的とする。 In view of the above circumstances, the present invention aims to provide an image processing device that can suppress wind ripple unevenness even in low-resolution image data without causing a decrease in graininess or tone jumps.
本発明の画像処理装置は、画像データを受け付ける画像データ受付部と、画像データに対してハーフトーン処理を施して少なくとも3値以上に変換して多値化データを生成するハーフトーン処理部とを備え、ハーフトーン処理部が、画像データを構成する全ての画素が最大値に変換される場合を除き、必ずゼロ値を含むようにハーフトーン処理を施す。 The image processing device of the present invention includes an image data receiving unit that receives image data, and a halftone processing unit that performs halftone processing on the image data to convert it to at least three values and generate multi-value data, and the halftone processing unit performs halftone processing so that the zero value is always included, except when all pixels constituting the image data are converted to maximum values.
本発明の画像処理装置によれば、画像データに対してハーフトーン処理を施して少なくとも3値以上に変換して多値化データを生成する際、画像データを構成する全ての画素が最大値に変換される場合を除き、必ずゼロ値を含むようにハーフトーン処理を施すことによって風紋ムラを抑制するようにしたので、粒状性の低下やトーンジャンプを招くことなく、低解像度の画像データであっても風紋ムラを抑制することができる。 According to the image processing device of the present invention, when image data is subjected to halftone processing to convert it to at least three values and generate multi-value data, the halftone processing is always performed to include zero values, except in cases where all pixels constituting the image data are converted to maximum values, thereby suppressing wind ripple unevenness. This makes it possible to suppress wind ripple unevenness even in low-resolution image data without reducing granularity or causing tone jumps.
以下、図面を参照して本発明の画像処理装置の第1の実施形態を用いたインクジェット印刷装置1について詳細に説明する。図1は、本実施形態のインクジェット印刷装置1の概略構成図である。 The following describes in detail an inkjet printing device 1 using a first embodiment of the image processing device of the present invention with reference to the drawings. Figure 1 is a schematic diagram of the inkjet printing device 1 of this embodiment.
インクジェット印刷装置1は、コンピュータから出力された画像データまたは原稿読取装置から出力された画像データに基づいて、紙やフィルムなどといったシート状の印刷媒体に対してインクを吐出して印刷処理を行う。インクジェット印刷装置1は、図1に示すように、画像処理部10、ヘッド駆動制御部20、インクジェットヘッド部30、搬送部40および制御部50を備えている。 The inkjet printing device 1 performs printing processing by ejecting ink onto a sheet-like printing medium such as paper or film based on image data output from a computer or image data output from a document reading device. As shown in FIG. 1, the inkjet printing device 1 includes an image processing unit 10, a head drive control unit 20, an inkjet head unit 30, a transport unit 40, and a control unit 50.
画像処理部10は、コンピュータまたは原稿読取装置から出力された画像データを受け付け、その画像データに対して種々の処理を施す。本実施形態においては、画像処理部10が、本発明の画像処理装置の一実施形態に相当する。画像処理部10は、CPU(Central Processing Unit)および半導体メモリなどを備える。なお、画像処理部10のCPUおよび半導体メモリは、後述する制御部50と共通であってもよいし、別個に設けるようにしてもよい。 The image processing unit 10 receives image data output from a computer or a document reading device, and performs various processes on the image data. In this embodiment, the image processing unit 10 corresponds to one embodiment of the image processing device of the present invention. The image processing unit 10 includes a CPU (Central Processing Unit) and a semiconductor memory. The CPU and semiconductor memory of the image processing unit 10 may be shared with the control unit 50 described below, or may be provided separately.
画像処理部10は、半導体メモリまたはハードディスクなどの記憶媒体に予め記憶された画像処理プログラムを実行し、かつ電気回路を動作させることによって、後述する各部の処理を行う。 The image processing unit 10 executes an image processing program stored in advance in a storage medium such as a semiconductor memory or a hard disk, and operates electrical circuits to perform the processing of each unit described below.
画像処理部10は、図2に示すように、画像データ受付部11、色変換部12およびハーフトーン処理部13を備えている。 As shown in FIG. 2, the image processing unit 10 includes an image data receiving unit 11, a color conversion unit 12, and a halftone processing unit 13.
画像データ受付部11は、コンピュータまたは原稿読取装置から出力されたRGB形式の画像データを受け付け、色変換部12に出力する。 The image data receiving unit 11 receives image data in RGB format output from a computer or document reading device, and outputs it to the color conversion unit 12.
色変換部12は、RGB形式の画像データをCMYK形式の画像データに変換し、ハーフトーン処理部13に出力する。 The color conversion unit 12 converts the image data in RGB format into image data in CMYK format and outputs it to the halftone processing unit 13.
ハーフトーン処理部13は、色変換部12から出力されたC、M、YおよびKの各画像データに対してハーフトーン処理を施して、少なくとも3値以上に変換して多値化データを生成する。本実施形態の多値化データは、印刷画像の1つのドットを形成するためにインクジェットヘッドの1つのノズルから吐出されるインクドロップの数を規定したデータであり、インクドロップデータともいう。 The halftone processing unit 13 performs halftone processing on the C, M, Y, and K image data output from the color conversion unit 12, converting the data into at least three values to generate multi-value data. The multi-value data in this embodiment is data that specifies the number of ink drops ejected from one nozzle of the inkjet head to form one dot of the print image, and is also called ink drop data.
第1の実施形態のハーフトーン処理部13は、ディザ法を用いたハーフトーン処理を行うものであり、上述した風紋ムラを抑制するハーフトーン処理を行う。本実施形態のハーフトーン処理部13は、画像データを構成する全ての画素が最大値(最大ドロップ数)に変換される場合を除き、必ずゼロ値を含むようにハーフトーン処理を施すものであるが、その具体的な処理方法については、後で詳述する。 The halftone processing unit 13 of the first embodiment performs halftone processing using a dithering method, which suppresses the wind ripple unevenness described above. The halftone processing unit 13 of this embodiment performs halftone processing so that zero values are always included, except when all pixels constituting the image data are converted to their maximum values (maximum drop number), and the specific processing method will be described in detail later.
なお、画像処理部10は、上述した処理に限らず、その他にガンマ補正処理やエッジ強調処理などの種々の公知な画像処理を行う。 In addition to the above-mentioned processing, the image processing unit 10 also performs various other well-known image processing such as gamma correction processing and edge enhancement processing.
ヘッド駆動制御部20は、ハーフトーン処理部13で生成された各色のインクドロップデータに基づいて、インクジェットヘッド部30を駆動させて各色のインクジェットヘッドの各ノズルからインクを吐出させる。 The head drive control unit 20 drives the inkjet head unit 30 based on the ink drop data for each color generated by the halftone processing unit 13 to eject ink from each nozzle of the inkjet head for each color.
インクジェットヘッド部30は、C、M、YおよびKの各色のインクを吐出する複数のインクジェットヘッドを備えている。各インクジェットヘッドは、上述したとおり各色のインクドロップデータに基づいてヘッド駆動制御部20によって制御されてインクを印刷媒体に対して吐出し、印刷媒体上に印刷画像を形成する。 The inkjet head unit 30 is equipped with multiple inkjet heads that eject ink of each color, C, M, Y, and K. As described above, each inkjet head is controlled by the head drive control unit 20 based on the ink drop data for each color to eject ink onto the print medium and form a print image on the print medium.
搬送部40は、印刷媒体をインクジェットヘッド部30まで搬送する搬送機構を備える。 The transport unit 40 has a transport mechanism that transports the print medium to the inkjet head unit 30.
制御部50は、CPUおよび半導体メモリなどを備え、インクジェット印刷装置1全体を制御する。制御部50は、半導体メモリまたはハードディスクなどの記憶媒体に予め記憶された制御プログラムを実行し、かつ電気回路を動作させることによって、インクジェット印刷装置1の各部の動作を制御するものである。 The control unit 50 includes a CPU, a semiconductor memory, and the like, and controls the entire inkjet printing device 1. The control unit 50 executes a control program prestored in a storage medium such as a semiconductor memory or a hard disk, and controls the operation of each part of the inkjet printing device 1 by operating an electric circuit.
次に、本実施形態のインクジェット印刷装置1のハーフトーン処理を説明する前に、既存のハーフトーン処理について、図3の概念図を参照しながら説明する。なお、ここでは、1つの印字ドットに吐出されるインクの最大ドロップ数が3ドロップの場合について説明する。また、ここで説明する既存のハーフトーン処理もディザ法を用いたハーフトーン処理であり、4×4のディザマトリクスを用いたハーフトーン処理である。 Before describing the halftone process of the inkjet printing device 1 of this embodiment, we will next describe existing halftone processes with reference to the conceptual diagram of FIG. 3. Note that we will describe a case where the maximum number of drops of ink ejected per print dot is three drops. The existing halftone process described here is also a halftone process that uses a dither method, and is a halftone process that uses a 4x4 dither matrix.
図3(1)~(49)は、画像データ内の所定の4×4の画素に対して、既存のハーフトーン処理を施した結果を示す図であり、印刷濃度が最低濃度(ゼロ)から最大濃度まで変化する場合におけるハーフトーン処理結果を示している。括弧内の番号が増加するにつれて印刷濃度が1段階ずつ増加する。図3(1)~(49)の各図の1つのマス目が1画素を示している。 Figures 3 (1) to (49) show the results of applying existing halftone processing to a specific 4 x 4 pixel in image data, and show the results of halftone processing when the print density varies from minimum density (zero) to maximum density. As the number in parentheses increases, the print density increases by one step. Each square in Figures 3 (1) to (49) represents one pixel.
図3(1)~(17)は、印刷濃度がゼロから17段階目まで変化する場合のハーフトーン処理結果を示している。図3(1)~(17)に示すように、印刷濃度がゼロから17段階目まで変化する場合には、印刷濃度が1段階上がるごとに、インクのドロップ数「1」を示す「1」のデータが、ディザマトリクスの各ディザ閾値の分布にしたがって1つずつ追加される。そして、印刷濃度が17段階の場合には、全ての画素が「1」のデータとなる。 Figures 3 (1) to (17) show the results of halftone processing when the print density changes from zero to 17 levels. As shown in Figures 3 (1) to (17), when the print density changes from zero to 17 levels, each time the print density increases by one level, data "1" indicating the number of ink drops "1" is added one by one according to the distribution of each dither threshold value in the dither matrix. And when the print density is at 17 levels, all pixels become data "1".
次いで、図3(18)~(33)に示すように、印刷濃度が18段階から33段階までは、全ての画素が「1」のデータの状態から、印刷濃度が1段階上がるごとに、インクのドロップ数「2」を示す「2」のデータが、ディザマトリクスの各ディザ閾値の分布にしたがって1つずつ追加される。そして、印刷濃度が33段階の場合には、全ての画素が「2」のデータとなる。 Next, as shown in Figure 3 (18) to (33), for print density levels 18 to 33, all pixels start out with data "1," and for each step of increase in print density, data "2," indicating the number of ink drops "2," is added one at a time according to the distribution of each dither threshold value in the dither matrix. Then, when the print density is at 33 steps, all pixels become data "2."
次いで、図3(34)~(49)に示すように、印刷濃度が34段階から49段階までは、全ての画素が「2」のデータの状態から、印刷濃度が1段階上がるごとに、インクのドロップ数「3」を示す「3」のデータが、ディザマトリクスの各ディザ閾値の分布にしたがって1つずつ追加される。そして、印刷濃度が49段階の場合には、全ての画素が「3」のデータとなる。すなわち、全ての画素が最大値(最大ドロップ数)となる。 Next, as shown in Figure 3 (34) to (49), for print density levels 34 to 49, all pixels start out with data "2," and for each step of print density increase, data "3" indicating the number of ink drops "3" is added one by one according to the distribution of each dither threshold value in the dither matrix. Then, when the print density is at 49 levels, all pixels have data "3." In other words, all pixels are at the maximum value (maximum number of drops).
上述したように、既存のハーフトーン処理の場合、印刷濃度が17段階の時点で全ての画素が0以外のデータとなり、印刷濃度が18段階以降は、「2」または「3」のデータが順次追加される。すなわち、印刷濃度が17段階以降は、画素と画素の間にゼロ値が含まれないことになるので、常に印字ドット密度が高い状態であるため、上述したインク吐出による自己気流が発生しやすい状態であり、風紋ムラが発生しやすい。 As mentioned above, in the case of existing halftone processing, when the print density reaches level 17, all pixels have data other than 0, and when the print density reaches level 18 and above, data of "2" or "3" is added sequentially. In other words, when the print density reaches level 17 and above, there are no zero values between pixels, so the print dot density is always high, making it easy for the self-current caused by the ink ejection mentioned above to occur, and wind ripples to easily occur.
次に、本実施形態のインクジェット印刷装置1のハーフトーン処理の概念について、図4を参照しながら説明する。なお、ここでも、1つの印字ドットに吐出されるインクの最大ドロップ数が3ドロップの場合について説明する。また、ここで説明する本実施形態のハーフトーン処理も4×4のディザマトリクスを用いたハーフトーン処理である。 Next, the concept of halftone processing in the inkjet printing device 1 of this embodiment will be explained with reference to FIG. 4. Note that here too, the explanation will be given for the case where the maximum number of drops of ink ejected per print dot is three drops. The halftone processing of this embodiment explained here also uses a 4x4 dither matrix.
図4(1)~(37)は、画像データ内の所定の4×4の画素に対して、本実施形態のハーフトーン処理を施した結果を示す図であり、印刷濃度が最低濃度(ゼロ)から最大濃度まで変化する場合におけるハーフトーン処理結果を示している。括弧内の番号が増加するにつれて印刷濃度が1段階ずつ増加する。なお、ここでは、説明を分かりやすくするため、4×4の画素は全て同じ濃度であることを想定している。 Figures 4 (1) to (37) show the results of applying halftone processing of this embodiment to a specific 4x4 pixel in image data, and show the results of halftone processing when the print density changes from the minimum density (zero) to the maximum density. As the number in parentheses increases, the print density increases by one step. Note that, for ease of explanation, it is assumed here that all 4x4 pixels have the same density.
本実施形態のハーフトーン処理では、まず、印刷濃度の増加に応じて、インクドロップ数「1」を順次追加するが、ゼロ値が残った状態で「1」のデータの追加を停止する。すなわちゼロ値の画素の数が所定の画素数となった段階で「1」のデータの追加を停止する。 In the halftone process of this embodiment, first, the number of ink drops "1" is sequentially added in accordance with the increase in print density, but the addition of "1" data is stopped when a zero value remains. In other words, the addition of "1" data is stopped when the number of zero-value pixels reaches a predetermined number of pixels.
次いで、印刷濃度の増加に応じて、「2」のデータを順次追加するが、この際、「1」のデータを配置した際の配置ルールと同じルールで配置する。そして、ゼロ値が残った状態で「2」のデータの追加を停止する。さらに、印刷濃度の増加に応じて、「3」のデータを順次追加するが、この際、「2」のデータを配置した際の配置ルールと同じルールで配置する。そして、印刷濃度が最大濃度となるまでは、ゼロ値が残った状態とし、印刷濃度が最大濃度の時点で全ての画素が最大値(「3」のデータ)となるようにする。以下、図4を参照しながら、より具体的に説明する。 Next, as the print density increases, data "2" is added sequentially, but is arranged according to the same arrangement rules as when data "1" was arranged. Then, the addition of data "2" is stopped when zero values remain. Furthermore, as the print density increases, data "3" is added sequentially, but is arranged according to the same arrangement rules as when data "2" was arranged. Then, zero values remain until the print density reaches its maximum density, at which point all pixels become their maximum value (data "3"). A more detailed explanation will be given below with reference to Figure 4.
図4(1)~(9)は、印刷濃度がゼロから9段階目まで変化する場合のハーフトーン処理結果を示している。図4(1)~(9)に示すように、印刷濃度がゼロから9段階目まで変化する場合には、濃度が1段階上がるごとに、インクのドロップ数「1」を示す「1」のデータが、ディザマトリクスの各ディザ閾値の分布にしたがって1つずつ追加される。そして、上述したようにゼロ値を残した状態で「1」のデータの追加を停止するが、ここでは印刷濃度が9段階の時点で「1」のデータの追加を停止している。「1」のデータの追加を停止する印刷濃度については、9段階に限らず、風紋ムラを抑制できる段階に設定される。 Figures 4 (1) to (9) show the halftone process results when the print density changes from zero to ninth level. As shown in Figures 4 (1) to (9), when the print density changes from zero to ninth level, data "1" indicating the number of ink drops "1" is added one by one according to the distribution of each dither threshold value of the dither matrix for each increase in density level. Then, as described above, the addition of "1" data is stopped while leaving zero values, but here the addition of "1" data is stopped when the print density reaches the ninth level. The print density at which the addition of "1" data is stopped is not limited to nine levels, but is set to a level at which wind ripples can be suppressed.
次に、図4(10)~(21)に示すように、印刷濃度が10段階から21段階までは、「1」または「0」のデータが「2」のデータに置き換えられる。 Next, as shown in Figure 4 (10) to (21), for print density levels 10 to 21, data "1" or "0" is replaced with data "2."
まず、図4(10)~(17)に示すように、印刷濃度が10段階から17段階までは、たとえば印刷濃度がゼロから9段階まで変化する場合の「0」のデータの配置ルールと同じ配置ルールが用いられて「1」のデータが「2」のデータに置き換えられる。これにより、9段階のゼロ値の数を維持した状態で「1」のデータを「2」のデータに置き換えることができる。 First, as shown in Figure 4 (10) to (17), for print density levels 10 to 17, data "1" is replaced with data "2" using the same arrangement rule as the data "0" arrangement rule when the print density changes from zero to nine levels. This makes it possible to replace data "1" with data "2" while maintaining the number of zero values in the nine levels.
したがって、風紋ムラの抑制効果を維持した状態とすることができるとともに、印刷濃度階調を滑らかにすることができるのでトーンジャンプを抑制することができる。 As a result, it is possible to maintain the effect of suppressing wind ripples while also smoothing the print density gradation, thereby suppressing tone jumps.
次に、図4(18)~(21)に示すように、印刷濃度が18段階から21段階までは、ディザマトリクスの各ディザ閾値の分布にしたがって、「0」のデータが「2」のデータに置き換えられる。そして、本実施形態のハーフトーン処理では、上述したようにゼロ値を残した状態で「2」のデータの追加を停止するが、ここでは印刷濃度が21段階の時点で「2」のデータの追加を停止している。「2」のデータの追加を停止する印刷濃度については、21段階に限らず、風紋ムラを抑制できる段階に設定される。 Next, as shown in Figure 4 (18) to (21), for print densities from 18 to 21, data "0" is replaced with data "2" according to the distribution of each dither threshold value in the dither matrix. In the halftone process of this embodiment, the addition of data "2" is stopped while leaving zero values as described above, but here the addition of data "2" is stopped when the print density reaches 21. The print density at which the addition of data "2" is stopped is not limited to 21, but is set to a level at which wind ripples can be suppressed.
なお、「2」のデータの追加を停止した時点におけるゼロ値の数は、上述した「1」のデータの追加を停止した時点におけるゼロ値の数よりも少なくすることができる。これは、インクドロップ数が増加するほどインク液滴のサイズが大きくなることによって、印刷面においてインクドット間の隙間が小さい、あるいは重なっているため、気流の影響を受けて着弾位置がずれても、風紋ムラを生じにくいからである。 The number of zero values at the time when the addition of the data "2" is stopped can be made smaller than the number of zero values at the time when the addition of the data "1" described above is stopped. This is because the size of the ink droplets increases as the number of ink drops increases, and therefore the gaps between the ink dots on the printing surface are small or overlap, so that even if the landing position is shifted due to the influence of air currents, wind ripples are less likely to occur.
そして、このように「2」のデータの追加を停止した時点におけるゼロ値の数を、「1」のデータの追加を停止した時点におけるゼロ値の数よりも少なくすることによって、すなわち多値化データが大きくなるほど、多値化データ全体に含まれるゼロ値の割合が減少するようにハーフトーン処理を施すことによって、印刷濃度階調を増加させることができ、印刷画像の画質を向上させることができる。 In this way, by making the number of zero values at the time when the addition of data "2" is stopped less than the number of zero values at the time when the addition of data "1" is stopped, in other words, by performing halftone processing so that the proportion of zero values contained in the entire multi-value data decreases as the multi-value data becomes larger, the print density gradation can be increased and the image quality of the printed image can be improved.
次いで、図4(22)~(37)に示すように、印刷濃度が22段階から37段階までは、「2」または「0」のデータが「3」のデータに置き換えられる。 Next, as shown in Figure 4 (22) to (37), for print density levels 22 to 37, data "2" or "0" is replaced with data "3."
まず、図4(22)~(33)に示すように、印刷濃度が22段階から33段階までは、21段階の「2」のデータを維持した状態から、たとえば印刷濃度が10段階から21段階まで変化する場合の「2」のデータの配置ルールと同じ配置ルールが用いられて「2」のデータが「3」のデータに置き換えられる。これにより、21段階のゼロ値の数を維持した状態で「2」のデータを「3」のデータに置き換えることができる。 First, as shown in Figure 4 (22) to (33), when the print density is from 22 to 33 levels, the data "2" is replaced with data "3" using the same arrangement rule as the arrangement rule for data "2" when the print density changes from, for example, 10 to 21 levels, while maintaining the data "2" in 21 levels, as shown in Figure 4 (22) to (33). This makes it possible to replace data "2" with data "3" while maintaining the number of zero values in 21 levels.
したがって、風紋ムラの抑制効果を維持した状態とすることができるとともに、印刷濃度階調を滑らかにすることができるのでトーンジャンプを抑制することができる。 As a result, it is possible to maintain the effect of suppressing wind ripples while also smoothing the print density gradation, thereby suppressing tone jumps.
次に、図4(34)~(37)に示すように、印刷濃度が34段階から37段階までは、ディザマトリクスの各ディザ閾値の分布にしたがって、「0」のデータが「3」のデータに置き換えられる。そして、印刷濃度が最大濃度となるまでは、ゼロ値が残った状態とし、印刷濃度が最大濃度の時点で全ての画素が最大値(「3」のデータ)となるようにする。 Next, as shown in Figure 4 (34) to (37), for print density levels 34 to 37, data "0" is replaced with data "3" according to the distribution of each dither threshold value of the dither matrix. Then, zero values remain until the print density reaches its maximum density, at which point all pixels become the maximum value (data "3").
図4(1)~(37)に示すように、本実施形態のハーフトーン処理部13は、画像データを構成する全ての画素が最大値に変換される場合(図4(37)の場合)を除き、必ずゼロ値を含むようにハーフトーン処理を施す。これにより、既存のハーフトーン処理よりも印字ドット密度が低い状態とすることができるため、上述したインク吐出による自己気流を発生し難くすることができ、風紋ムラを抑制することができる。また、粒状性の低下やトーンジャンプを招くことなく、低解像度の画像データであっても風紋ムラを抑制することができる。 As shown in Figures 4 (1) to (37), the halftone processing unit 13 of this embodiment performs halftone processing so that it always includes zero values, except when all pixels that make up the image data are converted to maximum values (as in Figure 4 (37)). This makes it possible to achieve a lower print dot density than with existing halftone processing, making it less likely for the self-generated airflow caused by the ink ejection described above to occur, and making it possible to suppress wind ripple unevenness. In addition, wind ripple unevenness can be suppressed even with low-resolution image data, without reducing granularity or incurring tone jumps.
また、図4(1)~(9)に示したように、「0」のデータを「1」のデータに変換する際、「1」のデータの画素に「0」のデータの画素を隣接させるとともに、「1」のデータの画素が上下左右方向に2画素以上連続しないようにすることが好ましい。ただし、「0」のデータと「1」のデータの配置については、画像データの各画素の濃度に依存する。そこで、たとえばハーフトーン処理において、ディザマトリクスを用いて画像データの各画素を「0」および「1」のデータに変換した後、「1」のデータが上下方向または左右方向に2画素以上連続する部分を検出し、その検出した部分の「1」のデータを「0」のデータに変換する処理をさらに行うことによって、「1」のデータの画素が上下左右方向に2画素以上連続しないようにしてもよい。これにより、画像データに依存することなく、印字ドット密度が低い状態を維持することができる。 As shown in Fig. 4 (1) to (9), when converting data "0" to data "1", it is preferable to make the pixels of data "0" adjacent to the pixels of data "1" and to make sure that the pixels of data "1" do not overlap by more than two pixels in the vertical and horizontal directions. However, the arrangement of data "0" and data "1" depends on the density of each pixel of the image data. Therefore, for example, in halftone processing, after converting each pixel of the image data to data "0" and "1", it is possible to detect the part where data "1" overlaps by more than two pixels in the vertical or horizontal directions and to further convert the data of "1" in the detected part to data of "0", so that the pixels of data "1" do not overlap by more than two pixels in the vertical and horizontal directions. This makes it possible to maintain a low print dot density without depending on the image data.
次に、本実施形態のハーフトーン処理の演算処理の概略について、図5に示すフローチャートを参照しながら説明する。 Next, the outline of the calculation process for the halftone process of this embodiment will be explained with reference to the flowchart shown in FIG.
まず、ハーフトーン処理部13は、画像データを構成する画素のy座標をy=0に設定し(S10)、x座標をx=0に設定する(S12)。なお、画像データを構成する画素のx座標およびy座標はゼロが初期値である。 First, the halftone processing unit 13 sets the y coordinate of the pixel that constitutes the image data to y = 0 (S10) and sets the x coordinate to x = 0 (S12). Note that the initial values of the x and y coordinates of the pixel that constitutes the image data are zero.
そして、S10およびS12で設定したx座標およびy座標の位置の画素の濃度データdata[x][y]と、そのx座標およびy座標の位置に対応するディザマトリクスDthのディザ閾値dthを取得する(S14)。ディザマトリクスDthにおけるディザ閾値dthの位置は、たとえばdata[x][y]のx座標をディザマトリクスDthのx方向のサイズで除算した余りと、y座標をディザマトリクスのy方向のサイズで除算した余りを算出することによって求められる。なお、ディザマトリクスDthおよびディザ閾値dthについては、後で詳述する。 Then, the density data data[x][y] of the pixel at the x-coordinate and y-coordinate position set in S10 and S12 and the dither threshold dth of the dither matrix Dth corresponding to the x-coordinate and y-coordinate position are obtained (S14). The position of the dither threshold dth in the dither matrix Dth can be found, for example, by calculating the remainder when the x-coordinate of data[x][y] is divided by the size of the dither matrix Dth in the x-direction, and the remainder when the y-coordinate is divided by the size of the dither matrix Dth in the y-direction. The dither matrix Dth and the dither threshold dth will be described in detail later.
そして、ハーフトーン処理部13は、S14で求めた濃度データdata[x][y]とディザ閾値dthを用いて演算処理を実行することによって、濃度データdata[x][y]に対応する多値化データ(インクドロップデータ)を算出する(S16)。なお、ここでの具体的な演算処理については、後で詳述する。 Then, the halftone processing unit 13 performs a calculation process using the density data data[x][y] obtained in S14 and the dither threshold dth to calculate multi-value data (ink drop data) corresponding to the density data data[x][y] (S16). The specific calculation process will be described in detail later.
次いで、ハーフトーン処理部13は、x座標を1インクリメントし(S18)、そのxの値が、画像データのx方向のサイズ(x_size)よりも小さい場合には(S20,YES)、S14~S18の処理を繰り返して行う。 Next, the halftone processing unit 13 increments the x coordinate by 1 (S18), and if the x value is smaller than the size of the image data in the x direction (x_size) (S20, YES), repeats the processes of S14 to S18.
そして、ハーフトーン処理部13は、S20において、x≧x_sizeである場合には(S20,NO)、y座標を1インクリメントし(S22)、そのyの値が、画像データのy方向のサイズ(y_size)よりも小さい場合には(S24,YES)、S12~S22の処理を繰り返して行う。 Then, in S20, if x≧x_size (S20, NO), the halftone processing unit 13 increments the y coordinate by 1 (S22), and if the y value is smaller than the size of the image data in the y direction (y_size) (S24, YES), it repeats the processes of S12 to S22.
そして、ハーフトーン処理部13は、S24において、y≧y_sizeとなった時点で(S24,NO)、処理を終了する。これにより、画像データを構成する全ての画素について、多値化データ(インクドロップデータ)を求めることができる。 Then, in S24, the halftone processing unit 13 ends the process when y≧y_size (S24, NO). This makes it possible to obtain multi-value data (ink drop data) for all pixels that make up the image data.
次に、本実施形態のハーフトーン処理における図5のS16の演算処理について具体的に説明する。ここでは、画像データの各画素の濃度データを0~255とし、図4で示したように、ハーフトーン処理を施すことによって0~3の多値化データに変換するものとする。 Next, the calculation process of S16 in FIG. 5 in the halftone process of this embodiment will be specifically described. Here, the density data of each pixel in the image data is set to 0 to 255, and as shown in FIG. 4, it is converted into multi-value data of 0 to 3 by applying halftone process.
まず、本実施形態のハーフトーン処理において用いられる濃度閾値ThとディザマトリクスDthについて説明する。本実施形態においては、図6に示すように、0~255の濃度範囲を3つの範囲に区分する。なお、図6の横軸は濃度データであり、縦軸は印刷濃度である。そして、その区分の境界の値を濃度閾値Th[0]、Th[1]、Th[2]、Th[3]とする。Th[0]=0であり、Th[3]=255である。Th[1]は、ハーフトーン処理によって「1」のデータを追加する印刷濃度範囲を決定する値であり、図4で示す0段階から9段階までの印刷濃度範囲を決定する値である。すなわち、「1」のデータの追加を停止する印刷濃度である。たとえばTh[1]=30が設定される。Th[1]を大きくした場合には、「1」のデータの密度が高くなり、すなわち印字ドット密度が高くなり風紋ムラを生じ、Th[1]が小さくした場合には、風紋ムラは生じなくなるが、小さいドットが少なくなり、粒状感が大きくなるので、Th[1]は、実験などによって風紋ムラと粒状感のバランスの取れた値に設定する。 First, the density threshold Th and dither matrix Dth used in the halftone process of this embodiment will be described. In this embodiment, as shown in FIG. 6, the density range of 0 to 255 is divided into three ranges. Note that the horizontal axis of FIG. 6 is density data, and the vertical axis is print density. The boundary values of the divisions are density thresholds Th[0], Th[1], Th[2], and Th[3]. Th[0] = 0, and Th[3] = 255. Th[1] is a value that determines the print density range in which data "1" is added by halftone process, and is a value that determines the print density range from 0 to 9 levels shown in FIG. 4. In other words, it is the print density at which the addition of data "1" stops. For example, Th[1] = 30 is set. If Th[1] is increased, the density of "1" data will increase, i.e. the print dot density will increase and wind ripple unevenness will occur. If Th[1] is decreased, wind ripple unevenness will not occur, but there will be fewer small dots and the graininess will increase, so Th[1] should be set to a value that strikes a good balance between wind ripple unevenness and graininess through experimentation, etc.
Th[2]は、ハーフトーン処理によって「2」のデータを追加する印刷濃度範囲を決定する値であり、図4で示す10段階から21段階までの印刷濃度範囲を決定する値である。すなわち、「2」のデータの追加を停止する印刷濃度である。たとえばTh[2]=110が設定される。Th[2]についても、Th[1]と同様に、実験などによって風紋ムラと粒状感のバランスの取れた値に設定する。 Th[2] is a value that determines the print density range in which data "2" is added by halftone processing, and is a value that determines the print density range from 10 levels to 21 levels shown in Figure 4. In other words, it is the print density at which the addition of data "2" stops. For example, Th[2] = 110 is set. As with Th[1], Th[2] is also set to a value that strikes a good balance between wind ripple unevenness and graininess through experiments, etc.
そして、本実施形態では、Th[0]~Th[1]を濃度範囲指標m=0とし、Th[1]~Th[2]を濃度範囲指標m=1とし、Th[2]~Th[3]を濃度範囲指標m=2とする。濃度範囲指標m=0~2については、後の具体的な演算処理の説明で使用する。 In this embodiment, Th[0] to Th[1] are set as concentration range index m=0, Th[1] to Th[2] are set as concentration range index m=1, and Th[2] to Th[3] are set as concentration range index m=2. The concentration range index m=0 to 2 will be used later in the explanation of the specific calculation process.
次に、本実施形態では、画像データの3つの濃度範囲に応じて、3つのディザマトリクスDth[1]、Dth[2]およびDth[3]を用いてハーフトーン処理を行う。
ディザマトリクスDth[1]は、第1の濃度範囲0~105の画像データをハーフトーン処理によって「0」または「1」のデータに変換するディザマトリクスである。ディザマトリクスDth[1]は、ブルーノイズマスクからなるディザマトリクスを第1の濃度範囲0~105の濃度値で正規化することによって取得される。たとえばブルーノイズマスクからなるディザマトリクスの1つの閾値をdthとし、ディザマトリクスDth[1]の対応する1つの閾値をdth[1]とした場合、下式によって算出される。なお、本実施形態では、ブルーノイズマスクからなるディザマトリクスを用いるようにしたが、網点型のディザマトリクスを用いるようにしてもよい。
dth[1]=(第1の正規化値×dth)/256
Next, in this embodiment, halftone processing is performed using three dither matrices Dth[1], Dth[2], and Dth[3] in accordance with the three density ranges of the image data.
The dither matrix Dth[1] is a dither matrix that converts image data in the first density range 0 to 105 into data of "0" or "1" by halftone processing. The dither matrix Dth[1] is obtained by normalizing the dither matrix made of a blue noise mask with density values in the first density range 0 to 105. For example, when one threshold value of the dither matrix made of a blue noise mask is dth and one corresponding threshold value of the dither matrix Dth[1] is dth[1], it is calculated by the following formula. Note that, although a dither matrix made of a blue noise mask is used in this embodiment, a halftone dot type dither matrix may also be used.
dth[1]=(first normalized value×dth)/256
また、上式の第1の正規化値は、ドットが密になる速度を制御する値である。たとえば第1の正規化値を256とすると、dthが10、100の場合、dth[1]は10、100となるが、第1の正規化を128とすると、dth[1]は5、50と閾値が小さくなり、より印字されやすくなる。つまり、これは、第1の正規化値が小さいほど密になる速度が速くなることを意味する。本実施形態においては、第1の正規化値として105を設定する。 The first normalization value in the above formula is a value that controls the speed at which the dots become denser. For example, if the first normalization value is 256, and dth is 10 and 100, then dth[1] will be 10 and 100, but if the first normalization value is 128, then dth[1] will be 5 and 50, which is a smaller threshold value and makes it easier to print. In other words, this means that the smaller the first normalization value, the faster the dots become denser. In this embodiment, 105 is set as the first normalization value.
ディザマトリクスDth[2]は、第2の濃度範囲30~135の画像データをハーフトーン処理によって「2」のデータに変換するディザマトリクスである。ディザマトリクスDth[2]は、ブルーノイズマスクからなるディザマトリクスを第2の濃度範囲30~135の濃度値で正規化することによって取得される。たとえばブルーノイズマスクからなるディザマトリクスの1つの閾値をdthとし、ディザマトリクスDth[2]の対応する1つの閾値をdth[2]とした場合、下式によって算出される。なお、第2の正規化値の意味は、第1の正規化値と同様であり、本実施形態においては、第2の正規化値として105を設定する。
dth[2]=(第2の正規化値×dth)/256
The dither matrix Dth[2] is a dither matrix that converts image data in the second density range of 30 to 135 into data of "2" by halftone processing. The dither matrix Dth[2] is obtained by normalizing the dither matrix made of a blue noise mask with density values in the second density range of 30 to 135. For example, when one threshold value of the dither matrix made of a blue noise mask is dth and one corresponding threshold value of the dither matrix Dth[2] is dth[2], it is calculated by the following formula. The meaning of the second normalization value is the same as that of the first normalization value, and in this embodiment, 105 is set as the second normalization value.
dth[2]=(second normalized value×dth)/256
ディザマトリクスDth[3]は、第3の濃度範囲105~255の画像データをハーフトーン処理によって「3」のデータに変換するディザマトリクスである。ディザマトリクスDth[3]は、ブルーノイズマスクからなるディザマトリクスを第2の濃度範囲105~255の濃度値で正規化することによって取得される。たとえばブルーノイズマスクからなるディザマトリクスの1つの閾値をdthとし、ディザマトリクスDth[3]の対応する1つの閾値をdth[3]とした場合、下式によって算出される。なお、第3の正規化値の意味は、第1の正規化値と同様であり、本実施形態では、第3の正規化値=255-Th[2]とする。このような値とすることによって、濃度データが255の時に「3」のインクドロップのベタデータとすることができる。
dth[3]=(第3の正規化値×dth)/256
The dither matrix Dth[3] is a dither matrix that converts image data in the third density range of 105 to 255 into data of "3" by halftone processing. The dither matrix Dth[3] is obtained by normalizing the dither matrix made of a blue noise mask with density values in the second density range of 105 to 255. For example, when one threshold value of the dither matrix made of a blue noise mask is dth and one corresponding threshold value of the dither matrix Dth[3] is dth[3], it is calculated by the following formula. The meaning of the third normalization value is the same as that of the first normalization value, and in this embodiment, the third normalization value=255-Th[2]. By using such a value, it is possible to obtain solid data of an ink drop of "3" when the density data is 255.
dth[3]=(third normalized value×dth)/256
また、図6では、「0」と「1」のインクドロップデータに変換される領域(0,1ドロップ領域)と、「0」、「1」および「2」のインクドロップデータに変換される領域(0,1,2ドロップ領域)と、「0」と「2」のインクドロップデータに変換される領域(0,2ドロップ領域)と、「0」、「2」および「3」のインクドロップデータに変換される領域(0,2,3ドロップ領域)と、「0」と「3」のインクドロップデータに変換される領域(0,3ドロップ領域)とを示している。 Figure 6 also shows the area converted to ink drop data of "0" and "1" (0,1 drop area), the area converted to ink drop data of "0", "1" and "2" (0,1,2 drop area), the area converted to ink drop data of "0" and "2" (0,2 drop area), the area converted to ink drop data of "0", "2" and "3" (0,2,3 drop area), and the area converted to ink drop data of "0" and "3" (0,3 drop area).
次に、上述した濃度閾値Th[0]~Th[3]およびディザマトリクスDth[1]~[3]を用いたハーフトーン処理について、図7に示すフローチャートを参照しながら説明する。 Next, halftone processing using the above-mentioned density thresholds Th[0] to Th[3] and dither matrices Dth[1] to [3] will be explained with reference to the flowchart shown in FIG. 7.
まず、ハーフトーン処理部13は、画像データを構成する所定の画素の濃度データを取得し、その濃度データdataが、上述した濃度範囲指標m=0~2のどれに属するか否かを決定する(S30)。具体的には、Th[m]≦data<Th[m+1]を満たすmを決定する。 First, the halftone processor 13 acquires density data of a specific pixel that constitutes the image data, and determines whether the density data data belongs to one of the density range indices m = 0 to 2 described above (S30). Specifically, it determines m that satisfies Th[m] ≦ data < Th[m + 1].
次いで、ハーフトーン処理部13は、上述したdth[1]~dth[3]を算出する(S32)。 Next, the halftone processing unit 13 calculates the above-mentioned dth[1] to dth[3] (S32).
そして、S13で決定したmの値がゼロである場合には(S34,YES)、その画素の濃度データdataと、その画素に対応する位置のディザマトリクスDth[1]のディザ閾値dth[1]と比較し、data>dth[1]である場合には(S36,YES)、その画素の多値化データ(インクドロップデータ)を「1」とする(S38)。 If the value of m determined in S13 is zero (S34, YES), the density data of that pixel is compared with the dither threshold dth[1] of the dither matrix Dth[1] at the position corresponding to that pixel, and if data>dth[1] (S36, YES), the multi-value data (ink drop data) of that pixel is set to "1" (S38).
一方、data≦dth[1]である場合には(S36,NO)、その画素の多値化データ(インクドロップデータ)を「0」とする(S40)。 On the other hand, if data≦dth[1] (S36, NO), the multi-value data (ink drop data) for that pixel is set to “0” (S40).
また、ハーフトーン処理部13は、S30で決定したmの値がゼロでない場合には(S34,NO)、その画素の濃度データdataからTh[m]を減算した値(data―Th[m])と、その画素に対応する位置のディザマトリクスDth[m+1]のディザ閾値dth[m+1]と比較する(S42)。なお、data―Th[m]は、画素の濃度データをTh[m]を基準とする入力データとするため演算である。 If the value of m determined in S30 is not zero (S34, NO), the halftone processing unit 13 compares the value (data-Th[m]) obtained by subtracting Th[m] from the density data of that pixel with the dither threshold value dth[m+1] of the dither matrix Dth[m+1] at the position corresponding to that pixel (S42). Note that data-Th[m] is a calculation that uses the density data of the pixel as input data based on Th[m].
そして、ハーフトーン処理部13は、その入力データが、dth[m+1]よりも大きい場合には(S42,YES)、その画素の多値化データ(インクドロップデータ)をm+1とする(S44)。 Then, if the input data is greater than dth[m+1] (S42, YES), the halftone processing unit 13 sets the multi-value data (ink drop data) for that pixel to m+1 (S44).
具体的には、ハーフトーン処理部13は、たとえばmが1である場合には、data-Th[1]とdth[2]を比較する。そして、data-Th[1]がdth[2]よりも大きい場合には、その画素の多値化データ(インクドロップデータ)を2とする。これにより、図4(10)~(21)に示す「2」のデータが配置される。 Specifically, when m is 1, for example, the halftone processing unit 13 compares data-Th[1] with dth[2]. Then, when data-Th[1] is greater than dth[2], the multi-value data (ink drop data) for that pixel is set to 2. As a result, the data "2" shown in (10) to (21) of Figure 4 is arranged.
一方、S42において、data―Th[m]≦dth[m+1]である場合には(S42,NO)、上記画素に対応する位置のディザマトリクスDth[m]のディザ閾値dth[m]と、Th[m]-Th[m-1]とを比較する(S46)。 On the other hand, if data-Th[m]≦dth[m+1] is satisfied in S42 (S42, NO), the dither threshold dth[m] of the dither matrix Dth[m] at the position corresponding to the pixel is compared with Th[m]-Th[m-1] (S46).
ここで、Th[m]-Th[m-1]は、たとえばm=1のときTh[1]-Th[0]となり、図4(1)~(9)に示すように「1」のデータを追加し始めてから停止するまでの濃度区間を示す。そして、図4(10)~(17)に示すように、「2」のデータは、「1」のデータの位置と同じ場所に配置する必要があるが、これは、S42の条件に基づいて「2」のデータを配置することで実現する。 Here, Th[m]-Th[m-1] is Th[1]-Th[0] when m=1, for example, and indicates the concentration range from when the addition of data "1" starts to when it stops, as shown in Figures 4 (1) to (9). And, as shown in Figures 4 (10) to (17), data "2" needs to be placed in the same location as data "1", which is achieved by placing data "2" based on the conditions in S42.
しかしながら、S42の条件を満たしていない場合、Th[1]時点の濃度を保持する必要がある。したがって、S42において「2」のデータが配置されなかった場合には、Th[1]時点で「1」のデータが配置された場所には、「1」のデータを配置する必要がある。 However, if the condition in S42 is not met, it is necessary to maintain the concentration at time Th[1]. Therefore, if data "2" was not placed in S42, data "1" must be placed in the location where data "1" was placed at time Th[1].
そこで、S42において「2」のデータが配置されなかった場合、S46の比較式で、「1」のデータ用のディザ閾値dth[1]が、「1」のデータの追加を停止した濃度より小さい場合に、「1」のデータを配置する(S48)。これは、ディザ閾値dth[1]が、Th[1]-Th「0」よりも小さい場合には、その位置には、既に「1」のデータが配置されていることを示すからである。 Therefore, if the data "2" was not placed in S42, in the comparison formula of S46, if the dither threshold dth[1] for the data "1" is smaller than the density at which the addition of the data "1" was stopped, then the data "1" is placed (S48). This is because if the dither threshold dth[1] is smaller than Th[1]-Th"0", it indicates that the data "1" has already been placed at that position.
一方、S46の比較式で、dth[m]≧Th[m]-Th[m-1]である場合には、上記画素の多値化データ(インクドロップデータ)を0とする(S50)。 On the other hand, if the comparison formula in S46 is dth[m]≧Th[m]-Th[m-1], the multi-value data (ink drop data) for the pixel is set to 0 (S50).
これにより、画像データの画素の濃度データがm=1の濃度区間である場合には、「0」、「1」または「2」のデータに変換することができる。すなわち、「0」のデータを混在させつつ、印刷濃度変化を滑らかにすることができる。 As a result, when the density data of a pixel in the image data is in the density range of m=1, it can be converted to data of "0", "1", or "2". In other words, it is possible to smooth out the change in print density while still mixing in data of "0".
なお、上記説明では、m=1の場合について説明したが、m=2の場合もS42およびS46の比較式に基づく処理を行うことによって、m=2の濃度区間の濃度データを「0」、「2」または「3」のデータに変換することができる。すなわち、「0」のデータを混在させつつ、印刷濃度変化を滑らかにすることができる。 In the above explanation, the case of m=1 was explained, but even when m=2, the density data in the density range of m=2 can be converted to data of "0", "2", or "3" by performing the processing based on the comparison formulas of S42 and S46. In other words, it is possible to smooth the change in print density while still mixing in data of "0".
次に、本発明の画像処理装置の第2の実施形態を用いたインクジェット印刷装置2について詳細に説明する。第2の実施形態のインクジェット印刷装置2の概略構成は、図1に示す第1の実施形態のインクジェット印刷装置1と同様であるが、画像処理部10の構成が第1の実施形態とは異なる。 Next, an inkjet printing device 2 using a second embodiment of the image processing device of the present invention will be described in detail. The general configuration of the inkjet printing device 2 of the second embodiment is similar to that of the inkjet printing device 1 of the first embodiment shown in FIG. 1, but the configuration of the image processing unit 10 is different from that of the first embodiment.
第1の実施形態のハーフトーン処理部13は、上述したようにディザ法を用いたハーフトーン処理を行うものであるが、第2の実施形態の画像処理部10は、多値誤差拡散法を用いたハーフトーン処理を行うものである。第1の実施形態のようにディザ法を用いたハーフトーン処理の場合、ディザマトリクスを記憶するメモリ容量が必要となる。たとえば
256×256のディザマトリクスを使用する場合、メモリ容量は64kByte必要になる。これに対し、多値誤差拡散処理は、ディザマトリクスを記憶する必要がないので、メモリ容量を削減することができ、また、その演算処理を簡易なハードウェアで実現することも可能であるため、ハードウェア全体を削減することが可能である。なお、多値誤差拡散処理に必要なメモリ容量については、後で詳述する。
The halftone processing unit 13 of the first embodiment performs halftone processing using the dither method as described above, while the image processing unit 10 of the second embodiment performs halftone processing using the multi-value error diffusion method. In the case of halftone processing using the dither method as in the first embodiment, memory capacity is required to store the dither matrix. For example, when a 256 x 256 dither matrix is used, 64 kByte of memory capacity is required. In contrast, since the multi-value error diffusion process does not need to store the dither matrix, the memory capacity can be reduced, and the calculation process can be realized by simple hardware, so that the entire hardware can be reduced. The memory capacity required for the multi-value error diffusion process will be described in detail later.
図8は、第2の実施形態の画像処理部10の構成を示すブロック図である。第2の実施形態のハーフトーン処理部13も、第1の実施形態と同様に、画像データを構成する全ての画素が最大値(最大ドロップ数)に変換される場合を除き、必ずゼロ値を含むようにハーフトーン処理を施すものであるが、このようなハーフトーン処理を行うため、第2の実施形態の画像処理部10は、2値誤差拡散処理部14を備えている。そして、第2の実施形態のハーフトーン処理部13は、2値誤差拡散処理部14の処理結果に基づいて、多値誤差拡散処理を行うことによって、上述したように必ずゼロ値を含むハーフトーン処理を行う。 Figure 8 is a block diagram showing the configuration of the image processing unit 10 of the second embodiment. As with the first embodiment, the halftone processing unit 13 of the second embodiment also performs halftone processing so that zero values are always included, except when all pixels constituting the image data are converted to the maximum value (maximum drop number). In order to perform such halftone processing, the image processing unit 10 of the second embodiment is equipped with a binary error diffusion processing unit 14. The halftone processing unit 13 of the second embodiment then performs multi-value error diffusion processing based on the processing result of the binary error diffusion processing unit 14, thereby performing halftone processing that always includes zero values, as described above.
2値誤差拡散処理部14は、ハーフトーン処理部13によるハーフトーン処理の前に、C、M、YおよびKの各画像データに対して2値誤差拡散処理を施す。2値誤差拡散処理としては、たとえば図9に示すような拡散係数を用いたFloyd-Steinberg法による2値誤差拡散処理が知られているが、本実施形態では、これと等価な手法を用いて2値誤差拡散処理を施す。Floyd-Steinberg法は、図9に示すように、注目画素で発生した誤差を周辺画素に拡散係数をかけて分散する手法であるが、本実施形態では、図10に示すように、周辺画素の誤差に拡散係数をかけて注目画素に分配する手法を用いる。この手法において、注目画素に分配される誤差err_binは、下式で表される。なお、下式におけるerr_mem0[]は、注目画素のラインの1ライン前の誤差を保存しているメモリであり、err_preは、注目画素の1画素前の誤差であり、err_mem1[]は、注目画素のラインの次のラインで使用する誤差を保存するメモリである。
err_bin=err_mem0[x-1]*1/16+err_mem0[x]*3/16+err_mem0[x+1]*5/16+err_pre*7/16
The binary error diffusion processing unit 14 performs binary error diffusion processing on each of the C, M, Y, and K image data before the halftone processing by the halftone processing unit 13. As the binary error diffusion processing, for example, the binary error diffusion processing by the Floyd-Steinberg method using the diffusion coefficient as shown in FIG. 9 is known, but in this embodiment, the binary error diffusion processing is performed using a method equivalent to this. The Floyd-Steinberg method is a method of dispersing an error generated in a pixel of interest by multiplying it by a diffusion coefficient to surrounding pixels as shown in FIG. 9, but in this embodiment, a method of multiplying the error of the surrounding pixels by a diffusion coefficient and distributing it to the pixel of interest as shown in FIG. 10 is used. In this method, the error err_bin distributed to the pixel of interest is expressed by the following formula. In the following formula, err_mem0[ ] is a memory that stores the error of the line immediately before the pixel of interest, err_pre is the error of the pixel immediately before the pixel of interest, and err_mem1[ ] is a memory that stores the error used in the line next to the pixel of interest.
err_bin=err_mem0[x-1]*1/16+err_mem0[x]*3/16+err_mem0[x+1]*5/16+err_pre*7/16
そして、注目画素の濃度データをDとすると、誤差を分配した後の画素データDerrは、下式で表される。
Derr=D+err_bin
If the density data of the pixel of interest is D, then the pixel data Derr after the error is distributed is expressed by the following formula.
Derr=D+err_bin
そして、Derr>127の場合、黒判定し、その量子化値を255とする。一方、Derr≦127の場合、白判定し、その量子化値を0とする。 If Derr>127, it is determined to be black and its quantization value is set to 255. On the other hand, if Derr≦127, it is determined to be white and its quantization value is set to 0.
そして、err=Derr-量子化値を算出し、err_mem1[x]=errとし、err_pre=errとする。 Then, calculate err = Derr - quantized value, set err_mem1[x] = err, and set err_pre = err.
上述したような演算処理によって2値誤差拡散処理を行うことによって、ハードウェアとしては、err_mem0[]とerr_mem1[]の合計2ラインのメモリで良い。また、誤差の保存タイミングをずらせば、誤差を読み出した後のerr_mem0[]の使用済み領域に注目画素の誤差を書き戻すことができるので、実質的には1ラインのメモリで済む。なお、1ライン目(y=0)の画素に分配される誤差は、予め設定しておけばよい。 By performing binary error diffusion processing using the calculation process described above, the hardware only requires a total of two lines of memory, err_mem0[ ] and err_mem1[ ]. Furthermore, by shifting the timing of saving the error, the error of the pixel of interest can be written back into the used area of err_mem0[ ] after the error has been read out, so essentially only one line of memory is required. Note that the error distributed to the pixels on the first line (y = 0) can be set in advance.
そして、2値誤差拡散処理部14は、C、M、YおよびKの画像データに対して、それぞれ2値誤差拡散処理を施し、その結果、白判定された画素、すなわち量子化値が0になった画素について、白画素フラグを付加する。 Then, the binary error diffusion processing unit 14 performs binary error diffusion processing on the C, M, Y, and K image data, respectively, and adds a white pixel flag to pixels that are determined to be white as a result, i.e., pixels whose quantization value is 0.
そして、第2の実施形態のハーフトーン処理部13は、多値誤差拡散処理によるハーフトーン処理を行う際、2値誤差拡散処理部14において白判定された画素を必ずゼロ値とする。以下、本実施形態のハーフトーン処理部13における多値誤差拡散処理について説明する。 When performing halftone processing using multi-value error diffusion processing, the halftone processing unit 13 of the second embodiment always sets pixels determined to be white by the binary error diffusion processing unit 14 to a zero value. The multi-value error diffusion processing in the halftone processing unit 13 of this embodiment is described below.
ハーフトーン処理部13は、2値誤差拡散処理と同様に、各画素の濃度データを量子化閾値を用いて量子化し、その量子化値と濃度データから誤差を算出する。 The halftone processing unit 13 quantizes the density data of each pixel using a quantization threshold, similar to the binary error diffusion process, and calculates the error from the quantization value and the density data.
具体的には、量子化値をq[i]、量子化閾値をq_th[i]、各画素の濃度データをDとすると、最大ドロップ数がmaxdrop=3の場合、たとえば図11に示すように各値を設定することができる。 Specifically, if the quantization value is q[i], the quantization threshold is q_th[i], and the density data of each pixel is D, and the maximum drop number is maxdrop = 3, the values can be set as shown in Figure 11, for example.
そして、2値誤差拡散処理と同様に、周辺画素から注目画素に分配される誤差をerr_mltとすると、図11に示す量子化閾値q_th[1]~q_th[3]のうちのどれを使用するかを決定するiの値については、下式によって求められる。なお、INT()は、小数点以下を切り捨て、元の数字を超えない最大の整数を返す関数である。
i=INT((D+err_mlt)*maxdrop/255)
Then, similarly to the binary error diffusion process, if the error distributed from the surrounding pixels to the pixel of interest is err_mlt, the value of i that determines which of the quantization thresholds q_th[1] to q_th[3] shown in Fig. 11 to use is calculated by the following formula: Note that INT() is a function that rounds down the digits after the decimal point and returns the maximum integer that does not exceed the original number.
i=INT((D+err_mlt)*maxdrop/255)
たとえば図11に示すようにD+err_mlt=150の場合、iは、下式によって演算されて1となる。
i=INT(150*3/255)=INT(1.76)=1
For example, when D+err_mlt=150 as shown in FIG. 11, i is calculated to be 1 according to the following formula.
i=INT(150*3/255)=INT(1.76)=1
このとき、量子化閾値は、q_th[1]=127が用いられ、D+err_mlt=150は、q[1]=85またはq[2]=170に量子化されるが、D+err_mlt=150は、q_th[1]=127よりも大きいので、量子化値は、q[2]=170となる。そして、多値化データ(インクドロップデータ)は、q[2]=170に対応する「2」となる。 At this time, the quantization threshold used is q_th[1] = 127, and D+err_mlt = 150 is quantized to q[1] = 85 or q[2] = 170. However, since D+err_mlt = 150 is greater than q_th[1] = 127, the quantization value becomes q[2] = 170. The multi-value data (ink drop data) becomes "2", which corresponds to q[2] = 170.
より具体的には、まず、上述したDerrが算出された後、iの値が算出される。そして、i>maxdropの場合には、i=maxdropに設定される。そして、i=maxdropの場合には、量子化値は、q[maxdrop]となり、多値化データは、maxdropになる。 More specifically, first, the above-mentioned Derr is calculated, and then the value of i is calculated. Then, if i>maxdrop, i is set to maxdrop. Then, if i=maxdrop, the quantization value becomes q[maxdrop], and the multi-value data becomes maxdrop.
i=maxdropではない場合には、その画素について、白画素フラグが付加されているか否かが確認され、白画素フラグが付加されている場合には、その画素の量子化値としてゼロが算出され、多値化データもゼロになる。なお、上述したように白画素フラグが付加された画素については、量子化値がゼロにはなるが、入力濃度と量子化値ゼロとの誤差を周辺画素で補うため、誤差拡散の特徴上、濃度が低くなることは無い。 If i=maxdrop is not true, the pixel is checked to see if it has a white pixel flag attached, and if it has, the quantization value of that pixel is calculated as zero, and the multi-value data is also set to zero. As mentioned above, for pixels that have a white pixel flag attached, the quantization value will be zero, but because the error between the input density and the quantization value of zero is compensated for by surrounding pixels, the density will not decrease due to the characteristics of error diffusion.
一方、白画素フラグが付加されていない場合、Derr>q_th[i]の場合には、量子化値としてq[i+1]が算出され、多値化データはi+1になる。Derr≦q_th[i]の場合には、量子化値としてq[i]が算出され、多値化データはiになる。 On the other hand, if the white pixel flag is not added, and Derr>q_th[i], the quantization value is calculated as q[i+1], and the multi-value data becomes i+1. If Derr≦q_th[i], the quantization value is calculated as q[i], and the multi-value data becomes i.
次に、上述した第2の実施形態のハーフトーン処理の演算処理の流れについて、図12に示すフローチャートを参照しながら説明する。 Next, the flow of calculation processing for the halftone processing of the second embodiment described above will be explained with reference to the flowchart shown in FIG.
まず、ハーフトーン処理部13は、画像データを構成する画素のy座標をy=0に設定し(S90)、x座標をx=0に設定する(S92)。なお、画像データを構成する画素のx座標およびy座標はゼロが初期値である。 First, the halftone processing unit 13 sets the y coordinate of the pixel that constitutes the image data to y = 0 (S90), and sets the x coordinate to x = 0 (S92). Note that the initial values of the x and y coordinates of the pixel that constitutes the image data are zero.
そして、S90およびS92で設定したx座標およびy座標の位置の画素の濃度データに対して2値誤差拡散処理が施される(S94)。そして、白判定された場合には、その画素に白画素フラグが付加される(S96)。 Then, binary error diffusion processing is applied to the density data of the pixel at the x-coordinate and y-coordinate positions set in S90 and S92 (S94). If the pixel is determined to be white, a white pixel flag is added to that pixel (S96).
次に、S90およびS92で設定したx座標およびy座標の位置の画素の濃度データに対して多値誤差拡散処理が施され、その画素の多値化データが算出される(S98)多値誤差拡散処理の際には、上述したようにS96で付加された白画素フラグが参照される。 Next, multi-value error diffusion processing is applied to the density data of the pixel at the x and y coordinate positions set in S90 and S92, and the multi-value data for that pixel is calculated (S98). During the multi-value error diffusion processing, the white pixel flag added in S96, as described above, is referenced.
次いで、ハーフトーン処理部13は、x座標を1インクリメントし(S100)、そのxの値が、画像データのx方向のサイズ(x_size)よりも小さい場合には(S102,YES)、S94~S100の処理を繰り返して行う。 Next, the halftone processing unit 13 increments the x coordinate by 1 (S100), and if the x value is smaller than the size of the image data in the x direction (x_size) (S102, YES), repeats the processes of S94 to S100.
そして、ハーフトーン処理部13は、S102において、x≧x_sizeである場合には(S102,NO)、y座標を1インクリメントし(S104)、そのyの値が、画像データのy方向のサイズ(y_size)よりも小さい場合には(S106,YES)、S92~S104の処理を繰り返して行う。 Then, in S102, if x≧x_size (S102, NO), the halftone processing unit 13 increments the y coordinate by 1 (S104), and if the y value is smaller than the size of the image data in the y direction (y_size) (S106, YES), repeats the processes of S92 to S104.
そして、ハーフトーン処理部13は、S106において、y≧y_sizeとなった時点で(S106,NO)、処理を終了する。これにより、画像データを構成する全ての画素について、多値化データ(インクドロップデータ)を求めることができる。 Then, in S106, the halftone processing unit 13 ends the process when y≧y_size (S106, NO). This makes it possible to obtain multi-value data (ink drop data) for all pixels that make up the image data.
次に、上述した第2の実施形態の変形例について説明する。第2の実施形態においては、2値誤差拡散処理を行って白判定された画素については白画素フラグを付加し、その画素については強制的に多値化データをゼロにするようにしたが、たとえば濃度が明るい部分については、もともと白画素の密度が高いので、上述したような処理を行った場合、ほとんどの画素の多値化誤差拡散処理の量子化値がゼロになってしまう。このような状態になった場合、多値化誤差拡散処理の過程において、量子化値がゼロになった画素の誤差が溜まり、印字可能な領域で急に大きな量値化値となってしまう。たとえば濃度が明るい部分では、0ドロップと1ドロップを混在させたいが、0ドロップと3ドロップの混在となってしまい、印刷画像の粒状性が悪化してしまう。 Next, a modified example of the second embodiment described above will be described. In the second embodiment, a white pixel flag is added to pixels determined to be white by performing binary error diffusion processing, and the multi-value data for these pixels is forcibly set to zero. However, for example, in bright density areas, the density of white pixels is originally high, so when the above-mentioned processing is performed, the quantization value of the multi-value error diffusion processing for most pixels becomes zero. In such a state, during the multi-value error diffusion processing, errors of pixels whose quantization value becomes zero accumulate, and the quantization value suddenly becomes large in the printable area. For example, in bright density areas, a mixture of 0 drop and 1 drop is desired, but a mixture of 0 drop and 3 drop is obtained, which deteriorates the graininess of the printed image.
そこで、第2の実施形態の変形例においては、2値誤差拡散処理後において、白画素の密度が高くなりすぎないようにする。図13は、第2の実施形態の画像処理部10の変形例の構成を示す図である。図13に示すように、第2の実施形態の画像処理部10の変形例では、白画素密度調整部15をさらに備える。 Therefore, in a modified example of the second embodiment, the density of white pixels is prevented from becoming too high after binary error diffusion processing. FIG. 13 is a diagram showing the configuration of a modified example of the image processing unit 10 of the second embodiment. As shown in FIG. 13, the modified example of the image processing unit 10 of the second embodiment further includes a white pixel density adjustment unit 15.
白画素密度調整部15は、入力されたC、M、YおよびKの各画像データに対して、白画素密度調整処理として、濃度変換処理を施す。具体的には、白画素密度調整部15は、図14に示すように、画像データの入力濃度が明るいほど、または暗いほど白判定される画素の密度を疎にし、中間濃度において白判定される画素の密度が最大となるような濃度変換処理を各画像データに施す。 The white pixel density adjustment unit 15 performs density conversion processing as a white pixel density adjustment process on each of the input C, M, Y, and K image data. Specifically, as shown in FIG. 14, the white pixel density adjustment unit 15 performs density conversion processing on each image data such that the density of pixels determined to be white becomes sparser the brighter or darker the input density of the image data, and the density of pixels determined to be white becomes maximum at intermediate densities.
図14に示すグラフでは、中間濃度では、風紋ムラが低減されるのに十分な白画素密度となるように出力濃度を制御し、中間濃度よりも明るい部分では、明るいほど入力濃度に対する出力濃度が暗く(白画素密度が疎)なり、中間濃度よりも暗い部分では、暗いほど入力濃度に対する出力濃度が暗く(白画素密度が疎)なっている。なお、濃度変換処理の実現方法は、ルックアップテーブルでもよいし、所定の直線式などの関数でもよい。 In the graph shown in Figure 14, at intermediate densities, the output density is controlled so that the white pixel density is sufficient to reduce wind ripple unevenness, and in areas brighter than the intermediate density, the brighter the area, the darker the output density relative to the input density (the white pixel density is sparse), and in areas darker than the intermediate density, the darker the area, the darker the output density relative to the input density (the white pixel density is sparse). The density conversion process can be realized using a lookup table or a function such as a predetermined linear equation.
そして、2値誤差拡散処理部14は、白画素密度調整部15によって濃度変換処理が施された各画像データに対して2値誤差拡散処理部14を施す。第2の実施形態の変形例は、その他の構成については、第2の実施形態と同様である。 Then, the binary error diffusion processing unit 14 performs the binary error diffusion processing on each image data that has been subjected to density conversion processing by the white pixel density adjustment unit 15. The rest of the configuration of the modified example of the second embodiment is the same as that of the second embodiment.
第2の実施形態の変形例によれば、画像データの入力濃度が明るい部分ほど白判定される画素の密度を疎にするようにしたので、粒状性の悪化を防止することができる。 According to a modified version of the second embodiment, the density of pixels determined to be white is made sparser in areas with brighter input density of image data, thereby preventing deterioration of graininess.
また、2値誤差拡散処理後の白画素の密度を調整する方法としては、上記の方法に限らず、2値誤差拡散処理部14において、白判定される画素の密度を調整するようにしてもよい。 In addition, the method for adjusting the density of white pixels after binary error diffusion processing is not limited to the above method, and the density of pixels determined to be white may be adjusted in the binary error diffusion processing unit 14.
具体的には、白判定した画素の量子化値を負の値とし、その負の値と黒判定した画素の量子化値とに基づいて、量子化閾値を設定して2値誤差拡散処理を行う。具体的には、図15に示すように、白判定した画素の量子化値を負の値white_dens(たとえば-20)とし、その負の値white_densと黒判定した画素の量子化値black_dens(255)とに基づいて、量子化閾値(137)を算出し、2値誤差拡散処理を行う。上述したように量子化値を負の値(-20)とした場合、たとえば入力濃度が0であっても誤差は入力濃度(0)-量子化値(-20)=20となるので、周辺画素にプラスの誤差を分配する。つまり、周辺画素の濃度を濃くしようとする働きになり、これにより白画素の密度が疎になる。 Specifically, the quantization value of a pixel determined to be white is set to a negative value, and a quantization threshold is set based on this negative value and the quantization value of a pixel determined to be black, and binary error diffusion processing is performed. Specifically, as shown in FIG. 15, the quantization value of a pixel determined to be white is set to a negative value white_dens (for example, -20), and a quantization threshold (137) is calculated based on this negative value white_dens and the quantization value black_dens (255) of a pixel determined to be black, and binary error diffusion processing is performed. As described above, if the quantization value is set to a negative value (-20), even if the input density is 0, for example, the error will be input density (0) - quantization value (-20) = 20, so a positive error is distributed to the surrounding pixels. In other words, it acts to increase the density of the surrounding pixels, which makes the density of white pixels sparse.
このような2値誤差拡散処理を画像データの中間濃度よりも明るい部分に施すことによって、2値誤差拡散処理後の白画素の密度を疎にすることができる。これにより、第2の実施形態の変形例と同様に、濃度が明るい部分においても粒状性の悪化を防止することができる。 By applying this type of binary error diffusion processing to areas of the image data that are brighter than the mid-tone, the density of white pixels after the binary error diffusion processing can be made sparse. This makes it possible to prevent the deterioration of graininess even in bright areas, just like the modified example of the second embodiment.
図16A~図16Dは、モノクロのグラデーション画像に対して既存の多値誤差拡散処理を施した結果を示す図である。図16A~図16Dは、多値誤差拡散処理を施したグラデーション画像の一部を抜き出した図であり、A~Dに向けて濃度が薄くなっている。図16Aは、最大濃度に変換された部分を含んでいる。既存の多値誤差拡散処理を施しただけでは、濃度範囲Rにおいて風紋ムラが起きやすい。 Figures 16A to 16D are diagrams showing the results of applying existing multi-value error diffusion processing to a monochrome gradation image. Figures 16A to 16D are diagrams showing a portion of a gradation image that has been applied with multi-value error diffusion processing, with the density decreasing from A to D. Figure 16A includes a portion that has been converted to maximum density. If only existing multi-value error diffusion processing is applied, wind ripple unevenness is likely to occur in the density range R.
図17A~図17Dは、第2の実施形態のハーフトーン処理を、図16A~図16Dと同様のモノクロのグラデーション画像に施した結果を示す図である。図17A~図17Dでは、最大濃度に変換された部分を除いて全て白画素(ゼロ値)が含まれるように変換されている。特に、図17Bおよび図17Cのベタの部分において白画素が含まれているのが分かる。これにより、濃度範囲Rにおいて風紋ムラの影響を抑制することができる。 Figures 17A to 17D are diagrams showing the results of applying the halftone process of the second embodiment to a monochrome gradation image similar to that of Figures 16A to 16D. In Figures 17A to 17D, the image has been converted so that all white pixels (zero value) are included, except for the parts converted to maximum density. In particular, it can be seen that the solid parts of Figures 17B and 17C contain white pixels. This makes it possible to suppress the effects of wind ripple unevenness in the density range R.
本発明の画像処理装置に関し、さらに以下の付記を開示する。
(付記)
The following supplementary notes are further disclosed regarding the image processing device of the present invention.
(Additional Note)
本発明の画像処理装置において、ハーフトーン処理部は、画像データの濃度に応じて、画像データをn値(nは0以上の整数)とn+1値を含む多値化データに変換する過程において、多値化データにおいてゼロ値の画素が所定の画素数になった段階でn+1値の画素の増加を停止した後、画像データの濃度の増加に応じて、n+1値と同じ位置にn+2値を配置することができる。 In the image processing device of the present invention, in the process of converting image data into multi-value data including n values (n is an integer equal to or greater than 0) and n+1 values according to the density of the image data, the halftone processing unit stops increasing the number of n+1 value pixels when the number of zero-value pixels in the multi-value data reaches a predetermined number, and then can place the n+2 value in the same position as the n+1 value according to the increase in the density of the image data.
また、本発明の画像処理装置において、ハーフトーン処理部は、1値の画素にゼロ値の画素を隣接させ、1値の画素が2画素以上連続しないようにハーフトーン処理を施すことができる。 In addition, in the image processing device of the present invention, the halftone processing unit can perform halftone processing by placing pixels with a value of zero adjacent to pixels with a value of one, so that there are no more than two consecutive pixels with a value of one.
また、本発明の画像処理装置において、ハーフトーン処理部は、各画素に対応する多値化データが大きくなるほど多値化データ全体に含まれるゼロ値の割合が減少するようにハーフトーン処理を施すことができる。 In addition, in the image processing device of the present invention, the halftone processing unit can perform halftone processing so that the proportion of zero values contained in the entire multi-value data decreases as the multi-value data corresponding to each pixel becomes larger.
また、本発明の画像処理装置においては、ハーフトーン処理部によるハーフトーン処理の前に、画像データに対して2値誤差拡散処理を施す2値誤差拡散処理部を備えることができ、ハーフトーン処理部は、ハーフトーン処理を行う際、2値誤差拡散処理部において白判定された画素の量子化値および多値化データをゼロ値とすることができる。 The image processing device of the present invention can also include a binary error diffusion processing section that performs binary error diffusion processing on image data before halftone processing by the halftone processing section, and when performing halftone processing, the halftone processing section can set the quantized values and multi-value data of pixels determined to be white by the binary error diffusion processing section to zero values.
また、本発明の画像処理装置においては、2値誤差拡散処理部による2値誤差拡散処理の前に、2値誤差拡散処理によって白判定される画素の密度を調整する白画素密度調整処理を画像データに施す白画素密度調整部を備えることができ、2値誤差拡散処理部は、白画素密度調整処理が施された画像データに対して2値誤差拡散処理を施すことができる。 In addition, the image processing device of the present invention can be provided with a white pixel density adjustment section that applies white pixel density adjustment processing to image data to adjust the density of pixels determined to be white by the binary error diffusion processing before the binary error diffusion processing by the binary error diffusion processing section, and the binary error diffusion processing section can apply binary error diffusion processing to the image data that has been subjected to the white pixel density adjustment processing.
また、本発明の画像処理装置において、2値誤差拡散処理部は、白判定した画素の量子化値を負の値とし、その負の値と黒判定した画素の量子化値とに基づいて2値化閾値を設定して2値誤差拡散処理を行うことができる。 In addition, in the image processing device of the present invention, the binary error diffusion processing unit can perform binary error diffusion processing by taking the quantization value of a pixel determined to be white as a negative value, and setting a binary threshold based on the negative value and the quantization value of a pixel determined to be black.
また、本発明の画像処理装置においては、画像データの濃度が明るいほど白判定される画素の密度を疎にすることができる。 In addition, in the image processing device of the present invention, the density of pixels determined to be white can be made sparser as the density of the image data becomes brighter.
1 インクジェット印刷装置
10 画像処理部
11 画像データ受付部
12 色変換部
13 ハーフトーン処理部
14 2値誤差拡散処理部
15 白画素密度調整部
20 ヘッド駆動制御部
30 インクジェットヘッド部
40 搬送部
50 制御部
REFERENCE SIGNS LIST 1 Inkjet printing device 10 Image processing section 11 Image data receiving section 12 Color conversion section 13 Halftone processing section 14 Binary error diffusion processing section 15 White pixel density adjustment section 20 Head drive control section 30 Inkjet head section 40 Conveyance section 50 Control section
Claims (8)
前記画像データに対してハーフトーン処理を施して少なくとも3値以上に変換して、前記画像データの印刷濃度を表す多値化データを生成するハーフトーン処理部とを備え、
前記ハーフトーン処理部が、前記画像データを構成する全ての画素が最大値に変換される場合を除き、前記ハーフトーン処理によって必ずゼロ値を含む前記多値化データを生成する画像処理装置。 an image data receiving unit that receives image data;
a halftone processing unit that performs halftone processing on the image data to convert it into at least three values and generate multi-value data that represents the print density of the image data ;
An image processing device in which the halftone processing unit generates the multi-value data that always includes zero values through the halftone processing , except when all pixels that make up the image data are converted to maximum values.
前記ハーフトーン処理部が、前記ハーフトーン処理を行う際、前記2値誤差拡散処理部において白判定された画素の量子化値および前記多値化データをゼロ値とする請求項1記載の画像処理装置。 a binary error diffusion processing unit that performs binary error diffusion processing on the image data before the halftone processing by the halftone processing unit;
2. The image processing apparatus according to claim 1, wherein said halftone processing section sets the quantized value and the multi-value data of a pixel determined to be white by said binary error diffusion processing section to a zero value when performing said halftone processing.
前記2値誤差拡散処理部が、前記白画素密度調整処理が施された画像データに対して2値誤差拡散処理を施す請求項5記載の画像処理装置。 a white pixel density adjustment unit that performs a white pixel density adjustment process on the image data to adjust a density of pixels determined to be white by the binary error diffusion process before the binary error diffusion process is performed by the binary error diffusion processing unit,
6. The image processing apparatus according to claim 5, wherein the binary error diffusion processing section performs binary error diffusion processing on the image data that has been subjected to the white pixel density adjustment processing.
8. The image processing apparatus according to claim 6, wherein the density of pixels determined to be white is made sparser as the density of the image data becomes brighter.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110435846.8A CN113660387B (en) | 2020-05-12 | 2021-04-22 | Image processing device |
| US17/238,802 US11397881B2 (en) | 2020-05-12 | 2021-04-23 | Image processing apparatus |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020083894 | 2020-05-12 | ||
| JP2020083894 | 2020-05-12 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2021178503A JP2021178503A (en) | 2021-11-18 |
| JP7621135B2 true JP7621135B2 (en) | 2025-01-24 |
Family
ID=78510309
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021029398A Active JP7621135B2 (en) | 2020-05-12 | 2021-02-26 | Image Processing Device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7621135B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015078827A1 (en) | 2013-11-29 | 2015-06-04 | Agfa Graphics Nv | Colorant splitting method |
-
2021
- 2021-02-26 JP JP2021029398A patent/JP7621135B2/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015078827A1 (en) | 2013-11-29 | 2015-06-04 | Agfa Graphics Nv | Colorant splitting method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2021178503A (en) | 2021-11-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7164502B2 (en) | Image processing method, and image processor and storage medium thereof | |
| US11397881B2 (en) | Image processing apparatus | |
| US7190485B2 (en) | Method for multilevel printing of digital images using reduced colorant amounts | |
| US8094954B2 (en) | Image processing apparatus, image processing method and image processing program that performs a level conversion on multilevel input image data | |
| US6778299B2 (en) | Error diffusion with partial dots method and system | |
| JP2019009730A (en) | Image processing apparatus and image processing method | |
| US7554697B2 (en) | Image forming apparatus, image forming method, and image forming program | |
| US8482792B2 (en) | Image forming apparatus and control method thereof | |
| JP7511383B2 (en) | Image Processing Device | |
| JP2015167306A (en) | Printing apparatus, printing data generation apparatus and method, and printing data generation program | |
| US8913296B2 (en) | Dither matrix creating device | |
| JP3775457B2 (en) | Gradation reproduction method and apparatus for laser printer | |
| JP7621135B2 (en) | Image Processing Device | |
| US20060098045A1 (en) | Image forming apparatus, image forming method and image forming program | |
| KR20110007039A (en) | Image processing apparatus and image processing method | |
| US8867100B2 (en) | Image quantization for digital printing | |
| JP2020015303A (en) | Image processing apparatus, control method therefor, and program | |
| CN113660387B (en) | Image processing device | |
| US7315401B2 (en) | Quantization apparatus and method, and inkjet printing apparatus using the same | |
| JP7250508B2 (en) | Image processing device, image processing method, and program | |
| JP4501607B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP3973460B2 (en) | Image forming apparatus | |
| JP2000295474A (en) | Image processing method in ink jet recording apparatus | |
| US20050030587A1 (en) | Image processing device and image processing method | |
| JP2017114033A (en) | Printing device, printing method, image processing device and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240110 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20240802 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240820 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240930 |
|
| 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: 20241217 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250114 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7621135 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |