JP7191665B2 - Image processing device, image processing method and program - Google Patents

Image processing device, image processing method and program Download PDF

Info

Publication number
JP7191665B2
JP7191665B2 JP2018229551A JP2018229551A JP7191665B2 JP 7191665 B2 JP7191665 B2 JP 7191665B2 JP 2018229551 A JP2018229551 A JP 2018229551A JP 2018229551 A JP2018229551 A JP 2018229551A JP 7191665 B2 JP7191665 B2 JP 7191665B2
Authority
JP
Japan
Prior art keywords
value
dots
evaluation value
predetermined
image processing
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
JP2018229551A
Other languages
Japanese (ja)
Other versions
JP2020090061A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2018229551A priority Critical patent/JP7191665B2/en
Priority to EP19213476.5A priority patent/EP3664429B1/en
Priority to EP22178813.6A priority patent/EP4099675A1/en
Priority to US16/704,257 priority patent/US11321596B2/en
Publication of JP2020090061A publication Critical patent/JP2020090061A/en
Priority to US17/708,601 priority patent/US11610087B2/en
Application granted granted Critical
Publication of JP7191665B2 publication Critical patent/JP7191665B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color, Gradation (AREA)
  • Ink Jet (AREA)

Description

本発明は、記録媒体に画像を形成するための量子化データを生成する画像処理装置、画像処理方法、プログラムおよび記憶媒体に関する。 The present invention relates to an image processing apparatus, an image processing method, a program, and a storage medium that generate quantized data for forming an image on a recording medium.

擬似階調法を用いて画像を記録する際の量子化方法として、ディザ法が知られている。ディザ法とは、個々の画素に対応づけられた閾値が配列されて成るディザマトリクスを用い、これら閾値と画像データが示す画素値とを比較して、ドットの記録または非記録を画素ごとに決定する方法である。 A dither method is known as a quantization method when recording an image using the pseudo-gradation method. The dithering method uses a dither matrix in which thresholds associated with individual pixels are arranged, and compares these thresholds with pixel values indicated by image data to determine dot printing or non-printing for each pixel. It is a way to

特許文献1には、記録装置で用いる複数種類の色材に対応する画像データの間で、1つのディザマトリクスを、補正をかけながら共通に利用するディザ法が開示されている。具体的には、先行して処理する色の画像データについては、ディザマトリクスに記憶されている閾値をそのまま用いて量子化処理を行う。そして、後続して処理する色の画像データについては、ディザマトリクスに記憶されている閾値を、先行して処理した色の画像データに基づいて補正し、補正後の閾値を用いて量子化処理を行う。 Japanese Patent Application Laid-Open No. 2002-200001 discloses a dither method in which one dither matrix is commonly used while being corrected among image data corresponding to a plurality of types of color materials used in a printing apparatus. Specifically, the color image data to be processed in advance is quantized using the threshold values stored in the dither matrix as they are. Then, for image data of colors to be processed subsequently, the thresholds stored in the dither matrix are corrected based on the image data of colors processed in advance, and quantization processing is performed using the corrected thresholds. conduct.

また、特許文献2には、ディザ法を採用しながらも、同じ画素に重複して記録するドットの数や大きさに上限を設け、上限を超えた画素についてはその差分に基づいて、周囲の画素の画素値を変更する量子化方法が開示されている。 Further, in Japanese Patent Application Laid-Open No. 2002-200010, while adopting the dither method, an upper limit is set for the number and size of dots to be printed in duplicate on the same pixel. A quantization method is disclosed that modifies the pixel value of a pixel.

特許文献1、2によれば、異なる色のドットが記録媒体上の同じ位置に重複して記録される頻度を抑え、ドットの重なりに伴う発色不良を緩和することができる。 According to Patent Literatures 1 and 2, it is possible to suppress the frequency of overlapping printing of dots of different colors on the same position on the printing medium, and to alleviate the poor color development due to the overlap of the dots.

米国特許第6867884号明細書U.S. Pat. No. 6,867,884 特開2014-739号公報Japanese Patent Application Laid-Open No. 2014-739

しかしながら特許文献1では、先行して処理を行う色の画像データに特徴的なパターンが含まれていると、その画像データと閾値マトリクスとの干渉が、後続して処理を行う色のドット配置に影響し、画像全体の粒状感を悪化させてしまう場合がある。 However, in Japanese Patent Laid-Open No. 2004-100001, if the image data of the color to be processed in advance contains a characteristic pattern, the interference between the image data and the threshold matrix affects the dot arrangement of the color to be processed subsequently. In some cases, the graininess of the entire image is deteriorated.

また、特許文献2においては、異なる色のドットが同じ画素に重複して配置される頻度は抑えられるものの、当該画素で発生した差分が周囲の画素に分配されるため、周囲の画素にドットが配置される確率が高くなり、結果として粒状感が損なわれる場合がある。 Further, in Japanese Patent Laid-Open No. 2002-200022, although the frequency of overlapping dots of different colors arranged in the same pixel is suppressed, the difference generated in the pixel is distributed to the surrounding pixels, so that the dots are not placed in the surrounding pixels. The probability of arrangement increases, and as a result, the graininess may be impaired.

すなわち、特許文献1や2においては、ドットの重なりに伴う発色不良は緩和できるものの、テクスチャや粒状感が抑えられた画像を安定して出力することは困難な状況であった。 That is, in Patent Documents 1 and 2, although it is possible to alleviate the color development failure due to overlapping of dots, it is difficult to stably output an image in which texture and graininess are suppressed.

本発明は上記問題点を解消するためになされたものである。よってその目的とするところは、複数種類の色材を用いて画像を記録する場合において、ドットの重なりに伴う発色不良を緩和しつつ、粒状感が抑えられた画像を出力可能な量子化処理を提供することである。 The present invention has been made to solve the above problems. Therefore, the objective is to provide a quantization process capable of outputting an image with reduced graininess while alleviating color development defects caused by dot overlap when printing an image using a plurality of types of color materials. to provide.

そのために本発明は、複数種類の色材それぞれに対応する画像に基づいて、前記複数種類の色材それぞれについてのドットの配置を決定するための画像処理装置であって、前記画像の所定領域について、前記複数種類の色材のうちドットの配置が既に決定された色材に対応するドットの配置情報を取得する取得手段と、前記所定領域について、前記複数種類の色材のうちドットの配置が決定されていない所定の色材に対する目標値を前記画像に基づいて導出する目標値導出手段と、前記配置情報に基づいて、前記所定領域に含まれる各画素の評価値を導出する評価値導出手段と、前記目標値と前記評価値とに基づいて、前記所定領域における前記所定の色材のドットの配置を決定するドット配置決定手段と、を有し、前記評価値は、前記所定領域に含まれる複数の画素のそれぞれについて、前記所定の色材のドットを配置する優先度を示す値であり、前記評価値導出手段は、前記所定領域において、既に配置されたドットの数が少ない画素であるほど前記優先度が高くなるように、前記評価値を設定することを特徴とする。 To this end, the present invention provides an image processing apparatus for determining the arrangement of dots for each of a plurality of types of colorants based on an image corresponding to each of a plurality of types of colorants, comprising: obtaining means for obtaining dot arrangement information corresponding to a coloring material for which dot arrangement has already been determined among the plurality of types of coloring materials; target value deriving means for deriving a target value for a predetermined undetermined colorant based on the image; and evaluation value deriving means for deriving an evaluation value for each pixel included in the predetermined region based on the arrangement information. and dot arrangement determination means for determining the arrangement of dots of the predetermined color material in the predetermined area based on the target value and the evaluation value , wherein the evaluation value is included in the predetermined area. and the evaluation value deriving means is a pixel having a small number of already arranged dots in the predetermined area. The evaluation value is set such that the higher the priority, the higher the priority .

本発明によれば、複数種類の色材を用いて画像を記録する場合において、ドットの重なりに伴う発色不良を緩和しつつ、粒状感が抑えられた画像を出力することが可能となる。 According to the present invention, when an image is printed using a plurality of types of color materials, it is possible to output an image with reduced graininess while alleviating poor color development due to dot overlap.

記録装置および記録ヘッドの概略図である。1 is a schematic diagram of a recording device and a recording head; FIG. 制御の構成を説明するためのブロック図である。FIG. 3 is a block diagram for explaining a control configuration; FIG. 画像処理の工程を説明するためのフローチャートである。4 is a flowchart for explaining steps of image processing; 第1の実施形態におけるソフトウェア構成を説明するためのブロック図である。3 is a block diagram for explaining the software configuration in the first embodiment; FIG. 第1の実施形態の量子化処理の工程を説明するためのフローチャートである。4 is a flowchart for explaining steps of quantization processing according to the first embodiment; 処理対象領域の設定方法を説明するための概念図である。FIG. 4 is a conceptual diagram for explaining a method of setting a processing target area; 第1の実施形態の量子化処理の様子を示す図である。FIG. 4 is a diagram showing how quantization processing is performed in the first embodiment; 第2の実施形態の量子化処理の様子を示す図である。FIG. 10 is a diagram showing how quantization processing according to the second embodiment is performed; 第3の実施形態におけるソフトウェア構成を説明するためのブロック図である。FIG. 12 is a block diagram for explaining the software configuration in the third embodiment; FIG. 第3の実施形態の量子化処理の工程を説明するためのフローチャートである。FIG. 12 is a flowchart for explaining steps of quantization processing according to the third embodiment; FIG. 第1色についての量子化処理の様子を示す図である。FIG. 10 is a diagram showing a state of quantization processing for the first color; 第2色についての量子化処理の様子を示す図である。FIG. 10 is a diagram showing how the quantization process for the second color is performed; 第3色についての量子化処理の様子を示す図である。FIG. 10 is a diagram showing how quantization processing for a third color is performed; 第4色についての量子化処理の様子を示す図である。FIG. 10 is a diagram showing how a quantization process is performed for a fourth color; 第3の実施形態の効果を説明するための比較図である。FIG. 11 is a comparison diagram for explaining the effects of the third embodiment; 第3の実施形態の効果を説明するための比較図である。FIG. 11 is a comparison diagram for explaining the effects of the third embodiment; 本発明の効果を説明するための比較図である。FIG. 4 is a comparison diagram for explaining the effects of the present invention;

以下、添付の図面を参照して本発明の好適な実施形態を説明する。なお、以下の実施形態において示す構成は一例にすぎず、本発明は図示された構成に必ずしも限定されるものではない。 Preferred embodiments of the present invention will now be described with reference to the accompanying drawings. Note that the configurations shown in the following embodiments are merely examples, and the present invention is not necessarily limited to the illustrated configurations.

(第1の実施形態)
図1(a)および(b)は、本実施形態で使用する記録装置100及び記録ヘッド102の概略図である。本実施形態で使用する記録装置100は、シリアル型のインクジェット記録装置とする。図において、x方向は記録ヘッドの主走査方向、y方向は記録媒体Sの搬送方向、z方向はインクの吐出方向をそれぞれ示す。
(First embodiment)
1A and 1B are schematic diagrams of a printing apparatus 100 and a printing head 102 used in this embodiment. The printing apparatus 100 used in this embodiment is a serial type inkjet printing apparatus. In the drawing, the x direction indicates the main scanning direction of the print head, the y direction indicates the transport direction of the print medium S, and the z direction indicates the ink ejection direction.

図1(b)に示すように、記録ヘッド102には、シアン(C)、マゼンタ(M)、イエロー(Y)およびブラック(K)のインクを夫々吐出するノズル列が、x方向に並列配置されている。また、夫々のノズル列には、記録データに従ってインクをz方向に吐出するノズル101が、y方向に複数配列されている。 As shown in FIG. 1B, in the print head 102, nozzle arrays for ejecting cyan (C), magenta (M), yellow (Y), and black (K) inks are arranged in parallel in the x direction. It is In each nozzle row, a plurality of nozzles 101 for ejecting ink in the z-direction according to print data are arranged in the y-direction.

図1(a)に示すように、記録ヘッド102はキャリッジ103に装着され、キャリッジ103はキャリッジ軸107に沿って±x方向に移動可能である。キャリッジ103が±x方向に移動する間に、記録ヘッド102が記録データに従って吐出口101からインクを吐出することにより、記録媒体Sに1バンド分の画像が記録される。記録ヘッド102の吐出口面と対向する位置には、平板からなるプラテン105が配されている。プラテン105は、記録ヘッド102によって記録される領域の記録媒体Sを背面から支持し、記録ヘッド102の吐出口面と記録媒体Sとの距離を一定に保っている。 As shown in FIG. 1A, the recording head 102 is mounted on a carriage 103, and the carriage 103 is movable along a carriage shaft 107 in ±x directions. While the carriage 103 moves in the ±x directions, the print head 102 ejects ink from the ejection openings 101 according to print data, thereby printing one band of an image on the print medium S. FIG. A flat platen platen 105 is arranged at a position facing the ejection port surface of the recording head 102 . The platen 105 supports the print medium S in the area to be printed by the print head 102 from behind, and keeps the distance between the ejection port surface of the print head 102 and the print medium S constant.

記録ヘッド102による1バンド分の記録走査が完了すると、記録媒体Sを挟持する2組の搬送ローラ104が回転し、上記1バンド分に相当する距離だけ記録媒体を+y方向に搬送する。以上のような記録ヘッド102による1バンド分の記録走査と、搬送ローラ104による記録媒体Sの搬送動作とを交互に繰り返すことにより、記録媒体Sには段階的に画像が形成されていく。 When the print head 102 completes the print scan for one band, the two sets of conveying rollers 104 that sandwich the print medium S rotate to convey the print medium in the +y direction by a distance corresponding to the one band. By alternately repeating the printing scan for one band by the printing head 102 and the conveying operation of the printing medium S by the conveying roller 104 as described above, an image is formed on the printing medium S step by step.

図2は、本実施形態における制御の構成を説明するためのブロック図である。画像処理装置200はホストPCなどからなり、CPU201は、不揮発性の記憶部であるHDD203に保持されるプログラムに従って揮発性の記憶部であるRAM202をワークエリアとしながら各種処理を実行する。例えばCPU201は、キーボード・マウスI/F 205を介してユーザより受信したコマンドやHDD303に保持されるプログラムに従って、記録装置100が記録可能な記録データを生成し、これを記録装置100に出力する。また、データ転送I/F 204を介して記録装置100から受信した情報をディスプレイI/F 206を介して不図示のディスプレイに表示する。 FIG. 2 is a block diagram for explaining the configuration of control in this embodiment. The image processing apparatus 200 includes a host PC or the like, and a CPU 201 executes various processes according to a program held in an HDD 203, which is a nonvolatile storage, while using a RAM 202, which is a volatile storage, as a work area. For example, the CPU 201 generates print data that can be printed by the printing apparatus 100 according to commands received from the user via the keyboard/mouse I/F 205 and programs held in the HDD 303 , and outputs the print data to the printing apparatus 100 . Information received from the recording apparatus 100 via the data transfer I/F 204 is displayed on a display (not shown) via the display I/F 206 .

一方、記録装置100において、CPU211は、不揮発性の記憶部であるROM213に保持されるプログラムに従って揮発性の記憶部であるRAM212をワークエリアとしながら各種処理を実行する。更に、記録装置100は、高速な画像処理を行うための画像処理アクセラレータ216、記録ヘッド102を制御するためのヘッドコントローラ215を備えている。 On the other hand, in the recording apparatus 100, the CPU 211 executes various processes while using the RAM 212, which is a volatile storage unit, as a work area according to a program held in a ROM 213, which is a nonvolatile storage unit. Further, the printing apparatus 100 includes an image processing accelerator 216 for performing high-speed image processing and a head controller 215 for controlling the printing head 102 .

画像処理アクセラレータ216は、CPU211よりも高速に画像処理を実行可能なハードウェアである。画像処理アクセラレータ216は、CPU211が画像処理に必要なパラメータとデータをRAM212の所定のアドレスに書き込むことにより起動され、上記パラメータとデータを読み込んだ後、上記データに対し所定の画像処理を実行する。但し、画像処理アクセラレータ216は必須な要素ではなく、同等の処理はCPU211で実行してもよい。 The image processing accelerator 216 is hardware capable of executing image processing faster than the CPU 211 . The image processing accelerator 216 is activated when the CPU 211 writes parameters and data necessary for image processing to a predetermined address in the RAM 212. After reading the parameters and data, the image processing accelerator 216 executes predetermined image processing on the data. However, the image processing accelerator 216 is not an essential element, and equivalent processing may be executed by the CPU 211 .

ヘッドコントローラ215は、記録ヘッド102に記録データを供給するとともに、記録ヘッド102の記録動作を制御する。ヘッドコントローラ215は、CPU211が、記録ヘッド102が記録可能な記録データと制御パラメータをRAM212の所定のアドレスに書き込むことにより起動され、当該記録データに従って吐出動作を実行する。 A head controller 215 supplies print data to the print head 102 and controls the print operation of the print head 102 . The head controller 215 is activated when the CPU 211 writes print data that can be printed by the print head 102 and control parameters to a predetermined address in the RAM 212, and executes an ejection operation according to the print data.

キャリッジコントローラ217は、CPU211の指示に従ってキャリッジ103の±x方向への移動を制御する。また、搬送コントローラ218は、CPU211の指示に従って搬送ローラ104の回転即ち記録媒体Sの搬送を制御する。 A carriage controller 217 controls movement of the carriage 103 in the ±x directions according to instructions from the CPU 211 . Also, the transport controller 218 controls the rotation of the transport roller 104 , that is, the transport of the recording medium S according to instructions from the CPU 211 .

画像処理装置200のデータ転送I/F 204および記録装置100のデータ転送I/F 214における接続方式としては、USB、IEEE1394、LAN等を用いることができる。 USB, IEEE1394, LAN, or the like can be used as a connection method for the data transfer I/F 204 of the image processing apparatus 200 and the data transfer I/F 214 of the recording apparatus 100 .

図3は、印刷コマンドが発生した際に画像処理装置200のCPU201が実行する画像処理の工程を説明するためのフローチャートである。本処理は、CPU201が、HDD203に記憶されたプログラムに従ってRAM202をワークエリアとして利用しながら実行する。 FIG. 3 is a flowchart for explaining image processing steps executed by the CPU 201 of the image processing apparatus 200 when a print command is issued. This processing is executed by the CPU 201 using the RAM 202 as a work area according to the program stored in the HDD 203 .

本処理が開始されると、CPU201は、まず、アプリケーションプログラムなどで作成された画像データを取得しRAM202に展開する。本実施形態では個々の画素についてレッド(R)、グリーン(G)、ブルー(B)それぞれの輝度を示す8bit(256階調)の画素値を有する画像データが取得されるものとする。以下、このように例えばR、G、Bのような複数の成分の画素値を有する画素によって構成される画像データを、その成分を用いてRGBデータのように表記する。 When this process is started, the CPU 201 first acquires image data created by an application program or the like and develops it in the RAM 202 . In this embodiment, it is assumed that image data having 8-bit (256 gradation levels) pixel values indicating the brightness of each of red (R), green (G), and blue (B) is acquired for each pixel. Image data composed of pixels having pixel values of a plurality of components such as R, G, and B is hereinafter referred to as RGB data using the components.

S301において、CPU201はRAM202に展開した画像データに対し、色補正処理を実行する。色補正処理とは、sRGB等の規格化された色空間を表現する画像データを、記録装置100が記録可能な色空間に対応づけた画像データに変換するための処理である。具体的には、CPU201は、予め記憶されたRGBの3次元ルックアップテーブルを参照し、8bit(256階調)の画素値を有するRGBデータを、8bit(256階調)の画素値を有するR´G´B´データに変換する。 In S<b>301 , the CPU 201 executes color correction processing on the image data developed in the RAM 202 . Color correction processing is processing for converting image data representing a standardized color space such as sRGB into image data associated with a color space printable by the printing apparatus 100 . Specifically, the CPU 201 refers to a pre-stored RGB three-dimensional lookup table, converts RGB data having 8-bit (256 gradation) pixel values to R data having 8-bit (256 gradation) pixel values. Convert to 'G'B' data.

S302において、CPU201はS301で生成したR´G´B´データに対し、色変換処理を実行する。色変換処理とは、輝度情報を示すR´G´B´データを、記録装置100が使用するインク色に対応した、K、C、M、及びYのそれぞれの濃度情報を示すデータに変換するための処理である。具体的には、CPU201は、予め記録された3次元ルックアップテーブルを参照し、各画素の8bit(256階調)のR´G´B´データを、8bit(256階調)のKCMYごとのデータに変換する。色変換処理された各インク色に対応したデータをまとめてKCMYデータと呼ぶ。 In S302, the CPU 201 executes color conversion processing on the R'G'B' data generated in S301. The color conversion process converts R'G'B' data indicating luminance information into data indicating respective density information of K, C, M, and Y corresponding to ink colors used by the printing apparatus 100. This process is for Specifically, the CPU 201 refers to a prerecorded three-dimensional lookup table, and converts 8-bit (256 gradation) R′G′B′ data of each pixel into 8-bit (256 gradation) KCMY Convert to data. Data corresponding to each ink color that has undergone color conversion processing is collectively referred to as KCMY data.

S303において、CPU201はS302で生成したKCMYデータに対し、量子化処理を行う。量子化処理については後に詳しく説明するが、この量子化処理によって、8bit(256階調)のKCMYデータは、1bitのK´C´M´Y´データに変換される。本実施形態において、K´C´M´Y´データは、KCMYの各インク色について、ドットの記録(1)又は非記録(0)を画素ごとに指定する2値データとする。 In S303, the CPU 201 performs quantization processing on the KCMY data generated in S302. The quantization process will be described in detail later, but this quantization process converts 8-bit (256 gradation) KCMY data into 1-bit K'C'M'Y' data. In this embodiment, the K'C'M'Y' data is binary data that designates dot printing (1) or non-printing (0) for each pixel for each ink color of KCMY.

S304において、CPU201はS303で生成したK´C´M´Y´データを記録データとして記録装置100に出力する。以上で本処理が終了する。 In S304, the CPU 201 outputs the K'C'M'Y' data generated in S303 to the printing apparatus 100 as print data. This completes the processing.

記録データを受信した記録装置100のCPU211は、記録データをRAM212に展開する。そして、ヘッドコントローラ215、キャリッジコントローラ217及び搬送コントローラ218を制御しながら、RAM212に展開した記録データに従って、記録媒体に画像を記録する。 The CPU 211 of the printing apparatus 100 that has received the print data develops the print data in the RAM 212 . Then, while controlling the head controller 215 , the carriage controller 217 and the transport controller 218 , an image is printed on the printing medium according to the printing data developed in the RAM 212 .

図4は、本実施形態の量子化処理における機能構成を説明するためのブロック図である。以下、簡単に各ブロックの役割を説明する。S302のインク色分解処理で生成されたKCMYデータは、インク色ごとに領域選択部401に入力される。以下、KCMYデータを構成するインク色ごとのデータを、本明細書では階調データと称する。各階調データは、同じ画素数であり、縦方向の画素数および横方向の画素数も同じである。図4において、第1色はブラック(K)、第2色はシアン(C)、第3色はマゼンタ(M)、第4色はイエロー(Y)とする。 FIG. 4 is a block diagram for explaining the functional configuration in the quantization processing of this embodiment. The role of each block will be briefly described below. The KCMY data generated by the ink color separation processing in S302 is input to the area selection unit 401 for each ink color. Data for each ink color that constitutes the KCMY data is hereinafter referred to as gradation data in this specification. Each gradation data has the same number of pixels, and the number of pixels in the vertical direction and the number of pixels in the horizontal direction are also the same. In FIG. 4, the first color is black (K), the second color is cyan (C), the third color is magenta (M), and the fourth color is yellow (Y).

領域選択部401は、複数の画素で構成される階調データを複数の単位領域に分割し、その中から1つの単位領域を処理対象領域として設定する。このとき領域選択部401は、各色の階調データについて、同じ位置の複数の単位領域により分割する。そして、設定した処理対象領域に対応する各色の階調データをインク色選択部402に提供する。 The region selection unit 401 divides the gradation data composed of a plurality of pixels into a plurality of unit regions, and sets one unit region among them as a processing target region. At this time, the area selection unit 401 divides the gradation data of each color into a plurality of unit areas at the same position. Then, the ink color selection unit 402 is provided with gradation data of each color corresponding to the set processing target area.

インク色選択部402は、メモリに保存されている量子化順情報408を参照し、第1色~第4色の中から処理対象色を選択し、選択したインク色の処理対象領域に対応する階調データを、目標ドット数設定部403に提供する。量子化順情報408は、量子化処理を実行する色順を示す情報である。 The ink color selection unit 402 refers to the quantization order information 408 stored in the memory, selects a color to be processed from among the first to fourth colors, and selects a color to be processed corresponding to the selected ink color. The gradation data is provided to the target dot number setting unit 403 . The quantization order information 408 is information indicating the color order for executing the quantization process.

目標ドット数設定部403は、メモリに保存されている閾値マトリクス411を参照し、インク色選択部402から提供された階調データに基づいて、処理対象領域に配置するべき目標ドット数Dを色ごとに設定する。目標ドット数とは、処理対象領域においてドットを配置すべき数である。ここでは量子化処理により、各画素をドットの記録(1)又は非記録(0)を画素ごとに指定する2値に変換する。すなわち目標ドット数とは、処理対象領域に含まれる画素のうち、量子化により記録を示す値(ここでは、1)にすべき画素の数とも言い換えることができる。そして、設定した目標ドット数Dを、処理対象領域に対応する階調データと共に基準値取得部404に提供する。 The target dot number setting unit 403 refers to the threshold matrix 411 stored in the memory, and based on the gradation data provided from the ink color selection unit 402, sets the target number of dots D to be arranged in the processing target area. set for each The target number of dots is the number of dots to be arranged in the processing target area. Here, each pixel is converted by quantization processing into a binary value that designates dot printing (1) or non-printing (0) for each pixel. That is, the target number of dots can be rephrased as the number of pixels to be set to a value (here, 1) indicating printing by quantization among the pixels included in the processing target area. Then, the set target dot number D is provided to the reference value acquiring unit 404 together with the gradation data corresponding to the processing target area.

基準値取得部404は、メモリに保存されている基準値情報409を参照し、処理対象色の処理対象領域に対応する基準値Rを取得する。本実施形態において、基準値情報409とは、処理対象領域701における夫々の画素に対しドットを配置する優先順位を、基準値として暫定的に示す情報である。 The reference value acquisition unit 404 refers to the reference value information 409 stored in the memory and acquires the reference value R corresponding to the processing target area of the processing target color. In the present embodiment, the reference value information 409 is information that provisionally indicates, as a reference value, the order of priority in arranging dots for each pixel in the processing target area 701 .

評価値設定部405は、メモリに保存されている排他値情報410を参照し、排他値情報と基準値取得部404が取得した基準値Rとに基づいて、処理対象色の処理対象領域に含まれる画素のそれぞれに対し評価値Evを設定する。ここで排他値とは、ドットが重ならないよう制御するために用いられるドットの配置に関する情報である。詳細な算出方法は後述するが、ここでは排他値が大きい画素ほど、ドットを配置しない方がよいことを意味する。処理対象領域に含まれる各画素の排他値を含む排他値情報として、本実施形態では累積ドット数情報410を用いる。評価値Evは、ドットを配置する最終的な優先順位を示す値である。 The evaluation value setting unit 405 refers to the exclusion value information 410 stored in the memory, and based on the exclusion value information and the reference value R acquired by the reference value acquisition unit 404, the color included in the processing target region of the processing target color. An evaluation value Ev is set for each pixel in the Here, the exclusion value is information regarding the arrangement of dots used to control the dots so that they do not overlap. A detailed calculation method will be described later, but here, it means that it is better not to place dots on a pixel with a larger exclusive value. In the present embodiment, cumulative dot number information 410 is used as the exclusive value information including the exclusive value of each pixel included in the processing target area. The evaluation value Ev is a value indicating the final priority of dot placement.

ドット配置部406は、評価値設定部405が設定した評価値Evと、目標ドット数決定部が決定した目標ドット数Dに基づいて、処理対象領域に含まれる個々の画素についてドットを配置する。また、ドット配置部406は、配置した結果に基づいて累積ドット数情報410を更新する。 The dot arrangement unit 406 arranges dots for each pixel included in the processing target area based on the evaluation value Ev set by the evaluation value setting unit 405 and the target dot number D determined by the target dot number determination unit. Also, the dot placement unit 406 updates the accumulated dot number information 410 based on the placement result.

量子化データ作成部407は、ドット配置部406が生成したドット配置データに基づいて、記録装置100が記録可能な量子化データを生成し、記録データとして記録装置100に出力する。ここで言う各色の量子化データは、図3のフローチャートで説明したK´C´M´Y´データに相当する。 A quantized data generation unit 407 generates quantized data printable by the printing apparatus 100 based on the dot arrangement data generated by the dot arrangement unit 406, and outputs the quantized data to the printing apparatus 100 as print data. The quantized data of each color referred to here corresponds to the K'C'M'Y' data described in the flow chart of FIG.

なお、図4において、メモリは、図2で説明した画像処理装置200における不揮発性のHDD203と揮発性のRAM202を統合して示したものである。また、以上説明した各ブロックは、実質的には図2に示したCPU201が実行するソフトウェア上の機能単位である。 Note that in FIG. 4, the memory is shown by integrating the nonvolatile HDD 203 and the volatile RAM 202 in the image processing apparatus 200 described in FIG. Each block described above is substantially a functional unit on software executed by the CPU 201 shown in FIG.

図5は、CPU201が、S303の量子化処理において、図4に示す各ブロックを用いながら実行する処理工程を説明するためのフローチャートである。また、図6および図7(a)~(k)は、本実施形態の量子化処理の様子、および個々の画素が有する画素値が変換される様子を具体的に説明するための図である。以下、図6、図7(a)~(k)を参照しながら、図5に示すフローチャートに従って、本実施形態で実行する量子化処理を詳細に説明する。 FIG. 5 is a flowchart for explaining processing steps executed by the CPU 201 using each block shown in FIG. 4 in the quantization processing of S303. FIGS. 6 and 7(a) to (k) are diagrams for specifically explaining how the quantization process of this embodiment is performed and how pixel values of individual pixels are converted. . The quantization process performed in this embodiment will be described in detail below according to the flowchart shown in FIG. 5 with reference to FIGS. 6 and 7(a) to (k).

本処理が開始されると、まずS500において領域選択部401は、印刷対象となる画像領域の中から1つの単位領域を処理対象領域として設定する。 When this process is started, first in S500, the area selection unit 401 sets one unit area from among the image areas to be printed as a process target area.

図6は、処理対象領域の設定方法を説明するための概念図である。領域選択部401は、印刷対象となる画像領域600を、同型の複数の単位領域601に分割し、その中から1つの単位領域を処理対象領域として設定する。本実施形態では印刷対象となる画像領域を4画素×4画素の単位で区画し、それぞれの4画素×4画素領域を単位領域601として扱う。そして、これら複数の単位領域601を順番に処理対象領域701に設定して所定の量子化処理を行う。図6では、斜線で示した単位領域が処理対象領域701として設定された様子を示している。処理対象領域を設定する順番は特に限定されるものではないが、本実施形態では図の左上から+x方向に順番に設定し、最端部の処理が修了すると+y方向に隣接する段に移る順番とする。 FIG. 6 is a conceptual diagram for explaining a method of setting a processing target area. The area selection unit 401 divides an image area 600 to be printed into a plurality of unit areas 601 of the same type, and sets one unit area among them as a processing target area. In this embodiment, the image area to be printed is divided into units of 4 pixels×4 pixels, and each 4 pixels×4 pixel area is treated as a unit area 601 . Then, these plurality of unit regions 601 are sequentially set as a processing target region 701 to perform a predetermined quantization process. FIG. 6 shows a state in which the hatched unit area is set as the processing target area 701 . The order in which the processing target areas are set is not particularly limited, but in this embodiment, they are set in order from the upper left of the figure in the +x direction, and when the processing of the farthest end is completed, the order is shifted to the adjacent stage in the +y direction. and

図5のフローチャートに戻る。S500で処理対象領域が設定されると、インク色選択部402は、S501において、ブラック(第1色)、シアン(第2色)、マゼンタ(第3色)、イエロー(第4色)の中から処理対象色を設定する。処理対象色に設定する色順序は、量子化順情報408としてHDD203のメモリに予め格納されており、インク色選択部402は、本工程が行われる度に新たな色を量子化順情報408が示す色順序に従って設定する。 Returning to the flow chart of FIG. When the processing target area is set in S500, the ink color selection unit 402 selects one of black (first color), cyan (second color), magenta (third color), and yellow (fourth color) in S501. Set the processing target color from . The color order to be set for the colors to be processed is stored in advance in the memory of the HDD 203 as quantization order information 408, and the ink color selection unit 402 selects a new color each time this process is performed. Set according to the color sequence shown.

S502において、インク色選択部402は、処理対象領域の処理対象色の階調データをメモリに展開する。図7(a)は、S502で展開される階調データの一例を示す。処理対象領域701に含まれる4×4の画素のそれぞれに0~255の階調値Iが対応づけられている。 In S502, the ink color selection unit 402 develops the gradation data of the processing target color of the processing target region in the memory. FIG. 7A shows an example of gradation data developed in S502. A gradation value I of 0 to 255 is associated with each of the 4×4 pixels included in the processing target area 701 .

S503において、目標ドット数設定部403は、処理対象領域に配置すべき処理対象色の目標ドット数を設定する。本実施形態では、目標ドット数設定部403は、予めメモリに記憶されている閾値マトリクス411を参照することによって、目標ドット数Dを設定する。 In S503, the target dot number setting unit 403 sets the target dot number of the processing target color to be arranged in the processing target area. In this embodiment, the target dot number setting unit 403 sets the target dot number D by referring to the threshold matrix 411 stored in advance in the memory.

図7(b)は、S503で参照される閾値マトリクス411の一例を示す。閾値マトリクス411は、0から254の何れかの閾値Thが画素位置に対応づけて記憶されている。図7(b)では、8画素×8画素の画素領域のみを示しているが、実際には更に広い画素領域に対し画素位置と閾値Thが対応づけて記憶されている。 FIG. 7B shows an example of the threshold matrix 411 referenced in S503. The threshold matrix 411 stores thresholds Th from 0 to 254 in association with pixel positions. Although FIG. 7B shows only a pixel region of 8 pixels×8 pixels, in reality, pixel positions and threshold values Th are stored in association with a wider pixel region.

目標ドット数設定部403は、まず、処理対象領域の処理対象色の階調データに基づいて、処理対象領域における階調値Iの平均値Aveを算出する。次に目標ドット数設定部403は、このような閾値マトリクス411の中から処理対象領域に対応する4×4(16個)の閾値Thマトリクス(太線で囲った領域)を読み出し、各画素に対応する閾値Thを、図7(a)に示す階調値Iの平均値Aveと比較する。そして、16画素のうち、平均値Aveが閾値よりも大きくなる画素の数をカウントし、そのカウント値を処理対象領域701の処理対象色の目標ドット数Dとして設定する。 The target dot number setting unit 403 first calculates the average value Ave of the gradation values I in the process target area based on the gradation data of the process target color of the process target area. Next, the target dot number setting unit 403 reads a 4×4 (16) threshold value Th matrix (area surrounded by a thick line) corresponding to the processing target area from the threshold matrix 411, and The threshold value Th is compared with the average value Ave of the gradation value I shown in FIG. 7(a). Then, among the 16 pixels, the number of pixels whose average value Ave is larger than the threshold value is counted, and the count value is set as the target dot number D of the processing target color of the processing target region 701 .

すなわち、処理対象領域の階調データが図7(a)の場合、階調値Iの平均値は、Ave=1756/16=109.75と算出される。そして、図7(b)の太線に含まれる16個の画素のうち、閾値ThがAve>Thとなる画素の数は7個である。よってこの場合、処理対象領域701の目標ドット数Dは、D=7となる。 That is, when the gradation data of the processing target area is shown in FIG. 7A, the average value of the gradation values I is calculated as Ave=1756/16=109.75. Among the 16 pixels included in the thick line in FIG. 7B, the number of pixels where the threshold value Th satisfies Ave>Th is seven. Therefore, in this case, the target dot number D of the processing target area 701 is D=7.

なお、本実施形態の閾値マトリクス411は、ドットの分散性を重視したブルーノイズ特性を有するものとする。すなわち、閾値マトリクス411に含まれる0~254の閾値の小さい順にドットを配置して行ったとき、ドットの数によらず分散性に優れたドット配置が安定して得られることとなる。その上で、閾値マトリクス411は、16画素×16画素や256画素×256画素など所定の領域内において、同値の閾値Thが同数ずつ配置されていることが好ましい。すなわち、例えば256画素×256画素の領域においては、0~254の値が、257もしくは256個ずつ含まれていることが好ましい。 It should be noted that the threshold matrix 411 of the present embodiment has blue noise characteristics that emphasize the dispersibility of dots. That is, when the dots are arranged in ascending order of the thresholds 0 to 254 included in the threshold matrix 411, a dot arrangement with excellent dispersibility can be stably obtained regardless of the number of dots. In addition, it is preferable that the threshold matrix 411 has the same number of threshold values Th arranged in a predetermined area such as 16 pixels×16 pixels or 256 pixels×256 pixels. That is, for example, in an area of 256 pixels×256 pixels, it is preferable that each of 257 or 256 values from 0 to 254 is included.

図5のフローチャートに戻る。S504において、基準値取得部404は、予めメモリに記憶されている基準値情報を取得する。 Returning to the flow chart of FIG. In S504, the reference value acquisition unit 404 acquires reference value information stored in advance in the memory.

図7(c)~(e)は、基準値情報409の例を示す図である。ここでは処理対象領域701は、4画素かける4画素の16画素なので、基準値情報は16画素それぞれについて、1~16のうちいずれかの値が暫定的な優先順位として対応付けられた情報である。 7C to 7E are diagrams showing examples of the reference value information 409. FIG. Here, since the processing target area 701 is 16 pixels, which is 4 pixels multiplied by 4 pixels, the reference value information is information in which any value from 1 to 16 is associated as a provisional priority order for each of the 16 pixels. .

ここで、図7(e)は、本実施形態における基準値情報を示している。基準値取得部404は、図7(b)に示した閾値マトリクス411の中から処理対象領域701に対応する4画素×4画素領域を読み出し、閾値Thが小さい画素の順に1~16の基準値Rを配して基準値情報を作成する。この場合、閾値マトリクス411を基準値情報として併用できるので、基準値情報のために用意するメモリ容量を節約することができる。本実施形態では閾値マトリクスに基づいて基準値情報を作成するものとしたが、予め用意された基準値情報を保持しておいてもよい。たとえば図7(d)は、予め保持された場合の基準値情報である。量子化処理に用いる閾値マトリクスと同様に、基準値情報もドット分散型である。ドット分散型の場合、基準値情報は優先順位を示す値が分散して配置されている。このように閾値マトリクスおよびドット分散型の基準値情報を用いることにより、高い分散性でドットを配置し、粒状感を抑えることができる。図7(c)~(e)に示すいずれの基準値情報においても、1~16に示す基準値Rはドットが配される優先順位の暫定値を示している。すなわち、ドットが配される暫定的な優先順位は、基準値が「1」の画素で最も高く基準値が「16」の画素で最も低いことを意味する。 Here, FIG. 7E shows reference value information in this embodiment. The reference value acquisition unit 404 reads a 4-pixel×4-pixel region corresponding to the processing target region 701 from the threshold matrix 411 shown in FIG. R is arranged to create reference value information. In this case, since the threshold matrix 411 can be used together as the reference value information, the memory capacity prepared for the reference value information can be saved. Although the reference value information is created based on the threshold matrix in this embodiment, reference value information prepared in advance may be held. For example, FIG. 7D shows the reference value information held in advance. Similar to the threshold matrix used for quantization processing, the reference value information is also of dot dispersion type. In the case of the dot distribution type, the reference value information is arranged with values indicating priority distributed. By using the threshold matrix and the dot dispersion type reference value information in this manner, dots can be arranged with high dispersion, and graininess can be suppressed. In any reference value information shown in FIGS. 7(c) to (e), the reference values R indicated by 1 to 16 indicate the provisional values of the priorities in which dots are arranged. In other words, the provisional order of dot allocation is highest for pixels with a reference value of “1” and lowest for pixels with a reference value of “16”.

図5のフローチャートに戻る。S505において、評価値設定部405は、メモリに記憶されている累積ドット数情報を取得する。本実施形態において累積ドット数情報とは、量子化処理によって処理対象領域において既に配置されたドットの累積数を、処理対象領域に含まれる画素ごとに記憶した情報である。つまり処理対象色より前に量子化処理を実行された色がある場合に、他の色に対応するドットの累積数が累積ドット数情報として保持されている。よって、処理対象色が第1色(ブラック)である場合、累積ドット数情報は処理対象領域内の全画素について「0」が設定されている。 Returning to the flow chart of FIG. In S505, the evaluation value setting unit 405 acquires cumulative dot number information stored in the memory. In the present embodiment, the cumulative dot number information is information in which the cumulative number of dots already arranged in the processing target area by the quantization process is stored for each pixel included in the processing target area. That is, when there is a color that has undergone quantization processing before the color to be processed, the cumulative number of dots corresponding to the other colors is held as cumulative dot number information. Therefore, when the processing target color is the first color (black), the accumulated dot number information is set to "0" for all pixels within the processing target area.

図7(f)は、累積ドット数情報の一例を示す。ここでは、現在の処理対象色が第2色(シアン)であり、累積ドット数情報に第1色(ブラック)の量子化の結果が反映された状態を示している。すなわち、図7(f)に示す16画素の中で、「1」が示されている画素は既にドットが1つ配置されたことを示し、「0」が示されている画素はドットが1つも配置されていないことを示している。本実施形態では、このような累積ドット数情報を排他値情報として利用して、次に処理対象色となる色のドット配置を決める。以下、累積ドット数情報を排他値情報、個々の画素の累積ドット数を排他値Hと称する。 FIG. 7F shows an example of accumulated dot number information. Here, the current color to be processed is the second color (cyan), and the accumulated dot number information reflects the quantization result of the first color (black). That is, among the 16 pixels shown in FIG. It shows that no one is placed. In the present embodiment, such accumulated dot number information is used as exclusive value information to determine the dot arrangement of the color to be processed next. Hereinafter, the cumulative dot number information is referred to as exclusive value information, and the cumulative dot number of each pixel is referred to as exclusive value H.

S506において、評価値設定部405は、S505で取得した排他値情報と、S504で取得した基準値情報に基づいて、処理対象領域に含まれる個々の画素についての評価値Evを設定する。評価値設定部405は、処理対象領域に含まれる画素を、排他値が小さく、かつ基準値が小さい画素ほど評価値Evが高くなるように評価値Evを設定する。なお評価値Evは、優先順位を示す値であるので、その値が小さいほど優先順位が高い。。 In S506, the evaluation value setting unit 405 sets the evaluation value Ev for each pixel included in the processing target area based on the exclusion value information acquired in S505 and the reference value information acquired in S504. The evaluation value setting unit 405 sets the evaluation value Ev for the pixels included in the processing target area such that the evaluation value Ev increases for pixels with a smaller exclusion value and a smaller reference value. Note that the evaluation value Ev is a value indicating priority, so the smaller the value, the higher the priority. .

図7(g)および(h)は、図7(e)で示す基準値情報と、図7(f)に示す排他値情報に基づいて、評価値Evを設定する手順を示す図である。本実施形態では、異なる色のドットをなるべく同じ画素に配置しないようにする。そのため、排他値情報が図7(f)の場合、評価値設定部405は、まず排他値Hが「0」である5つの画素のみを抽出し、それら5つの画素の中でドットを記録する優先順位(評価値)を図7(e)で示す基準値情報に基づいて設定する。すなわち、排他値Hが「0」である5つの画素に対し、基準値Rが小さい画素の順に、評価値Ev=1~5を設定する。図7(g)は、排他値Hが「0」である5つの画素に対し評価値Ev=1~5が設定された状態を示している。 7(g) and (h) are diagrams showing procedures for setting the evaluation value Ev based on the reference value information shown in FIG. 7(e) and the exclusion value information shown in FIG. 7(f). In this embodiment, dots of different colors are arranged in the same pixel as little as possible. Therefore, when the exclusion value information is shown in FIG. 7F, the evaluation value setting unit 405 first extracts only five pixels whose exclusion value H is "0", and prints dots in these five pixels. The priority (evaluation value) is set based on the reference value information shown in FIG. 7(e). That is, the evaluation values Ev=1 to 5 are set in order of the pixel having the smallest reference value R for the five pixels having the exclusion value H of "0". FIG. 7G shows a state in which evaluation values Ev=1 to 5 are set for five pixels whose exclusion value H is "0".

次に、CPU201は、排他値Hが「1」である残りの画素に対し、基準値Rが小さい画素の順に、評価値Ev=6~16を設定する。図7(h)は、全画素について評価値Ev=1~16が設定された状態を示している。 Next, the CPU 201 sets evaluation values Ev=6 to 16 for the remaining pixels whose exclusion value H is “1” in ascending order of the reference value R. FIG. FIG. 7(h) shows a state in which evaluation values Ev=1 to 16 are set for all pixels.

図5のフローチャートに戻る。S507において、ドット配置部406は、S503で設定された目標ドット数DとS506で設定された評価値Evとに基づいて、処理対象領域に処理対象色のドットを配置する。具体的には、処理対象領域に対し、目標ドット数Dが示す数のドットを、S506で設定された評価値Evが小さい順に、個々の画素に1つずつ配置し、ドット配置データを生成する。ドットを配置された画素には1を、ドットを配置されなかった画素には0を格納することにより、ドット配置部406は処理対象領域における処理対象色のドット配置データを生成する。 Returning to the flow chart of FIG. In S507, the dot arrangement unit 406 arranges dots of the color to be processed in the area to be processed based on the target dot number D set in S503 and the evaluation value Ev set in S506. Specifically, the number of dots indicated by the target number of dots D is arranged in each pixel in the process target area in ascending order of the evaluation value Ev set in S506 to generate dot arrangement data. . The dot arrangement unit 406 generates dot arrangement data of the color to be processed in the area to be processed by storing 1 in pixels where dots are arranged and 0 in pixels where no dots are arranged.

図7(i)は、評価値Evが図7(h)のように設定され、且つ、目標ドット数DがD=7であった処理対象領域に対して決定されるドット配置を模式的に示す図である。図7において、黒で示した領域が処理対象色のドットを配置する画素、白で示した領域が処理対象色のドットを配置しない画素をそれぞれ示している。図7(i)では、図7(f)において排他値Hが「0」である画素の全てと排他値Hが「1」である画素の一部にドットが配置されていることがわかる。図7(k)は、図7(i)に示すドット配置データに従って生成された量子化データを示している。処理対象領域の個々の画素について、処理対象色のドットが配置された画素に記録(1)、それ以外の画素に非記録(0)が対応づけられている。このような処理対象領域の記録(1)または非記録(0)を示す量子化データは、量子化データ作成部407に出力される。 FIG. 7(i) schematically shows the dot arrangement determined for the processing target area in which the evaluation value Ev is set as shown in FIG. 7(h) and the target dot number D is D=7. FIG. 4 is a diagram showing; In FIG. 7, black areas indicate pixels in which dots of the color to be processed are arranged, and white areas indicate pixels in which dots of the color to be processed are not arranged. In FIG. 7(i), it can be seen that dots are arranged in all of the pixels whose exclusive value H is "0" and some of the pixels whose exclusive value H is "1" in FIG. 7(f). FIG. 7(k) shows quantized data generated according to the dot arrangement data shown in FIG. 7(i). For each pixel in the processing target area, printing (1) is associated with pixels in which dots of the processing target color are arranged, and non-printing (0) is associated with other pixels. The quantized data indicating recording (1) or non-recording (0) of the processing target area is output to the quantized data generation unit 407 .

S508において、ドット配置部406は、S507で生成されたドット配置データに基づいて、排他値情報(累積ドット情報)を更新する。すなわち、S507で処理対象色のドットが配置された画素に対応する排他値Hに1を加算し、新たな排他値情報(累積ドット情報)としてメモリに保存する。 In S508, the dot arrangement unit 406 updates exclusion value information (accumulated dot information) based on the dot arrangement data generated in S507. That is, in S507, 1 is added to the exclusion value H corresponding to the pixel in which the dot of the processing target color is arranged, and stored in the memory as new exclusion value information (accumulated dot information).

図7(j)は、図7(i)に示すドット配置データに従って、図7(f)に示す排他値情報を更新した結果を示している。図7(j)において、排他値Hが「2」である画素は、第1色のドットと第2色のドットが共に配置されたことを意味し、排他値Hが「1」である画素は、第1色のドットと第2色のいずれか一方のドットが配置されたことを意味している。 FIG. 7(j) shows the result of updating the exclusion value information shown in FIG. 7(f) according to the dot arrangement data shown in FIG. 7(i). In FIG. 7(j), a pixel with an exclusive value H of "2" means that dots of the first color and dots of a second color are arranged together, and a pixel with an exclusive value H of "1". means that either the dots of the first color or the dots of the second color are arranged.

図5のフローチャートに戻る。S509において、量子化データ作成部407は、S507で生成したドット配置データに従って、処理対象色の量子化データを生成する。本実施形態において量子化データ作成部407は、領域毎の量子化データを蓄積し、処理対象色の画像全体の量子化データを作成する。 Returning to the flow chart of FIG. In S509, the quantized data creation unit 407 creates quantized data of the color to be processed according to the dot arrangement data created in S507. In this embodiment, the quantized data creation unit 407 accumulates quantized data for each region and creates quantized data for the entire image of the color to be processed.

S510において、領域選択部401は、処理対象領域に対し全てのインク色についての量子化処理が完了したか否かを判定する。未だ量子化処理が行われていないインク色が残っている場合はS501に戻り、次の処理対象色を設定した後、新たに設定された処理対象色についてS502~S509の処理を行う。一方、S510において、処理対象領域に対する全てのインク色についての量子化処理が完了したと判定した場合はS511に進む。 In S510, the area selection unit 401 determines whether or not the quantization process for all ink colors has been completed for the area to be processed. If there are still ink colors that have not been quantized, the process returns to S501, and after setting the next color to be processed, the processes of S502 to S509 are performed for the newly set color to be processed. On the other hand, if it is determined in S510 that the quantization process for all ink colors for the processing target area has been completed, the process proceeds to S511.

S511において、量子化データ作成部407は、全ての単位領域に対しS502~S509の量子化処理が完了したか否かを判定する。未だ量子化処理が行われていない単位領域が残っている場合はS500に戻り、次の単位領域を領域選択部401が新たな処理対象領域として設定し、新たな処理対象領域についてS501~S510の処理を行う。一方、S511において、全ての単位領域に対し量子化処理が完了したと判定した場合は本処理を終了する。 In S511, the quantized data creation unit 407 determines whether or not the quantization processing of S502 to S509 has been completed for all unit areas. If there remains a unit area that has not been quantized yet, the process returns to S500, the area selection unit 401 sets the next unit area as a new processing target area, and the new processing target area undergoes steps S501 to S510. process. On the other hand, if it is determined in S511 that the quantization process has been completed for all unit areas, this process ends.

以上説明した一連の処理によれば、処理対象領域において、排他値Hの値が小さいほど、すなわち先行処理されたインク色において配置されたドット数が少ないほど、その画素に対し小さな値の評価値Evが設定される。そして、評価値Evが小さい画素であるほど、処理対象領域の中で処理対象色のドットが優先的に配置される。その結果、処理対象領域において1つの画素に配置されるドットの数が抑えられ、記録媒体においてはドットの重なりに伴う発色不良を緩和しつつ、粒状感を抑えることができる。 According to the series of processes described above, the smaller the value of the exclusion value H in the processing target area, that is, the smaller the number of dots arranged in the previously processed ink color, the smaller the evaluation value for that pixel. Ev is set. Then, the smaller the evaluation value Ev of the pixel, the more preferentially the dots of the color to be processed are arranged in the region to be processed. As a result, the number of dots arranged in one pixel in the processing target area can be reduced, and graininess can be suppressed while alleviating poor color development caused by overlapping dots on the recording medium.

また、処理対象領域という複数の画素で構成される単位領域の中でドットの再配置を行うため、画像データと閾値マトリクスとの干渉を抑えることができる。その上で、個々の単位領域においては、各インク色について階調データが示す数(目標ドット数)のドットが配されるため、上記再配置を行っても、階調データが示す濃度および色相は単位領域の中で保存され記録媒体上で再現することができる。 Further, since the dots are rearranged in a unit area composed of a plurality of pixels, which is the processing target area, interference between the image data and the threshold matrix can be suppressed. Furthermore, in each unit area, the number of dots indicated by the gradation data (the target number of dots) for each ink color is allocated. is stored in the unit area and can be reproduced on the recording medium.

すなわち、本実施形態によれば、複数種類の色材を用いて画像を記録する場合において、ドットの重なりに伴う発色不良を緩和しつつ、粒状感が抑えられた画像を出力することが可能となる。 That is, according to the present embodiment, when an image is printed using a plurality of types of color materials, it is possible to output an image in which graininess is suppressed while alleviating poor color development due to dot overlap. Become.

本実施形態では、ブルーノイズ特性を有する閾値マトリクスと、ドット分散型の基準値情報を用いて量子化処理を実行した。一方、量子化処理にはドットをできるだけ集中させるドット集中型もあるが、本実施形態をドット集中型に適用することもできる。図7(c)はドット集中型の基準値情報を示す。ドット集中型の場合は、複数のドットが記録媒体上でクラスター状に記録されるため、出力濃度がドット間の位置ズレに影響され難く、画素が有する階調値と出力濃度とを線形に保つことができる。 In this embodiment, the quantization process is performed using a threshold matrix having blue noise characteristics and dot dispersion type reference value information. On the other hand, there is also a dot concentration type in which dots are concentrated as much as possible in quantization processing, but the present embodiment can also be applied to the dot concentration type. FIG. 7(c) shows reference value information of the dot concentration type. In the case of the dot concentration type, since multiple dots are printed in clusters on the recording medium, the output density is less likely to be affected by misalignment between dots, and the gradation value of the pixel and the output density are kept linear. be able to.

(第2の実施形態)
本実施形態においても、図1~図4で説明した画像処理装置を用い、図5に示すフローチャートに従って量子化処理を行う。本実施形態では、排他値情報(累積ドット情報)の内容を第1の実施形態と異ならせる。第1の実施形態では、処理対象色のドットを配置することが決定された画素において、処理対象色がいずれのインク色であっても、更新前の排他値Hに「1」を加算した。これに対し本実施形態では、インク色ごとに異なる重み係数wiを用意し、更新前の排他値Hに処理対象色の重み係数wiを加算する。
(Second embodiment)
Also in this embodiment, the image processing apparatus described with reference to FIGS. 1 to 4 is used, and quantization processing is performed according to the flowchart shown in FIG. In this embodiment, the contents of the exclusion value information (accumulated dot information) are made different from those in the first embodiment. In the first embodiment, "1" is added to the pre-update exclusion value H regardless of the ink color of the color to be processed in the pixels for which dots of the color to be processed have been determined to be placed. On the other hand, in the present embodiment, a different weighting factor wi is prepared for each ink color, and the weighting factor wi of the color to be processed is added to the exclusion value H before updating.

本実施形態では、各インク色の重み係数を、記録媒体上に記録されたドットの光学濃度の比に基づいて設定する。ここでは、ブラック、シアン、マゼンタ、イエローの組み合わせにおいて、4:2:2:1の光学濃度比が得られるものとし、ブラックの重み係数を「4」、シアンの重み係数を「2」、マゼンタの重み係数を「2」、イエローの重み係数を「1」とする。 In this embodiment, the weighting factor for each ink color is set based on the ratio of the optical densities of the dots printed on the printing medium. Here, it is assumed that an optical density ratio of 4:2:2:1 is obtained in a combination of black, cyan, magenta, and yellow. The weighting factor for yellow is "2", and the weighting factor for yellow is "1".

図8(a)~(h)は、本実施形態におけるドット配置データと排他値情報の関係を示す図である。以下、図8(a)~(h)を参照しながら図5のフローチャートに従って、本実施形態における量子化処理について説明する。なお、本実施形態においても、S501では、ブラック、シアン、マゼンタおよびイエローの順に処理対象色が設定されるものとする。 8A to 8H are diagrams showing the relationship between dot arrangement data and exclusive value information in this embodiment. The quantization processing in this embodiment will be described below according to the flowchart of FIG. 5 with reference to FIGS. 8(a) to 8(h). Also in this embodiment, in S501, the colors to be processed are set in the order of black, cyan, magenta, and yellow.

図8(a)は処理対象色が第1色(ブラック)であった場合に、S507で設定されたドット配置データの例を示す。また、図8(b)は、この場合にS508で更新される排他値情報を示す。図8(b)では、図8(a)でドットが配された画素についてのみ初期値「0」に対しブラックの重み係数「4」が加算されている。 FIG. 8A shows an example of dot arrangement data set in S507 when the color to be processed is the first color (black). Also, FIG. 8B shows the exclusion value information updated in S508 in this case. In FIG. 8(b), the black weighting factor "4" is added to the initial value "0" only for pixels where dots are arranged in FIG. 8(a).

図8(c)は、処理対象色が第2色(シアン)であった場合に、S507で設定されたドット配置データの例を示す。シアンドットは、図8(b)に示す排他値情報に基づいてドットが配置されるため、シアンのドット配置データは、図8(a)に示すブラックのドット配置データと概ね排他の関係にある。 FIG. 8C shows an example of dot arrangement data set in S507 when the color to be processed is the second color (cyan). Since the cyan dots are arranged based on the exclusive value information shown in FIG. 8B, the cyan dot arrangement data and the black dot arrangement data shown in FIG. 8A are generally in an exclusive relationship. .

図8(d)は、処理対象色がシアンであった場合にS508で更新される排他値情報を示す。図8(d)では、図8(c)でシアンドットが配された画素についてのみ、図8(b)に示す排他値Hにシアンの重み係数「2」が加算されている。 FIG. 8D shows the exclusive value information updated in S508 when the color to be processed is cyan. In FIG. 8(d), a cyan weighting factor of "2" is added to the exclusion value H shown in FIG. 8(b) only for the pixels for which cyan dots are arranged in FIG. 8(c).

以下、このような状態で、処理対象色が第3色(マゼンタ)に設定された場合について説明する。ここでは、S503で目標ドット数がD=7に設定され、S504では図8(e)に示す基準値情報が得られたとする。 A case where the processing target color is set to the third color (magenta) in such a state will be described below. Here, it is assumed that the target dot number is set to D=7 in S503, and the reference value information shown in FIG. 8E is obtained in S504.

この場合、S506でCPU201は、図8(d)に示す排他値情報を参照し、図8(e)に示す基準値Rの並び替えを行う。具体的には、最初に排他値Hが「0」である3つの画素に対し、基準値Rが小さい画素の順に評価値Ev=1~3を設定する。次に、排他値が「2」である7つの画素に対し、基準値Rが小さい画素の順に評価値Ev=4~10を設定する。更に、累積ドット数が「4」である4つの画素に対し、基準値Rが小さい順に評価値Ev=11~15を設定する。最後に、累積ドット数が「6」である1つの画素に評価値Ev=16を設定する。図8(f)は、このようにして各画素の評価値Evが設定さて得られる評価値情報を示している。 In this case, in S506, the CPU 201 refers to the exclusion value information shown in FIG. 8(d) and rearranges the reference values R shown in FIG. 8(e). Specifically, first, evaluation values Ev=1 to 3 are set for the three pixels whose exclusive value H is “0” in order of the pixel whose reference value R is small. Next, evaluation values Ev=4 to 10 are set for the seven pixels with the exclusion value of "2" in order of the pixel with the smallest reference value R. FIG. Furthermore, evaluation values Ev=11 to 15 are set in ascending order of the reference value R for the four pixels with the cumulative dot number of "4". Finally, an evaluation value Ev=16 is set for one pixel with an accumulated dot number of "6". FIG. 8(f) shows evaluation value information obtained by setting the evaluation value Ev of each pixel in this manner.

S507において、CPU201は、処理対象領域に対し、目標ドット数Dが示す7つのドットを、S506で設定された評価値Evが小さい画素の順に1つずつ配置し、ドット配置データを生成する。図8(g)は、このようにして生成されたドット配置データを示す。図8(d)に示す排他値情報において、排他値Hが少ない画素に対し優先的にマゼンタドットが配置されていることがわかる。 In S507, the CPU 201 arranges the seven dots indicated by the target dot number D in the processing target area one by one in ascending order of the evaluation value Ev set in S506, thereby generating dot arrangement data. FIG. 8(g) shows dot arrangement data generated in this way. In the exclusion value information shown in FIG. 8D, it can be seen that magenta dots are preferentially arranged for pixels with a small exclusion value H. FIG.

より詳しく説明する。ブラック、シアン、マゼンタのドット配置データを示す図8(a)、(c)及び(g)を比較した場合、マゼンタドットはブラックドットもシアンドットも配置されていない画素に優先的に配置され、次にシアンドットのみが配置されている画素に配置されている。これは、ブラックの重み係数「4」がシアンの重み係数「2」よりも大きいため、ブラックドットが配置された画素の評価値Evが、シアンドットが配置された画素の評価値Evよりも大きくなり、マゼンタドットを配置する優先順位が低くなるためである。そして、このようなマゼンタドットを配置する優先順位は、ドットが配置されていない画素、シアンドットのみが配置された画素、ブラックドットのみが配置された画素、ブラックドットとシアンドットが配置された画素、の順に低くなる。 I will explain in more detail. When comparing FIGS. 8A, 8C, and 8G showing black, cyan, and magenta dot arrangement data, magenta dots are preferentially arranged in pixels in which neither black dots nor cyan dots are arranged, Next, it is arranged in pixels where only cyan dots are arranged. This is because the weighting factor "4" for black is greater than the weighting factor "2" for cyan, so the evaluation value Ev of a pixel on which a black dot is arranged is greater than the evaluation value Ev of a pixel on which a cyan dot is arranged. This is because the priority of arranging magenta dots is lowered. The order of priority for arranging magenta dots is as follows: pixels with no dots, pixels with only cyan dots, pixels with only black dots, and pixels with both black and cyan dots. , lower in the order of

S508において、CPU201は、S507で生成されたドット配置データに基づいて、排他値情報を更新する。すなわち、S507で処理対象色のドットが配置された画素の排他値Hにマゼンタの重み係数w2=2を加算し、新たな排他値情報としてメモリに保存する。図8(h)は、S508で更新された排他値情報を示す。図8(g)でドットが配された画素についてのみ、図8(d)に示す排他値にマゼンタの重み係数w2=2が加算されている。図8(g)に示す排他値情報は、この後、CPU201が第4色(イエロー)のドット配置データを生成する際に利用される。 In S508, the CPU 201 updates the exclusion value information based on the dot arrangement data generated in S507. That is, in S507, the weighting coefficient w2=2 for magenta is added to the exclusion value H of the pixel in which the dot of the processing target color is arranged, and the result is stored in the memory as new exclusion value information. FIG. 8(h) shows the exclusion value information updated in S508. A magenta weighting factor w2=2 is added to the exclusive value shown in FIG. 8(d) only for pixels where dots are arranged in FIG. 8(g). The exclusive value information shown in FIG. 8(g) is subsequently used when the CPU 201 generates dot arrangement data for the fourth color (yellow).

記録媒体において、複数のインク色を重ねて形成される重複ドットは、1つのインク色によって形成される単ドットに比べて、目立ち易く発色性も低下する。しかしながら、同じ重複ドットであっても、ドットの目立ち方や発色性は、重複ドットを形成するインク色の組み合わせによって異なる。例えば、シアンとイエローによって形成される重複ドットは、ブラックとシアンによって形成される重複ドットよりも目立ち難く、粒状感に与える影響も小さい。本実施形態のようにインク色ごとに異なる重み係数を用いて排他値Hを管理し、排他値Hの少ない画素に優先的に処理対象色のドットを配置すれば、重複ドットを記録せざるを得ない状況でも、発色性の低下をなるべく抑えながら粒状感を抑制することができる。 On a recording medium, overlapping dots formed by overlapping a plurality of ink colors are more conspicuous than single dots formed by one ink color, and their coloring properties are lowered. However, even for the same overlapping dots, the conspicuousness and coloring of the dots differ depending on the combination of ink colors forming the overlapping dots. For example, overlapping dots formed with cyan and yellow are less conspicuous than overlapping dots formed with black and cyan, and have less effect on graininess. If the exclusion value H is managed using a different weighting factor for each ink color as in the present embodiment, and dots of the color to be processed are preferentially arranged in pixels with a small exclusion value H, overlapping dots will have to be printed. Even under such circumstances, it is possible to suppress graininess while suppressing deterioration of color developability as much as possible.

なお、以上では、記録媒体に記録されたドットの光学濃度の比に基づいて各色の重み係数を設定したが、本実施形態はこれに限定されない。例えば、グリーン、オレンジ、パープルなどの特色インクにおいてドットを重複させた場合の彩度低下は、上述した4色インクにおいてドットを重複させた場合の彩度低下よりも画像に対する影響が大きい。よって、このような場合には、光学濃度のみでなく色相や彩度などのような他の要素に基づいて、各インク色の重み係数を設定することが好ましい。 In the above description, the weighting factor for each color is set based on the ratio of the optical densities of the dots printed on the printing medium, but the present embodiment is not limited to this. For example, saturation reduction when dots are overlapped with special color inks such as green, orange, and purple has a greater effect on the image than saturation reduction when dots are overlapped with the four-color inks described above. Therefore, in such a case, it is preferable to set the weighting factor for each ink color based not only on optical density but also on other factors such as hue and saturation.

一方、ブラックとグレーやシアンとライトシアンのような特定のインク色の組み合わせでは、ドットを重複しても色相や彩度は然程影響を受けない。よって、このような場合には、排他値情報をインク色に対応づけて複数用意し、排他値Hを更新する際の重み係数を、排他値情報ごとに異ならせてもよい。そして、夫々のインク色が処理対象色となったときに、S505では、複数の排他値情報の中から対応する1つの排他値情報を取得すればよい。 On the other hand, for certain ink color combinations, such as black and gray or cyan and light cyan, overlapping dots do not significantly affect hue and saturation. Therefore, in such a case, a plurality of pieces of exclusive value information may be prepared in association with ink colors, and the weighting factor used when updating the exclusive value H may be changed for each piece of exclusive value information. Then, when each ink color becomes a color to be processed, in S505, one corresponding exclusive value information may be acquired from a plurality of pieces of exclusive value information.

例えば、グレーのための排他値情報におけるブラックの重み係数は、シアンのための排他値情報におけるブラックの重み係数よりも、小さく設定することが好ましい。また、ライトシアンのための排他値情報におけるシアンの重み係数は、マゼンタのための排他値情報におけるシアンの重み係数よりも、小さく設定することが好ましい。このようにすれば、色相が類似するインク色同士の重複が、色相が異なるインク色同士の重複よりも優先され、画像全体の発色性を向上させることができる。 For example, the weighting factor for black in the exclusive value information for gray is preferably set smaller than the weighting factor for black in the exclusive value information for cyan. Also, the cyan weighting factor in the exclusive value information for light cyan is preferably set smaller than the cyan weighting factor in the exclusive value information for magenta. In this way, overlap between ink colors with similar hues is prioritized over overlap between ink colors with different hues, and the color development of the entire image can be improved.

更に、上記のような重み係数は、処理対象領域ごとに変更されてもよい。例えば、図3のS301で得られたR´G´B´データが示す処理対象領域の色相がG(グリーン)に近い場合、シアンドットとイエロードットの重複は優先させることが好ましい場合がある。このような場合には、イエローのための排他値情報において、シアンの重み係数をブラックやマゼンタの重み係数よりも小さく設定すればよい。 Furthermore, the weighting factor as described above may be changed for each processing target area. For example, when the hue of the processing target area indicated by the R'G'B' data obtained in S301 of FIG. 3 is close to G (green), it may be preferable to prioritize the overlap of cyan and yellow dots. In such a case, in the exclusive value information for yellow, the weighting factor for cyan should be set smaller than the weighting factor for black or magenta.

以上説明した本実施形態によれば、複数の色材を用いて画像を記録する場合において、ドットの重なりに伴う発色不良を緩和しつつ、粒状感が抑えられた画像を出力することが可能となる。 According to the present embodiment described above, when an image is printed using a plurality of color materials, it is possible to output an image in which graininess is suppressed while alleviating poor color development due to overlapping of dots. Become.

(第3の実施形態)
本実施形態においても、図1~図2で説明した画像処理装置を用い図3で示したフローチャートに従って、一連の画像処理を行う。
(Third embodiment)
Also in this embodiment, a series of image processing is performed according to the flowchart shown in FIG. 3 using the image processing apparatus explained in FIGS.

図9は、本実施形態の量子化処理におけるソフトウェア構成を説明するためのブロック図である。図4と異なる点は、評価値設定部901が閾値マトリクス411を基準値情報として利用すること、および累積ドット数情報410の代わりにドット配置履歴情報903を用意していることである。ここで、ドット配置履歴情報903とは、既にドット配置データが生成されたインク色についてのドット配置情報が、インク色に対応づけて保存された情報である。本実施形態の評価値設定部901は、閾値マトリクス411とドット配置履歴情報903とを用いて、各画素についての評価値Evを設定する。また、本実施形態のドット配置部902は、設定したドット配置データに基づいてドット配置履歴情報903を更新する。 FIG. 9 is a block diagram for explaining the software configuration in the quantization processing of this embodiment. The difference from FIG. 4 is that the evaluation value setting unit 901 uses the threshold matrix 411 as reference value information, and dot arrangement history information 903 is prepared instead of the cumulative dot number information 410 . Here, the dot arrangement history information 903 is information in which dot arrangement information for ink colors for which dot arrangement data has already been generated is stored in association with ink colors. The evaluation value setting unit 901 of this embodiment uses the threshold matrix 411 and the dot arrangement history information 903 to set the evaluation value Ev for each pixel. Also, the dot placement unit 902 of this embodiment updates the dot placement history information 903 based on the set dot placement data.

図10は、本実施形態のCPU201が、S303の量子化処理において、図9に示す各ブロックを用いながら実行する処理工程を説明するためのフローチャートである。また、図11(a)~(j)は、処理対象色が第1色(ブラック)である場合の量子化処理の様子を具体的に説明するための図である。以下では、図11(a)~(j)を参照しながら、図10に示すフローチャートに従って、第1色(ブラック)のための量子化処理について説明する。 FIG. 10 is a flowchart for explaining the processing steps executed by the CPU 201 of this embodiment using the blocks shown in FIG. 9 in the quantization processing of S303. FIGS. 11A to 11J are diagrams for specifically explaining the quantization process when the color to be processed is the first color (black). The quantization process for the first color (black) will be described below according to the flowchart shown in FIG. 10 with reference to FIGS. 11(a) to (j).

S1002において、CPU201は、処理対象領域のブラックの階調データをメモリに展開する。ここでは、図11(a)に示す階調データが展開されたものとする。S1003において、CPU201は、処理対象領域に配置すべきブラックの目標ドット数Dを設定する。具体的には、まず、閾値マトリクス411の中から処理対象領域に対応する4×4の閾値を読み出し、個々の閾値を、図11(a)に示す階調データの階調値の平均値Aveと比較する。そして、16画素のうち、平均値Aveが閾値よりも大きくなる画素の数をカウントし、そのカウント値を目標ドット数Dとして設定する。階調データが図11(a)の場合、平均値AveはAve=128となる。また、処理対象領域に対応づけて読み出された4×4の閾値が図11(c)に示すものとすると、目標ドット数はD=8に設定される。 In S1002, the CPU 201 develops the black gradation data of the processing target area in the memory. Here, it is assumed that the gradation data shown in FIG. 11(a) is expanded. In S1003, the CPU 201 sets the target number D of black dots to be arranged in the processing target area. Specifically, first, 4×4 thresholds corresponding to the processing target area are read out from the threshold matrix 411, and each threshold is set to the average value Ave of the gradation values of the gradation data shown in FIG. Compare with Then, among the 16 pixels, the number of pixels whose average value Ave is larger than the threshold value is counted, and the count value is set as the target dot number D. FIG. When the gradation data is shown in FIG. 11A, the average value Ave is Ave=128. Also, assuming that the 4×4 threshold value read in association with the processing target area is shown in FIG. 11C, the target dot number is set to D=8.

S1004において、CPU201は、予めメモリに記憶されている基準値情報を取得し展開する。ここではS1003でも利用した、図11(c)に示す4×4の閾値を、基準値情報として利用する。 In S1004, the CPU 201 acquires and develops reference value information stored in the memory in advance. Here, the 4×4 threshold shown in FIG. 11C, which was also used in S1003, is used as the reference value information.

S1005において、CPU201は、メモリに保存されているドット配置履歴情報903(図9参照)を取得する。本実施形態においてドット配置履歴情報とは、処理対象領域において、量子化処理が終了しているインク色それぞれについてのドット配置データである。処理対象色が第1色(ブラック)である場合、CPU201はヌルデータを取得することになる。処理対象色が第2色(シアン)である場合、CPU201はブラックのドット配置履歴情報を取得する。処理対象色が第3色(マゼンタ)である場合、CPU201は、ブラックのドット配置履歴情報とシアンのドット配置履歴情報とを取得する。 In S1005, the CPU 201 acquires the dot placement history information 903 (see FIG. 9) saved in the memory. In this embodiment, the dot arrangement history information is dot arrangement data for each ink color for which quantization processing has been completed in the processing target area. When the color to be processed is the first color (black), the CPU 201 acquires null data. When the color to be processed is the second color (cyan), the CPU 201 acquires black dot arrangement history information. When the color to be processed is the third color (magenta), the CPU 201 acquires black dot placement history information and cyan dot placement history information.

S1006において、CPU201は、S1005で取得したドット配置履歴情報と、S1004で取得した基準値情報(図11(c))に基づいて、処理対象領域に含まれる各画素について評価値Evを導出し設定する。以下、本実施形態における評価値導出方法を詳しく説明する。 In S1006, the CPU 201 derives and sets an evaluation value Ev for each pixel included in the processing target area based on the dot arrangement history information acquired in S1005 and the reference value information (FIG. 11C) acquired in S1004. do. The evaluation value derivation method in this embodiment will be described in detail below.

評価値Evを求めるために、本実施形態のCPU201は、まず処理対象領域に含まれる各画素について第1の評価値Ev1を求める。第1の評価値Ev1は(式1)に従って求める。
E1=(I/Imax)-(R/Rmax)-(H/Hmax)(式1)
To obtain the evaluation value Ev, the CPU 201 of this embodiment first obtains a first evaluation value Ev1 for each pixel included in the processing target area. The first evaluation value Ev1 is obtained according to (Equation 1).
E1 = (I/Imax) - (R/Rmax) - (H/Hmax) (Equation 1)

ここで、Iは、階調データが示す注目画素の階調値であり、Imaxはその最大値を示す。本実施形態では、階調データが8bit(256階調)であるので、Imax=255となる。例えば、階調データが16bit(65536階調)の場合は、Imax=65535となる。図11(b)は、処理対象領域に対応する4×4画素についての正規化値(I/Imax)を示している。(I/Imax)は、0~1の値を有する実数となり、値が大きい画素ほどドットが配置される可能性が高いことを意味する。 Here, I is the gradation value of the pixel of interest indicated by the gradation data, and Imax indicates its maximum value. In this embodiment, since the gradation data is 8 bits (256 gradations), Imax=255. For example, when the gradation data is 16 bits (65536 gradations), Imax=65535. FIG. 11(b) shows normalized values (I/Imax) for 4×4 pixels corresponding to the region to be processed. (I/Imax) is a real number with a value between 0 and 1, meaning that pixels with larger values are more likely to have dots placed thereon.

Rは、基準値情報が示す各画素の基準値であり、Rmaxはその最大値を示す。本実施形態の場合、基準値情報が閾値マトリクス411から得られるため、Rmax=254となる。図11(d)は、基準値情報の正規化値(R/Rmax)を示している。(R/Rmax)は、0~1の値を有する実数となり、値が大きい画素ほどドットが配置される暫定的な優先度が低いことを意味する。 R is the reference value of each pixel indicated by the reference value information, and Rmax indicates its maximum value. In the case of this embodiment, since the reference value information is obtained from the threshold matrix 411, Rmax=254. FIG. 11(d) shows the normalized value (R/Rmax) of the reference value information. (R/Rmax) is a real number with a value between 0 and 1, meaning that a pixel with a larger value has a lower provisional priority for arranging dots.

Hは、ドット配置履歴情報から得られる排他値である。本実施形態において、排他値Hnは(式2)を用いて求めることができる。
H=Σ(wi×Di) (式2)
H is an exclusive value obtained from dot placement history information. In this embodiment, the exclusion value Hn can be obtained using (Equation 2).
H=Σ(wi×Di) (Formula 2)

ここで、iは処理対象色の処理順位を示す番号である。本実施形態では、ブラック、シアン、マゼンタ、イエローの順に量子化処理を行っているので、処置対象インクがブラックの場合はi=1、シアンの場合はi=2、マゼンタの場合はi=3、イエローの場合はi=4となる。また、wiは、夫々のインク色に対する重み係数を示す。本実施形態では、各インク色の重み係数を、記録媒体上に記録されたドットの光学濃度の比に基づいて設定し、w1=4、w2=2、w3=2、w4=1とする。 Here, i is a number indicating the processing order of the color to be processed. In this embodiment, quantization processing is performed in the order of black, cyan, magenta, and yellow. Therefore, i=1 when the ink to be treated is black, i=2 when it is cyan, and i=3 when it is magenta. , i=4 for yellow. Also, wi indicates a weighting factor for each ink color. In this embodiment, the weighting coefficients for each ink color are set based on the ratio of the optical densities of the dots printed on the printing medium, w1=4, w2=2, w3=2, and w4=1.

また、(式2)において、Diは、各画素に配されたインク色iのドットの数を示す。例えばある画素にブラックドットが1つ配された場合、当該画素においてD1=1となる。更に、Σは1~(i-1)番目までの総和を示す。 Also, in (Equation 2), Di indicates the number of dots of the ink color i arranged in each pixel. For example, when one black dot is arranged in a certain pixel, D1=1 in that pixel. Furthermore, Σ indicates the sum of the 1st to (i−1)ths.

このように、排他値Hは、それぞれの画素に配されたドット数Diにインク色iに固有の重み係数wiを乗算し、これを処理対象色よりも前に処理された全てのインク色iについて加算することによって算出される。処理対象色が第1色(ブラック)である場合、すなわちi=1の場合、全画素について排他値HはH=0となる。このため、(式2)を用いて得られる4画素×4画素の排他値情報は図11(e)のようになる。 Thus, the exclusive value H is obtained by multiplying the number of dots Di allocated to each pixel by a weighting factor wi unique to the ink color i, and multiplying this by the weighting factor wi specific to the color to be processed. It is calculated by adding about When the color to be processed is the first color (black), that is, when i=1, the exclusive value H is H=0 for all pixels. Therefore, the exclusive value information of 4 pixels×4 pixels obtained using (Formula 2) is as shown in FIG. 11(e).

一方、(式1)において、Hmaxは処理対象領域における排他値Hの最大値を示す。本実施形態では、排他値Hを最大値Hmaxで正規化した値(H/Hmax)を排他制御値Hnと称す。排他制御値Hnは、0~1の値を有する実数となり、値が大きい画素ほどドットが配置され難いことを示す。なお、処理対象色が第1色(ブラック)の場合、最大値はHmax=0となるが、排他制御値Hnは0に固定する。図11(f)は、処理対象色が第1色(ブラック)である場合の、処理対象領域における排他制御値情報を示している。 On the other hand, in (Formula 1), Hmax indicates the maximum value of the exclusion value H in the processing target area. In this embodiment, a value obtained by normalizing the exclusion value H by the maximum value Hmax (H/Hmax) is referred to as an exclusion control value Hn. The exclusive control value Hn is a real number having a value between 0 and 1, and indicates that dots are more difficult to be arranged in pixels with a larger value. When the color to be processed is the first color (black), the maximum value is Hmax=0, but the exclusive control value Hn is fixed at zero. FIG. 11F shows exclusive control value information in the processing target area when the processing target color is the first color (black).

図11(g)は、図11(b)の正規化後の階調データ(I/Imax)と、図11(d)の正規化後の基準値情報(R/Rmax)と、図11(f)の排他制御値情報(Hn)に基づき、(式1)に従って算出した第1の評価値情報を示す図である。本実施形態において、第1の評価値Ev1は、個々の画素についての、ドットが配置される容易度を示す値となる。正の値が大きい画素ほどドットが配置されやすく、負の値が大きい画素ほどドットが配置され難いことを示す。 FIG. 11(g) shows normalized gradation data (I/Imax) in FIG. 11(b), normalized reference value information (R/Rmax) in FIG. 11(d), and FIG. It is a figure which shows the 1st evaluation value information calculated according to (Formula 1) based on the exclusive control value information (Hn) of f). In this embodiment, the first evaluation value Ev1 is a value that indicates the ease with which dots are arranged for each pixel. A pixel having a larger positive value indicates that dots are more likely to be placed, and a pixel having a larger negative value indicates that dots are less likely to be placed.

次に、CPU201は、処理対象領域において、第1の評価値Ev1が大きい画素の順に、1~16の値を第2の評価値Ev2として設定する。この際、第1の評価値Ev1が同値である画素が複数存在する場合は、より大きな階調値Iを有する画素を優先したり、処理対象領域の左上に位置する画素を優先したり、ランダムに設定したりすればよい。 Next, the CPU 201 sets a value of 1 to 16 as the second evaluation value Ev2 in the order of pixels having the highest first evaluation value Ev1 in the processing target area. At this time, when there are a plurality of pixels having the same first evaluation value Ev1, priority is given to a pixel having a larger gradation value I, a pixel located in the upper left of the processing target area is given priority, or a random You can set it to .

図11(h)は、処理対象領域に含まれる個々の画素について第2の評価値Ev2=1~16が設定された評価値情報を示している。以下、第2の評価値Ev2を、本実施形態では単に評価値Evと称す。 FIG. 11(h) shows evaluation value information in which second evaluation values Ev2=1 to 16 are set for individual pixels included in the region to be processed. Hereinafter, the second evaluation value Ev2 is simply referred to as the evaluation value Ev in this embodiment.

図10のフローチャートに戻る。S1007において、CPU201は、S1003で設定された目標ドット数DとS1006で設定された評価値Evとに基づいて、処理対象領域に含まれる各画素に処理対象色のドットを配置する。具体的には、処理対象領域に対し、目標ドット数Dが示す数のドットを、S1006で設定された評価値Evが小さい画素の順に1つずつ配置し、ドット配置データを生成する。 Returning to the flow chart of FIG. In S1007, the CPU 201 arranges dots of the processing target color in each pixel included in the processing target region based on the target dot number D set in S1003 and the evaluation value Ev set in S1006. Specifically, the number of dots indicated by the target dot number D is arranged in the processing target area one by one in ascending order of the evaluation value Ev set in S1006 to generate dot arrangement data.

図11(i)は、目標ドット数DがD=8である処理対象領域に対し、図11(h)の評価値情報に基づいて、S1007のドット配置決定処理で生成されたドット配置データを示す図である。図において、黒で示した領域がブラックドットを配置する画素、白で示した領域がブラックドットを配置しない画素を示している。 FIG. 11I shows the dot arrangement data generated in the dot arrangement determination process of S1007 based on the evaluation value information of FIG. FIG. 10 shows. In the figure, black areas indicate pixels in which black dots are arranged, and white areas indicate pixels in which black dots are not arranged.

S1008において、CPU201は、S1007で生成されたドット配置データに基づいて、ドット配置履歴情報を更新する。具体的には、S1007にて生成されたドット配置データをインク色iと対応付けてメモリに保存する。本例の場合、図11(i)で示すドット配置データを第1色(ブラック)に対応づけてメモリに保存する。保存されたドット配置履歴情報は、この後処理対象色が変更された後のS1005において、第1色(ブラック)のドット配置履歴情報としてメモリより読み出される。 In S1008, the CPU 201 updates the dot placement history information based on the dot placement data generated in S1007. Specifically, the dot arrangement data generated in S1007 is associated with the ink color i and stored in the memory. In this example, the dot arrangement data shown in FIG. 11(i) is associated with the first color (black) and stored in the memory. The saved dot arrangement history information is read from the memory as the dot arrangement history information for the first color (black) in S1005 after the post-processing target color is changed.

S1009において、CPU201は、S1007で生成したドット配置データに従って量子化データを生成し、メモリに保存する。図11(j)は、図11(i)に示すドット配置データに従って生成された量子化データを示している。 In S1009, the CPU 201 generates quantized data according to the dot arrangement data generated in S1007, and stores it in the memory. FIG. 11(j) shows quantized data generated according to the dot arrangement data shown in FIG. 11(i).

以上説明したブラックのための処理が完了すると、次にCPU201はS1001に戻り、第2色(シアン)を処理対象色に設定し、S1002~S1009の処理を行う。 When the processing for black described above is completed, the CPU 201 next returns to S1001, sets the second color (cyan) as the color to be processed, and performs the processing of S1002 to S1009.

図12(a)~(j)は、処理対象色が第2色(シアン)である場合の処理の様子を図11(a)~(j)と同様に示す図である。図12(a)は、S1002で展開されたシアンの階調データとする。この場合、階調データの正規化値(I/Imax)は、図12(b)のようになる。 FIGS. 12A to 12J are diagrams similar to FIGS. 11A to 11J showing the state of processing when the color to be processed is the second color (cyan). FIG. 12A is the cyan tone data developed in S1002. In this case, the normalized value (I/Imax) of the gradation data is as shown in FIG. 12(b).

また、図12(c)は、シアン用の閾値マトリクスから読み出された処理対象領域に対応する4×4の閾値であり、S1003ではこの情報に基づいてシアンの目標ドット数DがD=4に設定される。また、図12(c)に示す4×4の閾値は、基準値情報Rとしても利用され、基準値情報Rの正規化値(R/Rmax)は、図12(d)のようになる。 FIG. 12C shows 4×4 threshold values corresponding to the processing target area read out from the cyan threshold matrix. is set to 12(c) is also used as the reference value information R, and the normalized value (R/Rmax) of the reference value information R is as shown in FIG. 12(d).

図12(e)は、処理対象色がシアンである場合に導出される排他値情報である。排他値情報は、第1色(ブラック)のドット配置履歴情報(図11(i)量子化データを同じ情報)を参照し、(式2)に従って各画素の排他値Hを求めることによって導出される。 図12(e)に示す排他値情報の場合、排他値Hの最大値はHmax=4となり、各画素の排他値Hを正規化して得られる排他制御値情報は、図12(f)のようになる。 FIG. 12E shows exclusive value information derived when the color to be processed is cyan. The exclusive value information is derived by referring to the dot arrangement history information of the first color (black) (the same information as the quantized data in FIG. 11(i)) and obtaining the exclusive value H of each pixel according to (Equation 2). be. In the case of the exclusion value information shown in FIG. 12(e), the maximum value of the exclusion value H is Hmax=4, and the exclusion control value information obtained by normalizing the exclusion value H of each pixel is as shown in FIG. 12(f). become.

図12(g)は、図12(b)に示す正規化後の階調データ(I/Imax)と、同図(d)に示す正規化後の基準値情報(R/Rmax)と、同図(f)に示す排他値制御値情報に基づき、(式1)に従って導出される第1の評価値情報を示す図である。また、図12(h)は、図12(g)の排他値制御値情報に基づいて導出されるシアンのための評価値情報である。更に、図12(i)は、評価値Evが図12(h)のように設定され、且つ、目標ドット数DがD=4である処理対象領域に対して設定されるドット配置データであり、図12(j)は図12(i)に基づく量子化データである。図12(i)に示すドット配置データは、図11(i)に示す第1色(ブラック)のドット配置データに対し、排他の位置にドットが配されていることが分かる。 FIG. 12(g) shows normalized gradation data (I/Imax) shown in FIG. 12(b) and normalized reference value information (R/Rmax) shown in FIG. 12(d). FIG. 10 is a diagram showing first evaluation value information derived according to (Equation 1) based on the exclusive value control value information shown in FIG. (f); FIG. 12(h) is evaluation value information for cyan derived based on the exclusive value control value information of FIG. 12(g). Further, FIG. 12(i) shows dot arrangement data set for a processing target area in which the evaluation value Ev is set as shown in FIG. 12(h) and the target dot number D is D=4. , and FIG. 12(j) are the quantized data based on FIG. 12(i). It can be seen that the dot arrangement data shown in FIG. 12(i) has dots arranged in exclusive positions with respect to the dot arrangement data for the first color (black) shown in FIG. 11(i).

その後は、以上説明した流れに従って、処理対象領域に対する第3色(マゼンタ)の処理と第4色(イエロー)の処理をこの順番で行う。具体的な処理は、第1色(ブラック)、第2色(シアン)と同様であるので、ここでの説明は省略する。なお、図13(a)~(j)は、処理対象色が第3色(マゼンタ)である場合の処理の様子を図11(a)~(j)と同様に示す図である。また 図14(a)~(j)は、処理対象色が第4色(イエロー)である場合の処理の様子を図11(a)~(j)と同様に示す図である。 After that, according to the flow described above, the third color (magenta) processing and the fourth color (yellow) processing are performed on the processing target area in this order. Since the specific processing is the same as that for the first color (black) and the second color (cyan), the description is omitted here. FIGS. 13A to 13J are diagrams similar to FIGS. 11A to 11J showing the processing when the color to be processed is the third color (magenta). FIGS. 14A to 14J are diagrams similar to FIGS. 11A to 11J showing the processing when the color to be processed is the fourth color (yellow).

以上説明した本実施形態によれば、各画素について、階調値Iと、基準値R及び排他値Hの3つのパラメータで構成された(式1)に基づいて、ドットを配置する優先度を示す評価値Evを求めている。このため、基準値Rと排他値Hの2つのパラメータで評価値Evを設定する上記実施形態に比べ、各画素の階調値Iを、その画素の量子化の結果により積極的に反映させることができる。 According to the present embodiment described above, for each pixel, the priority for arranging dots is determined based on (Equation 1) composed of three parameters: the tone value I, the reference value R, and the exclusion value H. The evaluation value Ev indicated is obtained. Therefore, compared to the above-described embodiment in which the evaluation value Ev is set using two parameters, the reference value R and the exclusion value H, the gradation value I of each pixel can be more positively reflected as a result of the quantization of that pixel. can be done.

例えば、写真画像を印刷する際には、個々の画素の階調値よりも画像全体の一様性を重視し、第1、第2の実施形態のように単位領域の中でドットを重複させず分散させることが好ましい。しかしながら、文字や線画を含むグラフィック画像を印刷する際には、オブジェクトの鮮鋭性やコントラストを重視するために、各画素が有する階調値をその画素のドットの有無になるべく反映させることが好ましい場合もある。本実施形態のように、階調値Iと、基準値R及び排他値Hの3つのパラメータを含む(式1)に基づいてドットを配置すれば、各画素が有する階調値をその画素のドットの有無に反映させながら、異色ドットの重なりを抑制することができる。その結果、鮮鋭性と発色性に優れた画像を出力することが可能となる。 For example, when printing a photographic image, the uniformity of the entire image is emphasized rather than the gradation value of each pixel, and dots are overlapped within the unit area as in the first and second embodiments. It is preferable to disperse However, when printing a graphic image including characters and line drawings, it is preferable to reflect the gradation value of each pixel in the presence or absence of dots in that pixel as much as possible in order to emphasize the sharpness and contrast of the object. There is also As in the present embodiment, if dots are arranged based on (Equation 1) containing three parameters, the tone value I, the reference value R, and the exclusion value H, the tone value of each pixel is It is possible to suppress overlapping of dots of different colors while reflecting the presence or absence of dots. As a result, it becomes possible to output an image excellent in sharpness and color development.

この際、ドットの配置を促すように作用する(I/Imax)と、ドットの配置を抑制するように作用する(H/Hmax)に対し、1~0の値を有する重み係数Wp、Whをそれぞれ乗算して、鮮鋭性と発色性のバランスを調整してもよい。この場合、例えば重み係数Wpを大きくすれば、鮮鋭性やコントラストが維持された画像を出力することができる。重み係数Whを大きくすれば、異色ドットの排他率を高め、発色性に優れた画像を出力することができる。 At this time, the weighting coefficients Wp and Wh having a value of 1 to 0 are set for acting to encourage dot placement (I/Imax) and acting to suppress dot placement (H/Hmax). The balance between sharpness and coloring may be adjusted by multiplying each. In this case, for example, by increasing the weighting factor Wp, it is possible to output an image in which sharpness and contrast are maintained. By increasing the weighting factor Wh, it is possible to increase the exclusion rate of different-color dots and output an image with excellent coloring.

更に、基準値Rの正規化値(R/Rmax)に対する重み係数Wrを用意し、その値を大きくすれば、閾値マトリクスが定義する配置順序の影響を強めることが可能となる。例えば閾値マトリクスとして分散性に優れたブルーノイズ特性を有するものを用意すれば、分散性に優れたドット配置を得ることができる。このような重み係数Wp、Wr、Whは、インク色や印刷モード、記録媒体の種類などに応じて適宜変更してもよい。 Furthermore, by preparing a weighting factor Wr for the normalized value (R/Rmax) of the reference value R and increasing the value, it is possible to strengthen the influence of the arrangement order defined by the threshold matrix. For example, if a threshold matrix having blue noise characteristics with excellent dispersibility is prepared, a dot arrangement with excellent dispersibility can be obtained. Such weighting factors Wp, Wr, and Wh may be appropriately changed according to the ink color, print mode, type of recording medium, and the like.

本実施形態によれば、基準値Rと排他値Hのほかに階調値Iに基づいて評価値Evを導出しているため、異なる色材のドットが重複して配される頻度が第1、第2の実施形態よりも高くなる。このことは、第1、第2の実施形態に比べて、粒状感を上昇させる要因にもなるが、その一方で、記録装置の様々な誤差やばらつきに対する画像品位の耐性(ロバスト性)を高める効果も得られる。以下、簡単に説明する。 According to this embodiment, since the evaluation value Ev is derived based on the gradation value I in addition to the reference value R and the exclusion value H, the frequency at which dots of different colorants are overlapped is the first. , is higher than in the second embodiment. This is a factor that increases graininess compared to the first and second embodiments, but on the other hand, it increases the resistance (robustness) of image quality to various errors and variations of the printing apparatus. effect is also obtained. A brief description will be given below.

例えば、第1インクのドットと第2インクのドットが互いに排他となるようにドット配置データが生成されたとしても、第1インクの記録ヘッドと第2インクの記録ヘッドの間で記録位置ずれが起こった場合、記録媒体上では幾つかの重複ドットが生成される。そして、このような記録位置ずれの量が記録ヘッドの往復走査や記録媒体のコックリングに伴って変動すると、生成される重複ドットの数も記録位置ずれ量に伴って変動し、記録媒体上において濃度ムラや色ムラとして感知される。 For example, even if the dot arrangement data is generated so that the dots of the first ink and the dots of the second ink are mutually exclusive, the print position misalignment between the print head of the first ink and the print head of the second ink may occur. When this happens, some overlapping dots are produced on the recording medium. When the amount of such print position deviation fluctuates due to reciprocating scanning of the print head or cockling of the print medium, the number of overlapping dots to be generated also fluctuates in accordance with the amount of print position shift. It is perceived as density unevenness or color unevenness.

これに対し、本実施形態のように異なる色材の重複ドットが予め所定の割合で生成されるようにすると、異なる位置に記録されるべき2つのドットが重複する箇所も生じるが、重複すべき2つのドットが分離する箇所も生じる。このため、記録ヘッドの往復走査や記録媒体のコックリングに伴って記録位置ずれ量が変動しても、重複ドットの割合は一定の範囲に抑えられ、記録媒体上において濃度ムラや色ムラは感知され難くなる。このような記録位置ずれに対する画像のロバスト性は、上述した重み係数Whを変化させることによって調整が可能である。 On the other hand, if overlapping dots of different color materials are generated in advance at a predetermined ratio as in the present embodiment, two dots that should be printed at different positions may overlap. There are also places where two dots are separated. Therefore, even if the print position shift amount fluctuates due to reciprocating scanning of the print head or cockling of the print medium, the ratio of overlapping dots is kept within a certain range, and unevenness in density and color on the print medium can be detected. It becomes difficult to be The image robustness against such recording position shift can be adjusted by changing the weighting factor Wh described above.

以下、本実施形態の効果を、具体例を挙げて説明する。例えば、本実施形態のような評価値Evを求めず、図11(c)に示す基準値情報に従って、8個分のドットを配置した場合、ドット配置データは図15(a)のようになる。この図15(a)を、本実施形態のドット配置データである図11(i)と比較すると、本実施形態のドット配置データを示す図11(i)の方が、図15(a)よりも、図11(a)に示す階調データの特徴が現れていることが分かる。すなわち、本実施形態によれば、評価値Evを求める際の(式1)に階調値Iを含ませることにより、階調データの特徴を量子化の結果により強く反映させることができる。 Hereinafter, the effect of this embodiment will be described with specific examples. For example, if 8 dots are arranged according to the reference value information shown in FIG. 11(c) without obtaining the evaluation value Ev as in this embodiment, the dot arrangement data will be as shown in FIG. 15(a). . Comparing FIG. 15A with FIG. 11I, which is the dot arrangement data of the present embodiment, FIG. It can be seen that the characteristics of the gradation data shown in FIG. 11(a) also appear. That is, according to this embodiment, by including the gradation value I in (Equation 1) when obtaining the evaluation value Ev, the feature of the gradation data can be more strongly reflected in the result of quantization.

次に、評価値Evを導出する際の(式1)に排他値Hを含ませる効果について説明する。例えば、(式1)に排他値Hの項を設けず、図12(a)に示す第2色(シアン)の階調データと、図12(c)に示す基準値情報に従って、第1評価値情報を求めると、図16(a)のようになる。そして、この評価値情報に従って4個分のドットを配置した場合、ドット配置データは図16(b)のようになる。 Next, the effect of including the exclusion value H in (Equation 1) when deriving the evaluation value Ev will be described. For example, without providing the term of the exclusion value H in (Formula 1), the first evaluation is performed according to the second color (cyan) tone data shown in FIG. 12(a) and the reference value information shown in FIG. When the value information is obtained, it becomes as shown in FIG. 16(a). When four dots are arranged according to this evaluation value information, the dot arrangement data becomes as shown in FIG. 16(b).

一方、図12(c)に示す基準値情報に従って4個分のドットをそのまま配置した場合も、ドット配置データは図16(b)のようになる。この図16(b)を、本実施形態のドット配置データである図11(i)と比較すると、図16(b)は、図11(i)に示す第1色(ブラック)のドット配置データに対する排他性が図11(i)より劣っているのが分かる。 On the other hand, when four dots are arranged as they are according to the reference value information shown in FIG. 12(c), the dot arrangement data becomes as shown in FIG. 16(b). Comparing FIG. 16B with FIG. 11I, which is the dot arrangement data of the present embodiment, FIG. is inferior to that in FIG. 11(i).

すなわち、本実施形態によれば、評価値Evを導出する際の(式1)に排他値Hを含ませることにより、処理対象色のドット配置データの、既に量子化処理が完了したインクのドット配置データに対する排他性を高めることができる。 That is, according to the present embodiment, by including the exclusive value H in (Equation 1) when deriving the evaluation value Ev, the dots of the ink for which the quantization processing has already been completed in the dot arrangement data of the processing target color Exclusivity for placement data can be enhanced.

なお、(式1)では、階調値I、基準値R、排他値Hのそれぞれを0~1のレンジで正規化した値に対し、加減算を行って第1の評価値Ev1を求めたが、このような正規化処理は必須ではない。階調値I、基準値R、排他値Hは、同じレンジに整えられれば良く、例えば8bitで表現される1~256の整数であってもよいし、16bitで表現される1~65536の整数であってもよい。 Note that in (Formula 1), the first evaluation value Ev1 is obtained by performing addition and subtraction on values obtained by normalizing each of the gradation value I, the reference value R, and the exclusive value H in the range of 0 to 1. , such normalization is not essential. The gradation value I, the reference value R, and the exclusive value H may be arranged in the same range. may be

ところで、本実施形態のように、閾値マトリクスの中から処理対象領域に対応する領域を基準値情報として用いる場合、基準値情報の内容は単位領域ごとに異なっている。ここで、本実施形態のような目標ドット数Dを設定せず、基準値情報をそのままディザマトリクスとして用いて、図11(a)に示す階調データにディザ処理を行った場合を考える。この場合、図11(c)に示す基準値情報からは図11(i)に示すドット配置データが得られるが、図15(b)に示す基準値情報からは図15(c)に示すドット配置データが得られる。すなわち、図11(a)に示す同じ階調データに従って量子化されたドット配置データであっても、片方の単位領域では8個のドットが配置され、片方の単位領域では11個のドットが配置されることになる。その結果、記録媒体上では濃度ムラや色ムラの発生が懸念される。 By the way, as in the present embodiment, when the area corresponding to the processing target area in the threshold matrix is used as the reference value information, the contents of the reference value information are different for each unit area. Here, consider a case where the target dot number D is not set as in the present embodiment, but the reference value information is used as it is as a dither matrix to perform dither processing on the gradation data shown in FIG. 11(a). In this case, the dot arrangement data shown in FIG. 11(i) can be obtained from the reference value information shown in FIG. 11(c). Placement data is obtained. That is, even with the dot arrangement data quantized according to the same gradation data shown in FIG. 11A, 8 dots are arranged in one unit area and 11 dots are arranged in the other unit area. will be As a result, there is concern that density unevenness and color unevenness may occur on the recording medium.

これに対し、本実施形態のように単位領域に含まれる階調値の平均値を求め、この平均値に基づいて単位領域に配するドットの数を設定すれば、基準値情報の内容が変動しても、配置されるドット数のばらつきを単位領域間である程度安定させることができる。図15(d)および(e)は、図15(b)に示す基準値情報を用い、図11(a)の階調データに基づいて本実施形態の処理を実行した場合の第1の評価値情報とドット配置データをそれぞれ示している。図15(e)では9個のドットが配され、8個のドットが配される図11(i)とほぼ同等の濃度を表現することができる。 On the other hand, if the average value of the gradation values included in the unit area is obtained as in this embodiment and the number of dots to be arranged in the unit area is set based on this average value, the contents of the reference value information will change. Even so, the variation in the number of dots arranged can be stabilized to some extent between unit areas. 15(d) and (e) show the first evaluation when the processing of the present embodiment is executed based on the gradation data of FIG. 11(a) using the reference value information shown in FIG. 15(b). Value information and dot placement data are shown, respectively. In FIG. 15(e), nine dots are arranged, and approximately the same density as in FIG. 11(i), in which eight dots are arranged, can be expressed.

また、図11~図14に示すように、本実施形態では4つのインク色に対し異なる閾値マトリクスを用意して目標ドット数Dと評価値Evを求めたが、閾値マトリクスは各色で共通化してもよい。この場合、処理済のインク色のドット配置データの総和である排他値情報が、全色で共通する閾値マトリクスに準じた情報となり、結果として全てのインク色の総和として閾値マトリクスに準じた分散性を得ることができる。よって、特に分散性を高めることを重視する場合には、例えばブルーノイズ特性を有する閾値マトリクスを1つ用意し、この閾値マトリクスを各色で共通の基準値情報として利用すればよい。このようにすれば、全てのインク色の総和として高い分散性を有する滑らかな画像を出力することが可能となる。 As shown in FIGS. 11 to 14, in this embodiment, different threshold matrices are prepared for the four ink colors to obtain the target dot number D and the evaluation value Ev. good too. In this case, the exclusive value information, which is the sum of the processed ink color dot arrangement data, becomes information according to the threshold matrix common to all colors, and as a result, the total sum of all ink colors has dispersibility according to the threshold matrix. can be obtained. Therefore, when emphasis is placed on increasing the dispersibility, for example, one threshold matrix having blue noise characteristics may be prepared, and this threshold matrix may be used as common reference value information for each color. In this way, it is possible to output a smooth image having high dispersibility as the sum of all ink colors.

但し、本実施形態は、基準値情報として必ずしも閾値マトリクスを利用しなくてもよい。基準値情報は第1の実施形態のように1~16(又は0~15)の整数として、閾値マトリクスとは別に用意してもよい。この場合、基準値の正規化に用いる最大値はRmax=16(又は15)となる。 However, this embodiment does not necessarily have to use the threshold matrix as the reference value information. The reference value information may be prepared separately from the threshold matrix as integers from 1 to 16 (or 0 to 15) as in the first embodiment. In this case, the maximum value used for normalizing the reference value is Rmax=16 (or 15).

図17(a)~(c)は、特許文献1の方法で量子化処理を行った場合を本発明と比較するための図である。図17(a)は、図12(a)と同様、処理対象領域に対応する第2色(シアン)の階調データを示す。一方、図17(b)は、特許文献1の方法に従ってシフト処理して得られるシアンデータのための閾値マトリクスを示している。 FIGS. 17A to 17C are diagrams for comparing the case of performing quantization processing by the method of Patent Document 1 with the present invention. Similar to FIG. 12A, FIG. 17A shows tone data of the second color (cyan) corresponding to the processing target area. On the other hand, FIG. 17B shows a threshold matrix for cyan data obtained by shift processing according to the method of Patent Document 1. FIG.

図17(b)は、図11(c)に示すマトリクスの各閾値から、図11(a)の階調データが示す各階調値Iを減算し、その値が負になった場合のみ255を加算して得られるマトリクスである。そして、このようにして得られた図17(b)の閾値マトリクスを用い、図17(a)の階調データに従ってディザ処理を行うと、図17(c)のようなドット配置データが得られる。図17(c)に示すドット配置データを、図12(i)に示す本実施形態の第2色(シアン)のドット配置データと比較すると、図17(c)は、図11(i)に示す第1色のドット配置データに対する排他性が図12(i)よりも劣っているのが分かる。 FIG. 17(b) subtracts each gradation value I indicated by the gradation data of FIG. 11(a) from each threshold of the matrix shown in FIG. 11(c), and subtracts 255 only when the value becomes negative. It is a matrix obtained by addition. Using the threshold matrix of FIG. 17(b) thus obtained and dithering according to the tone data of FIG. 17(a), dot arrangement data as shown in FIG. 17(c) is obtained. . Comparing the dot arrangement data shown in FIG. 17(c) with the dot arrangement data for the second color (cyan) of the present embodiment shown in FIG. 12(i), FIG. It can be seen that exclusivity with respect to the dot arrangement data of the first color shown is inferior to that in FIG. 12(i).

特許文献1の方法では、先行して量子化処理を行う第1色の階調値が均一であり、且つ後続して量子化処理を行う第2色の階調値も均一である場合に、第1色のドットと第2色のドットを完全排他に配置することができる。しかしながら、実際の画像において、各画素の階調値は図11(a)のようにある程度ばらついていることは多く、特許文献1の方法では、第1色と第2色のドットを安定した排他関係のもとで記録することは難しい。 In the method of Patent Document 1, when the gradation values of the first color to be quantized first are uniform and the gradation values of the second color to be subsequently quantized are also uniform, The dots of the first color and the dots of the second color can be arranged completely exclusively. However, in an actual image, the gradation value of each pixel often varies to some extent as shown in FIG. 11(a). It is difficult to record under a relationship.

これに対し、本実施形態では、第1色と第2色のドット数の和が単位領域の画素数(16)を超えない範囲であれば、図11(i)と図12(i)に示すように、第1色のドットと第2色のドットを単位領域内で完全排他の関係で配置することができる。そして、このような排他関係を、いずれの単位領域でも維持することができる。すなわち、本実施形態によれば、異なる色のドットが記録媒体上の同じ位置に重複して記録される頻度を特許文献1よりも更に抑制し、更に発色性の高い画像を出力することが可能となる。 On the other hand, in this embodiment, if the sum of the number of dots of the first color and the second color does not exceed the number of pixels (16) in the unit area, As shown, the dots of the first color and the dots of the second color can be arranged in a completely exclusive relationship within the unit area. Then, such an exclusive relationship can be maintained in any unit area. That is, according to the present embodiment, it is possible to further suppress the frequency of overlapping printing of dots of different colors on the same position on the printing medium as compared with Japanese Patent Application Laid-Open No. 2002-200014, and to output an image with even higher color development. becomes.

なお、ここでは、本実施形態で用いた図11、図12を特許文献1の図17(a)~(c)と比較し、本実施形態の効果として説明したが、このような効果は、第1、第2の実施形態でも同様に得ることができる。
(その他の実施形態)
以上の実施形態では、階調値Iを記録(1)又は非記録(0)の2値データに変換する場合について説明したが、本発明は階調値を3値以上に量子化する場合にも応用することができる。量子化値が3値以上の場合、各画素の量子化値は、1画素に対応する記録媒体上のエリアに記録するドットの数やサイズを調整することによって、表現することができる。
11 and 12 used in the present embodiment are compared with FIGS. 17(a) to 17(c) of Patent Document 1 to explain the effects of the present embodiment. The same can be obtained in the first and second embodiments.
(Other embodiments)
In the above embodiment, the case of converting the gradation value I into binary data of recording (1) or non-recording (0) has been described. can also be applied. When the quantization value is three or more, the quantization value of each pixel can be expressed by adjusting the number and size of dots recorded in the area on the recording medium corresponding to one pixel.

例えば量子化値が3値である場合を例に具体的に説明する。この場合、まずImaxを調整して、階調値Iから0~2の正規化値(I/Imax)を得る。そして、正規化値(I/Imax)が1よりも大きな画素には、当該画素に対しまず1ドットを配置する。更に、当該画素の正規化値(I/Imax)から1を減算し、得られた値を当該画素の新たな正規化値とする。 For example, a case where the quantization value is three values will be described in detail. In this case, Imax is first adjusted to obtain a normalized value (I/Imax) between 0 and 2 from the gradation value I. Then, for a pixel with a normalized value (I/Imax) greater than 1, 1 dot is first placed on the pixel. Further, 1 is subtracted from the normalized value (I/Imax) of the pixel, and the obtained value is used as the new normalized value of the pixel.

その後、新たな正規化値に基づいて、未だドットが配されていない画素とともに上記実施形態で説明した方法で評価値Evを求め、再びドットを配置する。そして、結果的に2つのドットが配置された画素の量子化値は「2」とし、記録媒体上の該当エリアには2つのドットを記録する。また、結果的に1つのドットが配置された画素の量子化値は「1」とし、記録媒体上の該当エリアには1つのドットを記録する。更に、結果的にドットが配置されない画素の量子化値は「0」とし、記録媒体上の該当エリアには1つのドットも記録しない。この場合、第1、第2の実施形態の累積ドット情報や、第3の実施形態のドット配置履歴情報には、0~2の量子化値をそのまま保存すればよい。 After that, based on the new normalization value, the evaluation value Ev is obtained by the method described in the above embodiment together with the pixels to which dots have not yet been placed, and dots are placed again. As a result, the quantization value of the pixel on which two dots are arranged is set to "2", and two dots are printed in the corresponding area on the print medium. Also, the quantization value of the pixel where one dot is arranged is set to "1", and one dot is printed in the corresponding area on the printing medium. Furthermore, the quantization value of pixels for which dots are not arranged is set to "0", and no dot is printed in the corresponding area on the printing medium. In this case, the accumulated dot information of the first and second embodiments and the dot arrangement history information of the third embodiment may store the quantized values from 0 to 2 as they are.

なお、1画素に対応するエリアに2つのドットを記録する方法としては、例えば、図1に示した記録ヘッド102において、複数の吐出口101が配列してなる吐出口列を、各インク色についてx方向に2列ずつ用意すればよい。また、記録媒体の同一画像領域に対し記録ヘッド102による複数回の記録走査を行うマルチパス記録方法を採用してもよい。更に、3値以上の量子化値に対しインデックス展開処理を施すことによって、更に解像度の高い2値データを生成しこれを最終的な記録データとしてもよい。 As a method of printing two dots in an area corresponding to one pixel, for example, in the print head 102 shown in FIG. It suffices to prepare two columns each in the x direction. Also, a multi-pass printing method may be employed in which the print head 102 performs multiple print scans on the same image area of the print medium. Furthermore, by applying index expansion processing to the quantized values of three or more values, binary data with higher resolution may be generated and used as the final recording data.

また、3値以上の量子化値をドット数でなくドットサイズで表現する場合は、量子化値が「2」である画素には大ドットを配し、量子化値が「1」である画素には小ドットを配し、量子化値が「0」である画素にはドットを配さないようにすればよい。この場合、図5のS503や図10のS1003で設定される目標ドット数は、ドット数およびドットサイズによって統合される、処理対象領域に対応する記録媒体上の領域に付与するべき処理対象色のインク量に相応する目標値となる。また、図4の目標ドット数設定部403は、そのような目標値を導出し設定するための目標値導出部となる。 When quantized values of three or more values are represented by dot size instead of the number of dots, pixels with a quantized value of "2" are assigned large dots, and pixels with a quantized value of "1" are assigned a large dot. A small dot should be placed in each pixel, and no dot should be placed in a pixel whose quantization value is "0". In this case, the target number of dots set in S503 of FIG. 5 or S1003 of FIG. A target value corresponding to the amount of ink is obtained. A target dot number setting unit 403 in FIG. 4 serves as a target value deriving unit for deriving and setting such a target value.

以上では、階調データにおける階調値の平均値を、閾値マトリクスの閾値と比較することによって、処理対象領域における目標ドット数Dを設定したが、目標ドット数の設定方法はこれに限定されない。例えば、処理対象領域に対応する複数の階調値Iの和SUMとランダムに設定される自然数N(1≦N≦255)を用いて、(式3)に従って目標ドット数Dを導出することもできる。
SUM<N のとき D=0
SUM≧N のとき D=INT((SUM-N)/255)+1 (式3)
In the above description, the target dot number D in the processing target area is set by comparing the average value of the gradation values in the gradation data with the threshold values of the threshold matrix, but the method for setting the target dot number is not limited to this. For example, the target dot number D can be derived according to (Equation 3) using the sum SUM of the plurality of tone values I corresponding to the processing target area and a randomly set natural number N (1≦N≦255). can.
D=0 when SUM<N
When SUM≧N D=INT((SUM-N)/255)+1 (Formula 3)

ここで、INT(x)はxを超えない自然数を返す関数とする。例えば第1の実施形態で示した図7(a)の階調データにおいて、SUM=1756となる。ここで、N=128とし、(式3)を用いて目標ドット数を求めると、SUM≧N であるため、
D=((1756-128)/255)+1=7
となる。なお、ここではNを階調値Iの中心値128としたが、Nはこのような中心値に対し大きくずれない程度にランダムに設定されることが好ましい。このようにすれば、大サイズの閾値マトリクスをメモリに記憶しておくことなく、処理対象領域の目標ドット数を求めることができる。
Here, INT(x) is a function that returns a natural number not exceeding x. For example, in the gradation data of FIG. 7A shown in the first embodiment, SUM=1756. Here, if N=128 and the target number of dots is calculated using (Equation 3), SUM≧N, so
D=((1756-128)/255)+1=7
becomes. Although N is set to the central value 128 of the gradation value I here, it is preferable that N is set randomly to such an extent that it does not deviate greatly from such a central value. In this way, the target dot count of the processing target area can be obtained without storing a large size threshold matrix in the memory.

また、以上では、量子化順情報408に記憶されている色順序に従って、第1色をブラック、第2色をシアン、第3色をマゼンタ、第4色をイエローとしたが、本発明はこのような形態に限定されない。但し、遅い順番のインク色ほど排他値に比べて基準値情報が評価値情報に反映され難くなるため、分散性が損なわれる傾向がある。このため、本実施形態では記録媒体上に記録されたドットの光学濃度が高い順に処理を行い、最も分散性が損なわれやすい第4色に最も光学濃度が低いイエローを適用した。 In the above, according to the color order stored in the quantization order information 408, the first color is black, the second color is cyan, the third color is magenta, and the fourth color is yellow. It is not limited to such a form. However, the later the ink color is, the more difficult it is for the reference value information to be reflected in the evaluation value information as compared to the exclusion value, so the dispersibility tends to be impaired. For this reason, in the present embodiment, processing is performed in order of the optical density of the dots printed on the printing medium, and yellow, which has the lowest optical density, is used as the fourth color, the dispersibility of which is most likely to be impaired.

但し、処理の色順序については単位領域ごとに変更してもよい。特に分散型の基準値情報を用いる場合には、全ての単位領域の処理を同じ色順序で行っていると、繰り返しパターンやテクスチャが視認される場合がある。このような場合には、単位領域ごとに処理の色順序を切替えれば、これらパターンやテクスチャを画像全体で目立ち難くすることができる。この際、例えば、視覚的に目立ち難いイエローを第4色に固定しておきながら、ブラック、シアンおよびマゼンタの間で、第1色~第3色を順番に切替えてもよい。 However, the color order for processing may be changed for each unit area. In particular, when distributed reference value information is used, if all unit areas are processed in the same color order, repeated patterns and textures may be visually recognized. In such a case, by switching the color order of processing for each unit area, it is possible to make these patterns and textures inconspicuous in the entire image. At this time, for example, the visually inconspicuous yellow may be fixed as the fourth color, and the first to third colors may be sequentially switched among black, cyan, and magenta.

更に、上記処理の色順序は、画像データに基づいて設定されてもよい。例えば、図3のS301で得られたR´G´B´データが示す処理対象領域の色相がG(グリーン)に近い場合は、第1色をシアン、第2色をイエローとし、第3色をブラック、第4色をマゼンタとしてもよい。 Furthermore, the color order of the above processing may be set based on the image data. For example, when the hue of the processing target area indicated by the R'G'B' data obtained in S301 of FIG. 3 is close to G (green), the first color is cyan, the second color is yellow, and the third color may be black, and the fourth color may be magenta.

また、図5および図10で説明したフローチャートでは、処理対象領域を設定した後、設定された処理対象領域に対し処理対象色を設定したが、これらの設定順序は逆であってもよい。すなわち、まず処理対象色を設定し、設定された処理対象色についての量子化処理を単位領域の全てに対して行い、その後、処理対象色を次のインク色に切替えてもよい。但しこの場合、累積ドット数情報やドット配置履歴情報を記憶するためのメモリ領域を全ての単位領域について用意する必要がある。よって、このようなメモリ領域を節約できるという点では、図5および図10で説明したフローチャートに従った順番のほうが好ましいと言える。 Further, in the flowcharts described with reference to FIGS. 5 and 10, after setting the processing target area, the processing target color is set for the set processing target area, but these setting orders may be reversed. That is, first, a color to be processed may be set, quantization processing for the set color to be processed may be performed on all unit areas, and then the color to be processed may be switched to the next ink color. However, in this case, it is necessary to prepare a memory area for storing cumulative dot number information and dot arrangement history information for all unit areas. Therefore, it can be said that the order according to the flow charts described in FIGS. 5 and 10 is preferable in that such a memory area can be saved.

また、以上では、予めメモリに記憶された閾値マトリクスや基準値情報に基づいて、処理対象領域のための基準値情報を取得したが、このような基準値情報は、量子化処理を行う際に階調データなどに基づいて生成してもよい。例えば、処理対象領域に対応する階調データを参照し、単に階調値が大きい画素から順番に1~16の基準値を割り当ててもよい。また、階調データに対し、所定のエッジ処理やフィルタリング処理を施した後に、階調値が大きい画素から順番に1~16の基準値を割り当ててもよい。このようにすれば、画像の特徴(エッジやインク量)などのパラメータに応じて基準値Rを生成してから、この基準値Rをもとに排他処理が行われるため、画像の特徴を適量に再現しながらドットの重なりに伴う発色不良を緩和することができる。 In the above description, the reference value information for the processing target area is acquired based on the threshold matrix and reference value information stored in advance in the memory. It may be generated based on gradation data or the like. For example, gradation data corresponding to the region to be processed may be referred to, and reference values from 1 to 16 may be assigned to pixels in descending order of gradation values. Further, after applying predetermined edge processing or filtering processing to the gradation data, reference values 1 to 16 may be assigned to the pixels in descending order of the gradation value. In this manner, the reference value R is generated according to parameters such as image features (edges and ink amount), and then exclusion processing is performed based on this reference value R. This makes it possible to alleviate poor color development due to overlapping of dots while reproducing the same.

また、以上では図6を参照し、4画素×4画素を単位領域に対応づけたが、無論本発明の単位領域はこのようなサイズや形状に限定されない。単位領域は更に大きなサイズであってもよいし、x方向の画素数とy方向の画素数は等しくなくてもよい。単位領域に含まれる画素数が少ないほど、処理に使用するメモリを少なく抑えることができ、階調値Iひいては画像の特徴が、出力画像に現れやすくなる。一方、単位領域に対応する画素数を多くするほど、単位領域内の排他性およびこれに伴う発色性を向上させ、粒状感を低減することができる。 In the above, referring to FIG. 6, 4 pixels×4 pixels are associated with the unit area, but the unit area of the present invention is of course not limited to such size and shape. The unit area may have a larger size, and the number of pixels in the x direction and the number of pixels in the y direction may not be equal. The smaller the number of pixels included in the unit area, the smaller the amount of memory used for processing, and the easier it is for the gradation value I and thus the characteristics of the image to appear in the output image. On the other hand, as the number of pixels corresponding to the unit area is increased, exclusivity within the unit area and accompanying color development can be improved, and graininess can be reduced.

但し、単位領域の大きさをn画素×m画素としたとき、画像データが有するx方向およびy方向の画素数はnおよびmそれぞれの倍数であることが好ましい。よって、このような条件が満たされない場合は、画像データに対し、x方向およびy方向の画素数がnおよびmの倍数となるように、x方向およびy方向の端部の所定領域に白データを付随することが好ましい。 However, when the size of the unit area is n pixels×m pixels, the number of pixels in the x direction and the y direction of the image data is preferably a multiple of n and m. Therefore, if such a condition is not satisfied, white data is added to predetermined regions at the ends of the image data in the x and y directions so that the number of pixels in the x and y directions is a multiple of n and m. is preferably accompanied by

以上では、図3に示す画像処理の全てを図2に示す画像処理装置(ホストPC)200で行う内容で説明したが、無論本発明はこのような形態に限定されない。図3に示す画像処理の一部をホストPCで行い、残りの処理を記録装置100が行ってもよいし、全ての処理を記録装置100が行ってもよい。更に、図5や図10で説明した量子化処理の途中までの工程をホストPCが行い、残りの工程を記録装置が行う形態としてもよい。いずれにせよ、本発明の量子化処理を行う装置が本発明の画像処理装置となり、量子化処理がホスト装置と記録装置の協働で行われる場合は、これらプリントシステム全体が本発明の画像処理装置となる。 In the above description, all the image processing shown in FIG. 3 is performed by the image processing apparatus (host PC) 200 shown in FIG. 2, but the present invention is of course not limited to such a form. Part of the image processing shown in FIG. 3 may be performed by the host PC and the rest of the processing may be performed by the printing apparatus 100, or the printing apparatus 100 may perform all the processing. Further, the host PC may perform the steps up to the middle of the quantization processing described with reference to FIGS. 5 and 10, and the remaining steps may be performed by the printing apparatus. In any case, when the device for performing the quantization processing of the present invention is the image processing device of the present invention, and the quantization processing is performed in cooperation with the host device and the printing device, the entire print system can be the image processing device of the present invention. become a device.

本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by processing to It can also be implemented by a circuit (for example, ASIC) that implements one or more functions.

200 画像処理装置
403 目標ドット数設定部
405 評価値設定部
406 ドット配置部
200 image processing device 403 target dot number setting unit 405 evaluation value setting unit 406 dot arrangement unit

Claims (22)

複数種類の色材それぞれに対応する画像に基づいて、前記複数種類の色材それぞれについてのドットの配置を決定するための画像処理装置であって、
前記画像の所定領域について、前記複数種類の色材のうちドットの配置が既に決定された色材に対応するドットの配置情報を取得する取得手段と、
前記所定領域について、前記複数種類の色材のうちドットの配置が決定されていない所定の色材に対する目標値を前記画像に基づいて導出する目標値導出手段と、
前記配置情報に基づいて、前記所定領域に含まれる各画素の評価値を導出する評価値導出手段と、
前記目標値と前記評価値とに基づいて、前記所定領域における前記所定の色材のドットの配置を決定するドット配置決定手段と、
を有し、
前記評価値は、前記所定領域に含まれる複数の画素のそれぞれについて、前記所定の色材のドットを配置する優先度を示す値であり、
前記評価値導出手段は、前記所定領域において、既に配置されたドットの数が少ない画素であるほど前記優先度が高くなるように、前記評価値を設定することを特徴とする画像処理装置。
An image processing device for determining dot arrangement for each of the plurality of types of colorants based on images corresponding to each of the plurality of types of colorants,
Acquisition means for acquiring, with respect to a predetermined region of the image, dot arrangement information corresponding to one of the plurality of types of coloring materials whose dot arrangement has already been determined;
target value deriving means for deriving, based on the image, a target value for a predetermined colorant for which dot arrangement has not been determined among the plurality of types of colorants for the predetermined region;
evaluation value derivation means for deriving an evaluation value of each pixel included in the predetermined area based on the arrangement information;
dot arrangement determination means for determining the arrangement of dots of the predetermined color material in the predetermined area based on the target value and the evaluation value;
has
The evaluation value is a value indicating a priority for arranging dots of the predetermined color material for each of a plurality of pixels included in the predetermined area;
The image processing apparatus , wherein the evaluation value deriving means sets the evaluation value such that the priority is higher for a pixel having a smaller number of already arranged dots in the predetermined area .
前記評価値導出手段は、前記所定領域に含まれる各画素について予め定められた基準値と前記配置情報とに基づいて、前記所定領域に含まれる各画素の評価値を設定することを特徴とする請求項1に記載の画像処理装置。 The evaluation value deriving means sets the evaluation value of each pixel included in the predetermined area based on a predetermined reference value and the arrangement information for each pixel included in the predetermined area. The image processing apparatus according to claim 1 . 複数種類の色材それぞれに対応する画像に基づいて、前記複数種類の色材それぞれについてのドットの配置を決定するための画像処理装置であって、
前記画像の所定領域について、前記複数種類の色材のうちドットの配置が既に決定された色材に対応するドットの配置情報を取得する取得手段と、
前記所定領域について、前記複数種類の色材のうちドットの配置が決定されていない所定の色材に対する目標値を前記画像に基づいて導出する目標値導出手段と、
前記配置情報に基づいて、前記所定領域に含まれる各画素の評価値を導出する評価値導出手段と、
前記目標値と前記評価値とに基づいて、前記所定領域における前記所定の色材のドットの配置を決定するドット配置決定手段と、
を有し、
前記評価値は、前記所定領域に含まれる複数の画素のそれぞれについて、前記所定の色材のドットを配置する優先度を示す値であり、
前記評価値導出手段は、前記所定領域に含まれる各画素について、前記所定の色材のドットの配置を抑制する程度を示す排他値を、前記配置情報に基づいて導出し、
前記所定領域において、前記排他値が大きいほど前記優先度が低くなるように、前記評価値を導出することを特徴とする画像処理装置。
An image processing device for determining dot arrangement for each of the plurality of types of colorants based on images corresponding to each of the plurality of types of colorants,
Acquisition means for acquiring, with respect to a predetermined region of the image, dot arrangement information corresponding to one of the plurality of types of coloring materials whose dot arrangement has already been determined;
target value deriving means for deriving, based on the image, a target value for a predetermined colorant for which dot arrangement has not been determined among the plurality of types of colorants for the predetermined region;
evaluation value deriving means for deriving an evaluation value of each pixel included in the predetermined area based on the arrangement information;
dot arrangement determination means for determining the arrangement of dots of the predetermined color material in the predetermined area based on the target value and the evaluation value;
has
The evaluation value is a value indicating a priority for arranging dots of the predetermined color material for each of a plurality of pixels included in the predetermined area;
The evaluation value deriving means derives an exclusion value indicating a degree to which the placement of the dots of the predetermined color material is suppressed for each pixel included in the predetermined region based on the placement information;
The image processing apparatus, wherein the evaluation value is derived such that the priority decreases as the exclusion value increases in the predetermined area.
前記排他値は、前記所定領域に含まれる複数の画素のそれぞれについて、既に配置されたドットの数と重み係数を色材ごとに乗算し、前記乗算して得られた値を、前記ドットの配置が既に決定された色材について加算することにより導出されることを特徴とする請求項3に記載の画像処理装置。 The exclusive value is obtained by multiplying the number of dots already arranged and a weighting factor for each color material for each of a plurality of pixels included in the predetermined area, and then adding the value obtained by the multiplication to the arrangement of the dots. 4. The image processing apparatus according to claim 3 , wherein is derived by adding for already determined colorants. 記録媒体に形成されるドットの光学濃度が高い色材ほど、前記重み係数の値は大きいことを特徴とする請求項4に記載の画像処理装置。 5. The image processing apparatus according to claim 4 , wherein the weighting coefficient value is greater for a colorant with a higher optical density of dots formed on the recording medium. 記録媒体に形成されるドットの彩度が高い色材ほど、前記重み係数の値は大きいことを特徴とする請求項4に記載の画像処理装置。 5. The image processing apparatus according to claim 4 , wherein the value of the weighting factor is larger for a color material with higher saturation of dots formed on the recording medium. 前記評価値導出手段は、前記所定領域に含まれる各画素の階調値と、前記所定領域に含まれる各画素について予め定められた基準値と、前記排他値とに基づいて、前記所定領域に含まれる各画素について前記評価値を導出することを特徴とする請求項3から6のいずれか1項に記載の画像処理装置。 The evaluation value deriving means calculates, based on the gradation value of each pixel included in the predetermined area, a predetermined reference value for each pixel included in the predetermined area, and the exclusion value, the 7. The image processing apparatus according to any one of claims 3 to 6 , wherein the evaluation value is derived for each pixel included. 前記評価値導出手段は、前記階調値が大きい画素ほど前記評価値が大きくなるように前記評価値を導出することを特徴とする請求項7に記載の画像処理装置。 8. The image processing apparatus according to claim 7 , wherein the evaluation value deriving means derives the evaluation value such that the evaluation value increases as the tone value of the pixel increases. 前記基準値は、前記所定領域に含まれる各画素について、前記所定の色材のドットを配置する優先度の基準を示す値であり、前記評価値導出手段は、前記基準値が大きい画素ほど前記評価値が大きくなるように前記評価値を導出することを特徴とする請求項7または8に記載の画像処理装置。 The reference value is a value indicating a reference of priority for arranging dots of the predetermined color material for each pixel included in the predetermined area. 9. The image processing apparatus according to claim 7 , wherein the evaluation value is derived so as to increase the evaluation value. 前記評価値導出手段は、前記階調値から前記基準値および前記排他値を減算することによって前記評価値を導出することを特徴とする請求項7から9のいずれか1項に記載の画像処理装置。 10. The image processing according to claim 7 , wherein said evaluation value deriving means derives said evaluation value by subtracting said reference value and said exclusive value from said tone value. Device. 前記評価値導出手段は、前記階調値を正規化した値から、前記基準値を前記階調値と同じレンジで正規化した値と、前記排他値を前記階調値と同じレンジで正規化した値を、減算することによって前記評価値を導出することを特徴とする請求項7から9のいずれか1項に記載の画像処理装置。 The evaluation value derivation means normalizes the reference value in the same range as the gradation value and normalizes the exclusive value in the same range as the gradation value from the value obtained by normalizing the gradation value. 10. The image processing apparatus according to any one of claims 7 to 9 , wherein the evaluation value is derived by subtracting the calculated value. 前記所定の色材は、前記複数種類の色材の中から光学濃度が高い順に設定されることを特徴とする請求項1から11のいずれか1項に記載の画像処理装置。 12. The image processing apparatus according to any one of claims 1 to 11 , wherein the predetermined coloring materials are set in descending order of optical density from among the plurality of types of coloring materials. 前記所定領域は、前記画像を分割して得られる複数の単位領域の中から順番に設定され、
前記複数種類の色材の中から前記所定の色材が設定される順番は、前記複数の単位領域ごとに変更されることを特徴とする請求項1から12のいずれか1項に記載の画像処理装置。
the predetermined area is set in order from among a plurality of unit areas obtained by dividing the image;
13. The image according to any one of claims 1 to 12 , wherein the order in which the predetermined color materials are set from among the plurality of types of color materials is changed for each of the plurality of unit areas. processing equipment.
前記目標値導出手段は、前記所定領域に含まれる各画素の階調値の平均値を、閾値マトリクスの前記所定領域に対応する各画素の閾値と比較することにより前記目標値を導出することを特徴とする請求項1から13のいずれか1項に記載の画像処理装置。 The target value deriving means derives the target value by comparing an average value of gradation values of pixels included in the predetermined region with threshold values of pixels corresponding to the predetermined region in a threshold matrix. 14. The image processing apparatus according to any one of claims 1 to 13 . 前記評価値導出手段は、前記閾値マトリクスに基づいて前記評価値を導出することを特徴とする請求項14に記載の画像処理装置。 15. The image processing apparatus according to claim 14 , wherein said evaluation value deriving means derives said evaluation value based on said threshold matrix. 前記目標値は、前記所定領域に配置するべき前記所定の色材のドット数であることを特徴とする請求項1から15のいずれか1項に記載の画像処理装置。 16. The image processing apparatus according to any one of claims 1 to 15 , wherein the target value is the number of dots of the predetermined color material to be arranged in the predetermined area. 前記目標値は、前記所定領域に対応する記録媒体上の領域に付与するべき前記所定の色材の量に相応し、前記ドット配置決定手段は、前記所定領域の中からドットを配置する画素とドットのサイズを決定することを特徴とする請求項1から15のいずれか1項に記載の画像処理装置。 The target value corresponds to the amount of the predetermined coloring material to be applied to the area on the recording medium corresponding to the predetermined area, and the dot arrangement determining means selects the pixels to be arranged dots from the predetermined area. 16. The image processing apparatus according to any one of claims 1 to 15 , wherein the dot size is determined. 前記複数種類の色材は、ブラック、シアン、マゼンタ及びイエローを含むことを特徴とする請求項1から17のいずれか1項に記載の画像処理装置。 18. The image processing apparatus according to any one of claims 1 to 17 , wherein the plurality of types of colorants include black, cyan, magenta, and yellow. 前記ドット配置決定手段が決定した前記所定の色材のドットの配置に基づいて、記録媒体にドットを記録する記録手段を更に有することを特徴とする請求項1から18のいずれか1項に記載の画像処理装置。 19. The apparatus according to any one of claims 1 to 18 , further comprising recording means for recording dots on a recording medium based on the arrangement of the dots of the predetermined color material determined by the dot arrangement determination means. image processing device. 複数種類の色材それぞれに対応する画像に基づいて、前記複数種類の色材それぞれについてのドットの配置を決定するための画像処理方法であって、
前記画像の所定領域について、前記複数種類の色材のうちドットの配置が既に決定された色材に対応するドットの配置情報を取得する取得工程と、
前記所定領域について、前記複数種類の色材のうちドットの配置が決定されていない所定の色材に対する目標値を前記画像に基づいて導出する目標値導出工程と、
前記配置情報に基づいて、前記所定領域に含まれる各画素の評価値を導出する評価値導出工程と、
前記目標値と前記評価値とに基づいて、前記所定領域における前記所定の色材のドットの配置を決定するドット配置決定工程と、
を有し、
前記評価値は、前記所定領域に含まれる複数の画素のそれぞれについて、前記所定の色材のドットを配置する優先度を示す値であり、
前記評価値導出工程は、前記所定領域において、既に配置されたドットの数が少ない画素であるほど前記優先度が高くなるように、前記評価値を設定することを特徴とする画像処理方法。
An image processing method for determining dot arrangement for each of a plurality of types of colorants based on images corresponding to each of the plurality of types of colorants, comprising:
an obtaining step of obtaining, for a predetermined region of the image, dot arrangement information corresponding to one of the plurality of types of coloring materials whose dot arrangement has already been determined;
a target value deriving step of deriving, based on the image, a target value for a predetermined colorant for which dot arrangement has not been determined among the plurality of types of colorants for the predetermined region;
an evaluation value derivation step of deriving an evaluation value of each pixel included in the predetermined region based on the arrangement information;
a dot arrangement determination step of determining the arrangement of the dots of the predetermined color material in the predetermined area based on the target value and the evaluation value;
has
The evaluation value is a value indicating a priority for arranging dots of the predetermined color material for each of a plurality of pixels included in the predetermined area;
The image processing method , wherein the evaluation value deriving step sets the evaluation value such that the priority of a pixel having a smaller number of already arranged dots in the predetermined area is higher .
複数種類の色材それぞれに対応する画像に基づいて、前記複数種類の色材それぞれについてのドットの配置を決定するための画像処理方法であって、An image processing method for determining dot arrangement for each of a plurality of types of colorants based on images corresponding to each of the plurality of types of colorants, comprising:
前記画像の所定領域について、前記複数種類の色材のうちドットの配置が既に決定された色材に対応するドットの配置情報を取得する取得工程と、an obtaining step of obtaining, for a predetermined region of the image, dot arrangement information corresponding to one of the plurality of types of coloring materials whose dot arrangement has already been determined;
前記所定領域について、前記複数種類の色材のうちドットの配置が決定されていない所定の色材に対する目標値を前記画像に基づいて導出する目標値導出工程と、a target value deriving step of deriving, based on the image, a target value for a predetermined colorant for which dot arrangement has not been determined among the plurality of types of colorants for the predetermined region;
前記配置情報に基づいて、前記所定領域に含まれる各画素の評価値を導出する評価値導出工程と、an evaluation value derivation step of deriving an evaluation value of each pixel included in the predetermined region based on the arrangement information;
前記目標値と前記評価値とに基づいて、前記所定領域における前記所定の色材のドットの配置を決定するドット配置決定工程と、a dot arrangement determination step of determining the arrangement of the dots of the predetermined color material in the predetermined area based on the target value and the evaluation value;
を有し、has
前記評価値は、前記所定領域に含まれる複数の画素のそれぞれについて、前記所定の色材のドットを配置する優先度を示す値であり、The evaluation value is a value indicating a priority for arranging dots of the predetermined color material for each of a plurality of pixels included in the predetermined area;
前記評価値導出工程は、前記所定領域に含まれる各画素について、前記所定の色材のドットの配置を抑制する程度を示す排他値を、前記配置情報に基づいて導出し、The evaluation value deriving step derives, based on the layout information, an exclusion value indicating the extent to which the placement of the dots of the predetermined color material is suppressed for each pixel included in the predetermined region;
前記所定領域において、前記排他値が大きいほど前記優先度が低くなるように、前記評価値を導出することを特徴とする画像処理方法。An image processing method, wherein the evaluation value is derived such that the priority decreases as the exclusion value increases in the predetermined area.
請求項1から19のいずれか1項に記載の画像処理装置の各手段としてコンピュータを機能させるためのプログラム。 A program for causing a computer to function as each means of the image processing apparatus according to any one of claims 1 to 19 .
JP2018229551A 2018-12-07 2018-12-07 Image processing device, image processing method and program Active JP7191665B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2018229551A JP7191665B2 (en) 2018-12-07 2018-12-07 Image processing device, image processing method and program
EP19213476.5A EP3664429B1 (en) 2018-12-07 2019-12-04 Image processing apparatus, image processing method, and program
EP22178813.6A EP4099675A1 (en) 2018-12-07 2019-12-04 Image processing apparatus, image processing method, and program
US16/704,257 US11321596B2 (en) 2018-12-07 2019-12-05 Image processing apparatus, image processing method, and storage medium for generating quantized data for forming an image on a print medium
US17/708,601 US11610087B2 (en) 2018-12-07 2022-03-30 Image processing apparatus, image processing method, and storage medium for determining dot arrangement for colorants for forming an image on a print medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018229551A JP7191665B2 (en) 2018-12-07 2018-12-07 Image processing device, image processing method and program

Publications (2)

Publication Number Publication Date
JP2020090061A JP2020090061A (en) 2020-06-11
JP7191665B2 true JP7191665B2 (en) 2022-12-19

Family

ID=71012173

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018229551A Active JP7191665B2 (en) 2018-12-07 2018-12-07 Image processing device, image processing method and program

Country Status (1)

Country Link
JP (1) JP7191665B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004503186A (en) 2000-07-07 2004-01-29 イメーション コーポレイション Halftone dot placement for multicolor images
JP2005313634A (en) 2004-03-31 2005-11-10 Fuji Photo Film Co Ltd Image processing method, image processing apparatus, and image formation apparatus having the same
JP2014000739A (en) 2012-06-19 2014-01-09 Dainippon Screen Mfg Co Ltd Image data generation method, image recording method, image data generation device and image recording device
JP2014113819A (en) 2012-11-16 2014-06-26 Canon Inc Dither pattern creation method, dither pattern, image recording device, and image recording method
JP2016127479A (en) 2015-01-06 2016-07-11 キヤノン株式会社 Image processor, image forming apparatus, image processing method and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004503186A (en) 2000-07-07 2004-01-29 イメーション コーポレイション Halftone dot placement for multicolor images
JP2005313634A (en) 2004-03-31 2005-11-10 Fuji Photo Film Co Ltd Image processing method, image processing apparatus, and image formation apparatus having the same
JP2014000739A (en) 2012-06-19 2014-01-09 Dainippon Screen Mfg Co Ltd Image data generation method, image recording method, image data generation device and image recording device
JP2014113819A (en) 2012-11-16 2014-06-26 Canon Inc Dither pattern creation method, dither pattern, image recording device, and image recording method
JP2016127479A (en) 2015-01-06 2016-07-11 キヤノン株式会社 Image processor, image forming apparatus, image processing method and program

Also Published As

Publication number Publication date
JP2020090061A (en) 2020-06-11

Similar Documents

Publication Publication Date Title
US11321596B2 (en) Image processing apparatus, image processing method, and storage medium for generating quantized data for forming an image on a print medium
JP4143359B2 (en) Method for calculating the amount of pigment and method for correcting the input image
JP6581698B2 (en) Image processing apparatus and method
JP5014475B2 (en) Image processing apparatus and image processing method
JP3823424B2 (en) Image processing apparatus and image processing method
JP5717396B2 (en) Image processing apparatus and image processing method
US7190485B2 (en) Method for multilevel printing of digital images using reduced colorant amounts
US11758074B2 (en) Color uniformity compensation mechanism
JP5634154B2 (en) Image processing apparatus and image processing method
JP7434621B2 (en) Image processing device, image processing method and program
JP6639138B2 (en) Image processing apparatus, image processing method, and program
JP4512354B2 (en) Digital image printing using a reduced amount of colorant while maintaining perceived color
JP2023052886A (en) Image processing device, image processing method, and program
JP2020175527A (en) Image processing device, image processing method, and program
JP7191665B2 (en) Image processing device, image processing method and program
JP2003116015A (en) Image processing equipment and method therefor computer program and computer readable storage medium
US9594989B2 (en) Image-processing device determining dot formation state of target pixel by using gradation value of target pixel
JP4127281B2 (en) Image processing apparatus and image processing method
US10131156B2 (en) Image processing apparatus, image processing method and storage medium
JP7434502B2 (en) Image processing device, image processing method, program
JP2020082694A (en) Dither matrix generation device and generation method, and image processing device, image processing method, and program using the dither matrix
JP2005295131A (en) Apparatus, method, and program for processing image
JP7362365B2 (en) Image processing device, image processing method and program
EP3957485A1 (en) Image processing device, image processing method, and program
JP2017056723A (en) Image processing apparatus and method and image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211125

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220812

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220823

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221024

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: 20221108

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221207

R151 Written notification of patent or utility model registration

Ref document number: 7191665

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151